]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
2348f091abcf911e21ca60d441748a14325660c8
[thirdparty/gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 NO_PIE_FLAG
604 NO_PIE_CFLAGS
605 enable_default_pie
606 PICFLAG
607 enable_host_shared
608 enable_plugin
609 pluginlibs
610 ISLINC
611 ISLLIBS
612 GMPINC
613 GMPLIBS
614 target_cpu_default
615 fortran_target_objs
616 cxx_target_objs
617 c_target_objs
618 use_gcc_stdint
619 xm_defines
620 xm_include_list
621 xm_file_list
622 tm_p_include_list
623 tm_p_file_list
624 tm_defines
625 tm_include_list
626 tm_file_list
627 common_out_object_file
628 common_out_file
629 out_object_file
630 out_file
631 objc_boehm_gc
632 md_file
633 local_prefix
634 lang_tree_files
635 lang_specs_files
636 lang_opt_files
637 install
638 out_host_hook_obj
639 host_xm_defines
640 host_xm_include_list
641 host_xm_file_list
642 host_exeext
643 gcc_gxx_include_dir_add_sysroot
644 gcc_gxx_include_dir
645 gcc_config_arguments
646 float_h_file
647 extra_programs
648 extra_objs
649 extra_headers_list
650 user_headers_inc_next_post
651 user_headers_inc_next_pre
652 extra_gcc_objs
653 TM_MULTILIB_EXCEPTIONS_CONFIG
654 TM_MULTILIB_CONFIG
655 TM_ENDIAN_CONFIG
656 tmake_file
657 xmake_file
658 cpp_install_dir
659 check_languages
660 build_file_translate
661 build_xm_defines
662 build_xm_include_list
663 build_xm_file_list
664 build_install_headers_dir
665 build_exeext
666 all_selected_languages
667 all_languages
668 all_lang_makefrags
669 all_gtfiles
670 all_compilers
671 srcdir
672 subdirs
673 dollar
674 gcc_tooldir
675 enable_lto
676 DO_LINK_MUTEX
677 MAINT
678 zlibinc
679 zlibdir
680 HOST_LIBS
681 enable_default_ssp
682 thin_archive_support
683 libgcc_visibility
684 gcc_cv_readelf
685 gcc_cv_objdump
686 ORIGINAL_NM_FOR_TARGET
687 gcc_cv_nm
688 ORIGINAL_LD_GOLD_FOR_TARGET
689 ORIGINAL_LD_BFD_FOR_TARGET
690 ORIGINAL_LD_FOR_TARGET
691 ORIGINAL_PLUGIN_LD_FOR_TARGET
692 gcc_cv_ld
693 ORIGINAL_AS_FOR_TARGET
694 gcc_cv_as
695 enable_fast_install
696 objdir
697 OTOOL64
698 OTOOL
699 LIPO
700 NMEDIT
701 DSYMUTIL
702 STRIP
703 OBJDUMP
704 ac_ct_DUMPBIN
705 DUMPBIN
706 LD
707 FGREP
708 SED
709 LIBTOOL
710 collect2
711 NO_PIE_FLAG_FOR_BUILD
712 NO_PIE_CFLAGS_FOR_BUILD
713 BUILD_NO_PIE_FLAG
714 BUILD_NO_PIE_CFLAGS
715 STMP_FIXINC
716 BUILD_LDFLAGS
717 BUILD_CXXFLAGS
718 BUILD_CFLAGS
719 CXX_FOR_BUILD
720 CC_FOR_BUILD
721 inhibit_libc
722 SYSTEM_HEADER_DIR
723 ALL
724 CROSS
725 CATOBJEXT
726 GENCAT
727 INSTOBJEXT
728 DATADIRNAME
729 CATALOGS
730 POSUB
731 GMSGFMT
732 XGETTEXT
733 INCINTL
734 LIBINTL_DEP
735 LIBINTL
736 USE_NLS
737 extra_opt_files
738 extra_modes_file
739 NATIVE_SYSTEM_HEADER_DIR
740 objext
741 manext
742 LIBICONV_DEP
743 LTLIBICONV
744 LIBICONV
745 LDEXP_LIB
746 EXTRA_GCC_LIBS
747 GNAT_LIBEXC
748 COLLECT2_LIBS
749 CXXDEPMODE
750 DEPDIR
751 am__leading_dot
752 doc_build_sys
753 AR
754 NM
755 BISON
756 FLEX
757 GENERATED_MANPAGES
758 BUILD_INFO
759 MAKEINFO
760 have_mktemp_command
761 make_compare_target
762 INSTALL_DATA
763 INSTALL_PROGRAM
764 INSTALL
765 ranlib_flags
766 RANLIB
767 LN
768 LN_S
769 AWK
770 SET_MAKE
771 accel_dir_suffix
772 real_target_noncanonical
773 enable_as_accelerator
774 REPORT_BUGS_TEXI
775 REPORT_BUGS_TO
776 PKGVERSION
777 CONFIGURE_SPECS
778 enable_shared
779 enable_fixed_point
780 enable_decimal_float
781 with_float
782 with_cpu
783 enable_multiarch
784 enable_multilib
785 coverage_flags
786 valgrind_command
787 valgrind_path_defines
788 valgrind_path
789 TREECHECKING
790 nocommon_flag
791 noexception_flags
792 warn_cxxflags
793 warn_cflags
794 c_strict_warn
795 strict_warn
796 c_loose_warn
797 loose_warn
798 aliasing_flags
799 CPP
800 EGREP
801 GREP
802 CXXCPP
803 PICFLAG_FOR_TARGET
804 GNATMAKE
805 GNATBIND
806 ac_ct_CXX
807 CXXFLAGS
808 CXX
809 OBJEXT
810 EXEEXT
811 ac_ct_CC
812 CPPFLAGS
813 LDFLAGS
814 CFLAGS
815 CC
816 GENINSRC
817 CROSS_SYSTEM_HEADER_DIR
818 TARGET_SYSTEM_ROOT_DEFINE
819 TARGET_SYSTEM_ROOT
820 SYSROOT_CFLAGS_FOR_TARGET
821 target_subdir
822 host_subdir
823 build_subdir
824 build_libsubdir
825 target_noncanonical
826 host_noncanonical
827 target_os
828 target_vendor
829 target_cpu
830 target
831 host_os
832 host_vendor
833 host_cpu
834 host
835 build_os
836 build_vendor
837 build_cpu
838 build
839 target_alias
840 host_alias
841 build_alias
842 LIBS
843 ECHO_T
844 ECHO_N
845 ECHO_C
846 DEFS
847 mandir
848 localedir
849 libdir
850 psdir
851 pdfdir
852 dvidir
853 htmldir
854 infodir
855 docdir
856 oldincludedir
857 includedir
858 localstatedir
859 sharedstatedir
860 sysconfdir
861 datadir
862 datarootdir
863 libexecdir
864 sbindir
865 bindir
866 program_transform_name
867 prefix
868 exec_prefix
869 PACKAGE_URL
870 PACKAGE_BUGREPORT
871 PACKAGE_STRING
872 PACKAGE_VERSION
873 PACKAGE_TARNAME
874 PACKAGE_NAME
875 PATH_SEPARATOR
876 SHELL'
877 ac_subst_files='option_includes
878 language_hooks'
879 ac_user_opts='
880 enable_option_checking
881 with_build_libsubdir
882 with_local_prefix
883 with_native_system_header_dir
884 with_build_sysroot
885 with_sysroot
886 with_gxx_include_dir
887 with_cpp_install_dir
888 enable_generated_files_in_srcdir
889 with_gnu_ld
890 with_ld
891 with_demangler_in_ld
892 with_gnu_as
893 with_as
894 enable_largefile
895 enable_build_format_warnings
896 enable_werror_always
897 enable_checking
898 enable_coverage
899 enable_gather_detailed_mem_stats
900 enable_valgrind_annotations
901 with_stabs
902 enable_multilib
903 enable_multiarch
904 enable___cxa_atexit
905 enable_decimal_float
906 enable_fixed_point
907 enable_threads
908 enable_tls
909 enable_vtable_verify
910 enable_objc_gc
911 with_dwarf2
912 enable_shared
913 with_specs
914 with_pkgversion
915 with_bugurl
916 enable_languages
917 with_multilib_list
918 enable_rpath
919 with_libiconv_prefix
920 enable_sjlj_exceptions
921 enable_secureplt
922 enable_leading_mingw64_underscores
923 enable_cld
924 enable_frame_pointer
925 enable_win32_registry
926 enable_static
927 with_pic
928 enable_fast_install
929 enable_libtool_lock
930 enable_ld
931 enable_gold
932 with_plugin_ld
933 enable_gnu_indirect_function
934 enable_initfini_array
935 enable_comdat
936 enable_fix_cortex_a53_835769
937 enable_fix_cortex_a53_843419
938 with_glibc_version
939 enable_gnu_unique_object
940 enable_linker_build_id
941 enable_default_ssp
942 with_long_double_128
943 with_gc
944 with_system_zlib
945 enable_maintainer_mode
946 enable_link_mutex
947 enable_version_specific_runtime_libs
948 enable_plugin
949 enable_host_shared
950 enable_libquadmath_support
951 with_linker_hash_style
952 with_diagnostics_color
953 enable_default_pie
954 '
955 ac_precious_vars='build_alias
956 host_alias
957 target_alias
958 CC
959 CFLAGS
960 LDFLAGS
961 LIBS
962 CPPFLAGS
963 CXX
964 CXXFLAGS
965 CCC
966 CXXCPP
967 CPP
968 GMPLIBS
969 GMPINC
970 ISLLIBS
971 ISLINC'
972
973
974 # Initialize some variables set by options.
975 ac_init_help=
976 ac_init_version=false
977 ac_unrecognized_opts=
978 ac_unrecognized_sep=
979 # The variables have the same names as the options, with
980 # dashes changed to underlines.
981 cache_file=/dev/null
982 exec_prefix=NONE
983 no_create=
984 no_recursion=
985 prefix=NONE
986 program_prefix=NONE
987 program_suffix=NONE
988 program_transform_name=s,x,x,
989 silent=
990 site=
991 srcdir=
992 verbose=
993 x_includes=NONE
994 x_libraries=NONE
995
996 # Installation directory options.
997 # These are left unexpanded so users can "make install exec_prefix=/foo"
998 # and all the variables that are supposed to be based on exec_prefix
999 # by default will actually change.
1000 # Use braces instead of parens because sh, perl, etc. also accept them.
1001 # (The list follows the same order as the GNU Coding Standards.)
1002 bindir='${exec_prefix}/bin'
1003 sbindir='${exec_prefix}/sbin'
1004 libexecdir='${exec_prefix}/libexec'
1005 datarootdir='${prefix}/share'
1006 datadir='${datarootdir}'
1007 sysconfdir='${prefix}/etc'
1008 sharedstatedir='${prefix}/com'
1009 localstatedir='${prefix}/var'
1010 includedir='${prefix}/include'
1011 oldincludedir='/usr/include'
1012 docdir='${datarootdir}/doc/${PACKAGE}'
1013 infodir='${datarootdir}/info'
1014 htmldir='${docdir}'
1015 dvidir='${docdir}'
1016 pdfdir='${docdir}'
1017 psdir='${docdir}'
1018 libdir='${exec_prefix}/lib'
1019 localedir='${datarootdir}/locale'
1020 mandir='${datarootdir}/man'
1021
1022 ac_prev=
1023 ac_dashdash=
1024 for ac_option
1025 do
1026 # If the previous option needs an argument, assign it.
1027 if test -n "$ac_prev"; then
1028 eval $ac_prev=\$ac_option
1029 ac_prev=
1030 continue
1031 fi
1032
1033 case $ac_option in
1034 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1035 *) ac_optarg=yes ;;
1036 esac
1037
1038 # Accept the important Cygnus configure options, so we can diagnose typos.
1039
1040 case $ac_dashdash$ac_option in
1041 --)
1042 ac_dashdash=yes ;;
1043
1044 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1045 ac_prev=bindir ;;
1046 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1047 bindir=$ac_optarg ;;
1048
1049 -build | --build | --buil | --bui | --bu)
1050 ac_prev=build_alias ;;
1051 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1052 build_alias=$ac_optarg ;;
1053
1054 -cache-file | --cache-file | --cache-fil | --cache-fi \
1055 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1056 ac_prev=cache_file ;;
1057 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1058 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1059 cache_file=$ac_optarg ;;
1060
1061 --config-cache | -C)
1062 cache_file=config.cache ;;
1063
1064 -datadir | --datadir | --datadi | --datad)
1065 ac_prev=datadir ;;
1066 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1067 datadir=$ac_optarg ;;
1068
1069 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1070 | --dataroo | --dataro | --datar)
1071 ac_prev=datarootdir ;;
1072 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1073 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1074 datarootdir=$ac_optarg ;;
1075
1076 -disable-* | --disable-*)
1077 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080 as_fn_error "invalid feature name: $ac_useropt"
1081 ac_useropt_orig=$ac_useropt
1082 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1084 *"
1085 "enable_$ac_useropt"
1086 "*) ;;
1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1088 ac_unrecognized_sep=', ';;
1089 esac
1090 eval enable_$ac_useropt=no ;;
1091
1092 -docdir | --docdir | --docdi | --doc | --do)
1093 ac_prev=docdir ;;
1094 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1095 docdir=$ac_optarg ;;
1096
1097 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1098 ac_prev=dvidir ;;
1099 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1100 dvidir=$ac_optarg ;;
1101
1102 -enable-* | --enable-*)
1103 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106 as_fn_error "invalid feature name: $ac_useropt"
1107 ac_useropt_orig=$ac_useropt
1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1110 *"
1111 "enable_$ac_useropt"
1112 "*) ;;
1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1114 ac_unrecognized_sep=', ';;
1115 esac
1116 eval enable_$ac_useropt=\$ac_optarg ;;
1117
1118 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1119 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1120 | --exec | --exe | --ex)
1121 ac_prev=exec_prefix ;;
1122 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1123 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1124 | --exec=* | --exe=* | --ex=*)
1125 exec_prefix=$ac_optarg ;;
1126
1127 -gas | --gas | --ga | --g)
1128 # Obsolete; use --with-gas.
1129 with_gas=yes ;;
1130
1131 -help | --help | --hel | --he | -h)
1132 ac_init_help=long ;;
1133 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1134 ac_init_help=recursive ;;
1135 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1136 ac_init_help=short ;;
1137
1138 -host | --host | --hos | --ho)
1139 ac_prev=host_alias ;;
1140 -host=* | --host=* | --hos=* | --ho=*)
1141 host_alias=$ac_optarg ;;
1142
1143 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1144 ac_prev=htmldir ;;
1145 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1146 | --ht=*)
1147 htmldir=$ac_optarg ;;
1148
1149 -includedir | --includedir | --includedi | --included | --include \
1150 | --includ | --inclu | --incl | --inc)
1151 ac_prev=includedir ;;
1152 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1153 | --includ=* | --inclu=* | --incl=* | --inc=*)
1154 includedir=$ac_optarg ;;
1155
1156 -infodir | --infodir | --infodi | --infod | --info | --inf)
1157 ac_prev=infodir ;;
1158 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1159 infodir=$ac_optarg ;;
1160
1161 -libdir | --libdir | --libdi | --libd)
1162 ac_prev=libdir ;;
1163 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1164 libdir=$ac_optarg ;;
1165
1166 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1167 | --libexe | --libex | --libe)
1168 ac_prev=libexecdir ;;
1169 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1170 | --libexe=* | --libex=* | --libe=*)
1171 libexecdir=$ac_optarg ;;
1172
1173 -localedir | --localedir | --localedi | --localed | --locale)
1174 ac_prev=localedir ;;
1175 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1176 localedir=$ac_optarg ;;
1177
1178 -localstatedir | --localstatedir | --localstatedi | --localstated \
1179 | --localstate | --localstat | --localsta | --localst | --locals)
1180 ac_prev=localstatedir ;;
1181 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1182 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1183 localstatedir=$ac_optarg ;;
1184
1185 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1186 ac_prev=mandir ;;
1187 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1188 mandir=$ac_optarg ;;
1189
1190 -nfp | --nfp | --nf)
1191 # Obsolete; use --without-fp.
1192 with_fp=no ;;
1193
1194 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1195 | --no-cr | --no-c | -n)
1196 no_create=yes ;;
1197
1198 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1199 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1200 no_recursion=yes ;;
1201
1202 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1203 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1204 | --oldin | --oldi | --old | --ol | --o)
1205 ac_prev=oldincludedir ;;
1206 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1207 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1208 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1209 oldincludedir=$ac_optarg ;;
1210
1211 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1212 ac_prev=prefix ;;
1213 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1214 prefix=$ac_optarg ;;
1215
1216 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1217 | --program-pre | --program-pr | --program-p)
1218 ac_prev=program_prefix ;;
1219 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1220 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1221 program_prefix=$ac_optarg ;;
1222
1223 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1224 | --program-suf | --program-su | --program-s)
1225 ac_prev=program_suffix ;;
1226 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1227 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1228 program_suffix=$ac_optarg ;;
1229
1230 -program-transform-name | --program-transform-name \
1231 | --program-transform-nam | --program-transform-na \
1232 | --program-transform-n | --program-transform- \
1233 | --program-transform | --program-transfor \
1234 | --program-transfo | --program-transf \
1235 | --program-trans | --program-tran \
1236 | --progr-tra | --program-tr | --program-t)
1237 ac_prev=program_transform_name ;;
1238 -program-transform-name=* | --program-transform-name=* \
1239 | --program-transform-nam=* | --program-transform-na=* \
1240 | --program-transform-n=* | --program-transform-=* \
1241 | --program-transform=* | --program-transfor=* \
1242 | --program-transfo=* | --program-transf=* \
1243 | --program-trans=* | --program-tran=* \
1244 | --progr-tra=* | --program-tr=* | --program-t=*)
1245 program_transform_name=$ac_optarg ;;
1246
1247 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1248 ac_prev=pdfdir ;;
1249 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1250 pdfdir=$ac_optarg ;;
1251
1252 -psdir | --psdir | --psdi | --psd | --ps)
1253 ac_prev=psdir ;;
1254 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1255 psdir=$ac_optarg ;;
1256
1257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258 | -silent | --silent | --silen | --sile | --sil)
1259 silent=yes ;;
1260
1261 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1262 ac_prev=sbindir ;;
1263 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1264 | --sbi=* | --sb=*)
1265 sbindir=$ac_optarg ;;
1266
1267 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1268 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1269 | --sharedst | --shareds | --shared | --share | --shar \
1270 | --sha | --sh)
1271 ac_prev=sharedstatedir ;;
1272 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1273 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1274 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1275 | --sha=* | --sh=*)
1276 sharedstatedir=$ac_optarg ;;
1277
1278 -site | --site | --sit)
1279 ac_prev=site ;;
1280 -site=* | --site=* | --sit=*)
1281 site=$ac_optarg ;;
1282
1283 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1284 ac_prev=srcdir ;;
1285 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1286 srcdir=$ac_optarg ;;
1287
1288 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1289 | --syscon | --sysco | --sysc | --sys | --sy)
1290 ac_prev=sysconfdir ;;
1291 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1292 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1293 sysconfdir=$ac_optarg ;;
1294
1295 -target | --target | --targe | --targ | --tar | --ta | --t)
1296 ac_prev=target_alias ;;
1297 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1298 target_alias=$ac_optarg ;;
1299
1300 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1301 verbose=yes ;;
1302
1303 -version | --version | --versio | --versi | --vers | -V)
1304 ac_init_version=: ;;
1305
1306 -with-* | --with-*)
1307 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1308 # Reject names that are not valid shell variable names.
1309 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1310 as_fn_error "invalid package name: $ac_useropt"
1311 ac_useropt_orig=$ac_useropt
1312 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1313 case $ac_user_opts in
1314 *"
1315 "with_$ac_useropt"
1316 "*) ;;
1317 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1318 ac_unrecognized_sep=', ';;
1319 esac
1320 eval with_$ac_useropt=\$ac_optarg ;;
1321
1322 -without-* | --without-*)
1323 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1326 as_fn_error "invalid package name: $ac_useropt"
1327 ac_useropt_orig=$ac_useropt
1328 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1329 case $ac_user_opts in
1330 *"
1331 "with_$ac_useropt"
1332 "*) ;;
1333 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1334 ac_unrecognized_sep=', ';;
1335 esac
1336 eval with_$ac_useropt=no ;;
1337
1338 --x)
1339 # Obsolete; use --with-x.
1340 with_x=yes ;;
1341
1342 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1343 | --x-incl | --x-inc | --x-in | --x-i)
1344 ac_prev=x_includes ;;
1345 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1346 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1347 x_includes=$ac_optarg ;;
1348
1349 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1350 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1351 ac_prev=x_libraries ;;
1352 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1353 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1354 x_libraries=$ac_optarg ;;
1355
1356 -*) as_fn_error "unrecognized option: \`$ac_option'
1357 Try \`$0 --help' for more information."
1358 ;;
1359
1360 *=*)
1361 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1362 # Reject names that are not valid shell variable names.
1363 case $ac_envvar in #(
1364 '' | [0-9]* | *[!_$as_cr_alnum]* )
1365 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1366 esac
1367 eval $ac_envvar=\$ac_optarg
1368 export $ac_envvar ;;
1369
1370 *)
1371 # FIXME: should be removed in autoconf 3.0.
1372 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1373 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1374 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1375 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1376 ;;
1377
1378 esac
1379 done
1380
1381 if test -n "$ac_prev"; then
1382 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1383 as_fn_error "missing argument to $ac_option"
1384 fi
1385
1386 if test -n "$ac_unrecognized_opts"; then
1387 case $enable_option_checking in
1388 no) ;;
1389 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1390 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1391 esac
1392 fi
1393
1394 # Check all directory arguments for consistency.
1395 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1396 datadir sysconfdir sharedstatedir localstatedir includedir \
1397 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1398 libdir localedir mandir
1399 do
1400 eval ac_val=\$$ac_var
1401 # Remove trailing slashes.
1402 case $ac_val in
1403 */ )
1404 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1405 eval $ac_var=\$ac_val;;
1406 esac
1407 # Be sure to have absolute directory names.
1408 case $ac_val in
1409 [\\/$]* | ?:[\\/]* ) continue;;
1410 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1411 esac
1412 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1413 done
1414
1415 # There might be people who depend on the old broken behavior: `$host'
1416 # used to hold the argument of --host etc.
1417 # FIXME: To remove some day.
1418 build=$build_alias
1419 host=$host_alias
1420 target=$target_alias
1421
1422 # FIXME: To remove some day.
1423 if test "x$host_alias" != x; then
1424 if test "x$build_alias" = x; then
1425 cross_compiling=maybe
1426 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1427 If a cross compiler is detected then cross compile mode will be used." >&2
1428 elif test "x$build_alias" != "x$host_alias"; then
1429 cross_compiling=yes
1430 fi
1431 fi
1432
1433 ac_tool_prefix=
1434 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1435
1436 test "$silent" = yes && exec 6>/dev/null
1437
1438
1439 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1440 ac_ls_di=`ls -di .` &&
1441 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1442 as_fn_error "working directory cannot be determined"
1443 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1444 as_fn_error "pwd does not report name of working directory"
1445
1446
1447 # Find the source files, if location was not specified.
1448 if test -z "$srcdir"; then
1449 ac_srcdir_defaulted=yes
1450 # Try the directory containing this script, then the parent directory.
1451 ac_confdir=`$as_dirname -- "$as_myself" ||
1452 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1453 X"$as_myself" : 'X\(//\)[^/]' \| \
1454 X"$as_myself" : 'X\(//\)$' \| \
1455 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1456 $as_echo X"$as_myself" |
1457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1458 s//\1/
1459 q
1460 }
1461 /^X\(\/\/\)[^/].*/{
1462 s//\1/
1463 q
1464 }
1465 /^X\(\/\/\)$/{
1466 s//\1/
1467 q
1468 }
1469 /^X\(\/\).*/{
1470 s//\1/
1471 q
1472 }
1473 s/.*/./; q'`
1474 srcdir=$ac_confdir
1475 if test ! -r "$srcdir/$ac_unique_file"; then
1476 srcdir=..
1477 fi
1478 else
1479 ac_srcdir_defaulted=no
1480 fi
1481 if test ! -r "$srcdir/$ac_unique_file"; then
1482 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1483 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1484 fi
1485 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1486 ac_abs_confdir=`(
1487 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1488 pwd)`
1489 # When building in place, set srcdir=.
1490 if test "$ac_abs_confdir" = "$ac_pwd"; then
1491 srcdir=.
1492 fi
1493 # Remove unnecessary trailing slashes from srcdir.
1494 # Double slashes in file names in object file debugging info
1495 # mess up M-x gdb in Emacs.
1496 case $srcdir in
1497 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1498 esac
1499 for ac_var in $ac_precious_vars; do
1500 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1501 eval ac_env_${ac_var}_value=\$${ac_var}
1502 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1503 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1504 done
1505
1506 #
1507 # Report the --help message.
1508 #
1509 if test "$ac_init_help" = "long"; then
1510 # Omit some internal or obsolete options to make the list less imposing.
1511 # This message is too long to be a string in the A/UX 3.1 sh.
1512 cat <<_ACEOF
1513 \`configure' configures this package to adapt to many kinds of systems.
1514
1515 Usage: $0 [OPTION]... [VAR=VALUE]...
1516
1517 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1518 VAR=VALUE. See below for descriptions of some of the useful variables.
1519
1520 Defaults for the options are specified in brackets.
1521
1522 Configuration:
1523 -h, --help display this help and exit
1524 --help=short display options specific to this package
1525 --help=recursive display the short help of all the included packages
1526 -V, --version display version information and exit
1527 -q, --quiet, --silent do not print \`checking...' messages
1528 --cache-file=FILE cache test results in FILE [disabled]
1529 -C, --config-cache alias for \`--cache-file=config.cache'
1530 -n, --no-create do not create output files
1531 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1532
1533 Installation directories:
1534 --prefix=PREFIX install architecture-independent files in PREFIX
1535 [$ac_default_prefix]
1536 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1537 [PREFIX]
1538
1539 By default, \`make install' will install all the files in
1540 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1541 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1542 for instance \`--prefix=\$HOME'.
1543
1544 For better control, use the options below.
1545
1546 Fine tuning of the installation directories:
1547 --bindir=DIR user executables [EPREFIX/bin]
1548 --sbindir=DIR system admin executables [EPREFIX/sbin]
1549 --libexecdir=DIR program executables [EPREFIX/libexec]
1550 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1551 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1552 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1553 --libdir=DIR object code libraries [EPREFIX/lib]
1554 --includedir=DIR C header files [PREFIX/include]
1555 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1556 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1557 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1558 --infodir=DIR info documentation [DATAROOTDIR/info]
1559 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1560 --mandir=DIR man documentation [DATAROOTDIR/man]
1561 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1562 --htmldir=DIR html documentation [DOCDIR]
1563 --dvidir=DIR dvi documentation [DOCDIR]
1564 --pdfdir=DIR pdf documentation [DOCDIR]
1565 --psdir=DIR ps documentation [DOCDIR]
1566 _ACEOF
1567
1568 cat <<\_ACEOF
1569
1570 Program names:
1571 --program-prefix=PREFIX prepend PREFIX to installed program names
1572 --program-suffix=SUFFIX append SUFFIX to installed program names
1573 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1574
1575 System types:
1576 --build=BUILD configure for building on BUILD [guessed]
1577 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1578 --target=TARGET configure for building compilers for TARGET [HOST]
1579 _ACEOF
1580 fi
1581
1582 if test -n "$ac_init_help"; then
1583
1584 cat <<\_ACEOF
1585
1586 Optional Features:
1587 --disable-option-checking ignore unrecognized --enable/--with options
1588 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1589 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1590 --enable-generated-files-in-srcdir
1591 put copies of generated files in source dir intended
1592 for creating source tarballs for users without
1593 texinfo bison or flex
1594 --disable-largefile omit support for large files
1595 --disable-build-format-warnings
1596 don't use -Wformat while building GCC
1597 --enable-werror-always enable -Werror despite compiler version
1598 --enable-checking[=LIST]
1599 enable expensive run-time checks. With LIST, enable
1600 only specific categories of checks. Categories are:
1601 yes,no,all,none,release. Flags are:
1602 assert,df,extra,fold,gc,gcac,gimple,misc,
1603 rtlflag,rtl,runtime,tree,valgrind,types
1604 --enable-coverage[=LEVEL]
1605 enable compiler's code coverage collection. Use to
1606 measure compiler performance and locate unused parts
1607 of the compiler. With LEVEL, specify optimization.
1608 Values are opt, noopt, default is noopt
1609 --enable-gather-detailed-mem-stats
1610 enable detailed memory allocation stats gathering
1611 --enable-valgrind-annotations
1612 enable valgrind runtime interaction
1613 --enable-multilib enable library support for multiple ABIs
1614 --enable-multiarch enable support for multiarch paths
1615 --enable-__cxa_atexit enable __cxa_atexit for C++
1616 --enable-decimal-float={no,yes,bid,dpd}
1617 enable decimal float extension to C. Selecting 'bid'
1618 or 'dpd' choses which decimal floating point format
1619 to use
1620 --enable-fixed-point enable fixed-point arithmetic extension to C
1621 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1622 package
1623 --enable-tls enable or disable generation of tls code overriding
1624 the assembler check for tls support
1625 --enable-vtable-verify enable vtable verification feature
1626 --enable-objc-gc enable the use of Boehm's garbage collector with the
1627 GNU Objective-C runtime
1628 --disable-shared don't provide a shared libgcc
1629 --enable-languages=LIST specify which front-ends to build
1630 --disable-rpath do not hardcode runtime library paths
1631 --enable-sjlj-exceptions
1632 arrange to use setjmp/longjmp exception handling
1633 --enable-secureplt enable -msecure-plt by default for PowerPC
1634 --enable-leading-mingw64-underscores
1635 enable leading underscores on 64 bit mingw targets
1636 --enable-cld enable -mcld by default for 32bit x86
1637 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1638 x86
1639 --disable-win32-registry
1640 disable lookup of installation paths in the Registry
1641 on Windows hosts
1642 --enable-win32-registry enable registry lookup (default)
1643 --enable-win32-registry=KEY
1644 use KEY instead of GCC version as the last portion
1645 of the registry key
1646 --enable-shared[=PKGS] build shared libraries [default=yes]
1647 --enable-static[=PKGS] build static libraries [default=yes]
1648 --enable-fast-install[=PKGS]
1649 optimize for fast installation [default=yes]
1650 --disable-libtool-lock avoid locking (might break parallel builds)
1651 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1652 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1653 --enable-gnu-indirect-function
1654 enable the use of the @gnu_indirect_function to
1655 glibc systems
1656 --enable-initfini-array use .init_array/.fini_array sections
1657 --enable-comdat enable COMDAT group support
1658
1659 --enable-fix-cortex-a53-835769
1660 enable workaround for AArch64 Cortex-A53 erratum
1661 835769 by default
1662 --disable-fix-cortex-a53-835769
1663 disable workaround for AArch64 Cortex-A53 erratum
1664 835769 by default
1665
1666
1667 --enable-fix-cortex-a53-843419
1668 enable workaround for AArch64 Cortex-A53 erratum
1669 843419 by default
1670 --disable-fix-cortex-a53-843419
1671 disable workaround for AArch64 Cortex-A53 erratum
1672 843419 by default
1673
1674 --enable-gnu-unique-object
1675 enable the use of the @gnu_unique_object ELF
1676 extension on glibc systems
1677 --enable-linker-build-id
1678 compiler will always pass --build-id to linker
1679 --enable-default-ssp enable Stack Smashing Protection as default
1680 --enable-maintainer-mode
1681 enable make rules and dependencies not useful (and
1682 sometimes confusing) to the casual installer
1683 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1684 thrashing on the build machine
1685 --enable-version-specific-runtime-libs
1686 specify that runtime libraries should be installed
1687 in a compiler-specific directory
1688 --enable-plugin enable plugin support
1689 --enable-host-shared build host code as shared libraries
1690 --disable-libquadmath-support
1691 disable libquadmath support for Fortran
1692 --enable-default-pie enable Position Independent Executable as default
1693
1694 Optional Packages:
1695 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1696 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1697 --with-build-libsubdir=DIR Directory where to find libraries for build system
1698 --with-local-prefix=DIR specifies directory to put local include
1699 --with-native-system-header-dir=dir
1700 use dir as the directory to look for standard
1701 system header files in. Defaults to /usr/include.
1702 --with-build-sysroot=sysroot
1703 use sysroot as the system root during the build
1704 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1705 --with-gxx-include-dir=DIR
1706 specifies directory to put g++ header files
1707 --with-cpp-install-dir=DIR
1708 install the user visible C preprocessor in DIR
1709 (relative to PREFIX) as well as PREFIX/bin
1710 --with-gnu-ld arrange to work with GNU ld
1711 --with-ld arrange to use the specified ld (full pathname)
1712 --with-demangler-in-ld try to use demangler in GNU ld
1713 --with-gnu-as arrange to work with GNU as
1714 --with-as arrange to use the specified as (full pathname)
1715 --with-stabs arrange to use stabs instead of host debug format
1716 --with-dwarf2 force the default debug format to be DWARF 2
1717 --with-specs=SPECS add SPECS to driver command-line processing
1718 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1719 --with-bugurl=URL Direct users to URL to report a bug
1720 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1721 --with-gnu-ld assume the C compiler uses GNU ld default=no
1722 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1723 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1724 --with-pic try to use only PIC/non-PIC objects [default=use
1725 both]
1726 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1727 --with-plugin-ld=[ARG] specify the plugin linker
1728 --with-glibc-version=M.N
1729 assume GCC used with glibc version M.N or later
1730 --with-long-double-128 use 128-bit long double by default
1731 --with-gc={page,zone} this option is not supported anymore. It used to
1732 choose the garbage collection mechanism to use with
1733 the compiler
1734 --with-system-zlib use installed libz
1735 --with-linker-hash-style={sysv,gnu,both}
1736 specify the linker hash style
1737 --with-diagnostics-color={never,auto,auto-if-env,always}
1738 specify the default of -fdiagnostics-color option
1739 auto-if-env stands for -fdiagnostics-color=auto if
1740 GCC_COLOR environment variable is present and
1741 -fdiagnostics-color=never otherwise
1742
1743 Some influential environment variables:
1744 CC C compiler command
1745 CFLAGS C compiler flags
1746 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1747 nonstandard directory <lib dir>
1748 LIBS libraries to pass to the linker, e.g. -l<library>
1749 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1750 you have headers in a nonstandard directory <include dir>
1751 CXX C++ compiler command
1752 CXXFLAGS C++ compiler flags
1753 CXXCPP C++ preprocessor
1754 CPP C preprocessor
1755 GMPLIBS How to link GMP
1756 GMPINC How to find GMP include files
1757 ISLLIBS How to link isl
1758 ISLINC How to find isl include files
1759
1760 Use these variables to override the choices made by `configure' or to help
1761 it to find libraries and programs with nonstandard names/locations.
1762
1763 Report bugs to the package provider.
1764 _ACEOF
1765 ac_status=$?
1766 fi
1767
1768 if test "$ac_init_help" = "recursive"; then
1769 # If there are subdirs, report their specific --help.
1770 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1771 test -d "$ac_dir" ||
1772 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1773 continue
1774 ac_builddir=.
1775
1776 case "$ac_dir" in
1777 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1778 *)
1779 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1780 # A ".." for each directory in $ac_dir_suffix.
1781 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1782 case $ac_top_builddir_sub in
1783 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1784 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1785 esac ;;
1786 esac
1787 ac_abs_top_builddir=$ac_pwd
1788 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1789 # for backward compatibility:
1790 ac_top_builddir=$ac_top_build_prefix
1791
1792 case $srcdir in
1793 .) # We are building in place.
1794 ac_srcdir=.
1795 ac_top_srcdir=$ac_top_builddir_sub
1796 ac_abs_top_srcdir=$ac_pwd ;;
1797 [\\/]* | ?:[\\/]* ) # Absolute name.
1798 ac_srcdir=$srcdir$ac_dir_suffix;
1799 ac_top_srcdir=$srcdir
1800 ac_abs_top_srcdir=$srcdir ;;
1801 *) # Relative name.
1802 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1803 ac_top_srcdir=$ac_top_build_prefix$srcdir
1804 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1805 esac
1806 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1807
1808 cd "$ac_dir" || { ac_status=$?; continue; }
1809 # Check for guested configure.
1810 if test -f "$ac_srcdir/configure.gnu"; then
1811 echo &&
1812 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1813 elif test -f "$ac_srcdir/configure"; then
1814 echo &&
1815 $SHELL "$ac_srcdir/configure" --help=recursive
1816 else
1817 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1818 fi || ac_status=$?
1819 cd "$ac_pwd" || { ac_status=$?; break; }
1820 done
1821 fi
1822
1823 test -n "$ac_init_help" && exit $ac_status
1824 if $ac_init_version; then
1825 cat <<\_ACEOF
1826 configure
1827 generated by GNU Autoconf 2.64
1828
1829 Copyright (C) 2009 Free Software Foundation, Inc.
1830 This configure script is free software; the Free Software Foundation
1831 gives unlimited permission to copy, distribute and modify it.
1832 _ACEOF
1833 exit
1834 fi
1835
1836 ## ------------------------ ##
1837 ## Autoconf initialization. ##
1838 ## ------------------------ ##
1839
1840 # ac_fn_c_try_compile LINENO
1841 # --------------------------
1842 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1843 ac_fn_c_try_compile ()
1844 {
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 rm -f conftest.$ac_objext
1847 if { { ac_try="$ac_compile"
1848 case "(($ac_try" in
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1851 esac
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_compile") 2>conftest.err
1855 ac_status=$?
1856 if test -s conftest.err; then
1857 grep -v '^ *+' conftest.err >conftest.er1
1858 cat conftest.er1 >&5
1859 mv -f conftest.er1 conftest.err
1860 fi
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && {
1863 test -z "$ac_c_werror_flag" ||
1864 test ! -s conftest.err
1865 } && test -s conftest.$ac_objext; then :
1866 ac_retval=0
1867 else
1868 $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1870
1871 ac_retval=1
1872 fi
1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874 return $ac_retval
1875
1876 } # ac_fn_c_try_compile
1877
1878 # ac_fn_cxx_try_compile LINENO
1879 # ----------------------------
1880 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1881 ac_fn_cxx_try_compile ()
1882 {
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 rm -f conftest.$ac_objext
1885 if { { ac_try="$ac_compile"
1886 case "(($ac_try" in
1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888 *) ac_try_echo=$ac_try;;
1889 esac
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892 (eval "$ac_compile") 2>conftest.err
1893 ac_status=$?
1894 if test -s conftest.err; then
1895 grep -v '^ *+' conftest.err >conftest.er1
1896 cat conftest.er1 >&5
1897 mv -f conftest.er1 conftest.err
1898 fi
1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; } && {
1901 test -z "$ac_cxx_werror_flag" ||
1902 test ! -s conftest.err
1903 } && test -s conftest.$ac_objext; then :
1904 ac_retval=0
1905 else
1906 $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1908
1909 ac_retval=1
1910 fi
1911 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1912 return $ac_retval
1913
1914 } # ac_fn_cxx_try_compile
1915
1916 # ac_fn_cxx_try_cpp LINENO
1917 # ------------------------
1918 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1919 ac_fn_cxx_try_cpp ()
1920 {
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 if { { ac_try="$ac_cpp conftest.$ac_ext"
1923 case "(($ac_try" in
1924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1925 *) ac_try_echo=$ac_try;;
1926 esac
1927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1928 $as_echo "$ac_try_echo"; } >&5
1929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1930 ac_status=$?
1931 if test -s conftest.err; then
1932 grep -v '^ *+' conftest.err >conftest.er1
1933 cat conftest.er1 >&5
1934 mv -f conftest.er1 conftest.err
1935 fi
1936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1937 test $ac_status = 0; } >/dev/null && {
1938 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1939 test ! -s conftest.err
1940 }; then :
1941 ac_retval=0
1942 else
1943 $as_echo "$as_me: failed program was:" >&5
1944 sed 's/^/| /' conftest.$ac_ext >&5
1945
1946 ac_retval=1
1947 fi
1948 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1949 return $ac_retval
1950
1951 } # ac_fn_cxx_try_cpp
1952
1953 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1954 # ---------------------------------------------------------
1955 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1956 # the include files in INCLUDES and setting the cache variable VAR
1957 # accordingly.
1958 ac_fn_cxx_check_header_mongrel ()
1959 {
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963 $as_echo_n "checking for $2... " >&6; }
1964 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1965 $as_echo_n "(cached) " >&6
1966 fi
1967 eval ac_res=\$$3
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1970 else
1971 # Is the header compilable?
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1973 $as_echo_n "checking $2 usability... " >&6; }
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1976 $4
1977 #include <$2>
1978 _ACEOF
1979 if ac_fn_cxx_try_compile "$LINENO"; then :
1980 ac_header_compiler=yes
1981 else
1982 ac_header_compiler=no
1983 fi
1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1986 $as_echo "$ac_header_compiler" >&6; }
1987
1988 # Is the header present?
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1990 $as_echo_n "checking $2 presence... " >&6; }
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
1993 #include <$2>
1994 _ACEOF
1995 if ac_fn_cxx_try_cpp "$LINENO"; then :
1996 ac_header_preproc=yes
1997 else
1998 ac_header_preproc=no
1999 fi
2000 rm -f conftest.err conftest.$ac_ext
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2002 $as_echo "$ac_header_preproc" >&6; }
2003
2004 # So? What about this header?
2005 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2006 yes:no: )
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2008 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2010 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2011 ;;
2012 no:yes:* )
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2014 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2016 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2018 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2020 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2022 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2023 ;;
2024 esac
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026 $as_echo_n "checking for $2... " >&6; }
2027 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2028 $as_echo_n "(cached) " >&6
2029 else
2030 eval "$3=\$ac_header_compiler"
2031 fi
2032 eval ac_res=\$$3
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034 $as_echo "$ac_res" >&6; }
2035 fi
2036 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2037
2038 } # ac_fn_cxx_check_header_mongrel
2039
2040 # ac_fn_cxx_try_run LINENO
2041 # ------------------------
2042 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2043 # that executables *can* be run.
2044 ac_fn_cxx_try_run ()
2045 {
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 if { { ac_try="$ac_link"
2048 case "(($ac_try" in
2049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2050 *) ac_try_echo=$ac_try;;
2051 esac
2052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2053 $as_echo "$ac_try_echo"; } >&5
2054 (eval "$ac_link") 2>&5
2055 ac_status=$?
2056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2057 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2058 { { case "(($ac_try" in
2059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2060 *) ac_try_echo=$ac_try;;
2061 esac
2062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2063 $as_echo "$ac_try_echo"; } >&5
2064 (eval "$ac_try") 2>&5
2065 ac_status=$?
2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067 test $ac_status = 0; }; }; then :
2068 ac_retval=0
2069 else
2070 $as_echo "$as_me: program exited with status $ac_status" >&5
2071 $as_echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2073
2074 ac_retval=$ac_status
2075 fi
2076 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2077 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2078 return $ac_retval
2079
2080 } # ac_fn_cxx_try_run
2081
2082 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2083 # ---------------------------------------------------------
2084 # Tests whether HEADER exists and can be compiled using the include files in
2085 # INCLUDES, setting the cache variable VAR accordingly.
2086 ac_fn_cxx_check_header_compile ()
2087 {
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2090 $as_echo_n "checking for $2... " >&6; }
2091 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2092 $as_echo_n "(cached) " >&6
2093 else
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2096 $4
2097 #include <$2>
2098 _ACEOF
2099 if ac_fn_cxx_try_compile "$LINENO"; then :
2100 eval "$3=yes"
2101 else
2102 eval "$3=no"
2103 fi
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 fi
2106 eval ac_res=\$$3
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108 $as_echo "$ac_res" >&6; }
2109 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2110
2111 } # ac_fn_cxx_check_header_compile
2112
2113 # ac_fn_c_try_cpp LINENO
2114 # ----------------------
2115 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2116 ac_fn_c_try_cpp ()
2117 {
2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119 if { { ac_try="$ac_cpp conftest.$ac_ext"
2120 case "(($ac_try" in
2121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122 *) ac_try_echo=$ac_try;;
2123 esac
2124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2125 $as_echo "$ac_try_echo"; } >&5
2126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2127 ac_status=$?
2128 if test -s conftest.err; then
2129 grep -v '^ *+' conftest.err >conftest.er1
2130 cat conftest.er1 >&5
2131 mv -f conftest.er1 conftest.err
2132 fi
2133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2134 test $ac_status = 0; } >/dev/null && {
2135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2136 test ! -s conftest.err
2137 }; then :
2138 ac_retval=0
2139 else
2140 $as_echo "$as_me: failed program was:" >&5
2141 sed 's/^/| /' conftest.$ac_ext >&5
2142
2143 ac_retval=1
2144 fi
2145 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2146 return $ac_retval
2147
2148 } # ac_fn_c_try_cpp
2149
2150 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2151 # ----------------------------------------------
2152 # Tries to find the compile-time value of EXPR in a program that includes
2153 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2154 # computed
2155 ac_fn_cxx_compute_int ()
2156 {
2157 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2158 if test "$cross_compiling" = yes; then
2159 # Depending upon the size, compute the lo and hi bounds.
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2162 $4
2163 int
2164 main ()
2165 {
2166 static int test_array [1 - 2 * !(($2) >= 0)];
2167 test_array [0] = 0
2168
2169 ;
2170 return 0;
2171 }
2172 _ACEOF
2173 if ac_fn_cxx_try_compile "$LINENO"; then :
2174 ac_lo=0 ac_mid=0
2175 while :; do
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2178 $4
2179 int
2180 main ()
2181 {
2182 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2183 test_array [0] = 0
2184
2185 ;
2186 return 0;
2187 }
2188 _ACEOF
2189 if ac_fn_cxx_try_compile "$LINENO"; then :
2190 ac_hi=$ac_mid; break
2191 else
2192 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2193 if test $ac_lo -le $ac_mid; then
2194 ac_lo= ac_hi=
2195 break
2196 fi
2197 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2198 fi
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200 done
2201 else
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2204 $4
2205 int
2206 main ()
2207 {
2208 static int test_array [1 - 2 * !(($2) < 0)];
2209 test_array [0] = 0
2210
2211 ;
2212 return 0;
2213 }
2214 _ACEOF
2215 if ac_fn_cxx_try_compile "$LINENO"; then :
2216 ac_hi=-1 ac_mid=-1
2217 while :; do
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2220 $4
2221 int
2222 main ()
2223 {
2224 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2225 test_array [0] = 0
2226
2227 ;
2228 return 0;
2229 }
2230 _ACEOF
2231 if ac_fn_cxx_try_compile "$LINENO"; then :
2232 ac_lo=$ac_mid; break
2233 else
2234 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2235 if test $ac_mid -le $ac_hi; then
2236 ac_lo= ac_hi=
2237 break
2238 fi
2239 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2240 fi
2241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2242 done
2243 else
2244 ac_lo= ac_hi=
2245 fi
2246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247 fi
2248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249 # Binary search between lo and hi bounds.
2250 while test "x$ac_lo" != "x$ac_hi"; do
2251 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2254 $4
2255 int
2256 main ()
2257 {
2258 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2259 test_array [0] = 0
2260
2261 ;
2262 return 0;
2263 }
2264 _ACEOF
2265 if ac_fn_cxx_try_compile "$LINENO"; then :
2266 ac_hi=$ac_mid
2267 else
2268 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2269 fi
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 done
2272 case $ac_lo in #((
2273 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2274 '') ac_retval=1 ;;
2275 esac
2276 else
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h. */
2279 $4
2280 static long int longval () { return $2; }
2281 static unsigned long int ulongval () { return $2; }
2282 #include <stdio.h>
2283 #include <stdlib.h>
2284 int
2285 main ()
2286 {
2287
2288 FILE *f = fopen ("conftest.val", "w");
2289 if (! f)
2290 return 1;
2291 if (($2) < 0)
2292 {
2293 long int i = longval ();
2294 if (i != ($2))
2295 return 1;
2296 fprintf (f, "%ld", i);
2297 }
2298 else
2299 {
2300 unsigned long int i = ulongval ();
2301 if (i != ($2))
2302 return 1;
2303 fprintf (f, "%lu", i);
2304 }
2305 /* Do not output a trailing newline, as this causes \r\n confusion
2306 on some platforms. */
2307 return ferror (f) || fclose (f) != 0;
2308
2309 ;
2310 return 0;
2311 }
2312 _ACEOF
2313 if ac_fn_cxx_try_run "$LINENO"; then :
2314 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2315 else
2316 ac_retval=1
2317 fi
2318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2319 conftest.$ac_objext conftest.beam conftest.$ac_ext
2320 rm -f conftest.val
2321
2322 fi
2323 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2324 return $ac_retval
2325
2326 } # ac_fn_cxx_compute_int
2327
2328 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2329 # ---------------------------------------------
2330 # Tests whether TYPE exists after having included INCLUDES, setting cache
2331 # variable VAR accordingly.
2332 ac_fn_cxx_check_type ()
2333 {
2334 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2336 $as_echo_n "checking for $2... " >&6; }
2337 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2338 $as_echo_n "(cached) " >&6
2339 else
2340 eval "$3=no"
2341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2342 /* end confdefs.h. */
2343 $4
2344 int
2345 main ()
2346 {
2347 if (sizeof ($2))
2348 return 0;
2349 ;
2350 return 0;
2351 }
2352 _ACEOF
2353 if ac_fn_cxx_try_compile "$LINENO"; then :
2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h. */
2356 $4
2357 int
2358 main ()
2359 {
2360 if (sizeof (($2)))
2361 return 0;
2362 ;
2363 return 0;
2364 }
2365 _ACEOF
2366 if ac_fn_cxx_try_compile "$LINENO"; then :
2367
2368 else
2369 eval "$3=yes"
2370 fi
2371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2372 fi
2373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2374 fi
2375 eval ac_res=\$$3
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2377 $as_echo "$ac_res" >&6; }
2378 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2379
2380 } # ac_fn_cxx_check_type
2381
2382 # ac_fn_c_find_intX_t LINENO BITS VAR
2383 # -----------------------------------
2384 # Finds a signed integer type with width BITS, setting cache variable VAR
2385 # accordingly.
2386 ac_fn_c_find_intX_t ()
2387 {
2388 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2390 $as_echo_n "checking for int$2_t... " >&6; }
2391 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2392 $as_echo_n "(cached) " >&6
2393 else
2394 eval "$3=no"
2395 for ac_type in int$2_t 'int' 'long int' \
2396 'long long int' 'short int' 'signed char'; do
2397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2398 /* end confdefs.h. */
2399 $ac_includes_default
2400 int
2401 main ()
2402 {
2403 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2404 test_array [0] = 0
2405
2406 ;
2407 return 0;
2408 }
2409 _ACEOF
2410 if ac_fn_cxx_try_compile "$LINENO"; then :
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h. */
2413 $ac_includes_default
2414 int
2415 main ()
2416 {
2417 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2418 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2419 test_array [0] = 0
2420
2421 ;
2422 return 0;
2423 }
2424 _ACEOF
2425 if ac_fn_cxx_try_compile "$LINENO"; then :
2426
2427 else
2428 case $ac_type in #(
2429 int$2_t) :
2430 eval "$3=yes" ;; #(
2431 *) :
2432 eval "$3=\$ac_type" ;;
2433 esac
2434 fi
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2436 fi
2437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2438 eval as_val=\$$3
2439 if test "x$as_val" = x""no; then :
2440
2441 else
2442 break
2443 fi
2444 done
2445 fi
2446 eval ac_res=\$$3
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2448 $as_echo "$ac_res" >&6; }
2449 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2450
2451 } # ac_fn_c_find_intX_t
2452
2453 # ac_fn_cxx_try_link LINENO
2454 # -------------------------
2455 # Try to link conftest.$ac_ext, and return whether this succeeded.
2456 ac_fn_cxx_try_link ()
2457 {
2458 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2459 rm -f conftest.$ac_objext conftest$ac_exeext
2460 if { { ac_try="$ac_link"
2461 case "(($ac_try" in
2462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463 *) ac_try_echo=$ac_try;;
2464 esac
2465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2466 $as_echo "$ac_try_echo"; } >&5
2467 (eval "$ac_link") 2>conftest.err
2468 ac_status=$?
2469 if test -s conftest.err; then
2470 grep -v '^ *+' conftest.err >conftest.er1
2471 cat conftest.er1 >&5
2472 mv -f conftest.er1 conftest.err
2473 fi
2474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2475 test $ac_status = 0; } && {
2476 test -z "$ac_cxx_werror_flag" ||
2477 test ! -s conftest.err
2478 } && test -s conftest$ac_exeext && {
2479 test "$cross_compiling" = yes ||
2480 $as_test_x conftest$ac_exeext
2481 }; then :
2482 ac_retval=0
2483 else
2484 $as_echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.$ac_ext >&5
2486
2487 ac_retval=1
2488 fi
2489 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2490 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2491 # interfere with the next link command; also delete a directory that is
2492 # left behind by Apple's compiler. We do this before executing the actions.
2493 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2494 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2495 return $ac_retval
2496
2497 } # ac_fn_cxx_try_link
2498
2499 # ac_fn_c_find_uintX_t LINENO BITS VAR
2500 # ------------------------------------
2501 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2502 # accordingly.
2503 ac_fn_c_find_uintX_t ()
2504 {
2505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2507 $as_echo_n "checking for uint$2_t... " >&6; }
2508 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2509 $as_echo_n "(cached) " >&6
2510 else
2511 eval "$3=no"
2512 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2513 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2515 /* end confdefs.h. */
2516 $ac_includes_default
2517 int
2518 main ()
2519 {
2520 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2521 test_array [0] = 0
2522
2523 ;
2524 return 0;
2525 }
2526 _ACEOF
2527 if ac_fn_cxx_try_compile "$LINENO"; then :
2528 case $ac_type in #(
2529 uint$2_t) :
2530 eval "$3=yes" ;; #(
2531 *) :
2532 eval "$3=\$ac_type" ;;
2533 esac
2534 fi
2535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2536 eval as_val=\$$3
2537 if test "x$as_val" = x""no; then :
2538
2539 else
2540 break
2541 fi
2542 done
2543 fi
2544 eval ac_res=\$$3
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2546 $as_echo "$ac_res" >&6; }
2547 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2548
2549 } # ac_fn_c_find_uintX_t
2550
2551 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2552 # ------------------------------------------------
2553 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2554 ac_fn_cxx_check_header_preproc ()
2555 {
2556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2558 $as_echo_n "checking for $2... " >&6; }
2559 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2560 $as_echo_n "(cached) " >&6
2561 else
2562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2563 /* end confdefs.h. */
2564 #include <$2>
2565 _ACEOF
2566 if ac_fn_cxx_try_cpp "$LINENO"; then :
2567 eval "$3=yes"
2568 else
2569 eval "$3=no"
2570 fi
2571 rm -f conftest.err conftest.$ac_ext
2572 fi
2573 eval ac_res=\$$3
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2575 $as_echo "$ac_res" >&6; }
2576 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2577
2578 } # ac_fn_cxx_check_header_preproc
2579
2580 # ac_fn_cxx_check_func LINENO FUNC VAR
2581 # ------------------------------------
2582 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2583 ac_fn_cxx_check_func ()
2584 {
2585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2587 $as_echo_n "checking for $2... " >&6; }
2588 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2589 $as_echo_n "(cached) " >&6
2590 else
2591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h. */
2593 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2595 #define $2 innocuous_$2
2596
2597 /* System header to define __stub macros and hopefully few prototypes,
2598 which can conflict with char $2 (); below.
2599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2600 <limits.h> exists even on freestanding compilers. */
2601
2602 #ifdef __STDC__
2603 # include <limits.h>
2604 #else
2605 # include <assert.h>
2606 #endif
2607
2608 #undef $2
2609
2610 /* Override any GCC internal prototype to avoid an error.
2611 Use char because int might match the return type of a GCC
2612 builtin and then its argument prototype would still apply. */
2613 #ifdef __cplusplus
2614 extern "C"
2615 #endif
2616 char $2 ();
2617 /* The GNU C library defines this for functions which it implements
2618 to always fail with ENOSYS. Some functions are actually named
2619 something starting with __ and the normal name is an alias. */
2620 #if defined __stub_$2 || defined __stub___$2
2621 choke me
2622 #endif
2623
2624 int
2625 main ()
2626 {
2627 return $2 ();
2628 ;
2629 return 0;
2630 }
2631 _ACEOF
2632 if ac_fn_cxx_try_link "$LINENO"; then :
2633 eval "$3=yes"
2634 else
2635 eval "$3=no"
2636 fi
2637 rm -f core conftest.err conftest.$ac_objext \
2638 conftest$ac_exeext conftest.$ac_ext
2639 fi
2640 eval ac_res=\$$3
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2642 $as_echo "$ac_res" >&6; }
2643 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2644
2645 } # ac_fn_cxx_check_func
2646
2647 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2648 # --------------------------------------
2649 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2650 ac_fn_cxx_check_decl ()
2651 {
2652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2653 as_decl_name=`echo $2|sed 's/ *(.*//'`
2654 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2656 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2657 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2658 $as_echo_n "(cached) " >&6
2659 else
2660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2661 /* end confdefs.h. */
2662 $4
2663 int
2664 main ()
2665 {
2666 #ifndef $as_decl_name
2667 #ifdef __cplusplus
2668 (void) $as_decl_use;
2669 #else
2670 (void) $as_decl_name;
2671 #endif
2672 #endif
2673
2674 ;
2675 return 0;
2676 }
2677 _ACEOF
2678 if ac_fn_cxx_try_compile "$LINENO"; then :
2679 eval "$3=yes"
2680 else
2681 eval "$3=no"
2682 fi
2683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2684 fi
2685 eval ac_res=\$$3
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2687 $as_echo "$ac_res" >&6; }
2688 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2689
2690 } # ac_fn_cxx_check_decl
2691
2692 # ac_fn_c_try_link LINENO
2693 # -----------------------
2694 # Try to link conftest.$ac_ext, and return whether this succeeded.
2695 ac_fn_c_try_link ()
2696 {
2697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2698 rm -f conftest.$ac_objext conftest$ac_exeext
2699 if { { ac_try="$ac_link"
2700 case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2703 esac
2704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2705 $as_echo "$ac_try_echo"; } >&5
2706 (eval "$ac_link") 2>conftest.err
2707 ac_status=$?
2708 if test -s conftest.err; then
2709 grep -v '^ *+' conftest.err >conftest.er1
2710 cat conftest.er1 >&5
2711 mv -f conftest.er1 conftest.err
2712 fi
2713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2714 test $ac_status = 0; } && {
2715 test -z "$ac_c_werror_flag" ||
2716 test ! -s conftest.err
2717 } && test -s conftest$ac_exeext && {
2718 test "$cross_compiling" = yes ||
2719 $as_test_x conftest$ac_exeext
2720 }; then :
2721 ac_retval=0
2722 else
2723 $as_echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.$ac_ext >&5
2725
2726 ac_retval=1
2727 fi
2728 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2729 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2730 # interfere with the next link command; also delete a directory that is
2731 # left behind by Apple's compiler. We do this before executing the actions.
2732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2734 return $ac_retval
2735
2736 } # ac_fn_c_try_link
2737
2738 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2739 # ----------------------------------------------
2740 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2741 ac_fn_c_check_header_preproc ()
2742 {
2743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2745 $as_echo_n "checking for $2... " >&6; }
2746 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2747 $as_echo_n "(cached) " >&6
2748 else
2749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2750 /* end confdefs.h. */
2751 #include <$2>
2752 _ACEOF
2753 if ac_fn_c_try_cpp "$LINENO"; then :
2754 eval "$3=yes"
2755 else
2756 eval "$3=no"
2757 fi
2758 rm -f conftest.err conftest.$ac_ext
2759 fi
2760 eval ac_res=\$$3
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2762 $as_echo "$ac_res" >&6; }
2763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2764
2765 } # ac_fn_c_check_header_preproc
2766
2767 # ac_fn_c_check_func LINENO FUNC VAR
2768 # ----------------------------------
2769 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2770 ac_fn_c_check_func ()
2771 {
2772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2774 $as_echo_n "checking for $2... " >&6; }
2775 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2776 $as_echo_n "(cached) " >&6
2777 else
2778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2779 /* end confdefs.h. */
2780 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2782 #define $2 innocuous_$2
2783
2784 /* System header to define __stub macros and hopefully few prototypes,
2785 which can conflict with char $2 (); below.
2786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2787 <limits.h> exists even on freestanding compilers. */
2788
2789 #ifdef __STDC__
2790 # include <limits.h>
2791 #else
2792 # include <assert.h>
2793 #endif
2794
2795 #undef $2
2796
2797 /* Override any GCC internal prototype to avoid an error.
2798 Use char because int might match the return type of a GCC
2799 builtin and then its argument prototype would still apply. */
2800 #ifdef __cplusplus
2801 extern "C"
2802 #endif
2803 char $2 ();
2804 /* The GNU C library defines this for functions which it implements
2805 to always fail with ENOSYS. Some functions are actually named
2806 something starting with __ and the normal name is an alias. */
2807 #if defined __stub_$2 || defined __stub___$2
2808 choke me
2809 #endif
2810
2811 int
2812 main ()
2813 {
2814 return $2 ();
2815 ;
2816 return 0;
2817 }
2818 _ACEOF
2819 if ac_fn_c_try_link "$LINENO"; then :
2820 eval "$3=yes"
2821 else
2822 eval "$3=no"
2823 fi
2824 rm -f core conftest.err conftest.$ac_objext \
2825 conftest$ac_exeext conftest.$ac_ext
2826 fi
2827 eval ac_res=\$$3
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2829 $as_echo "$ac_res" >&6; }
2830 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2831
2832 } # ac_fn_c_check_func
2833 cat >config.log <<_ACEOF
2834 This file contains any messages produced by compilers while
2835 running configure, to aid debugging if configure makes a mistake.
2836
2837 It was created by $as_me, which was
2838 generated by GNU Autoconf 2.64. Invocation command line was
2839
2840 $ $0 $@
2841
2842 _ACEOF
2843 exec 5>>config.log
2844 {
2845 cat <<_ASUNAME
2846 ## --------- ##
2847 ## Platform. ##
2848 ## --------- ##
2849
2850 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2851 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2852 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2853 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2854 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2855
2856 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2857 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2858
2859 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2860 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2861 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2862 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2863 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2864 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2865 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2866
2867 _ASUNAME
2868
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2871 do
2872 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=.
2874 $as_echo "PATH: $as_dir"
2875 done
2876 IFS=$as_save_IFS
2877
2878 } >&5
2879
2880 cat >&5 <<_ACEOF
2881
2882
2883 ## ----------- ##
2884 ## Core tests. ##
2885 ## ----------- ##
2886
2887 _ACEOF
2888
2889
2890 # Keep a trace of the command line.
2891 # Strip out --no-create and --no-recursion so they do not pile up.
2892 # Strip out --silent because we don't want to record it for future runs.
2893 # Also quote any args containing shell meta-characters.
2894 # Make two passes to allow for proper duplicate-argument suppression.
2895 ac_configure_args=
2896 ac_configure_args0=
2897 ac_configure_args1=
2898 ac_must_keep_next=false
2899 for ac_pass in 1 2
2900 do
2901 for ac_arg
2902 do
2903 case $ac_arg in
2904 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2905 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2906 | -silent | --silent | --silen | --sile | --sil)
2907 continue ;;
2908 *\'*)
2909 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2910 esac
2911 case $ac_pass in
2912 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2913 2)
2914 as_fn_append ac_configure_args1 " '$ac_arg'"
2915 if test $ac_must_keep_next = true; then
2916 ac_must_keep_next=false # Got value, back to normal.
2917 else
2918 case $ac_arg in
2919 *=* | --config-cache | -C | -disable-* | --disable-* \
2920 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2921 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2922 | -with-* | --with-* | -without-* | --without-* | --x)
2923 case "$ac_configure_args0 " in
2924 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2925 esac
2926 ;;
2927 -* ) ac_must_keep_next=true ;;
2928 esac
2929 fi
2930 as_fn_append ac_configure_args " '$ac_arg'"
2931 ;;
2932 esac
2933 done
2934 done
2935 { ac_configure_args0=; unset ac_configure_args0;}
2936 { ac_configure_args1=; unset ac_configure_args1;}
2937
2938 # When interrupted or exit'd, cleanup temporary files, and complete
2939 # config.log. We remove comments because anyway the quotes in there
2940 # would cause problems or look ugly.
2941 # WARNING: Use '\'' to represent an apostrophe within the trap.
2942 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2943 trap 'exit_status=$?
2944 # Save into config.log some information that might help in debugging.
2945 {
2946 echo
2947
2948 cat <<\_ASBOX
2949 ## ---------------- ##
2950 ## Cache variables. ##
2951 ## ---------------- ##
2952 _ASBOX
2953 echo
2954 # The following way of writing the cache mishandles newlines in values,
2955 (
2956 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2957 eval ac_val=\$$ac_var
2958 case $ac_val in #(
2959 *${as_nl}*)
2960 case $ac_var in #(
2961 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2962 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2963 esac
2964 case $ac_var in #(
2965 _ | IFS | as_nl) ;; #(
2966 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2967 *) { eval $ac_var=; unset $ac_var;} ;;
2968 esac ;;
2969 esac
2970 done
2971 (set) 2>&1 |
2972 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2973 *${as_nl}ac_space=\ *)
2974 sed -n \
2975 "s/'\''/'\''\\\\'\'''\''/g;
2976 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2977 ;; #(
2978 *)
2979 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2980 ;;
2981 esac |
2982 sort
2983 )
2984 echo
2985
2986 cat <<\_ASBOX
2987 ## ----------------- ##
2988 ## Output variables. ##
2989 ## ----------------- ##
2990 _ASBOX
2991 echo
2992 for ac_var in $ac_subst_vars
2993 do
2994 eval ac_val=\$$ac_var
2995 case $ac_val in
2996 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2997 esac
2998 $as_echo "$ac_var='\''$ac_val'\''"
2999 done | sort
3000 echo
3001
3002 if test -n "$ac_subst_files"; then
3003 cat <<\_ASBOX
3004 ## ------------------- ##
3005 ## File substitutions. ##
3006 ## ------------------- ##
3007 _ASBOX
3008 echo
3009 for ac_var in $ac_subst_files
3010 do
3011 eval ac_val=\$$ac_var
3012 case $ac_val in
3013 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3014 esac
3015 $as_echo "$ac_var='\''$ac_val'\''"
3016 done | sort
3017 echo
3018 fi
3019
3020 if test -s confdefs.h; then
3021 cat <<\_ASBOX
3022 ## ----------- ##
3023 ## confdefs.h. ##
3024 ## ----------- ##
3025 _ASBOX
3026 echo
3027 cat confdefs.h
3028 echo
3029 fi
3030 test "$ac_signal" != 0 &&
3031 $as_echo "$as_me: caught signal $ac_signal"
3032 $as_echo "$as_me: exit $exit_status"
3033 } >&5
3034 rm -f core *.core core.conftest.* &&
3035 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3036 exit $exit_status
3037 ' 0
3038 for ac_signal in 1 2 13 15; do
3039 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3040 done
3041 ac_signal=0
3042
3043 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3044 rm -f -r conftest* confdefs.h
3045
3046 $as_echo "/* confdefs.h */" > confdefs.h
3047
3048 # Predefined preprocessor variables.
3049
3050 cat >>confdefs.h <<_ACEOF
3051 #define PACKAGE_NAME "$PACKAGE_NAME"
3052 _ACEOF
3053
3054 cat >>confdefs.h <<_ACEOF
3055 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3056 _ACEOF
3057
3058 cat >>confdefs.h <<_ACEOF
3059 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3060 _ACEOF
3061
3062 cat >>confdefs.h <<_ACEOF
3063 #define PACKAGE_STRING "$PACKAGE_STRING"
3064 _ACEOF
3065
3066 cat >>confdefs.h <<_ACEOF
3067 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3068 _ACEOF
3069
3070 cat >>confdefs.h <<_ACEOF
3071 #define PACKAGE_URL "$PACKAGE_URL"
3072 _ACEOF
3073
3074
3075 # Let the site file select an alternate cache file if it wants to.
3076 # Prefer an explicitly selected file to automatically selected ones.
3077 ac_site_file1=NONE
3078 ac_site_file2=NONE
3079 if test -n "$CONFIG_SITE"; then
3080 ac_site_file1=$CONFIG_SITE
3081 elif test "x$prefix" != xNONE; then
3082 ac_site_file1=$prefix/share/config.site
3083 ac_site_file2=$prefix/etc/config.site
3084 else
3085 ac_site_file1=$ac_default_prefix/share/config.site
3086 ac_site_file2=$ac_default_prefix/etc/config.site
3087 fi
3088 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3089 do
3090 test "x$ac_site_file" = xNONE && continue
3091 if test -r "$ac_site_file"; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3093 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3094 sed 's/^/| /' "$ac_site_file" >&5
3095 . "$ac_site_file"
3096 fi
3097 done
3098
3099 if test -r "$cache_file"; then
3100 # Some versions of bash will fail to source /dev/null (special
3101 # files actually), so we avoid doing that.
3102 if test -f "$cache_file"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3104 $as_echo "$as_me: loading cache $cache_file" >&6;}
3105 case $cache_file in
3106 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3107 *) . "./$cache_file";;
3108 esac
3109 fi
3110 else
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3112 $as_echo "$as_me: creating cache $cache_file" >&6;}
3113 >$cache_file
3114 fi
3115
3116 # Check that the precious variables saved in the cache have kept the same
3117 # value.
3118 ac_cache_corrupted=false
3119 for ac_var in $ac_precious_vars; do
3120 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3121 eval ac_new_set=\$ac_env_${ac_var}_set
3122 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3123 eval ac_new_val=\$ac_env_${ac_var}_value
3124 case $ac_old_set,$ac_new_set in
3125 set,)
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3127 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3128 ac_cache_corrupted=: ;;
3129 ,set)
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3131 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3132 ac_cache_corrupted=: ;;
3133 ,);;
3134 *)
3135 if test "x$ac_old_val" != "x$ac_new_val"; then
3136 # differences in whitespace do not lead to failure.
3137 ac_old_val_w=`echo x $ac_old_val`
3138 ac_new_val_w=`echo x $ac_new_val`
3139 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3141 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3142 ac_cache_corrupted=:
3143 else
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3145 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3146 eval $ac_var=\$ac_old_val
3147 fi
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3149 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3151 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3152 fi;;
3153 esac
3154 # Pass precious variables to config.status.
3155 if test "$ac_new_set" = set; then
3156 case $ac_new_val in
3157 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3158 *) ac_arg=$ac_var=$ac_new_val ;;
3159 esac
3160 case " $ac_configure_args " in
3161 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3162 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3163 esac
3164 fi
3165 done
3166 if $ac_cache_corrupted; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3170 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3171 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3172 fi
3173 ## -------------------- ##
3174 ## Main body of script. ##
3175 ## -------------------- ##
3176
3177 ac_ext=c
3178 ac_cpp='$CPP $CPPFLAGS'
3179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3182
3183
3184
3185
3186
3187
3188 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3189
3190
3191 gcc_version=`cat $srcdir/BASE-VER`
3192
3193 # Determine the host, build, and target systems
3194 ac_aux_dir=
3195 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3196 for ac_t in install-sh install.sh shtool; do
3197 if test -f "$ac_dir/$ac_t"; then
3198 ac_aux_dir=$ac_dir
3199 ac_install_sh="$ac_aux_dir/$ac_t -c"
3200 break 2
3201 fi
3202 done
3203 done
3204 if test -z "$ac_aux_dir"; then
3205 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3206 fi
3207
3208 # These three variables are undocumented and unsupported,
3209 # and are intended to be withdrawn in a future Autoconf release.
3210 # They can cause serious problems if a builder's source tree is in a directory
3211 # whose full name contains unusual characters.
3212 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3213 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3214 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3215
3216
3217 # Make sure we can run config.sub.
3218 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3219 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3220
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3222 $as_echo_n "checking build system type... " >&6; }
3223 if test "${ac_cv_build+set}" = set; then :
3224 $as_echo_n "(cached) " >&6
3225 else
3226 ac_build_alias=$build_alias
3227 test "x$ac_build_alias" = x &&
3228 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3229 test "x$ac_build_alias" = x &&
3230 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3231 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3232 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3233
3234 fi
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3236 $as_echo "$ac_cv_build" >&6; }
3237 case $ac_cv_build in
3238 *-*-*) ;;
3239 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3240 esac
3241 build=$ac_cv_build
3242 ac_save_IFS=$IFS; IFS='-'
3243 set x $ac_cv_build
3244 shift
3245 build_cpu=$1
3246 build_vendor=$2
3247 shift; shift
3248 # Remember, the first character of IFS is used to create $*,
3249 # except with old shells:
3250 build_os=$*
3251 IFS=$ac_save_IFS
3252 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3253
3254
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3256 $as_echo_n "checking host system type... " >&6; }
3257 if test "${ac_cv_host+set}" = set; then :
3258 $as_echo_n "(cached) " >&6
3259 else
3260 if test "x$host_alias" = x; then
3261 ac_cv_host=$ac_cv_build
3262 else
3263 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3264 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3265 fi
3266
3267 fi
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3269 $as_echo "$ac_cv_host" >&6; }
3270 case $ac_cv_host in
3271 *-*-*) ;;
3272 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3273 esac
3274 host=$ac_cv_host
3275 ac_save_IFS=$IFS; IFS='-'
3276 set x $ac_cv_host
3277 shift
3278 host_cpu=$1
3279 host_vendor=$2
3280 shift; shift
3281 # Remember, the first character of IFS is used to create $*,
3282 # except with old shells:
3283 host_os=$*
3284 IFS=$ac_save_IFS
3285 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3286
3287
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3289 $as_echo_n "checking target system type... " >&6; }
3290 if test "${ac_cv_target+set}" = set; then :
3291 $as_echo_n "(cached) " >&6
3292 else
3293 if test "x$target_alias" = x; then
3294 ac_cv_target=$ac_cv_host
3295 else
3296 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3297 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3298 fi
3299
3300 fi
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3302 $as_echo "$ac_cv_target" >&6; }
3303 case $ac_cv_target in
3304 *-*-*) ;;
3305 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3306 esac
3307 target=$ac_cv_target
3308 ac_save_IFS=$IFS; IFS='-'
3309 set x $ac_cv_target
3310 shift
3311 target_cpu=$1
3312 target_vendor=$2
3313 shift; shift
3314 # Remember, the first character of IFS is used to create $*,
3315 # except with old shells:
3316 target_os=$*
3317 IFS=$ac_save_IFS
3318 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3319
3320
3321 # The aliases save the names the user supplied, while $host etc.
3322 # will get canonicalized.
3323 test -n "$target_alias" &&
3324 test "$program_prefix$program_suffix$program_transform_name" = \
3325 NONENONEs,x,x, &&
3326 program_prefix=${target_alias}-
3327
3328 # Determine the noncanonical host name, for Ada.
3329 case ${build_alias} in
3330 "") build_noncanonical=${build} ;;
3331 *) build_noncanonical=${build_alias} ;;
3332 esac
3333
3334 case ${host_alias} in
3335 "") host_noncanonical=${build_noncanonical} ;;
3336 *) host_noncanonical=${host_alias} ;;
3337 esac
3338
3339
3340
3341
3342 # Determine the noncanonical target name, for directory use.
3343 case ${target_alias} in
3344 "") target_noncanonical=${host_noncanonical} ;;
3345 *) target_noncanonical=${target_alias} ;;
3346 esac
3347
3348
3349
3350
3351 # Used for constructing correct paths for offload compilers.
3352 real_target_noncanonical=${target_noncanonical}
3353 accel_dir_suffix=
3354
3355 # Determine the target- and build-specific subdirectories
3356
3357 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3358 # have matching libraries, they should use host libraries: Makefile.tpl
3359 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3360 # However, they still use the build modules, because the corresponding
3361 # host modules (e.g. bison) are only built for the host when bootstrap
3362 # finishes. So:
3363 # - build_subdir is where we find build modules, and never changes.
3364 # - build_libsubdir is where we find build libraries, and can be overridden.
3365
3366 # Prefix 'build-' so this never conflicts with target_subdir.
3367 build_subdir="build-${build_noncanonical}"
3368
3369 # Check whether --with-build-libsubdir was given.
3370 if test "${with_build_libsubdir+set}" = set; then :
3371 withval=$with_build_libsubdir; build_libsubdir="$withval"
3372 else
3373 build_libsubdir="$build_subdir"
3374 fi
3375
3376 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3377 if ( test $srcdir = . && test -d gcc ) \
3378 || test -d $srcdir/../host-${host_noncanonical}; then
3379 host_subdir="host-${host_noncanonical}"
3380 else
3381 host_subdir=.
3382 fi
3383 # No prefix.
3384 target_subdir=${target_noncanonical}
3385
3386
3387 # Set program_transform_name
3388 test "$program_prefix" != NONE &&
3389 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3390 # Use a double $ so make ignores it.
3391 test "$program_suffix" != NONE &&
3392 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3393 # Double any \ or $.
3394 # By default was `s,x,x', remove it if useless.
3395 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3396 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3397
3398
3399 # Check for bogus environment variables.
3400 # Test if LIBRARY_PATH contains the notation for the current directory
3401 # since this would lead to problems installing/building glibc.
3402 # LIBRARY_PATH contains the current directory if one of the following
3403 # is true:
3404 # - one of the terminals (":" and ";") is the first or last sign
3405 # - two terminals occur directly after each other
3406 # - the path contains an element with a dot in it
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3408 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3409 case ${LIBRARY_PATH} in
3410 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3411 library_path_setting="contains current directory"
3412 ;;
3413 *)
3414 library_path_setting="ok"
3415 ;;
3416 esac
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3418 $as_echo "$library_path_setting" >&6; }
3419 if test "$library_path_setting" != "ok"; then
3420 as_fn_error "
3421 *** LIBRARY_PATH shouldn't contain the current directory when
3422 *** building gcc. Please change the environment variable
3423 *** and run configure again." "$LINENO" 5
3424 fi
3425
3426 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3427 # since this would lead to problems installing/building glibc.
3428 # GCC_EXEC_PREFIX contains the current directory if one of the following
3429 # is true:
3430 # - one of the terminals (":" and ";") is the first or last sign
3431 # - two terminals occur directly after each other
3432 # - the path contains an element with a dot in it
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3434 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3435 case ${GCC_EXEC_PREFIX} in
3436 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3437 gcc_exec_prefix_setting="contains current directory"
3438 ;;
3439 *)
3440 gcc_exec_prefix_setting="ok"
3441 ;;
3442 esac
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3444 $as_echo "$gcc_exec_prefix_setting" >&6; }
3445 if test "$gcc_exec_prefix_setting" != "ok"; then
3446 as_fn_error "
3447 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3448 *** building gcc. Please change the environment variable
3449 *** and run configure again." "$LINENO" 5
3450 fi
3451
3452 # -----------
3453 # Directories
3454 # -----------
3455
3456 # Specify the local prefix
3457 local_prefix=
3458
3459 # Check whether --with-local-prefix was given.
3460 if test "${with_local_prefix+set}" = set; then :
3461 withval=$with_local_prefix; case "${withval}" in
3462 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3463 no) ;;
3464 *) local_prefix=$with_local_prefix ;;
3465 esac
3466 fi
3467
3468
3469 # Default local prefix if it is empty
3470 if test x$local_prefix = x; then
3471 local_prefix=/usr/local
3472 fi
3473
3474
3475 # Check whether --with-native-system-header-dir was given.
3476 if test "${with_native_system_header_dir+set}" = set; then :
3477 withval=$with_native_system_header_dir;
3478 case ${with_native_system_header_dir} in
3479 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3480 /* | [A-Za-z]:[\\/]*) ;;
3481 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3482 esac
3483 configured_native_system_header_dir="${withval}"
3484
3485 else
3486 configured_native_system_header_dir=
3487 fi
3488
3489
3490
3491 # Check whether --with-build-sysroot was given.
3492 if test "${with_build_sysroot+set}" = set; then :
3493 withval=$with_build_sysroot; if test x"$withval" != x ; then
3494 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3495 fi
3496 else
3497 SYSROOT_CFLAGS_FOR_TARGET=
3498 fi
3499
3500
3501
3502 if test "x$prefix" = xNONE; then
3503 test_prefix=/usr/local
3504 else
3505 test_prefix=$prefix
3506 fi
3507 if test "x$exec_prefix" = xNONE; then
3508 test_exec_prefix=$test_prefix
3509 else
3510 test_exec_prefix=$exec_prefix
3511 fi
3512
3513
3514 # Check whether --with-sysroot was given.
3515 if test "${with_sysroot+set}" = set; then :
3516 withval=$with_sysroot;
3517 case ${with_sysroot} in
3518 /) ;;
3519 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3520 esac
3521 case ${with_sysroot} in
3522 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3523 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3524 esac
3525
3526 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3527 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3528
3529 case ${TARGET_SYSTEM_ROOT} in
3530 "${test_prefix}"|"${test_prefix}/"*|\
3531 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3532 '${prefix}'|'${prefix}/'*|\
3533 '${exec_prefix}'|'${exec_prefix}/'*)
3534 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3535 TARGET_SYSTEM_ROOT_DEFINE="$t"
3536 ;;
3537 esac
3538
3539 else
3540
3541 TARGET_SYSTEM_ROOT=
3542 TARGET_SYSTEM_ROOT_DEFINE=
3543 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3544
3545 fi
3546
3547
3548
3549
3550
3551 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3552 # passed in by the toplevel make and thus we'd get different behavior
3553 # depending on where we built the sources.
3554 gcc_gxx_include_dir=
3555 # Specify the g++ header file directory
3556
3557 # Check whether --with-gxx-include-dir was given.
3558 if test "${with_gxx_include_dir+set}" = set; then :
3559 withval=$with_gxx_include_dir; case "${withval}" in
3560 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3561 no) ;;
3562 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3563 esac
3564 fi
3565
3566
3567 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3568 if test x${gcc_gxx_include_dir} = x; then
3569 if test x${enable_version_specific_runtime_libs} = xyes; then
3570 gcc_gxx_include_dir='${libsubdir}/include/c++'
3571 else
3572 libstdcxx_incdir='include/c++/$(version)'
3573 if test x$host != x$target; then
3574 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3575 fi
3576 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3577 fi
3578 fi
3579
3580 gcc_gxx_include_dir_add_sysroot=0
3581 if test "${with_sysroot+set}" = set; then
3582 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3583 if test "${gcc_gxx_without_sysroot}"; then
3584 if test x${with_sysroot} != x/; then
3585 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3586 fi
3587 gcc_gxx_include_dir_add_sysroot=1
3588 fi
3589 fi
3590
3591
3592 # Check whether --with-cpp_install_dir was given.
3593 if test "${with_cpp_install_dir+set}" = set; then :
3594 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3595 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3596 elif test x$withval != xno; then
3597 cpp_install_dir=$withval
3598 fi
3599 fi
3600
3601
3602 # We would like to our source tree to be readonly. However when releases or
3603 # pre-releases are generated, the flex/bison generated files as well as the
3604 # various formats of manuals need to be included along with the rest of the
3605 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3606 # just that.
3607
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3609 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3610 # Check whether --enable-generated-files-in-srcdir was given.
3611 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3612 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3613 else
3614 generated_files_in_srcdir=no
3615 fi
3616
3617
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3619 $as_echo "$generated_files_in_srcdir" >&6; }
3620
3621 if test "$generated_files_in_srcdir" = "yes"; then
3622 GENINSRC=''
3623 else
3624 GENINSRC='#'
3625 fi
3626
3627
3628 # -------------------
3629 # Find default linker
3630 # -------------------
3631
3632 # With GNU ld
3633
3634 # Check whether --with-gnu-ld was given.
3635 if test "${with_gnu_ld+set}" = set; then :
3636 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3637 else
3638 gnu_ld_flag=no
3639 fi
3640
3641
3642 case $target in
3643 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3644 *) ld64_flag=no;;
3645 esac
3646
3647 # With pre-defined ld
3648
3649 # Check whether --with-ld was given.
3650 if test "${with_ld+set}" = set; then :
3651 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3652 fi
3653
3654 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3655 if test ! -x "$DEFAULT_LINKER"; then
3656 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3657 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3658 gnu_ld_flag=yes
3659 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3660 ld64_flag=yes
3661 fi
3662
3663 cat >>confdefs.h <<_ACEOF
3664 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3665 _ACEOF
3666
3667 fi
3668
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3670 $as_echo_n "checking whether a default linker was specified... " >&6; }
3671 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3672 if test x"$gnu_ld_flag" = x"no"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3674 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3675 else
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3677 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3678 fi
3679 else
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 $as_echo "no" >&6; }
3682 fi
3683
3684 # With demangler in GNU ld
3685
3686 # Check whether --with-demangler-in-ld was given.
3687 if test "${with_demangler_in_ld+set}" = set; then :
3688 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3689 else
3690 demangler_in_ld=yes
3691 fi
3692
3693
3694 # ----------------------
3695 # Find default assembler
3696 # ----------------------
3697
3698 # With GNU as
3699
3700 # Check whether --with-gnu-as was given.
3701 if test "${with_gnu_as+set}" = set; then :
3702 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3703 else
3704 gas_flag=no
3705 fi
3706
3707
3708
3709 # Check whether --with-as was given.
3710 if test "${with_as+set}" = set; then :
3711 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3712 fi
3713
3714 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3715 if test ! -x "$DEFAULT_ASSEMBLER"; then
3716 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3717 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3718 gas_flag=yes
3719 fi
3720
3721 cat >>confdefs.h <<_ACEOF
3722 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3723 _ACEOF
3724
3725 fi
3726
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3728 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3729 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3730 if test x"$gas_flag" = x"no"; then
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3732 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3733 else
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3735 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3736 fi
3737 else
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 $as_echo "no" >&6; }
3740 fi
3741
3742 # ---------------
3743 # Find C compiler
3744 # ---------------
3745
3746 # If a non-executable a.out is present (e.g. created by GNU as above even if
3747 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3748 # file, even when creating an executable, so an execution test fails.
3749 # Remove possible default executable files to avoid this.
3750 #
3751 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3752 # Autoconf includes it.
3753 rm -f a.out a.exe b.out
3754
3755 # Find the native compiler
3756 ac_ext=c
3757 ac_cpp='$CPP $CPPFLAGS'
3758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3761 if test -n "$ac_tool_prefix"; then
3762 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3763 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3765 $as_echo_n "checking for $ac_word... " >&6; }
3766 if test "${ac_cv_prog_CC+set}" = set; then :
3767 $as_echo_n "(cached) " >&6
3768 else
3769 if test -n "$CC"; then
3770 ac_cv_prog_CC="$CC" # Let the user override the test.
3771 else
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 for as_dir in $PATH
3774 do
3775 IFS=$as_save_IFS
3776 test -z "$as_dir" && as_dir=.
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3779 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 break 2
3782 fi
3783 done
3784 done
3785 IFS=$as_save_IFS
3786
3787 fi
3788 fi
3789 CC=$ac_cv_prog_CC
3790 if test -n "$CC"; then
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3792 $as_echo "$CC" >&6; }
3793 else
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795 $as_echo "no" >&6; }
3796 fi
3797
3798
3799 fi
3800 if test -z "$ac_cv_prog_CC"; then
3801 ac_ct_CC=$CC
3802 # Extract the first word of "gcc", so it can be a program name with args.
3803 set dummy gcc; ac_word=$2
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3805 $as_echo_n "checking for $ac_word... " >&6; }
3806 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3807 $as_echo_n "(cached) " >&6
3808 else
3809 if test -n "$ac_ct_CC"; then
3810 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3811 else
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 for as_dir in $PATH
3814 do
3815 IFS=$as_save_IFS
3816 test -z "$as_dir" && as_dir=.
3817 for ac_exec_ext in '' $ac_executable_extensions; do
3818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3819 ac_cv_prog_ac_ct_CC="gcc"
3820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3821 break 2
3822 fi
3823 done
3824 done
3825 IFS=$as_save_IFS
3826
3827 fi
3828 fi
3829 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3830 if test -n "$ac_ct_CC"; then
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3832 $as_echo "$ac_ct_CC" >&6; }
3833 else
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3835 $as_echo "no" >&6; }
3836 fi
3837
3838 if test "x$ac_ct_CC" = x; then
3839 CC=""
3840 else
3841 case $cross_compiling:$ac_tool_warned in
3842 yes:)
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3845 ac_tool_warned=yes ;;
3846 esac
3847 CC=$ac_ct_CC
3848 fi
3849 else
3850 CC="$ac_cv_prog_CC"
3851 fi
3852
3853 if test -z "$CC"; then
3854 if test -n "$ac_tool_prefix"; then
3855 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3856 set dummy ${ac_tool_prefix}cc; ac_word=$2
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3858 $as_echo_n "checking for $ac_word... " >&6; }
3859 if test "${ac_cv_prog_CC+set}" = set; then :
3860 $as_echo_n "(cached) " >&6
3861 else
3862 if test -n "$CC"; then
3863 ac_cv_prog_CC="$CC" # Let the user override the test.
3864 else
3865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 for as_dir in $PATH
3867 do
3868 IFS=$as_save_IFS
3869 test -z "$as_dir" && as_dir=.
3870 for ac_exec_ext in '' $ac_executable_extensions; do
3871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3872 ac_cv_prog_CC="${ac_tool_prefix}cc"
3873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3874 break 2
3875 fi
3876 done
3877 done
3878 IFS=$as_save_IFS
3879
3880 fi
3881 fi
3882 CC=$ac_cv_prog_CC
3883 if test -n "$CC"; then
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3885 $as_echo "$CC" >&6; }
3886 else
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3888 $as_echo "no" >&6; }
3889 fi
3890
3891
3892 fi
3893 fi
3894 if test -z "$CC"; then
3895 # Extract the first word of "cc", so it can be a program name with args.
3896 set dummy cc; ac_word=$2
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3898 $as_echo_n "checking for $ac_word... " >&6; }
3899 if test "${ac_cv_prog_CC+set}" = set; then :
3900 $as_echo_n "(cached) " >&6
3901 else
3902 if test -n "$CC"; then
3903 ac_cv_prog_CC="$CC" # Let the user override the test.
3904 else
3905 ac_prog_rejected=no
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH
3908 do
3909 IFS=$as_save_IFS
3910 test -z "$as_dir" && as_dir=.
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3913 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3914 ac_prog_rejected=yes
3915 continue
3916 fi
3917 ac_cv_prog_CC="cc"
3918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3919 break 2
3920 fi
3921 done
3922 done
3923 IFS=$as_save_IFS
3924
3925 if test $ac_prog_rejected = yes; then
3926 # We found a bogon in the path, so make sure we never use it.
3927 set dummy $ac_cv_prog_CC
3928 shift
3929 if test $# != 0; then
3930 # We chose a different compiler from the bogus one.
3931 # However, it has the same basename, so the bogon will be chosen
3932 # first if we set CC to just the basename; use the full file name.
3933 shift
3934 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3935 fi
3936 fi
3937 fi
3938 fi
3939 CC=$ac_cv_prog_CC
3940 if test -n "$CC"; then
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3942 $as_echo "$CC" >&6; }
3943 else
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945 $as_echo "no" >&6; }
3946 fi
3947
3948
3949 fi
3950 if test -z "$CC"; then
3951 if test -n "$ac_tool_prefix"; then
3952 for ac_prog in cl.exe
3953 do
3954 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3955 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3957 $as_echo_n "checking for $ac_word... " >&6; }
3958 if test "${ac_cv_prog_CC+set}" = set; then :
3959 $as_echo_n "(cached) " >&6
3960 else
3961 if test -n "$CC"; then
3962 ac_cv_prog_CC="$CC" # Let the user override the test.
3963 else
3964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 for as_dir in $PATH
3966 do
3967 IFS=$as_save_IFS
3968 test -z "$as_dir" && as_dir=.
3969 for ac_exec_ext in '' $ac_executable_extensions; do
3970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3971 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3973 break 2
3974 fi
3975 done
3976 done
3977 IFS=$as_save_IFS
3978
3979 fi
3980 fi
3981 CC=$ac_cv_prog_CC
3982 if test -n "$CC"; then
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3984 $as_echo "$CC" >&6; }
3985 else
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3987 $as_echo "no" >&6; }
3988 fi
3989
3990
3991 test -n "$CC" && break
3992 done
3993 fi
3994 if test -z "$CC"; then
3995 ac_ct_CC=$CC
3996 for ac_prog in cl.exe
3997 do
3998 # Extract the first word of "$ac_prog", so it can be a program name with args.
3999 set dummy $ac_prog; ac_word=$2
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4001 $as_echo_n "checking for $ac_word... " >&6; }
4002 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4003 $as_echo_n "(cached) " >&6
4004 else
4005 if test -n "$ac_ct_CC"; then
4006 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4007 else
4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 for as_dir in $PATH
4010 do
4011 IFS=$as_save_IFS
4012 test -z "$as_dir" && as_dir=.
4013 for ac_exec_ext in '' $ac_executable_extensions; do
4014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4015 ac_cv_prog_ac_ct_CC="$ac_prog"
4016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4017 break 2
4018 fi
4019 done
4020 done
4021 IFS=$as_save_IFS
4022
4023 fi
4024 fi
4025 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4026 if test -n "$ac_ct_CC"; then
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4028 $as_echo "$ac_ct_CC" >&6; }
4029 else
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4031 $as_echo "no" >&6; }
4032 fi
4033
4034
4035 test -n "$ac_ct_CC" && break
4036 done
4037
4038 if test "x$ac_ct_CC" = x; then
4039 CC=""
4040 else
4041 case $cross_compiling:$ac_tool_warned in
4042 yes:)
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4045 ac_tool_warned=yes ;;
4046 esac
4047 CC=$ac_ct_CC
4048 fi
4049 fi
4050
4051 fi
4052
4053
4054 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4056 as_fn_error "no acceptable C compiler found in \$PATH
4057 See \`config.log' for more details." "$LINENO" 5; }
4058
4059 # Provide some information about the compiler.
4060 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4061 set X $ac_compile
4062 ac_compiler=$2
4063 for ac_option in --version -v -V -qversion; do
4064 { { ac_try="$ac_compiler $ac_option >&5"
4065 case "(($ac_try" in
4066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067 *) ac_try_echo=$ac_try;;
4068 esac
4069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4070 $as_echo "$ac_try_echo"; } >&5
4071 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4072 ac_status=$?
4073 if test -s conftest.err; then
4074 sed '10a\
4075 ... rest of stderr output deleted ...
4076 10q' conftest.err >conftest.er1
4077 cat conftest.er1 >&5
4078 rm -f conftest.er1 conftest.err
4079 fi
4080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4081 test $ac_status = 0; }
4082 done
4083
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4086
4087 int
4088 main ()
4089 {
4090
4091 ;
4092 return 0;
4093 }
4094 _ACEOF
4095 ac_clean_files_save=$ac_clean_files
4096 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4097 # Try to create an executable without -o first, disregard a.out.
4098 # It will help us diagnose broken compilers, and finding out an intuition
4099 # of exeext.
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4101 $as_echo_n "checking for C compiler default output file name... " >&6; }
4102 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4103
4104 # The possible output files:
4105 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4106
4107 ac_rmfiles=
4108 for ac_file in $ac_files
4109 do
4110 case $ac_file in
4111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4112 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4113 esac
4114 done
4115 rm -f $ac_rmfiles
4116
4117 if { { ac_try="$ac_link_default"
4118 case "(($ac_try" in
4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120 *) ac_try_echo=$ac_try;;
4121 esac
4122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4123 $as_echo "$ac_try_echo"; } >&5
4124 (eval "$ac_link_default") 2>&5
4125 ac_status=$?
4126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4127 test $ac_status = 0; }; then :
4128 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4129 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4130 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4131 # so that the user can short-circuit this test for compilers unknown to
4132 # Autoconf.
4133 for ac_file in $ac_files ''
4134 do
4135 test -f "$ac_file" || continue
4136 case $ac_file in
4137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4138 ;;
4139 [ab].out )
4140 # We found the default executable, but exeext='' is most
4141 # certainly right.
4142 break;;
4143 *.* )
4144 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4145 then :; else
4146 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4147 fi
4148 # We set ac_cv_exeext here because the later test for it is not
4149 # safe: cross compilers may not add the suffix if given an `-o'
4150 # argument, so we may need to know it at that point already.
4151 # Even if this section looks crufty: it has the advantage of
4152 # actually working.
4153 break;;
4154 * )
4155 break;;
4156 esac
4157 done
4158 test "$ac_cv_exeext" = no && ac_cv_exeext=
4159
4160 else
4161 ac_file=''
4162 fi
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4164 $as_echo "$ac_file" >&6; }
4165 if test -z "$ac_file"; then :
4166 $as_echo "$as_me: failed program was:" >&5
4167 sed 's/^/| /' conftest.$ac_ext >&5
4168
4169 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4171 { as_fn_set_status 77
4172 as_fn_error "C compiler cannot create executables
4173 See \`config.log' for more details." "$LINENO" 5; }; }
4174 fi
4175 ac_exeext=$ac_cv_exeext
4176
4177 # Check that the compiler produces executables we can run. If not, either
4178 # the compiler is broken, or we cross compile.
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4180 $as_echo_n "checking whether the C compiler works... " >&6; }
4181 # If not cross compiling, check that we can run a simple program.
4182 if test "$cross_compiling" != yes; then
4183 if { ac_try='./$ac_file'
4184 { { case "(($ac_try" in
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4187 esac
4188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4189 $as_echo "$ac_try_echo"; } >&5
4190 (eval "$ac_try") 2>&5
4191 ac_status=$?
4192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4193 test $ac_status = 0; }; }; then
4194 cross_compiling=no
4195 else
4196 if test "$cross_compiling" = maybe; then
4197 cross_compiling=yes
4198 else
4199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4201 as_fn_error "cannot run C compiled programs.
4202 If you meant to cross compile, use \`--host'.
4203 See \`config.log' for more details." "$LINENO" 5; }
4204 fi
4205 fi
4206 fi
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4208 $as_echo "yes" >&6; }
4209
4210 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4211 ac_clean_files=$ac_clean_files_save
4212 # Check that the compiler produces executables we can run. If not, either
4213 # the compiler is broken, or we cross compile.
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4215 $as_echo_n "checking whether we are cross compiling... " >&6; }
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4217 $as_echo "$cross_compiling" >&6; }
4218
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4220 $as_echo_n "checking for suffix of executables... " >&6; }
4221 if { { ac_try="$ac_link"
4222 case "(($ac_try" in
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4225 esac
4226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4227 $as_echo "$ac_try_echo"; } >&5
4228 (eval "$ac_link") 2>&5
4229 ac_status=$?
4230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4231 test $ac_status = 0; }; then :
4232 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4233 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4234 # work properly (i.e., refer to `conftest.exe'), while it won't with
4235 # `rm'.
4236 for ac_file in conftest.exe conftest conftest.*; do
4237 test -f "$ac_file" || continue
4238 case $ac_file in
4239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4240 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4241 break;;
4242 * ) break;;
4243 esac
4244 done
4245 else
4246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4248 as_fn_error "cannot compute suffix of executables: cannot compile and link
4249 See \`config.log' for more details." "$LINENO" 5; }
4250 fi
4251 rm -f conftest$ac_cv_exeext
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4253 $as_echo "$ac_cv_exeext" >&6; }
4254
4255 rm -f conftest.$ac_ext
4256 EXEEXT=$ac_cv_exeext
4257 ac_exeext=$EXEEXT
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4259 $as_echo_n "checking for suffix of object files... " >&6; }
4260 if test "${ac_cv_objext+set}" = set; then :
4261 $as_echo_n "(cached) " >&6
4262 else
4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h. */
4265
4266 int
4267 main ()
4268 {
4269
4270 ;
4271 return 0;
4272 }
4273 _ACEOF
4274 rm -f conftest.o conftest.obj
4275 if { { ac_try="$ac_compile"
4276 case "(($ac_try" in
4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4279 esac
4280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4281 $as_echo "$ac_try_echo"; } >&5
4282 (eval "$ac_compile") 2>&5
4283 ac_status=$?
4284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4285 test $ac_status = 0; }; then :
4286 for ac_file in conftest.o conftest.obj conftest.*; do
4287 test -f "$ac_file" || continue;
4288 case $ac_file in
4289 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4290 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4291 break;;
4292 esac
4293 done
4294 else
4295 $as_echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4297
4298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4300 as_fn_error "cannot compute suffix of object files: cannot compile
4301 See \`config.log' for more details." "$LINENO" 5; }
4302 fi
4303 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4304 fi
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4306 $as_echo "$ac_cv_objext" >&6; }
4307 OBJEXT=$ac_cv_objext
4308 ac_objext=$OBJEXT
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4310 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4311 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4312 $as_echo_n "(cached) " >&6
4313 else
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4316
4317 int
4318 main ()
4319 {
4320 #ifndef __GNUC__
4321 choke me
4322 #endif
4323
4324 ;
4325 return 0;
4326 }
4327 _ACEOF
4328 if ac_fn_c_try_compile "$LINENO"; then :
4329 ac_compiler_gnu=yes
4330 else
4331 ac_compiler_gnu=no
4332 fi
4333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4334 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4335
4336 fi
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4338 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4339 if test $ac_compiler_gnu = yes; then
4340 GCC=yes
4341 else
4342 GCC=
4343 fi
4344 ac_test_CFLAGS=${CFLAGS+set}
4345 ac_save_CFLAGS=$CFLAGS
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4347 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4348 if test "${ac_cv_prog_cc_g+set}" = set; then :
4349 $as_echo_n "(cached) " >&6
4350 else
4351 ac_save_c_werror_flag=$ac_c_werror_flag
4352 ac_c_werror_flag=yes
4353 ac_cv_prog_cc_g=no
4354 CFLAGS="-g"
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h. */
4357
4358 int
4359 main ()
4360 {
4361
4362 ;
4363 return 0;
4364 }
4365 _ACEOF
4366 if ac_fn_c_try_compile "$LINENO"; then :
4367 ac_cv_prog_cc_g=yes
4368 else
4369 CFLAGS=""
4370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371 /* end confdefs.h. */
4372
4373 int
4374 main ()
4375 {
4376
4377 ;
4378 return 0;
4379 }
4380 _ACEOF
4381 if ac_fn_c_try_compile "$LINENO"; then :
4382
4383 else
4384 ac_c_werror_flag=$ac_save_c_werror_flag
4385 CFLAGS="-g"
4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h. */
4388
4389 int
4390 main ()
4391 {
4392
4393 ;
4394 return 0;
4395 }
4396 _ACEOF
4397 if ac_fn_c_try_compile "$LINENO"; then :
4398 ac_cv_prog_cc_g=yes
4399 fi
4400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4401 fi
4402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4403 fi
4404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4405 ac_c_werror_flag=$ac_save_c_werror_flag
4406 fi
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4408 $as_echo "$ac_cv_prog_cc_g" >&6; }
4409 if test "$ac_test_CFLAGS" = set; then
4410 CFLAGS=$ac_save_CFLAGS
4411 elif test $ac_cv_prog_cc_g = yes; then
4412 if test "$GCC" = yes; then
4413 CFLAGS="-g -O2"
4414 else
4415 CFLAGS="-g"
4416 fi
4417 else
4418 if test "$GCC" = yes; then
4419 CFLAGS="-O2"
4420 else
4421 CFLAGS=
4422 fi
4423 fi
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4425 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4426 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4427 $as_echo_n "(cached) " >&6
4428 else
4429 ac_cv_prog_cc_c89=no
4430 ac_save_CC=$CC
4431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432 /* end confdefs.h. */
4433 #include <stdarg.h>
4434 #include <stdio.h>
4435 #include <sys/types.h>
4436 #include <sys/stat.h>
4437 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4438 struct buf { int x; };
4439 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4440 static char *e (p, i)
4441 char **p;
4442 int i;
4443 {
4444 return p[i];
4445 }
4446 static char *f (char * (*g) (char **, int), char **p, ...)
4447 {
4448 char *s;
4449 va_list v;
4450 va_start (v,p);
4451 s = g (p, va_arg (v,int));
4452 va_end (v);
4453 return s;
4454 }
4455
4456 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4457 function prototypes and stuff, but not '\xHH' hex character constants.
4458 These don't provoke an error unfortunately, instead are silently treated
4459 as 'x'. The following induces an error, until -std is added to get
4460 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4461 array size at least. It's necessary to write '\x00'==0 to get something
4462 that's true only with -std. */
4463 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4464
4465 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4466 inside strings and character constants. */
4467 #define FOO(x) 'x'
4468 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4469
4470 int test (int i, double x);
4471 struct s1 {int (*f) (int a);};
4472 struct s2 {int (*f) (double a);};
4473 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4474 int argc;
4475 char **argv;
4476 int
4477 main ()
4478 {
4479 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4480 ;
4481 return 0;
4482 }
4483 _ACEOF
4484 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4485 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4486 do
4487 CC="$ac_save_CC $ac_arg"
4488 if ac_fn_c_try_compile "$LINENO"; then :
4489 ac_cv_prog_cc_c89=$ac_arg
4490 fi
4491 rm -f core conftest.err conftest.$ac_objext
4492 test "x$ac_cv_prog_cc_c89" != "xno" && break
4493 done
4494 rm -f conftest.$ac_ext
4495 CC=$ac_save_CC
4496
4497 fi
4498 # AC_CACHE_VAL
4499 case "x$ac_cv_prog_cc_c89" in
4500 x)
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4502 $as_echo "none needed" >&6; } ;;
4503 xno)
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4505 $as_echo "unsupported" >&6; } ;;
4506 *)
4507 CC="$CC $ac_cv_prog_cc_c89"
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4509 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4510 esac
4511 if test "x$ac_cv_prog_cc_c89" != xno; then :
4512
4513 fi
4514
4515 ac_ext=c
4516 ac_cpp='$CPP $CPPFLAGS'
4517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4520
4521 ac_ext=cpp
4522 ac_cpp='$CXXCPP $CPPFLAGS'
4523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4526 if test -z "$CXX"; then
4527 if test -n "$CCC"; then
4528 CXX=$CCC
4529 else
4530 if test -n "$ac_tool_prefix"; then
4531 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4532 do
4533 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4534 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4536 $as_echo_n "checking for $ac_word... " >&6; }
4537 if test "${ac_cv_prog_CXX+set}" = set; then :
4538 $as_echo_n "(cached) " >&6
4539 else
4540 if test -n "$CXX"; then
4541 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4542 else
4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544 for as_dir in $PATH
4545 do
4546 IFS=$as_save_IFS
4547 test -z "$as_dir" && as_dir=.
4548 for ac_exec_ext in '' $ac_executable_extensions; do
4549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4550 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4552 break 2
4553 fi
4554 done
4555 done
4556 IFS=$as_save_IFS
4557
4558 fi
4559 fi
4560 CXX=$ac_cv_prog_CXX
4561 if test -n "$CXX"; then
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4563 $as_echo "$CXX" >&6; }
4564 else
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4566 $as_echo "no" >&6; }
4567 fi
4568
4569
4570 test -n "$CXX" && break
4571 done
4572 fi
4573 if test -z "$CXX"; then
4574 ac_ct_CXX=$CXX
4575 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4576 do
4577 # Extract the first word of "$ac_prog", so it can be a program name with args.
4578 set dummy $ac_prog; ac_word=$2
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4580 $as_echo_n "checking for $ac_word... " >&6; }
4581 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4582 $as_echo_n "(cached) " >&6
4583 else
4584 if test -n "$ac_ct_CXX"; then
4585 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4586 else
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 for as_dir in $PATH
4589 do
4590 IFS=$as_save_IFS
4591 test -z "$as_dir" && as_dir=.
4592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4594 ac_cv_prog_ac_ct_CXX="$ac_prog"
4595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4596 break 2
4597 fi
4598 done
4599 done
4600 IFS=$as_save_IFS
4601
4602 fi
4603 fi
4604 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4605 if test -n "$ac_ct_CXX"; then
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4607 $as_echo "$ac_ct_CXX" >&6; }
4608 else
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4610 $as_echo "no" >&6; }
4611 fi
4612
4613
4614 test -n "$ac_ct_CXX" && break
4615 done
4616
4617 if test "x$ac_ct_CXX" = x; then
4618 CXX="g++"
4619 else
4620 case $cross_compiling:$ac_tool_warned in
4621 yes:)
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4624 ac_tool_warned=yes ;;
4625 esac
4626 CXX=$ac_ct_CXX
4627 fi
4628 fi
4629
4630 fi
4631 fi
4632 # Provide some information about the compiler.
4633 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4634 set X $ac_compile
4635 ac_compiler=$2
4636 for ac_option in --version -v -V -qversion; do
4637 { { ac_try="$ac_compiler $ac_option >&5"
4638 case "(($ac_try" in
4639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640 *) ac_try_echo=$ac_try;;
4641 esac
4642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4643 $as_echo "$ac_try_echo"; } >&5
4644 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4645 ac_status=$?
4646 if test -s conftest.err; then
4647 sed '10a\
4648 ... rest of stderr output deleted ...
4649 10q' conftest.err >conftest.er1
4650 cat conftest.er1 >&5
4651 rm -f conftest.er1 conftest.err
4652 fi
4653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4654 test $ac_status = 0; }
4655 done
4656
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4658 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4659 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4660 $as_echo_n "(cached) " >&6
4661 else
4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h. */
4664
4665 int
4666 main ()
4667 {
4668 #ifndef __GNUC__
4669 choke me
4670 #endif
4671
4672 ;
4673 return 0;
4674 }
4675 _ACEOF
4676 if ac_fn_cxx_try_compile "$LINENO"; then :
4677 ac_compiler_gnu=yes
4678 else
4679 ac_compiler_gnu=no
4680 fi
4681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4682 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4683
4684 fi
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4686 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4687 if test $ac_compiler_gnu = yes; then
4688 GXX=yes
4689 else
4690 GXX=
4691 fi
4692 ac_test_CXXFLAGS=${CXXFLAGS+set}
4693 ac_save_CXXFLAGS=$CXXFLAGS
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4695 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4696 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4700 ac_cxx_werror_flag=yes
4701 ac_cv_prog_cxx_g=no
4702 CXXFLAGS="-g"
4703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h. */
4705
4706 int
4707 main ()
4708 {
4709
4710 ;
4711 return 0;
4712 }
4713 _ACEOF
4714 if ac_fn_cxx_try_compile "$LINENO"; then :
4715 ac_cv_prog_cxx_g=yes
4716 else
4717 CXXFLAGS=""
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4720
4721 int
4722 main ()
4723 {
4724
4725 ;
4726 return 0;
4727 }
4728 _ACEOF
4729 if ac_fn_cxx_try_compile "$LINENO"; then :
4730
4731 else
4732 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4733 CXXFLAGS="-g"
4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h. */
4736
4737 int
4738 main ()
4739 {
4740
4741 ;
4742 return 0;
4743 }
4744 _ACEOF
4745 if ac_fn_cxx_try_compile "$LINENO"; then :
4746 ac_cv_prog_cxx_g=yes
4747 fi
4748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4749 fi
4750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4751 fi
4752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4754 fi
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4756 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4757 if test "$ac_test_CXXFLAGS" = set; then
4758 CXXFLAGS=$ac_save_CXXFLAGS
4759 elif test $ac_cv_prog_cxx_g = yes; then
4760 if test "$GXX" = yes; then
4761 CXXFLAGS="-g -O2"
4762 else
4763 CXXFLAGS="-g"
4764 fi
4765 else
4766 if test "$GXX" = yes; then
4767 CXXFLAGS="-O2"
4768 else
4769 CXXFLAGS=
4770 fi
4771 fi
4772 ac_ext=c
4773 ac_cpp='$CPP $CPPFLAGS'
4774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4777
4778
4779
4780
4781 if test -n "$ac_tool_prefix"; then
4782 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4783 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4785 $as_echo_n "checking for $ac_word... " >&6; }
4786 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4787 $as_echo_n "(cached) " >&6
4788 else
4789 if test -n "$GNATBIND"; then
4790 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4791 else
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 for as_dir in $PATH
4794 do
4795 IFS=$as_save_IFS
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4799 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 break 2
4802 fi
4803 done
4804 done
4805 IFS=$as_save_IFS
4806
4807 fi
4808 fi
4809 GNATBIND=$ac_cv_prog_GNATBIND
4810 if test -n "$GNATBIND"; then
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4812 $as_echo "$GNATBIND" >&6; }
4813 else
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815 $as_echo "no" >&6; }
4816 fi
4817
4818
4819 fi
4820 if test -z "$ac_cv_prog_GNATBIND"; then
4821 ac_ct_GNATBIND=$GNATBIND
4822 # Extract the first word of "gnatbind", so it can be a program name with args.
4823 set dummy gnatbind; ac_word=$2
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4825 $as_echo_n "checking for $ac_word... " >&6; }
4826 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4827 $as_echo_n "(cached) " >&6
4828 else
4829 if test -n "$ac_ct_GNATBIND"; then
4830 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4831 else
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 for as_dir in $PATH
4834 do
4835 IFS=$as_save_IFS
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4839 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4841 break 2
4842 fi
4843 done
4844 done
4845 IFS=$as_save_IFS
4846
4847 fi
4848 fi
4849 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4850 if test -n "$ac_ct_GNATBIND"; then
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4852 $as_echo "$ac_ct_GNATBIND" >&6; }
4853 else
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855 $as_echo "no" >&6; }
4856 fi
4857
4858 if test "x$ac_ct_GNATBIND" = x; then
4859 GNATBIND="no"
4860 else
4861 case $cross_compiling:$ac_tool_warned in
4862 yes:)
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4865 ac_tool_warned=yes ;;
4866 esac
4867 GNATBIND=$ac_ct_GNATBIND
4868 fi
4869 else
4870 GNATBIND="$ac_cv_prog_GNATBIND"
4871 fi
4872
4873 if test -n "$ac_tool_prefix"; then
4874 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4875 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4877 $as_echo_n "checking for $ac_word... " >&6; }
4878 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4879 $as_echo_n "(cached) " >&6
4880 else
4881 if test -n "$GNATMAKE"; then
4882 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4883 else
4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 for as_dir in $PATH
4886 do
4887 IFS=$as_save_IFS
4888 test -z "$as_dir" && as_dir=.
4889 for ac_exec_ext in '' $ac_executable_extensions; do
4890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4891 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 break 2
4894 fi
4895 done
4896 done
4897 IFS=$as_save_IFS
4898
4899 fi
4900 fi
4901 GNATMAKE=$ac_cv_prog_GNATMAKE
4902 if test -n "$GNATMAKE"; then
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4904 $as_echo "$GNATMAKE" >&6; }
4905 else
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907 $as_echo "no" >&6; }
4908 fi
4909
4910
4911 fi
4912 if test -z "$ac_cv_prog_GNATMAKE"; then
4913 ac_ct_GNATMAKE=$GNATMAKE
4914 # Extract the first word of "gnatmake", so it can be a program name with args.
4915 set dummy gnatmake; ac_word=$2
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917 $as_echo_n "checking for $ac_word... " >&6; }
4918 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4919 $as_echo_n "(cached) " >&6
4920 else
4921 if test -n "$ac_ct_GNATMAKE"; then
4922 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4923 else
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925 for as_dir in $PATH
4926 do
4927 IFS=$as_save_IFS
4928 test -z "$as_dir" && as_dir=.
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4931 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 break 2
4934 fi
4935 done
4936 done
4937 IFS=$as_save_IFS
4938
4939 fi
4940 fi
4941 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4942 if test -n "$ac_ct_GNATMAKE"; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4944 $as_echo "$ac_ct_GNATMAKE" >&6; }
4945 else
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 $as_echo "no" >&6; }
4948 fi
4949
4950 if test "x$ac_ct_GNATMAKE" = x; then
4951 GNATMAKE="no"
4952 else
4953 case $cross_compiling:$ac_tool_warned in
4954 yes:)
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4957 ac_tool_warned=yes ;;
4958 esac
4959 GNATMAKE=$ac_ct_GNATMAKE
4960 fi
4961 else
4962 GNATMAKE="$ac_cv_prog_GNATMAKE"
4963 fi
4964
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4966 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4967 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4968 $as_echo_n "(cached) " >&6
4969 else
4970 cat >conftest.adb <<EOF
4971 procedure conftest is begin null; end conftest;
4972 EOF
4973 acx_cv_cc_gcc_supports_ada=no
4974 # There is a bug in old released versions of GCC which causes the
4975 # driver to exit successfully when the appropriate language module
4976 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4977 # Therefore we must check for the error message as well as an
4978 # unsuccessful exit.
4979 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4980 # given a .adb file, but produce no object file. So we must check
4981 # if an object file was really produced to guard against this.
4982 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4983 if test x"$errors" = x && test -f conftest.$ac_objext; then
4984 acx_cv_cc_gcc_supports_ada=yes
4985 fi
4986 rm -f conftest.*
4987 fi
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4989 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4990
4991 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4992 have_gnat=yes
4993 else
4994 have_gnat=no
4995 fi
4996
4997
4998 # Do configure tests with the C++ compiler, since that's what we build with.
4999 ac_ext=cpp
5000 ac_cpp='$CXXCPP $CPPFLAGS'
5001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5004
5005
5006 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5007 # optimizations to be activated explicitly by the toplevel.
5008 case "$CC" in
5009 */prev-gcc/xgcc*) ;;
5010 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5011 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5012 esac
5013
5014
5015
5016 # Determine PICFLAG for target gnatlib.
5017
5018
5019
5020
5021 case "${target}" in
5022 # PIC is the default on some targets or must not be used.
5023 *-*-darwin*)
5024 # For darwin, common symbols are not allowed in MH_DYLIB files
5025 case "${CFLAGS}" in
5026 # If we are using a compiler supporting mdynamic-no-pic
5027 # and the option has been tested as safe to add, then cancel
5028 # it here, since the code generated is incompatible with shared
5029 # libs.
5030 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5031 *) PICFLAG_FOR_TARGET=-fno-common ;;
5032 esac
5033 ;;
5034 alpha*-dec-osf5*)
5035 # PIC is the default.
5036 ;;
5037 hppa*64*-*-hpux*)
5038 # PIC is the default for 64-bit PA HP-UX.
5039 ;;
5040 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5041 ;;
5042 i[34567]86-*-mingw* | x86_64-*-mingw*)
5043 ;;
5044 i[34567]86-*-nto-qnx*)
5045 # QNX uses GNU C++, but need to define -shared option too, otherwise
5046 # it will coredump.
5047 PICFLAG_FOR_TARGET='-fPIC -shared'
5048 ;;
5049 i[34567]86-pc-msdosdjgpp*)
5050 # DJGPP does not support shared libraries at all.
5051 ;;
5052 ia64*-*-hpux*)
5053 # On IA64 HP-UX, PIC is the default but the pic flag
5054 # sets the default TLS model and affects inlining.
5055 PICFLAG_FOR_TARGET=-fPIC
5056 ;;
5057 mips-sgi-irix6*)
5058 # PIC is the default.
5059 ;;
5060 rs6000-ibm-aix* | powerpc-ibm-aix*)
5061 # All AIX code is PIC.
5062 ;;
5063
5064 # Some targets support both -fPIC and -fpic, but prefer the latter.
5065 # FIXME: Why?
5066 i[34567]86-*-* | x86_64-*-*)
5067 PICFLAG_FOR_TARGET=-fpic
5068 ;;
5069 # FIXME: Override -fPIC default in libgcc only?
5070 sh-*-linux* | sh[2346lbe]*-*-linux*)
5071 PICFLAG_FOR_TARGET=-fpic
5072 ;;
5073 # FIXME: Simplify to sh*-*-netbsd*?
5074 sh-*-netbsdelf* | shl*-*-netbsdelf*)
5075 PICFLAG_FOR_TARGET=-fpic
5076 ;;
5077 # Default to -fPIC unless specified otherwise.
5078 *)
5079 PICFLAG_FOR_TARGET=-fPIC
5080 ;;
5081 esac
5082
5083 # If the user explicitly uses -fpic/-fPIC, keep that.
5084 case "${CFLAGS_FOR_TARGET}" in
5085 *-fpic*)
5086 PICFLAG_FOR_TARGET=-fpic
5087 ;;
5088 *-fPIC*)
5089 PICFLAG_FOR_TARGET=-fPIC
5090 ;;
5091 esac
5092
5093
5094
5095 # -------------------------
5096 # Check C compiler features
5097 # -------------------------
5098
5099
5100 ac_ext=cpp
5101 ac_cpp='$CXXCPP $CPPFLAGS'
5102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5106 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5107 if test -z "$CXXCPP"; then
5108 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 # Double quotes because CXXCPP needs to be expanded
5112 for CXXCPP in "$CXX -E" "/lib/cpp"
5113 do
5114 ac_preproc_ok=false
5115 for ac_cxx_preproc_warn_flag in '' yes
5116 do
5117 # Use a header file that comes with gcc, so configuring glibc
5118 # with a fresh cross-compiler works.
5119 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5120 # <limits.h> exists even on freestanding compilers.
5121 # On the NeXT, cc -E runs the code through the compiler's parser,
5122 # not just through cpp. "Syntax error" is here to catch this case.
5123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5124 /* end confdefs.h. */
5125 #ifdef __STDC__
5126 # include <limits.h>
5127 #else
5128 # include <assert.h>
5129 #endif
5130 Syntax error
5131 _ACEOF
5132 if ac_fn_cxx_try_cpp "$LINENO"; then :
5133
5134 else
5135 # Broken: fails on valid input.
5136 continue
5137 fi
5138 rm -f conftest.err conftest.$ac_ext
5139
5140 # OK, works on sane cases. Now check whether nonexistent headers
5141 # can be detected and how.
5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h. */
5144 #include <ac_nonexistent.h>
5145 _ACEOF
5146 if ac_fn_cxx_try_cpp "$LINENO"; then :
5147 # Broken: success on invalid input.
5148 continue
5149 else
5150 # Passes both tests.
5151 ac_preproc_ok=:
5152 break
5153 fi
5154 rm -f conftest.err conftest.$ac_ext
5155
5156 done
5157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5158 rm -f conftest.err conftest.$ac_ext
5159 if $ac_preproc_ok; then :
5160 break
5161 fi
5162
5163 done
5164 ac_cv_prog_CXXCPP=$CXXCPP
5165
5166 fi
5167 CXXCPP=$ac_cv_prog_CXXCPP
5168 else
5169 ac_cv_prog_CXXCPP=$CXXCPP
5170 fi
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5172 $as_echo "$CXXCPP" >&6; }
5173 ac_preproc_ok=false
5174 for ac_cxx_preproc_warn_flag in '' yes
5175 do
5176 # Use a header file that comes with gcc, so configuring glibc
5177 # with a fresh cross-compiler works.
5178 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5179 # <limits.h> exists even on freestanding compilers.
5180 # On the NeXT, cc -E runs the code through the compiler's parser,
5181 # not just through cpp. "Syntax error" is here to catch this case.
5182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183 /* end confdefs.h. */
5184 #ifdef __STDC__
5185 # include <limits.h>
5186 #else
5187 # include <assert.h>
5188 #endif
5189 Syntax error
5190 _ACEOF
5191 if ac_fn_cxx_try_cpp "$LINENO"; then :
5192
5193 else
5194 # Broken: fails on valid input.
5195 continue
5196 fi
5197 rm -f conftest.err conftest.$ac_ext
5198
5199 # OK, works on sane cases. Now check whether nonexistent headers
5200 # can be detected and how.
5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5202 /* end confdefs.h. */
5203 #include <ac_nonexistent.h>
5204 _ACEOF
5205 if ac_fn_cxx_try_cpp "$LINENO"; then :
5206 # Broken: success on invalid input.
5207 continue
5208 else
5209 # Passes both tests.
5210 ac_preproc_ok=:
5211 break
5212 fi
5213 rm -f conftest.err conftest.$ac_ext
5214
5215 done
5216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5217 rm -f conftest.err conftest.$ac_ext
5218 if $ac_preproc_ok; then :
5219
5220 else
5221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5223 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5224 See \`config.log' for more details." "$LINENO" 5; }
5225 fi
5226
5227 ac_ext=cpp
5228 ac_cpp='$CXXCPP $CPPFLAGS'
5229 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5230 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5231 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5232
5233
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5235 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5236 if test "${ac_cv_path_GREP+set}" = set; then :
5237 $as_echo_n "(cached) " >&6
5238 else
5239 if test -z "$GREP"; then
5240 ac_path_GREP_found=false
5241 # Loop through the user's path and test for each of PROGNAME-LIST
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5244 do
5245 IFS=$as_save_IFS
5246 test -z "$as_dir" && as_dir=.
5247 for ac_prog in grep ggrep; do
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5250 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5251 # Check for GNU ac_path_GREP and select it if it is found.
5252 # Check for GNU $ac_path_GREP
5253 case `"$ac_path_GREP" --version 2>&1` in
5254 *GNU*)
5255 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5256 *)
5257 ac_count=0
5258 $as_echo_n 0123456789 >"conftest.in"
5259 while :
5260 do
5261 cat "conftest.in" "conftest.in" >"conftest.tmp"
5262 mv "conftest.tmp" "conftest.in"
5263 cp "conftest.in" "conftest.nl"
5264 $as_echo 'GREP' >> "conftest.nl"
5265 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5266 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5267 as_fn_arith $ac_count + 1 && ac_count=$as_val
5268 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5269 # Best one so far, save it but keep looking for a better one
5270 ac_cv_path_GREP="$ac_path_GREP"
5271 ac_path_GREP_max=$ac_count
5272 fi
5273 # 10*(2^10) chars as input seems more than enough
5274 test $ac_count -gt 10 && break
5275 done
5276 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5277 esac
5278
5279 $ac_path_GREP_found && break 3
5280 done
5281 done
5282 done
5283 IFS=$as_save_IFS
5284 if test -z "$ac_cv_path_GREP"; then
5285 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5286 fi
5287 else
5288 ac_cv_path_GREP=$GREP
5289 fi
5290
5291 fi
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5293 $as_echo "$ac_cv_path_GREP" >&6; }
5294 GREP="$ac_cv_path_GREP"
5295
5296
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5298 $as_echo_n "checking for egrep... " >&6; }
5299 if test "${ac_cv_path_EGREP+set}" = set; then :
5300 $as_echo_n "(cached) " >&6
5301 else
5302 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5303 then ac_cv_path_EGREP="$GREP -E"
5304 else
5305 if test -z "$EGREP"; then
5306 ac_path_EGREP_found=false
5307 # Loop through the user's path and test for each of PROGNAME-LIST
5308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5309 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5310 do
5311 IFS=$as_save_IFS
5312 test -z "$as_dir" && as_dir=.
5313 for ac_prog in egrep; do
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5316 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5317 # Check for GNU ac_path_EGREP and select it if it is found.
5318 # Check for GNU $ac_path_EGREP
5319 case `"$ac_path_EGREP" --version 2>&1` in
5320 *GNU*)
5321 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5322 *)
5323 ac_count=0
5324 $as_echo_n 0123456789 >"conftest.in"
5325 while :
5326 do
5327 cat "conftest.in" "conftest.in" >"conftest.tmp"
5328 mv "conftest.tmp" "conftest.in"
5329 cp "conftest.in" "conftest.nl"
5330 $as_echo 'EGREP' >> "conftest.nl"
5331 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5332 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5333 as_fn_arith $ac_count + 1 && ac_count=$as_val
5334 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5335 # Best one so far, save it but keep looking for a better one
5336 ac_cv_path_EGREP="$ac_path_EGREP"
5337 ac_path_EGREP_max=$ac_count
5338 fi
5339 # 10*(2^10) chars as input seems more than enough
5340 test $ac_count -gt 10 && break
5341 done
5342 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5343 esac
5344
5345 $ac_path_EGREP_found && break 3
5346 done
5347 done
5348 done
5349 IFS=$as_save_IFS
5350 if test -z "$ac_cv_path_EGREP"; then
5351 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5352 fi
5353 else
5354 ac_cv_path_EGREP=$EGREP
5355 fi
5356
5357 fi
5358 fi
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5360 $as_echo "$ac_cv_path_EGREP" >&6; }
5361 EGREP="$ac_cv_path_EGREP"
5362
5363
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5365 $as_echo_n "checking for ANSI C header files... " >&6; }
5366 if test "${ac_cv_header_stdc+set}" = set; then :
5367 $as_echo_n "(cached) " >&6
5368 else
5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h. */
5371 #include <stdlib.h>
5372 #include <stdarg.h>
5373 #include <string.h>
5374 #include <float.h>
5375
5376 int
5377 main ()
5378 {
5379
5380 ;
5381 return 0;
5382 }
5383 _ACEOF
5384 if ac_fn_cxx_try_compile "$LINENO"; then :
5385 ac_cv_header_stdc=yes
5386 else
5387 ac_cv_header_stdc=no
5388 fi
5389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5390
5391 if test $ac_cv_header_stdc = yes; then
5392 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5395 #include <string.h>
5396
5397 _ACEOF
5398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5399 $EGREP "memchr" >/dev/null 2>&1; then :
5400
5401 else
5402 ac_cv_header_stdc=no
5403 fi
5404 rm -f conftest*
5405
5406 fi
5407
5408 if test $ac_cv_header_stdc = yes; then
5409 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411 /* end confdefs.h. */
5412 #include <stdlib.h>
5413
5414 _ACEOF
5415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5416 $EGREP "free" >/dev/null 2>&1; then :
5417
5418 else
5419 ac_cv_header_stdc=no
5420 fi
5421 rm -f conftest*
5422
5423 fi
5424
5425 if test $ac_cv_header_stdc = yes; then
5426 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5427 if test "$cross_compiling" = yes; then :
5428 :
5429 else
5430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5431 /* end confdefs.h. */
5432 #include <ctype.h>
5433 #include <stdlib.h>
5434 #if ((' ' & 0x0FF) == 0x020)
5435 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5436 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5437 #else
5438 # define ISLOWER(c) \
5439 (('a' <= (c) && (c) <= 'i') \
5440 || ('j' <= (c) && (c) <= 'r') \
5441 || ('s' <= (c) && (c) <= 'z'))
5442 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5443 #endif
5444
5445 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5446 int
5447 main ()
5448 {
5449 int i;
5450 for (i = 0; i < 256; i++)
5451 if (XOR (islower (i), ISLOWER (i))
5452 || toupper (i) != TOUPPER (i))
5453 return 2;
5454 return 0;
5455 }
5456 _ACEOF
5457 if ac_fn_cxx_try_run "$LINENO"; then :
5458
5459 else
5460 ac_cv_header_stdc=no
5461 fi
5462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5463 conftest.$ac_objext conftest.beam conftest.$ac_ext
5464 fi
5465
5466 fi
5467 fi
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5469 $as_echo "$ac_cv_header_stdc" >&6; }
5470 if test $ac_cv_header_stdc = yes; then
5471
5472 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5473
5474 fi
5475
5476 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5477 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5478 inttypes.h stdint.h unistd.h
5479 do :
5480 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5481 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5482 "
5483 eval as_val=\$$as_ac_Header
5484 if test "x$as_val" = x""yes; then :
5485 cat >>confdefs.h <<_ACEOF
5486 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5487 _ACEOF
5488
5489 fi
5490
5491 done
5492
5493
5494
5495 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5496 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5497 MINIX=yes
5498 else
5499 MINIX=
5500 fi
5501
5502
5503 if test "$MINIX" = yes; then
5504
5505 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5506
5507
5508 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5509
5510
5511 $as_echo "#define _MINIX 1" >>confdefs.h
5512
5513 fi
5514
5515
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5517 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5518 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5519 $as_echo_n "(cached) " >&6
5520 else
5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5523
5524 # define __EXTENSIONS__ 1
5525 $ac_includes_default
5526 int
5527 main ()
5528 {
5529
5530 ;
5531 return 0;
5532 }
5533 _ACEOF
5534 if ac_fn_cxx_try_compile "$LINENO"; then :
5535 ac_cv_safe_to_define___extensions__=yes
5536 else
5537 ac_cv_safe_to_define___extensions__=no
5538 fi
5539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5540 fi
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5542 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5543 test $ac_cv_safe_to_define___extensions__ = yes &&
5544 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5545
5546 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5547
5548 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5549
5550 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5551
5552 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5553
5554
5555 ac_ext=c
5556 ac_cpp='$CPP $CPPFLAGS'
5557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5561 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5562 # On Suns, sometimes $CPP names a directory.
5563 if test -n "$CPP" && test -d "$CPP"; then
5564 CPP=
5565 fi
5566 if test -z "$CPP"; then
5567 if test "${ac_cv_prog_CPP+set}" = set; then :
5568 $as_echo_n "(cached) " >&6
5569 else
5570 # Double quotes because CPP needs to be expanded
5571 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5572 do
5573 ac_preproc_ok=false
5574 for ac_c_preproc_warn_flag in '' yes
5575 do
5576 # Use a header file that comes with gcc, so configuring glibc
5577 # with a fresh cross-compiler works.
5578 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5579 # <limits.h> exists even on freestanding compilers.
5580 # On the NeXT, cc -E runs the code through the compiler's parser,
5581 # not just through cpp. "Syntax error" is here to catch this case.
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5584 #ifdef __STDC__
5585 # include <limits.h>
5586 #else
5587 # include <assert.h>
5588 #endif
5589 Syntax error
5590 _ACEOF
5591 if ac_fn_c_try_cpp "$LINENO"; then :
5592
5593 else
5594 # Broken: fails on valid input.
5595 continue
5596 fi
5597 rm -f conftest.err conftest.$ac_ext
5598
5599 # OK, works on sane cases. Now check whether nonexistent headers
5600 # can be detected and how.
5601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5602 /* end confdefs.h. */
5603 #include <ac_nonexistent.h>
5604 _ACEOF
5605 if ac_fn_c_try_cpp "$LINENO"; then :
5606 # Broken: success on invalid input.
5607 continue
5608 else
5609 # Passes both tests.
5610 ac_preproc_ok=:
5611 break
5612 fi
5613 rm -f conftest.err conftest.$ac_ext
5614
5615 done
5616 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5617 rm -f conftest.err conftest.$ac_ext
5618 if $ac_preproc_ok; then :
5619 break
5620 fi
5621
5622 done
5623 ac_cv_prog_CPP=$CPP
5624
5625 fi
5626 CPP=$ac_cv_prog_CPP
5627 else
5628 ac_cv_prog_CPP=$CPP
5629 fi
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5631 $as_echo "$CPP" >&6; }
5632 ac_preproc_ok=false
5633 for ac_c_preproc_warn_flag in '' yes
5634 do
5635 # Use a header file that comes with gcc, so configuring glibc
5636 # with a fresh cross-compiler works.
5637 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5638 # <limits.h> exists even on freestanding compilers.
5639 # On the NeXT, cc -E runs the code through the compiler's parser,
5640 # not just through cpp. "Syntax error" is here to catch this case.
5641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5642 /* end confdefs.h. */
5643 #ifdef __STDC__
5644 # include <limits.h>
5645 #else
5646 # include <assert.h>
5647 #endif
5648 Syntax error
5649 _ACEOF
5650 if ac_fn_c_try_cpp "$LINENO"; then :
5651
5652 else
5653 # Broken: fails on valid input.
5654 continue
5655 fi
5656 rm -f conftest.err conftest.$ac_ext
5657
5658 # OK, works on sane cases. Now check whether nonexistent headers
5659 # can be detected and how.
5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661 /* end confdefs.h. */
5662 #include <ac_nonexistent.h>
5663 _ACEOF
5664 if ac_fn_c_try_cpp "$LINENO"; then :
5665 # Broken: success on invalid input.
5666 continue
5667 else
5668 # Passes both tests.
5669 ac_preproc_ok=:
5670 break
5671 fi
5672 rm -f conftest.err conftest.$ac_ext
5673
5674 done
5675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5676 rm -f conftest.err conftest.$ac_ext
5677 if $ac_preproc_ok; then :
5678
5679 else
5680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5682 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5683 See \`config.log' for more details." "$LINENO" 5; }
5684 fi
5685
5686 ac_ext=cpp
5687 ac_cpp='$CXXCPP $CPPFLAGS'
5688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5691
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5693 $as_echo_n "checking for inline... " >&6; }
5694 if test "${ac_cv_c_inline+set}" = set; then :
5695 $as_echo_n "(cached) " >&6
5696 else
5697 ac_cv_c_inline=no
5698 for ac_kw in inline __inline__ __inline; do
5699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5700 /* end confdefs.h. */
5701 #ifndef __cplusplus
5702 typedef int foo_t;
5703 static $ac_kw foo_t static_foo () {return 0; }
5704 $ac_kw foo_t foo () {return 0; }
5705 #endif
5706
5707 _ACEOF
5708 if ac_fn_cxx_try_compile "$LINENO"; then :
5709 ac_cv_c_inline=$ac_kw
5710 fi
5711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5712 test "$ac_cv_c_inline" != no && break
5713 done
5714
5715 fi
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5717 $as_echo "$ac_cv_c_inline" >&6; }
5718
5719 case $ac_cv_c_inline in
5720 inline | yes) ;;
5721 *)
5722 case $ac_cv_c_inline in
5723 no) ac_val=;;
5724 *) ac_val=$ac_cv_c_inline;;
5725 esac
5726 cat >>confdefs.h <<_ACEOF
5727 #ifndef __cplusplus
5728 #define inline $ac_val
5729 #endif
5730 _ACEOF
5731 ;;
5732 esac
5733
5734
5735 # Check whether --enable-largefile was given.
5736 if test "${enable_largefile+set}" = set; then :
5737 enableval=$enable_largefile;
5738 fi
5739
5740 if test "$enable_largefile" != no; then
5741
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5743 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5744 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5745 $as_echo_n "(cached) " >&6
5746 else
5747 ac_cv_sys_largefile_CC=no
5748 if test "$GCC" != yes; then
5749 ac_save_CC=$CC
5750 while :; do
5751 # IRIX 6.2 and later do not support large files by default,
5752 # so use the C compiler's -n32 option if that helps.
5753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754 /* end confdefs.h. */
5755 #include <sys/types.h>
5756 /* Check that off_t can represent 2**63 - 1 correctly.
5757 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5758 since some C++ compilers masquerading as C compilers
5759 incorrectly reject 9223372036854775807. */
5760 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5761 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5762 && LARGE_OFF_T % 2147483647 == 1)
5763 ? 1 : -1];
5764 int
5765 main ()
5766 {
5767
5768 ;
5769 return 0;
5770 }
5771 _ACEOF
5772 if ac_fn_cxx_try_compile "$LINENO"; then :
5773 break
5774 fi
5775 rm -f core conftest.err conftest.$ac_objext
5776 CC="$CC -n32"
5777 if ac_fn_cxx_try_compile "$LINENO"; then :
5778 ac_cv_sys_largefile_CC=' -n32'; break
5779 fi
5780 rm -f core conftest.err conftest.$ac_objext
5781 break
5782 done
5783 CC=$ac_save_CC
5784 rm -f conftest.$ac_ext
5785 fi
5786 fi
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5788 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5789 if test "$ac_cv_sys_largefile_CC" != no; then
5790 CC=$CC$ac_cv_sys_largefile_CC
5791 fi
5792
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5794 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5795 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5796 $as_echo_n "(cached) " >&6
5797 else
5798 while :; do
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5801 #include <sys/types.h>
5802 /* Check that off_t can represent 2**63 - 1 correctly.
5803 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5804 since some C++ compilers masquerading as C compilers
5805 incorrectly reject 9223372036854775807. */
5806 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5807 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5808 && LARGE_OFF_T % 2147483647 == 1)
5809 ? 1 : -1];
5810 int
5811 main ()
5812 {
5813
5814 ;
5815 return 0;
5816 }
5817 _ACEOF
5818 if ac_fn_cxx_try_compile "$LINENO"; then :
5819 ac_cv_sys_file_offset_bits=no; break
5820 fi
5821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823 /* end confdefs.h. */
5824 #define _FILE_OFFSET_BITS 64
5825 #include <sys/types.h>
5826 /* Check that off_t can represent 2**63 - 1 correctly.
5827 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5828 since some C++ compilers masquerading as C compilers
5829 incorrectly reject 9223372036854775807. */
5830 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5831 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5832 && LARGE_OFF_T % 2147483647 == 1)
5833 ? 1 : -1];
5834 int
5835 main ()
5836 {
5837
5838 ;
5839 return 0;
5840 }
5841 _ACEOF
5842 if ac_fn_cxx_try_compile "$LINENO"; then :
5843 ac_cv_sys_file_offset_bits=64; break
5844 fi
5845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5846 ac_cv_sys_file_offset_bits=unknown
5847 break
5848 done
5849 fi
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5851 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5852 case $ac_cv_sys_file_offset_bits in #(
5853 no | unknown) ;;
5854 *)
5855 cat >>confdefs.h <<_ACEOF
5856 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5857 _ACEOF
5858 ;;
5859 esac
5860 rm -rf conftest*
5861 if test $ac_cv_sys_file_offset_bits = unknown; then
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5863 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5864 if test "${ac_cv_sys_large_files+set}" = set; then :
5865 $as_echo_n "(cached) " >&6
5866 else
5867 while :; do
5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h. */
5870 #include <sys/types.h>
5871 /* Check that off_t can represent 2**63 - 1 correctly.
5872 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5873 since some C++ compilers masquerading as C compilers
5874 incorrectly reject 9223372036854775807. */
5875 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5876 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5877 && LARGE_OFF_T % 2147483647 == 1)
5878 ? 1 : -1];
5879 int
5880 main ()
5881 {
5882
5883 ;
5884 return 0;
5885 }
5886 _ACEOF
5887 if ac_fn_cxx_try_compile "$LINENO"; then :
5888 ac_cv_sys_large_files=no; break
5889 fi
5890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5892 /* end confdefs.h. */
5893 #define _LARGE_FILES 1
5894 #include <sys/types.h>
5895 /* Check that off_t can represent 2**63 - 1 correctly.
5896 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5897 since some C++ compilers masquerading as C compilers
5898 incorrectly reject 9223372036854775807. */
5899 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5900 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5901 && LARGE_OFF_T % 2147483647 == 1)
5902 ? 1 : -1];
5903 int
5904 main ()
5905 {
5906
5907 ;
5908 return 0;
5909 }
5910 _ACEOF
5911 if ac_fn_cxx_try_compile "$LINENO"; then :
5912 ac_cv_sys_large_files=1; break
5913 fi
5914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915 ac_cv_sys_large_files=unknown
5916 break
5917 done
5918 fi
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5920 $as_echo "$ac_cv_sys_large_files" >&6; }
5921 case $ac_cv_sys_large_files in #(
5922 no | unknown) ;;
5923 *)
5924 cat >>confdefs.h <<_ACEOF
5925 #define _LARGE_FILES $ac_cv_sys_large_files
5926 _ACEOF
5927 ;;
5928 esac
5929 rm -rf conftest*
5930 fi
5931 fi
5932
5933
5934 # sizeof(char) is 1 by definition.
5935 # The cast to long int works around a bug in the HP C Compiler
5936 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5937 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5938 # This bug is HP SR number 8606223364.
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5940 $as_echo_n "checking size of void *... " >&6; }
5941 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5942 $as_echo_n "(cached) " >&6
5943 else
5944 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5945
5946 else
5947 if test "$ac_cv_type_void_p" = yes; then
5948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5950 { as_fn_set_status 77
5951 as_fn_error "cannot compute sizeof (void *)
5952 See \`config.log' for more details." "$LINENO" 5; }; }
5953 else
5954 ac_cv_sizeof_void_p=0
5955 fi
5956 fi
5957
5958 fi
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5960 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5961
5962
5963
5964 cat >>confdefs.h <<_ACEOF
5965 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5966 _ACEOF
5967
5968
5969 # The cast to long int works around a bug in the HP C Compiler
5970 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5971 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5972 # This bug is HP SR number 8606223364.
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5974 $as_echo_n "checking size of short... " >&6; }
5975 if test "${ac_cv_sizeof_short+set}" = set; then :
5976 $as_echo_n "(cached) " >&6
5977 else
5978 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5979
5980 else
5981 if test "$ac_cv_type_short" = yes; then
5982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5984 { as_fn_set_status 77
5985 as_fn_error "cannot compute sizeof (short)
5986 See \`config.log' for more details." "$LINENO" 5; }; }
5987 else
5988 ac_cv_sizeof_short=0
5989 fi
5990 fi
5991
5992 fi
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5994 $as_echo "$ac_cv_sizeof_short" >&6; }
5995
5996
5997
5998 cat >>confdefs.h <<_ACEOF
5999 #define SIZEOF_SHORT $ac_cv_sizeof_short
6000 _ACEOF
6001
6002
6003 # The cast to long int works around a bug in the HP C Compiler
6004 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6005 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6006 # This bug is HP SR number 8606223364.
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6008 $as_echo_n "checking size of int... " >&6; }
6009 if test "${ac_cv_sizeof_int+set}" = set; then :
6010 $as_echo_n "(cached) " >&6
6011 else
6012 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6013
6014 else
6015 if test "$ac_cv_type_int" = yes; then
6016 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6018 { as_fn_set_status 77
6019 as_fn_error "cannot compute sizeof (int)
6020 See \`config.log' for more details." "$LINENO" 5; }; }
6021 else
6022 ac_cv_sizeof_int=0
6023 fi
6024 fi
6025
6026 fi
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6028 $as_echo "$ac_cv_sizeof_int" >&6; }
6029
6030
6031
6032 cat >>confdefs.h <<_ACEOF
6033 #define SIZEOF_INT $ac_cv_sizeof_int
6034 _ACEOF
6035
6036
6037 # The cast to long int works around a bug in the HP C Compiler
6038 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6039 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6040 # This bug is HP SR number 8606223364.
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6042 $as_echo_n "checking size of long... " >&6; }
6043 if test "${ac_cv_sizeof_long+set}" = set; then :
6044 $as_echo_n "(cached) " >&6
6045 else
6046 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6047
6048 else
6049 if test "$ac_cv_type_long" = yes; then
6050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6052 { as_fn_set_status 77
6053 as_fn_error "cannot compute sizeof (long)
6054 See \`config.log' for more details." "$LINENO" 5; }; }
6055 else
6056 ac_cv_sizeof_long=0
6057 fi
6058 fi
6059
6060 fi
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6062 $as_echo "$ac_cv_sizeof_long" >&6; }
6063
6064
6065
6066 cat >>confdefs.h <<_ACEOF
6067 #define SIZEOF_LONG $ac_cv_sizeof_long
6068 _ACEOF
6069
6070
6071 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6072 if test "x$ac_cv_type_long_long" = x""yes; then :
6073
6074 cat >>confdefs.h <<_ACEOF
6075 #define HAVE_LONG_LONG 1
6076 _ACEOF
6077
6078 # The cast to long int works around a bug in the HP C Compiler
6079 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6080 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6081 # This bug is HP SR number 8606223364.
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6083 $as_echo_n "checking size of long long... " >&6; }
6084 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6085 $as_echo_n "(cached) " >&6
6086 else
6087 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6088
6089 else
6090 if test "$ac_cv_type_long_long" = yes; then
6091 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6093 { as_fn_set_status 77
6094 as_fn_error "cannot compute sizeof (long long)
6095 See \`config.log' for more details." "$LINENO" 5; }; }
6096 else
6097 ac_cv_sizeof_long_long=0
6098 fi
6099 fi
6100
6101 fi
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6103 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6104
6105
6106
6107 cat >>confdefs.h <<_ACEOF
6108 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6109 _ACEOF
6110
6111
6112 fi
6113
6114 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6115 case $ac_cv_c_int8_t in #(
6116 no|yes) ;; #(
6117 *)
6118
6119 cat >>confdefs.h <<_ACEOF
6120 #define int8_t $ac_cv_c_int8_t
6121 _ACEOF
6122 ;;
6123 esac
6124
6125 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6126 case $ac_cv_c_int16_t in #(
6127 no|yes) ;; #(
6128 *)
6129
6130 cat >>confdefs.h <<_ACEOF
6131 #define int16_t $ac_cv_c_int16_t
6132 _ACEOF
6133 ;;
6134 esac
6135
6136 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6137 case $ac_cv_c_int32_t in #(
6138 no|yes) ;; #(
6139 *)
6140
6141 cat >>confdefs.h <<_ACEOF
6142 #define int32_t $ac_cv_c_int32_t
6143 _ACEOF
6144 ;;
6145 esac
6146
6147 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6148 case $ac_cv_c_int64_t in #(
6149 no|yes) ;; #(
6150 *)
6151
6152 cat >>confdefs.h <<_ACEOF
6153 #define int64_t $ac_cv_c_int64_t
6154 _ACEOF
6155 ;;
6156 esac
6157
6158
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6160 $as_echo_n "checking for long long int... " >&6; }
6161 if test "${ac_cv_type_long_long_int+set}" = set; then :
6162 $as_echo_n "(cached) " >&6
6163 else
6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6166
6167 /* For now, do not test the preprocessor; as of 2007 there are too many
6168 implementations with broken preprocessors. Perhaps this can
6169 be revisited in 2012. In the meantime, code should not expect
6170 #if to work with literals wider than 32 bits. */
6171 /* Test literals. */
6172 long long int ll = 9223372036854775807ll;
6173 long long int nll = -9223372036854775807LL;
6174 unsigned long long int ull = 18446744073709551615ULL;
6175 /* Test constant expressions. */
6176 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6177 ? 1 : -1)];
6178 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6179 ? 1 : -1)];
6180 int i = 63;
6181 int
6182 main ()
6183 {
6184 /* Test availability of runtime routines for shift and division. */
6185 long long int llmax = 9223372036854775807ll;
6186 unsigned long long int ullmax = 18446744073709551615ull;
6187 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6188 | (llmax / ll) | (llmax % ll)
6189 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6190 | (ullmax / ull) | (ullmax % ull));
6191 ;
6192 return 0;
6193 }
6194
6195 _ACEOF
6196 if ac_fn_cxx_try_link "$LINENO"; then :
6197 if test "$cross_compiling" = yes; then :
6198 ac_cv_type_long_long_int=yes
6199 else
6200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201 /* end confdefs.h. */
6202 #include <limits.h>
6203 #ifndef LLONG_MAX
6204 # define HALF \
6205 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6206 # define LLONG_MAX (HALF - 1 + HALF)
6207 #endif
6208 int
6209 main ()
6210 {
6211 long long int n = 1;
6212 int i;
6213 for (i = 0; ; i++)
6214 {
6215 long long int m = n << i;
6216 if (m >> i != n)
6217 return 1;
6218 if (LLONG_MAX / 2 < m)
6219 break;
6220 }
6221 return 0;
6222 ;
6223 return 0;
6224 }
6225 _ACEOF
6226 if ac_fn_cxx_try_run "$LINENO"; then :
6227 ac_cv_type_long_long_int=yes
6228 else
6229 ac_cv_type_long_long_int=no
6230 fi
6231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6232 conftest.$ac_objext conftest.beam conftest.$ac_ext
6233 fi
6234
6235 else
6236 ac_cv_type_long_long_int=no
6237 fi
6238 rm -f core conftest.err conftest.$ac_objext \
6239 conftest$ac_exeext conftest.$ac_ext
6240 fi
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6242 $as_echo "$ac_cv_type_long_long_int" >&6; }
6243 if test $ac_cv_type_long_long_int = yes; then
6244
6245 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6246
6247 fi
6248
6249
6250
6251 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6252 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6253
6254 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6255
6256 else
6257 test $ac_cv_type_long_long_int = yes \
6258 && ac_type='long long int' \
6259 || ac_type='long int'
6260
6261 cat >>confdefs.h <<_ACEOF
6262 #define intmax_t $ac_type
6263 _ACEOF
6264
6265 fi
6266
6267
6268
6269 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6270 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6271
6272 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6273
6274 else
6275 for ac_type in 'int' 'long int' 'long long int'; do
6276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6277 /* end confdefs.h. */
6278 $ac_includes_default
6279 int
6280 main ()
6281 {
6282 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6283 test_array [0] = 0
6284
6285 ;
6286 return 0;
6287 }
6288 _ACEOF
6289 if ac_fn_cxx_try_compile "$LINENO"; then :
6290
6291 cat >>confdefs.h <<_ACEOF
6292 #define intptr_t $ac_type
6293 _ACEOF
6294
6295 ac_type=
6296 fi
6297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6298 test -z "$ac_type" && break
6299 done
6300 fi
6301
6302
6303 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6304 case $ac_cv_c_uint8_t in #(
6305 no|yes) ;; #(
6306 *)
6307
6308 $as_echo "#define _UINT8_T 1" >>confdefs.h
6309
6310
6311 cat >>confdefs.h <<_ACEOF
6312 #define uint8_t $ac_cv_c_uint8_t
6313 _ACEOF
6314 ;;
6315 esac
6316
6317 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6318 case $ac_cv_c_uint16_t in #(
6319 no|yes) ;; #(
6320 *)
6321
6322
6323 cat >>confdefs.h <<_ACEOF
6324 #define uint16_t $ac_cv_c_uint16_t
6325 _ACEOF
6326 ;;
6327 esac
6328
6329 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6330 case $ac_cv_c_uint32_t in #(
6331 no|yes) ;; #(
6332 *)
6333
6334 $as_echo "#define _UINT32_T 1" >>confdefs.h
6335
6336
6337 cat >>confdefs.h <<_ACEOF
6338 #define uint32_t $ac_cv_c_uint32_t
6339 _ACEOF
6340 ;;
6341 esac
6342
6343 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6344 case $ac_cv_c_uint64_t in #(
6345 no|yes) ;; #(
6346 *)
6347
6348 $as_echo "#define _UINT64_T 1" >>confdefs.h
6349
6350
6351 cat >>confdefs.h <<_ACEOF
6352 #define uint64_t $ac_cv_c_uint64_t
6353 _ACEOF
6354 ;;
6355 esac
6356
6357
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6359 $as_echo_n "checking for unsigned long long int... " >&6; }
6360 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6361 $as_echo_n "(cached) " >&6
6362 else
6363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364 /* end confdefs.h. */
6365
6366 /* For now, do not test the preprocessor; as of 2007 there are too many
6367 implementations with broken preprocessors. Perhaps this can
6368 be revisited in 2012. In the meantime, code should not expect
6369 #if to work with literals wider than 32 bits. */
6370 /* Test literals. */
6371 long long int ll = 9223372036854775807ll;
6372 long long int nll = -9223372036854775807LL;
6373 unsigned long long int ull = 18446744073709551615ULL;
6374 /* Test constant expressions. */
6375 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6376 ? 1 : -1)];
6377 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6378 ? 1 : -1)];
6379 int i = 63;
6380 int
6381 main ()
6382 {
6383 /* Test availability of runtime routines for shift and division. */
6384 long long int llmax = 9223372036854775807ll;
6385 unsigned long long int ullmax = 18446744073709551615ull;
6386 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6387 | (llmax / ll) | (llmax % ll)
6388 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6389 | (ullmax / ull) | (ullmax % ull));
6390 ;
6391 return 0;
6392 }
6393
6394 _ACEOF
6395 if ac_fn_cxx_try_link "$LINENO"; then :
6396 ac_cv_type_unsigned_long_long_int=yes
6397 else
6398 ac_cv_type_unsigned_long_long_int=no
6399 fi
6400 rm -f core conftest.err conftest.$ac_objext \
6401 conftest$ac_exeext conftest.$ac_ext
6402 fi
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6404 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6405 if test $ac_cv_type_unsigned_long_long_int = yes; then
6406
6407 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6408
6409 fi
6410
6411
6412
6413 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6414 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6415
6416 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6417
6418 else
6419 test $ac_cv_type_unsigned_long_long_int = yes \
6420 && ac_type='unsigned long long int' \
6421 || ac_type='unsigned long int'
6422
6423 cat >>confdefs.h <<_ACEOF
6424 #define uintmax_t $ac_type
6425 _ACEOF
6426
6427 fi
6428
6429
6430
6431 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6432 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6433
6434 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6435
6436 else
6437 for ac_type in 'unsigned int' 'unsigned long int' \
6438 'unsigned long long int'; do
6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h. */
6441 $ac_includes_default
6442 int
6443 main ()
6444 {
6445 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6446 test_array [0] = 0
6447
6448 ;
6449 return 0;
6450 }
6451 _ACEOF
6452 if ac_fn_cxx_try_compile "$LINENO"; then :
6453
6454 cat >>confdefs.h <<_ACEOF
6455 #define uintptr_t $ac_type
6456 _ACEOF
6457
6458 ac_type=
6459 fi
6460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6461 test -z "$ac_type" && break
6462 done
6463 fi
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6479 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6480 fi
6481
6482 # check what underlying integer type int64_t uses
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6484 $as_echo_n "checking for int64_t underlying type... " >&6; }
6485 if test "${ac_cv_int64_t_type+set}" = set; then :
6486 $as_echo_n "(cached) " >&6
6487 else
6488
6489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490 /* end confdefs.h. */
6491
6492 #ifdef HAVE_STDINT_H
6493 #include <stdint.h>
6494 #endif
6495 template <typename T> struct X { };
6496 template <>
6497 struct X<long> { typedef long t; };
6498
6499 int
6500 main ()
6501 {
6502 X<int64_t>::t x;
6503 ;
6504 return 0;
6505 }
6506 _ACEOF
6507 if ac_fn_cxx_try_compile "$LINENO"; then :
6508 ac_cv_int64_t_type=long
6509 else
6510 ac_cv_int64_t_type="long long"
6511 fi
6512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6513 fi
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6515 $as_echo "$ac_cv_int64_t_type" >&6; }
6516 if test "$ac_cv_int64_t_type" = "long"; then
6517
6518 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6519
6520 else
6521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6522 /* end confdefs.h. */
6523
6524 #ifdef HAVE_STDINT_H
6525 #include <stdint.h>
6526 #endif
6527 template <typename T> struct X { };
6528 template <>
6529 struct X<long long> { typedef long long t; };
6530
6531 int
6532 main ()
6533 {
6534 X<int64_t>::t x;
6535 ;
6536 return 0;
6537 }
6538 _ACEOF
6539 if ac_fn_cxx_try_compile "$LINENO"; then :
6540
6541 else
6542 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6543 fi
6544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6545 fi
6546
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6548 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6549 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6550 $as_echo_n "(cached) " >&6
6551 else
6552
6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554 /* end confdefs.h. */
6555
6556 #include <utility>
6557
6558 int
6559 main ()
6560 {
6561 int a, b; std::swap(a,b);
6562 ;
6563 return 0;
6564 }
6565 _ACEOF
6566 if ac_fn_cxx_try_compile "$LINENO"; then :
6567 ac_cv_std_swap_in_utility=yes
6568 else
6569 ac_cv_std_swap_in_utility=no
6570 fi
6571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6572 fi
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6574 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6575 if test $ac_cv_std_swap_in_utility = yes; then
6576
6577 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6578
6579 fi
6580
6581 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6582 # If the host compiler is affected by the bug, and we build with optimization
6583 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6584 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6585 # Since there is no reliable feature check for the presence of this bug,
6586 # we simply use a GCC version number check. (This should never trigger for
6587 # stages 2 or 3 of a native bootstrap.)
6588 aliasing_flags=
6589 if test "$GCC" = yes; then
6590 saved_CXXFLAGS="$CXXFLAGS"
6591
6592 # The following test compilation will succeed if and only if $CXX accepts
6593 # -fno-strict-aliasing *and* is older than GCC 4.3.
6594 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6596 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h. */
6599
6600 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6601 #error compiler not affected by placement new aliasing bug
6602 #endif
6603
6604 _ACEOF
6605 if ac_fn_cxx_try_compile "$LINENO"; then :
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6607 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6608 else
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6610 $as_echo "no" >&6; }
6611 fi
6612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613
6614 CXXFLAGS="$saved_CXXFLAGS"
6615 fi
6616
6617
6618
6619
6620 # ---------------------
6621 # Warnings and checking
6622 # ---------------------
6623
6624 # Check $CC warning features (if it's GCC).
6625 # We want to use -pedantic, but we don't want warnings about
6626 # * 'long long'
6627 # * variadic macros
6628 # * overlong strings
6629 # * C++11 narrowing conversions in { }
6630 # So, we only use -pedantic if we can disable those warnings.
6631
6632 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6633 # Check whether --enable-build-format-warnings was given.
6634 if test "${enable_build_format_warnings+set}" = set; then :
6635 enableval=$enable_build_format_warnings;
6636 else
6637 enable_build_format_warnings=yes
6638 fi
6639
6640 if test $enable_build_format_warnings = no; then :
6641 wf_opt=-Wno-format
6642 else
6643 wf_opt=
6644 fi
6645 ac_ext=cpp
6646 ac_cpp='$CXXCPP $CPPFLAGS'
6647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6648 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6649 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6650
6651 loose_warn=
6652 save_CXXFLAGS="$CXXFLAGS"
6653 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6654 # Do the check with the no- prefix removed since gcc silently
6655 # accepts any -Wno-* option on purpose
6656 case $real_option in
6657 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6658 *) option=$real_option ;;
6659 esac
6660 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6661
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6663 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6664 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6665 $as_echo_n "(cached) " >&6
6666 else
6667 CXXFLAGS="$option"
6668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6669 /* end confdefs.h. */
6670
6671 int
6672 main ()
6673 {
6674
6675 ;
6676 return 0;
6677 }
6678 _ACEOF
6679 if ac_fn_cxx_try_compile "$LINENO"; then :
6680 eval "$as_acx_Woption=yes"
6681 else
6682 eval "$as_acx_Woption=no"
6683 fi
6684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6685
6686 fi
6687 eval ac_res=\$$as_acx_Woption
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6689 $as_echo "$ac_res" >&6; }
6690 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6691 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6692 fi
6693 done
6694 CXXFLAGS="$save_CXXFLAGS"
6695 ac_ext=cpp
6696 ac_cpp='$CXXCPP $CPPFLAGS'
6697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6700
6701
6702
6703 ac_ext=c
6704 ac_cpp='$CPP $CPPFLAGS'
6705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6708
6709 c_loose_warn=
6710 save_CFLAGS="$CFLAGS"
6711 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6712 # Do the check with the no- prefix removed since gcc silently
6713 # accepts any -Wno-* option on purpose
6714 case $real_option in
6715 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6716 *) option=$real_option ;;
6717 esac
6718 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6719
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6721 $as_echo_n "checking whether $CC supports $option... " >&6; }
6722 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6723 $as_echo_n "(cached) " >&6
6724 else
6725 CFLAGS="$option"
6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h. */
6728
6729 int
6730 main ()
6731 {
6732
6733 ;
6734 return 0;
6735 }
6736 _ACEOF
6737 if ac_fn_c_try_compile "$LINENO"; then :
6738 eval "$as_acx_Woption=yes"
6739 else
6740 eval "$as_acx_Woption=no"
6741 fi
6742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6743
6744 fi
6745 eval ac_res=\$$as_acx_Woption
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6747 $as_echo "$ac_res" >&6; }
6748 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6749 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6750 fi
6751 done
6752 CFLAGS="$save_CFLAGS"
6753 ac_ext=cpp
6754 ac_cpp='$CXXCPP $CPPFLAGS'
6755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6758
6759
6760 ac_ext=cpp
6761 ac_cpp='$CXXCPP $CPPFLAGS'
6762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6765
6766 strict_warn=
6767 save_CXXFLAGS="$CXXFLAGS"
6768 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6769 # Do the check with the no- prefix removed since gcc silently
6770 # accepts any -Wno-* option on purpose
6771 case $real_option in
6772 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6773 *) option=$real_option ;;
6774 esac
6775 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6776
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6778 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6779 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6780 $as_echo_n "(cached) " >&6
6781 else
6782 CXXFLAGS="$option"
6783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6784 /* end confdefs.h. */
6785
6786 int
6787 main ()
6788 {
6789
6790 ;
6791 return 0;
6792 }
6793 _ACEOF
6794 if ac_fn_cxx_try_compile "$LINENO"; then :
6795 eval "$as_acx_Woption=yes"
6796 else
6797 eval "$as_acx_Woption=no"
6798 fi
6799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6800
6801 fi
6802 eval ac_res=\$$as_acx_Woption
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6804 $as_echo "$ac_res" >&6; }
6805 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6806 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6807 fi
6808 done
6809 CXXFLAGS="$save_CXXFLAGS"
6810 ac_ext=cpp
6811 ac_cpp='$CXXCPP $CPPFLAGS'
6812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6815
6816
6817 ac_ext=c
6818 ac_cpp='$CPP $CPPFLAGS'
6819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6822
6823 c_strict_warn=
6824 save_CFLAGS="$CFLAGS"
6825 for real_option in -Wold-style-definition -Wc++-compat; do
6826 # Do the check with the no- prefix removed since gcc silently
6827 # accepts any -Wno-* option on purpose
6828 case $real_option in
6829 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6830 *) option=$real_option ;;
6831 esac
6832 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6833
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6835 $as_echo_n "checking whether $CC supports $option... " >&6; }
6836 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6837 $as_echo_n "(cached) " >&6
6838 else
6839 CFLAGS="$option"
6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6842
6843 int
6844 main ()
6845 {
6846
6847 ;
6848 return 0;
6849 }
6850 _ACEOF
6851 if ac_fn_c_try_compile "$LINENO"; then :
6852 eval "$as_acx_Woption=yes"
6853 else
6854 eval "$as_acx_Woption=no"
6855 fi
6856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6857
6858 fi
6859 eval ac_res=\$$as_acx_Woption
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6861 $as_echo "$ac_res" >&6; }
6862 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6863 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6864 fi
6865 done
6866 CFLAGS="$save_CFLAGS"
6867 ac_ext=cpp
6868 ac_cpp='$CXXCPP $CPPFLAGS'
6869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6872
6873
6874 ac_ext=cpp
6875 ac_cpp='$CXXCPP $CPPFLAGS'
6876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6879
6880 # Do the check with the no- prefix removed from the warning options
6881 # since gcc silently accepts any -Wno-* option on purpose
6882 if test "$GXX" = yes; then :
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6884 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6885 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6886 $as_echo_n "(cached) " >&6
6887 else
6888 save_CXXFLAGS="$CXXFLAGS"
6889 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891 /* end confdefs.h. */
6892
6893 int
6894 main ()
6895 {
6896
6897 ;
6898 return 0;
6899 }
6900 _ACEOF
6901 if ac_fn_cxx_try_compile "$LINENO"; then :
6902 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6903 else
6904 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6905 fi
6906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6907 CXXFLAGS="$save_CXXFLAGS"
6908 fi
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6910 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6911 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6912 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6913 fi
6914
6915 fi
6916 ac_ext=cpp
6917 ac_cpp='$CXXCPP $CPPFLAGS'
6918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6921
6922
6923 ac_ext=cpp
6924 ac_cpp='$CXXCPP $CPPFLAGS'
6925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6928
6929 # Check whether --enable-werror-always was given.
6930 if test "${enable_werror_always+set}" = set; then :
6931 enableval=$enable_werror_always;
6932 else
6933 enable_werror_always=no
6934 fi
6935
6936 if test $enable_werror_always = yes; then :
6937 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6938 fi
6939
6940 ac_ext=cpp
6941 ac_cpp='$CXXCPP $CPPFLAGS'
6942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6945
6946
6947
6948 # The above macros do nothing if the compiler is not GCC. However, the
6949 # Makefile has more goo to add other flags, so these variables are used
6950 # to enable warnings only for GCC.
6951 warn_cflags=
6952 warn_cxxflags=
6953 if test "x$GCC" = "xyes"; then
6954 warn_cflags='$(GCC_WARN_CFLAGS)'
6955 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6956 fi
6957
6958
6959
6960 # Disable exceptions and RTTI if building with g++
6961 ac_ext=c
6962 ac_cpp='$CPP $CPPFLAGS'
6963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6966
6967 noexception_flags=
6968 save_CFLAGS="$CFLAGS"
6969 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6970 # Do the check with the no- prefix removed since gcc silently
6971 # accepts any -Wno-* option on purpose
6972 case $real_option in
6973 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6974 *) option=$real_option ;;
6975 esac
6976 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6977
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6979 $as_echo_n "checking whether $CC supports $option... " >&6; }
6980 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6981 $as_echo_n "(cached) " >&6
6982 else
6983 CFLAGS="$option"
6984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985 /* end confdefs.h. */
6986
6987 int
6988 main ()
6989 {
6990
6991 ;
6992 return 0;
6993 }
6994 _ACEOF
6995 if ac_fn_c_try_compile "$LINENO"; then :
6996 eval "$as_acx_Woption=yes"
6997 else
6998 eval "$as_acx_Woption=no"
6999 fi
7000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7001
7002 fi
7003 eval ac_res=\$$as_acx_Woption
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7005 $as_echo "$ac_res" >&6; }
7006 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7007 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7008 fi
7009 done
7010 CFLAGS="$save_CFLAGS"
7011 ac_ext=cpp
7012 ac_cpp='$CXXCPP $CPPFLAGS'
7013 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7014 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7015 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7016
7017
7018
7019 # Enable expensive internal checks
7020 is_release=
7021 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7022 is_release=yes
7023 fi
7024
7025 # Check whether --enable-checking was given.
7026 if test "${enable_checking+set}" = set; then :
7027 enableval=$enable_checking; ac_checking_flags="${enableval}"
7028 else
7029
7030 # Determine the default checks.
7031 if test x$is_release = x ; then
7032 ac_checking_flags=yes,extra
7033 else
7034 ac_checking_flags=release
7035 fi
7036 fi
7037
7038 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7039 for check in release $ac_checking_flags
7040 do
7041 case $check in
7042 # these set all the flags to specific states
7043 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7044 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7045 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7046 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7047 ac_tree_checking=1 ; ac_valgrind_checking= ;
7048 ac_types_checking=1 ;;
7049 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7050 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7051 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7052 ac_rtlflag_checking= ; ac_runtime_checking= ;
7053 ac_tree_checking= ; ac_valgrind_checking= ;
7054 ac_types_checking= ;;
7055 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7056 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7057 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7058 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7059 ac_tree_checking=1 ; ac_valgrind_checking= ;
7060 ac_types_checking=1 ;;
7061 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7062 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7063 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7064 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7065 ac_tree_checking= ; ac_valgrind_checking= ;
7066 ac_types_checking= ;;
7067 # these enable particular checks
7068 assert) ac_assert_checking=1 ;;
7069 df) ac_df_checking=1 ;;
7070 extra) ac_extra_checking=1 ;;
7071 fold) ac_fold_checking=1 ;;
7072 gc) ac_gc_checking=1 ;;
7073 gcac) ac_gc_always_collect=1 ;;
7074 gimple) ac_gimple_checking=1 ;;
7075 misc) ac_checking=1 ;;
7076 rtl) ac_rtl_checking=1 ;;
7077 rtlflag) ac_rtlflag_checking=1 ;;
7078 runtime) ac_runtime_checking=1 ;;
7079 tree) ac_tree_checking=1 ;;
7080 types) ac_types_checking=1 ;;
7081 valgrind) ac_valgrind_checking=1 ;;
7082 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7083 esac
7084 done
7085 IFS="$ac_save_IFS"
7086
7087 nocommon_flag=""
7088 if test x$ac_checking != x ; then
7089
7090 $as_echo "#define CHECKING_P 1" >>confdefs.h
7091
7092 nocommon_flag=-fno-common
7093 else
7094 $as_echo "#define CHECKING_P 0" >>confdefs.h
7095
7096 fi
7097
7098 if test x$ac_extra_checking != x ; then
7099
7100 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7101
7102 else
7103 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7104
7105 fi
7106 if test x$ac_df_checking != x ; then
7107
7108 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7109
7110 fi
7111 if test x$ac_assert_checking != x ; then
7112
7113 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7114
7115 fi
7116 if test x$ac_gimple_checking != x ; then
7117
7118 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7119
7120 fi
7121
7122 if test x$ac_runtime_checking != x ; then
7123
7124 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7125
7126 fi
7127 if test x$ac_tree_checking != x ; then
7128
7129 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7130
7131 TREECHECKING=yes
7132 fi
7133 if test x$ac_types_checking != x ; then
7134
7135 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7136
7137 fi
7138
7139 if test x$ac_rtl_checking != x ; then
7140
7141 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7142
7143 fi
7144 if test x$ac_rtlflag_checking != x ; then
7145
7146 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7147
7148 fi
7149 if test x$ac_gc_checking != x ; then
7150
7151 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7152
7153 fi
7154 if test x$ac_gc_always_collect != x ; then
7155
7156 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7157
7158 fi
7159 if test x$ac_fold_checking != x ; then
7160
7161 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7162
7163 fi
7164 valgrind_path_defines=
7165 valgrind_command=
7166
7167 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7168 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7169 have_valgrind_h=yes
7170 else
7171 have_valgrind_h=no
7172 fi
7173
7174
7175
7176 # It is certainly possible that there's valgrind but no valgrind.h.
7177 # GCC relies on making annotations so we must have both.
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7179 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181 /* end confdefs.h. */
7182 #include <valgrind/memcheck.h>
7183 #ifndef VALGRIND_DISCARD
7184 #error VALGRIND_DISCARD not defined
7185 #endif
7186 _ACEOF
7187 if ac_fn_cxx_try_cpp "$LINENO"; then :
7188 gcc_cv_header_valgrind_memcheck_h=yes
7189 else
7190 gcc_cv_header_valgrind_memcheck_h=no
7191 fi
7192 rm -f conftest.err conftest.$ac_ext
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7194 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7196 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198 /* end confdefs.h. */
7199 #include <memcheck.h>
7200 #ifndef VALGRIND_DISCARD
7201 #error VALGRIND_DISCARD not defined
7202 #endif
7203 _ACEOF
7204 if ac_fn_cxx_try_cpp "$LINENO"; then :
7205 gcc_cv_header_memcheck_h=yes
7206 else
7207 gcc_cv_header_memcheck_h=no
7208 fi
7209 rm -f conftest.err conftest.$ac_ext
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7211 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7212 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7213
7214 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7215
7216 fi
7217 if test $gcc_cv_header_memcheck_h = yes; then
7218
7219 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7220
7221 fi
7222
7223 if test x$ac_valgrind_checking != x ; then
7224
7225 # Prepare PATH_SEPARATOR.
7226 # The user is always right.
7227 if test "${PATH_SEPARATOR+set}" != set; then
7228 echo "#! /bin/sh" >conf$$.sh
7229 echo "exit 0" >>conf$$.sh
7230 chmod +x conf$$.sh
7231 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7232 PATH_SEPARATOR=';'
7233 else
7234 PATH_SEPARATOR=:
7235 fi
7236 rm -f conf$$.sh
7237 fi
7238
7239 # Find out how to test for executable files. Don't use a zero-byte file,
7240 # as systems may use methods other than mode bits to determine executability.
7241 cat >conf$$.file <<_ASEOF
7242 #! /bin/sh
7243 exit 0
7244 _ASEOF
7245 chmod +x conf$$.file
7246 if test -x conf$$.file >/dev/null 2>&1; then
7247 ac_executable_p="test -x"
7248 else
7249 ac_executable_p="test -f"
7250 fi
7251 rm -f conf$$.file
7252
7253 # Extract the first word of "valgrind", so it can be a program name with args.
7254 set dummy valgrind; ac_word=$2
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7256 $as_echo_n "checking for $ac_word... " >&6; }
7257 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7258 $as_echo_n "(cached) " >&6
7259 else
7260 case "$valgrind_path" in
7261 [\\/]* | ?:[\\/]*)
7262 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7263 ;;
7264 *)
7265 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7266 for ac_dir in $PATH; do
7267 IFS="$ac_save_IFS"
7268 test -z "$ac_dir" && ac_dir=.
7269 for ac_exec_ext in '' $ac_executable_extensions; do
7270 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7271 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7272 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7273 break 2
7274 fi
7275 fi
7276 done
7277 done
7278 IFS="$ac_save_IFS"
7279 ;;
7280 esac
7281 fi
7282 valgrind_path="$ac_cv_path_valgrind_path"
7283 if test -n "$valgrind_path"; then
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7285 $as_echo "$valgrind_path" >&6; }
7286 else
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7288 $as_echo "no" >&6; }
7289 fi
7290
7291 if test "x$valgrind_path" = "x" \
7292 || (test $have_valgrind_h = no \
7293 && test $gcc_cv_header_memcheck_h = no \
7294 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7295 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7296 fi
7297 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7298 valgrind_command="$valgrind_path -q"
7299
7300 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7301
7302 fi
7303
7304
7305
7306 # Enable code coverage collection
7307 # Check whether --enable-coverage was given.
7308 if test "${enable_coverage+set}" = set; then :
7309 enableval=$enable_coverage; case "${enableval}" in
7310 yes|noopt)
7311 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7312 ;;
7313 opt)
7314 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7315 ;;
7316 no)
7317 # a.k.a. --disable-coverage
7318 coverage_flags=""
7319 ;;
7320 *)
7321 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7322 ;;
7323 esac
7324 else
7325 coverage_flags=""
7326 fi
7327
7328
7329
7330 # Check whether --enable-gather-detailed-mem-stats was given.
7331 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7332 enableval=$enable_gather_detailed_mem_stats;
7333 else
7334 enable_gather_detailed_mem_stats=no
7335 fi
7336
7337 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7338
7339 cat >>confdefs.h <<_ACEOF
7340 #define GATHER_STATISTICS $gather_stats
7341 _ACEOF
7342
7343
7344 # Check whether --enable-valgrind-annotations was given.
7345 if test "${enable_valgrind_annotations+set}" = set; then :
7346 enableval=$enable_valgrind_annotations;
7347 else
7348 enable_valgrind_annotations=no
7349 fi
7350
7351 if test x$enable_valgrind_annotations != xno \
7352 || test x$ac_valgrind_checking != x; then
7353 if (test $have_valgrind_h = no \
7354 && test $gcc_cv_header_memcheck_h = no \
7355 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7356 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7357 fi
7358
7359 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7360
7361 fi
7362
7363 # -------------------------------
7364 # Miscenalleous configure options
7365 # -------------------------------
7366
7367 # With stabs
7368
7369 # Check whether --with-stabs was given.
7370 if test "${with_stabs+set}" = set; then :
7371 withval=$with_stabs; stabs="$with_stabs"
7372 else
7373 stabs=no
7374 fi
7375
7376
7377 # Determine whether or not multilibs are enabled.
7378 # Check whether --enable-multilib was given.
7379 if test "${enable_multilib+set}" = set; then :
7380 enableval=$enable_multilib;
7381 else
7382 enable_multilib=yes
7383 fi
7384
7385
7386
7387 # Determine whether or not multiarch is enabled.
7388 # Check whether --enable-multiarch was given.
7389 if test "${enable_multiarch+set}" = set; then :
7390 enableval=$enable_multiarch; case "${enableval}" in
7391 yes|no|auto) enable_multiarch=$enableval;;
7392 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7393 esac
7394 else
7395 enable_multiarch=auto
7396 fi
7397
7398 if test x${enable_multiarch} = xauto; then
7399 if test x${with_native_system_header_dir} != x; then
7400 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7401 enable_multiarch=no
7402 fi
7403 if test x$host != x$target && test "x$with_sysroot" = x; then
7404 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7405 enable_multiarch=no
7406 fi
7407 fi
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7409 $as_echo_n "checking for multiarch configuration... " >&6; }
7410
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7412 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7413
7414 # needed for setting the multiarch name for soft-float/hard-float ABIs
7415
7416
7417
7418 # Enable __cxa_atexit for C++.
7419 # Check whether --enable-__cxa_atexit was given.
7420 if test "${enable___cxa_atexit+set}" = set; then :
7421 enableval=$enable___cxa_atexit;
7422 fi
7423
7424
7425 # Enable C extension for decimal float if target supports it.
7426
7427 # Check whether --enable-decimal-float was given.
7428 if test "${enable_decimal_float+set}" = set; then :
7429 enableval=$enable_decimal_float;
7430 case $enable_decimal_float in
7431 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7432 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7433 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7434 esac
7435
7436 else
7437
7438 case $target in
7439 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7440 i?86*-*-elfiamcu | i?86*-*-gnu* | \
7441 i?86*-*-mingw* | x86_64*-*-mingw* | \
7442 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7443 enable_decimal_float=yes
7444 ;;
7445 *)
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7447 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7448 enable_decimal_float=no
7449 ;;
7450 esac
7451
7452 fi
7453
7454
7455 # x86's use BID format instead of DPD
7456 case x$enable_decimal_float in
7457 xyes)
7458 case $target in
7459 i?86*-*-* | x86_64*-*-*)
7460 enable_decimal_float=bid
7461 ;;
7462 *)
7463 enable_decimal_float=dpd
7464 ;;
7465 esac
7466 default_decimal_float=$enable_decimal_float
7467 ;;
7468 xno)
7469 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7470 # dependency on libdecnumber.
7471 default_decimal_float=dpd
7472 ;;
7473 esac
7474
7475
7476
7477
7478 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7479
7480 cat >>confdefs.h <<_ACEOF
7481 #define ENABLE_DECIMAL_FLOAT $dfp
7482 _ACEOF
7483
7484
7485 # Use default_decimal_float for dependency.
7486 enable_decimal_float=$default_decimal_float
7487
7488 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7489
7490 cat >>confdefs.h <<_ACEOF
7491 #define ENABLE_DECIMAL_BID_FORMAT $bid
7492 _ACEOF
7493
7494
7495 # Enable C extension for fixed-point arithmetic.
7496 # Check whether --enable-fixed-point was given.
7497 if test "${enable_fixed_point+set}" = set; then :
7498 enableval=$enable_fixed_point;
7499 else
7500
7501 case $target in
7502 arm*)
7503 enable_fixed_point=yes
7504 ;;
7505
7506 mips*-*-*)
7507 enable_fixed_point=yes
7508 ;;
7509 *)
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7511 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7512 enable_fixed_point=no
7513 ;;
7514 esac
7515
7516 fi
7517
7518
7519
7520 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7521
7522 cat >>confdefs.h <<_ACEOF
7523 #define ENABLE_FIXED_POINT $fixedpoint
7524 _ACEOF
7525
7526
7527 # Enable threads
7528 # Pass with no value to take the default
7529 # Pass with a value to specify a thread package
7530 # Check whether --enable-threads was given.
7531 if test "${enable_threads+set}" = set; then :
7532 enableval=$enable_threads;
7533 else
7534 enable_threads=''
7535 fi
7536
7537
7538 # Check whether --enable-tls was given.
7539 if test "${enable_tls+set}" = set; then :
7540 enableval=$enable_tls;
7541 case $enable_tls in
7542 yes | no) ;;
7543 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7544 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7545 esac
7546
7547 else
7548 enable_tls=''
7549 fi
7550
7551
7552 # Check whether --enable-vtable-verify was given.
7553 if test "${enable_vtable_verify+set}" = set; then :
7554 enableval=$enable_vtable_verify;
7555 else
7556 enable_vtable_verify=no
7557 fi
7558
7559 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7560
7561 cat >>confdefs.h <<_ACEOF
7562 #define ENABLE_VTABLE_VERIFY $vtable_verify
7563 _ACEOF
7564
7565
7566 # Check whether --enable-objc-gc was given.
7567 if test "${enable_objc_gc+set}" = set; then :
7568 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7569 objc_boehm_gc=''
7570 else
7571 objc_boehm_gc=1
7572 fi
7573 else
7574 objc_boehm_gc=''
7575 fi
7576
7577
7578
7579 # Check whether --with-dwarf2 was given.
7580 if test "${with_dwarf2+set}" = set; then :
7581 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7582 else
7583 dwarf2=no
7584 fi
7585
7586
7587 # Check whether --enable-shared was given.
7588 if test "${enable_shared+set}" = set; then :
7589 enableval=$enable_shared;
7590 case $enable_shared in
7591 yes | no) ;;
7592 *)
7593 enable_shared=no
7594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7595 for pkg in $enableval; do
7596 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7597 enable_shared=yes
7598 fi
7599 done
7600 IFS="$ac_save_ifs"
7601 ;;
7602 esac
7603
7604 else
7605 enable_shared=yes
7606 fi
7607
7608
7609
7610
7611 # Check whether --with-specs was given.
7612 if test "${with_specs+set}" = set; then :
7613 withval=$with_specs; CONFIGURE_SPECS=$withval
7614 else
7615 CONFIGURE_SPECS=
7616
7617 fi
7618
7619
7620
7621
7622
7623 # Check whether --with-pkgversion was given.
7624 if test "${with_pkgversion+set}" = set; then :
7625 withval=$with_pkgversion; case "$withval" in
7626 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7627 no) PKGVERSION= ;;
7628 *) PKGVERSION="($withval) " ;;
7629 esac
7630 else
7631 PKGVERSION="(GCC) "
7632
7633 fi
7634
7635
7636
7637
7638
7639 # Check whether --with-bugurl was given.
7640 if test "${with_bugurl+set}" = set; then :
7641 withval=$with_bugurl; case "$withval" in
7642 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7643 no) BUGURL=
7644 ;;
7645 *) BUGURL="$withval"
7646 ;;
7647 esac
7648 else
7649 BUGURL="http://gcc.gnu.org/bugs.html"
7650
7651 fi
7652
7653 case ${BUGURL} in
7654 "")
7655 REPORT_BUGS_TO=
7656 REPORT_BUGS_TEXI=
7657 ;;
7658 *)
7659 REPORT_BUGS_TO="<$BUGURL>"
7660 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7661 ;;
7662 esac;
7663
7664
7665
7666
7667 # Sanity check enable_languages in case someone does not run the toplevel
7668 # configure # script.
7669 # Check whether --enable-languages was given.
7670 if test "${enable_languages+set}" = set; then :
7671 enableval=$enable_languages; case ,${enable_languages}, in
7672 ,,|,yes,)
7673 # go safe -- we cannot be much sure without the toplevel
7674 # configure's
7675 # analysis of which target libs are present and usable
7676 enable_languages=c
7677 ;;
7678 *,all,*)
7679 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7680 ;;
7681 *,c,*)
7682 ;;
7683 *)
7684 enable_languages=c,${enable_languages}
7685 ;;
7686 esac
7687 else
7688 enable_languages=c
7689 fi
7690
7691
7692 if test x"$enable_as_accelerator_for" != x; then
7693
7694 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7695
7696 enable_as_accelerator=yes
7697 case "${target}" in
7698 *-intelmicemul-*)
7699 # In this case we expect offload compiler to be built as native, so we
7700 # need to rename the driver to avoid clashes with host's drivers.
7701 program_transform_name="s&^&${target}-&" ;;
7702 esac
7703 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7704 program_transform_name=`echo $program_transform_name | sed $sedscript`
7705 accel_dir_suffix=/accel/${target_noncanonical}
7706 real_target_noncanonical=${enable_as_accelerator_for}
7707 fi
7708
7709
7710
7711
7712 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7713 tgt=`echo $tgt | sed 's/=.*//'`
7714
7715 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7716 enable_hsa=1
7717 else
7718 enable_offloading=1
7719 fi
7720
7721 if test x"$offload_targets" = x; then
7722 offload_targets=$tgt
7723 else
7724 offload_targets="$offload_targets,$tgt"
7725 fi
7726 done
7727
7728 cat >>confdefs.h <<_ACEOF
7729 #define OFFLOAD_TARGETS "$offload_targets"
7730 _ACEOF
7731
7732 if test x"$enable_offloading" != x; then
7733
7734 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7735
7736 else
7737
7738 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7739
7740 fi
7741
7742 if test x"$enable_hsa" = x1 ; then
7743
7744 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7745
7746 fi
7747
7748
7749 # Check whether --with-multilib-list was given.
7750 if test "${with_multilib_list+set}" = set; then :
7751 withval=$with_multilib_list; :
7752 else
7753 with_multilib_list=default
7754 fi
7755
7756
7757 # -------------------------
7758 # Checks for other programs
7759 # -------------------------
7760
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7762 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7763 set x ${MAKE-make}
7764 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7765 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7766 $as_echo_n "(cached) " >&6
7767 else
7768 cat >conftest.make <<\_ACEOF
7769 SHELL = /bin/sh
7770 all:
7771 @echo '@@@%%%=$(MAKE)=@@@%%%'
7772 _ACEOF
7773 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7774 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7775 *@@@%%%=?*=@@@%%%*)
7776 eval ac_cv_prog_make_${ac_make}_set=yes;;
7777 *)
7778 eval ac_cv_prog_make_${ac_make}_set=no;;
7779 esac
7780 rm -f conftest.make
7781 fi
7782 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7784 $as_echo "yes" >&6; }
7785 SET_MAKE=
7786 else
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788 $as_echo "no" >&6; }
7789 SET_MAKE="MAKE=${MAKE-make}"
7790 fi
7791
7792
7793 # Find some useful tools
7794 for ac_prog in gawk mawk nawk awk
7795 do
7796 # Extract the first word of "$ac_prog", so it can be a program name with args.
7797 set dummy $ac_prog; ac_word=$2
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7799 $as_echo_n "checking for $ac_word... " >&6; }
7800 if test "${ac_cv_prog_AWK+set}" = set; then :
7801 $as_echo_n "(cached) " >&6
7802 else
7803 if test -n "$AWK"; then
7804 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7805 else
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 for as_dir in $PATH
7808 do
7809 IFS=$as_save_IFS
7810 test -z "$as_dir" && as_dir=.
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7813 ac_cv_prog_AWK="$ac_prog"
7814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7815 break 2
7816 fi
7817 done
7818 done
7819 IFS=$as_save_IFS
7820
7821 fi
7822 fi
7823 AWK=$ac_cv_prog_AWK
7824 if test -n "$AWK"; then
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7826 $as_echo "$AWK" >&6; }
7827 else
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7829 $as_echo "no" >&6; }
7830 fi
7831
7832
7833 test -n "$AWK" && break
7834 done
7835
7836 # We need awk to create options.c and options.h.
7837 # Bail out if it's missing.
7838 case ${AWK} in
7839 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7840 esac
7841
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7843 $as_echo_n "checking whether ln -s works... " >&6; }
7844 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7845 $as_echo_n "(cached) " >&6
7846 else
7847 rm -f conftestdata_t
7848 echo >conftestdata_f
7849 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7850 then
7851 gcc_cv_prog_LN_S="ln -s"
7852 else
7853 if ln conftestdata_f conftestdata_t 2>/dev/null
7854 then
7855 gcc_cv_prog_LN_S=ln
7856 else
7857 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7858 then
7859 gcc_cv_prog_LN_S="cp -p"
7860 else
7861 gcc_cv_prog_LN_S=cp
7862 fi
7863 fi
7864 fi
7865 rm -f conftestdata_f conftestdata_t
7866
7867 fi
7868 LN_S="$gcc_cv_prog_LN_S"
7869 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7871 $as_echo "yes" >&6; }
7872 else
7873 if test "$gcc_cv_prog_LN_S" = "ln"; then
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7875 $as_echo "no, using ln" >&6; }
7876 else
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7878 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7879 fi
7880 fi
7881
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7883 $as_echo_n "checking whether ln works... " >&6; }
7884 if test "${acx_cv_prog_LN+set}" = set; then :
7885 $as_echo_n "(cached) " >&6
7886 else
7887 rm -f conftestdata_t
7888 echo >conftestdata_f
7889 if ln conftestdata_f conftestdata_t 2>/dev/null
7890 then
7891 acx_cv_prog_LN=ln
7892 else
7893 acx_cv_prog_LN=no
7894 fi
7895 rm -f conftestdata_f conftestdata_t
7896
7897 fi
7898 if test $acx_cv_prog_LN = no; then
7899 LN="$LN_S"
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7901 $as_echo "no, using $LN" >&6; }
7902 else
7903 LN="$acx_cv_prog_LN"
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7905 $as_echo "yes" >&6; }
7906 fi
7907
7908 if test -n "$ac_tool_prefix"; then
7909 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7910 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7912 $as_echo_n "checking for $ac_word... " >&6; }
7913 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7914 $as_echo_n "(cached) " >&6
7915 else
7916 if test -n "$RANLIB"; then
7917 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7918 else
7919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 for as_dir in $PATH
7921 do
7922 IFS=$as_save_IFS
7923 test -z "$as_dir" && as_dir=.
7924 for ac_exec_ext in '' $ac_executable_extensions; do
7925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7926 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7928 break 2
7929 fi
7930 done
7931 done
7932 IFS=$as_save_IFS
7933
7934 fi
7935 fi
7936 RANLIB=$ac_cv_prog_RANLIB
7937 if test -n "$RANLIB"; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7939 $as_echo "$RANLIB" >&6; }
7940 else
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942 $as_echo "no" >&6; }
7943 fi
7944
7945
7946 fi
7947 if test -z "$ac_cv_prog_RANLIB"; then
7948 ac_ct_RANLIB=$RANLIB
7949 # Extract the first word of "ranlib", so it can be a program name with args.
7950 set dummy ranlib; ac_word=$2
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7952 $as_echo_n "checking for $ac_word... " >&6; }
7953 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7954 $as_echo_n "(cached) " >&6
7955 else
7956 if test -n "$ac_ct_RANLIB"; then
7957 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7958 else
7959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960 for as_dir in $PATH
7961 do
7962 IFS=$as_save_IFS
7963 test -z "$as_dir" && as_dir=.
7964 for ac_exec_ext in '' $ac_executable_extensions; do
7965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7966 ac_cv_prog_ac_ct_RANLIB="ranlib"
7967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7968 break 2
7969 fi
7970 done
7971 done
7972 IFS=$as_save_IFS
7973
7974 fi
7975 fi
7976 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7977 if test -n "$ac_ct_RANLIB"; then
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7979 $as_echo "$ac_ct_RANLIB" >&6; }
7980 else
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982 $as_echo "no" >&6; }
7983 fi
7984
7985 if test "x$ac_ct_RANLIB" = x; then
7986 RANLIB=":"
7987 else
7988 case $cross_compiling:$ac_tool_warned in
7989 yes:)
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7992 ac_tool_warned=yes ;;
7993 esac
7994 RANLIB=$ac_ct_RANLIB
7995 fi
7996 else
7997 RANLIB="$ac_cv_prog_RANLIB"
7998 fi
7999
8000 ranlib_flags=""
8001
8002
8003 # Find a good install program. We prefer a C program (faster),
8004 # so one script is as good as another. But avoid the broken or
8005 # incompatible versions:
8006 # SysV /etc/install, /usr/sbin/install
8007 # SunOS /usr/etc/install
8008 # IRIX /sbin/install
8009 # AIX /bin/install
8010 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8011 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8012 # ./install, which can be erroneously created by make from ./install.sh.
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8014 $as_echo_n "checking for a BSD compatible install... " >&6; }
8015 if test -z "$INSTALL"; then
8016 if test "${ac_cv_path_install+set}" = set; then :
8017 $as_echo_n "(cached) " >&6
8018 else
8019 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8020 for ac_dir in $PATH; do
8021 # Account for people who put trailing slashes in PATH elements.
8022 case "$ac_dir/" in
8023 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8024 *)
8025 # OSF1 and SCO ODT 3.0 have their own names for install.
8026 for ac_prog in ginstall scoinst install; do
8027 if test -f $ac_dir/$ac_prog; then
8028 if test $ac_prog = install &&
8029 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8030 # AIX install. It has an incompatible calling convention.
8031 # OSF/1 installbsd also uses dspmsg, but is usable.
8032 :
8033 else
8034 ac_cv_path_install="$ac_dir/$ac_prog -c"
8035 break 2
8036 fi
8037 fi
8038 done
8039 ;;
8040 esac
8041 done
8042 IFS="$ac_save_IFS"
8043
8044 fi
8045 if test "${ac_cv_path_install+set}" = set; then
8046 INSTALL="$ac_cv_path_install"
8047 else
8048 # As a last resort, use the slow shell script. We don't cache a
8049 # path for INSTALL within a source directory, because that will
8050 # break other packages using the cache if that directory is
8051 # removed, or if the path is relative.
8052 INSTALL="$ac_install_sh"
8053 fi
8054 fi
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8056 $as_echo "$INSTALL" >&6; }
8057
8058 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8059 # It thinks the first close brace ends the variable substitution.
8060 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8061
8062 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8063
8064
8065 # See if cmp has --ignore-initial.
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8067 $as_echo_n "checking for cmp's capabilities... " >&6; }
8068 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8069 $as_echo_n "(cached) " >&6
8070 else
8071 echo abfoo >t1
8072 echo cdfoo >t2
8073 gcc_cv_prog_cmp_skip=slowcompare
8074 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8075 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8076 :
8077 else
8078 gcc_cv_prog_cmp_skip=gnucompare
8079 fi
8080 fi
8081 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8082 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8083 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8084 :
8085 else
8086 gcc_cv_prog_cmp_skip=fastcompare
8087 fi
8088 fi
8089 fi
8090 rm t1 t2
8091
8092 fi
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8094 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8095 make_compare_target=$gcc_cv_prog_cmp_skip
8096
8097
8098
8099 # See if we have the mktemp command.
8100 # Extract the first word of "mktemp", so it can be a program name with args.
8101 set dummy mktemp; ac_word=$2
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8103 $as_echo_n "checking for $ac_word... " >&6; }
8104 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8105 $as_echo_n "(cached) " >&6
8106 else
8107 if test -n "$have_mktemp_command"; then
8108 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8109 else
8110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8111 for as_dir in $PATH
8112 do
8113 IFS=$as_save_IFS
8114 test -z "$as_dir" && as_dir=.
8115 for ac_exec_ext in '' $ac_executable_extensions; do
8116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8117 ac_cv_prog_have_mktemp_command="yes"
8118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8119 break 2
8120 fi
8121 done
8122 done
8123 IFS=$as_save_IFS
8124
8125 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8126 fi
8127 fi
8128 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8129 if test -n "$have_mktemp_command"; then
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8131 $as_echo "$have_mktemp_command" >&6; }
8132 else
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8134 $as_echo "no" >&6; }
8135 fi
8136
8137
8138
8139 # See if makeinfo has been installed and is modern enough
8140 # that we can use it.
8141
8142 # Extract the first word of "makeinfo", so it can be a program name with args.
8143 set dummy makeinfo; ac_word=$2
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8145 $as_echo_n "checking for $ac_word... " >&6; }
8146 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8147 $as_echo_n "(cached) " >&6
8148 else
8149 if test -n "$MAKEINFO"; then
8150 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8151 else
8152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8153 for as_dir in $PATH
8154 do
8155 IFS=$as_save_IFS
8156 test -z "$as_dir" && as_dir=.
8157 for ac_exec_ext in '' $ac_executable_extensions; do
8158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8159 ac_cv_prog_MAKEINFO="makeinfo"
8160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8161 break 2
8162 fi
8163 done
8164 done
8165 IFS=$as_save_IFS
8166
8167 fi
8168 fi
8169 MAKEINFO=$ac_cv_prog_MAKEINFO
8170 if test -n "$MAKEINFO"; then
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8172 $as_echo "$MAKEINFO" >&6; }
8173 else
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8175 $as_echo "no" >&6; }
8176 fi
8177
8178
8179 if test -n "$MAKEINFO"; then
8180 # Found it, now check the version.
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8182 $as_echo_n "checking for modern makeinfo... " >&6; }
8183 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8184 $as_echo_n "(cached) " >&6
8185 else
8186 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8187 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8188
8189 case $ac_prog_version in
8190 '') gcc_cv_prog_makeinfo_modern=no;;
8191 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8192 *) gcc_cv_prog_makeinfo_modern=no;;
8193 esac
8194
8195 fi
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8197 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8198 else
8199 gcc_cv_prog_makeinfo_modern=no
8200 fi
8201 if test $gcc_cv_prog_makeinfo_modern = no; then
8202 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8203 fi
8204
8205 if test $gcc_cv_prog_makeinfo_modern = no; then
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8207 *** Makeinfo is missing or too old.
8208 *** Info documentation will not be built." >&5
8209 $as_echo "$as_me: WARNING:
8210 *** Makeinfo is missing or too old.
8211 *** Info documentation will not be built." >&2;}
8212 BUILD_INFO=
8213 else
8214 BUILD_INFO=info
8215 fi
8216
8217
8218 # Is pod2man recent enough to regenerate manpages?
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8220 $as_echo_n "checking for recent Pod::Man... " >&6; }
8221 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8223 $as_echo "yes" >&6; }
8224 GENERATED_MANPAGES=generated-manpages
8225 else
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8227 $as_echo "no" >&6; }
8228 GENERATED_MANPAGES=
8229 fi
8230
8231
8232 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8233
8234 # How about lex?
8235 for ac_prog in flex
8236 do
8237 # Extract the first word of "$ac_prog", so it can be a program name with args.
8238 set dummy $ac_prog; ac_word=$2
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8240 $as_echo_n "checking for $ac_word... " >&6; }
8241 if test "${ac_cv_prog_FLEX+set}" = set; then :
8242 $as_echo_n "(cached) " >&6
8243 else
8244 if test -n "$FLEX"; then
8245 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8246 else
8247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8248 for as_dir in $PATH
8249 do
8250 IFS=$as_save_IFS
8251 test -z "$as_dir" && as_dir=.
8252 for ac_exec_ext in '' $ac_executable_extensions; do
8253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8254 ac_cv_prog_FLEX="$ac_prog"
8255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8256 break 2
8257 fi
8258 done
8259 done
8260 IFS=$as_save_IFS
8261
8262 fi
8263 fi
8264 FLEX=$ac_cv_prog_FLEX
8265 if test -n "$FLEX"; then
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8267 $as_echo "$FLEX" >&6; }
8268 else
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8270 $as_echo "no" >&6; }
8271 fi
8272
8273
8274 test -n "$FLEX" && break
8275 done
8276 test -n "$FLEX" || FLEX="$MISSING flex"
8277
8278
8279 # Bison?
8280 for ac_prog in bison
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_BISON+set}" = set; then :
8287 $as_echo_n "(cached) " >&6
8288 else
8289 if test -n "$BISON"; then
8290 ac_cv_prog_BISON="$BISON" # 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_BISON="$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 BISON=$ac_cv_prog_BISON
8310 if test -n "$BISON"; then
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8312 $as_echo "$BISON" >&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 "$BISON" && break
8320 done
8321 test -n "$BISON" || BISON="$MISSING bison"
8322
8323
8324 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8325 # check for build == host before using them.
8326
8327 # NM
8328 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8329 && test -d ../binutils ; then
8330 NM='${objdir}/../binutils/nm-new'
8331 else
8332 # Extract the first word of "nm", so it can be a program name with args.
8333 set dummy nm; ac_word=$2
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8335 $as_echo_n "checking for $ac_word... " >&6; }
8336 if test "${ac_cv_prog_NM+set}" = set; then :
8337 $as_echo_n "(cached) " >&6
8338 else
8339 if test -n "$NM"; then
8340 ac_cv_prog_NM="$NM" # Let the user override the test.
8341 else
8342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8343 for as_dir in $PATH
8344 do
8345 IFS=$as_save_IFS
8346 test -z "$as_dir" && as_dir=.
8347 for ac_exec_ext in '' $ac_executable_extensions; do
8348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8349 ac_cv_prog_NM="nm"
8350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8351 break 2
8352 fi
8353 done
8354 done
8355 IFS=$as_save_IFS
8356
8357 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8358 fi
8359 fi
8360 NM=$ac_cv_prog_NM
8361 if test -n "$NM"; then
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8363 $as_echo "$NM" >&6; }
8364 else
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 $as_echo "no" >&6; }
8367 fi
8368
8369
8370 fi
8371
8372 # AR
8373 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8374 && test -d ../binutils ; then
8375 AR='${objdir}/../binutils/ar'
8376 else
8377 # Extract the first word of "ar", so it can be a program name with args.
8378 set dummy ar; 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_AR+set}" = set; then :
8382 $as_echo_n "(cached) " >&6
8383 else
8384 if test -n "$AR"; then
8385 ac_cv_prog_AR="$AR" # 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_AR="ar"
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_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8403 fi
8404 fi
8405 AR=$ac_cv_prog_AR
8406 if test -n "$AR"; then
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8408 $as_echo "$AR" >&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 # The jit documentation looks better if built with sphinx, but can be
8418 # built with texinfo if sphinx is not available.
8419 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8420 # Extract the first word of "sphinx-build", so it can be a program name with args.
8421 set dummy sphinx-build; ac_word=$2
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8423 $as_echo_n "checking for $ac_word... " >&6; }
8424 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8425 $as_echo_n "(cached) " >&6
8426 else
8427 if test -n "$doc_build_sys"; then
8428 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8429 else
8430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8431 for as_dir in $PATH
8432 do
8433 IFS=$as_save_IFS
8434 test -z "$as_dir" && as_dir=.
8435 for ac_exec_ext in '' $ac_executable_extensions; do
8436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8437 ac_cv_prog_doc_build_sys="sphinx"
8438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8439 break 2
8440 fi
8441 done
8442 done
8443 IFS=$as_save_IFS
8444
8445 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8446 fi
8447 fi
8448 doc_build_sys=$ac_cv_prog_doc_build_sys
8449 if test -n "$doc_build_sys"; then
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8451 $as_echo "$doc_build_sys" >&6; }
8452 else
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8454 $as_echo "no" >&6; }
8455 fi
8456
8457
8458
8459 # --------------------
8460 # Checks for C headers
8461 # --------------------
8462
8463 # Need to reject headers which give warnings, so that the -Werror bootstrap
8464 # works later. *sigh* This needs to come before all header checks.
8465
8466 ac_c_preproc_warn_flag=yes
8467
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8469 $as_echo_n "checking for ANSI C header files... " >&6; }
8470 if test "${ac_cv_header_stdc+set}" = set; then :
8471 $as_echo_n "(cached) " >&6
8472 else
8473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474 /* end confdefs.h. */
8475 #include <stdlib.h>
8476 #include <stdarg.h>
8477 #include <string.h>
8478 #include <float.h>
8479
8480 int
8481 main ()
8482 {
8483
8484 ;
8485 return 0;
8486 }
8487 _ACEOF
8488 if ac_fn_cxx_try_compile "$LINENO"; then :
8489 ac_cv_header_stdc=yes
8490 else
8491 ac_cv_header_stdc=no
8492 fi
8493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8494
8495 if test $ac_cv_header_stdc = yes; then
8496 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8498 /* end confdefs.h. */
8499 #include <string.h>
8500
8501 _ACEOF
8502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8503 $EGREP "memchr" >/dev/null 2>&1; then :
8504
8505 else
8506 ac_cv_header_stdc=no
8507 fi
8508 rm -f conftest*
8509
8510 fi
8511
8512 if test $ac_cv_header_stdc = yes; then
8513 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h. */
8516 #include <stdlib.h>
8517
8518 _ACEOF
8519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8520 $EGREP "free" >/dev/null 2>&1; then :
8521
8522 else
8523 ac_cv_header_stdc=no
8524 fi
8525 rm -f conftest*
8526
8527 fi
8528
8529 if test $ac_cv_header_stdc = yes; then
8530 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8531 if test "$cross_compiling" = yes; then :
8532 :
8533 else
8534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8535 /* end confdefs.h. */
8536 #include <ctype.h>
8537 #include <stdlib.h>
8538 #if ((' ' & 0x0FF) == 0x020)
8539 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8540 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8541 #else
8542 # define ISLOWER(c) \
8543 (('a' <= (c) && (c) <= 'i') \
8544 || ('j' <= (c) && (c) <= 'r') \
8545 || ('s' <= (c) && (c) <= 'z'))
8546 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8547 #endif
8548
8549 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8550 int
8551 main ()
8552 {
8553 int i;
8554 for (i = 0; i < 256; i++)
8555 if (XOR (islower (i), ISLOWER (i))
8556 || toupper (i) != TOUPPER (i))
8557 return 2;
8558 return 0;
8559 }
8560 _ACEOF
8561 if ac_fn_cxx_try_run "$LINENO"; then :
8562
8563 else
8564 ac_cv_header_stdc=no
8565 fi
8566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8567 conftest.$ac_objext conftest.beam conftest.$ac_ext
8568 fi
8569
8570 fi
8571 fi
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8573 $as_echo "$ac_cv_header_stdc" >&6; }
8574 if test $ac_cv_header_stdc = yes; then
8575
8576 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8577
8578 fi
8579
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8581 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8582 if test "${ac_cv_header_time+set}" = set; then :
8583 $as_echo_n "(cached) " >&6
8584 else
8585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8586 /* end confdefs.h. */
8587 #include <sys/types.h>
8588 #include <sys/time.h>
8589 #include <time.h>
8590
8591 int
8592 main ()
8593 {
8594 if ((struct tm *) 0)
8595 return 0;
8596 ;
8597 return 0;
8598 }
8599 _ACEOF
8600 if ac_fn_cxx_try_compile "$LINENO"; then :
8601 ac_cv_header_time=yes
8602 else
8603 ac_cv_header_time=no
8604 fi
8605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8606 fi
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8608 $as_echo "$ac_cv_header_time" >&6; }
8609 if test $ac_cv_header_time = yes; then
8610
8611 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8612
8613 fi
8614
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8616 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8617 if test "${gcc_cv_header_string+set}" = set; then :
8618 $as_echo_n "(cached) " >&6
8619 else
8620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8621 /* end confdefs.h. */
8622 #include <string.h>
8623 #include <strings.h>
8624 int
8625 main ()
8626 {
8627
8628 ;
8629 return 0;
8630 }
8631 _ACEOF
8632 if ac_fn_cxx_try_compile "$LINENO"; then :
8633 gcc_cv_header_string=yes
8634 else
8635 gcc_cv_header_string=no
8636 fi
8637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8638 fi
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8640 $as_echo "$gcc_cv_header_string" >&6; }
8641 if test $gcc_cv_header_string = yes; then
8642
8643 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8644
8645 fi
8646
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8648 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8649 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8650 $as_echo_n "(cached) " >&6
8651 else
8652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8653 /* end confdefs.h. */
8654 #include <sys/types.h>
8655 #include <sys/wait.h>
8656 #ifndef WEXITSTATUS
8657 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8658 #endif
8659 #ifndef WIFEXITED
8660 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8661 #endif
8662
8663 int
8664 main ()
8665 {
8666 int s;
8667 wait (&s);
8668 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8669 ;
8670 return 0;
8671 }
8672 _ACEOF
8673 if ac_fn_cxx_try_compile "$LINENO"; then :
8674 ac_cv_header_sys_wait_h=yes
8675 else
8676 ac_cv_header_sys_wait_h=no
8677 fi
8678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8679 fi
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8681 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8682 if test $ac_cv_header_sys_wait_h = yes; then
8683
8684 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8685
8686 fi
8687
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8689 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8690 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8691 $as_echo_n "(cached) " >&6
8692 else
8693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8694 /* end confdefs.h. */
8695 #include <sys/types.h>
8696 #include <termios.h>
8697 #ifdef TIOCGWINSZ
8698 yes
8699 #endif
8700
8701 _ACEOF
8702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8703 $EGREP "yes" >/dev/null 2>&1; then :
8704 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8705 else
8706 ac_cv_sys_tiocgwinsz_in_termios_h=no
8707 fi
8708 rm -f conftest*
8709
8710 fi
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8712 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8713
8714 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8716 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8717 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8718 $as_echo_n "(cached) " >&6
8719 else
8720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8721 /* end confdefs.h. */
8722 #include <sys/types.h>
8723 #include <sys/ioctl.h>
8724 #ifdef TIOCGWINSZ
8725 yes
8726 #endif
8727
8728 _ACEOF
8729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8730 $EGREP "yes" >/dev/null 2>&1; then :
8731 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8732 else
8733 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8734 fi
8735 rm -f conftest*
8736
8737 fi
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8739 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8740
8741 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8742
8743 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8744
8745 fi
8746 fi
8747
8748 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8749 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8750 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8751 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8752 do :
8753 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8754 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8755 eval as_val=\$$as_ac_Header
8756 if test "x$as_val" = x""yes; then :
8757 cat >>confdefs.h <<_ACEOF
8758 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8759 _ACEOF
8760
8761 fi
8762 done
8763
8764
8765 # Check for thread headers.
8766 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8767 if test "x$ac_cv_header_thread_h" = x""yes; then :
8768 have_thread_h=yes
8769 else
8770 have_thread_h=
8771 fi
8772
8773 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8774 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8775 have_pthread_h=yes
8776 else
8777 have_pthread_h=
8778 fi
8779
8780
8781 # These tests can't be done till we know if we have limits.h.
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8783 $as_echo_n "checking for CHAR_BIT... " >&6; }
8784 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8785 $as_echo_n "(cached) " >&6
8786 else
8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h. */
8789 #ifdef HAVE_LIMITS_H
8790 #include <limits.h>
8791 #endif
8792 #ifdef CHAR_BIT
8793 found
8794 #endif
8795 _ACEOF
8796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8797 $EGREP "found" >/dev/null 2>&1; then :
8798 gcc_cv_decl_char_bit=yes
8799 else
8800 gcc_cv_decl_char_bit=no
8801 fi
8802 rm -f conftest*
8803
8804
8805 fi
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8807 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8808 if test $gcc_cv_decl_char_bit = no; then
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8810 $as_echo_n "checking number of bits in a byte... " >&6; }
8811 if test "${gcc_cv_c_nbby+set}" = set; then :
8812 $as_echo_n "(cached) " >&6
8813 else
8814 i=8
8815 gcc_cv_c_nbby=
8816 while test $i -lt 65; do
8817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8818 /* end confdefs.h. */
8819
8820 int
8821 main ()
8822 {
8823 switch(0) {
8824 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8825 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8826 ; }
8827 ;
8828 return 0;
8829 }
8830 _ACEOF
8831 if ac_fn_cxx_try_compile "$LINENO"; then :
8832 gcc_cv_c_nbby=$i; break
8833 fi
8834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8835 i=`expr $i + 1`
8836 done
8837 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8838
8839 fi
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8841 $as_echo "$gcc_cv_c_nbby" >&6; }
8842 if test $gcc_cv_c_nbby = failed; then
8843 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8844 else
8845
8846 cat >>confdefs.h <<_ACEOF
8847 #define CHAR_BIT $gcc_cv_c_nbby
8848 _ACEOF
8849
8850 fi
8851 fi
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8853 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8854 if test "${ac_cv_c_bigendian+set}" = set; then :
8855 $as_echo_n "(cached) " >&6
8856 else
8857 ac_cv_c_bigendian=unknown
8858 # See if we're dealing with a universal compiler.
8859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h. */
8861 #ifndef __APPLE_CC__
8862 not a universal capable compiler
8863 #endif
8864 typedef int dummy;
8865
8866 _ACEOF
8867 if ac_fn_cxx_try_compile "$LINENO"; then :
8868
8869 # Check for potential -arch flags. It is not universal unless
8870 # there are at least two -arch flags with different values.
8871 ac_arch=
8872 ac_prev=
8873 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8874 if test -n "$ac_prev"; then
8875 case $ac_word in
8876 i?86 | x86_64 | ppc | ppc64)
8877 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8878 ac_arch=$ac_word
8879 else
8880 ac_cv_c_bigendian=universal
8881 break
8882 fi
8883 ;;
8884 esac
8885 ac_prev=
8886 elif test "x$ac_word" = "x-arch"; then
8887 ac_prev=arch
8888 fi
8889 done
8890 fi
8891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8892 if test $ac_cv_c_bigendian = unknown; then
8893 # See if sys/param.h defines the BYTE_ORDER macro.
8894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8895 /* end confdefs.h. */
8896 #include <sys/types.h>
8897 #include <sys/param.h>
8898
8899 int
8900 main ()
8901 {
8902 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8903 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8904 && LITTLE_ENDIAN)
8905 bogus endian macros
8906 #endif
8907
8908 ;
8909 return 0;
8910 }
8911 _ACEOF
8912 if ac_fn_cxx_try_compile "$LINENO"; then :
8913 # It does; now see whether it defined to BIG_ENDIAN or not.
8914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8915 /* end confdefs.h. */
8916 #include <sys/types.h>
8917 #include <sys/param.h>
8918
8919 int
8920 main ()
8921 {
8922 #if BYTE_ORDER != BIG_ENDIAN
8923 not big endian
8924 #endif
8925
8926 ;
8927 return 0;
8928 }
8929 _ACEOF
8930 if ac_fn_cxx_try_compile "$LINENO"; then :
8931 ac_cv_c_bigendian=yes
8932 else
8933 ac_cv_c_bigendian=no
8934 fi
8935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8936 fi
8937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8938 fi
8939 if test $ac_cv_c_bigendian = unknown; then
8940 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8942 /* end confdefs.h. */
8943 #include <limits.h>
8944
8945 int
8946 main ()
8947 {
8948 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8949 bogus endian macros
8950 #endif
8951
8952 ;
8953 return 0;
8954 }
8955 _ACEOF
8956 if ac_fn_cxx_try_compile "$LINENO"; then :
8957 # It does; now see whether it defined to _BIG_ENDIAN or not.
8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h. */
8960 #include <limits.h>
8961
8962 int
8963 main ()
8964 {
8965 #ifndef _BIG_ENDIAN
8966 not big endian
8967 #endif
8968
8969 ;
8970 return 0;
8971 }
8972 _ACEOF
8973 if ac_fn_cxx_try_compile "$LINENO"; then :
8974 ac_cv_c_bigendian=yes
8975 else
8976 ac_cv_c_bigendian=no
8977 fi
8978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8979 fi
8980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8981 fi
8982 if test $ac_cv_c_bigendian = unknown; then
8983 # Compile a test program.
8984 if test "$cross_compiling" = yes; then :
8985 # Try to guess by grepping values from an object file.
8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987 /* end confdefs.h. */
8988 short int ascii_mm[] =
8989 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8990 short int ascii_ii[] =
8991 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8992 int use_ascii (int i) {
8993 return ascii_mm[i] + ascii_ii[i];
8994 }
8995 short int ebcdic_ii[] =
8996 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8997 short int ebcdic_mm[] =
8998 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8999 int use_ebcdic (int i) {
9000 return ebcdic_mm[i] + ebcdic_ii[i];
9001 }
9002 extern int foo;
9003
9004 int
9005 main ()
9006 {
9007 return use_ascii (foo) == use_ebcdic (foo);
9008 ;
9009 return 0;
9010 }
9011 _ACEOF
9012 if ac_fn_cxx_try_compile "$LINENO"; then :
9013 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9014 ac_cv_c_bigendian=yes
9015 fi
9016 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9017 if test "$ac_cv_c_bigendian" = unknown; then
9018 ac_cv_c_bigendian=no
9019 else
9020 # finding both strings is unlikely to happen, but who knows?
9021 ac_cv_c_bigendian=unknown
9022 fi
9023 fi
9024 fi
9025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9026 else
9027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028 /* end confdefs.h. */
9029 $ac_includes_default
9030 int
9031 main ()
9032 {
9033
9034 /* Are we little or big endian? From Harbison&Steele. */
9035 union
9036 {
9037 long int l;
9038 char c[sizeof (long int)];
9039 } u;
9040 u.l = 1;
9041 return u.c[sizeof (long int) - 1] == 1;
9042
9043 ;
9044 return 0;
9045 }
9046 _ACEOF
9047 if ac_fn_cxx_try_run "$LINENO"; then :
9048 ac_cv_c_bigendian=no
9049 else
9050 ac_cv_c_bigendian=yes
9051 fi
9052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9053 conftest.$ac_objext conftest.beam conftest.$ac_ext
9054 fi
9055
9056 fi
9057 fi
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9059 $as_echo "$ac_cv_c_bigendian" >&6; }
9060 case $ac_cv_c_bigendian in #(
9061 yes)
9062 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9063 ;; #(
9064 no)
9065 ;; #(
9066 universal)
9067
9068 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9069
9070 ;; #(
9071 *)
9072 as_fn_error "unknown endianness
9073 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9074 esac
9075
9076
9077 # ----------------------
9078 # Checks for C++ headers
9079 # ----------------------
9080
9081 ac_ext=cpp
9082 ac_cpp='$CXXCPP $CPPFLAGS'
9083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9087 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9088 if test -z "$CXXCPP"; then
9089 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9090 $as_echo_n "(cached) " >&6
9091 else
9092 # Double quotes because CXXCPP needs to be expanded
9093 for CXXCPP in "$CXX -E" "/lib/cpp"
9094 do
9095 ac_preproc_ok=false
9096 for ac_cxx_preproc_warn_flag in '' yes
9097 do
9098 # Use a header file that comes with gcc, so configuring glibc
9099 # with a fresh cross-compiler works.
9100 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9101 # <limits.h> exists even on freestanding compilers.
9102 # On the NeXT, cc -E runs the code through the compiler's parser,
9103 # not just through cpp. "Syntax error" is here to catch this case.
9104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9105 /* end confdefs.h. */
9106 #ifdef __STDC__
9107 # include <limits.h>
9108 #else
9109 # include <assert.h>
9110 #endif
9111 Syntax error
9112 _ACEOF
9113 if ac_fn_cxx_try_cpp "$LINENO"; then :
9114
9115 else
9116 # Broken: fails on valid input.
9117 continue
9118 fi
9119 rm -f conftest.err conftest.$ac_ext
9120
9121 # OK, works on sane cases. Now check whether nonexistent headers
9122 # can be detected and how.
9123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9124 /* end confdefs.h. */
9125 #include <ac_nonexistent.h>
9126 _ACEOF
9127 if ac_fn_cxx_try_cpp "$LINENO"; then :
9128 # Broken: success on invalid input.
9129 continue
9130 else
9131 # Passes both tests.
9132 ac_preproc_ok=:
9133 break
9134 fi
9135 rm -f conftest.err conftest.$ac_ext
9136
9137 done
9138 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9139 rm -f conftest.err conftest.$ac_ext
9140 if $ac_preproc_ok; then :
9141 break
9142 fi
9143
9144 done
9145 ac_cv_prog_CXXCPP=$CXXCPP
9146
9147 fi
9148 CXXCPP=$ac_cv_prog_CXXCPP
9149 else
9150 ac_cv_prog_CXXCPP=$CXXCPP
9151 fi
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9153 $as_echo "$CXXCPP" >&6; }
9154 ac_preproc_ok=false
9155 for ac_cxx_preproc_warn_flag in '' yes
9156 do
9157 # Use a header file that comes with gcc, so configuring glibc
9158 # with a fresh cross-compiler works.
9159 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9160 # <limits.h> exists even on freestanding compilers.
9161 # On the NeXT, cc -E runs the code through the compiler's parser,
9162 # not just through cpp. "Syntax error" is here to catch this case.
9163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9164 /* end confdefs.h. */
9165 #ifdef __STDC__
9166 # include <limits.h>
9167 #else
9168 # include <assert.h>
9169 #endif
9170 Syntax error
9171 _ACEOF
9172 if ac_fn_cxx_try_cpp "$LINENO"; then :
9173
9174 else
9175 # Broken: fails on valid input.
9176 continue
9177 fi
9178 rm -f conftest.err conftest.$ac_ext
9179
9180 # OK, works on sane cases. Now check whether nonexistent headers
9181 # can be detected and how.
9182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9183 /* end confdefs.h. */
9184 #include <ac_nonexistent.h>
9185 _ACEOF
9186 if ac_fn_cxx_try_cpp "$LINENO"; then :
9187 # Broken: success on invalid input.
9188 continue
9189 else
9190 # Passes both tests.
9191 ac_preproc_ok=:
9192 break
9193 fi
9194 rm -f conftest.err conftest.$ac_ext
9195
9196 done
9197 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9198 rm -f conftest.err conftest.$ac_ext
9199 if $ac_preproc_ok; then :
9200
9201 else
9202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9205 See \`config.log' for more details." >&5
9206 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9207 See \`config.log' for more details." >&2;}; }
9208 fi
9209
9210 ac_ext=cpp
9211 ac_cpp='$CXXCPP $CPPFLAGS'
9212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9215
9216
9217 for ac_header in unordered_map
9218 do :
9219 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9220 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9221 cat >>confdefs.h <<_ACEOF
9222 #define HAVE_UNORDERED_MAP 1
9223 _ACEOF
9224
9225 fi
9226 done
9227
9228 for ac_header in tr1/unordered_map
9229 do :
9230 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9231 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9232 cat >>confdefs.h <<_ACEOF
9233 #define HAVE_TR1_UNORDERED_MAP 1
9234 _ACEOF
9235
9236 fi
9237 done
9238
9239 for ac_header in ext/hash_map
9240 do :
9241 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9242 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9243 cat >>confdefs.h <<_ACEOF
9244 #define HAVE_EXT_HASH_MAP 1
9245 _ACEOF
9246
9247 fi
9248 done
9249
9250
9251 # --------
9252 # Dependency checking.
9253 # --------
9254
9255 rm -rf .tst 2>/dev/null
9256 mkdir .tst 2>/dev/null
9257 if test -d .tst; then
9258 am__leading_dot=.
9259 else
9260 am__leading_dot=_
9261 fi
9262 rmdir .tst 2>/dev/null
9263
9264 DEPDIR="${am__leading_dot}deps"
9265
9266 ac_config_commands="$ac_config_commands depdir"
9267
9268
9269 ac_config_commands="$ac_config_commands gccdepdir"
9270
9271
9272 depcc="$CXX" am_compiler_list=
9273
9274 am_depcomp=$ac_aux_dir/depcomp
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9276 $as_echo_n "checking dependency style of $depcc... " >&6; }
9277 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9278 $as_echo_n "(cached) " >&6
9279 else
9280 if test -f "$am_depcomp"; then
9281 # We make a subdir and do the tests there. Otherwise we can end up
9282 # making bogus files that we don't know about and never remove. For
9283 # instance it was reported that on HP-UX the gcc test will end up
9284 # making a dummy file named `D' -- because `-MD' means `put the output
9285 # in D'.
9286 mkdir conftest.dir
9287 # Copy depcomp to subdir because otherwise we won't find it if we're
9288 # using a relative directory.
9289 cp "$am_depcomp" conftest.dir
9290 cd conftest.dir
9291 # We will build objects and dependencies in a subdirectory because
9292 # it helps to detect inapplicable dependency modes. For instance
9293 # both Tru64's cc and ICC support -MD to output dependencies as a
9294 # side effect of compilation, but ICC will put the dependencies in
9295 # the current directory while Tru64 will put them in the object
9296 # directory.
9297 mkdir sub
9298
9299 am_cv_CXX_dependencies_compiler_type=none
9300 if test "$am_compiler_list" = ""; then
9301 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9302 fi
9303 for depmode in $am_compiler_list; do
9304 if test $depmode = none; then break; fi
9305
9306 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9307 # Setup a source with many dependencies, because some compilers
9308 # like to wrap large dependency lists on column 80 (with \), and
9309 # we should not choose a depcomp mode which is confused by this.
9310 #
9311 # We need to recreate these files for each test, as the compiler may
9312 # overwrite some of them when testing with obscure command lines.
9313 # This happens at least with the AIX C compiler.
9314 : > sub/conftest.c
9315 for i in 1 2 3 4 5 6; do
9316 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9317 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9318 # Solaris 8's {/usr,}/bin/sh.
9319 touch sub/conftst$i.h
9320 done
9321 echo "include sub/conftest.Po" > confmf
9322
9323 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9324 # mode. It turns out that the SunPro C++ compiler does not properly
9325 # handle `-M -o', and we need to detect this.
9326 depcmd="depmode=$depmode \
9327 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9328 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9329 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9330 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9331 if env $depcmd > conftest.err 2>&1 &&
9332 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9333 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9334 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9335 # icc doesn't choke on unknown options, it will just issue warnings
9336 # or remarks (even with -Werror). So we grep stderr for any message
9337 # that says an option was ignored or not supported.
9338 # When given -MP, icc 7.0 and 7.1 complain thusly:
9339 # icc: Command line warning: ignoring option '-M'; no argument required
9340 # The diagnosis changed in icc 8.0:
9341 # icc: Command line remark: option '-MP' not supported
9342 if (grep 'ignoring option' conftest.err ||
9343 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9344 am_cv_CXX_dependencies_compiler_type=$depmode
9345 $as_echo "$as_me:$LINENO: success" >&5
9346 break
9347 fi
9348 fi
9349 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9350 sed -e 's/^/| /' < conftest.err >&5
9351 done
9352
9353 cd ..
9354 rm -rf conftest.dir
9355 else
9356 am_cv_CXX_dependencies_compiler_type=none
9357 fi
9358
9359 fi
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9361 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9362 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9363 then as_fn_error "no usable dependency style found" "$LINENO" 5
9364 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9365
9366 fi
9367
9368
9369 # --------
9370 # UNSORTED
9371 # --------
9372
9373
9374 # These libraries may be used by collect2.
9375 # We may need a special search path to get them linked.
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9377 $as_echo_n "checking for collect2 libraries... " >&6; }
9378 if test "${gcc_cv_collect2_libs+set}" = set; then :
9379 $as_echo_n "(cached) " >&6
9380 else
9381 save_LIBS="$LIBS"
9382 for libs in '' -lld -lmld \
9383 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9384 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9385 do
9386 LIBS="$libs"
9387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h. */
9389
9390 /* Override any GCC internal prototype to avoid an error.
9391 Use char because int might match the return type of a GCC
9392 builtin and then its argument prototype would still apply. */
9393 #ifdef __cplusplus
9394 extern "C"
9395 #endif
9396 char ldopen ();
9397 int
9398 main ()
9399 {
9400 return ldopen ();
9401 ;
9402 return 0;
9403 }
9404 _ACEOF
9405 if ac_fn_cxx_try_link "$LINENO"; then :
9406 gcc_cv_collect2_libs="$libs"; break
9407 fi
9408 rm -f core conftest.err conftest.$ac_objext \
9409 conftest$ac_exeext conftest.$ac_ext
9410 done
9411 LIBS="$save_LIBS"
9412 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9413 fi
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9415 $as_echo "$gcc_cv_collect2_libs" >&6; }
9416 case $gcc_cv_collect2_libs in
9417 "none required") ;;
9418 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9419 esac
9420
9421
9422 # When building Ada code on Alpha, we need exc_resume which is usually in
9423 # -lexc. So test for it.
9424 save_LIBS="$LIBS"
9425 LIBS=
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9427 $as_echo_n "checking for library containing exc_resume... " >&6; }
9428 if test "${ac_cv_search_exc_resume+set}" = set; then :
9429 $as_echo_n "(cached) " >&6
9430 else
9431 ac_func_search_save_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 exc_resume ();
9442 int
9443 main ()
9444 {
9445 return exc_resume ();
9446 ;
9447 return 0;
9448 }
9449 _ACEOF
9450 for ac_lib in '' exc; do
9451 if test -z "$ac_lib"; then
9452 ac_res="none required"
9453 else
9454 ac_res=-l$ac_lib
9455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9456 fi
9457 if ac_fn_cxx_try_link "$LINENO"; then :
9458 ac_cv_search_exc_resume=$ac_res
9459 fi
9460 rm -f core conftest.err conftest.$ac_objext \
9461 conftest$ac_exeext
9462 if test "${ac_cv_search_exc_resume+set}" = set; then :
9463 break
9464 fi
9465 done
9466 if test "${ac_cv_search_exc_resume+set}" = set; then :
9467
9468 else
9469 ac_cv_search_exc_resume=no
9470 fi
9471 rm conftest.$ac_ext
9472 LIBS=$ac_func_search_save_LIBS
9473 fi
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9475 $as_echo "$ac_cv_search_exc_resume" >&6; }
9476 ac_res=$ac_cv_search_exc_resume
9477 if test "$ac_res" != no; then :
9478 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9479
9480 fi
9481
9482 GNAT_LIBEXC="$LIBS"
9483 LIBS="$save_LIBS"
9484
9485
9486 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9487 save_LIBS="$LIBS"
9488 LIBS=
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9490 $as_echo_n "checking for library containing kstat_open... " >&6; }
9491 if test "${ac_cv_search_kstat_open+set}" = set; then :
9492 $as_echo_n "(cached) " >&6
9493 else
9494 ac_func_search_save_LIBS=$LIBS
9495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9496 /* end confdefs.h. */
9497
9498 /* Override any GCC internal prototype to avoid an error.
9499 Use char because int might match the return type of a GCC
9500 builtin and then its argument prototype would still apply. */
9501 #ifdef __cplusplus
9502 extern "C"
9503 #endif
9504 char kstat_open ();
9505 int
9506 main ()
9507 {
9508 return kstat_open ();
9509 ;
9510 return 0;
9511 }
9512 _ACEOF
9513 for ac_lib in '' kstat; do
9514 if test -z "$ac_lib"; then
9515 ac_res="none required"
9516 else
9517 ac_res=-l$ac_lib
9518 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9519 fi
9520 if ac_fn_cxx_try_link "$LINENO"; then :
9521 ac_cv_search_kstat_open=$ac_res
9522 fi
9523 rm -f core conftest.err conftest.$ac_objext \
9524 conftest$ac_exeext
9525 if test "${ac_cv_search_kstat_open+set}" = set; then :
9526 break
9527 fi
9528 done
9529 if test "${ac_cv_search_kstat_open+set}" = set; then :
9530
9531 else
9532 ac_cv_search_kstat_open=no
9533 fi
9534 rm conftest.$ac_ext
9535 LIBS=$ac_func_search_save_LIBS
9536 fi
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9538 $as_echo "$ac_cv_search_kstat_open" >&6; }
9539 ac_res=$ac_cv_search_kstat_open
9540 if test "$ac_res" != no; then :
9541 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9542
9543 fi
9544
9545 EXTRA_GCC_LIBS="$LIBS"
9546 LIBS="$save_LIBS"
9547
9548
9549 # Some systems put ldexp and frexp in libm instead of libc; assume
9550 # they're both in the same place. jcf-dump needs them.
9551 save_LIBS="$LIBS"
9552 LIBS=
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9554 $as_echo_n "checking for library containing ldexp... " >&6; }
9555 if test "${ac_cv_search_ldexp+set}" = set; then :
9556 $as_echo_n "(cached) " >&6
9557 else
9558 ac_func_search_save_LIBS=$LIBS
9559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9560 /* end confdefs.h. */
9561
9562 /* Override any GCC internal prototype to avoid an error.
9563 Use char because int might match the return type of a GCC
9564 builtin and then its argument prototype would still apply. */
9565 #ifdef __cplusplus
9566 extern "C"
9567 #endif
9568 char ldexp ();
9569 int
9570 main ()
9571 {
9572 return ldexp ();
9573 ;
9574 return 0;
9575 }
9576 _ACEOF
9577 for ac_lib in '' m; do
9578 if test -z "$ac_lib"; then
9579 ac_res="none required"
9580 else
9581 ac_res=-l$ac_lib
9582 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9583 fi
9584 if ac_fn_cxx_try_link "$LINENO"; then :
9585 ac_cv_search_ldexp=$ac_res
9586 fi
9587 rm -f core conftest.err conftest.$ac_objext \
9588 conftest$ac_exeext
9589 if test "${ac_cv_search_ldexp+set}" = set; then :
9590 break
9591 fi
9592 done
9593 if test "${ac_cv_search_ldexp+set}" = set; then :
9594
9595 else
9596 ac_cv_search_ldexp=no
9597 fi
9598 rm conftest.$ac_ext
9599 LIBS=$ac_func_search_save_LIBS
9600 fi
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9602 $as_echo "$ac_cv_search_ldexp" >&6; }
9603 ac_res=$ac_cv_search_ldexp
9604 if test "$ac_res" != no; then :
9605 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9606
9607 fi
9608
9609 LDEXP_LIB="$LIBS"
9610 LIBS="$save_LIBS"
9611
9612
9613 # Use <inttypes.h> only if it exists,
9614 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9615 # PRId64
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9617 $as_echo_n "checking for inttypes.h... " >&6; }
9618 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9619 $as_echo_n "(cached) " >&6
9620 else
9621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9622 /* end confdefs.h. */
9623 #define __STDC_FORMAT_MACROS
9624 #include <sys/types.h>
9625 #include <inttypes.h>
9626 int
9627 main ()
9628 {
9629 intmax_t i = -1;
9630 #ifndef PRId64
9631 choke me
9632 #endif
9633 ;
9634 return 0;
9635 }
9636 _ACEOF
9637 if ac_fn_cxx_try_compile "$LINENO"; then :
9638 gcc_cv_header_inttypes_h=yes
9639 else
9640 gcc_cv_header_inttypes_h=no
9641 fi
9642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9643 fi
9644
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9646 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9647 if test $gcc_cv_header_inttypes_h = yes; then
9648
9649 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9650
9651 fi
9652
9653
9654
9655 for ac_func in times clock kill getrlimit setrlimit atoq \
9656 popen sysconf strsignal getrusage nl_langinfo \
9657 gettimeofday mbstowcs wcswidth mmap setlocale \
9658 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
9659 do :
9660 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9661 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9662 eval as_val=\$$as_ac_var
9663 if test "x$as_val" = x""yes; then :
9664 cat >>confdefs.h <<_ACEOF
9665 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9666 _ACEOF
9667
9668 fi
9669 done
9670
9671
9672 if test x$ac_cv_func_mbstowcs = xyes; then
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9674 $as_echo_n "checking whether mbstowcs works... " >&6; }
9675 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9676 $as_echo_n "(cached) " >&6
9677 else
9678 if test "$cross_compiling" = yes; then :
9679 gcc_cv_func_mbstowcs_works=yes
9680 else
9681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9682 /* end confdefs.h. */
9683 #include <stdlib.h>
9684 int main()
9685 {
9686 mbstowcs(0, "", 0);
9687 return 0;
9688 }
9689 _ACEOF
9690 if ac_fn_cxx_try_run "$LINENO"; then :
9691 gcc_cv_func_mbstowcs_works=yes
9692 else
9693 gcc_cv_func_mbstowcs_works=no
9694 fi
9695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9696 conftest.$ac_objext conftest.beam conftest.$ac_ext
9697 fi
9698
9699 fi
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9701 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9702 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9703
9704 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9705
9706 fi
9707 fi
9708
9709 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9710 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9711
9712 else
9713
9714 cat >>confdefs.h <<_ACEOF
9715 #define ssize_t int
9716 _ACEOF
9717
9718 fi
9719
9720 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9721 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9722
9723 else
9724
9725 cat >>confdefs.h <<_ACEOF
9726 #define caddr_t char *
9727 _ACEOF
9728
9729 fi
9730
9731
9732
9733 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9734 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9735 gcc_header_sys_mman_h=yes
9736 else
9737 gcc_header_sys_mman_h=no
9738 fi
9739
9740 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9741 if test "x$ac_cv_func_mmap" = x""yes; then :
9742 gcc_func_mmap=yes
9743 else
9744 gcc_func_mmap=no
9745 fi
9746
9747 if test "$gcc_header_sys_mman_h" != yes \
9748 || test "$gcc_func_mmap" != yes; then
9749 gcc_cv_func_mmap_file=no
9750 gcc_cv_func_mmap_dev_zero=no
9751 gcc_cv_func_mmap_anon=no
9752 else
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9754 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9755 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9756 $as_echo_n "(cached) " >&6
9757 else
9758 # Add a system to this blacklist if
9759 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9760 # memory area containing the same data that you'd get if you applied
9761 # read() to the same fd. The only system known to have a problem here
9762 # is VMS, where text files have record structure.
9763 case "$host_os" in
9764 *vms* | ultrix*)
9765 gcc_cv_func_mmap_file=no ;;
9766 *)
9767 gcc_cv_func_mmap_file=yes;;
9768 esac
9769 fi
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9771 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9773 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9774 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9775 $as_echo_n "(cached) " >&6
9776 else
9777 # Add a system to this blacklist if it has mmap() but /dev/zero
9778 # does not exist, or if mmapping /dev/zero does not give anonymous
9779 # zeroed pages with both the following properties:
9780 # 1. If you map N consecutive pages in with one call, and then
9781 # unmap any subset of those pages, the pages that were not
9782 # explicitly unmapped remain accessible.
9783 # 2. If you map two adjacent blocks of memory and then unmap them
9784 # both at once, they must both go away.
9785 # Systems known to be in this category are Windows (all variants),
9786 # VMS, and Darwin.
9787 case "$host_os" in
9788 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9789 gcc_cv_func_mmap_dev_zero=no ;;
9790 *)
9791 gcc_cv_func_mmap_dev_zero=yes;;
9792 esac
9793 fi
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9795 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9796
9797 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9799 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9800 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9801 $as_echo_n "(cached) " >&6
9802 else
9803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9804 /* end confdefs.h. */
9805 #include <sys/types.h>
9806 #include <sys/mman.h>
9807 #include <unistd.h>
9808
9809 #ifndef MAP_ANONYMOUS
9810 #define MAP_ANONYMOUS MAP_ANON
9811 #endif
9812
9813 int
9814 main ()
9815 {
9816 int n = MAP_ANONYMOUS;
9817 ;
9818 return 0;
9819 }
9820 _ACEOF
9821 if ac_fn_cxx_try_compile "$LINENO"; then :
9822 gcc_cv_decl_map_anon=yes
9823 else
9824 gcc_cv_decl_map_anon=no
9825 fi
9826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9827 fi
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9829 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9830
9831 if test $gcc_cv_decl_map_anon = no; then
9832 gcc_cv_func_mmap_anon=no
9833 else
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9835 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9836 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9837 $as_echo_n "(cached) " >&6
9838 else
9839 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9840 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9841 # doesn't give anonymous zeroed pages with the same properties listed
9842 # above for use of /dev/zero.
9843 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9844 case "$host_os" in
9845 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9846 gcc_cv_func_mmap_anon=no ;;
9847 *)
9848 gcc_cv_func_mmap_anon=yes;;
9849 esac
9850 fi
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9852 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9853 fi
9854 fi
9855
9856 if test $gcc_cv_func_mmap_file = yes; then
9857
9858 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9859
9860 fi
9861 if test $gcc_cv_func_mmap_dev_zero = yes; then
9862
9863 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9864
9865 fi
9866 if test $gcc_cv_func_mmap_anon = yes; then
9867
9868 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9869
9870 fi
9871
9872
9873 case "${host}" in
9874 *-*-*vms*)
9875 # Under VMS, vfork works very differently than on Unix. The standard test
9876 # won't work, and it isn't easily adaptable. It makes more sense to
9877 # just force it.
9878 ac_cv_func_vfork_works=yes
9879 ;;
9880 esac
9881 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9882 if test "x$ac_cv_type_pid_t" = x""yes; then :
9883
9884 else
9885
9886 cat >>confdefs.h <<_ACEOF
9887 #define pid_t int
9888 _ACEOF
9889
9890 fi
9891
9892 for ac_header in vfork.h
9893 do :
9894 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9895 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9896 cat >>confdefs.h <<_ACEOF
9897 #define HAVE_VFORK_H 1
9898 _ACEOF
9899
9900 fi
9901 done
9902
9903 for ac_func in fork vfork
9904 do :
9905 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9906 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9907 eval as_val=\$$as_ac_var
9908 if test "x$as_val" = x""yes; then :
9909 cat >>confdefs.h <<_ACEOF
9910 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9911 _ACEOF
9912
9913 fi
9914 done
9915
9916 if test "x$ac_cv_func_fork" = xyes; then
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9918 $as_echo_n "checking for working fork... " >&6; }
9919 if test "${ac_cv_func_fork_works+set}" = set; then :
9920 $as_echo_n "(cached) " >&6
9921 else
9922 if test "$cross_compiling" = yes; then :
9923 ac_cv_func_fork_works=cross
9924 else
9925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9926 /* end confdefs.h. */
9927 $ac_includes_default
9928 int
9929 main ()
9930 {
9931
9932 /* By Ruediger Kuhlmann. */
9933 return fork () < 0;
9934
9935 ;
9936 return 0;
9937 }
9938 _ACEOF
9939 if ac_fn_cxx_try_run "$LINENO"; then :
9940 ac_cv_func_fork_works=yes
9941 else
9942 ac_cv_func_fork_works=no
9943 fi
9944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9945 conftest.$ac_objext conftest.beam conftest.$ac_ext
9946 fi
9947
9948 fi
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9950 $as_echo "$ac_cv_func_fork_works" >&6; }
9951
9952 else
9953 ac_cv_func_fork_works=$ac_cv_func_fork
9954 fi
9955 if test "x$ac_cv_func_fork_works" = xcross; then
9956 case $host in
9957 *-*-amigaos* | *-*-msdosdjgpp*)
9958 # Override, as these systems have only a dummy fork() stub
9959 ac_cv_func_fork_works=no
9960 ;;
9961 *)
9962 ac_cv_func_fork_works=yes
9963 ;;
9964 esac
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9966 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9967 fi
9968 ac_cv_func_vfork_works=$ac_cv_func_vfork
9969 if test "x$ac_cv_func_vfork" = xyes; then
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9971 $as_echo_n "checking for working vfork... " >&6; }
9972 if test "${ac_cv_func_vfork_works+set}" = set; then :
9973 $as_echo_n "(cached) " >&6
9974 else
9975 if test "$cross_compiling" = yes; then :
9976 ac_cv_func_vfork_works=cross
9977 else
9978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9979 /* end confdefs.h. */
9980 /* Thanks to Paul Eggert for this test. */
9981 $ac_includes_default
9982 #include <sys/wait.h>
9983 #ifdef HAVE_VFORK_H
9984 # include <vfork.h>
9985 #endif
9986 /* On some sparc systems, changes by the child to local and incoming
9987 argument registers are propagated back to the parent. The compiler
9988 is told about this with #include <vfork.h>, but some compilers
9989 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9990 static variable whose address is put into a register that is
9991 clobbered by the vfork. */
9992 static void
9993 #ifdef __cplusplus
9994 sparc_address_test (int arg)
9995 # else
9996 sparc_address_test (arg) int arg;
9997 #endif
9998 {
9999 static pid_t child;
10000 if (!child) {
10001 child = vfork ();
10002 if (child < 0) {
10003 perror ("vfork");
10004 _exit(2);
10005 }
10006 if (!child) {
10007 arg = getpid();
10008 write(-1, "", 0);
10009 _exit (arg);
10010 }
10011 }
10012 }
10013
10014 int
10015 main ()
10016 {
10017 pid_t parent = getpid ();
10018 pid_t child;
10019
10020 sparc_address_test (0);
10021
10022 child = vfork ();
10023
10024 if (child == 0) {
10025 /* Here is another test for sparc vfork register problems. This
10026 test uses lots of local variables, at least as many local
10027 variables as main has allocated so far including compiler
10028 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10029 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10030 reuse the register of parent for one of the local variables,
10031 since it will think that parent can't possibly be used any more
10032 in this routine. Assigning to the local variable will thus
10033 munge parent in the parent process. */
10034 pid_t
10035 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10036 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10037 /* Convince the compiler that p..p7 are live; otherwise, it might
10038 use the same hardware register for all 8 local variables. */
10039 if (p != p1 || p != p2 || p != p3 || p != p4
10040 || p != p5 || p != p6 || p != p7)
10041 _exit(1);
10042
10043 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10044 from child file descriptors. If the child closes a descriptor
10045 before it execs or exits, this munges the parent's descriptor
10046 as well. Test for this by closing stdout in the child. */
10047 _exit(close(fileno(stdout)) != 0);
10048 } else {
10049 int status;
10050 struct stat st;
10051
10052 while (wait(&status) != child)
10053 ;
10054 return (
10055 /* Was there some problem with vforking? */
10056 child < 0
10057
10058 /* Did the child fail? (This shouldn't happen.) */
10059 || status
10060
10061 /* Did the vfork/compiler bug occur? */
10062 || parent != getpid()
10063
10064 /* Did the file descriptor bug occur? */
10065 || fstat(fileno(stdout), &st) != 0
10066 );
10067 }
10068 }
10069 _ACEOF
10070 if ac_fn_cxx_try_run "$LINENO"; then :
10071 ac_cv_func_vfork_works=yes
10072 else
10073 ac_cv_func_vfork_works=no
10074 fi
10075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10076 conftest.$ac_objext conftest.beam conftest.$ac_ext
10077 fi
10078
10079 fi
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10081 $as_echo "$ac_cv_func_vfork_works" >&6; }
10082
10083 fi;
10084 if test "x$ac_cv_func_fork_works" = xcross; then
10085 ac_cv_func_vfork_works=$ac_cv_func_vfork
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10087 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10088 fi
10089
10090 if test "x$ac_cv_func_vfork_works" = xyes; then
10091
10092 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10093
10094 else
10095
10096 $as_echo "#define vfork fork" >>confdefs.h
10097
10098 fi
10099 if test "x$ac_cv_func_fork_works" = xyes; then
10100
10101 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10102
10103 fi
10104
10105
10106
10107 if test "X$prefix" = "XNONE"; then
10108 acl_final_prefix="$ac_default_prefix"
10109 else
10110 acl_final_prefix="$prefix"
10111 fi
10112 if test "X$exec_prefix" = "XNONE"; then
10113 acl_final_exec_prefix='${prefix}'
10114 else
10115 acl_final_exec_prefix="$exec_prefix"
10116 fi
10117 acl_save_prefix="$prefix"
10118 prefix="$acl_final_prefix"
10119 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10120 prefix="$acl_save_prefix"
10121
10122
10123 # Check whether --with-gnu-ld was given.
10124 if test "${with_gnu_ld+set}" = set; then :
10125 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10126 else
10127 with_gnu_ld=no
10128 fi
10129
10130 # Prepare PATH_SEPARATOR.
10131 # The user is always right.
10132 if test "${PATH_SEPARATOR+set}" != set; then
10133 echo "#! /bin/sh" >conf$$.sh
10134 echo "exit 0" >>conf$$.sh
10135 chmod +x conf$$.sh
10136 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10137 PATH_SEPARATOR=';'
10138 else
10139 PATH_SEPARATOR=:
10140 fi
10141 rm -f conf$$.sh
10142 fi
10143 ac_prog=ld
10144 if test "$GCC" = yes; then
10145 # Check if gcc -print-prog-name=ld gives a path.
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10147 $as_echo_n "checking for ld used by GCC... " >&6; }
10148 case $host in
10149 *-*-mingw*)
10150 # gcc leaves a trailing carriage return which upsets mingw
10151 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10152 *)
10153 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10154 esac
10155 case $ac_prog in
10156 # Accept absolute paths.
10157 [\\/]* | [A-Za-z]:[\\/]*)
10158 re_direlt='/[^/][^/]*/\.\./'
10159 # Canonicalize the path of ld
10160 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10161 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10162 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10163 done
10164 test -z "$LD" && LD="$ac_prog"
10165 ;;
10166 "")
10167 # If it fails, then pretend we aren't using GCC.
10168 ac_prog=ld
10169 ;;
10170 *)
10171 # If it is relative, then search for the first ld in PATH.
10172 with_gnu_ld=unknown
10173 ;;
10174 esac
10175 elif test "$with_gnu_ld" = yes; then
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10177 $as_echo_n "checking for GNU ld... " >&6; }
10178 else
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10180 $as_echo_n "checking for non-GNU ld... " >&6; }
10181 fi
10182 if test "${acl_cv_path_LD+set}" = set; then :
10183 $as_echo_n "(cached) " >&6
10184 else
10185 if test -z "$LD"; then
10186 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10187 for ac_dir in $PATH; do
10188 test -z "$ac_dir" && ac_dir=.
10189 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10190 acl_cv_path_LD="$ac_dir/$ac_prog"
10191 # Check to see if the program is GNU ld. I'd rather use --version,
10192 # but apparently some GNU ld's only accept -v.
10193 # Break only if it was the GNU/non-GNU ld that we prefer.
10194 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10195 test "$with_gnu_ld" != no && break
10196 else
10197 test "$with_gnu_ld" != yes && break
10198 fi
10199 fi
10200 done
10201 IFS="$ac_save_ifs"
10202 else
10203 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10204 fi
10205 fi
10206
10207 LD="$acl_cv_path_LD"
10208 if test -n "$LD"; then
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10210 $as_echo "$LD" >&6; }
10211 else
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10213 $as_echo "no" >&6; }
10214 fi
10215 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10217 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10218 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10219 $as_echo_n "(cached) " >&6
10220 else
10221 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10222 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10223 acl_cv_prog_gnu_ld=yes
10224 else
10225 acl_cv_prog_gnu_ld=no
10226 fi
10227 fi
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10229 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10230 with_gnu_ld=$acl_cv_prog_gnu_ld
10231
10232
10233
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10235 $as_echo_n "checking for shared library run path origin... " >&6; }
10236 if test "${acl_cv_rpath+set}" = set; then :
10237 $as_echo_n "(cached) " >&6
10238 else
10239
10240 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10241 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10242 . ./conftest.sh
10243 rm -f ./conftest.sh
10244 acl_cv_rpath=done
10245
10246 fi
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10248 $as_echo "$acl_cv_rpath" >&6; }
10249 wl="$acl_cv_wl"
10250 libext="$acl_cv_libext"
10251 shlibext="$acl_cv_shlibext"
10252 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10253 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10254 hardcode_direct="$acl_cv_hardcode_direct"
10255 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10256 # Check whether --enable-rpath was given.
10257 if test "${enable_rpath+set}" = set; then :
10258 enableval=$enable_rpath; :
10259 else
10260 enable_rpath=yes
10261 fi
10262
10263
10264
10265
10266
10267
10268
10269
10270 use_additional=yes
10271
10272 acl_save_prefix="$prefix"
10273 prefix="$acl_final_prefix"
10274 acl_save_exec_prefix="$exec_prefix"
10275 exec_prefix="$acl_final_exec_prefix"
10276
10277 eval additional_includedir=\"$includedir\"
10278 eval additional_libdir=\"$libdir\"
10279
10280 exec_prefix="$acl_save_exec_prefix"
10281 prefix="$acl_save_prefix"
10282
10283
10284 # Check whether --with-libiconv-prefix was given.
10285 if test "${with_libiconv_prefix+set}" = set; then :
10286 withval=$with_libiconv_prefix;
10287 if test "X$withval" = "Xno"; then
10288 use_additional=no
10289 else
10290 if test "X$withval" = "X"; then
10291
10292 acl_save_prefix="$prefix"
10293 prefix="$acl_final_prefix"
10294 acl_save_exec_prefix="$exec_prefix"
10295 exec_prefix="$acl_final_exec_prefix"
10296
10297 eval additional_includedir=\"$includedir\"
10298 eval additional_libdir=\"$libdir\"
10299
10300 exec_prefix="$acl_save_exec_prefix"
10301 prefix="$acl_save_prefix"
10302
10303 else
10304 additional_includedir="$withval/include"
10305 additional_libdir="$withval/lib"
10306 fi
10307 fi
10308
10309 fi
10310
10311 LIBICONV=
10312 LTLIBICONV=
10313 INCICONV=
10314 rpathdirs=
10315 ltrpathdirs=
10316 names_already_handled=
10317 names_next_round='iconv '
10318 while test -n "$names_next_round"; do
10319 names_this_round="$names_next_round"
10320 names_next_round=
10321 for name in $names_this_round; do
10322 already_handled=
10323 for n in $names_already_handled; do
10324 if test "$n" = "$name"; then
10325 already_handled=yes
10326 break
10327 fi
10328 done
10329 if test -z "$already_handled"; then
10330 names_already_handled="$names_already_handled $name"
10331 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10332 eval value=\"\$HAVE_LIB$uppername\"
10333 if test -n "$value"; then
10334 if test "$value" = yes; then
10335 eval value=\"\$LIB$uppername\"
10336 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10337 eval value=\"\$LTLIB$uppername\"
10338 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10339 else
10340 :
10341 fi
10342 else
10343 found_dir=
10344 found_la=
10345 found_so=
10346 found_a=
10347 if test $use_additional = yes; then
10348 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10349 found_dir="$additional_libdir"
10350 found_so="$additional_libdir/lib$name.$shlibext"
10351 if test -f "$additional_libdir/lib$name.la"; then
10352 found_la="$additional_libdir/lib$name.la"
10353 fi
10354 else
10355 if test -f "$additional_libdir/lib$name.$libext"; then
10356 found_dir="$additional_libdir"
10357 found_a="$additional_libdir/lib$name.$libext"
10358 if test -f "$additional_libdir/lib$name.la"; then
10359 found_la="$additional_libdir/lib$name.la"
10360 fi
10361 fi
10362 fi
10363 fi
10364 if test "X$found_dir" = "X"; then
10365 for x in $LDFLAGS $LTLIBICONV; do
10366
10367 acl_save_prefix="$prefix"
10368 prefix="$acl_final_prefix"
10369 acl_save_exec_prefix="$exec_prefix"
10370 exec_prefix="$acl_final_exec_prefix"
10371 eval x=\"$x\"
10372 exec_prefix="$acl_save_exec_prefix"
10373 prefix="$acl_save_prefix"
10374
10375 case "$x" in
10376 -L*)
10377 dir=`echo "X$x" | sed -e 's/^X-L//'`
10378 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10379 found_dir="$dir"
10380 found_so="$dir/lib$name.$shlibext"
10381 if test -f "$dir/lib$name.la"; then
10382 found_la="$dir/lib$name.la"
10383 fi
10384 else
10385 if test -f "$dir/lib$name.$libext"; then
10386 found_dir="$dir"
10387 found_a="$dir/lib$name.$libext"
10388 if test -f "$dir/lib$name.la"; then
10389 found_la="$dir/lib$name.la"
10390 fi
10391 fi
10392 fi
10393 ;;
10394 esac
10395 if test "X$found_dir" != "X"; then
10396 break
10397 fi
10398 done
10399 fi
10400 if test "X$found_dir" != "X"; then
10401 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10402 if test "X$found_so" != "X"; then
10403 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10404 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10405 else
10406 haveit=
10407 for x in $ltrpathdirs; do
10408 if test "X$x" = "X$found_dir"; then
10409 haveit=yes
10410 break
10411 fi
10412 done
10413 if test -z "$haveit"; then
10414 ltrpathdirs="$ltrpathdirs $found_dir"
10415 fi
10416 if test "$hardcode_direct" = yes; then
10417 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10418 else
10419 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10420 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10421 haveit=
10422 for x in $rpathdirs; do
10423 if test "X$x" = "X$found_dir"; then
10424 haveit=yes
10425 break
10426 fi
10427 done
10428 if test -z "$haveit"; then
10429 rpathdirs="$rpathdirs $found_dir"
10430 fi
10431 else
10432 haveit=
10433 for x in $LDFLAGS $LIBICONV; do
10434
10435 acl_save_prefix="$prefix"
10436 prefix="$acl_final_prefix"
10437 acl_save_exec_prefix="$exec_prefix"
10438 exec_prefix="$acl_final_exec_prefix"
10439 eval x=\"$x\"
10440 exec_prefix="$acl_save_exec_prefix"
10441 prefix="$acl_save_prefix"
10442
10443 if test "X$x" = "X-L$found_dir"; then
10444 haveit=yes
10445 break
10446 fi
10447 done
10448 if test -z "$haveit"; then
10449 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10450 fi
10451 if test "$hardcode_minus_L" != no; then
10452 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10453 else
10454 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10455 fi
10456 fi
10457 fi
10458 fi
10459 else
10460 if test "X$found_a" != "X"; then
10461 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10462 else
10463 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10464 fi
10465 fi
10466 additional_includedir=
10467 case "$found_dir" in
10468 */lib | */lib/)
10469 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10470 additional_includedir="$basedir/include"
10471 ;;
10472 esac
10473 if test "X$additional_includedir" != "X"; then
10474 if test "X$additional_includedir" != "X/usr/include"; then
10475 haveit=
10476 if test "X$additional_includedir" = "X/usr/local/include"; then
10477 if test -n "$GCC"; then
10478 case $host_os in
10479 linux*) haveit=yes;;
10480 esac
10481 fi
10482 fi
10483 if test -z "$haveit"; then
10484 for x in $CPPFLAGS $INCICONV; do
10485
10486 acl_save_prefix="$prefix"
10487 prefix="$acl_final_prefix"
10488 acl_save_exec_prefix="$exec_prefix"
10489 exec_prefix="$acl_final_exec_prefix"
10490 eval x=\"$x\"
10491 exec_prefix="$acl_save_exec_prefix"
10492 prefix="$acl_save_prefix"
10493
10494 if test "X$x" = "X-I$additional_includedir"; then
10495 haveit=yes
10496 break
10497 fi
10498 done
10499 if test -z "$haveit"; then
10500 if test -d "$additional_includedir"; then
10501 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10502 fi
10503 fi
10504 fi
10505 fi
10506 fi
10507 if test -n "$found_la"; then
10508 save_libdir="$libdir"
10509 case "$found_la" in
10510 */* | *\\*) . "$found_la" ;;
10511 *) . "./$found_la" ;;
10512 esac
10513 libdir="$save_libdir"
10514 for dep in $dependency_libs; do
10515 case "$dep" in
10516 -L*)
10517 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10518 if test "X$additional_libdir" != "X/usr/lib"; then
10519 haveit=
10520 if test "X$additional_libdir" = "X/usr/local/lib"; then
10521 if test -n "$GCC"; then
10522 case $host_os in
10523 linux*) haveit=yes;;
10524 esac
10525 fi
10526 fi
10527 if test -z "$haveit"; then
10528 haveit=
10529 for x in $LDFLAGS $LIBICONV; 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-L$additional_libdir"; then
10540 haveit=yes
10541 break
10542 fi
10543 done
10544 if test -z "$haveit"; then
10545 if test -d "$additional_libdir"; then
10546 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10547 fi
10548 fi
10549 haveit=
10550 for x in $LDFLAGS $LTLIBICONV; do
10551
10552 acl_save_prefix="$prefix"
10553 prefix="$acl_final_prefix"
10554 acl_save_exec_prefix="$exec_prefix"
10555 exec_prefix="$acl_final_exec_prefix"
10556 eval x=\"$x\"
10557 exec_prefix="$acl_save_exec_prefix"
10558 prefix="$acl_save_prefix"
10559
10560 if test "X$x" = "X-L$additional_libdir"; then
10561 haveit=yes
10562 break
10563 fi
10564 done
10565 if test -z "$haveit"; then
10566 if test -d "$additional_libdir"; then
10567 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10568 fi
10569 fi
10570 fi
10571 fi
10572 ;;
10573 -R*)
10574 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10575 if test "$enable_rpath" != no; then
10576 haveit=
10577 for x in $rpathdirs; do
10578 if test "X$x" = "X$dir"; then
10579 haveit=yes
10580 break
10581 fi
10582 done
10583 if test -z "$haveit"; then
10584 rpathdirs="$rpathdirs $dir"
10585 fi
10586 haveit=
10587 for x in $ltrpathdirs; do
10588 if test "X$x" = "X$dir"; then
10589 haveit=yes
10590 break
10591 fi
10592 done
10593 if test -z "$haveit"; then
10594 ltrpathdirs="$ltrpathdirs $dir"
10595 fi
10596 fi
10597 ;;
10598 -l*)
10599 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10600 ;;
10601 *.la)
10602 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10603 ;;
10604 *)
10605 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10606 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10607 ;;
10608 esac
10609 done
10610 fi
10611 else
10612 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10613 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10614 fi
10615 fi
10616 fi
10617 done
10618 done
10619 if test "X$rpathdirs" != "X"; then
10620 if test -n "$hardcode_libdir_separator"; then
10621 alldirs=
10622 for found_dir in $rpathdirs; do
10623 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10624 done
10625 acl_save_libdir="$libdir"
10626 libdir="$alldirs"
10627 eval flag=\"$hardcode_libdir_flag_spec\"
10628 libdir="$acl_save_libdir"
10629 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10630 else
10631 for found_dir in $rpathdirs; do
10632 acl_save_libdir="$libdir"
10633 libdir="$found_dir"
10634 eval flag=\"$hardcode_libdir_flag_spec\"
10635 libdir="$acl_save_libdir"
10636 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10637 done
10638 fi
10639 fi
10640 if test "X$ltrpathdirs" != "X"; then
10641 for found_dir in $ltrpathdirs; do
10642 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10643 done
10644 fi
10645
10646
10647
10648
10649
10650
10651
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10653 $as_echo_n "checking for iconv... " >&6; }
10654 if test "${am_cv_func_iconv+set}" = set; then :
10655 $as_echo_n "(cached) " >&6
10656 else
10657
10658 am_cv_func_iconv="no, consider installing GNU libiconv"
10659 am_cv_lib_iconv=no
10660 am_save_CPPFLAGS="$CPPFLAGS"
10661 CPPFLAGS="$CPPFLAGS $INCICONV"
10662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10663 /* end confdefs.h. */
10664 #include <stdlib.h>
10665 #include <iconv.h>
10666 int
10667 main ()
10668 {
10669 iconv_t cd = iconv_open("","");
10670 iconv(cd,NULL,NULL,NULL,NULL);
10671 iconv_close(cd);
10672 ;
10673 return 0;
10674 }
10675 _ACEOF
10676 if ac_fn_cxx_try_link "$LINENO"; then :
10677 am_cv_func_iconv=yes
10678 fi
10679 rm -f core conftest.err conftest.$ac_objext \
10680 conftest$ac_exeext conftest.$ac_ext
10681 CPPFLAGS="$am_save_CPPFLAGS"
10682
10683 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10684 for _libs in .libs _libs; do
10685 am_save_CPPFLAGS="$CPPFLAGS"
10686 am_save_LIBS="$LIBS"
10687 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10688 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10690 /* end confdefs.h. */
10691 #include <stdlib.h>
10692 #include <iconv.h>
10693 int
10694 main ()
10695 {
10696 iconv_t cd = iconv_open("","");
10697 iconv(cd,NULL,NULL,NULL,NULL);
10698 iconv_close(cd);
10699 ;
10700 return 0;
10701 }
10702 _ACEOF
10703 if ac_fn_cxx_try_link "$LINENO"; then :
10704 INCICONV="-I../libiconv/include"
10705 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10706 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10707 am_cv_lib_iconv=yes
10708 am_cv_func_iconv=yes
10709 fi
10710 rm -f core conftest.err conftest.$ac_objext \
10711 conftest$ac_exeext conftest.$ac_ext
10712 CPPFLAGS="$am_save_CPPFLAGS"
10713 LIBS="$am_save_LIBS"
10714 if test "$am_cv_func_iconv" = "yes"; then
10715 break
10716 fi
10717 done
10718 fi
10719
10720 if test "$am_cv_func_iconv" != yes; then
10721 am_save_CPPFLAGS="$CPPFLAGS"
10722 am_save_LIBS="$LIBS"
10723 CPPFLAGS="$LIBS $INCICONV"
10724 LIBS="$LIBS $LIBICONV"
10725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10726 /* end confdefs.h. */
10727 #include <stdlib.h>
10728 #include <iconv.h>
10729 int
10730 main ()
10731 {
10732 iconv_t cd = iconv_open("","");
10733 iconv(cd,NULL,NULL,NULL,NULL);
10734 iconv_close(cd);
10735 ;
10736 return 0;
10737 }
10738 _ACEOF
10739 if ac_fn_cxx_try_link "$LINENO"; then :
10740 am_cv_lib_iconv=yes
10741 am_cv_func_iconv=yes
10742 fi
10743 rm -f core conftest.err conftest.$ac_objext \
10744 conftest$ac_exeext conftest.$ac_ext
10745 CPPFLAGS="$am_save_CPPFLAGS"
10746 LIBS="$am_save_LIBS"
10747 fi
10748
10749 fi
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10751 $as_echo "$am_cv_func_iconv" >&6; }
10752 if test "$am_cv_func_iconv" = yes; then
10753
10754 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10755
10756 fi
10757 if test "$am_cv_lib_iconv" = yes; then
10758
10759 for element in $INCICONV; do
10760 haveit=
10761 for x in $CPPFLAGS; do
10762
10763 acl_save_prefix="$prefix"
10764 prefix="$acl_final_prefix"
10765 acl_save_exec_prefix="$exec_prefix"
10766 exec_prefix="$acl_final_exec_prefix"
10767 eval x=\"$x\"
10768 exec_prefix="$acl_save_exec_prefix"
10769 prefix="$acl_save_prefix"
10770
10771 if test "X$x" = "X$element"; then
10772 haveit=yes
10773 break
10774 fi
10775 done
10776 if test -z "$haveit"; then
10777 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10778 fi
10779 done
10780
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10782 $as_echo_n "checking how to link with libiconv... " >&6; }
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10784 $as_echo "$LIBICONV" >&6; }
10785 else
10786 LIBICONV=
10787 LTLIBICONV=
10788 fi
10789
10790
10791
10792 if test "$am_cv_func_iconv" = yes; then
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10794 $as_echo_n "checking for iconv declaration... " >&6; }
10795 if test "${am_cv_proto_iconv+set}" = set; then :
10796 $as_echo_n "(cached) " >&6
10797 else
10798
10799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10800 /* end confdefs.h. */
10801
10802 #include <stdlib.h>
10803 #include <iconv.h>
10804 extern
10805 #ifdef __cplusplus
10806 "C"
10807 #endif
10808 #if defined(__STDC__) || defined(__cplusplus)
10809 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10810 #else
10811 size_t iconv();
10812 #endif
10813
10814 int
10815 main ()
10816 {
10817
10818 ;
10819 return 0;
10820 }
10821 _ACEOF
10822 if ac_fn_cxx_try_compile "$LINENO"; then :
10823 am_cv_proto_iconv_arg1=""
10824 else
10825 am_cv_proto_iconv_arg1="const"
10826 fi
10827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10828 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);"
10829 fi
10830
10831 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10833 }$am_cv_proto_iconv" >&5
10834 $as_echo "${ac_t:-
10835 }$am_cv_proto_iconv" >&6; }
10836
10837 cat >>confdefs.h <<_ACEOF
10838 #define ICONV_CONST $am_cv_proto_iconv_arg1
10839 _ACEOF
10840
10841 fi
10842
10843
10844 # Until we have in-tree GNU iconv:
10845 LIBICONV_DEP=
10846 if test -f "$LTLIBICONV"; then
10847 LIBICONV_DEP=$LTLIBICONV
10848 fi
10849
10850
10851
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10853 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10854 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10855 $as_echo_n "(cached) " >&6
10856 else
10857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10858 /* end confdefs.h. */
10859 #include <locale.h>
10860 int
10861 main ()
10862 {
10863 return LC_MESSAGES
10864 ;
10865 return 0;
10866 }
10867 _ACEOF
10868 if ac_fn_cxx_try_link "$LINENO"; then :
10869 am_cv_val_LC_MESSAGES=yes
10870 else
10871 am_cv_val_LC_MESSAGES=no
10872 fi
10873 rm -f core conftest.err conftest.$ac_objext \
10874 conftest$ac_exeext conftest.$ac_ext
10875 fi
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10877 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10878 if test $am_cv_val_LC_MESSAGES = yes; then
10879
10880 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10881
10882 fi
10883
10884
10885
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10887 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10888 if test "${am_cv_langinfo_codeset+set}" = set; then :
10889 $as_echo_n "(cached) " >&6
10890 else
10891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10892 /* end confdefs.h. */
10893 #include <langinfo.h>
10894 int
10895 main ()
10896 {
10897 char* cs = nl_langinfo(CODESET);
10898 ;
10899 return 0;
10900 }
10901 _ACEOF
10902 if ac_fn_cxx_try_link "$LINENO"; then :
10903 am_cv_langinfo_codeset=yes
10904 else
10905 am_cv_langinfo_codeset=no
10906 fi
10907 rm -f core conftest.err conftest.$ac_objext \
10908 conftest$ac_exeext conftest.$ac_ext
10909
10910 fi
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10912 $as_echo "$am_cv_langinfo_codeset" >&6; }
10913 if test $am_cv_langinfo_codeset = yes; then
10914
10915 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10916
10917 fi
10918
10919
10920 # We will need to find libiberty.h and ansidecl.h
10921 saved_CFLAGS="$CFLAGS"
10922 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10923 saved_CXXFLAGS="$CXXFLAGS"
10924 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10925
10926 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10927 # normal autoconf function for these. But force definition of
10928 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10929 # basename handling in libiberty.h.
10930 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10931 #undef HAVE_DECL_BASENAME
10932 #define HAVE_DECL_BASENAME 1
10933 #include \"ansidecl.h\"
10934 #include \"system.h\"
10935 "
10936 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
10937 ac_have_decl=1
10938 else
10939 ac_have_decl=0
10940 fi
10941
10942 cat >>confdefs.h <<_ACEOF
10943 #define HAVE_DECL_BASENAME $ac_have_decl
10944 _ACEOF
10945 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10946 #undef HAVE_DECL_BASENAME
10947 #define HAVE_DECL_BASENAME 1
10948 #include \"ansidecl.h\"
10949 #include \"system.h\"
10950 "
10951 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
10952 ac_have_decl=1
10953 else
10954 ac_have_decl=0
10955 fi
10956
10957 cat >>confdefs.h <<_ACEOF
10958 #define HAVE_DECL_STRSTR $ac_have_decl
10959 _ACEOF
10960
10961
10962 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10963 madvise stpcpy strnlen strsignal strverscmp \
10964 strtol strtoul strtoll strtoull setenv unsetenv \
10965 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10966 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
10967 do
10968 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10970 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10971 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10972 $as_echo_n "(cached) " >&6
10973 else
10974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10975 /* end confdefs.h. */
10976 #undef $ac_tr_decl
10977 #define $ac_tr_decl 1
10978
10979 #include "ansidecl.h"
10980 #include "system.h"
10981
10982 int
10983 main ()
10984 {
10985 #ifndef $ac_func
10986 char *(*pfn) = (char *(*)) $ac_func ;
10987 #endif
10988 ;
10989 return 0;
10990 }
10991 _ACEOF
10992 if ac_fn_cxx_try_compile "$LINENO"; then :
10993 eval "gcc_cv_have_decl_$ac_func=yes"
10994 else
10995 eval "gcc_cv_have_decl_$ac_func=no"
10996 fi
10997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10998 fi
10999
11000 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11002 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11003 #define $ac_tr_decl 1
11004 _ACEOF
11005
11006 else
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11008 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11009 #define $ac_tr_decl 0
11010 _ACEOF
11011
11012 fi
11013
11014 done
11015
11016
11017 for ac_func in getrlimit setrlimit getrusage
11018 do
11019 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11021 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11022 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11023 $as_echo_n "(cached) " >&6
11024 else
11025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11026 /* end confdefs.h. */
11027 #undef $ac_tr_decl
11028 #define $ac_tr_decl 1
11029
11030 #include "ansidecl.h"
11031 #include "system.h"
11032 #ifdef HAVE_SYS_RESOURCE_H
11033 #include <sys/resource.h>
11034 #endif
11035
11036
11037 int
11038 main ()
11039 {
11040 #ifndef $ac_func
11041 char *(*pfn) = (char *(*)) $ac_func ;
11042 #endif
11043 ;
11044 return 0;
11045 }
11046 _ACEOF
11047 if ac_fn_cxx_try_compile "$LINENO"; then :
11048 eval "gcc_cv_have_decl_$ac_func=yes"
11049 else
11050 eval "gcc_cv_have_decl_$ac_func=no"
11051 fi
11052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11053 fi
11054
11055 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11057 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11058 #define $ac_tr_decl 1
11059 _ACEOF
11060
11061 else
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11063 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11064 #define $ac_tr_decl 0
11065 _ACEOF
11066
11067 fi
11068
11069 done
11070
11071
11072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11073 /* end confdefs.h. */
11074
11075 #include "ansidecl.h"
11076 #include "system.h"
11077 #ifdef HAVE_SYS_RESOURCE_H
11078 #include <sys/resource.h>
11079 #endif
11080
11081 int
11082 main ()
11083 {
11084 rlim_t l = 0;
11085 ;
11086 return 0;
11087 }
11088 _ACEOF
11089 if ac_fn_cxx_try_compile "$LINENO"; then :
11090
11091 else
11092
11093 $as_echo "#define rlim_t long" >>confdefs.h
11094
11095 fi
11096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11097
11098 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11099 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11100 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11101 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11102 for ac_func in ldgetname
11103 do
11104 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11106 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11107 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11108 $as_echo_n "(cached) " >&6
11109 else
11110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11111 /* end confdefs.h. */
11112 #undef $ac_tr_decl
11113 #define $ac_tr_decl 1
11114
11115 #include "ansidecl.h"
11116 #include "system.h"
11117 #ifdef HAVE_LDFCN_H
11118 #undef FREAD
11119 #undef FWRITE
11120 #include <ldfcn.h>
11121 #endif
11122
11123
11124 int
11125 main ()
11126 {
11127 #ifndef $ac_func
11128 char *(*pfn) = (char *(*)) $ac_func ;
11129 #endif
11130 ;
11131 return 0;
11132 }
11133 _ACEOF
11134 if ac_fn_cxx_try_compile "$LINENO"; then :
11135 eval "gcc_cv_have_decl_$ac_func=yes"
11136 else
11137 eval "gcc_cv_have_decl_$ac_func=no"
11138 fi
11139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11140 fi
11141
11142 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11144 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11145 #define $ac_tr_decl 1
11146 _ACEOF
11147
11148 else
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11150 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11151 #define $ac_tr_decl 0
11152 _ACEOF
11153
11154 fi
11155
11156 done
11157
11158
11159 for ac_func in times
11160 do
11161 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11163 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11164 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11165 $as_echo_n "(cached) " >&6
11166 else
11167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11168 /* end confdefs.h. */
11169 #undef $ac_tr_decl
11170 #define $ac_tr_decl 1
11171
11172 #include "ansidecl.h"
11173 #include "system.h"
11174 #ifdef HAVE_SYS_TIMES_H
11175 #include <sys/times.h>
11176 #endif
11177
11178
11179 int
11180 main ()
11181 {
11182 #ifndef $ac_func
11183 char *(*pfn) = (char *(*)) $ac_func ;
11184 #endif
11185 ;
11186 return 0;
11187 }
11188 _ACEOF
11189 if ac_fn_cxx_try_compile "$LINENO"; then :
11190 eval "gcc_cv_have_decl_$ac_func=yes"
11191 else
11192 eval "gcc_cv_have_decl_$ac_func=no"
11193 fi
11194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11195 fi
11196
11197 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11199 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11200 #define $ac_tr_decl 1
11201 _ACEOF
11202
11203 else
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11205 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11206 #define $ac_tr_decl 0
11207 _ACEOF
11208
11209 fi
11210
11211 done
11212
11213
11214 for ac_func in sigaltstack
11215 do
11216 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11218 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11219 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11220 $as_echo_n "(cached) " >&6
11221 else
11222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11223 /* end confdefs.h. */
11224 #undef $ac_tr_decl
11225 #define $ac_tr_decl 1
11226
11227 #include "ansidecl.h"
11228 #include "system.h"
11229 #include <signal.h>
11230
11231
11232 int
11233 main ()
11234 {
11235 #ifndef $ac_func
11236 char *(*pfn) = (char *(*)) $ac_func ;
11237 #endif
11238 ;
11239 return 0;
11240 }
11241 _ACEOF
11242 if ac_fn_cxx_try_compile "$LINENO"; then :
11243 eval "gcc_cv_have_decl_$ac_func=yes"
11244 else
11245 eval "gcc_cv_have_decl_$ac_func=no"
11246 fi
11247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11248 fi
11249
11250 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11252 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11253 #define $ac_tr_decl 1
11254 _ACEOF
11255
11256 else
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11258 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11259 #define $ac_tr_decl 0
11260 _ACEOF
11261
11262 fi
11263
11264 done
11265
11266
11267 # More time-related stuff.
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11269 $as_echo_n "checking for struct tms... " >&6; }
11270 if test "${ac_cv_struct_tms+set}" = set; then :
11271 $as_echo_n "(cached) " >&6
11272 else
11273
11274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11275 /* end confdefs.h. */
11276
11277 #include "ansidecl.h"
11278 #include "system.h"
11279 #ifdef HAVE_SYS_TIMES_H
11280 #include <sys/times.h>
11281 #endif
11282
11283 int
11284 main ()
11285 {
11286 struct tms tms;
11287 ;
11288 return 0;
11289 }
11290 _ACEOF
11291 if ac_fn_cxx_try_compile "$LINENO"; then :
11292 ac_cv_struct_tms=yes
11293 else
11294 ac_cv_struct_tms=no
11295 fi
11296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11297 fi
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11299 $as_echo "$ac_cv_struct_tms" >&6; }
11300 if test $ac_cv_struct_tms = yes; then
11301
11302 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11303
11304 fi
11305
11306 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11307 # revisit after autoconf 2.50.
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11309 $as_echo_n "checking for clock_t... " >&6; }
11310 if test "${gcc_cv_type_clock_t+set}" = set; then :
11311 $as_echo_n "(cached) " >&6
11312 else
11313
11314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11315 /* end confdefs.h. */
11316
11317 #include "ansidecl.h"
11318 #include "system.h"
11319
11320 int
11321 main ()
11322 {
11323 clock_t x;
11324 ;
11325 return 0;
11326 }
11327 _ACEOF
11328 if ac_fn_cxx_try_compile "$LINENO"; then :
11329 gcc_cv_type_clock_t=yes
11330 else
11331 gcc_cv_type_clock_t=no
11332 fi
11333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11334 fi
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11336 $as_echo "$gcc_cv_type_clock_t" >&6; }
11337 if test $gcc_cv_type_clock_t = yes; then
11338
11339 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11340
11341 fi
11342
11343 # Check if F_SETLKW is supported by fcntl.
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11345 $as_echo_n "checking for F_SETLKW... " >&6; }
11346 if test "${ac_cv_f_setlkw+set}" = set; then :
11347 $as_echo_n "(cached) " >&6
11348 else
11349
11350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11351 /* end confdefs.h. */
11352
11353 #include <fcntl.h>
11354 int
11355 main ()
11356 {
11357
11358 struct flock fl;
11359 fl.l_whence = 0;
11360 fl.l_start = 0;
11361 fl.l_len = 0;
11362 fl.l_pid = 0;
11363 return fcntl (1, F_SETLKW, &fl);
11364 ;
11365 return 0;
11366 }
11367 _ACEOF
11368 if ac_fn_cxx_try_compile "$LINENO"; then :
11369 ac_cv_f_setlkw=yes
11370 else
11371 ac_cv_f_setlkw=no
11372 fi
11373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11374 fi
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11376 $as_echo "$ac_cv_f_setlkw" >&6; }
11377 if test $ac_cv_f_setlkw = yes; then
11378
11379 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11380
11381 fi
11382
11383 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11384 CFLAGS="$saved_CFLAGS"
11385 CXXFLAGS="$saved_CXXFLAGS"
11386
11387 # mkdir takes a single argument on some systems.
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11389 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11390 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11391 $as_echo_n "(cached) " >&6
11392 else
11393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11394 /* end confdefs.h. */
11395
11396 #include <sys/types.h>
11397 #ifdef HAVE_SYS_STAT_H
11398 # include <sys/stat.h>
11399 #endif
11400 #ifdef HAVE_UNISTD_H
11401 # include <unistd.h>
11402 #endif
11403 #ifdef HAVE_DIRECT_H
11404 # include <direct.h>
11405 #endif
11406 int
11407 main ()
11408 {
11409 mkdir ("foo", 0);
11410 ;
11411 return 0;
11412 }
11413 _ACEOF
11414 if ac_fn_cxx_try_compile "$LINENO"; then :
11415 gcc_cv_mkdir_takes_one_arg=no
11416 else
11417 gcc_cv_mkdir_takes_one_arg=yes
11418 fi
11419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11420 fi
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11422 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11423 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11424
11425 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11426
11427 fi
11428
11429
11430 # File extensions
11431 manext='.1'
11432 objext='.o'
11433
11434
11435
11436 # With Setjmp/Longjmp based exception handling.
11437 # Check whether --enable-sjlj-exceptions was given.
11438 if test "${enable_sjlj_exceptions+set}" = set; then :
11439 enableval=$enable_sjlj_exceptions; case $target in
11440 *-*-hpux10*)
11441 if test $enableval != yes; then
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11443 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11444 enableval=yes
11445 fi
11446 ;;
11447 esac
11448 force_sjlj_exceptions=yes
11449 else
11450 case $target in
11451 *-*-hpux10*)
11452 force_sjlj_exceptions=yes
11453 enableval=yes
11454 ;;
11455 lm32*-*-*)
11456 force_sjlj_exceptions=yes
11457 enableval=yes
11458 ;;
11459 *)
11460 force_sjlj_exceptions=no
11461 ;;
11462 esac
11463 fi
11464
11465 if test $force_sjlj_exceptions = yes; then
11466 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11467
11468 cat >>confdefs.h <<_ACEOF
11469 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11470 _ACEOF
11471
11472 fi
11473
11474 # --------------------------------------------------------
11475 # Build, host, and target specific configuration fragments
11476 # --------------------------------------------------------
11477
11478 # Collect build-machine-specific information.
11479 . ${srcdir}/config.build
11480
11481 # Collect host-machine-specific information.
11482 . ${srcdir}/config.host
11483
11484 target_gtfiles=
11485
11486 # Collect target-machine-specific information.
11487 . ${srcdir}/config.gcc
11488
11489 extra_objs="${host_extra_objs} ${extra_objs}"
11490 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11491
11492 # Default the target-machine variables that were not explicitly set.
11493 if test x"$tm_file" = x
11494 then tm_file=$cpu_type/$cpu_type.h; fi
11495
11496 if test x"$extra_headers" = x
11497 then extra_headers=; fi
11498
11499 if test x$md_file = x
11500 then md_file=$cpu_type/$cpu_type.md; fi
11501
11502 if test x$out_file = x
11503 then out_file=$cpu_type/$cpu_type.c; fi
11504
11505 if test x"$tmake_file" = x
11506 then tmake_file=$cpu_type/t-$cpu_type
11507 fi
11508
11509 # Support --enable-initfini-array.
11510 if test x$enable_initfini_array != xno; then
11511 tm_file="${tm_file} initfini-array.h"
11512 fi
11513
11514 if test x"$dwarf2" = xyes
11515 then tm_file="$tm_file tm-dwarf2.h"
11516 fi
11517
11518 # Say what files are being used for the output code and MD file.
11519 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11520 echo "Using \`$srcdir/config/$md_file' as machine description file."
11521
11522 # If any of the xm_file variables contain nonexistent files, warn
11523 # about them and drop them.
11524
11525 bx=
11526 for x in $build_xm_file; do
11527 if test -f $srcdir/config/$x
11528 then bx="$bx $x"
11529 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11530 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11531 fi
11532 done
11533 build_xm_file="$bx"
11534
11535 hx=
11536 for x in $host_xm_file; do
11537 if test -f $srcdir/config/$x
11538 then hx="$hx $x"
11539 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11540 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11541 fi
11542 done
11543 host_xm_file="$hx"
11544
11545 tx=
11546 for x in $xm_file; do
11547 if test -f $srcdir/config/$x
11548 then tx="$tx $x"
11549 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11550 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11551 fi
11552 done
11553 xm_file="$tx"
11554
11555 count=a
11556 for f in $tm_file; do
11557 count=${count}x
11558 done
11559 if test $count = ax; then
11560 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11561 else
11562 echo "Using the following target machine macro files:"
11563 for f in $tm_file; do
11564 echo " $srcdir/config/$f"
11565 done
11566 fi
11567
11568 if test x$use_long_long_for_widest_fast_int = xyes; then
11569
11570 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11571
11572 fi
11573
11574 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11575
11576 cat >>confdefs.h <<_ACEOF
11577 #define HAVE_GNU_LD $gnu_ld_bool
11578 _ACEOF
11579
11580
11581 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11582
11583 cat >>confdefs.h <<_ACEOF
11584 #define HAVE_GNU_AS $gnu_as_bool
11585 _ACEOF
11586
11587
11588 count=a
11589 for f in $host_xm_file; do
11590 count=${count}x
11591 done
11592 if test $count = a; then
11593 :
11594 elif test $count = ax; then
11595 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11596 else
11597 echo "Using the following host machine macro files:"
11598 for f in $host_xm_file; do
11599 echo " $srcdir/config/$f"
11600 done
11601 fi
11602 echo "Using ${out_host_hook_obj} for host machine hooks."
11603
11604 if test "$host_xm_file" != "$build_xm_file"; then
11605 count=a
11606 for f in $build_xm_file; do
11607 count=${count}x
11608 done
11609 if test $count = a; then
11610 :
11611 elif test $count = ax; then
11612 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11613 else
11614 echo "Using the following build machine macro files:"
11615 for f in $build_xm_file; do
11616 echo " $srcdir/config/$f"
11617 done
11618 fi
11619 fi
11620
11621 if test -n "$configured_native_system_header_dir"; then
11622 native_system_header_dir=$configured_native_system_header_dir
11623 fi
11624 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11625
11626
11627 case ${host} in
11628 powerpc*-*-darwin*)
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11630 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11631 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11632 $as_echo_n "(cached) " >&6
11633 else
11634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11635 /* end confdefs.h. */
11636
11637 #include <sys/cdefs.h>
11638 #include <sys/signal.h>
11639 #include <ucontext.h>
11640 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11641
11642 _ACEOF
11643 if ac_fn_cxx_try_compile "$LINENO"; then :
11644 gcc_cv_mcontext_underscores=no
11645 else
11646 gcc_cv_mcontext_underscores=yes
11647 fi
11648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11649 fi
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11651 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11652 if test $gcc_cv_mcontext_underscores = yes; then
11653
11654 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11655
11656 fi
11657 ;;
11658 esac
11659
11660 # ---------
11661 # Threading
11662 # ---------
11663
11664 # Check if a valid thread package
11665 case ${enable_threads} in
11666 "" | no)
11667 # No threads
11668 target_thread_file='single'
11669 ;;
11670 yes)
11671 # default
11672 target_thread_file='single'
11673 ;;
11674 aix | dce | lynx | mipssde | posix | rtems | \
11675 single | tpf | vxworks | win32)
11676 target_thread_file=${enable_threads}
11677 ;;
11678 *)
11679 echo "${enable_threads} is an unknown thread package" 1>&2
11680 exit 1
11681 ;;
11682 esac
11683
11684 if test x${thread_file} = x; then
11685 # No thread file set by target-specific clauses in config.gcc,
11686 # so use file chosen by default logic above
11687 thread_file=${target_thread_file}
11688 fi
11689
11690 # --------
11691 # UNSORTED
11692 # --------
11693
11694 use_cxa_atexit=no
11695 if test x$enable___cxa_atexit = xyes || \
11696 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11697 if test x$host = x$target; then
11698 case $host in
11699 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11700 # keyed to flag_use_cxa_atexit
11701 *-*-mingw32*)
11702 use_cxa_atexit=yes
11703 ;;
11704 powerpc-ibm-aix*)
11705 use_cxa_atexit=yes
11706 ;;
11707 *)
11708 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11709 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11710 use_cxa_atexit=yes
11711 else
11712 echo "__cxa_atexit can't be enabled on this target"
11713 fi
11714
11715 ;;
11716 esac
11717 else
11718 # We can't check for __cxa_atexit when building a cross, so assume
11719 # it is available
11720 use_cxa_atexit=yes
11721 fi
11722 if test x$use_cxa_atexit = xyes; then
11723
11724 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11725
11726 fi
11727 fi
11728
11729 # Look for a file containing extra machine modes.
11730 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11731 extra_modes_file='$(srcdir)'/config/${extra_modes}
11732
11733
11734 cat >>confdefs.h <<_ACEOF
11735 #define EXTRA_MODES_FILE "config/$extra_modes"
11736 _ACEOF
11737
11738 fi
11739
11740 # Convert extra_options into a form suitable for Makefile use.
11741 extra_opt_files=
11742 all_opt_files=
11743 for f in $extra_options; do
11744 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11745 all_opt_files="$all_opt_files $srcdir/config/$f"
11746 done
11747
11748
11749 # auto-host.h is the file containing items generated by autoconf and is
11750 # the first file included by config.h.
11751 # If host=build, it is correct to have bconfig include auto-host.h
11752 # as well. If host!=build, we are in error and need to do more
11753 # work to find out the build config parameters.
11754 if test x$host = x$build
11755 then
11756 build_auto=auto-host.h
11757 else
11758 # We create a subdir, then run autoconf in the subdir.
11759 # To prevent recursion we set host and build for the new
11760 # invocation of configure to the build for this invocation
11761 # of configure.
11762 tempdir=build.$$
11763 rm -rf $tempdir
11764 mkdir $tempdir
11765 cd $tempdir
11766 case ${srcdir} in
11767 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11768 *) realsrcdir=../${srcdir};;
11769 esac
11770 # Clearing GMPINC is necessary to prevent host headers being
11771 # used by the build compiler. Defining GENERATOR_FILE stops
11772 # system.h from including gmp.h.
11773 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11774 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11775 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11776 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11777 ${realsrcdir}/configure \
11778 --enable-languages=${enable_languages-all} \
11779 --target=$target_alias --host=$build_alias --build=$build_alias
11780
11781 # We just finished tests for the build machine, so rename
11782 # the file auto-build.h in the gcc directory.
11783 mv auto-host.h ../auto-build.h
11784 cd ..
11785 rm -rf $tempdir
11786 build_auto=auto-build.h
11787 fi
11788
11789
11790 tm_file="${tm_file} defaults.h"
11791 tm_p_file="${tm_p_file} tm-preds.h"
11792 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11793 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11794 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11795 # put this back in temporarily.
11796 xm_file="auto-host.h ansidecl.h ${xm_file}"
11797
11798 # --------
11799 # UNSORTED
11800 # --------
11801
11802 # Compile in configure arguments.
11803 if test -f configargs.h ; then
11804 # Being re-configured.
11805 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11806 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11807 else
11808 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11809 fi
11810
11811 # Double all backslashes and backslash all quotes to turn
11812 # gcc_config_arguments into a C string.
11813 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11814 $gcc_config_arguments
11815 EOF
11816 gcc_config_arguments_str=`cat conftest.out`
11817 rm -f conftest.out
11818
11819 cat > configargs.h <<EOF
11820 /* Generated automatically. */
11821 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11822 static const char thread_model[] = "$thread_file";
11823
11824 static const struct {
11825 const char *name, *value;
11826 } configure_default_options[] = $configure_default_options;
11827 EOF
11828
11829 gcc_BASEVER=`cat $srcdir/BASE-VER`
11830 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11831 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11832 if test -f $srcdir/REVISION ; then
11833 gcc_REVISION=`cat $srcdir/REVISION`
11834 else
11835 gcc_REVISION=""
11836 fi
11837 cat > plugin-version.h <<EOF
11838 #include "configargs.h"
11839
11840 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11841 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11842 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11843 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11844
11845 static char basever[] = "$gcc_BASEVER";
11846 static char datestamp[] = "$gcc_DATESTAMP";
11847 static char devphase[] = "$gcc_DEVPHASE";
11848 static char revision[] = "$gcc_REVISION";
11849
11850 /* FIXME plugins: We should make the version information more precise.
11851 One way to do is to add a checksum. */
11852
11853 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11854 devphase, revision,
11855 configuration_arguments};
11856 EOF
11857
11858 # Internationalization
11859 # If we haven't got the data from the intl directory,
11860 # assume NLS is disabled.
11861 USE_NLS=no
11862 LIBINTL=
11863 LIBINTL_DEP=
11864 INCINTL=
11865 XGETTEXT=
11866 GMSGFMT=
11867 POSUB=
11868
11869 if test -f ../intl/config.intl; then
11870 . ../intl/config.intl
11871 fi
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11873 $as_echo_n "checking whether NLS is requested... " >&6; }
11874 if test x"$USE_NLS" != xyes; then
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11876 $as_echo "no" >&6; }
11877 else
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11879 $as_echo "yes" >&6; }
11880
11881 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11882
11883
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11885 $as_echo_n "checking for catalogs to be installed... " >&6; }
11886 # Look for .po and .gmo files in the source directory.
11887 CATALOGS=
11888 XLINGUAS=
11889 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11890 # If there aren't any .gmo files the shell will give us the
11891 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11892 # weeded out.
11893 case "$cat" in *\**)
11894 continue;;
11895 esac
11896 # The quadruple backslash is collapsed to a double backslash
11897 # by the backticks, then collapsed again by the double quotes,
11898 # leaving us with one backslash in the sed expression (right
11899 # before the dot that mustn't act as a wildcard).
11900 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11901 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11902 # The user is allowed to set LINGUAS to a list of languages to
11903 # install catalogs for. If it's empty that means "all of them."
11904 if test "x$LINGUAS" = x; then
11905 CATALOGS="$CATALOGS $cat"
11906 XLINGUAS="$XLINGUAS $lang"
11907 else
11908 case "$LINGUAS" in *$lang*)
11909 CATALOGS="$CATALOGS $cat"
11910 XLINGUAS="$XLINGUAS $lang"
11911 ;;
11912 esac
11913 fi
11914 done
11915 LINGUAS="$XLINGUAS"
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11917 $as_echo "$LINGUAS" >&6; }
11918
11919
11920 DATADIRNAME=share
11921
11922 INSTOBJEXT=.mo
11923
11924 GENCAT=gencat
11925
11926 CATOBJEXT=.gmo
11927
11928 fi
11929
11930 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11931 # -liconv on the link line twice.
11932 case "$LIBINTL" in *$LIBICONV*)
11933 LIBICONV= ;;
11934 esac
11935
11936 # Check whether --enable-secureplt was given.
11937 if test "${enable_secureplt+set}" = set; then :
11938 enableval=$enable_secureplt;
11939 fi
11940
11941
11942 # Check whether --enable-leading-mingw64-underscores was given.
11943 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11944 enableval=$enable_leading_mingw64_underscores;
11945 fi
11946
11947 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11948
11949 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11950
11951 fi
11952
11953 # Check whether --enable-cld was given.
11954 if test "${enable_cld+set}" = set; then :
11955 enableval=$enable_cld;
11956 else
11957 enable_cld=no
11958 fi
11959
11960
11961 # Check whether --enable-frame-pointer was given.
11962 if test "${enable_frame_pointer+set}" = set; then :
11963 enableval=$enable_frame_pointer;
11964 else
11965
11966 case $target_os in
11967 linux* | darwin[8912]*)
11968 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11969 # DWARF2.
11970 enable_frame_pointer=no
11971 ;;
11972 *)
11973 enable_frame_pointer=yes
11974 ;;
11975 esac
11976
11977 fi
11978
11979
11980 # Windows32 Registry support for specifying GCC installation paths.
11981 # Check whether --enable-win32-registry was given.
11982 if test "${enable_win32_registry+set}" = set; then :
11983 enableval=$enable_win32_registry;
11984 fi
11985
11986
11987 case $host_os in
11988 win32 | pe | cygwin* | mingw32*)
11989 if test "x$enable_win32_registry" != xno; then
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11991 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11992 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11993 $as_echo_n "(cached) " >&6
11994 else
11995 ac_func_search_save_LIBS=$LIBS
11996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997 /* end confdefs.h. */
11998
11999 /* Override any GCC internal prototype to avoid an error.
12000 Use char because int might match the return type of a GCC
12001 builtin and then its argument prototype would still apply. */
12002 #ifdef __cplusplus
12003 extern "C"
12004 #endif
12005 char RegOpenKeyExA ();
12006 int
12007 main ()
12008 {
12009 return RegOpenKeyExA ();
12010 ;
12011 return 0;
12012 }
12013 _ACEOF
12014 for ac_lib in '' advapi32; do
12015 if test -z "$ac_lib"; then
12016 ac_res="none required"
12017 else
12018 ac_res=-l$ac_lib
12019 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12020 fi
12021 if ac_fn_cxx_try_link "$LINENO"; then :
12022 ac_cv_search_RegOpenKeyExA=$ac_res
12023 fi
12024 rm -f core conftest.err conftest.$ac_objext \
12025 conftest$ac_exeext
12026 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12027 break
12028 fi
12029 done
12030 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12031
12032 else
12033 ac_cv_search_RegOpenKeyExA=no
12034 fi
12035 rm conftest.$ac_ext
12036 LIBS=$ac_func_search_save_LIBS
12037 fi
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12039 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12040 ac_res=$ac_cv_search_RegOpenKeyExA
12041 if test "$ac_res" != no; then :
12042 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12043
12044 else
12045 enable_win32_registry=no
12046 fi
12047
12048 fi
12049
12050 if test "x$enable_win32_registry" != xno; then
12051
12052 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12053
12054
12055 if test "x$enable_win32_registry" != xyes \
12056 && test "x$enable_win32_registry" != x; then
12057
12058 cat >>confdefs.h <<_ACEOF
12059 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12060 _ACEOF
12061
12062 fi
12063 fi
12064 ;;
12065 esac
12066
12067 # Get an absolute path to the GCC top-level source directory
12068 holddir=`${PWDCMD-pwd}`
12069 cd $srcdir
12070 topdir=`${PWDCMD-pwd}`
12071 cd $holddir
12072
12073 # Conditionalize the makefile for this host machine.
12074 xmake_file=
12075 for f in ${host_xmake_file}
12076 do
12077 if test -f ${srcdir}/config/$f
12078 then
12079 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12080 fi
12081 done
12082
12083 # Conditionalize the makefile for this target machine.
12084 tmake_file_=
12085 for f in ${tmake_file}
12086 do
12087 if test -f ${srcdir}/config/$f
12088 then
12089 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12090 fi
12091 done
12092 tmake_file="${tmake_file_}"
12093
12094 out_object_file=`basename $out_file .c`.o
12095 common_out_object_file=`basename $common_out_file .c`.o
12096
12097 tm_file_list="options.h"
12098 tm_include_list="options.h insn-constants.h"
12099 for f in $tm_file; do
12100 case $f in
12101 ./* )
12102 f=`echo $f | sed 's/^..//'`
12103 tm_file_list="${tm_file_list} $f"
12104 tm_include_list="${tm_include_list} $f"
12105 ;;
12106 defaults.h )
12107 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12108 tm_include_list="${tm_include_list} $f"
12109 ;;
12110 * )
12111 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12112 tm_include_list="${tm_include_list} config/$f"
12113 ;;
12114 esac
12115 done
12116
12117 tm_p_file_list=
12118 tm_p_include_list=
12119 for f in $tm_p_file; do
12120 case $f in
12121 tm-preds.h )
12122 tm_p_file_list="${tm_p_file_list} $f"
12123 tm_p_include_list="${tm_p_include_list} $f"
12124 ;;
12125 * )
12126 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12127 tm_p_include_list="${tm_p_include_list} config/$f"
12128 esac
12129 done
12130
12131 xm_file_list=
12132 xm_include_list=
12133 for f in $xm_file; do
12134 case $f in
12135 ansidecl.h )
12136 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12137 xm_include_list="${xm_include_list} $f"
12138 ;;
12139 auto-host.h )
12140 xm_file_list="${xm_file_list} $f"
12141 xm_include_list="${xm_include_list} $f"
12142 ;;
12143 * )
12144 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12145 xm_include_list="${xm_include_list} config/$f"
12146 ;;
12147 esac
12148 done
12149
12150 host_xm_file_list=
12151 host_xm_include_list=
12152 for f in $host_xm_file; do
12153 case $f in
12154 ansidecl.h )
12155 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12156 host_xm_include_list="${host_xm_include_list} $f"
12157 ;;
12158 auto-host.h )
12159 host_xm_file_list="${host_xm_file_list} $f"
12160 host_xm_include_list="${host_xm_include_list} $f"
12161 ;;
12162 * )
12163 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12164 host_xm_include_list="${host_xm_include_list} config/$f"
12165 ;;
12166 esac
12167 done
12168
12169 build_xm_file_list=
12170 for f in $build_xm_file; do
12171 case $f in
12172 ansidecl.h )
12173 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12174 build_xm_include_list="${build_xm_include_list} $f"
12175 ;;
12176 auto-build.h | auto-host.h )
12177 build_xm_file_list="${build_xm_file_list} $f"
12178 build_xm_include_list="${build_xm_include_list} $f"
12179 ;;
12180 * )
12181 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12182 build_xm_include_list="${build_xm_include_list} config/$f"
12183 ;;
12184 esac
12185 done
12186
12187 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12188 # cross-compiler which does not use the native headers and libraries.
12189 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12190 CROSS=
12191 ALL=all.internal
12192 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12193
12194 if test "x$with_build_sysroot" != x; then
12195 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12196 else
12197 # This value is used, even on a native system, because
12198 # CROSS_SYSTEM_HEADER_DIR is just
12199 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12200 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12201 fi
12202
12203 if test x$host != x$target
12204 then
12205 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12206 ALL=all.cross
12207 SYSTEM_HEADER_DIR=$build_system_header_dir
12208 case $target in
12209 *-*-mingw*)
12210 if test "x$with_headers" = x; then
12211 with_headers=yes
12212 fi
12213 ;;
12214 *)
12215 ;;
12216 esac
12217 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12218 SYSTEM_HEADER_DIR=$build_system_header_dir
12219 fi
12220
12221 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
12222 if test "x$with_headers" != x && test "x$with_headers" != xyes; then
12223 target_header_dir=$with_headers
12224 elif test "x$with_sysroot" = x; then
12225 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12226 elif test "x$with_build_sysroot" != "x"; then
12227 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12228 elif test "x$with_sysroot" = xyes; then
12229 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12230 else
12231 target_header_dir="${with_sysroot}${native_system_header_dir}"
12232 fi
12233 else
12234 target_header_dir=${native_system_header_dir}
12235 fi
12236
12237 # If this is a cross-compiler that does not
12238 # have its own set of headers then define
12239 # inhibit_libc
12240
12241 # If this is using newlib, without having the headers available now,
12242 # then define inhibit_libc in LIBGCC2_CFLAGS.
12243 # This prevents libgcc2 from containing any code which requires libc
12244 # support.
12245 : ${inhibit_libc=false}
12246 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12247 test x$with_newlib = xyes ; } &&
12248 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12249 inhibit_libc=true
12250 fi
12251
12252
12253 # When building gcc with a cross-compiler, we need to adjust things so
12254 # that the generator programs are still built with the native compiler.
12255 # Also, we cannot run fixincludes.
12256
12257 # These are the normal (build=host) settings:
12258 CC_FOR_BUILD='$(CC)'
12259 CXX_FOR_BUILD='$(CXX)'
12260 BUILD_CFLAGS='$(ALL_CFLAGS)'
12261 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12262 BUILD_LDFLAGS='$(LDFLAGS)'
12263 STMP_FIXINC=stmp-fixinc
12264
12265 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12266 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12267
12268 # And these apply if build != host, or we are generating coverage data
12269 if test x$build != x$host || test "x$coverage_flags" != x
12270 then
12271 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12272 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12273 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12274
12275 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12276 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12277 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12278 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12279 fi
12280
12281
12282
12283 # Expand extra_headers to include complete path.
12284 # This substitutes for lots of t-* files.
12285 extra_headers_list=
12286 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12287 for file in ${extra_headers} ; do
12288 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12289 done
12290
12291 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12292 if test x"$use_gcc_tgmath" = xyes
12293 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12294 fi
12295
12296 # Define collect2 in Makefile.
12297 case $host_can_use_collect2 in
12298 no) collect2= ;;
12299 *) collect2='collect2$(exeext)' ;;
12300 esac
12301
12302
12303 # Add a definition of USE_COLLECT2 if system wants one.
12304 case $use_collect2 in
12305 no) use_collect2= ;;
12306 "") ;;
12307 *)
12308 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12309 xm_defines="${xm_defines} USE_COLLECT2"
12310 case $host_can_use_collect2 in
12311 no)
12312 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12313 ;;
12314 esac
12315 ;;
12316 esac
12317
12318
12319 cat >>confdefs.h <<_ACEOF
12320 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12321 _ACEOF
12322
12323
12324 # ---------------------------
12325 # Assembler & linker features
12326 # ---------------------------
12327
12328 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12329 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12330 # However when ld-new is first executed from the build tree, libtool will
12331 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12332 # to the build tree. While doing this we need to use the previous-stage
12333 # linker, or we have an infinite loop. The presence of a shell script as
12334 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12335 # the gcc/collect-ld script. So we need to know how libtool works, or
12336 # exec-tool will fail.
12337
12338
12339 case `pwd` in
12340 *\ * | *\ *)
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12342 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12343 esac
12344
12345
12346
12347 macro_version='2.2.7a'
12348 macro_revision='1.3134'
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362 ltmain="$ac_aux_dir/ltmain.sh"
12363
12364 # Backslashify metacharacters that are still active within
12365 # double-quoted strings.
12366 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12367
12368 # Same as above, but do not quote variable references.
12369 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12370
12371 # Sed substitution to delay expansion of an escaped shell variable in a
12372 # double_quote_subst'ed string.
12373 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12374
12375 # Sed substitution to delay expansion of an escaped single quote.
12376 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12377
12378 # Sed substitution to avoid accidental globbing in evaled expressions
12379 no_glob_subst='s/\*/\\\*/g'
12380
12381 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12382 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12383 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12384
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12386 $as_echo_n "checking how to print strings... " >&6; }
12387 # Test print first, because it will be a builtin if present.
12388 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12389 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12390 ECHO='print -r --'
12391 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12392 ECHO='printf %s\n'
12393 else
12394 # Use this function as a fallback that always works.
12395 func_fallback_echo ()
12396 {
12397 eval 'cat <<_LTECHO_EOF
12398 $1
12399 _LTECHO_EOF'
12400 }
12401 ECHO='func_fallback_echo'
12402 fi
12403
12404 # func_echo_all arg...
12405 # Invoke $ECHO with all args, space-separated.
12406 func_echo_all ()
12407 {
12408 $ECHO ""
12409 }
12410
12411 case "$ECHO" in
12412 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12413 $as_echo "printf" >&6; } ;;
12414 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12415 $as_echo "print -r" >&6; } ;;
12416 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12417 $as_echo "cat" >&6; } ;;
12418 esac
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12434 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12435 if test "${ac_cv_path_SED+set}" = set; then :
12436 $as_echo_n "(cached) " >&6
12437 else
12438 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12439 for ac_i in 1 2 3 4 5 6 7; do
12440 ac_script="$ac_script$as_nl$ac_script"
12441 done
12442 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12443 { ac_script=; unset ac_script;}
12444 if test -z "$SED"; then
12445 ac_path_SED_found=false
12446 # Loop through the user's path and test for each of PROGNAME-LIST
12447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12448 for as_dir in $PATH
12449 do
12450 IFS=$as_save_IFS
12451 test -z "$as_dir" && as_dir=.
12452 for ac_prog in sed gsed; do
12453 for ac_exec_ext in '' $ac_executable_extensions; do
12454 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12455 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12456 # Check for GNU ac_path_SED and select it if it is found.
12457 # Check for GNU $ac_path_SED
12458 case `"$ac_path_SED" --version 2>&1` in
12459 *GNU*)
12460 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12461 *)
12462 ac_count=0
12463 $as_echo_n 0123456789 >"conftest.in"
12464 while :
12465 do
12466 cat "conftest.in" "conftest.in" >"conftest.tmp"
12467 mv "conftest.tmp" "conftest.in"
12468 cp "conftest.in" "conftest.nl"
12469 $as_echo '' >> "conftest.nl"
12470 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12471 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12472 as_fn_arith $ac_count + 1 && ac_count=$as_val
12473 if test $ac_count -gt ${ac_path_SED_max-0}; then
12474 # Best one so far, save it but keep looking for a better one
12475 ac_cv_path_SED="$ac_path_SED"
12476 ac_path_SED_max=$ac_count
12477 fi
12478 # 10*(2^10) chars as input seems more than enough
12479 test $ac_count -gt 10 && break
12480 done
12481 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12482 esac
12483
12484 $ac_path_SED_found && break 3
12485 done
12486 done
12487 done
12488 IFS=$as_save_IFS
12489 if test -z "$ac_cv_path_SED"; then
12490 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12491 fi
12492 else
12493 ac_cv_path_SED=$SED
12494 fi
12495
12496 fi
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12498 $as_echo "$ac_cv_path_SED" >&6; }
12499 SED="$ac_cv_path_SED"
12500 rm -f conftest.sed
12501
12502 test -z "$SED" && SED=sed
12503 Xsed="$SED -e 1s/^X//"
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12516 $as_echo_n "checking for fgrep... " >&6; }
12517 if test "${ac_cv_path_FGREP+set}" = set; then :
12518 $as_echo_n "(cached) " >&6
12519 else
12520 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12521 then ac_cv_path_FGREP="$GREP -F"
12522 else
12523 if test -z "$FGREP"; then
12524 ac_path_FGREP_found=false
12525 # Loop through the user's path and test for each of PROGNAME-LIST
12526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12527 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12528 do
12529 IFS=$as_save_IFS
12530 test -z "$as_dir" && as_dir=.
12531 for ac_prog in fgrep; do
12532 for ac_exec_ext in '' $ac_executable_extensions; do
12533 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12534 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12535 # Check for GNU ac_path_FGREP and select it if it is found.
12536 # Check for GNU $ac_path_FGREP
12537 case `"$ac_path_FGREP" --version 2>&1` in
12538 *GNU*)
12539 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12540 *)
12541 ac_count=0
12542 $as_echo_n 0123456789 >"conftest.in"
12543 while :
12544 do
12545 cat "conftest.in" "conftest.in" >"conftest.tmp"
12546 mv "conftest.tmp" "conftest.in"
12547 cp "conftest.in" "conftest.nl"
12548 $as_echo 'FGREP' >> "conftest.nl"
12549 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12551 as_fn_arith $ac_count + 1 && ac_count=$as_val
12552 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12553 # Best one so far, save it but keep looking for a better one
12554 ac_cv_path_FGREP="$ac_path_FGREP"
12555 ac_path_FGREP_max=$ac_count
12556 fi
12557 # 10*(2^10) chars as input seems more than enough
12558 test $ac_count -gt 10 && break
12559 done
12560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12561 esac
12562
12563 $ac_path_FGREP_found && break 3
12564 done
12565 done
12566 done
12567 IFS=$as_save_IFS
12568 if test -z "$ac_cv_path_FGREP"; then
12569 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12570 fi
12571 else
12572 ac_cv_path_FGREP=$FGREP
12573 fi
12574
12575 fi
12576 fi
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12578 $as_echo "$ac_cv_path_FGREP" >&6; }
12579 FGREP="$ac_cv_path_FGREP"
12580
12581
12582 test -z "$GREP" && GREP=grep
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602 # Check whether --with-gnu-ld was given.
12603 if test "${with_gnu_ld+set}" = set; then :
12604 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12605 else
12606 with_gnu_ld=no
12607 fi
12608
12609 ac_prog=ld
12610 if test "$GCC" = yes; then
12611 # Check if gcc -print-prog-name=ld gives a path.
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12613 $as_echo_n "checking for ld used by $CC... " >&6; }
12614 case $host in
12615 *-*-mingw*)
12616 # gcc leaves a trailing carriage return which upsets mingw
12617 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12618 *)
12619 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12620 esac
12621 case $ac_prog in
12622 # Accept absolute paths.
12623 [\\/]* | ?:[\\/]*)
12624 re_direlt='/[^/][^/]*/\.\./'
12625 # Canonicalize the pathname of ld
12626 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12627 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12628 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12629 done
12630 test -z "$LD" && LD="$ac_prog"
12631 ;;
12632 "")
12633 # If it fails, then pretend we aren't using GCC.
12634 ac_prog=ld
12635 ;;
12636 *)
12637 # If it is relative, then search for the first ld in PATH.
12638 with_gnu_ld=unknown
12639 ;;
12640 esac
12641 elif test "$with_gnu_ld" = yes; then
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12643 $as_echo_n "checking for GNU ld... " >&6; }
12644 else
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12646 $as_echo_n "checking for non-GNU ld... " >&6; }
12647 fi
12648 if test "${lt_cv_path_LD+set}" = set; then :
12649 $as_echo_n "(cached) " >&6
12650 else
12651 if test -z "$LD"; then
12652 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12653 for ac_dir in $PATH; do
12654 IFS="$lt_save_ifs"
12655 test -z "$ac_dir" && ac_dir=.
12656 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12657 lt_cv_path_LD="$ac_dir/$ac_prog"
12658 # Check to see if the program is GNU ld. I'd rather use --version,
12659 # but apparently some variants of GNU ld only accept -v.
12660 # Break only if it was the GNU/non-GNU ld that we prefer.
12661 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12662 *GNU* | *'with BFD'*)
12663 test "$with_gnu_ld" != no && break
12664 ;;
12665 *)
12666 test "$with_gnu_ld" != yes && break
12667 ;;
12668 esac
12669 fi
12670 done
12671 IFS="$lt_save_ifs"
12672 else
12673 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12674 fi
12675 fi
12676
12677 LD="$lt_cv_path_LD"
12678 if test -n "$LD"; then
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12680 $as_echo "$LD" >&6; }
12681 else
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12683 $as_echo "no" >&6; }
12684 fi
12685 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12687 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12688 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12689 $as_echo_n "(cached) " >&6
12690 else
12691 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12692 case `$LD -v 2>&1 </dev/null` in
12693 *GNU* | *'with BFD'*)
12694 lt_cv_prog_gnu_ld=yes
12695 ;;
12696 *)
12697 lt_cv_prog_gnu_ld=no
12698 ;;
12699 esac
12700 fi
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12702 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12703 with_gnu_ld=$lt_cv_prog_gnu_ld
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12714 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12715 if test "${lt_cv_path_NM+set}" = set; then :
12716 $as_echo_n "(cached) " >&6
12717 else
12718 if test -n "$NM"; then
12719 # Let the user override the test.
12720 lt_cv_path_NM="$NM"
12721 else
12722 lt_nm_to_check="${ac_tool_prefix}nm"
12723 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12724 lt_nm_to_check="$lt_nm_to_check nm"
12725 fi
12726 for lt_tmp_nm in $lt_nm_to_check; do
12727 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12728 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12729 IFS="$lt_save_ifs"
12730 test -z "$ac_dir" && ac_dir=.
12731 tmp_nm="$ac_dir/$lt_tmp_nm"
12732 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12733 # Check to see if the nm accepts a BSD-compat flag.
12734 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12735 # nm: unknown option "B" ignored
12736 # Tru64's nm complains that /dev/null is an invalid object file
12737 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12738 */dev/null* | *'Invalid file or object type'*)
12739 lt_cv_path_NM="$tmp_nm -B"
12740 break
12741 ;;
12742 *)
12743 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12744 */dev/null*)
12745 lt_cv_path_NM="$tmp_nm -p"
12746 break
12747 ;;
12748 *)
12749 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12750 continue # so that we can try to find one that supports BSD flags
12751 ;;
12752 esac
12753 ;;
12754 esac
12755 fi
12756 done
12757 IFS="$lt_save_ifs"
12758 done
12759 : ${lt_cv_path_NM=no}
12760 fi
12761 fi
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12763 $as_echo "$lt_cv_path_NM" >&6; }
12764 if test "$lt_cv_path_NM" != "no"; then
12765 NM="$lt_cv_path_NM"
12766 else
12767 # Didn't find any BSD compatible name lister, look for dumpbin.
12768 if test -n "$DUMPBIN"; then :
12769 # Let the user override the test.
12770 else
12771 if test -n "$ac_tool_prefix"; then
12772 for ac_prog in dumpbin "link -dump"
12773 do
12774 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12775 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12777 $as_echo_n "checking for $ac_word... " >&6; }
12778 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12779 $as_echo_n "(cached) " >&6
12780 else
12781 if test -n "$DUMPBIN"; then
12782 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12783 else
12784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785 for as_dir in $PATH
12786 do
12787 IFS=$as_save_IFS
12788 test -z "$as_dir" && as_dir=.
12789 for ac_exec_ext in '' $ac_executable_extensions; do
12790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12791 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12793 break 2
12794 fi
12795 done
12796 done
12797 IFS=$as_save_IFS
12798
12799 fi
12800 fi
12801 DUMPBIN=$ac_cv_prog_DUMPBIN
12802 if test -n "$DUMPBIN"; then
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12804 $as_echo "$DUMPBIN" >&6; }
12805 else
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12807 $as_echo "no" >&6; }
12808 fi
12809
12810
12811 test -n "$DUMPBIN" && break
12812 done
12813 fi
12814 if test -z "$DUMPBIN"; then
12815 ac_ct_DUMPBIN=$DUMPBIN
12816 for ac_prog in dumpbin "link -dump"
12817 do
12818 # Extract the first word of "$ac_prog", so it can be a program name with args.
12819 set dummy $ac_prog; ac_word=$2
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12821 $as_echo_n "checking for $ac_word... " >&6; }
12822 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12823 $as_echo_n "(cached) " >&6
12824 else
12825 if test -n "$ac_ct_DUMPBIN"; then
12826 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12827 else
12828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12829 for as_dir in $PATH
12830 do
12831 IFS=$as_save_IFS
12832 test -z "$as_dir" && as_dir=.
12833 for ac_exec_ext in '' $ac_executable_extensions; do
12834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12835 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12837 break 2
12838 fi
12839 done
12840 done
12841 IFS=$as_save_IFS
12842
12843 fi
12844 fi
12845 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12846 if test -n "$ac_ct_DUMPBIN"; then
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12848 $as_echo "$ac_ct_DUMPBIN" >&6; }
12849 else
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12851 $as_echo "no" >&6; }
12852 fi
12853
12854
12855 test -n "$ac_ct_DUMPBIN" && break
12856 done
12857
12858 if test "x$ac_ct_DUMPBIN" = x; then
12859 DUMPBIN=":"
12860 else
12861 case $cross_compiling:$ac_tool_warned in
12862 yes:)
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12865 ac_tool_warned=yes ;;
12866 esac
12867 DUMPBIN=$ac_ct_DUMPBIN
12868 fi
12869 fi
12870
12871 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12872 *COFF*)
12873 DUMPBIN="$DUMPBIN -symbols"
12874 ;;
12875 *)
12876 DUMPBIN=:
12877 ;;
12878 esac
12879 fi
12880
12881 if test "$DUMPBIN" != ":"; then
12882 NM="$DUMPBIN"
12883 fi
12884 fi
12885 test -z "$NM" && NM=nm
12886
12887
12888
12889
12890
12891
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12893 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12894 if test "${lt_cv_nm_interface+set}" = set; then :
12895 $as_echo_n "(cached) " >&6
12896 else
12897 lt_cv_nm_interface="BSD nm"
12898 echo "int some_variable = 0;" > conftest.$ac_ext
12899 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12900 (eval "$ac_compile" 2>conftest.err)
12901 cat conftest.err >&5
12902 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12903 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12904 cat conftest.err >&5
12905 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12906 cat conftest.out >&5
12907 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12908 lt_cv_nm_interface="MS dumpbin"
12909 fi
12910 rm -f conftest*
12911 fi
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12913 $as_echo "$lt_cv_nm_interface" >&6; }
12914
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12916 $as_echo_n "checking whether ln -s works... " >&6; }
12917 LN_S=$as_ln_s
12918 if test "$LN_S" = "ln -s"; then
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12920 $as_echo "yes" >&6; }
12921 else
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12923 $as_echo "no, using $LN_S" >&6; }
12924 fi
12925
12926 # find the maximum length of command line arguments
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12928 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12929 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12930 $as_echo_n "(cached) " >&6
12931 else
12932 i=0
12933 teststring="ABCD"
12934
12935 case $build_os in
12936 msdosdjgpp*)
12937 # On DJGPP, this test can blow up pretty badly due to problems in libc
12938 # (any single argument exceeding 2000 bytes causes a buffer overrun
12939 # during glob expansion). Even if it were fixed, the result of this
12940 # check would be larger than it should be.
12941 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12942 ;;
12943
12944 gnu*)
12945 # Under GNU Hurd, this test is not required because there is
12946 # no limit to the length of command line arguments.
12947 # Libtool will interpret -1 as no limit whatsoever
12948 lt_cv_sys_max_cmd_len=-1;
12949 ;;
12950
12951 cygwin* | mingw* | cegcc*)
12952 # On Win9x/ME, this test blows up -- it succeeds, but takes
12953 # about 5 minutes as the teststring grows exponentially.
12954 # Worse, since 9x/ME are not pre-emptively multitasking,
12955 # you end up with a "frozen" computer, even though with patience
12956 # the test eventually succeeds (with a max line length of 256k).
12957 # Instead, let's just punt: use the minimum linelength reported by
12958 # all of the supported platforms: 8192 (on NT/2K/XP).
12959 lt_cv_sys_max_cmd_len=8192;
12960 ;;
12961
12962 mint*)
12963 # On MiNT this can take a long time and run out of memory.
12964 lt_cv_sys_max_cmd_len=8192;
12965 ;;
12966
12967 amigaos*)
12968 # On AmigaOS with pdksh, this test takes hours, literally.
12969 # So we just punt and use a minimum line length of 8192.
12970 lt_cv_sys_max_cmd_len=8192;
12971 ;;
12972
12973 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12974 # This has been around since 386BSD, at least. Likely further.
12975 if test -x /sbin/sysctl; then
12976 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12977 elif test -x /usr/sbin/sysctl; then
12978 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12979 else
12980 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12981 fi
12982 # And add a safety zone
12983 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12984 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12985 ;;
12986
12987 interix*)
12988 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12989 lt_cv_sys_max_cmd_len=196608
12990 ;;
12991
12992 osf*)
12993 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12994 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12995 # nice to cause kernel panics so lets avoid the loop below.
12996 # First set a reasonable default.
12997 lt_cv_sys_max_cmd_len=16384
12998 #
12999 if test -x /sbin/sysconfig; then
13000 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13001 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13002 esac
13003 fi
13004 ;;
13005 sco3.2v5*)
13006 lt_cv_sys_max_cmd_len=102400
13007 ;;
13008 sysv5* | sco5v6* | sysv4.2uw2*)
13009 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13010 if test -n "$kargmax"; then
13011 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13012 else
13013 lt_cv_sys_max_cmd_len=32768
13014 fi
13015 ;;
13016 *)
13017 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13018 if test -n "$lt_cv_sys_max_cmd_len"; then
13019 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13020 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13021 else
13022 # Make teststring a little bigger before we do anything with it.
13023 # a 1K string should be a reasonable start.
13024 for i in 1 2 3 4 5 6 7 8 ; do
13025 teststring=$teststring$teststring
13026 done
13027 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13028 # If test is not a shell built-in, we'll probably end up computing a
13029 # maximum length that is only half of the actual maximum length, but
13030 # we can't tell.
13031 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13032 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13033 test $i != 17 # 1/2 MB should be enough
13034 do
13035 i=`expr $i + 1`
13036 teststring=$teststring$teststring
13037 done
13038 # Only check the string length outside the loop.
13039 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13040 teststring=
13041 # Add a significant safety factor because C++ compilers can tack on
13042 # massive amounts of additional arguments before passing them to the
13043 # linker. It appears as though 1/2 is a usable value.
13044 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13045 fi
13046 ;;
13047 esac
13048
13049 fi
13050
13051 if test -n $lt_cv_sys_max_cmd_len ; then
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13053 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13054 else
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13056 $as_echo "none" >&6; }
13057 fi
13058 max_cmd_len=$lt_cv_sys_max_cmd_len
13059
13060
13061
13062
13063
13064
13065 : ${CP="cp -f"}
13066 : ${MV="mv -f"}
13067 : ${RM="rm -f"}
13068
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13070 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13071 # Try some XSI features
13072 xsi_shell=no
13073 ( _lt_dummy="a/b/c"
13074 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13075 = c,a/b,, \
13076 && eval 'test $(( 1 + 1 )) -eq 2 \
13077 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13078 && xsi_shell=yes
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13080 $as_echo "$xsi_shell" >&6; }
13081
13082
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13084 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13085 lt_shell_append=no
13086 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13087 >/dev/null 2>&1 \
13088 && lt_shell_append=yes
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13090 $as_echo "$lt_shell_append" >&6; }
13091
13092
13093 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13094 lt_unset=unset
13095 else
13096 lt_unset=false
13097 fi
13098
13099
13100
13101
13102
13103 # test EBCDIC or ASCII
13104 case `echo X|tr X '\101'` in
13105 A) # ASCII based system
13106 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13107 lt_SP2NL='tr \040 \012'
13108 lt_NL2SP='tr \015\012 \040\040'
13109 ;;
13110 *) # EBCDIC based system
13111 lt_SP2NL='tr \100 \n'
13112 lt_NL2SP='tr \r\n \100\100'
13113 ;;
13114 esac
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13125 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13126 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13127 $as_echo_n "(cached) " >&6
13128 else
13129 lt_cv_ld_reload_flag='-r'
13130 fi
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13132 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13133 reload_flag=$lt_cv_ld_reload_flag
13134 case $reload_flag in
13135 "" | " "*) ;;
13136 *) reload_flag=" $reload_flag" ;;
13137 esac
13138 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13139 case $host_os in
13140 darwin*)
13141 if test "$GCC" = yes; then
13142 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13143 else
13144 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13145 fi
13146 ;;
13147 esac
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157 if test -n "$ac_tool_prefix"; then
13158 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13159 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13161 $as_echo_n "checking for $ac_word... " >&6; }
13162 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13163 $as_echo_n "(cached) " >&6
13164 else
13165 if test -n "$OBJDUMP"; then
13166 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13167 else
13168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13169 for as_dir in $PATH
13170 do
13171 IFS=$as_save_IFS
13172 test -z "$as_dir" && as_dir=.
13173 for ac_exec_ext in '' $ac_executable_extensions; do
13174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13175 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13177 break 2
13178 fi
13179 done
13180 done
13181 IFS=$as_save_IFS
13182
13183 fi
13184 fi
13185 OBJDUMP=$ac_cv_prog_OBJDUMP
13186 if test -n "$OBJDUMP"; then
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13188 $as_echo "$OBJDUMP" >&6; }
13189 else
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13191 $as_echo "no" >&6; }
13192 fi
13193
13194
13195 fi
13196 if test -z "$ac_cv_prog_OBJDUMP"; then
13197 ac_ct_OBJDUMP=$OBJDUMP
13198 # Extract the first word of "objdump", so it can be a program name with args.
13199 set dummy objdump; ac_word=$2
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13201 $as_echo_n "checking for $ac_word... " >&6; }
13202 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13203 $as_echo_n "(cached) " >&6
13204 else
13205 if test -n "$ac_ct_OBJDUMP"; then
13206 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13207 else
13208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13209 for as_dir in $PATH
13210 do
13211 IFS=$as_save_IFS
13212 test -z "$as_dir" && as_dir=.
13213 for ac_exec_ext in '' $ac_executable_extensions; do
13214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13215 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13217 break 2
13218 fi
13219 done
13220 done
13221 IFS=$as_save_IFS
13222
13223 fi
13224 fi
13225 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13226 if test -n "$ac_ct_OBJDUMP"; then
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13228 $as_echo "$ac_ct_OBJDUMP" >&6; }
13229 else
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13231 $as_echo "no" >&6; }
13232 fi
13233
13234 if test "x$ac_ct_OBJDUMP" = x; then
13235 OBJDUMP="false"
13236 else
13237 case $cross_compiling:$ac_tool_warned in
13238 yes:)
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13241 ac_tool_warned=yes ;;
13242 esac
13243 OBJDUMP=$ac_ct_OBJDUMP
13244 fi
13245 else
13246 OBJDUMP="$ac_cv_prog_OBJDUMP"
13247 fi
13248
13249 test -z "$OBJDUMP" && OBJDUMP=objdump
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13260 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13261 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13262 $as_echo_n "(cached) " >&6
13263 else
13264 lt_cv_file_magic_cmd='$MAGIC_CMD'
13265 lt_cv_file_magic_test_file=
13266 lt_cv_deplibs_check_method='unknown'
13267 # Need to set the preceding variable on all platforms that support
13268 # interlibrary dependencies.
13269 # 'none' -- dependencies not supported.
13270 # `unknown' -- same as none, but documents that we really don't know.
13271 # 'pass_all' -- all dependencies passed with no checks.
13272 # 'test_compile' -- check by making test program.
13273 # 'file_magic [[regex]]' -- check by looking for files in library path
13274 # which responds to the $file_magic_cmd with a given extended regex.
13275 # If you have `file' or equivalent on your system and you're not sure
13276 # whether `pass_all' will *always* work, you probably want this one.
13277
13278 case $host_os in
13279 aix[4-9]*)
13280 lt_cv_deplibs_check_method=pass_all
13281 ;;
13282
13283 beos*)
13284 lt_cv_deplibs_check_method=pass_all
13285 ;;
13286
13287 bsdi[45]*)
13288 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13289 lt_cv_file_magic_cmd='/usr/bin/file -L'
13290 lt_cv_file_magic_test_file=/shlib/libc.so
13291 ;;
13292
13293 cygwin*)
13294 # func_win32_libid is a shell function defined in ltmain.sh
13295 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13296 lt_cv_file_magic_cmd='func_win32_libid'
13297 ;;
13298
13299 mingw* | pw32*)
13300 # Base MSYS/MinGW do not provide the 'file' command needed by
13301 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13302 # unless we find 'file', for example because we are cross-compiling.
13303 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13304 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13305 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13306 lt_cv_file_magic_cmd='func_win32_libid'
13307 else
13308 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13309 lt_cv_file_magic_cmd='$OBJDUMP -f'
13310 fi
13311 ;;
13312
13313 cegcc*)
13314 # use the weaker test based on 'objdump'. See mingw*.
13315 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13316 lt_cv_file_magic_cmd='$OBJDUMP -f'
13317 ;;
13318
13319 darwin* | rhapsody*)
13320 lt_cv_deplibs_check_method=pass_all
13321 ;;
13322
13323 freebsd* | dragonfly*)
13324 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13325 case $host_cpu in
13326 i*86 )
13327 # Not sure whether the presence of OpenBSD here was a mistake.
13328 # Let's accept both of them until this is cleared up.
13329 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13330 lt_cv_file_magic_cmd=/usr/bin/file
13331 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13332 ;;
13333 esac
13334 else
13335 lt_cv_deplibs_check_method=pass_all
13336 fi
13337 ;;
13338
13339 gnu*)
13340 lt_cv_deplibs_check_method=pass_all
13341 ;;
13342
13343 haiku*)
13344 lt_cv_deplibs_check_method=pass_all
13345 ;;
13346
13347 hpux10.20* | hpux11*)
13348 lt_cv_file_magic_cmd=/usr/bin/file
13349 case $host_cpu in
13350 ia64*)
13351 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13352 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13353 ;;
13354 hppa*64*)
13355 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]'
13356 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13357 ;;
13358 *)
13359 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13360 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13361 ;;
13362 esac
13363 ;;
13364
13365 interix[3-9]*)
13366 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13367 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13368 ;;
13369
13370 irix5* | irix6* | nonstopux*)
13371 case $LD in
13372 *-32|*"-32 ") libmagic=32-bit;;
13373 *-n32|*"-n32 ") libmagic=N32;;
13374 *-64|*"-64 ") libmagic=64-bit;;
13375 *) libmagic=never-match;;
13376 esac
13377 lt_cv_deplibs_check_method=pass_all
13378 ;;
13379
13380 # This must be Linux ELF.
13381 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13382 lt_cv_deplibs_check_method=pass_all
13383 ;;
13384
13385 netbsd*)
13386 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13387 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13388 else
13389 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13390 fi
13391 ;;
13392
13393 newos6*)
13394 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13395 lt_cv_file_magic_cmd=/usr/bin/file
13396 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13397 ;;
13398
13399 *nto* | *qnx*)
13400 lt_cv_deplibs_check_method=pass_all
13401 ;;
13402
13403 openbsd*)
13404 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13405 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13406 else
13407 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13408 fi
13409 ;;
13410
13411 osf3* | osf4* | osf5*)
13412 lt_cv_deplibs_check_method=pass_all
13413 ;;
13414
13415 rdos*)
13416 lt_cv_deplibs_check_method=pass_all
13417 ;;
13418
13419 solaris*)
13420 lt_cv_deplibs_check_method=pass_all
13421 ;;
13422
13423 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13424 lt_cv_deplibs_check_method=pass_all
13425 ;;
13426
13427 sysv4 | sysv4.3*)
13428 case $host_vendor in
13429 motorola)
13430 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]'
13431 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13432 ;;
13433 ncr)
13434 lt_cv_deplibs_check_method=pass_all
13435 ;;
13436 sequent)
13437 lt_cv_file_magic_cmd='/bin/file'
13438 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13439 ;;
13440 sni)
13441 lt_cv_file_magic_cmd='/bin/file'
13442 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13443 lt_cv_file_magic_test_file=/lib/libc.so
13444 ;;
13445 siemens)
13446 lt_cv_deplibs_check_method=pass_all
13447 ;;
13448 pc)
13449 lt_cv_deplibs_check_method=pass_all
13450 ;;
13451 esac
13452 ;;
13453
13454 tpf*)
13455 lt_cv_deplibs_check_method=pass_all
13456 ;;
13457 esac
13458
13459 fi
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13461 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13462 file_magic_cmd=$lt_cv_file_magic_cmd
13463 deplibs_check_method=$lt_cv_deplibs_check_method
13464 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477 if test -n "$ac_tool_prefix"; then
13478 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13479 set dummy ${ac_tool_prefix}ar; ac_word=$2
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13481 $as_echo_n "checking for $ac_word... " >&6; }
13482 if test "${ac_cv_prog_AR+set}" = set; then :
13483 $as_echo_n "(cached) " >&6
13484 else
13485 if test -n "$AR"; then
13486 ac_cv_prog_AR="$AR" # Let the user override the test.
13487 else
13488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13489 for as_dir in $PATH
13490 do
13491 IFS=$as_save_IFS
13492 test -z "$as_dir" && as_dir=.
13493 for ac_exec_ext in '' $ac_executable_extensions; do
13494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13495 ac_cv_prog_AR="${ac_tool_prefix}ar"
13496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13497 break 2
13498 fi
13499 done
13500 done
13501 IFS=$as_save_IFS
13502
13503 fi
13504 fi
13505 AR=$ac_cv_prog_AR
13506 if test -n "$AR"; then
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13508 $as_echo "$AR" >&6; }
13509 else
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13511 $as_echo "no" >&6; }
13512 fi
13513
13514
13515 fi
13516 if test -z "$ac_cv_prog_AR"; then
13517 ac_ct_AR=$AR
13518 # Extract the first word of "ar", so it can be a program name with args.
13519 set dummy ar; ac_word=$2
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13521 $as_echo_n "checking for $ac_word... " >&6; }
13522 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13523 $as_echo_n "(cached) " >&6
13524 else
13525 if test -n "$ac_ct_AR"; then
13526 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13527 else
13528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13529 for as_dir in $PATH
13530 do
13531 IFS=$as_save_IFS
13532 test -z "$as_dir" && as_dir=.
13533 for ac_exec_ext in '' $ac_executable_extensions; do
13534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13535 ac_cv_prog_ac_ct_AR="ar"
13536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13537 break 2
13538 fi
13539 done
13540 done
13541 IFS=$as_save_IFS
13542
13543 fi
13544 fi
13545 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13546 if test -n "$ac_ct_AR"; then
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13548 $as_echo "$ac_ct_AR" >&6; }
13549 else
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13551 $as_echo "no" >&6; }
13552 fi
13553
13554 if test "x$ac_ct_AR" = x; then
13555 AR="false"
13556 else
13557 case $cross_compiling:$ac_tool_warned in
13558 yes:)
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13561 ac_tool_warned=yes ;;
13562 esac
13563 AR=$ac_ct_AR
13564 fi
13565 else
13566 AR="$ac_cv_prog_AR"
13567 fi
13568
13569 test -z "$AR" && AR=ar
13570 test -z "$AR_FLAGS" && AR_FLAGS=cru
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582 if test -n "$ac_tool_prefix"; then
13583 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13584 set dummy ${ac_tool_prefix}strip; ac_word=$2
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13586 $as_echo_n "checking for $ac_word... " >&6; }
13587 if test "${ac_cv_prog_STRIP+set}" = set; then :
13588 $as_echo_n "(cached) " >&6
13589 else
13590 if test -n "$STRIP"; then
13591 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13592 else
13593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13594 for as_dir in $PATH
13595 do
13596 IFS=$as_save_IFS
13597 test -z "$as_dir" && as_dir=.
13598 for ac_exec_ext in '' $ac_executable_extensions; do
13599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13600 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13602 break 2
13603 fi
13604 done
13605 done
13606 IFS=$as_save_IFS
13607
13608 fi
13609 fi
13610 STRIP=$ac_cv_prog_STRIP
13611 if test -n "$STRIP"; then
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13613 $as_echo "$STRIP" >&6; }
13614 else
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13616 $as_echo "no" >&6; }
13617 fi
13618
13619
13620 fi
13621 if test -z "$ac_cv_prog_STRIP"; then
13622 ac_ct_STRIP=$STRIP
13623 # Extract the first word of "strip", so it can be a program name with args.
13624 set dummy strip; ac_word=$2
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13626 $as_echo_n "checking for $ac_word... " >&6; }
13627 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13628 $as_echo_n "(cached) " >&6
13629 else
13630 if test -n "$ac_ct_STRIP"; then
13631 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13632 else
13633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13634 for as_dir in $PATH
13635 do
13636 IFS=$as_save_IFS
13637 test -z "$as_dir" && as_dir=.
13638 for ac_exec_ext in '' $ac_executable_extensions; do
13639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13640 ac_cv_prog_ac_ct_STRIP="strip"
13641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13642 break 2
13643 fi
13644 done
13645 done
13646 IFS=$as_save_IFS
13647
13648 fi
13649 fi
13650 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13651 if test -n "$ac_ct_STRIP"; then
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13653 $as_echo "$ac_ct_STRIP" >&6; }
13654 else
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13656 $as_echo "no" >&6; }
13657 fi
13658
13659 if test "x$ac_ct_STRIP" = x; then
13660 STRIP=":"
13661 else
13662 case $cross_compiling:$ac_tool_warned in
13663 yes:)
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13666 ac_tool_warned=yes ;;
13667 esac
13668 STRIP=$ac_ct_STRIP
13669 fi
13670 else
13671 STRIP="$ac_cv_prog_STRIP"
13672 fi
13673
13674 test -z "$STRIP" && STRIP=:
13675
13676
13677
13678
13679
13680
13681 if test -n "$ac_tool_prefix"; then
13682 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13683 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13685 $as_echo_n "checking for $ac_word... " >&6; }
13686 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13687 $as_echo_n "(cached) " >&6
13688 else
13689 if test -n "$RANLIB"; then
13690 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13691 else
13692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13693 for as_dir in $PATH
13694 do
13695 IFS=$as_save_IFS
13696 test -z "$as_dir" && as_dir=.
13697 for ac_exec_ext in '' $ac_executable_extensions; do
13698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13699 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13701 break 2
13702 fi
13703 done
13704 done
13705 IFS=$as_save_IFS
13706
13707 fi
13708 fi
13709 RANLIB=$ac_cv_prog_RANLIB
13710 if test -n "$RANLIB"; then
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13712 $as_echo "$RANLIB" >&6; }
13713 else
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13715 $as_echo "no" >&6; }
13716 fi
13717
13718
13719 fi
13720 if test -z "$ac_cv_prog_RANLIB"; then
13721 ac_ct_RANLIB=$RANLIB
13722 # Extract the first word of "ranlib", so it can be a program name with args.
13723 set dummy ranlib; ac_word=$2
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13725 $as_echo_n "checking for $ac_word... " >&6; }
13726 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13727 $as_echo_n "(cached) " >&6
13728 else
13729 if test -n "$ac_ct_RANLIB"; then
13730 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13731 else
13732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13733 for as_dir in $PATH
13734 do
13735 IFS=$as_save_IFS
13736 test -z "$as_dir" && as_dir=.
13737 for ac_exec_ext in '' $ac_executable_extensions; do
13738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13739 ac_cv_prog_ac_ct_RANLIB="ranlib"
13740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13741 break 2
13742 fi
13743 done
13744 done
13745 IFS=$as_save_IFS
13746
13747 fi
13748 fi
13749 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13750 if test -n "$ac_ct_RANLIB"; then
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13752 $as_echo "$ac_ct_RANLIB" >&6; }
13753 else
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13755 $as_echo "no" >&6; }
13756 fi
13757
13758 if test "x$ac_ct_RANLIB" = x; then
13759 RANLIB=":"
13760 else
13761 case $cross_compiling:$ac_tool_warned in
13762 yes:)
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13765 ac_tool_warned=yes ;;
13766 esac
13767 RANLIB=$ac_ct_RANLIB
13768 fi
13769 else
13770 RANLIB="$ac_cv_prog_RANLIB"
13771 fi
13772
13773 test -z "$RANLIB" && RANLIB=:
13774
13775
13776
13777
13778
13779
13780 # Determine commands to create old-style static archives.
13781 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13782 old_postinstall_cmds='chmod 644 $oldlib'
13783 old_postuninstall_cmds=
13784
13785 if test -n "$RANLIB"; then
13786 case $host_os in
13787 openbsd*)
13788 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13789 ;;
13790 *)
13791 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13792 ;;
13793 esac
13794 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13795 fi
13796
13797 case $host_os in
13798 darwin*)
13799 lock_old_archive_extraction=yes ;;
13800 *)
13801 lock_old_archive_extraction=no ;;
13802 esac
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842 # If no C compiler was specified, use CC.
13843 LTCC=${LTCC-"$CC"}
13844
13845 # If no C compiler flags were specified, use CFLAGS.
13846 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13847
13848 # Allow CC to be a program name with arguments.
13849 compiler=$CC
13850
13851
13852 # Check for command to grab the raw symbol name followed by C symbol from nm.
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13854 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13855 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13856 $as_echo_n "(cached) " >&6
13857 else
13858
13859 # These are sane defaults that work on at least a few old systems.
13860 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13861
13862 # Character class describing NM global symbol codes.
13863 symcode='[BCDEGRST]'
13864
13865 # Regexp to match symbols that can be accessed directly from C.
13866 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13867
13868 # Define system-specific variables.
13869 case $host_os in
13870 aix*)
13871 symcode='[BCDT]'
13872 ;;
13873 cygwin* | mingw* | pw32* | cegcc*)
13874 symcode='[ABCDGISTW]'
13875 ;;
13876 hpux*)
13877 if test "$host_cpu" = ia64; then
13878 symcode='[ABCDEGRST]'
13879 fi
13880 ;;
13881 irix* | nonstopux*)
13882 symcode='[BCDEGRST]'
13883 ;;
13884 osf*)
13885 symcode='[BCDEGQRST]'
13886 ;;
13887 solaris*)
13888 symcode='[BDRT]'
13889 ;;
13890 sco3.2v5*)
13891 symcode='[DT]'
13892 ;;
13893 sysv4.2uw2*)
13894 symcode='[DT]'
13895 ;;
13896 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13897 symcode='[ABDT]'
13898 ;;
13899 sysv4)
13900 symcode='[DFNSTU]'
13901 ;;
13902 esac
13903
13904 # If we're using GNU nm, then use its standard symbol codes.
13905 case `$NM -V 2>&1` in
13906 *GNU* | *'with BFD'*)
13907 symcode='[ABCDGIRSTW]' ;;
13908 esac
13909
13910 # Transform an extracted symbol line into a proper C declaration.
13911 # Some systems (esp. on ia64) link data and code symbols differently,
13912 # so use this general approach.
13913 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13914
13915 # Transform an extracted symbol line into symbol name and symbol address
13916 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13917 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'"
13918
13919 # Handle CRLF in mingw tool chain
13920 opt_cr=
13921 case $build_os in
13922 mingw*)
13923 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13924 ;;
13925 esac
13926
13927 # Try without a prefix underscore, then with it.
13928 for ac_symprfx in "" "_"; do
13929
13930 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13931 symxfrm="\\1 $ac_symprfx\\2 \\2"
13932
13933 # Write the raw and C identifiers.
13934 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13935 # Fake it for dumpbin and say T for any non-static function
13936 # and D for any global variable.
13937 # Also find C++ and __fastcall symbols from MSVC++,
13938 # which start with @ or ?.
13939 lt_cv_sys_global_symbol_pipe="$AWK '"\
13940 " {last_section=section; section=\$ 3};"\
13941 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13942 " \$ 0!~/External *\|/{next};"\
13943 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13944 " {if(hide[section]) next};"\
13945 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13946 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13947 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13948 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13949 " ' prfx=^$ac_symprfx"
13950 else
13951 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13952 fi
13953
13954 # Check to see that the pipe works correctly.
13955 pipe_works=no
13956
13957 rm -f conftest*
13958 cat > conftest.$ac_ext <<_LT_EOF
13959 #ifdef __cplusplus
13960 extern "C" {
13961 #endif
13962 char nm_test_var;
13963 void nm_test_func(void);
13964 void nm_test_func(void){}
13965 #ifdef __cplusplus
13966 }
13967 #endif
13968 int main(){nm_test_var='a';nm_test_func();return(0);}
13969 _LT_EOF
13970
13971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13972 (eval $ac_compile) 2>&5
13973 ac_status=$?
13974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13975 test $ac_status = 0; }; then
13976 # Now try to grab the symbols.
13977 nlist=conftest.nm
13978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13979 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13980 ac_status=$?
13981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13982 test $ac_status = 0; } && test -s "$nlist"; then
13983 # Try sorting and uniquifying the output.
13984 if sort "$nlist" | uniq > "$nlist"T; then
13985 mv -f "$nlist"T "$nlist"
13986 else
13987 rm -f "$nlist"T
13988 fi
13989
13990 # Make sure that we snagged all the symbols we need.
13991 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13992 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13993 cat <<_LT_EOF > conftest.$ac_ext
13994 #ifdef __cplusplus
13995 extern "C" {
13996 #endif
13997
13998 _LT_EOF
13999 # Now generate the symbol file.
14000 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14001
14002 cat <<_LT_EOF >> conftest.$ac_ext
14003
14004 /* The mapping between symbol names and symbols. */
14005 const struct {
14006 const char *name;
14007 void *address;
14008 }
14009 lt__PROGRAM__LTX_preloaded_symbols[] =
14010 {
14011 { "@PROGRAM@", (void *) 0 },
14012 _LT_EOF
14013 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14014 cat <<\_LT_EOF >> conftest.$ac_ext
14015 {0, (void *) 0}
14016 };
14017
14018 /* This works around a problem in FreeBSD linker */
14019 #ifdef FREEBSD_WORKAROUND
14020 static const void *lt_preloaded_setup() {
14021 return lt__PROGRAM__LTX_preloaded_symbols;
14022 }
14023 #endif
14024
14025 #ifdef __cplusplus
14026 }
14027 #endif
14028 _LT_EOF
14029 # Now try linking the two files.
14030 mv conftest.$ac_objext conftstm.$ac_objext
14031 lt_save_LIBS="$LIBS"
14032 lt_save_CFLAGS="$CFLAGS"
14033 LIBS="conftstm.$ac_objext"
14034 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14036 (eval $ac_link) 2>&5
14037 ac_status=$?
14038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14039 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14040 pipe_works=yes
14041 fi
14042 LIBS="$lt_save_LIBS"
14043 CFLAGS="$lt_save_CFLAGS"
14044 else
14045 echo "cannot find nm_test_func in $nlist" >&5
14046 fi
14047 else
14048 echo "cannot find nm_test_var in $nlist" >&5
14049 fi
14050 else
14051 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14052 fi
14053 else
14054 echo "$progname: failed program was:" >&5
14055 cat conftest.$ac_ext >&5
14056 fi
14057 rm -rf conftest* conftst*
14058
14059 # Do not use the global_symbol_pipe unless it works.
14060 if test "$pipe_works" = yes; then
14061 break
14062 else
14063 lt_cv_sys_global_symbol_pipe=
14064 fi
14065 done
14066
14067 fi
14068
14069 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14070 lt_cv_sys_global_symbol_to_cdecl=
14071 fi
14072 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14074 $as_echo "failed" >&6; }
14075 else
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14077 $as_echo "ok" >&6; }
14078 fi
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101 # Check whether --enable-libtool-lock was given.
14102 if test "${enable_libtool_lock+set}" = set; then :
14103 enableval=$enable_libtool_lock;
14104 fi
14105
14106 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14107
14108 # Some flags need to be propagated to the compiler or linker for good
14109 # libtool support.
14110 case $host in
14111 ia64-*-hpux*)
14112 # Find out which ABI we are using.
14113 echo 'int i;' > conftest.$ac_ext
14114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14115 (eval $ac_compile) 2>&5
14116 ac_status=$?
14117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14118 test $ac_status = 0; }; then
14119 case `/usr/bin/file conftest.$ac_objext` in
14120 *ELF-32*)
14121 HPUX_IA64_MODE="32"
14122 ;;
14123 *ELF-64*)
14124 HPUX_IA64_MODE="64"
14125 ;;
14126 esac
14127 fi
14128 rm -rf conftest*
14129 ;;
14130 *-*-irix6*)
14131 # Find out which ABI we are using.
14132 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14134 (eval $ac_compile) 2>&5
14135 ac_status=$?
14136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14137 test $ac_status = 0; }; then
14138 if test "$lt_cv_prog_gnu_ld" = yes; then
14139 case `/usr/bin/file conftest.$ac_objext` in
14140 *32-bit*)
14141 LD="${LD-ld} -melf32bsmip"
14142 ;;
14143 *N32*)
14144 LD="${LD-ld} -melf32bmipn32"
14145 ;;
14146 *64-bit*)
14147 LD="${LD-ld} -melf64bmip"
14148 ;;
14149 esac
14150 else
14151 case `/usr/bin/file conftest.$ac_objext` in
14152 *32-bit*)
14153 LD="${LD-ld} -32"
14154 ;;
14155 *N32*)
14156 LD="${LD-ld} -n32"
14157 ;;
14158 *64-bit*)
14159 LD="${LD-ld} -64"
14160 ;;
14161 esac
14162 fi
14163 fi
14164 rm -rf conftest*
14165 ;;
14166
14167 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14168 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14169 # Find out which ABI we are using.
14170 echo 'int i;' > conftest.$ac_ext
14171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14172 (eval $ac_compile) 2>&5
14173 ac_status=$?
14174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14175 test $ac_status = 0; }; then
14176 case `/usr/bin/file conftest.o` in
14177 *32-bit*)
14178 case $host in
14179 x86_64-*kfreebsd*-gnu)
14180 LD="${LD-ld} -m elf_i386_fbsd"
14181 ;;
14182 x86_64-*linux*)
14183 case `/usr/bin/file conftest.o` in
14184 *x86-64*)
14185 LD="${LD-ld} -m elf32_x86_64"
14186 ;;
14187 *)
14188 LD="${LD-ld} -m elf_i386"
14189 ;;
14190 esac
14191 ;;
14192 powerpc64le-*linux*)
14193 LD="${LD-ld} -m elf32lppclinux"
14194 ;;
14195 powerpc64-*linux*)
14196 LD="${LD-ld} -m elf32ppclinux"
14197 ;;
14198 s390x-*linux*)
14199 LD="${LD-ld} -m elf_s390"
14200 ;;
14201 sparc64-*linux*)
14202 LD="${LD-ld} -m elf32_sparc"
14203 ;;
14204 esac
14205 ;;
14206 *64-bit*)
14207 case $host in
14208 x86_64-*kfreebsd*-gnu)
14209 LD="${LD-ld} -m elf_x86_64_fbsd"
14210 ;;
14211 x86_64-*linux*)
14212 LD="${LD-ld} -m elf_x86_64"
14213 ;;
14214 powerpcle-*linux*)
14215 LD="${LD-ld} -m elf64lppc"
14216 ;;
14217 powerpc-*linux*)
14218 LD="${LD-ld} -m elf64ppc"
14219 ;;
14220 s390*-*linux*|s390*-*tpf*)
14221 LD="${LD-ld} -m elf64_s390"
14222 ;;
14223 sparc*-*linux*)
14224 LD="${LD-ld} -m elf64_sparc"
14225 ;;
14226 esac
14227 ;;
14228 esac
14229 fi
14230 rm -rf conftest*
14231 ;;
14232
14233 *-*-sco3.2v5*)
14234 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14235 SAVE_CFLAGS="$CFLAGS"
14236 CFLAGS="$CFLAGS -belf"
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14238 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14239 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14240 $as_echo_n "(cached) " >&6
14241 else
14242 ac_ext=c
14243 ac_cpp='$CPP $CPPFLAGS'
14244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14247
14248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14249 /* end confdefs.h. */
14250
14251 int
14252 main ()
14253 {
14254
14255 ;
14256 return 0;
14257 }
14258 _ACEOF
14259 if ac_fn_c_try_link "$LINENO"; then :
14260 lt_cv_cc_needs_belf=yes
14261 else
14262 lt_cv_cc_needs_belf=no
14263 fi
14264 rm -f core conftest.err conftest.$ac_objext \
14265 conftest$ac_exeext conftest.$ac_ext
14266 ac_ext=c
14267 ac_cpp='$CPP $CPPFLAGS'
14268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14271
14272 fi
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14274 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14275 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14276 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14277 CFLAGS="$SAVE_CFLAGS"
14278 fi
14279 ;;
14280 sparc*-*solaris*)
14281 # Find out which ABI we are using.
14282 echo 'int i;' > conftest.$ac_ext
14283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14284 (eval $ac_compile) 2>&5
14285 ac_status=$?
14286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14287 test $ac_status = 0; }; then
14288 case `/usr/bin/file conftest.o` in
14289 *64-bit*)
14290 case $lt_cv_prog_gnu_ld in
14291 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14292 *)
14293 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14294 LD="${LD-ld} -64"
14295 fi
14296 ;;
14297 esac
14298 ;;
14299 esac
14300 fi
14301 rm -rf conftest*
14302 ;;
14303 esac
14304
14305 need_locks="$enable_libtool_lock"
14306
14307
14308 case $host_os in
14309 rhapsody* | darwin*)
14310 if test -n "$ac_tool_prefix"; then
14311 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14312 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14314 $as_echo_n "checking for $ac_word... " >&6; }
14315 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14316 $as_echo_n "(cached) " >&6
14317 else
14318 if test -n "$DSYMUTIL"; then
14319 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14320 else
14321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14322 for as_dir in $PATH
14323 do
14324 IFS=$as_save_IFS
14325 test -z "$as_dir" && as_dir=.
14326 for ac_exec_ext in '' $ac_executable_extensions; do
14327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14328 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14330 break 2
14331 fi
14332 done
14333 done
14334 IFS=$as_save_IFS
14335
14336 fi
14337 fi
14338 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14339 if test -n "$DSYMUTIL"; then
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14341 $as_echo "$DSYMUTIL" >&6; }
14342 else
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14344 $as_echo "no" >&6; }
14345 fi
14346
14347
14348 fi
14349 if test -z "$ac_cv_prog_DSYMUTIL"; then
14350 ac_ct_DSYMUTIL=$DSYMUTIL
14351 # Extract the first word of "dsymutil", so it can be a program name with args.
14352 set dummy dsymutil; ac_word=$2
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14354 $as_echo_n "checking for $ac_word... " >&6; }
14355 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14356 $as_echo_n "(cached) " >&6
14357 else
14358 if test -n "$ac_ct_DSYMUTIL"; then
14359 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14360 else
14361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14362 for as_dir in $PATH
14363 do
14364 IFS=$as_save_IFS
14365 test -z "$as_dir" && as_dir=.
14366 for ac_exec_ext in '' $ac_executable_extensions; do
14367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14368 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14370 break 2
14371 fi
14372 done
14373 done
14374 IFS=$as_save_IFS
14375
14376 fi
14377 fi
14378 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14379 if test -n "$ac_ct_DSYMUTIL"; then
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14381 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14382 else
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14384 $as_echo "no" >&6; }
14385 fi
14386
14387 if test "x$ac_ct_DSYMUTIL" = x; then
14388 DSYMUTIL=":"
14389 else
14390 case $cross_compiling:$ac_tool_warned in
14391 yes:)
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14394 ac_tool_warned=yes ;;
14395 esac
14396 DSYMUTIL=$ac_ct_DSYMUTIL
14397 fi
14398 else
14399 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14400 fi
14401
14402 if test -n "$ac_tool_prefix"; then
14403 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14404 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14406 $as_echo_n "checking for $ac_word... " >&6; }
14407 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14408 $as_echo_n "(cached) " >&6
14409 else
14410 if test -n "$NMEDIT"; then
14411 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14412 else
14413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14414 for as_dir in $PATH
14415 do
14416 IFS=$as_save_IFS
14417 test -z "$as_dir" && as_dir=.
14418 for ac_exec_ext in '' $ac_executable_extensions; do
14419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14420 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14422 break 2
14423 fi
14424 done
14425 done
14426 IFS=$as_save_IFS
14427
14428 fi
14429 fi
14430 NMEDIT=$ac_cv_prog_NMEDIT
14431 if test -n "$NMEDIT"; then
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14433 $as_echo "$NMEDIT" >&6; }
14434 else
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14436 $as_echo "no" >&6; }
14437 fi
14438
14439
14440 fi
14441 if test -z "$ac_cv_prog_NMEDIT"; then
14442 ac_ct_NMEDIT=$NMEDIT
14443 # Extract the first word of "nmedit", so it can be a program name with args.
14444 set dummy nmedit; ac_word=$2
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14446 $as_echo_n "checking for $ac_word... " >&6; }
14447 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14448 $as_echo_n "(cached) " >&6
14449 else
14450 if test -n "$ac_ct_NMEDIT"; then
14451 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14452 else
14453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14454 for as_dir in $PATH
14455 do
14456 IFS=$as_save_IFS
14457 test -z "$as_dir" && as_dir=.
14458 for ac_exec_ext in '' $ac_executable_extensions; do
14459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14460 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14462 break 2
14463 fi
14464 done
14465 done
14466 IFS=$as_save_IFS
14467
14468 fi
14469 fi
14470 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14471 if test -n "$ac_ct_NMEDIT"; then
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14473 $as_echo "$ac_ct_NMEDIT" >&6; }
14474 else
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14476 $as_echo "no" >&6; }
14477 fi
14478
14479 if test "x$ac_ct_NMEDIT" = x; then
14480 NMEDIT=":"
14481 else
14482 case $cross_compiling:$ac_tool_warned in
14483 yes:)
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14486 ac_tool_warned=yes ;;
14487 esac
14488 NMEDIT=$ac_ct_NMEDIT
14489 fi
14490 else
14491 NMEDIT="$ac_cv_prog_NMEDIT"
14492 fi
14493
14494 if test -n "$ac_tool_prefix"; then
14495 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14496 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14498 $as_echo_n "checking for $ac_word... " >&6; }
14499 if test "${ac_cv_prog_LIPO+set}" = set; then :
14500 $as_echo_n "(cached) " >&6
14501 else
14502 if test -n "$LIPO"; then
14503 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14504 else
14505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14506 for as_dir in $PATH
14507 do
14508 IFS=$as_save_IFS
14509 test -z "$as_dir" && as_dir=.
14510 for ac_exec_ext in '' $ac_executable_extensions; do
14511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14512 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14514 break 2
14515 fi
14516 done
14517 done
14518 IFS=$as_save_IFS
14519
14520 fi
14521 fi
14522 LIPO=$ac_cv_prog_LIPO
14523 if test -n "$LIPO"; then
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14525 $as_echo "$LIPO" >&6; }
14526 else
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14528 $as_echo "no" >&6; }
14529 fi
14530
14531
14532 fi
14533 if test -z "$ac_cv_prog_LIPO"; then
14534 ac_ct_LIPO=$LIPO
14535 # Extract the first word of "lipo", so it can be a program name with args.
14536 set dummy lipo; ac_word=$2
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14538 $as_echo_n "checking for $ac_word... " >&6; }
14539 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14540 $as_echo_n "(cached) " >&6
14541 else
14542 if test -n "$ac_ct_LIPO"; then
14543 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14544 else
14545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14546 for as_dir in $PATH
14547 do
14548 IFS=$as_save_IFS
14549 test -z "$as_dir" && as_dir=.
14550 for ac_exec_ext in '' $ac_executable_extensions; do
14551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14552 ac_cv_prog_ac_ct_LIPO="lipo"
14553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14554 break 2
14555 fi
14556 done
14557 done
14558 IFS=$as_save_IFS
14559
14560 fi
14561 fi
14562 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14563 if test -n "$ac_ct_LIPO"; then
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14565 $as_echo "$ac_ct_LIPO" >&6; }
14566 else
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14568 $as_echo "no" >&6; }
14569 fi
14570
14571 if test "x$ac_ct_LIPO" = x; then
14572 LIPO=":"
14573 else
14574 case $cross_compiling:$ac_tool_warned in
14575 yes:)
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14578 ac_tool_warned=yes ;;
14579 esac
14580 LIPO=$ac_ct_LIPO
14581 fi
14582 else
14583 LIPO="$ac_cv_prog_LIPO"
14584 fi
14585
14586 if test -n "$ac_tool_prefix"; then
14587 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14588 set dummy ${ac_tool_prefix}otool; ac_word=$2
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14590 $as_echo_n "checking for $ac_word... " >&6; }
14591 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14592 $as_echo_n "(cached) " >&6
14593 else
14594 if test -n "$OTOOL"; then
14595 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14596 else
14597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14598 for as_dir in $PATH
14599 do
14600 IFS=$as_save_IFS
14601 test -z "$as_dir" && as_dir=.
14602 for ac_exec_ext in '' $ac_executable_extensions; do
14603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14604 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14606 break 2
14607 fi
14608 done
14609 done
14610 IFS=$as_save_IFS
14611
14612 fi
14613 fi
14614 OTOOL=$ac_cv_prog_OTOOL
14615 if test -n "$OTOOL"; then
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14617 $as_echo "$OTOOL" >&6; }
14618 else
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14620 $as_echo "no" >&6; }
14621 fi
14622
14623
14624 fi
14625 if test -z "$ac_cv_prog_OTOOL"; then
14626 ac_ct_OTOOL=$OTOOL
14627 # Extract the first word of "otool", so it can be a program name with args.
14628 set dummy otool; ac_word=$2
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14630 $as_echo_n "checking for $ac_word... " >&6; }
14631 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14632 $as_echo_n "(cached) " >&6
14633 else
14634 if test -n "$ac_ct_OTOOL"; then
14635 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14636 else
14637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14638 for as_dir in $PATH
14639 do
14640 IFS=$as_save_IFS
14641 test -z "$as_dir" && as_dir=.
14642 for ac_exec_ext in '' $ac_executable_extensions; do
14643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14644 ac_cv_prog_ac_ct_OTOOL="otool"
14645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14646 break 2
14647 fi
14648 done
14649 done
14650 IFS=$as_save_IFS
14651
14652 fi
14653 fi
14654 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14655 if test -n "$ac_ct_OTOOL"; then
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14657 $as_echo "$ac_ct_OTOOL" >&6; }
14658 else
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14660 $as_echo "no" >&6; }
14661 fi
14662
14663 if test "x$ac_ct_OTOOL" = x; then
14664 OTOOL=":"
14665 else
14666 case $cross_compiling:$ac_tool_warned in
14667 yes:)
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14670 ac_tool_warned=yes ;;
14671 esac
14672 OTOOL=$ac_ct_OTOOL
14673 fi
14674 else
14675 OTOOL="$ac_cv_prog_OTOOL"
14676 fi
14677
14678 if test -n "$ac_tool_prefix"; then
14679 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14680 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14682 $as_echo_n "checking for $ac_word... " >&6; }
14683 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14684 $as_echo_n "(cached) " >&6
14685 else
14686 if test -n "$OTOOL64"; then
14687 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14688 else
14689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14690 for as_dir in $PATH
14691 do
14692 IFS=$as_save_IFS
14693 test -z "$as_dir" && as_dir=.
14694 for ac_exec_ext in '' $ac_executable_extensions; do
14695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14696 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14698 break 2
14699 fi
14700 done
14701 done
14702 IFS=$as_save_IFS
14703
14704 fi
14705 fi
14706 OTOOL64=$ac_cv_prog_OTOOL64
14707 if test -n "$OTOOL64"; then
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14709 $as_echo "$OTOOL64" >&6; }
14710 else
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14712 $as_echo "no" >&6; }
14713 fi
14714
14715
14716 fi
14717 if test -z "$ac_cv_prog_OTOOL64"; then
14718 ac_ct_OTOOL64=$OTOOL64
14719 # Extract the first word of "otool64", so it can be a program name with args.
14720 set dummy otool64; ac_word=$2
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14722 $as_echo_n "checking for $ac_word... " >&6; }
14723 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14724 $as_echo_n "(cached) " >&6
14725 else
14726 if test -n "$ac_ct_OTOOL64"; then
14727 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14728 else
14729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14730 for as_dir in $PATH
14731 do
14732 IFS=$as_save_IFS
14733 test -z "$as_dir" && as_dir=.
14734 for ac_exec_ext in '' $ac_executable_extensions; do
14735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14736 ac_cv_prog_ac_ct_OTOOL64="otool64"
14737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14738 break 2
14739 fi
14740 done
14741 done
14742 IFS=$as_save_IFS
14743
14744 fi
14745 fi
14746 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14747 if test -n "$ac_ct_OTOOL64"; then
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14749 $as_echo "$ac_ct_OTOOL64" >&6; }
14750 else
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14752 $as_echo "no" >&6; }
14753 fi
14754
14755 if test "x$ac_ct_OTOOL64" = x; then
14756 OTOOL64=":"
14757 else
14758 case $cross_compiling:$ac_tool_warned in
14759 yes:)
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14762 ac_tool_warned=yes ;;
14763 esac
14764 OTOOL64=$ac_ct_OTOOL64
14765 fi
14766 else
14767 OTOOL64="$ac_cv_prog_OTOOL64"
14768 fi
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14797 $as_echo_n "checking for -single_module linker flag... " >&6; }
14798 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14799 $as_echo_n "(cached) " >&6
14800 else
14801 lt_cv_apple_cc_single_mod=no
14802 if test -z "${LT_MULTI_MODULE}"; then
14803 # By default we will add the -single_module flag. You can override
14804 # by either setting the environment variable LT_MULTI_MODULE
14805 # non-empty at configure time, or by adding -multi_module to the
14806 # link flags.
14807 rm -rf libconftest.dylib*
14808 echo "int foo(void){return 1;}" > conftest.c
14809 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14810 -dynamiclib -Wl,-single_module conftest.c" >&5
14811 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14812 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14813 _lt_result=$?
14814 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14815 lt_cv_apple_cc_single_mod=yes
14816 else
14817 cat conftest.err >&5
14818 fi
14819 rm -rf libconftest.dylib*
14820 rm -f conftest.*
14821 fi
14822 fi
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14824 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14826 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14827 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14828 $as_echo_n "(cached) " >&6
14829 else
14830 lt_cv_ld_exported_symbols_list=no
14831 save_LDFLAGS=$LDFLAGS
14832 echo "_main" > conftest.sym
14833 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14835 /* end confdefs.h. */
14836
14837 int
14838 main ()
14839 {
14840
14841 ;
14842 return 0;
14843 }
14844 _ACEOF
14845 if ac_fn_c_try_link "$LINENO"; then :
14846 lt_cv_ld_exported_symbols_list=yes
14847 else
14848 lt_cv_ld_exported_symbols_list=no
14849 fi
14850 rm -f core conftest.err conftest.$ac_objext \
14851 conftest$ac_exeext conftest.$ac_ext
14852 LDFLAGS="$save_LDFLAGS"
14853
14854 fi
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14856 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14858 $as_echo_n "checking for -force_load linker flag... " >&6; }
14859 if test "${lt_cv_ld_force_load+set}" = set; then :
14860 $as_echo_n "(cached) " >&6
14861 else
14862 lt_cv_ld_force_load=no
14863 cat > conftest.c << _LT_EOF
14864 int forced_loaded() { return 2;}
14865 _LT_EOF
14866 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14867 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14868 echo "$AR cru libconftest.a conftest.o" >&5
14869 $AR cru libconftest.a conftest.o 2>&5
14870 cat > conftest.c << _LT_EOF
14871 int main() { return 0;}
14872 _LT_EOF
14873 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14874 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14875 _lt_result=$?
14876 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14877 lt_cv_ld_force_load=yes
14878 else
14879 cat conftest.err >&5
14880 fi
14881 rm -f conftest.err libconftest.a conftest conftest.c
14882 rm -rf conftest.dSYM
14883
14884 fi
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14886 $as_echo "$lt_cv_ld_force_load" >&6; }
14887 case $host_os in
14888 rhapsody* | darwin1.[012])
14889 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14890 darwin1.*)
14891 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14892 darwin*) # darwin 5.x on
14893 # if running on 10.5 or later, the deployment target defaults
14894 # to the OS version, if on x86, and 10.4, the deployment
14895 # target defaults to 10.4. Don't you love it?
14896 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14897 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14898 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14899 10.[012][,.]*)
14900 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14901 10.*)
14902 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14903 esac
14904 ;;
14905 esac
14906 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14907 _lt_dar_single_mod='$single_module'
14908 fi
14909 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14910 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14911 else
14912 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14913 fi
14914 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14915 _lt_dsymutil='~$DSYMUTIL $lib || :'
14916 else
14917 _lt_dsymutil=
14918 fi
14919 ;;
14920 esac
14921
14922
14923 for ac_header in dlfcn.h
14924 do :
14925 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14926 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14927 cat >>confdefs.h <<_ACEOF
14928 #define HAVE_DLFCN_H 1
14929 _ACEOF
14930
14931 fi
14932 done
14933
14934
14935
14936
14937
14938 # Set options
14939
14940
14941
14942 enable_dlopen=no
14943
14944
14945 enable_win32_dll=no
14946
14947
14948 # Check whether --enable-shared was given.
14949 if test "${enable_shared+set}" = set; then :
14950 enableval=$enable_shared; p=${PACKAGE-default}
14951 case $enableval in
14952 yes) enable_shared=yes ;;
14953 no) enable_shared=no ;;
14954 *)
14955 enable_shared=no
14956 # Look at the argument we got. We use all the common list separators.
14957 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14958 for pkg in $enableval; do
14959 IFS="$lt_save_ifs"
14960 if test "X$pkg" = "X$p"; then
14961 enable_shared=yes
14962 fi
14963 done
14964 IFS="$lt_save_ifs"
14965 ;;
14966 esac
14967 else
14968 enable_shared=yes
14969 fi
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979 # Check whether --enable-static was given.
14980 if test "${enable_static+set}" = set; then :
14981 enableval=$enable_static; p=${PACKAGE-default}
14982 case $enableval in
14983 yes) enable_static=yes ;;
14984 no) enable_static=no ;;
14985 *)
14986 enable_static=no
14987 # Look at the argument we got. We use all the common list separators.
14988 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14989 for pkg in $enableval; do
14990 IFS="$lt_save_ifs"
14991 if test "X$pkg" = "X$p"; then
14992 enable_static=yes
14993 fi
14994 done
14995 IFS="$lt_save_ifs"
14996 ;;
14997 esac
14998 else
14999 enable_static=yes
15000 fi
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011 # Check whether --with-pic was given.
15012 if test "${with_pic+set}" = set; then :
15013 withval=$with_pic; pic_mode="$withval"
15014 else
15015 pic_mode=default
15016 fi
15017
15018
15019 test -z "$pic_mode" && pic_mode=default
15020
15021
15022
15023
15024
15025
15026
15027 # Check whether --enable-fast-install was given.
15028 if test "${enable_fast_install+set}" = set; then :
15029 enableval=$enable_fast_install; p=${PACKAGE-default}
15030 case $enableval in
15031 yes) enable_fast_install=yes ;;
15032 no) enable_fast_install=no ;;
15033 *)
15034 enable_fast_install=no
15035 # Look at the argument we got. We use all the common list separators.
15036 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15037 for pkg in $enableval; do
15038 IFS="$lt_save_ifs"
15039 if test "X$pkg" = "X$p"; then
15040 enable_fast_install=yes
15041 fi
15042 done
15043 IFS="$lt_save_ifs"
15044 ;;
15045 esac
15046 else
15047 enable_fast_install=yes
15048 fi
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060 # This can be used to rebuild libtool when needed
15061 LIBTOOL_DEPS="$ltmain"
15062
15063 # Always use our own libtool.
15064 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091 test -z "$LN_S" && LN_S="ln -s"
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106 if test -n "${ZSH_VERSION+set}" ; then
15107 setopt NO_GLOB_SUBST
15108 fi
15109
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15111 $as_echo_n "checking for objdir... " >&6; }
15112 if test "${lt_cv_objdir+set}" = set; then :
15113 $as_echo_n "(cached) " >&6
15114 else
15115 rm -f .libs 2>/dev/null
15116 mkdir .libs 2>/dev/null
15117 if test -d .libs; then
15118 lt_cv_objdir=.libs
15119 else
15120 # MS-DOS does not allow filenames that begin with a dot.
15121 lt_cv_objdir=_libs
15122 fi
15123 rmdir .libs 2>/dev/null
15124 fi
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15126 $as_echo "$lt_cv_objdir" >&6; }
15127 objdir=$lt_cv_objdir
15128
15129
15130
15131
15132
15133 cat >>confdefs.h <<_ACEOF
15134 #define LT_OBJDIR "$lt_cv_objdir/"
15135 _ACEOF
15136
15137
15138
15139
15140 case $host_os in
15141 aix3*)
15142 # AIX sometimes has problems with the GCC collect2 program. For some
15143 # reason, if we set the COLLECT_NAMES environment variable, the problems
15144 # vanish in a puff of smoke.
15145 if test "X${COLLECT_NAMES+set}" != Xset; then
15146 COLLECT_NAMES=
15147 export COLLECT_NAMES
15148 fi
15149 ;;
15150 esac
15151
15152 # Global variables:
15153 ofile=libtool
15154 can_build_shared=yes
15155
15156 # All known linkers require a `.a' archive for static linking (except MSVC,
15157 # which needs '.lib').
15158 libext=a
15159
15160 with_gnu_ld="$lt_cv_prog_gnu_ld"
15161
15162 old_CC="$CC"
15163 old_CFLAGS="$CFLAGS"
15164
15165 # Set sane defaults for various variables
15166 test -z "$CC" && CC=cc
15167 test -z "$LTCC" && LTCC=$CC
15168 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15169 test -z "$LD" && LD=ld
15170 test -z "$ac_objext" && ac_objext=o
15171
15172 for cc_temp in $compiler""; do
15173 case $cc_temp in
15174 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15175 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15176 \-*) ;;
15177 *) break;;
15178 esac
15179 done
15180 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15181
15182
15183 # Only perform the check for file, if the check method requires it
15184 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15185 case $deplibs_check_method in
15186 file_magic*)
15187 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15189 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15190 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15191 $as_echo_n "(cached) " >&6
15192 else
15193 case $MAGIC_CMD in
15194 [\\/*] | ?:[\\/]*)
15195 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15196 ;;
15197 *)
15198 lt_save_MAGIC_CMD="$MAGIC_CMD"
15199 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15200 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15201 for ac_dir in $ac_dummy; do
15202 IFS="$lt_save_ifs"
15203 test -z "$ac_dir" && ac_dir=.
15204 if test -f $ac_dir/${ac_tool_prefix}file; then
15205 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15206 if test -n "$file_magic_test_file"; then
15207 case $deplibs_check_method in
15208 "file_magic "*)
15209 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15210 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15211 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15212 $EGREP "$file_magic_regex" > /dev/null; then
15213 :
15214 else
15215 cat <<_LT_EOF 1>&2
15216
15217 *** Warning: the command libtool uses to detect shared libraries,
15218 *** $file_magic_cmd, produces output that libtool cannot recognize.
15219 *** The result is that libtool may fail to recognize shared libraries
15220 *** as such. This will affect the creation of libtool libraries that
15221 *** depend on shared libraries, but programs linked with such libtool
15222 *** libraries will work regardless of this problem. Nevertheless, you
15223 *** may want to report the problem to your system manager and/or to
15224 *** bug-libtool@gnu.org
15225
15226 _LT_EOF
15227 fi ;;
15228 esac
15229 fi
15230 break
15231 fi
15232 done
15233 IFS="$lt_save_ifs"
15234 MAGIC_CMD="$lt_save_MAGIC_CMD"
15235 ;;
15236 esac
15237 fi
15238
15239 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15240 if test -n "$MAGIC_CMD"; then
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15242 $as_echo "$MAGIC_CMD" >&6; }
15243 else
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15245 $as_echo "no" >&6; }
15246 fi
15247
15248
15249
15250
15251
15252 if test -z "$lt_cv_path_MAGIC_CMD"; then
15253 if test -n "$ac_tool_prefix"; then
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15255 $as_echo_n "checking for 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/file; then
15271 lt_cv_path_MAGIC_CMD="$ac_dir/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 else
15316 MAGIC_CMD=:
15317 fi
15318 fi
15319
15320 fi
15321 ;;
15322 esac
15323
15324 # Use C for the default configuration in the libtool script
15325
15326 lt_save_CC="$CC"
15327 ac_ext=c
15328 ac_cpp='$CPP $CPPFLAGS'
15329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15332
15333
15334 # Source file extension for C test sources.
15335 ac_ext=c
15336
15337 # Object file extension for compiled C test sources.
15338 objext=o
15339 objext=$objext
15340
15341 # Code to be used in simple compile tests
15342 lt_simple_compile_test_code="int some_variable = 0;"
15343
15344 # Code to be used in simple link tests
15345 lt_simple_link_test_code='int main(){return(0);}'
15346
15347
15348
15349
15350
15351
15352
15353 # If no C compiler was specified, use CC.
15354 LTCC=${LTCC-"$CC"}
15355
15356 # If no C compiler flags were specified, use CFLAGS.
15357 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15358
15359 # Allow CC to be a program name with arguments.
15360 compiler=$CC
15361
15362 # Save the default compiler, since it gets overwritten when the other
15363 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15364 compiler_DEFAULT=$CC
15365
15366 # save warnings/boilerplate of simple test code
15367 ac_outfile=conftest.$ac_objext
15368 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15369 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15370 _lt_compiler_boilerplate=`cat conftest.err`
15371 $RM conftest*
15372
15373 ac_outfile=conftest.$ac_objext
15374 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15375 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15376 _lt_linker_boilerplate=`cat conftest.err`
15377 $RM -r conftest*
15378
15379
15380 ## CAVEAT EMPTOR:
15381 ## There is no encapsulation within the following macros, do not change
15382 ## the running order or otherwise move them around unless you know exactly
15383 ## what you are doing...
15384 if test -n "$compiler"; then
15385
15386 lt_prog_compiler_no_builtin_flag=
15387
15388 if test "$GCC" = yes; then
15389 case $cc_basename in
15390 nvcc*)
15391 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15392 *)
15393 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15394 esac
15395
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15397 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15398 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15399 $as_echo_n "(cached) " >&6
15400 else
15401 lt_cv_prog_compiler_rtti_exceptions=no
15402 ac_outfile=conftest.$ac_objext
15403 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15404 lt_compiler_flag="-fno-rtti -fno-exceptions"
15405 # Insert the option either (1) after the last *FLAGS variable, or
15406 # (2) before a word containing "conftest.", or (3) at the end.
15407 # Note that $ac_compile itself does not contain backslashes and begins
15408 # with a dollar sign (not a hyphen), so the echo should work correctly.
15409 # The option is referenced via a variable to avoid confusing sed.
15410 lt_compile=`echo "$ac_compile" | $SED \
15411 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15412 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15413 -e 's:$: $lt_compiler_flag:'`
15414 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15415 (eval "$lt_compile" 2>conftest.err)
15416 ac_status=$?
15417 cat conftest.err >&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 if (exit $ac_status) && test -s "$ac_outfile"; then
15420 # The compiler can only warn and ignore the option if not recognized
15421 # So say no if there are warnings other than the usual output.
15422 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15423 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15424 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15425 lt_cv_prog_compiler_rtti_exceptions=yes
15426 fi
15427 fi
15428 $RM conftest*
15429
15430 fi
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15432 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15433
15434 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15435 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15436 else
15437 :
15438 fi
15439
15440 fi
15441
15442
15443
15444
15445
15446
15447 lt_prog_compiler_wl=
15448 lt_prog_compiler_pic=
15449 lt_prog_compiler_static=
15450
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15452 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15453
15454 if test "$GCC" = yes; then
15455 lt_prog_compiler_wl='-Wl,'
15456 lt_prog_compiler_static='-static'
15457
15458 case $host_os in
15459 aix*)
15460 # All AIX code is PIC.
15461 if test "$host_cpu" = ia64; then
15462 # AIX 5 now supports IA64 processor
15463 lt_prog_compiler_static='-Bstatic'
15464 fi
15465 lt_prog_compiler_pic='-fPIC'
15466 ;;
15467
15468 amigaos*)
15469 case $host_cpu in
15470 powerpc)
15471 # see comment about AmigaOS4 .so support
15472 lt_prog_compiler_pic='-fPIC'
15473 ;;
15474 m68k)
15475 # FIXME: we need at least 68020 code to build shared libraries, but
15476 # adding the `-m68020' flag to GCC prevents building anything better,
15477 # like `-m68040'.
15478 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15479 ;;
15480 esac
15481 ;;
15482
15483 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15484 # PIC is the default for these OSes.
15485 ;;
15486
15487 mingw* | cygwin* | pw32* | os2* | cegcc*)
15488 # This hack is so that the source file can tell whether it is being
15489 # built for inclusion in a dll (and should export symbols for example).
15490 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15491 # (--disable-auto-import) libraries
15492 lt_prog_compiler_pic='-DDLL_EXPORT'
15493 ;;
15494
15495 darwin* | rhapsody*)
15496 # PIC is the default on this platform
15497 # Common symbols not allowed in MH_DYLIB files
15498 lt_prog_compiler_pic='-fno-common'
15499 ;;
15500
15501 haiku*)
15502 # PIC is the default for Haiku.
15503 # The "-static" flag exists, but is broken.
15504 lt_prog_compiler_static=
15505 ;;
15506
15507 hpux*)
15508 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15509 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15510 # sets the default TLS model and affects inlining.
15511 case $host_cpu in
15512 hppa*64*)
15513 # +Z the default
15514 ;;
15515 *)
15516 lt_prog_compiler_pic='-fPIC'
15517 ;;
15518 esac
15519 ;;
15520
15521 interix[3-9]*)
15522 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15523 # Instead, we relocate shared libraries at runtime.
15524 ;;
15525
15526 msdosdjgpp*)
15527 # Just because we use GCC doesn't mean we suddenly get shared libraries
15528 # on systems that don't support them.
15529 lt_prog_compiler_can_build_shared=no
15530 enable_shared=no
15531 ;;
15532
15533 *nto* | *qnx*)
15534 # QNX uses GNU C++, but need to define -shared option too, otherwise
15535 # it will coredump.
15536 lt_prog_compiler_pic='-fPIC -shared'
15537 ;;
15538
15539 sysv4*MP*)
15540 if test -d /usr/nec; then
15541 lt_prog_compiler_pic=-Kconform_pic
15542 fi
15543 ;;
15544
15545 *)
15546 lt_prog_compiler_pic='-fPIC'
15547 ;;
15548 esac
15549
15550 case $cc_basename in
15551 nvcc*) # Cuda Compiler Driver 2.2
15552 lt_prog_compiler_wl='-Xlinker '
15553 lt_prog_compiler_pic='-Xcompiler -fPIC'
15554 ;;
15555 esac
15556 else
15557 # PORTME Check for flag to pass linker flags through the system compiler.
15558 case $host_os in
15559 aix*)
15560 lt_prog_compiler_wl='-Wl,'
15561 if test "$host_cpu" = ia64; then
15562 # AIX 5 now supports IA64 processor
15563 lt_prog_compiler_static='-Bstatic'
15564 else
15565 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15566 fi
15567 ;;
15568
15569 mingw* | cygwin* | pw32* | os2* | cegcc*)
15570 # This hack is so that the source file can tell whether it is being
15571 # built for inclusion in a dll (and should export symbols for example).
15572 lt_prog_compiler_pic='-DDLL_EXPORT'
15573 ;;
15574
15575 hpux9* | hpux10* | hpux11*)
15576 lt_prog_compiler_wl='-Wl,'
15577 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15578 # not for PA HP-UX.
15579 case $host_cpu in
15580 hppa*64*|ia64*)
15581 # +Z the default
15582 ;;
15583 *)
15584 lt_prog_compiler_pic='+Z'
15585 ;;
15586 esac
15587 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15588 lt_prog_compiler_static='${wl}-a ${wl}archive'
15589 ;;
15590
15591 irix5* | irix6* | nonstopux*)
15592 lt_prog_compiler_wl='-Wl,'
15593 # PIC (with -KPIC) is the default.
15594 lt_prog_compiler_static='-non_shared'
15595 ;;
15596
15597 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15598 case $cc_basename in
15599 # old Intel for x86_64 which still supported -KPIC.
15600 ecc*)
15601 lt_prog_compiler_wl='-Wl,'
15602 lt_prog_compiler_pic='-KPIC'
15603 lt_prog_compiler_static='-static'
15604 ;;
15605 # icc used to be incompatible with GCC.
15606 # ICC 10 doesn't accept -KPIC any more.
15607 icc* | ifort*)
15608 lt_prog_compiler_wl='-Wl,'
15609 lt_prog_compiler_pic='-fPIC'
15610 lt_prog_compiler_static='-static'
15611 ;;
15612 # Lahey Fortran 8.1.
15613 lf95*)
15614 lt_prog_compiler_wl='-Wl,'
15615 lt_prog_compiler_pic='--shared'
15616 lt_prog_compiler_static='--static'
15617 ;;
15618 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15619 # Portland Group compilers (*not* the Pentium gcc compiler,
15620 # which looks to be a dead project)
15621 lt_prog_compiler_wl='-Wl,'
15622 lt_prog_compiler_pic='-fpic'
15623 lt_prog_compiler_static='-Bstatic'
15624 ;;
15625 ccc*)
15626 lt_prog_compiler_wl='-Wl,'
15627 # All Alpha code is PIC.
15628 lt_prog_compiler_static='-non_shared'
15629 ;;
15630 xl* | bgxl* | bgf* | mpixl*)
15631 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15632 lt_prog_compiler_wl='-Wl,'
15633 lt_prog_compiler_pic='-qpic'
15634 lt_prog_compiler_static='-qstaticlink'
15635 ;;
15636 *)
15637 case `$CC -V 2>&1 | sed 5q` in
15638 *Sun\ F* | *Sun*Fortran*)
15639 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15640 lt_prog_compiler_pic='-KPIC'
15641 lt_prog_compiler_static='-Bstatic'
15642 lt_prog_compiler_wl=''
15643 ;;
15644 *Sun\ C*)
15645 # Sun C 5.9
15646 lt_prog_compiler_pic='-KPIC'
15647 lt_prog_compiler_static='-Bstatic'
15648 lt_prog_compiler_wl='-Wl,'
15649 ;;
15650 esac
15651 ;;
15652 esac
15653 ;;
15654
15655 newsos6)
15656 lt_prog_compiler_pic='-KPIC'
15657 lt_prog_compiler_static='-Bstatic'
15658 ;;
15659
15660 *nto* | *qnx*)
15661 # QNX uses GNU C++, but need to define -shared option too, otherwise
15662 # it will coredump.
15663 lt_prog_compiler_pic='-fPIC -shared'
15664 ;;
15665
15666 osf3* | osf4* | osf5*)
15667 lt_prog_compiler_wl='-Wl,'
15668 # All OSF/1 code is PIC.
15669 lt_prog_compiler_static='-non_shared'
15670 ;;
15671
15672 rdos*)
15673 lt_prog_compiler_static='-non_shared'
15674 ;;
15675
15676 solaris*)
15677 lt_prog_compiler_pic='-KPIC'
15678 lt_prog_compiler_static='-Bstatic'
15679 case $cc_basename in
15680 f77* | f90* | f95*)
15681 lt_prog_compiler_wl='-Qoption ld ';;
15682 *)
15683 lt_prog_compiler_wl='-Wl,';;
15684 esac
15685 ;;
15686
15687 sunos4*)
15688 lt_prog_compiler_wl='-Qoption ld '
15689 lt_prog_compiler_pic='-PIC'
15690 lt_prog_compiler_static='-Bstatic'
15691 ;;
15692
15693 sysv4 | sysv4.2uw2* | sysv4.3*)
15694 lt_prog_compiler_wl='-Wl,'
15695 lt_prog_compiler_pic='-KPIC'
15696 lt_prog_compiler_static='-Bstatic'
15697 ;;
15698
15699 sysv4*MP*)
15700 if test -d /usr/nec ;then
15701 lt_prog_compiler_pic='-Kconform_pic'
15702 lt_prog_compiler_static='-Bstatic'
15703 fi
15704 ;;
15705
15706 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15707 lt_prog_compiler_wl='-Wl,'
15708 lt_prog_compiler_pic='-KPIC'
15709 lt_prog_compiler_static='-Bstatic'
15710 ;;
15711
15712 unicos*)
15713 lt_prog_compiler_wl='-Wl,'
15714 lt_prog_compiler_can_build_shared=no
15715 ;;
15716
15717 uts4*)
15718 lt_prog_compiler_pic='-pic'
15719 lt_prog_compiler_static='-Bstatic'
15720 ;;
15721
15722 *)
15723 lt_prog_compiler_can_build_shared=no
15724 ;;
15725 esac
15726 fi
15727
15728 case $host_os in
15729 # For platforms which do not support PIC, -DPIC is meaningless:
15730 *djgpp*)
15731 lt_prog_compiler_pic=
15732 ;;
15733 *)
15734 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15735 ;;
15736 esac
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15738 $as_echo "$lt_prog_compiler_pic" >&6; }
15739
15740
15741
15742
15743
15744
15745 #
15746 # Check to make sure the PIC flag actually works.
15747 #
15748 if test -n "$lt_prog_compiler_pic"; then
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15750 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15751 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15752 $as_echo_n "(cached) " >&6
15753 else
15754 lt_cv_prog_compiler_pic_works=no
15755 ac_outfile=conftest.$ac_objext
15756 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15757 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15758 # Insert the option either (1) after the last *FLAGS variable, or
15759 # (2) before a word containing "conftest.", or (3) at the end.
15760 # Note that $ac_compile itself does not contain backslashes and begins
15761 # with a dollar sign (not a hyphen), so the echo should work correctly.
15762 # The option is referenced via a variable to avoid confusing sed.
15763 lt_compile=`echo "$ac_compile" | $SED \
15764 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15765 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15766 -e 's:$: $lt_compiler_flag:'`
15767 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15768 (eval "$lt_compile" 2>conftest.err)
15769 ac_status=$?
15770 cat conftest.err >&5
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 if (exit $ac_status) && test -s "$ac_outfile"; then
15773 # The compiler can only warn and ignore the option if not recognized
15774 # So say no if there are warnings other than the usual output.
15775 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15776 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15777 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15778 lt_cv_prog_compiler_pic_works=yes
15779 fi
15780 fi
15781 $RM conftest*
15782
15783 fi
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15785 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15786
15787 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15788 case $lt_prog_compiler_pic in
15789 "" | " "*) ;;
15790 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15791 esac
15792 else
15793 lt_prog_compiler_pic=
15794 lt_prog_compiler_can_build_shared=no
15795 fi
15796
15797 fi
15798
15799
15800
15801
15802
15803
15804 #
15805 # Check to make sure the static flag actually works.
15806 #
15807 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15809 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15810 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15811 $as_echo_n "(cached) " >&6
15812 else
15813 lt_cv_prog_compiler_static_works=no
15814 save_LDFLAGS="$LDFLAGS"
15815 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15816 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15817 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15818 # The linker can only warn and ignore the option if not recognized
15819 # So say no if there are warnings
15820 if test -s conftest.err; then
15821 # Append any errors to the config.log.
15822 cat conftest.err 1>&5
15823 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15824 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15825 if diff conftest.exp conftest.er2 >/dev/null; then
15826 lt_cv_prog_compiler_static_works=yes
15827 fi
15828 else
15829 lt_cv_prog_compiler_static_works=yes
15830 fi
15831 fi
15832 $RM -r conftest*
15833 LDFLAGS="$save_LDFLAGS"
15834
15835 fi
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15837 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15838
15839 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15840 :
15841 else
15842 lt_prog_compiler_static=
15843 fi
15844
15845
15846
15847
15848
15849
15850
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15852 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15853 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15854 $as_echo_n "(cached) " >&6
15855 else
15856 lt_cv_prog_compiler_c_o=no
15857 $RM -r conftest 2>/dev/null
15858 mkdir conftest
15859 cd conftest
15860 mkdir out
15861 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15862
15863 lt_compiler_flag="-o out/conftest2.$ac_objext"
15864 # Insert the option either (1) after the last *FLAGS variable, or
15865 # (2) before a word containing "conftest.", or (3) at the end.
15866 # Note that $ac_compile itself does not contain backslashes and begins
15867 # with a dollar sign (not a hyphen), so the echo should work correctly.
15868 lt_compile=`echo "$ac_compile" | $SED \
15869 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15870 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15871 -e 's:$: $lt_compiler_flag:'`
15872 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15873 (eval "$lt_compile" 2>out/conftest.err)
15874 ac_status=$?
15875 cat out/conftest.err >&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15878 then
15879 # The compiler can only warn and ignore the option if not recognized
15880 # So say no if there are warnings
15881 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15882 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15883 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15884 lt_cv_prog_compiler_c_o=yes
15885 fi
15886 fi
15887 chmod u+w . 2>&5
15888 $RM conftest*
15889 # SGI C++ compiler will create directory out/ii_files/ for
15890 # template instantiation
15891 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15892 $RM out/* && rmdir out
15893 cd ..
15894 $RM -r conftest
15895 $RM conftest*
15896
15897 fi
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15899 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15900
15901
15902
15903
15904
15905
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15907 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15908 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15909 $as_echo_n "(cached) " >&6
15910 else
15911 lt_cv_prog_compiler_c_o=no
15912 $RM -r conftest 2>/dev/null
15913 mkdir conftest
15914 cd conftest
15915 mkdir out
15916 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15917
15918 lt_compiler_flag="-o out/conftest2.$ac_objext"
15919 # Insert the option either (1) after the last *FLAGS variable, or
15920 # (2) before a word containing "conftest.", or (3) at the end.
15921 # Note that $ac_compile itself does not contain backslashes and begins
15922 # with a dollar sign (not a hyphen), so the echo should work correctly.
15923 lt_compile=`echo "$ac_compile" | $SED \
15924 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15925 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15926 -e 's:$: $lt_compiler_flag:'`
15927 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15928 (eval "$lt_compile" 2>out/conftest.err)
15929 ac_status=$?
15930 cat out/conftest.err >&5
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15933 then
15934 # The compiler can only warn and ignore the option if not recognized
15935 # So say no if there are warnings
15936 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15937 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15938 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15939 lt_cv_prog_compiler_c_o=yes
15940 fi
15941 fi
15942 chmod u+w . 2>&5
15943 $RM conftest*
15944 # SGI C++ compiler will create directory out/ii_files/ for
15945 # template instantiation
15946 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15947 $RM out/* && rmdir out
15948 cd ..
15949 $RM -r conftest
15950 $RM conftest*
15951
15952 fi
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15954 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15955
15956
15957
15958
15959 hard_links="nottested"
15960 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15961 # do not overwrite the value of need_locks provided by the user
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15963 $as_echo_n "checking if we can lock with hard links... " >&6; }
15964 hard_links=yes
15965 $RM conftest*
15966 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15967 touch conftest.a
15968 ln conftest.a conftest.b 2>&5 || hard_links=no
15969 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15971 $as_echo "$hard_links" >&6; }
15972 if test "$hard_links" = no; then
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15974 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15975 need_locks=warn
15976 fi
15977 else
15978 need_locks=no
15979 fi
15980
15981
15982
15983
15984
15985
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15987 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15988
15989 runpath_var=
15990 allow_undefined_flag=
15991 always_export_symbols=no
15992 archive_cmds=
15993 archive_expsym_cmds=
15994 compiler_needs_object=no
15995 enable_shared_with_static_runtimes=no
15996 export_dynamic_flag_spec=
15997 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15998 hardcode_automatic=no
15999 hardcode_direct=no
16000 hardcode_direct_absolute=no
16001 hardcode_libdir_flag_spec=
16002 hardcode_libdir_flag_spec_ld=
16003 hardcode_libdir_separator=
16004 hardcode_minus_L=no
16005 hardcode_shlibpath_var=unsupported
16006 inherit_rpath=no
16007 link_all_deplibs=unknown
16008 module_cmds=
16009 module_expsym_cmds=
16010 old_archive_from_new_cmds=
16011 old_archive_from_expsyms_cmds=
16012 thread_safe_flag_spec=
16013 whole_archive_flag_spec=
16014 # include_expsyms should be a list of space-separated symbols to be *always*
16015 # included in the symbol list
16016 include_expsyms=
16017 # exclude_expsyms can be an extended regexp of symbols to exclude
16018 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16019 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16020 # as well as any symbol that contains `d'.
16021 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16022 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16023 # platforms (ab)use it in PIC code, but their linkers get confused if
16024 # the symbol is explicitly referenced. Since portable code cannot
16025 # rely on this symbol name, it's probably fine to never include it in
16026 # preloaded symbol tables.
16027 # Exclude shared library initialization/finalization symbols.
16028 extract_expsyms_cmds=
16029
16030 case $host_os in
16031 cygwin* | mingw* | pw32* | cegcc*)
16032 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16033 # When not using gcc, we currently assume that we are using
16034 # Microsoft Visual C++.
16035 if test "$GCC" != yes; then
16036 with_gnu_ld=no
16037 fi
16038 ;;
16039 interix*)
16040 # we just hope/assume this is gcc and not c89 (= MSVC++)
16041 with_gnu_ld=yes
16042 ;;
16043 openbsd*)
16044 with_gnu_ld=no
16045 ;;
16046 esac
16047
16048 ld_shlibs=yes
16049
16050 # On some targets, GNU ld is compatible enough with the native linker
16051 # that we're better off using the native interface for both.
16052 lt_use_gnu_ld_interface=no
16053 if test "$with_gnu_ld" = yes; then
16054 case $host_os in
16055 aix*)
16056 # The AIX port of GNU ld has always aspired to compatibility
16057 # with the native linker. However, as the warning in the GNU ld
16058 # block says, versions before 2.19.5* couldn't really create working
16059 # shared libraries, regardless of the interface used.
16060 case `$LD -v 2>&1` in
16061 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16062 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16063 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16064 *)
16065 lt_use_gnu_ld_interface=yes
16066 ;;
16067 esac
16068 ;;
16069 *)
16070 lt_use_gnu_ld_interface=yes
16071 ;;
16072 esac
16073 fi
16074
16075 if test "$lt_use_gnu_ld_interface" = yes; then
16076 # If archive_cmds runs LD, not CC, wlarc should be empty
16077 wlarc='${wl}'
16078
16079 # Set some defaults for GNU ld with shared library support. These
16080 # are reset later if shared libraries are not supported. Putting them
16081 # here allows them to be overridden if necessary.
16082 runpath_var=LD_RUN_PATH
16083 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16084 export_dynamic_flag_spec='${wl}--export-dynamic'
16085 # ancient GNU ld didn't support --whole-archive et. al.
16086 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16087 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16088 else
16089 whole_archive_flag_spec=
16090 fi
16091 supports_anon_versioning=no
16092 case `$LD -v 2>&1` in
16093 *GNU\ gold*) supports_anon_versioning=yes ;;
16094 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16095 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16096 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16097 *\ 2.11.*) ;; # other 2.11 versions
16098 *) supports_anon_versioning=yes ;;
16099 esac
16100
16101 # See if GNU ld supports shared libraries.
16102 case $host_os in
16103 aix[3-9]*)
16104 # On AIX/PPC, the GNU linker is very broken
16105 if test "$host_cpu" != ia64; then
16106 ld_shlibs=no
16107 cat <<_LT_EOF 1>&2
16108
16109 *** Warning: the GNU linker, at least up to release 2.19, is reported
16110 *** to be unable to reliably create shared libraries on AIX.
16111 *** Therefore, libtool is disabling shared libraries support. If you
16112 *** really care for shared libraries, you may want to install binutils
16113 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16114 *** You will then need to restart the configuration process.
16115
16116 _LT_EOF
16117 fi
16118 ;;
16119
16120 amigaos*)
16121 case $host_cpu in
16122 powerpc)
16123 # see comment about AmigaOS4 .so support
16124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16125 archive_expsym_cmds=''
16126 ;;
16127 m68k)
16128 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)'
16129 hardcode_libdir_flag_spec='-L$libdir'
16130 hardcode_minus_L=yes
16131 ;;
16132 esac
16133 ;;
16134
16135 beos*)
16136 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16137 allow_undefined_flag=unsupported
16138 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16139 # support --undefined. This deserves some investigation. FIXME
16140 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16141 else
16142 ld_shlibs=no
16143 fi
16144 ;;
16145
16146 cygwin* | mingw* | pw32* | cegcc*)
16147 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16148 # as there is no search path for DLLs.
16149 hardcode_libdir_flag_spec='-L$libdir'
16150 export_dynamic_flag_spec='${wl}--export-all-symbols'
16151 allow_undefined_flag=unsupported
16152 always_export_symbols=no
16153 enable_shared_with_static_runtimes=yes
16154 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16155
16156 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16157 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16158 # If the export-symbols file already is a .def file (1st line
16159 # is EXPORTS), use it as is; otherwise, prepend...
16160 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16161 cp $export_symbols $output_objdir/$soname.def;
16162 else
16163 echo EXPORTS > $output_objdir/$soname.def;
16164 cat $export_symbols >> $output_objdir/$soname.def;
16165 fi~
16166 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16167 else
16168 ld_shlibs=no
16169 fi
16170 ;;
16171
16172 haiku*)
16173 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16174 link_all_deplibs=yes
16175 ;;
16176
16177 interix[3-9]*)
16178 hardcode_direct=no
16179 hardcode_shlibpath_var=no
16180 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16181 export_dynamic_flag_spec='${wl}-E'
16182 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16183 # Instead, shared libraries are loaded at an image base (0x10000000 by
16184 # default) and relocated if they conflict, which is a slow very memory
16185 # consuming and fragmenting process. To avoid this, we pick a random,
16186 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16187 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16188 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16189 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'
16190 ;;
16191
16192 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16193 tmp_diet=no
16194 if test "$host_os" = linux-dietlibc; then
16195 case $cc_basename in
16196 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16197 esac
16198 fi
16199 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16200 && test "$tmp_diet" = no
16201 then
16202 tmp_addflag=' $pic_flag'
16203 tmp_sharedflag='-shared'
16204 case $cc_basename,$host_cpu in
16205 pgcc*) # Portland Group C compiler
16206 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'
16207 tmp_addflag=' $pic_flag'
16208 ;;
16209 pgf77* | pgf90* | pgf95* | pgfortran*)
16210 # Portland Group f77 and f90 compilers
16211 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'
16212 tmp_addflag=' $pic_flag -Mnomain' ;;
16213 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16214 tmp_addflag=' -i_dynamic' ;;
16215 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16216 tmp_addflag=' -i_dynamic -nofor_main' ;;
16217 ifc* | ifort*) # Intel Fortran compiler
16218 tmp_addflag=' -nofor_main' ;;
16219 lf95*) # Lahey Fortran 8.1
16220 whole_archive_flag_spec=
16221 tmp_sharedflag='--shared' ;;
16222 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16223 tmp_sharedflag='-qmkshrobj'
16224 tmp_addflag= ;;
16225 nvcc*) # Cuda Compiler Driver 2.2
16226 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'
16227 compiler_needs_object=yes
16228 ;;
16229 esac
16230 case `$CC -V 2>&1 | sed 5q` in
16231 *Sun\ C*) # Sun C 5.9
16232 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'
16233 compiler_needs_object=yes
16234 tmp_sharedflag='-G' ;;
16235 *Sun\ F*) # Sun Fortran 8.3
16236 tmp_sharedflag='-G' ;;
16237 esac
16238 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16239
16240 if test "x$supports_anon_versioning" = xyes; then
16241 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16242 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16243 echo "local: *; };" >> $output_objdir/$libname.ver~
16244 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16245 fi
16246
16247 case $cc_basename in
16248 xlf* | bgf* | bgxlf* | mpixlf*)
16249 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16250 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16251 hardcode_libdir_flag_spec=
16252 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16253 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16254 if test "x$supports_anon_versioning" = xyes; then
16255 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16256 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16257 echo "local: *; };" >> $output_objdir/$libname.ver~
16258 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16259 fi
16260 ;;
16261 esac
16262 else
16263 ld_shlibs=no
16264 fi
16265 ;;
16266
16267 netbsd*)
16268 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16269 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16270 wlarc=
16271 else
16272 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16273 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16274 fi
16275 ;;
16276
16277 solaris*)
16278 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16279 ld_shlibs=no
16280 cat <<_LT_EOF 1>&2
16281
16282 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16283 *** create shared libraries on Solaris systems. Therefore, libtool
16284 *** is disabling shared libraries support. We urge you to upgrade GNU
16285 *** binutils to release 2.9.1 or newer. Another option is to modify
16286 *** your PATH or compiler configuration so that the native linker is
16287 *** used, and then restart.
16288
16289 _LT_EOF
16290 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16291 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16292 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16293 else
16294 ld_shlibs=no
16295 fi
16296 ;;
16297
16298 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16299 case `$LD -v 2>&1` in
16300 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16301 ld_shlibs=no
16302 cat <<_LT_EOF 1>&2
16303
16304 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16305 *** reliably create shared libraries on SCO systems. Therefore, libtool
16306 *** is disabling shared libraries support. We urge you to upgrade GNU
16307 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16308 *** your PATH or compiler configuration so that the native linker is
16309 *** used, and then restart.
16310
16311 _LT_EOF
16312 ;;
16313 *)
16314 # For security reasons, it is highly recommended that you always
16315 # use absolute paths for naming shared libraries, and exclude the
16316 # DT_RUNPATH tag from executables and libraries. But doing so
16317 # requires that you compile everything twice, which is a pain.
16318 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16319 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16320 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16321 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16322 else
16323 ld_shlibs=no
16324 fi
16325 ;;
16326 esac
16327 ;;
16328
16329 sunos4*)
16330 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16331 wlarc=
16332 hardcode_direct=yes
16333 hardcode_shlibpath_var=no
16334 ;;
16335
16336 *)
16337 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
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 else
16341 ld_shlibs=no
16342 fi
16343 ;;
16344 esac
16345
16346 if test "$ld_shlibs" = no; then
16347 runpath_var=
16348 hardcode_libdir_flag_spec=
16349 export_dynamic_flag_spec=
16350 whole_archive_flag_spec=
16351 fi
16352 else
16353 # PORTME fill in a description of your system's linker (not GNU ld)
16354 case $host_os in
16355 aix3*)
16356 allow_undefined_flag=unsupported
16357 always_export_symbols=yes
16358 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'
16359 # Note: this linker hardcodes the directories in LIBPATH if there
16360 # are no directories specified by -L.
16361 hardcode_minus_L=yes
16362 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16363 # Neither direct hardcoding nor static linking is supported with a
16364 # broken collect2.
16365 hardcode_direct=unsupported
16366 fi
16367 ;;
16368
16369 aix[4-9]*)
16370 if test "$host_cpu" = ia64; then
16371 # On IA64, the linker does run time linking by default, so we don't
16372 # have to do anything special.
16373 aix_use_runtimelinking=no
16374 exp_sym_flag='-Bexport'
16375 no_entry_flag=""
16376 else
16377 # If we're using GNU nm, then we don't want the "-C" option.
16378 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16379 # Also, AIX nm treats weak defined symbols like other global
16380 # defined symbols, whereas GNU nm marks them as "W".
16381 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16382 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'
16383 else
16384 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'
16385 fi
16386 aix_use_runtimelinking=no
16387
16388 # Test if we are trying to use run time linking or normal
16389 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16390 # need to do runtime linking.
16391 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16392 for ld_flag in $LDFLAGS; do
16393 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16394 aix_use_runtimelinking=yes
16395 break
16396 fi
16397 done
16398 ;;
16399 esac
16400
16401 exp_sym_flag='-bexport'
16402 no_entry_flag='-bnoentry'
16403 fi
16404
16405 # When large executables or shared objects are built, AIX ld can
16406 # have problems creating the table of contents. If linking a library
16407 # or program results in "error TOC overflow" add -mminimal-toc to
16408 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16409 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16410
16411 archive_cmds=''
16412 hardcode_direct=yes
16413 hardcode_direct_absolute=yes
16414 hardcode_libdir_separator=':'
16415 link_all_deplibs=yes
16416 file_list_spec='${wl}-f,'
16417
16418 if test "$GCC" = yes; then
16419 case $host_os in aix4.[012]|aix4.[012].*)
16420 # We only want to do this on AIX 4.2 and lower, the check
16421 # below for broken collect2 doesn't work under 4.3+
16422 collect2name=`${CC} -print-prog-name=collect2`
16423 if test -f "$collect2name" &&
16424 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16425 then
16426 # We have reworked collect2
16427 :
16428 else
16429 # We have old collect2
16430 hardcode_direct=unsupported
16431 # It fails to find uninstalled libraries when the uninstalled
16432 # path is not listed in the libpath. Setting hardcode_minus_L
16433 # to unsupported forces relinking
16434 hardcode_minus_L=yes
16435 hardcode_libdir_flag_spec='-L$libdir'
16436 hardcode_libdir_separator=
16437 fi
16438 ;;
16439 esac
16440 shared_flag='-shared'
16441 if test "$aix_use_runtimelinking" = yes; then
16442 shared_flag="$shared_flag "'${wl}-G'
16443 fi
16444 else
16445 # not using gcc
16446 if test "$host_cpu" = ia64; then
16447 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16448 # chokes on -Wl,-G. The following line is correct:
16449 shared_flag='-G'
16450 else
16451 if test "$aix_use_runtimelinking" = yes; then
16452 shared_flag='${wl}-G'
16453 else
16454 shared_flag='${wl}-bM:SRE'
16455 fi
16456 fi
16457 fi
16458
16459 export_dynamic_flag_spec='${wl}-bexpall'
16460 # It seems that -bexpall does not export symbols beginning with
16461 # underscore (_), so it is better to generate a list of symbols to export.
16462 always_export_symbols=yes
16463 if test "$aix_use_runtimelinking" = yes; then
16464 # Warning - without using the other runtime loading flags (-brtl),
16465 # -berok will link without error, but may produce a broken library.
16466 allow_undefined_flag='-berok'
16467 # Determine the default libpath from the value encoded in an
16468 # empty executable.
16469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16470 /* end confdefs.h. */
16471
16472 int
16473 main ()
16474 {
16475
16476 ;
16477 return 0;
16478 }
16479 _ACEOF
16480 if ac_fn_c_try_link "$LINENO"; then :
16481
16482 lt_aix_libpath_sed='
16483 /Import File Strings/,/^$/ {
16484 /^0/ {
16485 s/^0 *\(.*\)$/\1/
16486 p
16487 }
16488 }'
16489 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16490 # Check for a 64-bit object if we didn't find anything.
16491 if test -z "$aix_libpath"; then
16492 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16493 fi
16494 fi
16495 rm -f core conftest.err conftest.$ac_objext \
16496 conftest$ac_exeext conftest.$ac_ext
16497 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16498
16499 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16500 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"
16501 else
16502 if test "$host_cpu" = ia64; then
16503 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16504 allow_undefined_flag="-z nodefs"
16505 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"
16506 else
16507 # Determine the default libpath from the value encoded in an
16508 # empty executable.
16509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16510 /* end confdefs.h. */
16511
16512 int
16513 main ()
16514 {
16515
16516 ;
16517 return 0;
16518 }
16519 _ACEOF
16520 if ac_fn_c_try_link "$LINENO"; then :
16521
16522 lt_aix_libpath_sed='
16523 /Import File Strings/,/^$/ {
16524 /^0/ {
16525 s/^0 *\(.*\)$/\1/
16526 p
16527 }
16528 }'
16529 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16530 # Check for a 64-bit object if we didn't find anything.
16531 if test -z "$aix_libpath"; then
16532 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16533 fi
16534 fi
16535 rm -f core conftest.err conftest.$ac_objext \
16536 conftest$ac_exeext conftest.$ac_ext
16537 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16538
16539 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16540 # Warning - without using the other run time loading flags,
16541 # -berok will link without error, but may produce a broken library.
16542 no_undefined_flag=' ${wl}-bernotok'
16543 allow_undefined_flag=' ${wl}-berok'
16544 if test "$with_gnu_ld" = yes; then
16545 # We only use this code for GNU lds that support --whole-archive.
16546 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16547 else
16548 # Exported symbols can be pulled into shared objects from archives
16549 whole_archive_flag_spec='$convenience'
16550 fi
16551 archive_cmds_need_lc=yes
16552 # This is similar to how AIX traditionally builds its shared libraries.
16553 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'
16554 fi
16555 fi
16556 ;;
16557
16558 amigaos*)
16559 case $host_cpu in
16560 powerpc)
16561 # see comment about AmigaOS4 .so support
16562 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16563 archive_expsym_cmds=''
16564 ;;
16565 m68k)
16566 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)'
16567 hardcode_libdir_flag_spec='-L$libdir'
16568 hardcode_minus_L=yes
16569 ;;
16570 esac
16571 ;;
16572
16573 bsdi[45]*)
16574 export_dynamic_flag_spec=-rdynamic
16575 ;;
16576
16577 cygwin* | mingw* | pw32* | cegcc*)
16578 # When not using gcc, we currently assume that we are using
16579 # Microsoft Visual C++.
16580 # hardcode_libdir_flag_spec is actually meaningless, as there is
16581 # no search path for DLLs.
16582 hardcode_libdir_flag_spec=' '
16583 allow_undefined_flag=unsupported
16584 # Tell ltmain to make .lib files, not .a files.
16585 libext=lib
16586 # Tell ltmain to make .dll files, not .so files.
16587 shrext_cmds=".dll"
16588 # FIXME: Setting linknames here is a bad hack.
16589 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16590 # The linker will automatically build a .lib file if we build a DLL.
16591 old_archive_from_new_cmds='true'
16592 # FIXME: Should let the user specify the lib program.
16593 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16594 fix_srcfile_path='`cygpath -w "$srcfile"`'
16595 enable_shared_with_static_runtimes=yes
16596 ;;
16597
16598 darwin* | rhapsody*)
16599
16600
16601 archive_cmds_need_lc=no
16602 hardcode_direct=no
16603 hardcode_automatic=yes
16604 hardcode_shlibpath_var=unsupported
16605 if test "$lt_cv_ld_force_load" = "yes"; then
16606 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\"`'
16607 else
16608 whole_archive_flag_spec=''
16609 fi
16610 link_all_deplibs=yes
16611 allow_undefined_flag="$_lt_dar_allow_undefined"
16612 case $cc_basename in
16613 ifort*) _lt_dar_can_shared=yes ;;
16614 *) _lt_dar_can_shared=$GCC ;;
16615 esac
16616 if test "$_lt_dar_can_shared" = "yes"; then
16617 output_verbose_link_cmd=func_echo_all
16618 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16619 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16620 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}"
16621 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}"
16622
16623 else
16624 ld_shlibs=no
16625 fi
16626
16627 ;;
16628
16629 dgux*)
16630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16631 hardcode_libdir_flag_spec='-L$libdir'
16632 hardcode_shlibpath_var=no
16633 ;;
16634
16635 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16636 # support. Future versions do this automatically, but an explicit c++rt0.o
16637 # does not break anything, and helps significantly (at the cost of a little
16638 # extra space).
16639 freebsd2.2*)
16640 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16641 hardcode_libdir_flag_spec='-R$libdir'
16642 hardcode_direct=yes
16643 hardcode_shlibpath_var=no
16644 ;;
16645
16646 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16647 freebsd2.*)
16648 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16649 hardcode_direct=yes
16650 hardcode_minus_L=yes
16651 hardcode_shlibpath_var=no
16652 ;;
16653
16654 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16655 freebsd* | dragonfly*)
16656 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16657 hardcode_libdir_flag_spec='-R$libdir'
16658 hardcode_direct=yes
16659 hardcode_shlibpath_var=no
16660 ;;
16661
16662 hpux9*)
16663 if test "$GCC" = yes; then
16664 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'
16665 else
16666 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'
16667 fi
16668 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16669 hardcode_libdir_separator=:
16670 hardcode_direct=yes
16671
16672 # hardcode_minus_L: Not really in the search PATH,
16673 # but as the default location of the library.
16674 hardcode_minus_L=yes
16675 export_dynamic_flag_spec='${wl}-E'
16676 ;;
16677
16678 hpux10*)
16679 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16680 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16681 else
16682 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16683 fi
16684 if test "$with_gnu_ld" = no; then
16685 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16686 hardcode_libdir_flag_spec_ld='+b $libdir'
16687 hardcode_libdir_separator=:
16688 hardcode_direct=yes
16689 hardcode_direct_absolute=yes
16690 export_dynamic_flag_spec='${wl}-E'
16691 # hardcode_minus_L: Not really in the search PATH,
16692 # but as the default location of the library.
16693 hardcode_minus_L=yes
16694 fi
16695 ;;
16696
16697 hpux11*)
16698 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16699 case $host_cpu in
16700 hppa*64*)
16701 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16702 ;;
16703 ia64*)
16704 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16705 ;;
16706 *)
16707 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16708 ;;
16709 esac
16710 else
16711 case $host_cpu in
16712 hppa*64*)
16713 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16714 ;;
16715 ia64*)
16716 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16717 ;;
16718 *)
16719
16720 # Older versions of the 11.00 compiler do not understand -b yet
16721 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16723 $as_echo_n "checking if $CC understands -b... " >&6; }
16724 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16725 $as_echo_n "(cached) " >&6
16726 else
16727 lt_cv_prog_compiler__b=no
16728 save_LDFLAGS="$LDFLAGS"
16729 LDFLAGS="$LDFLAGS -b"
16730 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16731 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16732 # The linker can only warn and ignore the option if not recognized
16733 # So say no if there are warnings
16734 if test -s conftest.err; then
16735 # Append any errors to the config.log.
16736 cat conftest.err 1>&5
16737 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16738 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16739 if diff conftest.exp conftest.er2 >/dev/null; then
16740 lt_cv_prog_compiler__b=yes
16741 fi
16742 else
16743 lt_cv_prog_compiler__b=yes
16744 fi
16745 fi
16746 $RM -r conftest*
16747 LDFLAGS="$save_LDFLAGS"
16748
16749 fi
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16751 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16752
16753 if test x"$lt_cv_prog_compiler__b" = xyes; then
16754 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16755 else
16756 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16757 fi
16758
16759 ;;
16760 esac
16761 fi
16762 if test "$with_gnu_ld" = no; then
16763 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16764 hardcode_libdir_separator=:
16765
16766 case $host_cpu in
16767 hppa*64*|ia64*)
16768 hardcode_direct=no
16769 hardcode_shlibpath_var=no
16770 ;;
16771 *)
16772 hardcode_direct=yes
16773 hardcode_direct_absolute=yes
16774 export_dynamic_flag_spec='${wl}-E'
16775
16776 # hardcode_minus_L: Not really in the search PATH,
16777 # but as the default location of the library.
16778 hardcode_minus_L=yes
16779 ;;
16780 esac
16781 fi
16782 ;;
16783
16784 irix5* | irix6* | nonstopux*)
16785 if test "$GCC" = yes; then
16786 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'
16787 # Try to use the -exported_symbol ld option, if it does not
16788 # work, assume that -exports_file does not work either and
16789 # implicitly export all symbols.
16790 save_LDFLAGS="$LDFLAGS"
16791 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16793 /* end confdefs.h. */
16794 int foo(void) {}
16795 _ACEOF
16796 if ac_fn_c_try_link "$LINENO"; then :
16797 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'
16798
16799 fi
16800 rm -f core conftest.err conftest.$ac_objext \
16801 conftest$ac_exeext conftest.$ac_ext
16802 LDFLAGS="$save_LDFLAGS"
16803 else
16804 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'
16805 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'
16806 fi
16807 archive_cmds_need_lc='no'
16808 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16809 hardcode_libdir_separator=:
16810 inherit_rpath=yes
16811 link_all_deplibs=yes
16812 ;;
16813
16814 netbsd*)
16815 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16816 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16817 else
16818 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16819 fi
16820 hardcode_libdir_flag_spec='-R$libdir'
16821 hardcode_direct=yes
16822 hardcode_shlibpath_var=no
16823 ;;
16824
16825 newsos6)
16826 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16827 hardcode_direct=yes
16828 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16829 hardcode_libdir_separator=:
16830 hardcode_shlibpath_var=no
16831 ;;
16832
16833 *nto* | *qnx*)
16834 ;;
16835
16836 openbsd*)
16837 if test -f /usr/libexec/ld.so; then
16838 hardcode_direct=yes
16839 hardcode_shlibpath_var=no
16840 hardcode_direct_absolute=yes
16841 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16842 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16843 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16844 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16845 export_dynamic_flag_spec='${wl}-E'
16846 else
16847 case $host_os in
16848 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16849 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16850 hardcode_libdir_flag_spec='-R$libdir'
16851 ;;
16852 *)
16853 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16854 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16855 ;;
16856 esac
16857 fi
16858 else
16859 ld_shlibs=no
16860 fi
16861 ;;
16862
16863 os2*)
16864 hardcode_libdir_flag_spec='-L$libdir'
16865 hardcode_minus_L=yes
16866 allow_undefined_flag=unsupported
16867 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'
16868 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16869 ;;
16870
16871 osf3*)
16872 if test "$GCC" = yes; then
16873 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16874 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'
16875 else
16876 allow_undefined_flag=' -expect_unresolved \*'
16877 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'
16878 fi
16879 archive_cmds_need_lc='no'
16880 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16881 hardcode_libdir_separator=:
16882 ;;
16883
16884 osf4* | osf5*) # as osf3* with the addition of -msym flag
16885 if test "$GCC" = yes; then
16886 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16887 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'
16888 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16889 else
16890 allow_undefined_flag=' -expect_unresolved \*'
16891 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'
16892 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~
16893 $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'
16894
16895 # Both c and cxx compiler support -rpath directly
16896 hardcode_libdir_flag_spec='-rpath $libdir'
16897 fi
16898 archive_cmds_need_lc='no'
16899 hardcode_libdir_separator=:
16900 ;;
16901
16902 solaris*)
16903 no_undefined_flag=' -z defs'
16904 if test "$GCC" = yes; then
16905 wlarc='${wl}'
16906 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16907 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16908 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16909 else
16910 case `$CC -V 2>&1` in
16911 *"Compilers 5.0"*)
16912 wlarc=''
16913 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16914 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16915 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16916 ;;
16917 *)
16918 wlarc='${wl}'
16919 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16920 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16921 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16922 ;;
16923 esac
16924 fi
16925 hardcode_libdir_flag_spec='-R$libdir'
16926 hardcode_shlibpath_var=no
16927 case $host_os in
16928 solaris2.[0-5] | solaris2.[0-5].*) ;;
16929 *)
16930 # The compiler driver will combine and reorder linker options,
16931 # but understands `-z linker_flag'. GCC discards it without `$wl',
16932 # but is careful enough not to reorder.
16933 # Supported since Solaris 2.6 (maybe 2.5.1?)
16934 if test "$GCC" = yes; then
16935 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16936 else
16937 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16938 fi
16939 ;;
16940 esac
16941 link_all_deplibs=yes
16942 ;;
16943
16944 sunos4*)
16945 if test "x$host_vendor" = xsequent; then
16946 # Use $CC to link under sequent, because it throws in some extra .o
16947 # files that make .init and .fini sections work.
16948 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16949 else
16950 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16951 fi
16952 hardcode_libdir_flag_spec='-L$libdir'
16953 hardcode_direct=yes
16954 hardcode_minus_L=yes
16955 hardcode_shlibpath_var=no
16956 ;;
16957
16958 sysv4)
16959 case $host_vendor in
16960 sni)
16961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16962 hardcode_direct=yes # is this really true???
16963 ;;
16964 siemens)
16965 ## LD is ld it makes a PLAMLIB
16966 ## CC just makes a GrossModule.
16967 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16968 reload_cmds='$CC -r -o $output$reload_objs'
16969 hardcode_direct=no
16970 ;;
16971 motorola)
16972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16973 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16974 ;;
16975 esac
16976 runpath_var='LD_RUN_PATH'
16977 hardcode_shlibpath_var=no
16978 ;;
16979
16980 sysv4.3*)
16981 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16982 hardcode_shlibpath_var=no
16983 export_dynamic_flag_spec='-Bexport'
16984 ;;
16985
16986 sysv4*MP*)
16987 if test -d /usr/nec; then
16988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16989 hardcode_shlibpath_var=no
16990 runpath_var=LD_RUN_PATH
16991 hardcode_runpath_var=yes
16992 ld_shlibs=yes
16993 fi
16994 ;;
16995
16996 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16997 no_undefined_flag='${wl}-z,text'
16998 archive_cmds_need_lc=no
16999 hardcode_shlibpath_var=no
17000 runpath_var='LD_RUN_PATH'
17001
17002 if test "$GCC" = yes; then
17003 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17004 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17005 else
17006 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17007 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17008 fi
17009 ;;
17010
17011 sysv5* | sco3.2v5* | sco5v6*)
17012 # Note: We can NOT use -z defs as we might desire, because we do not
17013 # link with -lc, and that would cause any symbols used from libc to
17014 # always be unresolved, which means just about no library would
17015 # ever link correctly. If we're not using GNU ld we use -z text
17016 # though, which does catch some bad symbols but isn't as heavy-handed
17017 # as -z defs.
17018 no_undefined_flag='${wl}-z,text'
17019 allow_undefined_flag='${wl}-z,nodefs'
17020 archive_cmds_need_lc=no
17021 hardcode_shlibpath_var=no
17022 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17023 hardcode_libdir_separator=':'
17024 link_all_deplibs=yes
17025 export_dynamic_flag_spec='${wl}-Bexport'
17026 runpath_var='LD_RUN_PATH'
17027
17028 if test "$GCC" = yes; then
17029 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17030 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17031 else
17032 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17033 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17034 fi
17035 ;;
17036
17037 uts4*)
17038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17039 hardcode_libdir_flag_spec='-L$libdir'
17040 hardcode_shlibpath_var=no
17041 ;;
17042
17043 *)
17044 ld_shlibs=no
17045 ;;
17046 esac
17047
17048 if test x$host_vendor = xsni; then
17049 case $host in
17050 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17051 export_dynamic_flag_spec='${wl}-Blargedynsym'
17052 ;;
17053 esac
17054 fi
17055 fi
17056
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17058 $as_echo "$ld_shlibs" >&6; }
17059 test "$ld_shlibs" = no && can_build_shared=no
17060
17061 with_gnu_ld=$with_gnu_ld
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077 #
17078 # Do we need to explicitly link libc?
17079 #
17080 case "x$archive_cmds_need_lc" in
17081 x|xyes)
17082 # Assume -lc should be added
17083 archive_cmds_need_lc=yes
17084
17085 if test "$enable_shared" = yes && test "$GCC" = yes; then
17086 case $archive_cmds in
17087 *'~'*)
17088 # FIXME: we may have to deal with multi-command sequences.
17089 ;;
17090 '$CC '*)
17091 # Test whether the compiler implicitly links with -lc since on some
17092 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17093 # to ld, don't add -lc before -lgcc.
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17095 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17096 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17097 $as_echo_n "(cached) " >&6
17098 else
17099 $RM conftest*
17100 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17101
17102 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17103 (eval $ac_compile) 2>&5
17104 ac_status=$?
17105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17106 test $ac_status = 0; } 2>conftest.err; then
17107 soname=conftest
17108 lib=conftest
17109 libobjs=conftest.$ac_objext
17110 deplibs=
17111 wl=$lt_prog_compiler_wl
17112 pic_flag=$lt_prog_compiler_pic
17113 compiler_flags=-v
17114 linker_flags=-v
17115 verstring=
17116 output_objdir=.
17117 libname=conftest
17118 lt_save_allow_undefined_flag=$allow_undefined_flag
17119 allow_undefined_flag=
17120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17121 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17122 ac_status=$?
17123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17124 test $ac_status = 0; }
17125 then
17126 lt_cv_archive_cmds_need_lc=no
17127 else
17128 lt_cv_archive_cmds_need_lc=yes
17129 fi
17130 allow_undefined_flag=$lt_save_allow_undefined_flag
17131 else
17132 cat conftest.err 1>&5
17133 fi
17134 $RM conftest*
17135
17136 fi
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17138 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17139 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17140 ;;
17141 esac
17142 fi
17143 ;;
17144 esac
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17303 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17304
17305 if test "$GCC" = yes; then
17306 case $host_os in
17307 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17308 *) lt_awk_arg="/^libraries:/" ;;
17309 esac
17310 case $host_os in
17311 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17312 *) lt_sed_strip_eq="s,=/,/,g" ;;
17313 esac
17314 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17315 case $lt_search_path_spec in
17316 *\;*)
17317 # if the path contains ";" then we assume it to be the separator
17318 # otherwise default to the standard path separator (i.e. ":") - it is
17319 # assumed that no part of a normal pathname contains ";" but that should
17320 # okay in the real world where ";" in dirpaths is itself problematic.
17321 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17322 ;;
17323 *)
17324 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17325 ;;
17326 esac
17327 # Ok, now we have the path, separated by spaces, we can step through it
17328 # and add multilib dir if necessary.
17329 lt_tmp_lt_search_path_spec=
17330 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17331 for lt_sys_path in $lt_search_path_spec; do
17332 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17333 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17334 else
17335 test -d "$lt_sys_path" && \
17336 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17337 fi
17338 done
17339 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17340 BEGIN {RS=" "; FS="/|\n";} {
17341 lt_foo="";
17342 lt_count=0;
17343 for (lt_i = NF; lt_i > 0; lt_i--) {
17344 if ($lt_i != "" && $lt_i != ".") {
17345 if ($lt_i == "..") {
17346 lt_count++;
17347 } else {
17348 if (lt_count == 0) {
17349 lt_foo="/" $lt_i lt_foo;
17350 } else {
17351 lt_count--;
17352 }
17353 }
17354 }
17355 }
17356 if (lt_foo != "") { lt_freq[lt_foo]++; }
17357 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17358 }'`
17359 # AWK program above erroneously prepends '/' to C:/dos/paths
17360 # for these hosts.
17361 case $host_os in
17362 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17363 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17364 esac
17365 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17366 else
17367 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17368 fi
17369 library_names_spec=
17370 libname_spec='lib$name'
17371 soname_spec=
17372 shrext_cmds=".so"
17373 postinstall_cmds=
17374 postuninstall_cmds=
17375 finish_cmds=
17376 finish_eval=
17377 shlibpath_var=
17378 shlibpath_overrides_runpath=unknown
17379 version_type=none
17380 dynamic_linker="$host_os ld.so"
17381 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17382 need_lib_prefix=unknown
17383 hardcode_into_libs=no
17384
17385 # when you set need_version to no, make sure it does not cause -set_version
17386 # flags to be left without arguments
17387 need_version=unknown
17388
17389 case $host_os in
17390 aix3*)
17391 version_type=linux
17392 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17393 shlibpath_var=LIBPATH
17394
17395 # AIX 3 has no versioning support, so we append a major version to the name.
17396 soname_spec='${libname}${release}${shared_ext}$major'
17397 ;;
17398
17399 aix[4-9]*)
17400 version_type=linux
17401 need_lib_prefix=no
17402 need_version=no
17403 hardcode_into_libs=yes
17404 if test "$host_cpu" = ia64; then
17405 # AIX 5 supports IA64
17406 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17407 shlibpath_var=LD_LIBRARY_PATH
17408 else
17409 # With GCC up to 2.95.x, collect2 would create an import file
17410 # for dependence libraries. The import file would start with
17411 # the line `#! .'. This would cause the generated library to
17412 # depend on `.', always an invalid library. This was fixed in
17413 # development snapshots of GCC prior to 3.0.
17414 case $host_os in
17415 aix4 | aix4.[01] | aix4.[01].*)
17416 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17417 echo ' yes '
17418 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17419 :
17420 else
17421 can_build_shared=no
17422 fi
17423 ;;
17424 esac
17425 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17426 # soname into executable. Probably we can add versioning support to
17427 # collect2, so additional links can be useful in future.
17428 if test "$aix_use_runtimelinking" = yes; then
17429 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17430 # instead of lib<name>.a to let people know that these are not
17431 # typical AIX shared libraries.
17432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17433 else
17434 # We preserve .a as extension for shared libraries through AIX4.2
17435 # and later when we are not doing run time linking.
17436 library_names_spec='${libname}${release}.a $libname.a'
17437 soname_spec='${libname}${release}${shared_ext}$major'
17438 fi
17439 shlibpath_var=LIBPATH
17440 fi
17441 ;;
17442
17443 amigaos*)
17444 case $host_cpu in
17445 powerpc)
17446 # Since July 2007 AmigaOS4 officially supports .so libraries.
17447 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17449 ;;
17450 m68k)
17451 library_names_spec='$libname.ixlibrary $libname.a'
17452 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17453 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'
17454 ;;
17455 esac
17456 ;;
17457
17458 beos*)
17459 library_names_spec='${libname}${shared_ext}'
17460 dynamic_linker="$host_os ld.so"
17461 shlibpath_var=LIBRARY_PATH
17462 ;;
17463
17464 bsdi[45]*)
17465 version_type=linux
17466 need_version=no
17467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17468 soname_spec='${libname}${release}${shared_ext}$major'
17469 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17470 shlibpath_var=LD_LIBRARY_PATH
17471 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17472 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17473 # the default ld.so.conf also contains /usr/contrib/lib and
17474 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17475 # libtool to hard-code these into programs
17476 ;;
17477
17478 cygwin* | mingw* | pw32* | cegcc*)
17479 version_type=windows
17480 shrext_cmds=".dll"
17481 need_version=no
17482 need_lib_prefix=no
17483
17484 case $GCC,$host_os in
17485 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17486 library_names_spec='$libname.dll.a'
17487 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17488 postinstall_cmds='base_file=`basename \${file}`~
17489 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17490 dldir=$destdir/`dirname \$dlpath`~
17491 test -d \$dldir || mkdir -p \$dldir~
17492 $install_prog $dir/$dlname \$dldir/$dlname~
17493 chmod a+x \$dldir/$dlname~
17494 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17495 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17496 fi'
17497 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17498 dlpath=$dir/\$dldll~
17499 $RM \$dlpath'
17500 shlibpath_overrides_runpath=yes
17501
17502 case $host_os in
17503 cygwin*)
17504 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17505 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17506
17507 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17508 ;;
17509 mingw* | cegcc*)
17510 # MinGW DLLs use traditional 'lib' prefix
17511 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17512 ;;
17513 pw32*)
17514 # pw32 DLLs use 'pw' prefix rather than 'lib'
17515 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17516 ;;
17517 esac
17518 ;;
17519
17520 *)
17521 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17522 ;;
17523 esac
17524 dynamic_linker='Win32 ld.exe'
17525 # FIXME: first we should search . and the directory the executable is in
17526 shlibpath_var=PATH
17527 ;;
17528
17529 darwin* | rhapsody*)
17530 dynamic_linker="$host_os dyld"
17531 version_type=darwin
17532 need_lib_prefix=no
17533 need_version=no
17534 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17535 soname_spec='${libname}${release}${major}$shared_ext'
17536 shlibpath_overrides_runpath=yes
17537 shlibpath_var=DYLD_LIBRARY_PATH
17538 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17539
17540 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17541 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17542 ;;
17543
17544 dgux*)
17545 version_type=linux
17546 need_lib_prefix=no
17547 need_version=no
17548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17549 soname_spec='${libname}${release}${shared_ext}$major'
17550 shlibpath_var=LD_LIBRARY_PATH
17551 ;;
17552
17553 freebsd* | dragonfly*)
17554 # DragonFly does not have aout. When/if they implement a new
17555 # versioning mechanism, adjust this.
17556 if test -x /usr/bin/objformat; then
17557 objformat=`/usr/bin/objformat`
17558 else
17559 case $host_os in
17560 freebsd[23].*) objformat=aout ;;
17561 *) objformat=elf ;;
17562 esac
17563 fi
17564 version_type=freebsd-$objformat
17565 case $version_type in
17566 freebsd-elf*)
17567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17568 need_version=no
17569 need_lib_prefix=no
17570 ;;
17571 freebsd-*)
17572 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17573 need_version=yes
17574 ;;
17575 esac
17576 shlibpath_var=LD_LIBRARY_PATH
17577 case $host_os in
17578 freebsd2.*)
17579 shlibpath_overrides_runpath=yes
17580 ;;
17581 freebsd3.[01]* | freebsdelf3.[01]*)
17582 shlibpath_overrides_runpath=yes
17583 hardcode_into_libs=yes
17584 ;;
17585 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17586 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17587 shlibpath_overrides_runpath=no
17588 hardcode_into_libs=yes
17589 ;;
17590 *) # from 4.6 on, and DragonFly
17591 shlibpath_overrides_runpath=yes
17592 hardcode_into_libs=yes
17593 ;;
17594 esac
17595 ;;
17596
17597 gnu*)
17598 version_type=linux
17599 need_lib_prefix=no
17600 need_version=no
17601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17602 soname_spec='${libname}${release}${shared_ext}$major'
17603 shlibpath_var=LD_LIBRARY_PATH
17604 hardcode_into_libs=yes
17605 ;;
17606
17607 haiku*)
17608 version_type=linux
17609 need_lib_prefix=no
17610 need_version=no
17611 dynamic_linker="$host_os runtime_loader"
17612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17613 soname_spec='${libname}${release}${shared_ext}$major'
17614 shlibpath_var=LIBRARY_PATH
17615 shlibpath_overrides_runpath=yes
17616 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17617 hardcode_into_libs=yes
17618 ;;
17619
17620 hpux9* | hpux10* | hpux11*)
17621 # Give a soname corresponding to the major version so that dld.sl refuses to
17622 # link against other versions.
17623 version_type=sunos
17624 need_lib_prefix=no
17625 need_version=no
17626 case $host_cpu in
17627 ia64*)
17628 shrext_cmds='.so'
17629 hardcode_into_libs=yes
17630 dynamic_linker="$host_os dld.so"
17631 shlibpath_var=LD_LIBRARY_PATH
17632 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17634 soname_spec='${libname}${release}${shared_ext}$major'
17635 if test "X$HPUX_IA64_MODE" = X32; then
17636 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17637 else
17638 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17639 fi
17640 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17641 ;;
17642 hppa*64*)
17643 shrext_cmds='.sl'
17644 hardcode_into_libs=yes
17645 dynamic_linker="$host_os dld.sl"
17646 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17647 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17649 soname_spec='${libname}${release}${shared_ext}$major'
17650 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17651 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17652 ;;
17653 *)
17654 shrext_cmds='.sl'
17655 dynamic_linker="$host_os dld.sl"
17656 shlibpath_var=SHLIB_PATH
17657 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17659 soname_spec='${libname}${release}${shared_ext}$major'
17660 ;;
17661 esac
17662 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17663 postinstall_cmds='chmod 555 $lib'
17664 # or fails outright, so override atomically:
17665 install_override_mode=555
17666 ;;
17667
17668 interix[3-9]*)
17669 version_type=linux
17670 need_lib_prefix=no
17671 need_version=no
17672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17673 soname_spec='${libname}${release}${shared_ext}$major'
17674 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17675 shlibpath_var=LD_LIBRARY_PATH
17676 shlibpath_overrides_runpath=no
17677 hardcode_into_libs=yes
17678 ;;
17679
17680 irix5* | irix6* | nonstopux*)
17681 case $host_os in
17682 nonstopux*) version_type=nonstopux ;;
17683 *)
17684 if test "$lt_cv_prog_gnu_ld" = yes; then
17685 version_type=linux
17686 else
17687 version_type=irix
17688 fi ;;
17689 esac
17690 need_lib_prefix=no
17691 need_version=no
17692 soname_spec='${libname}${release}${shared_ext}$major'
17693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17694 case $host_os in
17695 irix5* | nonstopux*)
17696 libsuff= shlibsuff=
17697 ;;
17698 *)
17699 case $LD in # libtool.m4 will add one of these switches to LD
17700 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17701 libsuff= shlibsuff= libmagic=32-bit;;
17702 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17703 libsuff=32 shlibsuff=N32 libmagic=N32;;
17704 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17705 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17706 *) libsuff= shlibsuff= libmagic=never-match;;
17707 esac
17708 ;;
17709 esac
17710 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17711 shlibpath_overrides_runpath=no
17712 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17713 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17714 hardcode_into_libs=yes
17715 ;;
17716
17717 # No shared lib support for Linux oldld, aout, or coff.
17718 linux*oldld* | linux*aout* | linux*coff*)
17719 dynamic_linker=no
17720 ;;
17721
17722 # This must be Linux ELF.
17723 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17724 version_type=linux
17725 need_lib_prefix=no
17726 need_version=no
17727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17728 soname_spec='${libname}${release}${shared_ext}$major'
17729 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17730 shlibpath_var=LD_LIBRARY_PATH
17731 shlibpath_overrides_runpath=no
17732
17733 # Some binutils ld are patched to set DT_RUNPATH
17734 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17735 $as_echo_n "(cached) " >&6
17736 else
17737 lt_cv_shlibpath_overrides_runpath=no
17738 save_LDFLAGS=$LDFLAGS
17739 save_libdir=$libdir
17740 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17741 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17743 /* end confdefs.h. */
17744
17745 int
17746 main ()
17747 {
17748
17749 ;
17750 return 0;
17751 }
17752 _ACEOF
17753 if ac_fn_c_try_link "$LINENO"; then :
17754 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17755 lt_cv_shlibpath_overrides_runpath=yes
17756 fi
17757 fi
17758 rm -f core conftest.err conftest.$ac_objext \
17759 conftest$ac_exeext conftest.$ac_ext
17760 LDFLAGS=$save_LDFLAGS
17761 libdir=$save_libdir
17762
17763 fi
17764
17765 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17766
17767 # This implies no fast_install, which is unacceptable.
17768 # Some rework will be needed to allow for fast_install
17769 # before this can be enabled.
17770 hardcode_into_libs=yes
17771
17772 # Append ld.so.conf contents to the search path
17773 if test -f /etc/ld.so.conf; then
17774 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' ' '`
17775 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17776 fi
17777
17778 # We used to test for /lib/ld.so.1 and disable shared libraries on
17779 # powerpc, because MkLinux only supported shared libraries with the
17780 # GNU dynamic linker. Since this was broken with cross compilers,
17781 # most powerpc-linux boxes support dynamic linking these days and
17782 # people can always --disable-shared, the test was removed, and we
17783 # assume the GNU/Linux dynamic linker is in use.
17784 dynamic_linker='GNU/Linux ld.so'
17785 ;;
17786
17787 netbsd*)
17788 version_type=sunos
17789 need_lib_prefix=no
17790 need_version=no
17791 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17793 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17794 dynamic_linker='NetBSD (a.out) ld.so'
17795 else
17796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17797 soname_spec='${libname}${release}${shared_ext}$major'
17798 dynamic_linker='NetBSD ld.elf_so'
17799 fi
17800 shlibpath_var=LD_LIBRARY_PATH
17801 shlibpath_overrides_runpath=yes
17802 hardcode_into_libs=yes
17803 ;;
17804
17805 newsos6)
17806 version_type=linux
17807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17808 shlibpath_var=LD_LIBRARY_PATH
17809 shlibpath_overrides_runpath=yes
17810 ;;
17811
17812 *nto* | *qnx*)
17813 version_type=qnx
17814 need_lib_prefix=no
17815 need_version=no
17816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17817 soname_spec='${libname}${release}${shared_ext}$major'
17818 shlibpath_var=LD_LIBRARY_PATH
17819 shlibpath_overrides_runpath=no
17820 hardcode_into_libs=yes
17821 dynamic_linker='ldqnx.so'
17822 ;;
17823
17824 openbsd*)
17825 version_type=sunos
17826 sys_lib_dlsearch_path_spec="/usr/lib"
17827 need_lib_prefix=no
17828 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17829 case $host_os in
17830 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17831 *) need_version=no ;;
17832 esac
17833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17834 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17835 shlibpath_var=LD_LIBRARY_PATH
17836 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17837 case $host_os in
17838 openbsd2.[89] | openbsd2.[89].*)
17839 shlibpath_overrides_runpath=no
17840 ;;
17841 *)
17842 shlibpath_overrides_runpath=yes
17843 ;;
17844 esac
17845 else
17846 shlibpath_overrides_runpath=yes
17847 fi
17848 ;;
17849
17850 os2*)
17851 libname_spec='$name'
17852 shrext_cmds=".dll"
17853 need_lib_prefix=no
17854 library_names_spec='$libname${shared_ext} $libname.a'
17855 dynamic_linker='OS/2 ld.exe'
17856 shlibpath_var=LIBPATH
17857 ;;
17858
17859 osf3* | osf4* | osf5*)
17860 version_type=osf
17861 need_lib_prefix=no
17862 need_version=no
17863 soname_spec='${libname}${release}${shared_ext}$major'
17864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17865 shlibpath_var=LD_LIBRARY_PATH
17866 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17867 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17868 ;;
17869
17870 rdos*)
17871 dynamic_linker=no
17872 ;;
17873
17874 solaris*)
17875 version_type=linux
17876 need_lib_prefix=no
17877 need_version=no
17878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17879 soname_spec='${libname}${release}${shared_ext}$major'
17880 shlibpath_var=LD_LIBRARY_PATH
17881 shlibpath_overrides_runpath=yes
17882 hardcode_into_libs=yes
17883 # ldd complains unless libraries are executable
17884 postinstall_cmds='chmod +x $lib'
17885 ;;
17886
17887 sunos4*)
17888 version_type=sunos
17889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17890 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17891 shlibpath_var=LD_LIBRARY_PATH
17892 shlibpath_overrides_runpath=yes
17893 if test "$with_gnu_ld" = yes; then
17894 need_lib_prefix=no
17895 fi
17896 need_version=yes
17897 ;;
17898
17899 sysv4 | sysv4.3*)
17900 version_type=linux
17901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17902 soname_spec='${libname}${release}${shared_ext}$major'
17903 shlibpath_var=LD_LIBRARY_PATH
17904 case $host_vendor in
17905 sni)
17906 shlibpath_overrides_runpath=no
17907 need_lib_prefix=no
17908 runpath_var=LD_RUN_PATH
17909 ;;
17910 siemens)
17911 need_lib_prefix=no
17912 ;;
17913 motorola)
17914 need_lib_prefix=no
17915 need_version=no
17916 shlibpath_overrides_runpath=no
17917 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17918 ;;
17919 esac
17920 ;;
17921
17922 sysv4*MP*)
17923 if test -d /usr/nec ;then
17924 version_type=linux
17925 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17926 soname_spec='$libname${shared_ext}.$major'
17927 shlibpath_var=LD_LIBRARY_PATH
17928 fi
17929 ;;
17930
17931 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17932 version_type=freebsd-elf
17933 need_lib_prefix=no
17934 need_version=no
17935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17936 soname_spec='${libname}${release}${shared_ext}$major'
17937 shlibpath_var=LD_LIBRARY_PATH
17938 shlibpath_overrides_runpath=yes
17939 hardcode_into_libs=yes
17940 if test "$with_gnu_ld" = yes; then
17941 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17942 else
17943 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17944 case $host_os in
17945 sco3.2v5*)
17946 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17947 ;;
17948 esac
17949 fi
17950 sys_lib_dlsearch_path_spec='/usr/lib'
17951 ;;
17952
17953 tpf*)
17954 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17955 version_type=linux
17956 need_lib_prefix=no
17957 need_version=no
17958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17959 shlibpath_var=LD_LIBRARY_PATH
17960 shlibpath_overrides_runpath=no
17961 hardcode_into_libs=yes
17962 ;;
17963
17964 uts4*)
17965 version_type=linux
17966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17967 soname_spec='${libname}${release}${shared_ext}$major'
17968 shlibpath_var=LD_LIBRARY_PATH
17969 ;;
17970
17971 *)
17972 dynamic_linker=no
17973 ;;
17974 esac
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17976 $as_echo "$dynamic_linker" >&6; }
17977 test "$dynamic_linker" = no && can_build_shared=no
17978
17979 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17980 if test "$GCC" = yes; then
17981 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17982 fi
17983
17984 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17985 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17986 fi
17987 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17988 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17989 fi
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18083 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18084 hardcode_action=
18085 if test -n "$hardcode_libdir_flag_spec" ||
18086 test -n "$runpath_var" ||
18087 test "X$hardcode_automatic" = "Xyes" ; then
18088
18089 # We can hardcode non-existent directories.
18090 if test "$hardcode_direct" != no &&
18091 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18092 # have to relink, otherwise we might link with an installed library
18093 # when we should be linking with a yet-to-be-installed one
18094 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18095 test "$hardcode_minus_L" != no; then
18096 # Linking always hardcodes the temporary library directory.
18097 hardcode_action=relink
18098 else
18099 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18100 hardcode_action=immediate
18101 fi
18102 else
18103 # We cannot hardcode anything, or else we can only hardcode existing
18104 # directories.
18105 hardcode_action=unsupported
18106 fi
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18108 $as_echo "$hardcode_action" >&6; }
18109
18110 if test "$hardcode_action" = relink ||
18111 test "$inherit_rpath" = yes; then
18112 # Fast installation is not supported
18113 enable_fast_install=no
18114 elif test "$shlibpath_overrides_runpath" = yes ||
18115 test "$enable_shared" = no; then
18116 # Fast installation is not necessary
18117 enable_fast_install=needless
18118 fi
18119
18120
18121
18122
18123
18124
18125 if test "x$enable_dlopen" != xyes; then
18126 enable_dlopen=unknown
18127 enable_dlopen_self=unknown
18128 enable_dlopen_self_static=unknown
18129 else
18130 lt_cv_dlopen=no
18131 lt_cv_dlopen_libs=
18132
18133 case $host_os in
18134 beos*)
18135 lt_cv_dlopen="load_add_on"
18136 lt_cv_dlopen_libs=
18137 lt_cv_dlopen_self=yes
18138 ;;
18139
18140 mingw* | pw32* | cegcc*)
18141 lt_cv_dlopen="LoadLibrary"
18142 lt_cv_dlopen_libs=
18143 ;;
18144
18145 cygwin*)
18146 lt_cv_dlopen="dlopen"
18147 lt_cv_dlopen_libs=
18148 ;;
18149
18150 darwin*)
18151 # if libdl is installed we need to link against it
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18153 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18154 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18155 $as_echo_n "(cached) " >&6
18156 else
18157 ac_check_lib_save_LIBS=$LIBS
18158 LIBS="-ldl $LIBS"
18159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18160 /* end confdefs.h. */
18161
18162 /* Override any GCC internal prototype to avoid an error.
18163 Use char because int might match the return type of a GCC
18164 builtin and then its argument prototype would still apply. */
18165 #ifdef __cplusplus
18166 extern "C"
18167 #endif
18168 char dlopen ();
18169 int
18170 main ()
18171 {
18172 return dlopen ();
18173 ;
18174 return 0;
18175 }
18176 _ACEOF
18177 if ac_fn_c_try_link "$LINENO"; then :
18178 ac_cv_lib_dl_dlopen=yes
18179 else
18180 ac_cv_lib_dl_dlopen=no
18181 fi
18182 rm -f core conftest.err conftest.$ac_objext \
18183 conftest$ac_exeext conftest.$ac_ext
18184 LIBS=$ac_check_lib_save_LIBS
18185 fi
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18187 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18188 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18189 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18190 else
18191
18192 lt_cv_dlopen="dyld"
18193 lt_cv_dlopen_libs=
18194 lt_cv_dlopen_self=yes
18195
18196 fi
18197
18198 ;;
18199
18200 *)
18201 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18202 if test "x$ac_cv_func_shl_load" = x""yes; then :
18203 lt_cv_dlopen="shl_load"
18204 else
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18206 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18207 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18208 $as_echo_n "(cached) " >&6
18209 else
18210 ac_check_lib_save_LIBS=$LIBS
18211 LIBS="-ldld $LIBS"
18212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18213 /* end confdefs.h. */
18214
18215 /* Override any GCC internal prototype to avoid an error.
18216 Use char because int might match the return type of a GCC
18217 builtin and then its argument prototype would still apply. */
18218 #ifdef __cplusplus
18219 extern "C"
18220 #endif
18221 char shl_load ();
18222 int
18223 main ()
18224 {
18225 return shl_load ();
18226 ;
18227 return 0;
18228 }
18229 _ACEOF
18230 if ac_fn_c_try_link "$LINENO"; then :
18231 ac_cv_lib_dld_shl_load=yes
18232 else
18233 ac_cv_lib_dld_shl_load=no
18234 fi
18235 rm -f core conftest.err conftest.$ac_objext \
18236 conftest$ac_exeext conftest.$ac_ext
18237 LIBS=$ac_check_lib_save_LIBS
18238 fi
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18240 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18241 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18242 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18243 else
18244 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18245 if test "x$ac_cv_func_dlopen" = x""yes; then :
18246 lt_cv_dlopen="dlopen"
18247 else
18248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18249 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18250 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18251 $as_echo_n "(cached) " >&6
18252 else
18253 ac_check_lib_save_LIBS=$LIBS
18254 LIBS="-ldl $LIBS"
18255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18256 /* end confdefs.h. */
18257
18258 /* Override any GCC internal prototype to avoid an error.
18259 Use char because int might match the return type of a GCC
18260 builtin and then its argument prototype would still apply. */
18261 #ifdef __cplusplus
18262 extern "C"
18263 #endif
18264 char dlopen ();
18265 int
18266 main ()
18267 {
18268 return dlopen ();
18269 ;
18270 return 0;
18271 }
18272 _ACEOF
18273 if ac_fn_c_try_link "$LINENO"; then :
18274 ac_cv_lib_dl_dlopen=yes
18275 else
18276 ac_cv_lib_dl_dlopen=no
18277 fi
18278 rm -f core conftest.err conftest.$ac_objext \
18279 conftest$ac_exeext conftest.$ac_ext
18280 LIBS=$ac_check_lib_save_LIBS
18281 fi
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18283 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18284 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18285 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18286 else
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18288 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18289 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18290 $as_echo_n "(cached) " >&6
18291 else
18292 ac_check_lib_save_LIBS=$LIBS
18293 LIBS="-lsvld $LIBS"
18294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18295 /* end confdefs.h. */
18296
18297 /* Override any GCC internal prototype to avoid an error.
18298 Use char because int might match the return type of a GCC
18299 builtin and then its argument prototype would still apply. */
18300 #ifdef __cplusplus
18301 extern "C"
18302 #endif
18303 char dlopen ();
18304 int
18305 main ()
18306 {
18307 return dlopen ();
18308 ;
18309 return 0;
18310 }
18311 _ACEOF
18312 if ac_fn_c_try_link "$LINENO"; then :
18313 ac_cv_lib_svld_dlopen=yes
18314 else
18315 ac_cv_lib_svld_dlopen=no
18316 fi
18317 rm -f core conftest.err conftest.$ac_objext \
18318 conftest$ac_exeext conftest.$ac_ext
18319 LIBS=$ac_check_lib_save_LIBS
18320 fi
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18322 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18323 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18324 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18325 else
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18327 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18328 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18329 $as_echo_n "(cached) " >&6
18330 else
18331 ac_check_lib_save_LIBS=$LIBS
18332 LIBS="-ldld $LIBS"
18333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18334 /* end confdefs.h. */
18335
18336 /* Override any GCC internal prototype to avoid an error.
18337 Use char because int might match the return type of a GCC
18338 builtin and then its argument prototype would still apply. */
18339 #ifdef __cplusplus
18340 extern "C"
18341 #endif
18342 char dld_link ();
18343 int
18344 main ()
18345 {
18346 return dld_link ();
18347 ;
18348 return 0;
18349 }
18350 _ACEOF
18351 if ac_fn_c_try_link "$LINENO"; then :
18352 ac_cv_lib_dld_dld_link=yes
18353 else
18354 ac_cv_lib_dld_dld_link=no
18355 fi
18356 rm -f core conftest.err conftest.$ac_objext \
18357 conftest$ac_exeext conftest.$ac_ext
18358 LIBS=$ac_check_lib_save_LIBS
18359 fi
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18361 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18362 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18363 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18364 fi
18365
18366
18367 fi
18368
18369
18370 fi
18371
18372
18373 fi
18374
18375
18376 fi
18377
18378
18379 fi
18380
18381 ;;
18382 esac
18383
18384 if test "x$lt_cv_dlopen" != xno; then
18385 enable_dlopen=yes
18386 else
18387 enable_dlopen=no
18388 fi
18389
18390 case $lt_cv_dlopen in
18391 dlopen)
18392 save_CPPFLAGS="$CPPFLAGS"
18393 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18394
18395 save_LDFLAGS="$LDFLAGS"
18396 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18397
18398 save_LIBS="$LIBS"
18399 LIBS="$lt_cv_dlopen_libs $LIBS"
18400
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18402 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18403 if test "${lt_cv_dlopen_self+set}" = set; then :
18404 $as_echo_n "(cached) " >&6
18405 else
18406 if test "$cross_compiling" = yes; then :
18407 lt_cv_dlopen_self=cross
18408 else
18409 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18410 lt_status=$lt_dlunknown
18411 cat > conftest.$ac_ext <<_LT_EOF
18412 #line 18417 "configure"
18413 #include "confdefs.h"
18414
18415 #if HAVE_DLFCN_H
18416 #include <dlfcn.h>
18417 #endif
18418
18419 #include <stdio.h>
18420
18421 #ifdef RTLD_GLOBAL
18422 # define LT_DLGLOBAL RTLD_GLOBAL
18423 #else
18424 # ifdef DL_GLOBAL
18425 # define LT_DLGLOBAL DL_GLOBAL
18426 # else
18427 # define LT_DLGLOBAL 0
18428 # endif
18429 #endif
18430
18431 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18432 find out it does not work in some platform. */
18433 #ifndef LT_DLLAZY_OR_NOW
18434 # ifdef RTLD_LAZY
18435 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18436 # else
18437 # ifdef DL_LAZY
18438 # define LT_DLLAZY_OR_NOW DL_LAZY
18439 # else
18440 # ifdef RTLD_NOW
18441 # define LT_DLLAZY_OR_NOW RTLD_NOW
18442 # else
18443 # ifdef DL_NOW
18444 # define LT_DLLAZY_OR_NOW DL_NOW
18445 # else
18446 # define LT_DLLAZY_OR_NOW 0
18447 # endif
18448 # endif
18449 # endif
18450 # endif
18451 #endif
18452
18453 /* When -fvisbility=hidden is used, assume the code has been annotated
18454 correspondingly for the symbols needed. */
18455 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18456 void fnord () __attribute__((visibility("default")));
18457 #endif
18458
18459 void fnord () { int i=42; }
18460 int main ()
18461 {
18462 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18463 int status = $lt_dlunknown;
18464
18465 if (self)
18466 {
18467 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18468 else
18469 {
18470 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18471 else puts (dlerror ());
18472 }
18473 /* dlclose (self); */
18474 }
18475 else
18476 puts (dlerror ());
18477
18478 return status;
18479 }
18480 _LT_EOF
18481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18482 (eval $ac_link) 2>&5
18483 ac_status=$?
18484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18485 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18486 (./conftest; exit; ) >&5 2>/dev/null
18487 lt_status=$?
18488 case x$lt_status in
18489 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18490 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18491 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18492 esac
18493 else :
18494 # compilation failed
18495 lt_cv_dlopen_self=no
18496 fi
18497 fi
18498 rm -fr conftest*
18499
18500
18501 fi
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18503 $as_echo "$lt_cv_dlopen_self" >&6; }
18504
18505 if test "x$lt_cv_dlopen_self" = xyes; then
18506 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18508 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18509 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18510 $as_echo_n "(cached) " >&6
18511 else
18512 if test "$cross_compiling" = yes; then :
18513 lt_cv_dlopen_self_static=cross
18514 else
18515 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18516 lt_status=$lt_dlunknown
18517 cat > conftest.$ac_ext <<_LT_EOF
18518 #line 18523 "configure"
18519 #include "confdefs.h"
18520
18521 #if HAVE_DLFCN_H
18522 #include <dlfcn.h>
18523 #endif
18524
18525 #include <stdio.h>
18526
18527 #ifdef RTLD_GLOBAL
18528 # define LT_DLGLOBAL RTLD_GLOBAL
18529 #else
18530 # ifdef DL_GLOBAL
18531 # define LT_DLGLOBAL DL_GLOBAL
18532 # else
18533 # define LT_DLGLOBAL 0
18534 # endif
18535 #endif
18536
18537 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18538 find out it does not work in some platform. */
18539 #ifndef LT_DLLAZY_OR_NOW
18540 # ifdef RTLD_LAZY
18541 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18542 # else
18543 # ifdef DL_LAZY
18544 # define LT_DLLAZY_OR_NOW DL_LAZY
18545 # else
18546 # ifdef RTLD_NOW
18547 # define LT_DLLAZY_OR_NOW RTLD_NOW
18548 # else
18549 # ifdef DL_NOW
18550 # define LT_DLLAZY_OR_NOW DL_NOW
18551 # else
18552 # define LT_DLLAZY_OR_NOW 0
18553 # endif
18554 # endif
18555 # endif
18556 # endif
18557 #endif
18558
18559 /* When -fvisbility=hidden is used, assume the code has been annotated
18560 correspondingly for the symbols needed. */
18561 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18562 void fnord () __attribute__((visibility("default")));
18563 #endif
18564
18565 void fnord () { int i=42; }
18566 int main ()
18567 {
18568 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18569 int status = $lt_dlunknown;
18570
18571 if (self)
18572 {
18573 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18574 else
18575 {
18576 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18577 else puts (dlerror ());
18578 }
18579 /* dlclose (self); */
18580 }
18581 else
18582 puts (dlerror ());
18583
18584 return status;
18585 }
18586 _LT_EOF
18587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18588 (eval $ac_link) 2>&5
18589 ac_status=$?
18590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18591 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18592 (./conftest; exit; ) >&5 2>/dev/null
18593 lt_status=$?
18594 case x$lt_status in
18595 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18596 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18597 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18598 esac
18599 else :
18600 # compilation failed
18601 lt_cv_dlopen_self_static=no
18602 fi
18603 fi
18604 rm -fr conftest*
18605
18606
18607 fi
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18609 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18610 fi
18611
18612 CPPFLAGS="$save_CPPFLAGS"
18613 LDFLAGS="$save_LDFLAGS"
18614 LIBS="$save_LIBS"
18615 ;;
18616 esac
18617
18618 case $lt_cv_dlopen_self in
18619 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18620 *) enable_dlopen_self=unknown ;;
18621 esac
18622
18623 case $lt_cv_dlopen_self_static in
18624 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18625 *) enable_dlopen_self_static=unknown ;;
18626 esac
18627 fi
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645 striplib=
18646 old_striplib=
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18648 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18649 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18650 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18651 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18653 $as_echo "yes" >&6; }
18654 else
18655 # FIXME - insert some real tests, host_os isn't really good enough
18656 case $host_os in
18657 darwin*)
18658 if test -n "$STRIP" ; then
18659 striplib="$STRIP -x"
18660 old_striplib="$STRIP -S"
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18662 $as_echo "yes" >&6; }
18663 else
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18665 $as_echo "no" >&6; }
18666 fi
18667 ;;
18668 *)
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18670 $as_echo "no" >&6; }
18671 ;;
18672 esac
18673 fi
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686 # Report which library types will actually be built
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18688 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18690 $as_echo "$can_build_shared" >&6; }
18691
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18693 $as_echo_n "checking whether to build shared libraries... " >&6; }
18694 test "$can_build_shared" = "no" && enable_shared=no
18695
18696 # On AIX, shared libraries and static libraries use the same namespace, and
18697 # are all built from PIC.
18698 case $host_os in
18699 aix3*)
18700 test "$enable_shared" = yes && enable_static=no
18701 if test -n "$RANLIB"; then
18702 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18703 postinstall_cmds='$RANLIB $lib'
18704 fi
18705 ;;
18706
18707 aix[4-9]*)
18708 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18709 test "$enable_shared" = yes && enable_static=no
18710 fi
18711 ;;
18712 esac
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18714 $as_echo "$enable_shared" >&6; }
18715
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18717 $as_echo_n "checking whether to build static libraries... " >&6; }
18718 # Make sure either enable_shared or enable_static is yes.
18719 test "$enable_shared" = yes || enable_static=yes
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18721 $as_echo "$enable_static" >&6; }
18722
18723
18724
18725
18726 fi
18727 ac_ext=cpp
18728 ac_cpp='$CXXCPP $CPPFLAGS'
18729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18732
18733 CC="$lt_save_CC"
18734
18735 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18736 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18737 (test "X$CXX" != "Xg++"))) ; then
18738 ac_ext=cpp
18739 ac_cpp='$CXXCPP $CPPFLAGS'
18740 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18741 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18742 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18744 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18745 if test -z "$CXXCPP"; then
18746 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18747 $as_echo_n "(cached) " >&6
18748 else
18749 # Double quotes because CXXCPP needs to be expanded
18750 for CXXCPP in "$CXX -E" "/lib/cpp"
18751 do
18752 ac_preproc_ok=false
18753 for ac_cxx_preproc_warn_flag in '' yes
18754 do
18755 # Use a header file that comes with gcc, so configuring glibc
18756 # with a fresh cross-compiler works.
18757 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18758 # <limits.h> exists even on freestanding compilers.
18759 # On the NeXT, cc -E runs the code through the compiler's parser,
18760 # not just through cpp. "Syntax error" is here to catch this case.
18761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18762 /* end confdefs.h. */
18763 #ifdef __STDC__
18764 # include <limits.h>
18765 #else
18766 # include <assert.h>
18767 #endif
18768 Syntax error
18769 _ACEOF
18770 if ac_fn_cxx_try_cpp "$LINENO"; then :
18771
18772 else
18773 # Broken: fails on valid input.
18774 continue
18775 fi
18776 rm -f conftest.err conftest.$ac_ext
18777
18778 # OK, works on sane cases. Now check whether nonexistent headers
18779 # can be detected and how.
18780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18781 /* end confdefs.h. */
18782 #include <ac_nonexistent.h>
18783 _ACEOF
18784 if ac_fn_cxx_try_cpp "$LINENO"; then :
18785 # Broken: success on invalid input.
18786 continue
18787 else
18788 # Passes both tests.
18789 ac_preproc_ok=:
18790 break
18791 fi
18792 rm -f conftest.err conftest.$ac_ext
18793
18794 done
18795 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18796 rm -f conftest.err conftest.$ac_ext
18797 if $ac_preproc_ok; then :
18798 break
18799 fi
18800
18801 done
18802 ac_cv_prog_CXXCPP=$CXXCPP
18803
18804 fi
18805 CXXCPP=$ac_cv_prog_CXXCPP
18806 else
18807 ac_cv_prog_CXXCPP=$CXXCPP
18808 fi
18809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18810 $as_echo "$CXXCPP" >&6; }
18811 ac_preproc_ok=false
18812 for ac_cxx_preproc_warn_flag in '' yes
18813 do
18814 # Use a header file that comes with gcc, so configuring glibc
18815 # with a fresh cross-compiler works.
18816 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18817 # <limits.h> exists even on freestanding compilers.
18818 # On the NeXT, cc -E runs the code through the compiler's parser,
18819 # not just through cpp. "Syntax error" is here to catch this case.
18820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18821 /* end confdefs.h. */
18822 #ifdef __STDC__
18823 # include <limits.h>
18824 #else
18825 # include <assert.h>
18826 #endif
18827 Syntax error
18828 _ACEOF
18829 if ac_fn_cxx_try_cpp "$LINENO"; then :
18830
18831 else
18832 # Broken: fails on valid input.
18833 continue
18834 fi
18835 rm -f conftest.err conftest.$ac_ext
18836
18837 # OK, works on sane cases. Now check whether nonexistent headers
18838 # can be detected and how.
18839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18840 /* end confdefs.h. */
18841 #include <ac_nonexistent.h>
18842 _ACEOF
18843 if ac_fn_cxx_try_cpp "$LINENO"; then :
18844 # Broken: success on invalid input.
18845 continue
18846 else
18847 # Passes both tests.
18848 ac_preproc_ok=:
18849 break
18850 fi
18851 rm -f conftest.err conftest.$ac_ext
18852
18853 done
18854 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18855 rm -f conftest.err conftest.$ac_ext
18856 if $ac_preproc_ok; then :
18857
18858 else
18859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18861 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18862 See \`config.log' for more details." "$LINENO" 5; }
18863 fi
18864
18865 ac_ext=cpp
18866 ac_cpp='$CXXCPP $CPPFLAGS'
18867 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18868 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18869 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18870
18871 else
18872 _lt_caught_CXX_error=yes
18873 fi
18874
18875 ac_ext=cpp
18876 ac_cpp='$CXXCPP $CPPFLAGS'
18877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18880
18881 archive_cmds_need_lc_CXX=no
18882 allow_undefined_flag_CXX=
18883 always_export_symbols_CXX=no
18884 archive_expsym_cmds_CXX=
18885 compiler_needs_object_CXX=no
18886 export_dynamic_flag_spec_CXX=
18887 hardcode_direct_CXX=no
18888 hardcode_direct_absolute_CXX=no
18889 hardcode_libdir_flag_spec_CXX=
18890 hardcode_libdir_flag_spec_ld_CXX=
18891 hardcode_libdir_separator_CXX=
18892 hardcode_minus_L_CXX=no
18893 hardcode_shlibpath_var_CXX=unsupported
18894 hardcode_automatic_CXX=no
18895 inherit_rpath_CXX=no
18896 module_cmds_CXX=
18897 module_expsym_cmds_CXX=
18898 link_all_deplibs_CXX=unknown
18899 old_archive_cmds_CXX=$old_archive_cmds
18900 reload_flag_CXX=$reload_flag
18901 reload_cmds_CXX=$reload_cmds
18902 no_undefined_flag_CXX=
18903 whole_archive_flag_spec_CXX=
18904 enable_shared_with_static_runtimes_CXX=no
18905
18906 # Source file extension for C++ test sources.
18907 ac_ext=cpp
18908
18909 # Object file extension for compiled C++ test sources.
18910 objext=o
18911 objext_CXX=$objext
18912
18913 # No sense in running all these tests if we already determined that
18914 # the CXX compiler isn't working. Some variables (like enable_shared)
18915 # are currently assumed to apply to all compilers on this platform,
18916 # and will be corrupted by setting them based on a non-working compiler.
18917 if test "$_lt_caught_CXX_error" != yes; then
18918 # Code to be used in simple compile tests
18919 lt_simple_compile_test_code="int some_variable = 0;"
18920
18921 # Code to be used in simple link tests
18922 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18923
18924 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18925
18926
18927
18928
18929
18930
18931 # If no C compiler was specified, use CC.
18932 LTCC=${LTCC-"$CC"}
18933
18934 # If no C compiler flags were specified, use CFLAGS.
18935 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18936
18937 # Allow CC to be a program name with arguments.
18938 compiler=$CC
18939
18940
18941 # save warnings/boilerplate of simple test code
18942 ac_outfile=conftest.$ac_objext
18943 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18944 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18945 _lt_compiler_boilerplate=`cat conftest.err`
18946 $RM conftest*
18947
18948 ac_outfile=conftest.$ac_objext
18949 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18950 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18951 _lt_linker_boilerplate=`cat conftest.err`
18952 $RM -r conftest*
18953
18954
18955 # Allow CC to be a program name with arguments.
18956 lt_save_CC=$CC
18957 lt_save_LD=$LD
18958 lt_save_GCC=$GCC
18959 GCC=$GXX
18960 lt_save_with_gnu_ld=$with_gnu_ld
18961 lt_save_path_LD=$lt_cv_path_LD
18962 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18963 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18964 else
18965 $as_unset lt_cv_prog_gnu_ld
18966 fi
18967 if test -n "${lt_cv_path_LDCXX+set}"; then
18968 lt_cv_path_LD=$lt_cv_path_LDCXX
18969 else
18970 $as_unset lt_cv_path_LD
18971 fi
18972 test -z "${LDCXX+set}" || LD=$LDCXX
18973 CC=${CXX-"c++"}
18974 compiler=$CC
18975 compiler_CXX=$CC
18976 for cc_temp in $compiler""; do
18977 case $cc_temp in
18978 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18979 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18980 \-*) ;;
18981 *) break;;
18982 esac
18983 done
18984 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18985
18986
18987 if test -n "$compiler"; then
18988 # We don't want -fno-exception when compiling C++ code, so set the
18989 # no_builtin_flag separately
18990 if test "$GXX" = yes; then
18991 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18992 else
18993 lt_prog_compiler_no_builtin_flag_CXX=
18994 fi
18995
18996 if test "$GXX" = yes; then
18997 # Set up default GNU C++ configuration
18998
18999
19000
19001 # Check whether --with-gnu-ld was given.
19002 if test "${with_gnu_ld+set}" = set; then :
19003 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19004 else
19005 with_gnu_ld=no
19006 fi
19007
19008 ac_prog=ld
19009 if test "$GCC" = yes; then
19010 # Check if gcc -print-prog-name=ld gives a path.
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19012 $as_echo_n "checking for ld used by $CC... " >&6; }
19013 case $host in
19014 *-*-mingw*)
19015 # gcc leaves a trailing carriage return which upsets mingw
19016 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19017 *)
19018 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19019 esac
19020 case $ac_prog in
19021 # Accept absolute paths.
19022 [\\/]* | ?:[\\/]*)
19023 re_direlt='/[^/][^/]*/\.\./'
19024 # Canonicalize the pathname of ld
19025 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19026 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19027 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19028 done
19029 test -z "$LD" && LD="$ac_prog"
19030 ;;
19031 "")
19032 # If it fails, then pretend we aren't using GCC.
19033 ac_prog=ld
19034 ;;
19035 *)
19036 # If it is relative, then search for the first ld in PATH.
19037 with_gnu_ld=unknown
19038 ;;
19039 esac
19040 elif test "$with_gnu_ld" = yes; then
19041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19042 $as_echo_n "checking for GNU ld... " >&6; }
19043 else
19044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19045 $as_echo_n "checking for non-GNU ld... " >&6; }
19046 fi
19047 if test "${lt_cv_path_LD+set}" = set; then :
19048 $as_echo_n "(cached) " >&6
19049 else
19050 if test -z "$LD"; then
19051 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19052 for ac_dir in $PATH; do
19053 IFS="$lt_save_ifs"
19054 test -z "$ac_dir" && ac_dir=.
19055 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19056 lt_cv_path_LD="$ac_dir/$ac_prog"
19057 # Check to see if the program is GNU ld. I'd rather use --version,
19058 # but apparently some variants of GNU ld only accept -v.
19059 # Break only if it was the GNU/non-GNU ld that we prefer.
19060 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19061 *GNU* | *'with BFD'*)
19062 test "$with_gnu_ld" != no && break
19063 ;;
19064 *)
19065 test "$with_gnu_ld" != yes && break
19066 ;;
19067 esac
19068 fi
19069 done
19070 IFS="$lt_save_ifs"
19071 else
19072 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19073 fi
19074 fi
19075
19076 LD="$lt_cv_path_LD"
19077 if test -n "$LD"; then
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19079 $as_echo "$LD" >&6; }
19080 else
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19082 $as_echo "no" >&6; }
19083 fi
19084 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19086 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19087 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19088 $as_echo_n "(cached) " >&6
19089 else
19090 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19091 case `$LD -v 2>&1 </dev/null` in
19092 *GNU* | *'with BFD'*)
19093 lt_cv_prog_gnu_ld=yes
19094 ;;
19095 *)
19096 lt_cv_prog_gnu_ld=no
19097 ;;
19098 esac
19099 fi
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19101 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19102 with_gnu_ld=$lt_cv_prog_gnu_ld
19103
19104
19105
19106
19107
19108
19109
19110 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19111 # archiving commands below assume that GNU ld is being used.
19112 if test "$with_gnu_ld" = yes; then
19113 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19114 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'
19115
19116 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19117 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19118
19119 # If archive_cmds runs LD, not CC, wlarc should be empty
19120 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19121 # investigate it a little bit more. (MM)
19122 wlarc='${wl}'
19123
19124 # ancient GNU ld didn't support --whole-archive et. al.
19125 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19126 $GREP 'no-whole-archive' > /dev/null; then
19127 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19128 else
19129 whole_archive_flag_spec_CXX=
19130 fi
19131 else
19132 with_gnu_ld=no
19133 wlarc=
19134
19135 # A generic and very simple default shared library creation
19136 # command for GNU C++ for the case where it uses the native
19137 # linker, instead of GNU ld. If possible, this setting should
19138 # overridden to take advantage of the native linker features on
19139 # the platform it is being used on.
19140 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19141 fi
19142
19143 # Commands to make compiler produce verbose output that lists
19144 # what "hidden" libraries, object files and flags are used when
19145 # linking a shared library.
19146 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19147
19148 else
19149 GXX=no
19150 with_gnu_ld=no
19151 wlarc=
19152 fi
19153
19154 # PORTME: fill in a description of your system's C++ link characteristics
19155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19156 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19157 ld_shlibs_CXX=yes
19158 case $host_os in
19159 aix3*)
19160 # FIXME: insert proper C++ library support
19161 ld_shlibs_CXX=no
19162 ;;
19163 aix[4-9]*)
19164 if test "$host_cpu" = ia64; then
19165 # On IA64, the linker does run time linking by default, so we don't
19166 # have to do anything special.
19167 aix_use_runtimelinking=no
19168 exp_sym_flag='-Bexport'
19169 no_entry_flag=""
19170 else
19171 aix_use_runtimelinking=no
19172
19173 # Test if we are trying to use run time linking or normal
19174 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19175 # need to do runtime linking.
19176 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19177 for ld_flag in $LDFLAGS; do
19178 case $ld_flag in
19179 *-brtl*)
19180 aix_use_runtimelinking=yes
19181 break
19182 ;;
19183 esac
19184 done
19185 ;;
19186 esac
19187
19188 exp_sym_flag='-bexport'
19189 no_entry_flag='-bnoentry'
19190 fi
19191
19192 # When large executables or shared objects are built, AIX ld can
19193 # have problems creating the table of contents. If linking a library
19194 # or program results in "error TOC overflow" add -mminimal-toc to
19195 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19196 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19197
19198 archive_cmds_CXX=''
19199 hardcode_direct_CXX=yes
19200 hardcode_direct_absolute_CXX=yes
19201 hardcode_libdir_separator_CXX=':'
19202 link_all_deplibs_CXX=yes
19203 file_list_spec_CXX='${wl}-f,'
19204
19205 if test "$GXX" = yes; then
19206 case $host_os in aix4.[012]|aix4.[012].*)
19207 # We only want to do this on AIX 4.2 and lower, the check
19208 # below for broken collect2 doesn't work under 4.3+
19209 collect2name=`${CC} -print-prog-name=collect2`
19210 if test -f "$collect2name" &&
19211 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19212 then
19213 # We have reworked collect2
19214 :
19215 else
19216 # We have old collect2
19217 hardcode_direct_CXX=unsupported
19218 # It fails to find uninstalled libraries when the uninstalled
19219 # path is not listed in the libpath. Setting hardcode_minus_L
19220 # to unsupported forces relinking
19221 hardcode_minus_L_CXX=yes
19222 hardcode_libdir_flag_spec_CXX='-L$libdir'
19223 hardcode_libdir_separator_CXX=
19224 fi
19225 esac
19226 shared_flag='-shared'
19227 if test "$aix_use_runtimelinking" = yes; then
19228 shared_flag="$shared_flag "'${wl}-G'
19229 fi
19230 else
19231 # not using gcc
19232 if test "$host_cpu" = ia64; then
19233 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19234 # chokes on -Wl,-G. The following line is correct:
19235 shared_flag='-G'
19236 else
19237 if test "$aix_use_runtimelinking" = yes; then
19238 shared_flag='${wl}-G'
19239 else
19240 shared_flag='${wl}-bM:SRE'
19241 fi
19242 fi
19243 fi
19244
19245 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19246 # It seems that -bexpall does not export symbols beginning with
19247 # underscore (_), so it is better to generate a list of symbols to
19248 # export.
19249 always_export_symbols_CXX=yes
19250 if test "$aix_use_runtimelinking" = yes; then
19251 # Warning - without using the other runtime loading flags (-brtl),
19252 # -berok will link without error, but may produce a broken library.
19253 allow_undefined_flag_CXX='-berok'
19254 # Determine the default libpath from the value encoded in an empty
19255 # executable.
19256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19257 /* end confdefs.h. */
19258
19259 int
19260 main ()
19261 {
19262
19263 ;
19264 return 0;
19265 }
19266 _ACEOF
19267 if ac_fn_cxx_try_link "$LINENO"; then :
19268
19269 lt_aix_libpath_sed='
19270 /Import File Strings/,/^$/ {
19271 /^0/ {
19272 s/^0 *\(.*\)$/\1/
19273 p
19274 }
19275 }'
19276 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19277 # Check for a 64-bit object if we didn't find anything.
19278 if test -z "$aix_libpath"; then
19279 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19280 fi
19281 fi
19282 rm -f core conftest.err conftest.$ac_objext \
19283 conftest$ac_exeext conftest.$ac_ext
19284 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19285
19286 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19287
19288 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"
19289 else
19290 if test "$host_cpu" = ia64; then
19291 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19292 allow_undefined_flag_CXX="-z nodefs"
19293 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"
19294 else
19295 # Determine the default libpath from the value encoded in an
19296 # empty executable.
19297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19298 /* end confdefs.h. */
19299
19300 int
19301 main ()
19302 {
19303
19304 ;
19305 return 0;
19306 }
19307 _ACEOF
19308 if ac_fn_cxx_try_link "$LINENO"; then :
19309
19310 lt_aix_libpath_sed='
19311 /Import File Strings/,/^$/ {
19312 /^0/ {
19313 s/^0 *\(.*\)$/\1/
19314 p
19315 }
19316 }'
19317 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19318 # Check for a 64-bit object if we didn't find anything.
19319 if test -z "$aix_libpath"; then
19320 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19321 fi
19322 fi
19323 rm -f core conftest.err conftest.$ac_objext \
19324 conftest$ac_exeext conftest.$ac_ext
19325 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19326
19327 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19328 # Warning - without using the other run time loading flags,
19329 # -berok will link without error, but may produce a broken library.
19330 no_undefined_flag_CXX=' ${wl}-bernotok'
19331 allow_undefined_flag_CXX=' ${wl}-berok'
19332 if test "$with_gnu_ld" = yes; then
19333 # We only use this code for GNU lds that support --whole-archive.
19334 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19335 else
19336 # Exported symbols can be pulled into shared objects from archives
19337 whole_archive_flag_spec_CXX='$convenience'
19338 fi
19339 archive_cmds_need_lc_CXX=yes
19340 # This is similar to how AIX traditionally builds its shared
19341 # libraries.
19342 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'
19343 fi
19344 fi
19345 ;;
19346
19347 beos*)
19348 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19349 allow_undefined_flag_CXX=unsupported
19350 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19351 # support --undefined. This deserves some investigation. FIXME
19352 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19353 else
19354 ld_shlibs_CXX=no
19355 fi
19356 ;;
19357
19358 chorus*)
19359 case $cc_basename in
19360 *)
19361 # FIXME: insert proper C++ library support
19362 ld_shlibs_CXX=no
19363 ;;
19364 esac
19365 ;;
19366
19367 cygwin* | mingw* | pw32* | cegcc*)
19368 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19369 # as there is no search path for DLLs.
19370 hardcode_libdir_flag_spec_CXX='-L$libdir'
19371 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19372 allow_undefined_flag_CXX=unsupported
19373 always_export_symbols_CXX=no
19374 enable_shared_with_static_runtimes_CXX=yes
19375
19376 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19377 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'
19378 # If the export-symbols file already is a .def file (1st line
19379 # is EXPORTS), use it as is; otherwise, prepend...
19380 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19381 cp $export_symbols $output_objdir/$soname.def;
19382 else
19383 echo EXPORTS > $output_objdir/$soname.def;
19384 cat $export_symbols >> $output_objdir/$soname.def;
19385 fi~
19386 $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'
19387 else
19388 ld_shlibs_CXX=no
19389 fi
19390 ;;
19391 darwin* | rhapsody*)
19392
19393
19394 archive_cmds_need_lc_CXX=no
19395 hardcode_direct_CXX=no
19396 hardcode_automatic_CXX=yes
19397 hardcode_shlibpath_var_CXX=unsupported
19398 if test "$lt_cv_ld_force_load" = "yes"; then
19399 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\"`'
19400 else
19401 whole_archive_flag_spec_CXX=''
19402 fi
19403 link_all_deplibs_CXX=yes
19404 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19405 case $cc_basename in
19406 ifort*) _lt_dar_can_shared=yes ;;
19407 *) _lt_dar_can_shared=$GCC ;;
19408 esac
19409 if test "$_lt_dar_can_shared" = "yes"; then
19410 output_verbose_link_cmd=func_echo_all
19411 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}"
19412 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19413 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}"
19414 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}"
19415 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19416 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}"
19417 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}"
19418 fi
19419
19420 else
19421 ld_shlibs_CXX=no
19422 fi
19423
19424 ;;
19425
19426 dgux*)
19427 case $cc_basename in
19428 ec++*)
19429 # FIXME: insert proper C++ library support
19430 ld_shlibs_CXX=no
19431 ;;
19432 ghcx*)
19433 # Green Hills C++ Compiler
19434 # FIXME: insert proper C++ library support
19435 ld_shlibs_CXX=no
19436 ;;
19437 *)
19438 # FIXME: insert proper C++ library support
19439 ld_shlibs_CXX=no
19440 ;;
19441 esac
19442 ;;
19443
19444 freebsd2.*)
19445 # C++ shared libraries reported to be fairly broken before
19446 # switch to ELF
19447 ld_shlibs_CXX=no
19448 ;;
19449
19450 freebsd-elf*)
19451 archive_cmds_need_lc_CXX=no
19452 ;;
19453
19454 freebsd* | dragonfly*)
19455 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19456 # conventions
19457 ld_shlibs_CXX=yes
19458 ;;
19459
19460 gnu*)
19461 ;;
19462
19463 haiku*)
19464 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19465 link_all_deplibs_CXX=yes
19466 ;;
19467
19468 hpux9*)
19469 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19470 hardcode_libdir_separator_CXX=:
19471 export_dynamic_flag_spec_CXX='${wl}-E'
19472 hardcode_direct_CXX=yes
19473 hardcode_minus_L_CXX=yes # Not in the search PATH,
19474 # but as the default
19475 # location of the library.
19476
19477 case $cc_basename in
19478 CC*)
19479 # FIXME: insert proper C++ library support
19480 ld_shlibs_CXX=no
19481 ;;
19482 aCC*)
19483 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'
19484 # Commands to make compiler produce verbose output that lists
19485 # what "hidden" libraries, object files and flags are used when
19486 # linking a shared library.
19487 #
19488 # There doesn't appear to be a way to prevent this compiler from
19489 # explicitly linking system object files so we need to strip them
19490 # from the output so that they don't get included in the library
19491 # dependencies.
19492 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"'
19493 ;;
19494 *)
19495 if test "$GXX" = yes; then
19496 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'
19497 else
19498 # FIXME: insert proper C++ library support
19499 ld_shlibs_CXX=no
19500 fi
19501 ;;
19502 esac
19503 ;;
19504
19505 hpux10*|hpux11*)
19506 if test $with_gnu_ld = no; then
19507 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19508 hardcode_libdir_separator_CXX=:
19509
19510 case $host_cpu in
19511 hppa*64*|ia64*)
19512 ;;
19513 *)
19514 export_dynamic_flag_spec_CXX='${wl}-E'
19515 ;;
19516 esac
19517 fi
19518 case $host_cpu in
19519 hppa*64*|ia64*)
19520 hardcode_direct_CXX=no
19521 hardcode_shlibpath_var_CXX=no
19522 ;;
19523 *)
19524 hardcode_direct_CXX=yes
19525 hardcode_direct_absolute_CXX=yes
19526 hardcode_minus_L_CXX=yes # Not in the search PATH,
19527 # but as the default
19528 # location of the library.
19529 ;;
19530 esac
19531
19532 case $cc_basename in
19533 CC*)
19534 # FIXME: insert proper C++ library support
19535 ld_shlibs_CXX=no
19536 ;;
19537 aCC*)
19538 case $host_cpu in
19539 hppa*64*)
19540 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19541 ;;
19542 ia64*)
19543 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19544 ;;
19545 *)
19546 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19547 ;;
19548 esac
19549 # Commands to make compiler produce verbose output that lists
19550 # what "hidden" libraries, object files and flags are used when
19551 # linking a shared library.
19552 #
19553 # There doesn't appear to be a way to prevent this compiler from
19554 # explicitly linking system object files so we need to strip them
19555 # from the output so that they don't get included in the library
19556 # dependencies.
19557 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"'
19558 ;;
19559 *)
19560 if test "$GXX" = yes; then
19561 if test $with_gnu_ld = no; then
19562 case $host_cpu in
19563 hppa*64*)
19564 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19565 ;;
19566 ia64*)
19567 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19568 ;;
19569 *)
19570 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'
19571 ;;
19572 esac
19573 fi
19574 else
19575 # FIXME: insert proper C++ library support
19576 ld_shlibs_CXX=no
19577 fi
19578 ;;
19579 esac
19580 ;;
19581
19582 interix[3-9]*)
19583 hardcode_direct_CXX=no
19584 hardcode_shlibpath_var_CXX=no
19585 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19586 export_dynamic_flag_spec_CXX='${wl}-E'
19587 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19588 # Instead, shared libraries are loaded at an image base (0x10000000 by
19589 # default) and relocated if they conflict, which is a slow very memory
19590 # consuming and fragmenting process. To avoid this, we pick a random,
19591 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19592 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19593 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'
19594 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'
19595 ;;
19596 irix5* | irix6*)
19597 case $cc_basename in
19598 CC*)
19599 # SGI C++
19600 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'
19601
19602 # Archives containing C++ object files must be created using
19603 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19604 # necessary to make sure instantiated templates are included
19605 # in the archive.
19606 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19607 ;;
19608 *)
19609 if test "$GXX" = yes; then
19610 if test "$with_gnu_ld" = no; then
19611 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'
19612 else
19613 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'
19614 fi
19615 fi
19616 link_all_deplibs_CXX=yes
19617 ;;
19618 esac
19619 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19620 hardcode_libdir_separator_CXX=:
19621 inherit_rpath_CXX=yes
19622 ;;
19623
19624 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19625 case $cc_basename in
19626 KCC*)
19627 # Kuck and Associates, Inc. (KAI) C++ Compiler
19628
19629 # KCC will only create a shared library if the output file
19630 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19631 # to its proper name (with version) after linking.
19632 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'
19633 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'
19634 # Commands to make compiler produce verbose output that lists
19635 # what "hidden" libraries, object files and flags are used when
19636 # linking a shared library.
19637 #
19638 # There doesn't appear to be a way to prevent this compiler from
19639 # explicitly linking system object files so we need to strip them
19640 # from the output so that they don't get included in the library
19641 # dependencies.
19642 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"'
19643
19644 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19645 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19646
19647 # Archives containing C++ object files must be created using
19648 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19649 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19650 ;;
19651 icpc* | ecpc* )
19652 # Intel C++
19653 with_gnu_ld=yes
19654 # version 8.0 and above of icpc choke on multiply defined symbols
19655 # if we add $predep_objects and $postdep_objects, however 7.1 and
19656 # earlier do not add the objects themselves.
19657 case `$CC -V 2>&1` in
19658 *"Version 7."*)
19659 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19660 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'
19661 ;;
19662 *) # Version 8.0 or newer
19663 tmp_idyn=
19664 case $host_cpu in
19665 ia64*) tmp_idyn=' -i_dynamic';;
19666 esac
19667 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19668 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'
19669 ;;
19670 esac
19671 archive_cmds_need_lc_CXX=no
19672 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19673 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19674 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19675 ;;
19676 pgCC* | pgcpp*)
19677 # Portland Group C++ compiler
19678 case `$CC -V` in
19679 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19680 prelink_cmds_CXX='tpldir=Template.dir~
19681 rm -rf $tpldir~
19682 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19683 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19684 old_archive_cmds_CXX='tpldir=Template.dir~
19685 rm -rf $tpldir~
19686 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19687 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19688 $RANLIB $oldlib'
19689 archive_cmds_CXX='tpldir=Template.dir~
19690 rm -rf $tpldir~
19691 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19692 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19693 archive_expsym_cmds_CXX='tpldir=Template.dir~
19694 rm -rf $tpldir~
19695 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19696 $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'
19697 ;;
19698 *) # Version 6 and above use weak symbols
19699 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19700 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'
19701 ;;
19702 esac
19703
19704 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19705 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19706 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'
19707 ;;
19708 cxx*)
19709 # Compaq C++
19710 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19711 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
19712
19713 runpath_var=LD_RUN_PATH
19714 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19715 hardcode_libdir_separator_CXX=:
19716
19717 # Commands to make compiler produce verbose output that lists
19718 # what "hidden" libraries, object files and flags are used when
19719 # linking a shared library.
19720 #
19721 # There doesn't appear to be a way to prevent this compiler from
19722 # explicitly linking system object files so we need to strip them
19723 # from the output so that they don't get included in the library
19724 # dependencies.
19725 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'
19726 ;;
19727 xl* | mpixl* | bgxl*)
19728 # IBM XL 8.0 on PPC, with GNU ld
19729 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19730 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19731 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19732 if test "x$supports_anon_versioning" = xyes; then
19733 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19734 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19735 echo "local: *; };" >> $output_objdir/$libname.ver~
19736 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19737 fi
19738 ;;
19739 *)
19740 case `$CC -V 2>&1 | sed 5q` in
19741 *Sun\ C*)
19742 # Sun C++ 5.9
19743 no_undefined_flag_CXX=' -zdefs'
19744 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19745 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'
19746 hardcode_libdir_flag_spec_CXX='-R$libdir'
19747 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'
19748 compiler_needs_object_CXX=yes
19749
19750 # Not sure whether something based on
19751 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19752 # would be better.
19753 output_verbose_link_cmd='func_echo_all'
19754
19755 # Archives containing C++ object files must be created using
19756 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19757 # necessary to make sure instantiated templates are included
19758 # in the archive.
19759 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19760 ;;
19761 esac
19762 ;;
19763 esac
19764 ;;
19765
19766 lynxos*)
19767 # FIXME: insert proper C++ library support
19768 ld_shlibs_CXX=no
19769 ;;
19770
19771 m88k*)
19772 # FIXME: insert proper C++ library support
19773 ld_shlibs_CXX=no
19774 ;;
19775
19776 mvs*)
19777 case $cc_basename in
19778 cxx*)
19779 # FIXME: insert proper C++ library support
19780 ld_shlibs_CXX=no
19781 ;;
19782 *)
19783 # FIXME: insert proper C++ library support
19784 ld_shlibs_CXX=no
19785 ;;
19786 esac
19787 ;;
19788
19789 netbsd*)
19790 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19791 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19792 wlarc=
19793 hardcode_libdir_flag_spec_CXX='-R$libdir'
19794 hardcode_direct_CXX=yes
19795 hardcode_shlibpath_var_CXX=no
19796 fi
19797 # Workaround some broken pre-1.5 toolchains
19798 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19799 ;;
19800
19801 *nto* | *qnx*)
19802 ld_shlibs_CXX=yes
19803 ;;
19804
19805 openbsd2*)
19806 # C++ shared libraries are fairly broken
19807 ld_shlibs_CXX=no
19808 ;;
19809
19810 openbsd*)
19811 if test -f /usr/libexec/ld.so; then
19812 hardcode_direct_CXX=yes
19813 hardcode_shlibpath_var_CXX=no
19814 hardcode_direct_absolute_CXX=yes
19815 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19816 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19817 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19818 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19819 export_dynamic_flag_spec_CXX='${wl}-E'
19820 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19821 fi
19822 output_verbose_link_cmd=func_echo_all
19823 else
19824 ld_shlibs_CXX=no
19825 fi
19826 ;;
19827
19828 osf3* | osf4* | osf5*)
19829 case $cc_basename in
19830 KCC*)
19831 # Kuck and Associates, Inc. (KAI) C++ Compiler
19832
19833 # KCC will only create a shared library if the output file
19834 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19835 # to its proper name (with version) after linking.
19836 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'
19837
19838 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19839 hardcode_libdir_separator_CXX=:
19840
19841 # Archives containing C++ object files must be created using
19842 # the KAI C++ compiler.
19843 case $host in
19844 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19845 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19846 esac
19847 ;;
19848 RCC*)
19849 # Rational C++ 2.4.1
19850 # FIXME: insert proper C++ library support
19851 ld_shlibs_CXX=no
19852 ;;
19853 cxx*)
19854 case $host in
19855 osf3*)
19856 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19857 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'
19858 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19859 ;;
19860 *)
19861 allow_undefined_flag_CXX=' -expect_unresolved \*'
19862 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'
19863 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19864 echo "-hidden">> $lib.exp~
19865 $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~
19866 $RM $lib.exp'
19867 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19868 ;;
19869 esac
19870
19871 hardcode_libdir_separator_CXX=:
19872
19873 # Commands to make compiler produce verbose output that lists
19874 # what "hidden" libraries, object files and flags are used when
19875 # linking a shared library.
19876 #
19877 # There doesn't appear to be a way to prevent this compiler from
19878 # explicitly linking system object files so we need to strip them
19879 # from the output so that they don't get included in the library
19880 # dependencies.
19881 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"'
19882 ;;
19883 *)
19884 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19885 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19886 case $host in
19887 osf3*)
19888 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'
19889 ;;
19890 *)
19891 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'
19892 ;;
19893 esac
19894
19895 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19896 hardcode_libdir_separator_CXX=:
19897
19898 # Commands to make compiler produce verbose output that lists
19899 # what "hidden" libraries, object files and flags are used when
19900 # linking a shared library.
19901 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19902
19903 else
19904 # FIXME: insert proper C++ library support
19905 ld_shlibs_CXX=no
19906 fi
19907 ;;
19908 esac
19909 ;;
19910
19911 psos*)
19912 # FIXME: insert proper C++ library support
19913 ld_shlibs_CXX=no
19914 ;;
19915
19916 sunos4*)
19917 case $cc_basename in
19918 CC*)
19919 # Sun C++ 4.x
19920 # FIXME: insert proper C++ library support
19921 ld_shlibs_CXX=no
19922 ;;
19923 lcc*)
19924 # Lucid
19925 # FIXME: insert proper C++ library support
19926 ld_shlibs_CXX=no
19927 ;;
19928 *)
19929 # FIXME: insert proper C++ library support
19930 ld_shlibs_CXX=no
19931 ;;
19932 esac
19933 ;;
19934
19935 solaris*)
19936 case $cc_basename in
19937 CC*)
19938 # Sun C++ 4.2, 5.x and Centerline C++
19939 archive_cmds_need_lc_CXX=yes
19940 no_undefined_flag_CXX=' -zdefs'
19941 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19942 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19943 $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'
19944
19945 hardcode_libdir_flag_spec_CXX='-R$libdir'
19946 hardcode_shlibpath_var_CXX=no
19947 case $host_os in
19948 solaris2.[0-5] | solaris2.[0-5].*) ;;
19949 *)
19950 # The compiler driver will combine and reorder linker options,
19951 # but understands `-z linker_flag'.
19952 # Supported since Solaris 2.6 (maybe 2.5.1?)
19953 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19954 ;;
19955 esac
19956 link_all_deplibs_CXX=yes
19957
19958 output_verbose_link_cmd='func_echo_all'
19959
19960 # Archives containing C++ object files must be created using
19961 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19962 # necessary to make sure instantiated templates are included
19963 # in the archive.
19964 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19965 ;;
19966 gcx*)
19967 # Green Hills C++ Compiler
19968 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19969
19970 # The C++ compiler must be used to create the archive.
19971 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19972 ;;
19973 *)
19974 # GNU C++ compiler with Solaris linker
19975 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19976 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19977 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19978 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19979 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19980 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19981
19982 # Commands to make compiler produce verbose output that lists
19983 # what "hidden" libraries, object files and flags are used when
19984 # linking a shared library.
19985 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19986 else
19987 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19988 # platform.
19989 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19990 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19991 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19992
19993 # Commands to make compiler produce verbose output that lists
19994 # what "hidden" libraries, object files and flags are used when
19995 # linking a shared library.
19996 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19997 fi
19998
19999 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20000 case $host_os in
20001 solaris2.[0-5] | solaris2.[0-5].*) ;;
20002 *)
20003 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20004 ;;
20005 esac
20006 fi
20007 ;;
20008 esac
20009 ;;
20010
20011 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20012 no_undefined_flag_CXX='${wl}-z,text'
20013 archive_cmds_need_lc_CXX=no
20014 hardcode_shlibpath_var_CXX=no
20015 runpath_var='LD_RUN_PATH'
20016
20017 case $cc_basename in
20018 CC*)
20019 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20020 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20021 ;;
20022 *)
20023 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20024 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20025 ;;
20026 esac
20027 ;;
20028
20029 sysv5* | sco3.2v5* | sco5v6*)
20030 # Note: We can NOT use -z defs as we might desire, because we do not
20031 # link with -lc, and that would cause any symbols used from libc to
20032 # always be unresolved, which means just about no library would
20033 # ever link correctly. If we're not using GNU ld we use -z text
20034 # though, which does catch some bad symbols but isn't as heavy-handed
20035 # as -z defs.
20036 no_undefined_flag_CXX='${wl}-z,text'
20037 allow_undefined_flag_CXX='${wl}-z,nodefs'
20038 archive_cmds_need_lc_CXX=no
20039 hardcode_shlibpath_var_CXX=no
20040 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20041 hardcode_libdir_separator_CXX=':'
20042 link_all_deplibs_CXX=yes
20043 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20044 runpath_var='LD_RUN_PATH'
20045
20046 case $cc_basename in
20047 CC*)
20048 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20049 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20050 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20051 '"$old_archive_cmds_CXX"
20052 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20053 '"$reload_cmds_CXX"
20054 ;;
20055 *)
20056 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20057 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20058 ;;
20059 esac
20060 ;;
20061
20062 tandem*)
20063 case $cc_basename in
20064 NCC*)
20065 # NonStop-UX NCC 3.20
20066 # FIXME: insert proper C++ library support
20067 ld_shlibs_CXX=no
20068 ;;
20069 *)
20070 # FIXME: insert proper C++ library support
20071 ld_shlibs_CXX=no
20072 ;;
20073 esac
20074 ;;
20075
20076 vxworks*)
20077 # FIXME: insert proper C++ library support
20078 ld_shlibs_CXX=no
20079 ;;
20080
20081 *)
20082 # FIXME: insert proper C++ library support
20083 ld_shlibs_CXX=no
20084 ;;
20085 esac
20086
20087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20088 $as_echo "$ld_shlibs_CXX" >&6; }
20089 test "$ld_shlibs_CXX" = no && can_build_shared=no
20090
20091 GCC_CXX="$GXX"
20092 LD_CXX="$LD"
20093
20094 ## CAVEAT EMPTOR:
20095 ## There is no encapsulation within the following macros, do not change
20096 ## the running order or otherwise move them around unless you know exactly
20097 ## what you are doing...
20098 # Dependencies to place before and after the object being linked:
20099 predep_objects_CXX=
20100 postdep_objects_CXX=
20101 predeps_CXX=
20102 postdeps_CXX=
20103 compiler_lib_search_path_CXX=
20104
20105 cat > conftest.$ac_ext <<_LT_EOF
20106 class Foo
20107 {
20108 public:
20109 Foo (void) { a = 0; }
20110 private:
20111 int a;
20112 };
20113 _LT_EOF
20114
20115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20116 (eval $ac_compile) 2>&5
20117 ac_status=$?
20118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20119 test $ac_status = 0; }; then
20120 # Parse the compiler output and extract the necessary
20121 # objects, libraries and library flags.
20122
20123 # Sentinel used to keep track of whether or not we are before
20124 # the conftest object file.
20125 pre_test_object_deps_done=no
20126
20127 for p in `eval "$output_verbose_link_cmd"`; do
20128 case $p in
20129
20130 -L* | -R* | -l*)
20131 # Some compilers place space between "-{L,R}" and the path.
20132 # Remove the space.
20133 if test $p = "-L" ||
20134 test $p = "-R"; then
20135 prev=$p
20136 continue
20137 else
20138 prev=
20139 fi
20140
20141 if test "$pre_test_object_deps_done" = no; then
20142 case $p in
20143 -L* | -R*)
20144 # Internal compiler library paths should come after those
20145 # provided the user. The postdeps already come after the
20146 # user supplied libs so there is no need to process them.
20147 if test -z "$compiler_lib_search_path_CXX"; then
20148 compiler_lib_search_path_CXX="${prev}${p}"
20149 else
20150 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20151 fi
20152 ;;
20153 # The "-l" case would never come before the object being
20154 # linked, so don't bother handling this case.
20155 esac
20156 else
20157 if test -z "$postdeps_CXX"; then
20158 postdeps_CXX="${prev}${p}"
20159 else
20160 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20161 fi
20162 fi
20163 ;;
20164
20165 *.$objext)
20166 # This assumes that the test object file only shows up
20167 # once in the compiler output.
20168 if test "$p" = "conftest.$objext"; then
20169 pre_test_object_deps_done=yes
20170 continue
20171 fi
20172
20173 if test "$pre_test_object_deps_done" = no; then
20174 if test -z "$predep_objects_CXX"; then
20175 predep_objects_CXX="$p"
20176 else
20177 predep_objects_CXX="$predep_objects_CXX $p"
20178 fi
20179 else
20180 if test -z "$postdep_objects_CXX"; then
20181 postdep_objects_CXX="$p"
20182 else
20183 postdep_objects_CXX="$postdep_objects_CXX $p"
20184 fi
20185 fi
20186 ;;
20187
20188 *) ;; # Ignore the rest.
20189
20190 esac
20191 done
20192
20193 # Clean up.
20194 rm -f a.out a.exe
20195 else
20196 echo "libtool.m4: error: problem compiling CXX test program"
20197 fi
20198
20199 $RM -f confest.$objext
20200
20201 # PORTME: override above test on systems where it is broken
20202 case $host_os in
20203 interix[3-9]*)
20204 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20205 # hack all around it, let's just trust "g++" to DTRT.
20206 predep_objects_CXX=
20207 postdep_objects_CXX=
20208 postdeps_CXX=
20209 ;;
20210
20211 linux*)
20212 case `$CC -V 2>&1 | sed 5q` in
20213 *Sun\ C*)
20214 # Sun C++ 5.9
20215
20216 # The more standards-conforming stlport4 library is
20217 # incompatible with the Cstd library. Avoid specifying
20218 # it if it's in CXXFLAGS. Ignore libCrun as
20219 # -library=stlport4 depends on it.
20220 case " $CXX $CXXFLAGS " in
20221 *" -library=stlport4 "*)
20222 solaris_use_stlport4=yes
20223 ;;
20224 esac
20225
20226 if test "$solaris_use_stlport4" != yes; then
20227 postdeps_CXX='-library=Cstd -library=Crun'
20228 fi
20229 ;;
20230 esac
20231 ;;
20232
20233 solaris*)
20234 case $cc_basename in
20235 CC*)
20236 # The more standards-conforming stlport4 library is
20237 # incompatible with the Cstd library. Avoid specifying
20238 # it if it's in CXXFLAGS. Ignore libCrun as
20239 # -library=stlport4 depends on it.
20240 case " $CXX $CXXFLAGS " in
20241 *" -library=stlport4 "*)
20242 solaris_use_stlport4=yes
20243 ;;
20244 esac
20245
20246 # Adding this requires a known-good setup of shared libraries for
20247 # Sun compiler versions before 5.6, else PIC objects from an old
20248 # archive will be linked into the output, leading to subtle bugs.
20249 if test "$solaris_use_stlport4" != yes; then
20250 postdeps_CXX='-library=Cstd -library=Crun'
20251 fi
20252 ;;
20253 esac
20254 ;;
20255 esac
20256
20257
20258 case " $postdeps_CXX " in
20259 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20260 esac
20261 compiler_lib_search_dirs_CXX=
20262 if test -n "${compiler_lib_search_path_CXX}"; then
20263 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20264 fi
20265
20266
20267
20268
20269
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296 lt_prog_compiler_wl_CXX=
20297 lt_prog_compiler_pic_CXX=
20298 lt_prog_compiler_static_CXX=
20299
20300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20301 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20302
20303 # C++ specific cases for pic, static, wl, etc.
20304 if test "$GXX" = yes; then
20305 lt_prog_compiler_wl_CXX='-Wl,'
20306 lt_prog_compiler_static_CXX='-static'
20307
20308 case $host_os in
20309 aix*)
20310 # All AIX code is PIC.
20311 if test "$host_cpu" = ia64; then
20312 # AIX 5 now supports IA64 processor
20313 lt_prog_compiler_static_CXX='-Bstatic'
20314 fi
20315 lt_prog_compiler_pic_CXX='-fPIC'
20316 ;;
20317
20318 amigaos*)
20319 case $host_cpu in
20320 powerpc)
20321 # see comment about AmigaOS4 .so support
20322 lt_prog_compiler_pic_CXX='-fPIC'
20323 ;;
20324 m68k)
20325 # FIXME: we need at least 68020 code to build shared libraries, but
20326 # adding the `-m68020' flag to GCC prevents building anything better,
20327 # like `-m68040'.
20328 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20329 ;;
20330 esac
20331 ;;
20332
20333 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20334 # PIC is the default for these OSes.
20335 ;;
20336 mingw* | cygwin* | os2* | pw32* | cegcc*)
20337 # This hack is so that the source file can tell whether it is being
20338 # built for inclusion in a dll (and should export symbols for example).
20339 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20340 # (--disable-auto-import) libraries
20341 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20342 ;;
20343 darwin* | rhapsody*)
20344 # PIC is the default on this platform
20345 # Common symbols not allowed in MH_DYLIB files
20346 lt_prog_compiler_pic_CXX='-fno-common'
20347 ;;
20348 *djgpp*)
20349 # DJGPP does not support shared libraries at all
20350 lt_prog_compiler_pic_CXX=
20351 ;;
20352 haiku*)
20353 # PIC is the default for Haiku.
20354 # The "-static" flag exists, but is broken.
20355 lt_prog_compiler_static_CXX=
20356 ;;
20357 interix[3-9]*)
20358 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20359 # Instead, we relocate shared libraries at runtime.
20360 ;;
20361 sysv4*MP*)
20362 if test -d /usr/nec; then
20363 lt_prog_compiler_pic_CXX=-Kconform_pic
20364 fi
20365 ;;
20366 hpux*)
20367 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20368 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20369 # sets the default TLS model and affects inlining.
20370 case $host_cpu in
20371 hppa*64*)
20372 ;;
20373 *)
20374 lt_prog_compiler_pic_CXX='-fPIC'
20375 ;;
20376 esac
20377 ;;
20378 *qnx* | *nto*)
20379 # QNX uses GNU C++, but need to define -shared option too, otherwise
20380 # it will coredump.
20381 lt_prog_compiler_pic_CXX='-fPIC -shared'
20382 ;;
20383 *)
20384 lt_prog_compiler_pic_CXX='-fPIC'
20385 ;;
20386 esac
20387 else
20388 case $host_os in
20389 aix[4-9]*)
20390 # All AIX code is PIC.
20391 if test "$host_cpu" = ia64; then
20392 # AIX 5 now supports IA64 processor
20393 lt_prog_compiler_static_CXX='-Bstatic'
20394 else
20395 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20396 fi
20397 ;;
20398 chorus*)
20399 case $cc_basename in
20400 cxch68*)
20401 # Green Hills C++ Compiler
20402 # _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"
20403 ;;
20404 esac
20405 ;;
20406 dgux*)
20407 case $cc_basename in
20408 ec++*)
20409 lt_prog_compiler_pic_CXX='-KPIC'
20410 ;;
20411 ghcx*)
20412 # Green Hills C++ Compiler
20413 lt_prog_compiler_pic_CXX='-pic'
20414 ;;
20415 *)
20416 ;;
20417 esac
20418 ;;
20419 freebsd* | dragonfly*)
20420 # FreeBSD uses GNU C++
20421 ;;
20422 hpux9* | hpux10* | hpux11*)
20423 case $cc_basename in
20424 CC*)
20425 lt_prog_compiler_wl_CXX='-Wl,'
20426 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20427 if test "$host_cpu" != ia64; then
20428 lt_prog_compiler_pic_CXX='+Z'
20429 fi
20430 ;;
20431 aCC*)
20432 lt_prog_compiler_wl_CXX='-Wl,'
20433 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20434 case $host_cpu in
20435 hppa*64*|ia64*)
20436 # +Z the default
20437 ;;
20438 *)
20439 lt_prog_compiler_pic_CXX='+Z'
20440 ;;
20441 esac
20442 ;;
20443 *)
20444 ;;
20445 esac
20446 ;;
20447 interix*)
20448 # This is c89, which is MS Visual C++ (no shared libs)
20449 # Anyone wants to do a port?
20450 ;;
20451 irix5* | irix6* | nonstopux*)
20452 case $cc_basename in
20453 CC*)
20454 lt_prog_compiler_wl_CXX='-Wl,'
20455 lt_prog_compiler_static_CXX='-non_shared'
20456 # CC pic flag -KPIC is the default.
20457 ;;
20458 *)
20459 ;;
20460 esac
20461 ;;
20462 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20463 case $cc_basename in
20464 KCC*)
20465 # KAI C++ Compiler
20466 lt_prog_compiler_wl_CXX='--backend -Wl,'
20467 lt_prog_compiler_pic_CXX='-fPIC'
20468 ;;
20469 ecpc* )
20470 # old Intel C++ for x86_64 which still supported -KPIC.
20471 lt_prog_compiler_wl_CXX='-Wl,'
20472 lt_prog_compiler_pic_CXX='-KPIC'
20473 lt_prog_compiler_static_CXX='-static'
20474 ;;
20475 icpc* )
20476 # Intel C++, used to be incompatible with GCC.
20477 # ICC 10 doesn't accept -KPIC any more.
20478 lt_prog_compiler_wl_CXX='-Wl,'
20479 lt_prog_compiler_pic_CXX='-fPIC'
20480 lt_prog_compiler_static_CXX='-static'
20481 ;;
20482 pgCC* | pgcpp*)
20483 # Portland Group C++ compiler
20484 lt_prog_compiler_wl_CXX='-Wl,'
20485 lt_prog_compiler_pic_CXX='-fpic'
20486 lt_prog_compiler_static_CXX='-Bstatic'
20487 ;;
20488 cxx*)
20489 # Compaq C++
20490 # Make sure the PIC flag is empty. It appears that all Alpha
20491 # Linux and Compaq Tru64 Unix objects are PIC.
20492 lt_prog_compiler_pic_CXX=
20493 lt_prog_compiler_static_CXX='-non_shared'
20494 ;;
20495 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20496 # IBM XL 8.0, 9.0 on PPC and BlueGene
20497 lt_prog_compiler_wl_CXX='-Wl,'
20498 lt_prog_compiler_pic_CXX='-qpic'
20499 lt_prog_compiler_static_CXX='-qstaticlink'
20500 ;;
20501 *)
20502 case `$CC -V 2>&1 | sed 5q` in
20503 *Sun\ C*)
20504 # Sun C++ 5.9
20505 lt_prog_compiler_pic_CXX='-KPIC'
20506 lt_prog_compiler_static_CXX='-Bstatic'
20507 lt_prog_compiler_wl_CXX='-Qoption ld '
20508 ;;
20509 esac
20510 ;;
20511 esac
20512 ;;
20513 lynxos*)
20514 ;;
20515 m88k*)
20516 ;;
20517 mvs*)
20518 case $cc_basename in
20519 cxx*)
20520 lt_prog_compiler_pic_CXX='-W c,exportall'
20521 ;;
20522 *)
20523 ;;
20524 esac
20525 ;;
20526 netbsd*)
20527 ;;
20528 *qnx* | *nto*)
20529 # QNX uses GNU C++, but need to define -shared option too, otherwise
20530 # it will coredump.
20531 lt_prog_compiler_pic_CXX='-fPIC -shared'
20532 ;;
20533 osf3* | osf4* | osf5*)
20534 case $cc_basename in
20535 KCC*)
20536 lt_prog_compiler_wl_CXX='--backend -Wl,'
20537 ;;
20538 RCC*)
20539 # Rational C++ 2.4.1
20540 lt_prog_compiler_pic_CXX='-pic'
20541 ;;
20542 cxx*)
20543 # Digital/Compaq C++
20544 lt_prog_compiler_wl_CXX='-Wl,'
20545 # Make sure the PIC flag is empty. It appears that all Alpha
20546 # Linux and Compaq Tru64 Unix objects are PIC.
20547 lt_prog_compiler_pic_CXX=
20548 lt_prog_compiler_static_CXX='-non_shared'
20549 ;;
20550 *)
20551 ;;
20552 esac
20553 ;;
20554 psos*)
20555 ;;
20556 solaris*)
20557 case $cc_basename in
20558 CC*)
20559 # Sun C++ 4.2, 5.x and Centerline C++
20560 lt_prog_compiler_pic_CXX='-KPIC'
20561 lt_prog_compiler_static_CXX='-Bstatic'
20562 lt_prog_compiler_wl_CXX='-Qoption ld '
20563 ;;
20564 gcx*)
20565 # Green Hills C++ Compiler
20566 lt_prog_compiler_pic_CXX='-PIC'
20567 ;;
20568 *)
20569 ;;
20570 esac
20571 ;;
20572 sunos4*)
20573 case $cc_basename in
20574 CC*)
20575 # Sun C++ 4.x
20576 lt_prog_compiler_pic_CXX='-pic'
20577 lt_prog_compiler_static_CXX='-Bstatic'
20578 ;;
20579 lcc*)
20580 # Lucid
20581 lt_prog_compiler_pic_CXX='-pic'
20582 ;;
20583 *)
20584 ;;
20585 esac
20586 ;;
20587 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20588 case $cc_basename in
20589 CC*)
20590 lt_prog_compiler_wl_CXX='-Wl,'
20591 lt_prog_compiler_pic_CXX='-KPIC'
20592 lt_prog_compiler_static_CXX='-Bstatic'
20593 ;;
20594 esac
20595 ;;
20596 tandem*)
20597 case $cc_basename in
20598 NCC*)
20599 # NonStop-UX NCC 3.20
20600 lt_prog_compiler_pic_CXX='-KPIC'
20601 ;;
20602 *)
20603 ;;
20604 esac
20605 ;;
20606 vxworks*)
20607 ;;
20608 *)
20609 lt_prog_compiler_can_build_shared_CXX=no
20610 ;;
20611 esac
20612 fi
20613
20614 case $host_os in
20615 # For platforms which do not support PIC, -DPIC is meaningless:
20616 *djgpp*)
20617 lt_prog_compiler_pic_CXX=
20618 ;;
20619 *)
20620 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20621 ;;
20622 esac
20623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20624 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20625
20626
20627
20628 #
20629 # Check to make sure the PIC flag actually works.
20630 #
20631 if test -n "$lt_prog_compiler_pic_CXX"; then
20632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20633 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20634 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20635 $as_echo_n "(cached) " >&6
20636 else
20637 lt_cv_prog_compiler_pic_works_CXX=no
20638 ac_outfile=conftest.$ac_objext
20639 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20640 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20641 # Insert the option either (1) after the last *FLAGS variable, or
20642 # (2) before a word containing "conftest.", or (3) at the end.
20643 # Note that $ac_compile itself does not contain backslashes and begins
20644 # with a dollar sign (not a hyphen), so the echo should work correctly.
20645 # The option is referenced via a variable to avoid confusing sed.
20646 lt_compile=`echo "$ac_compile" | $SED \
20647 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20648 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20649 -e 's:$: $lt_compiler_flag:'`
20650 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20651 (eval "$lt_compile" 2>conftest.err)
20652 ac_status=$?
20653 cat conftest.err >&5
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 if (exit $ac_status) && test -s "$ac_outfile"; then
20656 # The compiler can only warn and ignore the option if not recognized
20657 # So say no if there are warnings other than the usual output.
20658 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20659 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20660 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20661 lt_cv_prog_compiler_pic_works_CXX=yes
20662 fi
20663 fi
20664 $RM conftest*
20665
20666 fi
20667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20668 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20669
20670 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20671 case $lt_prog_compiler_pic_CXX in
20672 "" | " "*) ;;
20673 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20674 esac
20675 else
20676 lt_prog_compiler_pic_CXX=
20677 lt_prog_compiler_can_build_shared_CXX=no
20678 fi
20679
20680 fi
20681
20682
20683
20684 #
20685 # Check to make sure the static flag actually works.
20686 #
20687 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20689 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20690 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20691 $as_echo_n "(cached) " >&6
20692 else
20693 lt_cv_prog_compiler_static_works_CXX=no
20694 save_LDFLAGS="$LDFLAGS"
20695 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20696 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20697 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20698 # The linker can only warn and ignore the option if not recognized
20699 # So say no if there are warnings
20700 if test -s conftest.err; then
20701 # Append any errors to the config.log.
20702 cat conftest.err 1>&5
20703 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20704 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20705 if diff conftest.exp conftest.er2 >/dev/null; then
20706 lt_cv_prog_compiler_static_works_CXX=yes
20707 fi
20708 else
20709 lt_cv_prog_compiler_static_works_CXX=yes
20710 fi
20711 fi
20712 $RM -r conftest*
20713 LDFLAGS="$save_LDFLAGS"
20714
20715 fi
20716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20717 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20718
20719 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20720 :
20721 else
20722 lt_prog_compiler_static_CXX=
20723 fi
20724
20725
20726
20727
20728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20729 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20730 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20731 $as_echo_n "(cached) " >&6
20732 else
20733 lt_cv_prog_compiler_c_o_CXX=no
20734 $RM -r conftest 2>/dev/null
20735 mkdir conftest
20736 cd conftest
20737 mkdir out
20738 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20739
20740 lt_compiler_flag="-o out/conftest2.$ac_objext"
20741 # Insert the option either (1) after the last *FLAGS variable, or
20742 # (2) before a word containing "conftest.", or (3) at the end.
20743 # Note that $ac_compile itself does not contain backslashes and begins
20744 # with a dollar sign (not a hyphen), so the echo should work correctly.
20745 lt_compile=`echo "$ac_compile" | $SED \
20746 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20747 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20748 -e 's:$: $lt_compiler_flag:'`
20749 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20750 (eval "$lt_compile" 2>out/conftest.err)
20751 ac_status=$?
20752 cat out/conftest.err >&5
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20755 then
20756 # The compiler can only warn and ignore the option if not recognized
20757 # So say no if there are warnings
20758 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20759 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20760 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20761 lt_cv_prog_compiler_c_o_CXX=yes
20762 fi
20763 fi
20764 chmod u+w . 2>&5
20765 $RM conftest*
20766 # SGI C++ compiler will create directory out/ii_files/ for
20767 # template instantiation
20768 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20769 $RM out/* && rmdir out
20770 cd ..
20771 $RM -r conftest
20772 $RM conftest*
20773
20774 fi
20775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20776 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20777
20778
20779
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20781 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20782 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20783 $as_echo_n "(cached) " >&6
20784 else
20785 lt_cv_prog_compiler_c_o_CXX=no
20786 $RM -r conftest 2>/dev/null
20787 mkdir conftest
20788 cd conftest
20789 mkdir out
20790 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20791
20792 lt_compiler_flag="-o out/conftest2.$ac_objext"
20793 # Insert the option either (1) after the last *FLAGS variable, or
20794 # (2) before a word containing "conftest.", or (3) at the end.
20795 # Note that $ac_compile itself does not contain backslashes and begins
20796 # with a dollar sign (not a hyphen), so the echo should work correctly.
20797 lt_compile=`echo "$ac_compile" | $SED \
20798 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20799 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20800 -e 's:$: $lt_compiler_flag:'`
20801 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20802 (eval "$lt_compile" 2>out/conftest.err)
20803 ac_status=$?
20804 cat out/conftest.err >&5
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20807 then
20808 # The compiler can only warn and ignore the option if not recognized
20809 # So say no if there are warnings
20810 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20811 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20812 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20813 lt_cv_prog_compiler_c_o_CXX=yes
20814 fi
20815 fi
20816 chmod u+w . 2>&5
20817 $RM conftest*
20818 # SGI C++ compiler will create directory out/ii_files/ for
20819 # template instantiation
20820 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20821 $RM out/* && rmdir out
20822 cd ..
20823 $RM -r conftest
20824 $RM conftest*
20825
20826 fi
20827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20828 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20829
20830
20831
20832
20833 hard_links="nottested"
20834 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20835 # do not overwrite the value of need_locks provided by the user
20836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20837 $as_echo_n "checking if we can lock with hard links... " >&6; }
20838 hard_links=yes
20839 $RM conftest*
20840 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20841 touch conftest.a
20842 ln conftest.a conftest.b 2>&5 || hard_links=no
20843 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20845 $as_echo "$hard_links" >&6; }
20846 if test "$hard_links" = no; then
20847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20848 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20849 need_locks=warn
20850 fi
20851 else
20852 need_locks=no
20853 fi
20854
20855
20856
20857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20858 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20859
20860 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20861 case $host_os in
20862 aix[4-9]*)
20863 # If we're using GNU nm, then we don't want the "-C" option.
20864 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20865 # Also, AIX nm treats weak defined symbols like other global defined
20866 # symbols, whereas GNU nm marks them as "W".
20867 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20868 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'
20869 else
20870 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'
20871 fi
20872 ;;
20873 pw32*)
20874 export_symbols_cmds_CXX="$ltdll_cmds"
20875 ;;
20876 cygwin* | mingw* | cegcc*)
20877 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'
20878 ;;
20879 *)
20880 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20881 ;;
20882 esac
20883 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20884
20885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20886 $as_echo "$ld_shlibs_CXX" >&6; }
20887 test "$ld_shlibs_CXX" = no && can_build_shared=no
20888
20889 with_gnu_ld_CXX=$with_gnu_ld
20890
20891
20892
20893
20894
20895
20896 #
20897 # Do we need to explicitly link libc?
20898 #
20899 case "x$archive_cmds_need_lc_CXX" in
20900 x|xyes)
20901 # Assume -lc should be added
20902 archive_cmds_need_lc_CXX=yes
20903
20904 if test "$enable_shared" = yes && test "$GCC" = yes; then
20905 case $archive_cmds_CXX in
20906 *'~'*)
20907 # FIXME: we may have to deal with multi-command sequences.
20908 ;;
20909 '$CC '*)
20910 # Test whether the compiler implicitly links with -lc since on some
20911 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20912 # to ld, don't add -lc before -lgcc.
20913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20914 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20915 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20916 $as_echo_n "(cached) " >&6
20917 else
20918 $RM conftest*
20919 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20920
20921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20922 (eval $ac_compile) 2>&5
20923 ac_status=$?
20924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20925 test $ac_status = 0; } 2>conftest.err; then
20926 soname=conftest
20927 lib=conftest
20928 libobjs=conftest.$ac_objext
20929 deplibs=
20930 wl=$lt_prog_compiler_wl_CXX
20931 pic_flag=$lt_prog_compiler_pic_CXX
20932 compiler_flags=-v
20933 linker_flags=-v
20934 verstring=
20935 output_objdir=.
20936 libname=conftest
20937 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20938 allow_undefined_flag_CXX=
20939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20940 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20941 ac_status=$?
20942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20943 test $ac_status = 0; }
20944 then
20945 lt_cv_archive_cmds_need_lc_CXX=no
20946 else
20947 lt_cv_archive_cmds_need_lc_CXX=yes
20948 fi
20949 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20950 else
20951 cat conftest.err 1>&5
20952 fi
20953 $RM conftest*
20954
20955 fi
20956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20957 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20958 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20959 ;;
20960 esac
20961 fi
20962 ;;
20963 esac
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984
20985
20986
20987
20988
20989
20990
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21029 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21030
21031 library_names_spec=
21032 libname_spec='lib$name'
21033 soname_spec=
21034 shrext_cmds=".so"
21035 postinstall_cmds=
21036 postuninstall_cmds=
21037 finish_cmds=
21038 finish_eval=
21039 shlibpath_var=
21040 shlibpath_overrides_runpath=unknown
21041 version_type=none
21042 dynamic_linker="$host_os ld.so"
21043 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21044 need_lib_prefix=unknown
21045 hardcode_into_libs=no
21046
21047 # when you set need_version to no, make sure it does not cause -set_version
21048 # flags to be left without arguments
21049 need_version=unknown
21050
21051 case $host_os in
21052 aix3*)
21053 version_type=linux
21054 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21055 shlibpath_var=LIBPATH
21056
21057 # AIX 3 has no versioning support, so we append a major version to the name.
21058 soname_spec='${libname}${release}${shared_ext}$major'
21059 ;;
21060
21061 aix[4-9]*)
21062 version_type=linux
21063 need_lib_prefix=no
21064 need_version=no
21065 hardcode_into_libs=yes
21066 if test "$host_cpu" = ia64; then
21067 # AIX 5 supports IA64
21068 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21069 shlibpath_var=LD_LIBRARY_PATH
21070 else
21071 # With GCC up to 2.95.x, collect2 would create an import file
21072 # for dependence libraries. The import file would start with
21073 # the line `#! .'. This would cause the generated library to
21074 # depend on `.', always an invalid library. This was fixed in
21075 # development snapshots of GCC prior to 3.0.
21076 case $host_os in
21077 aix4 | aix4.[01] | aix4.[01].*)
21078 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21079 echo ' yes '
21080 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21081 :
21082 else
21083 can_build_shared=no
21084 fi
21085 ;;
21086 esac
21087 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21088 # soname into executable. Probably we can add versioning support to
21089 # collect2, so additional links can be useful in future.
21090 if test "$aix_use_runtimelinking" = yes; then
21091 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21092 # instead of lib<name>.a to let people know that these are not
21093 # typical AIX shared libraries.
21094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21095 else
21096 # We preserve .a as extension for shared libraries through AIX4.2
21097 # and later when we are not doing run time linking.
21098 library_names_spec='${libname}${release}.a $libname.a'
21099 soname_spec='${libname}${release}${shared_ext}$major'
21100 fi
21101 shlibpath_var=LIBPATH
21102 fi
21103 ;;
21104
21105 amigaos*)
21106 case $host_cpu in
21107 powerpc)
21108 # Since July 2007 AmigaOS4 officially supports .so libraries.
21109 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21111 ;;
21112 m68k)
21113 library_names_spec='$libname.ixlibrary $libname.a'
21114 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21115 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'
21116 ;;
21117 esac
21118 ;;
21119
21120 beos*)
21121 library_names_spec='${libname}${shared_ext}'
21122 dynamic_linker="$host_os ld.so"
21123 shlibpath_var=LIBRARY_PATH
21124 ;;
21125
21126 bsdi[45]*)
21127 version_type=linux
21128 need_version=no
21129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21130 soname_spec='${libname}${release}${shared_ext}$major'
21131 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21132 shlibpath_var=LD_LIBRARY_PATH
21133 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21134 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21135 # the default ld.so.conf also contains /usr/contrib/lib and
21136 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21137 # libtool to hard-code these into programs
21138 ;;
21139
21140 cygwin* | mingw* | pw32* | cegcc*)
21141 version_type=windows
21142 shrext_cmds=".dll"
21143 need_version=no
21144 need_lib_prefix=no
21145
21146 case $GCC,$host_os in
21147 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21148 library_names_spec='$libname.dll.a'
21149 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21150 postinstall_cmds='base_file=`basename \${file}`~
21151 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21152 dldir=$destdir/`dirname \$dlpath`~
21153 test -d \$dldir || mkdir -p \$dldir~
21154 $install_prog $dir/$dlname \$dldir/$dlname~
21155 chmod a+x \$dldir/$dlname~
21156 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21157 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21158 fi'
21159 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21160 dlpath=$dir/\$dldll~
21161 $RM \$dlpath'
21162 shlibpath_overrides_runpath=yes
21163
21164 case $host_os in
21165 cygwin*)
21166 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21167 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21168
21169 ;;
21170 mingw* | cegcc*)
21171 # MinGW DLLs use traditional 'lib' prefix
21172 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21173 ;;
21174 pw32*)
21175 # pw32 DLLs use 'pw' prefix rather than 'lib'
21176 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21177 ;;
21178 esac
21179 ;;
21180
21181 *)
21182 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21183 ;;
21184 esac
21185 dynamic_linker='Win32 ld.exe'
21186 # FIXME: first we should search . and the directory the executable is in
21187 shlibpath_var=PATH
21188 ;;
21189
21190 darwin* | rhapsody*)
21191 dynamic_linker="$host_os dyld"
21192 version_type=darwin
21193 need_lib_prefix=no
21194 need_version=no
21195 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21196 soname_spec='${libname}${release}${major}$shared_ext'
21197 shlibpath_overrides_runpath=yes
21198 shlibpath_var=DYLD_LIBRARY_PATH
21199 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21200
21201 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21202 ;;
21203
21204 dgux*)
21205 version_type=linux
21206 need_lib_prefix=no
21207 need_version=no
21208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21209 soname_spec='${libname}${release}${shared_ext}$major'
21210 shlibpath_var=LD_LIBRARY_PATH
21211 ;;
21212
21213 freebsd* | dragonfly*)
21214 # DragonFly does not have aout. When/if they implement a new
21215 # versioning mechanism, adjust this.
21216 if test -x /usr/bin/objformat; then
21217 objformat=`/usr/bin/objformat`
21218 else
21219 case $host_os in
21220 freebsd[23].*) objformat=aout ;;
21221 *) objformat=elf ;;
21222 esac
21223 fi
21224 version_type=freebsd-$objformat
21225 case $version_type in
21226 freebsd-elf*)
21227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21228 need_version=no
21229 need_lib_prefix=no
21230 ;;
21231 freebsd-*)
21232 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21233 need_version=yes
21234 ;;
21235 esac
21236 shlibpath_var=LD_LIBRARY_PATH
21237 case $host_os in
21238 freebsd2.*)
21239 shlibpath_overrides_runpath=yes
21240 ;;
21241 freebsd3.[01]* | freebsdelf3.[01]*)
21242 shlibpath_overrides_runpath=yes
21243 hardcode_into_libs=yes
21244 ;;
21245 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21246 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21247 shlibpath_overrides_runpath=no
21248 hardcode_into_libs=yes
21249 ;;
21250 *) # from 4.6 on, and DragonFly
21251 shlibpath_overrides_runpath=yes
21252 hardcode_into_libs=yes
21253 ;;
21254 esac
21255 ;;
21256
21257 gnu*)
21258 version_type=linux
21259 need_lib_prefix=no
21260 need_version=no
21261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21262 soname_spec='${libname}${release}${shared_ext}$major'
21263 shlibpath_var=LD_LIBRARY_PATH
21264 hardcode_into_libs=yes
21265 ;;
21266
21267 haiku*)
21268 version_type=linux
21269 need_lib_prefix=no
21270 need_version=no
21271 dynamic_linker="$host_os runtime_loader"
21272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21273 soname_spec='${libname}${release}${shared_ext}$major'
21274 shlibpath_var=LIBRARY_PATH
21275 shlibpath_overrides_runpath=yes
21276 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21277 hardcode_into_libs=yes
21278 ;;
21279
21280 hpux9* | hpux10* | hpux11*)
21281 # Give a soname corresponding to the major version so that dld.sl refuses to
21282 # link against other versions.
21283 version_type=sunos
21284 need_lib_prefix=no
21285 need_version=no
21286 case $host_cpu in
21287 ia64*)
21288 shrext_cmds='.so'
21289 hardcode_into_libs=yes
21290 dynamic_linker="$host_os dld.so"
21291 shlibpath_var=LD_LIBRARY_PATH
21292 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21294 soname_spec='${libname}${release}${shared_ext}$major'
21295 if test "X$HPUX_IA64_MODE" = X32; then
21296 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21297 else
21298 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21299 fi
21300 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21301 ;;
21302 hppa*64*)
21303 shrext_cmds='.sl'
21304 hardcode_into_libs=yes
21305 dynamic_linker="$host_os dld.sl"
21306 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21307 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21309 soname_spec='${libname}${release}${shared_ext}$major'
21310 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21311 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21312 ;;
21313 *)
21314 shrext_cmds='.sl'
21315 dynamic_linker="$host_os dld.sl"
21316 shlibpath_var=SHLIB_PATH
21317 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21319 soname_spec='${libname}${release}${shared_ext}$major'
21320 ;;
21321 esac
21322 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21323 postinstall_cmds='chmod 555 $lib'
21324 # or fails outright, so override atomically:
21325 install_override_mode=555
21326 ;;
21327
21328 interix[3-9]*)
21329 version_type=linux
21330 need_lib_prefix=no
21331 need_version=no
21332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21333 soname_spec='${libname}${release}${shared_ext}$major'
21334 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21335 shlibpath_var=LD_LIBRARY_PATH
21336 shlibpath_overrides_runpath=no
21337 hardcode_into_libs=yes
21338 ;;
21339
21340 irix5* | irix6* | nonstopux*)
21341 case $host_os in
21342 nonstopux*) version_type=nonstopux ;;
21343 *)
21344 if test "$lt_cv_prog_gnu_ld" = yes; then
21345 version_type=linux
21346 else
21347 version_type=irix
21348 fi ;;
21349 esac
21350 need_lib_prefix=no
21351 need_version=no
21352 soname_spec='${libname}${release}${shared_ext}$major'
21353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21354 case $host_os in
21355 irix5* | nonstopux*)
21356 libsuff= shlibsuff=
21357 ;;
21358 *)
21359 case $LD in # libtool.m4 will add one of these switches to LD
21360 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21361 libsuff= shlibsuff= libmagic=32-bit;;
21362 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21363 libsuff=32 shlibsuff=N32 libmagic=N32;;
21364 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21365 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21366 *) libsuff= shlibsuff= libmagic=never-match;;
21367 esac
21368 ;;
21369 esac
21370 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21371 shlibpath_overrides_runpath=no
21372 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21373 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21374 hardcode_into_libs=yes
21375 ;;
21376
21377 # No shared lib support for Linux oldld, aout, or coff.
21378 linux*oldld* | linux*aout* | linux*coff*)
21379 dynamic_linker=no
21380 ;;
21381
21382 # This must be Linux ELF.
21383 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21384 version_type=linux
21385 need_lib_prefix=no
21386 need_version=no
21387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21388 soname_spec='${libname}${release}${shared_ext}$major'
21389 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21390 shlibpath_var=LD_LIBRARY_PATH
21391 shlibpath_overrides_runpath=no
21392
21393 # Some binutils ld are patched to set DT_RUNPATH
21394 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21395 $as_echo_n "(cached) " >&6
21396 else
21397 lt_cv_shlibpath_overrides_runpath=no
21398 save_LDFLAGS=$LDFLAGS
21399 save_libdir=$libdir
21400 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21401 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21403 /* end confdefs.h. */
21404
21405 int
21406 main ()
21407 {
21408
21409 ;
21410 return 0;
21411 }
21412 _ACEOF
21413 if ac_fn_cxx_try_link "$LINENO"; then :
21414 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21415 lt_cv_shlibpath_overrides_runpath=yes
21416 fi
21417 fi
21418 rm -f core conftest.err conftest.$ac_objext \
21419 conftest$ac_exeext conftest.$ac_ext
21420 LDFLAGS=$save_LDFLAGS
21421 libdir=$save_libdir
21422
21423 fi
21424
21425 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21426
21427 # This implies no fast_install, which is unacceptable.
21428 # Some rework will be needed to allow for fast_install
21429 # before this can be enabled.
21430 hardcode_into_libs=yes
21431
21432 # Append ld.so.conf contents to the search path
21433 if test -f /etc/ld.so.conf; then
21434 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' ' '`
21435 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21436 fi
21437
21438 # We used to test for /lib/ld.so.1 and disable shared libraries on
21439 # powerpc, because MkLinux only supported shared libraries with the
21440 # GNU dynamic linker. Since this was broken with cross compilers,
21441 # most powerpc-linux boxes support dynamic linking these days and
21442 # people can always --disable-shared, the test was removed, and we
21443 # assume the GNU/Linux dynamic linker is in use.
21444 dynamic_linker='GNU/Linux ld.so'
21445 ;;
21446
21447 netbsd*)
21448 version_type=sunos
21449 need_lib_prefix=no
21450 need_version=no
21451 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21453 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21454 dynamic_linker='NetBSD (a.out) ld.so'
21455 else
21456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21457 soname_spec='${libname}${release}${shared_ext}$major'
21458 dynamic_linker='NetBSD ld.elf_so'
21459 fi
21460 shlibpath_var=LD_LIBRARY_PATH
21461 shlibpath_overrides_runpath=yes
21462 hardcode_into_libs=yes
21463 ;;
21464
21465 newsos6)
21466 version_type=linux
21467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21468 shlibpath_var=LD_LIBRARY_PATH
21469 shlibpath_overrides_runpath=yes
21470 ;;
21471
21472 *nto* | *qnx*)
21473 version_type=qnx
21474 need_lib_prefix=no
21475 need_version=no
21476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21477 soname_spec='${libname}${release}${shared_ext}$major'
21478 shlibpath_var=LD_LIBRARY_PATH
21479 shlibpath_overrides_runpath=no
21480 hardcode_into_libs=yes
21481 dynamic_linker='ldqnx.so'
21482 ;;
21483
21484 openbsd*)
21485 version_type=sunos
21486 sys_lib_dlsearch_path_spec="/usr/lib"
21487 need_lib_prefix=no
21488 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21489 case $host_os in
21490 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21491 *) need_version=no ;;
21492 esac
21493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21494 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21495 shlibpath_var=LD_LIBRARY_PATH
21496 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21497 case $host_os in
21498 openbsd2.[89] | openbsd2.[89].*)
21499 shlibpath_overrides_runpath=no
21500 ;;
21501 *)
21502 shlibpath_overrides_runpath=yes
21503 ;;
21504 esac
21505 else
21506 shlibpath_overrides_runpath=yes
21507 fi
21508 ;;
21509
21510 os2*)
21511 libname_spec='$name'
21512 shrext_cmds=".dll"
21513 need_lib_prefix=no
21514 library_names_spec='$libname${shared_ext} $libname.a'
21515 dynamic_linker='OS/2 ld.exe'
21516 shlibpath_var=LIBPATH
21517 ;;
21518
21519 osf3* | osf4* | osf5*)
21520 version_type=osf
21521 need_lib_prefix=no
21522 need_version=no
21523 soname_spec='${libname}${release}${shared_ext}$major'
21524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21525 shlibpath_var=LD_LIBRARY_PATH
21526 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21527 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21528 ;;
21529
21530 rdos*)
21531 dynamic_linker=no
21532 ;;
21533
21534 solaris*)
21535 version_type=linux
21536 need_lib_prefix=no
21537 need_version=no
21538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21539 soname_spec='${libname}${release}${shared_ext}$major'
21540 shlibpath_var=LD_LIBRARY_PATH
21541 shlibpath_overrides_runpath=yes
21542 hardcode_into_libs=yes
21543 # ldd complains unless libraries are executable
21544 postinstall_cmds='chmod +x $lib'
21545 ;;
21546
21547 sunos4*)
21548 version_type=sunos
21549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21550 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21551 shlibpath_var=LD_LIBRARY_PATH
21552 shlibpath_overrides_runpath=yes
21553 if test "$with_gnu_ld" = yes; then
21554 need_lib_prefix=no
21555 fi
21556 need_version=yes
21557 ;;
21558
21559 sysv4 | sysv4.3*)
21560 version_type=linux
21561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21562 soname_spec='${libname}${release}${shared_ext}$major'
21563 shlibpath_var=LD_LIBRARY_PATH
21564 case $host_vendor in
21565 sni)
21566 shlibpath_overrides_runpath=no
21567 need_lib_prefix=no
21568 runpath_var=LD_RUN_PATH
21569 ;;
21570 siemens)
21571 need_lib_prefix=no
21572 ;;
21573 motorola)
21574 need_lib_prefix=no
21575 need_version=no
21576 shlibpath_overrides_runpath=no
21577 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21578 ;;
21579 esac
21580 ;;
21581
21582 sysv4*MP*)
21583 if test -d /usr/nec ;then
21584 version_type=linux
21585 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21586 soname_spec='$libname${shared_ext}.$major'
21587 shlibpath_var=LD_LIBRARY_PATH
21588 fi
21589 ;;
21590
21591 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21592 version_type=freebsd-elf
21593 need_lib_prefix=no
21594 need_version=no
21595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21596 soname_spec='${libname}${release}${shared_ext}$major'
21597 shlibpath_var=LD_LIBRARY_PATH
21598 shlibpath_overrides_runpath=yes
21599 hardcode_into_libs=yes
21600 if test "$with_gnu_ld" = yes; then
21601 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21602 else
21603 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21604 case $host_os in
21605 sco3.2v5*)
21606 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21607 ;;
21608 esac
21609 fi
21610 sys_lib_dlsearch_path_spec='/usr/lib'
21611 ;;
21612
21613 tpf*)
21614 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21615 version_type=linux
21616 need_lib_prefix=no
21617 need_version=no
21618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21619 shlibpath_var=LD_LIBRARY_PATH
21620 shlibpath_overrides_runpath=no
21621 hardcode_into_libs=yes
21622 ;;
21623
21624 uts4*)
21625 version_type=linux
21626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21627 soname_spec='${libname}${release}${shared_ext}$major'
21628 shlibpath_var=LD_LIBRARY_PATH
21629 ;;
21630
21631 *)
21632 dynamic_linker=no
21633 ;;
21634 esac
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21636 $as_echo "$dynamic_linker" >&6; }
21637 test "$dynamic_linker" = no && can_build_shared=no
21638
21639 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21640 if test "$GCC" = yes; then
21641 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21642 fi
21643
21644 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21645 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21646 fi
21647 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21648 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21649 fi
21650
21651
21652
21653
21654
21655
21656
21657
21658
21659
21660
21661
21662
21663
21664
21665
21666
21667
21668
21669
21670
21671
21672
21673
21674
21675
21676
21677
21678
21679
21680
21681
21682
21683
21684
21685
21686
21687
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21689 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21690 hardcode_action_CXX=
21691 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21692 test -n "$runpath_var_CXX" ||
21693 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21694
21695 # We can hardcode non-existent directories.
21696 if test "$hardcode_direct_CXX" != no &&
21697 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21698 # have to relink, otherwise we might link with an installed library
21699 # when we should be linking with a yet-to-be-installed one
21700 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21701 test "$hardcode_minus_L_CXX" != no; then
21702 # Linking always hardcodes the temporary library directory.
21703 hardcode_action_CXX=relink
21704 else
21705 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21706 hardcode_action_CXX=immediate
21707 fi
21708 else
21709 # We cannot hardcode anything, or else we can only hardcode existing
21710 # directories.
21711 hardcode_action_CXX=unsupported
21712 fi
21713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21714 $as_echo "$hardcode_action_CXX" >&6; }
21715
21716 if test "$hardcode_action_CXX" = relink ||
21717 test "$inherit_rpath_CXX" = yes; then
21718 # Fast installation is not supported
21719 enable_fast_install=no
21720 elif test "$shlibpath_overrides_runpath" = yes ||
21721 test "$enable_shared" = no; then
21722 # Fast installation is not necessary
21723 enable_fast_install=needless
21724 fi
21725
21726
21727
21728
21729
21730
21731
21732 fi # test -n "$compiler"
21733
21734 CC=$lt_save_CC
21735 LDCXX=$LD
21736 LD=$lt_save_LD
21737 GCC=$lt_save_GCC
21738 with_gnu_ld=$lt_save_with_gnu_ld
21739 lt_cv_path_LDCXX=$lt_cv_path_LD
21740 lt_cv_path_LD=$lt_save_path_LD
21741 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21742 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21743 fi # test "$_lt_caught_CXX_error" != yes
21744
21745 ac_ext=cpp
21746 ac_cpp='$CXXCPP $CPPFLAGS'
21747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21750
21751
21752
21753
21754
21755
21756
21757
21758
21759
21760
21761
21762
21763
21764
21765
21766 # Only expand once:
21767
21768
21769
21770
21771
21772 # Identify the assembler which will work hand-in-glove with the newly
21773 # built GCC, so that we can examine its features. This is the assembler
21774 # which will be driven by the driver program.
21775 #
21776 # If build != host, and we aren't building gas in-tree, we identify a
21777 # build->target assembler and hope that it will have the same features
21778 # as the host->target assembler we'll be using.
21779 gcc_cv_gas_major_version=
21780 gcc_cv_gas_minor_version=
21781 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21782
21783 if test "${gcc_cv_as+set}" = set; then :
21784
21785 else
21786
21787 if test -x "$DEFAULT_ASSEMBLER"; then
21788 gcc_cv_as="$DEFAULT_ASSEMBLER"
21789 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21790 && test -f ../gas/Makefile \
21791 && test x$build = x$host; then
21792 gcc_cv_as=../gas/as-new$build_exeext
21793 elif test -x as$build_exeext; then
21794 # Build using assembler in the current directory.
21795 gcc_cv_as=./as$build_exeext
21796 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21797 gcc_cv_as="$AS_FOR_TARGET"
21798 else
21799 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21800 set dummy $AS_FOR_TARGET; ac_word=$2
21801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21802 $as_echo_n "checking for $ac_word... " >&6; }
21803 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21804 $as_echo_n "(cached) " >&6
21805 else
21806 case $gcc_cv_as in
21807 [\\/]* | ?:[\\/]*)
21808 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21809 ;;
21810 *)
21811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21812 for as_dir in $PATH
21813 do
21814 IFS=$as_save_IFS
21815 test -z "$as_dir" && as_dir=.
21816 for ac_exec_ext in '' $ac_executable_extensions; do
21817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21818 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21820 break 2
21821 fi
21822 done
21823 done
21824 IFS=$as_save_IFS
21825
21826 ;;
21827 esac
21828 fi
21829 gcc_cv_as=$ac_cv_path_gcc_cv_as
21830 if test -n "$gcc_cv_as"; then
21831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21832 $as_echo "$gcc_cv_as" >&6; }
21833 else
21834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21835 $as_echo "no" >&6; }
21836 fi
21837
21838
21839 fi
21840 fi
21841
21842 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21843
21844 case "$ORIGINAL_AS_FOR_TARGET" in
21845 ./as | ./as$build_exeext) ;;
21846 *) ac_config_files="$ac_config_files as:exec-tool.in"
21847 ;;
21848 esac
21849
21850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21851 $as_echo_n "checking what assembler to use... " >&6; }
21852 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21853 # Single tree build which includes gas. We want to prefer it
21854 # over whatever linker top-level may have detected, since
21855 # we'll use what we're building after installation anyway.
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21857 $as_echo "newly built gas" >&6; }
21858 in_tree_gas=yes
21859 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21860 for f in $gcc_cv_as_bfd_srcdir/configure \
21861 $gcc_cv_as_gas_srcdir/configure \
21862 $gcc_cv_as_gas_srcdir/configure.ac \
21863 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21864 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21865 if test x$gcc_cv_gas_version != x; then
21866 break
21867 fi
21868 done
21869 case $gcc_cv_gas_version in
21870 VERSION=[0-9]*) ;;
21871 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21872 esac
21873 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21874 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21875 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21876 case $gcc_cv_gas_patch_version in
21877 "") gcc_cv_gas_patch_version="0" ;;
21878 esac
21879 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21880 + $gcc_cv_gas_minor_version \) \* 1000 \
21881 + $gcc_cv_gas_patch_version`
21882
21883 in_tree_gas_is_elf=no
21884 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21885 || (grep 'obj_format = multi' ../gas/Makefile \
21886 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21887 then
21888 in_tree_gas_is_elf=yes
21889 fi
21890 else
21891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21892 $as_echo "$gcc_cv_as" >&6; }
21893 in_tree_gas=no
21894 fi
21895
21896 default_ld=
21897 # Check whether --enable-ld was given.
21898 if test "${enable_ld+set}" = set; then :
21899 enableval=$enable_ld; case "${enableval}" in
21900 no)
21901 default_ld=ld.gold
21902 ;;
21903 esac
21904 fi
21905
21906
21907 install_gold_as_default=no
21908 # Check whether --enable-gold was given.
21909 if test "${enable_gold+set}" = set; then :
21910 enableval=$enable_gold; case "${enableval}" in
21911 default)
21912 install_gold_as_default=yes
21913 ;;
21914 yes)
21915 if test x${default_ld} != x; then
21916 install_gold_as_default=yes
21917 fi
21918 ;;
21919 no)
21920 ;;
21921 *)
21922 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21923 ;;
21924 esac
21925 fi
21926
21927
21928 # Identify the linker which will work hand-in-glove with the newly
21929 # built GCC, so that we can examine its features. This is the linker
21930 # which will be driven by the driver program.
21931 #
21932 # If build != host, and we aren't building gas in-tree, we identify a
21933 # build->target linker and hope that it will have the same features
21934 # as the host->target linker we'll be using.
21935 gcc_cv_gld_major_version=
21936 gcc_cv_gld_minor_version=
21937 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21938 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21939 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21940
21941 if test "${gcc_cv_ld+set}" = set; then :
21942
21943 else
21944
21945 if test -x "$DEFAULT_LINKER"; then
21946 gcc_cv_ld="$DEFAULT_LINKER"
21947 elif test $install_gold_as_default = yes \
21948 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21949 && test -f ../gold/Makefile \
21950 && test x$build = x$host; then
21951 gcc_cv_ld=../gold/ld-new$build_exeext
21952 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
21953 && test -f ../ld/Makefile \
21954 && test x$build = x$host; then
21955 gcc_cv_ld=../ld/ld-new$build_exeext
21956 elif test -x collect-ld$build_exeext; then
21957 # Build using linker in the current directory.
21958 gcc_cv_ld=./collect-ld$build_exeext
21959 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21960 gcc_cv_ld="$LD_FOR_TARGET"
21961 else
21962 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21963 set dummy $LD_FOR_TARGET; ac_word=$2
21964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21965 $as_echo_n "checking for $ac_word... " >&6; }
21966 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21967 $as_echo_n "(cached) " >&6
21968 else
21969 case $gcc_cv_ld in
21970 [\\/]* | ?:[\\/]*)
21971 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21972 ;;
21973 *)
21974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21975 for as_dir in $PATH
21976 do
21977 IFS=$as_save_IFS
21978 test -z "$as_dir" && as_dir=.
21979 for ac_exec_ext in '' $ac_executable_extensions; do
21980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21981 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21983 break 2
21984 fi
21985 done
21986 done
21987 IFS=$as_save_IFS
21988
21989 ;;
21990 esac
21991 fi
21992 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21993 if test -n "$gcc_cv_ld"; then
21994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21995 $as_echo "$gcc_cv_ld" >&6; }
21996 else
21997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21998 $as_echo "no" >&6; }
21999 fi
22000
22001
22002 fi
22003 fi
22004
22005 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22006 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22007 # if the PLUGIN_LD is set ld-new, just have it as ld
22008 # as that is the installed named.
22009 if test x$PLUGIN_LD_SUFFIX = xld-new \
22010 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22011 PLUGIN_LD_SUFFIX=ld
22012 fi
22013
22014 # Check whether --with-plugin-ld was given.
22015 if test "${with_plugin_ld+set}" = set; then :
22016 withval=$with_plugin_ld; if test x"$withval" != x; then
22017 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22018 PLUGIN_LD_SUFFIX="$withval"
22019 fi
22020 fi
22021
22022
22023
22024 cat >>confdefs.h <<_ACEOF
22025 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22026 _ACEOF
22027
22028
22029 # Check to see if we are using gold instead of ld
22030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22031 $as_echo_n "checking whether we are using gold... " >&6; }
22032 ld_is_gold=no
22033 if test x$gcc_cv_ld != x; then
22034 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22035 | grep "GNU gold" > /dev/null; then
22036 ld_is_gold=yes
22037 fi
22038 fi
22039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22040 $as_echo "$ld_is_gold" >&6; }
22041
22042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22043 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22044 # Check to see if default ld is not gold, but gold is
22045 # available and has support for split stack. If gcc was configured
22046 # with gold then no checking is done.
22047 #
22048 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22049
22050 # For platforms other than powerpc64*, enable as appropriate.
22051
22052 gold_non_default=no
22053 ld_gold=`which ${gcc_cv_ld}.gold`
22054 # Make sure this gold has minimal split stack support
22055 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22056 ld_vers=`$ld_gold --version | sed 1q`
22057 gold_vers=`echo $ld_vers | sed -n \
22058 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22059 case $target in
22060 # check that the gold version contains the complete split stack support
22061 # on powerpc64 big and little endian
22062 powerpc64*-*-*)
22063 case "$gold_vers" in
22064 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22065 ;;
22066 *) gold_non_default=no
22067 ;;
22068 esac
22069 ;;
22070 esac
22071 fi
22072 if test $gold_non_default = yes; then
22073
22074 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22075
22076 fi
22077 fi
22078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22079 $as_echo "$gold_non_default" >&6; }
22080
22081 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22082
22083 case "$ORIGINAL_LD_FOR_TARGET" in
22084 ./collect-ld | ./collect-ld$build_exeext) ;;
22085 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22086 ;;
22087 esac
22088
22089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22090 $as_echo_n "checking what linker to use... " >&6; }
22091 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22092 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22093 # Single tree build which includes ld. We want to prefer it
22094 # over whatever linker top-level may have detected, since
22095 # we'll use what we're building after installation anyway.
22096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22097 $as_echo "newly built ld" >&6; }
22098 in_tree_ld=yes
22099 in_tree_ld_is_elf=no
22100 if (grep 'EMUL = .*elf' ../ld/Makefile \
22101 || grep 'EMUL = .*linux' ../ld/Makefile \
22102 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22103 in_tree_ld_is_elf=yes
22104 elif test "$ld_is_gold" = yes; then
22105 in_tree_ld_is_elf=yes
22106 fi
22107 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
22108 do
22109 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22110 if test x$gcc_cv_gld_version != x; then
22111 break
22112 fi
22113 done
22114 case $gcc_cv_gld_version in
22115 VERSION=[0-9]*) ;;
22116 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22117 esac
22118 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22119 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22120 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22121 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22122 else
22123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22124 $as_echo "$gcc_cv_ld" >&6; }
22125 in_tree_ld=no
22126 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22127 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22128 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22129 fi
22130
22131
22132
22133
22134 # Figure out what nm we will be using.
22135 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22136 if test "${gcc_cv_nm+set}" = set; then :
22137
22138 else
22139
22140 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22141 && test -f ../binutils/Makefile \
22142 && test x$build = x$host; then
22143 gcc_cv_nm=../binutils/nm-new$build_exeext
22144 elif test -x nm$build_exeext; then
22145 gcc_cv_nm=./nm$build_exeext
22146 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22147 gcc_cv_nm="$NM_FOR_TARGET"
22148 else
22149 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22150 set dummy $NM_FOR_TARGET; ac_word=$2
22151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22152 $as_echo_n "checking for $ac_word... " >&6; }
22153 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22154 $as_echo_n "(cached) " >&6
22155 else
22156 case $gcc_cv_nm in
22157 [\\/]* | ?:[\\/]*)
22158 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22159 ;;
22160 *)
22161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22162 for as_dir in $PATH
22163 do
22164 IFS=$as_save_IFS
22165 test -z "$as_dir" && as_dir=.
22166 for ac_exec_ext in '' $ac_executable_extensions; do
22167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22168 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22170 break 2
22171 fi
22172 done
22173 done
22174 IFS=$as_save_IFS
22175
22176 ;;
22177 esac
22178 fi
22179 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22180 if test -n "$gcc_cv_nm"; then
22181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22182 $as_echo "$gcc_cv_nm" >&6; }
22183 else
22184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22185 $as_echo "no" >&6; }
22186 fi
22187
22188
22189 fi
22190 fi
22191
22192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22193 $as_echo_n "checking what nm to use... " >&6; }
22194 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22195 # Single tree build which includes binutils.
22196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22197 $as_echo "newly built nm" >&6; }
22198 in_tree_nm=yes
22199 else
22200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22201 $as_echo "$gcc_cv_nm" >&6; }
22202 in_tree_nm=no
22203 fi
22204
22205 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22206
22207 case "$ORIGINAL_NM_FOR_TARGET" in
22208 ./nm | ./nm$build_exeext) ;;
22209 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22210 ;;
22211 esac
22212
22213
22214 # Figure out what objdump we will be using.
22215 if test "${gcc_cv_objdump+set}" = set; then :
22216
22217 else
22218
22219 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22220 && test -f ../binutils/Makefile \
22221 && test x$build = x$host; then
22222 # Single tree build which includes binutils.
22223 gcc_cv_objdump=../binutils/objdump$build_exeext
22224 elif test -x objdump$build_exeext; then
22225 gcc_cv_objdump=./objdump$build_exeext
22226 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22227 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22228 else
22229 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22230 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22232 $as_echo_n "checking for $ac_word... " >&6; }
22233 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22234 $as_echo_n "(cached) " >&6
22235 else
22236 case $gcc_cv_objdump in
22237 [\\/]* | ?:[\\/]*)
22238 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22239 ;;
22240 *)
22241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22242 for as_dir in $PATH
22243 do
22244 IFS=$as_save_IFS
22245 test -z "$as_dir" && as_dir=.
22246 for ac_exec_ext in '' $ac_executable_extensions; do
22247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22248 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22250 break 2
22251 fi
22252 done
22253 done
22254 IFS=$as_save_IFS
22255
22256 ;;
22257 esac
22258 fi
22259 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22260 if test -n "$gcc_cv_objdump"; then
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22262 $as_echo "$gcc_cv_objdump" >&6; }
22263 else
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22265 $as_echo "no" >&6; }
22266 fi
22267
22268
22269 fi
22270 fi
22271
22272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22273 $as_echo_n "checking what objdump to use... " >&6; }
22274 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22275 # Single tree build which includes binutils.
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22277 $as_echo "newly built objdump" >&6; }
22278 elif test x$gcc_cv_objdump = x; then
22279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22280 $as_echo "not found" >&6; }
22281 else
22282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22283 $as_echo "$gcc_cv_objdump" >&6; }
22284 fi
22285
22286 # Figure out what readelf we will be using.
22287 if test "${gcc_cv_readelf+set}" = set; then :
22288
22289 else
22290
22291 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22292 && test -f ../binutils/Makefile \
22293 && test x$build = x$host; then
22294 # Single tree build which includes binutils.
22295 gcc_cv_readelf=../binutils/readelf$build_exeext
22296 elif test -x readelf$build_exeext; then
22297 gcc_cv_readelf=./readelf$build_exeext
22298 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22299 gcc_cv_readelf="$READELF_FOR_TARGET"
22300 else
22301 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22302 set dummy $READELF_FOR_TARGET; ac_word=$2
22303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22304 $as_echo_n "checking for $ac_word... " >&6; }
22305 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22306 $as_echo_n "(cached) " >&6
22307 else
22308 case $gcc_cv_readelf in
22309 [\\/]* | ?:[\\/]*)
22310 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22311 ;;
22312 *)
22313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22314 for as_dir in $PATH
22315 do
22316 IFS=$as_save_IFS
22317 test -z "$as_dir" && as_dir=.
22318 for ac_exec_ext in '' $ac_executable_extensions; do
22319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22320 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22322 break 2
22323 fi
22324 done
22325 done
22326 IFS=$as_save_IFS
22327
22328 ;;
22329 esac
22330 fi
22331 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22332 if test -n "$gcc_cv_readelf"; then
22333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22334 $as_echo "$gcc_cv_readelf" >&6; }
22335 else
22336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22337 $as_echo "no" >&6; }
22338 fi
22339
22340
22341 fi
22342 fi
22343
22344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22345 $as_echo_n "checking what readelf to use... " >&6; }
22346 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22347 # Single tree build which includes binutils.
22348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22349 $as_echo "newly built readelf" >&6; }
22350 elif test x$gcc_cv_readelf = x; then
22351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22352 $as_echo "not found" >&6; }
22353 else
22354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22355 $as_echo "$gcc_cv_readelf" >&6; }
22356 fi
22357
22358 # Figure out what assembler alignment features are present.
22359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22360 $as_echo_n "checking assembler flags... " >&6; }
22361 if test "${gcc_cv_as_flags+set}" = set; then :
22362 $as_echo_n "(cached) " >&6
22363 else
22364 case "$target" in
22365 i[34567]86-*-linux*)
22366 gcc_cv_as_flags=--32
22367 ;;
22368 x86_64-*-linux-gnux32)
22369 gcc_cv_as_flags=--x32
22370 ;;
22371 x86_64-*-linux*)
22372 gcc_cv_as_flags=--64
22373 ;;
22374 powerpc*-*-darwin*)
22375 gcc_cv_as_flags="-arch ppc"
22376 ;;
22377 *)
22378 gcc_cv_as_flags=" "
22379 ;;
22380 esac
22381 fi
22382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22383 $as_echo "$gcc_cv_as_flags" >&6; }
22384
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22386 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22387 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22388 $as_echo_n "(cached) " >&6
22389 else
22390 gcc_cv_as_balign_and_p2align=no
22391 if test $in_tree_gas = yes; then
22392 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22393 then gcc_cv_as_balign_and_p2align=yes
22394 fi
22395 elif test x$gcc_cv_as != x; then
22396 $as_echo '.balign 4
22397 .p2align 2' > conftest.s
22398 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22400 (eval $ac_try) 2>&5
22401 ac_status=$?
22402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22403 test $ac_status = 0; }; }
22404 then
22405 gcc_cv_as_balign_and_p2align=yes
22406 else
22407 echo "configure: failed program was" >&5
22408 cat conftest.s >&5
22409 fi
22410 rm -f conftest.o conftest.s
22411 fi
22412 fi
22413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22414 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22415 if test $gcc_cv_as_balign_and_p2align = yes; then
22416
22417 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22418
22419 fi
22420
22421
22422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22423 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22424 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22425 $as_echo_n "(cached) " >&6
22426 else
22427 gcc_cv_as_max_skip_p2align=no
22428 if test $in_tree_gas = yes; then
22429 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22430 then gcc_cv_as_max_skip_p2align=yes
22431 fi
22432 elif test x$gcc_cv_as != x; then
22433 $as_echo '.p2align 4,,7' > conftest.s
22434 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22436 (eval $ac_try) 2>&5
22437 ac_status=$?
22438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22439 test $ac_status = 0; }; }
22440 then
22441 gcc_cv_as_max_skip_p2align=yes
22442 else
22443 echo "configure: failed program was" >&5
22444 cat conftest.s >&5
22445 fi
22446 rm -f conftest.o conftest.s
22447 fi
22448 fi
22449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22450 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22451 if test $gcc_cv_as_max_skip_p2align = yes; then
22452
22453 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22454
22455 fi
22456
22457
22458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22459 $as_echo_n "checking assembler for .literal16... " >&6; }
22460 if test "${gcc_cv_as_literal16+set}" = set; then :
22461 $as_echo_n "(cached) " >&6
22462 else
22463 gcc_cv_as_literal16=no
22464 if test $in_tree_gas = yes; then
22465 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22466 then gcc_cv_as_literal16=yes
22467 fi
22468 elif test x$gcc_cv_as != x; then
22469 $as_echo '.literal16' > conftest.s
22470 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22472 (eval $ac_try) 2>&5
22473 ac_status=$?
22474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22475 test $ac_status = 0; }; }
22476 then
22477 gcc_cv_as_literal16=yes
22478 else
22479 echo "configure: failed program was" >&5
22480 cat conftest.s >&5
22481 fi
22482 rm -f conftest.o conftest.s
22483 fi
22484 fi
22485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22486 $as_echo "$gcc_cv_as_literal16" >&6; }
22487 if test $gcc_cv_as_literal16 = yes; then
22488
22489 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22490
22491 fi
22492
22493
22494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22495 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22496 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22497 $as_echo_n "(cached) " >&6
22498 else
22499 gcc_cv_as_subsection_m1=no
22500 if test $in_tree_gas = yes; then
22501 if test $in_tree_gas_is_elf = yes \
22502 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22503 then gcc_cv_as_subsection_m1=yes
22504 fi
22505 elif test x$gcc_cv_as != x; then
22506 $as_echo 'conftest_label1: .word 0
22507 .subsection -1
22508 conftest_label2: .word 0
22509 .previous' > conftest.s
22510 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22511 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22512 (eval $ac_try) 2>&5
22513 ac_status=$?
22514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22515 test $ac_status = 0; }; }
22516 then
22517 if test x$gcc_cv_nm != x; then
22518 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22519 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22520 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22521 then :
22522 else gcc_cv_as_subsection_m1=yes
22523 fi
22524 rm -f conftest.nm1 conftest.nm2
22525 fi
22526 else
22527 echo "configure: failed program was" >&5
22528 cat conftest.s >&5
22529 fi
22530 rm -f conftest.o conftest.s
22531 fi
22532 fi
22533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22534 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22535 if test $gcc_cv_as_subsection_m1 = yes; then
22536
22537 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22538
22539 fi
22540
22541
22542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22543 $as_echo_n "checking assembler for .weak... " >&6; }
22544 if test "${gcc_cv_as_weak+set}" = set; then :
22545 $as_echo_n "(cached) " >&6
22546 else
22547 gcc_cv_as_weak=no
22548 if test $in_tree_gas = yes; then
22549 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22550 then gcc_cv_as_weak=yes
22551 fi
22552 elif test x$gcc_cv_as != x; then
22553 $as_echo ' .weak foobar' > conftest.s
22554 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22556 (eval $ac_try) 2>&5
22557 ac_status=$?
22558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22559 test $ac_status = 0; }; }
22560 then
22561 gcc_cv_as_weak=yes
22562 else
22563 echo "configure: failed program was" >&5
22564 cat conftest.s >&5
22565 fi
22566 rm -f conftest.o conftest.s
22567 fi
22568 fi
22569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22570 $as_echo "$gcc_cv_as_weak" >&6; }
22571 if test $gcc_cv_as_weak = yes; then
22572
22573 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22574
22575 fi
22576
22577
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22579 $as_echo_n "checking assembler for .weakref... " >&6; }
22580 if test "${gcc_cv_as_weakref+set}" = set; then :
22581 $as_echo_n "(cached) " >&6
22582 else
22583 gcc_cv_as_weakref=no
22584 if test $in_tree_gas = yes; then
22585 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22586 then gcc_cv_as_weakref=yes
22587 fi
22588 elif test x$gcc_cv_as != x; then
22589 $as_echo ' .weakref foobar, barfnot' > conftest.s
22590 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22592 (eval $ac_try) 2>&5
22593 ac_status=$?
22594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22595 test $ac_status = 0; }; }
22596 then
22597 gcc_cv_as_weakref=yes
22598 else
22599 echo "configure: failed program was" >&5
22600 cat conftest.s >&5
22601 fi
22602 rm -f conftest.o conftest.s
22603 fi
22604 fi
22605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22606 $as_echo "$gcc_cv_as_weakref" >&6; }
22607 if test $gcc_cv_as_weakref = yes; then
22608
22609 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22610
22611 fi
22612
22613
22614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22615 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22616 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22617 $as_echo_n "(cached) " >&6
22618 else
22619 gcc_cv_as_nsubspa_comdat=no
22620 if test $in_tree_gas = yes; then
22621 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22622 then gcc_cv_as_nsubspa_comdat=yes
22623 fi
22624 elif test x$gcc_cv_as != x; then
22625 $as_echo ' .SPACE $TEXT$
22626 .NSUBSPA $CODE$,COMDAT' > conftest.s
22627 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22629 (eval $ac_try) 2>&5
22630 ac_status=$?
22631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22632 test $ac_status = 0; }; }
22633 then
22634 gcc_cv_as_nsubspa_comdat=yes
22635 else
22636 echo "configure: failed program was" >&5
22637 cat conftest.s >&5
22638 fi
22639 rm -f conftest.o conftest.s
22640 fi
22641 fi
22642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22643 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22644 if test $gcc_cv_as_nsubspa_comdat = yes; then
22645
22646 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22647
22648 fi
22649
22650
22651 # .hidden needs to be supported in both the assembler and the linker,
22652 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22653 # This is irritatingly difficult to feature test for; we have to check the
22654 # date string after the version number. If we've got an in-tree
22655 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22656 # to be safe.
22657 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22658 case "${target}" in
22659 *-*-aix*)
22660 conftest_s=' .globl foobar,hidden'
22661 ;;
22662 *)
22663 conftest_s=' .hidden foobar
22664 foobar:'
22665 ;;
22666 esac
22667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22668 $as_echo_n "checking assembler for .hidden... " >&6; }
22669 if test "${gcc_cv_as_hidden+set}" = set; then :
22670 $as_echo_n "(cached) " >&6
22671 else
22672 gcc_cv_as_hidden=no
22673 if test $in_tree_gas = yes; then
22674 if test $in_tree_gas_is_elf = yes \
22675 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22676 then gcc_cv_as_hidden=yes
22677 fi
22678 elif test x$gcc_cv_as != x; then
22679 $as_echo "$conftest_s" > conftest.s
22680 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22682 (eval $ac_try) 2>&5
22683 ac_status=$?
22684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22685 test $ac_status = 0; }; }
22686 then
22687 gcc_cv_as_hidden=yes
22688 else
22689 echo "configure: failed program was" >&5
22690 cat conftest.s >&5
22691 fi
22692 rm -f conftest.o conftest.s
22693 fi
22694 fi
22695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22696 $as_echo "$gcc_cv_as_hidden" >&6; }
22697
22698
22699 case "${target}" in
22700 *-*-darwin*)
22701 # Darwin as has some visibility support, though with a different syntax.
22702 gcc_cv_as_hidden=yes
22703 ;;
22704 esac
22705
22706 # gnu_indirect_function type is an extension proposed at
22707 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22708 # selection of function implementation
22709 # Check whether --enable-gnu-indirect-function was given.
22710 if test "${enable_gnu_indirect_function+set}" = set; then :
22711 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22712 yes | no) ;;
22713 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22714 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22715 esac
22716 else
22717 enable_gnu_indirect_function="$default_gnu_indirect_function"
22718 fi
22719
22720
22721 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22722
22723 cat >>confdefs.h <<_ACEOF
22724 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22725 _ACEOF
22726
22727
22728
22729 if test $in_tree_ld != yes ; then
22730 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22731 if echo "$ld_ver" | grep GNU > /dev/null; then
22732 if test x"$ld_is_gold" = xyes; then
22733 # GNU gold --version looks like this:
22734 #
22735 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22736 #
22737 # We extract the binutils version which is more familiar and specific
22738 # than the gold version.
22739 ld_vers=`echo $ld_ver | sed -n \
22740 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22741 else
22742 # GNU ld --version looks like this:
22743 #
22744 # GNU ld (GNU Binutils) 2.21.51.20110225
22745 ld_vers=`echo $ld_ver | sed -n \
22746 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22747 fi
22748 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'`
22749 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22750 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22751 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22752 else
22753 case "${target}" in
22754 *-*-solaris2*)
22755 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22756 # format.
22757 #
22758 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22759 # /usr/ccs/bin/ld has been configured.
22760 ld_ver=`$gcc_cv_ld -V 2>&1`
22761 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22762 ld_vers=`echo $ld_ver | sed -n \
22763 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22764 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22765 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22766 fi
22767 ;;
22768 esac
22769 fi
22770 fi
22771
22772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22773 $as_echo_n "checking linker for .hidden support... " >&6; }
22774 if test "${gcc_cv_ld_hidden+set}" = set; then :
22775 $as_echo_n "(cached) " >&6
22776 else
22777 if test $in_tree_ld = yes ; then
22778 gcc_cv_ld_hidden=no
22779 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 \
22780 && test $in_tree_ld_is_elf = yes; then
22781 gcc_cv_ld_hidden=yes
22782 fi
22783 else
22784 gcc_cv_ld_hidden=yes
22785 if test x"$ld_is_gold" = xyes; then
22786 :
22787 elif echo "$ld_ver" | grep GNU > /dev/null; then
22788 case "${target}" in
22789 mmix-knuth-mmixware)
22790 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22791 gcc_cv_ld_hidden=no
22792 ;;
22793 esac
22794 if test 0"$ld_date" -lt 20020404; then
22795 if test -n "$ld_date"; then
22796 # If there was date string, but was earlier than 2002-04-04, fail
22797 gcc_cv_ld_hidden=no
22798 elif test -z "$ld_vers"; then
22799 # If there was no date string nor ld version number, something is wrong
22800 gcc_cv_ld_hidden=no
22801 else
22802 test -z "$ld_vers_patch" && ld_vers_patch=0
22803 if test "$ld_vers_major" -lt 2; then
22804 gcc_cv_ld_hidden=no
22805 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22806 gcc_cv_ld_hidden="no"
22807 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22808 gcc_cv_ld_hidden=no
22809 fi
22810 fi
22811 fi
22812 else
22813 case "${target}" in
22814 *-*-aix[789]*)
22815 gcc_cv_ld_hidden=yes
22816 ;;
22817 *-*-darwin*)
22818 # Darwin ld has some visibility support.
22819 gcc_cv_ld_hidden=yes
22820 ;;
22821 hppa64*-*-hpux* | ia64*-*-hpux*)
22822 gcc_cv_ld_hidden=yes
22823 ;;
22824 *-*-solaris2.1[0-9]*)
22825 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22826 # .symbolic was only added in Solaris 9 12/02.
22827 gcc_cv_ld_hidden=yes
22828 ;;
22829 *)
22830 gcc_cv_ld_hidden=no
22831 ;;
22832 esac
22833 fi
22834 fi
22835 fi
22836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22837 $as_echo "$gcc_cv_ld_hidden" >&6; }
22838 libgcc_visibility=no
22839
22840
22841 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22842 libgcc_visibility=yes
22843
22844 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22845
22846 fi
22847
22848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22849 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22850 gcc_cv_ld_ro_rw_mix=unknown
22851 if test $in_tree_ld = yes ; then
22852 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 \
22853 && test $in_tree_ld_is_elf = yes; then
22854 gcc_cv_ld_ro_rw_mix=read-write
22855 fi
22856 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22857 echo '.section myfoosect, "a"' > conftest1.s
22858 echo '.section myfoosect, "aw"' > conftest2.s
22859 echo '.byte 1' >> conftest2.s
22860 echo '.section myfoosect, "a"' > conftest3.s
22861 echo '.byte 0' >> conftest3.s
22862 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22863 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22864 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22865 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22866 conftest2.o conftest3.o > /dev/null 2>&1; then
22867 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22868 | sed -e '/myfoosect/!d' -e N`
22869 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22870 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22871 gcc_cv_ld_ro_rw_mix=read-only
22872 else
22873 gcc_cv_ld_ro_rw_mix=read-write
22874 fi
22875 fi
22876 fi
22877 rm -f conftest.* conftest[123].*
22878 fi
22879 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22880
22881 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22882
22883 fi
22884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22885 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22886
22887 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22888 case "${target}" in
22889 *-*-solaris2*)
22890 #
22891 # Solaris 2 ld -V output looks like this for a regular version:
22892 #
22893 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22894 #
22895 # but test versions add stuff at the end:
22896 #
22897 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22898 #
22899 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22900 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22901 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22902 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22903 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22904 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22905 fi
22906 ;;
22907 esac
22908 fi
22909
22910 # Check whether --enable-initfini-array was given.
22911 if test "${enable_initfini_array+set}" = set; then :
22912 enableval=$enable_initfini_array;
22913 else
22914
22915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22916 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22917 if test "${gcc_cv_initfini_array+set}" = set; then :
22918 $as_echo_n "(cached) " >&6
22919 else
22920 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22921 case "${target}" in
22922 ia64-*)
22923 if test "$cross_compiling" = yes; then :
22924 gcc_cv_initfini_array=no
22925 else
22926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22927 /* end confdefs.h. */
22928
22929 #ifndef __ELF__
22930 #error Not an ELF OS
22931 #endif
22932 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22933 if it can be used. */
22934 static int x = -1;
22935 int main (void) { return x; }
22936 int foo (void) { x = 0; }
22937 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22938
22939 _ACEOF
22940 if ac_fn_cxx_try_run "$LINENO"; then :
22941 gcc_cv_initfini_array=yes
22942 else
22943 gcc_cv_initfini_array=no
22944 fi
22945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22946 conftest.$ac_objext conftest.beam conftest.$ac_ext
22947 fi
22948 ;;
22949 *)
22950 gcc_cv_initfini_array=no
22951 if test $in_tree_ld = yes ; then
22952 if test "$gcc_cv_gld_major_version" -eq 2 \
22953 -a "$gcc_cv_gld_minor_version" -ge 22 \
22954 -o "$gcc_cv_gld_major_version" -gt 2 \
22955 && test $in_tree_ld_is_elf = yes; then
22956 gcc_cv_initfini_array=yes
22957 fi
22958 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22959 case $target:$gas in
22960 *:yes)
22961 sh_flags='"a"'
22962 sh_type='%progbits'
22963 ;;
22964 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
22965 sh_flags='"a"'
22966 sh_type='@progbits'
22967 ;;
22968 sparc*-*-solaris2*:no)
22969 sh_flags='#alloc'
22970 sh_type='#progbits'
22971 sh_quote='"'
22972 ;;
22973 esac
22974 case "$target:$gnu_ld" in
22975 *:yes)
22976 cat > conftest.s <<EOF
22977 .section .dtors,$sh_flags,$sh_type
22978 .balign 4
22979 .byte 'A', 'A', 'A', 'A'
22980 .section .ctors,$sh_flags,$sh_type
22981 .balign 4
22982 .byte 'B', 'B', 'B', 'B'
22983 .section .fini_array.65530,$sh_flags,$sh_type
22984 .balign 4
22985 .byte 'C', 'C', 'C', 'C'
22986 .section .init_array.65530,$sh_flags,$sh_type
22987 .balign 4
22988 .byte 'D', 'D', 'D', 'D'
22989 .section .dtors.64528,$sh_flags,$sh_type
22990 .balign 4
22991 .byte 'E', 'E', 'E', 'E'
22992 .section .ctors.64528,$sh_flags,$sh_type
22993 .balign 4
22994 .byte 'F', 'F', 'F', 'F'
22995 .section .fini_array.01005,$sh_flags,$sh_type
22996 .balign 4
22997 .byte 'G', 'G', 'G', 'G'
22998 .section .init_array.01005,$sh_flags,$sh_type
22999 .balign 4
23000 .byte 'H', 'H', 'H', 'H'
23001 .text
23002 .globl _start
23003 _start:
23004 EOF
23005 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23006 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23007 && $gcc_cv_objdump -s -j .init_array conftest \
23008 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23009 && $gcc_cv_objdump -s -j .fini_array conftest \
23010 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23011 gcc_cv_initfini_array=yes
23012 fi
23013 ;;
23014 *-*-solaris2*:no)
23015 # When Solaris ld added constructor priority support, it was
23016 # decided to only handle .init_array.N/.fini_array.N since
23017 # there was no need for backwards compatibility with
23018 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23019 # sections with correct execution order resp. to
23020 # .init_array/.fini_array, while gld merges them into
23021 # .init_array/.fini_array.
23022 cat > conftest.s <<EOF
23023 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23024 .align 4
23025 .byte 'C', 'C', 'C', 'C'
23026 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23027 .align 4
23028 .byte 'D', 'D', 'D', 'D'
23029 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23030 .align 4
23031 .byte 'G', 'G', 'G', 'G'
23032 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23033 .align 4
23034 .byte 'H', 'H', 'H', 'H'
23035 .text
23036 .globl _start
23037 _start:
23038 EOF
23039 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23040 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23041 && $gcc_cv_objdump -s -j .init_array conftest \
23042 | grep HHHHDDDD > /dev/null 2>&1 \
23043 && $gcc_cv_objdump -s -j .fini_array conftest \
23044 | grep GGGGCCCC > /dev/null 2>&1; then
23045 gcc_cv_initfini_array=yes
23046 fi
23047 ;;
23048 esac
23049 rm -f conftest conftest.*
23050 fi
23051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23052 /* end confdefs.h. */
23053
23054 #ifndef __ELF__
23055 # error Not an ELF OS
23056 #endif
23057 #include <stdlib.h>
23058 #if defined __GLIBC_PREREQ
23059 # if __GLIBC_PREREQ (2, 4)
23060 # else
23061 # error GLIBC 2.4 required
23062 # endif
23063 #else
23064 # if defined __sun__ && defined __svr4__
23065 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23066 # else
23067 # error The C library not known to support .init_array/.fini_array
23068 # endif
23069 #endif
23070
23071 _ACEOF
23072 if ac_fn_cxx_try_cpp "$LINENO"; then :
23073
23074 else
23075 gcc_cv_initfini_array=no
23076 fi
23077 rm -f conftest.err conftest.$ac_ext;;
23078 esac
23079 else
23080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23081 $as_echo_n "checking cross compile... guessing... " >&6; }
23082 gcc_cv_initfini_array=no
23083 fi
23084 fi
23085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23086 $as_echo "$gcc_cv_initfini_array" >&6; }
23087 enable_initfini_array=$gcc_cv_initfini_array
23088
23089 fi
23090
23091
23092 cat >>confdefs.h <<_ACEOF
23093 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23094 _ACEOF
23095
23096
23097
23098 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23100 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23101 if test "${gcc_cv_as_leb128+set}" = set; then :
23102 $as_echo_n "(cached) " >&6
23103 else
23104 gcc_cv_as_leb128=no
23105 if test $in_tree_gas = yes; then
23106 if test $in_tree_gas_is_elf = yes \
23107 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23108 then gcc_cv_as_leb128=yes
23109 fi
23110 elif test x$gcc_cv_as != x; then
23111 $as_echo ' .data
23112 .uleb128 L2 - L1
23113 L1:
23114 .uleb128 1280
23115 .sleb128 -1010
23116 L2:' > conftest.s
23117 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23119 (eval $ac_try) 2>&5
23120 ac_status=$?
23121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23122 test $ac_status = 0; }; }
23123 then
23124 # GAS versions before 2.11 do not support uleb128,
23125 # despite appearing to.
23126 # ??? There exists an elf-specific test that will crash
23127 # the assembler. Perhaps it's better to figure out whether
23128 # arbitrary sections are supported and try the test.
23129 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23130 if echo "$as_ver" | grep GNU > /dev/null; then
23131 as_vers=`echo $as_ver | sed -n \
23132 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23133 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23134 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23135 if test $as_major -eq 2 && test $as_minor -lt 11
23136 then :
23137 else gcc_cv_as_leb128=yes
23138 fi
23139 fi
23140 else
23141 echo "configure: failed program was" >&5
23142 cat conftest.s >&5
23143 fi
23144 rm -f conftest.o conftest.s
23145 fi
23146 fi
23147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23148 $as_echo "$gcc_cv_as_leb128" >&6; }
23149 if test $gcc_cv_as_leb128 = yes; then
23150
23151 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23152
23153 fi
23154 if test $gcc_cv_as_leb128 != yes; then
23155
23156 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23157
23158 fi
23159
23160 # Check if we have assembler support for unwind directives.
23161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23162 $as_echo_n "checking assembler for cfi directives... " >&6; }
23163 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23164 $as_echo_n "(cached) " >&6
23165 else
23166 gcc_cv_as_cfi_directive=no
23167 if test x$gcc_cv_as != x; then
23168 $as_echo ' .text
23169 .cfi_startproc
23170 .cfi_offset 0, 0
23171 .cfi_same_value 1
23172 .cfi_def_cfa 1, 2
23173 .cfi_escape 1, 2, 3, 4, 5
23174 .cfi_endproc' > conftest.s
23175 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23177 (eval $ac_try) 2>&5
23178 ac_status=$?
23179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23180 test $ac_status = 0; }; }
23181 then
23182 case "$target" in
23183 *-*-solaris*)
23184 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23185 # read-only and read-write sections, we need to make sure that the
23186 # assembler used emits read-write .eh_frame sections.
23187 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
23188 if test "x$gcc_cv_objdump" != x; then
23189 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23190 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
23191 gcc_cv_as_cfi_directive=no
23192 else
23193 case "$target" in
23194 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
23195 # On Solaris/x86, make sure that GCC and assembler agree on using
23196 # read-only .eh_frame sections for 64-bit.
23197 if test x$gas = xyes; then
23198 as_ix86_64_opt="--64"
23199 else
23200 as_ix86_64_opt="-xarch=amd64"
23201 fi
23202 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
23203 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23204 sed -e /.eh_frame/!d -e N | \
23205 grep READONLY > /dev/null; then
23206 gcc_cv_as_cfi_directive=yes
23207 else
23208 gcc_cv_as_cfi_directive=no
23209 fi
23210 ;;
23211 *)
23212 gcc_cv_as_cfi_directive=yes
23213 ;;
23214 esac
23215 fi
23216 else
23217 # no objdump, err on the side of caution
23218 gcc_cv_as_cfi_directive=no
23219 fi
23220 else
23221 gcc_cv_as_cfi_directive=yes
23222 fi
23223 ;;
23224 *-*-*)
23225 gcc_cv_as_cfi_directive=yes
23226 ;;
23227 esac
23228 else
23229 echo "configure: failed program was" >&5
23230 cat conftest.s >&5
23231 fi
23232 rm -f conftest.o conftest.s
23233 fi
23234 fi
23235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23236 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23237
23238
23239 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23241 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23242 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23243 $as_echo_n "(cached) " >&6
23244 else
23245 gcc_cv_as_cfi_advance_working=no
23246 if test x$gcc_cv_as != x; then
23247 $as_echo ' .text
23248 .cfi_startproc
23249 .cfi_adjust_cfa_offset 64
23250 .skip 75040, 0
23251 .cfi_adjust_cfa_offset 128
23252 .cfi_endproc' > conftest.s
23253 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23255 (eval $ac_try) 2>&5
23256 ac_status=$?
23257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23258 test $ac_status = 0; }; }
23259 then
23260
23261 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23262 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23263 gcc_cv_as_cfi_advance_working=yes
23264 fi
23265
23266 else
23267 echo "configure: failed program was" >&5
23268 cat conftest.s >&5
23269 fi
23270 rm -f conftest.o conftest.s
23271 fi
23272 fi
23273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23274 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23275
23276
23277 else
23278 # no objdump, err on the side of caution
23279 gcc_cv_as_cfi_advance_working=no
23280 fi
23281
23282
23283 cat >>confdefs.h <<_ACEOF
23284 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23285 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23286 _ACEOF
23287
23288
23289
23290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23291 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23292 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23293 $as_echo_n "(cached) " >&6
23294 else
23295 gcc_cv_as_cfi_personality_directive=no
23296 if test x$gcc_cv_as != x; then
23297 $as_echo ' .text
23298 .cfi_startproc
23299 .cfi_personality 0, symbol
23300 .cfi_endproc' > conftest.s
23301 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23303 (eval $ac_try) 2>&5
23304 ac_status=$?
23305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23306 test $ac_status = 0; }; }
23307 then
23308 gcc_cv_as_cfi_personality_directive=yes
23309 else
23310 echo "configure: failed program was" >&5
23311 cat conftest.s >&5
23312 fi
23313 rm -f conftest.o conftest.s
23314 fi
23315 fi
23316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23317 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23318
23319
23320
23321 cat >>confdefs.h <<_ACEOF
23322 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23323 then echo 1; else echo 0; fi`
23324 _ACEOF
23325
23326
23327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23328 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23329 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23330 $as_echo_n "(cached) " >&6
23331 else
23332 gcc_cv_as_cfi_sections_directive=no
23333 if test x$gcc_cv_as != x; then
23334 $as_echo ' .text
23335 .cfi_sections .debug_frame, .eh_frame
23336 .cfi_startproc
23337 .cfi_endproc' > conftest.s
23338 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23340 (eval $ac_try) 2>&5
23341 ac_status=$?
23342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23343 test $ac_status = 0; }; }
23344 then
23345 case $target_os in
23346 win32 | pe | cygwin* | mingw32*)
23347 # Need to check that we generated the correct relocation for the
23348 # .debug_frame section. This was fixed for binutils 2.21.
23349 gcc_cv_as_cfi_sections_directive=no
23350 if test "x$gcc_cv_objdump" != x; then
23351 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23352 grep secrel > /dev/null; then
23353 gcc_cv_as_cfi_sections_directive=yes
23354 fi
23355 fi
23356 ;;
23357 *)
23358 gcc_cv_as_cfi_sections_directive=yes
23359 ;;
23360 esac
23361 else
23362 echo "configure: failed program was" >&5
23363 cat conftest.s >&5
23364 fi
23365 rm -f conftest.o conftest.s
23366 fi
23367 fi
23368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23369 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23370
23371
23372
23373
23374 cat >>confdefs.h <<_ACEOF
23375 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23376 then echo 1; else echo 0; fi`
23377 _ACEOF
23378
23379
23380 # GAS versions up to and including 2.11.0 may mis-optimize
23381 # .eh_frame data.
23382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23383 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23384 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23385 $as_echo_n "(cached) " >&6
23386 else
23387 gcc_cv_as_eh_frame=no
23388 if test $in_tree_gas = yes; then
23389 if test $in_tree_gas_is_elf = yes \
23390 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23391 then gcc_cv_as_eh_frame=yes
23392 fi
23393 elif test x$gcc_cv_as != x; then
23394 $as_echo ' .text
23395 .LFB1:
23396 .4byte 0
23397 .L1:
23398 .4byte 0
23399 .LFE1:
23400 .section .eh_frame,"aw",@progbits
23401 __FRAME_BEGIN__:
23402 .4byte .LECIE1-.LSCIE1
23403 .LSCIE1:
23404 .4byte 0x0
23405 .byte 0x1
23406 .ascii "z\0"
23407 .byte 0x1
23408 .byte 0x78
23409 .byte 0x1a
23410 .byte 0x0
23411 .byte 0x4
23412 .4byte 1
23413 .p2align 1
23414 .LECIE1:
23415 .LSFDE1:
23416 .4byte .LEFDE1-.LASFDE1
23417 .LASFDE1:
23418 .4byte .LASFDE1-__FRAME_BEGIN__
23419 .4byte .LFB1
23420 .4byte .LFE1-.LFB1
23421 .byte 0x4
23422 .4byte .LFE1-.LFB1
23423 .byte 0x4
23424 .4byte .L1-.LFB1
23425 .LEFDE1:' > conftest.s
23426 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23428 (eval $ac_try) 2>&5
23429 ac_status=$?
23430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23431 test $ac_status = 0; }; }
23432 then
23433 cat > conftest.lit <<EOF
23434 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23435 0010 01000000 12000000 18000000 00000000 ................
23436 0020 08000000 04080000 0044 .........D
23437 EOF
23438 cat > conftest.big <<EOF
23439 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23440 0010 00000001 00000012 00000018 00000000 ................
23441 0020 00000008 04000000 0844 .........D
23442 EOF
23443 # If the assembler didn't choke, and we can objdump,
23444 # and we got the correct data, then succeed.
23445 # The text in the here-document typically retains its unix-style line
23446 # endings, while the output of objdump will use host line endings.
23447 # Therefore, use diff -b for the comparisons.
23448 if test x$gcc_cv_objdump != x \
23449 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23450 | tail -3 > conftest.got \
23451 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23452 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23453 then
23454 gcc_cv_as_eh_frame=yes
23455 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23457 (eval $ac_try) 2>&5
23458 ac_status=$?
23459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23460 test $ac_status = 0; }; }; then
23461 gcc_cv_as_eh_frame=buggy
23462 else
23463 # Uh oh, what do we do now?
23464 gcc_cv_as_eh_frame=no
23465 fi
23466 else
23467 echo "configure: failed program was" >&5
23468 cat conftest.s >&5
23469 fi
23470 rm -f conftest.o conftest.s
23471 fi
23472 fi
23473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23474 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23475
23476
23477
23478 if test $gcc_cv_as_eh_frame = buggy; then
23479
23480 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23481
23482 fi
23483
23484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23485 $as_echo_n "checking assembler for section merging support... " >&6; }
23486 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23487 $as_echo_n "(cached) " >&6
23488 else
23489 gcc_cv_as_shf_merge=no
23490 if test $in_tree_gas = yes; then
23491 if test $in_tree_gas_is_elf = yes \
23492 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23493 then gcc_cv_as_shf_merge=yes
23494 fi
23495 elif test x$gcc_cv_as != x; then
23496 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23497 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23499 (eval $ac_try) 2>&5
23500 ac_status=$?
23501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23502 test $ac_status = 0; }; }
23503 then
23504 gcc_cv_as_shf_merge=yes
23505 else
23506 echo "configure: failed program was" >&5
23507 cat conftest.s >&5
23508 fi
23509 rm -f conftest.o conftest.s
23510 fi
23511 fi
23512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23513 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23514
23515
23516 if test $gcc_cv_as_shf_merge = no; then
23517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23518 $as_echo_n "checking assembler for section merging support... " >&6; }
23519 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23520 $as_echo_n "(cached) " >&6
23521 else
23522 gcc_cv_as_shf_merge=no
23523 if test $in_tree_gas = yes; then
23524 if test $in_tree_gas_is_elf = yes \
23525 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23526 then gcc_cv_as_shf_merge=yes
23527 fi
23528 elif test x$gcc_cv_as != x; then
23529 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23530 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23532 (eval $ac_try) 2>&5
23533 ac_status=$?
23534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23535 test $ac_status = 0; }; }
23536 then
23537 gcc_cv_as_shf_merge=yes
23538 else
23539 echo "configure: failed program was" >&5
23540 cat conftest.s >&5
23541 fi
23542 rm -f conftest.o conftest.s
23543 fi
23544 fi
23545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23546 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23547
23548
23549 fi
23550
23551 cat >>confdefs.h <<_ACEOF
23552 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23553 _ACEOF
23554
23555
23556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23557 $as_echo_n "checking assembler for stabs directive... " >&6; }
23558 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23559 $as_echo_n "(cached) " >&6
23560 else
23561 gcc_cv_as_stabs_directive=no
23562 if test x$gcc_cv_as != x; then
23563 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23564 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23566 (eval $ac_try) 2>&5
23567 ac_status=$?
23568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23569 test $ac_status = 0; }; }
23570 then
23571 gcc_cv_as_stabs_directive=yes
23572 else
23573 echo "configure: failed program was" >&5
23574 cat conftest.s >&5
23575 fi
23576 rm -f conftest.o conftest.s
23577 fi
23578 fi
23579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23580 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23581 if test $gcc_cv_as_stabs_directive = yes; then
23582
23583 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23584
23585 fi
23586
23587
23588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23589 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23590 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23591 $as_echo_n "(cached) " >&6
23592 else
23593 gcc_cv_as_comdat_group=no
23594 if test $in_tree_gas = yes; then
23595 if test $in_tree_gas_is_elf = yes \
23596 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23597 then gcc_cv_as_comdat_group=yes
23598 fi
23599 elif test x$gcc_cv_as != x; then
23600 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23601 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23602 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23603 (eval $ac_try) 2>&5
23604 ac_status=$?
23605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23606 test $ac_status = 0; }; }
23607 then
23608 gcc_cv_as_comdat_group=yes
23609 else
23610 echo "configure: failed program was" >&5
23611 cat conftest.s >&5
23612 fi
23613 rm -f conftest.o conftest.s
23614 fi
23615 fi
23616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23617 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23618
23619
23620 if test $gcc_cv_as_comdat_group = yes; then
23621 gcc_cv_as_comdat_group_percent=no
23622 gcc_cv_as_comdat_group_group=no
23623 else
23624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23625 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23626 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23627 $as_echo_n "(cached) " >&6
23628 else
23629 gcc_cv_as_comdat_group_percent=no
23630 if test $in_tree_gas = yes; then
23631 if test $in_tree_gas_is_elf = yes \
23632 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23633 then gcc_cv_as_comdat_group_percent=yes
23634 fi
23635 elif test x$gcc_cv_as != x; then
23636 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23637 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23639 (eval $ac_try) 2>&5
23640 ac_status=$?
23641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23642 test $ac_status = 0; }; }
23643 then
23644 gcc_cv_as_comdat_group_percent=yes
23645 else
23646 echo "configure: failed program was" >&5
23647 cat conftest.s >&5
23648 fi
23649 rm -f conftest.o conftest.s
23650 fi
23651 fi
23652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23653 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23654
23655
23656 if test $gcc_cv_as_comdat_group_percent = yes; then
23657 gcc_cv_as_comdat_group_group=no
23658 else
23659 case "${target}" in
23660 # Sun as uses a completely different syntax.
23661 *-*-solaris2*)
23662 case "${target}" in
23663 sparc*-*-solaris2*)
23664 conftest_s='
23665 .group foo,".text%foo",#comdat
23666 .section ".text%foo", #alloc,#execinstr,#progbits
23667 .globl foo
23668 foo:
23669 '
23670 ;;
23671 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23672 conftest_s='
23673 .group foo,.text%foo,#comdat
23674 .section .text%foo, "ax", @progbits
23675 .globl foo
23676 foo:
23677 '
23678 ;;
23679 esac
23680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23681 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23682 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23683 $as_echo_n "(cached) " >&6
23684 else
23685 gcc_cv_as_comdat_group_group=no
23686 if test x$gcc_cv_as != x; then
23687 $as_echo "$conftest_s" > conftest.s
23688 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23690 (eval $ac_try) 2>&5
23691 ac_status=$?
23692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23693 test $ac_status = 0; }; }
23694 then
23695 gcc_cv_as_comdat_group_group=yes
23696 else
23697 echo "configure: failed program was" >&5
23698 cat conftest.s >&5
23699 fi
23700 rm -f conftest.o conftest.s
23701 fi
23702 fi
23703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23704 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23705
23706
23707 ;;
23708 esac
23709 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23710 gcc_cv_as_comdat_group_group=no
23711 fi
23712 fi
23713 fi
23714 if test x"$ld_is_gold" = xyes; then
23715 comdat_group=yes
23716 elif test $in_tree_ld = yes ; then
23717 comdat_group=no
23718 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 \
23719 && test $in_tree_ld_is_elf = yes; then
23720 comdat_group=yes
23721 fi
23722 elif echo "$ld_ver" | grep GNU > /dev/null; then
23723 comdat_group=yes
23724 if test 0"$ld_date" -lt 20050308; then
23725 if test -n "$ld_date"; then
23726 # If there was date string, but was earlier than 2005-03-08, fail
23727 comdat_group=no
23728 elif test "$ld_vers_major" -lt 2; then
23729 comdat_group=no
23730 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23731 comdat_group=no
23732 fi
23733 fi
23734 else
23735 case "${target}" in
23736 *-*-solaris2.1[1-9]*)
23737 comdat_group=no
23738 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23739 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23740 # version 1.688.
23741 #
23742 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23743 # least ld version 1.2267.
23744 if test "$ld_vers_major" -gt 1; then
23745 comdat_group=yes
23746 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23747 comdat_group=yes
23748 elif test "$ld_vers_minor" -ge 2267; then
23749 comdat_group=yes
23750 fi
23751 ;;
23752 *)
23753 # Assume linkers other than GNU ld don't support COMDAT group.
23754 comdat_group=no
23755 ;;
23756 esac
23757 fi
23758 # Allow overriding the automatic COMDAT group tests above.
23759 # Check whether --enable-comdat was given.
23760 if test "${enable_comdat+set}" = set; then :
23761 enableval=$enable_comdat; comdat_group="$enable_comdat"
23762 fi
23763
23764 if test $comdat_group = no; then
23765 gcc_cv_as_comdat_group=no
23766 gcc_cv_as_comdat_group_percent=no
23767 gcc_cv_as_comdat_group_group=no
23768 fi
23769
23770 cat >>confdefs.h <<_ACEOF
23771 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23772 || test $gcc_cv_as_comdat_group_percent = yes \
23773 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23774 _ACEOF
23775
23776
23777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23778 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23779 if test "${gcc_cv_as_discriminator+set}" = set; then :
23780 $as_echo_n "(cached) " >&6
23781 else
23782 gcc_cv_as_discriminator=no
23783 if test $in_tree_gas = yes; then
23784 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23785 then gcc_cv_as_discriminator=yes
23786 fi
23787 elif test x$gcc_cv_as != x; then
23788 $as_echo ' .text
23789 .file 1 "conf.c"
23790 .loc 1 1 0 discriminator 1' > conftest.s
23791 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23793 (eval $ac_try) 2>&5
23794 ac_status=$?
23795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23796 test $ac_status = 0; }; }
23797 then
23798 gcc_cv_as_discriminator=yes
23799 else
23800 echo "configure: failed program was" >&5
23801 cat conftest.s >&5
23802 fi
23803 rm -f conftest.o conftest.s
23804 fi
23805 fi
23806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23807 $as_echo "$gcc_cv_as_discriminator" >&6; }
23808 if test $gcc_cv_as_discriminator = yes; then
23809
23810 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23811
23812 fi
23813
23814
23815 # Thread-local storage - the check is heavily parameterized.
23816 conftest_s=
23817 tls_first_major=
23818 tls_first_minor=
23819 tls_as_opt=
23820 case "$target" in
23821 alpha*-*-*)
23822 conftest_s='
23823 .section ".tdata","awT",@progbits
23824 foo: .long 25
23825 .text
23826 ldq $27,__tls_get_addr($29) !literal!1
23827 lda $16,foo($29) !tlsgd!1
23828 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23829 ldq $27,__tls_get_addr($29) !literal!2
23830 lda $16,foo($29) !tlsldm!2
23831 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23832 ldq $1,foo($29) !gotdtprel
23833 ldah $2,foo($29) !dtprelhi
23834 lda $3,foo($2) !dtprello
23835 lda $4,foo($29) !dtprel
23836 ldq $1,foo($29) !gottprel
23837 ldah $2,foo($29) !tprelhi
23838 lda $3,foo($2) !tprello
23839 lda $4,foo($29) !tprel'
23840 tls_first_major=2
23841 tls_first_minor=13
23842 tls_as_opt=--fatal-warnings
23843 ;;
23844 arc*-*-*)
23845 conftest_s='
23846 add_s r0,r0, @foo@tpoff'
23847 tls_first_major=2
23848 tls_first_minor=23
23849 ;;
23850 cris-*-*|crisv32-*-*)
23851 conftest_s='
23852 .section ".tdata","awT",@progbits
23853 x: .long 25
23854 .text
23855 move.d x:IE,$r10
23856 nop'
23857 tls_first_major=2
23858 tls_first_minor=20
23859 tls_as_opt=--fatal-warnings
23860 ;;
23861 frv*-*-*)
23862 conftest_s='
23863 .section ".tdata","awT",@progbits
23864 x: .long 25
23865 .text
23866 call #gettlsoff(x)'
23867 tls_first_major=2
23868 tls_first_minor=14
23869 ;;
23870 hppa*-*-linux*)
23871 conftest_s='
23872 t1: .reg %r20
23873 t2: .reg %r21
23874 gp: .reg %r19
23875 .section ".tdata","awT",@progbits
23876 foo: .long 25
23877 .text
23878 .align 4
23879 addil LT%foo-$tls_gdidx$,gp
23880 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23881 b __tls_get_addr
23882 nop
23883 addil LT%foo-$tls_ldidx$,gp
23884 b __tls_get_addr
23885 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23886 addil LR%foo-$tls_dtpoff$,%ret0
23887 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23888 mfctl %cr27,%t1
23889 addil LT%foo-$tls_ieoff$,gp
23890 ldw RT%foo-$tls_ieoff$(%r1),%t2
23891 add %t1,%t2,%t3
23892 mfctl %cr27,%t1
23893 addil LR%foo-$tls_leoff$,%t1
23894 ldo RR%foo-$tls_leoff$(%r1),%t2'
23895 tls_first_major=2
23896 tls_first_minor=15
23897 tls_as_opt=--fatal-warnings
23898 ;;
23899 arm*-*-*)
23900 conftest_s='
23901 .section ".tdata","awT",%progbits
23902 foo: .long 25
23903 .text
23904 .word foo(gottpoff)
23905 .word foo(tpoff)
23906 .word foo(tlsgd)
23907 .word foo(tlsldm)
23908 .word foo(tlsldo)'
23909 tls_first_major=2
23910 tls_first_minor=17
23911 ;;
23912 i[34567]86-*-* | x86_64-*-*)
23913 case "$target" in
23914 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23915 on_solaris=yes
23916 ;;
23917 *)
23918 on_solaris=no
23919 ;;
23920 esac
23921 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23922 conftest_s='
23923 .section .tdata,"awt",@progbits'
23924 tls_first_major=0
23925 tls_first_minor=0
23926 tls_section_flag=t
23927
23928 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23929
23930 else
23931 conftest_s='
23932 .section ".tdata","awT",@progbits'
23933 tls_first_major=2
23934 tls_first_minor=14
23935 tls_section_flag=T
23936 tls_as_opt="--fatal-warnings"
23937 fi
23938 case "$target" in
23939 i[34567]86-*-*)
23940 conftest_s="$conftest_s
23941 foo: .long 25
23942 .text
23943 movl %gs:0, %eax
23944 leal foo@tlsgd(,%ebx,1), %eax
23945 leal foo@tlsldm(%ebx), %eax
23946 leal foo@dtpoff(%eax), %edx
23947 movl foo@gottpoff(%ebx), %eax
23948 subl foo@gottpoff(%ebx), %eax
23949 addl foo@gotntpoff(%ebx), %eax
23950 movl foo@indntpoff, %eax
23951 movl \$foo@tpoff, %eax
23952 subl \$foo@tpoff, %eax
23953 leal foo@ntpoff(%ecx), %eax"
23954 ;;
23955 x86_64-*-*)
23956 if test x$on_solaris = xyes; then
23957 case $gas_flag in
23958 yes) tls_as_opt="$tls_as_opt --64" ;;
23959 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23960 esac
23961 fi
23962 conftest_s="$conftest_s
23963 foo: .long 25
23964 .text
23965 movq %fs:0, %rax
23966 leaq foo@tlsgd(%rip), %rdi
23967 leaq foo@tlsld(%rip), %rdi
23968 leaq foo@dtpoff(%rax), %rdx
23969 movq foo@gottpoff(%rip), %rax
23970 movq \$foo@tpoff, %rax"
23971 ;;
23972 esac
23973 ;;
23974 ia64-*-*)
23975 conftest_s='
23976 .section ".tdata","awT",@progbits
23977 foo: data8 25
23978 .text
23979 addl r16 = @ltoff(@dtpmod(foo#)), gp
23980 addl r17 = @ltoff(@dtprel(foo#)), gp
23981 addl r18 = @ltoff(@tprel(foo#)), gp
23982 addl r19 = @dtprel(foo#), gp
23983 adds r21 = @dtprel(foo#), r13
23984 movl r23 = @dtprel(foo#)
23985 addl r20 = @tprel(foo#), gp
23986 adds r22 = @tprel(foo#), r13
23987 movl r24 = @tprel(foo#)'
23988 tls_first_major=2
23989 tls_first_minor=13
23990 tls_as_opt=--fatal-warnings
23991 ;;
23992 microblaze*-*-*)
23993 conftest_s='
23994 .section .tdata,"awT",@progbits
23995 x:
23996 .word 2
23997 .text
23998 addik r5,r20,x@TLSGD
23999 addik r5,r20,x@TLSLDM'
24000 tls_first_major=2
24001 tls_first_minor=20
24002 tls_as_opt='--fatal-warnings'
24003 ;;
24004 mips*-*-*)
24005 conftest_s='
24006 .section .tdata,"awT",@progbits
24007 x:
24008 .word 2
24009 .text
24010 addiu $4, $28, %tlsgd(x)
24011 addiu $4, $28, %tlsldm(x)
24012 lui $4, %dtprel_hi(x)
24013 addiu $4, $4, %dtprel_lo(x)
24014 lw $4, %gottprel(x)($28)
24015 lui $4, %tprel_hi(x)
24016 addiu $4, $4, %tprel_lo(x)'
24017 tls_first_major=2
24018 tls_first_minor=16
24019 tls_as_opt='-32 --fatal-warnings'
24020 ;;
24021 m68k-*-*)
24022 conftest_s='
24023 .section .tdata,"awT",@progbits
24024 x:
24025 .word 2
24026 .text
24027 foo:
24028 move.l x@TLSGD(%a5),%a0
24029 move.l x@TLSLDM(%a5),%a0
24030 move.l x@TLSLDO(%a5),%a0
24031 move.l x@TLSIE(%a5),%a0
24032 move.l x@TLSLE(%a5),%a0'
24033 tls_first_major=2
24034 tls_first_minor=19
24035 tls_as_opt='--fatal-warnings'
24036 ;;
24037 nios2-*-*)
24038 conftest_s='
24039 .section ".tdata","awT",@progbits'
24040 tls_first_major=2
24041 tls_first_minor=23
24042 tls_as_opt="--fatal-warnings"
24043 ;;
24044 aarch64*-*-*)
24045 conftest_s='
24046 .section ".tdata","awT",%progbits
24047 foo: .long 25
24048 .text
24049 adrp x0, :tlsgd:x
24050 add x0, x0, #:tlsgd_lo12:x
24051 bl __tls_get_addr
24052 nop'
24053 tls_first_major=2
24054 tls_first_minor=20
24055 tls_as_opt='--fatal-warnings'
24056 ;;
24057 powerpc-ibm-aix*)
24058 conftest_s='
24059 .extern __get_tpointer
24060 .toc
24061 LC..1:
24062 .tc a[TC],a[TL]@le
24063 .csect .text[PR]
24064 .tlstest:
24065 lwz 9,LC..1(2)
24066 bla __get_tpointer
24067 lwzx 3,9,3
24068 .globl a
24069 .csect a[TL],4
24070 a:
24071 .space 4'
24072 tls_first_major=0
24073 tls_first_minor=0
24074 ;;
24075 powerpc64*-*-*)
24076 conftest_s='
24077 .section ".tdata","awT",@progbits
24078 .align 3
24079 ld0: .space 8
24080 ld1: .space 8
24081 x1: .space 8
24082 x2: .space 8
24083 x3: .space 8
24084 .text
24085 addi 3,2,ld0@got@tlsgd
24086 bl .__tls_get_addr
24087 nop
24088 addi 3,2,ld1@toc
24089 bl .__tls_get_addr
24090 nop
24091 addi 3,2,x1@got@tlsld
24092 bl .__tls_get_addr
24093 nop
24094 addi 9,3,x1@dtprel
24095 bl .__tls_get_addr
24096 nop
24097 addis 9,3,x2@dtprel@ha
24098 addi 9,9,x2@dtprel@l
24099 bl .__tls_get_addr
24100 nop
24101 ld 9,x3@got@dtprel(2)
24102 add 9,9,3
24103 bl .__tls_get_addr
24104 nop'
24105 tls_first_major=2
24106 tls_first_minor=14
24107 tls_as_opt="-a64 --fatal-warnings"
24108 ;;
24109 powerpc*-*-*)
24110 conftest_s='
24111 .section ".tdata","awT",@progbits
24112 .align 2
24113 ld0: .space 4
24114 ld1: .space 4
24115 x1: .space 4
24116 x2: .space 4
24117 x3: .space 4
24118 .text
24119 addi 3,31,ld0@got@tlsgd
24120 bl __tls_get_addr
24121 addi 3,31,x1@got@tlsld
24122 bl __tls_get_addr
24123 addi 9,3,x1@dtprel
24124 addis 9,3,x2@dtprel@ha
24125 addi 9,9,x2@dtprel@l
24126 lwz 9,x3@got@tprel(31)
24127 add 9,9,x@tls
24128 addi 9,2,x1@tprel
24129 addis 9,2,x2@tprel@ha
24130 addi 9,9,x2@tprel@l'
24131 tls_first_major=2
24132 tls_first_minor=14
24133 tls_as_opt="-a32 --fatal-warnings"
24134 ;;
24135 s390-*-*)
24136 conftest_s='
24137 .section ".tdata","awT",@progbits
24138 foo: .long 25
24139 .text
24140 .long foo@TLSGD
24141 .long foo@TLSLDM
24142 .long foo@DTPOFF
24143 .long foo@NTPOFF
24144 .long foo@GOTNTPOFF
24145 .long foo@INDNTPOFF
24146 l %r1,foo@GOTNTPOFF(%r12)
24147 l %r1,0(%r1):tls_load:foo
24148 bas %r14,0(%r1,%r13):tls_gdcall:foo
24149 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24150 tls_first_major=2
24151 tls_first_minor=14
24152 tls_as_opt="-m31 --fatal-warnings"
24153 ;;
24154 s390x-*-*)
24155 conftest_s='
24156 .section ".tdata","awT",@progbits
24157 foo: .long 25
24158 .text
24159 .quad foo@TLSGD
24160 .quad foo@TLSLDM
24161 .quad foo@DTPOFF
24162 .quad foo@NTPOFF
24163 .quad foo@GOTNTPOFF
24164 lg %r1,foo@GOTNTPOFF(%r12)
24165 larl %r1,foo@INDNTPOFF
24166 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24167 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24168 tls_first_major=2
24169 tls_first_minor=14
24170 tls_as_opt="-m64 -Aesame --fatal-warnings"
24171 ;;
24172 sh-*-* | sh[123456789lbe]*-*-*)
24173 conftest_s='
24174 .section ".tdata","awT",@progbits
24175 foo: .long 25
24176 .text
24177 .long foo@TLSGD
24178 .long foo@TLSLDM
24179 .long foo@DTPOFF
24180 .long foo@GOTTPOFF
24181 .long foo@TPOFF'
24182 tls_first_major=2
24183 tls_first_minor=13
24184 tls_as_opt=--fatal-warnings
24185 ;;
24186 sparc*-*-*)
24187 case "$target" in
24188 sparc*-sun-solaris2.*)
24189 on_solaris=yes
24190 ;;
24191 *)
24192 on_solaris=no
24193 ;;
24194 esac
24195 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24196 conftest_s='
24197 .section ".tdata",#alloc,#write,#tls'
24198 tls_first_major=0
24199 tls_first_minor=0
24200 else
24201 conftest_s='
24202 .section ".tdata","awT",@progbits'
24203 tls_first_major=2
24204 tls_first_minor=14
24205 tls_as_opt="-32 --fatal-warnings"
24206 fi
24207 conftest_s="$conftest_s
24208 foo: .long 25
24209 .text
24210 sethi %tgd_hi22(foo), %o0
24211 add %o0, %tgd_lo10(foo), %o1
24212 add %l7, %o1, %o0, %tgd_add(foo)
24213 call __tls_get_addr, %tgd_call(foo)
24214 sethi %tldm_hi22(foo), %l1
24215 add %l1, %tldm_lo10(foo), %l2
24216 add %l7, %l2, %o0, %tldm_add(foo)
24217 call __tls_get_addr, %tldm_call(foo)
24218 sethi %tldo_hix22(foo), %l3
24219 xor %l3, %tldo_lox10(foo), %l4
24220 add %o0, %l4, %l5, %tldo_add(foo)
24221 sethi %tie_hi22(foo), %o3
24222 add %o3, %tie_lo10(foo), %o3
24223 ld [%l7 + %o3], %o2, %tie_ld(foo)
24224 add %g7, %o2, %o4, %tie_add(foo)
24225 sethi %tle_hix22(foo), %l1
24226 xor %l1, %tle_lox10(foo), %o5
24227 ld [%g7 + %o5], %o1"
24228 ;;
24229 tilepro*-*-*)
24230 conftest_s='
24231 .section ".tdata","awT",@progbits
24232 foo: .long 25
24233 .text
24234 addli r0, zero, tls_gd(foo)
24235 auli r0, zero, tls_gd_ha16(foo)
24236 addli r0, r0, tls_gd_lo16(foo)
24237 jal __tls_get_addr
24238 addli r0, zero, tls_ie(foo)
24239 auli r0, r0, tls_ie_ha16(foo)
24240 addli r0, r0, tls_ie_lo16(foo)'
24241 tls_first_major=2
24242 tls_first_minor=22
24243 tls_as_opt="--fatal-warnings"
24244 ;;
24245 tilegx*-*-*)
24246 conftest_s='
24247 .section ".tdata","awT",@progbits
24248 foo: .long 25
24249 .text
24250 shl16insli r0, zero, hw0_last_tls_gd(foo)
24251 shl16insli r0, zero, hw1_last_tls_gd(foo)
24252 shl16insli r0, r0, hw0_tls_gd(foo)
24253 jal __tls_get_addr
24254 shl16insli r0, zero, hw1_last_tls_ie(foo)
24255 shl16insli r0, r0, hw0_tls_ie(foo)'
24256 tls_first_major=2
24257 tls_first_minor=22
24258 tls_as_opt="--fatal-warnings"
24259 ;;
24260 xtensa*-*-*)
24261 conftest_s='
24262 .section ".tdata","awT",@progbits
24263 foo: .long 25
24264 .text
24265 movi a8, foo@TLSFUNC
24266 movi a10, foo@TLSARG
24267 callx8.tls a8, foo@TLSCALL'
24268 tls_first_major=2
24269 tls_first_minor=19
24270 ;;
24271 esac
24272 set_have_as_tls=no
24273 if test "x$enable_tls" = xno ; then
24274 : # TLS explicitly disabled.
24275 elif test "x$enable_tls" = xyes ; then
24276 set_have_as_tls=yes # TLS explicitly enabled.
24277 elif test -z "$tls_first_major"; then
24278 : # If we don't have a check, assume no support.
24279 else
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24281 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24282 if test "${gcc_cv_as_tls+set}" = set; then :
24283 $as_echo_n "(cached) " >&6
24284 else
24285 gcc_cv_as_tls=no
24286 if test $in_tree_gas = yes; then
24287 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24288 then gcc_cv_as_tls=yes
24289 fi
24290 elif test x$gcc_cv_as != x; then
24291 $as_echo "$conftest_s" > conftest.s
24292 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24294 (eval $ac_try) 2>&5
24295 ac_status=$?
24296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24297 test $ac_status = 0; }; }
24298 then
24299 gcc_cv_as_tls=yes
24300 else
24301 echo "configure: failed program was" >&5
24302 cat conftest.s >&5
24303 fi
24304 rm -f conftest.o conftest.s
24305 fi
24306 fi
24307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24308 $as_echo "$gcc_cv_as_tls" >&6; }
24309 if test $gcc_cv_as_tls = yes; then
24310 set_have_as_tls=yes
24311 fi
24312
24313 fi
24314 if test $set_have_as_tls = yes ; then
24315
24316 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24317
24318 fi
24319
24320 # Target-specific assembler checks.
24321
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24323 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24324 gcc_cv_ld_static_dynamic=no
24325 gcc_cv_ld_static_option='-Bstatic'
24326 gcc_cv_ld_dynamic_option='-Bdynamic'
24327 if test $in_tree_ld = yes ; then
24328 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
24329 gcc_cv_ld_static_dynamic=yes
24330 fi
24331 elif test x$gcc_cv_ld != x; then
24332 # Check if linker supports -Bstatic/-Bdynamic option
24333 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
24334 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
24335 gcc_cv_ld_static_dynamic=yes
24336 else
24337 case "$target" in
24338 # AIX ld uses -b flags
24339 *-*-aix4.[23]* | *-*-aix[5-9]*)
24340 gcc_cv_ld_static_dynamic=yes
24341 gcc_cv_ld_static_option="-bstatic"
24342 gcc_cv_ld_dynamic_option="-bdynamic"
24343 ;;
24344 # HP-UX ld uses -a flags to select between shared and archive.
24345 *-*-hpux*)
24346 if test x"$gnu_ld" = xno; then
24347 gcc_cv_ld_static_dynamic=yes
24348 gcc_cv_ld_static_option="-aarchive_shared"
24349 gcc_cv_ld_dynamic_option="-adefault"
24350 fi
24351 ;;
24352 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24353 *-*-solaris2*)
24354 gcc_cv_ld_static_dynamic=yes
24355 ;;
24356 esac
24357 fi
24358 fi
24359 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24360
24361 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24362
24363
24364 cat >>confdefs.h <<_ACEOF
24365 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24366 _ACEOF
24367
24368
24369 cat >>confdefs.h <<_ACEOF
24370 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24371 _ACEOF
24372
24373 fi
24374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24375 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24376
24377 if test x"$demangler_in_ld" = xyes; then
24378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24379 $as_echo_n "checking linker --demangle support... " >&6; }
24380 gcc_cv_ld_demangle=no
24381 if test $in_tree_ld = yes; then
24382 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 \
24383 gcc_cv_ld_demangle=yes
24384 fi
24385 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24386 # Check if the GNU linker supports --demangle option
24387 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
24388 gcc_cv_ld_demangle=yes
24389 fi
24390 fi
24391 if test x"$gcc_cv_ld_demangle" = xyes; then
24392
24393 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24394
24395 fi
24396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24397 $as_echo "$gcc_cv_ld_demangle" >&6; }
24398 fi
24399
24400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24401 $as_echo_n "checking linker plugin support... " >&6; }
24402 gcc_cv_lto_plugin=0
24403 if test -f liblto_plugin.la; then
24404 save_ld_ver="$ld_ver"
24405 save_ld_vers_major="$ld_vers_major"
24406 save_ld_vers_minor="$ld_vers_minor"
24407 save_ld_is_gold="$ld_is_gold"
24408
24409 ld_is_gold=no
24410
24411 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24412 ld_ver="GNU ld"
24413 # FIXME: ld_is_gold?
24414 ld_vers_major="$gcc_cv_gld_major_version"
24415 ld_vers_minor="$gcc_cv_gld_minor_version"
24416 else
24417 # Determine plugin linker version.
24418 # FIXME: Partial duplicate from above, generalize.
24419 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24420 if echo "$ld_ver" | grep GNU > /dev/null; then
24421 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24422 ld_is_gold=yes
24423 ld_vers=`echo $ld_ver | sed -n \
24424 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24425 else
24426 ld_vers=`echo $ld_ver | sed -n \
24427 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24428 fi
24429 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24430 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24431 fi
24432 fi
24433
24434 # Determine plugin support.
24435 if echo "$ld_ver" | grep GNU > /dev/null; then
24436 # Require GNU ld or gold 2.21+ for plugin support by default.
24437 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24438 gcc_cv_lto_plugin=2
24439 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24440 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24441 gcc_cv_lto_plugin=1
24442 fi
24443 fi
24444
24445 ld_ver="$save_ld_ver"
24446 ld_vers_major="$save_ld_vers_major"
24447 ld_vers_minor="$save_ld_vers_minor"
24448 ld_is_gold="$save_ld_is_gold"
24449 fi
24450
24451 cat >>confdefs.h <<_ACEOF
24452 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24453 _ACEOF
24454
24455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24456 $as_echo "$gcc_cv_lto_plugin" >&6; }
24457
24458 # Target OS-specific assembler checks.
24459
24460 case "$target_os" in
24461 darwin*)
24462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24463 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24464 if test "${gcc_cv_as_mmacosx_version_min+set}" = set; then :
24465 $as_echo_n "(cached) " >&6
24466 else
24467 gcc_cv_as_mmacosx_version_min=no
24468 if test x$gcc_cv_as != x; then
24469 $as_echo '.text' > conftest.s
24470 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
24471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24472 (eval $ac_try) 2>&5
24473 ac_status=$?
24474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24475 test $ac_status = 0; }; }
24476 then
24477 gcc_cv_as_mmacosx_version_min=yes
24478 else
24479 echo "configure: failed program was" >&5
24480 cat conftest.s >&5
24481 fi
24482 rm -f conftest.o conftest.s
24483 fi
24484 fi
24485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
24486 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
24487 if test $gcc_cv_as_mmacosx_version_min = yes; then
24488
24489 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
24490
24491 fi
24492
24493 ;;
24494 esac
24495
24496 # Target CPU-specific assembler checks.
24497
24498 case "$target" in
24499 aarch64*-*-*)
24500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24501 $as_echo_n "checking assembler for -mabi option... " >&6; }
24502 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24503 $as_echo_n "(cached) " >&6
24504 else
24505 gcc_cv_as_aarch64_mabi=no
24506 if test x$gcc_cv_as != x; then
24507 $as_echo '.text' > conftest.s
24508 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24510 (eval $ac_try) 2>&5
24511 ac_status=$?
24512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24513 test $ac_status = 0; }; }
24514 then
24515 gcc_cv_as_aarch64_mabi=yes
24516 else
24517 echo "configure: failed program was" >&5
24518 cat conftest.s >&5
24519 fi
24520 rm -f conftest.o conftest.s
24521 fi
24522 fi
24523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24524 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24525
24526
24527 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24528
24529 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24530
24531 else
24532 if test x$with_abi = xilp32; then
24533 as_fn_error "Assembler does not support -mabi=ilp32.\
24534 Upgrade the Assembler." "$LINENO" 5
24535 fi
24536 if test x"$with_multilib_list" = xdefault; then
24537 TM_MULTILIB_CONFIG=lp64
24538 else
24539 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24540 for aarch64_multilib in ${aarch64_multilibs}; do
24541 case ${aarch64_multilib} in
24542 ilp32)
24543 as_fn_error "Assembler does not support -mabi=ilp32.\
24544 Upgrade the Assembler." "$LINENO" 5
24545 ;;
24546 *)
24547 ;;
24548 esac
24549 done
24550 fi
24551 fi
24552 # Check if we have binutils support for relocations types needed by -fpic
24553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24554 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24555 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24556 $as_echo_n "(cached) " >&6
24557 else
24558 gcc_cv_as_aarch64_picreloc=no
24559 if test x$gcc_cv_as != x; then
24560 $as_echo '
24561 .text
24562 ldr x0, [x2, #:gotpage_lo15:globalsym]
24563 ' > conftest.s
24564 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24566 (eval $ac_try) 2>&5
24567 ac_status=$?
24568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24569 test $ac_status = 0; }; }
24570 then
24571 gcc_cv_as_aarch64_picreloc=yes
24572 else
24573 echo "configure: failed program was" >&5
24574 cat conftest.s >&5
24575 fi
24576 rm -f conftest.o conftest.s
24577 fi
24578 fi
24579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24580 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24581 if test $gcc_cv_as_aarch64_picreloc = yes; then
24582
24583 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24584
24585 fi
24586
24587 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24588 # Check whether --enable-fix-cortex-a53-835769 was given.
24589 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24590 enableval=$enable_fix_cortex_a53_835769;
24591 case $enableval in
24592 yes)
24593 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24594 ;;
24595 no)
24596 ;;
24597 *)
24598 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24599 Valid choices are 'yes' and 'no'." "$LINENO" 5
24600 ;;
24601
24602 esac
24603
24604 fi
24605
24606 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24607 # Check whether --enable-fix-cortex-a53-843419 was given.
24608 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24609 enableval=$enable_fix_cortex_a53_843419;
24610 case $enableval in
24611 yes)
24612 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24613 ;;
24614 no)
24615 ;;
24616 *)
24617 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24618 Valid choices are 'yes' and 'no'." "$LINENO" 5
24619 ;;
24620
24621 esac
24622
24623 fi
24624
24625 ;;
24626
24627 # All TARGET_ABI_OSF targets.
24628 alpha*-*-linux* | alpha*-*-*bsd*)
24629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24630 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24631 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24632 $as_echo_n "(cached) " >&6
24633 else
24634 gcc_cv_as_alpha_explicit_relocs=no
24635 if test $in_tree_gas = yes; then
24636 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24637 then gcc_cv_as_alpha_explicit_relocs=yes
24638 fi
24639 elif test x$gcc_cv_as != x; then
24640 $as_echo ' .set nomacro
24641 .text
24642 extbl $3, $2, $3 !lituse_bytoff!1
24643 ldq $2, a($29) !literal!1
24644 ldq $4, b($29) !literal!2
24645 ldq_u $3, 0($2) !lituse_base!1
24646 ldq $27, f($29) !literal!5
24647 jsr $26, ($27), f !lituse_jsr!5
24648 ldah $29, 0($26) !gpdisp!3
24649 lda $0, c($29) !gprel
24650 ldah $1, d($29) !gprelhigh
24651 lda $1, d($1) !gprellow
24652 lda $29, 0($29) !gpdisp!3' > conftest.s
24653 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24655 (eval $ac_try) 2>&5
24656 ac_status=$?
24657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24658 test $ac_status = 0; }; }
24659 then
24660 gcc_cv_as_alpha_explicit_relocs=yes
24661 else
24662 echo "configure: failed program was" >&5
24663 cat conftest.s >&5
24664 fi
24665 rm -f conftest.o conftest.s
24666 fi
24667 fi
24668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24669 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24670 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24671
24672 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24673
24674 fi
24675
24676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24677 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24678 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24679 $as_echo_n "(cached) " >&6
24680 else
24681 gcc_cv_as_alpha_jsrdirect_relocs=no
24682 if test $in_tree_gas = yes; then
24683 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24684 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24685 fi
24686 elif test x$gcc_cv_as != x; then
24687 $as_echo ' .set nomacro
24688 .text
24689 ldq $27, a($29) !literal!1
24690 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24691 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24693 (eval $ac_try) 2>&5
24694 ac_status=$?
24695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24696 test $ac_status = 0; }; }
24697 then
24698 gcc_cv_as_alpha_jsrdirect_relocs=yes
24699 else
24700 echo "configure: failed program was" >&5
24701 cat conftest.s >&5
24702 fi
24703 rm -f conftest.o conftest.s
24704 fi
24705 fi
24706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24707 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24708 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24709
24710 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24711
24712 fi
24713
24714 ;;
24715
24716 avr-*-*)
24717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24718 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24719 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24720 $as_echo_n "(cached) " >&6
24721 else
24722 gcc_cv_as_avr_mlink_relax=no
24723 if test x$gcc_cv_as != x; then
24724 $as_echo '.text' > conftest.s
24725 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24727 (eval $ac_try) 2>&5
24728 ac_status=$?
24729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24730 test $ac_status = 0; }; }
24731 then
24732 gcc_cv_as_avr_mlink_relax=yes
24733 else
24734 echo "configure: failed program was" >&5
24735 cat conftest.s >&5
24736 fi
24737 rm -f conftest.o conftest.s
24738 fi
24739 fi
24740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24741 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24742 if test $gcc_cv_as_avr_mlink_relax = yes; then
24743
24744 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24745
24746 fi
24747
24748
24749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24750 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24751 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24752 $as_echo_n "(cached) " >&6
24753 else
24754 gcc_cv_as_avr_mrmw=no
24755 if test x$gcc_cv_as != x; then
24756 $as_echo '.text' > conftest.s
24757 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24759 (eval $ac_try) 2>&5
24760 ac_status=$?
24761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24762 test $ac_status = 0; }; }
24763 then
24764 gcc_cv_as_avr_mrmw=yes
24765 else
24766 echo "configure: failed program was" >&5
24767 cat conftest.s >&5
24768 fi
24769 rm -f conftest.o conftest.s
24770 fi
24771 fi
24772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24773 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24774 if test $gcc_cv_as_avr_mrmw = yes; then
24775
24776 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24777
24778 fi
24779
24780 ;;
24781
24782 cris-*-*)
24783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24784 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24785 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24786 $as_echo_n "(cached) " >&6
24787 else
24788 gcc_cv_as_cris_no_mul_bug=no
24789 if test $in_tree_gas = yes; then
24790 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24791 then gcc_cv_as_cris_no_mul_bug=yes
24792 fi
24793 elif test x$gcc_cv_as != x; then
24794 $as_echo '.text' > conftest.s
24795 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24797 (eval $ac_try) 2>&5
24798 ac_status=$?
24799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24800 test $ac_status = 0; }; }
24801 then
24802 gcc_cv_as_cris_no_mul_bug=yes
24803 else
24804 echo "configure: failed program was" >&5
24805 cat conftest.s >&5
24806 fi
24807 rm -f conftest.o conftest.s
24808 fi
24809 fi
24810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24811 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24812 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24813
24814 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24815
24816 fi
24817
24818 ;;
24819
24820 sparc*-*-*)
24821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24822 $as_echo_n "checking assembler for .register... " >&6; }
24823 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24824 $as_echo_n "(cached) " >&6
24825 else
24826 gcc_cv_as_sparc_register_op=no
24827 if test x$gcc_cv_as != x; then
24828 $as_echo '.register %g2, #scratch' > conftest.s
24829 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24831 (eval $ac_try) 2>&5
24832 ac_status=$?
24833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24834 test $ac_status = 0; }; }
24835 then
24836 gcc_cv_as_sparc_register_op=yes
24837 else
24838 echo "configure: failed program was" >&5
24839 cat conftest.s >&5
24840 fi
24841 rm -f conftest.o conftest.s
24842 fi
24843 fi
24844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24845 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24846 if test $gcc_cv_as_sparc_register_op = yes; then
24847
24848 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24849
24850 fi
24851
24852
24853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24854 $as_echo_n "checking assembler for -relax option... " >&6; }
24855 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24856 $as_echo_n "(cached) " >&6
24857 else
24858 gcc_cv_as_sparc_relax=no
24859 if test x$gcc_cv_as != x; then
24860 $as_echo '.text' > conftest.s
24861 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24863 (eval $ac_try) 2>&5
24864 ac_status=$?
24865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24866 test $ac_status = 0; }; }
24867 then
24868 gcc_cv_as_sparc_relax=yes
24869 else
24870 echo "configure: failed program was" >&5
24871 cat conftest.s >&5
24872 fi
24873 rm -f conftest.o conftest.s
24874 fi
24875 fi
24876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24877 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24878 if test $gcc_cv_as_sparc_relax = yes; then
24879
24880 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24881
24882 fi
24883
24884
24885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24886 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24887 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24888 $as_echo_n "(cached) " >&6
24889 else
24890 gcc_cv_as_sparc_gotdata_op=no
24891 if test x$gcc_cv_as != x; then
24892 $as_echo '.text
24893 .align 4
24894 foo:
24895 nop
24896 bar:
24897 sethi %gdop_hix22(foo), %g1
24898 xor %g1, %gdop_lox10(foo), %g1
24899 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24900 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24902 (eval $ac_try) 2>&5
24903 ac_status=$?
24904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24905 test $ac_status = 0; }; }
24906 then
24907 if test x$gcc_cv_ld != x \
24908 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24909 if test x$gcc_cv_objdump != x; then
24910 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24911 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24912 gcc_cv_as_sparc_gotdata_op=no
24913 else
24914 gcc_cv_as_sparc_gotdata_op=yes
24915 fi
24916 fi
24917 fi
24918 rm -f conftest
24919 else
24920 echo "configure: failed program was" >&5
24921 cat conftest.s >&5
24922 fi
24923 rm -f conftest.o conftest.s
24924 fi
24925 fi
24926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24927 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24928 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24929
24930 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24931
24932 fi
24933
24934
24935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24936 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24937 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24938 $as_echo_n "(cached) " >&6
24939 else
24940 gcc_cv_as_sparc_ua_pcrel=no
24941 if test x$gcc_cv_as != x; then
24942 $as_echo '.text
24943 foo:
24944 nop
24945 .data
24946 .align 4
24947 .byte 0
24948 .uaword %r_disp32(foo)' > conftest.s
24949 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24951 (eval $ac_try) 2>&5
24952 ac_status=$?
24953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24954 test $ac_status = 0; }; }
24955 then
24956 if test x$gcc_cv_ld != x \
24957 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24958 gcc_cv_as_sparc_ua_pcrel=yes
24959 fi
24960 rm -f conftest
24961 else
24962 echo "configure: failed program was" >&5
24963 cat conftest.s >&5
24964 fi
24965 rm -f conftest.o conftest.s
24966 fi
24967 fi
24968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24969 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24970 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24971
24972 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24973
24974
24975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24976 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24977 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24978 $as_echo_n "(cached) " >&6
24979 else
24980 gcc_cv_as_sparc_ua_pcrel_hidden=no
24981 if test x$gcc_cv_as != x; then
24982 $as_echo '.data
24983 .align 4
24984 .byte 0x31
24985 .uaword %r_disp32(foo)
24986 .byte 0x32, 0x33, 0x34
24987 .global foo
24988 .hidden foo
24989 foo:
24990 .skip 4' > conftest.s
24991 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24993 (eval $ac_try) 2>&5
24994 ac_status=$?
24995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24996 test $ac_status = 0; }; }
24997 then
24998 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24999 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25000 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25001 | grep ' 31000000 07323334' > /dev/null 2>&1; then
25002 if $gcc_cv_objdump -R conftest 2> /dev/null \
25003 | grep 'DISP32' > /dev/null 2>&1; then
25004 :
25005 else
25006 gcc_cv_as_sparc_ua_pcrel_hidden=yes
25007 fi
25008 fi
25009 rm -f conftest
25010 else
25011 echo "configure: failed program was" >&5
25012 cat conftest.s >&5
25013 fi
25014 rm -f conftest.o conftest.s
25015 fi
25016 fi
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25018 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25019 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25020
25021 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25022
25023 fi
25024
25025
25026 fi
25027 # unaligned pcrel relocs
25028
25029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25030 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25031 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25032 $as_echo_n "(cached) " >&6
25033 else
25034 gcc_cv_as_sparc_offsetable_lo10=no
25035 if test x$gcc_cv_as != x; then
25036 $as_echo '.text
25037 or %g1, %lo(ab) + 12, %g1
25038 or %g1, %lo(ab + 12), %g1' > conftest.s
25039 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25041 (eval $ac_try) 2>&5
25042 ac_status=$?
25043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25044 test $ac_status = 0; }; }
25045 then
25046 if test x$gcc_cv_objdump != x \
25047 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25048 | grep ' 82106000 82106000' > /dev/null 2>&1; then
25049 gcc_cv_as_sparc_offsetable_lo10=yes
25050 fi
25051 else
25052 echo "configure: failed program was" >&5
25053 cat conftest.s >&5
25054 fi
25055 rm -f conftest.o conftest.s
25056 fi
25057 fi
25058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25059 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25060 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25061
25062 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25063
25064 fi
25065
25066
25067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25068 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25069 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25070 $as_echo_n "(cached) " >&6
25071 else
25072 gcc_cv_as_sparc_fmaf=no
25073 if test x$gcc_cv_as != x; then
25074 $as_echo '.text
25075 .register %g2, #scratch
25076 .register %g3, #scratch
25077 .align 4
25078 fmaddd %f0, %f2, %f4, %f6
25079 addxccc %g1, %g2, %g3
25080 fsrl32 %f2, %f4, %f8
25081 fnaddd %f10, %f12, %f14' > conftest.s
25082 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25084 (eval $ac_try) 2>&5
25085 ac_status=$?
25086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25087 test $ac_status = 0; }; }
25088 then
25089 gcc_cv_as_sparc_fmaf=yes
25090 else
25091 echo "configure: failed program was" >&5
25092 cat conftest.s >&5
25093 fi
25094 rm -f conftest.o conftest.s
25095 fi
25096 fi
25097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25098 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25099 if test $gcc_cv_as_sparc_fmaf = yes; then
25100
25101 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25102
25103 fi
25104
25105
25106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25107 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25108 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25109 $as_echo_n "(cached) " >&6
25110 else
25111 gcc_cv_as_sparc_sparc4=no
25112 if test x$gcc_cv_as != x; then
25113 $as_echo '.text
25114 .register %g2, #scratch
25115 .register %g3, #scratch
25116 .align 4
25117 cxbe %g2, %g3, 1f
25118 1: cwbneg %g2, %g3, 1f
25119 1: sha1
25120 md5
25121 aes_kexpand0 %f4, %f6, %f8
25122 des_round %f38, %f40, %f42, %f44
25123 camellia_f %f54, %f56, %f58, %f60
25124 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25125 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25127 (eval $ac_try) 2>&5
25128 ac_status=$?
25129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25130 test $ac_status = 0; }; }
25131 then
25132 gcc_cv_as_sparc_sparc4=yes
25133 else
25134 echo "configure: failed program was" >&5
25135 cat conftest.s >&5
25136 fi
25137 rm -f conftest.o conftest.s
25138 fi
25139 fi
25140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25141 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25142 if test $gcc_cv_as_sparc_sparc4 = yes; then
25143
25144 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25145
25146 fi
25147
25148
25149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25150 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25151 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25152 $as_echo_n "(cached) " >&6
25153 else
25154 gcc_cv_as_sparc_sparc5=no
25155 if test x$gcc_cv_as != x; then
25156 $as_echo '.text
25157 .register %g2, #scratch
25158 .register %g3, #scratch
25159 .align 4
25160 subxc %g1, %g2, %g3
25161 fpadd8 %f0, %f2, %f4' > conftest.s
25162 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25164 (eval $ac_try) 2>&5
25165 ac_status=$?
25166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25167 test $ac_status = 0; }; }
25168 then
25169 gcc_cv_as_sparc_sparc5=yes
25170 else
25171 echo "configure: failed program was" >&5
25172 cat conftest.s >&5
25173 fi
25174 rm -f conftest.o conftest.s
25175 fi
25176 fi
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25178 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25179 if test $gcc_cv_as_sparc_sparc5 = yes; then
25180
25181 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25182
25183 fi
25184
25185
25186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25187 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25188 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25189 $as_echo_n "(cached) " >&6
25190 else
25191 gcc_cv_as_sparc_leon=no
25192 if test x$gcc_cv_as != x; then
25193 $as_echo '.text
25194 .register %g2, #scratch
25195 .register %g3, #scratch
25196 .align 4
25197 smac %g2, %g3, %g1
25198 umac %g2, %g3, %g1
25199 casa [%g2] 0xb, %g3, %g1' > conftest.s
25200 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25202 (eval $ac_try) 2>&5
25203 ac_status=$?
25204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25205 test $ac_status = 0; }; }
25206 then
25207 gcc_cv_as_sparc_leon=yes
25208 else
25209 echo "configure: failed program was" >&5
25210 cat conftest.s >&5
25211 fi
25212 rm -f conftest.o conftest.s
25213 fi
25214 fi
25215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25216 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25217 if test $gcc_cv_as_sparc_leon = yes; then
25218
25219 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25220
25221 fi
25222
25223 ;;
25224
25225 i[34567]86-*-* | x86_64-*-*)
25226 case $target_os in
25227 cygwin*)
25228 # Full C++ conformance when using a shared libstdc++-v3 requires some
25229 # support from the Cygwin DLL, which in more recent versions exports
25230 # wrappers to aid in interposing and redirecting operators new, delete,
25231 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25232 # are configuring for a version of Cygwin that exports the wrappers.
25233 if test x$host = x$target && test x$host_cpu = xi686; then
25234 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25235 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
25236 gcc_ac_cygwin_dll_wrappers=yes
25237 else
25238 gcc_ac_cygwin_dll_wrappers=no
25239 fi
25240
25241 else
25242 # Can't check presence of libc functions during cross-compile, so
25243 # we just have to assume we're building for an up-to-date target.
25244 gcc_ac_cygwin_dll_wrappers=yes
25245 fi
25246
25247 cat >>confdefs.h <<_ACEOF
25248 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25249 _ACEOF
25250
25251 esac
25252 case $target_os in
25253 cygwin* | pe | mingw32*)
25254 # Recent binutils allows the three-operand form of ".comm" on PE. This
25255 # definition is used unconditionally to initialise the default state of
25256 # the target option variable that governs usage of the feature.
25257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25258 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25259 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25260 $as_echo_n "(cached) " >&6
25261 else
25262 gcc_cv_as_comm_has_align=no
25263 if test $in_tree_gas = yes; then
25264 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25265 then gcc_cv_as_comm_has_align=yes
25266 fi
25267 elif test x$gcc_cv_as != x; then
25268 $as_echo '.comm foo,1,32' > conftest.s
25269 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25270 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25271 (eval $ac_try) 2>&5
25272 ac_status=$?
25273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25274 test $ac_status = 0; }; }
25275 then
25276 gcc_cv_as_comm_has_align=yes
25277 else
25278 echo "configure: failed program was" >&5
25279 cat conftest.s >&5
25280 fi
25281 rm -f conftest.o conftest.s
25282 fi
25283 fi
25284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25285 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25286
25287
25288
25289 cat >>confdefs.h <<_ACEOF
25290 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25291 _ACEOF
25292
25293 # Used for DWARF 2 in PE
25294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25295 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25296 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25297 $as_echo_n "(cached) " >&6
25298 else
25299 gcc_cv_as_ix86_pe_secrel32=no
25300 if test $in_tree_gas = yes; then
25301 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25302 then gcc_cv_as_ix86_pe_secrel32=yes
25303 fi
25304 elif test x$gcc_cv_as != x; then
25305 $as_echo '.text
25306 foo: nop
25307 .data
25308 .secrel32 foo' > conftest.s
25309 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25311 (eval $ac_try) 2>&5
25312 ac_status=$?
25313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25314 test $ac_status = 0; }; }
25315 then
25316 if test x$gcc_cv_ld != x \
25317 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25318 gcc_cv_as_ix86_pe_secrel32=yes
25319 fi
25320 rm -f conftest
25321 else
25322 echo "configure: failed program was" >&5
25323 cat conftest.s >&5
25324 fi
25325 rm -f conftest.o conftest.s
25326 fi
25327 fi
25328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25329 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25330 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25331
25332 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25333
25334 fi
25335
25336 # Test if the assembler supports the extended form of the .section
25337 # directive that specifies section alignment. LTO support uses this,
25338 # but normally only after installation, so we warn but don't fail the
25339 # configure if LTO is enabled but the assembler does not support it.
25340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25341 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25342 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25343 $as_echo_n "(cached) " >&6
25344 else
25345 gcc_cv_as_section_has_align=no
25346 if test $in_tree_gas = yes; then
25347 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25348 then gcc_cv_as_section_has_align=yes
25349 fi
25350 elif test x$gcc_cv_as != x; then
25351 $as_echo '.section lto_test,"dr0"' > conftest.s
25352 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25353 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25354 (eval $ac_try) 2>&5
25355 ac_status=$?
25356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25357 test $ac_status = 0; }; }
25358 then
25359 gcc_cv_as_section_has_align=yes
25360 else
25361 echo "configure: failed program was" >&5
25362 cat conftest.s >&5
25363 fi
25364 rm -f conftest.o conftest.s
25365 fi
25366 fi
25367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25368 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25369
25370
25371 if test x$gcc_cv_as_section_has_align != xyes; then
25372 case ",$enable_languages," in
25373 *,lto,*)
25374 { $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
25375 $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;}
25376 ;;
25377 esac
25378 fi
25379 ;;
25380 esac
25381
25382 # Test if the assembler supports the section flag 'e' for specifying
25383 # an excluded section.
25384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25385 $as_echo_n "checking assembler for .section with e... " >&6; }
25386 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25387 $as_echo_n "(cached) " >&6
25388 else
25389 gcc_cv_as_section_has_e=no
25390 if test $in_tree_gas = yes; then
25391 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25392 then gcc_cv_as_section_has_e=yes
25393 fi
25394 elif test x$gcc_cv_as != x; then
25395 $as_echo '.section foo1,"e"
25396 .byte 0,0,0,0' > conftest.s
25397 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25399 (eval $ac_try) 2>&5
25400 ac_status=$?
25401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25402 test $ac_status = 0; }; }
25403 then
25404 gcc_cv_as_section_has_e=yes
25405 else
25406 echo "configure: failed program was" >&5
25407 cat conftest.s >&5
25408 fi
25409 rm -f conftest.o conftest.s
25410 fi
25411 fi
25412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25413 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25414
25415
25416
25417 cat >>confdefs.h <<_ACEOF
25418 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25419 _ACEOF
25420
25421
25422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25423 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25424 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25425 $as_echo_n "(cached) " >&6
25426 else
25427 gcc_cv_as_ix86_filds=no
25428 if test x$gcc_cv_as != x; then
25429 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25430 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25432 (eval $ac_try) 2>&5
25433 ac_status=$?
25434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25435 test $ac_status = 0; }; }
25436 then
25437 gcc_cv_as_ix86_filds=yes
25438 else
25439 echo "configure: failed program was" >&5
25440 cat conftest.s >&5
25441 fi
25442 rm -f conftest.o conftest.s
25443 fi
25444 fi
25445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25446 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25447 if test $gcc_cv_as_ix86_filds = yes; then
25448
25449 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25450
25451 fi
25452
25453
25454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25455 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25456 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25457 $as_echo_n "(cached) " >&6
25458 else
25459 gcc_cv_as_ix86_fildq=no
25460 if test x$gcc_cv_as != x; then
25461 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25462 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25464 (eval $ac_try) 2>&5
25465 ac_status=$?
25466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25467 test $ac_status = 0; }; }
25468 then
25469 gcc_cv_as_ix86_fildq=yes
25470 else
25471 echo "configure: failed program was" >&5
25472 cat conftest.s >&5
25473 fi
25474 rm -f conftest.o conftest.s
25475 fi
25476 fi
25477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25478 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25479 if test $gcc_cv_as_ix86_fildq = yes; then
25480
25481 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25482
25483 fi
25484
25485
25486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25487 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25488 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25489 $as_echo_n "(cached) " >&6
25490 else
25491 gcc_cv_as_ix86_cmov_sun_syntax=no
25492 if test x$gcc_cv_as != x; then
25493 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25494 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25496 (eval $ac_try) 2>&5
25497 ac_status=$?
25498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25499 test $ac_status = 0; }; }
25500 then
25501 gcc_cv_as_ix86_cmov_sun_syntax=yes
25502 else
25503 echo "configure: failed program was" >&5
25504 cat conftest.s >&5
25505 fi
25506 rm -f conftest.o conftest.s
25507 fi
25508 fi
25509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25510 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25511 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25512
25513 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25514
25515 fi
25516
25517
25518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25519 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25520 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25521 $as_echo_n "(cached) " >&6
25522 else
25523 gcc_cv_as_ix86_ffreep=no
25524 if test x$gcc_cv_as != x; then
25525 $as_echo 'ffreep %st(1)' > conftest.s
25526 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25528 (eval $ac_try) 2>&5
25529 ac_status=$?
25530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25531 test $ac_status = 0; }; }
25532 then
25533 gcc_cv_as_ix86_ffreep=yes
25534 else
25535 echo "configure: failed program was" >&5
25536 cat conftest.s >&5
25537 fi
25538 rm -f conftest.o conftest.s
25539 fi
25540 fi
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25542 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25543 if test $gcc_cv_as_ix86_ffreep = yes; then
25544
25545 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25546
25547 fi
25548
25549
25550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25551 $as_echo_n "checking assembler for .quad directive... " >&6; }
25552 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25553 $as_echo_n "(cached) " >&6
25554 else
25555 gcc_cv_as_ix86_quad=no
25556 if test x$gcc_cv_as != x; then
25557 $as_echo '.quad 0' > conftest.s
25558 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25560 (eval $ac_try) 2>&5
25561 ac_status=$?
25562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25563 test $ac_status = 0; }; }
25564 then
25565 gcc_cv_as_ix86_quad=yes
25566 else
25567 echo "configure: failed program was" >&5
25568 cat conftest.s >&5
25569 fi
25570 rm -f conftest.o conftest.s
25571 fi
25572 fi
25573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25574 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25575 if test $gcc_cv_as_ix86_quad = yes; then
25576
25577 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25578
25579 fi
25580
25581
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25583 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25584 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25585 $as_echo_n "(cached) " >&6
25586 else
25587 gcc_cv_as_ix86_sahf=no
25588 if test x$gcc_cv_as != x; then
25589 $as_echo '.code64
25590 sahf' > conftest.s
25591 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25593 (eval $ac_try) 2>&5
25594 ac_status=$?
25595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25596 test $ac_status = 0; }; }
25597 then
25598 gcc_cv_as_ix86_sahf=yes
25599 else
25600 echo "configure: failed program was" >&5
25601 cat conftest.s >&5
25602 fi
25603 rm -f conftest.o conftest.s
25604 fi
25605 fi
25606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25607 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25608 if test $gcc_cv_as_ix86_sahf = yes; then
25609
25610 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25611
25612 fi
25613
25614
25615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25616 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25617 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25618 $as_echo_n "(cached) " >&6
25619 else
25620 gcc_cv_as_ix86_interunit_movq=no
25621 if test x$gcc_cv_as != x; then
25622 $as_echo '.code64
25623 movq %mm0, %rax
25624 movq %rax, %xmm0' > conftest.s
25625 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25627 (eval $ac_try) 2>&5
25628 ac_status=$?
25629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25630 test $ac_status = 0; }; }
25631 then
25632 gcc_cv_as_ix86_interunit_movq=yes
25633 else
25634 echo "configure: failed program was" >&5
25635 cat conftest.s >&5
25636 fi
25637 rm -f conftest.o conftest.s
25638 fi
25639 fi
25640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25641 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25642
25643
25644
25645 cat >>confdefs.h <<_ACEOF
25646 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25647 _ACEOF
25648
25649
25650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25651 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25652 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25653 $as_echo_n "(cached) " >&6
25654 else
25655 gcc_cv_as_ix86_hle=no
25656 if test x$gcc_cv_as != x; then
25657 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25658 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25660 (eval $ac_try) 2>&5
25661 ac_status=$?
25662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25663 test $ac_status = 0; }; }
25664 then
25665 gcc_cv_as_ix86_hle=yes
25666 else
25667 echo "configure: failed program was" >&5
25668 cat conftest.s >&5
25669 fi
25670 rm -f conftest.o conftest.s
25671 fi
25672 fi
25673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25674 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25675 if test $gcc_cv_as_ix86_hle = yes; then
25676
25677 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25678
25679 fi
25680
25681
25682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25683 $as_echo_n "checking assembler for swap suffix... " >&6; }
25684 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25685 $as_echo_n "(cached) " >&6
25686 else
25687 gcc_cv_as_ix86_swap=no
25688 if test x$gcc_cv_as != x; then
25689 $as_echo 'movl.s %esp, %ebp' > conftest.s
25690 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25692 (eval $ac_try) 2>&5
25693 ac_status=$?
25694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25695 test $ac_status = 0; }; }
25696 then
25697 gcc_cv_as_ix86_swap=yes
25698 else
25699 echo "configure: failed program was" >&5
25700 cat conftest.s >&5
25701 fi
25702 rm -f conftest.o conftest.s
25703 fi
25704 fi
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25706 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25707 if test $gcc_cv_as_ix86_swap = yes; then
25708
25709 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25710
25711 fi
25712
25713
25714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25715 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25716 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25717 $as_echo_n "(cached) " >&6
25718 else
25719 gcc_cv_as_ix86_diff_sect_delta=no
25720 if test x$gcc_cv_as != x; then
25721 $as_echo '.section .rodata
25722 .L1:
25723 .long .L2-.L1
25724 .long .L3-.L1
25725 .text
25726 .L3: nop
25727 .L2: nop' > conftest.s
25728 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25730 (eval $ac_try) 2>&5
25731 ac_status=$?
25732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25733 test $ac_status = 0; }; }
25734 then
25735 gcc_cv_as_ix86_diff_sect_delta=yes
25736 else
25737 echo "configure: failed program was" >&5
25738 cat conftest.s >&5
25739 fi
25740 rm -f conftest.o conftest.s
25741 fi
25742 fi
25743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25744 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25745 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25746
25747 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25748
25749 fi
25750
25751
25752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25753 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25754 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25755 $as_echo_n "(cached) " >&6
25756 else
25757 gcc_cv_as_ix86_rep_lock_prefix=no
25758 if test x$gcc_cv_as != x; then
25759 $as_echo 'rep movsl
25760 rep ret
25761 rep nop
25762 rep bsf %ecx, %eax
25763 rep bsr %ecx, %eax
25764 lock addl %edi, (%eax,%esi)
25765 lock orl $0, (%esp)' > conftest.s
25766 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25768 (eval $ac_try) 2>&5
25769 ac_status=$?
25770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25771 test $ac_status = 0; }; }
25772 then
25773 gcc_cv_as_ix86_rep_lock_prefix=yes
25774 else
25775 echo "configure: failed program was" >&5
25776 cat conftest.s >&5
25777 fi
25778 rm -f conftest.o conftest.s
25779 fi
25780 fi
25781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25782 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25783 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25784
25785 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25786
25787 fi
25788
25789
25790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25791 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25792 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25793 $as_echo_n "(cached) " >&6
25794 else
25795 gcc_cv_as_ix86_ud2=no
25796 if test x$gcc_cv_as != x; then
25797 $as_echo 'ud2' > conftest.s
25798 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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 gcc_cv_as_ix86_ud2=yes
25806 else
25807 echo "configure: failed program was" >&5
25808 cat conftest.s >&5
25809 fi
25810 rm -f conftest.o conftest.s
25811 fi
25812 fi
25813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25814 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25815 if test $gcc_cv_as_ix86_ud2 = yes; then
25816
25817 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25818
25819 fi
25820
25821
25822 # Enforce 32-bit output with gas and gld.
25823 if test x$gas = xyes; then
25824 as_ix86_gas_32_opt="--32"
25825 fi
25826 if echo "$ld_ver" | grep GNU > /dev/null; then
25827 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25828 ld_ix86_gld_32_opt="-melf_i386_sol2"
25829 else
25830 ld_ix86_gld_32_opt="-melf_i386"
25831 fi
25832 fi
25833
25834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25835 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25836 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25837 $as_echo_n "(cached) " >&6
25838 else
25839 gcc_cv_as_ix86_tlsgdplt=no
25840 if test x$gcc_cv_as != x; then
25841 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25842 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25844 (eval $ac_try) 2>&5
25845 ac_status=$?
25846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25847 test $ac_status = 0; }; }
25848 then
25849 if test x$gcc_cv_ld != x \
25850 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
25851 gcc_cv_as_ix86_tlsgdplt=yes
25852 fi
25853 rm -f conftest
25854 else
25855 echo "configure: failed program was" >&5
25856 cat conftest.s >&5
25857 fi
25858 rm -f conftest.o conftest.s
25859 fi
25860 fi
25861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25862 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25863 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25864
25865 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25866
25867 fi
25868
25869
25870 conftest_s='
25871 .section .tdata,"aw'$tls_section_flag'",@progbits
25872 tls_ld:
25873 .section .text,"ax",@progbits
25874 call tls_ld@tlsldmplt'
25875
25876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25877 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25878 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25879 $as_echo_n "(cached) " >&6
25880 else
25881 gcc_cv_as_ix86_tlsldmplt=no
25882 if test x$gcc_cv_as != x; then
25883 $as_echo "$conftest_s" > conftest.s
25884 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25886 (eval $ac_try) 2>&5
25887 ac_status=$?
25888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25889 test $ac_status = 0; }; }
25890 then
25891 if test x$gcc_cv_ld != x \
25892 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
25893 gcc_cv_as_ix86_tlsldmplt=yes
25894 fi
25895 rm -f conftest
25896 else
25897 echo "configure: failed program was" >&5
25898 cat conftest.s >&5
25899 fi
25900 rm -f conftest.o conftest.s
25901 fi
25902 fi
25903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25904 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25905
25906
25907
25908 cat >>confdefs.h <<_ACEOF
25909 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25910 _ACEOF
25911
25912
25913 conftest_s='
25914 .section .text,"ax",@progbits
25915 .globl _start
25916 .type _start, @function
25917 _start:
25918 leal value@tlsldm(%ebx), %eax
25919 call ___tls_get_addr@plt
25920
25921 .section .tdata,"aw'$tls_section_flag'",@progbits
25922 .type value, @object
25923 value:'
25924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25925 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25926 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25927 $as_echo_n "(cached) " >&6
25928 else
25929 gcc_cv_as_ix86_tlsldm=no
25930 if test x$gcc_cv_as != x; then
25931 $as_echo "$conftest_s" > conftest.s
25932 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25934 (eval $ac_try) 2>&5
25935 ac_status=$?
25936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25937 test $ac_status = 0; }; }
25938 then
25939 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25940 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25941 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25942 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25943 gcc_cv_as_ix86_tlsldm=yes
25944 fi
25945 fi
25946 rm -f conftest
25947 else
25948 echo "configure: failed program was" >&5
25949 cat conftest.s >&5
25950 fi
25951 rm -f conftest.o conftest.s
25952 fi
25953 fi
25954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25955 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25956
25957
25958
25959 cat >>confdefs.h <<_ACEOF
25960 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25961 _ACEOF
25962
25963
25964 conftest_s='
25965 .data
25966 bar:
25967 .byte 1
25968 .text
25969 .global _start
25970 _start:
25971 cmpl $0, bar@GOT
25972 jmp *_start@GOT'
25973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
25974 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
25975 if test "${gcc_cv_as_ix86_got32x+set}" = set; then :
25976 $as_echo_n "(cached) " >&6
25977 else
25978 gcc_cv_as_ix86_got32x=no
25979 if test x$gcc_cv_as != x; then
25980 $as_echo "$conftest_s" > conftest.s
25981 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25983 (eval $ac_try) 2>&5
25984 ac_status=$?
25985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25986 test $ac_status = 0; }; }
25987 then
25988 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25989 && test x$gcc_cv_readelf != x \
25990 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
25991 | grep R_386_GOT32X > /dev/null 2>&1 \
25992 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
25993 if $gcc_cv_objdump -dw conftest 2>&1 \
25994 | grep 0xffffff > /dev/null 2>&1; then
25995 gcc_cv_as_ix86_got32x=no
25996 else
25997 gcc_cv_as_ix86_got32x=yes
25998 fi
25999 fi
26000 rm -f conftest
26001 else
26002 echo "configure: failed program was" >&5
26003 cat conftest.s >&5
26004 fi
26005 rm -f conftest.o conftest.s
26006 fi
26007 fi
26008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26009 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26010
26011
26012
26013 cat >>confdefs.h <<_ACEOF
26014 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26015 _ACEOF
26016
26017
26018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26019 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26020 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
26021 $as_echo_n "(cached) " >&6
26022 else
26023 gcc_cv_as_ix86_gotoff_in_data=no
26024 if test $in_tree_gas = yes; then
26025 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26026 then gcc_cv_as_ix86_gotoff_in_data=yes
26027 fi
26028 elif test x$gcc_cv_as != x; then
26029 $as_echo ' .text
26030 .L0:
26031 nop
26032 .data
26033 .long .L0@GOTOFF' > conftest.s
26034 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26036 (eval $ac_try) 2>&5
26037 ac_status=$?
26038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26039 test $ac_status = 0; }; }
26040 then
26041 gcc_cv_as_ix86_gotoff_in_data=yes
26042 else
26043 echo "configure: failed program was" >&5
26044 cat conftest.s >&5
26045 fi
26046 rm -f conftest.o conftest.s
26047 fi
26048 fi
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26050 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26051
26052
26053
26054 cat >>confdefs.h <<_ACEOF
26055 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26056 _ACEOF
26057
26058
26059 conftest_s='
26060 .section .text,"ax",@progbits
26061 .globl _start
26062 .type _start, @function
26063 _start:
26064 leal ld@tlsldm(%ecx), %eax
26065 call *___tls_get_addr@GOT(%ecx)
26066 leal gd@tlsgd(%ecx), %eax
26067 call *___tls_get_addr@GOT(%ecx)
26068
26069 .section .tdata,"aw'$tls_section_flag'",@progbits
26070 .type ld, @object
26071 ld:
26072 .byte 0
26073 .globl gd
26074 .type gd, @object
26075 gd:
26076 .byte 0'
26077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26078 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26079 if test "${gcc_cv_as_ix86_tls_get_addr_via_got+set}" = set; then :
26080 $as_echo_n "(cached) " >&6
26081 else
26082 gcc_cv_as_ix86_tls_get_addr_via_got=no
26083 if test x$gcc_cv_as != x; then
26084 $as_echo "$conftest_s" > conftest.s
26085 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26087 (eval $ac_try) 2>&5
26088 ac_status=$?
26089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26090 test $ac_status = 0; }; }
26091 then
26092 if test x$gcc_cv_ld != x \
26093 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26094 gcc_cv_as_ix86_tls_get_addr_via_got=yes
26095 fi
26096 rm -f conftest
26097 else
26098 echo "configure: failed program was" >&5
26099 cat conftest.s >&5
26100 fi
26101 rm -f conftest.o conftest.s
26102 fi
26103 fi
26104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26105 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26106
26107
26108
26109 cat >>confdefs.h <<_ACEOF
26110 #define HAVE_AS_IX86_TLS_GET_ADDR_GOT `if test x"$gcc_cv_as_ix86_tls_get_addr_via_got" = xyes; then echo 1; else echo 0; fi`
26111 _ACEOF
26112
26113 ;;
26114
26115 ia64*-*-*)
26116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26117 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26118 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
26119 $as_echo_n "(cached) " >&6
26120 else
26121 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
26122 if test $in_tree_gas = yes; then
26123 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26124 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26125 fi
26126 elif test x$gcc_cv_as != x; then
26127 $as_echo ' .text
26128 addl r15 = @ltoffx(x#), gp
26129 ;;
26130 ld8.mov r16 = [r15], x#' > conftest.s
26131 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26132 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26133 (eval $ac_try) 2>&5
26134 ac_status=$?
26135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26136 test $ac_status = 0; }; }
26137 then
26138 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26139 else
26140 echo "configure: failed program was" >&5
26141 cat conftest.s >&5
26142 fi
26143 rm -f conftest.o conftest.s
26144 fi
26145 fi
26146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26147 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26148 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26149
26150 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26151
26152 fi
26153
26154
26155 ;;
26156
26157 powerpc*-*-*)
26158
26159 case $target in
26160 *-*-darwin*)
26161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26162 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26163 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26164 $as_echo_n "(cached) " >&6
26165 else
26166 gcc_cv_as_machine_directive=no
26167 if test x$gcc_cv_as != x; then
26168 $as_echo ' .machine ppc7400' > conftest.s
26169 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26171 (eval $ac_try) 2>&5
26172 ac_status=$?
26173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26174 test $ac_status = 0; }; }
26175 then
26176 gcc_cv_as_machine_directive=yes
26177 else
26178 echo "configure: failed program was" >&5
26179 cat conftest.s >&5
26180 fi
26181 rm -f conftest.o conftest.s
26182 fi
26183 fi
26184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26185 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26186
26187
26188 if test x$gcc_cv_as_machine_directive != xyes; then
26189 echo "*** This target requires an assembler supporting \".machine\"" >&2
26190 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26191 test x$build = x$target && exit 1
26192 fi
26193 ;;
26194 esac
26195
26196 case $target in
26197 *-*-aix*) conftest_s=' .machine "pwr5"
26198 .csect .text[PR]
26199 mfcr 3,128';;
26200 *-*-darwin*) conftest_s=' .text
26201 mfcr r3,128';;
26202 *) conftest_s=' .machine power4
26203 .text
26204 mfcr 3,128';;
26205 esac
26206
26207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26208 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26209 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26210 $as_echo_n "(cached) " >&6
26211 else
26212 gcc_cv_as_powerpc_mfcrf=no
26213 if test $in_tree_gas = yes; then
26214 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26215 then gcc_cv_as_powerpc_mfcrf=yes
26216 fi
26217 elif test x$gcc_cv_as != x; then
26218 $as_echo "$conftest_s" > conftest.s
26219 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26221 (eval $ac_try) 2>&5
26222 ac_status=$?
26223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26224 test $ac_status = 0; }; }
26225 then
26226 gcc_cv_as_powerpc_mfcrf=yes
26227 else
26228 echo "configure: failed program was" >&5
26229 cat conftest.s >&5
26230 fi
26231 rm -f conftest.o conftest.s
26232 fi
26233 fi
26234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26235 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26236 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26237
26238 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26239
26240 fi
26241
26242
26243 case $target in
26244 *-*-aix*) conftest_s=' .machine "pwr5"
26245 .csect .text[PR]
26246 popcntb 3,3';;
26247 *) conftest_s=' .machine power5
26248 .text
26249 popcntb 3,3';;
26250 esac
26251
26252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26253 $as_echo_n "checking assembler for popcntb support... " >&6; }
26254 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26255 $as_echo_n "(cached) " >&6
26256 else
26257 gcc_cv_as_powerpc_popcntb=no
26258 if test $in_tree_gas = yes; then
26259 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26260 then gcc_cv_as_powerpc_popcntb=yes
26261 fi
26262 elif test x$gcc_cv_as != x; then
26263 $as_echo "$conftest_s" > conftest.s
26264 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26265 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26266 (eval $ac_try) 2>&5
26267 ac_status=$?
26268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26269 test $ac_status = 0; }; }
26270 then
26271 gcc_cv_as_powerpc_popcntb=yes
26272 else
26273 echo "configure: failed program was" >&5
26274 cat conftest.s >&5
26275 fi
26276 rm -f conftest.o conftest.s
26277 fi
26278 fi
26279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26280 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26281 if test $gcc_cv_as_powerpc_popcntb = yes; then
26282
26283 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26284
26285 fi
26286
26287
26288 case $target in
26289 *-*-aix*) conftest_s=' .machine "pwr5x"
26290 .csect .text[PR]
26291 frin 1,1';;
26292 *) conftest_s=' .machine power5
26293 .text
26294 frin 1,1';;
26295 esac
26296
26297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26298 $as_echo_n "checking assembler for fp round support... " >&6; }
26299 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26300 $as_echo_n "(cached) " >&6
26301 else
26302 gcc_cv_as_powerpc_fprnd=no
26303 if test $in_tree_gas = yes; then
26304 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26305 then gcc_cv_as_powerpc_fprnd=yes
26306 fi
26307 elif test x$gcc_cv_as != x; then
26308 $as_echo "$conftest_s" > conftest.s
26309 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26311 (eval $ac_try) 2>&5
26312 ac_status=$?
26313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26314 test $ac_status = 0; }; }
26315 then
26316 gcc_cv_as_powerpc_fprnd=yes
26317 else
26318 echo "configure: failed program was" >&5
26319 cat conftest.s >&5
26320 fi
26321 rm -f conftest.o conftest.s
26322 fi
26323 fi
26324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26325 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26326 if test $gcc_cv_as_powerpc_fprnd = yes; then
26327
26328 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26329
26330 fi
26331
26332
26333 case $target in
26334 *-*-aix*) conftest_s=' .machine "pwr6"
26335 .csect .text[PR]
26336 mffgpr 1,3';;
26337 *) conftest_s=' .machine power6
26338 .text
26339 mffgpr 1,3';;
26340 esac
26341
26342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26343 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26344 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26345 $as_echo_n "(cached) " >&6
26346 else
26347 gcc_cv_as_powerpc_mfpgpr=no
26348 if test $in_tree_gas = yes; then
26349 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26350 then gcc_cv_as_powerpc_mfpgpr=yes
26351 fi
26352 elif test x$gcc_cv_as != x; then
26353 $as_echo "$conftest_s" > conftest.s
26354 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26356 (eval $ac_try) 2>&5
26357 ac_status=$?
26358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26359 test $ac_status = 0; }; }
26360 then
26361 gcc_cv_as_powerpc_mfpgpr=yes
26362 else
26363 echo "configure: failed program was" >&5
26364 cat conftest.s >&5
26365 fi
26366 rm -f conftest.o conftest.s
26367 fi
26368 fi
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26370 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26371 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26372
26373 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26374
26375 fi
26376
26377
26378 case $target in
26379 *-*-aix*) conftest_s=' .csect .text[PR]
26380 LCF..0:
26381 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26382 *-*-darwin*)
26383 conftest_s=' .text
26384 LCF0:
26385 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26386 *) conftest_s=' .text
26387 .LCF0:
26388 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26389 esac
26390
26391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26392 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26393 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26394 $as_echo_n "(cached) " >&6
26395 else
26396 gcc_cv_as_powerpc_rel16=no
26397 if test $in_tree_gas = yes; then
26398 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26399 then gcc_cv_as_powerpc_rel16=yes
26400 fi
26401 elif test x$gcc_cv_as != x; then
26402 $as_echo "$conftest_s" > conftest.s
26403 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26405 (eval $ac_try) 2>&5
26406 ac_status=$?
26407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26408 test $ac_status = 0; }; }
26409 then
26410 gcc_cv_as_powerpc_rel16=yes
26411 else
26412 echo "configure: failed program was" >&5
26413 cat conftest.s >&5
26414 fi
26415 rm -f conftest.o conftest.s
26416 fi
26417 fi
26418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26419 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26420 if test $gcc_cv_as_powerpc_rel16 = yes; then
26421
26422 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26423
26424 fi
26425
26426
26427 case $target in
26428 *-*-aix*) conftest_s=' .machine "pwr6"
26429 .csect .text[PR]
26430 cmpb 3,4,5';;
26431 *) conftest_s=' .machine power6
26432 .text
26433 cmpb 3,4,5';;
26434 esac
26435
26436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26437 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26438 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26439 $as_echo_n "(cached) " >&6
26440 else
26441 gcc_cv_as_powerpc_cmpb=no
26442 if test $in_tree_gas = yes; then
26443 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26444 then gcc_cv_as_powerpc_cmpb=yes
26445 fi
26446 elif test x$gcc_cv_as != x; then
26447 $as_echo "$conftest_s" > conftest.s
26448 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26450 (eval $ac_try) 2>&5
26451 ac_status=$?
26452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26453 test $ac_status = 0; }; }
26454 then
26455 gcc_cv_as_powerpc_cmpb=yes
26456 else
26457 echo "configure: failed program was" >&5
26458 cat conftest.s >&5
26459 fi
26460 rm -f conftest.o conftest.s
26461 fi
26462 fi
26463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26464 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26465 if test $gcc_cv_as_powerpc_cmpb = yes; then
26466
26467 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26468
26469 fi
26470
26471
26472 case $target in
26473 *-*-aix*) conftest_s=' .machine "pwr6"
26474 .csect .text[PR]
26475 dadd 1,2,3';;
26476 *) conftest_s=' .machine power6
26477 .text
26478 dadd 1,2,3';;
26479 esac
26480
26481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26482 $as_echo_n "checking assembler for decimal float support... " >&6; }
26483 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26484 $as_echo_n "(cached) " >&6
26485 else
26486 gcc_cv_as_powerpc_dfp=no
26487 if test $in_tree_gas = yes; then
26488 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26489 then gcc_cv_as_powerpc_dfp=yes
26490 fi
26491 elif test x$gcc_cv_as != x; then
26492 $as_echo "$conftest_s" > conftest.s
26493 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26495 (eval $ac_try) 2>&5
26496 ac_status=$?
26497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26498 test $ac_status = 0; }; }
26499 then
26500 gcc_cv_as_powerpc_dfp=yes
26501 else
26502 echo "configure: failed program was" >&5
26503 cat conftest.s >&5
26504 fi
26505 rm -f conftest.o conftest.s
26506 fi
26507 fi
26508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26509 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26510 if test $gcc_cv_as_powerpc_dfp = yes; then
26511
26512 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26513
26514 fi
26515
26516
26517 case $target in
26518 *-*-aix*) conftest_s=' .machine "pwr7"
26519 .csect .text[PR]
26520 lxvd2x 1,2,3';;
26521 *) conftest_s=' .machine power7
26522 .text
26523 lxvd2x 1,2,3';;
26524 esac
26525
26526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26527 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26528 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26529 $as_echo_n "(cached) " >&6
26530 else
26531 gcc_cv_as_powerpc_vsx=no
26532 if test $in_tree_gas = yes; then
26533 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26534 then gcc_cv_as_powerpc_vsx=yes
26535 fi
26536 elif test x$gcc_cv_as != x; then
26537 $as_echo "$conftest_s" > conftest.s
26538 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26540 (eval $ac_try) 2>&5
26541 ac_status=$?
26542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26543 test $ac_status = 0; }; }
26544 then
26545 gcc_cv_as_powerpc_vsx=yes
26546 else
26547 echo "configure: failed program was" >&5
26548 cat conftest.s >&5
26549 fi
26550 rm -f conftest.o conftest.s
26551 fi
26552 fi
26553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26554 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26555 if test $gcc_cv_as_powerpc_vsx = yes; then
26556
26557 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26558
26559 fi
26560
26561
26562 case $target in
26563 *-*-aix*) conftest_s=' .machine "pwr7"
26564 .csect .text[PR]
26565 popcntd 3,3';;
26566 *) conftest_s=' .machine power7
26567 .text
26568 popcntd 3,3';;
26569 esac
26570
26571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26572 $as_echo_n "checking assembler for popcntd support... " >&6; }
26573 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26574 $as_echo_n "(cached) " >&6
26575 else
26576 gcc_cv_as_powerpc_popcntd=no
26577 if test $in_tree_gas = yes; then
26578 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26579 then gcc_cv_as_powerpc_popcntd=yes
26580 fi
26581 elif test x$gcc_cv_as != x; then
26582 $as_echo "$conftest_s" > conftest.s
26583 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26585 (eval $ac_try) 2>&5
26586 ac_status=$?
26587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26588 test $ac_status = 0; }; }
26589 then
26590 gcc_cv_as_powerpc_popcntd=yes
26591 else
26592 echo "configure: failed program was" >&5
26593 cat conftest.s >&5
26594 fi
26595 rm -f conftest.o conftest.s
26596 fi
26597 fi
26598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26599 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26600 if test $gcc_cv_as_powerpc_popcntd = yes; then
26601
26602 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26603
26604 fi
26605
26606
26607 case $target in
26608 *-*-aix*) conftest_s=' .machine "pwr8"
26609 .csect .text[PR]';;
26610 *) conftest_s=' .machine power8
26611 .text';;
26612 esac
26613
26614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26615 $as_echo_n "checking assembler for power8 support... " >&6; }
26616 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26617 $as_echo_n "(cached) " >&6
26618 else
26619 gcc_cv_as_powerpc_power8=no
26620 if test $in_tree_gas = yes; then
26621 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26622 then gcc_cv_as_powerpc_power8=yes
26623 fi
26624 elif test x$gcc_cv_as != x; then
26625 $as_echo "$conftest_s" > conftest.s
26626 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26628 (eval $ac_try) 2>&5
26629 ac_status=$?
26630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26631 test $ac_status = 0; }; }
26632 then
26633 gcc_cv_as_powerpc_power8=yes
26634 else
26635 echo "configure: failed program was" >&5
26636 cat conftest.s >&5
26637 fi
26638 rm -f conftest.o conftest.s
26639 fi
26640 fi
26641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26642 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26643 if test $gcc_cv_as_powerpc_power8 = yes; then
26644
26645 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26646
26647 fi
26648
26649
26650 case $target in
26651 *-*-aix*) conftest_s=' .machine "pwr9"
26652 .csect .text[PR]';;
26653 *) conftest_s=' .machine power9
26654 .text';;
26655 esac
26656
26657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26658 $as_echo_n "checking assembler for power9 support... " >&6; }
26659 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26660 $as_echo_n "(cached) " >&6
26661 else
26662 gcc_cv_as_powerpc_power9=no
26663 if test $in_tree_gas = yes; then
26664 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26665 then gcc_cv_as_powerpc_power9=yes
26666 fi
26667 elif test x$gcc_cv_as != x; then
26668 $as_echo "$conftest_s" > conftest.s
26669 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26671 (eval $ac_try) 2>&5
26672 ac_status=$?
26673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26674 test $ac_status = 0; }; }
26675 then
26676 gcc_cv_as_powerpc_power9=yes
26677 else
26678 echo "configure: failed program was" >&5
26679 cat conftest.s >&5
26680 fi
26681 rm -f conftest.o conftest.s
26682 fi
26683 fi
26684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26685 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26686 if test $gcc_cv_as_powerpc_power9 = yes; then
26687
26688 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26689
26690 fi
26691
26692
26693 case $target in
26694 *-*-aix*) conftest_s=' .csect .text[PR]
26695 lwsync';;
26696 *) conftest_s=' .text
26697 lwsync';;
26698 esac
26699
26700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26701 $as_echo_n "checking assembler for lwsync support... " >&6; }
26702 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26703 $as_echo_n "(cached) " >&6
26704 else
26705 gcc_cv_as_powerpc_lwsync=no
26706 if test $in_tree_gas = yes; then
26707 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26708 then gcc_cv_as_powerpc_lwsync=yes
26709 fi
26710 elif test x$gcc_cv_as != x; then
26711 $as_echo "$conftest_s" > conftest.s
26712 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26714 (eval $ac_try) 2>&5
26715 ac_status=$?
26716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26717 test $ac_status = 0; }; }
26718 then
26719 gcc_cv_as_powerpc_lwsync=yes
26720 else
26721 echo "configure: failed program was" >&5
26722 cat conftest.s >&5
26723 fi
26724 rm -f conftest.o conftest.s
26725 fi
26726 fi
26727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26728 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26729 if test $gcc_cv_as_powerpc_lwsync = yes; then
26730
26731 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26732
26733 fi
26734
26735
26736 case $target in
26737 *-*-aix*) conftest_s=' .machine "476"
26738 .csect .text[PR]
26739 dci 0';;
26740 *) conftest_s=' .machine "476"
26741 .text
26742 dci 0';;
26743 esac
26744
26745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26746 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26747 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26748 $as_echo_n "(cached) " >&6
26749 else
26750 gcc_cv_as_powerpc_dci=no
26751 if test $in_tree_gas = yes; then
26752 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26753 then gcc_cv_as_powerpc_dci=yes
26754 fi
26755 elif test x$gcc_cv_as != x; then
26756 $as_echo "$conftest_s" > conftest.s
26757 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26759 (eval $ac_try) 2>&5
26760 ac_status=$?
26761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26762 test $ac_status = 0; }; }
26763 then
26764 gcc_cv_as_powerpc_dci=yes
26765 else
26766 echo "configure: failed program was" >&5
26767 cat conftest.s >&5
26768 fi
26769 rm -f conftest.o conftest.s
26770 fi
26771 fi
26772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26773 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26774 if test $gcc_cv_as_powerpc_dci = yes; then
26775
26776 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26777
26778 fi
26779
26780
26781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26782 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26783 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26784 $as_echo_n "(cached) " >&6
26785 else
26786 gcc_cv_as_powerpc_gnu_attribute=no
26787 if test $in_tree_gas = yes; then
26788 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26789 then gcc_cv_as_powerpc_gnu_attribute=yes
26790 fi
26791 elif test x$gcc_cv_as != x; then
26792 $as_echo '.gnu_attribute 4,1' > conftest.s
26793 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26795 (eval $ac_try) 2>&5
26796 ac_status=$?
26797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26798 test $ac_status = 0; }; }
26799 then
26800 gcc_cv_as_powerpc_gnu_attribute=yes
26801 else
26802 echo "configure: failed program was" >&5
26803 cat conftest.s >&5
26804 fi
26805 rm -f conftest.o conftest.s
26806 fi
26807 fi
26808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26809 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26810 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26811
26812 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26813
26814 fi
26815
26816
26817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26818 $as_echo_n "checking assembler for tls marker support... " >&6; }
26819 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26820 $as_echo_n "(cached) " >&6
26821 else
26822 gcc_cv_as_powerpc_tls_markers=no
26823 if test $in_tree_gas = yes; then
26824 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26825 then gcc_cv_as_powerpc_tls_markers=yes
26826 fi
26827 elif test x$gcc_cv_as != x; then
26828 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26829 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26831 (eval $ac_try) 2>&5
26832 ac_status=$?
26833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26834 test $ac_status = 0; }; }
26835 then
26836 gcc_cv_as_powerpc_tls_markers=yes
26837 else
26838 echo "configure: failed program was" >&5
26839 cat conftest.s >&5
26840 fi
26841 rm -f conftest.o conftest.s
26842 fi
26843 fi
26844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26845 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26846 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26847
26848 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26849
26850 fi
26851
26852
26853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26854 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26855 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26856 $as_echo_n "(cached) " >&6
26857 else
26858 gcc_cv_as_powerpc_entry_markers=no
26859 if test $in_tree_gas = yes; then
26860 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26861 then gcc_cv_as_powerpc_entry_markers=yes
26862 fi
26863 elif test x$gcc_cv_as != x; then
26864 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26865 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26867 (eval $ac_try) 2>&5
26868 ac_status=$?
26869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26870 test $ac_status = 0; }; }
26871 then
26872 gcc_cv_as_powerpc_entry_markers=yes
26873 else
26874 echo "configure: failed program was" >&5
26875 cat conftest.s >&5
26876 fi
26877 rm -f conftest.o conftest.s
26878 fi
26879 fi
26880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26881 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26882 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26883
26884 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26885
26886 fi
26887
26888
26889 case $target in
26890 *-*-aix*)
26891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26892 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26893 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26894 $as_echo_n "(cached) " >&6
26895 else
26896 gcc_cv_as_aix_ref=no
26897 if test $in_tree_gas = yes; then
26898 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26899 then gcc_cv_as_aix_ref=yes
26900 fi
26901 elif test x$gcc_cv_as != x; then
26902 $as_echo ' .csect stuff[rw]
26903 stuff:
26904 .long 1
26905 .extern sym
26906 .ref sym
26907 ' > conftest.s
26908 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26910 (eval $ac_try) 2>&5
26911 ac_status=$?
26912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26913 test $ac_status = 0; }; }
26914 then
26915 gcc_cv_as_aix_ref=yes
26916 else
26917 echo "configure: failed program was" >&5
26918 cat conftest.s >&5
26919 fi
26920 rm -f conftest.o conftest.s
26921 fi
26922 fi
26923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26924 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26925 if test $gcc_cv_as_aix_ref = yes; then
26926
26927 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26928
26929 fi
26930
26931
26932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26933 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26934 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26935 $as_echo_n "(cached) " >&6
26936 else
26937 gcc_cv_as_aix_dwloc=no
26938 if test $in_tree_gas = yes; then
26939 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26940 then gcc_cv_as_aix_dwloc=yes
26941 fi
26942 elif test x$gcc_cv_as != x; then
26943 $as_echo ' .dwsect 0xA0000
26944 Lframe..0:
26945 .vbyte 4,Lframe..0
26946 ' > conftest.s
26947 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26949 (eval $ac_try) 2>&5
26950 ac_status=$?
26951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26952 test $ac_status = 0; }; }
26953 then
26954 gcc_cv_as_aix_dwloc=yes
26955 else
26956 echo "configure: failed program was" >&5
26957 cat conftest.s >&5
26958 fi
26959 rm -f conftest.o conftest.s
26960 fi
26961 fi
26962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26963 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26964 if test $gcc_cv_as_aix_dwloc = yes; then
26965
26966 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26967
26968 fi
26969
26970 ;;
26971 esac
26972 ;;
26973
26974 mips*-*-*)
26975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26976 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26977 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26978 $as_echo_n "(cached) " >&6
26979 else
26980 gcc_cv_as_mips_explicit_relocs=no
26981 if test $in_tree_gas = yes; then
26982 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26983 then gcc_cv_as_mips_explicit_relocs=yes
26984 fi
26985 elif test x$gcc_cv_as != x; then
26986 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26987 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26989 (eval $ac_try) 2>&5
26990 ac_status=$?
26991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26992 test $ac_status = 0; }; }
26993 then
26994 gcc_cv_as_mips_explicit_relocs=yes
26995 else
26996 echo "configure: failed program was" >&5
26997 cat conftest.s >&5
26998 fi
26999 rm -f conftest.o conftest.s
27000 fi
27001 fi
27002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27003 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27004 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27005 if test x$target_cpu_default = x
27006 then target_cpu_default=MASK_EXPLICIT_RELOCS
27007 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27008 fi
27009 fi
27010
27011
27012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27013 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27014 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
27015 $as_echo_n "(cached) " >&6
27016 else
27017 gcc_cv_as_mips_no_shared=no
27018 if test $in_tree_gas = yes; then
27019 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27020 then gcc_cv_as_mips_no_shared=yes
27021 fi
27022 elif test x$gcc_cv_as != x; then
27023 $as_echo 'nop' > conftest.s
27024 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27026 (eval $ac_try) 2>&5
27027 ac_status=$?
27028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27029 test $ac_status = 0; }; }
27030 then
27031 gcc_cv_as_mips_no_shared=yes
27032 else
27033 echo "configure: failed program was" >&5
27034 cat conftest.s >&5
27035 fi
27036 rm -f conftest.o conftest.s
27037 fi
27038 fi
27039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27040 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27041 if test $gcc_cv_as_mips_no_shared = yes; then
27042
27043 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27044
27045 fi
27046
27047
27048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27049 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27050 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
27051 $as_echo_n "(cached) " >&6
27052 else
27053 gcc_cv_as_mips_gnu_attribute=no
27054 if test $in_tree_gas = yes; then
27055 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27056 then gcc_cv_as_mips_gnu_attribute=yes
27057 fi
27058 elif test x$gcc_cv_as != x; then
27059 $as_echo '.gnu_attribute 4,1' > conftest.s
27060 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27062 (eval $ac_try) 2>&5
27063 ac_status=$?
27064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27065 test $ac_status = 0; }; }
27066 then
27067 gcc_cv_as_mips_gnu_attribute=yes
27068 else
27069 echo "configure: failed program was" >&5
27070 cat conftest.s >&5
27071 fi
27072 rm -f conftest.o conftest.s
27073 fi
27074 fi
27075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27076 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27077 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27078
27079 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27080
27081 fi
27082
27083
27084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27085 $as_echo_n "checking assembler for .module support... " >&6; }
27086 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
27087 $as_echo_n "(cached) " >&6
27088 else
27089 gcc_cv_as_mips_dot_module=no
27090 if test x$gcc_cv_as != x; then
27091 $as_echo '.module mips2
27092 .module fp=xx' > conftest.s
27093 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27095 (eval $ac_try) 2>&5
27096 ac_status=$?
27097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27098 test $ac_status = 0; }; }
27099 then
27100 gcc_cv_as_mips_dot_module=yes
27101 else
27102 echo "configure: failed program was" >&5
27103 cat conftest.s >&5
27104 fi
27105 rm -f conftest.o conftest.s
27106 fi
27107 fi
27108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27109 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27110 if test $gcc_cv_as_mips_dot_module = yes; then
27111
27112 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27113
27114 fi
27115
27116 if test x$gcc_cv_as_mips_dot_module = xno \
27117 && test x$with_fp_32 != x; then
27118 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27119 fi
27120
27121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27122 $as_echo_n "checking assembler for .micromips support... " >&6; }
27123 if test "${gcc_cv_as_micromips_support+set}" = set; then :
27124 $as_echo_n "(cached) " >&6
27125 else
27126 gcc_cv_as_micromips_support=no
27127 if test x$gcc_cv_as != x; then
27128 $as_echo '.set micromips' > conftest.s
27129 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27131 (eval $ac_try) 2>&5
27132 ac_status=$?
27133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27134 test $ac_status = 0; }; }
27135 then
27136 gcc_cv_as_micromips_support=yes
27137 else
27138 echo "configure: failed program was" >&5
27139 cat conftest.s >&5
27140 fi
27141 rm -f conftest.o conftest.s
27142 fi
27143 fi
27144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27145 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27146 if test $gcc_cv_as_micromips_support = yes; then
27147
27148 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27149
27150 fi
27151
27152
27153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27154 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27155 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
27156 $as_echo_n "(cached) " >&6
27157 else
27158 gcc_cv_as_mips_dtprelword=no
27159 if test $in_tree_gas = yes; then
27160 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27161 then gcc_cv_as_mips_dtprelword=yes
27162 fi
27163 elif test x$gcc_cv_as != x; then
27164 $as_echo '.section .tdata,"awT",@progbits
27165 x:
27166 .word 2
27167 .text
27168 .dtprelword x+0x8000' > conftest.s
27169 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27171 (eval $ac_try) 2>&5
27172 ac_status=$?
27173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27174 test $ac_status = 0; }; }
27175 then
27176 gcc_cv_as_mips_dtprelword=yes
27177 else
27178 echo "configure: failed program was" >&5
27179 cat conftest.s >&5
27180 fi
27181 rm -f conftest.o conftest.s
27182 fi
27183 fi
27184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27185 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27186 if test $gcc_cv_as_mips_dtprelword = yes; then
27187
27188 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27189
27190 fi
27191
27192
27193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27194 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27195 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27196 $as_echo_n "(cached) " >&6
27197 else
27198 gcc_cv_as_mips_dspr1_mult=no
27199 if test x$gcc_cv_as != x; then
27200 $as_echo ' .set mips32r2
27201 .set nodspr2
27202 .set dsp
27203 madd $ac3,$4,$5
27204 maddu $ac3,$4,$5
27205 msub $ac3,$4,$5
27206 msubu $ac3,$4,$5
27207 mult $ac3,$4,$5
27208 multu $ac3,$4,$5' > conftest.s
27209 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27211 (eval $ac_try) 2>&5
27212 ac_status=$?
27213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27214 test $ac_status = 0; }; }
27215 then
27216 gcc_cv_as_mips_dspr1_mult=yes
27217 else
27218 echo "configure: failed program was" >&5
27219 cat conftest.s >&5
27220 fi
27221 rm -f conftest.o conftest.s
27222 fi
27223 fi
27224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27225 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27226 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27227
27228 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27229
27230 fi
27231
27232
27233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27234 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27235 gcc_cv_as_ld_jalr_reloc=no
27236 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27237 if test $in_tree_ld = yes ; then
27238 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 \
27239 && test $in_tree_ld_is_elf = yes; then
27240 gcc_cv_as_ld_jalr_reloc=yes
27241 fi
27242 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27243 echo ' .ent x' > conftest.s
27244 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27245 echo ' lw $25,%call16(y)($28)' >> conftest.s
27246 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27247 echo '1: jalr $25' >> conftest.s
27248 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27249 echo '1: jalr $25' >> conftest.s
27250 echo ' .end x' >> conftest.s
27251 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27252 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27253 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27254 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27255 gcc_cv_as_ld_jalr_reloc=yes
27256 fi
27257 fi
27258 rm -f conftest.*
27259 fi
27260 fi
27261 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27262 if test x$target_cpu_default = x; then
27263 target_cpu_default=MASK_RELAX_PIC_CALLS
27264 else
27265 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27266 fi
27267 fi
27268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27269 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27270
27271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27272 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27273 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27274 $as_echo_n "(cached) " >&6
27275 else
27276 gcc_cv_ld_mips_personality_relaxation=no
27277 if test $in_tree_ld = yes ; then
27278 if test "$gcc_cv_gld_major_version" -eq 2 \
27279 -a "$gcc_cv_gld_minor_version" -ge 21 \
27280 -o "$gcc_cv_gld_major_version" -gt 2; then
27281 gcc_cv_ld_mips_personality_relaxation=yes
27282 fi
27283 elif test x$gcc_cv_as != x \
27284 -a x$gcc_cv_ld != x \
27285 -a x$gcc_cv_readelf != x ; then
27286 cat > conftest.s <<EOF
27287 .cfi_startproc
27288 .cfi_personality 0x80,indirect_ptr
27289 .ent test
27290 test:
27291 nop
27292 .end test
27293 .cfi_endproc
27294
27295 .section .data,"aw",@progbits
27296 indirect_ptr:
27297 .dc.a personality
27298 EOF
27299 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27300 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27301 if $gcc_cv_readelf -d conftest 2>&1 \
27302 | grep TEXTREL > /dev/null 2>&1; then
27303 :
27304 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27305 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27306 :
27307 else
27308 gcc_cv_ld_mips_personality_relaxation=yes
27309 fi
27310 fi
27311 fi
27312 rm -f conftest.s conftest.o conftest
27313 fi
27314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27315 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27316 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27317
27318 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27319
27320 fi
27321
27322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27323 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27324 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27325 $as_echo_n "(cached) " >&6
27326 else
27327 gcc_cv_as_mips_nan=no
27328 if test x$gcc_cv_as != x; then
27329 $as_echo '' > conftest.s
27330 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27332 (eval $ac_try) 2>&5
27333 ac_status=$?
27334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27335 test $ac_status = 0; }; }
27336 then
27337 gcc_cv_as_mips_nan=yes
27338 else
27339 echo "configure: failed program was" >&5
27340 cat conftest.s >&5
27341 fi
27342 rm -f conftest.o conftest.s
27343 fi
27344 fi
27345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27346 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27347 if test $gcc_cv_as_mips_nan = yes; then
27348
27349 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27350
27351 fi
27352
27353 if test x$gcc_cv_as_mips_nan = xno \
27354 && test x$with_nan != x; then
27355 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27356 fi
27357 ;;
27358 s390*-*-*)
27359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27360 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27361 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27362 $as_echo_n "(cached) " >&6
27363 else
27364 gcc_cv_as_s390_gnu_attribute=no
27365 if test $in_tree_gas = yes; then
27366 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27367 then gcc_cv_as_s390_gnu_attribute=yes
27368 fi
27369 elif test x$gcc_cv_as != x; then
27370 $as_echo '.gnu_attribute 8,1' > conftest.s
27371 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27373 (eval $ac_try) 2>&5
27374 ac_status=$?
27375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27376 test $ac_status = 0; }; }
27377 then
27378 gcc_cv_as_s390_gnu_attribute=yes
27379 else
27380 echo "configure: failed program was" >&5
27381 cat conftest.s >&5
27382 fi
27383 rm -f conftest.o conftest.s
27384 fi
27385 fi
27386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27387 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27388 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27389
27390 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27391
27392 fi
27393
27394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27395 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27396 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27397 $as_echo_n "(cached) " >&6
27398 else
27399 gcc_cv_as_s390_machine_machinemode=no
27400 if test $in_tree_gas = yes; then
27401 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27402 then gcc_cv_as_s390_machine_machinemode=yes
27403 fi
27404 elif test x$gcc_cv_as != x; then
27405 $as_echo ' .machinemode push
27406 .machinemode pop
27407 .machine push
27408 .machine pop' > conftest.s
27409 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27411 (eval $ac_try) 2>&5
27412 ac_status=$?
27413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27414 test $ac_status = 0; }; }
27415 then
27416 gcc_cv_as_s390_machine_machinemode=yes
27417 else
27418 echo "configure: failed program was" >&5
27419 cat conftest.s >&5
27420 fi
27421 rm -f conftest.o conftest.s
27422 fi
27423 fi
27424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27425 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27426 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27427
27428 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27429
27430 fi
27431
27432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27433 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27434 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27435 $as_echo_n "(cached) " >&6
27436 else
27437 gcc_cv_as_s390_architecture_modifiers=no
27438 if test $in_tree_gas = yes; then
27439 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27440 then gcc_cv_as_s390_architecture_modifiers=yes
27441 fi
27442 elif test x$gcc_cv_as != x; then
27443 $as_echo ' .machine z13+vx ' > conftest.s
27444 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27446 (eval $ac_try) 2>&5
27447 ac_status=$?
27448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27449 test $ac_status = 0; }; }
27450 then
27451 gcc_cv_as_s390_architecture_modifiers=yes
27452 else
27453 echo "configure: failed program was" >&5
27454 cat conftest.s >&5
27455 fi
27456 rm -f conftest.o conftest.s
27457 fi
27458 fi
27459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27460 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27461 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27462
27463 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27464
27465 fi
27466
27467 ;;
27468 esac
27469
27470 # Mips and HP-UX need the GNU assembler.
27471 # Linux on IA64 might be able to use the Intel assembler.
27472
27473 case "$target" in
27474 mips*-*-* | *-*-hpux* )
27475 if test x$gas_flag = xyes \
27476 || test x"$host" != x"$build" \
27477 || test ! -x "$gcc_cv_as" \
27478 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27479 :
27480 else
27481 echo "*** This configuration requires the GNU assembler" >&2
27482 exit 1
27483 fi
27484 ;;
27485 esac
27486
27487 # ??? Not all targets support dwarf2 debug_line, even within a version
27488 # of gas. Moreover, we need to emit a valid instruction to trigger any
27489 # info to the output file. So, as supported targets are added to gas 2.11,
27490 # add some instruction here to (also) show we expect this might work.
27491 # ??? Once 2.11 is released, probably need to add first known working
27492 # version to the per-target configury.
27493 case "$cpu_type" in
27494 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
27495 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
27496 | visium | xstormy16 | xtensa)
27497 insn="nop"
27498 ;;
27499 ia64 | s390)
27500 insn="nop 0"
27501 ;;
27502 mmix)
27503 insn="swym 0"
27504 ;;
27505 esac
27506 if test x"$insn" != x; then
27507 conftest_s="\
27508 .file 1 \"conftest.s\"
27509 .loc 1 3 0
27510 $insn"
27511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27512 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27513 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27514 $as_echo_n "(cached) " >&6
27515 else
27516 gcc_cv_as_dwarf2_debug_line=no
27517 if test $in_tree_gas = yes; then
27518 if test $in_tree_gas_is_elf = yes \
27519 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27520 then gcc_cv_as_dwarf2_debug_line=yes
27521 fi
27522 elif test x$gcc_cv_as != x; then
27523 $as_echo "$conftest_s" > conftest.s
27524 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27526 (eval $ac_try) 2>&5
27527 ac_status=$?
27528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27529 test $ac_status = 0; }; }
27530 then
27531 if test x$gcc_cv_objdump != x \
27532 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27533 | grep debug_line > /dev/null 2>&1; then
27534 gcc_cv_as_dwarf2_debug_line=yes
27535 fi
27536 else
27537 echo "configure: failed program was" >&5
27538 cat conftest.s >&5
27539 fi
27540 rm -f conftest.o conftest.s
27541 fi
27542 fi
27543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27544 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27545
27546
27547
27548 # The .debug_line file table must be in the exact order that
27549 # we specified the files, since these indices are also used
27550 # by DW_AT_decl_file. Approximate this test by testing if
27551 # the assembler bitches if the same index is assigned twice.
27552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27553 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27554 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27555 $as_echo_n "(cached) " >&6
27556 else
27557 gcc_cv_as_dwarf2_file_buggy=no
27558 if test x$gcc_cv_as != x; then
27559 $as_echo ' .file 1 "foo.s"
27560 .file 1 "bar.s"' > conftest.s
27561 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27563 (eval $ac_try) 2>&5
27564 ac_status=$?
27565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27566 test $ac_status = 0; }; }
27567 then
27568 gcc_cv_as_dwarf2_file_buggy=yes
27569 else
27570 echo "configure: failed program was" >&5
27571 cat conftest.s >&5
27572 fi
27573 rm -f conftest.o conftest.s
27574 fi
27575 fi
27576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27577 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27578
27579
27580
27581 if test $gcc_cv_as_dwarf2_debug_line = yes \
27582 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27583
27584 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27585
27586 fi
27587
27588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27589 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27590 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27591 $as_echo_n "(cached) " >&6
27592 else
27593 gcc_cv_as_gdwarf2_flag=no
27594 if test $in_tree_gas = yes; then
27595 if test $in_tree_gas_is_elf = yes \
27596 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27597 then gcc_cv_as_gdwarf2_flag=yes
27598 fi
27599 elif test x$gcc_cv_as != x; then
27600 $as_echo "$insn" > conftest.s
27601 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27602 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27603 (eval $ac_try) 2>&5
27604 ac_status=$?
27605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27606 test $ac_status = 0; }; }
27607 then
27608 gcc_cv_as_gdwarf2_flag=yes
27609 else
27610 echo "configure: failed program was" >&5
27611 cat conftest.s >&5
27612 fi
27613 rm -f conftest.o conftest.s
27614 fi
27615 fi
27616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27617 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27618 if test $gcc_cv_as_gdwarf2_flag = yes; then
27619
27620 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27621
27622 fi
27623
27624
27625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27626 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27627 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27628 $as_echo_n "(cached) " >&6
27629 else
27630 gcc_cv_as_gstabs_flag=no
27631 if test $in_tree_gas = yes; then
27632 if test $in_tree_gas_is_elf = yes \
27633 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27634 then gcc_cv_as_gstabs_flag=yes
27635 fi
27636 elif test x$gcc_cv_as != x; then
27637 $as_echo "$insn" > conftest.s
27638 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27639 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27640 (eval $ac_try) 2>&5
27641 ac_status=$?
27642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27643 test $ac_status = 0; }; }
27644 then
27645 gcc_cv_as_gstabs_flag=yes
27646 else
27647 echo "configure: failed program was" >&5
27648 cat conftest.s >&5
27649 fi
27650 rm -f conftest.o conftest.s
27651 fi
27652 fi
27653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27654 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27655 if test $gcc_cv_as_gstabs_flag = yes; then
27656
27657 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27658
27659 fi
27660
27661
27662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27663 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27664 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27665 $as_echo_n "(cached) " >&6
27666 else
27667 gcc_cv_as_debug_prefix_map_flag=no
27668 if test $in_tree_gas = yes; then
27669 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27670 then gcc_cv_as_debug_prefix_map_flag=yes
27671 fi
27672 elif test x$gcc_cv_as != x; then
27673 $as_echo "$insn" > conftest.s
27674 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27676 (eval $ac_try) 2>&5
27677 ac_status=$?
27678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27679 test $ac_status = 0; }; }
27680 then
27681 gcc_cv_as_debug_prefix_map_flag=yes
27682 else
27683 echo "configure: failed program was" >&5
27684 cat conftest.s >&5
27685 fi
27686 rm -f conftest.o conftest.s
27687 fi
27688 fi
27689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27690 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27691 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27692
27693 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27694
27695 fi
27696
27697 fi
27698
27699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27700 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27701 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27702 $as_echo_n "(cached) " >&6
27703 else
27704 gcc_cv_as_compress_debug=no
27705 if test x$gcc_cv_as != x; then
27706 $as_echo '' > conftest.s
27707 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27709 (eval $ac_try) 2>&5
27710 ac_status=$?
27711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27712 test $ac_status = 0; }; }
27713 then
27714 # gas compiled without zlib cannot compress debug sections and warns
27715 # about it, but still exits successfully. So check for this, too.
27716 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27717 then
27718 gcc_cv_as_compress_debug=0
27719 # Since binutils 2.26, gas supports --compress-debug-sections=type,
27720 # defaulting to the ELF gABI format.
27721 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
27722 then
27723 gcc_cv_as_compress_debug=2
27724 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27725 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27726 # Before binutils 2.26, gas only supported --compress-debug-options and
27727 # emitted the traditional GNU format.
27728 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27729 then
27730 gcc_cv_as_compress_debug=1
27731 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27732 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27733 else
27734 gcc_cv_as_compress_debug=0
27735 fi
27736 else
27737 echo "configure: failed program was" >&5
27738 cat conftest.s >&5
27739 fi
27740 rm -f conftest.o conftest.s
27741 fi
27742 fi
27743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27744 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27745
27746
27747
27748 cat >>confdefs.h <<_ACEOF
27749 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27750 _ACEOF
27751
27752
27753 cat >>confdefs.h <<_ACEOF
27754 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27755 _ACEOF
27756
27757
27758 cat >>confdefs.h <<_ACEOF
27759 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27760 _ACEOF
27761
27762
27763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27764 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27765 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27766 $as_echo_n "(cached) " >&6
27767 else
27768 gcc_cv_as_lcomm_with_alignment=no
27769 if test x$gcc_cv_as != x; then
27770 $as_echo '.lcomm bar,4,16' > conftest.s
27771 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27773 (eval $ac_try) 2>&5
27774 ac_status=$?
27775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27776 test $ac_status = 0; }; }
27777 then
27778 gcc_cv_as_lcomm_with_alignment=yes
27779 else
27780 echo "configure: failed program was" >&5
27781 cat conftest.s >&5
27782 fi
27783 rm -f conftest.o conftest.s
27784 fi
27785 fi
27786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27787 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27788 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27789
27790 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27791
27792 fi
27793
27794
27795 if test x$with_sysroot = x && test x$host = x$target \
27796 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27797 && test "$prefix" != "NONE"; then
27798
27799 cat >>confdefs.h <<_ACEOF
27800 #define PREFIX_INCLUDE_DIR "$prefix/include"
27801 _ACEOF
27802
27803 fi
27804
27805 # Determine the version of glibc, if any, used on the target.
27806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27807 $as_echo_n "checking for target glibc version... " >&6; }
27808
27809 # Check whether --with-glibc-version was given.
27810 if test "${with_glibc_version+set}" = set; then :
27811 withval=$with_glibc_version;
27812 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27813 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27814 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27815 else
27816 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27817 fi
27818 else
27819
27820 glibc_version_major=0
27821 glibc_version_minor=0
27822 if test -f $target_header_dir/features.h \
27823 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27824 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27825 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27826 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27827 fi
27828 fi
27829
27830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27831 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27832
27833 cat >>confdefs.h <<_ACEOF
27834 #define TARGET_GLIBC_MAJOR $glibc_version_major
27835 _ACEOF
27836
27837
27838 cat >>confdefs.h <<_ACEOF
27839 #define TARGET_GLIBC_MINOR $glibc_version_minor
27840 _ACEOF
27841
27842
27843 # Check whether --enable-gnu-unique-object was given.
27844 if test "${enable_gnu_unique_object+set}" = set; then :
27845 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27846 yes | no) ;;
27847 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27848 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27849 esac
27850 else
27851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27852 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27853 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27854 $as_echo_n "(cached) " >&6
27855 else
27856 gcc_cv_as_gnu_unique_object=no
27857 if test $in_tree_gas = yes; then
27858 if test $in_tree_gas_is_elf = yes \
27859 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27860 then gcc_cv_as_gnu_unique_object=yes
27861 fi
27862 elif test x$gcc_cv_as != x; then
27863 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27864 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27866 (eval $ac_try) 2>&5
27867 ac_status=$?
27868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27869 test $ac_status = 0; }; }
27870 then
27871 gcc_cv_as_gnu_unique_object=yes
27872 else
27873 echo "configure: failed program was" >&5
27874 cat conftest.s >&5
27875 fi
27876 rm -f conftest.o conftest.s
27877 fi
27878 fi
27879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27880 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27881 if test $gcc_cv_as_gnu_unique_object = yes; then
27882 # We need to unquote above to to use the definition from config.gcc.
27883 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27884
27885 if test $glibc_version_major -gt 2 \
27886 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27887 enable_gnu_unique_object=yes
27888 fi
27889
27890 fi
27891
27892 fi
27893
27894 if test x$enable_gnu_unique_object = xyes; then
27895
27896 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27897
27898 fi
27899
27900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27901 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27902 if test "${gcc_cv_as_line_zero+set}" = set; then :
27903 $as_echo_n "(cached) " >&6
27904 else
27905 gcc_cv_as_line_zero=no
27906 if test $in_tree_gas = yes; then
27907 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27908 then gcc_cv_as_line_zero=yes
27909 fi
27910 elif test "x$gcc_cv_as" != x; then
27911 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27912 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27914 (eval $ac_try) 2>&5
27915 ac_status=$?
27916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27917 test $ac_status = 0; }; } &&
27918 test "x`cat conftest.out`" = x
27919 then
27920 gcc_cv_as_line_zero=yes
27921 else
27922 echo "configure: failed program was" >&5
27923 cat conftest.s >&5
27924 echo "configure: error output was" >&5
27925 cat conftest.out >&5
27926 fi
27927 rm -f conftest.o conftest.s conftest.out
27928 fi
27929 fi
27930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27931 $as_echo "$gcc_cv_as_line_zero" >&6; }
27932 if test "x$gcc_cv_as_line_zero" = xyes; then
27933
27934 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27935
27936 fi
27937
27938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
27939 $as_echo_n "checking support for thin archives... " >&6; }
27940 thin_archive_support=no
27941 echo 'int main (void) { return 0; }' > conftest.c
27942 if ($AR --version | sed 1q | grep "GNU ar" \
27943 && $CC $CFLAGS -c conftest.c \
27944 && $AR rcT conftest.a conftest.o \
27945 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
27946 thin_archive_support=yes
27947 fi
27948 rm -f conftest.c conftest.o conftest.a conftest
27949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
27950 $as_echo "$thin_archive_support" >&6; }
27951
27952
27953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27954 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27955 gcc_cv_ld_eh_frame_hdr=no
27956 if test $in_tree_ld = yes ; then
27957 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 \
27958 && test $in_tree_ld_is_elf = yes; then
27959 gcc_cv_ld_eh_frame_hdr=yes
27960 fi
27961 elif test x$gcc_cv_ld != x; then
27962 if echo "$ld_ver" | grep GNU > /dev/null; then
27963 # Check if linker supports --eh-frame-hdr option
27964 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
27965 gcc_cv_ld_eh_frame_hdr=yes
27966 fi
27967 else
27968 case "$target" in
27969 *-*-solaris2*)
27970 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27971 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
27972 gcc_cv_ld_eh_frame_hdr=yes
27973 fi
27974 ;;
27975 esac
27976 fi
27977 fi
27978
27979 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
27980
27981 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27982
27983 fi
27984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27985 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27986
27987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27988 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27989 gcc_cv_ld_eh_frame_ciev3=no
27990 if test $in_tree_ld = yes ; then
27991 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 \
27992 && test $in_tree_ld_is_elf = yes; then
27993 gcc_cv_ld_eh_frame_ciev3=yes
27994 fi
27995 elif test x$gcc_cv_ld != x; then
27996 if echo "$ld_ver" | grep GNU > /dev/null; then
27997 gcc_cv_ld_eh_frame_ciev3=yes
27998 if test 0"$ld_date" -lt 20040513; then
27999 if test -n "$ld_date"; then
28000 # If there was date string, but was earlier than 2004-05-13, fail
28001 gcc_cv_ld_eh_frame_ciev3=no
28002 elif test "$ld_vers_major" -lt 2; then
28003 gcc_cv_ld_eh_frame_ciev3=no
28004 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28005 gcc_cv_ld_eh_frame_ciev3=no
28006 fi
28007 fi
28008 else
28009 case "$target" in
28010 *-*-solaris2*)
28011 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28012 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28013 gcc_cv_ld_eh_frame_ciev3=yes
28014 fi
28015 ;;
28016 esac
28017 fi
28018 fi
28019
28020 cat >>confdefs.h <<_ACEOF
28021 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28022 _ACEOF
28023
28024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28025 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28026
28027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28028 $as_echo_n "checking linker position independent executable support... " >&6; }
28029 gcc_cv_ld_pie=no
28030 if test $in_tree_ld = yes ; then
28031 case "$target" in
28032 # Full PIE support on Solaris was only introduced in gld 2.26.
28033 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
28034 *) gcc_gld_pie_min_version=15 ;;
28035 esac
28036 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 \
28037 && test $in_tree_ld_is_elf = yes; then
28038 gcc_cv_ld_pie=yes
28039 fi
28040 elif test x$gcc_cv_ld != x; then
28041 # Check if linker supports -pie option
28042 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
28043 gcc_cv_ld_pie=yes
28044 case "$target" in
28045 *-*-solaris2*)
28046 if echo "$ld_ver" | grep GNU > /dev/null \
28047 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28048 gcc_cv_ld_pie=no
28049 fi
28050 ;;
28051 esac
28052 else
28053 case "$target" in
28054 *-*-solaris2.1[1-9]*)
28055 # Solaris 11.x and Solaris 12 added PIE support.
28056 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28057 gcc_cv_ld_pie=yes
28058 fi
28059 ;;
28060 esac
28061 fi
28062 fi
28063 if test x"$gcc_cv_ld_pie" = xyes; then
28064
28065 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28066
28067 fi
28068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28069 $as_echo "$gcc_cv_ld_pie" >&6; }
28070
28071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28072 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28073 gcc_cv_ld_pie_copyreloc=no
28074 if test $gcc_cv_ld_pie = yes ; then
28075 if test $in_tree_ld = yes ; then
28076 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
28077 gcc_cv_ld_pie_copyreloc=yes
28078 fi
28079 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28080 # Check if linker supports -pie option with copy reloc
28081 case "$target" in
28082 i?86-*-linux* | x86_64-*-linux*)
28083 cat > conftest1.s <<EOF
28084 .globl a_glob
28085 .data
28086 .type a_glob, @object
28087 .size a_glob, 4
28088 a_glob:
28089 .long 2
28090 EOF
28091 cat > conftest2.s <<EOF
28092 .text
28093 .globl main
28094 .type main, @function
28095 main:
28096 movl %eax, a_glob(%rip)
28097 .size main, .-main
28098 .globl ptr
28099 .section .data.rel,"aw",@progbits
28100 .type ptr, @object
28101 ptr:
28102 .quad a_glob
28103 EOF
28104 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28105 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28106 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28107 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28108 gcc_cv_ld_pie_copyreloc=yes
28109 fi
28110 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28111 ;;
28112 esac
28113 fi
28114 fi
28115
28116 cat >>confdefs.h <<_ACEOF
28117 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28118 _ACEOF
28119
28120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28121 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28122
28123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28124 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28125 gcc_cv_ld_eh_gc_sections=no
28126 if test $in_tree_ld = yes ; then
28127 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 \
28128 && test $in_tree_ld_is_elf = yes; then
28129 gcc_cv_ld_eh_gc_sections=yes
28130 fi
28131 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28132 cat > conftest.s <<EOF
28133 .section .text
28134 .globl _start
28135 .type _start, @function
28136 _start:
28137 .long foo
28138 .size _start, .-_start
28139 .section .text.foo,"ax",@progbits
28140 .type foo, @function
28141 foo:
28142 .long 0
28143 .size foo, .-foo
28144 .section .gcc_except_table.foo,"a",@progbits
28145 .L0:
28146 .long 0
28147 .section .eh_frame,"a",@progbits
28148 .long .L0
28149 EOF
28150 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28151 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28152 | grep "gc-sections option ignored" > /dev/null; then
28153 gcc_cv_ld_eh_gc_sections=no
28154 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28155 | grep gcc_except_table > /dev/null; then
28156 gcc_cv_ld_eh_gc_sections=yes
28157 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28158 if test x$gcc_cv_as_comdat_group != xyes; then
28159 gcc_cv_ld_eh_gc_sections=no
28160 cat > conftest.s <<EOF
28161 .section .text
28162 .globl _start
28163 .type _start, @function
28164 _start:
28165 .long foo
28166 .size _start, .-_start
28167 .section .gnu.linkonce.t.foo,"ax",@progbits
28168 .type foo, @function
28169 foo:
28170 .long 0
28171 .size foo, .-foo
28172 .section .gcc_except_table.foo,"a",@progbits
28173 .L0:
28174 .long 0
28175 .section .eh_frame,"a",@progbits
28176 .long .L0
28177 EOF
28178 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28179 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28180 | grep "gc-sections option ignored" > /dev/null; then
28181 gcc_cv_ld_eh_gc_sections=no
28182 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28183 | grep gcc_except_table > /dev/null; then
28184 gcc_cv_ld_eh_gc_sections=yes
28185 fi
28186 fi
28187 fi
28188 fi
28189 fi
28190 rm -f conftest.s conftest.o conftest
28191 fi
28192 case "$target" in
28193 hppa*-*-linux*)
28194 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28195 gcc_cv_ld_eh_gc_sections=no
28196 ;;
28197 esac
28198 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28199
28200 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28201
28202 fi
28203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28204 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28205
28206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28207 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28208 gcc_cv_ld_eh_gc_sections_bug=no
28209 if test $in_tree_ld = yes ; then
28210 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 \
28211 && test $in_tree_ld_is_elf = yes; then
28212 gcc_cv_ld_eh_gc_sections_bug=yes
28213 fi
28214 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
28215 gcc_cv_ld_eh_gc_sections_bug=yes
28216 cat > conftest.s <<EOF
28217 .section .text
28218 .globl _start
28219 .type _start, @function
28220 _start:
28221 .long foo
28222 .size _start, .-_start
28223 .section .text.startup.foo,"ax",@progbits
28224 .type foo, @function
28225 foo:
28226 .long 0
28227 .size foo, .-foo
28228 .section .gcc_except_table.foo,"a",@progbits
28229 .L0:
28230 .long 0
28231 .section .eh_frame,"a",@progbits
28232 .long .L0
28233 EOF
28234 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28235 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28236 | grep "gc-sections option ignored" > /dev/null; then
28237 :
28238 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28239 | grep gcc_except_table > /dev/null; then
28240 gcc_cv_ld_eh_gc_sections_bug=no
28241 fi
28242 fi
28243 rm -f conftest.s conftest.o conftest
28244 fi
28245 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28246
28247 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28248
28249 fi
28250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28251 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28252
28253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28254 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28255 # gold/gld support compressed debug sections since binutils 2.19/2.21
28256 # In binutils 2.26, gld gained support for the ELF gABI format.
28257 if test $in_tree_ld = yes ; then
28258 gcc_cv_ld_compress_debug=0
28259 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 \
28260 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28261 gcc_cv_ld_compress_debug=2
28262 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28263 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 \
28264 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
28265 gcc_cv_ld_compress_debug=3
28266 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28267 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 \
28268 && test $in_tree_ld_is_elf = yes; then
28269 gcc_cv_ld_compress_debug=1
28270 fi
28271 elif echo "$ld_ver" | grep GNU > /dev/null; then
28272 if test "$ld_vers_major" -lt 2 \
28273 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28274 gcc_cv_ld_compress_debug=0
28275 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28276 gcc_cv_ld_compress_debug=1
28277 else
28278 gcc_cv_ld_compress_debug=3
28279 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28280 fi
28281 if test $ld_is_gold = yes; then
28282 gcc_cv_ld_compress_debug=2
28283 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28284 fi
28285 else
28286 case "${target}" in
28287 *-*-solaris2*)
28288 # Introduced in Solaris 11.2.
28289 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28290 gcc_cv_ld_compress_debug=3
28291 gcc_cv_ld_compress_debug_option="-z compress-sections"
28292 else
28293 gcc_cv_ld_compress_debug=0
28294 fi
28295 ;;
28296 *)
28297 # Assume linkers other than GNU ld don't support compessed debug
28298 # sections.
28299 gcc_cv_ld_compress_debug=0
28300 ;;
28301 esac
28302 fi
28303
28304 cat >>confdefs.h <<_ACEOF
28305 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28306 _ACEOF
28307
28308
28309 cat >>confdefs.h <<_ACEOF
28310 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28311 _ACEOF
28312
28313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28314 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28315
28316 if test x"$ld64_flag" = x"yes"; then
28317
28318 # Set defaults for possibly untestable items.
28319 gcc_cv_ld64_export_dynamic=0
28320
28321 if test "$build" = "$host"; then
28322 darwin_try_test=1
28323 else
28324 darwin_try_test=0
28325 fi
28326
28327 # On Darwin, because of FAT library support, it is often possible to execute
28328 # exes from compatible archs even when the host differs from the build system.
28329 case "$build","$host" in
28330 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
28331 darwin_try_test=1;;
28332 *) ;;
28333 esac
28334
28335 # If the configurer specified a minimum ld64 version to be supported, then use
28336 # that to determine feature support.
28337 if test x"${gcc_cv_ld64_version}" != x; then
28338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28339 $as_echo_n "checking ld64 specified version... " >&6; }
28340 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28342 $as_echo "$gcc_cv_ld64_major" >&6; }
28343 if test "$gcc_cv_ld64_major" -ge 236; then
28344 gcc_cv_ld64_export_dynamic=1
28345 fi
28346 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28347 # If the version was not specified, try to find it.
28348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28349 $as_echo_n "checking linker version... " >&6; }
28350 if test x"${gcc_cv_ld64_version}" = x; then
28351 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28352 fi
28353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28354 $as_echo "$gcc_cv_ld64_version" >&6; }
28355
28356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28357 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28358 gcc_cv_ld64_export_dynamic=1
28359 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
28360 gcc_cv_ld64_export_dynamic=0
28361 fi
28362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28363 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28364 fi
28365
28366 if test x"${gcc_cv_ld64_version}" != x; then
28367
28368 cat >>confdefs.h <<_ACEOF
28369 #define LD64_VERSION "${gcc_cv_ld64_version}"
28370 _ACEOF
28371
28372 fi
28373
28374
28375 cat >>confdefs.h <<_ACEOF
28376 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28377 _ACEOF
28378
28379 fi
28380
28381 # --------
28382 # UNSORTED
28383 # --------
28384
28385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28386 $as_echo_n "checking linker --as-needed support... " >&6; }
28387 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28388 $as_echo_n "(cached) " >&6
28389 else
28390 gcc_cv_ld_as_needed=no
28391 gcc_cv_ld_as_needed_option='--as-needed'
28392 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28393 if test $in_tree_ld = yes ; then
28394 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 \
28395 && test $in_tree_ld_is_elf = yes; then
28396 gcc_cv_ld_as_needed=yes
28397 fi
28398 elif test x$gcc_cv_ld != x; then
28399 # Check if linker supports --as-needed and --no-as-needed options
28400 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
28401 gcc_cv_ld_as_needed=yes
28402 else
28403 case "$target" in
28404 # Solaris 2 ld always supports -z ignore/-z record.
28405 *-*-solaris2*)
28406 gcc_cv_ld_as_needed=yes
28407 gcc_cv_ld_as_needed_option="-z ignore"
28408 gcc_cv_ld_no_as_needed_option="-z record"
28409 ;;
28410 esac
28411 fi
28412 fi
28413 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28414 # dl_iterate_phdr, i.e. since Solaris 11.
28415 case "$target" in
28416 *-*-solaris2.1[1-9]*)
28417 case "$target" in
28418 i?86-*-* | x86_64-*-*)
28419 if echo "$ld_ver" | grep GNU > /dev/null; then
28420 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28421 gcc_cv_ld_as_needed=no
28422 fi
28423 ;;
28424 esac
28425 ;;
28426 *-*-solaris2*)
28427 gcc_cv_ld_as_needed=no
28428 ;;
28429 esac
28430
28431 fi
28432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28433 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28434 if test x"$gcc_cv_ld_as_needed" = xyes; then
28435
28436 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28437
28438
28439 cat >>confdefs.h <<_ACEOF
28440 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28441 _ACEOF
28442
28443
28444 cat >>confdefs.h <<_ACEOF
28445 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28446 _ACEOF
28447
28448 fi
28449
28450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28451 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28452 saved_LDFLAGS="$LDFLAGS"
28453 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28454 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28456 /* end confdefs.h. */
28457 int main(void) {return 0;}
28458 _ACEOF
28459 if ac_fn_cxx_try_link "$LINENO"; then :
28460 gcc_cv_ld_clearcap=yes; break
28461 else
28462 gcc_cv_ld_clearcap=no
28463 fi
28464 rm -f core conftest.err conftest.$ac_objext \
28465 conftest$ac_exeext conftest.$ac_ext
28466 done
28467 LDFLAGS="$saved_LDFLAGS"
28468 if test "x$gcc_cv_ld_clearcap" = xyes; then
28469
28470 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28471
28472 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28473
28474 fi
28475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28476 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28477
28478 case "$target" in
28479 powerpc*-*-*)
28480 case "$target" in
28481 *le-*-linux*)
28482 emul_name="-melf32lppc"
28483 ;;
28484 *)
28485 emul_name="-melf32ppc"
28486 ;;
28487 esac
28488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28489 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28490 if test "${gcc_cv_ld_ppc_attr+set}" = set; then :
28491 $as_echo_n "(cached) " >&6
28492 else
28493 gcc_cv_ld_ppc_attr=no
28494 if test x"$ld_is_gold" = xyes; then
28495 gcc_cv_ld_ppc_attr=yes
28496 elif test $in_tree_ld = yes ; then
28497 if test "$gcc_cv_gld_major_version" -eq 2 \
28498 -a "$gcc_cv_gld_minor_version" -ge 28 \
28499 -o "$gcc_cv_gld_major_version" -gt 2; then
28500 gcc_cv_ld_ppc_attr=yes
28501 fi
28502 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28503 # check that merging the long double .gnu_attribute doesn't warn
28504 cat > conftest1.s <<EOF
28505 .gnu_attribute 4,1
28506 EOF
28507 cat > conftest2.s <<EOF
28508 .gnu_attribute 4,9
28509 EOF
28510 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28511 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28512 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
28513 && test ! -s conftest.err; then
28514 gcc_cv_ld_ppc_attr=yes
28515 fi
28516 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28517 fi
28518
28519 fi
28520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28521 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28522 if test x$gcc_cv_ld_ppc_attr = xyes; then
28523
28524 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28525
28526 fi
28527 ;;
28528 esac
28529
28530 case "$target:$tm_file" in
28531 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28532 case "$target" in
28533 *le-*-linux*)
28534 emul_name="-melf64lppc"
28535 ;;
28536 *-*-linux*)
28537 emul_name="-melf64ppc"
28538 ;;
28539 *-*-freebsd*)
28540 emul_name="-melf64ppc_fbsd"
28541 ;;
28542 esac
28543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28544 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28545 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28546 $as_echo_n "(cached) " >&6
28547 else
28548 gcc_cv_ld_no_dot_syms=no
28549 if test x"$ld_is_gold" = xyes; then
28550 gcc_cv_ld_no_dot_syms=yes
28551 elif test $in_tree_ld = yes ; then
28552 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
28553 gcc_cv_ld_no_dot_syms=yes
28554 fi
28555 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28556 cat > conftest1.s <<EOF
28557 .text
28558 bl .foo
28559 EOF
28560 cat > conftest2.s <<EOF
28561 .section ".opd","aw"
28562 .align 3
28563 .globl foo
28564 .type foo,@function
28565 foo:
28566 .quad .LEfoo,.TOC.@tocbase,0
28567 .text
28568 .LEfoo:
28569 blr
28570 .size foo,.-.LEfoo
28571 EOF
28572 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28573 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28574 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28575 gcc_cv_ld_no_dot_syms=yes
28576 fi
28577 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28578 fi
28579
28580 fi
28581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28582 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28583 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28584
28585 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28586
28587 fi
28588
28589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28590 $as_echo_n "checking linker large toc support... " >&6; }
28591 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28592 $as_echo_n "(cached) " >&6
28593 else
28594 gcc_cv_ld_large_toc=no
28595 if test x"$ld_is_gold" = xyes; then
28596 gcc_cv_ld_large_toc=yes
28597 elif test $in_tree_ld = yes ; then
28598 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
28599 gcc_cv_ld_large_toc=yes
28600 fi
28601 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28602 cat > conftest.s <<EOF
28603 .section ".tbss","awT",@nobits
28604 .align 3
28605 ie0: .space 8
28606 .global _start
28607 .text
28608 _start:
28609 addis 9,13,ie0@got@tprel@ha
28610 ld 9,ie0@got@tprel@l(9)
28611 EOF
28612 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28613 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28614 gcc_cv_ld_large_toc=yes
28615 fi
28616 rm -f conftest conftest.o conftest.s
28617 fi
28618
28619 fi
28620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28621 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28622 if test x"$gcc_cv_ld_large_toc" = xyes; then
28623
28624 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28625
28626 fi
28627
28628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28629 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28630 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28631 $as_echo_n "(cached) " >&6
28632 else
28633 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28634 cat > conftest.s <<EOF
28635 .global _start
28636 .text
28637 _start:
28638 addis 9,2,x@got@ha
28639 .section .data.rel.ro,"aw",@progbits
28640 .p2align 16
28641 .space 32768
28642 x: .quad .TOC.
28643 EOF
28644 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28645 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
28646 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)) }'`
28647 fi
28648 rm -f conftest conftest.o conftest.s
28649 fi
28650
28651 fi
28652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28653 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28654 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28655
28656 cat >>confdefs.h <<_ACEOF
28657 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28658 _ACEOF
28659
28660 fi
28661 ;;
28662 esac
28663
28664 case "$target" in
28665 *-*-aix*)
28666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28667 $as_echo_n "checking linker large toc support... " >&6; }
28668 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28669 $as_echo_n "(cached) " >&6
28670 else
28671 gcc_cv_ld_large_toc=no
28672 if test x$gcc_cv_as != x ; then
28673 cat > conftest.s <<EOF
28674 .toc
28675 LC..1:
28676 .tc a[TC],a[RW]
28677 .extern a[RW]
28678 .csect .text[PR]
28679 .largetoctest:
28680 addis 9,LC..1@u(2)
28681 ld 3,LC..1@l(9)
28682 EOF
28683 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
28684 gcc_cv_ld_large_toc=yes
28685 fi
28686 rm -f conftest conftest.o conftest.s
28687 fi
28688
28689 fi
28690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28691 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28692 if test x"$gcc_cv_ld_large_toc" = xyes; then
28693
28694 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28695
28696 fi
28697 ;;
28698 esac
28699
28700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28701 $as_echo_n "checking linker --build-id support... " >&6; }
28702 if test "${gcc_cv_ld_buildid+set}" = set; then :
28703 $as_echo_n "(cached) " >&6
28704 else
28705 gcc_cv_ld_buildid=no
28706 if test $in_tree_ld = yes ; then
28707 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28708 "$gcc_cv_gld_minor_version" -ge 18 -o \
28709 "$gcc_cv_gld_major_version" -gt 2 \
28710 && test $in_tree_ld_is_elf = yes; then
28711 gcc_cv_ld_buildid=yes
28712 fi
28713 elif test x$gcc_cv_ld != x; then
28714 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
28715 gcc_cv_ld_buildid=yes
28716 fi
28717 fi
28718 fi
28719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28720 $as_echo "$gcc_cv_ld_buildid" >&6; }
28721 if test x"$gcc_cv_ld_buildid" = xyes; then
28722
28723 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28724
28725 fi
28726
28727 # Check whether --enable-linker-build-id was given.
28728 if test "${enable_linker_build_id+set}" = set; then :
28729 enableval=$enable_linker_build_id;
28730 else
28731 enable_linker_build_id=no
28732 fi
28733
28734
28735 if test x"$enable_linker_build_id" = xyes; then
28736 if test x"$gcc_cv_ld_buildid" = xyes; then
28737
28738 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28739
28740 else
28741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28742 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28743 fi
28744 fi
28745
28746 # In binutils 2.21, GNU ld gained support for new emulations fully
28747 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28749 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28750 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28751 $as_echo_n "(cached) " >&6
28752 else
28753 gcc_cv_ld_sol2_emulation=no
28754 if test $in_tree_ld = yes ; then
28755 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28756 "$gcc_cv_gld_minor_version" -ge 21 -o \
28757 "$gcc_cv_gld_major_version" -gt 2 \
28758 && test $in_tree_ld_is_elf = yes; then
28759 gcc_cv_ld_sol2_emulation=yes
28760 fi
28761 elif test x$gcc_cv_ld != x; then
28762 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
28763 grep _sol2 > /dev/null; then
28764 gcc_cv_ld_sol2_emulation=yes
28765 fi
28766 fi
28767 fi
28768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28769 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28770 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
28771
28772 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28773
28774 fi
28775
28776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28777 $as_echo_n "checking linker --sysroot support... " >&6; }
28778 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28779 $as_echo_n "(cached) " >&6
28780 else
28781 gcc_cv_ld_sysroot=no
28782 if test $in_tree_ld = yes ; then
28783 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
28784 gcc_cv_ld_sysroot=yes
28785 fi
28786 elif test x$gcc_cv_ld != x; then
28787 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
28788 gcc_cv_ld_sysroot=yes
28789 fi
28790 fi
28791 fi
28792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28793 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28794 if test x"$gcc_cv_ld_sysroot" = xyes; then
28795
28796 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28797
28798 fi
28799
28800 case $target in
28801 *-*-solaris2*)
28802 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28804 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28805 if test "${gcc_cv_solaris_crts+set}" = set; then :
28806 $as_echo_n "(cached) " >&6
28807 else
28808 gcc_cv_solaris_crts=no
28809 if test x$host != x$target; then
28810 if test "x$with_sysroot" = xyes; then
28811 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
28812 else
28813 target_sysroot="${with_sysroot}"
28814 fi
28815 fi
28816 target_libdir="$target_sysroot/usr/lib"
28817 # At the time they were added, gcrt1.o became a symlink for backwards
28818 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28819 case $target in
28820 i?86-*-solaris2* | x86_64-*-solaris2*)
28821 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
28822 ;;
28823 sparc*-*-solaris2*)
28824 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
28825 ;;
28826 esac
28827 fi
28828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28829 $as_echo "$gcc_cv_solaris_crts" >&6; }
28830 ;;
28831 esac
28832 if test x$gcc_cv_solaris_crts = xyes; then
28833
28834 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28835
28836 fi
28837
28838 # Test for stack protector support in target C library.
28839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28840 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28841 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28842 $as_echo_n "(cached) " >&6
28843 else
28844 gcc_cv_libc_provides_ssp=no
28845 case "$target" in
28846 *-*-musl*)
28847 # All versions of musl provide stack protector
28848 gcc_cv_libc_provides_ssp=yes;;
28849 *-*-linux* | *-*-kfreebsd*-gnu)
28850 # glibc 2.4 and later provides __stack_chk_fail and
28851 # either __stack_chk_guard, or TLS access to stack guard canary.
28852
28853 if test $glibc_version_major -gt 2 \
28854 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28855 gcc_cv_libc_provides_ssp=yes
28856 else
28857
28858 if test -f $target_header_dir/features.h \
28859 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28860 $target_header_dir/features.h > /dev/null; then
28861 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28862 $target_header_dir/features.h > /dev/null && \
28863 test -f $target_header_dir/bits/uClibc_config.h && \
28864 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28865 $target_header_dir/bits/uClibc_config.h > /dev/null; then
28866 gcc_cv_libc_provides_ssp=yes
28867 fi
28868 # all versions of Bionic support stack protector
28869 elif test -f $target_header_dir/sys/cdefs.h \
28870 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28871 $target_header_dir/sys/cdefs.h > /dev/null; then
28872 gcc_cv_libc_provides_ssp=yes
28873 fi
28874 fi
28875 ;;
28876 *-*-gnu*)
28877 # Avoid complicated tests (see
28878 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28879 # simply assert that glibc does provide this, which is true for all
28880 # realistically usable GNU/Hurd configurations.
28881 # All supported versions of musl provide it as well
28882 gcc_cv_libc_provides_ssp=yes;;
28883 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
28884 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28885 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
28886 gcc_cv_libc_provides_ssp=yes
28887 else
28888 echo "no __stack_chk_fail on this target"
28889 fi
28890
28891 ;;
28892 *) gcc_cv_libc_provides_ssp=no ;;
28893 esac
28894 fi
28895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28896 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28897
28898 if test x$gcc_cv_libc_provides_ssp = xyes; then
28899
28900 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28901
28902 fi
28903
28904 # Check whether --enable-default-ssp was given.
28905 # Check whether --enable-default-ssp was given.
28906 if test "${enable_default_ssp+set}" = set; then :
28907 enableval=$enable_default_ssp;
28908 if test x$gcc_cv_libc_provides_ssp = xyes; then
28909 case "$target" in
28910 ia64*-*-*) enable_default_ssp=no ;;
28911 *) enable_default_ssp=$enableval ;;
28912 esac
28913 else
28914 enable_default_ssp=no
28915 fi
28916 else
28917 enable_default_ssp=no
28918 fi
28919
28920 if test x$enable_default_ssp = xyes ; then
28921
28922 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28923
28924 fi
28925
28926
28927 # Test for <sys/sdt.h> on the target.
28928
28929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28930 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28931 have_sys_sdt_h=no
28932 if test -f $target_header_dir/sys/sdt.h; then
28933 have_sys_sdt_h=yes
28934
28935 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28936
28937 fi
28938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28939 $as_echo "$have_sys_sdt_h" >&6; }
28940
28941 # Check if TFmode long double should be used by default or not.
28942 # Some glibc targets used DFmode long double, but with glibc 2.4
28943 # and later they can use TFmode.
28944 case "$target" in
28945 powerpc*-*-linux* | \
28946 sparc*-*-linux* | \
28947 s390*-*-linux* | \
28948 alpha*-*-linux*)
28949
28950 # Check whether --with-long-double-128 was given.
28951 if test "${with_long_double_128+set}" = set; then :
28952 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
28953 else
28954
28955 if test $glibc_version_major -gt 2 \
28956 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28957 gcc_cv_target_ldbl128=yes
28958 else
28959
28960 gcc_cv_target_ldbl128=no
28961 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28962 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
28963 && gcc_cv_target_ldbl128=yes
28964
28965 fi
28966 fi
28967
28968 ;;
28969 esac
28970 if test x$gcc_cv_target_ldbl128 = xyes; then
28971
28972 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28973
28974 fi
28975
28976 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
28977 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
28978 gcc_cv_libc_provides_hwcap_in_tcb=no
28979 case "$target" in
28980 powerpc*-*-linux*)
28981
28982 if test $glibc_version_major -gt 2 \
28983 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
28984 gcc_cv_libc_provides_hwcap_in_tcb=yes
28985 fi
28986 ;;
28987 esac
28988 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
28989
28990 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
28991
28992 fi
28993
28994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
28995 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
28996 gcc_cv_target_dl_iterate_phdr=unknown
28997 case "$target" in
28998 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
28999 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
29000 # libdl there, both complicating its use and breaking compatibility
29001 # between Solaris 10 updates.
29002 *-*-solaris2.1[1-9]*)
29003 # <link.h> needs both a dl_iterate_phdr declaration and support for
29004 # compilation with largefile support.
29005 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29006 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29007 gcc_cv_target_dl_iterate_phdr=yes
29008 else
29009 gcc_cv_target_dl_iterate_phdr=no
29010 fi
29011 ;;
29012 *-*-dragonfly* | *-*-freebsd*)
29013 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29014 gcc_cv_target_dl_iterate_phdr=yes
29015 else
29016 gcc_cv_target_dl_iterate_phdr=no
29017 fi
29018 ;;
29019 *-linux-musl*)
29020 gcc_cv_target_dl_iterate_phdr=yes
29021 ;;
29022 esac
29023
29024 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29025
29026 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29027
29028 fi
29029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29030 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29031
29032 # We no longer support different GC mechanisms. Emit an error if
29033 # the user configures with --with-gc.
29034
29035 # Check whether --with-gc was given.
29036 if test "${with_gc+set}" = set; then :
29037 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29038 fi
29039
29040
29041 # Libraries to use on the host. This will normally be set by the top
29042 # level Makefile. Here we simply capture the value for our Makefile.
29043 if test -z "${HOST_LIBS+set}"; then
29044 HOST_LIBS=
29045 fi
29046
29047
29048 # Use the system's zlib library.
29049
29050 # Use the system's zlib library.
29051 zlibdir="-L\$(top_builddir)/../zlib"
29052 zlibinc="-I\$(top_srcdir)/../zlib"
29053
29054 # Check whether --with-system-zlib was given.
29055 if test "${with_system_zlib+set}" = set; then :
29056 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
29057 zlibdir=
29058 zlibinc=
29059 fi
29060
29061 fi
29062
29063
29064
29065
29066
29067
29068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29069 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29070 # Check whether --enable-maintainer-mode was given.
29071 if test "${enable_maintainer_mode+set}" = set; then :
29072 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
29073 else
29074 maintainer_mode=no
29075 fi
29076
29077
29078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29079 $as_echo "$maintainer_mode" >&6; }
29080
29081 if test "$maintainer_mode" = "yes"; then
29082 MAINT=''
29083 else
29084 MAINT='#'
29085 fi
29086
29087
29088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29089 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29090 # Check whether --enable-link-mutex was given.
29091 if test "${enable_link_mutex+set}" = set; then :
29092 enableval=$enable_link_mutex; do_link_mutex=$enableval
29093 else
29094 do_link_mutex=no
29095 fi
29096
29097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29098 $as_echo "$do_link_mutex" >&6; }
29099
29100 if test "$do_link_mutex" = "yes"; then
29101 DO_LINK_MUTEX=true
29102 else
29103 DO_LINK_MUTEX=false
29104 fi
29105
29106
29107 # --------------
29108 # Language hooks
29109 # --------------
29110
29111 # Make empty files to contain the specs and options for each language.
29112 # Then add #include lines to for a compiler that has specs and/or options.
29113
29114 subdirs=
29115 lang_opt_files=
29116 lang_specs_files=
29117 lang_tree_files=
29118 # These (without "all_") are set in each config-lang.in.
29119 # `language' must be a single word so is spelled singularly.
29120 all_languages=
29121 all_compilers=
29122 all_outputs='Makefile'
29123 # List of language makefile fragments.
29124 all_lang_makefrags=
29125 # Additional files for gengtype
29126 all_gtfiles="$target_gtfiles"
29127
29128 # These are the languages that are set in --enable-languages,
29129 # and are available in the GCC tree.
29130 all_selected_languages=
29131
29132 # Add the language fragments.
29133 # Languages are added via two mechanisms. Some information must be
29134 # recorded in makefile variables, these are defined in config-lang.in.
29135 # We accumulate them and plug them into the main Makefile.
29136 # The other mechanism is a set of hooks for each of the main targets
29137 # like `clean', `install', etc.
29138
29139 language_hooks="Make-hooks"
29140
29141 for lang in ${srcdir}/*/config-lang.in
29142 do
29143 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29144
29145 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29146 if test "x$lang_alias" = x
29147 then
29148 echo "$lang doesn't set \$language." 1>&2
29149 exit 1
29150 fi
29151 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29152 subdirs="$subdirs $subdir"
29153
29154 # $gcc_subdir is where the gcc integration files are to be found
29155 # for a language, both for internal compiler purposes (compiler
29156 # sources implementing front-end to GCC tree converters), and for
29157 # build infrastructure purposes (Make-lang.in, etc.)
29158 #
29159 # This will be <subdir> (relative to $srcdir) if a line like
29160 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29161 # is found in <langdir>/config-lang.in, and will remain <langdir>
29162 # otherwise.
29163 #
29164 # Except for the language alias (fetched above), the regular
29165 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29166 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29167 # only this and the language alias.
29168
29169 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29170 if [ "$gcc_subdir" = "" ]; then
29171 gcc_subdir="$subdir"
29172 fi
29173
29174 case ",$enable_languages," in
29175 *,$lang_alias,*)
29176 all_selected_languages="$all_selected_languages $lang_alias"
29177 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
29178 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29179 fi
29180 ;;
29181 esac
29182
29183 language=
29184 boot_language=
29185 compilers=
29186 outputs=
29187 gtfiles=
29188 subdir_requires=
29189 . ${srcdir}/$gcc_subdir/config-lang.in
29190 if test "x$language" = x
29191 then
29192 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29193 exit 1
29194 fi
29195
29196 ok=:
29197 case ",$enable_languages," in
29198 *,$lang_alias,*) ;;
29199 *)
29200 for i in $subdir_requires; do
29201 test -f "${srcdir}/$i/config-lang.in" && continue
29202 ok=false
29203 break
29204 done
29205 ;;
29206 esac
29207 $ok || continue
29208
29209 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29210 if test -f $srcdir/$gcc_subdir/lang.opt; then
29211 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29212 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29213 fi
29214 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
29215 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29216 fi
29217 all_languages="$all_languages $language"
29218 all_compilers="$all_compilers $compilers"
29219 all_outputs="$all_outputs $outputs"
29220 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
29221 case ",$enable_languages," in
29222 *,lto,*)
29223
29224 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29225
29226 enable_lto=yes
29227
29228 ;;
29229 *) ;;
29230 esac
29231 done
29232
29233 check_languages=
29234 for language in $all_selected_languages
29235 do
29236 check_languages="$check_languages check-$language"
29237 done
29238
29239 # We link each language in with a set of hooks, reached indirectly via
29240 # lang.${target}. Only do so for selected languages.
29241
29242 rm -f Make-hooks
29243 touch Make-hooks
29244 target_list="all.cross start.encap rest.encap tags \
29245 install-common install-man install-info install-pdf install-html dvi \
29246 pdf html uninstall info man srcextra srcman srcinfo \
29247 mostlyclean clean distclean maintainer-clean install-plugin"
29248
29249 for t in $target_list
29250 do
29251 x=
29252 for lang in $all_selected_languages
29253 do
29254 x="$x $lang.$t"
29255 done
29256 echo "lang.$t: $x" >> Make-hooks
29257 done
29258
29259 # --------
29260 # Option include files
29261 # --------
29262
29263 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
29264 option_includes="option-includes.mk"
29265
29266
29267 # --------
29268 # UNSORTED
29269 # --------
29270
29271 # Create .gdbinit.
29272
29273 echo "dir ." > .gdbinit
29274 echo "dir ${srcdir}" >> .gdbinit
29275 if test x$gdb_needs_out_file_path = xyes
29276 then
29277 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29278 fi
29279 if test "x$subdirs" != x; then
29280 for s in $subdirs
29281 do
29282 echo "dir ${srcdir}/$s" >> .gdbinit
29283 done
29284 fi
29285 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29286 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29287
29288 # Put a breakpoint on __asan_report_error to help with debugging buffer
29289 # overflow.
29290 case "$CFLAGS" in
29291 *-fsanitize=address*)
29292 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29293 ;;
29294 esac
29295
29296 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29297
29298
29299
29300 # Find a directory in which to install a shared libgcc.
29301
29302 # Check whether --enable-version-specific-runtime-libs was given.
29303 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29304 enableval=$enable_version_specific_runtime_libs;
29305 fi
29306
29307
29308 # Substitute configuration variables
29309
29310
29311
29312
29313
29314
29315
29316
29317
29318
29319
29320
29321
29322
29323
29324
29325
29326
29327
29328
29329
29330
29331
29332
29333
29334
29335
29336
29337
29338
29339
29340
29341
29342
29343
29344
29345
29346
29347
29348
29349
29350
29351
29352
29353
29354
29355
29356
29357
29358
29359
29360
29361
29362
29363
29364
29365
29366
29367
29368
29369
29370
29371 # Echo link setup.
29372 if test x${build} = x${host} ; then
29373 if test x${host} = x${target} ; then
29374 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29375 else
29376 echo "Links are now set up to build a cross-compiler" 1>&2
29377 echo " from ${host} to ${target}." 1>&2
29378 fi
29379 else
29380 if test x${host} = x${target} ; then
29381 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29382 echo " for ${target}." 1>&2
29383 else
29384 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29385 echo " from ${host} to ${target}." 1>&2
29386 fi
29387 fi
29388
29389
29390
29391
29392
29393
29394 if test "x${ISLLIBS}" != "x" ; then
29395
29396 $as_echo "#define HAVE_isl 1" >>confdefs.h
29397
29398 fi
29399
29400 # Check whether isl_options_set_schedule_serialize_sccs is available;
29401 # it's new in isl 0.15.
29402 if test "x${ISLLIBS}" != "x" ; then
29403 saved_CXXFLAGS="$CXXFLAGS"
29404 CXXFLAGS="$CXXFLAGS $ISLINC $GMPINC"
29405 saved_LIBS="$LIBS"
29406 LIBS="$LIBS $ISLLIBS $GMPLIBS"
29407
29408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
29409 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
29410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29411 /* end confdefs.h. */
29412 #include <isl/schedule.h>
29413 int
29414 main ()
29415 {
29416 isl_options_set_schedule_serialize_sccs (NULL, 0);
29417 ;
29418 return 0;
29419 }
29420 _ACEOF
29421 if ac_fn_cxx_try_link "$LINENO"; then :
29422 ac_has_isl_options_set_schedule_serialize_sccs=yes
29423 else
29424 ac_has_isl_options_set_schedule_serialize_sccs=no
29425 fi
29426 rm -f core conftest.err conftest.$ac_objext \
29427 conftest$ac_exeext conftest.$ac_ext
29428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
29429 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
29430
29431 LIBS="$saved_LIBS"
29432 CXXFLAGS="$saved_CXXFLAGS"
29433
29434 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
29435
29436 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
29437
29438 fi
29439 fi
29440
29441 # Check for plugin support
29442 # Check whether --enable-plugin was given.
29443 if test "${enable_plugin+set}" = set; then :
29444 enableval=$enable_plugin; enable_plugin=$enableval
29445 else
29446 enable_plugin=yes; default_plugin=yes
29447 fi
29448
29449
29450 pluginlibs=
29451
29452 case "${host}" in
29453 *-*-darwin*)
29454 if test x$build = x$host; then
29455 export_sym_check="nm${exeext} -g"
29456 elif test x$host = x$target; then
29457 export_sym_check="$gcc_cv_nm -g"
29458 else
29459 export_sym_check=
29460 fi
29461 ;;
29462 *)
29463 if test x$build = x$host; then
29464 export_sym_check="objdump${exeext} -T"
29465 elif test x$host = x$target; then
29466 export_sym_check="$gcc_cv_objdump -T"
29467 else
29468 export_sym_check=
29469 fi
29470 ;;
29471 esac
29472
29473 if test x"$enable_plugin" = x"yes"; then
29474
29475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29476 $as_echo_n "checking for exported symbols... " >&6; }
29477 if test "x$export_sym_check" != x; then
29478 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29479 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29480 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29481 : # No need to use a flag
29482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29483 $as_echo "yes" >&6; }
29484 else
29485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29486 $as_echo "yes" >&6; }
29487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29488 $as_echo_n "checking for -rdynamic... " >&6; }
29489 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29490 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29491 plugin_rdynamic=yes
29492 pluginlibs="-rdynamic"
29493 else
29494 plugin_rdynamic=no
29495 enable_plugin=no
29496 fi
29497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29498 $as_echo "$plugin_rdynamic" >&6; }
29499 fi
29500 else
29501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29502 $as_echo "unable to check" >&6; }
29503 fi
29504
29505 # Check -ldl
29506 saved_LIBS="$LIBS"
29507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29508 $as_echo_n "checking for library containing dlopen... " >&6; }
29509 if test "${ac_cv_search_dlopen+set}" = set; then :
29510 $as_echo_n "(cached) " >&6
29511 else
29512 ac_func_search_save_LIBS=$LIBS
29513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29514 /* end confdefs.h. */
29515
29516 /* Override any GCC internal prototype to avoid an error.
29517 Use char because int might match the return type of a GCC
29518 builtin and then its argument prototype would still apply. */
29519 #ifdef __cplusplus
29520 extern "C"
29521 #endif
29522 char dlopen ();
29523 int
29524 main ()
29525 {
29526 return dlopen ();
29527 ;
29528 return 0;
29529 }
29530 _ACEOF
29531 for ac_lib in '' dl; do
29532 if test -z "$ac_lib"; then
29533 ac_res="none required"
29534 else
29535 ac_res=-l$ac_lib
29536 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29537 fi
29538 if ac_fn_cxx_try_link "$LINENO"; then :
29539 ac_cv_search_dlopen=$ac_res
29540 fi
29541 rm -f core conftest.err conftest.$ac_objext \
29542 conftest$ac_exeext
29543 if test "${ac_cv_search_dlopen+set}" = set; then :
29544 break
29545 fi
29546 done
29547 if test "${ac_cv_search_dlopen+set}" = set; then :
29548
29549 else
29550 ac_cv_search_dlopen=no
29551 fi
29552 rm conftest.$ac_ext
29553 LIBS=$ac_func_search_save_LIBS
29554 fi
29555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29556 $as_echo "$ac_cv_search_dlopen" >&6; }
29557 ac_res=$ac_cv_search_dlopen
29558 if test "$ac_res" != no; then :
29559 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29560
29561 fi
29562
29563 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29564 pluginlibs="$pluginlibs -ldl"
29565 fi
29566 LIBS="$saved_LIBS"
29567
29568 # Check that we can build shared objects with -fPIC -shared
29569 saved_LDFLAGS="$LDFLAGS"
29570 saved_CFLAGS="$CFLAGS"
29571 case "${host}" in
29572 *-*-darwin*)
29573 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29574 CFLAGS="$CFLAGS -fPIC"
29575 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29576 ;;
29577 *)
29578 CFLAGS="$CFLAGS -fPIC"
29579 LDFLAGS="$LDFLAGS -fPIC -shared"
29580 ;;
29581 esac
29582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29583 $as_echo_n "checking for -fPIC -shared... " >&6; }
29584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29585 /* end confdefs.h. */
29586 extern int X;
29587 int
29588 main ()
29589 {
29590 return X == 0;
29591 ;
29592 return 0;
29593 }
29594 _ACEOF
29595 if ac_fn_cxx_try_link "$LINENO"; then :
29596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29597 $as_echo "yes" >&6; }; have_pic_shared=yes
29598 else
29599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29600 $as_echo "no" >&6; }; have_pic_shared=no
29601 fi
29602 rm -f core conftest.err conftest.$ac_objext \
29603 conftest$ac_exeext conftest.$ac_ext
29604 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29605 pluginlibs=
29606 enable_plugin=no
29607 fi
29608 LDFLAGS="$saved_LDFLAGS"
29609 CFLAGS="$saved_CFLAGS"
29610
29611 # If plugin support had been requested but not available, fail.
29612 if test x"$enable_plugin" = x"no" ; then
29613 if test x"$default_plugin" != x"yes"; then
29614 as_fn_error "
29615 Building GCC with plugin support requires a host that supports
29616 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29617 fi
29618 fi
29619 fi
29620
29621
29622
29623 if test x"$enable_plugin" = x"yes"; then
29624
29625 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29626
29627 fi
29628
29629
29630 # Enable --enable-host-shared
29631 # Check whether --enable-host-shared was given.
29632 if test "${enable_host_shared+set}" = set; then :
29633 enableval=$enable_host_shared; PICFLAG=-fPIC
29634 else
29635 PICFLAG=
29636 fi
29637
29638
29639
29640
29641
29642 # Check whether --enable-libquadmath-support was given.
29643 if test "${enable_libquadmath_support+set}" = set; then :
29644 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
29645 else
29646 ENABLE_LIBQUADMATH_SUPPORT=yes
29647 fi
29648
29649 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29650
29651 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29652
29653 fi
29654
29655
29656 # Specify what hash style to use by default.
29657
29658 # Check whether --with-linker-hash-style was given.
29659 if test "${with_linker_hash_style+set}" = set; then :
29660 withval=$with_linker_hash_style; case x"$withval" in
29661 xsysv)
29662 LINKER_HASH_STYLE=sysv
29663 ;;
29664 xgnu)
29665 LINKER_HASH_STYLE=gnu
29666 ;;
29667 xboth)
29668 LINKER_HASH_STYLE=both
29669 ;;
29670 *)
29671 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29672 ;;
29673 esac
29674 else
29675 LINKER_HASH_STYLE=''
29676 fi
29677
29678 if test x"${LINKER_HASH_STYLE}" != x; then
29679
29680 cat >>confdefs.h <<_ACEOF
29681 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29682 _ACEOF
29683
29684 fi
29685
29686 # Specify what should be the default of -fdiagnostics-color option.
29687
29688 # Check whether --with-diagnostics-color was given.
29689 if test "${with_diagnostics_color+set}" = set; then :
29690 withval=$with_diagnostics_color; case x"$withval" in
29691 xnever)
29692 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
29693 ;;
29694 xauto)
29695 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29696 ;;
29697 xauto-if-env)
29698 DIAGNOSTICS_COLOR_DEFAULT=-1
29699 ;;
29700 xalways)
29701 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
29702 ;;
29703 *)
29704 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29705 ;;
29706 esac
29707 else
29708 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29709 fi
29710
29711
29712 cat >>confdefs.h <<_ACEOF
29713 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29714 _ACEOF
29715
29716
29717 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29718 # of jit/jit-playback.c.
29719 cat > gcc-driver-name.h <<EOF
29720 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29721 EOF
29722
29723 # Check whether --enable-default-pie was given.
29724 # Check whether --enable-default-pie was given.
29725 if test "${enable_default_pie+set}" = set; then :
29726 enableval=$enable_default_pie; enable_default_pie=$enableval
29727 else
29728 enable_default_pie=no
29729 fi
29730
29731 if test x$enable_default_pie = xyes ; then
29732
29733 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29734
29735 fi
29736
29737
29738 # Check if -fno-PIE works.
29739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29740 $as_echo_n "checking for -fno-PIE option... " >&6; }
29741 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29742 $as_echo_n "(cached) " >&6
29743 else
29744 saved_CXXFLAGS="$CXXFLAGS"
29745 CXXFLAGS="$CXXFLAGS -fno-PIE"
29746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29747 /* end confdefs.h. */
29748 int main(void) {return 0;}
29749 _ACEOF
29750 if ac_fn_cxx_try_compile "$LINENO"; then :
29751 gcc_cv_c_no_fpie=yes
29752 else
29753 gcc_cv_c_no_fpie=no
29754 fi
29755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29756 CXXFLAGS="$saved_CXXFLAGS"
29757 fi
29758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29759 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29760 if test "$gcc_cv_c_no_fpie" = "yes"; then
29761 NO_PIE_CFLAGS="-fno-PIE"
29762 fi
29763
29764
29765 # Check if -no-pie works.
29766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29767 $as_echo_n "checking for -no-pie option... " >&6; }
29768 if test "${gcc_cv_no_pie+set}" = set; then :
29769 $as_echo_n "(cached) " >&6
29770 else
29771 saved_LDFLAGS="$LDFLAGS"
29772 LDFLAGS="$LDFLAGS -no-pie"
29773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29774 /* end confdefs.h. */
29775 int main(void) {return 0;}
29776 _ACEOF
29777 if ac_fn_cxx_try_link "$LINENO"; then :
29778 gcc_cv_no_pie=yes
29779 else
29780 gcc_cv_no_pie=no
29781 fi
29782 rm -f core conftest.err conftest.$ac_objext \
29783 conftest$ac_exeext conftest.$ac_ext
29784 LDFLAGS="$saved_LDFLAGS"
29785 fi
29786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29787 $as_echo "$gcc_cv_no_pie" >&6; }
29788 if test "$gcc_cv_no_pie" = "yes"; then
29789 NO_PIE_FLAG="-no-pie"
29790 fi
29791
29792
29793 # Check linker supports '-z bndplt'
29794 ld_bndplt_support=no
29795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29796 $as_echo_n "checking linker -z bndplt option... " >&6; }
29797 if test x"$ld_is_gold" = xno; then
29798 if test $in_tree_ld = yes ; then
29799 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
29800 ld_bndplt_support=yes
29801 fi
29802 elif test x$gcc_cv_ld != x; then
29803 # Check if linker supports -a bndplt option
29804 if $gcc_cv_ld --help 2>/dev/null | grep -- '-z bndplt' > /dev/null; then
29805 ld_bndplt_support=yes
29806 fi
29807 fi
29808 fi
29809 if test x"$ld_bndplt_support" = xyes; then
29810
29811 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29812
29813 fi
29814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29815 $as_echo "$ld_bndplt_support" >&6; }
29816
29817 # Check linker supports '--push-state'/'--pop-state'
29818 ld_pushpopstate_support=no
29819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
29820 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
29821 if test x"$ld_is_gold" = xno; then
29822 if test $in_tree_ld = yes ; then
29823 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
29824 ld_pushpopstate_support=yes
29825 fi
29826 elif test x$gcc_cv_ld != x; then
29827 # Check if linker supports --push-state/--pop-state options
29828 if $gcc_cv_ld --help 2>/dev/null | grep -- '--push-state' > /dev/null; then
29829 ld_pushpopstate_support=yes
29830 fi
29831 fi
29832 fi
29833 if test x"$ld_pushpopstate_support" = xyes; then
29834
29835 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
29836
29837 fi
29838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
29839 $as_echo "$ld_pushpopstate_support" >&6; }
29840
29841 # Configure the subdirectories
29842 # AC_CONFIG_SUBDIRS($subdirs)
29843
29844 # Create the Makefile
29845 # and configure language subdirectories
29846 ac_config_files="$ac_config_files $all_outputs"
29847
29848
29849 ac_config_commands="$ac_config_commands default"
29850
29851 cat >confcache <<\_ACEOF
29852 # This file is a shell script that caches the results of configure
29853 # tests run on this system so they can be shared between configure
29854 # scripts and configure runs, see configure's option --config-cache.
29855 # It is not useful on other systems. If it contains results you don't
29856 # want to keep, you may remove or edit it.
29857 #
29858 # config.status only pays attention to the cache file if you give it
29859 # the --recheck option to rerun configure.
29860 #
29861 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29862 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29863 # following values.
29864
29865 _ACEOF
29866
29867 # The following way of writing the cache mishandles newlines in values,
29868 # but we know of no workaround that is simple, portable, and efficient.
29869 # So, we kill variables containing newlines.
29870 # Ultrix sh set writes to stderr and can't be redirected directly,
29871 # and sets the high bit in the cache file unless we assign to the vars.
29872 (
29873 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29874 eval ac_val=\$$ac_var
29875 case $ac_val in #(
29876 *${as_nl}*)
29877 case $ac_var in #(
29878 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29879 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29880 esac
29881 case $ac_var in #(
29882 _ | IFS | as_nl) ;; #(
29883 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29884 *) { eval $ac_var=; unset $ac_var;} ;;
29885 esac ;;
29886 esac
29887 done
29888
29889 (set) 2>&1 |
29890 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29891 *${as_nl}ac_space=\ *)
29892 # `set' does not quote correctly, so add quotes: double-quote
29893 # substitution turns \\\\ into \\, and sed turns \\ into \.
29894 sed -n \
29895 "s/'/'\\\\''/g;
29896 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29897 ;; #(
29898 *)
29899 # `set' quotes correctly as required by POSIX, so do not add quotes.
29900 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29901 ;;
29902 esac |
29903 sort
29904 ) |
29905 sed '
29906 /^ac_cv_env_/b end
29907 t clear
29908 :clear
29909 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29910 t end
29911 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29912 :end' >>confcache
29913 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29914 if test -w "$cache_file"; then
29915 test "x$cache_file" != "x/dev/null" &&
29916 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29917 $as_echo "$as_me: updating cache $cache_file" >&6;}
29918 cat confcache >$cache_file
29919 else
29920 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29921 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29922 fi
29923 fi
29924 rm -f confcache
29925
29926 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29927 # Let make expand exec_prefix.
29928 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29929
29930 DEFS=-DHAVE_CONFIG_H
29931
29932 ac_libobjs=
29933 ac_ltlibobjs=
29934 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29935 # 1. Remove the extension, and $U if already installed.
29936 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29937 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29938 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29939 # will be set to the directory where LIBOBJS objects are built.
29940 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29941 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29942 done
29943 LIBOBJS=$ac_libobjs
29944
29945 LTLIBOBJS=$ac_ltlibobjs
29946
29947
29948
29949
29950 : ${CONFIG_STATUS=./config.status}
29951 ac_write_fail=0
29952 ac_clean_files_save=$ac_clean_files
29953 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29954 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29955 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29956 as_write_fail=0
29957 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29958 #! $SHELL
29959 # Generated by $as_me.
29960 # Run this file to recreate the current configuration.
29961 # Compiler output produced by configure, useful for debugging
29962 # configure, is in config.log if it exists.
29963
29964 debug=false
29965 ac_cs_recheck=false
29966 ac_cs_silent=false
29967
29968 SHELL=\${CONFIG_SHELL-$SHELL}
29969 export SHELL
29970 _ASEOF
29971 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29972 ## -------------------- ##
29973 ## M4sh Initialization. ##
29974 ## -------------------- ##
29975
29976 # Be more Bourne compatible
29977 DUALCASE=1; export DUALCASE # for MKS sh
29978 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29979 emulate sh
29980 NULLCMD=:
29981 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29982 # is contrary to our usage. Disable this feature.
29983 alias -g '${1+"$@"}'='"$@"'
29984 setopt NO_GLOB_SUBST
29985 else
29986 case `(set -o) 2>/dev/null` in #(
29987 *posix*) :
29988 set -o posix ;; #(
29989 *) :
29990 ;;
29991 esac
29992 fi
29993
29994
29995 as_nl='
29996 '
29997 export as_nl
29998 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29999 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30000 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30001 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30002 # Prefer a ksh shell builtin over an external printf program on Solaris,
30003 # but without wasting forks for bash or zsh.
30004 if test -z "$BASH_VERSION$ZSH_VERSION" \
30005 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30006 as_echo='print -r --'
30007 as_echo_n='print -rn --'
30008 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30009 as_echo='printf %s\n'
30010 as_echo_n='printf %s'
30011 else
30012 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30013 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30014 as_echo_n='/usr/ucb/echo -n'
30015 else
30016 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30017 as_echo_n_body='eval
30018 arg=$1;
30019 case $arg in #(
30020 *"$as_nl"*)
30021 expr "X$arg" : "X\\(.*\\)$as_nl";
30022 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30023 esac;
30024 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30025 '
30026 export as_echo_n_body
30027 as_echo_n='sh -c $as_echo_n_body as_echo'
30028 fi
30029 export as_echo_body
30030 as_echo='sh -c $as_echo_body as_echo'
30031 fi
30032
30033 # The user is always right.
30034 if test "${PATH_SEPARATOR+set}" != set; then
30035 PATH_SEPARATOR=:
30036 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30037 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30038 PATH_SEPARATOR=';'
30039 }
30040 fi
30041
30042
30043 # IFS
30044 # We need space, tab and new line, in precisely that order. Quoting is
30045 # there to prevent editors from complaining about space-tab.
30046 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30047 # splitting by setting IFS to empty value.)
30048 IFS=" "" $as_nl"
30049
30050 # Find who we are. Look in the path if we contain no directory separator.
30051 case $0 in #((
30052 *[\\/]* ) as_myself=$0 ;;
30053 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30054 for as_dir in $PATH
30055 do
30056 IFS=$as_save_IFS
30057 test -z "$as_dir" && as_dir=.
30058 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30059 done
30060 IFS=$as_save_IFS
30061
30062 ;;
30063 esac
30064 # We did not find ourselves, most probably we were run as `sh COMMAND'
30065 # in which case we are not to be found in the path.
30066 if test "x$as_myself" = x; then
30067 as_myself=$0
30068 fi
30069 if test ! -f "$as_myself"; then
30070 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30071 exit 1
30072 fi
30073
30074 # Unset variables that we do not need and which cause bugs (e.g. in
30075 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30076 # suppresses any "Segmentation fault" message there. '((' could
30077 # trigger a bug in pdksh 5.2.14.
30078 for as_var in BASH_ENV ENV MAIL MAILPATH
30079 do eval test x\${$as_var+set} = xset \
30080 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30081 done
30082 PS1='$ '
30083 PS2='> '
30084 PS4='+ '
30085
30086 # NLS nuisances.
30087 LC_ALL=C
30088 export LC_ALL
30089 LANGUAGE=C
30090 export LANGUAGE
30091
30092 # CDPATH.
30093 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30094
30095
30096 # as_fn_error ERROR [LINENO LOG_FD]
30097 # ---------------------------------
30098 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30099 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30100 # script with status $?, using 1 if that was 0.
30101 as_fn_error ()
30102 {
30103 as_status=$?; test $as_status -eq 0 && as_status=1
30104 if test "$3"; then
30105 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30106 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30107 fi
30108 $as_echo "$as_me: error: $1" >&2
30109 as_fn_exit $as_status
30110 } # as_fn_error
30111
30112
30113 # as_fn_set_status STATUS
30114 # -----------------------
30115 # Set $? to STATUS, without forking.
30116 as_fn_set_status ()
30117 {
30118 return $1
30119 } # as_fn_set_status
30120
30121 # as_fn_exit STATUS
30122 # -----------------
30123 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30124 as_fn_exit ()
30125 {
30126 set +e
30127 as_fn_set_status $1
30128 exit $1
30129 } # as_fn_exit
30130
30131 # as_fn_unset VAR
30132 # ---------------
30133 # Portably unset VAR.
30134 as_fn_unset ()
30135 {
30136 { eval $1=; unset $1;}
30137 }
30138 as_unset=as_fn_unset
30139 # as_fn_append VAR VALUE
30140 # ----------------------
30141 # Append the text in VALUE to the end of the definition contained in VAR. Take
30142 # advantage of any shell optimizations that allow amortized linear growth over
30143 # repeated appends, instead of the typical quadratic growth present in naive
30144 # implementations.
30145 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30146 eval 'as_fn_append ()
30147 {
30148 eval $1+=\$2
30149 }'
30150 else
30151 as_fn_append ()
30152 {
30153 eval $1=\$$1\$2
30154 }
30155 fi # as_fn_append
30156
30157 # as_fn_arith ARG...
30158 # ------------------
30159 # Perform arithmetic evaluation on the ARGs, and store the result in the
30160 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30161 # must be portable across $(()) and expr.
30162 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30163 eval 'as_fn_arith ()
30164 {
30165 as_val=$(( $* ))
30166 }'
30167 else
30168 as_fn_arith ()
30169 {
30170 as_val=`expr "$@" || test $? -eq 1`
30171 }
30172 fi # as_fn_arith
30173
30174
30175 if expr a : '\(a\)' >/dev/null 2>&1 &&
30176 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30177 as_expr=expr
30178 else
30179 as_expr=false
30180 fi
30181
30182 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30183 as_basename=basename
30184 else
30185 as_basename=false
30186 fi
30187
30188 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30189 as_dirname=dirname
30190 else
30191 as_dirname=false
30192 fi
30193
30194 as_me=`$as_basename -- "$0" ||
30195 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30196 X"$0" : 'X\(//\)$' \| \
30197 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30198 $as_echo X/"$0" |
30199 sed '/^.*\/\([^/][^/]*\)\/*$/{
30200 s//\1/
30201 q
30202 }
30203 /^X\/\(\/\/\)$/{
30204 s//\1/
30205 q
30206 }
30207 /^X\/\(\/\).*/{
30208 s//\1/
30209 q
30210 }
30211 s/.*/./; q'`
30212
30213 # Avoid depending upon Character Ranges.
30214 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30215 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30216 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30217 as_cr_digits='0123456789'
30218 as_cr_alnum=$as_cr_Letters$as_cr_digits
30219
30220 ECHO_C= ECHO_N= ECHO_T=
30221 case `echo -n x` in #(((((
30222 -n*)
30223 case `echo 'xy\c'` in
30224 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30225 xy) ECHO_C='\c';;
30226 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30227 ECHO_T=' ';;
30228 esac;;
30229 *)
30230 ECHO_N='-n';;
30231 esac
30232
30233 rm -f conf$$ conf$$.exe conf$$.file
30234 if test -d conf$$.dir; then
30235 rm -f conf$$.dir/conf$$.file
30236 else
30237 rm -f conf$$.dir
30238 mkdir conf$$.dir 2>/dev/null
30239 fi
30240 if (echo >conf$$.file) 2>/dev/null; then
30241 if ln -s conf$$.file conf$$ 2>/dev/null; then
30242 as_ln_s='ln -s'
30243 # ... but there are two gotchas:
30244 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30245 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30246 # In both cases, we have to default to `cp -p'.
30247 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30248 as_ln_s='cp -p'
30249 elif ln conf$$.file conf$$ 2>/dev/null; then
30250 as_ln_s=ln
30251 else
30252 as_ln_s='cp -p'
30253 fi
30254 else
30255 as_ln_s='cp -p'
30256 fi
30257 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30258 rmdir conf$$.dir 2>/dev/null
30259
30260
30261 # as_fn_mkdir_p
30262 # -------------
30263 # Create "$as_dir" as a directory, including parents if necessary.
30264 as_fn_mkdir_p ()
30265 {
30266
30267 case $as_dir in #(
30268 -*) as_dir=./$as_dir;;
30269 esac
30270 test -d "$as_dir" || eval $as_mkdir_p || {
30271 as_dirs=
30272 while :; do
30273 case $as_dir in #(
30274 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30275 *) as_qdir=$as_dir;;
30276 esac
30277 as_dirs="'$as_qdir' $as_dirs"
30278 as_dir=`$as_dirname -- "$as_dir" ||
30279 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30280 X"$as_dir" : 'X\(//\)[^/]' \| \
30281 X"$as_dir" : 'X\(//\)$' \| \
30282 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30283 $as_echo X"$as_dir" |
30284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30285 s//\1/
30286 q
30287 }
30288 /^X\(\/\/\)[^/].*/{
30289 s//\1/
30290 q
30291 }
30292 /^X\(\/\/\)$/{
30293 s//\1/
30294 q
30295 }
30296 /^X\(\/\).*/{
30297 s//\1/
30298 q
30299 }
30300 s/.*/./; q'`
30301 test -d "$as_dir" && break
30302 done
30303 test -z "$as_dirs" || eval "mkdir $as_dirs"
30304 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30305
30306
30307 } # as_fn_mkdir_p
30308 if mkdir -p . 2>/dev/null; then
30309 as_mkdir_p='mkdir -p "$as_dir"'
30310 else
30311 test -d ./-p && rmdir ./-p
30312 as_mkdir_p=false
30313 fi
30314
30315 if test -x / >/dev/null 2>&1; then
30316 as_test_x='test -x'
30317 else
30318 if ls -dL / >/dev/null 2>&1; then
30319 as_ls_L_option=L
30320 else
30321 as_ls_L_option=
30322 fi
30323 as_test_x='
30324 eval sh -c '\''
30325 if test -d "$1"; then
30326 test -d "$1/.";
30327 else
30328 case $1 in #(
30329 -*)set "./$1";;
30330 esac;
30331 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30332 ???[sx]*):;;*)false;;esac;fi
30333 '\'' sh
30334 '
30335 fi
30336 as_executable_p=$as_test_x
30337
30338 # Sed expression to map a string onto a valid CPP name.
30339 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30340
30341 # Sed expression to map a string onto a valid variable name.
30342 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30343
30344
30345 exec 6>&1
30346 ## ----------------------------------- ##
30347 ## Main body of $CONFIG_STATUS script. ##
30348 ## ----------------------------------- ##
30349 _ASEOF
30350 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30351
30352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30353 # Save the log message, to keep $0 and so on meaningful, and to
30354 # report actual input values of CONFIG_FILES etc. instead of their
30355 # values after options handling.
30356 ac_log="
30357 This file was extended by $as_me, which was
30358 generated by GNU Autoconf 2.64. Invocation command line was
30359
30360 CONFIG_FILES = $CONFIG_FILES
30361 CONFIG_HEADERS = $CONFIG_HEADERS
30362 CONFIG_LINKS = $CONFIG_LINKS
30363 CONFIG_COMMANDS = $CONFIG_COMMANDS
30364 $ $0 $@
30365
30366 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30367 "
30368
30369 _ACEOF
30370
30371 case $ac_config_files in *"
30372 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30373 esac
30374
30375 case $ac_config_headers in *"
30376 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30377 esac
30378
30379
30380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30381 # Files that config.status was made for.
30382 config_files="$ac_config_files"
30383 config_headers="$ac_config_headers"
30384 config_links="$ac_config_links"
30385 config_commands="$ac_config_commands"
30386
30387 _ACEOF
30388
30389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30390 ac_cs_usage="\
30391 \`$as_me' instantiates files and other configuration actions
30392 from templates according to the current configuration. Unless the files
30393 and actions are specified as TAGs, all are instantiated by default.
30394
30395 Usage: $0 [OPTION]... [TAG]...
30396
30397 -h, --help print this help, then exit
30398 -V, --version print version number and configuration settings, then exit
30399 -q, --quiet, --silent
30400 do not print progress messages
30401 -d, --debug don't remove temporary files
30402 --recheck update $as_me by reconfiguring in the same conditions
30403 --file=FILE[:TEMPLATE]
30404 instantiate the configuration file FILE
30405 --header=FILE[:TEMPLATE]
30406 instantiate the configuration header FILE
30407
30408 Configuration files:
30409 $config_files
30410
30411 Configuration headers:
30412 $config_headers
30413
30414 Configuration links:
30415 $config_links
30416
30417 Configuration commands:
30418 $config_commands
30419
30420 Report bugs to the package provider."
30421
30422 _ACEOF
30423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30424 ac_cs_version="\\
30425 config.status
30426 configured by $0, generated by GNU Autoconf 2.64,
30427 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30428
30429 Copyright (C) 2009 Free Software Foundation, Inc.
30430 This config.status script is free software; the Free Software Foundation
30431 gives unlimited permission to copy, distribute and modify it."
30432
30433 ac_pwd='$ac_pwd'
30434 srcdir='$srcdir'
30435 AWK='$AWK'
30436 test -n "\$AWK" || AWK=awk
30437 _ACEOF
30438
30439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30440 # The default lists apply if the user does not specify any file.
30441 ac_need_defaults=:
30442 while test $# != 0
30443 do
30444 case $1 in
30445 --*=*)
30446 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30447 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30448 ac_shift=:
30449 ;;
30450 *)
30451 ac_option=$1
30452 ac_optarg=$2
30453 ac_shift=shift
30454 ;;
30455 esac
30456
30457 case $ac_option in
30458 # Handling of the options.
30459 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30460 ac_cs_recheck=: ;;
30461 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30462 $as_echo "$ac_cs_version"; exit ;;
30463 --debug | --debu | --deb | --de | --d | -d )
30464 debug=: ;;
30465 --file | --fil | --fi | --f )
30466 $ac_shift
30467 case $ac_optarg in
30468 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30469 esac
30470 as_fn_append CONFIG_FILES " '$ac_optarg'"
30471 ac_need_defaults=false;;
30472 --header | --heade | --head | --hea )
30473 $ac_shift
30474 case $ac_optarg in
30475 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30476 esac
30477 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30478 ac_need_defaults=false;;
30479 --he | --h)
30480 # Conflict between --help and --header
30481 as_fn_error "ambiguous option: \`$1'
30482 Try \`$0 --help' for more information.";;
30483 --help | --hel | -h )
30484 $as_echo "$ac_cs_usage"; exit ;;
30485 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30486 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30487 ac_cs_silent=: ;;
30488
30489 # This is an error.
30490 -*) as_fn_error "unrecognized option: \`$1'
30491 Try \`$0 --help' for more information." ;;
30492
30493 *) as_fn_append ac_config_targets " $1"
30494 ac_need_defaults=false ;;
30495
30496 esac
30497 shift
30498 done
30499
30500 ac_configure_extra_args=
30501
30502 if $ac_cs_silent; then
30503 exec 6>/dev/null
30504 ac_configure_extra_args="$ac_configure_extra_args --silent"
30505 fi
30506
30507 _ACEOF
30508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30509 if \$ac_cs_recheck; then
30510 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30511 shift
30512 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30513 CONFIG_SHELL='$SHELL'
30514 export CONFIG_SHELL
30515 exec "\$@"
30516 fi
30517
30518 _ACEOF
30519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30520 exec 5>>config.log
30521 {
30522 echo
30523 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30524 ## Running $as_me. ##
30525 _ASBOX
30526 $as_echo "$ac_log"
30527 } >&5
30528
30529 _ACEOF
30530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30531 #
30532 # INIT-COMMANDS
30533 #
30534 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30535 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30536 subdirs='$subdirs'
30537
30538 _ACEOF
30539
30540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30541
30542 # Handling of arguments.
30543 for ac_config_target in $ac_config_targets
30544 do
30545 case $ac_config_target in
30546 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30547 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30548 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30549 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30550 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30551 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30552 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30553 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30554 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30555
30556 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30557 esac
30558 done
30559
30560
30561 # If the user did not use the arguments to specify the items to instantiate,
30562 # then the envvar interface is used. Set only those that are not.
30563 # We use the long form for the default assignment because of an extremely
30564 # bizarre bug on SunOS 4.1.3.
30565 if $ac_need_defaults; then
30566 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30567 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30568 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30569 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30570 fi
30571
30572 # Have a temporary directory for convenience. Make it in the build tree
30573 # simply because there is no reason against having it here, and in addition,
30574 # creating and moving files from /tmp can sometimes cause problems.
30575 # Hook for its removal unless debugging.
30576 # Note that there is a small window in which the directory will not be cleaned:
30577 # after its creation but before its name has been assigned to `$tmp'.
30578 $debug ||
30579 {
30580 tmp=
30581 trap 'exit_status=$?
30582 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30583 ' 0
30584 trap 'as_fn_exit 1' 1 2 13 15
30585 }
30586 # Create a (secure) tmp directory for tmp files.
30587
30588 {
30589 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30590 test -n "$tmp" && test -d "$tmp"
30591 } ||
30592 {
30593 tmp=./conf$$-$RANDOM
30594 (umask 077 && mkdir "$tmp")
30595 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30596
30597 # Set up the scripts for CONFIG_FILES section.
30598 # No need to generate them if there are no CONFIG_FILES.
30599 # This happens for instance with `./config.status config.h'.
30600 if test -n "$CONFIG_FILES"; then
30601
30602 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30603 ac_cs_awk_getline=:
30604 ac_cs_awk_pipe_init=
30605 ac_cs_awk_read_file='
30606 while ((getline aline < (F[key])) > 0)
30607 print(aline)
30608 close(F[key])'
30609 ac_cs_awk_pipe_fini=
30610 else
30611 ac_cs_awk_getline=false
30612 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30613 ac_cs_awk_read_file='
30614 print "|#_!!_#|"
30615 print "cat " F[key] " &&"
30616 '$ac_cs_awk_pipe_init
30617 # The final `:' finishes the AND list.
30618 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30619 fi
30620 ac_cr=`echo X | tr X '\015'`
30621 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30622 # But we know of no other shell where ac_cr would be empty at this
30623 # point, so we can use a bashism as a fallback.
30624 if test "x$ac_cr" = x; then
30625 eval ac_cr=\$\'\\r\'
30626 fi
30627 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30628 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30629 ac_cs_awk_cr='\r'
30630 else
30631 ac_cs_awk_cr=$ac_cr
30632 fi
30633
30634 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30635 _ACEOF
30636
30637 # Create commands to substitute file output variables.
30638 {
30639 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30640 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30641 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30642 echo "_ACAWK" &&
30643 echo "_ACEOF"
30644 } >conf$$files.sh &&
30645 . ./conf$$files.sh ||
30646 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30647 rm -f conf$$files.sh
30648
30649 {
30650 echo "cat >conf$$subs.awk <<_ACEOF" &&
30651 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30652 echo "_ACEOF"
30653 } >conf$$subs.sh ||
30654 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30655 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30656 ac_delim='%!_!# '
30657 for ac_last_try in false false false false false :; do
30658 . ./conf$$subs.sh ||
30659 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30660
30661 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30662 if test $ac_delim_n = $ac_delim_num; then
30663 break
30664 elif $ac_last_try; then
30665 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30666 else
30667 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30668 fi
30669 done
30670 rm -f conf$$subs.sh
30671
30672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30673 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30674 _ACEOF
30675 sed -n '
30676 h
30677 s/^/S["/; s/!.*/"]=/
30678 p
30679 g
30680 s/^[^!]*!//
30681 :repl
30682 t repl
30683 s/'"$ac_delim"'$//
30684 t delim
30685 :nl
30686 h
30687 s/\(.\{148\}\).*/\1/
30688 t more1
30689 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30690 p
30691 n
30692 b repl
30693 :more1
30694 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30695 p
30696 g
30697 s/.\{148\}//
30698 t nl
30699 :delim
30700 h
30701 s/\(.\{148\}\).*/\1/
30702 t more2
30703 s/["\\]/\\&/g; s/^/"/; s/$/"/
30704 p
30705 b
30706 :more2
30707 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30708 p
30709 g
30710 s/.\{148\}//
30711 t delim
30712 ' <conf$$subs.awk | sed '
30713 /^[^""]/{
30714 N
30715 s/\n//
30716 }
30717 ' >>$CONFIG_STATUS || ac_write_fail=1
30718 rm -f conf$$subs.awk
30719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30720 _ACAWK
30721 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30722 for (key in S) S_is_set[key] = 1
30723 FS = "\a"
30724 \$ac_cs_awk_pipe_init
30725 }
30726 {
30727 line = $ 0
30728 nfields = split(line, field, "@")
30729 substed = 0
30730 len = length(field[1])
30731 for (i = 2; i < nfields; i++) {
30732 key = field[i]
30733 keylen = length(key)
30734 if (S_is_set[key]) {
30735 value = S[key]
30736 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30737 len += length(value) + length(field[++i])
30738 substed = 1
30739 } else
30740 len += 1 + keylen
30741 }
30742 if (nfields == 3 && !substed) {
30743 key = field[2]
30744 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30745 \$ac_cs_awk_read_file
30746 next
30747 }
30748 }
30749 print line
30750 }
30751 \$ac_cs_awk_pipe_fini
30752 _ACAWK
30753 _ACEOF
30754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30755 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30756 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30757 else
30758 cat
30759 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30760 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30761 _ACEOF
30762
30763 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30764 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30765 # trailing colons and then remove the whole line if VPATH becomes empty
30766 # (actually we leave an empty line to preserve line numbers).
30767 if test "x$srcdir" = x.; then
30768 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30769 s/:*\$(srcdir):*/:/
30770 s/:*\${srcdir}:*/:/
30771 s/:*@srcdir@:*/:/
30772 s/^\([^=]*=[ ]*\):*/\1/
30773 s/:*$//
30774 s/^[^=]*=[ ]*$//
30775 }'
30776 fi
30777
30778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30779 fi # test -n "$CONFIG_FILES"
30780
30781 # Set up the scripts for CONFIG_HEADERS section.
30782 # No need to generate them if there are no CONFIG_HEADERS.
30783 # This happens for instance with `./config.status Makefile'.
30784 if test -n "$CONFIG_HEADERS"; then
30785 cat >"$tmp/defines.awk" <<\_ACAWK ||
30786 BEGIN {
30787 _ACEOF
30788
30789 # Transform confdefs.h into an awk script `defines.awk', embedded as
30790 # here-document in config.status, that substitutes the proper values into
30791 # config.h.in to produce config.h.
30792
30793 # Create a delimiter string that does not exist in confdefs.h, to ease
30794 # handling of long lines.
30795 ac_delim='%!_!# '
30796 for ac_last_try in false false :; do
30797 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30798 if test -z "$ac_t"; then
30799 break
30800 elif $ac_last_try; then
30801 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30802 else
30803 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30804 fi
30805 done
30806
30807 # For the awk script, D is an array of macro values keyed by name,
30808 # likewise P contains macro parameters if any. Preserve backslash
30809 # newline sequences.
30810
30811 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30812 sed -n '
30813 s/.\{148\}/&'"$ac_delim"'/g
30814 t rset
30815 :rset
30816 s/^[ ]*#[ ]*define[ ][ ]*/ /
30817 t def
30818 d
30819 :def
30820 s/\\$//
30821 t bsnl
30822 s/["\\]/\\&/g
30823 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30824 D["\1"]=" \3"/p
30825 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30826 d
30827 :bsnl
30828 s/["\\]/\\&/g
30829 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30830 D["\1"]=" \3\\\\\\n"\\/p
30831 t cont
30832 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30833 t cont
30834 d
30835 :cont
30836 n
30837 s/.\{148\}/&'"$ac_delim"'/g
30838 t clear
30839 :clear
30840 s/\\$//
30841 t bsnlc
30842 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30843 d
30844 :bsnlc
30845 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30846 b cont
30847 ' <confdefs.h | sed '
30848 s/'"$ac_delim"'/"\\\
30849 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30850
30851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30852 for (key in D) D_is_set[key] = 1
30853 FS = "\a"
30854 }
30855 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30856 line = \$ 0
30857 split(line, arg, " ")
30858 if (arg[1] == "#") {
30859 defundef = arg[2]
30860 mac1 = arg[3]
30861 } else {
30862 defundef = substr(arg[1], 2)
30863 mac1 = arg[2]
30864 }
30865 split(mac1, mac2, "(") #)
30866 macro = mac2[1]
30867 prefix = substr(line, 1, index(line, defundef) - 1)
30868 if (D_is_set[macro]) {
30869 # Preserve the white space surrounding the "#".
30870 print prefix "define", macro P[macro] D[macro]
30871 next
30872 } else {
30873 # Replace #undef with comments. This is necessary, for example,
30874 # in the case of _POSIX_SOURCE, which is predefined and required
30875 # on some systems where configure will not decide to define it.
30876 if (defundef == "undef") {
30877 print "/*", prefix defundef, macro, "*/"
30878 next
30879 }
30880 }
30881 }
30882 { print }
30883 _ACAWK
30884 _ACEOF
30885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30886 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30887 fi # test -n "$CONFIG_HEADERS"
30888
30889
30890 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30891 shift
30892 for ac_tag
30893 do
30894 case $ac_tag in
30895 :[FHLC]) ac_mode=$ac_tag; continue;;
30896 esac
30897 case $ac_mode$ac_tag in
30898 :[FHL]*:*);;
30899 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30900 :[FH]-) ac_tag=-:-;;
30901 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30902 esac
30903 ac_save_IFS=$IFS
30904 IFS=:
30905 set x $ac_tag
30906 IFS=$ac_save_IFS
30907 shift
30908 ac_file=$1
30909 shift
30910
30911 case $ac_mode in
30912 :L) ac_source=$1;;
30913 :[FH])
30914 ac_file_inputs=
30915 for ac_f
30916 do
30917 case $ac_f in
30918 -) ac_f="$tmp/stdin";;
30919 *) # Look for the file first in the build tree, then in the source tree
30920 # (if the path is not absolute). The absolute path cannot be DOS-style,
30921 # because $ac_f cannot contain `:'.
30922 test -f "$ac_f" ||
30923 case $ac_f in
30924 [\\/$]*) false;;
30925 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30926 esac ||
30927 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30928 esac
30929 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30930 as_fn_append ac_file_inputs " '$ac_f'"
30931 done
30932
30933 # Let's still pretend it is `configure' which instantiates (i.e., don't
30934 # use $as_me), people would be surprised to read:
30935 # /* config.h. Generated by config.status. */
30936 configure_input='Generated from '`
30937 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30938 `' by configure.'
30939 if test x"$ac_file" != x-; then
30940 configure_input="$ac_file. $configure_input"
30941 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30942 $as_echo "$as_me: creating $ac_file" >&6;}
30943 fi
30944 # Neutralize special characters interpreted by sed in replacement strings.
30945 case $configure_input in #(
30946 *\&* | *\|* | *\\* )
30947 ac_sed_conf_input=`$as_echo "$configure_input" |
30948 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30949 *) ac_sed_conf_input=$configure_input;;
30950 esac
30951
30952 case $ac_tag in
30953 *:-:* | *:-) cat >"$tmp/stdin" \
30954 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30955 esac
30956 ;;
30957 esac
30958
30959 ac_dir=`$as_dirname -- "$ac_file" ||
30960 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30961 X"$ac_file" : 'X\(//\)[^/]' \| \
30962 X"$ac_file" : 'X\(//\)$' \| \
30963 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30964 $as_echo X"$ac_file" |
30965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30966 s//\1/
30967 q
30968 }
30969 /^X\(\/\/\)[^/].*/{
30970 s//\1/
30971 q
30972 }
30973 /^X\(\/\/\)$/{
30974 s//\1/
30975 q
30976 }
30977 /^X\(\/\).*/{
30978 s//\1/
30979 q
30980 }
30981 s/.*/./; q'`
30982 as_dir="$ac_dir"; as_fn_mkdir_p
30983 ac_builddir=.
30984
30985 case "$ac_dir" in
30986 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30987 *)
30988 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30989 # A ".." for each directory in $ac_dir_suffix.
30990 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30991 case $ac_top_builddir_sub in
30992 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30993 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30994 esac ;;
30995 esac
30996 ac_abs_top_builddir=$ac_pwd
30997 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30998 # for backward compatibility:
30999 ac_top_builddir=$ac_top_build_prefix
31000
31001 case $srcdir in
31002 .) # We are building in place.
31003 ac_srcdir=.
31004 ac_top_srcdir=$ac_top_builddir_sub
31005 ac_abs_top_srcdir=$ac_pwd ;;
31006 [\\/]* | ?:[\\/]* ) # Absolute name.
31007 ac_srcdir=$srcdir$ac_dir_suffix;
31008 ac_top_srcdir=$srcdir
31009 ac_abs_top_srcdir=$srcdir ;;
31010 *) # Relative name.
31011 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31012 ac_top_srcdir=$ac_top_build_prefix$srcdir
31013 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31014 esac
31015 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31016
31017
31018 case $ac_mode in
31019 :F)
31020 #
31021 # CONFIG_FILE
31022 #
31023
31024 _ACEOF
31025
31026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31027 # If the template does not know about datarootdir, expand it.
31028 # FIXME: This hack should be removed a few years after 2.60.
31029 ac_datarootdir_hack=; ac_datarootdir_seen=
31030 ac_sed_dataroot='
31031 /datarootdir/ {
31032 p
31033 q
31034 }
31035 /@datadir@/p
31036 /@docdir@/p
31037 /@infodir@/p
31038 /@localedir@/p
31039 /@mandir@/p'
31040 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31041 *datarootdir*) ac_datarootdir_seen=yes;;
31042 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31044 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31045 _ACEOF
31046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31047 ac_datarootdir_hack='
31048 s&@datadir@&$datadir&g
31049 s&@docdir@&$docdir&g
31050 s&@infodir@&$infodir&g
31051 s&@localedir@&$localedir&g
31052 s&@mandir@&$mandir&g
31053 s&\\\${datarootdir}&$datarootdir&g' ;;
31054 esac
31055 _ACEOF
31056
31057 # Neutralize VPATH when `$srcdir' = `.'.
31058 # Shell code in configure.ac might set extrasub.
31059 # FIXME: do we really want to maintain this feature?
31060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31061 ac_sed_extra="$ac_vpsub
31062 $extrasub
31063 _ACEOF
31064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31065 :t
31066 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31067 s|@configure_input@|$ac_sed_conf_input|;t t
31068 s&@top_builddir@&$ac_top_builddir_sub&;t t
31069 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31070 s&@srcdir@&$ac_srcdir&;t t
31071 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31072 s&@top_srcdir@&$ac_top_srcdir&;t t
31073 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31074 s&@builddir@&$ac_builddir&;t t
31075 s&@abs_builddir@&$ac_abs_builddir&;t t
31076 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31077 $ac_datarootdir_hack
31078 "
31079 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31080 if $ac_cs_awk_getline; then
31081 $AWK -f "$tmp/subs.awk"
31082 else
31083 $AWK -f "$tmp/subs.awk" | $SHELL
31084 fi >$tmp/out \
31085 || as_fn_error "could not create $ac_file" "$LINENO" 5
31086
31087 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31088 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31089 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31091 which seems to be undefined. Please make sure it is defined." >&5
31092 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31093 which seems to be undefined. Please make sure it is defined." >&2;}
31094
31095 rm -f "$tmp/stdin"
31096 case $ac_file in
31097 -) cat "$tmp/out" && rm -f "$tmp/out";;
31098 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31099 esac \
31100 || as_fn_error "could not create $ac_file" "$LINENO" 5
31101 ;;
31102 :H)
31103 #
31104 # CONFIG_HEADER
31105 #
31106 if test x"$ac_file" != x-; then
31107 {
31108 $as_echo "/* $configure_input */" \
31109 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31110 } >"$tmp/config.h" \
31111 || as_fn_error "could not create $ac_file" "$LINENO" 5
31112 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31113 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31114 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31115 else
31116 rm -f "$ac_file"
31117 mv "$tmp/config.h" "$ac_file" \
31118 || as_fn_error "could not create $ac_file" "$LINENO" 5
31119 fi
31120 else
31121 $as_echo "/* $configure_input */" \
31122 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31123 || as_fn_error "could not create -" "$LINENO" 5
31124 fi
31125 ;;
31126 :L)
31127 #
31128 # CONFIG_LINK
31129 #
31130
31131 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31132 :
31133 else
31134 # Prefer the file from the source tree if names are identical.
31135 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31136 ac_source=$srcdir/$ac_source
31137 fi
31138
31139 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31140 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31141
31142 if test ! -r "$ac_source"; then
31143 as_fn_error "$ac_source: file not found" "$LINENO" 5
31144 fi
31145 rm -f "$ac_file"
31146
31147 # Try a relative symlink, then a hard link, then a copy.
31148 case $srcdir in
31149 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31150 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31151 esac
31152 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31153 ln "$ac_source" "$ac_file" 2>/dev/null ||
31154 cp -p "$ac_source" "$ac_file" ||
31155 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31156 fi
31157 ;;
31158 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31159 $as_echo "$as_me: executing $ac_file commands" >&6;}
31160 ;;
31161 esac
31162
31163
31164 case $ac_file$ac_mode in
31165 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31166 "gccdepdir":C)
31167 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31168 for lang in $subdirs c-family common
31169 do
31170 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31171 done ;;
31172 "as":F) chmod +x as ;;
31173 "collect-ld":F) chmod +x collect-ld ;;
31174 "nm":F) chmod +x nm ;;
31175 "default":C)
31176 case ${CONFIG_HEADERS} in
31177 *auto-host.h:config.in*)
31178 echo > cstamp-h ;;
31179 esac
31180 # Make sure all the subdirs exist.
31181 for d in $subdirs doc build common c-family
31182 do
31183 test -d $d || mkdir $d
31184 done
31185 ;;
31186
31187 esac
31188 done # for ac_tag
31189
31190
31191 as_fn_exit 0
31192 _ACEOF
31193 ac_clean_files=$ac_clean_files_save
31194
31195 test $ac_write_fail = 0 ||
31196 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31197
31198
31199 # configure is writing to config.log, and then calls config.status.
31200 # config.status does its own redirection, appending to config.log.
31201 # Unfortunately, on DOS this fails, as config.log is still kept open
31202 # by configure, so config.status won't be able to write to it; its
31203 # output is simply discarded. So we exec the FD to /dev/null,
31204 # effectively closing config.log, so it can be properly (re)opened and
31205 # appended to by config.status. When coming back to configure, we
31206 # need to make the FD available again.
31207 if test "$no_create" != yes; then
31208 ac_cs_success=:
31209 ac_config_status_args=
31210 test "$silent" = yes &&
31211 ac_config_status_args="$ac_config_status_args --quiet"
31212 exec 5>/dev/null
31213 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31214 exec 5>>config.log
31215 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31216 # would make configure fail if this is the last instruction.
31217 $ac_cs_success || as_fn_exit $?
31218 fi
31219 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31221 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31222 fi
31223
31224