driver-sparc.c: New file.
[gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 PPLINC
608 PPLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 libgcc_tm_include_list
622 libgcc_tm_file_list
623 tm_defines
624 tm_include_list
625 tm_file_list
626 thread_file
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
644 gcc_config_arguments
645 float_h_file
646 extra_programs
647 extra_passes
648 extra_parts
649 extra_objs
650 extra_headers_list
651 user_headers_inc_next_post
652 user_headers_inc_next_pre
653 extra_gcc_objs
654 TM_MULTILIB_EXCEPTIONS_CONFIG
655 TM_MULTILIB_CONFIG
656 TM_ENDIAN_CONFIG
657 tmake_file
658 xmake_file
659 cpp_install_dir
660 check_languages
661 build_file_translate
662 build_xm_defines
663 build_xm_include_list
664 build_xm_file_list
665 build_install_headers_dir
666 build_exeext
667 all_selected_languages
668 all_languages
669 all_lang_makefrags
670 all_gtfiles
671 all_compilers
672 srcdir
673 subdirs
674 slibdir
675 dollar
676 gcc_tooldir
677 enable_lto
678 MAINT
679 zlibinc
680 zlibdir
681 HOST_LIBS
682 GGC
683 libgcc_visibility
684 gcc_cv_readelf
685 gcc_cv_objdump
686 ORIGINAL_NM_FOR_TARGET
687 gcc_cv_nm
688 ORIGINAL_LD_FOR_TARGET
689 ORIGINAL_PLUGIN_LD_FOR_TARGET
690 gcc_cv_ld
691 ORIGINAL_AS_FOR_TARGET
692 gcc_cv_as
693 enable_fast_install
694 objdir
695 OTOOL64
696 OTOOL
697 LIPO
698 NMEDIT
699 DSYMUTIL
700 STRIP
701 OBJDUMP
702 ac_ct_DUMPBIN
703 DUMPBIN
704 LD
705 FGREP
706 SED
707 LIBTOOL
708 collect2
709 STMP_FIXINC
710 BUILD_LDFLAGS
711 BUILD_CFLAGS
712 CC_FOR_BUILD
713 inhibit_libc
714 SYSTEM_HEADER_DIR
715 ALL
716 CROSS
717 CATOBJEXT
718 GENCAT
719 INSTOBJEXT
720 DATADIRNAME
721 CATALOGS
722 POSUB
723 GMSGFMT
724 XGETTEXT
725 INCINTL
726 LIBINTL_DEP
727 LIBINTL
728 USE_NLS
729 extra_opt_files
730 extra_modes_file
731 gthread_flags
732 objext
733 manext
734 LIBICONV_DEP
735 LTLIBICONV
736 LIBICONV
737 LDEXP_LIB
738 EXTRA_GCC_LIBS
739 GNAT_LIBEXC
740 COLLECT2_LIBS
741 CXXCPP
742 AR
743 NM
744 BISON
745 FLEX
746 GENERATED_MANPAGES
747 BUILD_INFO
748 MAKEINFO
749 have_mktemp_command
750 make_compare_target
751 INSTALL_DATA
752 INSTALL_PROGRAM
753 INSTALL
754 ranlib_flags
755 RANLIB
756 LN
757 LN_S
758 AWK
759 SET_MAKE
760 REPORT_BUGS_TEXI
761 REPORT_BUGS_TO
762 PKGVERSION
763 CONFIGURE_SPECS
764 CROSS_SYSTEM_HEADER_DIR
765 TARGET_SYSTEM_ROOT_DEFINE
766 TARGET_SYSTEM_ROOT
767 enable_shared
768 enable_fixed_point
769 enable_decimal_float
770 enable_multilib
771 ENABLE_BUILD_WITH_CXX
772 coverage_flags
773 valgrind_command
774 valgrind_path_defines
775 valgrind_path
776 TREEBROWSER
777 nocommon_flag
778 warn_cxxflags
779 warn_cflags
780 c_strict_warn
781 strict_warn
782 c_loose_warn
783 loose_warn
784 EGREP
785 GREP
786 CPP
787 OUTPUT_OPTION
788 NO_MINUS_C_MINUS_O
789 GNATMAKE
790 GNATBIND
791 ac_ct_CXX
792 CXXFLAGS
793 CXX
794 OBJEXT
795 EXEEXT
796 ac_ct_CC
797 CPPFLAGS
798 LDFLAGS
799 CFLAGS
800 CC
801 GENINSRC
802 target_subdir
803 host_subdir
804 build_subdir
805 build_libsubdir
806 target_noncanonical
807 target_os
808 target_vendor
809 target_cpu
810 target
811 host_os
812 host_vendor
813 host_cpu
814 host
815 build_os
816 build_vendor
817 build_cpu
818 build
819 target_alias
820 host_alias
821 build_alias
822 LIBS
823 ECHO_T
824 ECHO_N
825 ECHO_C
826 DEFS
827 mandir
828 localedir
829 libdir
830 psdir
831 pdfdir
832 dvidir
833 htmldir
834 infodir
835 docdir
836 oldincludedir
837 includedir
838 localstatedir
839 sharedstatedir
840 sysconfdir
841 datadir
842 datarootdir
843 libexecdir
844 sbindir
845 bindir
846 program_transform_name
847 prefix
848 exec_prefix
849 PACKAGE_URL
850 PACKAGE_BUGREPORT
851 PACKAGE_STRING
852 PACKAGE_VERSION
853 PACKAGE_TARNAME
854 PACKAGE_NAME
855 PATH_SEPARATOR
856 SHELL'
857 ac_subst_files='option_includes
858 language_hooks'
859 ac_user_opts='
860 enable_option_checking
861 with_build_libsubdir
862 with_local_prefix
863 with_gxx_include_dir
864 with_cpp_install_dir
865 enable_generated_files_in_srcdir
866 with_gnu_ld
867 with_ld
868 with_demangler_in_ld
869 with_gnu_as
870 with_as
871 enable_largefile
872 enable_werror_always
873 enable_checking
874 enable_coverage
875 enable_gather_detailed_mem_stats
876 enable_build_with_cxx
877 with_stabs
878 enable_multilib
879 enable___cxa_atexit
880 enable_decimal_float
881 enable_fixed_point
882 enable_threads
883 enable_tls
884 enable_objc_gc
885 with_dwarf2
886 enable_shared
887 with_build_sysroot
888 with_sysroot
889 with_specs
890 with_pkgversion
891 with_bugurl
892 enable_languages
893 with_multilib_list
894 enable_rpath
895 with_libiconv_prefix
896 enable_initfini_array
897 enable_sjlj_exceptions
898 enable_secureplt
899 enable_leading_mingw64_underscores
900 enable_cld
901 enable_frame_pointer
902 enable_win32_registry
903 enable_static
904 with_pic
905 enable_fast_install
906 enable_libtool_lock
907 with_plugin_ld
908 enable_gnu_indirect_function
909 enable_comdat
910 enable_gnu_unique_object
911 enable_linker_build_id
912 with_long_double_128
913 with_gc
914 with_system_zlib
915 enable_maintainer_mode
916 enable_version_specific_runtime_libs
917 with_slibdir
918 enable_plugin
919 enable_libquadmath_support
920 with_linker_hash_style
921 '
922 ac_precious_vars='build_alias
923 host_alias
924 target_alias
925 CC
926 CFLAGS
927 LDFLAGS
928 LIBS
929 CPPFLAGS
930 CXX
931 CXXFLAGS
932 CCC
933 CPP
934 CXXCPP
935 GMPLIBS
936 GMPINC
937 PPLLIBS
938 PPLINC
939 CLOOGLIBS
940 CLOOGINC'
941
942
943 # Initialize some variables set by options.
944 ac_init_help=
945 ac_init_version=false
946 ac_unrecognized_opts=
947 ac_unrecognized_sep=
948 # The variables have the same names as the options, with
949 # dashes changed to underlines.
950 cache_file=/dev/null
951 exec_prefix=NONE
952 no_create=
953 no_recursion=
954 prefix=NONE
955 program_prefix=NONE
956 program_suffix=NONE
957 program_transform_name=s,x,x,
958 silent=
959 site=
960 srcdir=
961 verbose=
962 x_includes=NONE
963 x_libraries=NONE
964
965 # Installation directory options.
966 # These are left unexpanded so users can "make install exec_prefix=/foo"
967 # and all the variables that are supposed to be based on exec_prefix
968 # by default will actually change.
969 # Use braces instead of parens because sh, perl, etc. also accept them.
970 # (The list follows the same order as the GNU Coding Standards.)
971 bindir='${exec_prefix}/bin'
972 sbindir='${exec_prefix}/sbin'
973 libexecdir='${exec_prefix}/libexec'
974 datarootdir='${prefix}/share'
975 datadir='${datarootdir}'
976 sysconfdir='${prefix}/etc'
977 sharedstatedir='${prefix}/com'
978 localstatedir='${prefix}/var'
979 includedir='${prefix}/include'
980 oldincludedir='/usr/include'
981 docdir='${datarootdir}/doc/${PACKAGE}'
982 infodir='${datarootdir}/info'
983 htmldir='${docdir}'
984 dvidir='${docdir}'
985 pdfdir='${docdir}'
986 psdir='${docdir}'
987 libdir='${exec_prefix}/lib'
988 localedir='${datarootdir}/locale'
989 mandir='${datarootdir}/man'
990
991 ac_prev=
992 ac_dashdash=
993 for ac_option
994 do
995 # If the previous option needs an argument, assign it.
996 if test -n "$ac_prev"; then
997 eval $ac_prev=\$ac_option
998 ac_prev=
999 continue
1000 fi
1001
1002 case $ac_option in
1003 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1004 *) ac_optarg=yes ;;
1005 esac
1006
1007 # Accept the important Cygnus configure options, so we can diagnose typos.
1008
1009 case $ac_dashdash$ac_option in
1010 --)
1011 ac_dashdash=yes ;;
1012
1013 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1014 ac_prev=bindir ;;
1015 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1016 bindir=$ac_optarg ;;
1017
1018 -build | --build | --buil | --bui | --bu)
1019 ac_prev=build_alias ;;
1020 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1021 build_alias=$ac_optarg ;;
1022
1023 -cache-file | --cache-file | --cache-fil | --cache-fi \
1024 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1025 ac_prev=cache_file ;;
1026 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1027 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1028 cache_file=$ac_optarg ;;
1029
1030 --config-cache | -C)
1031 cache_file=config.cache ;;
1032
1033 -datadir | --datadir | --datadi | --datad)
1034 ac_prev=datadir ;;
1035 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1036 datadir=$ac_optarg ;;
1037
1038 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1039 | --dataroo | --dataro | --datar)
1040 ac_prev=datarootdir ;;
1041 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1042 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1043 datarootdir=$ac_optarg ;;
1044
1045 -disable-* | --disable-*)
1046 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049 as_fn_error "invalid feature name: $ac_useropt"
1050 ac_useropt_orig=$ac_useropt
1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1053 *"
1054 "enable_$ac_useropt"
1055 "*) ;;
1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1057 ac_unrecognized_sep=', ';;
1058 esac
1059 eval enable_$ac_useropt=no ;;
1060
1061 -docdir | --docdir | --docdi | --doc | --do)
1062 ac_prev=docdir ;;
1063 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064 docdir=$ac_optarg ;;
1065
1066 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067 ac_prev=dvidir ;;
1068 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069 dvidir=$ac_optarg ;;
1070
1071 -enable-* | --enable-*)
1072 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 as_fn_error "invalid feature name: $ac_useropt"
1076 ac_useropt_orig=$ac_useropt
1077 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1079 *"
1080 "enable_$ac_useropt"
1081 "*) ;;
1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1083 ac_unrecognized_sep=', ';;
1084 esac
1085 eval enable_$ac_useropt=\$ac_optarg ;;
1086
1087 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1088 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1089 | --exec | --exe | --ex)
1090 ac_prev=exec_prefix ;;
1091 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1092 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1093 | --exec=* | --exe=* | --ex=*)
1094 exec_prefix=$ac_optarg ;;
1095
1096 -gas | --gas | --ga | --g)
1097 # Obsolete; use --with-gas.
1098 with_gas=yes ;;
1099
1100 -help | --help | --hel | --he | -h)
1101 ac_init_help=long ;;
1102 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1103 ac_init_help=recursive ;;
1104 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1105 ac_init_help=short ;;
1106
1107 -host | --host | --hos | --ho)
1108 ac_prev=host_alias ;;
1109 -host=* | --host=* | --hos=* | --ho=*)
1110 host_alias=$ac_optarg ;;
1111
1112 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1113 ac_prev=htmldir ;;
1114 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1115 | --ht=*)
1116 htmldir=$ac_optarg ;;
1117
1118 -includedir | --includedir | --includedi | --included | --include \
1119 | --includ | --inclu | --incl | --inc)
1120 ac_prev=includedir ;;
1121 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1122 | --includ=* | --inclu=* | --incl=* | --inc=*)
1123 includedir=$ac_optarg ;;
1124
1125 -infodir | --infodir | --infodi | --infod | --info | --inf)
1126 ac_prev=infodir ;;
1127 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1128 infodir=$ac_optarg ;;
1129
1130 -libdir | --libdir | --libdi | --libd)
1131 ac_prev=libdir ;;
1132 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1133 libdir=$ac_optarg ;;
1134
1135 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1136 | --libexe | --libex | --libe)
1137 ac_prev=libexecdir ;;
1138 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1139 | --libexe=* | --libex=* | --libe=*)
1140 libexecdir=$ac_optarg ;;
1141
1142 -localedir | --localedir | --localedi | --localed | --locale)
1143 ac_prev=localedir ;;
1144 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1145 localedir=$ac_optarg ;;
1146
1147 -localstatedir | --localstatedir | --localstatedi | --localstated \
1148 | --localstate | --localstat | --localsta | --localst | --locals)
1149 ac_prev=localstatedir ;;
1150 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1151 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1152 localstatedir=$ac_optarg ;;
1153
1154 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1155 ac_prev=mandir ;;
1156 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1157 mandir=$ac_optarg ;;
1158
1159 -nfp | --nfp | --nf)
1160 # Obsolete; use --without-fp.
1161 with_fp=no ;;
1162
1163 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1164 | --no-cr | --no-c | -n)
1165 no_create=yes ;;
1166
1167 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1168 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1169 no_recursion=yes ;;
1170
1171 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1172 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1173 | --oldin | --oldi | --old | --ol | --o)
1174 ac_prev=oldincludedir ;;
1175 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1176 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1177 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1178 oldincludedir=$ac_optarg ;;
1179
1180 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1181 ac_prev=prefix ;;
1182 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1183 prefix=$ac_optarg ;;
1184
1185 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1186 | --program-pre | --program-pr | --program-p)
1187 ac_prev=program_prefix ;;
1188 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1189 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1190 program_prefix=$ac_optarg ;;
1191
1192 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1193 | --program-suf | --program-su | --program-s)
1194 ac_prev=program_suffix ;;
1195 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1196 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1197 program_suffix=$ac_optarg ;;
1198
1199 -program-transform-name | --program-transform-name \
1200 | --program-transform-nam | --program-transform-na \
1201 | --program-transform-n | --program-transform- \
1202 | --program-transform | --program-transfor \
1203 | --program-transfo | --program-transf \
1204 | --program-trans | --program-tran \
1205 | --progr-tra | --program-tr | --program-t)
1206 ac_prev=program_transform_name ;;
1207 -program-transform-name=* | --program-transform-name=* \
1208 | --program-transform-nam=* | --program-transform-na=* \
1209 | --program-transform-n=* | --program-transform-=* \
1210 | --program-transform=* | --program-transfor=* \
1211 | --program-transfo=* | --program-transf=* \
1212 | --program-trans=* | --program-tran=* \
1213 | --progr-tra=* | --program-tr=* | --program-t=*)
1214 program_transform_name=$ac_optarg ;;
1215
1216 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1217 ac_prev=pdfdir ;;
1218 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1219 pdfdir=$ac_optarg ;;
1220
1221 -psdir | --psdir | --psdi | --psd | --ps)
1222 ac_prev=psdir ;;
1223 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1224 psdir=$ac_optarg ;;
1225
1226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227 | -silent | --silent | --silen | --sile | --sil)
1228 silent=yes ;;
1229
1230 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1231 ac_prev=sbindir ;;
1232 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1233 | --sbi=* | --sb=*)
1234 sbindir=$ac_optarg ;;
1235
1236 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238 | --sharedst | --shareds | --shared | --share | --shar \
1239 | --sha | --sh)
1240 ac_prev=sharedstatedir ;;
1241 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1244 | --sha=* | --sh=*)
1245 sharedstatedir=$ac_optarg ;;
1246
1247 -site | --site | --sit)
1248 ac_prev=site ;;
1249 -site=* | --site=* | --sit=*)
1250 site=$ac_optarg ;;
1251
1252 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1253 ac_prev=srcdir ;;
1254 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1255 srcdir=$ac_optarg ;;
1256
1257 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258 | --syscon | --sysco | --sysc | --sys | --sy)
1259 ac_prev=sysconfdir ;;
1260 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1262 sysconfdir=$ac_optarg ;;
1263
1264 -target | --target | --targe | --targ | --tar | --ta | --t)
1265 ac_prev=target_alias ;;
1266 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1267 target_alias=$ac_optarg ;;
1268
1269 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1270 verbose=yes ;;
1271
1272 -version | --version | --versio | --versi | --vers | -V)
1273 ac_init_version=: ;;
1274
1275 -with-* | --with-*)
1276 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279 as_fn_error "invalid package name: $ac_useropt"
1280 ac_useropt_orig=$ac_useropt
1281 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282 case $ac_user_opts in
1283 *"
1284 "with_$ac_useropt"
1285 "*) ;;
1286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1287 ac_unrecognized_sep=', ';;
1288 esac
1289 eval with_$ac_useropt=\$ac_optarg ;;
1290
1291 -without-* | --without-*)
1292 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295 as_fn_error "invalid package name: $ac_useropt"
1296 ac_useropt_orig=$ac_useropt
1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1299 *"
1300 "with_$ac_useropt"
1301 "*) ;;
1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1303 ac_unrecognized_sep=', ';;
1304 esac
1305 eval with_$ac_useropt=no ;;
1306
1307 --x)
1308 # Obsolete; use --with-x.
1309 with_x=yes ;;
1310
1311 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312 | --x-incl | --x-inc | --x-in | --x-i)
1313 ac_prev=x_includes ;;
1314 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316 x_includes=$ac_optarg ;;
1317
1318 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320 ac_prev=x_libraries ;;
1321 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323 x_libraries=$ac_optarg ;;
1324
1325 -*) as_fn_error "unrecognized option: \`$ac_option'
1326 Try \`$0 --help' for more information."
1327 ;;
1328
1329 *=*)
1330 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331 # Reject names that are not valid shell variable names.
1332 case $ac_envvar in #(
1333 '' | [0-9]* | *[!_$as_cr_alnum]* )
1334 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1335 esac
1336 eval $ac_envvar=\$ac_optarg
1337 export $ac_envvar ;;
1338
1339 *)
1340 # FIXME: should be removed in autoconf 3.0.
1341 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1345 ;;
1346
1347 esac
1348 done
1349
1350 if test -n "$ac_prev"; then
1351 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352 as_fn_error "missing argument to $ac_option"
1353 fi
1354
1355 if test -n "$ac_unrecognized_opts"; then
1356 case $enable_option_checking in
1357 no) ;;
1358 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1359 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1360 esac
1361 fi
1362
1363 # Check all directory arguments for consistency.
1364 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365 datadir sysconfdir sharedstatedir localstatedir includedir \
1366 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367 libdir localedir mandir
1368 do
1369 eval ac_val=\$$ac_var
1370 # Remove trailing slashes.
1371 case $ac_val in
1372 */ )
1373 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374 eval $ac_var=\$ac_val;;
1375 esac
1376 # Be sure to have absolute directory names.
1377 case $ac_val in
1378 [\\/$]* | ?:[\\/]* ) continue;;
1379 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1380 esac
1381 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1382 done
1383
1384 # There might be people who depend on the old broken behavior: `$host'
1385 # used to hold the argument of --host etc.
1386 # FIXME: To remove some day.
1387 build=$build_alias
1388 host=$host_alias
1389 target=$target_alias
1390
1391 # FIXME: To remove some day.
1392 if test "x$host_alias" != x; then
1393 if test "x$build_alias" = x; then
1394 cross_compiling=maybe
1395 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1396 If a cross compiler is detected then cross compile mode will be used." >&2
1397 elif test "x$build_alias" != "x$host_alias"; then
1398 cross_compiling=yes
1399 fi
1400 fi
1401
1402 ac_tool_prefix=
1403 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1404
1405 test "$silent" = yes && exec 6>/dev/null
1406
1407
1408 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1409 ac_ls_di=`ls -di .` &&
1410 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1411 as_fn_error "working directory cannot be determined"
1412 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1413 as_fn_error "pwd does not report name of working directory"
1414
1415
1416 # Find the source files, if location was not specified.
1417 if test -z "$srcdir"; then
1418 ac_srcdir_defaulted=yes
1419 # Try the directory containing this script, then the parent directory.
1420 ac_confdir=`$as_dirname -- "$as_myself" ||
1421 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1422 X"$as_myself" : 'X\(//\)[^/]' \| \
1423 X"$as_myself" : 'X\(//\)$' \| \
1424 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1425 $as_echo X"$as_myself" |
1426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1427 s//\1/
1428 q
1429 }
1430 /^X\(\/\/\)[^/].*/{
1431 s//\1/
1432 q
1433 }
1434 /^X\(\/\/\)$/{
1435 s//\1/
1436 q
1437 }
1438 /^X\(\/\).*/{
1439 s//\1/
1440 q
1441 }
1442 s/.*/./; q'`
1443 srcdir=$ac_confdir
1444 if test ! -r "$srcdir/$ac_unique_file"; then
1445 srcdir=..
1446 fi
1447 else
1448 ac_srcdir_defaulted=no
1449 fi
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1452 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1453 fi
1454 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1455 ac_abs_confdir=`(
1456 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1457 pwd)`
1458 # When building in place, set srcdir=.
1459 if test "$ac_abs_confdir" = "$ac_pwd"; then
1460 srcdir=.
1461 fi
1462 # Remove unnecessary trailing slashes from srcdir.
1463 # Double slashes in file names in object file debugging info
1464 # mess up M-x gdb in Emacs.
1465 case $srcdir in
1466 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1467 esac
1468 for ac_var in $ac_precious_vars; do
1469 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1470 eval ac_env_${ac_var}_value=\$${ac_var}
1471 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1472 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1473 done
1474
1475 #
1476 # Report the --help message.
1477 #
1478 if test "$ac_init_help" = "long"; then
1479 # Omit some internal or obsolete options to make the list less imposing.
1480 # This message is too long to be a string in the A/UX 3.1 sh.
1481 cat <<_ACEOF
1482 \`configure' configures this package to adapt to many kinds of systems.
1483
1484 Usage: $0 [OPTION]... [VAR=VALUE]...
1485
1486 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1487 VAR=VALUE. See below for descriptions of some of the useful variables.
1488
1489 Defaults for the options are specified in brackets.
1490
1491 Configuration:
1492 -h, --help display this help and exit
1493 --help=short display options specific to this package
1494 --help=recursive display the short help of all the included packages
1495 -V, --version display version information and exit
1496 -q, --quiet, --silent do not print \`checking...' messages
1497 --cache-file=FILE cache test results in FILE [disabled]
1498 -C, --config-cache alias for \`--cache-file=config.cache'
1499 -n, --no-create do not create output files
1500 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1501
1502 Installation directories:
1503 --prefix=PREFIX install architecture-independent files in PREFIX
1504 [$ac_default_prefix]
1505 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1506 [PREFIX]
1507
1508 By default, \`make install' will install all the files in
1509 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1510 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1511 for instance \`--prefix=\$HOME'.
1512
1513 For better control, use the options below.
1514
1515 Fine tuning of the installation directories:
1516 --bindir=DIR user executables [EPREFIX/bin]
1517 --sbindir=DIR system admin executables [EPREFIX/sbin]
1518 --libexecdir=DIR program executables [EPREFIX/libexec]
1519 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1520 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1521 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1522 --libdir=DIR object code libraries [EPREFIX/lib]
1523 --includedir=DIR C header files [PREFIX/include]
1524 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1525 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1526 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1527 --infodir=DIR info documentation [DATAROOTDIR/info]
1528 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1529 --mandir=DIR man documentation [DATAROOTDIR/man]
1530 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1531 --htmldir=DIR html documentation [DOCDIR]
1532 --dvidir=DIR dvi documentation [DOCDIR]
1533 --pdfdir=DIR pdf documentation [DOCDIR]
1534 --psdir=DIR ps documentation [DOCDIR]
1535 _ACEOF
1536
1537 cat <<\_ACEOF
1538
1539 Program names:
1540 --program-prefix=PREFIX prepend PREFIX to installed program names
1541 --program-suffix=SUFFIX append SUFFIX to installed program names
1542 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1543
1544 System types:
1545 --build=BUILD configure for building on BUILD [guessed]
1546 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1547 --target=TARGET configure for building compilers for TARGET [HOST]
1548 _ACEOF
1549 fi
1550
1551 if test -n "$ac_init_help"; then
1552
1553 cat <<\_ACEOF
1554
1555 Optional Features:
1556 --disable-option-checking ignore unrecognized --enable/--with options
1557 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1558 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1559 --enable-generated-files-in-srcdir
1560 put copies of generated files in source dir intended
1561 for creating source tarballs for users without
1562 texinfo bison or flex
1563 --disable-largefile omit support for large files
1564 --enable-werror-always enable -Werror despite compiler version
1565 --enable-checking[=LIST]
1566 enable expensive run-time checks. With LIST, enable
1567 only specific categories of checks. Categories are:
1568 yes,no,all,none,release. Flags are:
1569 assert,df,fold,gc,gcac,gimple,misc,
1570 rtlflag,rtl,runtime,tree,valgrind,types
1571 --enable-coverage[=LEVEL]
1572 enable compiler's code coverage collection. Use to
1573 measure compiler performance and locate unused parts
1574 of the compiler. With LEVEL, specify optimization.
1575 Values are opt, noopt, default is noopt
1576 --enable-gather-detailed-mem-stats
1577 enable detailed memory allocation stats gathering
1578 --enable-build-with-cxx build with C++ compiler instead of C compiler
1579 --enable-multilib enable library support for multiple ABIs
1580 --enable-__cxa_atexit enable __cxa_atexit for C++
1581 --enable-decimal-float={no,yes,bid,dpd}
1582 enable decimal float extension to C. Selecting 'bid'
1583 or 'dpd' choses which decimal floating point format
1584 to use
1585 --enable-fixed-point enable fixed-point arithmetic extension to C
1586 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1587 package
1588 --enable-tls enable or disable generation of tls code overriding
1589 the assembler check for tls support
1590 --enable-objc-gc enable the use of Boehm's garbage collector with the
1591 GNU Objective-C runtime
1592 --disable-shared don't provide a shared libgcc
1593 --enable-languages=LIST specify which front-ends to build
1594 --disable-rpath do not hardcode runtime library paths
1595 --enable-initfini-array use .init_array/.fini_array sections
1596 --enable-sjlj-exceptions
1597 arrange to use setjmp/longjmp exception handling
1598 --enable-secureplt enable -msecure-plt by default for PowerPC
1599 --enable-leading-mingw64-underscores
1600 enable leading underscores on 64 bit mingw targets
1601 --enable-cld enable -mcld by default for 32bit x86
1602 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1603 x86
1604 --disable-win32-registry
1605 disable lookup of installation paths in the Registry
1606 on Windows hosts
1607 --enable-win32-registry enable registry lookup (default)
1608 --enable-win32-registry=KEY
1609 use KEY instead of GCC version as the last portion
1610 of the registry key
1611 --enable-shared[=PKGS] build shared libraries [default=yes]
1612 --enable-static[=PKGS] build static libraries [default=yes]
1613 --enable-fast-install[=PKGS]
1614 optimize for fast installation [default=yes]
1615 --disable-libtool-lock avoid locking (might break parallel builds)
1616 --enable-gnu-indirect-function
1617 enable the use of the @gnu_indirect_function to
1618 glibc systems
1619 --enable-comdat enable COMDAT group support
1620 --enable-gnu-unique-object
1621 enable the use of the @gnu_unique_object ELF
1622 extension on glibc systems
1623 --enable-linker-build-id
1624 compiler will always pass --build-id to linker
1625 --enable-maintainer-mode
1626 enable make rules and dependencies not useful (and
1627 sometimes confusing) to the casual installer
1628 --enable-version-specific-runtime-libs
1629 specify that runtime libraries should be installed
1630 in a compiler-specific directory
1631 --enable-plugin enable plugin support
1632 --disable-libquadmath-support
1633 disable libquadmath support for Fortran
1634
1635 Optional Packages:
1636 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1637 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1638 --with-build-libsubdir=DIR Directory where to find libraries for build system
1639 --with-local-prefix=DIR specifies directory to put local include
1640 --with-gxx-include-dir=DIR
1641 specifies directory to put g++ header files
1642 --with-cpp-install-dir=DIR
1643 install the user visible C preprocessor in DIR
1644 (relative to PREFIX) as well as PREFIX/bin
1645 --with-gnu-ld arrange to work with GNU ld
1646 --with-ld arrange to use the specified ld (full pathname)
1647 --with-demangler-in-ld try to use demangler in GNU ld
1648 --with-gnu-as arrange to work with GNU as
1649 --with-as arrange to use the specified as (full pathname)
1650 --with-stabs arrange to use stabs instead of host debug format
1651 --with-dwarf2 force the default debug format to be DWARF 2
1652 --with-build-sysroot=sysroot
1653 use sysroot as the system root during the build
1654 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1655 --with-specs=SPECS add SPECS to driver command-line processing
1656 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1657 --with-bugurl=URL Direct users to URL to report a bug
1658 --with-multilib-list select multilibs (SH and x86-64 only)
1659 --with-gnu-ld assume the C compiler uses GNU ld default=no
1660 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1661 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1662 --with-pic try to use only PIC/non-PIC objects [default=use
1663 both]
1664 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1665 --with-plugin-ld=[ARG] specify the plugin linker
1666 --with-long-double-128 use 128-bit long double by default
1667 --with-gc={page,zone} choose the garbage collection mechanism to use with
1668 the compiler
1669 --with-system-zlib use installed libz
1670 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1671 --with-linker-hash-style={sysv,gnu,both}
1672 specify the linker hash style
1673
1674 Some influential environment variables:
1675 CC C compiler command
1676 CFLAGS C compiler flags
1677 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1678 nonstandard directory <lib dir>
1679 LIBS libraries to pass to the linker, e.g. -l<library>
1680 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1681 you have headers in a nonstandard directory <include dir>
1682 CXX C++ compiler command
1683 CXXFLAGS C++ compiler flags
1684 CPP C preprocessor
1685 CXXCPP C++ preprocessor
1686 GMPLIBS How to link GMP
1687 GMPINC How to find GMP include files
1688 PPLLIBS How to link PPL
1689 PPLINC How to find PPL include files
1690 CLOOGLIBS How to link CLOOG
1691 CLOOGINC How to find CLOOG include files
1692
1693 Use these variables to override the choices made by `configure' or to help
1694 it to find libraries and programs with nonstandard names/locations.
1695
1696 Report bugs to the package provider.
1697 _ACEOF
1698 ac_status=$?
1699 fi
1700
1701 if test "$ac_init_help" = "recursive"; then
1702 # If there are subdirs, report their specific --help.
1703 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1704 test -d "$ac_dir" ||
1705 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1706 continue
1707 ac_builddir=.
1708
1709 case "$ac_dir" in
1710 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1711 *)
1712 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1713 # A ".." for each directory in $ac_dir_suffix.
1714 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1715 case $ac_top_builddir_sub in
1716 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1717 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1718 esac ;;
1719 esac
1720 ac_abs_top_builddir=$ac_pwd
1721 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1722 # for backward compatibility:
1723 ac_top_builddir=$ac_top_build_prefix
1724
1725 case $srcdir in
1726 .) # We are building in place.
1727 ac_srcdir=.
1728 ac_top_srcdir=$ac_top_builddir_sub
1729 ac_abs_top_srcdir=$ac_pwd ;;
1730 [\\/]* | ?:[\\/]* ) # Absolute name.
1731 ac_srcdir=$srcdir$ac_dir_suffix;
1732 ac_top_srcdir=$srcdir
1733 ac_abs_top_srcdir=$srcdir ;;
1734 *) # Relative name.
1735 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1736 ac_top_srcdir=$ac_top_build_prefix$srcdir
1737 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1738 esac
1739 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1740
1741 cd "$ac_dir" || { ac_status=$?; continue; }
1742 # Check for guested configure.
1743 if test -f "$ac_srcdir/configure.gnu"; then
1744 echo &&
1745 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1746 elif test -f "$ac_srcdir/configure"; then
1747 echo &&
1748 $SHELL "$ac_srcdir/configure" --help=recursive
1749 else
1750 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1751 fi || ac_status=$?
1752 cd "$ac_pwd" || { ac_status=$?; break; }
1753 done
1754 fi
1755
1756 test -n "$ac_init_help" && exit $ac_status
1757 if $ac_init_version; then
1758 cat <<\_ACEOF
1759 configure
1760 generated by GNU Autoconf 2.64
1761
1762 Copyright (C) 2009 Free Software Foundation, Inc.
1763 This configure script is free software; the Free Software Foundation
1764 gives unlimited permission to copy, distribute and modify it.
1765 _ACEOF
1766 exit
1767 fi
1768
1769 ## ------------------------ ##
1770 ## Autoconf initialization. ##
1771 ## ------------------------ ##
1772
1773 # ac_fn_c_try_compile LINENO
1774 # --------------------------
1775 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1776 ac_fn_c_try_compile ()
1777 {
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 rm -f conftest.$ac_objext
1780 if { { ac_try="$ac_compile"
1781 case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_compile") 2>conftest.err
1788 ac_status=$?
1789 if test -s conftest.err; then
1790 grep -v '^ *+' conftest.err >conftest.er1
1791 cat conftest.er1 >&5
1792 mv -f conftest.er1 conftest.err
1793 fi
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; } && {
1796 test -z "$ac_c_werror_flag" ||
1797 test ! -s conftest.err
1798 } && test -s conftest.$ac_objext; then :
1799 ac_retval=0
1800 else
1801 $as_echo "$as_me: failed program was:" >&5
1802 sed 's/^/| /' conftest.$ac_ext >&5
1803
1804 ac_retval=1
1805 fi
1806 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1807 return $ac_retval
1808
1809 } # ac_fn_c_try_compile
1810
1811 # ac_fn_cxx_try_compile LINENO
1812 # ----------------------------
1813 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1814 ac_fn_cxx_try_compile ()
1815 {
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 rm -f conftest.$ac_objext
1818 if { { ac_try="$ac_compile"
1819 case "(($ac_try" in
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1822 esac
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_compile") 2>conftest.err
1826 ac_status=$?
1827 if test -s conftest.err; then
1828 grep -v '^ *+' conftest.err >conftest.er1
1829 cat conftest.er1 >&5
1830 mv -f conftest.er1 conftest.err
1831 fi
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } && {
1834 test -z "$ac_cxx_werror_flag" ||
1835 test ! -s conftest.err
1836 } && test -s conftest.$ac_objext; then :
1837 ac_retval=0
1838 else
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1841
1842 ac_retval=1
1843 fi
1844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1845 return $ac_retval
1846
1847 } # ac_fn_cxx_try_compile
1848
1849 # ac_fn_c_try_cpp LINENO
1850 # ----------------------
1851 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1852 ac_fn_c_try_cpp ()
1853 {
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 if { { ac_try="$ac_cpp conftest.$ac_ext"
1856 case "(($ac_try" in
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1859 esac
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1863 ac_status=$?
1864 if test -s conftest.err; then
1865 grep -v '^ *+' conftest.err >conftest.er1
1866 cat conftest.er1 >&5
1867 mv -f conftest.er1 conftest.err
1868 fi
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } >/dev/null && {
1871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1872 test ! -s conftest.err
1873 }; then :
1874 ac_retval=0
1875 else
1876 $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1878
1879 ac_retval=1
1880 fi
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1882 return $ac_retval
1883
1884 } # ac_fn_c_try_cpp
1885
1886 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1887 # -------------------------------------------------------
1888 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1889 # the include files in INCLUDES and setting the cache variable VAR
1890 # accordingly.
1891 ac_fn_c_check_header_mongrel ()
1892 {
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898 $as_echo_n "(cached) " >&6
1899 fi
1900 eval ac_res=\$$3
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903 else
1904 # Is the header compilable?
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1906 $as_echo_n "checking $2 usability... " >&6; }
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1909 $4
1910 #include <$2>
1911 _ACEOF
1912 if ac_fn_c_try_compile "$LINENO"; then :
1913 ac_header_compiler=yes
1914 else
1915 ac_header_compiler=no
1916 fi
1917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1919 $as_echo "$ac_header_compiler" >&6; }
1920
1921 # Is the header present?
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1923 $as_echo_n "checking $2 presence... " >&6; }
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1926 #include <$2>
1927 _ACEOF
1928 if ac_fn_c_try_cpp "$LINENO"; then :
1929 ac_header_preproc=yes
1930 else
1931 ac_header_preproc=no
1932 fi
1933 rm -f conftest.err conftest.$ac_ext
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1935 $as_echo "$ac_header_preproc" >&6; }
1936
1937 # So? What about this header?
1938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1939 yes:no: )
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1941 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1943 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1944 ;;
1945 no:yes:* )
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1947 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1949 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1951 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1953 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1955 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1956 ;;
1957 esac
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961 $as_echo_n "(cached) " >&6
1962 else
1963 eval "$3=\$ac_header_compiler"
1964 fi
1965 eval ac_res=\$$3
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 $as_echo "$ac_res" >&6; }
1968 fi
1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1970
1971 } # ac_fn_c_check_header_mongrel
1972
1973 # ac_fn_c_try_run LINENO
1974 # ----------------------
1975 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1976 # that executables *can* be run.
1977 ac_fn_c_try_run ()
1978 {
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 if { { ac_try="$ac_link"
1981 case "(($ac_try" in
1982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1983 *) ac_try_echo=$ac_try;;
1984 esac
1985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 $as_echo "$ac_try_echo"; } >&5
1987 (eval "$ac_link") 2>&5
1988 ac_status=$?
1989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1991 { { case "(($ac_try" in
1992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993 *) ac_try_echo=$ac_try;;
1994 esac
1995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996 $as_echo "$ac_try_echo"; } >&5
1997 (eval "$ac_try") 2>&5
1998 ac_status=$?
1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; }; }; then :
2001 ac_retval=0
2002 else
2003 $as_echo "$as_me: program exited with status $ac_status" >&5
2004 $as_echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.$ac_ext >&5
2006
2007 ac_retval=$ac_status
2008 fi
2009 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2010 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2011 return $ac_retval
2012
2013 } # ac_fn_c_try_run
2014
2015 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2016 # -------------------------------------------------------
2017 # Tests whether HEADER exists and can be compiled using the include files in
2018 # INCLUDES, setting the cache variable VAR accordingly.
2019 ac_fn_c_check_header_compile ()
2020 {
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023 $as_echo_n "checking for $2... " >&6; }
2024 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2025 $as_echo_n "(cached) " >&6
2026 else
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2029 $4
2030 #include <$2>
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033 eval "$3=yes"
2034 else
2035 eval "$3=no"
2036 fi
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 fi
2039 eval ac_res=\$$3
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2043
2044 } # ac_fn_c_check_header_compile
2045
2046 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2047 # --------------------------------------------
2048 # Tries to find the compile-time value of EXPR in a program that includes
2049 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2050 # computed
2051 ac_fn_c_compute_int ()
2052 {
2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054 if test "$cross_compiling" = yes; then
2055 # Depending upon the size, compute the lo and hi bounds.
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2058 $4
2059 int
2060 main ()
2061 {
2062 static int test_array [1 - 2 * !(($2) >= 0)];
2063 test_array [0] = 0
2064
2065 ;
2066 return 0;
2067 }
2068 _ACEOF
2069 if ac_fn_c_try_compile "$LINENO"; then :
2070 ac_lo=0 ac_mid=0
2071 while :; do
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2074 $4
2075 int
2076 main ()
2077 {
2078 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2079 test_array [0] = 0
2080
2081 ;
2082 return 0;
2083 }
2084 _ACEOF
2085 if ac_fn_c_try_compile "$LINENO"; then :
2086 ac_hi=$ac_mid; break
2087 else
2088 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2089 if test $ac_lo -le $ac_mid; then
2090 ac_lo= ac_hi=
2091 break
2092 fi
2093 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2094 fi
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096 done
2097 else
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2100 $4
2101 int
2102 main ()
2103 {
2104 static int test_array [1 - 2 * !(($2) < 0)];
2105 test_array [0] = 0
2106
2107 ;
2108 return 0;
2109 }
2110 _ACEOF
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112 ac_hi=-1 ac_mid=-1
2113 while :; do
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2116 $4
2117 int
2118 main ()
2119 {
2120 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2121 test_array [0] = 0
2122
2123 ;
2124 return 0;
2125 }
2126 _ACEOF
2127 if ac_fn_c_try_compile "$LINENO"; then :
2128 ac_lo=$ac_mid; break
2129 else
2130 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2131 if test $ac_mid -le $ac_hi; then
2132 ac_lo= ac_hi=
2133 break
2134 fi
2135 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2136 fi
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 done
2139 else
2140 ac_lo= ac_hi=
2141 fi
2142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143 fi
2144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145 # Binary search between lo and hi bounds.
2146 while test "x$ac_lo" != "x$ac_hi"; do
2147 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2150 $4
2151 int
2152 main ()
2153 {
2154 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2155 test_array [0] = 0
2156
2157 ;
2158 return 0;
2159 }
2160 _ACEOF
2161 if ac_fn_c_try_compile "$LINENO"; then :
2162 ac_hi=$ac_mid
2163 else
2164 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2165 fi
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 done
2168 case $ac_lo in #((
2169 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2170 '') ac_retval=1 ;;
2171 esac
2172 else
2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h. */
2175 $4
2176 static long int longval () { return $2; }
2177 static unsigned long int ulongval () { return $2; }
2178 #include <stdio.h>
2179 #include <stdlib.h>
2180 int
2181 main ()
2182 {
2183
2184 FILE *f = fopen ("conftest.val", "w");
2185 if (! f)
2186 return 1;
2187 if (($2) < 0)
2188 {
2189 long int i = longval ();
2190 if (i != ($2))
2191 return 1;
2192 fprintf (f, "%ld", i);
2193 }
2194 else
2195 {
2196 unsigned long int i = ulongval ();
2197 if (i != ($2))
2198 return 1;
2199 fprintf (f, "%lu", i);
2200 }
2201 /* Do not output a trailing newline, as this causes \r\n confusion
2202 on some platforms. */
2203 return ferror (f) || fclose (f) != 0;
2204
2205 ;
2206 return 0;
2207 }
2208 _ACEOF
2209 if ac_fn_c_try_run "$LINENO"; then :
2210 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2211 else
2212 ac_retval=1
2213 fi
2214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2215 conftest.$ac_objext conftest.beam conftest.$ac_ext
2216 rm -f conftest.val
2217
2218 fi
2219 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2220 return $ac_retval
2221
2222 } # ac_fn_c_compute_int
2223
2224 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2225 # -------------------------------------------
2226 # Tests whether TYPE exists after having included INCLUDES, setting cache
2227 # variable VAR accordingly.
2228 ac_fn_c_check_type ()
2229 {
2230 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2232 $as_echo_n "checking for $2... " >&6; }
2233 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2234 $as_echo_n "(cached) " >&6
2235 else
2236 eval "$3=no"
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2239 $4
2240 int
2241 main ()
2242 {
2243 if (sizeof ($2))
2244 return 0;
2245 ;
2246 return 0;
2247 }
2248 _ACEOF
2249 if ac_fn_c_try_compile "$LINENO"; then :
2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h. */
2252 $4
2253 int
2254 main ()
2255 {
2256 if (sizeof (($2)))
2257 return 0;
2258 ;
2259 return 0;
2260 }
2261 _ACEOF
2262 if ac_fn_c_try_compile "$LINENO"; then :
2263
2264 else
2265 eval "$3=yes"
2266 fi
2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 fi
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 fi
2271 eval ac_res=\$$3
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273 $as_echo "$ac_res" >&6; }
2274 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2275
2276 } # ac_fn_c_check_type
2277
2278 # ac_fn_c_find_intX_t LINENO BITS VAR
2279 # -----------------------------------
2280 # Finds a signed integer type with width BITS, setting cache variable VAR
2281 # accordingly.
2282 ac_fn_c_find_intX_t ()
2283 {
2284 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2286 $as_echo_n "checking for int$2_t... " >&6; }
2287 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2288 $as_echo_n "(cached) " >&6
2289 else
2290 eval "$3=no"
2291 for ac_type in int$2_t 'int' 'long int' \
2292 'long long int' 'short int' 'signed char'; do
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2295 $ac_includes_default
2296 int
2297 main ()
2298 {
2299 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2300 test_array [0] = 0
2301
2302 ;
2303 return 0;
2304 }
2305 _ACEOF
2306 if ac_fn_c_try_compile "$LINENO"; then :
2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2309 $ac_includes_default
2310 int
2311 main ()
2312 {
2313 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2314 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2315 test_array [0] = 0
2316
2317 ;
2318 return 0;
2319 }
2320 _ACEOF
2321 if ac_fn_c_try_compile "$LINENO"; then :
2322
2323 else
2324 case $ac_type in #(
2325 int$2_t) :
2326 eval "$3=yes" ;; #(
2327 *) :
2328 eval "$3=\$ac_type" ;;
2329 esac
2330 fi
2331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2332 fi
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 eval as_val=\$$3
2335 if test "x$as_val" = x""no; then :
2336
2337 else
2338 break
2339 fi
2340 done
2341 fi
2342 eval ac_res=\$$3
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2344 $as_echo "$ac_res" >&6; }
2345 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2346
2347 } # ac_fn_c_find_intX_t
2348
2349 # ac_fn_c_try_link LINENO
2350 # -----------------------
2351 # Try to link conftest.$ac_ext, and return whether this succeeded.
2352 ac_fn_c_try_link ()
2353 {
2354 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2355 rm -f conftest.$ac_objext conftest$ac_exeext
2356 if { { ac_try="$ac_link"
2357 case "(($ac_try" in
2358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2359 *) ac_try_echo=$ac_try;;
2360 esac
2361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2362 $as_echo "$ac_try_echo"; } >&5
2363 (eval "$ac_link") 2>conftest.err
2364 ac_status=$?
2365 if test -s conftest.err; then
2366 grep -v '^ *+' conftest.err >conftest.er1
2367 cat conftest.er1 >&5
2368 mv -f conftest.er1 conftest.err
2369 fi
2370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2371 test $ac_status = 0; } && {
2372 test -z "$ac_c_werror_flag" ||
2373 test ! -s conftest.err
2374 } && test -s conftest$ac_exeext && {
2375 test "$cross_compiling" = yes ||
2376 $as_test_x conftest$ac_exeext
2377 }; then :
2378 ac_retval=0
2379 else
2380 $as_echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2382
2383 ac_retval=1
2384 fi
2385 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2386 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2387 # interfere with the next link command; also delete a directory that is
2388 # left behind by Apple's compiler. We do this before executing the actions.
2389 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2390 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2391 return $ac_retval
2392
2393 } # ac_fn_c_try_link
2394
2395 # ac_fn_c_find_uintX_t LINENO BITS VAR
2396 # ------------------------------------
2397 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2398 # accordingly.
2399 ac_fn_c_find_uintX_t ()
2400 {
2401 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2403 $as_echo_n "checking for uint$2_t... " >&6; }
2404 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2405 $as_echo_n "(cached) " >&6
2406 else
2407 eval "$3=no"
2408 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2409 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h. */
2412 $ac_includes_default
2413 int
2414 main ()
2415 {
2416 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2417 test_array [0] = 0
2418
2419 ;
2420 return 0;
2421 }
2422 _ACEOF
2423 if ac_fn_c_try_compile "$LINENO"; then :
2424 case $ac_type in #(
2425 uint$2_t) :
2426 eval "$3=yes" ;; #(
2427 *) :
2428 eval "$3=\$ac_type" ;;
2429 esac
2430 fi
2431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2432 eval as_val=\$$3
2433 if test "x$as_val" = x""no; then :
2434
2435 else
2436 break
2437 fi
2438 done
2439 fi
2440 eval ac_res=\$$3
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2442 $as_echo "$ac_res" >&6; }
2443 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2444
2445 } # ac_fn_c_find_uintX_t
2446
2447 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2448 # ----------------------------------------------
2449 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2450 ac_fn_c_check_header_preproc ()
2451 {
2452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2454 $as_echo_n "checking for $2... " >&6; }
2455 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2456 $as_echo_n "(cached) " >&6
2457 else
2458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2459 /* end confdefs.h. */
2460 #include <$2>
2461 _ACEOF
2462 if ac_fn_c_try_cpp "$LINENO"; then :
2463 eval "$3=yes"
2464 else
2465 eval "$3=no"
2466 fi
2467 rm -f conftest.err conftest.$ac_ext
2468 fi
2469 eval ac_res=\$$3
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2471 $as_echo "$ac_res" >&6; }
2472 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2473
2474 } # ac_fn_c_check_header_preproc
2475
2476 # ac_fn_cxx_try_cpp LINENO
2477 # ------------------------
2478 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2479 ac_fn_cxx_try_cpp ()
2480 {
2481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2482 if { { ac_try="$ac_cpp conftest.$ac_ext"
2483 case "(($ac_try" in
2484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485 *) ac_try_echo=$ac_try;;
2486 esac
2487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2488 $as_echo "$ac_try_echo"; } >&5
2489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2490 ac_status=$?
2491 if test -s conftest.err; then
2492 grep -v '^ *+' conftest.err >conftest.er1
2493 cat conftest.er1 >&5
2494 mv -f conftest.er1 conftest.err
2495 fi
2496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2497 test $ac_status = 0; } >/dev/null && {
2498 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2499 test ! -s conftest.err
2500 }; then :
2501 ac_retval=0
2502 else
2503 $as_echo "$as_me: failed program was:" >&5
2504 sed 's/^/| /' conftest.$ac_ext >&5
2505
2506 ac_retval=1
2507 fi
2508 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2509 return $ac_retval
2510
2511 } # ac_fn_cxx_try_cpp
2512
2513 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2514 # ------------------------------------------------
2515 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2516 ac_fn_cxx_check_header_preproc ()
2517 {
2518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2520 $as_echo_n "checking for $2... " >&6; }
2521 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2522 $as_echo_n "(cached) " >&6
2523 else
2524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2525 /* end confdefs.h. */
2526 #include <$2>
2527 _ACEOF
2528 if ac_fn_cxx_try_cpp "$LINENO"; then :
2529 eval "$3=yes"
2530 else
2531 eval "$3=no"
2532 fi
2533 rm -f conftest.err conftest.$ac_ext
2534 fi
2535 eval ac_res=\$$3
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2537 $as_echo "$ac_res" >&6; }
2538 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2539
2540 } # ac_fn_cxx_check_header_preproc
2541
2542 # ac_fn_c_check_func LINENO FUNC VAR
2543 # ----------------------------------
2544 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2545 ac_fn_c_check_func ()
2546 {
2547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2549 $as_echo_n "checking for $2... " >&6; }
2550 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2551 $as_echo_n "(cached) " >&6
2552 else
2553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h. */
2555 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2557 #define $2 innocuous_$2
2558
2559 /* System header to define __stub macros and hopefully few prototypes,
2560 which can conflict with char $2 (); below.
2561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2562 <limits.h> exists even on freestanding compilers. */
2563
2564 #ifdef __STDC__
2565 # include <limits.h>
2566 #else
2567 # include <assert.h>
2568 #endif
2569
2570 #undef $2
2571
2572 /* Override any GCC internal prototype to avoid an error.
2573 Use char because int might match the return type of a GCC
2574 builtin and then its argument prototype would still apply. */
2575 #ifdef __cplusplus
2576 extern "C"
2577 #endif
2578 char $2 ();
2579 /* The GNU C library defines this for functions which it implements
2580 to always fail with ENOSYS. Some functions are actually named
2581 something starting with __ and the normal name is an alias. */
2582 #if defined __stub_$2 || defined __stub___$2
2583 choke me
2584 #endif
2585
2586 int
2587 main ()
2588 {
2589 return $2 ();
2590 ;
2591 return 0;
2592 }
2593 _ACEOF
2594 if ac_fn_c_try_link "$LINENO"; then :
2595 eval "$3=yes"
2596 else
2597 eval "$3=no"
2598 fi
2599 rm -f core conftest.err conftest.$ac_objext \
2600 conftest$ac_exeext conftest.$ac_ext
2601 fi
2602 eval ac_res=\$$3
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2604 $as_echo "$ac_res" >&6; }
2605 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2606
2607 } # ac_fn_c_check_func
2608
2609 # ac_fn_cxx_try_link LINENO
2610 # -------------------------
2611 # Try to link conftest.$ac_ext, and return whether this succeeded.
2612 ac_fn_cxx_try_link ()
2613 {
2614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2615 rm -f conftest.$ac_objext conftest$ac_exeext
2616 if { { ac_try="$ac_link"
2617 case "(($ac_try" in
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2620 esac
2621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2622 $as_echo "$ac_try_echo"; } >&5
2623 (eval "$ac_link") 2>conftest.err
2624 ac_status=$?
2625 if test -s conftest.err; then
2626 grep -v '^ *+' conftest.err >conftest.er1
2627 cat conftest.er1 >&5
2628 mv -f conftest.er1 conftest.err
2629 fi
2630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2631 test $ac_status = 0; } && {
2632 test -z "$ac_cxx_werror_flag" ||
2633 test ! -s conftest.err
2634 } && test -s conftest$ac_exeext && {
2635 test "$cross_compiling" = yes ||
2636 $as_test_x conftest$ac_exeext
2637 }; then :
2638 ac_retval=0
2639 else
2640 $as_echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2642
2643 ac_retval=1
2644 fi
2645 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2646 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2647 # interfere with the next link command; also delete a directory that is
2648 # left behind by Apple's compiler. We do this before executing the actions.
2649 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2650 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2651 return $ac_retval
2652
2653 } # ac_fn_cxx_try_link
2654 cat >config.log <<_ACEOF
2655 This file contains any messages produced by compilers while
2656 running configure, to aid debugging if configure makes a mistake.
2657
2658 It was created by $as_me, which was
2659 generated by GNU Autoconf 2.64. Invocation command line was
2660
2661 $ $0 $@
2662
2663 _ACEOF
2664 exec 5>>config.log
2665 {
2666 cat <<_ASUNAME
2667 ## --------- ##
2668 ## Platform. ##
2669 ## --------- ##
2670
2671 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2672 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2673 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2674 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2675 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2676
2677 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2678 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2679
2680 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2681 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2682 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2683 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2684 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2685 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2686 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2687
2688 _ASUNAME
2689
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 $as_echo "PATH: $as_dir"
2696 done
2697 IFS=$as_save_IFS
2698
2699 } >&5
2700
2701 cat >&5 <<_ACEOF
2702
2703
2704 ## ----------- ##
2705 ## Core tests. ##
2706 ## ----------- ##
2707
2708 _ACEOF
2709
2710
2711 # Keep a trace of the command line.
2712 # Strip out --no-create and --no-recursion so they do not pile up.
2713 # Strip out --silent because we don't want to record it for future runs.
2714 # Also quote any args containing shell meta-characters.
2715 # Make two passes to allow for proper duplicate-argument suppression.
2716 ac_configure_args=
2717 ac_configure_args0=
2718 ac_configure_args1=
2719 ac_must_keep_next=false
2720 for ac_pass in 1 2
2721 do
2722 for ac_arg
2723 do
2724 case $ac_arg in
2725 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2726 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2727 | -silent | --silent | --silen | --sile | --sil)
2728 continue ;;
2729 *\'*)
2730 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2731 esac
2732 case $ac_pass in
2733 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2734 2)
2735 as_fn_append ac_configure_args1 " '$ac_arg'"
2736 if test $ac_must_keep_next = true; then
2737 ac_must_keep_next=false # Got value, back to normal.
2738 else
2739 case $ac_arg in
2740 *=* | --config-cache | -C | -disable-* | --disable-* \
2741 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2742 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2743 | -with-* | --with-* | -without-* | --without-* | --x)
2744 case "$ac_configure_args0 " in
2745 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2746 esac
2747 ;;
2748 -* ) ac_must_keep_next=true ;;
2749 esac
2750 fi
2751 as_fn_append ac_configure_args " '$ac_arg'"
2752 ;;
2753 esac
2754 done
2755 done
2756 { ac_configure_args0=; unset ac_configure_args0;}
2757 { ac_configure_args1=; unset ac_configure_args1;}
2758
2759 # When interrupted or exit'd, cleanup temporary files, and complete
2760 # config.log. We remove comments because anyway the quotes in there
2761 # would cause problems or look ugly.
2762 # WARNING: Use '\'' to represent an apostrophe within the trap.
2763 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2764 trap 'exit_status=$?
2765 # Save into config.log some information that might help in debugging.
2766 {
2767 echo
2768
2769 cat <<\_ASBOX
2770 ## ---------------- ##
2771 ## Cache variables. ##
2772 ## ---------------- ##
2773 _ASBOX
2774 echo
2775 # The following way of writing the cache mishandles newlines in values,
2776 (
2777 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2778 eval ac_val=\$$ac_var
2779 case $ac_val in #(
2780 *${as_nl}*)
2781 case $ac_var in #(
2782 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2783 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2784 esac
2785 case $ac_var in #(
2786 _ | IFS | as_nl) ;; #(
2787 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2788 *) { eval $ac_var=; unset $ac_var;} ;;
2789 esac ;;
2790 esac
2791 done
2792 (set) 2>&1 |
2793 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2794 *${as_nl}ac_space=\ *)
2795 sed -n \
2796 "s/'\''/'\''\\\\'\'''\''/g;
2797 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2798 ;; #(
2799 *)
2800 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2801 ;;
2802 esac |
2803 sort
2804 )
2805 echo
2806
2807 cat <<\_ASBOX
2808 ## ----------------- ##
2809 ## Output variables. ##
2810 ## ----------------- ##
2811 _ASBOX
2812 echo
2813 for ac_var in $ac_subst_vars
2814 do
2815 eval ac_val=\$$ac_var
2816 case $ac_val in
2817 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2818 esac
2819 $as_echo "$ac_var='\''$ac_val'\''"
2820 done | sort
2821 echo
2822
2823 if test -n "$ac_subst_files"; then
2824 cat <<\_ASBOX
2825 ## ------------------- ##
2826 ## File substitutions. ##
2827 ## ------------------- ##
2828 _ASBOX
2829 echo
2830 for ac_var in $ac_subst_files
2831 do
2832 eval ac_val=\$$ac_var
2833 case $ac_val in
2834 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2835 esac
2836 $as_echo "$ac_var='\''$ac_val'\''"
2837 done | sort
2838 echo
2839 fi
2840
2841 if test -s confdefs.h; then
2842 cat <<\_ASBOX
2843 ## ----------- ##
2844 ## confdefs.h. ##
2845 ## ----------- ##
2846 _ASBOX
2847 echo
2848 cat confdefs.h
2849 echo
2850 fi
2851 test "$ac_signal" != 0 &&
2852 $as_echo "$as_me: caught signal $ac_signal"
2853 $as_echo "$as_me: exit $exit_status"
2854 } >&5
2855 rm -f core *.core core.conftest.* &&
2856 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2857 exit $exit_status
2858 ' 0
2859 for ac_signal in 1 2 13 15; do
2860 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2861 done
2862 ac_signal=0
2863
2864 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2865 rm -f -r conftest* confdefs.h
2866
2867 $as_echo "/* confdefs.h */" > confdefs.h
2868
2869 # Predefined preprocessor variables.
2870
2871 cat >>confdefs.h <<_ACEOF
2872 #define PACKAGE_NAME "$PACKAGE_NAME"
2873 _ACEOF
2874
2875 cat >>confdefs.h <<_ACEOF
2876 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2877 _ACEOF
2878
2879 cat >>confdefs.h <<_ACEOF
2880 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2881 _ACEOF
2882
2883 cat >>confdefs.h <<_ACEOF
2884 #define PACKAGE_STRING "$PACKAGE_STRING"
2885 _ACEOF
2886
2887 cat >>confdefs.h <<_ACEOF
2888 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2889 _ACEOF
2890
2891 cat >>confdefs.h <<_ACEOF
2892 #define PACKAGE_URL "$PACKAGE_URL"
2893 _ACEOF
2894
2895
2896 # Let the site file select an alternate cache file if it wants to.
2897 # Prefer an explicitly selected file to automatically selected ones.
2898 ac_site_file1=NONE
2899 ac_site_file2=NONE
2900 if test -n "$CONFIG_SITE"; then
2901 ac_site_file1=$CONFIG_SITE
2902 elif test "x$prefix" != xNONE; then
2903 ac_site_file1=$prefix/share/config.site
2904 ac_site_file2=$prefix/etc/config.site
2905 else
2906 ac_site_file1=$ac_default_prefix/share/config.site
2907 ac_site_file2=$ac_default_prefix/etc/config.site
2908 fi
2909 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2910 do
2911 test "x$ac_site_file" = xNONE && continue
2912 if test -r "$ac_site_file"; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2914 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2915 sed 's/^/| /' "$ac_site_file" >&5
2916 . "$ac_site_file"
2917 fi
2918 done
2919
2920 if test -r "$cache_file"; then
2921 # Some versions of bash will fail to source /dev/null (special
2922 # files actually), so we avoid doing that.
2923 if test -f "$cache_file"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2925 $as_echo "$as_me: loading cache $cache_file" >&6;}
2926 case $cache_file in
2927 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2928 *) . "./$cache_file";;
2929 esac
2930 fi
2931 else
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2933 $as_echo "$as_me: creating cache $cache_file" >&6;}
2934 >$cache_file
2935 fi
2936
2937 # Check that the precious variables saved in the cache have kept the same
2938 # value.
2939 ac_cache_corrupted=false
2940 for ac_var in $ac_precious_vars; do
2941 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2942 eval ac_new_set=\$ac_env_${ac_var}_set
2943 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2944 eval ac_new_val=\$ac_env_${ac_var}_value
2945 case $ac_old_set,$ac_new_set in
2946 set,)
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2948 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2949 ac_cache_corrupted=: ;;
2950 ,set)
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2952 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2953 ac_cache_corrupted=: ;;
2954 ,);;
2955 *)
2956 if test "x$ac_old_val" != "x$ac_new_val"; then
2957 # differences in whitespace do not lead to failure.
2958 ac_old_val_w=`echo x $ac_old_val`
2959 ac_new_val_w=`echo x $ac_new_val`
2960 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2962 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2963 ac_cache_corrupted=:
2964 else
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2966 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2967 eval $ac_var=\$ac_old_val
2968 fi
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2970 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2972 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2973 fi;;
2974 esac
2975 # Pass precious variables to config.status.
2976 if test "$ac_new_set" = set; then
2977 case $ac_new_val in
2978 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2979 *) ac_arg=$ac_var=$ac_new_val ;;
2980 esac
2981 case " $ac_configure_args " in
2982 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2983 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2984 esac
2985 fi
2986 done
2987 if $ac_cache_corrupted; then
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2991 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2992 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2993 fi
2994 ## -------------------- ##
2995 ## Main body of script. ##
2996 ## -------------------- ##
2997
2998 ac_ext=c
2999 ac_cpp='$CPP $CPPFLAGS'
3000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3003
3004
3005
3006
3007
3008
3009 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3010
3011
3012 gcc_version=`cat $srcdir/BASE-VER`
3013
3014 # Determine the host, build, and target systems
3015 ac_aux_dir=
3016 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3017 for ac_t in install-sh install.sh shtool; do
3018 if test -f "$ac_dir/$ac_t"; then
3019 ac_aux_dir=$ac_dir
3020 ac_install_sh="$ac_aux_dir/$ac_t -c"
3021 break 2
3022 fi
3023 done
3024 done
3025 if test -z "$ac_aux_dir"; then
3026 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3027 fi
3028
3029 # These three variables are undocumented and unsupported,
3030 # and are intended to be withdrawn in a future Autoconf release.
3031 # They can cause serious problems if a builder's source tree is in a directory
3032 # whose full name contains unusual characters.
3033 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3034 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3035 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3036
3037
3038 # Make sure we can run config.sub.
3039 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3040 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3041
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3043 $as_echo_n "checking build system type... " >&6; }
3044 if test "${ac_cv_build+set}" = set; then :
3045 $as_echo_n "(cached) " >&6
3046 else
3047 ac_build_alias=$build_alias
3048 test "x$ac_build_alias" = x &&
3049 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3050 test "x$ac_build_alias" = x &&
3051 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3052 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3053 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3054
3055 fi
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3057 $as_echo "$ac_cv_build" >&6; }
3058 case $ac_cv_build in
3059 *-*-*) ;;
3060 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3061 esac
3062 build=$ac_cv_build
3063 ac_save_IFS=$IFS; IFS='-'
3064 set x $ac_cv_build
3065 shift
3066 build_cpu=$1
3067 build_vendor=$2
3068 shift; shift
3069 # Remember, the first character of IFS is used to create $*,
3070 # except with old shells:
3071 build_os=$*
3072 IFS=$ac_save_IFS
3073 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3074
3075
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3077 $as_echo_n "checking host system type... " >&6; }
3078 if test "${ac_cv_host+set}" = set; then :
3079 $as_echo_n "(cached) " >&6
3080 else
3081 if test "x$host_alias" = x; then
3082 ac_cv_host=$ac_cv_build
3083 else
3084 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3085 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3086 fi
3087
3088 fi
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3090 $as_echo "$ac_cv_host" >&6; }
3091 case $ac_cv_host in
3092 *-*-*) ;;
3093 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3094 esac
3095 host=$ac_cv_host
3096 ac_save_IFS=$IFS; IFS='-'
3097 set x $ac_cv_host
3098 shift
3099 host_cpu=$1
3100 host_vendor=$2
3101 shift; shift
3102 # Remember, the first character of IFS is used to create $*,
3103 # except with old shells:
3104 host_os=$*
3105 IFS=$ac_save_IFS
3106 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3107
3108
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3110 $as_echo_n "checking target system type... " >&6; }
3111 if test "${ac_cv_target+set}" = set; then :
3112 $as_echo_n "(cached) " >&6
3113 else
3114 if test "x$target_alias" = x; then
3115 ac_cv_target=$ac_cv_host
3116 else
3117 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3118 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3119 fi
3120
3121 fi
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3123 $as_echo "$ac_cv_target" >&6; }
3124 case $ac_cv_target in
3125 *-*-*) ;;
3126 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3127 esac
3128 target=$ac_cv_target
3129 ac_save_IFS=$IFS; IFS='-'
3130 set x $ac_cv_target
3131 shift
3132 target_cpu=$1
3133 target_vendor=$2
3134 shift; shift
3135 # Remember, the first character of IFS is used to create $*,
3136 # except with old shells:
3137 target_os=$*
3138 IFS=$ac_save_IFS
3139 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3140
3141
3142 # The aliases save the names the user supplied, while $host etc.
3143 # will get canonicalized.
3144 test -n "$target_alias" &&
3145 test "$program_prefix$program_suffix$program_transform_name" = \
3146 NONENONEs,x,x, &&
3147 program_prefix=${target_alias}-
3148
3149 # Determine the noncanonical target name, for directory use.
3150 case ${build_alias} in
3151 "") build_noncanonical=${build} ;;
3152 *) build_noncanonical=${build_alias} ;;
3153 esac
3154
3155 case ${host_alias} in
3156 "") host_noncanonical=${build_noncanonical} ;;
3157 *) host_noncanonical=${host_alias} ;;
3158 esac
3159
3160 case ${target_alias} in
3161 "") target_noncanonical=${host_noncanonical} ;;
3162 *) target_noncanonical=${target_alias} ;;
3163 esac
3164
3165
3166
3167
3168 # Determine the target- and build-specific subdirectories
3169
3170 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3171 # have matching libraries, they should use host libraries: Makefile.tpl
3172 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3173 # However, they still use the build modules, because the corresponding
3174 # host modules (e.g. bison) are only built for the host when bootstrap
3175 # finishes. So:
3176 # - build_subdir is where we find build modules, and never changes.
3177 # - build_libsubdir is where we find build libraries, and can be overridden.
3178
3179 # Prefix 'build-' so this never conflicts with target_subdir.
3180 build_subdir="build-${build_noncanonical}"
3181
3182 # Check whether --with-build-libsubdir was given.
3183 if test "${with_build_libsubdir+set}" = set; then :
3184 withval=$with_build_libsubdir; build_libsubdir="$withval"
3185 else
3186 build_libsubdir="$build_subdir"
3187 fi
3188
3189 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3190 if ( test $srcdir = . && test -d gcc ) \
3191 || test -d $srcdir/../host-${host_noncanonical}; then
3192 host_subdir="host-${host_noncanonical}"
3193 else
3194 host_subdir=.
3195 fi
3196 # No prefix.
3197 target_subdir=${target_noncanonical}
3198
3199
3200 # Set program_transform_name
3201 test "$program_prefix" != NONE &&
3202 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3203 # Use a double $ so make ignores it.
3204 test "$program_suffix" != NONE &&
3205 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3206 # Double any \ or $.
3207 # By default was `s,x,x', remove it if useless.
3208 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3209 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3210
3211
3212 # Check for bogus environment variables.
3213 # Test if LIBRARY_PATH contains the notation for the current directory
3214 # since this would lead to problems installing/building glibc.
3215 # LIBRARY_PATH contains the current directory if one of the following
3216 # is true:
3217 # - one of the terminals (":" and ";") is the first or last sign
3218 # - two terminals occur directly after each other
3219 # - the path contains an element with a dot in it
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3221 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3222 case ${LIBRARY_PATH} in
3223 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3224 library_path_setting="contains current directory"
3225 ;;
3226 *)
3227 library_path_setting="ok"
3228 ;;
3229 esac
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3231 $as_echo "$library_path_setting" >&6; }
3232 if test "$library_path_setting" != "ok"; then
3233 as_fn_error "
3234 *** LIBRARY_PATH shouldn't contain the current directory when
3235 *** building gcc. Please change the environment variable
3236 *** and run configure again." "$LINENO" 5
3237 fi
3238
3239 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3240 # since this would lead to problems installing/building glibc.
3241 # GCC_EXEC_PREFIX contains the current directory if one of the following
3242 # is true:
3243 # - one of the terminals (":" and ";") is the first or last sign
3244 # - two terminals occur directly after each other
3245 # - the path contains an element with a dot in it
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3247 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3248 case ${GCC_EXEC_PREFIX} in
3249 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3250 gcc_exec_prefix_setting="contains current directory"
3251 ;;
3252 *)
3253 gcc_exec_prefix_setting="ok"
3254 ;;
3255 esac
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3257 $as_echo "$gcc_exec_prefix_setting" >&6; }
3258 if test "$gcc_exec_prefix_setting" != "ok"; then
3259 as_fn_error "
3260 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3261 *** building gcc. Please change the environment variable
3262 *** and run configure again." "$LINENO" 5
3263 fi
3264
3265 # -----------
3266 # Directories
3267 # -----------
3268
3269 # Specify the local prefix
3270 local_prefix=
3271
3272 # Check whether --with-local-prefix was given.
3273 if test "${with_local_prefix+set}" = set; then :
3274 withval=$with_local_prefix; case "${withval}" in
3275 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3276 no) ;;
3277 *) local_prefix=$with_local_prefix ;;
3278 esac
3279 fi
3280
3281
3282 # Default local prefix if it is empty
3283 if test x$local_prefix = x; then
3284 local_prefix=/usr/local
3285 fi
3286
3287 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3288 # passed in by the toplevel make and thus we'd get different behavior
3289 # depending on where we built the sources.
3290 gcc_gxx_include_dir=
3291 # Specify the g++ header file directory
3292
3293 # Check whether --with-gxx-include-dir was given.
3294 if test "${with_gxx_include_dir+set}" = set; then :
3295 withval=$with_gxx_include_dir; case "${withval}" in
3296 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3297 no) ;;
3298 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3299 esac
3300 fi
3301
3302
3303 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3304 if test x${gcc_gxx_include_dir} = x; then
3305 if test x${enable_version_specific_runtime_libs} = xyes; then
3306 gcc_gxx_include_dir='${libsubdir}/include/c++'
3307 else
3308 libstdcxx_incdir='include/c++/$(version)'
3309 if test x$host != x$target; then
3310 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3311 fi
3312 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3313 fi
3314 fi
3315
3316
3317 # Check whether --with-cpp_install_dir was given.
3318 if test "${with_cpp_install_dir+set}" = set; then :
3319 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3320 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3321 elif test x$withval != xno; then
3322 cpp_install_dir=$withval
3323 fi
3324 fi
3325
3326
3327 # We would like to our source tree to be readonly. However when releases or
3328 # pre-releases are generated, the flex/bison generated files as well as the
3329 # various formats of manuals need to be included along with the rest of the
3330 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3331 # just that.
3332
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3334 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3335 # Check whether --enable-generated-files-in-srcdir was given.
3336 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3337 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3338 else
3339 generated_files_in_srcdir=no
3340 fi
3341
3342
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3344 $as_echo "$generated_files_in_srcdir" >&6; }
3345
3346 if test "$generated_files_in_srcdir" = "yes"; then
3347 GENINSRC=''
3348 else
3349 GENINSRC='#'
3350 fi
3351
3352
3353 # -------------------
3354 # Find default linker
3355 # -------------------
3356
3357 # With GNU ld
3358
3359 # Check whether --with-gnu-ld was given.
3360 if test "${with_gnu_ld+set}" = set; then :
3361 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3362 else
3363 gnu_ld_flag=no
3364 fi
3365
3366
3367 # With pre-defined ld
3368
3369 # Check whether --with-ld was given.
3370 if test "${with_ld+set}" = set; then :
3371 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3372 fi
3373
3374 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3375 if test ! -x "$DEFAULT_LINKER"; then
3376 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3377 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3378 gnu_ld_flag=yes
3379 fi
3380
3381 cat >>confdefs.h <<_ACEOF
3382 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3383 _ACEOF
3384
3385 fi
3386
3387 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3388
3389 cat >>confdefs.h <<_ACEOF
3390 #define HAVE_GNU_LD $gnu_ld
3391 _ACEOF
3392
3393
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3395 $as_echo_n "checking whether a default linker was specified... " >&6; }
3396 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3397 if test x"$gnu_ld_flag" = x"no"; then
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3399 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3400 else
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3402 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3403 fi
3404 else
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 $as_echo "no" >&6; }
3407 fi
3408
3409 # With demangler in GNU ld
3410
3411 # Check whether --with-demangler-in-ld was given.
3412 if test "${with_demangler_in_ld+set}" = set; then :
3413 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3414 else
3415 demangler_in_ld=yes
3416 fi
3417
3418
3419 # ----------------------
3420 # Find default assembler
3421 # ----------------------
3422
3423 # With GNU as
3424
3425 # Check whether --with-gnu-as was given.
3426 if test "${with_gnu_as+set}" = set; then :
3427 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3428 else
3429 gas_flag=no
3430 fi
3431
3432
3433
3434 # Check whether --with-as was given.
3435 if test "${with_as+set}" = set; then :
3436 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3437 fi
3438
3439 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3440 if test ! -x "$DEFAULT_ASSEMBLER"; then
3441 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3442 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3443 gas_flag=yes
3444 fi
3445
3446 cat >>confdefs.h <<_ACEOF
3447 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3448 _ACEOF
3449
3450 fi
3451
3452 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3453
3454 cat >>confdefs.h <<_ACEOF
3455 #define HAVE_GNU_AS $gnu_as
3456 _ACEOF
3457
3458
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3460 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3461 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3462 if test x"$gas_flag" = x"no"; then
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3464 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3465 else
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3467 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3468 fi
3469 else
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 $as_echo "no" >&6; }
3472 fi
3473
3474 # ---------------
3475 # Find C compiler
3476 # ---------------
3477
3478 # If a non-executable a.out is present (e.g. created by GNU as above even if
3479 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3480 # file, even when creating an executable, so an execution test fails.
3481 # Remove possible default executable files to avoid this.
3482 #
3483 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3484 # Autoconf includes it.
3485 rm -f a.out a.exe b.out
3486
3487 # Find the native compiler
3488 ac_ext=c
3489 ac_cpp='$CPP $CPPFLAGS'
3490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3493 if test -n "$ac_tool_prefix"; then
3494 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3495 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3497 $as_echo_n "checking for $ac_word... " >&6; }
3498 if test "${ac_cv_prog_CC+set}" = set; then :
3499 $as_echo_n "(cached) " >&6
3500 else
3501 if test -n "$CC"; then
3502 ac_cv_prog_CC="$CC" # Let the user override the test.
3503 else
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 for as_dir in $PATH
3506 do
3507 IFS=$as_save_IFS
3508 test -z "$as_dir" && as_dir=.
3509 for ac_exec_ext in '' $ac_executable_extensions; do
3510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3511 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3513 break 2
3514 fi
3515 done
3516 done
3517 IFS=$as_save_IFS
3518
3519 fi
3520 fi
3521 CC=$ac_cv_prog_CC
3522 if test -n "$CC"; then
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3524 $as_echo "$CC" >&6; }
3525 else
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 $as_echo "no" >&6; }
3528 fi
3529
3530
3531 fi
3532 if test -z "$ac_cv_prog_CC"; then
3533 ac_ct_CC=$CC
3534 # Extract the first word of "gcc", so it can be a program name with args.
3535 set dummy gcc; ac_word=$2
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3537 $as_echo_n "checking for $ac_word... " >&6; }
3538 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3539 $as_echo_n "(cached) " >&6
3540 else
3541 if test -n "$ac_ct_CC"; then
3542 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3543 else
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH
3546 do
3547 IFS=$as_save_IFS
3548 test -z "$as_dir" && as_dir=.
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3551 ac_cv_prog_ac_ct_CC="gcc"
3552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3553 break 2
3554 fi
3555 done
3556 done
3557 IFS=$as_save_IFS
3558
3559 fi
3560 fi
3561 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3562 if test -n "$ac_ct_CC"; then
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3564 $as_echo "$ac_ct_CC" >&6; }
3565 else
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 $as_echo "no" >&6; }
3568 fi
3569
3570 if test "x$ac_ct_CC" = x; then
3571 CC=""
3572 else
3573 case $cross_compiling:$ac_tool_warned in
3574 yes:)
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3577 ac_tool_warned=yes ;;
3578 esac
3579 CC=$ac_ct_CC
3580 fi
3581 else
3582 CC="$ac_cv_prog_CC"
3583 fi
3584
3585 if test -z "$CC"; then
3586 if test -n "$ac_tool_prefix"; then
3587 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3588 set dummy ${ac_tool_prefix}cc; ac_word=$2
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590 $as_echo_n "checking for $ac_word... " >&6; }
3591 if test "${ac_cv_prog_CC+set}" = set; then :
3592 $as_echo_n "(cached) " >&6
3593 else
3594 if test -n "$CC"; then
3595 ac_cv_prog_CC="$CC" # Let the user override the test.
3596 else
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 for as_dir in $PATH
3599 do
3600 IFS=$as_save_IFS
3601 test -z "$as_dir" && as_dir=.
3602 for ac_exec_ext in '' $ac_executable_extensions; do
3603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3604 ac_cv_prog_CC="${ac_tool_prefix}cc"
3605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3606 break 2
3607 fi
3608 done
3609 done
3610 IFS=$as_save_IFS
3611
3612 fi
3613 fi
3614 CC=$ac_cv_prog_CC
3615 if test -n "$CC"; then
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3617 $as_echo "$CC" >&6; }
3618 else
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620 $as_echo "no" >&6; }
3621 fi
3622
3623
3624 fi
3625 fi
3626 if test -z "$CC"; then
3627 # Extract the first word of "cc", so it can be a program name with args.
3628 set dummy cc; ac_word=$2
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630 $as_echo_n "checking for $ac_word... " >&6; }
3631 if test "${ac_cv_prog_CC+set}" = set; then :
3632 $as_echo_n "(cached) " >&6
3633 else
3634 if test -n "$CC"; then
3635 ac_cv_prog_CC="$CC" # Let the user override the test.
3636 else
3637 ac_prog_rejected=no
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 for as_dir in $PATH
3640 do
3641 IFS=$as_save_IFS
3642 test -z "$as_dir" && as_dir=.
3643 for ac_exec_ext in '' $ac_executable_extensions; do
3644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3645 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3646 ac_prog_rejected=yes
3647 continue
3648 fi
3649 ac_cv_prog_CC="cc"
3650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 break 2
3652 fi
3653 done
3654 done
3655 IFS=$as_save_IFS
3656
3657 if test $ac_prog_rejected = yes; then
3658 # We found a bogon in the path, so make sure we never use it.
3659 set dummy $ac_cv_prog_CC
3660 shift
3661 if test $# != 0; then
3662 # We chose a different compiler from the bogus one.
3663 # However, it has the same basename, so the bogon will be chosen
3664 # first if we set CC to just the basename; use the full file name.
3665 shift
3666 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3667 fi
3668 fi
3669 fi
3670 fi
3671 CC=$ac_cv_prog_CC
3672 if test -n "$CC"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3674 $as_echo "$CC" >&6; }
3675 else
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3678 fi
3679
3680
3681 fi
3682 if test -z "$CC"; then
3683 if test -n "$ac_tool_prefix"; then
3684 for ac_prog in cl.exe
3685 do
3686 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3687 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3689 $as_echo_n "checking for $ac_word... " >&6; }
3690 if test "${ac_cv_prog_CC+set}" = set; then :
3691 $as_echo_n "(cached) " >&6
3692 else
3693 if test -n "$CC"; then
3694 ac_cv_prog_CC="$CC" # Let the user override the test.
3695 else
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 for as_dir in $PATH
3698 do
3699 IFS=$as_save_IFS
3700 test -z "$as_dir" && as_dir=.
3701 for ac_exec_ext in '' $ac_executable_extensions; do
3702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3703 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3705 break 2
3706 fi
3707 done
3708 done
3709 IFS=$as_save_IFS
3710
3711 fi
3712 fi
3713 CC=$ac_cv_prog_CC
3714 if test -n "$CC"; then
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3716 $as_echo "$CC" >&6; }
3717 else
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719 $as_echo "no" >&6; }
3720 fi
3721
3722
3723 test -n "$CC" && break
3724 done
3725 fi
3726 if test -z "$CC"; then
3727 ac_ct_CC=$CC
3728 for ac_prog in cl.exe
3729 do
3730 # Extract the first word of "$ac_prog", so it can be a program name with args.
3731 set dummy $ac_prog; ac_word=$2
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3733 $as_echo_n "checking for $ac_word... " >&6; }
3734 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3735 $as_echo_n "(cached) " >&6
3736 else
3737 if test -n "$ac_ct_CC"; then
3738 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3739 else
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3742 do
3743 IFS=$as_save_IFS
3744 test -z "$as_dir" && as_dir=.
3745 for ac_exec_ext in '' $ac_executable_extensions; do
3746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3747 ac_cv_prog_ac_ct_CC="$ac_prog"
3748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3749 break 2
3750 fi
3751 done
3752 done
3753 IFS=$as_save_IFS
3754
3755 fi
3756 fi
3757 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3758 if test -n "$ac_ct_CC"; then
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3760 $as_echo "$ac_ct_CC" >&6; }
3761 else
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763 $as_echo "no" >&6; }
3764 fi
3765
3766
3767 test -n "$ac_ct_CC" && break
3768 done
3769
3770 if test "x$ac_ct_CC" = x; then
3771 CC=""
3772 else
3773 case $cross_compiling:$ac_tool_warned in
3774 yes:)
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3777 ac_tool_warned=yes ;;
3778 esac
3779 CC=$ac_ct_CC
3780 fi
3781 fi
3782
3783 fi
3784
3785
3786 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3788 as_fn_error "no acceptable C compiler found in \$PATH
3789 See \`config.log' for more details." "$LINENO" 5; }
3790
3791 # Provide some information about the compiler.
3792 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3793 set X $ac_compile
3794 ac_compiler=$2
3795 for ac_option in --version -v -V -qversion; do
3796 { { ac_try="$ac_compiler $ac_option >&5"
3797 case "(($ac_try" in
3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3800 esac
3801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802 $as_echo "$ac_try_echo"; } >&5
3803 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3804 ac_status=$?
3805 if test -s conftest.err; then
3806 sed '10a\
3807 ... rest of stderr output deleted ...
3808 10q' conftest.err >conftest.er1
3809 cat conftest.er1 >&5
3810 rm -f conftest.er1 conftest.err
3811 fi
3812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813 test $ac_status = 0; }
3814 done
3815
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3818
3819 int
3820 main ()
3821 {
3822
3823 ;
3824 return 0;
3825 }
3826 _ACEOF
3827 ac_clean_files_save=$ac_clean_files
3828 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3829 # Try to create an executable without -o first, disregard a.out.
3830 # It will help us diagnose broken compilers, and finding out an intuition
3831 # of exeext.
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3833 $as_echo_n "checking for C compiler default output file name... " >&6; }
3834 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3835
3836 # The possible output files:
3837 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3838
3839 ac_rmfiles=
3840 for ac_file in $ac_files
3841 do
3842 case $ac_file in
3843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3844 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3845 esac
3846 done
3847 rm -f $ac_rmfiles
3848
3849 if { { ac_try="$ac_link_default"
3850 case "(($ac_try" in
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3853 esac
3854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855 $as_echo "$ac_try_echo"; } >&5
3856 (eval "$ac_link_default") 2>&5
3857 ac_status=$?
3858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859 test $ac_status = 0; }; then :
3860 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3861 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3862 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3863 # so that the user can short-circuit this test for compilers unknown to
3864 # Autoconf.
3865 for ac_file in $ac_files ''
3866 do
3867 test -f "$ac_file" || continue
3868 case $ac_file in
3869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3870 ;;
3871 [ab].out )
3872 # We found the default executable, but exeext='' is most
3873 # certainly right.
3874 break;;
3875 *.* )
3876 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3877 then :; else
3878 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3879 fi
3880 # We set ac_cv_exeext here because the later test for it is not
3881 # safe: cross compilers may not add the suffix if given an `-o'
3882 # argument, so we may need to know it at that point already.
3883 # Even if this section looks crufty: it has the advantage of
3884 # actually working.
3885 break;;
3886 * )
3887 break;;
3888 esac
3889 done
3890 test "$ac_cv_exeext" = no && ac_cv_exeext=
3891
3892 else
3893 ac_file=''
3894 fi
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3896 $as_echo "$ac_file" >&6; }
3897 if test -z "$ac_file"; then :
3898 $as_echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3900
3901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3903 { as_fn_set_status 77
3904 as_fn_error "C compiler cannot create executables
3905 See \`config.log' for more details." "$LINENO" 5; }; }
3906 fi
3907 ac_exeext=$ac_cv_exeext
3908
3909 # Check that the compiler produces executables we can run. If not, either
3910 # the compiler is broken, or we cross compile.
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3912 $as_echo_n "checking whether the C compiler works... " >&6; }
3913 # If not cross compiling, check that we can run a simple program.
3914 if test "$cross_compiling" != yes; then
3915 if { ac_try='./$ac_file'
3916 { { case "(($ac_try" in
3917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918 *) ac_try_echo=$ac_try;;
3919 esac
3920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3921 $as_echo "$ac_try_echo"; } >&5
3922 (eval "$ac_try") 2>&5
3923 ac_status=$?
3924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3925 test $ac_status = 0; }; }; then
3926 cross_compiling=no
3927 else
3928 if test "$cross_compiling" = maybe; then
3929 cross_compiling=yes
3930 else
3931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3933 as_fn_error "cannot run C compiled programs.
3934 If you meant to cross compile, use \`--host'.
3935 See \`config.log' for more details." "$LINENO" 5; }
3936 fi
3937 fi
3938 fi
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3940 $as_echo "yes" >&6; }
3941
3942 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3943 ac_clean_files=$ac_clean_files_save
3944 # Check that the compiler produces executables we can run. If not, either
3945 # the compiler is broken, or we cross compile.
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3947 $as_echo_n "checking whether we are cross compiling... " >&6; }
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3949 $as_echo "$cross_compiling" >&6; }
3950
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3952 $as_echo_n "checking for suffix of executables... " >&6; }
3953 if { { ac_try="$ac_link"
3954 case "(($ac_try" in
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3957 esac
3958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3959 $as_echo "$ac_try_echo"; } >&5
3960 (eval "$ac_link") 2>&5
3961 ac_status=$?
3962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3963 test $ac_status = 0; }; then :
3964 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3965 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3966 # work properly (i.e., refer to `conftest.exe'), while it won't with
3967 # `rm'.
3968 for ac_file in conftest.exe conftest conftest.*; do
3969 test -f "$ac_file" || continue
3970 case $ac_file in
3971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3972 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3973 break;;
3974 * ) break;;
3975 esac
3976 done
3977 else
3978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3980 as_fn_error "cannot compute suffix of executables: cannot compile and link
3981 See \`config.log' for more details." "$LINENO" 5; }
3982 fi
3983 rm -f conftest$ac_cv_exeext
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3985 $as_echo "$ac_cv_exeext" >&6; }
3986
3987 rm -f conftest.$ac_ext
3988 EXEEXT=$ac_cv_exeext
3989 ac_exeext=$EXEEXT
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3991 $as_echo_n "checking for suffix of object files... " >&6; }
3992 if test "${ac_cv_objext+set}" = set; then :
3993 $as_echo_n "(cached) " >&6
3994 else
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
3997
3998 int
3999 main ()
4000 {
4001
4002 ;
4003 return 0;
4004 }
4005 _ACEOF
4006 rm -f conftest.o conftest.obj
4007 if { { ac_try="$ac_compile"
4008 case "(($ac_try" in
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4011 esac
4012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4013 $as_echo "$ac_try_echo"; } >&5
4014 (eval "$ac_compile") 2>&5
4015 ac_status=$?
4016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4017 test $ac_status = 0; }; then :
4018 for ac_file in conftest.o conftest.obj conftest.*; do
4019 test -f "$ac_file" || continue;
4020 case $ac_file in
4021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4022 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4023 break;;
4024 esac
4025 done
4026 else
4027 $as_echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4029
4030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4032 as_fn_error "cannot compute suffix of object files: cannot compile
4033 See \`config.log' for more details." "$LINENO" 5; }
4034 fi
4035 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4036 fi
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4038 $as_echo "$ac_cv_objext" >&6; }
4039 OBJEXT=$ac_cv_objext
4040 ac_objext=$OBJEXT
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4042 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4043 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4044 $as_echo_n "(cached) " >&6
4045 else
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4048
4049 int
4050 main ()
4051 {
4052 #ifndef __GNUC__
4053 choke me
4054 #endif
4055
4056 ;
4057 return 0;
4058 }
4059 _ACEOF
4060 if ac_fn_c_try_compile "$LINENO"; then :
4061 ac_compiler_gnu=yes
4062 else
4063 ac_compiler_gnu=no
4064 fi
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4067
4068 fi
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4070 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4071 if test $ac_compiler_gnu = yes; then
4072 GCC=yes
4073 else
4074 GCC=
4075 fi
4076 ac_test_CFLAGS=${CFLAGS+set}
4077 ac_save_CFLAGS=$CFLAGS
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4079 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4080 if test "${ac_cv_prog_cc_g+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
4082 else
4083 ac_save_c_werror_flag=$ac_c_werror_flag
4084 ac_c_werror_flag=yes
4085 ac_cv_prog_cc_g=no
4086 CFLAGS="-g"
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4089
4090 int
4091 main ()
4092 {
4093
4094 ;
4095 return 0;
4096 }
4097 _ACEOF
4098 if ac_fn_c_try_compile "$LINENO"; then :
4099 ac_cv_prog_cc_g=yes
4100 else
4101 CFLAGS=""
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4104
4105 int
4106 main ()
4107 {
4108
4109 ;
4110 return 0;
4111 }
4112 _ACEOF
4113 if ac_fn_c_try_compile "$LINENO"; then :
4114
4115 else
4116 ac_c_werror_flag=$ac_save_c_werror_flag
4117 CFLAGS="-g"
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4120
4121 int
4122 main ()
4123 {
4124
4125 ;
4126 return 0;
4127 }
4128 _ACEOF
4129 if ac_fn_c_try_compile "$LINENO"; then :
4130 ac_cv_prog_cc_g=yes
4131 fi
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133 fi
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 fi
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 ac_c_werror_flag=$ac_save_c_werror_flag
4138 fi
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4140 $as_echo "$ac_cv_prog_cc_g" >&6; }
4141 if test "$ac_test_CFLAGS" = set; then
4142 CFLAGS=$ac_save_CFLAGS
4143 elif test $ac_cv_prog_cc_g = yes; then
4144 if test "$GCC" = yes; then
4145 CFLAGS="-g -O2"
4146 else
4147 CFLAGS="-g"
4148 fi
4149 else
4150 if test "$GCC" = yes; then
4151 CFLAGS="-O2"
4152 else
4153 CFLAGS=
4154 fi
4155 fi
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4157 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4158 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4159 $as_echo_n "(cached) " >&6
4160 else
4161 ac_cv_prog_cc_c89=no
4162 ac_save_CC=$CC
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4165 #include <stdarg.h>
4166 #include <stdio.h>
4167 #include <sys/types.h>
4168 #include <sys/stat.h>
4169 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4170 struct buf { int x; };
4171 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4172 static char *e (p, i)
4173 char **p;
4174 int i;
4175 {
4176 return p[i];
4177 }
4178 static char *f (char * (*g) (char **, int), char **p, ...)
4179 {
4180 char *s;
4181 va_list v;
4182 va_start (v,p);
4183 s = g (p, va_arg (v,int));
4184 va_end (v);
4185 return s;
4186 }
4187
4188 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4189 function prototypes and stuff, but not '\xHH' hex character constants.
4190 These don't provoke an error unfortunately, instead are silently treated
4191 as 'x'. The following induces an error, until -std is added to get
4192 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4193 array size at least. It's necessary to write '\x00'==0 to get something
4194 that's true only with -std. */
4195 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4196
4197 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4198 inside strings and character constants. */
4199 #define FOO(x) 'x'
4200 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4201
4202 int test (int i, double x);
4203 struct s1 {int (*f) (int a);};
4204 struct s2 {int (*f) (double a);};
4205 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4206 int argc;
4207 char **argv;
4208 int
4209 main ()
4210 {
4211 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4212 ;
4213 return 0;
4214 }
4215 _ACEOF
4216 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4217 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4218 do
4219 CC="$ac_save_CC $ac_arg"
4220 if ac_fn_c_try_compile "$LINENO"; then :
4221 ac_cv_prog_cc_c89=$ac_arg
4222 fi
4223 rm -f core conftest.err conftest.$ac_objext
4224 test "x$ac_cv_prog_cc_c89" != "xno" && break
4225 done
4226 rm -f conftest.$ac_ext
4227 CC=$ac_save_CC
4228
4229 fi
4230 # AC_CACHE_VAL
4231 case "x$ac_cv_prog_cc_c89" in
4232 x)
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4234 $as_echo "none needed" >&6; } ;;
4235 xno)
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4237 $as_echo "unsupported" >&6; } ;;
4238 *)
4239 CC="$CC $ac_cv_prog_cc_c89"
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4241 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4242 esac
4243 if test "x$ac_cv_prog_cc_c89" != xno; then :
4244
4245 fi
4246
4247 ac_ext=c
4248 ac_cpp='$CPP $CPPFLAGS'
4249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4252
4253 if test "x$CC" != xcc; then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4255 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4256 else
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4258 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4259 fi
4260 set dummy $CC; ac_cc=`$as_echo "$2" |
4261 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4262 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4263 $as_echo_n "(cached) " >&6
4264 else
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4267
4268 int
4269 main ()
4270 {
4271
4272 ;
4273 return 0;
4274 }
4275 _ACEOF
4276 # Make sure it works both with $CC and with simple cc.
4277 # We do the test twice because some compilers refuse to overwrite an
4278 # existing .o file with -o, though they will create one.
4279 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4280 rm -f conftest2.*
4281 if { { case "(($ac_try" in
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4284 esac
4285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4286 $as_echo "$ac_try_echo"; } >&5
4287 (eval "$ac_try") 2>&5
4288 ac_status=$?
4289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4290 test $ac_status = 0; } &&
4291 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4294 esac
4295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4296 $as_echo "$ac_try_echo"; } >&5
4297 (eval "$ac_try") 2>&5
4298 ac_status=$?
4299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4300 test $ac_status = 0; };
4301 then
4302 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4303 if test "x$CC" != xcc; then
4304 # Test first that cc exists at all.
4305 if { ac_try='cc -c conftest.$ac_ext >&5'
4306 { { case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4309 esac
4310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4311 $as_echo "$ac_try_echo"; } >&5
4312 (eval "$ac_try") 2>&5
4313 ac_status=$?
4314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4315 test $ac_status = 0; }; }; then
4316 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4317 rm -f conftest2.*
4318 if { { case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4321 esac
4322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4323 $as_echo "$ac_try_echo"; } >&5
4324 (eval "$ac_try") 2>&5
4325 ac_status=$?
4326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4327 test $ac_status = 0; } &&
4328 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4331 esac
4332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4333 $as_echo "$ac_try_echo"; } >&5
4334 (eval "$ac_try") 2>&5
4335 ac_status=$?
4336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4337 test $ac_status = 0; };
4338 then
4339 # cc works too.
4340 :
4341 else
4342 # cc exists but doesn't like -o.
4343 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4344 fi
4345 fi
4346 fi
4347 else
4348 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4349 fi
4350 rm -f core conftest*
4351
4352 fi
4353 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4355 $as_echo "yes" >&6; }
4356 else
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 $as_echo "no" >&6; }
4359
4360 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4361
4362 fi
4363
4364 # expand $ac_aux_dir to an absolute path
4365 am_aux_dir=`cd $ac_aux_dir && pwd`
4366
4367 # FIXME: we rely on the cache variable name because
4368 # there is no other way.
4369 set dummy $CC
4370 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4371 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4372 if test "$am_t" != yes; then
4373 # Losing compiler, so override with the script.
4374 # FIXME: It is wrong to rewrite CC.
4375 # But if we don't then we get into trouble of one sort or another.
4376 # A longer-term fix would be to have automake use am__CC in this case,
4377 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4378 CC="$am_aux_dir/compile $CC"
4379 fi
4380
4381
4382 ac_ext=cpp
4383 ac_cpp='$CXXCPP $CPPFLAGS'
4384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4387 if test -z "$CXX"; then
4388 if test -n "$CCC"; then
4389 CXX=$CCC
4390 else
4391 if test -n "$ac_tool_prefix"; then
4392 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4393 do
4394 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4395 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if test "${ac_cv_prog_CXX+set}" = set; then :
4399 $as_echo_n "(cached) " >&6
4400 else
4401 if test -n "$CXX"; then
4402 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4403 else
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH
4406 do
4407 IFS=$as_save_IFS
4408 test -z "$as_dir" && as_dir=.
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4413 break 2
4414 fi
4415 done
4416 done
4417 IFS=$as_save_IFS
4418
4419 fi
4420 fi
4421 CXX=$ac_cv_prog_CXX
4422 if test -n "$CXX"; then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4424 $as_echo "$CXX" >&6; }
4425 else
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4428 fi
4429
4430
4431 test -n "$CXX" && break
4432 done
4433 fi
4434 if test -z "$CXX"; then
4435 ac_ct_CXX=$CXX
4436 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4437 do
4438 # Extract the first word of "$ac_prog", so it can be a program name with args.
4439 set dummy $ac_prog; ac_word=$2
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441 $as_echo_n "checking for $ac_word... " >&6; }
4442 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4443 $as_echo_n "(cached) " >&6
4444 else
4445 if test -n "$ac_ct_CXX"; then
4446 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4447 else
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4450 do
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4455 ac_cv_prog_ac_ct_CXX="$ac_prog"
4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 break 2
4458 fi
4459 done
4460 done
4461 IFS=$as_save_IFS
4462
4463 fi
4464 fi
4465 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4466 if test -n "$ac_ct_CXX"; then
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4468 $as_echo "$ac_ct_CXX" >&6; }
4469 else
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 $as_echo "no" >&6; }
4472 fi
4473
4474
4475 test -n "$ac_ct_CXX" && break
4476 done
4477
4478 if test "x$ac_ct_CXX" = x; then
4479 CXX="g++"
4480 else
4481 case $cross_compiling:$ac_tool_warned in
4482 yes:)
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4485 ac_tool_warned=yes ;;
4486 esac
4487 CXX=$ac_ct_CXX
4488 fi
4489 fi
4490
4491 fi
4492 fi
4493 # Provide some information about the compiler.
4494 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4495 set X $ac_compile
4496 ac_compiler=$2
4497 for ac_option in --version -v -V -qversion; do
4498 { { ac_try="$ac_compiler $ac_option >&5"
4499 case "(($ac_try" in
4500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4502 esac
4503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4504 $as_echo "$ac_try_echo"; } >&5
4505 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4506 ac_status=$?
4507 if test -s conftest.err; then
4508 sed '10a\
4509 ... rest of stderr output deleted ...
4510 10q' conftest.err >conftest.er1
4511 cat conftest.er1 >&5
4512 rm -f conftest.er1 conftest.err
4513 fi
4514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4515 test $ac_status = 0; }
4516 done
4517
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4519 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4520 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4521 $as_echo_n "(cached) " >&6
4522 else
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4525
4526 int
4527 main ()
4528 {
4529 #ifndef __GNUC__
4530 choke me
4531 #endif
4532
4533 ;
4534 return 0;
4535 }
4536 _ACEOF
4537 if ac_fn_cxx_try_compile "$LINENO"; then :
4538 ac_compiler_gnu=yes
4539 else
4540 ac_compiler_gnu=no
4541 fi
4542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4543 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4544
4545 fi
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4547 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4548 if test $ac_compiler_gnu = yes; then
4549 GXX=yes
4550 else
4551 GXX=
4552 fi
4553 ac_test_CXXFLAGS=${CXXFLAGS+set}
4554 ac_save_CXXFLAGS=$CXXFLAGS
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4556 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4557 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4561 ac_cxx_werror_flag=yes
4562 ac_cv_prog_cxx_g=no
4563 CXXFLAGS="-g"
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4566
4567 int
4568 main ()
4569 {
4570
4571 ;
4572 return 0;
4573 }
4574 _ACEOF
4575 if ac_fn_cxx_try_compile "$LINENO"; then :
4576 ac_cv_prog_cxx_g=yes
4577 else
4578 CXXFLAGS=""
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4581
4582 int
4583 main ()
4584 {
4585
4586 ;
4587 return 0;
4588 }
4589 _ACEOF
4590 if ac_fn_cxx_try_compile "$LINENO"; then :
4591
4592 else
4593 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4594 CXXFLAGS="-g"
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4597
4598 int
4599 main ()
4600 {
4601
4602 ;
4603 return 0;
4604 }
4605 _ACEOF
4606 if ac_fn_cxx_try_compile "$LINENO"; then :
4607 ac_cv_prog_cxx_g=yes
4608 fi
4609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4610 fi
4611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4612 fi
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4615 fi
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4617 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4618 if test "$ac_test_CXXFLAGS" = set; then
4619 CXXFLAGS=$ac_save_CXXFLAGS
4620 elif test $ac_cv_prog_cxx_g = yes; then
4621 if test "$GXX" = yes; then
4622 CXXFLAGS="-g -O2"
4623 else
4624 CXXFLAGS="-g"
4625 fi
4626 else
4627 if test "$GXX" = yes; then
4628 CXXFLAGS="-O2"
4629 else
4630 CXXFLAGS=
4631 fi
4632 fi
4633 ac_ext=c
4634 ac_cpp='$CPP $CPPFLAGS'
4635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4638
4639
4640
4641
4642 if test -n "$ac_tool_prefix"; then
4643 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4644 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4648 $as_echo_n "(cached) " >&6
4649 else
4650 if test -n "$GNATBIND"; then
4651 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4652 else
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH
4655 do
4656 IFS=$as_save_IFS
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4660 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 break 2
4663 fi
4664 done
4665 done
4666 IFS=$as_save_IFS
4667
4668 fi
4669 fi
4670 GNATBIND=$ac_cv_prog_GNATBIND
4671 if test -n "$GNATBIND"; then
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4673 $as_echo "$GNATBIND" >&6; }
4674 else
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4677 fi
4678
4679
4680 fi
4681 if test -z "$ac_cv_prog_GNATBIND"; then
4682 ac_ct_GNATBIND=$GNATBIND
4683 # Extract the first word of "gnatbind", so it can be a program name with args.
4684 set dummy gnatbind; ac_word=$2
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 $as_echo_n "checking for $ac_word... " >&6; }
4687 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4688 $as_echo_n "(cached) " >&6
4689 else
4690 if test -n "$ac_ct_GNATBIND"; then
4691 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4692 else
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4695 do
4696 IFS=$as_save_IFS
4697 test -z "$as_dir" && as_dir=.
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4700 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4702 break 2
4703 fi
4704 done
4705 done
4706 IFS=$as_save_IFS
4707
4708 fi
4709 fi
4710 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4711 if test -n "$ac_ct_GNATBIND"; then
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4713 $as_echo "$ac_ct_GNATBIND" >&6; }
4714 else
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 $as_echo "no" >&6; }
4717 fi
4718
4719 if test "x$ac_ct_GNATBIND" = x; then
4720 GNATBIND="no"
4721 else
4722 case $cross_compiling:$ac_tool_warned in
4723 yes:)
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4726 ac_tool_warned=yes ;;
4727 esac
4728 GNATBIND=$ac_ct_GNATBIND
4729 fi
4730 else
4731 GNATBIND="$ac_cv_prog_GNATBIND"
4732 fi
4733
4734 if test -n "$ac_tool_prefix"; then
4735 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4736 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4740 $as_echo_n "(cached) " >&6
4741 else
4742 if test -n "$GNATMAKE"; then
4743 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4744 else
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4747 do
4748 IFS=$as_save_IFS
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4752 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 break 2
4755 fi
4756 done
4757 done
4758 IFS=$as_save_IFS
4759
4760 fi
4761 fi
4762 GNATMAKE=$ac_cv_prog_GNATMAKE
4763 if test -n "$GNATMAKE"; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4765 $as_echo "$GNATMAKE" >&6; }
4766 else
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768 $as_echo "no" >&6; }
4769 fi
4770
4771
4772 fi
4773 if test -z "$ac_cv_prog_GNATMAKE"; then
4774 ac_ct_GNATMAKE=$GNATMAKE
4775 # Extract the first word of "gnatmake", so it can be a program name with args.
4776 set dummy gnatmake; ac_word=$2
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778 $as_echo_n "checking for $ac_word... " >&6; }
4779 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4780 $as_echo_n "(cached) " >&6
4781 else
4782 if test -n "$ac_ct_GNATMAKE"; then
4783 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4784 else
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 for as_dir in $PATH
4787 do
4788 IFS=$as_save_IFS
4789 test -z "$as_dir" && as_dir=.
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 break 2
4795 fi
4796 done
4797 done
4798 IFS=$as_save_IFS
4799
4800 fi
4801 fi
4802 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4803 if test -n "$ac_ct_GNATMAKE"; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4805 $as_echo "$ac_ct_GNATMAKE" >&6; }
4806 else
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4809 fi
4810
4811 if test "x$ac_ct_GNATMAKE" = x; then
4812 GNATMAKE="no"
4813 else
4814 case $cross_compiling:$ac_tool_warned in
4815 yes:)
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4818 ac_tool_warned=yes ;;
4819 esac
4820 GNATMAKE=$ac_ct_GNATMAKE
4821 fi
4822 else
4823 GNATMAKE="$ac_cv_prog_GNATMAKE"
4824 fi
4825
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4827 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4828 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4829 $as_echo_n "(cached) " >&6
4830 else
4831 cat >conftest.adb <<EOF
4832 procedure conftest is begin null; end conftest;
4833 EOF
4834 acx_cv_cc_gcc_supports_ada=no
4835 # There is a bug in old released versions of GCC which causes the
4836 # driver to exit successfully when the appropriate language module
4837 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4838 # Therefore we must check for the error message as well as an
4839 # unsuccessful exit.
4840 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4841 # given a .adb file, but produce no object file. So we must check
4842 # if an object file was really produced to guard against this.
4843 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4844 if test x"$errors" = x && test -f conftest.$ac_objext; then
4845 acx_cv_cc_gcc_supports_ada=yes
4846 fi
4847 rm -f conftest.*
4848 fi
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4850 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4851
4852 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4853 have_gnat=yes
4854 else
4855 have_gnat=no
4856 fi
4857
4858
4859 # autoconf is lame and doesn't give us any substitution variable for this.
4860 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4861 NO_MINUS_C_MINUS_O=yes
4862 else
4863 OUTPUT_OPTION='-o $@'
4864 fi
4865
4866
4867
4868 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4869 # optimizations to be activated explicitly by the toplevel.
4870 case "$CC" in
4871 */prev-gcc/xgcc*) ;;
4872 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4873 esac
4874
4875
4876 # -------------------------
4877 # Check C compiler features
4878 # -------------------------
4879
4880
4881 ac_ext=c
4882 ac_cpp='$CPP $CPPFLAGS'
4883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4887 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4888 # On Suns, sometimes $CPP names a directory.
4889 if test -n "$CPP" && test -d "$CPP"; then
4890 CPP=
4891 fi
4892 if test -z "$CPP"; then
4893 if test "${ac_cv_prog_CPP+set}" = set; then :
4894 $as_echo_n "(cached) " >&6
4895 else
4896 # Double quotes because CPP needs to be expanded
4897 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4898 do
4899 ac_preproc_ok=false
4900 for ac_c_preproc_warn_flag in '' yes
4901 do
4902 # Use a header file that comes with gcc, so configuring glibc
4903 # with a fresh cross-compiler works.
4904 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4905 # <limits.h> exists even on freestanding compilers.
4906 # On the NeXT, cc -E runs the code through the compiler's parser,
4907 # not just through cpp. "Syntax error" is here to catch this case.
4908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4909 /* end confdefs.h. */
4910 #ifdef __STDC__
4911 # include <limits.h>
4912 #else
4913 # include <assert.h>
4914 #endif
4915 Syntax error
4916 _ACEOF
4917 if ac_fn_c_try_cpp "$LINENO"; then :
4918
4919 else
4920 # Broken: fails on valid input.
4921 continue
4922 fi
4923 rm -f conftest.err conftest.$ac_ext
4924
4925 # OK, works on sane cases. Now check whether nonexistent headers
4926 # can be detected and how.
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4929 #include <ac_nonexistent.h>
4930 _ACEOF
4931 if ac_fn_c_try_cpp "$LINENO"; then :
4932 # Broken: success on invalid input.
4933 continue
4934 else
4935 # Passes both tests.
4936 ac_preproc_ok=:
4937 break
4938 fi
4939 rm -f conftest.err conftest.$ac_ext
4940
4941 done
4942 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4943 rm -f conftest.err conftest.$ac_ext
4944 if $ac_preproc_ok; then :
4945 break
4946 fi
4947
4948 done
4949 ac_cv_prog_CPP=$CPP
4950
4951 fi
4952 CPP=$ac_cv_prog_CPP
4953 else
4954 ac_cv_prog_CPP=$CPP
4955 fi
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4957 $as_echo "$CPP" >&6; }
4958 ac_preproc_ok=false
4959 for ac_c_preproc_warn_flag in '' yes
4960 do
4961 # Use a header file that comes with gcc, so configuring glibc
4962 # with a fresh cross-compiler works.
4963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4964 # <limits.h> exists even on freestanding compilers.
4965 # On the NeXT, cc -E runs the code through the compiler's parser,
4966 # not just through cpp. "Syntax error" is here to catch this case.
4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4969 #ifdef __STDC__
4970 # include <limits.h>
4971 #else
4972 # include <assert.h>
4973 #endif
4974 Syntax error
4975 _ACEOF
4976 if ac_fn_c_try_cpp "$LINENO"; then :
4977
4978 else
4979 # Broken: fails on valid input.
4980 continue
4981 fi
4982 rm -f conftest.err conftest.$ac_ext
4983
4984 # OK, works on sane cases. Now check whether nonexistent headers
4985 # can be detected and how.
4986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h. */
4988 #include <ac_nonexistent.h>
4989 _ACEOF
4990 if ac_fn_c_try_cpp "$LINENO"; then :
4991 # Broken: success on invalid input.
4992 continue
4993 else
4994 # Passes both tests.
4995 ac_preproc_ok=:
4996 break
4997 fi
4998 rm -f conftest.err conftest.$ac_ext
4999
5000 done
5001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5002 rm -f conftest.err conftest.$ac_ext
5003 if $ac_preproc_ok; then :
5004
5005 else
5006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5008 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5009 See \`config.log' for more details." "$LINENO" 5; }
5010 fi
5011
5012 ac_ext=c
5013 ac_cpp='$CPP $CPPFLAGS'
5014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5017
5018
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5020 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5021 if test "${ac_cv_path_GREP+set}" = set; then :
5022 $as_echo_n "(cached) " >&6
5023 else
5024 if test -z "$GREP"; then
5025 ac_path_GREP_found=false
5026 # Loop through the user's path and test for each of PROGNAME-LIST
5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5029 do
5030 IFS=$as_save_IFS
5031 test -z "$as_dir" && as_dir=.
5032 for ac_prog in grep ggrep; do
5033 for ac_exec_ext in '' $ac_executable_extensions; do
5034 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5035 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5036 # Check for GNU ac_path_GREP and select it if it is found.
5037 # Check for GNU $ac_path_GREP
5038 case `"$ac_path_GREP" --version 2>&1` in
5039 *GNU*)
5040 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5041 *)
5042 ac_count=0
5043 $as_echo_n 0123456789 >"conftest.in"
5044 while :
5045 do
5046 cat "conftest.in" "conftest.in" >"conftest.tmp"
5047 mv "conftest.tmp" "conftest.in"
5048 cp "conftest.in" "conftest.nl"
5049 $as_echo 'GREP' >> "conftest.nl"
5050 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5051 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5052 as_fn_arith $ac_count + 1 && ac_count=$as_val
5053 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5054 # Best one so far, save it but keep looking for a better one
5055 ac_cv_path_GREP="$ac_path_GREP"
5056 ac_path_GREP_max=$ac_count
5057 fi
5058 # 10*(2^10) chars as input seems more than enough
5059 test $ac_count -gt 10 && break
5060 done
5061 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5062 esac
5063
5064 $ac_path_GREP_found && break 3
5065 done
5066 done
5067 done
5068 IFS=$as_save_IFS
5069 if test -z "$ac_cv_path_GREP"; then
5070 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5071 fi
5072 else
5073 ac_cv_path_GREP=$GREP
5074 fi
5075
5076 fi
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5078 $as_echo "$ac_cv_path_GREP" >&6; }
5079 GREP="$ac_cv_path_GREP"
5080
5081
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5083 $as_echo_n "checking for egrep... " >&6; }
5084 if test "${ac_cv_path_EGREP+set}" = set; then :
5085 $as_echo_n "(cached) " >&6
5086 else
5087 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5088 then ac_cv_path_EGREP="$GREP -E"
5089 else
5090 if test -z "$EGREP"; then
5091 ac_path_EGREP_found=false
5092 # Loop through the user's path and test for each of PROGNAME-LIST
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5095 do
5096 IFS=$as_save_IFS
5097 test -z "$as_dir" && as_dir=.
5098 for ac_prog in egrep; do
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5101 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5102 # Check for GNU ac_path_EGREP and select it if it is found.
5103 # Check for GNU $ac_path_EGREP
5104 case `"$ac_path_EGREP" --version 2>&1` in
5105 *GNU*)
5106 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5107 *)
5108 ac_count=0
5109 $as_echo_n 0123456789 >"conftest.in"
5110 while :
5111 do
5112 cat "conftest.in" "conftest.in" >"conftest.tmp"
5113 mv "conftest.tmp" "conftest.in"
5114 cp "conftest.in" "conftest.nl"
5115 $as_echo 'EGREP' >> "conftest.nl"
5116 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5117 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5118 as_fn_arith $ac_count + 1 && ac_count=$as_val
5119 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5120 # Best one so far, save it but keep looking for a better one
5121 ac_cv_path_EGREP="$ac_path_EGREP"
5122 ac_path_EGREP_max=$ac_count
5123 fi
5124 # 10*(2^10) chars as input seems more than enough
5125 test $ac_count -gt 10 && break
5126 done
5127 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5128 esac
5129
5130 $ac_path_EGREP_found && break 3
5131 done
5132 done
5133 done
5134 IFS=$as_save_IFS
5135 if test -z "$ac_cv_path_EGREP"; then
5136 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5137 fi
5138 else
5139 ac_cv_path_EGREP=$EGREP
5140 fi
5141
5142 fi
5143 fi
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5145 $as_echo "$ac_cv_path_EGREP" >&6; }
5146 EGREP="$ac_cv_path_EGREP"
5147
5148
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5150 $as_echo_n "checking for ANSI C header files... " >&6; }
5151 if test "${ac_cv_header_stdc+set}" = set; then :
5152 $as_echo_n "(cached) " >&6
5153 else
5154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5155 /* end confdefs.h. */
5156 #include <stdlib.h>
5157 #include <stdarg.h>
5158 #include <string.h>
5159 #include <float.h>
5160
5161 int
5162 main ()
5163 {
5164
5165 ;
5166 return 0;
5167 }
5168 _ACEOF
5169 if ac_fn_c_try_compile "$LINENO"; then :
5170 ac_cv_header_stdc=yes
5171 else
5172 ac_cv_header_stdc=no
5173 fi
5174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5175
5176 if test $ac_cv_header_stdc = yes; then
5177 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h. */
5180 #include <string.h>
5181
5182 _ACEOF
5183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5184 $EGREP "memchr" >/dev/null 2>&1; then :
5185
5186 else
5187 ac_cv_header_stdc=no
5188 fi
5189 rm -f conftest*
5190
5191 fi
5192
5193 if test $ac_cv_header_stdc = yes; then
5194 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196 /* end confdefs.h. */
5197 #include <stdlib.h>
5198
5199 _ACEOF
5200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5201 $EGREP "free" >/dev/null 2>&1; then :
5202
5203 else
5204 ac_cv_header_stdc=no
5205 fi
5206 rm -f conftest*
5207
5208 fi
5209
5210 if test $ac_cv_header_stdc = yes; then
5211 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5212 if test "$cross_compiling" = yes; then :
5213 :
5214 else
5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h. */
5217 #include <ctype.h>
5218 #include <stdlib.h>
5219 #if ((' ' & 0x0FF) == 0x020)
5220 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5221 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5222 #else
5223 # define ISLOWER(c) \
5224 (('a' <= (c) && (c) <= 'i') \
5225 || ('j' <= (c) && (c) <= 'r') \
5226 || ('s' <= (c) && (c) <= 'z'))
5227 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5228 #endif
5229
5230 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5231 int
5232 main ()
5233 {
5234 int i;
5235 for (i = 0; i < 256; i++)
5236 if (XOR (islower (i), ISLOWER (i))
5237 || toupper (i) != TOUPPER (i))
5238 return 2;
5239 return 0;
5240 }
5241 _ACEOF
5242 if ac_fn_c_try_run "$LINENO"; then :
5243
5244 else
5245 ac_cv_header_stdc=no
5246 fi
5247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5248 conftest.$ac_objext conftest.beam conftest.$ac_ext
5249 fi
5250
5251 fi
5252 fi
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5254 $as_echo "$ac_cv_header_stdc" >&6; }
5255 if test $ac_cv_header_stdc = yes; then
5256
5257 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5258
5259 fi
5260
5261 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5262 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5263 inttypes.h stdint.h unistd.h
5264 do :
5265 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5266 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5267 "
5268 eval as_val=\$$as_ac_Header
5269 if test "x$as_val" = x""yes; then :
5270 cat >>confdefs.h <<_ACEOF
5271 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5272 _ACEOF
5273
5274 fi
5275
5276 done
5277
5278
5279
5280 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5281 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5282 MINIX=yes
5283 else
5284 MINIX=
5285 fi
5286
5287
5288 if test "$MINIX" = yes; then
5289
5290 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5291
5292
5293 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5294
5295
5296 $as_echo "#define _MINIX 1" >>confdefs.h
5297
5298 fi
5299
5300
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5302 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5303 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5304 $as_echo_n "(cached) " >&6
5305 else
5306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307 /* end confdefs.h. */
5308
5309 # define __EXTENSIONS__ 1
5310 $ac_includes_default
5311 int
5312 main ()
5313 {
5314
5315 ;
5316 return 0;
5317 }
5318 _ACEOF
5319 if ac_fn_c_try_compile "$LINENO"; then :
5320 ac_cv_safe_to_define___extensions__=yes
5321 else
5322 ac_cv_safe_to_define___extensions__=no
5323 fi
5324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5325 fi
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5327 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5328 test $ac_cv_safe_to_define___extensions__ = yes &&
5329 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5330
5331 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5332
5333 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5334
5335 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5336
5337 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5338
5339
5340 ac_ext=c
5341 ac_cpp='$CPP $CPPFLAGS'
5342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5346 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5347 # On Suns, sometimes $CPP names a directory.
5348 if test -n "$CPP" && test -d "$CPP"; then
5349 CPP=
5350 fi
5351 if test -z "$CPP"; then
5352 if test "${ac_cv_prog_CPP+set}" = set; then :
5353 $as_echo_n "(cached) " >&6
5354 else
5355 # Double quotes because CPP needs to be expanded
5356 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5357 do
5358 ac_preproc_ok=false
5359 for ac_c_preproc_warn_flag in '' yes
5360 do
5361 # Use a header file that comes with gcc, so configuring glibc
5362 # with a fresh cross-compiler works.
5363 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5364 # <limits.h> exists even on freestanding compilers.
5365 # On the NeXT, cc -E runs the code through the compiler's parser,
5366 # not just through cpp. "Syntax error" is here to catch this case.
5367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h. */
5369 #ifdef __STDC__
5370 # include <limits.h>
5371 #else
5372 # include <assert.h>
5373 #endif
5374 Syntax error
5375 _ACEOF
5376 if ac_fn_c_try_cpp "$LINENO"; then :
5377
5378 else
5379 # Broken: fails on valid input.
5380 continue
5381 fi
5382 rm -f conftest.err conftest.$ac_ext
5383
5384 # OK, works on sane cases. Now check whether nonexistent headers
5385 # can be detected and how.
5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h. */
5388 #include <ac_nonexistent.h>
5389 _ACEOF
5390 if ac_fn_c_try_cpp "$LINENO"; then :
5391 # Broken: success on invalid input.
5392 continue
5393 else
5394 # Passes both tests.
5395 ac_preproc_ok=:
5396 break
5397 fi
5398 rm -f conftest.err conftest.$ac_ext
5399
5400 done
5401 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5402 rm -f conftest.err conftest.$ac_ext
5403 if $ac_preproc_ok; then :
5404 break
5405 fi
5406
5407 done
5408 ac_cv_prog_CPP=$CPP
5409
5410 fi
5411 CPP=$ac_cv_prog_CPP
5412 else
5413 ac_cv_prog_CPP=$CPP
5414 fi
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5416 $as_echo "$CPP" >&6; }
5417 ac_preproc_ok=false
5418 for ac_c_preproc_warn_flag in '' yes
5419 do
5420 # Use a header file that comes with gcc, so configuring glibc
5421 # with a fresh cross-compiler works.
5422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5423 # <limits.h> exists even on freestanding compilers.
5424 # On the NeXT, cc -E runs the code through the compiler's parser,
5425 # not just through cpp. "Syntax error" is here to catch this case.
5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h. */
5428 #ifdef __STDC__
5429 # include <limits.h>
5430 #else
5431 # include <assert.h>
5432 #endif
5433 Syntax error
5434 _ACEOF
5435 if ac_fn_c_try_cpp "$LINENO"; then :
5436
5437 else
5438 # Broken: fails on valid input.
5439 continue
5440 fi
5441 rm -f conftest.err conftest.$ac_ext
5442
5443 # OK, works on sane cases. Now check whether nonexistent headers
5444 # can be detected and how.
5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446 /* end confdefs.h. */
5447 #include <ac_nonexistent.h>
5448 _ACEOF
5449 if ac_fn_c_try_cpp "$LINENO"; then :
5450 # Broken: success on invalid input.
5451 continue
5452 else
5453 # Passes both tests.
5454 ac_preproc_ok=:
5455 break
5456 fi
5457 rm -f conftest.err conftest.$ac_ext
5458
5459 done
5460 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5461 rm -f conftest.err conftest.$ac_ext
5462 if $ac_preproc_ok; then :
5463
5464 else
5465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5467 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5468 See \`config.log' for more details." "$LINENO" 5; }
5469 fi
5470
5471 ac_ext=c
5472 ac_cpp='$CPP $CPPFLAGS'
5473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5476
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5478 $as_echo_n "checking for inline... " >&6; }
5479 if test "${ac_cv_c_inline+set}" = set; then :
5480 $as_echo_n "(cached) " >&6
5481 else
5482 ac_cv_c_inline=no
5483 for ac_kw in inline __inline__ __inline; do
5484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5485 /* end confdefs.h. */
5486 #ifndef __cplusplus
5487 typedef int foo_t;
5488 static $ac_kw foo_t static_foo () {return 0; }
5489 $ac_kw foo_t foo () {return 0; }
5490 #endif
5491
5492 _ACEOF
5493 if ac_fn_c_try_compile "$LINENO"; then :
5494 ac_cv_c_inline=$ac_kw
5495 fi
5496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5497 test "$ac_cv_c_inline" != no && break
5498 done
5499
5500 fi
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5502 $as_echo "$ac_cv_c_inline" >&6; }
5503
5504 case $ac_cv_c_inline in
5505 inline | yes) ;;
5506 *)
5507 case $ac_cv_c_inline in
5508 no) ac_val=;;
5509 *) ac_val=$ac_cv_c_inline;;
5510 esac
5511 cat >>confdefs.h <<_ACEOF
5512 #ifndef __cplusplus
5513 #define inline $ac_val
5514 #endif
5515 _ACEOF
5516 ;;
5517 esac
5518
5519
5520 # Check whether --enable-largefile was given.
5521 if test "${enable_largefile+set}" = set; then :
5522 enableval=$enable_largefile;
5523 fi
5524
5525 if test "$enable_largefile" != no; then
5526
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5528 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5529 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 ac_cv_sys_largefile_CC=no
5533 if test "$GCC" != yes; then
5534 ac_save_CC=$CC
5535 while :; do
5536 # IRIX 6.2 and later do not support large files by default,
5537 # so use the C compiler's -n32 option if that helps.
5538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h. */
5540 #include <sys/types.h>
5541 /* Check that off_t can represent 2**63 - 1 correctly.
5542 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5543 since some C++ compilers masquerading as C compilers
5544 incorrectly reject 9223372036854775807. */
5545 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5546 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5547 && LARGE_OFF_T % 2147483647 == 1)
5548 ? 1 : -1];
5549 int
5550 main ()
5551 {
5552
5553 ;
5554 return 0;
5555 }
5556 _ACEOF
5557 if ac_fn_c_try_compile "$LINENO"; then :
5558 break
5559 fi
5560 rm -f core conftest.err conftest.$ac_objext
5561 CC="$CC -n32"
5562 if ac_fn_c_try_compile "$LINENO"; then :
5563 ac_cv_sys_largefile_CC=' -n32'; break
5564 fi
5565 rm -f core conftest.err conftest.$ac_objext
5566 break
5567 done
5568 CC=$ac_save_CC
5569 rm -f conftest.$ac_ext
5570 fi
5571 fi
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5573 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5574 if test "$ac_cv_sys_largefile_CC" != no; then
5575 CC=$CC$ac_cv_sys_largefile_CC
5576 fi
5577
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5579 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5580 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5581 $as_echo_n "(cached) " >&6
5582 else
5583 while :; do
5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h. */
5586 #include <sys/types.h>
5587 /* Check that off_t can represent 2**63 - 1 correctly.
5588 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5589 since some C++ compilers masquerading as C compilers
5590 incorrectly reject 9223372036854775807. */
5591 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5592 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5593 && LARGE_OFF_T % 2147483647 == 1)
5594 ? 1 : -1];
5595 int
5596 main ()
5597 {
5598
5599 ;
5600 return 0;
5601 }
5602 _ACEOF
5603 if ac_fn_c_try_compile "$LINENO"; then :
5604 ac_cv_sys_file_offset_bits=no; break
5605 fi
5606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5609 #define _FILE_OFFSET_BITS 64
5610 #include <sys/types.h>
5611 /* Check that off_t can represent 2**63 - 1 correctly.
5612 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5613 since some C++ compilers masquerading as C compilers
5614 incorrectly reject 9223372036854775807. */
5615 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5616 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5617 && LARGE_OFF_T % 2147483647 == 1)
5618 ? 1 : -1];
5619 int
5620 main ()
5621 {
5622
5623 ;
5624 return 0;
5625 }
5626 _ACEOF
5627 if ac_fn_c_try_compile "$LINENO"; then :
5628 ac_cv_sys_file_offset_bits=64; break
5629 fi
5630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5631 ac_cv_sys_file_offset_bits=unknown
5632 break
5633 done
5634 fi
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5636 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5637 case $ac_cv_sys_file_offset_bits in #(
5638 no | unknown) ;;
5639 *)
5640 cat >>confdefs.h <<_ACEOF
5641 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5642 _ACEOF
5643 ;;
5644 esac
5645 rm -rf conftest*
5646 if test $ac_cv_sys_file_offset_bits = unknown; then
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5648 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5649 if test "${ac_cv_sys_large_files+set}" = set; then :
5650 $as_echo_n "(cached) " >&6
5651 else
5652 while :; do
5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654 /* end confdefs.h. */
5655 #include <sys/types.h>
5656 /* Check that off_t can represent 2**63 - 1 correctly.
5657 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5658 since some C++ compilers masquerading as C compilers
5659 incorrectly reject 9223372036854775807. */
5660 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5661 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5662 && LARGE_OFF_T % 2147483647 == 1)
5663 ? 1 : -1];
5664 int
5665 main ()
5666 {
5667
5668 ;
5669 return 0;
5670 }
5671 _ACEOF
5672 if ac_fn_c_try_compile "$LINENO"; then :
5673 ac_cv_sys_large_files=no; break
5674 fi
5675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677 /* end confdefs.h. */
5678 #define _LARGE_FILES 1
5679 #include <sys/types.h>
5680 /* Check that off_t can represent 2**63 - 1 correctly.
5681 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5682 since some C++ compilers masquerading as C compilers
5683 incorrectly reject 9223372036854775807. */
5684 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5685 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5686 && LARGE_OFF_T % 2147483647 == 1)
5687 ? 1 : -1];
5688 int
5689 main ()
5690 {
5691
5692 ;
5693 return 0;
5694 }
5695 _ACEOF
5696 if ac_fn_c_try_compile "$LINENO"; then :
5697 ac_cv_sys_large_files=1; break
5698 fi
5699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5700 ac_cv_sys_large_files=unknown
5701 break
5702 done
5703 fi
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5705 $as_echo "$ac_cv_sys_large_files" >&6; }
5706 case $ac_cv_sys_large_files in #(
5707 no | unknown) ;;
5708 *)
5709 cat >>confdefs.h <<_ACEOF
5710 #define _LARGE_FILES $ac_cv_sys_large_files
5711 _ACEOF
5712 ;;
5713 esac
5714 rm -rf conftest*
5715 fi
5716 fi
5717
5718
5719 # sizeof(char) is 1 by definition.
5720 # The cast to long int works around a bug in the HP C Compiler
5721 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5722 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5723 # This bug is HP SR number 8606223364.
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5725 $as_echo_n "checking size of void *... " >&6; }
5726 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5727 $as_echo_n "(cached) " >&6
5728 else
5729 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5730
5731 else
5732 if test "$ac_cv_type_void_p" = yes; then
5733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5735 { as_fn_set_status 77
5736 as_fn_error "cannot compute sizeof (void *)
5737 See \`config.log' for more details." "$LINENO" 5; }; }
5738 else
5739 ac_cv_sizeof_void_p=0
5740 fi
5741 fi
5742
5743 fi
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5745 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5746
5747
5748
5749 cat >>confdefs.h <<_ACEOF
5750 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5751 _ACEOF
5752
5753
5754 # The cast to long int works around a bug in the HP C Compiler
5755 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5756 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5757 # This bug is HP SR number 8606223364.
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5759 $as_echo_n "checking size of short... " >&6; }
5760 if test "${ac_cv_sizeof_short+set}" = set; then :
5761 $as_echo_n "(cached) " >&6
5762 else
5763 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5764
5765 else
5766 if test "$ac_cv_type_short" = yes; then
5767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5769 { as_fn_set_status 77
5770 as_fn_error "cannot compute sizeof (short)
5771 See \`config.log' for more details." "$LINENO" 5; }; }
5772 else
5773 ac_cv_sizeof_short=0
5774 fi
5775 fi
5776
5777 fi
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5779 $as_echo "$ac_cv_sizeof_short" >&6; }
5780
5781
5782
5783 cat >>confdefs.h <<_ACEOF
5784 #define SIZEOF_SHORT $ac_cv_sizeof_short
5785 _ACEOF
5786
5787
5788 # The cast to long int works around a bug in the HP C Compiler
5789 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5790 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5791 # This bug is HP SR number 8606223364.
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5793 $as_echo_n "checking size of int... " >&6; }
5794 if test "${ac_cv_sizeof_int+set}" = set; then :
5795 $as_echo_n "(cached) " >&6
5796 else
5797 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5798
5799 else
5800 if test "$ac_cv_type_int" = yes; then
5801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5803 { as_fn_set_status 77
5804 as_fn_error "cannot compute sizeof (int)
5805 See \`config.log' for more details." "$LINENO" 5; }; }
5806 else
5807 ac_cv_sizeof_int=0
5808 fi
5809 fi
5810
5811 fi
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5813 $as_echo "$ac_cv_sizeof_int" >&6; }
5814
5815
5816
5817 cat >>confdefs.h <<_ACEOF
5818 #define SIZEOF_INT $ac_cv_sizeof_int
5819 _ACEOF
5820
5821
5822 # The cast to long int works around a bug in the HP C Compiler
5823 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5824 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5825 # This bug is HP SR number 8606223364.
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5827 $as_echo_n "checking size of long... " >&6; }
5828 if test "${ac_cv_sizeof_long+set}" = set; then :
5829 $as_echo_n "(cached) " >&6
5830 else
5831 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5832
5833 else
5834 if test "$ac_cv_type_long" = yes; then
5835 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5837 { as_fn_set_status 77
5838 as_fn_error "cannot compute sizeof (long)
5839 See \`config.log' for more details." "$LINENO" 5; }; }
5840 else
5841 ac_cv_sizeof_long=0
5842 fi
5843 fi
5844
5845 fi
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5847 $as_echo "$ac_cv_sizeof_long" >&6; }
5848
5849
5850
5851 cat >>confdefs.h <<_ACEOF
5852 #define SIZEOF_LONG $ac_cv_sizeof_long
5853 _ACEOF
5854
5855
5856 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5857 if test "x$ac_cv_type_long_long" = x""yes; then :
5858
5859 cat >>confdefs.h <<_ACEOF
5860 #define HAVE_LONG_LONG 1
5861 _ACEOF
5862
5863 # The cast to long int works around a bug in the HP C Compiler
5864 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5865 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5866 # This bug is HP SR number 8606223364.
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5868 $as_echo_n "checking size of long long... " >&6; }
5869 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5870 $as_echo_n "(cached) " >&6
5871 else
5872 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5873
5874 else
5875 if test "$ac_cv_type_long_long" = yes; then
5876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5878 { as_fn_set_status 77
5879 as_fn_error "cannot compute sizeof (long long)
5880 See \`config.log' for more details." "$LINENO" 5; }; }
5881 else
5882 ac_cv_sizeof_long_long=0
5883 fi
5884 fi
5885
5886 fi
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5888 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5889
5890
5891
5892 cat >>confdefs.h <<_ACEOF
5893 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5894 _ACEOF
5895
5896
5897 fi
5898
5899 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5900 if test "x$ac_cv_type___int64" = x""yes; then :
5901
5902 cat >>confdefs.h <<_ACEOF
5903 #define HAVE___INT64 1
5904 _ACEOF
5905
5906 # The cast to long int works around a bug in the HP C Compiler
5907 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5908 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5909 # This bug is HP SR number 8606223364.
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5911 $as_echo_n "checking size of __int64... " >&6; }
5912 if test "${ac_cv_sizeof___int64+set}" = set; then :
5913 $as_echo_n "(cached) " >&6
5914 else
5915 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5916
5917 else
5918 if test "$ac_cv_type___int64" = yes; then
5919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5921 { as_fn_set_status 77
5922 as_fn_error "cannot compute sizeof (__int64)
5923 See \`config.log' for more details." "$LINENO" 5; }; }
5924 else
5925 ac_cv_sizeof___int64=0
5926 fi
5927 fi
5928
5929 fi
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5931 $as_echo "$ac_cv_sizeof___int64" >&6; }
5932
5933
5934
5935 cat >>confdefs.h <<_ACEOF
5936 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5937 _ACEOF
5938
5939
5940 fi
5941
5942 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5943 case $ac_cv_c_int8_t in #(
5944 no|yes) ;; #(
5945 *)
5946
5947 cat >>confdefs.h <<_ACEOF
5948 #define int8_t $ac_cv_c_int8_t
5949 _ACEOF
5950 ;;
5951 esac
5952
5953 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5954 case $ac_cv_c_int16_t in #(
5955 no|yes) ;; #(
5956 *)
5957
5958 cat >>confdefs.h <<_ACEOF
5959 #define int16_t $ac_cv_c_int16_t
5960 _ACEOF
5961 ;;
5962 esac
5963
5964 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5965 case $ac_cv_c_int32_t in #(
5966 no|yes) ;; #(
5967 *)
5968
5969 cat >>confdefs.h <<_ACEOF
5970 #define int32_t $ac_cv_c_int32_t
5971 _ACEOF
5972 ;;
5973 esac
5974
5975 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5976 case $ac_cv_c_int64_t in #(
5977 no|yes) ;; #(
5978 *)
5979
5980 cat >>confdefs.h <<_ACEOF
5981 #define int64_t $ac_cv_c_int64_t
5982 _ACEOF
5983 ;;
5984 esac
5985
5986
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5988 $as_echo_n "checking for long long int... " >&6; }
5989 if test "${ac_cv_type_long_long_int+set}" = set; then :
5990 $as_echo_n "(cached) " >&6
5991 else
5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h. */
5994
5995 /* For now, do not test the preprocessor; as of 2007 there are too many
5996 implementations with broken preprocessors. Perhaps this can
5997 be revisited in 2012. In the meantime, code should not expect
5998 #if to work with literals wider than 32 bits. */
5999 /* Test literals. */
6000 long long int ll = 9223372036854775807ll;
6001 long long int nll = -9223372036854775807LL;
6002 unsigned long long int ull = 18446744073709551615ULL;
6003 /* Test constant expressions. */
6004 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6005 ? 1 : -1)];
6006 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6007 ? 1 : -1)];
6008 int i = 63;
6009 int
6010 main ()
6011 {
6012 /* Test availability of runtime routines for shift and division. */
6013 long long int llmax = 9223372036854775807ll;
6014 unsigned long long int ullmax = 18446744073709551615ull;
6015 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6016 | (llmax / ll) | (llmax % ll)
6017 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6018 | (ullmax / ull) | (ullmax % ull));
6019 ;
6020 return 0;
6021 }
6022
6023 _ACEOF
6024 if ac_fn_c_try_link "$LINENO"; then :
6025 if test "$cross_compiling" = yes; then :
6026 ac_cv_type_long_long_int=yes
6027 else
6028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029 /* end confdefs.h. */
6030 #include <limits.h>
6031 #ifndef LLONG_MAX
6032 # define HALF \
6033 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6034 # define LLONG_MAX (HALF - 1 + HALF)
6035 #endif
6036 int
6037 main ()
6038 {
6039 long long int n = 1;
6040 int i;
6041 for (i = 0; ; i++)
6042 {
6043 long long int m = n << i;
6044 if (m >> i != n)
6045 return 1;
6046 if (LLONG_MAX / 2 < m)
6047 break;
6048 }
6049 return 0;
6050 ;
6051 return 0;
6052 }
6053 _ACEOF
6054 if ac_fn_c_try_run "$LINENO"; then :
6055 ac_cv_type_long_long_int=yes
6056 else
6057 ac_cv_type_long_long_int=no
6058 fi
6059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6060 conftest.$ac_objext conftest.beam conftest.$ac_ext
6061 fi
6062
6063 else
6064 ac_cv_type_long_long_int=no
6065 fi
6066 rm -f core conftest.err conftest.$ac_objext \
6067 conftest$ac_exeext conftest.$ac_ext
6068 fi
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6070 $as_echo "$ac_cv_type_long_long_int" >&6; }
6071 if test $ac_cv_type_long_long_int = yes; then
6072
6073 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6074
6075 fi
6076
6077
6078
6079 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6080 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6081
6082 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6083
6084 else
6085 test $ac_cv_type_long_long_int = yes \
6086 && ac_type='long long int' \
6087 || ac_type='long int'
6088
6089 cat >>confdefs.h <<_ACEOF
6090 #define intmax_t $ac_type
6091 _ACEOF
6092
6093 fi
6094
6095
6096
6097 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6098 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6099
6100 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6101
6102 else
6103 for ac_type in 'int' 'long int' 'long long int'; do
6104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105 /* end confdefs.h. */
6106 $ac_includes_default
6107 int
6108 main ()
6109 {
6110 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6111 test_array [0] = 0
6112
6113 ;
6114 return 0;
6115 }
6116 _ACEOF
6117 if ac_fn_c_try_compile "$LINENO"; then :
6118
6119 cat >>confdefs.h <<_ACEOF
6120 #define intptr_t $ac_type
6121 _ACEOF
6122
6123 ac_type=
6124 fi
6125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126 test -z "$ac_type" && break
6127 done
6128 fi
6129
6130
6131 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6132 case $ac_cv_c_uint8_t in #(
6133 no|yes) ;; #(
6134 *)
6135
6136 $as_echo "#define _UINT8_T 1" >>confdefs.h
6137
6138
6139 cat >>confdefs.h <<_ACEOF
6140 #define uint8_t $ac_cv_c_uint8_t
6141 _ACEOF
6142 ;;
6143 esac
6144
6145 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6146 case $ac_cv_c_uint16_t in #(
6147 no|yes) ;; #(
6148 *)
6149
6150
6151 cat >>confdefs.h <<_ACEOF
6152 #define uint16_t $ac_cv_c_uint16_t
6153 _ACEOF
6154 ;;
6155 esac
6156
6157 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6158 case $ac_cv_c_uint32_t in #(
6159 no|yes) ;; #(
6160 *)
6161
6162 $as_echo "#define _UINT32_T 1" >>confdefs.h
6163
6164
6165 cat >>confdefs.h <<_ACEOF
6166 #define uint32_t $ac_cv_c_uint32_t
6167 _ACEOF
6168 ;;
6169 esac
6170
6171 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6172 case $ac_cv_c_uint64_t in #(
6173 no|yes) ;; #(
6174 *)
6175
6176 $as_echo "#define _UINT64_T 1" >>confdefs.h
6177
6178
6179 cat >>confdefs.h <<_ACEOF
6180 #define uint64_t $ac_cv_c_uint64_t
6181 _ACEOF
6182 ;;
6183 esac
6184
6185
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6187 $as_echo_n "checking for unsigned long long int... " >&6; }
6188 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6189 $as_echo_n "(cached) " >&6
6190 else
6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6193
6194 /* For now, do not test the preprocessor; as of 2007 there are too many
6195 implementations with broken preprocessors. Perhaps this can
6196 be revisited in 2012. In the meantime, code should not expect
6197 #if to work with literals wider than 32 bits. */
6198 /* Test literals. */
6199 long long int ll = 9223372036854775807ll;
6200 long long int nll = -9223372036854775807LL;
6201 unsigned long long int ull = 18446744073709551615ULL;
6202 /* Test constant expressions. */
6203 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6204 ? 1 : -1)];
6205 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6206 ? 1 : -1)];
6207 int i = 63;
6208 int
6209 main ()
6210 {
6211 /* Test availability of runtime routines for shift and division. */
6212 long long int llmax = 9223372036854775807ll;
6213 unsigned long long int ullmax = 18446744073709551615ull;
6214 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6215 | (llmax / ll) | (llmax % ll)
6216 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6217 | (ullmax / ull) | (ullmax % ull));
6218 ;
6219 return 0;
6220 }
6221
6222 _ACEOF
6223 if ac_fn_c_try_link "$LINENO"; then :
6224 ac_cv_type_unsigned_long_long_int=yes
6225 else
6226 ac_cv_type_unsigned_long_long_int=no
6227 fi
6228 rm -f core conftest.err conftest.$ac_objext \
6229 conftest$ac_exeext conftest.$ac_ext
6230 fi
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6232 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6233 if test $ac_cv_type_unsigned_long_long_int = yes; then
6234
6235 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6236
6237 fi
6238
6239
6240
6241 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6242 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6243
6244 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6245
6246 else
6247 test $ac_cv_type_unsigned_long_long_int = yes \
6248 && ac_type='unsigned long long int' \
6249 || ac_type='unsigned long int'
6250
6251 cat >>confdefs.h <<_ACEOF
6252 #define uintmax_t $ac_type
6253 _ACEOF
6254
6255 fi
6256
6257
6258
6259 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6260 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6261
6262 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6263
6264 else
6265 for ac_type in 'unsigned int' 'unsigned long int' \
6266 'unsigned long long int'; do
6267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6268 /* end confdefs.h. */
6269 $ac_includes_default
6270 int
6271 main ()
6272 {
6273 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6274 test_array [0] = 0
6275
6276 ;
6277 return 0;
6278 }
6279 _ACEOF
6280 if ac_fn_c_try_compile "$LINENO"; then :
6281
6282 cat >>confdefs.h <<_ACEOF
6283 #define uintptr_t $ac_type
6284 _ACEOF
6285
6286 ac_type=
6287 fi
6288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6289 test -z "$ac_type" && break
6290 done
6291 fi
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307 # ---------------------
6308 # Warnings and checking
6309 # ---------------------
6310
6311 # Check $CC warning features (if it's GCC).
6312 # We want to use -pedantic, but we don't want warnings about
6313 # * 'long long'
6314 # * variadic macros
6315 # * overlong strings
6316 # So, we only use -pedantic if we can disable those warnings.
6317
6318 loose_warn=
6319 save_CFLAGS="$CFLAGS"
6320 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6321 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6322
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6324 $as_echo_n "checking whether $CC supports $option... " >&6; }
6325 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6326 $as_echo_n "(cached) " >&6
6327 else
6328 CFLAGS="$option"
6329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6330 /* end confdefs.h. */
6331
6332 int
6333 main ()
6334 {
6335
6336 ;
6337 return 0;
6338 }
6339 _ACEOF
6340 if ac_fn_c_try_compile "$LINENO"; then :
6341 eval "$as_acx_Woption=yes"
6342 else
6343 eval "$as_acx_Woption=no"
6344 fi
6345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6346
6347 fi
6348 eval ac_res=\$$as_acx_Woption
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6350 $as_echo "$ac_res" >&6; }
6351 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6352 loose_warn="$loose_warn${loose_warn:+ }$option"
6353 fi
6354 done
6355 CFLAGS="$save_CFLAGS"
6356
6357 c_loose_warn=
6358 save_CFLAGS="$CFLAGS"
6359 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6360 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6361
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6363 $as_echo_n "checking whether $CC supports $option... " >&6; }
6364 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6365 $as_echo_n "(cached) " >&6
6366 else
6367 CFLAGS="$option"
6368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6369 /* end confdefs.h. */
6370
6371 int
6372 main ()
6373 {
6374
6375 ;
6376 return 0;
6377 }
6378 _ACEOF
6379 if ac_fn_c_try_compile "$LINENO"; then :
6380 eval "$as_acx_Woption=yes"
6381 else
6382 eval "$as_acx_Woption=no"
6383 fi
6384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6385
6386 fi
6387 eval ac_res=\$$as_acx_Woption
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6389 $as_echo "$ac_res" >&6; }
6390 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6391 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6392 fi
6393 done
6394 CFLAGS="$save_CFLAGS"
6395
6396 strict_warn=
6397 save_CFLAGS="$CFLAGS"
6398 for option in -Wmissing-format-attribute; do
6399 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6400
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6402 $as_echo_n "checking whether $CC supports $option... " >&6; }
6403 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6404 $as_echo_n "(cached) " >&6
6405 else
6406 CFLAGS="$option"
6407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6408 /* end confdefs.h. */
6409
6410 int
6411 main ()
6412 {
6413
6414 ;
6415 return 0;
6416 }
6417 _ACEOF
6418 if ac_fn_c_try_compile "$LINENO"; then :
6419 eval "$as_acx_Woption=yes"
6420 else
6421 eval "$as_acx_Woption=no"
6422 fi
6423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6424
6425 fi
6426 eval ac_res=\$$as_acx_Woption
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6428 $as_echo "$ac_res" >&6; }
6429 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6430 strict_warn="$strict_warn${strict_warn:+ }$option"
6431 fi
6432 done
6433 CFLAGS="$save_CFLAGS"
6434
6435 c_strict_warn=
6436 save_CFLAGS="$CFLAGS"
6437 for option in -Wold-style-definition -Wc++-compat; do
6438 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6439
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6441 $as_echo_n "checking whether $CC supports $option... " >&6; }
6442 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6443 $as_echo_n "(cached) " >&6
6444 else
6445 CFLAGS="$option"
6446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447 /* end confdefs.h. */
6448
6449 int
6450 main ()
6451 {
6452
6453 ;
6454 return 0;
6455 }
6456 _ACEOF
6457 if ac_fn_c_try_compile "$LINENO"; then :
6458 eval "$as_acx_Woption=yes"
6459 else
6460 eval "$as_acx_Woption=no"
6461 fi
6462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6463
6464 fi
6465 eval ac_res=\$$as_acx_Woption
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6467 $as_echo "$ac_res" >&6; }
6468 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6469 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6470 fi
6471 done
6472 CFLAGS="$save_CFLAGS"
6473
6474 if test "$GCC" = yes; then :
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6476 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6477 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6478 $as_echo_n "(cached) " >&6
6479 else
6480 save_CFLAGS="$CFLAGS"
6481 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483 /* end confdefs.h. */
6484
6485 int
6486 main ()
6487 {
6488
6489 ;
6490 return 0;
6491 }
6492 _ACEOF
6493 if ac_fn_c_try_compile "$LINENO"; then :
6494 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6495 else
6496 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6497 fi
6498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6499 CFLAGS="$save_CFLAGS"
6500 fi
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6502 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6503 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6504 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6505 fi
6506
6507 fi
6508
6509 # Check whether --enable-werror-always was given.
6510 if test "${enable_werror_always+set}" = set; then :
6511 enableval=$enable_werror_always;
6512 else
6513 enable_werror_always=no
6514 fi
6515
6516 if test $enable_werror_always = yes; then :
6517 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6518 fi
6519
6520
6521
6522 # The above macros do nothing if the compiler is not GCC. However, the
6523 # Makefile has more goo to add other flags, so these variables are used
6524 # to enable warnings only for GCC.
6525 warn_cflags=
6526 warn_cxxflags=
6527 if test "x$GCC" = "xyes"; then
6528 warn_cflags='$(GCC_WARN_CFLAGS)'
6529 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6530 fi
6531
6532
6533
6534 # Enable expensive internal checks
6535 is_release=
6536 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6537 is_release=yes
6538 fi
6539
6540 # Check whether --enable-checking was given.
6541 if test "${enable_checking+set}" = set; then :
6542 enableval=$enable_checking; ac_checking_flags="${enableval}"
6543 else
6544
6545 # Determine the default checks.
6546 if test x$is_release = x ; then
6547 ac_checking_flags=yes
6548 else
6549 ac_checking_flags=release
6550 fi
6551 fi
6552
6553 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6554 for check in release $ac_checking_flags
6555 do
6556 case $check in
6557 # these set all the flags to specific states
6558 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6559 ac_fold_checking= ; ac_gc_checking=1 ;
6560 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6561 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6562 ac_tree_checking=1 ; ac_valgrind_checking= ;
6563 ac_types_checking=1 ;;
6564 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6565 ac_fold_checking= ; ac_gc_checking= ;
6566 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6567 ac_rtlflag_checking= ; ac_runtime_checking= ;
6568 ac_tree_checking= ; ac_valgrind_checking= ;
6569 ac_types_checking= ;;
6570 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6571 ac_fold_checking=1 ; ac_gc_checking=1 ;
6572 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6573 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6574 ac_tree_checking=1 ; ac_valgrind_checking= ;
6575 ac_types_checking=1 ;;
6576 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6577 ac_fold_checking= ; ac_gc_checking= ;
6578 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6579 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6580 ac_tree_checking= ; ac_valgrind_checking= ;
6581 ac_types_checking= ;;
6582 # these enable particular checks
6583 assert) ac_assert_checking=1 ;;
6584 df) ac_df_checking=1 ;;
6585 fold) ac_fold_checking=1 ;;
6586 gc) ac_gc_checking=1 ;;
6587 gcac) ac_gc_always_collect=1 ;;
6588 gimple) ac_gimple_checking=1 ;;
6589 misc) ac_checking=1 ;;
6590 rtl) ac_rtl_checking=1 ;;
6591 rtlflag) ac_rtlflag_checking=1 ;;
6592 runtime) ac_runtime_checking=1 ;;
6593 tree) ac_tree_checking=1 ;;
6594 types) ac_types_checking=1 ;;
6595 valgrind) ac_valgrind_checking=1 ;;
6596 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6597 esac
6598 done
6599 IFS="$ac_save_IFS"
6600
6601 nocommon_flag=""
6602 if test x$ac_checking != x ; then
6603
6604 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6605
6606 nocommon_flag=-fno-common
6607 fi
6608
6609 if test x$ac_df_checking != x ; then
6610
6611 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6612
6613 fi
6614 if test x$ac_assert_checking != x ; then
6615
6616 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6617
6618 fi
6619 if test x$ac_gimple_checking != x ; then
6620
6621 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6622
6623 fi
6624
6625 if test x$ac_runtime_checking != x ; then
6626
6627 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6628
6629 fi
6630 if test x$ac_tree_checking != x ; then
6631
6632 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6633
6634 TREEBROWSER=tree-browser.o
6635 fi
6636 if test x$ac_types_checking != x ; then
6637
6638 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6639
6640 fi
6641
6642 if test x$ac_rtl_checking != x ; then
6643
6644 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6645
6646 fi
6647 if test x$ac_rtlflag_checking != x ; then
6648
6649 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6650
6651 fi
6652 if test x$ac_gc_checking != x ; then
6653
6654 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6655
6656 fi
6657 if test x$ac_gc_always_collect != x ; then
6658
6659 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6660
6661 fi
6662 if test x$ac_fold_checking != x ; then
6663
6664 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6665
6666 fi
6667 valgrind_path_defines=
6668 valgrind_command=
6669
6670 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6671 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6672 have_valgrind_h=yes
6673 else
6674 have_valgrind_h=no
6675 fi
6676
6677
6678
6679 if test x$ac_valgrind_checking != x ; then
6680 # It is certainly possible that there's valgrind but no valgrind.h.
6681 # GCC relies on making annotations so we must have both.
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6683 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685 /* end confdefs.h. */
6686 #include <valgrind/memcheck.h>
6687 #ifndef VALGRIND_DISCARD
6688 #error VALGRIND_DISCARD not defined
6689 #endif
6690 _ACEOF
6691 if ac_fn_c_try_cpp "$LINENO"; then :
6692 gcc_cv_header_valgrind_memcheck_h=yes
6693 else
6694 gcc_cv_header_valgrind_memcheck_h=no
6695 fi
6696 rm -f conftest.err conftest.$ac_ext
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6698 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6700 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6702 /* end confdefs.h. */
6703 #include <memcheck.h>
6704 #ifndef VALGRIND_DISCARD
6705 #error VALGRIND_DISCARD not defined
6706 #endif
6707 _ACEOF
6708 if ac_fn_c_try_cpp "$LINENO"; then :
6709 gcc_cv_header_memcheck_h=yes
6710 else
6711 gcc_cv_header_memcheck_h=no
6712 fi
6713 rm -f conftest.err conftest.$ac_ext
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6715 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6716
6717 # Prepare PATH_SEPARATOR.
6718 # The user is always right.
6719 if test "${PATH_SEPARATOR+set}" != set; then
6720 echo "#! /bin/sh" >conf$$.sh
6721 echo "exit 0" >>conf$$.sh
6722 chmod +x conf$$.sh
6723 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6724 PATH_SEPARATOR=';'
6725 else
6726 PATH_SEPARATOR=:
6727 fi
6728 rm -f conf$$.sh
6729 fi
6730
6731 # Find out how to test for executable files. Don't use a zero-byte file,
6732 # as systems may use methods other than mode bits to determine executability.
6733 cat >conf$$.file <<_ASEOF
6734 #! /bin/sh
6735 exit 0
6736 _ASEOF
6737 chmod +x conf$$.file
6738 if test -x conf$$.file >/dev/null 2>&1; then
6739 ac_executable_p="test -x"
6740 else
6741 ac_executable_p="test -f"
6742 fi
6743 rm -f conf$$.file
6744
6745 # Extract the first word of "valgrind", so it can be a program name with args.
6746 set dummy valgrind; ac_word=$2
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6748 $as_echo_n "checking for $ac_word... " >&6; }
6749 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6750 $as_echo_n "(cached) " >&6
6751 else
6752 case "$valgrind_path" in
6753 [\\/]* | ?:[\\/]*)
6754 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6755 ;;
6756 *)
6757 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6758 for ac_dir in $PATH; do
6759 IFS="$ac_save_IFS"
6760 test -z "$ac_dir" && ac_dir=.
6761 for ac_exec_ext in '' $ac_executable_extensions; do
6762 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6763 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6764 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6765 break 2
6766 fi
6767 fi
6768 done
6769 done
6770 IFS="$ac_save_IFS"
6771 ;;
6772 esac
6773 fi
6774 valgrind_path="$ac_cv_path_valgrind_path"
6775 if test -n "$valgrind_path"; then
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6777 $as_echo "$valgrind_path" >&6; }
6778 else
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6780 $as_echo "no" >&6; }
6781 fi
6782
6783 if test "x$valgrind_path" = "x" \
6784 || (test $have_valgrind_h = no \
6785 && test $gcc_cv_header_memcheck_h = no \
6786 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6787 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6788 fi
6789 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6790 valgrind_command="$valgrind_path -q"
6791
6792 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6793
6794 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6795
6796 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6797
6798 fi
6799 if test $gcc_cv_header_memcheck_h = yes; then
6800
6801 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6802
6803 fi
6804 fi
6805
6806
6807
6808 # Enable code coverage collection
6809 # Check whether --enable-coverage was given.
6810 if test "${enable_coverage+set}" = set; then :
6811 enableval=$enable_coverage; case "${enableval}" in
6812 yes|noopt)
6813 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6814 ;;
6815 opt)
6816 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6817 ;;
6818 no)
6819 # a.k.a. --disable-coverage
6820 coverage_flags=""
6821 ;;
6822 *)
6823 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6824 ;;
6825 esac
6826 else
6827 coverage_flags=""
6828 fi
6829
6830
6831
6832 # Check whether --enable-gather-detailed-mem-stats was given.
6833 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6834 enableval=$enable_gather_detailed_mem_stats;
6835 else
6836 enable_gather_detailed_mem_stats=no
6837 fi
6838
6839 if test x$enable_gather_detailed_mem_stats = xyes ; then
6840
6841 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6842
6843 fi
6844
6845 # -------------------------------
6846 # Miscenalleous configure options
6847 # -------------------------------
6848
6849 # See if we are building gcc with C++.
6850 # Check whether --enable-build-with-cxx was given.
6851 if test "${enable_build_with_cxx+set}" = set; then :
6852 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6853 else
6854 ENABLE_BUILD_WITH_CXX=no
6855 fi
6856
6857
6858 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6859
6860 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6861
6862 fi
6863
6864 # With stabs
6865
6866 # Check whether --with-stabs was given.
6867 if test "${with_stabs+set}" = set; then :
6868 withval=$with_stabs; stabs="$with_stabs"
6869 else
6870 stabs=no
6871 fi
6872
6873
6874 # Determine whether or not multilibs are enabled.
6875 # Check whether --enable-multilib was given.
6876 if test "${enable_multilib+set}" = set; then :
6877 enableval=$enable_multilib;
6878 else
6879 enable_multilib=yes
6880 fi
6881
6882
6883
6884 # Enable __cxa_atexit for C++.
6885 # Check whether --enable-__cxa_atexit was given.
6886 if test "${enable___cxa_atexit+set}" = set; then :
6887 enableval=$enable___cxa_atexit;
6888 fi
6889
6890
6891 # Enable C extension for decimal float if target supports it.
6892
6893 # Check whether --enable-decimal-float was given.
6894 if test "${enable_decimal_float+set}" = set; then :
6895 enableval=$enable_decimal_float;
6896 case $enable_decimal_float in
6897 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6898 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6899 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6900 esac
6901
6902 else
6903
6904 case $target in
6905 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6906 i?86*-*-mingw* | x86_64*-*-mingw* | \
6907 i?86*-*-cygwin*)
6908 enable_decimal_float=yes
6909 ;;
6910 *)
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6912 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6913 enable_decimal_float=no
6914 ;;
6915 esac
6916
6917 fi
6918
6919
6920 # x86's use BID format instead of DPD
6921 case x$enable_decimal_float in
6922 xyes)
6923 case $target in
6924 i?86*-*-* | x86_64*-*-*)
6925 enable_decimal_float=bid
6926 ;;
6927 *)
6928 enable_decimal_float=dpd
6929 ;;
6930 esac
6931 default_decimal_float=$enable_decimal_float
6932 ;;
6933 xno)
6934 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6935 # dependency on libdecnumber.
6936 default_decimal_float=dpd
6937 ;;
6938 esac
6939
6940
6941
6942
6943 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6944
6945 cat >>confdefs.h <<_ACEOF
6946 #define ENABLE_DECIMAL_FLOAT $dfp
6947 _ACEOF
6948
6949
6950 # Use default_decimal_float for dependency.
6951 enable_decimal_float=$default_decimal_float
6952
6953 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6954
6955 cat >>confdefs.h <<_ACEOF
6956 #define ENABLE_DECIMAL_BID_FORMAT $bid
6957 _ACEOF
6958
6959
6960 # Enable C extension for fixed-point arithmetic.
6961 # Check whether --enable-fixed-point was given.
6962 if test "${enable_fixed_point+set}" = set; then :
6963 enableval=$enable_fixed_point;
6964 else
6965
6966 case $target in
6967 arm*)
6968 enable_fixed_point=yes
6969 ;;
6970
6971 mips*-*-*)
6972 case $host in
6973 mips*-sgi-irix*)
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
6975 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
6976 enable_fixed_point=no
6977 ;;
6978 *)
6979 enable_fixed_point=yes
6980 ;;
6981 esac
6982 ;;
6983 *)
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
6985 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
6986 enable_fixed_point=no
6987 ;;
6988 esac
6989
6990 fi
6991
6992
6993
6994 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6995
6996 cat >>confdefs.h <<_ACEOF
6997 #define ENABLE_FIXED_POINT $fixedpoint
6998 _ACEOF
6999
7000
7001 # Enable threads
7002 # Pass with no value to take the default
7003 # Pass with a value to specify a thread package
7004 # Check whether --enable-threads was given.
7005 if test "${enable_threads+set}" = set; then :
7006 enableval=$enable_threads;
7007 else
7008 enable_threads=''
7009 fi
7010
7011
7012 # Check whether --enable-tls was given.
7013 if test "${enable_tls+set}" = set; then :
7014 enableval=$enable_tls;
7015 case $enable_tls in
7016 yes | no) ;;
7017 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7018 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7019 esac
7020
7021 else
7022 enable_tls=''
7023 fi
7024
7025
7026 # Check whether --enable-objc-gc was given.
7027 if test "${enable_objc_gc+set}" = set; then :
7028 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7029 objc_boehm_gc=''
7030 else
7031 objc_boehm_gc=1
7032 fi
7033 else
7034 objc_boehm_gc=''
7035 fi
7036
7037
7038
7039 # Check whether --with-dwarf2 was given.
7040 if test "${with_dwarf2+set}" = set; then :
7041 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7042 else
7043 dwarf2=no
7044 fi
7045
7046
7047 # Check whether --enable-shared was given.
7048 if test "${enable_shared+set}" = set; then :
7049 enableval=$enable_shared;
7050 case $enable_shared in
7051 yes | no) ;;
7052 *)
7053 enable_shared=no
7054 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7055 for pkg in $enableval; do
7056 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7057 enable_shared=yes
7058 fi
7059 done
7060 IFS="$ac_save_ifs"
7061 ;;
7062 esac
7063
7064 else
7065 enable_shared=yes
7066 fi
7067
7068
7069
7070
7071 # Check whether --with-build-sysroot was given.
7072 if test "${with_build_sysroot+set}" = set; then :
7073 withval=$with_build_sysroot;
7074 fi
7075
7076
7077
7078 # Check whether --with-sysroot was given.
7079 if test "${with_sysroot+set}" = set; then :
7080 withval=$with_sysroot;
7081 case ${with_sysroot} in
7082 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7083 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7084 esac
7085
7086 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7087 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7088
7089 if test "x$prefix" = xNONE; then
7090 test_prefix=/usr/local
7091 else
7092 test_prefix=$prefix
7093 fi
7094 if test "x$exec_prefix" = xNONE; then
7095 test_exec_prefix=$test_prefix
7096 else
7097 test_exec_prefix=$exec_prefix
7098 fi
7099 case ${TARGET_SYSTEM_ROOT} in
7100 "${test_prefix}"|"${test_prefix}/"*|\
7101 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7102 '${prefix}'|'${prefix}/'*|\
7103 '${exec_prefix}'|'${exec_prefix}/'*)
7104 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7105 TARGET_SYSTEM_ROOT_DEFINE="$t"
7106 ;;
7107 esac
7108
7109 else
7110
7111 TARGET_SYSTEM_ROOT=
7112 TARGET_SYSTEM_ROOT_DEFINE=
7113 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7114
7115 fi
7116
7117
7118
7119
7120
7121
7122 # Check whether --with-specs was given.
7123 if test "${with_specs+set}" = set; then :
7124 withval=$with_specs; CONFIGURE_SPECS=$withval
7125 else
7126 CONFIGURE_SPECS=
7127
7128 fi
7129
7130
7131
7132
7133
7134 # Check whether --with-pkgversion was given.
7135 if test "${with_pkgversion+set}" = set; then :
7136 withval=$with_pkgversion; case "$withval" in
7137 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7138 no) PKGVERSION= ;;
7139 *) PKGVERSION="($withval) " ;;
7140 esac
7141 else
7142 PKGVERSION="(GCC) "
7143
7144 fi
7145
7146
7147
7148
7149
7150 # Check whether --with-bugurl was given.
7151 if test "${with_bugurl+set}" = set; then :
7152 withval=$with_bugurl; case "$withval" in
7153 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7154 no) BUGURL=
7155 ;;
7156 *) BUGURL="$withval"
7157 ;;
7158 esac
7159 else
7160 BUGURL="http://gcc.gnu.org/bugs.html"
7161
7162 fi
7163
7164 case ${BUGURL} in
7165 "")
7166 REPORT_BUGS_TO=
7167 REPORT_BUGS_TEXI=
7168 ;;
7169 *)
7170 REPORT_BUGS_TO="<$BUGURL>"
7171 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7172 ;;
7173 esac;
7174
7175
7176
7177
7178 # Sanity check enable_languages in case someone does not run the toplevel
7179 # configure # script.
7180 # Check whether --enable-languages was given.
7181 if test "${enable_languages+set}" = set; then :
7182 enableval=$enable_languages; case ,${enable_languages}, in
7183 ,,|,yes,)
7184 # go safe -- we cannot be much sure without the toplevel
7185 # configure's
7186 # analysis of which target libs are present and usable
7187 enable_languages=c
7188 ;;
7189 *,all,*)
7190 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7191 ;;
7192 *,c,*)
7193 ;;
7194 *)
7195 enable_languages=c,${enable_languages}
7196 ;;
7197 esac
7198 else
7199 enable_languages=c
7200 fi
7201
7202
7203
7204 # Check whether --with-multilib-list was given.
7205 if test "${with_multilib_list+set}" = set; then :
7206 withval=$with_multilib_list; :
7207 else
7208 with_multilib_list=default
7209 fi
7210
7211
7212 # -------------------------
7213 # Checks for other programs
7214 # -------------------------
7215
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7217 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7218 set x ${MAKE-make}
7219 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7220 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7221 $as_echo_n "(cached) " >&6
7222 else
7223 cat >conftest.make <<\_ACEOF
7224 SHELL = /bin/sh
7225 all:
7226 @echo '@@@%%%=$(MAKE)=@@@%%%'
7227 _ACEOF
7228 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7229 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7230 *@@@%%%=?*=@@@%%%*)
7231 eval ac_cv_prog_make_${ac_make}_set=yes;;
7232 *)
7233 eval ac_cv_prog_make_${ac_make}_set=no;;
7234 esac
7235 rm -f conftest.make
7236 fi
7237 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7239 $as_echo "yes" >&6; }
7240 SET_MAKE=
7241 else
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7243 $as_echo "no" >&6; }
7244 SET_MAKE="MAKE=${MAKE-make}"
7245 fi
7246
7247
7248 # Find some useful tools
7249 for ac_prog in gawk mawk nawk awk
7250 do
7251 # Extract the first word of "$ac_prog", so it can be a program name with args.
7252 set dummy $ac_prog; ac_word=$2
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7254 $as_echo_n "checking for $ac_word... " >&6; }
7255 if test "${ac_cv_prog_AWK+set}" = set; then :
7256 $as_echo_n "(cached) " >&6
7257 else
7258 if test -n "$AWK"; then
7259 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7260 else
7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 for as_dir in $PATH
7263 do
7264 IFS=$as_save_IFS
7265 test -z "$as_dir" && as_dir=.
7266 for ac_exec_ext in '' $ac_executable_extensions; do
7267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7268 ac_cv_prog_AWK="$ac_prog"
7269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7270 break 2
7271 fi
7272 done
7273 done
7274 IFS=$as_save_IFS
7275
7276 fi
7277 fi
7278 AWK=$ac_cv_prog_AWK
7279 if test -n "$AWK"; then
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7281 $as_echo "$AWK" >&6; }
7282 else
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7284 $as_echo "no" >&6; }
7285 fi
7286
7287
7288 test -n "$AWK" && break
7289 done
7290
7291 # We need awk to create options.c and options.h.
7292 # Bail out if it's missing.
7293 case ${AWK} in
7294 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7295 esac
7296
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7298 $as_echo_n "checking whether ln -s works... " >&6; }
7299 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7300 $as_echo_n "(cached) " >&6
7301 else
7302 rm -f conftestdata_t
7303 echo >conftestdata_f
7304 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7305 then
7306 gcc_cv_prog_LN_S="ln -s"
7307 else
7308 if ln conftestdata_f conftestdata_t 2>/dev/null
7309 then
7310 gcc_cv_prog_LN_S=ln
7311 else
7312 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7313 then
7314 gcc_cv_prog_LN_S="cp -p"
7315 else
7316 gcc_cv_prog_LN_S=cp
7317 fi
7318 fi
7319 fi
7320 rm -f conftestdata_f conftestdata_t
7321
7322 fi
7323 LN_S="$gcc_cv_prog_LN_S"
7324 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7326 $as_echo "yes" >&6; }
7327 else
7328 if test "$gcc_cv_prog_LN_S" = "ln"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7330 $as_echo "no, using ln" >&6; }
7331 else
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7333 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7334 fi
7335 fi
7336
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7338 $as_echo_n "checking whether ln works... " >&6; }
7339 if test "${acx_cv_prog_LN+set}" = set; then :
7340 $as_echo_n "(cached) " >&6
7341 else
7342 rm -f conftestdata_t
7343 echo >conftestdata_f
7344 if ln conftestdata_f conftestdata_t 2>/dev/null
7345 then
7346 acx_cv_prog_LN=ln
7347 else
7348 acx_cv_prog_LN=no
7349 fi
7350 rm -f conftestdata_f conftestdata_t
7351
7352 fi
7353 if test $acx_cv_prog_LN = no; then
7354 LN="$LN_S"
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7356 $as_echo "no, using $LN" >&6; }
7357 else
7358 LN="$acx_cv_prog_LN"
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7360 $as_echo "yes" >&6; }
7361 fi
7362
7363 if test -n "$ac_tool_prefix"; then
7364 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7365 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7369 $as_echo_n "(cached) " >&6
7370 else
7371 if test -n "$RANLIB"; then
7372 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7373 else
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 for as_dir in $PATH
7376 do
7377 IFS=$as_save_IFS
7378 test -z "$as_dir" && as_dir=.
7379 for ac_exec_ext in '' $ac_executable_extensions; do
7380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7381 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383 break 2
7384 fi
7385 done
7386 done
7387 IFS=$as_save_IFS
7388
7389 fi
7390 fi
7391 RANLIB=$ac_cv_prog_RANLIB
7392 if test -n "$RANLIB"; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7394 $as_echo "$RANLIB" >&6; }
7395 else
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7398 fi
7399
7400
7401 fi
7402 if test -z "$ac_cv_prog_RANLIB"; then
7403 ac_ct_RANLIB=$RANLIB
7404 # Extract the first word of "ranlib", so it can be a program name with args.
7405 set dummy ranlib; ac_word=$2
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407 $as_echo_n "checking for $ac_word... " >&6; }
7408 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7409 $as_echo_n "(cached) " >&6
7410 else
7411 if test -n "$ac_ct_RANLIB"; then
7412 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7413 else
7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 for as_dir in $PATH
7416 do
7417 IFS=$as_save_IFS
7418 test -z "$as_dir" && as_dir=.
7419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7421 ac_cv_prog_ac_ct_RANLIB="ranlib"
7422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 break 2
7424 fi
7425 done
7426 done
7427 IFS=$as_save_IFS
7428
7429 fi
7430 fi
7431 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7432 if test -n "$ac_ct_RANLIB"; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7434 $as_echo "$ac_ct_RANLIB" >&6; }
7435 else
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7438 fi
7439
7440 if test "x$ac_ct_RANLIB" = x; then
7441 RANLIB=":"
7442 else
7443 case $cross_compiling:$ac_tool_warned in
7444 yes:)
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7447 ac_tool_warned=yes ;;
7448 esac
7449 RANLIB=$ac_ct_RANLIB
7450 fi
7451 else
7452 RANLIB="$ac_cv_prog_RANLIB"
7453 fi
7454
7455 case "${host}" in
7456 *-*-darwin*)
7457 # By default, the Darwin ranlib will not treat common symbols as
7458 # definitions when building the archive table of contents. Other
7459 # ranlibs do that; pass an option to the Darwin ranlib that makes
7460 # it behave similarly.
7461 ranlib_flags="-c"
7462 ;;
7463 *)
7464 ranlib_flags=""
7465 esac
7466
7467
7468 # Find a good install program. We prefer a C program (faster),
7469 # so one script is as good as another. But avoid the broken or
7470 # incompatible versions:
7471 # SysV /etc/install, /usr/sbin/install
7472 # SunOS /usr/etc/install
7473 # IRIX /sbin/install
7474 # AIX /bin/install
7475 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7476 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7477 # ./install, which can be erroneously created by make from ./install.sh.
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7479 $as_echo_n "checking for a BSD compatible install... " >&6; }
7480 if test -z "$INSTALL"; then
7481 if test "${ac_cv_path_install+set}" = set; then :
7482 $as_echo_n "(cached) " >&6
7483 else
7484 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7485 for ac_dir in $PATH; do
7486 # Account for people who put trailing slashes in PATH elements.
7487 case "$ac_dir/" in
7488 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7489 *)
7490 # OSF1 and SCO ODT 3.0 have their own names for install.
7491 for ac_prog in ginstall scoinst install; do
7492 if test -f $ac_dir/$ac_prog; then
7493 if test $ac_prog = install &&
7494 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7495 # AIX install. It has an incompatible calling convention.
7496 # OSF/1 installbsd also uses dspmsg, but is usable.
7497 :
7498 else
7499 ac_cv_path_install="$ac_dir/$ac_prog -c"
7500 break 2
7501 fi
7502 fi
7503 done
7504 ;;
7505 esac
7506 done
7507 IFS="$ac_save_IFS"
7508
7509 fi
7510 if test "${ac_cv_path_install+set}" = set; then
7511 INSTALL="$ac_cv_path_install"
7512 else
7513 # As a last resort, use the slow shell script. We don't cache a
7514 # path for INSTALL within a source directory, because that will
7515 # break other packages using the cache if that directory is
7516 # removed, or if the path is relative.
7517 INSTALL="$ac_install_sh"
7518 fi
7519 fi
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7521 $as_echo "$INSTALL" >&6; }
7522
7523 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7524 # It thinks the first close brace ends the variable substitution.
7525 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7526
7527 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7528
7529
7530 # See if cmp has --ignore-initial.
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7532 $as_echo_n "checking for cmp's capabilities... " >&6; }
7533 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7534 $as_echo_n "(cached) " >&6
7535 else
7536 echo abfoo >t1
7537 echo cdfoo >t2
7538 gcc_cv_prog_cmp_skip=slowcompare
7539 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7540 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7541 :
7542 else
7543 gcc_cv_prog_cmp_skip=gnucompare
7544 fi
7545 fi
7546 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7547 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7548 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7549 :
7550 else
7551 gcc_cv_prog_cmp_skip=fastcompare
7552 fi
7553 fi
7554 fi
7555 rm t1 t2
7556
7557 fi
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7559 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7560 make_compare_target=$gcc_cv_prog_cmp_skip
7561
7562
7563
7564 # See if we have the mktemp command.
7565 # Extract the first word of "mktemp", so it can be a program name with args.
7566 set dummy mktemp; ac_word=$2
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7568 $as_echo_n "checking for $ac_word... " >&6; }
7569 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7570 $as_echo_n "(cached) " >&6
7571 else
7572 if test -n "$have_mktemp_command"; then
7573 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7574 else
7575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576 for as_dir in $PATH
7577 do
7578 IFS=$as_save_IFS
7579 test -z "$as_dir" && as_dir=.
7580 for ac_exec_ext in '' $ac_executable_extensions; do
7581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7582 ac_cv_prog_have_mktemp_command="yes"
7583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7584 break 2
7585 fi
7586 done
7587 done
7588 IFS=$as_save_IFS
7589
7590 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7591 fi
7592 fi
7593 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7594 if test -n "$have_mktemp_command"; then
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7596 $as_echo "$have_mktemp_command" >&6; }
7597 else
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7599 $as_echo "no" >&6; }
7600 fi
7601
7602
7603
7604 # See if makeinfo has been installed and is modern enough
7605 # that we can use it.
7606
7607 # Extract the first word of "makeinfo", so it can be a program name with args.
7608 set dummy makeinfo; ac_word=$2
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7610 $as_echo_n "checking for $ac_word... " >&6; }
7611 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7612 $as_echo_n "(cached) " >&6
7613 else
7614 if test -n "$MAKEINFO"; then
7615 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7616 else
7617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618 for as_dir in $PATH
7619 do
7620 IFS=$as_save_IFS
7621 test -z "$as_dir" && as_dir=.
7622 for ac_exec_ext in '' $ac_executable_extensions; do
7623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7624 ac_cv_prog_MAKEINFO="makeinfo"
7625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7626 break 2
7627 fi
7628 done
7629 done
7630 IFS=$as_save_IFS
7631
7632 fi
7633 fi
7634 MAKEINFO=$ac_cv_prog_MAKEINFO
7635 if test -n "$MAKEINFO"; then
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7637 $as_echo "$MAKEINFO" >&6; }
7638 else
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7640 $as_echo "no" >&6; }
7641 fi
7642
7643
7644 if test -n "$MAKEINFO"; then
7645 # Found it, now check the version.
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7647 $as_echo_n "checking for modern makeinfo... " >&6; }
7648 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7649 $as_echo_n "(cached) " >&6
7650 else
7651 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7652 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7653
7654 case $ac_prog_version in
7655 '') gcc_cv_prog_makeinfo_modern=no;;
7656 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7657 *) gcc_cv_prog_makeinfo_modern=no;;
7658 esac
7659
7660 fi
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7662 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7663 else
7664 gcc_cv_prog_makeinfo_modern=no
7665 fi
7666 if test $gcc_cv_prog_makeinfo_modern = no; then
7667 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7668 fi
7669
7670 if test $gcc_cv_prog_makeinfo_modern = no; then
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7672 *** Makeinfo is missing or too old.
7673 *** Info documentation will not be built." >&5
7674 $as_echo "$as_me: WARNING:
7675 *** Makeinfo is missing or too old.
7676 *** Info documentation will not be built." >&2;}
7677 BUILD_INFO=
7678 else
7679 BUILD_INFO=info
7680 fi
7681
7682
7683 # Is pod2man recent enough to regenerate manpages?
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7685 $as_echo_n "checking for recent Pod::Man... " >&6; }
7686 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7688 $as_echo "yes" >&6; }
7689 GENERATED_MANPAGES=generated-manpages
7690 else
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692 $as_echo "no" >&6; }
7693 GENERATED_MANPAGES=
7694 fi
7695
7696
7697 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7698
7699 # How about lex?
7700 for ac_prog in flex
7701 do
7702 # Extract the first word of "$ac_prog", so it can be a program name with args.
7703 set dummy $ac_prog; ac_word=$2
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7705 $as_echo_n "checking for $ac_word... " >&6; }
7706 if test "${ac_cv_prog_FLEX+set}" = set; then :
7707 $as_echo_n "(cached) " >&6
7708 else
7709 if test -n "$FLEX"; then
7710 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7711 else
7712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713 for as_dir in $PATH
7714 do
7715 IFS=$as_save_IFS
7716 test -z "$as_dir" && as_dir=.
7717 for ac_exec_ext in '' $ac_executable_extensions; do
7718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7719 ac_cv_prog_FLEX="$ac_prog"
7720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7721 break 2
7722 fi
7723 done
7724 done
7725 IFS=$as_save_IFS
7726
7727 fi
7728 fi
7729 FLEX=$ac_cv_prog_FLEX
7730 if test -n "$FLEX"; then
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7732 $as_echo "$FLEX" >&6; }
7733 else
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7735 $as_echo "no" >&6; }
7736 fi
7737
7738
7739 test -n "$FLEX" && break
7740 done
7741 test -n "$FLEX" || FLEX="$MISSING flex"
7742
7743
7744 # Bison?
7745 for ac_prog in bison
7746 do
7747 # Extract the first word of "$ac_prog", so it can be a program name with args.
7748 set dummy $ac_prog; ac_word=$2
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7750 $as_echo_n "checking for $ac_word... " >&6; }
7751 if test "${ac_cv_prog_BISON+set}" = set; then :
7752 $as_echo_n "(cached) " >&6
7753 else
7754 if test -n "$BISON"; then
7755 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7756 else
7757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 for as_dir in $PATH
7759 do
7760 IFS=$as_save_IFS
7761 test -z "$as_dir" && as_dir=.
7762 for ac_exec_ext in '' $ac_executable_extensions; do
7763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7764 ac_cv_prog_BISON="$ac_prog"
7765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7766 break 2
7767 fi
7768 done
7769 done
7770 IFS=$as_save_IFS
7771
7772 fi
7773 fi
7774 BISON=$ac_cv_prog_BISON
7775 if test -n "$BISON"; then
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7777 $as_echo "$BISON" >&6; }
7778 else
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7780 $as_echo "no" >&6; }
7781 fi
7782
7783
7784 test -n "$BISON" && break
7785 done
7786 test -n "$BISON" || BISON="$MISSING bison"
7787
7788
7789 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7790 # check for build == host before using them.
7791
7792 # NM
7793 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7794 && test -d ../binutils ; then
7795 NM='${objdir}/../binutils/nm-new'
7796 else
7797 # Extract the first word of "nm", so it can be a program name with args.
7798 set dummy nm; ac_word=$2
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800 $as_echo_n "checking for $ac_word... " >&6; }
7801 if test "${ac_cv_prog_NM+set}" = set; then :
7802 $as_echo_n "(cached) " >&6
7803 else
7804 if test -n "$NM"; then
7805 ac_cv_prog_NM="$NM" # Let the user override the test.
7806 else
7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 for as_dir in $PATH
7809 do
7810 IFS=$as_save_IFS
7811 test -z "$as_dir" && as_dir=.
7812 for ac_exec_ext in '' $ac_executable_extensions; do
7813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7814 ac_cv_prog_NM="nm"
7815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7816 break 2
7817 fi
7818 done
7819 done
7820 IFS=$as_save_IFS
7821
7822 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7823 fi
7824 fi
7825 NM=$ac_cv_prog_NM
7826 if test -n "$NM"; then
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7828 $as_echo "$NM" >&6; }
7829 else
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7831 $as_echo "no" >&6; }
7832 fi
7833
7834
7835 fi
7836
7837 # AR
7838 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7839 && test -d ../binutils ; then
7840 AR='${objdir}/../binutils/ar'
7841 else
7842 # Extract the first word of "ar", so it can be a program name with args.
7843 set dummy ar; ac_word=$2
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7845 $as_echo_n "checking for $ac_word... " >&6; }
7846 if test "${ac_cv_prog_AR+set}" = set; then :
7847 $as_echo_n "(cached) " >&6
7848 else
7849 if test -n "$AR"; then
7850 ac_cv_prog_AR="$AR" # Let the user override the test.
7851 else
7852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853 for as_dir in $PATH
7854 do
7855 IFS=$as_save_IFS
7856 test -z "$as_dir" && as_dir=.
7857 for ac_exec_ext in '' $ac_executable_extensions; do
7858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7859 ac_cv_prog_AR="ar"
7860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7861 break 2
7862 fi
7863 done
7864 done
7865 IFS=$as_save_IFS
7866
7867 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7868 fi
7869 fi
7870 AR=$ac_cv_prog_AR
7871 if test -n "$AR"; then
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7873 $as_echo "$AR" >&6; }
7874 else
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876 $as_echo "no" >&6; }
7877 fi
7878
7879
7880 fi
7881
7882
7883 # --------------------
7884 # Checks for C headers
7885 # --------------------
7886
7887 # Need to reject headers which give warnings, so that the -Werror bootstrap
7888 # works later. *sigh* This needs to come before all header checks.
7889
7890 ac_c_preproc_warn_flag=yes
7891
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7893 $as_echo_n "checking for ANSI C header files... " >&6; }
7894 if test "${ac_cv_header_stdc+set}" = set; then :
7895 $as_echo_n "(cached) " >&6
7896 else
7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898 /* end confdefs.h. */
7899 #include <stdlib.h>
7900 #include <stdarg.h>
7901 #include <string.h>
7902 #include <float.h>
7903
7904 int
7905 main ()
7906 {
7907
7908 ;
7909 return 0;
7910 }
7911 _ACEOF
7912 if ac_fn_c_try_compile "$LINENO"; then :
7913 ac_cv_header_stdc=yes
7914 else
7915 ac_cv_header_stdc=no
7916 fi
7917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7918
7919 if test $ac_cv_header_stdc = yes; then
7920 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7922 /* end confdefs.h. */
7923 #include <string.h>
7924
7925 _ACEOF
7926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7927 $EGREP "memchr" >/dev/null 2>&1; then :
7928
7929 else
7930 ac_cv_header_stdc=no
7931 fi
7932 rm -f conftest*
7933
7934 fi
7935
7936 if test $ac_cv_header_stdc = yes; then
7937 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h. */
7940 #include <stdlib.h>
7941
7942 _ACEOF
7943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7944 $EGREP "free" >/dev/null 2>&1; then :
7945
7946 else
7947 ac_cv_header_stdc=no
7948 fi
7949 rm -f conftest*
7950
7951 fi
7952
7953 if test $ac_cv_header_stdc = yes; then
7954 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7955 if test "$cross_compiling" = yes; then :
7956 :
7957 else
7958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7959 /* end confdefs.h. */
7960 #include <ctype.h>
7961 #include <stdlib.h>
7962 #if ((' ' & 0x0FF) == 0x020)
7963 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7964 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7965 #else
7966 # define ISLOWER(c) \
7967 (('a' <= (c) && (c) <= 'i') \
7968 || ('j' <= (c) && (c) <= 'r') \
7969 || ('s' <= (c) && (c) <= 'z'))
7970 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7971 #endif
7972
7973 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7974 int
7975 main ()
7976 {
7977 int i;
7978 for (i = 0; i < 256; i++)
7979 if (XOR (islower (i), ISLOWER (i))
7980 || toupper (i) != TOUPPER (i))
7981 return 2;
7982 return 0;
7983 }
7984 _ACEOF
7985 if ac_fn_c_try_run "$LINENO"; then :
7986
7987 else
7988 ac_cv_header_stdc=no
7989 fi
7990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7991 conftest.$ac_objext conftest.beam conftest.$ac_ext
7992 fi
7993
7994 fi
7995 fi
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7997 $as_echo "$ac_cv_header_stdc" >&6; }
7998 if test $ac_cv_header_stdc = yes; then
7999
8000 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8001
8002 fi
8003
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8005 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8006 if test "${ac_cv_header_time+set}" = set; then :
8007 $as_echo_n "(cached) " >&6
8008 else
8009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010 /* end confdefs.h. */
8011 #include <sys/types.h>
8012 #include <sys/time.h>
8013 #include <time.h>
8014
8015 int
8016 main ()
8017 {
8018 if ((struct tm *) 0)
8019 return 0;
8020 ;
8021 return 0;
8022 }
8023 _ACEOF
8024 if ac_fn_c_try_compile "$LINENO"; then :
8025 ac_cv_header_time=yes
8026 else
8027 ac_cv_header_time=no
8028 fi
8029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8030 fi
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8032 $as_echo "$ac_cv_header_time" >&6; }
8033 if test $ac_cv_header_time = yes; then
8034
8035 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8036
8037 fi
8038
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8040 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8041 if test "${gcc_cv_header_string+set}" = set; then :
8042 $as_echo_n "(cached) " >&6
8043 else
8044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8045 /* end confdefs.h. */
8046 #include <string.h>
8047 #include <strings.h>
8048 int
8049 main ()
8050 {
8051
8052 ;
8053 return 0;
8054 }
8055 _ACEOF
8056 if ac_fn_c_try_compile "$LINENO"; then :
8057 gcc_cv_header_string=yes
8058 else
8059 gcc_cv_header_string=no
8060 fi
8061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8062 fi
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8064 $as_echo "$gcc_cv_header_string" >&6; }
8065 if test $gcc_cv_header_string = yes; then
8066
8067 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8068
8069 fi
8070
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8072 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8073 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8074 $as_echo_n "(cached) " >&6
8075 else
8076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8077 /* end confdefs.h. */
8078 #include <sys/types.h>
8079 #include <sys/wait.h>
8080 #ifndef WEXITSTATUS
8081 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8082 #endif
8083 #ifndef WIFEXITED
8084 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8085 #endif
8086
8087 int
8088 main ()
8089 {
8090 int s;
8091 wait (&s);
8092 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8093 ;
8094 return 0;
8095 }
8096 _ACEOF
8097 if ac_fn_c_try_compile "$LINENO"; then :
8098 ac_cv_header_sys_wait_h=yes
8099 else
8100 ac_cv_header_sys_wait_h=no
8101 fi
8102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8103 fi
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8105 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8106 if test $ac_cv_header_sys_wait_h = yes; then
8107
8108 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8109
8110 fi
8111
8112 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8113 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8114 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8115 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8116 do :
8117 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8118 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8119 eval as_val=\$$as_ac_Header
8120 if test "x$as_val" = x""yes; then :
8121 cat >>confdefs.h <<_ACEOF
8122 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8123 _ACEOF
8124
8125 fi
8126 done
8127
8128
8129 # Check for thread headers.
8130 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8131 if test "x$ac_cv_header_thread_h" = x""yes; then :
8132 have_thread_h=yes
8133 else
8134 have_thread_h=
8135 fi
8136
8137 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8138 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8139 have_pthread_h=yes
8140 else
8141 have_pthread_h=
8142 fi
8143
8144
8145 # These tests can't be done till we know if we have limits.h.
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8147 $as_echo_n "checking for CHAR_BIT... " >&6; }
8148 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8149 $as_echo_n "(cached) " >&6
8150 else
8151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8152 /* end confdefs.h. */
8153 #ifdef HAVE_LIMITS_H
8154 #include <limits.h>
8155 #endif
8156 #ifdef CHAR_BIT
8157 found
8158 #endif
8159 _ACEOF
8160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8161 $EGREP "found" >/dev/null 2>&1; then :
8162 gcc_cv_decl_char_bit=yes
8163 else
8164 gcc_cv_decl_char_bit=no
8165 fi
8166 rm -f conftest*
8167
8168
8169 fi
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8171 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8172 if test $gcc_cv_decl_char_bit = no; then
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8174 $as_echo_n "checking number of bits in a byte... " >&6; }
8175 if test "${gcc_cv_c_nbby+set}" = set; then :
8176 $as_echo_n "(cached) " >&6
8177 else
8178 i=8
8179 gcc_cv_c_nbby=
8180 while test $i -lt 65; do
8181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8182 /* end confdefs.h. */
8183
8184 int
8185 main ()
8186 {
8187 switch(0) {
8188 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8189 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8190 ; }
8191 ;
8192 return 0;
8193 }
8194 _ACEOF
8195 if ac_fn_c_try_compile "$LINENO"; then :
8196 gcc_cv_c_nbby=$i; break
8197 fi
8198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8199 i=`expr $i + 1`
8200 done
8201 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8202
8203 fi
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8205 $as_echo "$gcc_cv_c_nbby" >&6; }
8206 if test $gcc_cv_c_nbby = failed; then
8207 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8208 else
8209
8210 cat >>confdefs.h <<_ACEOF
8211 #define CHAR_BIT $gcc_cv_c_nbby
8212 _ACEOF
8213
8214 fi
8215 fi
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8217 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8218 if test "${ac_cv_c_bigendian+set}" = set; then :
8219 $as_echo_n "(cached) " >&6
8220 else
8221 ac_cv_c_bigendian=unknown
8222 # See if we're dealing with a universal compiler.
8223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8224 /* end confdefs.h. */
8225 #ifndef __APPLE_CC__
8226 not a universal capable compiler
8227 #endif
8228 typedef int dummy;
8229
8230 _ACEOF
8231 if ac_fn_c_try_compile "$LINENO"; then :
8232
8233 # Check for potential -arch flags. It is not universal unless
8234 # there are at least two -arch flags with different values.
8235 ac_arch=
8236 ac_prev=
8237 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8238 if test -n "$ac_prev"; then
8239 case $ac_word in
8240 i?86 | x86_64 | ppc | ppc64)
8241 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8242 ac_arch=$ac_word
8243 else
8244 ac_cv_c_bigendian=universal
8245 break
8246 fi
8247 ;;
8248 esac
8249 ac_prev=
8250 elif test "x$ac_word" = "x-arch"; then
8251 ac_prev=arch
8252 fi
8253 done
8254 fi
8255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8256 if test $ac_cv_c_bigendian = unknown; then
8257 # See if sys/param.h defines the BYTE_ORDER macro.
8258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8259 /* end confdefs.h. */
8260 #include <sys/types.h>
8261 #include <sys/param.h>
8262
8263 int
8264 main ()
8265 {
8266 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8267 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8268 && LITTLE_ENDIAN)
8269 bogus endian macros
8270 #endif
8271
8272 ;
8273 return 0;
8274 }
8275 _ACEOF
8276 if ac_fn_c_try_compile "$LINENO"; then :
8277 # It does; now see whether it defined to BIG_ENDIAN or not.
8278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8279 /* end confdefs.h. */
8280 #include <sys/types.h>
8281 #include <sys/param.h>
8282
8283 int
8284 main ()
8285 {
8286 #if BYTE_ORDER != BIG_ENDIAN
8287 not big endian
8288 #endif
8289
8290 ;
8291 return 0;
8292 }
8293 _ACEOF
8294 if ac_fn_c_try_compile "$LINENO"; then :
8295 ac_cv_c_bigendian=yes
8296 else
8297 ac_cv_c_bigendian=no
8298 fi
8299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8300 fi
8301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8302 fi
8303 if test $ac_cv_c_bigendian = unknown; then
8304 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8306 /* end confdefs.h. */
8307 #include <limits.h>
8308
8309 int
8310 main ()
8311 {
8312 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8313 bogus endian macros
8314 #endif
8315
8316 ;
8317 return 0;
8318 }
8319 _ACEOF
8320 if ac_fn_c_try_compile "$LINENO"; then :
8321 # It does; now see whether it defined to _BIG_ENDIAN or not.
8322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h. */
8324 #include <limits.h>
8325
8326 int
8327 main ()
8328 {
8329 #ifndef _BIG_ENDIAN
8330 not big endian
8331 #endif
8332
8333 ;
8334 return 0;
8335 }
8336 _ACEOF
8337 if ac_fn_c_try_compile "$LINENO"; then :
8338 ac_cv_c_bigendian=yes
8339 else
8340 ac_cv_c_bigendian=no
8341 fi
8342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8343 fi
8344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8345 fi
8346 if test $ac_cv_c_bigendian = unknown; then
8347 # Compile a test program.
8348 if test "$cross_compiling" = yes; then :
8349 # Try to guess by grepping values from an object file.
8350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8351 /* end confdefs.h. */
8352 short int ascii_mm[] =
8353 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8354 short int ascii_ii[] =
8355 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8356 int use_ascii (int i) {
8357 return ascii_mm[i] + ascii_ii[i];
8358 }
8359 short int ebcdic_ii[] =
8360 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8361 short int ebcdic_mm[] =
8362 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8363 int use_ebcdic (int i) {
8364 return ebcdic_mm[i] + ebcdic_ii[i];
8365 }
8366 extern int foo;
8367
8368 int
8369 main ()
8370 {
8371 return use_ascii (foo) == use_ebcdic (foo);
8372 ;
8373 return 0;
8374 }
8375 _ACEOF
8376 if ac_fn_c_try_compile "$LINENO"; then :
8377 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8378 ac_cv_c_bigendian=yes
8379 fi
8380 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8381 if test "$ac_cv_c_bigendian" = unknown; then
8382 ac_cv_c_bigendian=no
8383 else
8384 # finding both strings is unlikely to happen, but who knows?
8385 ac_cv_c_bigendian=unknown
8386 fi
8387 fi
8388 fi
8389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8390 else
8391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8392 /* end confdefs.h. */
8393 $ac_includes_default
8394 int
8395 main ()
8396 {
8397
8398 /* Are we little or big endian? From Harbison&Steele. */
8399 union
8400 {
8401 long int l;
8402 char c[sizeof (long int)];
8403 } u;
8404 u.l = 1;
8405 return u.c[sizeof (long int) - 1] == 1;
8406
8407 ;
8408 return 0;
8409 }
8410 _ACEOF
8411 if ac_fn_c_try_run "$LINENO"; then :
8412 ac_cv_c_bigendian=no
8413 else
8414 ac_cv_c_bigendian=yes
8415 fi
8416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8417 conftest.$ac_objext conftest.beam conftest.$ac_ext
8418 fi
8419
8420 fi
8421 fi
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8423 $as_echo "$ac_cv_c_bigendian" >&6; }
8424 case $ac_cv_c_bigendian in #(
8425 yes)
8426 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8427 ;; #(
8428 no)
8429 ;; #(
8430 universal)
8431
8432 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8433
8434 ;; #(
8435 *)
8436 as_fn_error "unknown endianness
8437 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8438 esac
8439
8440
8441 # ----------------------
8442 # Checks for C++ headers
8443 # ----------------------
8444
8445 ac_ext=cpp
8446 ac_cpp='$CXXCPP $CPPFLAGS'
8447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8451 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8452 if test -z "$CXXCPP"; then
8453 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8454 $as_echo_n "(cached) " >&6
8455 else
8456 # Double quotes because CXXCPP needs to be expanded
8457 for CXXCPP in "$CXX -E" "/lib/cpp"
8458 do
8459 ac_preproc_ok=false
8460 for ac_cxx_preproc_warn_flag in '' yes
8461 do
8462 # Use a header file that comes with gcc, so configuring glibc
8463 # with a fresh cross-compiler works.
8464 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8465 # <limits.h> exists even on freestanding compilers.
8466 # On the NeXT, cc -E runs the code through the compiler's parser,
8467 # not just through cpp. "Syntax error" is here to catch this case.
8468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8469 /* end confdefs.h. */
8470 #ifdef __STDC__
8471 # include <limits.h>
8472 #else
8473 # include <assert.h>
8474 #endif
8475 Syntax error
8476 _ACEOF
8477 if ac_fn_cxx_try_cpp "$LINENO"; then :
8478
8479 else
8480 # Broken: fails on valid input.
8481 continue
8482 fi
8483 rm -f conftest.err conftest.$ac_ext
8484
8485 # OK, works on sane cases. Now check whether nonexistent headers
8486 # can be detected and how.
8487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8488 /* end confdefs.h. */
8489 #include <ac_nonexistent.h>
8490 _ACEOF
8491 if ac_fn_cxx_try_cpp "$LINENO"; then :
8492 # Broken: success on invalid input.
8493 continue
8494 else
8495 # Passes both tests.
8496 ac_preproc_ok=:
8497 break
8498 fi
8499 rm -f conftest.err conftest.$ac_ext
8500
8501 done
8502 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8503 rm -f conftest.err conftest.$ac_ext
8504 if $ac_preproc_ok; then :
8505 break
8506 fi
8507
8508 done
8509 ac_cv_prog_CXXCPP=$CXXCPP
8510
8511 fi
8512 CXXCPP=$ac_cv_prog_CXXCPP
8513 else
8514 ac_cv_prog_CXXCPP=$CXXCPP
8515 fi
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8517 $as_echo "$CXXCPP" >&6; }
8518 ac_preproc_ok=false
8519 for ac_cxx_preproc_warn_flag in '' yes
8520 do
8521 # Use a header file that comes with gcc, so configuring glibc
8522 # with a fresh cross-compiler works.
8523 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8524 # <limits.h> exists even on freestanding compilers.
8525 # On the NeXT, cc -E runs the code through the compiler's parser,
8526 # not just through cpp. "Syntax error" is here to catch this case.
8527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8528 /* end confdefs.h. */
8529 #ifdef __STDC__
8530 # include <limits.h>
8531 #else
8532 # include <assert.h>
8533 #endif
8534 Syntax error
8535 _ACEOF
8536 if ac_fn_cxx_try_cpp "$LINENO"; then :
8537
8538 else
8539 # Broken: fails on valid input.
8540 continue
8541 fi
8542 rm -f conftest.err conftest.$ac_ext
8543
8544 # OK, works on sane cases. Now check whether nonexistent headers
8545 # can be detected and how.
8546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8547 /* end confdefs.h. */
8548 #include <ac_nonexistent.h>
8549 _ACEOF
8550 if ac_fn_cxx_try_cpp "$LINENO"; then :
8551 # Broken: success on invalid input.
8552 continue
8553 else
8554 # Passes both tests.
8555 ac_preproc_ok=:
8556 break
8557 fi
8558 rm -f conftest.err conftest.$ac_ext
8559
8560 done
8561 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8562 rm -f conftest.err conftest.$ac_ext
8563 if $ac_preproc_ok; then :
8564
8565 else
8566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8569 See \`config.log' for more details." >&5
8570 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8571 See \`config.log' for more details." >&2;}; }
8572 fi
8573
8574 ac_ext=c
8575 ac_cpp='$CPP $CPPFLAGS'
8576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8579
8580
8581 ac_ext=cpp
8582 ac_cpp='$CXXCPP $CPPFLAGS'
8583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8586
8587
8588
8589
8590 for ac_header in unordered_map
8591 do :
8592 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8593 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8594 cat >>confdefs.h <<_ACEOF
8595 #define HAVE_UNORDERED_MAP 1
8596 _ACEOF
8597
8598 fi
8599 done
8600
8601 for ac_header in tr1/unordered_map
8602 do :
8603 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8604 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8605 cat >>confdefs.h <<_ACEOF
8606 #define HAVE_TR1_UNORDERED_MAP 1
8607 _ACEOF
8608
8609 fi
8610 done
8611
8612 for ac_header in ext/hash_map
8613 do :
8614 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8615 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8616 cat >>confdefs.h <<_ACEOF
8617 #define HAVE_EXT_HASH_MAP 1
8618 _ACEOF
8619
8620 fi
8621 done
8622
8623
8624 ac_ext=c
8625 ac_cpp='$CPP $CPPFLAGS'
8626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8629
8630
8631 # --------
8632 # UNSORTED
8633 # --------
8634
8635
8636 # These libraries may be used by collect2.
8637 # We may need a special search path to get them linked.
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8639 $as_echo_n "checking for collect2 libraries... " >&6; }
8640 if test "${gcc_cv_collect2_libs+set}" = set; then :
8641 $as_echo_n "(cached) " >&6
8642 else
8643 save_LIBS="$LIBS"
8644 for libs in '' -lld -lmld \
8645 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8646 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8647 do
8648 LIBS="$libs"
8649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8650 /* end confdefs.h. */
8651
8652 /* Override any GCC internal prototype to avoid an error.
8653 Use char because int might match the return type of a GCC
8654 builtin and then its argument prototype would still apply. */
8655 #ifdef __cplusplus
8656 extern "C"
8657 #endif
8658 char ldopen ();
8659 int
8660 main ()
8661 {
8662 return ldopen ();
8663 ;
8664 return 0;
8665 }
8666 _ACEOF
8667 if ac_fn_c_try_link "$LINENO"; then :
8668 gcc_cv_collect2_libs="$libs"; break
8669 fi
8670 rm -f core conftest.err conftest.$ac_objext \
8671 conftest$ac_exeext conftest.$ac_ext
8672 done
8673 LIBS="$save_LIBS"
8674 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8675 fi
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8677 $as_echo "$gcc_cv_collect2_libs" >&6; }
8678 case $gcc_cv_collect2_libs in
8679 "none required") ;;
8680 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8681 esac
8682
8683
8684 # When building Ada code on Alpha, we need exc_resume which is usually in
8685 # -lexc. So test for it.
8686 save_LIBS="$LIBS"
8687 LIBS=
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8689 $as_echo_n "checking for library containing exc_resume... " >&6; }
8690 if test "${ac_cv_search_exc_resume+set}" = set; then :
8691 $as_echo_n "(cached) " >&6
8692 else
8693 ac_func_search_save_LIBS=$LIBS
8694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8695 /* end confdefs.h. */
8696
8697 /* Override any GCC internal prototype to avoid an error.
8698 Use char because int might match the return type of a GCC
8699 builtin and then its argument prototype would still apply. */
8700 #ifdef __cplusplus
8701 extern "C"
8702 #endif
8703 char exc_resume ();
8704 int
8705 main ()
8706 {
8707 return exc_resume ();
8708 ;
8709 return 0;
8710 }
8711 _ACEOF
8712 for ac_lib in '' exc; do
8713 if test -z "$ac_lib"; then
8714 ac_res="none required"
8715 else
8716 ac_res=-l$ac_lib
8717 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8718 fi
8719 if ac_fn_c_try_link "$LINENO"; then :
8720 ac_cv_search_exc_resume=$ac_res
8721 fi
8722 rm -f core conftest.err conftest.$ac_objext \
8723 conftest$ac_exeext
8724 if test "${ac_cv_search_exc_resume+set}" = set; then :
8725 break
8726 fi
8727 done
8728 if test "${ac_cv_search_exc_resume+set}" = set; then :
8729
8730 else
8731 ac_cv_search_exc_resume=no
8732 fi
8733 rm conftest.$ac_ext
8734 LIBS=$ac_func_search_save_LIBS
8735 fi
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8737 $as_echo "$ac_cv_search_exc_resume" >&6; }
8738 ac_res=$ac_cv_search_exc_resume
8739 if test "$ac_res" != no; then :
8740 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8741
8742 fi
8743
8744 GNAT_LIBEXC="$LIBS"
8745 LIBS="$save_LIBS"
8746
8747
8748 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8749 save_LIBS="$LIBS"
8750 LIBS=
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8752 $as_echo_n "checking for library containing kstat_open... " >&6; }
8753 if test "${ac_cv_search_kstat_open+set}" = set; then :
8754 $as_echo_n "(cached) " >&6
8755 else
8756 ac_func_search_save_LIBS=$LIBS
8757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8758 /* end confdefs.h. */
8759
8760 /* Override any GCC internal prototype to avoid an error.
8761 Use char because int might match the return type of a GCC
8762 builtin and then its argument prototype would still apply. */
8763 #ifdef __cplusplus
8764 extern "C"
8765 #endif
8766 char kstat_open ();
8767 int
8768 main ()
8769 {
8770 return kstat_open ();
8771 ;
8772 return 0;
8773 }
8774 _ACEOF
8775 for ac_lib in '' kstat; do
8776 if test -z "$ac_lib"; then
8777 ac_res="none required"
8778 else
8779 ac_res=-l$ac_lib
8780 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8781 fi
8782 if ac_fn_c_try_link "$LINENO"; then :
8783 ac_cv_search_kstat_open=$ac_res
8784 fi
8785 rm -f core conftest.err conftest.$ac_objext \
8786 conftest$ac_exeext
8787 if test "${ac_cv_search_kstat_open+set}" = set; then :
8788 break
8789 fi
8790 done
8791 if test "${ac_cv_search_kstat_open+set}" = set; then :
8792
8793 else
8794 ac_cv_search_kstat_open=no
8795 fi
8796 rm conftest.$ac_ext
8797 LIBS=$ac_func_search_save_LIBS
8798 fi
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8800 $as_echo "$ac_cv_search_kstat_open" >&6; }
8801 ac_res=$ac_cv_search_kstat_open
8802 if test "$ac_res" != no; then :
8803 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8804
8805 fi
8806
8807 EXTRA_GCC_LIBS="$LIBS"
8808 LIBS="$save_LIBS"
8809
8810
8811 # Some systems put ldexp and frexp in libm instead of libc; assume
8812 # they're both in the same place. jcf-dump needs them.
8813 save_LIBS="$LIBS"
8814 LIBS=
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8816 $as_echo_n "checking for library containing ldexp... " >&6; }
8817 if test "${ac_cv_search_ldexp+set}" = set; then :
8818 $as_echo_n "(cached) " >&6
8819 else
8820 ac_func_search_save_LIBS=$LIBS
8821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8822 /* end confdefs.h. */
8823
8824 /* Override any GCC internal prototype to avoid an error.
8825 Use char because int might match the return type of a GCC
8826 builtin and then its argument prototype would still apply. */
8827 #ifdef __cplusplus
8828 extern "C"
8829 #endif
8830 char ldexp ();
8831 int
8832 main ()
8833 {
8834 return ldexp ();
8835 ;
8836 return 0;
8837 }
8838 _ACEOF
8839 for ac_lib in '' m; do
8840 if test -z "$ac_lib"; then
8841 ac_res="none required"
8842 else
8843 ac_res=-l$ac_lib
8844 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8845 fi
8846 if ac_fn_c_try_link "$LINENO"; then :
8847 ac_cv_search_ldexp=$ac_res
8848 fi
8849 rm -f core conftest.err conftest.$ac_objext \
8850 conftest$ac_exeext
8851 if test "${ac_cv_search_ldexp+set}" = set; then :
8852 break
8853 fi
8854 done
8855 if test "${ac_cv_search_ldexp+set}" = set; then :
8856
8857 else
8858 ac_cv_search_ldexp=no
8859 fi
8860 rm conftest.$ac_ext
8861 LIBS=$ac_func_search_save_LIBS
8862 fi
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8864 $as_echo "$ac_cv_search_ldexp" >&6; }
8865 ac_res=$ac_cv_search_ldexp
8866 if test "$ac_res" != no; then :
8867 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8868
8869 fi
8870
8871 LDEXP_LIB="$LIBS"
8872 LIBS="$save_LIBS"
8873
8874
8875 # Use <inttypes.h> only if it exists,
8876 # doesn't clash with <sys/types.h>, and declares intmax_t.
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8878 $as_echo_n "checking for inttypes.h... " >&6; }
8879 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8880 $as_echo_n "(cached) " >&6
8881 else
8882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8883 /* end confdefs.h. */
8884 #include <sys/types.h>
8885 #include <inttypes.h>
8886 int
8887 main ()
8888 {
8889 intmax_t i = -1;
8890 ;
8891 return 0;
8892 }
8893 _ACEOF
8894 if ac_fn_c_try_compile "$LINENO"; then :
8895 gcc_cv_header_inttypes_h=yes
8896 else
8897 gcc_cv_header_inttypes_h=no
8898 fi
8899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8900 fi
8901
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8903 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8904 if test $gcc_cv_header_inttypes_h = yes; then
8905
8906 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8907
8908 fi
8909
8910
8911
8912 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8913 sysconf strsignal getrusage nl_langinfo \
8914 gettimeofday mbstowcs wcswidth mmap setlocale \
8915 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
8916 do :
8917 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8918 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8919 eval as_val=\$$as_ac_var
8920 if test "x$as_val" = x""yes; then :
8921 cat >>confdefs.h <<_ACEOF
8922 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8923 _ACEOF
8924
8925 fi
8926 done
8927
8928
8929 if test x$ac_cv_func_mbstowcs = xyes; then
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8931 $as_echo_n "checking whether mbstowcs works... " >&6; }
8932 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8933 $as_echo_n "(cached) " >&6
8934 else
8935 if test "$cross_compiling" = yes; then :
8936 gcc_cv_func_mbstowcs_works=yes
8937 else
8938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8939 /* end confdefs.h. */
8940 #include <stdlib.h>
8941 int main()
8942 {
8943 mbstowcs(0, "", 0);
8944 return 0;
8945 }
8946 _ACEOF
8947 if ac_fn_c_try_run "$LINENO"; then :
8948 gcc_cv_func_mbstowcs_works=yes
8949 else
8950 gcc_cv_func_mbstowcs_works=no
8951 fi
8952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8953 conftest.$ac_objext conftest.beam conftest.$ac_ext
8954 fi
8955
8956 fi
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8958 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8959 if test x$gcc_cv_func_mbstowcs_works = xyes; then
8960
8961 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8962
8963 fi
8964 fi
8965
8966 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8967 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8968
8969 else
8970
8971 cat >>confdefs.h <<_ACEOF
8972 #define ssize_t int
8973 _ACEOF
8974
8975 fi
8976
8977 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8978 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8979
8980 else
8981
8982 cat >>confdefs.h <<_ACEOF
8983 #define caddr_t char *
8984 _ACEOF
8985
8986 fi
8987
8988
8989
8990 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8991 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8992 gcc_header_sys_mman_h=yes
8993 else
8994 gcc_header_sys_mman_h=no
8995 fi
8996
8997 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8998 if test "x$ac_cv_func_mmap" = x""yes; then :
8999 gcc_func_mmap=yes
9000 else
9001 gcc_func_mmap=no
9002 fi
9003
9004 if test "$gcc_header_sys_mman_h" != yes \
9005 || test "$gcc_func_mmap" != yes; then
9006 gcc_cv_func_mmap_file=no
9007 gcc_cv_func_mmap_dev_zero=no
9008 gcc_cv_func_mmap_anon=no
9009 else
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9011 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9012 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9013 $as_echo_n "(cached) " >&6
9014 else
9015 # Add a system to this blacklist if
9016 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9017 # memory area containing the same data that you'd get if you applied
9018 # read() to the same fd. The only system known to have a problem here
9019 # is VMS, where text files have record structure.
9020 case "$host_os" in
9021 vms* | ultrix*)
9022 gcc_cv_func_mmap_file=no ;;
9023 *)
9024 gcc_cv_func_mmap_file=yes;;
9025 esac
9026 fi
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9028 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9030 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9031 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9032 $as_echo_n "(cached) " >&6
9033 else
9034 # Add a system to this blacklist if it has mmap() but /dev/zero
9035 # does not exist, or if mmapping /dev/zero does not give anonymous
9036 # zeroed pages with both the following properties:
9037 # 1. If you map N consecutive pages in with one call, and then
9038 # unmap any subset of those pages, the pages that were not
9039 # explicitly unmapped remain accessible.
9040 # 2. If you map two adjacent blocks of memory and then unmap them
9041 # both at once, they must both go away.
9042 # Systems known to be in this category are Windows (all variants),
9043 # VMS, and Darwin.
9044 case "$host_os" in
9045 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9046 gcc_cv_func_mmap_dev_zero=no ;;
9047 *)
9048 gcc_cv_func_mmap_dev_zero=yes;;
9049 esac
9050 fi
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9052 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9053
9054 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9056 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9057 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9058 $as_echo_n "(cached) " >&6
9059 else
9060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061 /* end confdefs.h. */
9062 #include <sys/types.h>
9063 #include <sys/mman.h>
9064 #include <unistd.h>
9065
9066 #ifndef MAP_ANONYMOUS
9067 #define MAP_ANONYMOUS MAP_ANON
9068 #endif
9069
9070 int
9071 main ()
9072 {
9073 int n = MAP_ANONYMOUS;
9074 ;
9075 return 0;
9076 }
9077 _ACEOF
9078 if ac_fn_c_try_compile "$LINENO"; then :
9079 gcc_cv_decl_map_anon=yes
9080 else
9081 gcc_cv_decl_map_anon=no
9082 fi
9083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9084 fi
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9086 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9087
9088 if test $gcc_cv_decl_map_anon = no; then
9089 gcc_cv_func_mmap_anon=no
9090 else
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9092 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9093 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9094 $as_echo_n "(cached) " >&6
9095 else
9096 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9097 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9098 # doesn't give anonymous zeroed pages with the same properties listed
9099 # above for use of /dev/zero.
9100 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9101 case "$host_os" in
9102 vms* | cygwin* | pe | mingw* | sco* | udk* )
9103 gcc_cv_func_mmap_anon=no ;;
9104 *)
9105 gcc_cv_func_mmap_anon=yes;;
9106 esac
9107 fi
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9109 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9110 fi
9111 fi
9112
9113 if test $gcc_cv_func_mmap_file = yes; then
9114
9115 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9116
9117 fi
9118 if test $gcc_cv_func_mmap_dev_zero = yes; then
9119
9120 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9121
9122 fi
9123 if test $gcc_cv_func_mmap_anon = yes; then
9124
9125 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9126
9127 fi
9128
9129
9130 case "${host}" in
9131 *-*-*vms*)
9132 # Under VMS, vfork works very differently than on Unix. The standard test
9133 # won't work, and it isn't easily adaptable. It makes more sense to
9134 # just force it.
9135 ac_cv_func_vfork_works=yes
9136 ;;
9137 esac
9138 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9139 if test "x$ac_cv_type_pid_t" = x""yes; then :
9140
9141 else
9142
9143 cat >>confdefs.h <<_ACEOF
9144 #define pid_t int
9145 _ACEOF
9146
9147 fi
9148
9149 for ac_header in vfork.h
9150 do :
9151 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9152 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9153 cat >>confdefs.h <<_ACEOF
9154 #define HAVE_VFORK_H 1
9155 _ACEOF
9156
9157 fi
9158 done
9159
9160 for ac_func in fork vfork
9161 do :
9162 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9163 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9164 eval as_val=\$$as_ac_var
9165 if test "x$as_val" = x""yes; then :
9166 cat >>confdefs.h <<_ACEOF
9167 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9168 _ACEOF
9169
9170 fi
9171 done
9172
9173 if test "x$ac_cv_func_fork" = xyes; then
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9175 $as_echo_n "checking for working fork... " >&6; }
9176 if test "${ac_cv_func_fork_works+set}" = set; then :
9177 $as_echo_n "(cached) " >&6
9178 else
9179 if test "$cross_compiling" = yes; then :
9180 ac_cv_func_fork_works=cross
9181 else
9182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9183 /* end confdefs.h. */
9184 $ac_includes_default
9185 int
9186 main ()
9187 {
9188
9189 /* By Ruediger Kuhlmann. */
9190 return fork () < 0;
9191
9192 ;
9193 return 0;
9194 }
9195 _ACEOF
9196 if ac_fn_c_try_run "$LINENO"; then :
9197 ac_cv_func_fork_works=yes
9198 else
9199 ac_cv_func_fork_works=no
9200 fi
9201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9202 conftest.$ac_objext conftest.beam conftest.$ac_ext
9203 fi
9204
9205 fi
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9207 $as_echo "$ac_cv_func_fork_works" >&6; }
9208
9209 else
9210 ac_cv_func_fork_works=$ac_cv_func_fork
9211 fi
9212 if test "x$ac_cv_func_fork_works" = xcross; then
9213 case $host in
9214 *-*-amigaos* | *-*-msdosdjgpp*)
9215 # Override, as these systems have only a dummy fork() stub
9216 ac_cv_func_fork_works=no
9217 ;;
9218 *)
9219 ac_cv_func_fork_works=yes
9220 ;;
9221 esac
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9223 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9224 fi
9225 ac_cv_func_vfork_works=$ac_cv_func_vfork
9226 if test "x$ac_cv_func_vfork" = xyes; then
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9228 $as_echo_n "checking for working vfork... " >&6; }
9229 if test "${ac_cv_func_vfork_works+set}" = set; then :
9230 $as_echo_n "(cached) " >&6
9231 else
9232 if test "$cross_compiling" = yes; then :
9233 ac_cv_func_vfork_works=cross
9234 else
9235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9236 /* end confdefs.h. */
9237 /* Thanks to Paul Eggert for this test. */
9238 $ac_includes_default
9239 #include <sys/wait.h>
9240 #ifdef HAVE_VFORK_H
9241 # include <vfork.h>
9242 #endif
9243 /* On some sparc systems, changes by the child to local and incoming
9244 argument registers are propagated back to the parent. The compiler
9245 is told about this with #include <vfork.h>, but some compilers
9246 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9247 static variable whose address is put into a register that is
9248 clobbered by the vfork. */
9249 static void
9250 #ifdef __cplusplus
9251 sparc_address_test (int arg)
9252 # else
9253 sparc_address_test (arg) int arg;
9254 #endif
9255 {
9256 static pid_t child;
9257 if (!child) {
9258 child = vfork ();
9259 if (child < 0) {
9260 perror ("vfork");
9261 _exit(2);
9262 }
9263 if (!child) {
9264 arg = getpid();
9265 write(-1, "", 0);
9266 _exit (arg);
9267 }
9268 }
9269 }
9270
9271 int
9272 main ()
9273 {
9274 pid_t parent = getpid ();
9275 pid_t child;
9276
9277 sparc_address_test (0);
9278
9279 child = vfork ();
9280
9281 if (child == 0) {
9282 /* Here is another test for sparc vfork register problems. This
9283 test uses lots of local variables, at least as many local
9284 variables as main has allocated so far including compiler
9285 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9286 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9287 reuse the register of parent for one of the local variables,
9288 since it will think that parent can't possibly be used any more
9289 in this routine. Assigning to the local variable will thus
9290 munge parent in the parent process. */
9291 pid_t
9292 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9293 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9294 /* Convince the compiler that p..p7 are live; otherwise, it might
9295 use the same hardware register for all 8 local variables. */
9296 if (p != p1 || p != p2 || p != p3 || p != p4
9297 || p != p5 || p != p6 || p != p7)
9298 _exit(1);
9299
9300 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9301 from child file descriptors. If the child closes a descriptor
9302 before it execs or exits, this munges the parent's descriptor
9303 as well. Test for this by closing stdout in the child. */
9304 _exit(close(fileno(stdout)) != 0);
9305 } else {
9306 int status;
9307 struct stat st;
9308
9309 while (wait(&status) != child)
9310 ;
9311 return (
9312 /* Was there some problem with vforking? */
9313 child < 0
9314
9315 /* Did the child fail? (This shouldn't happen.) */
9316 || status
9317
9318 /* Did the vfork/compiler bug occur? */
9319 || parent != getpid()
9320
9321 /* Did the file descriptor bug occur? */
9322 || fstat(fileno(stdout), &st) != 0
9323 );
9324 }
9325 }
9326 _ACEOF
9327 if ac_fn_c_try_run "$LINENO"; then :
9328 ac_cv_func_vfork_works=yes
9329 else
9330 ac_cv_func_vfork_works=no
9331 fi
9332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9333 conftest.$ac_objext conftest.beam conftest.$ac_ext
9334 fi
9335
9336 fi
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9338 $as_echo "$ac_cv_func_vfork_works" >&6; }
9339
9340 fi;
9341 if test "x$ac_cv_func_fork_works" = xcross; then
9342 ac_cv_func_vfork_works=$ac_cv_func_vfork
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9344 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9345 fi
9346
9347 if test "x$ac_cv_func_vfork_works" = xyes; then
9348
9349 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9350
9351 else
9352
9353 $as_echo "#define vfork fork" >>confdefs.h
9354
9355 fi
9356 if test "x$ac_cv_func_fork_works" = xyes; then
9357
9358 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9359
9360 fi
9361
9362
9363 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9364 # iconv() prototype.
9365
9366 if test "X$prefix" = "XNONE"; then
9367 acl_final_prefix="$ac_default_prefix"
9368 else
9369 acl_final_prefix="$prefix"
9370 fi
9371 if test "X$exec_prefix" = "XNONE"; then
9372 acl_final_exec_prefix='${prefix}'
9373 else
9374 acl_final_exec_prefix="$exec_prefix"
9375 fi
9376 acl_save_prefix="$prefix"
9377 prefix="$acl_final_prefix"
9378 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9379 prefix="$acl_save_prefix"
9380
9381
9382 # Check whether --with-gnu-ld was given.
9383 if test "${with_gnu_ld+set}" = set; then :
9384 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9385 else
9386 with_gnu_ld=no
9387 fi
9388
9389 # Prepare PATH_SEPARATOR.
9390 # The user is always right.
9391 if test "${PATH_SEPARATOR+set}" != set; then
9392 echo "#! /bin/sh" >conf$$.sh
9393 echo "exit 0" >>conf$$.sh
9394 chmod +x conf$$.sh
9395 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9396 PATH_SEPARATOR=';'
9397 else
9398 PATH_SEPARATOR=:
9399 fi
9400 rm -f conf$$.sh
9401 fi
9402 ac_prog=ld
9403 if test "$GCC" = yes; then
9404 # Check if gcc -print-prog-name=ld gives a path.
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9406 $as_echo_n "checking for ld used by GCC... " >&6; }
9407 case $host in
9408 *-*-mingw*)
9409 # gcc leaves a trailing carriage return which upsets mingw
9410 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9411 *)
9412 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9413 esac
9414 case $ac_prog in
9415 # Accept absolute paths.
9416 [\\/]* | [A-Za-z]:[\\/]*)
9417 re_direlt='/[^/][^/]*/\.\./'
9418 # Canonicalize the path of ld
9419 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9420 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9421 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9422 done
9423 test -z "$LD" && LD="$ac_prog"
9424 ;;
9425 "")
9426 # If it fails, then pretend we aren't using GCC.
9427 ac_prog=ld
9428 ;;
9429 *)
9430 # If it is relative, then search for the first ld in PATH.
9431 with_gnu_ld=unknown
9432 ;;
9433 esac
9434 elif test "$with_gnu_ld" = yes; then
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9436 $as_echo_n "checking for GNU ld... " >&6; }
9437 else
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9439 $as_echo_n "checking for non-GNU ld... " >&6; }
9440 fi
9441 if test "${acl_cv_path_LD+set}" = set; then :
9442 $as_echo_n "(cached) " >&6
9443 else
9444 if test -z "$LD"; then
9445 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9446 for ac_dir in $PATH; do
9447 test -z "$ac_dir" && ac_dir=.
9448 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9449 acl_cv_path_LD="$ac_dir/$ac_prog"
9450 # Check to see if the program is GNU ld. I'd rather use --version,
9451 # but apparently some GNU ld's only accept -v.
9452 # Break only if it was the GNU/non-GNU ld that we prefer.
9453 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9454 test "$with_gnu_ld" != no && break
9455 else
9456 test "$with_gnu_ld" != yes && break
9457 fi
9458 fi
9459 done
9460 IFS="$ac_save_ifs"
9461 else
9462 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9463 fi
9464 fi
9465
9466 LD="$acl_cv_path_LD"
9467 if test -n "$LD"; then
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9469 $as_echo "$LD" >&6; }
9470 else
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9472 $as_echo "no" >&6; }
9473 fi
9474 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9476 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9477 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9478 $as_echo_n "(cached) " >&6
9479 else
9480 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9481 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9482 acl_cv_prog_gnu_ld=yes
9483 else
9484 acl_cv_prog_gnu_ld=no
9485 fi
9486 fi
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9488 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9489 with_gnu_ld=$acl_cv_prog_gnu_ld
9490
9491
9492
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9494 $as_echo_n "checking for shared library run path origin... " >&6; }
9495 if test "${acl_cv_rpath+set}" = set; then :
9496 $as_echo_n "(cached) " >&6
9497 else
9498
9499 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9500 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9501 . ./conftest.sh
9502 rm -f ./conftest.sh
9503 acl_cv_rpath=done
9504
9505 fi
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9507 $as_echo "$acl_cv_rpath" >&6; }
9508 wl="$acl_cv_wl"
9509 libext="$acl_cv_libext"
9510 shlibext="$acl_cv_shlibext"
9511 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9512 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9513 hardcode_direct="$acl_cv_hardcode_direct"
9514 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9515 # Check whether --enable-rpath was given.
9516 if test "${enable_rpath+set}" = set; then :
9517 enableval=$enable_rpath; :
9518 else
9519 enable_rpath=yes
9520 fi
9521
9522
9523
9524
9525
9526
9527
9528
9529 use_additional=yes
9530
9531 acl_save_prefix="$prefix"
9532 prefix="$acl_final_prefix"
9533 acl_save_exec_prefix="$exec_prefix"
9534 exec_prefix="$acl_final_exec_prefix"
9535
9536 eval additional_includedir=\"$includedir\"
9537 eval additional_libdir=\"$libdir\"
9538
9539 exec_prefix="$acl_save_exec_prefix"
9540 prefix="$acl_save_prefix"
9541
9542
9543 # Check whether --with-libiconv-prefix was given.
9544 if test "${with_libiconv_prefix+set}" = set; then :
9545 withval=$with_libiconv_prefix;
9546 if test "X$withval" = "Xno"; then
9547 use_additional=no
9548 else
9549 if test "X$withval" = "X"; then
9550
9551 acl_save_prefix="$prefix"
9552 prefix="$acl_final_prefix"
9553 acl_save_exec_prefix="$exec_prefix"
9554 exec_prefix="$acl_final_exec_prefix"
9555
9556 eval additional_includedir=\"$includedir\"
9557 eval additional_libdir=\"$libdir\"
9558
9559 exec_prefix="$acl_save_exec_prefix"
9560 prefix="$acl_save_prefix"
9561
9562 else
9563 additional_includedir="$withval/include"
9564 additional_libdir="$withval/lib"
9565 fi
9566 fi
9567
9568 fi
9569
9570 LIBICONV=
9571 LTLIBICONV=
9572 INCICONV=
9573 rpathdirs=
9574 ltrpathdirs=
9575 names_already_handled=
9576 names_next_round='iconv '
9577 while test -n "$names_next_round"; do
9578 names_this_round="$names_next_round"
9579 names_next_round=
9580 for name in $names_this_round; do
9581 already_handled=
9582 for n in $names_already_handled; do
9583 if test "$n" = "$name"; then
9584 already_handled=yes
9585 break
9586 fi
9587 done
9588 if test -z "$already_handled"; then
9589 names_already_handled="$names_already_handled $name"
9590 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9591 eval value=\"\$HAVE_LIB$uppername\"
9592 if test -n "$value"; then
9593 if test "$value" = yes; then
9594 eval value=\"\$LIB$uppername\"
9595 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9596 eval value=\"\$LTLIB$uppername\"
9597 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9598 else
9599 :
9600 fi
9601 else
9602 found_dir=
9603 found_la=
9604 found_so=
9605 found_a=
9606 if test $use_additional = yes; then
9607 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9608 found_dir="$additional_libdir"
9609 found_so="$additional_libdir/lib$name.$shlibext"
9610 if test -f "$additional_libdir/lib$name.la"; then
9611 found_la="$additional_libdir/lib$name.la"
9612 fi
9613 else
9614 if test -f "$additional_libdir/lib$name.$libext"; then
9615 found_dir="$additional_libdir"
9616 found_a="$additional_libdir/lib$name.$libext"
9617 if test -f "$additional_libdir/lib$name.la"; then
9618 found_la="$additional_libdir/lib$name.la"
9619 fi
9620 fi
9621 fi
9622 fi
9623 if test "X$found_dir" = "X"; then
9624 for x in $LDFLAGS $LTLIBICONV; do
9625
9626 acl_save_prefix="$prefix"
9627 prefix="$acl_final_prefix"
9628 acl_save_exec_prefix="$exec_prefix"
9629 exec_prefix="$acl_final_exec_prefix"
9630 eval x=\"$x\"
9631 exec_prefix="$acl_save_exec_prefix"
9632 prefix="$acl_save_prefix"
9633
9634 case "$x" in
9635 -L*)
9636 dir=`echo "X$x" | sed -e 's/^X-L//'`
9637 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9638 found_dir="$dir"
9639 found_so="$dir/lib$name.$shlibext"
9640 if test -f "$dir/lib$name.la"; then
9641 found_la="$dir/lib$name.la"
9642 fi
9643 else
9644 if test -f "$dir/lib$name.$libext"; then
9645 found_dir="$dir"
9646 found_a="$dir/lib$name.$libext"
9647 if test -f "$dir/lib$name.la"; then
9648 found_la="$dir/lib$name.la"
9649 fi
9650 fi
9651 fi
9652 ;;
9653 esac
9654 if test "X$found_dir" != "X"; then
9655 break
9656 fi
9657 done
9658 fi
9659 if test "X$found_dir" != "X"; then
9660 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9661 if test "X$found_so" != "X"; then
9662 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9663 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9664 else
9665 haveit=
9666 for x in $ltrpathdirs; do
9667 if test "X$x" = "X$found_dir"; then
9668 haveit=yes
9669 break
9670 fi
9671 done
9672 if test -z "$haveit"; then
9673 ltrpathdirs="$ltrpathdirs $found_dir"
9674 fi
9675 if test "$hardcode_direct" = yes; then
9676 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9677 else
9678 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9679 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9680 haveit=
9681 for x in $rpathdirs; do
9682 if test "X$x" = "X$found_dir"; then
9683 haveit=yes
9684 break
9685 fi
9686 done
9687 if test -z "$haveit"; then
9688 rpathdirs="$rpathdirs $found_dir"
9689 fi
9690 else
9691 haveit=
9692 for x in $LDFLAGS $LIBICONV; do
9693
9694 acl_save_prefix="$prefix"
9695 prefix="$acl_final_prefix"
9696 acl_save_exec_prefix="$exec_prefix"
9697 exec_prefix="$acl_final_exec_prefix"
9698 eval x=\"$x\"
9699 exec_prefix="$acl_save_exec_prefix"
9700 prefix="$acl_save_prefix"
9701
9702 if test "X$x" = "X-L$found_dir"; then
9703 haveit=yes
9704 break
9705 fi
9706 done
9707 if test -z "$haveit"; then
9708 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9709 fi
9710 if test "$hardcode_minus_L" != no; then
9711 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9712 else
9713 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9714 fi
9715 fi
9716 fi
9717 fi
9718 else
9719 if test "X$found_a" != "X"; then
9720 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9721 else
9722 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9723 fi
9724 fi
9725 additional_includedir=
9726 case "$found_dir" in
9727 */lib | */lib/)
9728 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9729 additional_includedir="$basedir/include"
9730 ;;
9731 esac
9732 if test "X$additional_includedir" != "X"; then
9733 if test "X$additional_includedir" != "X/usr/include"; then
9734 haveit=
9735 if test "X$additional_includedir" = "X/usr/local/include"; then
9736 if test -n "$GCC"; then
9737 case $host_os in
9738 linux*) haveit=yes;;
9739 esac
9740 fi
9741 fi
9742 if test -z "$haveit"; then
9743 for x in $CPPFLAGS $INCICONV; do
9744
9745 acl_save_prefix="$prefix"
9746 prefix="$acl_final_prefix"
9747 acl_save_exec_prefix="$exec_prefix"
9748 exec_prefix="$acl_final_exec_prefix"
9749 eval x=\"$x\"
9750 exec_prefix="$acl_save_exec_prefix"
9751 prefix="$acl_save_prefix"
9752
9753 if test "X$x" = "X-I$additional_includedir"; then
9754 haveit=yes
9755 break
9756 fi
9757 done
9758 if test -z "$haveit"; then
9759 if test -d "$additional_includedir"; then
9760 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9761 fi
9762 fi
9763 fi
9764 fi
9765 fi
9766 if test -n "$found_la"; then
9767 save_libdir="$libdir"
9768 case "$found_la" in
9769 */* | *\\*) . "$found_la" ;;
9770 *) . "./$found_la" ;;
9771 esac
9772 libdir="$save_libdir"
9773 for dep in $dependency_libs; do
9774 case "$dep" in
9775 -L*)
9776 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9777 if test "X$additional_libdir" != "X/usr/lib"; then
9778 haveit=
9779 if test "X$additional_libdir" = "X/usr/local/lib"; then
9780 if test -n "$GCC"; then
9781 case $host_os in
9782 linux*) haveit=yes;;
9783 esac
9784 fi
9785 fi
9786 if test -z "$haveit"; then
9787 haveit=
9788 for x in $LDFLAGS $LIBICONV; do
9789
9790 acl_save_prefix="$prefix"
9791 prefix="$acl_final_prefix"
9792 acl_save_exec_prefix="$exec_prefix"
9793 exec_prefix="$acl_final_exec_prefix"
9794 eval x=\"$x\"
9795 exec_prefix="$acl_save_exec_prefix"
9796 prefix="$acl_save_prefix"
9797
9798 if test "X$x" = "X-L$additional_libdir"; then
9799 haveit=yes
9800 break
9801 fi
9802 done
9803 if test -z "$haveit"; then
9804 if test -d "$additional_libdir"; then
9805 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9806 fi
9807 fi
9808 haveit=
9809 for x in $LDFLAGS $LTLIBICONV; do
9810
9811 acl_save_prefix="$prefix"
9812 prefix="$acl_final_prefix"
9813 acl_save_exec_prefix="$exec_prefix"
9814 exec_prefix="$acl_final_exec_prefix"
9815 eval x=\"$x\"
9816 exec_prefix="$acl_save_exec_prefix"
9817 prefix="$acl_save_prefix"
9818
9819 if test "X$x" = "X-L$additional_libdir"; then
9820 haveit=yes
9821 break
9822 fi
9823 done
9824 if test -z "$haveit"; then
9825 if test -d "$additional_libdir"; then
9826 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9827 fi
9828 fi
9829 fi
9830 fi
9831 ;;
9832 -R*)
9833 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9834 if test "$enable_rpath" != no; then
9835 haveit=
9836 for x in $rpathdirs; do
9837 if test "X$x" = "X$dir"; then
9838 haveit=yes
9839 break
9840 fi
9841 done
9842 if test -z "$haveit"; then
9843 rpathdirs="$rpathdirs $dir"
9844 fi
9845 haveit=
9846 for x in $ltrpathdirs; do
9847 if test "X$x" = "X$dir"; then
9848 haveit=yes
9849 break
9850 fi
9851 done
9852 if test -z "$haveit"; then
9853 ltrpathdirs="$ltrpathdirs $dir"
9854 fi
9855 fi
9856 ;;
9857 -l*)
9858 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9859 ;;
9860 *.la)
9861 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9862 ;;
9863 *)
9864 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9865 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9866 ;;
9867 esac
9868 done
9869 fi
9870 else
9871 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9872 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9873 fi
9874 fi
9875 fi
9876 done
9877 done
9878 if test "X$rpathdirs" != "X"; then
9879 if test -n "$hardcode_libdir_separator"; then
9880 alldirs=
9881 for found_dir in $rpathdirs; do
9882 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9883 done
9884 acl_save_libdir="$libdir"
9885 libdir="$alldirs"
9886 eval flag=\"$hardcode_libdir_flag_spec\"
9887 libdir="$acl_save_libdir"
9888 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9889 else
9890 for found_dir in $rpathdirs; do
9891 acl_save_libdir="$libdir"
9892 libdir="$found_dir"
9893 eval flag=\"$hardcode_libdir_flag_spec\"
9894 libdir="$acl_save_libdir"
9895 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9896 done
9897 fi
9898 fi
9899 if test "X$ltrpathdirs" != "X"; then
9900 for found_dir in $ltrpathdirs; do
9901 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9902 done
9903 fi
9904
9905
9906 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
9907 ac_ext=cpp
9908 ac_cpp='$CXXCPP $CPPFLAGS'
9909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9912
9913
9914
9915
9916
9917
9918 am_save_CPPFLAGS="$CPPFLAGS"
9919
9920 for element in $INCICONV; do
9921 haveit=
9922 for x in $CPPFLAGS; do
9923
9924 acl_save_prefix="$prefix"
9925 prefix="$acl_final_prefix"
9926 acl_save_exec_prefix="$exec_prefix"
9927 exec_prefix="$acl_final_exec_prefix"
9928 eval x=\"$x\"
9929 exec_prefix="$acl_save_exec_prefix"
9930 prefix="$acl_save_prefix"
9931
9932 if test "X$x" = "X$element"; then
9933 haveit=yes
9934 break
9935 fi
9936 done
9937 if test -z "$haveit"; then
9938 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9939 fi
9940 done
9941
9942
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9944 $as_echo_n "checking for iconv... " >&6; }
9945 if test "${am_cv_func_iconv+set}" = set; then :
9946 $as_echo_n "(cached) " >&6
9947 else
9948
9949 am_cv_func_iconv="no, consider installing GNU libiconv"
9950 am_cv_lib_iconv=no
9951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9952 /* end confdefs.h. */
9953 #include <stdlib.h>
9954 #include <iconv.h>
9955 int
9956 main ()
9957 {
9958 iconv_t cd = iconv_open("","");
9959 iconv(cd,NULL,NULL,NULL,NULL);
9960 iconv_close(cd);
9961 ;
9962 return 0;
9963 }
9964 _ACEOF
9965 if ac_fn_cxx_try_link "$LINENO"; then :
9966 am_cv_func_iconv=yes
9967 fi
9968 rm -f core conftest.err conftest.$ac_objext \
9969 conftest$ac_exeext conftest.$ac_ext
9970 if test "$am_cv_func_iconv" != yes; then
9971 am_save_LIBS="$LIBS"
9972 LIBS="$LIBS $LIBICONV"
9973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9974 /* end confdefs.h. */
9975 #include <stdlib.h>
9976 #include <iconv.h>
9977 int
9978 main ()
9979 {
9980 iconv_t cd = iconv_open("","");
9981 iconv(cd,NULL,NULL,NULL,NULL);
9982 iconv_close(cd);
9983 ;
9984 return 0;
9985 }
9986 _ACEOF
9987 if ac_fn_cxx_try_link "$LINENO"; then :
9988 am_cv_lib_iconv=yes
9989 am_cv_func_iconv=yes
9990 fi
9991 rm -f core conftest.err conftest.$ac_objext \
9992 conftest$ac_exeext conftest.$ac_ext
9993 LIBS="$am_save_LIBS"
9994 fi
9995
9996 fi
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9998 $as_echo "$am_cv_func_iconv" >&6; }
9999 if test "$am_cv_func_iconv" = yes; then
10000
10001 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10002
10003 fi
10004 if test "$am_cv_lib_iconv" = yes; then
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10006 $as_echo_n "checking how to link with libiconv... " >&6; }
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10008 $as_echo "$LIBICONV" >&6; }
10009 else
10010 CPPFLAGS="$am_save_CPPFLAGS"
10011 LIBICONV=
10012 LTLIBICONV=
10013 fi
10014
10015
10016
10017 if test "$am_cv_func_iconv" = yes; then
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10019 $as_echo_n "checking for iconv declaration... " >&6; }
10020 if test "${am_cv_proto_iconv+set}" = set; then :
10021 $as_echo_n "(cached) " >&6
10022 else
10023
10024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10025 /* end confdefs.h. */
10026
10027 #include <stdlib.h>
10028 #include <iconv.h>
10029 extern
10030 #ifdef __cplusplus
10031 "C"
10032 #endif
10033 #if defined(__STDC__) || defined(__cplusplus)
10034 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10035 #else
10036 size_t iconv();
10037 #endif
10038
10039 int
10040 main ()
10041 {
10042
10043 ;
10044 return 0;
10045 }
10046 _ACEOF
10047 if ac_fn_cxx_try_compile "$LINENO"; then :
10048 am_cv_proto_iconv_arg1=""
10049 else
10050 am_cv_proto_iconv_arg1="const"
10051 fi
10052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10053 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);"
10054 fi
10055
10056 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10058 }$am_cv_proto_iconv" >&5
10059 $as_echo "${ac_t:-
10060 }$am_cv_proto_iconv" >&6; }
10061
10062 cat >>confdefs.h <<_ACEOF
10063 #define ICONV_CONST $am_cv_proto_iconv_arg1
10064 _ACEOF
10065
10066 fi
10067
10068 ac_ext=c
10069 ac_cpp='$CPP $CPPFLAGS'
10070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10073
10074 else
10075
10076
10077
10078
10079
10080 am_save_CPPFLAGS="$CPPFLAGS"
10081
10082 for element in $INCICONV; do
10083 haveit=
10084 for x in $CPPFLAGS; do
10085
10086 acl_save_prefix="$prefix"
10087 prefix="$acl_final_prefix"
10088 acl_save_exec_prefix="$exec_prefix"
10089 exec_prefix="$acl_final_exec_prefix"
10090 eval x=\"$x\"
10091 exec_prefix="$acl_save_exec_prefix"
10092 prefix="$acl_save_prefix"
10093
10094 if test "X$x" = "X$element"; then
10095 haveit=yes
10096 break
10097 fi
10098 done
10099 if test -z "$haveit"; then
10100 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10101 fi
10102 done
10103
10104
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10106 $as_echo_n "checking for iconv... " >&6; }
10107 if test "${am_cv_func_iconv+set}" = set; then :
10108 $as_echo_n "(cached) " >&6
10109 else
10110
10111 am_cv_func_iconv="no, consider installing GNU libiconv"
10112 am_cv_lib_iconv=no
10113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10114 /* end confdefs.h. */
10115 #include <stdlib.h>
10116 #include <iconv.h>
10117 int
10118 main ()
10119 {
10120 iconv_t cd = iconv_open("","");
10121 iconv(cd,NULL,NULL,NULL,NULL);
10122 iconv_close(cd);
10123 ;
10124 return 0;
10125 }
10126 _ACEOF
10127 if ac_fn_c_try_link "$LINENO"; then :
10128 am_cv_func_iconv=yes
10129 fi
10130 rm -f core conftest.err conftest.$ac_objext \
10131 conftest$ac_exeext conftest.$ac_ext
10132 if test "$am_cv_func_iconv" != yes; then
10133 am_save_LIBS="$LIBS"
10134 LIBS="$LIBS $LIBICONV"
10135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10136 /* end confdefs.h. */
10137 #include <stdlib.h>
10138 #include <iconv.h>
10139 int
10140 main ()
10141 {
10142 iconv_t cd = iconv_open("","");
10143 iconv(cd,NULL,NULL,NULL,NULL);
10144 iconv_close(cd);
10145 ;
10146 return 0;
10147 }
10148 _ACEOF
10149 if ac_fn_c_try_link "$LINENO"; then :
10150 am_cv_lib_iconv=yes
10151 am_cv_func_iconv=yes
10152 fi
10153 rm -f core conftest.err conftest.$ac_objext \
10154 conftest$ac_exeext conftest.$ac_ext
10155 LIBS="$am_save_LIBS"
10156 fi
10157
10158 fi
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10160 $as_echo "$am_cv_func_iconv" >&6; }
10161 if test "$am_cv_func_iconv" = yes; then
10162
10163 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10164
10165 fi
10166 if test "$am_cv_lib_iconv" = yes; then
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10168 $as_echo_n "checking how to link with libiconv... " >&6; }
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10170 $as_echo "$LIBICONV" >&6; }
10171 else
10172 CPPFLAGS="$am_save_CPPFLAGS"
10173 LIBICONV=
10174 LTLIBICONV=
10175 fi
10176
10177
10178
10179 if test "$am_cv_func_iconv" = yes; then
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10181 $as_echo_n "checking for iconv declaration... " >&6; }
10182 if test "${am_cv_proto_iconv+set}" = set; then :
10183 $as_echo_n "(cached) " >&6
10184 else
10185
10186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10187 /* end confdefs.h. */
10188
10189 #include <stdlib.h>
10190 #include <iconv.h>
10191 extern
10192 #ifdef __cplusplus
10193 "C"
10194 #endif
10195 #if defined(__STDC__) || defined(__cplusplus)
10196 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10197 #else
10198 size_t iconv();
10199 #endif
10200
10201 int
10202 main ()
10203 {
10204
10205 ;
10206 return 0;
10207 }
10208 _ACEOF
10209 if ac_fn_c_try_compile "$LINENO"; then :
10210 am_cv_proto_iconv_arg1=""
10211 else
10212 am_cv_proto_iconv_arg1="const"
10213 fi
10214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10215 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);"
10216 fi
10217
10218 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10220 }$am_cv_proto_iconv" >&5
10221 $as_echo "${ac_t:-
10222 }$am_cv_proto_iconv" >&6; }
10223
10224 cat >>confdefs.h <<_ACEOF
10225 #define ICONV_CONST $am_cv_proto_iconv_arg1
10226 _ACEOF
10227
10228 fi
10229
10230 fi
10231
10232 # Until we have in-tree GNU iconv:
10233 LIBICONV_DEP=
10234
10235
10236
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10238 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10239 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10240 $as_echo_n "(cached) " >&6
10241 else
10242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10243 /* end confdefs.h. */
10244 #include <locale.h>
10245 int
10246 main ()
10247 {
10248 return LC_MESSAGES
10249 ;
10250 return 0;
10251 }
10252 _ACEOF
10253 if ac_fn_c_try_link "$LINENO"; then :
10254 am_cv_val_LC_MESSAGES=yes
10255 else
10256 am_cv_val_LC_MESSAGES=no
10257 fi
10258 rm -f core conftest.err conftest.$ac_objext \
10259 conftest$ac_exeext conftest.$ac_ext
10260 fi
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10262 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10263 if test $am_cv_val_LC_MESSAGES = yes; then
10264
10265 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10266
10267 fi
10268
10269
10270
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10272 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10273 if test "${am_cv_langinfo_codeset+set}" = set; then :
10274 $as_echo_n "(cached) " >&6
10275 else
10276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10277 /* end confdefs.h. */
10278 #include <langinfo.h>
10279 int
10280 main ()
10281 {
10282 char* cs = nl_langinfo(CODESET);
10283 ;
10284 return 0;
10285 }
10286 _ACEOF
10287 if ac_fn_c_try_link "$LINENO"; then :
10288 am_cv_langinfo_codeset=yes
10289 else
10290 am_cv_langinfo_codeset=no
10291 fi
10292 rm -f core conftest.err conftest.$ac_objext \
10293 conftest$ac_exeext conftest.$ac_ext
10294
10295 fi
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10297 $as_echo "$am_cv_langinfo_codeset" >&6; }
10298 if test $am_cv_langinfo_codeset = yes; then
10299
10300 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10301
10302 fi
10303
10304
10305 # We will need to find libiberty.h and ansidecl.h
10306 saved_CFLAGS="$CFLAGS"
10307 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10308 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10309 strsignal strstr strverscmp \
10310 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10311 free basename getopt clock getpagesize 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
10312 do
10313 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10315 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10316 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10317 $as_echo_n "(cached) " >&6
10318 else
10319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10320 /* end confdefs.h. */
10321 #undef $ac_tr_decl
10322 #define $ac_tr_decl 1
10323
10324 #include "ansidecl.h"
10325 #include "system.h"
10326
10327 int
10328 main ()
10329 {
10330 #ifndef $ac_func
10331 char *(*pfn) = (char *(*)) $ac_func ;
10332 #endif
10333 ;
10334 return 0;
10335 }
10336 _ACEOF
10337 if ac_fn_c_try_compile "$LINENO"; then :
10338 eval "gcc_cv_have_decl_$ac_func=yes"
10339 else
10340 eval "gcc_cv_have_decl_$ac_func=no"
10341 fi
10342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10343 fi
10344
10345 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10347 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10348 #define $ac_tr_decl 1
10349 _ACEOF
10350
10351 else
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10353 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10354 #define $ac_tr_decl 0
10355 _ACEOF
10356
10357 fi
10358
10359 done
10360
10361
10362 for ac_func in getrlimit setrlimit getrusage
10363 do
10364 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10366 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10367 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10368 $as_echo_n "(cached) " >&6
10369 else
10370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10371 /* end confdefs.h. */
10372 #undef $ac_tr_decl
10373 #define $ac_tr_decl 1
10374
10375 #include "ansidecl.h"
10376 #include "system.h"
10377 #ifdef HAVE_SYS_RESOURCE_H
10378 #include <sys/resource.h>
10379 #endif
10380
10381
10382 int
10383 main ()
10384 {
10385 #ifndef $ac_func
10386 char *(*pfn) = (char *(*)) $ac_func ;
10387 #endif
10388 ;
10389 return 0;
10390 }
10391 _ACEOF
10392 if ac_fn_c_try_compile "$LINENO"; then :
10393 eval "gcc_cv_have_decl_$ac_func=yes"
10394 else
10395 eval "gcc_cv_have_decl_$ac_func=no"
10396 fi
10397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10398 fi
10399
10400 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10402 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10403 #define $ac_tr_decl 1
10404 _ACEOF
10405
10406 else
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10408 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10409 #define $ac_tr_decl 0
10410 _ACEOF
10411
10412 fi
10413
10414 done
10415
10416
10417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10418 /* end confdefs.h. */
10419
10420 #include "ansidecl.h"
10421 #include "system.h"
10422 #ifdef HAVE_SYS_RESOURCE_H
10423 #include <sys/resource.h>
10424 #endif
10425
10426 int
10427 main ()
10428 {
10429 rlim_t l = 0;
10430 ;
10431 return 0;
10432 }
10433 _ACEOF
10434 if ac_fn_c_try_compile "$LINENO"; then :
10435
10436 else
10437
10438 $as_echo "#define rlim_t long" >>confdefs.h
10439
10440 fi
10441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10442
10443 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10444 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10445 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10446 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10447 for ac_func in ldgetname
10448 do
10449 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10451 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10452 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10453 $as_echo_n "(cached) " >&6
10454 else
10455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10456 /* end confdefs.h. */
10457 #undef $ac_tr_decl
10458 #define $ac_tr_decl 1
10459
10460 #include "ansidecl.h"
10461 #include "system.h"
10462 #ifdef HAVE_LDFCN_H
10463 #undef FREAD
10464 #undef FWRITE
10465 #include <ldfcn.h>
10466 #endif
10467
10468
10469 int
10470 main ()
10471 {
10472 #ifndef $ac_func
10473 char *(*pfn) = (char *(*)) $ac_func ;
10474 #endif
10475 ;
10476 return 0;
10477 }
10478 _ACEOF
10479 if ac_fn_c_try_compile "$LINENO"; then :
10480 eval "gcc_cv_have_decl_$ac_func=yes"
10481 else
10482 eval "gcc_cv_have_decl_$ac_func=no"
10483 fi
10484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10485 fi
10486
10487 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10489 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10490 #define $ac_tr_decl 1
10491 _ACEOF
10492
10493 else
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10495 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10496 #define $ac_tr_decl 0
10497 _ACEOF
10498
10499 fi
10500
10501 done
10502
10503
10504 for ac_func in times
10505 do
10506 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10508 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10509 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10510 $as_echo_n "(cached) " >&6
10511 else
10512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10513 /* end confdefs.h. */
10514 #undef $ac_tr_decl
10515 #define $ac_tr_decl 1
10516
10517 #include "ansidecl.h"
10518 #include "system.h"
10519 #ifdef HAVE_SYS_TIMES_H
10520 #include <sys/times.h>
10521 #endif
10522
10523
10524 int
10525 main ()
10526 {
10527 #ifndef $ac_func
10528 char *(*pfn) = (char *(*)) $ac_func ;
10529 #endif
10530 ;
10531 return 0;
10532 }
10533 _ACEOF
10534 if ac_fn_c_try_compile "$LINENO"; then :
10535 eval "gcc_cv_have_decl_$ac_func=yes"
10536 else
10537 eval "gcc_cv_have_decl_$ac_func=no"
10538 fi
10539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10540 fi
10541
10542 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10544 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10545 #define $ac_tr_decl 1
10546 _ACEOF
10547
10548 else
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10550 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10551 #define $ac_tr_decl 0
10552 _ACEOF
10553
10554 fi
10555
10556 done
10557
10558
10559 for ac_func in sigaltstack
10560 do
10561 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10563 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10564 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10565 $as_echo_n "(cached) " >&6
10566 else
10567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10568 /* end confdefs.h. */
10569 #undef $ac_tr_decl
10570 #define $ac_tr_decl 1
10571
10572 #include "ansidecl.h"
10573 #include "system.h"
10574 #include <signal.h>
10575
10576
10577 int
10578 main ()
10579 {
10580 #ifndef $ac_func
10581 char *(*pfn) = (char *(*)) $ac_func ;
10582 #endif
10583 ;
10584 return 0;
10585 }
10586 _ACEOF
10587 if ac_fn_c_try_compile "$LINENO"; then :
10588 eval "gcc_cv_have_decl_$ac_func=yes"
10589 else
10590 eval "gcc_cv_have_decl_$ac_func=no"
10591 fi
10592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10593 fi
10594
10595 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10597 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10598 #define $ac_tr_decl 1
10599 _ACEOF
10600
10601 else
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10603 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10604 #define $ac_tr_decl 0
10605 _ACEOF
10606
10607 fi
10608
10609 done
10610
10611
10612 # More time-related stuff.
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10614 $as_echo_n "checking for struct tms... " >&6; }
10615 if test "${ac_cv_struct_tms+set}" = set; then :
10616 $as_echo_n "(cached) " >&6
10617 else
10618
10619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10620 /* end confdefs.h. */
10621
10622 #include "ansidecl.h"
10623 #include "system.h"
10624 #ifdef HAVE_SYS_TIMES_H
10625 #include <sys/times.h>
10626 #endif
10627
10628 int
10629 main ()
10630 {
10631 struct tms tms;
10632 ;
10633 return 0;
10634 }
10635 _ACEOF
10636 if ac_fn_c_try_compile "$LINENO"; then :
10637 ac_cv_struct_tms=yes
10638 else
10639 ac_cv_struct_tms=no
10640 fi
10641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10642 fi
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10644 $as_echo "$ac_cv_struct_tms" >&6; }
10645 if test $ac_cv_struct_tms = yes; then
10646
10647 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10648
10649 fi
10650
10651 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10652 # revisit after autoconf 2.50.
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10654 $as_echo_n "checking for clock_t... " >&6; }
10655 if test "${gcc_cv_type_clock_t+set}" = set; then :
10656 $as_echo_n "(cached) " >&6
10657 else
10658
10659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10660 /* end confdefs.h. */
10661
10662 #include "ansidecl.h"
10663 #include "system.h"
10664
10665 int
10666 main ()
10667 {
10668 clock_t x;
10669 ;
10670 return 0;
10671 }
10672 _ACEOF
10673 if ac_fn_c_try_compile "$LINENO"; then :
10674 gcc_cv_type_clock_t=yes
10675 else
10676 gcc_cv_type_clock_t=no
10677 fi
10678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10679 fi
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10681 $as_echo "$gcc_cv_type_clock_t" >&6; }
10682 if test $gcc_cv_type_clock_t = yes; then
10683
10684 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10685
10686 fi
10687
10688 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10689 CFLAGS="$saved_CFLAGS"
10690
10691 # Check whether --enable-initfini-array was given.
10692 if test "${enable_initfini_array+set}" = set; then :
10693 enableval=$enable_initfini_array;
10694 else
10695
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10697 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10698 if test "${gcc_cv_initfini_array+set}" = set; then :
10699 $as_echo_n "(cached) " >&6
10700 else
10701 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
10702 if test "$cross_compiling" = yes; then :
10703 gcc_cv_initfini_array=no
10704 else
10705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10706 /* end confdefs.h. */
10707
10708 #ifdef __ia64__
10709 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
10710 if it can be used. */
10711 static int x = -1;
10712 int main (void) { return x; }
10713 int foo (void) { x = 0; }
10714 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10715 #else
10716 extern void abort ();
10717 static int count;
10718
10719 static void
10720 init1005 ()
10721 {
10722 if (count != 0)
10723 abort ();
10724 count = 1005;
10725 }
10726 void (*const init_array1005) ()
10727 __attribute__ ((section (".init_array.01005"), aligned (sizeof (void *))))
10728 = { init1005 };
10729 static void
10730 fini1005 ()
10731 {
10732 if (count != 1005)
10733 abort ();
10734 }
10735 void (*const fini_array1005) ()
10736 __attribute__ ((section (".fini_array.01005"), aligned (sizeof (void *))))
10737 = { fini1005 };
10738
10739 static void
10740 ctor1007 ()
10741 {
10742 if (count != 1005)
10743 abort ();
10744 count = 1007;
10745 }
10746 void (*const ctors1007) ()
10747 __attribute__ ((section (".ctors.64528"), aligned (sizeof (void *))))
10748 = { ctor1007 };
10749 static void
10750 dtor1007 ()
10751 {
10752 if (count != 1007)
10753 abort ();
10754 count = 1005;
10755 }
10756 void (*const dtors1007) ()
10757 __attribute__ ((section (".dtors.64528"), aligned (sizeof (void *))))
10758 = { dtor1007 };
10759
10760 static void
10761 init65530 ()
10762 {
10763 if (count != 1007)
10764 abort ();
10765 count = 65530;
10766 }
10767 void (*const init_array65530) ()
10768 __attribute__ ((section (".init_array.65530"), aligned (sizeof (void *))))
10769 = { init65530 };
10770 static void
10771 fini65530 ()
10772 {
10773 if (count != 65530)
10774 abort ();
10775 count = 1007;
10776 }
10777 void (*const fini_array65530) ()
10778 __attribute__ ((section (".fini_array.65530"), aligned (sizeof (void *))))
10779 = { fini65530 };
10780
10781 static void
10782 ctor65535 ()
10783 {
10784 if (count != 65530)
10785 abort ();
10786 count = 65535;
10787 }
10788 void (*const ctors65535) ()
10789 __attribute__ ((section (".ctors"), aligned (sizeof (void *))))
10790 = { ctor65535 };
10791 static void
10792 dtor65535 ()
10793 {
10794 if (count != 65535)
10795 abort ();
10796 count = 65530;
10797 }
10798 void (*const dtors65535) ()
10799 __attribute__ ((section (".dtors"), aligned (sizeof (void *))))
10800 = { dtor65535 };
10801
10802 int
10803 main ()
10804 {
10805 return 0;
10806 }
10807 #endif
10808
10809 _ACEOF
10810 if ac_fn_c_try_run "$LINENO"; then :
10811 gcc_cv_initfini_array=yes
10812 else
10813 gcc_cv_initfini_array=no
10814 fi
10815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10816 conftest.$ac_objext conftest.beam conftest.$ac_ext
10817 fi
10818
10819 else
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
10821 $as_echo_n "checking cross compile... guessing... " >&6; }
10822 gcc_cv_initfini_array=no
10823 fi
10824 fi
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10826 $as_echo "$gcc_cv_initfini_array" >&6; }
10827 enable_initfini_array=$gcc_cv_initfini_array
10828
10829 fi
10830
10831 if test $enable_initfini_array = yes; then
10832
10833 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10834
10835 fi
10836
10837 # mkdir takes a single argument on some systems.
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10839 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10840 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10841 $as_echo_n "(cached) " >&6
10842 else
10843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10844 /* end confdefs.h. */
10845
10846 #include <sys/types.h>
10847 #ifdef HAVE_SYS_STAT_H
10848 # include <sys/stat.h>
10849 #endif
10850 #ifdef HAVE_UNISTD_H
10851 # include <unistd.h>
10852 #endif
10853 #ifdef HAVE_DIRECT_H
10854 # include <direct.h>
10855 #endif
10856 int
10857 main ()
10858 {
10859 mkdir ("foo", 0);
10860 ;
10861 return 0;
10862 }
10863 _ACEOF
10864 if ac_fn_c_try_compile "$LINENO"; then :
10865 gcc_cv_mkdir_takes_one_arg=no
10866 else
10867 gcc_cv_mkdir_takes_one_arg=yes
10868 fi
10869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10870 fi
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10872 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10873 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10874
10875 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10876
10877 fi
10878
10879
10880 # File extensions
10881 manext='.1'
10882 objext='.o'
10883
10884
10885
10886 # With Setjmp/Longjmp based exception handling.
10887 # Check whether --enable-sjlj-exceptions was given.
10888 if test "${enable_sjlj_exceptions+set}" = set; then :
10889 enableval=$enable_sjlj_exceptions; case $target in
10890 *-*-hpux10*)
10891 if test $enableval != yes; then
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10893 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10894 enableval=yes
10895 fi
10896 ;;
10897 esac
10898 force_sjlj_exceptions=yes
10899 else
10900 case $target in
10901 *-*-hpux10*)
10902 force_sjlj_exceptions=yes
10903 enableval=yes
10904 ;;
10905 *)
10906 force_sjlj_exceptions=no
10907 ;;
10908 esac
10909 fi
10910
10911 if test $force_sjlj_exceptions = yes; then
10912 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10913
10914 cat >>confdefs.h <<_ACEOF
10915 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10916 _ACEOF
10917
10918 fi
10919
10920 # --------------------------------------------------------
10921 # Build, host, and target specific configuration fragments
10922 # --------------------------------------------------------
10923
10924 # Collect build-machine-specific information.
10925 . ${srcdir}/config.build
10926
10927 # Collect host-machine-specific information.
10928 . ${srcdir}/config.host
10929
10930 target_gtfiles=
10931
10932 # Collect target-machine-specific information.
10933 . ${srcdir}/config.gcc
10934
10935 extra_objs="${host_extra_objs} ${extra_objs}"
10936 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10937
10938 # Default the target-machine variables that were not explicitly set.
10939 if test x"$tm_file" = x
10940 then tm_file=$cpu_type/$cpu_type.h; fi
10941
10942 if test x"$extra_headers" = x
10943 then extra_headers=; fi
10944
10945 if test x$md_file = x
10946 then md_file=$cpu_type/$cpu_type.md; fi
10947
10948 if test x$out_file = x
10949 then out_file=$cpu_type/$cpu_type.c; fi
10950
10951 if test x"$tmake_file" = x
10952 then tmake_file=$cpu_type/t-$cpu_type
10953 fi
10954
10955 if test x"$dwarf2" = xyes
10956 then tm_file="$tm_file tm-dwarf2.h"
10957 fi
10958
10959 # Say what files are being used for the output code and MD file.
10960 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10961 echo "Using \`$srcdir/config/$md_file' as machine description file."
10962
10963 # If any of the xm_file variables contain nonexistent files, warn
10964 # about them and drop them.
10965
10966 bx=
10967 for x in $build_xm_file; do
10968 if test -f $srcdir/config/$x
10969 then bx="$bx $x"
10970 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10971 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10972 fi
10973 done
10974 build_xm_file="$bx"
10975
10976 hx=
10977 for x in $host_xm_file; do
10978 if test -f $srcdir/config/$x
10979 then hx="$hx $x"
10980 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10981 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10982 fi
10983 done
10984 host_xm_file="$hx"
10985
10986 tx=
10987 for x in $xm_file; do
10988 if test -f $srcdir/config/$x
10989 then tx="$tx $x"
10990 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10991 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10992 fi
10993 done
10994 xm_file="$tx"
10995
10996 count=a
10997 for f in $tm_file; do
10998 count=${count}x
10999 done
11000 if test $count = ax; then
11001 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11002 else
11003 echo "Using the following target machine macro files:"
11004 for f in $tm_file; do
11005 echo " $srcdir/config/$f"
11006 done
11007 fi
11008
11009 if test x$need_64bit_hwint = xyes; then
11010
11011 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11012
11013 fi
11014
11015 if test x$use_long_long_for_widest_fast_int = xyes; then
11016
11017 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11018
11019 fi
11020
11021 count=a
11022 for f in $host_xm_file; do
11023 count=${count}x
11024 done
11025 if test $count = a; then
11026 :
11027 elif test $count = ax; then
11028 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11029 else
11030 echo "Using the following host machine macro files:"
11031 for f in $host_xm_file; do
11032 echo " $srcdir/config/$f"
11033 done
11034 fi
11035 echo "Using ${out_host_hook_obj} for host machine hooks."
11036
11037 if test "$host_xm_file" != "$build_xm_file"; then
11038 count=a
11039 for f in $build_xm_file; do
11040 count=${count}x
11041 done
11042 if test $count = a; then
11043 :
11044 elif test $count = ax; then
11045 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11046 else
11047 echo "Using the following build machine macro files:"
11048 for f in $build_xm_file; do
11049 echo " $srcdir/config/$f"
11050 done
11051 fi
11052 fi
11053
11054 case ${host} in
11055 powerpc*-*-darwin*)
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11057 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11058 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11059 $as_echo_n "(cached) " >&6
11060 else
11061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11062 /* end confdefs.h. */
11063
11064 #include <sys/cdefs.h>
11065 #include <sys/signal.h>
11066 #include <ucontext.h>
11067 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11068
11069 _ACEOF
11070 if ac_fn_c_try_compile "$LINENO"; then :
11071 gcc_cv_mcontext_underscores=no
11072 else
11073 gcc_cv_mcontext_underscores=yes
11074 fi
11075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11076 fi
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11078 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11079 if test $gcc_cv_mcontext_underscores = yes; then
11080
11081 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11082
11083 fi
11084 ;;
11085 esac
11086
11087 # ---------
11088 # Threading
11089 # ---------
11090
11091 # Check if a valid thread package
11092 case ${enable_threads} in
11093 "" | no)
11094 # No threads
11095 target_thread_file='single'
11096 ;;
11097 yes)
11098 # default
11099 target_thread_file='single'
11100 ;;
11101 aix | dce | lynx | mipssde | posix | posix95 | rtems | \
11102 single | tpf | vxworks | win32)
11103 target_thread_file=${enable_threads}
11104 ;;
11105 *)
11106 echo "${enable_threads} is an unknown thread package" 1>&2
11107 exit 1
11108 ;;
11109 esac
11110
11111 if test x${thread_file} = x; then
11112 # No thread file set by target-specific clauses in config.gcc,
11113 # so use file chosen by default logic above
11114 thread_file=${target_thread_file}
11115 fi
11116
11117 # Make gthr-default.h if we have a thread file.
11118 gthread_flags=
11119 if test $thread_file != single; then
11120 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
11121 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
11122 rm -f gthr-default.h-t
11123 else
11124 mv -f gthr-default.h-t gthr-default.h
11125 fi
11126 gthread_flags=-DHAVE_GTHR_DEFAULT
11127 fi
11128
11129
11130 # --------
11131 # UNSORTED
11132 # --------
11133
11134 use_cxa_atexit=no
11135 if test x$enable___cxa_atexit = xyes || \
11136 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11137 if test x$host = x$target; then
11138 case $host in
11139 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11140 # keyed to flag_use_cxa_atexit
11141 *-*-mingw32*)
11142 use_cxa_atexit=yes
11143 ;;
11144 *)
11145 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11146 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11147 use_cxa_atexit=yes
11148 else
11149 echo "__cxa_atexit can't be enabled on this target"
11150 fi
11151
11152 ;;
11153 esac
11154 else
11155 # We can't check for __cxa_atexit when building a cross, so assume
11156 # it is available
11157 use_cxa_atexit=yes
11158 fi
11159 if test x$use_cxa_atexit = xyes; then
11160
11161 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11162
11163 fi
11164 fi
11165
11166 # Look for a file containing extra machine modes.
11167 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11168 extra_modes_file='$(srcdir)'/config/${extra_modes}
11169
11170
11171 cat >>confdefs.h <<_ACEOF
11172 #define EXTRA_MODES_FILE "config/$extra_modes"
11173 _ACEOF
11174
11175 fi
11176
11177 # Convert extra_options into a form suitable for Makefile use.
11178 extra_opt_files=
11179 all_opt_files=
11180 for f in $extra_options; do
11181 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11182 all_opt_files="$all_opt_files $srcdir/config/$f"
11183 done
11184
11185
11186 # auto-host.h is the file containing items generated by autoconf and is
11187 # the first file included by config.h.
11188 # If host=build, it is correct to have bconfig include auto-host.h
11189 # as well. If host!=build, we are in error and need to do more
11190 # work to find out the build config parameters.
11191 if test x$host = x$build
11192 then
11193 build_auto=auto-host.h
11194 else
11195 # We create a subdir, then run autoconf in the subdir.
11196 # To prevent recursion we set host and build for the new
11197 # invocation of configure to the build for this invocation
11198 # of configure.
11199 tempdir=build.$$
11200 rm -rf $tempdir
11201 mkdir $tempdir
11202 cd $tempdir
11203 case ${srcdir} in
11204 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11205 *) realsrcdir=../${srcdir};;
11206 esac
11207 saved_CFLAGS="${CFLAGS}"
11208 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11209 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11210 ${realsrcdir}/configure \
11211 --enable-languages=${enable_languages-all} \
11212 --target=$target_alias --host=$build_alias --build=$build_alias
11213 CFLAGS="${saved_CFLAGS}"
11214
11215 # We just finished tests for the build machine, so rename
11216 # the file auto-build.h in the gcc directory.
11217 mv auto-host.h ../auto-build.h
11218 cd ..
11219 rm -rf $tempdir
11220 build_auto=auto-build.h
11221 fi
11222
11223
11224 tm_file="${tm_file} defaults.h"
11225 tm_p_file="${tm_p_file} tm-preds.h"
11226 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11227 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11228 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11229 # put this back in temporarily.
11230 xm_file="auto-host.h ansidecl.h ${xm_file}"
11231
11232 # --------
11233 # UNSORTED
11234 # --------
11235
11236 # Compile in configure arguments.
11237 if test -f configargs.h ; then
11238 # Being re-configured.
11239 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11240 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11241 else
11242 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11243 fi
11244
11245 # Double all backslashes and backslash all quotes to turn
11246 # gcc_config_arguments into a C string.
11247 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11248 $gcc_config_arguments
11249 EOF
11250 gcc_config_arguments_str=`cat conftest.out`
11251 rm -f conftest.out
11252
11253 cat > configargs.h <<EOF
11254 /* Generated automatically. */
11255 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11256 static const char thread_model[] = "$thread_file";
11257
11258 static const struct {
11259 const char *name, *value;
11260 } configure_default_options[] = $configure_default_options;
11261 EOF
11262
11263 gcc_BASEVER=`cat $srcdir/BASE-VER`
11264 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11265 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11266 if test -f $srcdir/REVISION ; then
11267 gcc_REVISION=`cat $srcdir/REVISION`
11268 else
11269 gcc_REVISION=""
11270 fi
11271 cat > plugin-version.h <<EOF
11272 #include "configargs.h"
11273
11274 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11275 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11276 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11277 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11278
11279 static char basever[] = "$gcc_BASEVER";
11280 static char datestamp[] = "$gcc_DATESTAMP";
11281 static char devphase[] = "$gcc_DEVPHASE";
11282 static char revision[] = "$gcc_REVISION";
11283
11284 /* FIXME plugins: We should make the version information more precise.
11285 One way to do is to add a checksum. */
11286
11287 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11288 devphase, revision,
11289 configuration_arguments};
11290 EOF
11291
11292 # Internationalization
11293 # If we haven't got the data from the intl directory,
11294 # assume NLS is disabled.
11295 USE_NLS=no
11296 LIBINTL=
11297 LIBINTL_DEP=
11298 INCINTL=
11299 XGETTEXT=
11300 GMSGFMT=
11301 POSUB=
11302
11303 if test -f ../intl/config.intl; then
11304 . ../intl/config.intl
11305 fi
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11307 $as_echo_n "checking whether NLS is requested... " >&6; }
11308 if test x"$USE_NLS" != xyes; then
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11310 $as_echo "no" >&6; }
11311 else
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11313 $as_echo "yes" >&6; }
11314
11315 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11316
11317
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11319 $as_echo_n "checking for catalogs to be installed... " >&6; }
11320 # Look for .po and .gmo files in the source directory.
11321 CATALOGS=
11322 XLINGUAS=
11323 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11324 # If there aren't any .gmo files the shell will give us the
11325 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11326 # weeded out.
11327 case "$cat" in *\**)
11328 continue;;
11329 esac
11330 # The quadruple backslash is collapsed to a double backslash
11331 # by the backticks, then collapsed again by the double quotes,
11332 # leaving us with one backslash in the sed expression (right
11333 # before the dot that mustn't act as a wildcard).
11334 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11335 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11336 # The user is allowed to set LINGUAS to a list of languages to
11337 # install catalogs for. If it's empty that means "all of them."
11338 if test "x$LINGUAS" = x; then
11339 CATALOGS="$CATALOGS $cat"
11340 XLINGUAS="$XLINGUAS $lang"
11341 else
11342 case "$LINGUAS" in *$lang*)
11343 CATALOGS="$CATALOGS $cat"
11344 XLINGUAS="$XLINGUAS $lang"
11345 ;;
11346 esac
11347 fi
11348 done
11349 LINGUAS="$XLINGUAS"
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11351 $as_echo "$LINGUAS" >&6; }
11352
11353
11354 DATADIRNAME=share
11355
11356 INSTOBJEXT=.mo
11357
11358 GENCAT=gencat
11359
11360 CATOBJEXT=.gmo
11361
11362 fi
11363
11364 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11365 # -liconv on the link line twice.
11366 case "$LIBINTL" in *$LIBICONV*)
11367 LIBICONV= ;;
11368 esac
11369
11370 # Check whether --enable-secureplt was given.
11371 if test "${enable_secureplt+set}" = set; then :
11372 enableval=$enable_secureplt;
11373 fi
11374
11375
11376 # Check whether --enable-leading-mingw64-underscores was given.
11377 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11378 enableval=$enable_leading_mingw64_underscores;
11379 fi
11380
11381 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11382
11383 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11384
11385 fi
11386
11387 # Check whether --enable-cld was given.
11388 if test "${enable_cld+set}" = set; then :
11389 enableval=$enable_cld;
11390 else
11391 enable_cld=no
11392 fi
11393
11394
11395 # Check whether --enable-frame-pointer was given.
11396 if test "${enable_frame_pointer+set}" = set; then :
11397 enableval=$enable_frame_pointer;
11398 else
11399
11400 case $target_os in
11401 linux* | darwin[8912]*)
11402 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11403 # DWARF2.
11404 enable_frame_pointer=no
11405 ;;
11406 *)
11407 enable_frame_pointer=yes
11408 ;;
11409 esac
11410
11411 fi
11412
11413
11414 # Windows32 Registry support for specifying GCC installation paths.
11415 # Check whether --enable-win32-registry was given.
11416 if test "${enable_win32_registry+set}" = set; then :
11417 enableval=$enable_win32_registry;
11418 fi
11419
11420
11421 case $host_os in
11422 win32 | pe | cygwin* | mingw32* | uwin*)
11423 if test "x$enable_win32_registry" != xno; then
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11425 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11426 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11427 $as_echo_n "(cached) " >&6
11428 else
11429 ac_func_search_save_LIBS=$LIBS
11430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11431 /* end confdefs.h. */
11432
11433 /* Override any GCC internal prototype to avoid an error.
11434 Use char because int might match the return type of a GCC
11435 builtin and then its argument prototype would still apply. */
11436 #ifdef __cplusplus
11437 extern "C"
11438 #endif
11439 char RegOpenKeyExA ();
11440 int
11441 main ()
11442 {
11443 return RegOpenKeyExA ();
11444 ;
11445 return 0;
11446 }
11447 _ACEOF
11448 for ac_lib in '' advapi32; do
11449 if test -z "$ac_lib"; then
11450 ac_res="none required"
11451 else
11452 ac_res=-l$ac_lib
11453 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11454 fi
11455 if ac_fn_c_try_link "$LINENO"; then :
11456 ac_cv_search_RegOpenKeyExA=$ac_res
11457 fi
11458 rm -f core conftest.err conftest.$ac_objext \
11459 conftest$ac_exeext
11460 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11461 break
11462 fi
11463 done
11464 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11465
11466 else
11467 ac_cv_search_RegOpenKeyExA=no
11468 fi
11469 rm conftest.$ac_ext
11470 LIBS=$ac_func_search_save_LIBS
11471 fi
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11473 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11474 ac_res=$ac_cv_search_RegOpenKeyExA
11475 if test "$ac_res" != no; then :
11476 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11477
11478 else
11479 enable_win32_registry=no
11480 fi
11481
11482 fi
11483
11484 if test "x$enable_win32_registry" != xno; then
11485
11486 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11487
11488
11489 if test "x$enable_win32_registry" != xyes \
11490 && test "x$enable_win32_registry" != x; then
11491
11492 cat >>confdefs.h <<_ACEOF
11493 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11494 _ACEOF
11495
11496 fi
11497 fi
11498 ;;
11499 esac
11500
11501 # Get an absolute path to the GCC top-level source directory
11502 holddir=`${PWDCMD-pwd}`
11503 cd $srcdir
11504 topdir=`${PWDCMD-pwd}`
11505 cd $holddir
11506
11507 # Conditionalize the makefile for this host machine.
11508 xmake_file=
11509 for f in ${host_xmake_file}
11510 do
11511 if test -f ${srcdir}/config/$f
11512 then
11513 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11514 fi
11515 done
11516
11517 # Conditionalize the makefile for this target machine.
11518 tmake_file_=
11519 for f in ${tmake_file}
11520 do
11521 if test -f ${srcdir}/config/$f
11522 then
11523 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11524 fi
11525 done
11526 tmake_file="${tmake_file_}"
11527
11528 out_object_file=`basename $out_file .c`.o
11529 common_out_object_file=`basename $common_out_file .c`.o
11530
11531 tm_file_list="options.h"
11532 tm_include_list="options.h insn-constants.h"
11533 for f in $tm_file; do
11534 case $f in
11535 ./* )
11536 f=`echo $f | sed 's/^..//'`
11537 tm_file_list="${tm_file_list} $f"
11538 tm_include_list="${tm_include_list} $f"
11539 ;;
11540 defaults.h )
11541 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11542 tm_include_list="${tm_include_list} $f"
11543 ;;
11544 * )
11545 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11546 tm_include_list="${tm_include_list} config/$f"
11547 ;;
11548 esac
11549 done
11550
11551 libgcc_tm_file_list=
11552 libgcc_tm_include_list=
11553 for f in $libgcc_tm_file; do
11554 libgcc_tm_file_list="${libgcc_tm_file_list} \$(srcdir)/../libgcc/config/$f"
11555 libgcc_tm_include_list="${libgcc_tm_include_list} ../libgcc/config/$f"
11556 done
11557
11558 tm_p_file_list=
11559 tm_p_include_list=
11560 for f in $tm_p_file; do
11561 case $f in
11562 tm-preds.h )
11563 tm_p_file_list="${tm_p_file_list} $f"
11564 tm_p_include_list="${tm_p_include_list} $f"
11565 ;;
11566 * )
11567 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11568 tm_p_include_list="${tm_p_include_list} config/$f"
11569 esac
11570 done
11571
11572 xm_file_list=
11573 xm_include_list=
11574 for f in $xm_file; do
11575 case $f in
11576 ansidecl.h )
11577 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11578 xm_include_list="${xm_include_list} $f"
11579 ;;
11580 auto-host.h )
11581 xm_file_list="${xm_file_list} $f"
11582 xm_include_list="${xm_include_list} $f"
11583 ;;
11584 * )
11585 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11586 xm_include_list="${xm_include_list} config/$f"
11587 ;;
11588 esac
11589 done
11590
11591 host_xm_file_list=
11592 host_xm_include_list=
11593 for f in $host_xm_file; do
11594 case $f in
11595 ansidecl.h )
11596 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11597 host_xm_include_list="${host_xm_include_list} $f"
11598 ;;
11599 auto-host.h )
11600 host_xm_file_list="${host_xm_file_list} $f"
11601 host_xm_include_list="${host_xm_include_list} $f"
11602 ;;
11603 * )
11604 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11605 host_xm_include_list="${host_xm_include_list} config/$f"
11606 ;;
11607 esac
11608 done
11609
11610 build_xm_file_list=
11611 for f in $build_xm_file; do
11612 case $f in
11613 ansidecl.h )
11614 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11615 build_xm_include_list="${build_xm_include_list} $f"
11616 ;;
11617 auto-build.h | auto-host.h )
11618 build_xm_file_list="${build_xm_file_list} $f"
11619 build_xm_include_list="${build_xm_include_list} $f"
11620 ;;
11621 * )
11622 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11623 build_xm_include_list="${build_xm_include_list} config/$f"
11624 ;;
11625 esac
11626 done
11627
11628 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11629 # cross-compiler which does not use the native headers and libraries.
11630 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11631 CROSS=
11632 ALL=all.internal
11633 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11634
11635 if test "x$with_build_sysroot" != x; then
11636 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11637 else
11638 # This value is used, even on a native system, because
11639 # CROSS_SYSTEM_HEADER_DIR is just
11640 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11641 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11642 fi
11643
11644 if test x$host != x$target
11645 then
11646 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11647 ALL=all.cross
11648 SYSTEM_HEADER_DIR=$build_system_header_dir
11649 case "$host","$target" in
11650 # Darwin crosses can use the host system's libraries and headers,
11651 # because of the fat library support. Of course, it must be the
11652 # same version of Darwin on both sides. Allow the user to
11653 # just say --target=foo-darwin without a version number to mean
11654 # "the version on this system".
11655 *-*-darwin*,*-*-darwin*)
11656 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11657 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11658 if test $hostos = $targetos -o $targetos = darwin ; then
11659 CROSS=
11660 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11661 with_headers=yes
11662 fi
11663 ;;
11664
11665 i?86-*-*,x86_64-*-* \
11666 | powerpc*-*-*,powerpc64*-*-*)
11667 CROSS="$CROSS -DNATIVE_CROSS" ;;
11668 esac
11669
11670 case $target in
11671 *-*-mingw*)
11672 if test "x$with_headers" = x; then
11673 with_headers=yes
11674 fi
11675 ;;
11676 *)
11677 ;;
11678 esac
11679 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11680 SYSTEM_HEADER_DIR=$build_system_header_dir
11681 fi
11682
11683 # If this is a cross-compiler that does not
11684 # have its own set of headers then define
11685 # inhibit_libc
11686
11687 # If this is using newlib, without having the headers available now,
11688 # then define inhibit_libc in LIBGCC2_CFLAGS.
11689 # This prevents libgcc2 from containing any code which requires libc
11690 # support.
11691 : ${inhibit_libc=false}
11692 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11693 test x$with_newlib = xyes ; } &&
11694 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11695 inhibit_libc=true
11696 fi
11697
11698
11699 # When building gcc with a cross-compiler, we need to adjust things so
11700 # that the generator programs are still built with the native compiler.
11701 # Also, we cannot run fixincludes.
11702
11703 # These are the normal (build=host) settings:
11704 CC_FOR_BUILD='$(CC)'
11705 BUILD_CFLAGS='$(ALL_CFLAGS)'
11706 BUILD_LDFLAGS='$(LDFLAGS)'
11707 STMP_FIXINC=stmp-fixinc
11708
11709 # And these apply if build != host, or we are generating coverage data
11710 if test x$build != x$host || test "x$coverage_flags" != x
11711 then
11712 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11713 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11714 fi
11715
11716 # Expand extra_headers to include complete path.
11717 # This substitutes for lots of t-* files.
11718 extra_headers_list=
11719 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11720 for file in ${extra_headers} ; do
11721 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11722 done
11723
11724 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11725 if test x"$use_gcc_tgmath" = xyes
11726 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11727 fi
11728
11729 # Define collect2 in Makefile.
11730 case $host_can_use_collect2 in
11731 no) collect2= ;;
11732 *) collect2='collect2$(exeext)' ;;
11733 esac
11734
11735
11736 # Add a definition of USE_COLLECT2 if system wants one.
11737 case $use_collect2 in
11738 no) use_collect2= ;;
11739 "") ;;
11740 *)
11741 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11742 xm_defines="${xm_defines} USE_COLLECT2"
11743 case $host_can_use_collect2 in
11744 no)
11745 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11746 ;;
11747 esac
11748 ;;
11749 esac
11750
11751
11752 cat >>confdefs.h <<_ACEOF
11753 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11754 _ACEOF
11755
11756
11757 # ---------------------------
11758 # Assembler & linker features
11759 # ---------------------------
11760
11761 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11762 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11763 # However when ld-new is first executed from the build tree, libtool will
11764 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11765 # to the build tree. While doing this we need to use the previous-stage
11766 # linker, or we have an infinite loop. The presence of a shell script as
11767 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11768 # the gcc/collect-ld script. So we need to know how libtool works, or
11769 # exec-tool will fail.
11770
11771
11772 case `pwd` in
11773 *\ * | *\ *)
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11775 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11776 esac
11777
11778
11779
11780 macro_version='2.2.7a'
11781 macro_revision='1.3134'
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795 ltmain="$ac_aux_dir/ltmain.sh"
11796
11797 # Backslashify metacharacters that are still active within
11798 # double-quoted strings.
11799 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11800
11801 # Same as above, but do not quote variable references.
11802 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11803
11804 # Sed substitution to delay expansion of an escaped shell variable in a
11805 # double_quote_subst'ed string.
11806 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11807
11808 # Sed substitution to delay expansion of an escaped single quote.
11809 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11810
11811 # Sed substitution to avoid accidental globbing in evaled expressions
11812 no_glob_subst='s/\*/\\\*/g'
11813
11814 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11815 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11816 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11817
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11819 $as_echo_n "checking how to print strings... " >&6; }
11820 # Test print first, because it will be a builtin if present.
11821 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11822 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11823 ECHO='print -r --'
11824 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11825 ECHO='printf %s\n'
11826 else
11827 # Use this function as a fallback that always works.
11828 func_fallback_echo ()
11829 {
11830 eval 'cat <<_LTECHO_EOF
11831 $1
11832 _LTECHO_EOF'
11833 }
11834 ECHO='func_fallback_echo'
11835 fi
11836
11837 # func_echo_all arg...
11838 # Invoke $ECHO with all args, space-separated.
11839 func_echo_all ()
11840 {
11841 $ECHO ""
11842 }
11843
11844 case "$ECHO" in
11845 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11846 $as_echo "printf" >&6; } ;;
11847 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11848 $as_echo "print -r" >&6; } ;;
11849 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11850 $as_echo "cat" >&6; } ;;
11851 esac
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11867 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11868 if test "${ac_cv_path_SED+set}" = set; then :
11869 $as_echo_n "(cached) " >&6
11870 else
11871 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11872 for ac_i in 1 2 3 4 5 6 7; do
11873 ac_script="$ac_script$as_nl$ac_script"
11874 done
11875 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11876 { ac_script=; unset ac_script;}
11877 if test -z "$SED"; then
11878 ac_path_SED_found=false
11879 # Loop through the user's path and test for each of PROGNAME-LIST
11880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11881 for as_dir in $PATH
11882 do
11883 IFS=$as_save_IFS
11884 test -z "$as_dir" && as_dir=.
11885 for ac_prog in sed gsed; do
11886 for ac_exec_ext in '' $ac_executable_extensions; do
11887 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11888 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11889 # Check for GNU ac_path_SED and select it if it is found.
11890 # Check for GNU $ac_path_SED
11891 case `"$ac_path_SED" --version 2>&1` in
11892 *GNU*)
11893 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11894 *)
11895 ac_count=0
11896 $as_echo_n 0123456789 >"conftest.in"
11897 while :
11898 do
11899 cat "conftest.in" "conftest.in" >"conftest.tmp"
11900 mv "conftest.tmp" "conftest.in"
11901 cp "conftest.in" "conftest.nl"
11902 $as_echo '' >> "conftest.nl"
11903 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11904 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11905 as_fn_arith $ac_count + 1 && ac_count=$as_val
11906 if test $ac_count -gt ${ac_path_SED_max-0}; then
11907 # Best one so far, save it but keep looking for a better one
11908 ac_cv_path_SED="$ac_path_SED"
11909 ac_path_SED_max=$ac_count
11910 fi
11911 # 10*(2^10) chars as input seems more than enough
11912 test $ac_count -gt 10 && break
11913 done
11914 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11915 esac
11916
11917 $ac_path_SED_found && break 3
11918 done
11919 done
11920 done
11921 IFS=$as_save_IFS
11922 if test -z "$ac_cv_path_SED"; then
11923 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11924 fi
11925 else
11926 ac_cv_path_SED=$SED
11927 fi
11928
11929 fi
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11931 $as_echo "$ac_cv_path_SED" >&6; }
11932 SED="$ac_cv_path_SED"
11933 rm -f conftest.sed
11934
11935 test -z "$SED" && SED=sed
11936 Xsed="$SED -e 1s/^X//"
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11949 $as_echo_n "checking for fgrep... " >&6; }
11950 if test "${ac_cv_path_FGREP+set}" = set; then :
11951 $as_echo_n "(cached) " >&6
11952 else
11953 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11954 then ac_cv_path_FGREP="$GREP -F"
11955 else
11956 if test -z "$FGREP"; then
11957 ac_path_FGREP_found=false
11958 # Loop through the user's path and test for each of PROGNAME-LIST
11959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11960 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11961 do
11962 IFS=$as_save_IFS
11963 test -z "$as_dir" && as_dir=.
11964 for ac_prog in fgrep; do
11965 for ac_exec_ext in '' $ac_executable_extensions; do
11966 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11967 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11968 # Check for GNU ac_path_FGREP and select it if it is found.
11969 # Check for GNU $ac_path_FGREP
11970 case `"$ac_path_FGREP" --version 2>&1` in
11971 *GNU*)
11972 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11973 *)
11974 ac_count=0
11975 $as_echo_n 0123456789 >"conftest.in"
11976 while :
11977 do
11978 cat "conftest.in" "conftest.in" >"conftest.tmp"
11979 mv "conftest.tmp" "conftest.in"
11980 cp "conftest.in" "conftest.nl"
11981 $as_echo 'FGREP' >> "conftest.nl"
11982 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11983 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11984 as_fn_arith $ac_count + 1 && ac_count=$as_val
11985 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11986 # Best one so far, save it but keep looking for a better one
11987 ac_cv_path_FGREP="$ac_path_FGREP"
11988 ac_path_FGREP_max=$ac_count
11989 fi
11990 # 10*(2^10) chars as input seems more than enough
11991 test $ac_count -gt 10 && break
11992 done
11993 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11994 esac
11995
11996 $ac_path_FGREP_found && break 3
11997 done
11998 done
11999 done
12000 IFS=$as_save_IFS
12001 if test -z "$ac_cv_path_FGREP"; then
12002 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12003 fi
12004 else
12005 ac_cv_path_FGREP=$FGREP
12006 fi
12007
12008 fi
12009 fi
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12011 $as_echo "$ac_cv_path_FGREP" >&6; }
12012 FGREP="$ac_cv_path_FGREP"
12013
12014
12015 test -z "$GREP" && GREP=grep
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035 # Check whether --with-gnu-ld was given.
12036 if test "${with_gnu_ld+set}" = set; then :
12037 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12038 else
12039 with_gnu_ld=no
12040 fi
12041
12042 ac_prog=ld
12043 if test "$GCC" = yes; then
12044 # Check if gcc -print-prog-name=ld gives a path.
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12046 $as_echo_n "checking for ld used by $CC... " >&6; }
12047 case $host in
12048 *-*-mingw*)
12049 # gcc leaves a trailing carriage return which upsets mingw
12050 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12051 *)
12052 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12053 esac
12054 case $ac_prog in
12055 # Accept absolute paths.
12056 [\\/]* | ?:[\\/]*)
12057 re_direlt='/[^/][^/]*/\.\./'
12058 # Canonicalize the pathname of ld
12059 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12060 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12061 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12062 done
12063 test -z "$LD" && LD="$ac_prog"
12064 ;;
12065 "")
12066 # If it fails, then pretend we aren't using GCC.
12067 ac_prog=ld
12068 ;;
12069 *)
12070 # If it is relative, then search for the first ld in PATH.
12071 with_gnu_ld=unknown
12072 ;;
12073 esac
12074 elif test "$with_gnu_ld" = yes; then
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12076 $as_echo_n "checking for GNU ld... " >&6; }
12077 else
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12079 $as_echo_n "checking for non-GNU ld... " >&6; }
12080 fi
12081 if test "${lt_cv_path_LD+set}" = set; then :
12082 $as_echo_n "(cached) " >&6
12083 else
12084 if test -z "$LD"; then
12085 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12086 for ac_dir in $PATH; do
12087 IFS="$lt_save_ifs"
12088 test -z "$ac_dir" && ac_dir=.
12089 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12090 lt_cv_path_LD="$ac_dir/$ac_prog"
12091 # Check to see if the program is GNU ld. I'd rather use --version,
12092 # but apparently some variants of GNU ld only accept -v.
12093 # Break only if it was the GNU/non-GNU ld that we prefer.
12094 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12095 *GNU* | *'with BFD'*)
12096 test "$with_gnu_ld" != no && break
12097 ;;
12098 *)
12099 test "$with_gnu_ld" != yes && break
12100 ;;
12101 esac
12102 fi
12103 done
12104 IFS="$lt_save_ifs"
12105 else
12106 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12107 fi
12108 fi
12109
12110 LD="$lt_cv_path_LD"
12111 if test -n "$LD"; then
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12113 $as_echo "$LD" >&6; }
12114 else
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12116 $as_echo "no" >&6; }
12117 fi
12118 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12120 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12121 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12122 $as_echo_n "(cached) " >&6
12123 else
12124 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12125 case `$LD -v 2>&1 </dev/null` in
12126 *GNU* | *'with BFD'*)
12127 lt_cv_prog_gnu_ld=yes
12128 ;;
12129 *)
12130 lt_cv_prog_gnu_ld=no
12131 ;;
12132 esac
12133 fi
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12135 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12136 with_gnu_ld=$lt_cv_prog_gnu_ld
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12147 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12148 if test "${lt_cv_path_NM+set}" = set; then :
12149 $as_echo_n "(cached) " >&6
12150 else
12151 if test -n "$NM"; then
12152 # Let the user override the test.
12153 lt_cv_path_NM="$NM"
12154 else
12155 lt_nm_to_check="${ac_tool_prefix}nm"
12156 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12157 lt_nm_to_check="$lt_nm_to_check nm"
12158 fi
12159 for lt_tmp_nm in $lt_nm_to_check; do
12160 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12161 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12162 IFS="$lt_save_ifs"
12163 test -z "$ac_dir" && ac_dir=.
12164 tmp_nm="$ac_dir/$lt_tmp_nm"
12165 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12166 # Check to see if the nm accepts a BSD-compat flag.
12167 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12168 # nm: unknown option "B" ignored
12169 # Tru64's nm complains that /dev/null is an invalid object file
12170 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12171 */dev/null* | *'Invalid file or object type'*)
12172 lt_cv_path_NM="$tmp_nm -B"
12173 break
12174 ;;
12175 *)
12176 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12177 */dev/null*)
12178 lt_cv_path_NM="$tmp_nm -p"
12179 break
12180 ;;
12181 *)
12182 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12183 continue # so that we can try to find one that supports BSD flags
12184 ;;
12185 esac
12186 ;;
12187 esac
12188 fi
12189 done
12190 IFS="$lt_save_ifs"
12191 done
12192 : ${lt_cv_path_NM=no}
12193 fi
12194 fi
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12196 $as_echo "$lt_cv_path_NM" >&6; }
12197 if test "$lt_cv_path_NM" != "no"; then
12198 NM="$lt_cv_path_NM"
12199 else
12200 # Didn't find any BSD compatible name lister, look for dumpbin.
12201 if test -n "$DUMPBIN"; then :
12202 # Let the user override the test.
12203 else
12204 if test -n "$ac_tool_prefix"; then
12205 for ac_prog in dumpbin "link -dump"
12206 do
12207 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12208 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12210 $as_echo_n "checking for $ac_word... " >&6; }
12211 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12212 $as_echo_n "(cached) " >&6
12213 else
12214 if test -n "$DUMPBIN"; then
12215 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12216 else
12217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12218 for as_dir in $PATH
12219 do
12220 IFS=$as_save_IFS
12221 test -z "$as_dir" && as_dir=.
12222 for ac_exec_ext in '' $ac_executable_extensions; do
12223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12224 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12226 break 2
12227 fi
12228 done
12229 done
12230 IFS=$as_save_IFS
12231
12232 fi
12233 fi
12234 DUMPBIN=$ac_cv_prog_DUMPBIN
12235 if test -n "$DUMPBIN"; then
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12237 $as_echo "$DUMPBIN" >&6; }
12238 else
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12240 $as_echo "no" >&6; }
12241 fi
12242
12243
12244 test -n "$DUMPBIN" && break
12245 done
12246 fi
12247 if test -z "$DUMPBIN"; then
12248 ac_ct_DUMPBIN=$DUMPBIN
12249 for ac_prog in dumpbin "link -dump"
12250 do
12251 # Extract the first word of "$ac_prog", so it can be a program name with args.
12252 set dummy $ac_prog; ac_word=$2
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12254 $as_echo_n "checking for $ac_word... " >&6; }
12255 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12256 $as_echo_n "(cached) " >&6
12257 else
12258 if test -n "$ac_ct_DUMPBIN"; then
12259 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12260 else
12261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12262 for as_dir in $PATH
12263 do
12264 IFS=$as_save_IFS
12265 test -z "$as_dir" && as_dir=.
12266 for ac_exec_ext in '' $ac_executable_extensions; do
12267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12268 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12270 break 2
12271 fi
12272 done
12273 done
12274 IFS=$as_save_IFS
12275
12276 fi
12277 fi
12278 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12279 if test -n "$ac_ct_DUMPBIN"; then
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12281 $as_echo "$ac_ct_DUMPBIN" >&6; }
12282 else
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12284 $as_echo "no" >&6; }
12285 fi
12286
12287
12288 test -n "$ac_ct_DUMPBIN" && break
12289 done
12290
12291 if test "x$ac_ct_DUMPBIN" = x; then
12292 DUMPBIN=":"
12293 else
12294 case $cross_compiling:$ac_tool_warned in
12295 yes:)
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12298 ac_tool_warned=yes ;;
12299 esac
12300 DUMPBIN=$ac_ct_DUMPBIN
12301 fi
12302 fi
12303
12304 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12305 *COFF*)
12306 DUMPBIN="$DUMPBIN -symbols"
12307 ;;
12308 *)
12309 DUMPBIN=:
12310 ;;
12311 esac
12312 fi
12313
12314 if test "$DUMPBIN" != ":"; then
12315 NM="$DUMPBIN"
12316 fi
12317 fi
12318 test -z "$NM" && NM=nm
12319
12320
12321
12322
12323
12324
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12326 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12327 if test "${lt_cv_nm_interface+set}" = set; then :
12328 $as_echo_n "(cached) " >&6
12329 else
12330 lt_cv_nm_interface="BSD nm"
12331 echo "int some_variable = 0;" > conftest.$ac_ext
12332 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12333 (eval "$ac_compile" 2>conftest.err)
12334 cat conftest.err >&5
12335 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12336 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12337 cat conftest.err >&5
12338 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12339 cat conftest.out >&5
12340 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12341 lt_cv_nm_interface="MS dumpbin"
12342 fi
12343 rm -f conftest*
12344 fi
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12346 $as_echo "$lt_cv_nm_interface" >&6; }
12347
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12349 $as_echo_n "checking whether ln -s works... " >&6; }
12350 LN_S=$as_ln_s
12351 if test "$LN_S" = "ln -s"; then
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12353 $as_echo "yes" >&6; }
12354 else
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12356 $as_echo "no, using $LN_S" >&6; }
12357 fi
12358
12359 # find the maximum length of command line arguments
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12361 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12362 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12363 $as_echo_n "(cached) " >&6
12364 else
12365 i=0
12366 teststring="ABCD"
12367
12368 case $build_os in
12369 msdosdjgpp*)
12370 # On DJGPP, this test can blow up pretty badly due to problems in libc
12371 # (any single argument exceeding 2000 bytes causes a buffer overrun
12372 # during glob expansion). Even if it were fixed, the result of this
12373 # check would be larger than it should be.
12374 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12375 ;;
12376
12377 gnu*)
12378 # Under GNU Hurd, this test is not required because there is
12379 # no limit to the length of command line arguments.
12380 # Libtool will interpret -1 as no limit whatsoever
12381 lt_cv_sys_max_cmd_len=-1;
12382 ;;
12383
12384 cygwin* | mingw* | cegcc*)
12385 # On Win9x/ME, this test blows up -- it succeeds, but takes
12386 # about 5 minutes as the teststring grows exponentially.
12387 # Worse, since 9x/ME are not pre-emptively multitasking,
12388 # you end up with a "frozen" computer, even though with patience
12389 # the test eventually succeeds (with a max line length of 256k).
12390 # Instead, let's just punt: use the minimum linelength reported by
12391 # all of the supported platforms: 8192 (on NT/2K/XP).
12392 lt_cv_sys_max_cmd_len=8192;
12393 ;;
12394
12395 mint*)
12396 # On MiNT this can take a long time and run out of memory.
12397 lt_cv_sys_max_cmd_len=8192;
12398 ;;
12399
12400 amigaos*)
12401 # On AmigaOS with pdksh, this test takes hours, literally.
12402 # So we just punt and use a minimum line length of 8192.
12403 lt_cv_sys_max_cmd_len=8192;
12404 ;;
12405
12406 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12407 # This has been around since 386BSD, at least. Likely further.
12408 if test -x /sbin/sysctl; then
12409 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12410 elif test -x /usr/sbin/sysctl; then
12411 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12412 else
12413 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12414 fi
12415 # And add a safety zone
12416 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12417 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12418 ;;
12419
12420 interix*)
12421 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12422 lt_cv_sys_max_cmd_len=196608
12423 ;;
12424
12425 osf*)
12426 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12427 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12428 # nice to cause kernel panics so lets avoid the loop below.
12429 # First set a reasonable default.
12430 lt_cv_sys_max_cmd_len=16384
12431 #
12432 if test -x /sbin/sysconfig; then
12433 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12434 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12435 esac
12436 fi
12437 ;;
12438 sco3.2v5*)
12439 lt_cv_sys_max_cmd_len=102400
12440 ;;
12441 sysv5* | sco5v6* | sysv4.2uw2*)
12442 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12443 if test -n "$kargmax"; then
12444 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12445 else
12446 lt_cv_sys_max_cmd_len=32768
12447 fi
12448 ;;
12449 *)
12450 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12451 if test -n "$lt_cv_sys_max_cmd_len"; then
12452 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12453 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12454 else
12455 # Make teststring a little bigger before we do anything with it.
12456 # a 1K string should be a reasonable start.
12457 for i in 1 2 3 4 5 6 7 8 ; do
12458 teststring=$teststring$teststring
12459 done
12460 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12461 # If test is not a shell built-in, we'll probably end up computing a
12462 # maximum length that is only half of the actual maximum length, but
12463 # we can't tell.
12464 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12465 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12466 test $i != 17 # 1/2 MB should be enough
12467 do
12468 i=`expr $i + 1`
12469 teststring=$teststring$teststring
12470 done
12471 # Only check the string length outside the loop.
12472 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12473 teststring=
12474 # Add a significant safety factor because C++ compilers can tack on
12475 # massive amounts of additional arguments before passing them to the
12476 # linker. It appears as though 1/2 is a usable value.
12477 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12478 fi
12479 ;;
12480 esac
12481
12482 fi
12483
12484 if test -n $lt_cv_sys_max_cmd_len ; then
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12486 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12487 else
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12489 $as_echo "none" >&6; }
12490 fi
12491 max_cmd_len=$lt_cv_sys_max_cmd_len
12492
12493
12494
12495
12496
12497
12498 : ${CP="cp -f"}
12499 : ${MV="mv -f"}
12500 : ${RM="rm -f"}
12501
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12503 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12504 # Try some XSI features
12505 xsi_shell=no
12506 ( _lt_dummy="a/b/c"
12507 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12508 = c,a/b,, \
12509 && eval 'test $(( 1 + 1 )) -eq 2 \
12510 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12511 && xsi_shell=yes
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12513 $as_echo "$xsi_shell" >&6; }
12514
12515
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12517 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12518 lt_shell_append=no
12519 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12520 >/dev/null 2>&1 \
12521 && lt_shell_append=yes
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12523 $as_echo "$lt_shell_append" >&6; }
12524
12525
12526 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12527 lt_unset=unset
12528 else
12529 lt_unset=false
12530 fi
12531
12532
12533
12534
12535
12536 # test EBCDIC or ASCII
12537 case `echo X|tr X '\101'` in
12538 A) # ASCII based system
12539 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12540 lt_SP2NL='tr \040 \012'
12541 lt_NL2SP='tr \015\012 \040\040'
12542 ;;
12543 *) # EBCDIC based system
12544 lt_SP2NL='tr \100 \n'
12545 lt_NL2SP='tr \r\n \100\100'
12546 ;;
12547 esac
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12558 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12559 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12560 $as_echo_n "(cached) " >&6
12561 else
12562 lt_cv_ld_reload_flag='-r'
12563 fi
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12565 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12566 reload_flag=$lt_cv_ld_reload_flag
12567 case $reload_flag in
12568 "" | " "*) ;;
12569 *) reload_flag=" $reload_flag" ;;
12570 esac
12571 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12572 case $host_os in
12573 darwin*)
12574 if test "$GCC" = yes; then
12575 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12576 else
12577 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12578 fi
12579 ;;
12580 esac
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590 if test -n "$ac_tool_prefix"; then
12591 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12592 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12594 $as_echo_n "checking for $ac_word... " >&6; }
12595 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12596 $as_echo_n "(cached) " >&6
12597 else
12598 if test -n "$OBJDUMP"; then
12599 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12600 else
12601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12602 for as_dir in $PATH
12603 do
12604 IFS=$as_save_IFS
12605 test -z "$as_dir" && as_dir=.
12606 for ac_exec_ext in '' $ac_executable_extensions; do
12607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12608 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12610 break 2
12611 fi
12612 done
12613 done
12614 IFS=$as_save_IFS
12615
12616 fi
12617 fi
12618 OBJDUMP=$ac_cv_prog_OBJDUMP
12619 if test -n "$OBJDUMP"; then
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12621 $as_echo "$OBJDUMP" >&6; }
12622 else
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12624 $as_echo "no" >&6; }
12625 fi
12626
12627
12628 fi
12629 if test -z "$ac_cv_prog_OBJDUMP"; then
12630 ac_ct_OBJDUMP=$OBJDUMP
12631 # Extract the first word of "objdump", so it can be a program name with args.
12632 set dummy objdump; ac_word=$2
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12634 $as_echo_n "checking for $ac_word... " >&6; }
12635 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12636 $as_echo_n "(cached) " >&6
12637 else
12638 if test -n "$ac_ct_OBJDUMP"; then
12639 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12640 else
12641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12642 for as_dir in $PATH
12643 do
12644 IFS=$as_save_IFS
12645 test -z "$as_dir" && as_dir=.
12646 for ac_exec_ext in '' $ac_executable_extensions; do
12647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12648 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12650 break 2
12651 fi
12652 done
12653 done
12654 IFS=$as_save_IFS
12655
12656 fi
12657 fi
12658 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12659 if test -n "$ac_ct_OBJDUMP"; then
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12661 $as_echo "$ac_ct_OBJDUMP" >&6; }
12662 else
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12664 $as_echo "no" >&6; }
12665 fi
12666
12667 if test "x$ac_ct_OBJDUMP" = x; then
12668 OBJDUMP="false"
12669 else
12670 case $cross_compiling:$ac_tool_warned in
12671 yes:)
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12674 ac_tool_warned=yes ;;
12675 esac
12676 OBJDUMP=$ac_ct_OBJDUMP
12677 fi
12678 else
12679 OBJDUMP="$ac_cv_prog_OBJDUMP"
12680 fi
12681
12682 test -z "$OBJDUMP" && OBJDUMP=objdump
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12693 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12694 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12695 $as_echo_n "(cached) " >&6
12696 else
12697 lt_cv_file_magic_cmd='$MAGIC_CMD'
12698 lt_cv_file_magic_test_file=
12699 lt_cv_deplibs_check_method='unknown'
12700 # Need to set the preceding variable on all platforms that support
12701 # interlibrary dependencies.
12702 # 'none' -- dependencies not supported.
12703 # `unknown' -- same as none, but documents that we really don't know.
12704 # 'pass_all' -- all dependencies passed with no checks.
12705 # 'test_compile' -- check by making test program.
12706 # 'file_magic [[regex]]' -- check by looking for files in library path
12707 # which responds to the $file_magic_cmd with a given extended regex.
12708 # If you have `file' or equivalent on your system and you're not sure
12709 # whether `pass_all' will *always* work, you probably want this one.
12710
12711 case $host_os in
12712 aix[4-9]*)
12713 lt_cv_deplibs_check_method=pass_all
12714 ;;
12715
12716 beos*)
12717 lt_cv_deplibs_check_method=pass_all
12718 ;;
12719
12720 bsdi[45]*)
12721 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12722 lt_cv_file_magic_cmd='/usr/bin/file -L'
12723 lt_cv_file_magic_test_file=/shlib/libc.so
12724 ;;
12725
12726 cygwin*)
12727 # func_win32_libid is a shell function defined in ltmain.sh
12728 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12729 lt_cv_file_magic_cmd='func_win32_libid'
12730 ;;
12731
12732 mingw* | pw32*)
12733 # Base MSYS/MinGW do not provide the 'file' command needed by
12734 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12735 # unless we find 'file', for example because we are cross-compiling.
12736 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12737 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12738 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12739 lt_cv_file_magic_cmd='func_win32_libid'
12740 else
12741 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12742 lt_cv_file_magic_cmd='$OBJDUMP -f'
12743 fi
12744 ;;
12745
12746 cegcc*)
12747 # use the weaker test based on 'objdump'. See mingw*.
12748 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12749 lt_cv_file_magic_cmd='$OBJDUMP -f'
12750 ;;
12751
12752 darwin* | rhapsody*)
12753 lt_cv_deplibs_check_method=pass_all
12754 ;;
12755
12756 freebsd* | dragonfly*)
12757 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12758 case $host_cpu in
12759 i*86 )
12760 # Not sure whether the presence of OpenBSD here was a mistake.
12761 # Let's accept both of them until this is cleared up.
12762 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12763 lt_cv_file_magic_cmd=/usr/bin/file
12764 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12765 ;;
12766 esac
12767 else
12768 lt_cv_deplibs_check_method=pass_all
12769 fi
12770 ;;
12771
12772 gnu*)
12773 lt_cv_deplibs_check_method=pass_all
12774 ;;
12775
12776 haiku*)
12777 lt_cv_deplibs_check_method=pass_all
12778 ;;
12779
12780 hpux10.20* | hpux11*)
12781 lt_cv_file_magic_cmd=/usr/bin/file
12782 case $host_cpu in
12783 ia64*)
12784 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12785 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12786 ;;
12787 hppa*64*)
12788 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]'
12789 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12790 ;;
12791 *)
12792 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12793 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12794 ;;
12795 esac
12796 ;;
12797
12798 interix[3-9]*)
12799 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12800 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12801 ;;
12802
12803 irix5* | irix6* | nonstopux*)
12804 case $LD in
12805 *-32|*"-32 ") libmagic=32-bit;;
12806 *-n32|*"-n32 ") libmagic=N32;;
12807 *-64|*"-64 ") libmagic=64-bit;;
12808 *) libmagic=never-match;;
12809 esac
12810 lt_cv_deplibs_check_method=pass_all
12811 ;;
12812
12813 # This must be Linux ELF.
12814 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12815 lt_cv_deplibs_check_method=pass_all
12816 ;;
12817
12818 netbsd*)
12819 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12820 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12821 else
12822 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12823 fi
12824 ;;
12825
12826 newos6*)
12827 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12828 lt_cv_file_magic_cmd=/usr/bin/file
12829 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12830 ;;
12831
12832 *nto* | *qnx*)
12833 lt_cv_deplibs_check_method=pass_all
12834 ;;
12835
12836 openbsd*)
12837 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12838 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12839 else
12840 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12841 fi
12842 ;;
12843
12844 osf3* | osf4* | osf5*)
12845 lt_cv_deplibs_check_method=pass_all
12846 ;;
12847
12848 rdos*)
12849 lt_cv_deplibs_check_method=pass_all
12850 ;;
12851
12852 solaris*)
12853 lt_cv_deplibs_check_method=pass_all
12854 ;;
12855
12856 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12857 lt_cv_deplibs_check_method=pass_all
12858 ;;
12859
12860 sysv4 | sysv4.3*)
12861 case $host_vendor in
12862 motorola)
12863 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]'
12864 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12865 ;;
12866 ncr)
12867 lt_cv_deplibs_check_method=pass_all
12868 ;;
12869 sequent)
12870 lt_cv_file_magic_cmd='/bin/file'
12871 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12872 ;;
12873 sni)
12874 lt_cv_file_magic_cmd='/bin/file'
12875 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12876 lt_cv_file_magic_test_file=/lib/libc.so
12877 ;;
12878 siemens)
12879 lt_cv_deplibs_check_method=pass_all
12880 ;;
12881 pc)
12882 lt_cv_deplibs_check_method=pass_all
12883 ;;
12884 esac
12885 ;;
12886
12887 tpf*)
12888 lt_cv_deplibs_check_method=pass_all
12889 ;;
12890 esac
12891
12892 fi
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12894 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12895 file_magic_cmd=$lt_cv_file_magic_cmd
12896 deplibs_check_method=$lt_cv_deplibs_check_method
12897 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910 if test -n "$ac_tool_prefix"; then
12911 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12912 set dummy ${ac_tool_prefix}ar; ac_word=$2
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12914 $as_echo_n "checking for $ac_word... " >&6; }
12915 if test "${ac_cv_prog_AR+set}" = set; then :
12916 $as_echo_n "(cached) " >&6
12917 else
12918 if test -n "$AR"; then
12919 ac_cv_prog_AR="$AR" # Let the user override the test.
12920 else
12921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12922 for as_dir in $PATH
12923 do
12924 IFS=$as_save_IFS
12925 test -z "$as_dir" && as_dir=.
12926 for ac_exec_ext in '' $ac_executable_extensions; do
12927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12928 ac_cv_prog_AR="${ac_tool_prefix}ar"
12929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12930 break 2
12931 fi
12932 done
12933 done
12934 IFS=$as_save_IFS
12935
12936 fi
12937 fi
12938 AR=$ac_cv_prog_AR
12939 if test -n "$AR"; then
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12941 $as_echo "$AR" >&6; }
12942 else
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12944 $as_echo "no" >&6; }
12945 fi
12946
12947
12948 fi
12949 if test -z "$ac_cv_prog_AR"; then
12950 ac_ct_AR=$AR
12951 # Extract the first word of "ar", so it can be a program name with args.
12952 set dummy ar; ac_word=$2
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12954 $as_echo_n "checking for $ac_word... " >&6; }
12955 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12956 $as_echo_n "(cached) " >&6
12957 else
12958 if test -n "$ac_ct_AR"; then
12959 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12960 else
12961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12962 for as_dir in $PATH
12963 do
12964 IFS=$as_save_IFS
12965 test -z "$as_dir" && as_dir=.
12966 for ac_exec_ext in '' $ac_executable_extensions; do
12967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12968 ac_cv_prog_ac_ct_AR="ar"
12969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12970 break 2
12971 fi
12972 done
12973 done
12974 IFS=$as_save_IFS
12975
12976 fi
12977 fi
12978 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12979 if test -n "$ac_ct_AR"; then
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12981 $as_echo "$ac_ct_AR" >&6; }
12982 else
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12984 $as_echo "no" >&6; }
12985 fi
12986
12987 if test "x$ac_ct_AR" = x; then
12988 AR="false"
12989 else
12990 case $cross_compiling:$ac_tool_warned in
12991 yes:)
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12994 ac_tool_warned=yes ;;
12995 esac
12996 AR=$ac_ct_AR
12997 fi
12998 else
12999 AR="$ac_cv_prog_AR"
13000 fi
13001
13002 test -z "$AR" && AR=ar
13003 test -z "$AR_FLAGS" && AR_FLAGS=cru
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015 if test -n "$ac_tool_prefix"; then
13016 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13017 set dummy ${ac_tool_prefix}strip; ac_word=$2
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13019 $as_echo_n "checking for $ac_word... " >&6; }
13020 if test "${ac_cv_prog_STRIP+set}" = set; then :
13021 $as_echo_n "(cached) " >&6
13022 else
13023 if test -n "$STRIP"; then
13024 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13025 else
13026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13027 for as_dir in $PATH
13028 do
13029 IFS=$as_save_IFS
13030 test -z "$as_dir" && as_dir=.
13031 for ac_exec_ext in '' $ac_executable_extensions; do
13032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13033 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13035 break 2
13036 fi
13037 done
13038 done
13039 IFS=$as_save_IFS
13040
13041 fi
13042 fi
13043 STRIP=$ac_cv_prog_STRIP
13044 if test -n "$STRIP"; then
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13046 $as_echo "$STRIP" >&6; }
13047 else
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13049 $as_echo "no" >&6; }
13050 fi
13051
13052
13053 fi
13054 if test -z "$ac_cv_prog_STRIP"; then
13055 ac_ct_STRIP=$STRIP
13056 # Extract the first word of "strip", so it can be a program name with args.
13057 set dummy strip; ac_word=$2
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13059 $as_echo_n "checking for $ac_word... " >&6; }
13060 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13061 $as_echo_n "(cached) " >&6
13062 else
13063 if test -n "$ac_ct_STRIP"; then
13064 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13065 else
13066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13067 for as_dir in $PATH
13068 do
13069 IFS=$as_save_IFS
13070 test -z "$as_dir" && as_dir=.
13071 for ac_exec_ext in '' $ac_executable_extensions; do
13072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13073 ac_cv_prog_ac_ct_STRIP="strip"
13074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13075 break 2
13076 fi
13077 done
13078 done
13079 IFS=$as_save_IFS
13080
13081 fi
13082 fi
13083 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13084 if test -n "$ac_ct_STRIP"; then
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13086 $as_echo "$ac_ct_STRIP" >&6; }
13087 else
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13089 $as_echo "no" >&6; }
13090 fi
13091
13092 if test "x$ac_ct_STRIP" = x; then
13093 STRIP=":"
13094 else
13095 case $cross_compiling:$ac_tool_warned in
13096 yes:)
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13099 ac_tool_warned=yes ;;
13100 esac
13101 STRIP=$ac_ct_STRIP
13102 fi
13103 else
13104 STRIP="$ac_cv_prog_STRIP"
13105 fi
13106
13107 test -z "$STRIP" && STRIP=:
13108
13109
13110
13111
13112
13113
13114 if test -n "$ac_tool_prefix"; then
13115 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13116 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13118 $as_echo_n "checking for $ac_word... " >&6; }
13119 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13120 $as_echo_n "(cached) " >&6
13121 else
13122 if test -n "$RANLIB"; then
13123 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13124 else
13125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13126 for as_dir in $PATH
13127 do
13128 IFS=$as_save_IFS
13129 test -z "$as_dir" && as_dir=.
13130 for ac_exec_ext in '' $ac_executable_extensions; do
13131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13132 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13134 break 2
13135 fi
13136 done
13137 done
13138 IFS=$as_save_IFS
13139
13140 fi
13141 fi
13142 RANLIB=$ac_cv_prog_RANLIB
13143 if test -n "$RANLIB"; then
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13145 $as_echo "$RANLIB" >&6; }
13146 else
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13148 $as_echo "no" >&6; }
13149 fi
13150
13151
13152 fi
13153 if test -z "$ac_cv_prog_RANLIB"; then
13154 ac_ct_RANLIB=$RANLIB
13155 # Extract the first word of "ranlib", so it can be a program name with args.
13156 set dummy ranlib; ac_word=$2
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13158 $as_echo_n "checking for $ac_word... " >&6; }
13159 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13160 $as_echo_n "(cached) " >&6
13161 else
13162 if test -n "$ac_ct_RANLIB"; then
13163 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13164 else
13165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13166 for as_dir in $PATH
13167 do
13168 IFS=$as_save_IFS
13169 test -z "$as_dir" && as_dir=.
13170 for ac_exec_ext in '' $ac_executable_extensions; do
13171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13172 ac_cv_prog_ac_ct_RANLIB="ranlib"
13173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13174 break 2
13175 fi
13176 done
13177 done
13178 IFS=$as_save_IFS
13179
13180 fi
13181 fi
13182 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13183 if test -n "$ac_ct_RANLIB"; then
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13185 $as_echo "$ac_ct_RANLIB" >&6; }
13186 else
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13188 $as_echo "no" >&6; }
13189 fi
13190
13191 if test "x$ac_ct_RANLIB" = x; then
13192 RANLIB=":"
13193 else
13194 case $cross_compiling:$ac_tool_warned in
13195 yes:)
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13198 ac_tool_warned=yes ;;
13199 esac
13200 RANLIB=$ac_ct_RANLIB
13201 fi
13202 else
13203 RANLIB="$ac_cv_prog_RANLIB"
13204 fi
13205
13206 test -z "$RANLIB" && RANLIB=:
13207
13208
13209
13210
13211
13212
13213 # Determine commands to create old-style static archives.
13214 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13215 old_postinstall_cmds='chmod 644 $oldlib'
13216 old_postuninstall_cmds=
13217
13218 if test -n "$RANLIB"; then
13219 case $host_os in
13220 openbsd*)
13221 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13222 ;;
13223 *)
13224 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13225 ;;
13226 esac
13227 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13228 fi
13229
13230 case $host_os in
13231 darwin*)
13232 lock_old_archive_extraction=yes ;;
13233 *)
13234 lock_old_archive_extraction=no ;;
13235 esac
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275 # If no C compiler was specified, use CC.
13276 LTCC=${LTCC-"$CC"}
13277
13278 # If no C compiler flags were specified, use CFLAGS.
13279 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13280
13281 # Allow CC to be a program name with arguments.
13282 compiler=$CC
13283
13284
13285 # Check for command to grab the raw symbol name followed by C symbol from nm.
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13287 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13288 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13289 $as_echo_n "(cached) " >&6
13290 else
13291
13292 # These are sane defaults that work on at least a few old systems.
13293 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13294
13295 # Character class describing NM global symbol codes.
13296 symcode='[BCDEGRST]'
13297
13298 # Regexp to match symbols that can be accessed directly from C.
13299 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13300
13301 # Define system-specific variables.
13302 case $host_os in
13303 aix*)
13304 symcode='[BCDT]'
13305 ;;
13306 cygwin* | mingw* | pw32* | cegcc*)
13307 symcode='[ABCDGISTW]'
13308 ;;
13309 hpux*)
13310 if test "$host_cpu" = ia64; then
13311 symcode='[ABCDEGRST]'
13312 fi
13313 ;;
13314 irix* | nonstopux*)
13315 symcode='[BCDEGRST]'
13316 ;;
13317 osf*)
13318 symcode='[BCDEGQRST]'
13319 ;;
13320 solaris*)
13321 symcode='[BDRT]'
13322 ;;
13323 sco3.2v5*)
13324 symcode='[DT]'
13325 ;;
13326 sysv4.2uw2*)
13327 symcode='[DT]'
13328 ;;
13329 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13330 symcode='[ABDT]'
13331 ;;
13332 sysv4)
13333 symcode='[DFNSTU]'
13334 ;;
13335 esac
13336
13337 # If we're using GNU nm, then use its standard symbol codes.
13338 case `$NM -V 2>&1` in
13339 *GNU* | *'with BFD'*)
13340 symcode='[ABCDGIRSTW]' ;;
13341 esac
13342
13343 # Transform an extracted symbol line into a proper C declaration.
13344 # Some systems (esp. on ia64) link data and code symbols differently,
13345 # so use this general approach.
13346 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13347
13348 # Transform an extracted symbol line into symbol name and symbol address
13349 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13350 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'"
13351
13352 # Handle CRLF in mingw tool chain
13353 opt_cr=
13354 case $build_os in
13355 mingw*)
13356 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13357 ;;
13358 esac
13359
13360 # Try without a prefix underscore, then with it.
13361 for ac_symprfx in "" "_"; do
13362
13363 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13364 symxfrm="\\1 $ac_symprfx\\2 \\2"
13365
13366 # Write the raw and C identifiers.
13367 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13368 # Fake it for dumpbin and say T for any non-static function
13369 # and D for any global variable.
13370 # Also find C++ and __fastcall symbols from MSVC++,
13371 # which start with @ or ?.
13372 lt_cv_sys_global_symbol_pipe="$AWK '"\
13373 " {last_section=section; section=\$ 3};"\
13374 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13375 " \$ 0!~/External *\|/{next};"\
13376 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13377 " {if(hide[section]) next};"\
13378 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13379 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13380 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13381 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13382 " ' prfx=^$ac_symprfx"
13383 else
13384 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13385 fi
13386
13387 # Check to see that the pipe works correctly.
13388 pipe_works=no
13389
13390 rm -f conftest*
13391 cat > conftest.$ac_ext <<_LT_EOF
13392 #ifdef __cplusplus
13393 extern "C" {
13394 #endif
13395 char nm_test_var;
13396 void nm_test_func(void);
13397 void nm_test_func(void){}
13398 #ifdef __cplusplus
13399 }
13400 #endif
13401 int main(){nm_test_var='a';nm_test_func();return(0);}
13402 _LT_EOF
13403
13404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13405 (eval $ac_compile) 2>&5
13406 ac_status=$?
13407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13408 test $ac_status = 0; }; then
13409 # Now try to grab the symbols.
13410 nlist=conftest.nm
13411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13412 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13413 ac_status=$?
13414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13415 test $ac_status = 0; } && test -s "$nlist"; then
13416 # Try sorting and uniquifying the output.
13417 if sort "$nlist" | uniq > "$nlist"T; then
13418 mv -f "$nlist"T "$nlist"
13419 else
13420 rm -f "$nlist"T
13421 fi
13422
13423 # Make sure that we snagged all the symbols we need.
13424 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13425 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13426 cat <<_LT_EOF > conftest.$ac_ext
13427 #ifdef __cplusplus
13428 extern "C" {
13429 #endif
13430
13431 _LT_EOF
13432 # Now generate the symbol file.
13433 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13434
13435 cat <<_LT_EOF >> conftest.$ac_ext
13436
13437 /* The mapping between symbol names and symbols. */
13438 const struct {
13439 const char *name;
13440 void *address;
13441 }
13442 lt__PROGRAM__LTX_preloaded_symbols[] =
13443 {
13444 { "@PROGRAM@", (void *) 0 },
13445 _LT_EOF
13446 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13447 cat <<\_LT_EOF >> conftest.$ac_ext
13448 {0, (void *) 0}
13449 };
13450
13451 /* This works around a problem in FreeBSD linker */
13452 #ifdef FREEBSD_WORKAROUND
13453 static const void *lt_preloaded_setup() {
13454 return lt__PROGRAM__LTX_preloaded_symbols;
13455 }
13456 #endif
13457
13458 #ifdef __cplusplus
13459 }
13460 #endif
13461 _LT_EOF
13462 # Now try linking the two files.
13463 mv conftest.$ac_objext conftstm.$ac_objext
13464 lt_save_LIBS="$LIBS"
13465 lt_save_CFLAGS="$CFLAGS"
13466 LIBS="conftstm.$ac_objext"
13467 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13469 (eval $ac_link) 2>&5
13470 ac_status=$?
13471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13472 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13473 pipe_works=yes
13474 fi
13475 LIBS="$lt_save_LIBS"
13476 CFLAGS="$lt_save_CFLAGS"
13477 else
13478 echo "cannot find nm_test_func in $nlist" >&5
13479 fi
13480 else
13481 echo "cannot find nm_test_var in $nlist" >&5
13482 fi
13483 else
13484 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13485 fi
13486 else
13487 echo "$progname: failed program was:" >&5
13488 cat conftest.$ac_ext >&5
13489 fi
13490 rm -rf conftest* conftst*
13491
13492 # Do not use the global_symbol_pipe unless it works.
13493 if test "$pipe_works" = yes; then
13494 break
13495 else
13496 lt_cv_sys_global_symbol_pipe=
13497 fi
13498 done
13499
13500 fi
13501
13502 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13503 lt_cv_sys_global_symbol_to_cdecl=
13504 fi
13505 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13507 $as_echo "failed" >&6; }
13508 else
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13510 $as_echo "ok" >&6; }
13511 fi
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534 # Check whether --enable-libtool-lock was given.
13535 if test "${enable_libtool_lock+set}" = set; then :
13536 enableval=$enable_libtool_lock;
13537 fi
13538
13539 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13540
13541 # Some flags need to be propagated to the compiler or linker for good
13542 # libtool support.
13543 case $host in
13544 ia64-*-hpux*)
13545 # Find out which ABI we are using.
13546 echo 'int i;' > conftest.$ac_ext
13547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13548 (eval $ac_compile) 2>&5
13549 ac_status=$?
13550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13551 test $ac_status = 0; }; then
13552 case `/usr/bin/file conftest.$ac_objext` in
13553 *ELF-32*)
13554 HPUX_IA64_MODE="32"
13555 ;;
13556 *ELF-64*)
13557 HPUX_IA64_MODE="64"
13558 ;;
13559 esac
13560 fi
13561 rm -rf conftest*
13562 ;;
13563 *-*-irix6*)
13564 # Find out which ABI we are using.
13565 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13567 (eval $ac_compile) 2>&5
13568 ac_status=$?
13569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13570 test $ac_status = 0; }; then
13571 if test "$lt_cv_prog_gnu_ld" = yes; then
13572 case `/usr/bin/file conftest.$ac_objext` in
13573 *32-bit*)
13574 LD="${LD-ld} -melf32bsmip"
13575 ;;
13576 *N32*)
13577 LD="${LD-ld} -melf32bmipn32"
13578 ;;
13579 *64-bit*)
13580 LD="${LD-ld} -melf64bmip"
13581 ;;
13582 esac
13583 else
13584 case `/usr/bin/file conftest.$ac_objext` in
13585 *32-bit*)
13586 LD="${LD-ld} -32"
13587 ;;
13588 *N32*)
13589 LD="${LD-ld} -n32"
13590 ;;
13591 *64-bit*)
13592 LD="${LD-ld} -64"
13593 ;;
13594 esac
13595 fi
13596 fi
13597 rm -rf conftest*
13598 ;;
13599
13600 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13601 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13602 # Find out which ABI we are using.
13603 echo 'int i;' > conftest.$ac_ext
13604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13605 (eval $ac_compile) 2>&5
13606 ac_status=$?
13607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13608 test $ac_status = 0; }; then
13609 case `/usr/bin/file conftest.o` in
13610 *32-bit*)
13611 case $host in
13612 x86_64-*kfreebsd*-gnu)
13613 LD="${LD-ld} -m elf_i386_fbsd"
13614 ;;
13615 x86_64-*linux*)
13616 LD="${LD-ld} -m elf_i386"
13617 ;;
13618 ppc64-*linux*|powerpc64-*linux*)
13619 LD="${LD-ld} -m elf32ppclinux"
13620 ;;
13621 s390x-*linux*)
13622 LD="${LD-ld} -m elf_s390"
13623 ;;
13624 sparc64-*linux*)
13625 LD="${LD-ld} -m elf32_sparc"
13626 ;;
13627 esac
13628 ;;
13629 *64-bit*)
13630 case $host in
13631 x86_64-*kfreebsd*-gnu)
13632 LD="${LD-ld} -m elf_x86_64_fbsd"
13633 ;;
13634 x86_64-*linux*)
13635 LD="${LD-ld} -m elf_x86_64"
13636 ;;
13637 ppc*-*linux*|powerpc*-*linux*)
13638 LD="${LD-ld} -m elf64ppc"
13639 ;;
13640 s390*-*linux*|s390*-*tpf*)
13641 LD="${LD-ld} -m elf64_s390"
13642 ;;
13643 sparc*-*linux*)
13644 LD="${LD-ld} -m elf64_sparc"
13645 ;;
13646 esac
13647 ;;
13648 esac
13649 fi
13650 rm -rf conftest*
13651 ;;
13652
13653 *-*-sco3.2v5*)
13654 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13655 SAVE_CFLAGS="$CFLAGS"
13656 CFLAGS="$CFLAGS -belf"
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13658 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13659 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13660 $as_echo_n "(cached) " >&6
13661 else
13662 ac_ext=c
13663 ac_cpp='$CPP $CPPFLAGS'
13664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13667
13668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13669 /* end confdefs.h. */
13670
13671 int
13672 main ()
13673 {
13674
13675 ;
13676 return 0;
13677 }
13678 _ACEOF
13679 if ac_fn_c_try_link "$LINENO"; then :
13680 lt_cv_cc_needs_belf=yes
13681 else
13682 lt_cv_cc_needs_belf=no
13683 fi
13684 rm -f core conftest.err conftest.$ac_objext \
13685 conftest$ac_exeext conftest.$ac_ext
13686 ac_ext=c
13687 ac_cpp='$CPP $CPPFLAGS'
13688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13691
13692 fi
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13694 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13695 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13696 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13697 CFLAGS="$SAVE_CFLAGS"
13698 fi
13699 ;;
13700 sparc*-*solaris*)
13701 # Find out which ABI we are using.
13702 echo 'int i;' > conftest.$ac_ext
13703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13704 (eval $ac_compile) 2>&5
13705 ac_status=$?
13706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13707 test $ac_status = 0; }; then
13708 case `/usr/bin/file conftest.o` in
13709 *64-bit*)
13710 case $lt_cv_prog_gnu_ld in
13711 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13712 *)
13713 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13714 LD="${LD-ld} -64"
13715 fi
13716 ;;
13717 esac
13718 ;;
13719 esac
13720 fi
13721 rm -rf conftest*
13722 ;;
13723 esac
13724
13725 need_locks="$enable_libtool_lock"
13726
13727
13728 case $host_os in
13729 rhapsody* | darwin*)
13730 if test -n "$ac_tool_prefix"; then
13731 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13732 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13734 $as_echo_n "checking for $ac_word... " >&6; }
13735 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13736 $as_echo_n "(cached) " >&6
13737 else
13738 if test -n "$DSYMUTIL"; then
13739 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13740 else
13741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13742 for as_dir in $PATH
13743 do
13744 IFS=$as_save_IFS
13745 test -z "$as_dir" && as_dir=.
13746 for ac_exec_ext in '' $ac_executable_extensions; do
13747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13748 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13750 break 2
13751 fi
13752 done
13753 done
13754 IFS=$as_save_IFS
13755
13756 fi
13757 fi
13758 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13759 if test -n "$DSYMUTIL"; then
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13761 $as_echo "$DSYMUTIL" >&6; }
13762 else
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13764 $as_echo "no" >&6; }
13765 fi
13766
13767
13768 fi
13769 if test -z "$ac_cv_prog_DSYMUTIL"; then
13770 ac_ct_DSYMUTIL=$DSYMUTIL
13771 # Extract the first word of "dsymutil", so it can be a program name with args.
13772 set dummy dsymutil; ac_word=$2
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13774 $as_echo_n "checking for $ac_word... " >&6; }
13775 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13776 $as_echo_n "(cached) " >&6
13777 else
13778 if test -n "$ac_ct_DSYMUTIL"; then
13779 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13780 else
13781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13782 for as_dir in $PATH
13783 do
13784 IFS=$as_save_IFS
13785 test -z "$as_dir" && as_dir=.
13786 for ac_exec_ext in '' $ac_executable_extensions; do
13787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13788 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13790 break 2
13791 fi
13792 done
13793 done
13794 IFS=$as_save_IFS
13795
13796 fi
13797 fi
13798 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13799 if test -n "$ac_ct_DSYMUTIL"; then
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13801 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13802 else
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13804 $as_echo "no" >&6; }
13805 fi
13806
13807 if test "x$ac_ct_DSYMUTIL" = x; then
13808 DSYMUTIL=":"
13809 else
13810 case $cross_compiling:$ac_tool_warned in
13811 yes:)
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13814 ac_tool_warned=yes ;;
13815 esac
13816 DSYMUTIL=$ac_ct_DSYMUTIL
13817 fi
13818 else
13819 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13820 fi
13821
13822 if test -n "$ac_tool_prefix"; then
13823 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13824 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13826 $as_echo_n "checking for $ac_word... " >&6; }
13827 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13828 $as_echo_n "(cached) " >&6
13829 else
13830 if test -n "$NMEDIT"; then
13831 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13832 else
13833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13834 for as_dir in $PATH
13835 do
13836 IFS=$as_save_IFS
13837 test -z "$as_dir" && as_dir=.
13838 for ac_exec_ext in '' $ac_executable_extensions; do
13839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13840 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13842 break 2
13843 fi
13844 done
13845 done
13846 IFS=$as_save_IFS
13847
13848 fi
13849 fi
13850 NMEDIT=$ac_cv_prog_NMEDIT
13851 if test -n "$NMEDIT"; then
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13853 $as_echo "$NMEDIT" >&6; }
13854 else
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13856 $as_echo "no" >&6; }
13857 fi
13858
13859
13860 fi
13861 if test -z "$ac_cv_prog_NMEDIT"; then
13862 ac_ct_NMEDIT=$NMEDIT
13863 # Extract the first word of "nmedit", so it can be a program name with args.
13864 set dummy nmedit; ac_word=$2
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13866 $as_echo_n "checking for $ac_word... " >&6; }
13867 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13868 $as_echo_n "(cached) " >&6
13869 else
13870 if test -n "$ac_ct_NMEDIT"; then
13871 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13872 else
13873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13874 for as_dir in $PATH
13875 do
13876 IFS=$as_save_IFS
13877 test -z "$as_dir" && as_dir=.
13878 for ac_exec_ext in '' $ac_executable_extensions; do
13879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13880 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13882 break 2
13883 fi
13884 done
13885 done
13886 IFS=$as_save_IFS
13887
13888 fi
13889 fi
13890 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13891 if test -n "$ac_ct_NMEDIT"; then
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13893 $as_echo "$ac_ct_NMEDIT" >&6; }
13894 else
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13896 $as_echo "no" >&6; }
13897 fi
13898
13899 if test "x$ac_ct_NMEDIT" = x; then
13900 NMEDIT=":"
13901 else
13902 case $cross_compiling:$ac_tool_warned in
13903 yes:)
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13906 ac_tool_warned=yes ;;
13907 esac
13908 NMEDIT=$ac_ct_NMEDIT
13909 fi
13910 else
13911 NMEDIT="$ac_cv_prog_NMEDIT"
13912 fi
13913
13914 if test -n "$ac_tool_prefix"; then
13915 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13916 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13918 $as_echo_n "checking for $ac_word... " >&6; }
13919 if test "${ac_cv_prog_LIPO+set}" = set; then :
13920 $as_echo_n "(cached) " >&6
13921 else
13922 if test -n "$LIPO"; then
13923 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13924 else
13925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13926 for as_dir in $PATH
13927 do
13928 IFS=$as_save_IFS
13929 test -z "$as_dir" && as_dir=.
13930 for ac_exec_ext in '' $ac_executable_extensions; do
13931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13932 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13934 break 2
13935 fi
13936 done
13937 done
13938 IFS=$as_save_IFS
13939
13940 fi
13941 fi
13942 LIPO=$ac_cv_prog_LIPO
13943 if test -n "$LIPO"; then
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13945 $as_echo "$LIPO" >&6; }
13946 else
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13948 $as_echo "no" >&6; }
13949 fi
13950
13951
13952 fi
13953 if test -z "$ac_cv_prog_LIPO"; then
13954 ac_ct_LIPO=$LIPO
13955 # Extract the first word of "lipo", so it can be a program name with args.
13956 set dummy lipo; ac_word=$2
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13958 $as_echo_n "checking for $ac_word... " >&6; }
13959 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13960 $as_echo_n "(cached) " >&6
13961 else
13962 if test -n "$ac_ct_LIPO"; then
13963 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13964 else
13965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13966 for as_dir in $PATH
13967 do
13968 IFS=$as_save_IFS
13969 test -z "$as_dir" && as_dir=.
13970 for ac_exec_ext in '' $ac_executable_extensions; do
13971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13972 ac_cv_prog_ac_ct_LIPO="lipo"
13973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13974 break 2
13975 fi
13976 done
13977 done
13978 IFS=$as_save_IFS
13979
13980 fi
13981 fi
13982 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13983 if test -n "$ac_ct_LIPO"; then
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13985 $as_echo "$ac_ct_LIPO" >&6; }
13986 else
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13988 $as_echo "no" >&6; }
13989 fi
13990
13991 if test "x$ac_ct_LIPO" = x; then
13992 LIPO=":"
13993 else
13994 case $cross_compiling:$ac_tool_warned in
13995 yes:)
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13998 ac_tool_warned=yes ;;
13999 esac
14000 LIPO=$ac_ct_LIPO
14001 fi
14002 else
14003 LIPO="$ac_cv_prog_LIPO"
14004 fi
14005
14006 if test -n "$ac_tool_prefix"; then
14007 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14008 set dummy ${ac_tool_prefix}otool; ac_word=$2
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14010 $as_echo_n "checking for $ac_word... " >&6; }
14011 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14012 $as_echo_n "(cached) " >&6
14013 else
14014 if test -n "$OTOOL"; then
14015 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14016 else
14017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14018 for as_dir in $PATH
14019 do
14020 IFS=$as_save_IFS
14021 test -z "$as_dir" && as_dir=.
14022 for ac_exec_ext in '' $ac_executable_extensions; do
14023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14024 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14026 break 2
14027 fi
14028 done
14029 done
14030 IFS=$as_save_IFS
14031
14032 fi
14033 fi
14034 OTOOL=$ac_cv_prog_OTOOL
14035 if test -n "$OTOOL"; then
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14037 $as_echo "$OTOOL" >&6; }
14038 else
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14040 $as_echo "no" >&6; }
14041 fi
14042
14043
14044 fi
14045 if test -z "$ac_cv_prog_OTOOL"; then
14046 ac_ct_OTOOL=$OTOOL
14047 # Extract the first word of "otool", so it can be a program name with args.
14048 set dummy otool; ac_word=$2
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14050 $as_echo_n "checking for $ac_word... " >&6; }
14051 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14052 $as_echo_n "(cached) " >&6
14053 else
14054 if test -n "$ac_ct_OTOOL"; then
14055 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14056 else
14057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14058 for as_dir in $PATH
14059 do
14060 IFS=$as_save_IFS
14061 test -z "$as_dir" && as_dir=.
14062 for ac_exec_ext in '' $ac_executable_extensions; do
14063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14064 ac_cv_prog_ac_ct_OTOOL="otool"
14065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14066 break 2
14067 fi
14068 done
14069 done
14070 IFS=$as_save_IFS
14071
14072 fi
14073 fi
14074 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14075 if test -n "$ac_ct_OTOOL"; then
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14077 $as_echo "$ac_ct_OTOOL" >&6; }
14078 else
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14080 $as_echo "no" >&6; }
14081 fi
14082
14083 if test "x$ac_ct_OTOOL" = x; then
14084 OTOOL=":"
14085 else
14086 case $cross_compiling:$ac_tool_warned in
14087 yes:)
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14090 ac_tool_warned=yes ;;
14091 esac
14092 OTOOL=$ac_ct_OTOOL
14093 fi
14094 else
14095 OTOOL="$ac_cv_prog_OTOOL"
14096 fi
14097
14098 if test -n "$ac_tool_prefix"; then
14099 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14100 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14102 $as_echo_n "checking for $ac_word... " >&6; }
14103 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14104 $as_echo_n "(cached) " >&6
14105 else
14106 if test -n "$OTOOL64"; then
14107 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14108 else
14109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14110 for as_dir in $PATH
14111 do
14112 IFS=$as_save_IFS
14113 test -z "$as_dir" && as_dir=.
14114 for ac_exec_ext in '' $ac_executable_extensions; do
14115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14116 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14118 break 2
14119 fi
14120 done
14121 done
14122 IFS=$as_save_IFS
14123
14124 fi
14125 fi
14126 OTOOL64=$ac_cv_prog_OTOOL64
14127 if test -n "$OTOOL64"; then
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14129 $as_echo "$OTOOL64" >&6; }
14130 else
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14132 $as_echo "no" >&6; }
14133 fi
14134
14135
14136 fi
14137 if test -z "$ac_cv_prog_OTOOL64"; then
14138 ac_ct_OTOOL64=$OTOOL64
14139 # Extract the first word of "otool64", so it can be a program name with args.
14140 set dummy otool64; ac_word=$2
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14142 $as_echo_n "checking for $ac_word... " >&6; }
14143 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14144 $as_echo_n "(cached) " >&6
14145 else
14146 if test -n "$ac_ct_OTOOL64"; then
14147 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14148 else
14149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14150 for as_dir in $PATH
14151 do
14152 IFS=$as_save_IFS
14153 test -z "$as_dir" && as_dir=.
14154 for ac_exec_ext in '' $ac_executable_extensions; do
14155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14156 ac_cv_prog_ac_ct_OTOOL64="otool64"
14157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14158 break 2
14159 fi
14160 done
14161 done
14162 IFS=$as_save_IFS
14163
14164 fi
14165 fi
14166 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14167 if test -n "$ac_ct_OTOOL64"; then
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14169 $as_echo "$ac_ct_OTOOL64" >&6; }
14170 else
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14172 $as_echo "no" >&6; }
14173 fi
14174
14175 if test "x$ac_ct_OTOOL64" = x; then
14176 OTOOL64=":"
14177 else
14178 case $cross_compiling:$ac_tool_warned in
14179 yes:)
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14182 ac_tool_warned=yes ;;
14183 esac
14184 OTOOL64=$ac_ct_OTOOL64
14185 fi
14186 else
14187 OTOOL64="$ac_cv_prog_OTOOL64"
14188 fi
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14217 $as_echo_n "checking for -single_module linker flag... " >&6; }
14218 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14219 $as_echo_n "(cached) " >&6
14220 else
14221 lt_cv_apple_cc_single_mod=no
14222 if test -z "${LT_MULTI_MODULE}"; then
14223 # By default we will add the -single_module flag. You can override
14224 # by either setting the environment variable LT_MULTI_MODULE
14225 # non-empty at configure time, or by adding -multi_module to the
14226 # link flags.
14227 rm -rf libconftest.dylib*
14228 echo "int foo(void){return 1;}" > conftest.c
14229 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14230 -dynamiclib -Wl,-single_module conftest.c" >&5
14231 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14232 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14233 _lt_result=$?
14234 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14235 lt_cv_apple_cc_single_mod=yes
14236 else
14237 cat conftest.err >&5
14238 fi
14239 rm -rf libconftest.dylib*
14240 rm -f conftest.*
14241 fi
14242 fi
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14244 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14246 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14247 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14248 $as_echo_n "(cached) " >&6
14249 else
14250 lt_cv_ld_exported_symbols_list=no
14251 save_LDFLAGS=$LDFLAGS
14252 echo "_main" > conftest.sym
14253 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14255 /* end confdefs.h. */
14256
14257 int
14258 main ()
14259 {
14260
14261 ;
14262 return 0;
14263 }
14264 _ACEOF
14265 if ac_fn_c_try_link "$LINENO"; then :
14266 lt_cv_ld_exported_symbols_list=yes
14267 else
14268 lt_cv_ld_exported_symbols_list=no
14269 fi
14270 rm -f core conftest.err conftest.$ac_objext \
14271 conftest$ac_exeext conftest.$ac_ext
14272 LDFLAGS="$save_LDFLAGS"
14273
14274 fi
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14276 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14278 $as_echo_n "checking for -force_load linker flag... " >&6; }
14279 if test "${lt_cv_ld_force_load+set}" = set; then :
14280 $as_echo_n "(cached) " >&6
14281 else
14282 lt_cv_ld_force_load=no
14283 cat > conftest.c << _LT_EOF
14284 int forced_loaded() { return 2;}
14285 _LT_EOF
14286 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14287 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14288 echo "$AR cru libconftest.a conftest.o" >&5
14289 $AR cru libconftest.a conftest.o 2>&5
14290 cat > conftest.c << _LT_EOF
14291 int main() { return 0;}
14292 _LT_EOF
14293 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14294 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14295 _lt_result=$?
14296 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14297 lt_cv_ld_force_load=yes
14298 else
14299 cat conftest.err >&5
14300 fi
14301 rm -f conftest.err libconftest.a conftest conftest.c
14302 rm -rf conftest.dSYM
14303
14304 fi
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14306 $as_echo "$lt_cv_ld_force_load" >&6; }
14307 case $host_os in
14308 rhapsody* | darwin1.[012])
14309 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14310 darwin1.*)
14311 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14312 darwin*) # darwin 5.x on
14313 # if running on 10.5 or later, the deployment target defaults
14314 # to the OS version, if on x86, and 10.4, the deployment
14315 # target defaults to 10.4. Don't you love it?
14316 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14317 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14318 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14319 10.[012]*)
14320 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14321 10.*)
14322 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14323 esac
14324 ;;
14325 esac
14326 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14327 _lt_dar_single_mod='$single_module'
14328 fi
14329 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14330 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14331 else
14332 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14333 fi
14334 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14335 _lt_dsymutil='~$DSYMUTIL $lib || :'
14336 else
14337 _lt_dsymutil=
14338 fi
14339 ;;
14340 esac
14341
14342 for ac_header in dlfcn.h
14343 do :
14344 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14345 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14346 cat >>confdefs.h <<_ACEOF
14347 #define HAVE_DLFCN_H 1
14348 _ACEOF
14349
14350 fi
14351 done
14352
14353
14354
14355
14356
14357 # Set options
14358
14359
14360
14361 enable_dlopen=no
14362
14363
14364 enable_win32_dll=no
14365
14366
14367 # Check whether --enable-shared was given.
14368 if test "${enable_shared+set}" = set; then :
14369 enableval=$enable_shared; p=${PACKAGE-default}
14370 case $enableval in
14371 yes) enable_shared=yes ;;
14372 no) enable_shared=no ;;
14373 *)
14374 enable_shared=no
14375 # Look at the argument we got. We use all the common list separators.
14376 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14377 for pkg in $enableval; do
14378 IFS="$lt_save_ifs"
14379 if test "X$pkg" = "X$p"; then
14380 enable_shared=yes
14381 fi
14382 done
14383 IFS="$lt_save_ifs"
14384 ;;
14385 esac
14386 else
14387 enable_shared=yes
14388 fi
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398 # Check whether --enable-static was given.
14399 if test "${enable_static+set}" = set; then :
14400 enableval=$enable_static; p=${PACKAGE-default}
14401 case $enableval in
14402 yes) enable_static=yes ;;
14403 no) enable_static=no ;;
14404 *)
14405 enable_static=no
14406 # Look at the argument we got. We use all the common list separators.
14407 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14408 for pkg in $enableval; do
14409 IFS="$lt_save_ifs"
14410 if test "X$pkg" = "X$p"; then
14411 enable_static=yes
14412 fi
14413 done
14414 IFS="$lt_save_ifs"
14415 ;;
14416 esac
14417 else
14418 enable_static=yes
14419 fi
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430 # Check whether --with-pic was given.
14431 if test "${with_pic+set}" = set; then :
14432 withval=$with_pic; pic_mode="$withval"
14433 else
14434 pic_mode=default
14435 fi
14436
14437
14438 test -z "$pic_mode" && pic_mode=default
14439
14440
14441
14442
14443
14444
14445
14446 # Check whether --enable-fast-install was given.
14447 if test "${enable_fast_install+set}" = set; then :
14448 enableval=$enable_fast_install; p=${PACKAGE-default}
14449 case $enableval in
14450 yes) enable_fast_install=yes ;;
14451 no) enable_fast_install=no ;;
14452 *)
14453 enable_fast_install=no
14454 # Look at the argument we got. We use all the common list separators.
14455 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14456 for pkg in $enableval; do
14457 IFS="$lt_save_ifs"
14458 if test "X$pkg" = "X$p"; then
14459 enable_fast_install=yes
14460 fi
14461 done
14462 IFS="$lt_save_ifs"
14463 ;;
14464 esac
14465 else
14466 enable_fast_install=yes
14467 fi
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479 # This can be used to rebuild libtool when needed
14480 LIBTOOL_DEPS="$ltmain"
14481
14482 # Always use our own libtool.
14483 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510 test -z "$LN_S" && LN_S="ln -s"
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525 if test -n "${ZSH_VERSION+set}" ; then
14526 setopt NO_GLOB_SUBST
14527 fi
14528
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14530 $as_echo_n "checking for objdir... " >&6; }
14531 if test "${lt_cv_objdir+set}" = set; then :
14532 $as_echo_n "(cached) " >&6
14533 else
14534 rm -f .libs 2>/dev/null
14535 mkdir .libs 2>/dev/null
14536 if test -d .libs; then
14537 lt_cv_objdir=.libs
14538 else
14539 # MS-DOS does not allow filenames that begin with a dot.
14540 lt_cv_objdir=_libs
14541 fi
14542 rmdir .libs 2>/dev/null
14543 fi
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14545 $as_echo "$lt_cv_objdir" >&6; }
14546 objdir=$lt_cv_objdir
14547
14548
14549
14550
14551
14552 cat >>confdefs.h <<_ACEOF
14553 #define LT_OBJDIR "$lt_cv_objdir/"
14554 _ACEOF
14555
14556
14557
14558
14559 case $host_os in
14560 aix3*)
14561 # AIX sometimes has problems with the GCC collect2 program. For some
14562 # reason, if we set the COLLECT_NAMES environment variable, the problems
14563 # vanish in a puff of smoke.
14564 if test "X${COLLECT_NAMES+set}" != Xset; then
14565 COLLECT_NAMES=
14566 export COLLECT_NAMES
14567 fi
14568 ;;
14569 esac
14570
14571 # Global variables:
14572 ofile=libtool
14573 can_build_shared=yes
14574
14575 # All known linkers require a `.a' archive for static linking (except MSVC,
14576 # which needs '.lib').
14577 libext=a
14578
14579 with_gnu_ld="$lt_cv_prog_gnu_ld"
14580
14581 old_CC="$CC"
14582 old_CFLAGS="$CFLAGS"
14583
14584 # Set sane defaults for various variables
14585 test -z "$CC" && CC=cc
14586 test -z "$LTCC" && LTCC=$CC
14587 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14588 test -z "$LD" && LD=ld
14589 test -z "$ac_objext" && ac_objext=o
14590
14591 for cc_temp in $compiler""; do
14592 case $cc_temp in
14593 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14594 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14595 \-*) ;;
14596 *) break;;
14597 esac
14598 done
14599 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14600
14601
14602 # Only perform the check for file, if the check method requires it
14603 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14604 case $deplibs_check_method in
14605 file_magic*)
14606 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14608 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14609 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14610 $as_echo_n "(cached) " >&6
14611 else
14612 case $MAGIC_CMD in
14613 [\\/*] | ?:[\\/]*)
14614 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14615 ;;
14616 *)
14617 lt_save_MAGIC_CMD="$MAGIC_CMD"
14618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14619 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14620 for ac_dir in $ac_dummy; do
14621 IFS="$lt_save_ifs"
14622 test -z "$ac_dir" && ac_dir=.
14623 if test -f $ac_dir/${ac_tool_prefix}file; then
14624 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14625 if test -n "$file_magic_test_file"; then
14626 case $deplibs_check_method in
14627 "file_magic "*)
14628 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14629 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14630 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14631 $EGREP "$file_magic_regex" > /dev/null; then
14632 :
14633 else
14634 cat <<_LT_EOF 1>&2
14635
14636 *** Warning: the command libtool uses to detect shared libraries,
14637 *** $file_magic_cmd, produces output that libtool cannot recognize.
14638 *** The result is that libtool may fail to recognize shared libraries
14639 *** as such. This will affect the creation of libtool libraries that
14640 *** depend on shared libraries, but programs linked with such libtool
14641 *** libraries will work regardless of this problem. Nevertheless, you
14642 *** may want to report the problem to your system manager and/or to
14643 *** bug-libtool@gnu.org
14644
14645 _LT_EOF
14646 fi ;;
14647 esac
14648 fi
14649 break
14650 fi
14651 done
14652 IFS="$lt_save_ifs"
14653 MAGIC_CMD="$lt_save_MAGIC_CMD"
14654 ;;
14655 esac
14656 fi
14657
14658 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14659 if test -n "$MAGIC_CMD"; then
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14661 $as_echo "$MAGIC_CMD" >&6; }
14662 else
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14664 $as_echo "no" >&6; }
14665 fi
14666
14667
14668
14669
14670
14671 if test -z "$lt_cv_path_MAGIC_CMD"; then
14672 if test -n "$ac_tool_prefix"; then
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14674 $as_echo_n "checking for file... " >&6; }
14675 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14676 $as_echo_n "(cached) " >&6
14677 else
14678 case $MAGIC_CMD in
14679 [\\/*] | ?:[\\/]*)
14680 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14681 ;;
14682 *)
14683 lt_save_MAGIC_CMD="$MAGIC_CMD"
14684 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14685 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14686 for ac_dir in $ac_dummy; do
14687 IFS="$lt_save_ifs"
14688 test -z "$ac_dir" && ac_dir=.
14689 if test -f $ac_dir/file; then
14690 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14691 if test -n "$file_magic_test_file"; then
14692 case $deplibs_check_method in
14693 "file_magic "*)
14694 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14695 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14696 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14697 $EGREP "$file_magic_regex" > /dev/null; then
14698 :
14699 else
14700 cat <<_LT_EOF 1>&2
14701
14702 *** Warning: the command libtool uses to detect shared libraries,
14703 *** $file_magic_cmd, produces output that libtool cannot recognize.
14704 *** The result is that libtool may fail to recognize shared libraries
14705 *** as such. This will affect the creation of libtool libraries that
14706 *** depend on shared libraries, but programs linked with such libtool
14707 *** libraries will work regardless of this problem. Nevertheless, you
14708 *** may want to report the problem to your system manager and/or to
14709 *** bug-libtool@gnu.org
14710
14711 _LT_EOF
14712 fi ;;
14713 esac
14714 fi
14715 break
14716 fi
14717 done
14718 IFS="$lt_save_ifs"
14719 MAGIC_CMD="$lt_save_MAGIC_CMD"
14720 ;;
14721 esac
14722 fi
14723
14724 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14725 if test -n "$MAGIC_CMD"; then
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14727 $as_echo "$MAGIC_CMD" >&6; }
14728 else
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14730 $as_echo "no" >&6; }
14731 fi
14732
14733
14734 else
14735 MAGIC_CMD=:
14736 fi
14737 fi
14738
14739 fi
14740 ;;
14741 esac
14742
14743 # Use C for the default configuration in the libtool script
14744
14745 lt_save_CC="$CC"
14746 ac_ext=c
14747 ac_cpp='$CPP $CPPFLAGS'
14748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14751
14752
14753 # Source file extension for C test sources.
14754 ac_ext=c
14755
14756 # Object file extension for compiled C test sources.
14757 objext=o
14758 objext=$objext
14759
14760 # Code to be used in simple compile tests
14761 lt_simple_compile_test_code="int some_variable = 0;"
14762
14763 # Code to be used in simple link tests
14764 lt_simple_link_test_code='int main(){return(0);}'
14765
14766
14767
14768
14769
14770
14771
14772 # If no C compiler was specified, use CC.
14773 LTCC=${LTCC-"$CC"}
14774
14775 # If no C compiler flags were specified, use CFLAGS.
14776 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14777
14778 # Allow CC to be a program name with arguments.
14779 compiler=$CC
14780
14781 # Save the default compiler, since it gets overwritten when the other
14782 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14783 compiler_DEFAULT=$CC
14784
14785 # save warnings/boilerplate of simple test code
14786 ac_outfile=conftest.$ac_objext
14787 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14788 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14789 _lt_compiler_boilerplate=`cat conftest.err`
14790 $RM conftest*
14791
14792 ac_outfile=conftest.$ac_objext
14793 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14794 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14795 _lt_linker_boilerplate=`cat conftest.err`
14796 $RM -r conftest*
14797
14798
14799 ## CAVEAT EMPTOR:
14800 ## There is no encapsulation within the following macros, do not change
14801 ## the running order or otherwise move them around unless you know exactly
14802 ## what you are doing...
14803 if test -n "$compiler"; then
14804
14805 lt_prog_compiler_no_builtin_flag=
14806
14807 if test "$GCC" = yes; then
14808 case $cc_basename in
14809 nvcc*)
14810 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14811 *)
14812 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14813 esac
14814
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14816 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14817 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14818 $as_echo_n "(cached) " >&6
14819 else
14820 lt_cv_prog_compiler_rtti_exceptions=no
14821 ac_outfile=conftest.$ac_objext
14822 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14823 lt_compiler_flag="-fno-rtti -fno-exceptions"
14824 # Insert the option either (1) after the last *FLAGS variable, or
14825 # (2) before a word containing "conftest.", or (3) at the end.
14826 # Note that $ac_compile itself does not contain backslashes and begins
14827 # with a dollar sign (not a hyphen), so the echo should work correctly.
14828 # The option is referenced via a variable to avoid confusing sed.
14829 lt_compile=`echo "$ac_compile" | $SED \
14830 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14831 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14832 -e 's:$: $lt_compiler_flag:'`
14833 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14834 (eval "$lt_compile" 2>conftest.err)
14835 ac_status=$?
14836 cat conftest.err >&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 if (exit $ac_status) && test -s "$ac_outfile"; then
14839 # The compiler can only warn and ignore the option if not recognized
14840 # So say no if there are warnings other than the usual output.
14841 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14842 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14843 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14844 lt_cv_prog_compiler_rtti_exceptions=yes
14845 fi
14846 fi
14847 $RM conftest*
14848
14849 fi
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14851 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14852
14853 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14854 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14855 else
14856 :
14857 fi
14858
14859 fi
14860
14861
14862
14863
14864
14865
14866 lt_prog_compiler_wl=
14867 lt_prog_compiler_pic=
14868 lt_prog_compiler_static=
14869
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14871 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14872
14873 if test "$GCC" = yes; then
14874 lt_prog_compiler_wl='-Wl,'
14875 lt_prog_compiler_static='-static'
14876
14877 case $host_os in
14878 aix*)
14879 # All AIX code is PIC.
14880 if test "$host_cpu" = ia64; then
14881 # AIX 5 now supports IA64 processor
14882 lt_prog_compiler_static='-Bstatic'
14883 fi
14884 ;;
14885
14886 amigaos*)
14887 case $host_cpu in
14888 powerpc)
14889 # see comment about AmigaOS4 .so support
14890 lt_prog_compiler_pic='-fPIC'
14891 ;;
14892 m68k)
14893 # FIXME: we need at least 68020 code to build shared libraries, but
14894 # adding the `-m68020' flag to GCC prevents building anything better,
14895 # like `-m68040'.
14896 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14897 ;;
14898 esac
14899 ;;
14900
14901 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14902 # PIC is the default for these OSes.
14903 ;;
14904
14905 mingw* | cygwin* | pw32* | os2* | cegcc*)
14906 # This hack is so that the source file can tell whether it is being
14907 # built for inclusion in a dll (and should export symbols for example).
14908 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14909 # (--disable-auto-import) libraries
14910 lt_prog_compiler_pic='-DDLL_EXPORT'
14911 ;;
14912
14913 darwin* | rhapsody*)
14914 # PIC is the default on this platform
14915 # Common symbols not allowed in MH_DYLIB files
14916 lt_prog_compiler_pic='-fno-common'
14917 ;;
14918
14919 haiku*)
14920 # PIC is the default for Haiku.
14921 # The "-static" flag exists, but is broken.
14922 lt_prog_compiler_static=
14923 ;;
14924
14925 hpux*)
14926 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14927 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14928 # sets the default TLS model and affects inlining.
14929 case $host_cpu in
14930 hppa*64*)
14931 # +Z the default
14932 ;;
14933 *)
14934 lt_prog_compiler_pic='-fPIC'
14935 ;;
14936 esac
14937 ;;
14938
14939 interix[3-9]*)
14940 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14941 # Instead, we relocate shared libraries at runtime.
14942 ;;
14943
14944 msdosdjgpp*)
14945 # Just because we use GCC doesn't mean we suddenly get shared libraries
14946 # on systems that don't support them.
14947 lt_prog_compiler_can_build_shared=no
14948 enable_shared=no
14949 ;;
14950
14951 *nto* | *qnx*)
14952 # QNX uses GNU C++, but need to define -shared option too, otherwise
14953 # it will coredump.
14954 lt_prog_compiler_pic='-fPIC -shared'
14955 ;;
14956
14957 sysv4*MP*)
14958 if test -d /usr/nec; then
14959 lt_prog_compiler_pic=-Kconform_pic
14960 fi
14961 ;;
14962
14963 *)
14964 lt_prog_compiler_pic='-fPIC'
14965 ;;
14966 esac
14967
14968 case $cc_basename in
14969 nvcc*) # Cuda Compiler Driver 2.2
14970 lt_prog_compiler_wl='-Xlinker '
14971 lt_prog_compiler_pic='-Xcompiler -fPIC'
14972 ;;
14973 esac
14974 else
14975 # PORTME Check for flag to pass linker flags through the system compiler.
14976 case $host_os in
14977 aix*)
14978 lt_prog_compiler_wl='-Wl,'
14979 if test "$host_cpu" = ia64; then
14980 # AIX 5 now supports IA64 processor
14981 lt_prog_compiler_static='-Bstatic'
14982 else
14983 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14984 fi
14985 ;;
14986
14987 mingw* | cygwin* | pw32* | os2* | cegcc*)
14988 # This hack is so that the source file can tell whether it is being
14989 # built for inclusion in a dll (and should export symbols for example).
14990 lt_prog_compiler_pic='-DDLL_EXPORT'
14991 ;;
14992
14993 hpux9* | hpux10* | hpux11*)
14994 lt_prog_compiler_wl='-Wl,'
14995 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14996 # not for PA HP-UX.
14997 case $host_cpu in
14998 hppa*64*|ia64*)
14999 # +Z the default
15000 ;;
15001 *)
15002 lt_prog_compiler_pic='+Z'
15003 ;;
15004 esac
15005 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15006 lt_prog_compiler_static='${wl}-a ${wl}archive'
15007 ;;
15008
15009 irix5* | irix6* | nonstopux*)
15010 lt_prog_compiler_wl='-Wl,'
15011 # PIC (with -KPIC) is the default.
15012 lt_prog_compiler_static='-non_shared'
15013 ;;
15014
15015 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15016 case $cc_basename in
15017 # old Intel for x86_64 which still supported -KPIC.
15018 ecc*)
15019 lt_prog_compiler_wl='-Wl,'
15020 lt_prog_compiler_pic='-KPIC'
15021 lt_prog_compiler_static='-static'
15022 ;;
15023 # icc used to be incompatible with GCC.
15024 # ICC 10 doesn't accept -KPIC any more.
15025 icc* | ifort*)
15026 lt_prog_compiler_wl='-Wl,'
15027 lt_prog_compiler_pic='-fPIC'
15028 lt_prog_compiler_static='-static'
15029 ;;
15030 # Lahey Fortran 8.1.
15031 lf95*)
15032 lt_prog_compiler_wl='-Wl,'
15033 lt_prog_compiler_pic='--shared'
15034 lt_prog_compiler_static='--static'
15035 ;;
15036 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15037 # Portland Group compilers (*not* the Pentium gcc compiler,
15038 # which looks to be a dead project)
15039 lt_prog_compiler_wl='-Wl,'
15040 lt_prog_compiler_pic='-fpic'
15041 lt_prog_compiler_static='-Bstatic'
15042 ;;
15043 ccc*)
15044 lt_prog_compiler_wl='-Wl,'
15045 # All Alpha code is PIC.
15046 lt_prog_compiler_static='-non_shared'
15047 ;;
15048 xl* | bgxl* | bgf* | mpixl*)
15049 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15050 lt_prog_compiler_wl='-Wl,'
15051 lt_prog_compiler_pic='-qpic'
15052 lt_prog_compiler_static='-qstaticlink'
15053 ;;
15054 *)
15055 case `$CC -V 2>&1 | sed 5q` in
15056 *Sun\ F* | *Sun*Fortran*)
15057 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15058 lt_prog_compiler_pic='-KPIC'
15059 lt_prog_compiler_static='-Bstatic'
15060 lt_prog_compiler_wl=''
15061 ;;
15062 *Sun\ C*)
15063 # Sun C 5.9
15064 lt_prog_compiler_pic='-KPIC'
15065 lt_prog_compiler_static='-Bstatic'
15066 lt_prog_compiler_wl='-Wl,'
15067 ;;
15068 esac
15069 ;;
15070 esac
15071 ;;
15072
15073 newsos6)
15074 lt_prog_compiler_pic='-KPIC'
15075 lt_prog_compiler_static='-Bstatic'
15076 ;;
15077
15078 *nto* | *qnx*)
15079 # QNX uses GNU C++, but need to define -shared option too, otherwise
15080 # it will coredump.
15081 lt_prog_compiler_pic='-fPIC -shared'
15082 ;;
15083
15084 osf3* | osf4* | osf5*)
15085 lt_prog_compiler_wl='-Wl,'
15086 # All OSF/1 code is PIC.
15087 lt_prog_compiler_static='-non_shared'
15088 ;;
15089
15090 rdos*)
15091 lt_prog_compiler_static='-non_shared'
15092 ;;
15093
15094 solaris*)
15095 lt_prog_compiler_pic='-KPIC'
15096 lt_prog_compiler_static='-Bstatic'
15097 case $cc_basename in
15098 f77* | f90* | f95*)
15099 lt_prog_compiler_wl='-Qoption ld ';;
15100 *)
15101 lt_prog_compiler_wl='-Wl,';;
15102 esac
15103 ;;
15104
15105 sunos4*)
15106 lt_prog_compiler_wl='-Qoption ld '
15107 lt_prog_compiler_pic='-PIC'
15108 lt_prog_compiler_static='-Bstatic'
15109 ;;
15110
15111 sysv4 | sysv4.2uw2* | sysv4.3*)
15112 lt_prog_compiler_wl='-Wl,'
15113 lt_prog_compiler_pic='-KPIC'
15114 lt_prog_compiler_static='-Bstatic'
15115 ;;
15116
15117 sysv4*MP*)
15118 if test -d /usr/nec ;then
15119 lt_prog_compiler_pic='-Kconform_pic'
15120 lt_prog_compiler_static='-Bstatic'
15121 fi
15122 ;;
15123
15124 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15125 lt_prog_compiler_wl='-Wl,'
15126 lt_prog_compiler_pic='-KPIC'
15127 lt_prog_compiler_static='-Bstatic'
15128 ;;
15129
15130 unicos*)
15131 lt_prog_compiler_wl='-Wl,'
15132 lt_prog_compiler_can_build_shared=no
15133 ;;
15134
15135 uts4*)
15136 lt_prog_compiler_pic='-pic'
15137 lt_prog_compiler_static='-Bstatic'
15138 ;;
15139
15140 *)
15141 lt_prog_compiler_can_build_shared=no
15142 ;;
15143 esac
15144 fi
15145
15146 case $host_os in
15147 # For platforms which do not support PIC, -DPIC is meaningless:
15148 *djgpp*)
15149 lt_prog_compiler_pic=
15150 ;;
15151 *)
15152 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15153 ;;
15154 esac
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15156 $as_echo "$lt_prog_compiler_pic" >&6; }
15157
15158
15159
15160
15161
15162
15163 #
15164 # Check to make sure the PIC flag actually works.
15165 #
15166 if test -n "$lt_prog_compiler_pic"; then
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15168 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15169 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15170 $as_echo_n "(cached) " >&6
15171 else
15172 lt_cv_prog_compiler_pic_works=no
15173 ac_outfile=conftest.$ac_objext
15174 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15175 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15176 # Insert the option either (1) after the last *FLAGS variable, or
15177 # (2) before a word containing "conftest.", or (3) at the end.
15178 # Note that $ac_compile itself does not contain backslashes and begins
15179 # with a dollar sign (not a hyphen), so the echo should work correctly.
15180 # The option is referenced via a variable to avoid confusing sed.
15181 lt_compile=`echo "$ac_compile" | $SED \
15182 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15183 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15184 -e 's:$: $lt_compiler_flag:'`
15185 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15186 (eval "$lt_compile" 2>conftest.err)
15187 ac_status=$?
15188 cat conftest.err >&5
15189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190 if (exit $ac_status) && test -s "$ac_outfile"; then
15191 # The compiler can only warn and ignore the option if not recognized
15192 # So say no if there are warnings other than the usual output.
15193 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15194 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15195 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15196 lt_cv_prog_compiler_pic_works=yes
15197 fi
15198 fi
15199 $RM conftest*
15200
15201 fi
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15203 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15204
15205 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15206 case $lt_prog_compiler_pic in
15207 "" | " "*) ;;
15208 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15209 esac
15210 else
15211 lt_prog_compiler_pic=
15212 lt_prog_compiler_can_build_shared=no
15213 fi
15214
15215 fi
15216
15217
15218
15219
15220
15221
15222 #
15223 # Check to make sure the static flag actually works.
15224 #
15225 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15227 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15228 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15229 $as_echo_n "(cached) " >&6
15230 else
15231 lt_cv_prog_compiler_static_works=no
15232 save_LDFLAGS="$LDFLAGS"
15233 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15234 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15235 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15236 # The linker can only warn and ignore the option if not recognized
15237 # So say no if there are warnings
15238 if test -s conftest.err; then
15239 # Append any errors to the config.log.
15240 cat conftest.err 1>&5
15241 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15242 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15243 if diff conftest.exp conftest.er2 >/dev/null; then
15244 lt_cv_prog_compiler_static_works=yes
15245 fi
15246 else
15247 lt_cv_prog_compiler_static_works=yes
15248 fi
15249 fi
15250 $RM -r conftest*
15251 LDFLAGS="$save_LDFLAGS"
15252
15253 fi
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15255 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15256
15257 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15258 :
15259 else
15260 lt_prog_compiler_static=
15261 fi
15262
15263
15264
15265
15266
15267
15268
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15270 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15271 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15272 $as_echo_n "(cached) " >&6
15273 else
15274 lt_cv_prog_compiler_c_o=no
15275 $RM -r conftest 2>/dev/null
15276 mkdir conftest
15277 cd conftest
15278 mkdir out
15279 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15280
15281 lt_compiler_flag="-o out/conftest2.$ac_objext"
15282 # Insert the option either (1) after the last *FLAGS variable, or
15283 # (2) before a word containing "conftest.", or (3) at the end.
15284 # Note that $ac_compile itself does not contain backslashes and begins
15285 # with a dollar sign (not a hyphen), so the echo should work correctly.
15286 lt_compile=`echo "$ac_compile" | $SED \
15287 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15288 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15289 -e 's:$: $lt_compiler_flag:'`
15290 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15291 (eval "$lt_compile" 2>out/conftest.err)
15292 ac_status=$?
15293 cat out/conftest.err >&5
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15296 then
15297 # The compiler can only warn and ignore the option if not recognized
15298 # So say no if there are warnings
15299 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15300 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15301 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15302 lt_cv_prog_compiler_c_o=yes
15303 fi
15304 fi
15305 chmod u+w . 2>&5
15306 $RM conftest*
15307 # SGI C++ compiler will create directory out/ii_files/ for
15308 # template instantiation
15309 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15310 $RM out/* && rmdir out
15311 cd ..
15312 $RM -r conftest
15313 $RM conftest*
15314
15315 fi
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15317 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15318
15319
15320
15321
15322
15323
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15325 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15326 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15327 $as_echo_n "(cached) " >&6
15328 else
15329 lt_cv_prog_compiler_c_o=no
15330 $RM -r conftest 2>/dev/null
15331 mkdir conftest
15332 cd conftest
15333 mkdir out
15334 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15335
15336 lt_compiler_flag="-o out/conftest2.$ac_objext"
15337 # Insert the option either (1) after the last *FLAGS variable, or
15338 # (2) before a word containing "conftest.", or (3) at the end.
15339 # Note that $ac_compile itself does not contain backslashes and begins
15340 # with a dollar sign (not a hyphen), so the echo should work correctly.
15341 lt_compile=`echo "$ac_compile" | $SED \
15342 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15343 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15344 -e 's:$: $lt_compiler_flag:'`
15345 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15346 (eval "$lt_compile" 2>out/conftest.err)
15347 ac_status=$?
15348 cat out/conftest.err >&5
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15351 then
15352 # The compiler can only warn and ignore the option if not recognized
15353 # So say no if there are warnings
15354 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15355 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15356 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15357 lt_cv_prog_compiler_c_o=yes
15358 fi
15359 fi
15360 chmod u+w . 2>&5
15361 $RM conftest*
15362 # SGI C++ compiler will create directory out/ii_files/ for
15363 # template instantiation
15364 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15365 $RM out/* && rmdir out
15366 cd ..
15367 $RM -r conftest
15368 $RM conftest*
15369
15370 fi
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15372 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15373
15374
15375
15376
15377 hard_links="nottested"
15378 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15379 # do not overwrite the value of need_locks provided by the user
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15381 $as_echo_n "checking if we can lock with hard links... " >&6; }
15382 hard_links=yes
15383 $RM conftest*
15384 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15385 touch conftest.a
15386 ln conftest.a conftest.b 2>&5 || hard_links=no
15387 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15389 $as_echo "$hard_links" >&6; }
15390 if test "$hard_links" = no; then
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15392 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15393 need_locks=warn
15394 fi
15395 else
15396 need_locks=no
15397 fi
15398
15399
15400
15401
15402
15403
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15405 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15406
15407 runpath_var=
15408 allow_undefined_flag=
15409 always_export_symbols=no
15410 archive_cmds=
15411 archive_expsym_cmds=
15412 compiler_needs_object=no
15413 enable_shared_with_static_runtimes=no
15414 export_dynamic_flag_spec=
15415 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15416 hardcode_automatic=no
15417 hardcode_direct=no
15418 hardcode_direct_absolute=no
15419 hardcode_libdir_flag_spec=
15420 hardcode_libdir_flag_spec_ld=
15421 hardcode_libdir_separator=
15422 hardcode_minus_L=no
15423 hardcode_shlibpath_var=unsupported
15424 inherit_rpath=no
15425 link_all_deplibs=unknown
15426 module_cmds=
15427 module_expsym_cmds=
15428 old_archive_from_new_cmds=
15429 old_archive_from_expsyms_cmds=
15430 thread_safe_flag_spec=
15431 whole_archive_flag_spec=
15432 # include_expsyms should be a list of space-separated symbols to be *always*
15433 # included in the symbol list
15434 include_expsyms=
15435 # exclude_expsyms can be an extended regexp of symbols to exclude
15436 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15437 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15438 # as well as any symbol that contains `d'.
15439 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15440 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15441 # platforms (ab)use it in PIC code, but their linkers get confused if
15442 # the symbol is explicitly referenced. Since portable code cannot
15443 # rely on this symbol name, it's probably fine to never include it in
15444 # preloaded symbol tables.
15445 # Exclude shared library initialization/finalization symbols.
15446 extract_expsyms_cmds=
15447
15448 case $host_os in
15449 cygwin* | mingw* | pw32* | cegcc*)
15450 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15451 # When not using gcc, we currently assume that we are using
15452 # Microsoft Visual C++.
15453 if test "$GCC" != yes; then
15454 with_gnu_ld=no
15455 fi
15456 ;;
15457 interix*)
15458 # we just hope/assume this is gcc and not c89 (= MSVC++)
15459 with_gnu_ld=yes
15460 ;;
15461 openbsd*)
15462 with_gnu_ld=no
15463 ;;
15464 esac
15465
15466 ld_shlibs=yes
15467
15468 # On some targets, GNU ld is compatible enough with the native linker
15469 # that we're better off using the native interface for both.
15470 lt_use_gnu_ld_interface=no
15471 if test "$with_gnu_ld" = yes; then
15472 case $host_os in
15473 aix*)
15474 # The AIX port of GNU ld has always aspired to compatibility
15475 # with the native linker. However, as the warning in the GNU ld
15476 # block says, versions before 2.19.5* couldn't really create working
15477 # shared libraries, regardless of the interface used.
15478 case `$LD -v 2>&1` in
15479 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15480 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15481 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15482 *)
15483 lt_use_gnu_ld_interface=yes
15484 ;;
15485 esac
15486 ;;
15487 *)
15488 lt_use_gnu_ld_interface=yes
15489 ;;
15490 esac
15491 fi
15492
15493 if test "$lt_use_gnu_ld_interface" = yes; then
15494 # If archive_cmds runs LD, not CC, wlarc should be empty
15495 wlarc='${wl}'
15496
15497 # Set some defaults for GNU ld with shared library support. These
15498 # are reset later if shared libraries are not supported. Putting them
15499 # here allows them to be overridden if necessary.
15500 runpath_var=LD_RUN_PATH
15501 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15502 export_dynamic_flag_spec='${wl}--export-dynamic'
15503 # ancient GNU ld didn't support --whole-archive et. al.
15504 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15505 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15506 else
15507 whole_archive_flag_spec=
15508 fi
15509 supports_anon_versioning=no
15510 case `$LD -v 2>&1` in
15511 *GNU\ gold*) supports_anon_versioning=yes ;;
15512 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15513 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15514 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15515 *\ 2.11.*) ;; # other 2.11 versions
15516 *) supports_anon_versioning=yes ;;
15517 esac
15518
15519 # See if GNU ld supports shared libraries.
15520 case $host_os in
15521 aix[3-9]*)
15522 # On AIX/PPC, the GNU linker is very broken
15523 if test "$host_cpu" != ia64; then
15524 ld_shlibs=no
15525 cat <<_LT_EOF 1>&2
15526
15527 *** Warning: the GNU linker, at least up to release 2.19, is reported
15528 *** to be unable to reliably create shared libraries on AIX.
15529 *** Therefore, libtool is disabling shared libraries support. If you
15530 *** really care for shared libraries, you may want to install binutils
15531 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15532 *** You will then need to restart the configuration process.
15533
15534 _LT_EOF
15535 fi
15536 ;;
15537
15538 amigaos*)
15539 case $host_cpu in
15540 powerpc)
15541 # see comment about AmigaOS4 .so support
15542 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15543 archive_expsym_cmds=''
15544 ;;
15545 m68k)
15546 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)'
15547 hardcode_libdir_flag_spec='-L$libdir'
15548 hardcode_minus_L=yes
15549 ;;
15550 esac
15551 ;;
15552
15553 beos*)
15554 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15555 allow_undefined_flag=unsupported
15556 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15557 # support --undefined. This deserves some investigation. FIXME
15558 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15559 else
15560 ld_shlibs=no
15561 fi
15562 ;;
15563
15564 cygwin* | mingw* | pw32* | cegcc*)
15565 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15566 # as there is no search path for DLLs.
15567 hardcode_libdir_flag_spec='-L$libdir'
15568 export_dynamic_flag_spec='${wl}--export-all-symbols'
15569 allow_undefined_flag=unsupported
15570 always_export_symbols=no
15571 enable_shared_with_static_runtimes=yes
15572 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15573
15574 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15575 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15576 # If the export-symbols file already is a .def file (1st line
15577 # is EXPORTS), use it as is; otherwise, prepend...
15578 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15579 cp $export_symbols $output_objdir/$soname.def;
15580 else
15581 echo EXPORTS > $output_objdir/$soname.def;
15582 cat $export_symbols >> $output_objdir/$soname.def;
15583 fi~
15584 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15585 else
15586 ld_shlibs=no
15587 fi
15588 ;;
15589
15590 haiku*)
15591 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15592 link_all_deplibs=yes
15593 ;;
15594
15595 interix[3-9]*)
15596 hardcode_direct=no
15597 hardcode_shlibpath_var=no
15598 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15599 export_dynamic_flag_spec='${wl}-E'
15600 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15601 # Instead, shared libraries are loaded at an image base (0x10000000 by
15602 # default) and relocated if they conflict, which is a slow very memory
15603 # consuming and fragmenting process. To avoid this, we pick a random,
15604 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15605 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15606 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15607 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'
15608 ;;
15609
15610 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15611 tmp_diet=no
15612 if test "$host_os" = linux-dietlibc; then
15613 case $cc_basename in
15614 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15615 esac
15616 fi
15617 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15618 && test "$tmp_diet" = no
15619 then
15620 tmp_addflag=
15621 tmp_sharedflag='-shared'
15622 case $cc_basename,$host_cpu in
15623 pgcc*) # Portland Group C compiler
15624 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'
15625 tmp_addflag=' $pic_flag'
15626 ;;
15627 pgf77* | pgf90* | pgf95* | pgfortran*)
15628 # Portland Group f77 and f90 compilers
15629 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'
15630 tmp_addflag=' $pic_flag -Mnomain' ;;
15631 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15632 tmp_addflag=' -i_dynamic' ;;
15633 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15634 tmp_addflag=' -i_dynamic -nofor_main' ;;
15635 ifc* | ifort*) # Intel Fortran compiler
15636 tmp_addflag=' -nofor_main' ;;
15637 lf95*) # Lahey Fortran 8.1
15638 whole_archive_flag_spec=
15639 tmp_sharedflag='--shared' ;;
15640 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15641 tmp_sharedflag='-qmkshrobj'
15642 tmp_addflag= ;;
15643 nvcc*) # Cuda Compiler Driver 2.2
15644 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'
15645 compiler_needs_object=yes
15646 ;;
15647 esac
15648 case `$CC -V 2>&1 | sed 5q` in
15649 *Sun\ C*) # Sun C 5.9
15650 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'
15651 compiler_needs_object=yes
15652 tmp_sharedflag='-G' ;;
15653 *Sun\ F*) # Sun Fortran 8.3
15654 tmp_sharedflag='-G' ;;
15655 esac
15656 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15657
15658 if test "x$supports_anon_versioning" = xyes; then
15659 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15660 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15661 echo "local: *; };" >> $output_objdir/$libname.ver~
15662 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15663 fi
15664
15665 case $cc_basename in
15666 xlf* | bgf* | bgxlf* | mpixlf*)
15667 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15668 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15669 hardcode_libdir_flag_spec=
15670 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15671 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15672 if test "x$supports_anon_versioning" = xyes; then
15673 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15674 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15675 echo "local: *; };" >> $output_objdir/$libname.ver~
15676 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15677 fi
15678 ;;
15679 esac
15680 else
15681 ld_shlibs=no
15682 fi
15683 ;;
15684
15685 netbsd*)
15686 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15687 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15688 wlarc=
15689 else
15690 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15691 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15692 fi
15693 ;;
15694
15695 solaris*)
15696 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15697 ld_shlibs=no
15698 cat <<_LT_EOF 1>&2
15699
15700 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15701 *** create shared libraries on Solaris systems. Therefore, libtool
15702 *** is disabling shared libraries support. We urge you to upgrade GNU
15703 *** binutils to release 2.9.1 or newer. Another option is to modify
15704 *** your PATH or compiler configuration so that the native linker is
15705 *** used, and then restart.
15706
15707 _LT_EOF
15708 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15710 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15711 else
15712 ld_shlibs=no
15713 fi
15714 ;;
15715
15716 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15717 case `$LD -v 2>&1` in
15718 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15719 ld_shlibs=no
15720 cat <<_LT_EOF 1>&2
15721
15722 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15723 *** reliably create shared libraries on SCO systems. Therefore, libtool
15724 *** is disabling shared libraries support. We urge you to upgrade GNU
15725 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15726 *** your PATH or compiler configuration so that the native linker is
15727 *** used, and then restart.
15728
15729 _LT_EOF
15730 ;;
15731 *)
15732 # For security reasons, it is highly recommended that you always
15733 # use absolute paths for naming shared libraries, and exclude the
15734 # DT_RUNPATH tag from executables and libraries. But doing so
15735 # requires that you compile everything twice, which is a pain.
15736 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15737 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15738 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15739 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15740 else
15741 ld_shlibs=no
15742 fi
15743 ;;
15744 esac
15745 ;;
15746
15747 sunos4*)
15748 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15749 wlarc=
15750 hardcode_direct=yes
15751 hardcode_shlibpath_var=no
15752 ;;
15753
15754 *)
15755 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15756 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15757 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15758 else
15759 ld_shlibs=no
15760 fi
15761 ;;
15762 esac
15763
15764 if test "$ld_shlibs" = no; then
15765 runpath_var=
15766 hardcode_libdir_flag_spec=
15767 export_dynamic_flag_spec=
15768 whole_archive_flag_spec=
15769 fi
15770 else
15771 # PORTME fill in a description of your system's linker (not GNU ld)
15772 case $host_os in
15773 aix3*)
15774 allow_undefined_flag=unsupported
15775 always_export_symbols=yes
15776 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'
15777 # Note: this linker hardcodes the directories in LIBPATH if there
15778 # are no directories specified by -L.
15779 hardcode_minus_L=yes
15780 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15781 # Neither direct hardcoding nor static linking is supported with a
15782 # broken collect2.
15783 hardcode_direct=unsupported
15784 fi
15785 ;;
15786
15787 aix[4-9]*)
15788 if test "$host_cpu" = ia64; then
15789 # On IA64, the linker does run time linking by default, so we don't
15790 # have to do anything special.
15791 aix_use_runtimelinking=no
15792 exp_sym_flag='-Bexport'
15793 no_entry_flag=""
15794 else
15795 # If we're using GNU nm, then we don't want the "-C" option.
15796 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15797 # Also, AIX nm treats weak defined symbols like other global
15798 # defined symbols, whereas GNU nm marks them as "W".
15799 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15800 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'
15801 else
15802 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15803 fi
15804 aix_use_runtimelinking=no
15805
15806 # Test if we are trying to use run time linking or normal
15807 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15808 # need to do runtime linking.
15809 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15810 for ld_flag in $LDFLAGS; do
15811 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15812 aix_use_runtimelinking=yes
15813 break
15814 fi
15815 done
15816 ;;
15817 esac
15818
15819 exp_sym_flag='-bexport'
15820 no_entry_flag='-bnoentry'
15821 fi
15822
15823 # When large executables or shared objects are built, AIX ld can
15824 # have problems creating the table of contents. If linking a library
15825 # or program results in "error TOC overflow" add -mminimal-toc to
15826 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15827 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15828
15829 archive_cmds=''
15830 hardcode_direct=yes
15831 hardcode_direct_absolute=yes
15832 hardcode_libdir_separator=':'
15833 link_all_deplibs=yes
15834 file_list_spec='${wl}-f,'
15835
15836 if test "$GCC" = yes; then
15837 case $host_os in aix4.[012]|aix4.[012].*)
15838 # We only want to do this on AIX 4.2 and lower, the check
15839 # below for broken collect2 doesn't work under 4.3+
15840 collect2name=`${CC} -print-prog-name=collect2`
15841 if test -f "$collect2name" &&
15842 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15843 then
15844 # We have reworked collect2
15845 :
15846 else
15847 # We have old collect2
15848 hardcode_direct=unsupported
15849 # It fails to find uninstalled libraries when the uninstalled
15850 # path is not listed in the libpath. Setting hardcode_minus_L
15851 # to unsupported forces relinking
15852 hardcode_minus_L=yes
15853 hardcode_libdir_flag_spec='-L$libdir'
15854 hardcode_libdir_separator=
15855 fi
15856 ;;
15857 esac
15858 shared_flag='-shared'
15859 if test "$aix_use_runtimelinking" = yes; then
15860 shared_flag="$shared_flag "'${wl}-G'
15861 fi
15862 else
15863 # not using gcc
15864 if test "$host_cpu" = ia64; then
15865 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15866 # chokes on -Wl,-G. The following line is correct:
15867 shared_flag='-G'
15868 else
15869 if test "$aix_use_runtimelinking" = yes; then
15870 shared_flag='${wl}-G'
15871 else
15872 shared_flag='${wl}-bM:SRE'
15873 fi
15874 fi
15875 fi
15876
15877 export_dynamic_flag_spec='${wl}-bexpall'
15878 # It seems that -bexpall does not export symbols beginning with
15879 # underscore (_), so it is better to generate a list of symbols to export.
15880 always_export_symbols=yes
15881 if test "$aix_use_runtimelinking" = yes; then
15882 # Warning - without using the other runtime loading flags (-brtl),
15883 # -berok will link without error, but may produce a broken library.
15884 allow_undefined_flag='-berok'
15885 # Determine the default libpath from the value encoded in an
15886 # empty executable.
15887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15888 /* end confdefs.h. */
15889
15890 int
15891 main ()
15892 {
15893
15894 ;
15895 return 0;
15896 }
15897 _ACEOF
15898 if ac_fn_c_try_link "$LINENO"; then :
15899
15900 lt_aix_libpath_sed='
15901 /Import File Strings/,/^$/ {
15902 /^0/ {
15903 s/^0 *\(.*\)$/\1/
15904 p
15905 }
15906 }'
15907 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15908 # Check for a 64-bit object if we didn't find anything.
15909 if test -z "$aix_libpath"; then
15910 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15911 fi
15912 fi
15913 rm -f core conftest.err conftest.$ac_objext \
15914 conftest$ac_exeext conftest.$ac_ext
15915 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15916
15917 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15918 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"
15919 else
15920 if test "$host_cpu" = ia64; then
15921 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15922 allow_undefined_flag="-z nodefs"
15923 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"
15924 else
15925 # Determine the default libpath from the value encoded in an
15926 # empty executable.
15927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15928 /* end confdefs.h. */
15929
15930 int
15931 main ()
15932 {
15933
15934 ;
15935 return 0;
15936 }
15937 _ACEOF
15938 if ac_fn_c_try_link "$LINENO"; then :
15939
15940 lt_aix_libpath_sed='
15941 /Import File Strings/,/^$/ {
15942 /^0/ {
15943 s/^0 *\(.*\)$/\1/
15944 p
15945 }
15946 }'
15947 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15948 # Check for a 64-bit object if we didn't find anything.
15949 if test -z "$aix_libpath"; then
15950 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15951 fi
15952 fi
15953 rm -f core conftest.err conftest.$ac_objext \
15954 conftest$ac_exeext conftest.$ac_ext
15955 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15956
15957 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15958 # Warning - without using the other run time loading flags,
15959 # -berok will link without error, but may produce a broken library.
15960 no_undefined_flag=' ${wl}-bernotok'
15961 allow_undefined_flag=' ${wl}-berok'
15962 if test "$with_gnu_ld" = yes; then
15963 # We only use this code for GNU lds that support --whole-archive.
15964 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15965 else
15966 # Exported symbols can be pulled into shared objects from archives
15967 whole_archive_flag_spec='$convenience'
15968 fi
15969 archive_cmds_need_lc=yes
15970 # This is similar to how AIX traditionally builds its shared libraries.
15971 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'
15972 fi
15973 fi
15974 ;;
15975
15976 amigaos*)
15977 case $host_cpu in
15978 powerpc)
15979 # see comment about AmigaOS4 .so support
15980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15981 archive_expsym_cmds=''
15982 ;;
15983 m68k)
15984 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)'
15985 hardcode_libdir_flag_spec='-L$libdir'
15986 hardcode_minus_L=yes
15987 ;;
15988 esac
15989 ;;
15990
15991 bsdi[45]*)
15992 export_dynamic_flag_spec=-rdynamic
15993 ;;
15994
15995 cygwin* | mingw* | pw32* | cegcc*)
15996 # When not using gcc, we currently assume that we are using
15997 # Microsoft Visual C++.
15998 # hardcode_libdir_flag_spec is actually meaningless, as there is
15999 # no search path for DLLs.
16000 hardcode_libdir_flag_spec=' '
16001 allow_undefined_flag=unsupported
16002 # Tell ltmain to make .lib files, not .a files.
16003 libext=lib
16004 # Tell ltmain to make .dll files, not .so files.
16005 shrext_cmds=".dll"
16006 # FIXME: Setting linknames here is a bad hack.
16007 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16008 # The linker will automatically build a .lib file if we build a DLL.
16009 old_archive_from_new_cmds='true'
16010 # FIXME: Should let the user specify the lib program.
16011 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16012 fix_srcfile_path='`cygpath -w "$srcfile"`'
16013 enable_shared_with_static_runtimes=yes
16014 ;;
16015
16016 darwin* | rhapsody*)
16017
16018
16019 archive_cmds_need_lc=no
16020 hardcode_direct=no
16021 hardcode_automatic=yes
16022 hardcode_shlibpath_var=unsupported
16023 if test "$lt_cv_ld_force_load" = "yes"; then
16024 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\"`'
16025 else
16026 whole_archive_flag_spec=''
16027 fi
16028 link_all_deplibs=yes
16029 allow_undefined_flag="$_lt_dar_allow_undefined"
16030 case $cc_basename in
16031 ifort*) _lt_dar_can_shared=yes ;;
16032 *) _lt_dar_can_shared=$GCC ;;
16033 esac
16034 if test "$_lt_dar_can_shared" = "yes"; then
16035 output_verbose_link_cmd=func_echo_all
16036 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16037 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16038 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}"
16039 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}"
16040
16041 else
16042 ld_shlibs=no
16043 fi
16044
16045 ;;
16046
16047 dgux*)
16048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16049 hardcode_libdir_flag_spec='-L$libdir'
16050 hardcode_shlibpath_var=no
16051 ;;
16052
16053 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16054 # support. Future versions do this automatically, but an explicit c++rt0.o
16055 # does not break anything, and helps significantly (at the cost of a little
16056 # extra space).
16057 freebsd2.2*)
16058 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16059 hardcode_libdir_flag_spec='-R$libdir'
16060 hardcode_direct=yes
16061 hardcode_shlibpath_var=no
16062 ;;
16063
16064 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16065 freebsd2*)
16066 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16067 hardcode_direct=yes
16068 hardcode_minus_L=yes
16069 hardcode_shlibpath_var=no
16070 ;;
16071
16072 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16073 freebsd* | dragonfly*)
16074 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16075 hardcode_libdir_flag_spec='-R$libdir'
16076 hardcode_direct=yes
16077 hardcode_shlibpath_var=no
16078 ;;
16079
16080 hpux9*)
16081 if test "$GCC" = yes; then
16082 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'
16083 else
16084 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'
16085 fi
16086 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16087 hardcode_libdir_separator=:
16088 hardcode_direct=yes
16089
16090 # hardcode_minus_L: Not really in the search PATH,
16091 # but as the default location of the library.
16092 hardcode_minus_L=yes
16093 export_dynamic_flag_spec='${wl}-E'
16094 ;;
16095
16096 hpux10*)
16097 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16098 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16099 else
16100 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16101 fi
16102 if test "$with_gnu_ld" = no; then
16103 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16104 hardcode_libdir_flag_spec_ld='+b $libdir'
16105 hardcode_libdir_separator=:
16106 hardcode_direct=yes
16107 hardcode_direct_absolute=yes
16108 export_dynamic_flag_spec='${wl}-E'
16109 # hardcode_minus_L: Not really in the search PATH,
16110 # but as the default location of the library.
16111 hardcode_minus_L=yes
16112 fi
16113 ;;
16114
16115 hpux11*)
16116 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16117 case $host_cpu in
16118 hppa*64*)
16119 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16120 ;;
16121 ia64*)
16122 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16123 ;;
16124 *)
16125 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16126 ;;
16127 esac
16128 else
16129 case $host_cpu in
16130 hppa*64*)
16131 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16132 ;;
16133 ia64*)
16134 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16135 ;;
16136 *)
16137
16138 # Older versions of the 11.00 compiler do not understand -b yet
16139 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16141 $as_echo_n "checking if $CC understands -b... " >&6; }
16142 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16143 $as_echo_n "(cached) " >&6
16144 else
16145 lt_cv_prog_compiler__b=no
16146 save_LDFLAGS="$LDFLAGS"
16147 LDFLAGS="$LDFLAGS -b"
16148 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16149 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16150 # The linker can only warn and ignore the option if not recognized
16151 # So say no if there are warnings
16152 if test -s conftest.err; then
16153 # Append any errors to the config.log.
16154 cat conftest.err 1>&5
16155 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16156 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16157 if diff conftest.exp conftest.er2 >/dev/null; then
16158 lt_cv_prog_compiler__b=yes
16159 fi
16160 else
16161 lt_cv_prog_compiler__b=yes
16162 fi
16163 fi
16164 $RM -r conftest*
16165 LDFLAGS="$save_LDFLAGS"
16166
16167 fi
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16169 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16170
16171 if test x"$lt_cv_prog_compiler__b" = xyes; then
16172 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16173 else
16174 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16175 fi
16176
16177 ;;
16178 esac
16179 fi
16180 if test "$with_gnu_ld" = no; then
16181 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16182 hardcode_libdir_separator=:
16183
16184 case $host_cpu in
16185 hppa*64*|ia64*)
16186 hardcode_direct=no
16187 hardcode_shlibpath_var=no
16188 ;;
16189 *)
16190 hardcode_direct=yes
16191 hardcode_direct_absolute=yes
16192 export_dynamic_flag_spec='${wl}-E'
16193
16194 # hardcode_minus_L: Not really in the search PATH,
16195 # but as the default location of the library.
16196 hardcode_minus_L=yes
16197 ;;
16198 esac
16199 fi
16200 ;;
16201
16202 irix5* | irix6* | nonstopux*)
16203 if test "$GCC" = yes; then
16204 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'
16205 # Try to use the -exported_symbol ld option, if it does not
16206 # work, assume that -exports_file does not work either and
16207 # implicitly export all symbols.
16208 save_LDFLAGS="$LDFLAGS"
16209 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16211 /* end confdefs.h. */
16212 int foo(void) {}
16213 _ACEOF
16214 if ac_fn_c_try_link "$LINENO"; then :
16215 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'
16216
16217 fi
16218 rm -f core conftest.err conftest.$ac_objext \
16219 conftest$ac_exeext conftest.$ac_ext
16220 LDFLAGS="$save_LDFLAGS"
16221 else
16222 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'
16223 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'
16224 fi
16225 archive_cmds_need_lc='no'
16226 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16227 hardcode_libdir_separator=:
16228 inherit_rpath=yes
16229 link_all_deplibs=yes
16230 ;;
16231
16232 netbsd*)
16233 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16234 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16235 else
16236 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16237 fi
16238 hardcode_libdir_flag_spec='-R$libdir'
16239 hardcode_direct=yes
16240 hardcode_shlibpath_var=no
16241 ;;
16242
16243 newsos6)
16244 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16245 hardcode_direct=yes
16246 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16247 hardcode_libdir_separator=:
16248 hardcode_shlibpath_var=no
16249 ;;
16250
16251 *nto* | *qnx*)
16252 ;;
16253
16254 openbsd*)
16255 if test -f /usr/libexec/ld.so; then
16256 hardcode_direct=yes
16257 hardcode_shlibpath_var=no
16258 hardcode_direct_absolute=yes
16259 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16260 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16261 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16262 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16263 export_dynamic_flag_spec='${wl}-E'
16264 else
16265 case $host_os in
16266 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16267 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16268 hardcode_libdir_flag_spec='-R$libdir'
16269 ;;
16270 *)
16271 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16272 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16273 ;;
16274 esac
16275 fi
16276 else
16277 ld_shlibs=no
16278 fi
16279 ;;
16280
16281 os2*)
16282 hardcode_libdir_flag_spec='-L$libdir'
16283 hardcode_minus_L=yes
16284 allow_undefined_flag=unsupported
16285 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'
16286 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16287 ;;
16288
16289 osf3*)
16290 if test "$GCC" = yes; then
16291 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16292 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'
16293 else
16294 allow_undefined_flag=' -expect_unresolved \*'
16295 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'
16296 fi
16297 archive_cmds_need_lc='no'
16298 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16299 hardcode_libdir_separator=:
16300 ;;
16301
16302 osf4* | osf5*) # as osf3* with the addition of -msym flag
16303 if test "$GCC" = yes; then
16304 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16305 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'
16306 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16307 else
16308 allow_undefined_flag=' -expect_unresolved \*'
16309 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'
16310 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~
16311 $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'
16312
16313 # Both c and cxx compiler support -rpath directly
16314 hardcode_libdir_flag_spec='-rpath $libdir'
16315 fi
16316 archive_cmds_need_lc='no'
16317 hardcode_libdir_separator=:
16318 ;;
16319
16320 solaris*)
16321 no_undefined_flag=' -z defs'
16322 if test "$GCC" = yes; then
16323 wlarc='${wl}'
16324 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16325 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16326 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16327 else
16328 case `$CC -V 2>&1` in
16329 *"Compilers 5.0"*)
16330 wlarc=''
16331 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16332 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16333 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16334 ;;
16335 *)
16336 wlarc='${wl}'
16337 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16338 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16339 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16340 ;;
16341 esac
16342 fi
16343 hardcode_libdir_flag_spec='-R$libdir'
16344 hardcode_shlibpath_var=no
16345 case $host_os in
16346 solaris2.[0-5] | solaris2.[0-5].*) ;;
16347 *)
16348 # The compiler driver will combine and reorder linker options,
16349 # but understands `-z linker_flag'. GCC discards it without `$wl',
16350 # but is careful enough not to reorder.
16351 # Supported since Solaris 2.6 (maybe 2.5.1?)
16352 if test "$GCC" = yes; then
16353 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16354 else
16355 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16356 fi
16357 ;;
16358 esac
16359 link_all_deplibs=yes
16360 ;;
16361
16362 sunos4*)
16363 if test "x$host_vendor" = xsequent; then
16364 # Use $CC to link under sequent, because it throws in some extra .o
16365 # files that make .init and .fini sections work.
16366 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16367 else
16368 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16369 fi
16370 hardcode_libdir_flag_spec='-L$libdir'
16371 hardcode_direct=yes
16372 hardcode_minus_L=yes
16373 hardcode_shlibpath_var=no
16374 ;;
16375
16376 sysv4)
16377 case $host_vendor in
16378 sni)
16379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16380 hardcode_direct=yes # is this really true???
16381 ;;
16382 siemens)
16383 ## LD is ld it makes a PLAMLIB
16384 ## CC just makes a GrossModule.
16385 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16386 reload_cmds='$CC -r -o $output$reload_objs'
16387 hardcode_direct=no
16388 ;;
16389 motorola)
16390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16391 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16392 ;;
16393 esac
16394 runpath_var='LD_RUN_PATH'
16395 hardcode_shlibpath_var=no
16396 ;;
16397
16398 sysv4.3*)
16399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16400 hardcode_shlibpath_var=no
16401 export_dynamic_flag_spec='-Bexport'
16402 ;;
16403
16404 sysv4*MP*)
16405 if test -d /usr/nec; then
16406 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16407 hardcode_shlibpath_var=no
16408 runpath_var=LD_RUN_PATH
16409 hardcode_runpath_var=yes
16410 ld_shlibs=yes
16411 fi
16412 ;;
16413
16414 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16415 no_undefined_flag='${wl}-z,text'
16416 archive_cmds_need_lc=no
16417 hardcode_shlibpath_var=no
16418 runpath_var='LD_RUN_PATH'
16419
16420 if test "$GCC" = yes; then
16421 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16422 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16423 else
16424 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16425 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16426 fi
16427 ;;
16428
16429 sysv5* | sco3.2v5* | sco5v6*)
16430 # Note: We can NOT use -z defs as we might desire, because we do not
16431 # link with -lc, and that would cause any symbols used from libc to
16432 # always be unresolved, which means just about no library would
16433 # ever link correctly. If we're not using GNU ld we use -z text
16434 # though, which does catch some bad symbols but isn't as heavy-handed
16435 # as -z defs.
16436 no_undefined_flag='${wl}-z,text'
16437 allow_undefined_flag='${wl}-z,nodefs'
16438 archive_cmds_need_lc=no
16439 hardcode_shlibpath_var=no
16440 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16441 hardcode_libdir_separator=':'
16442 link_all_deplibs=yes
16443 export_dynamic_flag_spec='${wl}-Bexport'
16444 runpath_var='LD_RUN_PATH'
16445
16446 if test "$GCC" = yes; then
16447 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16448 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16449 else
16450 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16451 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16452 fi
16453 ;;
16454
16455 uts4*)
16456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16457 hardcode_libdir_flag_spec='-L$libdir'
16458 hardcode_shlibpath_var=no
16459 ;;
16460
16461 *)
16462 ld_shlibs=no
16463 ;;
16464 esac
16465
16466 if test x$host_vendor = xsni; then
16467 case $host in
16468 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16469 export_dynamic_flag_spec='${wl}-Blargedynsym'
16470 ;;
16471 esac
16472 fi
16473 fi
16474
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16476 $as_echo "$ld_shlibs" >&6; }
16477 test "$ld_shlibs" = no && can_build_shared=no
16478
16479 with_gnu_ld=$with_gnu_ld
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495 #
16496 # Do we need to explicitly link libc?
16497 #
16498 case "x$archive_cmds_need_lc" in
16499 x|xyes)
16500 # Assume -lc should be added
16501 archive_cmds_need_lc=yes
16502
16503 if test "$enable_shared" = yes && test "$GCC" = yes; then
16504 case $archive_cmds in
16505 *'~'*)
16506 # FIXME: we may have to deal with multi-command sequences.
16507 ;;
16508 '$CC '*)
16509 # Test whether the compiler implicitly links with -lc since on some
16510 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16511 # to ld, don't add -lc before -lgcc.
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16513 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16514 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16515 $as_echo_n "(cached) " >&6
16516 else
16517 $RM conftest*
16518 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16519
16520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16521 (eval $ac_compile) 2>&5
16522 ac_status=$?
16523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16524 test $ac_status = 0; } 2>conftest.err; then
16525 soname=conftest
16526 lib=conftest
16527 libobjs=conftest.$ac_objext
16528 deplibs=
16529 wl=$lt_prog_compiler_wl
16530 pic_flag=$lt_prog_compiler_pic
16531 compiler_flags=-v
16532 linker_flags=-v
16533 verstring=
16534 output_objdir=.
16535 libname=conftest
16536 lt_save_allow_undefined_flag=$allow_undefined_flag
16537 allow_undefined_flag=
16538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16539 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16540 ac_status=$?
16541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16542 test $ac_status = 0; }
16543 then
16544 lt_cv_archive_cmds_need_lc=no
16545 else
16546 lt_cv_archive_cmds_need_lc=yes
16547 fi
16548 allow_undefined_flag=$lt_save_allow_undefined_flag
16549 else
16550 cat conftest.err 1>&5
16551 fi
16552 $RM conftest*
16553
16554 fi
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16556 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16557 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16558 ;;
16559 esac
16560 fi
16561 ;;
16562 esac
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16721 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16722
16723 if test "$GCC" = yes; then
16724 case $host_os in
16725 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16726 *) lt_awk_arg="/^libraries:/" ;;
16727 esac
16728 case $host_os in
16729 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16730 *) lt_sed_strip_eq="s,=/,/,g" ;;
16731 esac
16732 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16733 case $lt_search_path_spec in
16734 *\;*)
16735 # if the path contains ";" then we assume it to be the separator
16736 # otherwise default to the standard path separator (i.e. ":") - it is
16737 # assumed that no part of a normal pathname contains ";" but that should
16738 # okay in the real world where ";" in dirpaths is itself problematic.
16739 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16740 ;;
16741 *)
16742 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16743 ;;
16744 esac
16745 # Ok, now we have the path, separated by spaces, we can step through it
16746 # and add multilib dir if necessary.
16747 lt_tmp_lt_search_path_spec=
16748 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16749 for lt_sys_path in $lt_search_path_spec; do
16750 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16751 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16752 else
16753 test -d "$lt_sys_path" && \
16754 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16755 fi
16756 done
16757 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16758 BEGIN {RS=" "; FS="/|\n";} {
16759 lt_foo="";
16760 lt_count=0;
16761 for (lt_i = NF; lt_i > 0; lt_i--) {
16762 if ($lt_i != "" && $lt_i != ".") {
16763 if ($lt_i == "..") {
16764 lt_count++;
16765 } else {
16766 if (lt_count == 0) {
16767 lt_foo="/" $lt_i lt_foo;
16768 } else {
16769 lt_count--;
16770 }
16771 }
16772 }
16773 }
16774 if (lt_foo != "") { lt_freq[lt_foo]++; }
16775 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16776 }'`
16777 # AWK program above erroneously prepends '/' to C:/dos/paths
16778 # for these hosts.
16779 case $host_os in
16780 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16781 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16782 esac
16783 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16784 else
16785 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16786 fi
16787 library_names_spec=
16788 libname_spec='lib$name'
16789 soname_spec=
16790 shrext_cmds=".so"
16791 postinstall_cmds=
16792 postuninstall_cmds=
16793 finish_cmds=
16794 finish_eval=
16795 shlibpath_var=
16796 shlibpath_overrides_runpath=unknown
16797 version_type=none
16798 dynamic_linker="$host_os ld.so"
16799 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16800 need_lib_prefix=unknown
16801 hardcode_into_libs=no
16802
16803 # when you set need_version to no, make sure it does not cause -set_version
16804 # flags to be left without arguments
16805 need_version=unknown
16806
16807 case $host_os in
16808 aix3*)
16809 version_type=linux
16810 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16811 shlibpath_var=LIBPATH
16812
16813 # AIX 3 has no versioning support, so we append a major version to the name.
16814 soname_spec='${libname}${release}${shared_ext}$major'
16815 ;;
16816
16817 aix[4-9]*)
16818 version_type=linux
16819 need_lib_prefix=no
16820 need_version=no
16821 hardcode_into_libs=yes
16822 if test "$host_cpu" = ia64; then
16823 # AIX 5 supports IA64
16824 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16825 shlibpath_var=LD_LIBRARY_PATH
16826 else
16827 # With GCC up to 2.95.x, collect2 would create an import file
16828 # for dependence libraries. The import file would start with
16829 # the line `#! .'. This would cause the generated library to
16830 # depend on `.', always an invalid library. This was fixed in
16831 # development snapshots of GCC prior to 3.0.
16832 case $host_os in
16833 aix4 | aix4.[01] | aix4.[01].*)
16834 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16835 echo ' yes '
16836 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16837 :
16838 else
16839 can_build_shared=no
16840 fi
16841 ;;
16842 esac
16843 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16844 # soname into executable. Probably we can add versioning support to
16845 # collect2, so additional links can be useful in future.
16846 if test "$aix_use_runtimelinking" = yes; then
16847 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16848 # instead of lib<name>.a to let people know that these are not
16849 # typical AIX shared libraries.
16850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16851 else
16852 # We preserve .a as extension for shared libraries through AIX4.2
16853 # and later when we are not doing run time linking.
16854 library_names_spec='${libname}${release}.a $libname.a'
16855 soname_spec='${libname}${release}${shared_ext}$major'
16856 fi
16857 shlibpath_var=LIBPATH
16858 fi
16859 ;;
16860
16861 amigaos*)
16862 case $host_cpu in
16863 powerpc)
16864 # Since July 2007 AmigaOS4 officially supports .so libraries.
16865 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16867 ;;
16868 m68k)
16869 library_names_spec='$libname.ixlibrary $libname.a'
16870 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16871 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'
16872 ;;
16873 esac
16874 ;;
16875
16876 beos*)
16877 library_names_spec='${libname}${shared_ext}'
16878 dynamic_linker="$host_os ld.so"
16879 shlibpath_var=LIBRARY_PATH
16880 ;;
16881
16882 bsdi[45]*)
16883 version_type=linux
16884 need_version=no
16885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16886 soname_spec='${libname}${release}${shared_ext}$major'
16887 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16888 shlibpath_var=LD_LIBRARY_PATH
16889 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16890 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16891 # the default ld.so.conf also contains /usr/contrib/lib and
16892 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16893 # libtool to hard-code these into programs
16894 ;;
16895
16896 cygwin* | mingw* | pw32* | cegcc*)
16897 version_type=windows
16898 shrext_cmds=".dll"
16899 need_version=no
16900 need_lib_prefix=no
16901
16902 case $GCC,$host_os in
16903 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16904 library_names_spec='$libname.dll.a'
16905 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16906 postinstall_cmds='base_file=`basename \${file}`~
16907 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16908 dldir=$destdir/`dirname \$dlpath`~
16909 test -d \$dldir || mkdir -p \$dldir~
16910 $install_prog $dir/$dlname \$dldir/$dlname~
16911 chmod a+x \$dldir/$dlname~
16912 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16913 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16914 fi'
16915 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16916 dlpath=$dir/\$dldll~
16917 $RM \$dlpath'
16918 shlibpath_overrides_runpath=yes
16919
16920 case $host_os in
16921 cygwin*)
16922 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16923 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16924
16925 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16926 ;;
16927 mingw* | cegcc*)
16928 # MinGW DLLs use traditional 'lib' prefix
16929 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16930 ;;
16931 pw32*)
16932 # pw32 DLLs use 'pw' prefix rather than 'lib'
16933 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16934 ;;
16935 esac
16936 ;;
16937
16938 *)
16939 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16940 ;;
16941 esac
16942 dynamic_linker='Win32 ld.exe'
16943 # FIXME: first we should search . and the directory the executable is in
16944 shlibpath_var=PATH
16945 ;;
16946
16947 darwin* | rhapsody*)
16948 dynamic_linker="$host_os dyld"
16949 version_type=darwin
16950 need_lib_prefix=no
16951 need_version=no
16952 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16953 soname_spec='${libname}${release}${major}$shared_ext'
16954 shlibpath_overrides_runpath=yes
16955 shlibpath_var=DYLD_LIBRARY_PATH
16956 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16957
16958 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16959 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16960 ;;
16961
16962 dgux*)
16963 version_type=linux
16964 need_lib_prefix=no
16965 need_version=no
16966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16967 soname_spec='${libname}${release}${shared_ext}$major'
16968 shlibpath_var=LD_LIBRARY_PATH
16969 ;;
16970
16971 freebsd* | dragonfly*)
16972 # DragonFly does not have aout. When/if they implement a new
16973 # versioning mechanism, adjust this.
16974 if test -x /usr/bin/objformat; then
16975 objformat=`/usr/bin/objformat`
16976 else
16977 case $host_os in
16978 freebsd[123]*) objformat=aout ;;
16979 *) objformat=elf ;;
16980 esac
16981 fi
16982 version_type=freebsd-$objformat
16983 case $version_type in
16984 freebsd-elf*)
16985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16986 need_version=no
16987 need_lib_prefix=no
16988 ;;
16989 freebsd-*)
16990 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16991 need_version=yes
16992 ;;
16993 esac
16994 shlibpath_var=LD_LIBRARY_PATH
16995 case $host_os in
16996 freebsd2*)
16997 shlibpath_overrides_runpath=yes
16998 ;;
16999 freebsd3.[01]* | freebsdelf3.[01]*)
17000 shlibpath_overrides_runpath=yes
17001 hardcode_into_libs=yes
17002 ;;
17003 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17004 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17005 shlibpath_overrides_runpath=no
17006 hardcode_into_libs=yes
17007 ;;
17008 *) # from 4.6 on, and DragonFly
17009 shlibpath_overrides_runpath=yes
17010 hardcode_into_libs=yes
17011 ;;
17012 esac
17013 ;;
17014
17015 gnu*)
17016 version_type=linux
17017 need_lib_prefix=no
17018 need_version=no
17019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17020 soname_spec='${libname}${release}${shared_ext}$major'
17021 shlibpath_var=LD_LIBRARY_PATH
17022 hardcode_into_libs=yes
17023 ;;
17024
17025 haiku*)
17026 version_type=linux
17027 need_lib_prefix=no
17028 need_version=no
17029 dynamic_linker="$host_os runtime_loader"
17030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17031 soname_spec='${libname}${release}${shared_ext}$major'
17032 shlibpath_var=LIBRARY_PATH
17033 shlibpath_overrides_runpath=yes
17034 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17035 hardcode_into_libs=yes
17036 ;;
17037
17038 hpux9* | hpux10* | hpux11*)
17039 # Give a soname corresponding to the major version so that dld.sl refuses to
17040 # link against other versions.
17041 version_type=sunos
17042 need_lib_prefix=no
17043 need_version=no
17044 case $host_cpu in
17045 ia64*)
17046 shrext_cmds='.so'
17047 hardcode_into_libs=yes
17048 dynamic_linker="$host_os dld.so"
17049 shlibpath_var=LD_LIBRARY_PATH
17050 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17052 soname_spec='${libname}${release}${shared_ext}$major'
17053 if test "X$HPUX_IA64_MODE" = X32; then
17054 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17055 else
17056 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17057 fi
17058 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17059 ;;
17060 hppa*64*)
17061 shrext_cmds='.sl'
17062 hardcode_into_libs=yes
17063 dynamic_linker="$host_os dld.sl"
17064 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17065 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17067 soname_spec='${libname}${release}${shared_ext}$major'
17068 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17069 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17070 ;;
17071 *)
17072 shrext_cmds='.sl'
17073 dynamic_linker="$host_os dld.sl"
17074 shlibpath_var=SHLIB_PATH
17075 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17077 soname_spec='${libname}${release}${shared_ext}$major'
17078 ;;
17079 esac
17080 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17081 postinstall_cmds='chmod 555 $lib'
17082 # or fails outright, so override atomically:
17083 install_override_mode=555
17084 ;;
17085
17086 interix[3-9]*)
17087 version_type=linux
17088 need_lib_prefix=no
17089 need_version=no
17090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17091 soname_spec='${libname}${release}${shared_ext}$major'
17092 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17093 shlibpath_var=LD_LIBRARY_PATH
17094 shlibpath_overrides_runpath=no
17095 hardcode_into_libs=yes
17096 ;;
17097
17098 irix5* | irix6* | nonstopux*)
17099 case $host_os in
17100 nonstopux*) version_type=nonstopux ;;
17101 *)
17102 if test "$lt_cv_prog_gnu_ld" = yes; then
17103 version_type=linux
17104 else
17105 version_type=irix
17106 fi ;;
17107 esac
17108 need_lib_prefix=no
17109 need_version=no
17110 soname_spec='${libname}${release}${shared_ext}$major'
17111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17112 case $host_os in
17113 irix5* | nonstopux*)
17114 libsuff= shlibsuff=
17115 ;;
17116 *)
17117 case $LD in # libtool.m4 will add one of these switches to LD
17118 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17119 libsuff= shlibsuff= libmagic=32-bit;;
17120 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17121 libsuff=32 shlibsuff=N32 libmagic=N32;;
17122 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17123 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17124 *) libsuff= shlibsuff= libmagic=never-match;;
17125 esac
17126 ;;
17127 esac
17128 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17129 shlibpath_overrides_runpath=no
17130 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17131 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17132 hardcode_into_libs=yes
17133 ;;
17134
17135 # No shared lib support for Linux oldld, aout, or coff.
17136 linux*oldld* | linux*aout* | linux*coff*)
17137 dynamic_linker=no
17138 ;;
17139
17140 # This must be Linux ELF.
17141 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17142 version_type=linux
17143 need_lib_prefix=no
17144 need_version=no
17145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17146 soname_spec='${libname}${release}${shared_ext}$major'
17147 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17148 shlibpath_var=LD_LIBRARY_PATH
17149 shlibpath_overrides_runpath=no
17150
17151 # Some binutils ld are patched to set DT_RUNPATH
17152 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17153 $as_echo_n "(cached) " >&6
17154 else
17155 lt_cv_shlibpath_overrides_runpath=no
17156 save_LDFLAGS=$LDFLAGS
17157 save_libdir=$libdir
17158 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17159 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17161 /* end confdefs.h. */
17162
17163 int
17164 main ()
17165 {
17166
17167 ;
17168 return 0;
17169 }
17170 _ACEOF
17171 if ac_fn_c_try_link "$LINENO"; then :
17172 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17173 lt_cv_shlibpath_overrides_runpath=yes
17174 fi
17175 fi
17176 rm -f core conftest.err conftest.$ac_objext \
17177 conftest$ac_exeext conftest.$ac_ext
17178 LDFLAGS=$save_LDFLAGS
17179 libdir=$save_libdir
17180
17181 fi
17182
17183 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17184
17185 # This implies no fast_install, which is unacceptable.
17186 # Some rework will be needed to allow for fast_install
17187 # before this can be enabled.
17188 hardcode_into_libs=yes
17189
17190 # Append ld.so.conf contents to the search path
17191 if test -f /etc/ld.so.conf; then
17192 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' ' '`
17193 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17194 fi
17195
17196 # We used to test for /lib/ld.so.1 and disable shared libraries on
17197 # powerpc, because MkLinux only supported shared libraries with the
17198 # GNU dynamic linker. Since this was broken with cross compilers,
17199 # most powerpc-linux boxes support dynamic linking these days and
17200 # people can always --disable-shared, the test was removed, and we
17201 # assume the GNU/Linux dynamic linker is in use.
17202 dynamic_linker='GNU/Linux ld.so'
17203 ;;
17204
17205 netbsd*)
17206 version_type=sunos
17207 need_lib_prefix=no
17208 need_version=no
17209 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17211 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17212 dynamic_linker='NetBSD (a.out) ld.so'
17213 else
17214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17215 soname_spec='${libname}${release}${shared_ext}$major'
17216 dynamic_linker='NetBSD ld.elf_so'
17217 fi
17218 shlibpath_var=LD_LIBRARY_PATH
17219 shlibpath_overrides_runpath=yes
17220 hardcode_into_libs=yes
17221 ;;
17222
17223 newsos6)
17224 version_type=linux
17225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17226 shlibpath_var=LD_LIBRARY_PATH
17227 shlibpath_overrides_runpath=yes
17228 ;;
17229
17230 *nto* | *qnx*)
17231 version_type=qnx
17232 need_lib_prefix=no
17233 need_version=no
17234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17235 soname_spec='${libname}${release}${shared_ext}$major'
17236 shlibpath_var=LD_LIBRARY_PATH
17237 shlibpath_overrides_runpath=no
17238 hardcode_into_libs=yes
17239 dynamic_linker='ldqnx.so'
17240 ;;
17241
17242 openbsd*)
17243 version_type=sunos
17244 sys_lib_dlsearch_path_spec="/usr/lib"
17245 need_lib_prefix=no
17246 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17247 case $host_os in
17248 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17249 *) need_version=no ;;
17250 esac
17251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17252 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17253 shlibpath_var=LD_LIBRARY_PATH
17254 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17255 case $host_os in
17256 openbsd2.[89] | openbsd2.[89].*)
17257 shlibpath_overrides_runpath=no
17258 ;;
17259 *)
17260 shlibpath_overrides_runpath=yes
17261 ;;
17262 esac
17263 else
17264 shlibpath_overrides_runpath=yes
17265 fi
17266 ;;
17267
17268 os2*)
17269 libname_spec='$name'
17270 shrext_cmds=".dll"
17271 need_lib_prefix=no
17272 library_names_spec='$libname${shared_ext} $libname.a'
17273 dynamic_linker='OS/2 ld.exe'
17274 shlibpath_var=LIBPATH
17275 ;;
17276
17277 osf3* | osf4* | osf5*)
17278 version_type=osf
17279 need_lib_prefix=no
17280 need_version=no
17281 soname_spec='${libname}${release}${shared_ext}$major'
17282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17283 shlibpath_var=LD_LIBRARY_PATH
17284 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17285 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17286 ;;
17287
17288 rdos*)
17289 dynamic_linker=no
17290 ;;
17291
17292 solaris*)
17293 version_type=linux
17294 need_lib_prefix=no
17295 need_version=no
17296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17297 soname_spec='${libname}${release}${shared_ext}$major'
17298 shlibpath_var=LD_LIBRARY_PATH
17299 shlibpath_overrides_runpath=yes
17300 hardcode_into_libs=yes
17301 # ldd complains unless libraries are executable
17302 postinstall_cmds='chmod +x $lib'
17303 ;;
17304
17305 sunos4*)
17306 version_type=sunos
17307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17308 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17309 shlibpath_var=LD_LIBRARY_PATH
17310 shlibpath_overrides_runpath=yes
17311 if test "$with_gnu_ld" = yes; then
17312 need_lib_prefix=no
17313 fi
17314 need_version=yes
17315 ;;
17316
17317 sysv4 | sysv4.3*)
17318 version_type=linux
17319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17320 soname_spec='${libname}${release}${shared_ext}$major'
17321 shlibpath_var=LD_LIBRARY_PATH
17322 case $host_vendor in
17323 sni)
17324 shlibpath_overrides_runpath=no
17325 need_lib_prefix=no
17326 runpath_var=LD_RUN_PATH
17327 ;;
17328 siemens)
17329 need_lib_prefix=no
17330 ;;
17331 motorola)
17332 need_lib_prefix=no
17333 need_version=no
17334 shlibpath_overrides_runpath=no
17335 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17336 ;;
17337 esac
17338 ;;
17339
17340 sysv4*MP*)
17341 if test -d /usr/nec ;then
17342 version_type=linux
17343 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17344 soname_spec='$libname${shared_ext}.$major'
17345 shlibpath_var=LD_LIBRARY_PATH
17346 fi
17347 ;;
17348
17349 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17350 version_type=freebsd-elf
17351 need_lib_prefix=no
17352 need_version=no
17353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17354 soname_spec='${libname}${release}${shared_ext}$major'
17355 shlibpath_var=LD_LIBRARY_PATH
17356 shlibpath_overrides_runpath=yes
17357 hardcode_into_libs=yes
17358 if test "$with_gnu_ld" = yes; then
17359 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17360 else
17361 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17362 case $host_os in
17363 sco3.2v5*)
17364 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17365 ;;
17366 esac
17367 fi
17368 sys_lib_dlsearch_path_spec='/usr/lib'
17369 ;;
17370
17371 tpf*)
17372 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17373 version_type=linux
17374 need_lib_prefix=no
17375 need_version=no
17376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17377 shlibpath_var=LD_LIBRARY_PATH
17378 shlibpath_overrides_runpath=no
17379 hardcode_into_libs=yes
17380 ;;
17381
17382 uts4*)
17383 version_type=linux
17384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17385 soname_spec='${libname}${release}${shared_ext}$major'
17386 shlibpath_var=LD_LIBRARY_PATH
17387 ;;
17388
17389 *)
17390 dynamic_linker=no
17391 ;;
17392 esac
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17394 $as_echo "$dynamic_linker" >&6; }
17395 test "$dynamic_linker" = no && can_build_shared=no
17396
17397 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17398 if test "$GCC" = yes; then
17399 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17400 fi
17401
17402 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17403 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17404 fi
17405 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17406 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17407 fi
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17501 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17502 hardcode_action=
17503 if test -n "$hardcode_libdir_flag_spec" ||
17504 test -n "$runpath_var" ||
17505 test "X$hardcode_automatic" = "Xyes" ; then
17506
17507 # We can hardcode non-existent directories.
17508 if test "$hardcode_direct" != no &&
17509 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17510 # have to relink, otherwise we might link with an installed library
17511 # when we should be linking with a yet-to-be-installed one
17512 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17513 test "$hardcode_minus_L" != no; then
17514 # Linking always hardcodes the temporary library directory.
17515 hardcode_action=relink
17516 else
17517 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17518 hardcode_action=immediate
17519 fi
17520 else
17521 # We cannot hardcode anything, or else we can only hardcode existing
17522 # directories.
17523 hardcode_action=unsupported
17524 fi
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17526 $as_echo "$hardcode_action" >&6; }
17527
17528 if test "$hardcode_action" = relink ||
17529 test "$inherit_rpath" = yes; then
17530 # Fast installation is not supported
17531 enable_fast_install=no
17532 elif test "$shlibpath_overrides_runpath" = yes ||
17533 test "$enable_shared" = no; then
17534 # Fast installation is not necessary
17535 enable_fast_install=needless
17536 fi
17537
17538
17539
17540
17541
17542
17543 if test "x$enable_dlopen" != xyes; then
17544 enable_dlopen=unknown
17545 enable_dlopen_self=unknown
17546 enable_dlopen_self_static=unknown
17547 else
17548 lt_cv_dlopen=no
17549 lt_cv_dlopen_libs=
17550
17551 case $host_os in
17552 beos*)
17553 lt_cv_dlopen="load_add_on"
17554 lt_cv_dlopen_libs=
17555 lt_cv_dlopen_self=yes
17556 ;;
17557
17558 mingw* | pw32* | cegcc*)
17559 lt_cv_dlopen="LoadLibrary"
17560 lt_cv_dlopen_libs=
17561 ;;
17562
17563 cygwin*)
17564 lt_cv_dlopen="dlopen"
17565 lt_cv_dlopen_libs=
17566 ;;
17567
17568 darwin*)
17569 # if libdl is installed we need to link against it
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17571 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17572 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17573 $as_echo_n "(cached) " >&6
17574 else
17575 ac_check_lib_save_LIBS=$LIBS
17576 LIBS="-ldl $LIBS"
17577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17578 /* end confdefs.h. */
17579
17580 /* Override any GCC internal prototype to avoid an error.
17581 Use char because int might match the return type of a GCC
17582 builtin and then its argument prototype would still apply. */
17583 #ifdef __cplusplus
17584 extern "C"
17585 #endif
17586 char dlopen ();
17587 int
17588 main ()
17589 {
17590 return dlopen ();
17591 ;
17592 return 0;
17593 }
17594 _ACEOF
17595 if ac_fn_c_try_link "$LINENO"; then :
17596 ac_cv_lib_dl_dlopen=yes
17597 else
17598 ac_cv_lib_dl_dlopen=no
17599 fi
17600 rm -f core conftest.err conftest.$ac_objext \
17601 conftest$ac_exeext conftest.$ac_ext
17602 LIBS=$ac_check_lib_save_LIBS
17603 fi
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17605 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17606 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17607 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17608 else
17609
17610 lt_cv_dlopen="dyld"
17611 lt_cv_dlopen_libs=
17612 lt_cv_dlopen_self=yes
17613
17614 fi
17615
17616 ;;
17617
17618 *)
17619 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17620 if test "x$ac_cv_func_shl_load" = x""yes; then :
17621 lt_cv_dlopen="shl_load"
17622 else
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17624 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17625 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17626 $as_echo_n "(cached) " >&6
17627 else
17628 ac_check_lib_save_LIBS=$LIBS
17629 LIBS="-ldld $LIBS"
17630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17631 /* end confdefs.h. */
17632
17633 /* Override any GCC internal prototype to avoid an error.
17634 Use char because int might match the return type of a GCC
17635 builtin and then its argument prototype would still apply. */
17636 #ifdef __cplusplus
17637 extern "C"
17638 #endif
17639 char shl_load ();
17640 int
17641 main ()
17642 {
17643 return shl_load ();
17644 ;
17645 return 0;
17646 }
17647 _ACEOF
17648 if ac_fn_c_try_link "$LINENO"; then :
17649 ac_cv_lib_dld_shl_load=yes
17650 else
17651 ac_cv_lib_dld_shl_load=no
17652 fi
17653 rm -f core conftest.err conftest.$ac_objext \
17654 conftest$ac_exeext conftest.$ac_ext
17655 LIBS=$ac_check_lib_save_LIBS
17656 fi
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17658 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17659 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17660 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17661 else
17662 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17663 if test "x$ac_cv_func_dlopen" = x""yes; then :
17664 lt_cv_dlopen="dlopen"
17665 else
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17667 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17668 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17669 $as_echo_n "(cached) " >&6
17670 else
17671 ac_check_lib_save_LIBS=$LIBS
17672 LIBS="-ldl $LIBS"
17673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17674 /* end confdefs.h. */
17675
17676 /* Override any GCC internal prototype to avoid an error.
17677 Use char because int might match the return type of a GCC
17678 builtin and then its argument prototype would still apply. */
17679 #ifdef __cplusplus
17680 extern "C"
17681 #endif
17682 char dlopen ();
17683 int
17684 main ()
17685 {
17686 return dlopen ();
17687 ;
17688 return 0;
17689 }
17690 _ACEOF
17691 if ac_fn_c_try_link "$LINENO"; then :
17692 ac_cv_lib_dl_dlopen=yes
17693 else
17694 ac_cv_lib_dl_dlopen=no
17695 fi
17696 rm -f core conftest.err conftest.$ac_objext \
17697 conftest$ac_exeext conftest.$ac_ext
17698 LIBS=$ac_check_lib_save_LIBS
17699 fi
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17701 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17702 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17703 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17704 else
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17706 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17707 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17708 $as_echo_n "(cached) " >&6
17709 else
17710 ac_check_lib_save_LIBS=$LIBS
17711 LIBS="-lsvld $LIBS"
17712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17713 /* end confdefs.h. */
17714
17715 /* Override any GCC internal prototype to avoid an error.
17716 Use char because int might match the return type of a GCC
17717 builtin and then its argument prototype would still apply. */
17718 #ifdef __cplusplus
17719 extern "C"
17720 #endif
17721 char dlopen ();
17722 int
17723 main ()
17724 {
17725 return dlopen ();
17726 ;
17727 return 0;
17728 }
17729 _ACEOF
17730 if ac_fn_c_try_link "$LINENO"; then :
17731 ac_cv_lib_svld_dlopen=yes
17732 else
17733 ac_cv_lib_svld_dlopen=no
17734 fi
17735 rm -f core conftest.err conftest.$ac_objext \
17736 conftest$ac_exeext conftest.$ac_ext
17737 LIBS=$ac_check_lib_save_LIBS
17738 fi
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17740 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17741 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17742 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17743 else
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17745 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17746 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17747 $as_echo_n "(cached) " >&6
17748 else
17749 ac_check_lib_save_LIBS=$LIBS
17750 LIBS="-ldld $LIBS"
17751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17752 /* end confdefs.h. */
17753
17754 /* Override any GCC internal prototype to avoid an error.
17755 Use char because int might match the return type of a GCC
17756 builtin and then its argument prototype would still apply. */
17757 #ifdef __cplusplus
17758 extern "C"
17759 #endif
17760 char dld_link ();
17761 int
17762 main ()
17763 {
17764 return dld_link ();
17765 ;
17766 return 0;
17767 }
17768 _ACEOF
17769 if ac_fn_c_try_link "$LINENO"; then :
17770 ac_cv_lib_dld_dld_link=yes
17771 else
17772 ac_cv_lib_dld_dld_link=no
17773 fi
17774 rm -f core conftest.err conftest.$ac_objext \
17775 conftest$ac_exeext conftest.$ac_ext
17776 LIBS=$ac_check_lib_save_LIBS
17777 fi
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17779 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17780 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17781 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17782 fi
17783
17784
17785 fi
17786
17787
17788 fi
17789
17790
17791 fi
17792
17793
17794 fi
17795
17796
17797 fi
17798
17799 ;;
17800 esac
17801
17802 if test "x$lt_cv_dlopen" != xno; then
17803 enable_dlopen=yes
17804 else
17805 enable_dlopen=no
17806 fi
17807
17808 case $lt_cv_dlopen in
17809 dlopen)
17810 save_CPPFLAGS="$CPPFLAGS"
17811 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17812
17813 save_LDFLAGS="$LDFLAGS"
17814 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17815
17816 save_LIBS="$LIBS"
17817 LIBS="$lt_cv_dlopen_libs $LIBS"
17818
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17820 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17821 if test "${lt_cv_dlopen_self+set}" = set; then :
17822 $as_echo_n "(cached) " >&6
17823 else
17824 if test "$cross_compiling" = yes; then :
17825 lt_cv_dlopen_self=cross
17826 else
17827 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17828 lt_status=$lt_dlunknown
17829 cat > conftest.$ac_ext <<_LT_EOF
17830 #line 17830 "configure"
17831 #include "confdefs.h"
17832
17833 #if HAVE_DLFCN_H
17834 #include <dlfcn.h>
17835 #endif
17836
17837 #include <stdio.h>
17838
17839 #ifdef RTLD_GLOBAL
17840 # define LT_DLGLOBAL RTLD_GLOBAL
17841 #else
17842 # ifdef DL_GLOBAL
17843 # define LT_DLGLOBAL DL_GLOBAL
17844 # else
17845 # define LT_DLGLOBAL 0
17846 # endif
17847 #endif
17848
17849 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17850 find out it does not work in some platform. */
17851 #ifndef LT_DLLAZY_OR_NOW
17852 # ifdef RTLD_LAZY
17853 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17854 # else
17855 # ifdef DL_LAZY
17856 # define LT_DLLAZY_OR_NOW DL_LAZY
17857 # else
17858 # ifdef RTLD_NOW
17859 # define LT_DLLAZY_OR_NOW RTLD_NOW
17860 # else
17861 # ifdef DL_NOW
17862 # define LT_DLLAZY_OR_NOW DL_NOW
17863 # else
17864 # define LT_DLLAZY_OR_NOW 0
17865 # endif
17866 # endif
17867 # endif
17868 # endif
17869 #endif
17870
17871 /* When -fvisbility=hidden is used, assume the code has been annotated
17872 correspondingly for the symbols needed. */
17873 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17874 void fnord () __attribute__((visibility("default")));
17875 #endif
17876
17877 void fnord () { int i=42; }
17878 int main ()
17879 {
17880 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17881 int status = $lt_dlunknown;
17882
17883 if (self)
17884 {
17885 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17886 else
17887 {
17888 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17889 else puts (dlerror ());
17890 }
17891 /* dlclose (self); */
17892 }
17893 else
17894 puts (dlerror ());
17895
17896 return status;
17897 }
17898 _LT_EOF
17899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17900 (eval $ac_link) 2>&5
17901 ac_status=$?
17902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17903 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17904 (./conftest; exit; ) >&5 2>/dev/null
17905 lt_status=$?
17906 case x$lt_status in
17907 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17908 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17909 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17910 esac
17911 else :
17912 # compilation failed
17913 lt_cv_dlopen_self=no
17914 fi
17915 fi
17916 rm -fr conftest*
17917
17918
17919 fi
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17921 $as_echo "$lt_cv_dlopen_self" >&6; }
17922
17923 if test "x$lt_cv_dlopen_self" = xyes; then
17924 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17926 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17927 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17928 $as_echo_n "(cached) " >&6
17929 else
17930 if test "$cross_compiling" = yes; then :
17931 lt_cv_dlopen_self_static=cross
17932 else
17933 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17934 lt_status=$lt_dlunknown
17935 cat > conftest.$ac_ext <<_LT_EOF
17936 #line 17936 "configure"
17937 #include "confdefs.h"
17938
17939 #if HAVE_DLFCN_H
17940 #include <dlfcn.h>
17941 #endif
17942
17943 #include <stdio.h>
17944
17945 #ifdef RTLD_GLOBAL
17946 # define LT_DLGLOBAL RTLD_GLOBAL
17947 #else
17948 # ifdef DL_GLOBAL
17949 # define LT_DLGLOBAL DL_GLOBAL
17950 # else
17951 # define LT_DLGLOBAL 0
17952 # endif
17953 #endif
17954
17955 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17956 find out it does not work in some platform. */
17957 #ifndef LT_DLLAZY_OR_NOW
17958 # ifdef RTLD_LAZY
17959 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17960 # else
17961 # ifdef DL_LAZY
17962 # define LT_DLLAZY_OR_NOW DL_LAZY
17963 # else
17964 # ifdef RTLD_NOW
17965 # define LT_DLLAZY_OR_NOW RTLD_NOW
17966 # else
17967 # ifdef DL_NOW
17968 # define LT_DLLAZY_OR_NOW DL_NOW
17969 # else
17970 # define LT_DLLAZY_OR_NOW 0
17971 # endif
17972 # endif
17973 # endif
17974 # endif
17975 #endif
17976
17977 /* When -fvisbility=hidden is used, assume the code has been annotated
17978 correspondingly for the symbols needed. */
17979 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17980 void fnord () __attribute__((visibility("default")));
17981 #endif
17982
17983 void fnord () { int i=42; }
17984 int main ()
17985 {
17986 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17987 int status = $lt_dlunknown;
17988
17989 if (self)
17990 {
17991 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17992 else
17993 {
17994 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17995 else puts (dlerror ());
17996 }
17997 /* dlclose (self); */
17998 }
17999 else
18000 puts (dlerror ());
18001
18002 return status;
18003 }
18004 _LT_EOF
18005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18006 (eval $ac_link) 2>&5
18007 ac_status=$?
18008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18009 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18010 (./conftest; exit; ) >&5 2>/dev/null
18011 lt_status=$?
18012 case x$lt_status in
18013 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18014 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18015 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18016 esac
18017 else :
18018 # compilation failed
18019 lt_cv_dlopen_self_static=no
18020 fi
18021 fi
18022 rm -fr conftest*
18023
18024
18025 fi
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18027 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18028 fi
18029
18030 CPPFLAGS="$save_CPPFLAGS"
18031 LDFLAGS="$save_LDFLAGS"
18032 LIBS="$save_LIBS"
18033 ;;
18034 esac
18035
18036 case $lt_cv_dlopen_self in
18037 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18038 *) enable_dlopen_self=unknown ;;
18039 esac
18040
18041 case $lt_cv_dlopen_self_static in
18042 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18043 *) enable_dlopen_self_static=unknown ;;
18044 esac
18045 fi
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063 striplib=
18064 old_striplib=
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18066 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18067 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18068 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18069 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18071 $as_echo "yes" >&6; }
18072 else
18073 # FIXME - insert some real tests, host_os isn't really good enough
18074 case $host_os in
18075 darwin*)
18076 if test -n "$STRIP" ; then
18077 striplib="$STRIP -x"
18078 old_striplib="$STRIP -S"
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18080 $as_echo "yes" >&6; }
18081 else
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18083 $as_echo "no" >&6; }
18084 fi
18085 ;;
18086 *)
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18088 $as_echo "no" >&6; }
18089 ;;
18090 esac
18091 fi
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104 # Report which library types will actually be built
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18106 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18108 $as_echo "$can_build_shared" >&6; }
18109
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18111 $as_echo_n "checking whether to build shared libraries... " >&6; }
18112 test "$can_build_shared" = "no" && enable_shared=no
18113
18114 # On AIX, shared libraries and static libraries use the same namespace, and
18115 # are all built from PIC.
18116 case $host_os in
18117 aix3*)
18118 test "$enable_shared" = yes && enable_static=no
18119 if test -n "$RANLIB"; then
18120 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18121 postinstall_cmds='$RANLIB $lib'
18122 fi
18123 ;;
18124
18125 aix[4-9]*)
18126 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18127 test "$enable_shared" = yes && enable_static=no
18128 fi
18129 ;;
18130 esac
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18132 $as_echo "$enable_shared" >&6; }
18133
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18135 $as_echo_n "checking whether to build static libraries... " >&6; }
18136 # Make sure either enable_shared or enable_static is yes.
18137 test "$enable_shared" = yes || enable_static=yes
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18139 $as_echo "$enable_static" >&6; }
18140
18141
18142
18143
18144 fi
18145 ac_ext=c
18146 ac_cpp='$CPP $CPPFLAGS'
18147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18150
18151 CC="$lt_save_CC"
18152
18153 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18154 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18155 (test "X$CXX" != "Xg++"))) ; then
18156 ac_ext=cpp
18157 ac_cpp='$CXXCPP $CPPFLAGS'
18158 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18159 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18160 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18162 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18163 if test -z "$CXXCPP"; then
18164 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18165 $as_echo_n "(cached) " >&6
18166 else
18167 # Double quotes because CXXCPP needs to be expanded
18168 for CXXCPP in "$CXX -E" "/lib/cpp"
18169 do
18170 ac_preproc_ok=false
18171 for ac_cxx_preproc_warn_flag in '' yes
18172 do
18173 # Use a header file that comes with gcc, so configuring glibc
18174 # with a fresh cross-compiler works.
18175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18176 # <limits.h> exists even on freestanding compilers.
18177 # On the NeXT, cc -E runs the code through the compiler's parser,
18178 # not just through cpp. "Syntax error" is here to catch this case.
18179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18180 /* end confdefs.h. */
18181 #ifdef __STDC__
18182 # include <limits.h>
18183 #else
18184 # include <assert.h>
18185 #endif
18186 Syntax error
18187 _ACEOF
18188 if ac_fn_cxx_try_cpp "$LINENO"; then :
18189
18190 else
18191 # Broken: fails on valid input.
18192 continue
18193 fi
18194 rm -f conftest.err conftest.$ac_ext
18195
18196 # OK, works on sane cases. Now check whether nonexistent headers
18197 # can be detected and how.
18198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18199 /* end confdefs.h. */
18200 #include <ac_nonexistent.h>
18201 _ACEOF
18202 if ac_fn_cxx_try_cpp "$LINENO"; then :
18203 # Broken: success on invalid input.
18204 continue
18205 else
18206 # Passes both tests.
18207 ac_preproc_ok=:
18208 break
18209 fi
18210 rm -f conftest.err conftest.$ac_ext
18211
18212 done
18213 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18214 rm -f conftest.err conftest.$ac_ext
18215 if $ac_preproc_ok; then :
18216 break
18217 fi
18218
18219 done
18220 ac_cv_prog_CXXCPP=$CXXCPP
18221
18222 fi
18223 CXXCPP=$ac_cv_prog_CXXCPP
18224 else
18225 ac_cv_prog_CXXCPP=$CXXCPP
18226 fi
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18228 $as_echo "$CXXCPP" >&6; }
18229 ac_preproc_ok=false
18230 for ac_cxx_preproc_warn_flag in '' yes
18231 do
18232 # Use a header file that comes with gcc, so configuring glibc
18233 # with a fresh cross-compiler works.
18234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18235 # <limits.h> exists even on freestanding compilers.
18236 # On the NeXT, cc -E runs the code through the compiler's parser,
18237 # not just through cpp. "Syntax error" is here to catch this case.
18238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18239 /* end confdefs.h. */
18240 #ifdef __STDC__
18241 # include <limits.h>
18242 #else
18243 # include <assert.h>
18244 #endif
18245 Syntax error
18246 _ACEOF
18247 if ac_fn_cxx_try_cpp "$LINENO"; then :
18248
18249 else
18250 # Broken: fails on valid input.
18251 continue
18252 fi
18253 rm -f conftest.err conftest.$ac_ext
18254
18255 # OK, works on sane cases. Now check whether nonexistent headers
18256 # can be detected and how.
18257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18258 /* end confdefs.h. */
18259 #include <ac_nonexistent.h>
18260 _ACEOF
18261 if ac_fn_cxx_try_cpp "$LINENO"; then :
18262 # Broken: success on invalid input.
18263 continue
18264 else
18265 # Passes both tests.
18266 ac_preproc_ok=:
18267 break
18268 fi
18269 rm -f conftest.err conftest.$ac_ext
18270
18271 done
18272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18273 rm -f conftest.err conftest.$ac_ext
18274 if $ac_preproc_ok; then :
18275
18276 else
18277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18279 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18280 See \`config.log' for more details." "$LINENO" 5; }
18281 fi
18282
18283 ac_ext=c
18284 ac_cpp='$CPP $CPPFLAGS'
18285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18288
18289 else
18290 _lt_caught_CXX_error=yes
18291 fi
18292
18293 ac_ext=cpp
18294 ac_cpp='$CXXCPP $CPPFLAGS'
18295 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18296 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18297 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18298
18299 archive_cmds_need_lc_CXX=no
18300 allow_undefined_flag_CXX=
18301 always_export_symbols_CXX=no
18302 archive_expsym_cmds_CXX=
18303 compiler_needs_object_CXX=no
18304 export_dynamic_flag_spec_CXX=
18305 hardcode_direct_CXX=no
18306 hardcode_direct_absolute_CXX=no
18307 hardcode_libdir_flag_spec_CXX=
18308 hardcode_libdir_flag_spec_ld_CXX=
18309 hardcode_libdir_separator_CXX=
18310 hardcode_minus_L_CXX=no
18311 hardcode_shlibpath_var_CXX=unsupported
18312 hardcode_automatic_CXX=no
18313 inherit_rpath_CXX=no
18314 module_cmds_CXX=
18315 module_expsym_cmds_CXX=
18316 link_all_deplibs_CXX=unknown
18317 old_archive_cmds_CXX=$old_archive_cmds
18318 reload_flag_CXX=$reload_flag
18319 reload_cmds_CXX=$reload_cmds
18320 no_undefined_flag_CXX=
18321 whole_archive_flag_spec_CXX=
18322 enable_shared_with_static_runtimes_CXX=no
18323
18324 # Source file extension for C++ test sources.
18325 ac_ext=cpp
18326
18327 # Object file extension for compiled C++ test sources.
18328 objext=o
18329 objext_CXX=$objext
18330
18331 # No sense in running all these tests if we already determined that
18332 # the CXX compiler isn't working. Some variables (like enable_shared)
18333 # are currently assumed to apply to all compilers on this platform,
18334 # and will be corrupted by setting them based on a non-working compiler.
18335 if test "$_lt_caught_CXX_error" != yes; then
18336 # Code to be used in simple compile tests
18337 lt_simple_compile_test_code="int some_variable = 0;"
18338
18339 # Code to be used in simple link tests
18340 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18341
18342 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18343
18344
18345
18346
18347
18348
18349 # If no C compiler was specified, use CC.
18350 LTCC=${LTCC-"$CC"}
18351
18352 # If no C compiler flags were specified, use CFLAGS.
18353 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18354
18355 # Allow CC to be a program name with arguments.
18356 compiler=$CC
18357
18358
18359 # save warnings/boilerplate of simple test code
18360 ac_outfile=conftest.$ac_objext
18361 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18362 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18363 _lt_compiler_boilerplate=`cat conftest.err`
18364 $RM conftest*
18365
18366 ac_outfile=conftest.$ac_objext
18367 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18368 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18369 _lt_linker_boilerplate=`cat conftest.err`
18370 $RM -r conftest*
18371
18372
18373 # Allow CC to be a program name with arguments.
18374 lt_save_CC=$CC
18375 lt_save_LD=$LD
18376 lt_save_GCC=$GCC
18377 GCC=$GXX
18378 lt_save_with_gnu_ld=$with_gnu_ld
18379 lt_save_path_LD=$lt_cv_path_LD
18380 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18381 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18382 else
18383 $as_unset lt_cv_prog_gnu_ld
18384 fi
18385 if test -n "${lt_cv_path_LDCXX+set}"; then
18386 lt_cv_path_LD=$lt_cv_path_LDCXX
18387 else
18388 $as_unset lt_cv_path_LD
18389 fi
18390 test -z "${LDCXX+set}" || LD=$LDCXX
18391 CC=${CXX-"c++"}
18392 compiler=$CC
18393 compiler_CXX=$CC
18394 for cc_temp in $compiler""; do
18395 case $cc_temp in
18396 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18397 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18398 \-*) ;;
18399 *) break;;
18400 esac
18401 done
18402 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18403
18404
18405 if test -n "$compiler"; then
18406 # We don't want -fno-exception when compiling C++ code, so set the
18407 # no_builtin_flag separately
18408 if test "$GXX" = yes; then
18409 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18410 else
18411 lt_prog_compiler_no_builtin_flag_CXX=
18412 fi
18413
18414 if test "$GXX" = yes; then
18415 # Set up default GNU C++ configuration
18416
18417
18418
18419 # Check whether --with-gnu-ld was given.
18420 if test "${with_gnu_ld+set}" = set; then :
18421 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18422 else
18423 with_gnu_ld=no
18424 fi
18425
18426 ac_prog=ld
18427 if test "$GCC" = yes; then
18428 # Check if gcc -print-prog-name=ld gives a path.
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18430 $as_echo_n "checking for ld used by $CC... " >&6; }
18431 case $host in
18432 *-*-mingw*)
18433 # gcc leaves a trailing carriage return which upsets mingw
18434 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18435 *)
18436 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18437 esac
18438 case $ac_prog in
18439 # Accept absolute paths.
18440 [\\/]* | ?:[\\/]*)
18441 re_direlt='/[^/][^/]*/\.\./'
18442 # Canonicalize the pathname of ld
18443 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18444 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18445 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18446 done
18447 test -z "$LD" && LD="$ac_prog"
18448 ;;
18449 "")
18450 # If it fails, then pretend we aren't using GCC.
18451 ac_prog=ld
18452 ;;
18453 *)
18454 # If it is relative, then search for the first ld in PATH.
18455 with_gnu_ld=unknown
18456 ;;
18457 esac
18458 elif test "$with_gnu_ld" = yes; then
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18460 $as_echo_n "checking for GNU ld... " >&6; }
18461 else
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18463 $as_echo_n "checking for non-GNU ld... " >&6; }
18464 fi
18465 if test "${lt_cv_path_LD+set}" = set; then :
18466 $as_echo_n "(cached) " >&6
18467 else
18468 if test -z "$LD"; then
18469 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18470 for ac_dir in $PATH; do
18471 IFS="$lt_save_ifs"
18472 test -z "$ac_dir" && ac_dir=.
18473 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18474 lt_cv_path_LD="$ac_dir/$ac_prog"
18475 # Check to see if the program is GNU ld. I'd rather use --version,
18476 # but apparently some variants of GNU ld only accept -v.
18477 # Break only if it was the GNU/non-GNU ld that we prefer.
18478 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18479 *GNU* | *'with BFD'*)
18480 test "$with_gnu_ld" != no && break
18481 ;;
18482 *)
18483 test "$with_gnu_ld" != yes && break
18484 ;;
18485 esac
18486 fi
18487 done
18488 IFS="$lt_save_ifs"
18489 else
18490 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18491 fi
18492 fi
18493
18494 LD="$lt_cv_path_LD"
18495 if test -n "$LD"; then
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18497 $as_echo "$LD" >&6; }
18498 else
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18500 $as_echo "no" >&6; }
18501 fi
18502 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18504 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18505 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18506 $as_echo_n "(cached) " >&6
18507 else
18508 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18509 case `$LD -v 2>&1 </dev/null` in
18510 *GNU* | *'with BFD'*)
18511 lt_cv_prog_gnu_ld=yes
18512 ;;
18513 *)
18514 lt_cv_prog_gnu_ld=no
18515 ;;
18516 esac
18517 fi
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18519 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18520 with_gnu_ld=$lt_cv_prog_gnu_ld
18521
18522
18523
18524
18525
18526
18527
18528 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18529 # archiving commands below assume that GNU ld is being used.
18530 if test "$with_gnu_ld" = yes; then
18531 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18532 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18533
18534 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18535 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18536
18537 # If archive_cmds runs LD, not CC, wlarc should be empty
18538 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18539 # investigate it a little bit more. (MM)
18540 wlarc='${wl}'
18541
18542 # ancient GNU ld didn't support --whole-archive et. al.
18543 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18544 $GREP 'no-whole-archive' > /dev/null; then
18545 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18546 else
18547 whole_archive_flag_spec_CXX=
18548 fi
18549 else
18550 with_gnu_ld=no
18551 wlarc=
18552
18553 # A generic and very simple default shared library creation
18554 # command for GNU C++ for the case where it uses the native
18555 # linker, instead of GNU ld. If possible, this setting should
18556 # overridden to take advantage of the native linker features on
18557 # the platform it is being used on.
18558 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18559 fi
18560
18561 # Commands to make compiler produce verbose output that lists
18562 # what "hidden" libraries, object files and flags are used when
18563 # linking a shared library.
18564 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18565
18566 else
18567 GXX=no
18568 with_gnu_ld=no
18569 wlarc=
18570 fi
18571
18572 # PORTME: fill in a description of your system's C++ link characteristics
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18574 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18575 ld_shlibs_CXX=yes
18576 case $host_os in
18577 aix3*)
18578 # FIXME: insert proper C++ library support
18579 ld_shlibs_CXX=no
18580 ;;
18581 aix[4-9]*)
18582 if test "$host_cpu" = ia64; then
18583 # On IA64, the linker does run time linking by default, so we don't
18584 # have to do anything special.
18585 aix_use_runtimelinking=no
18586 exp_sym_flag='-Bexport'
18587 no_entry_flag=""
18588 else
18589 aix_use_runtimelinking=no
18590
18591 # Test if we are trying to use run time linking or normal
18592 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18593 # need to do runtime linking.
18594 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18595 for ld_flag in $LDFLAGS; do
18596 case $ld_flag in
18597 *-brtl*)
18598 aix_use_runtimelinking=yes
18599 break
18600 ;;
18601 esac
18602 done
18603 ;;
18604 esac
18605
18606 exp_sym_flag='-bexport'
18607 no_entry_flag='-bnoentry'
18608 fi
18609
18610 # When large executables or shared objects are built, AIX ld can
18611 # have problems creating the table of contents. If linking a library
18612 # or program results in "error TOC overflow" add -mminimal-toc to
18613 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18614 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18615
18616 archive_cmds_CXX=''
18617 hardcode_direct_CXX=yes
18618 hardcode_direct_absolute_CXX=yes
18619 hardcode_libdir_separator_CXX=':'
18620 link_all_deplibs_CXX=yes
18621 file_list_spec_CXX='${wl}-f,'
18622
18623 if test "$GXX" = yes; then
18624 case $host_os in aix4.[012]|aix4.[012].*)
18625 # We only want to do this on AIX 4.2 and lower, the check
18626 # below for broken collect2 doesn't work under 4.3+
18627 collect2name=`${CC} -print-prog-name=collect2`
18628 if test -f "$collect2name" &&
18629 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18630 then
18631 # We have reworked collect2
18632 :
18633 else
18634 # We have old collect2
18635 hardcode_direct_CXX=unsupported
18636 # It fails to find uninstalled libraries when the uninstalled
18637 # path is not listed in the libpath. Setting hardcode_minus_L
18638 # to unsupported forces relinking
18639 hardcode_minus_L_CXX=yes
18640 hardcode_libdir_flag_spec_CXX='-L$libdir'
18641 hardcode_libdir_separator_CXX=
18642 fi
18643 esac
18644 shared_flag='-shared'
18645 if test "$aix_use_runtimelinking" = yes; then
18646 shared_flag="$shared_flag "'${wl}-G'
18647 fi
18648 else
18649 # not using gcc
18650 if test "$host_cpu" = ia64; then
18651 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18652 # chokes on -Wl,-G. The following line is correct:
18653 shared_flag='-G'
18654 else
18655 if test "$aix_use_runtimelinking" = yes; then
18656 shared_flag='${wl}-G'
18657 else
18658 shared_flag='${wl}-bM:SRE'
18659 fi
18660 fi
18661 fi
18662
18663 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18664 # It seems that -bexpall does not export symbols beginning with
18665 # underscore (_), so it is better to generate a list of symbols to
18666 # export.
18667 always_export_symbols_CXX=yes
18668 if test "$aix_use_runtimelinking" = yes; then
18669 # Warning - without using the other runtime loading flags (-brtl),
18670 # -berok will link without error, but may produce a broken library.
18671 allow_undefined_flag_CXX='-berok'
18672 # Determine the default libpath from the value encoded in an empty
18673 # executable.
18674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18675 /* end confdefs.h. */
18676
18677 int
18678 main ()
18679 {
18680
18681 ;
18682 return 0;
18683 }
18684 _ACEOF
18685 if ac_fn_cxx_try_link "$LINENO"; then :
18686
18687 lt_aix_libpath_sed='
18688 /Import File Strings/,/^$/ {
18689 /^0/ {
18690 s/^0 *\(.*\)$/\1/
18691 p
18692 }
18693 }'
18694 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18695 # Check for a 64-bit object if we didn't find anything.
18696 if test -z "$aix_libpath"; then
18697 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18698 fi
18699 fi
18700 rm -f core conftest.err conftest.$ac_objext \
18701 conftest$ac_exeext conftest.$ac_ext
18702 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18703
18704 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18705
18706 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"
18707 else
18708 if test "$host_cpu" = ia64; then
18709 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18710 allow_undefined_flag_CXX="-z nodefs"
18711 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"
18712 else
18713 # Determine the default libpath from the value encoded in an
18714 # empty executable.
18715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18716 /* end confdefs.h. */
18717
18718 int
18719 main ()
18720 {
18721
18722 ;
18723 return 0;
18724 }
18725 _ACEOF
18726 if ac_fn_cxx_try_link "$LINENO"; then :
18727
18728 lt_aix_libpath_sed='
18729 /Import File Strings/,/^$/ {
18730 /^0/ {
18731 s/^0 *\(.*\)$/\1/
18732 p
18733 }
18734 }'
18735 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18736 # Check for a 64-bit object if we didn't find anything.
18737 if test -z "$aix_libpath"; then
18738 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18739 fi
18740 fi
18741 rm -f core conftest.err conftest.$ac_objext \
18742 conftest$ac_exeext conftest.$ac_ext
18743 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18744
18745 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18746 # Warning - without using the other run time loading flags,
18747 # -berok will link without error, but may produce a broken library.
18748 no_undefined_flag_CXX=' ${wl}-bernotok'
18749 allow_undefined_flag_CXX=' ${wl}-berok'
18750 if test "$with_gnu_ld" = yes; then
18751 # We only use this code for GNU lds that support --whole-archive.
18752 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18753 else
18754 # Exported symbols can be pulled into shared objects from archives
18755 whole_archive_flag_spec_CXX='$convenience'
18756 fi
18757 archive_cmds_need_lc_CXX=yes
18758 # This is similar to how AIX traditionally builds its shared
18759 # libraries.
18760 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'
18761 fi
18762 fi
18763 ;;
18764
18765 beos*)
18766 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18767 allow_undefined_flag_CXX=unsupported
18768 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18769 # support --undefined. This deserves some investigation. FIXME
18770 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18771 else
18772 ld_shlibs_CXX=no
18773 fi
18774 ;;
18775
18776 chorus*)
18777 case $cc_basename in
18778 *)
18779 # FIXME: insert proper C++ library support
18780 ld_shlibs_CXX=no
18781 ;;
18782 esac
18783 ;;
18784
18785 cygwin* | mingw* | pw32* | cegcc*)
18786 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18787 # as there is no search path for DLLs.
18788 hardcode_libdir_flag_spec_CXX='-L$libdir'
18789 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18790 allow_undefined_flag_CXX=unsupported
18791 always_export_symbols_CXX=no
18792 enable_shared_with_static_runtimes_CXX=yes
18793
18794 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18795 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'
18796 # If the export-symbols file already is a .def file (1st line
18797 # is EXPORTS), use it as is; otherwise, prepend...
18798 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18799 cp $export_symbols $output_objdir/$soname.def;
18800 else
18801 echo EXPORTS > $output_objdir/$soname.def;
18802 cat $export_symbols >> $output_objdir/$soname.def;
18803 fi~
18804 $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'
18805 else
18806 ld_shlibs_CXX=no
18807 fi
18808 ;;
18809 darwin* | rhapsody*)
18810
18811
18812 archive_cmds_need_lc_CXX=no
18813 hardcode_direct_CXX=no
18814 hardcode_automatic_CXX=yes
18815 hardcode_shlibpath_var_CXX=unsupported
18816 if test "$lt_cv_ld_force_load" = "yes"; then
18817 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\"`'
18818 else
18819 whole_archive_flag_spec_CXX=''
18820 fi
18821 link_all_deplibs_CXX=yes
18822 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18823 case $cc_basename in
18824 ifort*) _lt_dar_can_shared=yes ;;
18825 *) _lt_dar_can_shared=$GCC ;;
18826 esac
18827 if test "$_lt_dar_can_shared" = "yes"; then
18828 output_verbose_link_cmd=func_echo_all
18829 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}"
18830 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18831 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}"
18832 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}"
18833 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18834 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}"
18835 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}"
18836 fi
18837
18838 else
18839 ld_shlibs_CXX=no
18840 fi
18841
18842 ;;
18843
18844 dgux*)
18845 case $cc_basename in
18846 ec++*)
18847 # FIXME: insert proper C++ library support
18848 ld_shlibs_CXX=no
18849 ;;
18850 ghcx*)
18851 # Green Hills C++ Compiler
18852 # FIXME: insert proper C++ library support
18853 ld_shlibs_CXX=no
18854 ;;
18855 *)
18856 # FIXME: insert proper C++ library support
18857 ld_shlibs_CXX=no
18858 ;;
18859 esac
18860 ;;
18861
18862 freebsd[12]*)
18863 # C++ shared libraries reported to be fairly broken before
18864 # switch to ELF
18865 ld_shlibs_CXX=no
18866 ;;
18867
18868 freebsd-elf*)
18869 archive_cmds_need_lc_CXX=no
18870 ;;
18871
18872 freebsd* | dragonfly*)
18873 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18874 # conventions
18875 ld_shlibs_CXX=yes
18876 ;;
18877
18878 gnu*)
18879 ;;
18880
18881 haiku*)
18882 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18883 link_all_deplibs_CXX=yes
18884 ;;
18885
18886 hpux9*)
18887 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18888 hardcode_libdir_separator_CXX=:
18889 export_dynamic_flag_spec_CXX='${wl}-E'
18890 hardcode_direct_CXX=yes
18891 hardcode_minus_L_CXX=yes # Not in the search PATH,
18892 # but as the default
18893 # location of the library.
18894
18895 case $cc_basename in
18896 CC*)
18897 # FIXME: insert proper C++ library support
18898 ld_shlibs_CXX=no
18899 ;;
18900 aCC*)
18901 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'
18902 # Commands to make compiler produce verbose output that lists
18903 # what "hidden" libraries, object files and flags are used when
18904 # linking a shared library.
18905 #
18906 # There doesn't appear to be a way to prevent this compiler from
18907 # explicitly linking system object files so we need to strip them
18908 # from the output so that they don't get included in the library
18909 # dependencies.
18910 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"'
18911 ;;
18912 *)
18913 if test "$GXX" = yes; then
18914 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'
18915 else
18916 # FIXME: insert proper C++ library support
18917 ld_shlibs_CXX=no
18918 fi
18919 ;;
18920 esac
18921 ;;
18922
18923 hpux10*|hpux11*)
18924 if test $with_gnu_ld = no; then
18925 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18926 hardcode_libdir_separator_CXX=:
18927
18928 case $host_cpu in
18929 hppa*64*|ia64*)
18930 ;;
18931 *)
18932 export_dynamic_flag_spec_CXX='${wl}-E'
18933 ;;
18934 esac
18935 fi
18936 case $host_cpu in
18937 hppa*64*|ia64*)
18938 hardcode_direct_CXX=no
18939 hardcode_shlibpath_var_CXX=no
18940 ;;
18941 *)
18942 hardcode_direct_CXX=yes
18943 hardcode_direct_absolute_CXX=yes
18944 hardcode_minus_L_CXX=yes # Not in the search PATH,
18945 # but as the default
18946 # location of the library.
18947 ;;
18948 esac
18949
18950 case $cc_basename in
18951 CC*)
18952 # FIXME: insert proper C++ library support
18953 ld_shlibs_CXX=no
18954 ;;
18955 aCC*)
18956 case $host_cpu in
18957 hppa*64*)
18958 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18959 ;;
18960 ia64*)
18961 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18962 ;;
18963 *)
18964 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18965 ;;
18966 esac
18967 # Commands to make compiler produce verbose output that lists
18968 # what "hidden" libraries, object files and flags are used when
18969 # linking a shared library.
18970 #
18971 # There doesn't appear to be a way to prevent this compiler from
18972 # explicitly linking system object files so we need to strip them
18973 # from the output so that they don't get included in the library
18974 # dependencies.
18975 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"'
18976 ;;
18977 *)
18978 if test "$GXX" = yes; then
18979 if test $with_gnu_ld = no; then
18980 case $host_cpu in
18981 hppa*64*)
18982 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18983 ;;
18984 ia64*)
18985 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18986 ;;
18987 *)
18988 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'
18989 ;;
18990 esac
18991 fi
18992 else
18993 # FIXME: insert proper C++ library support
18994 ld_shlibs_CXX=no
18995 fi
18996 ;;
18997 esac
18998 ;;
18999
19000 interix[3-9]*)
19001 hardcode_direct_CXX=no
19002 hardcode_shlibpath_var_CXX=no
19003 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19004 export_dynamic_flag_spec_CXX='${wl}-E'
19005 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19006 # Instead, shared libraries are loaded at an image base (0x10000000 by
19007 # default) and relocated if they conflict, which is a slow very memory
19008 # consuming and fragmenting process. To avoid this, we pick a random,
19009 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19010 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19011 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'
19012 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'
19013 ;;
19014 irix5* | irix6*)
19015 case $cc_basename in
19016 CC*)
19017 # SGI C++
19018 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'
19019
19020 # Archives containing C++ object files must be created using
19021 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19022 # necessary to make sure instantiated templates are included
19023 # in the archive.
19024 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19025 ;;
19026 *)
19027 if test "$GXX" = yes; then
19028 if test "$with_gnu_ld" = no; then
19029 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'
19030 else
19031 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'
19032 fi
19033 fi
19034 link_all_deplibs_CXX=yes
19035 ;;
19036 esac
19037 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19038 hardcode_libdir_separator_CXX=:
19039 inherit_rpath_CXX=yes
19040 ;;
19041
19042 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19043 case $cc_basename in
19044 KCC*)
19045 # Kuck and Associates, Inc. (KAI) C++ Compiler
19046
19047 # KCC will only create a shared library if the output file
19048 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19049 # to its proper name (with version) after linking.
19050 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'
19051 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'
19052 # Commands to make compiler produce verbose output that lists
19053 # what "hidden" libraries, object files and flags are used when
19054 # linking a shared library.
19055 #
19056 # There doesn't appear to be a way to prevent this compiler from
19057 # explicitly linking system object files so we need to strip them
19058 # from the output so that they don't get included in the library
19059 # dependencies.
19060 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"'
19061
19062 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19063 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19064
19065 # Archives containing C++ object files must be created using
19066 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19067 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19068 ;;
19069 icpc* | ecpc* )
19070 # Intel C++
19071 with_gnu_ld=yes
19072 # version 8.0 and above of icpc choke on multiply defined symbols
19073 # if we add $predep_objects and $postdep_objects, however 7.1 and
19074 # earlier do not add the objects themselves.
19075 case `$CC -V 2>&1` in
19076 *"Version 7."*)
19077 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19078 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'
19079 ;;
19080 *) # Version 8.0 or newer
19081 tmp_idyn=
19082 case $host_cpu in
19083 ia64*) tmp_idyn=' -i_dynamic';;
19084 esac
19085 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19086 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'
19087 ;;
19088 esac
19089 archive_cmds_need_lc_CXX=no
19090 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19091 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19092 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19093 ;;
19094 pgCC* | pgcpp*)
19095 # Portland Group C++ compiler
19096 case `$CC -V` in
19097 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19098 prelink_cmds_CXX='tpldir=Template.dir~
19099 rm -rf $tpldir~
19100 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19101 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19102 old_archive_cmds_CXX='tpldir=Template.dir~
19103 rm -rf $tpldir~
19104 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19105 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19106 $RANLIB $oldlib'
19107 archive_cmds_CXX='tpldir=Template.dir~
19108 rm -rf $tpldir~
19109 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19110 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19111 archive_expsym_cmds_CXX='tpldir=Template.dir~
19112 rm -rf $tpldir~
19113 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19114 $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'
19115 ;;
19116 *) # Version 6 and above use weak symbols
19117 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19118 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'
19119 ;;
19120 esac
19121
19122 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19123 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19124 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'
19125 ;;
19126 cxx*)
19127 # Compaq C++
19128 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19129 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'
19130
19131 runpath_var=LD_RUN_PATH
19132 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19133 hardcode_libdir_separator_CXX=:
19134
19135 # Commands to make compiler produce verbose output that lists
19136 # what "hidden" libraries, object files and flags are used when
19137 # linking a shared library.
19138 #
19139 # There doesn't appear to be a way to prevent this compiler from
19140 # explicitly linking system object files so we need to strip them
19141 # from the output so that they don't get included in the library
19142 # dependencies.
19143 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'
19144 ;;
19145 xl* | mpixl* | bgxl*)
19146 # IBM XL 8.0 on PPC, with GNU ld
19147 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19148 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19149 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19150 if test "x$supports_anon_versioning" = xyes; then
19151 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19152 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19153 echo "local: *; };" >> $output_objdir/$libname.ver~
19154 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19155 fi
19156 ;;
19157 *)
19158 case `$CC -V 2>&1 | sed 5q` in
19159 *Sun\ C*)
19160 # Sun C++ 5.9
19161 no_undefined_flag_CXX=' -zdefs'
19162 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19163 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'
19164 hardcode_libdir_flag_spec_CXX='-R$libdir'
19165 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'
19166 compiler_needs_object_CXX=yes
19167
19168 # Not sure whether something based on
19169 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19170 # would be better.
19171 output_verbose_link_cmd='func_echo_all'
19172
19173 # Archives containing C++ object files must be created using
19174 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19175 # necessary to make sure instantiated templates are included
19176 # in the archive.
19177 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19178 ;;
19179 esac
19180 ;;
19181 esac
19182 ;;
19183
19184 lynxos*)
19185 # FIXME: insert proper C++ library support
19186 ld_shlibs_CXX=no
19187 ;;
19188
19189 m88k*)
19190 # FIXME: insert proper C++ library support
19191 ld_shlibs_CXX=no
19192 ;;
19193
19194 mvs*)
19195 case $cc_basename in
19196 cxx*)
19197 # FIXME: insert proper C++ library support
19198 ld_shlibs_CXX=no
19199 ;;
19200 *)
19201 # FIXME: insert proper C++ library support
19202 ld_shlibs_CXX=no
19203 ;;
19204 esac
19205 ;;
19206
19207 netbsd*)
19208 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19209 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19210 wlarc=
19211 hardcode_libdir_flag_spec_CXX='-R$libdir'
19212 hardcode_direct_CXX=yes
19213 hardcode_shlibpath_var_CXX=no
19214 fi
19215 # Workaround some broken pre-1.5 toolchains
19216 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19217 ;;
19218
19219 *nto* | *qnx*)
19220 ld_shlibs_CXX=yes
19221 ;;
19222
19223 openbsd2*)
19224 # C++ shared libraries are fairly broken
19225 ld_shlibs_CXX=no
19226 ;;
19227
19228 openbsd*)
19229 if test -f /usr/libexec/ld.so; then
19230 hardcode_direct_CXX=yes
19231 hardcode_shlibpath_var_CXX=no
19232 hardcode_direct_absolute_CXX=yes
19233 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19234 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19235 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19236 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19237 export_dynamic_flag_spec_CXX='${wl}-E'
19238 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19239 fi
19240 output_verbose_link_cmd=func_echo_all
19241 else
19242 ld_shlibs_CXX=no
19243 fi
19244 ;;
19245
19246 osf3* | osf4* | osf5*)
19247 case $cc_basename in
19248 KCC*)
19249 # Kuck and Associates, Inc. (KAI) C++ Compiler
19250
19251 # KCC will only create a shared library if the output file
19252 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19253 # to its proper name (with version) after linking.
19254 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'
19255
19256 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19257 hardcode_libdir_separator_CXX=:
19258
19259 # Archives containing C++ object files must be created using
19260 # the KAI C++ compiler.
19261 case $host in
19262 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19263 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19264 esac
19265 ;;
19266 RCC*)
19267 # Rational C++ 2.4.1
19268 # FIXME: insert proper C++ library support
19269 ld_shlibs_CXX=no
19270 ;;
19271 cxx*)
19272 case $host in
19273 osf3*)
19274 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19275 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'
19276 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19277 ;;
19278 *)
19279 allow_undefined_flag_CXX=' -expect_unresolved \*'
19280 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'
19281 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19282 echo "-hidden">> $lib.exp~
19283 $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~
19284 $RM $lib.exp'
19285 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19286 ;;
19287 esac
19288
19289 hardcode_libdir_separator_CXX=:
19290
19291 # Commands to make compiler produce verbose output that lists
19292 # what "hidden" libraries, object files and flags are used when
19293 # linking a shared library.
19294 #
19295 # There doesn't appear to be a way to prevent this compiler from
19296 # explicitly linking system object files so we need to strip them
19297 # from the output so that they don't get included in the library
19298 # dependencies.
19299 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"'
19300 ;;
19301 *)
19302 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19303 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19304 case $host in
19305 osf3*)
19306 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'
19307 ;;
19308 *)
19309 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'
19310 ;;
19311 esac
19312
19313 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19314 hardcode_libdir_separator_CXX=:
19315
19316 # Commands to make compiler produce verbose output that lists
19317 # what "hidden" libraries, object files and flags are used when
19318 # linking a shared library.
19319 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19320
19321 else
19322 # FIXME: insert proper C++ library support
19323 ld_shlibs_CXX=no
19324 fi
19325 ;;
19326 esac
19327 ;;
19328
19329 psos*)
19330 # FIXME: insert proper C++ library support
19331 ld_shlibs_CXX=no
19332 ;;
19333
19334 sunos4*)
19335 case $cc_basename in
19336 CC*)
19337 # Sun C++ 4.x
19338 # FIXME: insert proper C++ library support
19339 ld_shlibs_CXX=no
19340 ;;
19341 lcc*)
19342 # Lucid
19343 # FIXME: insert proper C++ library support
19344 ld_shlibs_CXX=no
19345 ;;
19346 *)
19347 # FIXME: insert proper C++ library support
19348 ld_shlibs_CXX=no
19349 ;;
19350 esac
19351 ;;
19352
19353 solaris*)
19354 case $cc_basename in
19355 CC*)
19356 # Sun C++ 4.2, 5.x and Centerline C++
19357 archive_cmds_need_lc_CXX=yes
19358 no_undefined_flag_CXX=' -zdefs'
19359 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19360 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19361 $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'
19362
19363 hardcode_libdir_flag_spec_CXX='-R$libdir'
19364 hardcode_shlibpath_var_CXX=no
19365 case $host_os in
19366 solaris2.[0-5] | solaris2.[0-5].*) ;;
19367 *)
19368 # The compiler driver will combine and reorder linker options,
19369 # but understands `-z linker_flag'.
19370 # Supported since Solaris 2.6 (maybe 2.5.1?)
19371 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19372 ;;
19373 esac
19374 link_all_deplibs_CXX=yes
19375
19376 output_verbose_link_cmd='func_echo_all'
19377
19378 # Archives containing C++ object files must be created using
19379 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19380 # necessary to make sure instantiated templates are included
19381 # in the archive.
19382 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19383 ;;
19384 gcx*)
19385 # Green Hills C++ Compiler
19386 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19387
19388 # The C++ compiler must be used to create the archive.
19389 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19390 ;;
19391 *)
19392 # GNU C++ compiler with Solaris linker
19393 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19394 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19395 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19396 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19397 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19398 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19399
19400 # Commands to make compiler produce verbose output that lists
19401 # what "hidden" libraries, object files and flags are used when
19402 # linking a shared library.
19403 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19404 else
19405 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19406 # platform.
19407 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19408 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19409 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19410
19411 # Commands to make compiler produce verbose output that lists
19412 # what "hidden" libraries, object files and flags are used when
19413 # linking a shared library.
19414 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19415 fi
19416
19417 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19418 case $host_os in
19419 solaris2.[0-5] | solaris2.[0-5].*) ;;
19420 *)
19421 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19422 ;;
19423 esac
19424 fi
19425 ;;
19426 esac
19427 ;;
19428
19429 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19430 no_undefined_flag_CXX='${wl}-z,text'
19431 archive_cmds_need_lc_CXX=no
19432 hardcode_shlibpath_var_CXX=no
19433 runpath_var='LD_RUN_PATH'
19434
19435 case $cc_basename in
19436 CC*)
19437 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19438 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19439 ;;
19440 *)
19441 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19442 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19443 ;;
19444 esac
19445 ;;
19446
19447 sysv5* | sco3.2v5* | sco5v6*)
19448 # Note: We can NOT use -z defs as we might desire, because we do not
19449 # link with -lc, and that would cause any symbols used from libc to
19450 # always be unresolved, which means just about no library would
19451 # ever link correctly. If we're not using GNU ld we use -z text
19452 # though, which does catch some bad symbols but isn't as heavy-handed
19453 # as -z defs.
19454 no_undefined_flag_CXX='${wl}-z,text'
19455 allow_undefined_flag_CXX='${wl}-z,nodefs'
19456 archive_cmds_need_lc_CXX=no
19457 hardcode_shlibpath_var_CXX=no
19458 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19459 hardcode_libdir_separator_CXX=':'
19460 link_all_deplibs_CXX=yes
19461 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19462 runpath_var='LD_RUN_PATH'
19463
19464 case $cc_basename in
19465 CC*)
19466 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19467 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19468 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19469 '"$old_archive_cmds_CXX"
19470 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19471 '"$reload_cmds_CXX"
19472 ;;
19473 *)
19474 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19475 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19476 ;;
19477 esac
19478 ;;
19479
19480 tandem*)
19481 case $cc_basename in
19482 NCC*)
19483 # NonStop-UX NCC 3.20
19484 # FIXME: insert proper C++ library support
19485 ld_shlibs_CXX=no
19486 ;;
19487 *)
19488 # FIXME: insert proper C++ library support
19489 ld_shlibs_CXX=no
19490 ;;
19491 esac
19492 ;;
19493
19494 vxworks*)
19495 # FIXME: insert proper C++ library support
19496 ld_shlibs_CXX=no
19497 ;;
19498
19499 *)
19500 # FIXME: insert proper C++ library support
19501 ld_shlibs_CXX=no
19502 ;;
19503 esac
19504
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19506 $as_echo "$ld_shlibs_CXX" >&6; }
19507 test "$ld_shlibs_CXX" = no && can_build_shared=no
19508
19509 GCC_CXX="$GXX"
19510 LD_CXX="$LD"
19511
19512 ## CAVEAT EMPTOR:
19513 ## There is no encapsulation within the following macros, do not change
19514 ## the running order or otherwise move them around unless you know exactly
19515 ## what you are doing...
19516 # Dependencies to place before and after the object being linked:
19517 predep_objects_CXX=
19518 postdep_objects_CXX=
19519 predeps_CXX=
19520 postdeps_CXX=
19521 compiler_lib_search_path_CXX=
19522
19523 cat > conftest.$ac_ext <<_LT_EOF
19524 class Foo
19525 {
19526 public:
19527 Foo (void) { a = 0; }
19528 private:
19529 int a;
19530 };
19531 _LT_EOF
19532
19533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19534 (eval $ac_compile) 2>&5
19535 ac_status=$?
19536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19537 test $ac_status = 0; }; then
19538 # Parse the compiler output and extract the necessary
19539 # objects, libraries and library flags.
19540
19541 # Sentinel used to keep track of whether or not we are before
19542 # the conftest object file.
19543 pre_test_object_deps_done=no
19544
19545 for p in `eval "$output_verbose_link_cmd"`; do
19546 case $p in
19547
19548 -L* | -R* | -l*)
19549 # Some compilers place space between "-{L,R}" and the path.
19550 # Remove the space.
19551 if test $p = "-L" ||
19552 test $p = "-R"; then
19553 prev=$p
19554 continue
19555 else
19556 prev=
19557 fi
19558
19559 if test "$pre_test_object_deps_done" = no; then
19560 case $p in
19561 -L* | -R*)
19562 # Internal compiler library paths should come after those
19563 # provided the user. The postdeps already come after the
19564 # user supplied libs so there is no need to process them.
19565 if test -z "$compiler_lib_search_path_CXX"; then
19566 compiler_lib_search_path_CXX="${prev}${p}"
19567 else
19568 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19569 fi
19570 ;;
19571 # The "-l" case would never come before the object being
19572 # linked, so don't bother handling this case.
19573 esac
19574 else
19575 if test -z "$postdeps_CXX"; then
19576 postdeps_CXX="${prev}${p}"
19577 else
19578 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19579 fi
19580 fi
19581 ;;
19582
19583 *.$objext)
19584 # This assumes that the test object file only shows up
19585 # once in the compiler output.
19586 if test "$p" = "conftest.$objext"; then
19587 pre_test_object_deps_done=yes
19588 continue
19589 fi
19590
19591 if test "$pre_test_object_deps_done" = no; then
19592 if test -z "$predep_objects_CXX"; then
19593 predep_objects_CXX="$p"
19594 else
19595 predep_objects_CXX="$predep_objects_CXX $p"
19596 fi
19597 else
19598 if test -z "$postdep_objects_CXX"; then
19599 postdep_objects_CXX="$p"
19600 else
19601 postdep_objects_CXX="$postdep_objects_CXX $p"
19602 fi
19603 fi
19604 ;;
19605
19606 *) ;; # Ignore the rest.
19607
19608 esac
19609 done
19610
19611 # Clean up.
19612 rm -f a.out a.exe
19613 else
19614 echo "libtool.m4: error: problem compiling CXX test program"
19615 fi
19616
19617 $RM -f confest.$objext
19618
19619 # PORTME: override above test on systems where it is broken
19620 case $host_os in
19621 interix[3-9]*)
19622 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19623 # hack all around it, let's just trust "g++" to DTRT.
19624 predep_objects_CXX=
19625 postdep_objects_CXX=
19626 postdeps_CXX=
19627 ;;
19628
19629 linux*)
19630 case `$CC -V 2>&1 | sed 5q` in
19631 *Sun\ C*)
19632 # Sun C++ 5.9
19633
19634 # The more standards-conforming stlport4 library is
19635 # incompatible with the Cstd library. Avoid specifying
19636 # it if it's in CXXFLAGS. Ignore libCrun as
19637 # -library=stlport4 depends on it.
19638 case " $CXX $CXXFLAGS " in
19639 *" -library=stlport4 "*)
19640 solaris_use_stlport4=yes
19641 ;;
19642 esac
19643
19644 if test "$solaris_use_stlport4" != yes; then
19645 postdeps_CXX='-library=Cstd -library=Crun'
19646 fi
19647 ;;
19648 esac
19649 ;;
19650
19651 solaris*)
19652 case $cc_basename in
19653 CC*)
19654 # The more standards-conforming stlport4 library is
19655 # incompatible with the Cstd library. Avoid specifying
19656 # it if it's in CXXFLAGS. Ignore libCrun as
19657 # -library=stlport4 depends on it.
19658 case " $CXX $CXXFLAGS " in
19659 *" -library=stlport4 "*)
19660 solaris_use_stlport4=yes
19661 ;;
19662 esac
19663
19664 # Adding this requires a known-good setup of shared libraries for
19665 # Sun compiler versions before 5.6, else PIC objects from an old
19666 # archive will be linked into the output, leading to subtle bugs.
19667 if test "$solaris_use_stlport4" != yes; then
19668 postdeps_CXX='-library=Cstd -library=Crun'
19669 fi
19670 ;;
19671 esac
19672 ;;
19673 esac
19674
19675
19676 case " $postdeps_CXX " in
19677 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19678 esac
19679 compiler_lib_search_dirs_CXX=
19680 if test -n "${compiler_lib_search_path_CXX}"; then
19681 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19682 fi
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714 lt_prog_compiler_wl_CXX=
19715 lt_prog_compiler_pic_CXX=
19716 lt_prog_compiler_static_CXX=
19717
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19719 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19720
19721 # C++ specific cases for pic, static, wl, etc.
19722 if test "$GXX" = yes; then
19723 lt_prog_compiler_wl_CXX='-Wl,'
19724 lt_prog_compiler_static_CXX='-static'
19725
19726 case $host_os in
19727 aix*)
19728 # All AIX code is PIC.
19729 if test "$host_cpu" = ia64; then
19730 # AIX 5 now supports IA64 processor
19731 lt_prog_compiler_static_CXX='-Bstatic'
19732 fi
19733 ;;
19734
19735 amigaos*)
19736 case $host_cpu in
19737 powerpc)
19738 # see comment about AmigaOS4 .so support
19739 lt_prog_compiler_pic_CXX='-fPIC'
19740 ;;
19741 m68k)
19742 # FIXME: we need at least 68020 code to build shared libraries, but
19743 # adding the `-m68020' flag to GCC prevents building anything better,
19744 # like `-m68040'.
19745 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19746 ;;
19747 esac
19748 ;;
19749
19750 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19751 # PIC is the default for these OSes.
19752 ;;
19753 mingw* | cygwin* | os2* | pw32* | cegcc*)
19754 # This hack is so that the source file can tell whether it is being
19755 # built for inclusion in a dll (and should export symbols for example).
19756 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19757 # (--disable-auto-import) libraries
19758 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19759 ;;
19760 darwin* | rhapsody*)
19761 # PIC is the default on this platform
19762 # Common symbols not allowed in MH_DYLIB files
19763 lt_prog_compiler_pic_CXX='-fno-common'
19764 ;;
19765 *djgpp*)
19766 # DJGPP does not support shared libraries at all
19767 lt_prog_compiler_pic_CXX=
19768 ;;
19769 haiku*)
19770 # PIC is the default for Haiku.
19771 # The "-static" flag exists, but is broken.
19772 lt_prog_compiler_static_CXX=
19773 ;;
19774 interix[3-9]*)
19775 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19776 # Instead, we relocate shared libraries at runtime.
19777 ;;
19778 sysv4*MP*)
19779 if test -d /usr/nec; then
19780 lt_prog_compiler_pic_CXX=-Kconform_pic
19781 fi
19782 ;;
19783 hpux*)
19784 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19785 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19786 # sets the default TLS model and affects inlining.
19787 case $host_cpu in
19788 hppa*64*)
19789 ;;
19790 *)
19791 lt_prog_compiler_pic_CXX='-fPIC'
19792 ;;
19793 esac
19794 ;;
19795 *qnx* | *nto*)
19796 # QNX uses GNU C++, but need to define -shared option too, otherwise
19797 # it will coredump.
19798 lt_prog_compiler_pic_CXX='-fPIC -shared'
19799 ;;
19800 *)
19801 lt_prog_compiler_pic_CXX='-fPIC'
19802 ;;
19803 esac
19804 else
19805 case $host_os in
19806 aix[4-9]*)
19807 # All AIX code is PIC.
19808 if test "$host_cpu" = ia64; then
19809 # AIX 5 now supports IA64 processor
19810 lt_prog_compiler_static_CXX='-Bstatic'
19811 else
19812 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19813 fi
19814 ;;
19815 chorus*)
19816 case $cc_basename in
19817 cxch68*)
19818 # Green Hills C++ Compiler
19819 # _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"
19820 ;;
19821 esac
19822 ;;
19823 dgux*)
19824 case $cc_basename in
19825 ec++*)
19826 lt_prog_compiler_pic_CXX='-KPIC'
19827 ;;
19828 ghcx*)
19829 # Green Hills C++ Compiler
19830 lt_prog_compiler_pic_CXX='-pic'
19831 ;;
19832 *)
19833 ;;
19834 esac
19835 ;;
19836 freebsd* | dragonfly*)
19837 # FreeBSD uses GNU C++
19838 ;;
19839 hpux9* | hpux10* | hpux11*)
19840 case $cc_basename in
19841 CC*)
19842 lt_prog_compiler_wl_CXX='-Wl,'
19843 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19844 if test "$host_cpu" != ia64; then
19845 lt_prog_compiler_pic_CXX='+Z'
19846 fi
19847 ;;
19848 aCC*)
19849 lt_prog_compiler_wl_CXX='-Wl,'
19850 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19851 case $host_cpu in
19852 hppa*64*|ia64*)
19853 # +Z the default
19854 ;;
19855 *)
19856 lt_prog_compiler_pic_CXX='+Z'
19857 ;;
19858 esac
19859 ;;
19860 *)
19861 ;;
19862 esac
19863 ;;
19864 interix*)
19865 # This is c89, which is MS Visual C++ (no shared libs)
19866 # Anyone wants to do a port?
19867 ;;
19868 irix5* | irix6* | nonstopux*)
19869 case $cc_basename in
19870 CC*)
19871 lt_prog_compiler_wl_CXX='-Wl,'
19872 lt_prog_compiler_static_CXX='-non_shared'
19873 # CC pic flag -KPIC is the default.
19874 ;;
19875 *)
19876 ;;
19877 esac
19878 ;;
19879 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19880 case $cc_basename in
19881 KCC*)
19882 # KAI C++ Compiler
19883 lt_prog_compiler_wl_CXX='--backend -Wl,'
19884 lt_prog_compiler_pic_CXX='-fPIC'
19885 ;;
19886 ecpc* )
19887 # old Intel C++ for x86_64 which still supported -KPIC.
19888 lt_prog_compiler_wl_CXX='-Wl,'
19889 lt_prog_compiler_pic_CXX='-KPIC'
19890 lt_prog_compiler_static_CXX='-static'
19891 ;;
19892 icpc* )
19893 # Intel C++, used to be incompatible with GCC.
19894 # ICC 10 doesn't accept -KPIC any more.
19895 lt_prog_compiler_wl_CXX='-Wl,'
19896 lt_prog_compiler_pic_CXX='-fPIC'
19897 lt_prog_compiler_static_CXX='-static'
19898 ;;
19899 pgCC* | pgcpp*)
19900 # Portland Group C++ compiler
19901 lt_prog_compiler_wl_CXX='-Wl,'
19902 lt_prog_compiler_pic_CXX='-fpic'
19903 lt_prog_compiler_static_CXX='-Bstatic'
19904 ;;
19905 cxx*)
19906 # Compaq C++
19907 # Make sure the PIC flag is empty. It appears that all Alpha
19908 # Linux and Compaq Tru64 Unix objects are PIC.
19909 lt_prog_compiler_pic_CXX=
19910 lt_prog_compiler_static_CXX='-non_shared'
19911 ;;
19912 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19913 # IBM XL 8.0, 9.0 on PPC and BlueGene
19914 lt_prog_compiler_wl_CXX='-Wl,'
19915 lt_prog_compiler_pic_CXX='-qpic'
19916 lt_prog_compiler_static_CXX='-qstaticlink'
19917 ;;
19918 *)
19919 case `$CC -V 2>&1 | sed 5q` in
19920 *Sun\ C*)
19921 # Sun C++ 5.9
19922 lt_prog_compiler_pic_CXX='-KPIC'
19923 lt_prog_compiler_static_CXX='-Bstatic'
19924 lt_prog_compiler_wl_CXX='-Qoption ld '
19925 ;;
19926 esac
19927 ;;
19928 esac
19929 ;;
19930 lynxos*)
19931 ;;
19932 m88k*)
19933 ;;
19934 mvs*)
19935 case $cc_basename in
19936 cxx*)
19937 lt_prog_compiler_pic_CXX='-W c,exportall'
19938 ;;
19939 *)
19940 ;;
19941 esac
19942 ;;
19943 netbsd*)
19944 ;;
19945 *qnx* | *nto*)
19946 # QNX uses GNU C++, but need to define -shared option too, otherwise
19947 # it will coredump.
19948 lt_prog_compiler_pic_CXX='-fPIC -shared'
19949 ;;
19950 osf3* | osf4* | osf5*)
19951 case $cc_basename in
19952 KCC*)
19953 lt_prog_compiler_wl_CXX='--backend -Wl,'
19954 ;;
19955 RCC*)
19956 # Rational C++ 2.4.1
19957 lt_prog_compiler_pic_CXX='-pic'
19958 ;;
19959 cxx*)
19960 # Digital/Compaq C++
19961 lt_prog_compiler_wl_CXX='-Wl,'
19962 # Make sure the PIC flag is empty. It appears that all Alpha
19963 # Linux and Compaq Tru64 Unix objects are PIC.
19964 lt_prog_compiler_pic_CXX=
19965 lt_prog_compiler_static_CXX='-non_shared'
19966 ;;
19967 *)
19968 ;;
19969 esac
19970 ;;
19971 psos*)
19972 ;;
19973 solaris*)
19974 case $cc_basename in
19975 CC*)
19976 # Sun C++ 4.2, 5.x and Centerline C++
19977 lt_prog_compiler_pic_CXX='-KPIC'
19978 lt_prog_compiler_static_CXX='-Bstatic'
19979 lt_prog_compiler_wl_CXX='-Qoption ld '
19980 ;;
19981 gcx*)
19982 # Green Hills C++ Compiler
19983 lt_prog_compiler_pic_CXX='-PIC'
19984 ;;
19985 *)
19986 ;;
19987 esac
19988 ;;
19989 sunos4*)
19990 case $cc_basename in
19991 CC*)
19992 # Sun C++ 4.x
19993 lt_prog_compiler_pic_CXX='-pic'
19994 lt_prog_compiler_static_CXX='-Bstatic'
19995 ;;
19996 lcc*)
19997 # Lucid
19998 lt_prog_compiler_pic_CXX='-pic'
19999 ;;
20000 *)
20001 ;;
20002 esac
20003 ;;
20004 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20005 case $cc_basename in
20006 CC*)
20007 lt_prog_compiler_wl_CXX='-Wl,'
20008 lt_prog_compiler_pic_CXX='-KPIC'
20009 lt_prog_compiler_static_CXX='-Bstatic'
20010 ;;
20011 esac
20012 ;;
20013 tandem*)
20014 case $cc_basename in
20015 NCC*)
20016 # NonStop-UX NCC 3.20
20017 lt_prog_compiler_pic_CXX='-KPIC'
20018 ;;
20019 *)
20020 ;;
20021 esac
20022 ;;
20023 vxworks*)
20024 ;;
20025 *)
20026 lt_prog_compiler_can_build_shared_CXX=no
20027 ;;
20028 esac
20029 fi
20030
20031 case $host_os in
20032 # For platforms which do not support PIC, -DPIC is meaningless:
20033 *djgpp*)
20034 lt_prog_compiler_pic_CXX=
20035 ;;
20036 *)
20037 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20038 ;;
20039 esac
20040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20041 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20042
20043
20044
20045 #
20046 # Check to make sure the PIC flag actually works.
20047 #
20048 if test -n "$lt_prog_compiler_pic_CXX"; then
20049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20050 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20051 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20052 $as_echo_n "(cached) " >&6
20053 else
20054 lt_cv_prog_compiler_pic_works_CXX=no
20055 ac_outfile=conftest.$ac_objext
20056 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20057 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20058 # Insert the option either (1) after the last *FLAGS variable, or
20059 # (2) before a word containing "conftest.", or (3) at the end.
20060 # Note that $ac_compile itself does not contain backslashes and begins
20061 # with a dollar sign (not a hyphen), so the echo should work correctly.
20062 # The option is referenced via a variable to avoid confusing sed.
20063 lt_compile=`echo "$ac_compile" | $SED \
20064 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20065 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20066 -e 's:$: $lt_compiler_flag:'`
20067 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20068 (eval "$lt_compile" 2>conftest.err)
20069 ac_status=$?
20070 cat conftest.err >&5
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 if (exit $ac_status) && test -s "$ac_outfile"; then
20073 # The compiler can only warn and ignore the option if not recognized
20074 # So say no if there are warnings other than the usual output.
20075 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20076 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20077 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20078 lt_cv_prog_compiler_pic_works_CXX=yes
20079 fi
20080 fi
20081 $RM conftest*
20082
20083 fi
20084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20085 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20086
20087 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20088 case $lt_prog_compiler_pic_CXX in
20089 "" | " "*) ;;
20090 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20091 esac
20092 else
20093 lt_prog_compiler_pic_CXX=
20094 lt_prog_compiler_can_build_shared_CXX=no
20095 fi
20096
20097 fi
20098
20099
20100
20101 #
20102 # Check to make sure the static flag actually works.
20103 #
20104 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20106 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20107 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20108 $as_echo_n "(cached) " >&6
20109 else
20110 lt_cv_prog_compiler_static_works_CXX=no
20111 save_LDFLAGS="$LDFLAGS"
20112 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20113 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20114 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20115 # The linker can only warn and ignore the option if not recognized
20116 # So say no if there are warnings
20117 if test -s conftest.err; then
20118 # Append any errors to the config.log.
20119 cat conftest.err 1>&5
20120 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20121 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20122 if diff conftest.exp conftest.er2 >/dev/null; then
20123 lt_cv_prog_compiler_static_works_CXX=yes
20124 fi
20125 else
20126 lt_cv_prog_compiler_static_works_CXX=yes
20127 fi
20128 fi
20129 $RM -r conftest*
20130 LDFLAGS="$save_LDFLAGS"
20131
20132 fi
20133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20134 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20135
20136 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20137 :
20138 else
20139 lt_prog_compiler_static_CXX=
20140 fi
20141
20142
20143
20144
20145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20146 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20147 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20148 $as_echo_n "(cached) " >&6
20149 else
20150 lt_cv_prog_compiler_c_o_CXX=no
20151 $RM -r conftest 2>/dev/null
20152 mkdir conftest
20153 cd conftest
20154 mkdir out
20155 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20156
20157 lt_compiler_flag="-o out/conftest2.$ac_objext"
20158 # Insert the option either (1) after the last *FLAGS variable, or
20159 # (2) before a word containing "conftest.", or (3) at the end.
20160 # Note that $ac_compile itself does not contain backslashes and begins
20161 # with a dollar sign (not a hyphen), so the echo should work correctly.
20162 lt_compile=`echo "$ac_compile" | $SED \
20163 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20164 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20165 -e 's:$: $lt_compiler_flag:'`
20166 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20167 (eval "$lt_compile" 2>out/conftest.err)
20168 ac_status=$?
20169 cat out/conftest.err >&5
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20172 then
20173 # The compiler can only warn and ignore the option if not recognized
20174 # So say no if there are warnings
20175 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20176 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20177 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20178 lt_cv_prog_compiler_c_o_CXX=yes
20179 fi
20180 fi
20181 chmod u+w . 2>&5
20182 $RM conftest*
20183 # SGI C++ compiler will create directory out/ii_files/ for
20184 # template instantiation
20185 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20186 $RM out/* && rmdir out
20187 cd ..
20188 $RM -r conftest
20189 $RM conftest*
20190
20191 fi
20192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20193 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20194
20195
20196
20197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20198 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20199 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20200 $as_echo_n "(cached) " >&6
20201 else
20202 lt_cv_prog_compiler_c_o_CXX=no
20203 $RM -r conftest 2>/dev/null
20204 mkdir conftest
20205 cd conftest
20206 mkdir out
20207 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20208
20209 lt_compiler_flag="-o out/conftest2.$ac_objext"
20210 # Insert the option either (1) after the last *FLAGS variable, or
20211 # (2) before a word containing "conftest.", or (3) at the end.
20212 # Note that $ac_compile itself does not contain backslashes and begins
20213 # with a dollar sign (not a hyphen), so the echo should work correctly.
20214 lt_compile=`echo "$ac_compile" | $SED \
20215 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20216 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20217 -e 's:$: $lt_compiler_flag:'`
20218 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20219 (eval "$lt_compile" 2>out/conftest.err)
20220 ac_status=$?
20221 cat out/conftest.err >&5
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20224 then
20225 # The compiler can only warn and ignore the option if not recognized
20226 # So say no if there are warnings
20227 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20228 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20229 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20230 lt_cv_prog_compiler_c_o_CXX=yes
20231 fi
20232 fi
20233 chmod u+w . 2>&5
20234 $RM conftest*
20235 # SGI C++ compiler will create directory out/ii_files/ for
20236 # template instantiation
20237 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20238 $RM out/* && rmdir out
20239 cd ..
20240 $RM -r conftest
20241 $RM conftest*
20242
20243 fi
20244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20245 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20246
20247
20248
20249
20250 hard_links="nottested"
20251 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20252 # do not overwrite the value of need_locks provided by the user
20253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20254 $as_echo_n "checking if we can lock with hard links... " >&6; }
20255 hard_links=yes
20256 $RM conftest*
20257 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20258 touch conftest.a
20259 ln conftest.a conftest.b 2>&5 || hard_links=no
20260 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20262 $as_echo "$hard_links" >&6; }
20263 if test "$hard_links" = no; then
20264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20265 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20266 need_locks=warn
20267 fi
20268 else
20269 need_locks=no
20270 fi
20271
20272
20273
20274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20275 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20276
20277 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20278 case $host_os in
20279 aix[4-9]*)
20280 # If we're using GNU nm, then we don't want the "-C" option.
20281 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20282 # Also, AIX nm treats weak defined symbols like other global defined
20283 # symbols, whereas GNU nm marks them as "W".
20284 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20285 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'
20286 else
20287 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20288 fi
20289 ;;
20290 pw32*)
20291 export_symbols_cmds_CXX="$ltdll_cmds"
20292 ;;
20293 cygwin* | mingw* | cegcc*)
20294 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'
20295 ;;
20296 *)
20297 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20298 ;;
20299 esac
20300 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20301
20302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20303 $as_echo "$ld_shlibs_CXX" >&6; }
20304 test "$ld_shlibs_CXX" = no && can_build_shared=no
20305
20306 with_gnu_ld_CXX=$with_gnu_ld
20307
20308
20309
20310
20311
20312
20313 #
20314 # Do we need to explicitly link libc?
20315 #
20316 case "x$archive_cmds_need_lc_CXX" in
20317 x|xyes)
20318 # Assume -lc should be added
20319 archive_cmds_need_lc_CXX=yes
20320
20321 if test "$enable_shared" = yes && test "$GCC" = yes; then
20322 case $archive_cmds_CXX in
20323 *'~'*)
20324 # FIXME: we may have to deal with multi-command sequences.
20325 ;;
20326 '$CC '*)
20327 # Test whether the compiler implicitly links with -lc since on some
20328 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20329 # to ld, don't add -lc before -lgcc.
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20331 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20332 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20333 $as_echo_n "(cached) " >&6
20334 else
20335 $RM conftest*
20336 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20337
20338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20339 (eval $ac_compile) 2>&5
20340 ac_status=$?
20341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20342 test $ac_status = 0; } 2>conftest.err; then
20343 soname=conftest
20344 lib=conftest
20345 libobjs=conftest.$ac_objext
20346 deplibs=
20347 wl=$lt_prog_compiler_wl_CXX
20348 pic_flag=$lt_prog_compiler_pic_CXX
20349 compiler_flags=-v
20350 linker_flags=-v
20351 verstring=
20352 output_objdir=.
20353 libname=conftest
20354 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20355 allow_undefined_flag_CXX=
20356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20357 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20358 ac_status=$?
20359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20360 test $ac_status = 0; }
20361 then
20362 lt_cv_archive_cmds_need_lc_CXX=no
20363 else
20364 lt_cv_archive_cmds_need_lc_CXX=yes
20365 fi
20366 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20367 else
20368 cat conftest.err 1>&5
20369 fi
20370 $RM conftest*
20371
20372 fi
20373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20374 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20375 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20376 ;;
20377 esac
20378 fi
20379 ;;
20380 esac
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444
20445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20446 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20447
20448 library_names_spec=
20449 libname_spec='lib$name'
20450 soname_spec=
20451 shrext_cmds=".so"
20452 postinstall_cmds=
20453 postuninstall_cmds=
20454 finish_cmds=
20455 finish_eval=
20456 shlibpath_var=
20457 shlibpath_overrides_runpath=unknown
20458 version_type=none
20459 dynamic_linker="$host_os ld.so"
20460 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20461 need_lib_prefix=unknown
20462 hardcode_into_libs=no
20463
20464 # when you set need_version to no, make sure it does not cause -set_version
20465 # flags to be left without arguments
20466 need_version=unknown
20467
20468 case $host_os in
20469 aix3*)
20470 version_type=linux
20471 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20472 shlibpath_var=LIBPATH
20473
20474 # AIX 3 has no versioning support, so we append a major version to the name.
20475 soname_spec='${libname}${release}${shared_ext}$major'
20476 ;;
20477
20478 aix[4-9]*)
20479 version_type=linux
20480 need_lib_prefix=no
20481 need_version=no
20482 hardcode_into_libs=yes
20483 if test "$host_cpu" = ia64; then
20484 # AIX 5 supports IA64
20485 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20486 shlibpath_var=LD_LIBRARY_PATH
20487 else
20488 # With GCC up to 2.95.x, collect2 would create an import file
20489 # for dependence libraries. The import file would start with
20490 # the line `#! .'. This would cause the generated library to
20491 # depend on `.', always an invalid library. This was fixed in
20492 # development snapshots of GCC prior to 3.0.
20493 case $host_os in
20494 aix4 | aix4.[01] | aix4.[01].*)
20495 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20496 echo ' yes '
20497 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20498 :
20499 else
20500 can_build_shared=no
20501 fi
20502 ;;
20503 esac
20504 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20505 # soname into executable. Probably we can add versioning support to
20506 # collect2, so additional links can be useful in future.
20507 if test "$aix_use_runtimelinking" = yes; then
20508 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20509 # instead of lib<name>.a to let people know that these are not
20510 # typical AIX shared libraries.
20511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20512 else
20513 # We preserve .a as extension for shared libraries through AIX4.2
20514 # and later when we are not doing run time linking.
20515 library_names_spec='${libname}${release}.a $libname.a'
20516 soname_spec='${libname}${release}${shared_ext}$major'
20517 fi
20518 shlibpath_var=LIBPATH
20519 fi
20520 ;;
20521
20522 amigaos*)
20523 case $host_cpu in
20524 powerpc)
20525 # Since July 2007 AmigaOS4 officially supports .so libraries.
20526 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20528 ;;
20529 m68k)
20530 library_names_spec='$libname.ixlibrary $libname.a'
20531 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20532 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'
20533 ;;
20534 esac
20535 ;;
20536
20537 beos*)
20538 library_names_spec='${libname}${shared_ext}'
20539 dynamic_linker="$host_os ld.so"
20540 shlibpath_var=LIBRARY_PATH
20541 ;;
20542
20543 bsdi[45]*)
20544 version_type=linux
20545 need_version=no
20546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20547 soname_spec='${libname}${release}${shared_ext}$major'
20548 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20549 shlibpath_var=LD_LIBRARY_PATH
20550 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20551 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20552 # the default ld.so.conf also contains /usr/contrib/lib and
20553 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20554 # libtool to hard-code these into programs
20555 ;;
20556
20557 cygwin* | mingw* | pw32* | cegcc*)
20558 version_type=windows
20559 shrext_cmds=".dll"
20560 need_version=no
20561 need_lib_prefix=no
20562
20563 case $GCC,$host_os in
20564 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20565 library_names_spec='$libname.dll.a'
20566 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20567 postinstall_cmds='base_file=`basename \${file}`~
20568 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20569 dldir=$destdir/`dirname \$dlpath`~
20570 test -d \$dldir || mkdir -p \$dldir~
20571 $install_prog $dir/$dlname \$dldir/$dlname~
20572 chmod a+x \$dldir/$dlname~
20573 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20574 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20575 fi'
20576 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20577 dlpath=$dir/\$dldll~
20578 $RM \$dlpath'
20579 shlibpath_overrides_runpath=yes
20580
20581 case $host_os in
20582 cygwin*)
20583 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20584 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20585
20586 ;;
20587 mingw* | cegcc*)
20588 # MinGW DLLs use traditional 'lib' prefix
20589 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20590 ;;
20591 pw32*)
20592 # pw32 DLLs use 'pw' prefix rather than 'lib'
20593 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20594 ;;
20595 esac
20596 ;;
20597
20598 *)
20599 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20600 ;;
20601 esac
20602 dynamic_linker='Win32 ld.exe'
20603 # FIXME: first we should search . and the directory the executable is in
20604 shlibpath_var=PATH
20605 ;;
20606
20607 darwin* | rhapsody*)
20608 dynamic_linker="$host_os dyld"
20609 version_type=darwin
20610 need_lib_prefix=no
20611 need_version=no
20612 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20613 soname_spec='${libname}${release}${major}$shared_ext'
20614 shlibpath_overrides_runpath=yes
20615 shlibpath_var=DYLD_LIBRARY_PATH
20616 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20617
20618 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20619 ;;
20620
20621 dgux*)
20622 version_type=linux
20623 need_lib_prefix=no
20624 need_version=no
20625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20626 soname_spec='${libname}${release}${shared_ext}$major'
20627 shlibpath_var=LD_LIBRARY_PATH
20628 ;;
20629
20630 freebsd* | dragonfly*)
20631 # DragonFly does not have aout. When/if they implement a new
20632 # versioning mechanism, adjust this.
20633 if test -x /usr/bin/objformat; then
20634 objformat=`/usr/bin/objformat`
20635 else
20636 case $host_os in
20637 freebsd[123]*) objformat=aout ;;
20638 *) objformat=elf ;;
20639 esac
20640 fi
20641 version_type=freebsd-$objformat
20642 case $version_type in
20643 freebsd-elf*)
20644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20645 need_version=no
20646 need_lib_prefix=no
20647 ;;
20648 freebsd-*)
20649 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20650 need_version=yes
20651 ;;
20652 esac
20653 shlibpath_var=LD_LIBRARY_PATH
20654 case $host_os in
20655 freebsd2*)
20656 shlibpath_overrides_runpath=yes
20657 ;;
20658 freebsd3.[01]* | freebsdelf3.[01]*)
20659 shlibpath_overrides_runpath=yes
20660 hardcode_into_libs=yes
20661 ;;
20662 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20663 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20664 shlibpath_overrides_runpath=no
20665 hardcode_into_libs=yes
20666 ;;
20667 *) # from 4.6 on, and DragonFly
20668 shlibpath_overrides_runpath=yes
20669 hardcode_into_libs=yes
20670 ;;
20671 esac
20672 ;;
20673
20674 gnu*)
20675 version_type=linux
20676 need_lib_prefix=no
20677 need_version=no
20678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20679 soname_spec='${libname}${release}${shared_ext}$major'
20680 shlibpath_var=LD_LIBRARY_PATH
20681 hardcode_into_libs=yes
20682 ;;
20683
20684 haiku*)
20685 version_type=linux
20686 need_lib_prefix=no
20687 need_version=no
20688 dynamic_linker="$host_os runtime_loader"
20689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20690 soname_spec='${libname}${release}${shared_ext}$major'
20691 shlibpath_var=LIBRARY_PATH
20692 shlibpath_overrides_runpath=yes
20693 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20694 hardcode_into_libs=yes
20695 ;;
20696
20697 hpux9* | hpux10* | hpux11*)
20698 # Give a soname corresponding to the major version so that dld.sl refuses to
20699 # link against other versions.
20700 version_type=sunos
20701 need_lib_prefix=no
20702 need_version=no
20703 case $host_cpu in
20704 ia64*)
20705 shrext_cmds='.so'
20706 hardcode_into_libs=yes
20707 dynamic_linker="$host_os dld.so"
20708 shlibpath_var=LD_LIBRARY_PATH
20709 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20711 soname_spec='${libname}${release}${shared_ext}$major'
20712 if test "X$HPUX_IA64_MODE" = X32; then
20713 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20714 else
20715 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20716 fi
20717 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20718 ;;
20719 hppa*64*)
20720 shrext_cmds='.sl'
20721 hardcode_into_libs=yes
20722 dynamic_linker="$host_os dld.sl"
20723 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20724 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20726 soname_spec='${libname}${release}${shared_ext}$major'
20727 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20728 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20729 ;;
20730 *)
20731 shrext_cmds='.sl'
20732 dynamic_linker="$host_os dld.sl"
20733 shlibpath_var=SHLIB_PATH
20734 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20736 soname_spec='${libname}${release}${shared_ext}$major'
20737 ;;
20738 esac
20739 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20740 postinstall_cmds='chmod 555 $lib'
20741 # or fails outright, so override atomically:
20742 install_override_mode=555
20743 ;;
20744
20745 interix[3-9]*)
20746 version_type=linux
20747 need_lib_prefix=no
20748 need_version=no
20749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20750 soname_spec='${libname}${release}${shared_ext}$major'
20751 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20752 shlibpath_var=LD_LIBRARY_PATH
20753 shlibpath_overrides_runpath=no
20754 hardcode_into_libs=yes
20755 ;;
20756
20757 irix5* | irix6* | nonstopux*)
20758 case $host_os in
20759 nonstopux*) version_type=nonstopux ;;
20760 *)
20761 if test "$lt_cv_prog_gnu_ld" = yes; then
20762 version_type=linux
20763 else
20764 version_type=irix
20765 fi ;;
20766 esac
20767 need_lib_prefix=no
20768 need_version=no
20769 soname_spec='${libname}${release}${shared_ext}$major'
20770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20771 case $host_os in
20772 irix5* | nonstopux*)
20773 libsuff= shlibsuff=
20774 ;;
20775 *)
20776 case $LD in # libtool.m4 will add one of these switches to LD
20777 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20778 libsuff= shlibsuff= libmagic=32-bit;;
20779 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20780 libsuff=32 shlibsuff=N32 libmagic=N32;;
20781 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20782 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20783 *) libsuff= shlibsuff= libmagic=never-match;;
20784 esac
20785 ;;
20786 esac
20787 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20788 shlibpath_overrides_runpath=no
20789 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20790 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20791 hardcode_into_libs=yes
20792 ;;
20793
20794 # No shared lib support for Linux oldld, aout, or coff.
20795 linux*oldld* | linux*aout* | linux*coff*)
20796 dynamic_linker=no
20797 ;;
20798
20799 # This must be Linux ELF.
20800 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20801 version_type=linux
20802 need_lib_prefix=no
20803 need_version=no
20804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20805 soname_spec='${libname}${release}${shared_ext}$major'
20806 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20807 shlibpath_var=LD_LIBRARY_PATH
20808 shlibpath_overrides_runpath=no
20809
20810 # Some binutils ld are patched to set DT_RUNPATH
20811 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20812 $as_echo_n "(cached) " >&6
20813 else
20814 lt_cv_shlibpath_overrides_runpath=no
20815 save_LDFLAGS=$LDFLAGS
20816 save_libdir=$libdir
20817 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20818 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20820 /* end confdefs.h. */
20821
20822 int
20823 main ()
20824 {
20825
20826 ;
20827 return 0;
20828 }
20829 _ACEOF
20830 if ac_fn_cxx_try_link "$LINENO"; then :
20831 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20832 lt_cv_shlibpath_overrides_runpath=yes
20833 fi
20834 fi
20835 rm -f core conftest.err conftest.$ac_objext \
20836 conftest$ac_exeext conftest.$ac_ext
20837 LDFLAGS=$save_LDFLAGS
20838 libdir=$save_libdir
20839
20840 fi
20841
20842 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20843
20844 # This implies no fast_install, which is unacceptable.
20845 # Some rework will be needed to allow for fast_install
20846 # before this can be enabled.
20847 hardcode_into_libs=yes
20848
20849 # Append ld.so.conf contents to the search path
20850 if test -f /etc/ld.so.conf; then
20851 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' ' '`
20852 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20853 fi
20854
20855 # We used to test for /lib/ld.so.1 and disable shared libraries on
20856 # powerpc, because MkLinux only supported shared libraries with the
20857 # GNU dynamic linker. Since this was broken with cross compilers,
20858 # most powerpc-linux boxes support dynamic linking these days and
20859 # people can always --disable-shared, the test was removed, and we
20860 # assume the GNU/Linux dynamic linker is in use.
20861 dynamic_linker='GNU/Linux ld.so'
20862 ;;
20863
20864 netbsd*)
20865 version_type=sunos
20866 need_lib_prefix=no
20867 need_version=no
20868 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20870 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20871 dynamic_linker='NetBSD (a.out) ld.so'
20872 else
20873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20874 soname_spec='${libname}${release}${shared_ext}$major'
20875 dynamic_linker='NetBSD ld.elf_so'
20876 fi
20877 shlibpath_var=LD_LIBRARY_PATH
20878 shlibpath_overrides_runpath=yes
20879 hardcode_into_libs=yes
20880 ;;
20881
20882 newsos6)
20883 version_type=linux
20884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20885 shlibpath_var=LD_LIBRARY_PATH
20886 shlibpath_overrides_runpath=yes
20887 ;;
20888
20889 *nto* | *qnx*)
20890 version_type=qnx
20891 need_lib_prefix=no
20892 need_version=no
20893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20894 soname_spec='${libname}${release}${shared_ext}$major'
20895 shlibpath_var=LD_LIBRARY_PATH
20896 shlibpath_overrides_runpath=no
20897 hardcode_into_libs=yes
20898 dynamic_linker='ldqnx.so'
20899 ;;
20900
20901 openbsd*)
20902 version_type=sunos
20903 sys_lib_dlsearch_path_spec="/usr/lib"
20904 need_lib_prefix=no
20905 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20906 case $host_os in
20907 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20908 *) need_version=no ;;
20909 esac
20910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20911 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20912 shlibpath_var=LD_LIBRARY_PATH
20913 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20914 case $host_os in
20915 openbsd2.[89] | openbsd2.[89].*)
20916 shlibpath_overrides_runpath=no
20917 ;;
20918 *)
20919 shlibpath_overrides_runpath=yes
20920 ;;
20921 esac
20922 else
20923 shlibpath_overrides_runpath=yes
20924 fi
20925 ;;
20926
20927 os2*)
20928 libname_spec='$name'
20929 shrext_cmds=".dll"
20930 need_lib_prefix=no
20931 library_names_spec='$libname${shared_ext} $libname.a'
20932 dynamic_linker='OS/2 ld.exe'
20933 shlibpath_var=LIBPATH
20934 ;;
20935
20936 osf3* | osf4* | osf5*)
20937 version_type=osf
20938 need_lib_prefix=no
20939 need_version=no
20940 soname_spec='${libname}${release}${shared_ext}$major'
20941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20942 shlibpath_var=LD_LIBRARY_PATH
20943 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20944 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20945 ;;
20946
20947 rdos*)
20948 dynamic_linker=no
20949 ;;
20950
20951 solaris*)
20952 version_type=linux
20953 need_lib_prefix=no
20954 need_version=no
20955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20956 soname_spec='${libname}${release}${shared_ext}$major'
20957 shlibpath_var=LD_LIBRARY_PATH
20958 shlibpath_overrides_runpath=yes
20959 hardcode_into_libs=yes
20960 # ldd complains unless libraries are executable
20961 postinstall_cmds='chmod +x $lib'
20962 ;;
20963
20964 sunos4*)
20965 version_type=sunos
20966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20967 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20968 shlibpath_var=LD_LIBRARY_PATH
20969 shlibpath_overrides_runpath=yes
20970 if test "$with_gnu_ld" = yes; then
20971 need_lib_prefix=no
20972 fi
20973 need_version=yes
20974 ;;
20975
20976 sysv4 | sysv4.3*)
20977 version_type=linux
20978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20979 soname_spec='${libname}${release}${shared_ext}$major'
20980 shlibpath_var=LD_LIBRARY_PATH
20981 case $host_vendor in
20982 sni)
20983 shlibpath_overrides_runpath=no
20984 need_lib_prefix=no
20985 runpath_var=LD_RUN_PATH
20986 ;;
20987 siemens)
20988 need_lib_prefix=no
20989 ;;
20990 motorola)
20991 need_lib_prefix=no
20992 need_version=no
20993 shlibpath_overrides_runpath=no
20994 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20995 ;;
20996 esac
20997 ;;
20998
20999 sysv4*MP*)
21000 if test -d /usr/nec ;then
21001 version_type=linux
21002 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21003 soname_spec='$libname${shared_ext}.$major'
21004 shlibpath_var=LD_LIBRARY_PATH
21005 fi
21006 ;;
21007
21008 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21009 version_type=freebsd-elf
21010 need_lib_prefix=no
21011 need_version=no
21012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21013 soname_spec='${libname}${release}${shared_ext}$major'
21014 shlibpath_var=LD_LIBRARY_PATH
21015 shlibpath_overrides_runpath=yes
21016 hardcode_into_libs=yes
21017 if test "$with_gnu_ld" = yes; then
21018 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21019 else
21020 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21021 case $host_os in
21022 sco3.2v5*)
21023 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21024 ;;
21025 esac
21026 fi
21027 sys_lib_dlsearch_path_spec='/usr/lib'
21028 ;;
21029
21030 tpf*)
21031 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21032 version_type=linux
21033 need_lib_prefix=no
21034 need_version=no
21035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21036 shlibpath_var=LD_LIBRARY_PATH
21037 shlibpath_overrides_runpath=no
21038 hardcode_into_libs=yes
21039 ;;
21040
21041 uts4*)
21042 version_type=linux
21043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21044 soname_spec='${libname}${release}${shared_ext}$major'
21045 shlibpath_var=LD_LIBRARY_PATH
21046 ;;
21047
21048 *)
21049 dynamic_linker=no
21050 ;;
21051 esac
21052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21053 $as_echo "$dynamic_linker" >&6; }
21054 test "$dynamic_linker" = no && can_build_shared=no
21055
21056 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21057 if test "$GCC" = yes; then
21058 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21059 fi
21060
21061 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21062 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21063 fi
21064 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21065 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21066 fi
21067
21068
21069
21070
21071
21072
21073
21074
21075
21076
21077
21078
21079
21080
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092
21093
21094
21095
21096
21097
21098
21099
21100
21101
21102
21103
21104
21105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21106 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21107 hardcode_action_CXX=
21108 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21109 test -n "$runpath_var_CXX" ||
21110 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21111
21112 # We can hardcode non-existent directories.
21113 if test "$hardcode_direct_CXX" != no &&
21114 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21115 # have to relink, otherwise we might link with an installed library
21116 # when we should be linking with a yet-to-be-installed one
21117 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21118 test "$hardcode_minus_L_CXX" != no; then
21119 # Linking always hardcodes the temporary library directory.
21120 hardcode_action_CXX=relink
21121 else
21122 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21123 hardcode_action_CXX=immediate
21124 fi
21125 else
21126 # We cannot hardcode anything, or else we can only hardcode existing
21127 # directories.
21128 hardcode_action_CXX=unsupported
21129 fi
21130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21131 $as_echo "$hardcode_action_CXX" >&6; }
21132
21133 if test "$hardcode_action_CXX" = relink ||
21134 test "$inherit_rpath_CXX" = yes; then
21135 # Fast installation is not supported
21136 enable_fast_install=no
21137 elif test "$shlibpath_overrides_runpath" = yes ||
21138 test "$enable_shared" = no; then
21139 # Fast installation is not necessary
21140 enable_fast_install=needless
21141 fi
21142
21143
21144
21145
21146
21147
21148
21149 fi # test -n "$compiler"
21150
21151 CC=$lt_save_CC
21152 LDCXX=$LD
21153 LD=$lt_save_LD
21154 GCC=$lt_save_GCC
21155 with_gnu_ld=$lt_save_with_gnu_ld
21156 lt_cv_path_LDCXX=$lt_cv_path_LD
21157 lt_cv_path_LD=$lt_save_path_LD
21158 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21159 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21160 fi # test "$_lt_caught_CXX_error" != yes
21161
21162 ac_ext=c
21163 ac_cpp='$CPP $CPPFLAGS'
21164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21167
21168
21169
21170
21171
21172
21173
21174
21175
21176
21177
21178
21179
21180
21181
21182
21183 # Only expand once:
21184
21185
21186
21187
21188
21189 # Identify the assembler which will work hand-in-glove with the newly
21190 # built GCC, so that we can examine its features. This is the assembler
21191 # which will be driven by the driver program.
21192 #
21193 # If build != host, and we aren't building gas in-tree, we identify a
21194 # build->target assembler and hope that it will have the same features
21195 # as the host->target assembler we'll be using.
21196 gcc_cv_gas_major_version=
21197 gcc_cv_gas_minor_version=
21198 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21199
21200 if test "${gcc_cv_as+set}" = set; then :
21201
21202 else
21203
21204 if test -x "$DEFAULT_ASSEMBLER"; then
21205 gcc_cv_as="$DEFAULT_ASSEMBLER"
21206 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21207 && test -f ../gas/Makefile \
21208 && test x$build = x$host; then
21209 gcc_cv_as=../gas/as-new$build_exeext
21210 elif test -x as$build_exeext; then
21211 # Build using assembler in the current directory.
21212 gcc_cv_as=./as$build_exeext
21213 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21214 gcc_cv_as="$AS_FOR_TARGET"
21215 else
21216 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21217 set dummy $AS_FOR_TARGET; ac_word=$2
21218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21219 $as_echo_n "checking for $ac_word... " >&6; }
21220 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21221 $as_echo_n "(cached) " >&6
21222 else
21223 case $gcc_cv_as in
21224 [\\/]* | ?:[\\/]*)
21225 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21226 ;;
21227 *)
21228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21229 for as_dir in $PATH
21230 do
21231 IFS=$as_save_IFS
21232 test -z "$as_dir" && as_dir=.
21233 for ac_exec_ext in '' $ac_executable_extensions; do
21234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21235 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21237 break 2
21238 fi
21239 done
21240 done
21241 IFS=$as_save_IFS
21242
21243 ;;
21244 esac
21245 fi
21246 gcc_cv_as=$ac_cv_path_gcc_cv_as
21247 if test -n "$gcc_cv_as"; then
21248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21249 $as_echo "$gcc_cv_as" >&6; }
21250 else
21251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21252 $as_echo "no" >&6; }
21253 fi
21254
21255
21256 fi
21257 fi
21258
21259 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21260
21261 case "$ORIGINAL_AS_FOR_TARGET" in
21262 ./as | ./as$build_exeext) ;;
21263 *) ac_config_files="$ac_config_files as:exec-tool.in"
21264 ;;
21265 esac
21266
21267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21268 $as_echo_n "checking what assembler to use... " >&6; }
21269 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21270 # Single tree build which includes gas. We want to prefer it
21271 # over whatever linker top-level may have detected, since
21272 # we'll use what we're building after installation anyway.
21273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21274 $as_echo "newly built gas" >&6; }
21275 in_tree_gas=yes
21276 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21277 for f in $gcc_cv_as_bfd_srcdir/configure \
21278 $gcc_cv_as_gas_srcdir/configure \
21279 $gcc_cv_as_gas_srcdir/configure.in \
21280 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21281 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21282 if test x$gcc_cv_gas_version != x; then
21283 break
21284 fi
21285 done
21286 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21287 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21288 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21289 case $gcc_cv_gas_patch_version in
21290 "") gcc_cv_gas_patch_version="0" ;;
21291 esac
21292 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21293 + $gcc_cv_gas_minor_version \) \* 1000 \
21294 + $gcc_cv_gas_patch_version`
21295
21296 in_tree_gas_is_elf=no
21297 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21298 || (grep 'obj_format = multi' ../gas/Makefile \
21299 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21300 then
21301 in_tree_gas_is_elf=yes
21302 fi
21303 else
21304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21305 $as_echo "$gcc_cv_as" >&6; }
21306 in_tree_gas=no
21307 fi
21308
21309 # Identify the linker which will work hand-in-glove with the newly
21310 # built GCC, so that we can examine its features. This is the linker
21311 # which will be driven by the driver program.
21312 #
21313 # If build != host, and we aren't building gas in-tree, we identify a
21314 # build->target linker and hope that it will have the same features
21315 # as the host->target linker we'll be using.
21316 gcc_cv_gld_major_version=
21317 gcc_cv_gld_minor_version=
21318 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21319 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21320
21321 if test "${gcc_cv_ld+set}" = set; then :
21322
21323 else
21324
21325 if test -x "$DEFAULT_LINKER"; then
21326 gcc_cv_ld="$DEFAULT_LINKER"
21327 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21328 && test -f ../ld/Makefile \
21329 && test x$build = x$host; then
21330 gcc_cv_ld=../ld/ld-new$build_exeext
21331 elif test -x collect-ld$build_exeext; then
21332 # Build using linker in the current directory.
21333 gcc_cv_ld=./collect-ld$build_exeext
21334 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21335 gcc_cv_ld="$LD_FOR_TARGET"
21336 else
21337 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21338 set dummy $LD_FOR_TARGET; ac_word=$2
21339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21340 $as_echo_n "checking for $ac_word... " >&6; }
21341 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21342 $as_echo_n "(cached) " >&6
21343 else
21344 case $gcc_cv_ld in
21345 [\\/]* | ?:[\\/]*)
21346 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21347 ;;
21348 *)
21349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21350 for as_dir in $PATH
21351 do
21352 IFS=$as_save_IFS
21353 test -z "$as_dir" && as_dir=.
21354 for ac_exec_ext in '' $ac_executable_extensions; do
21355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21356 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21358 break 2
21359 fi
21360 done
21361 done
21362 IFS=$as_save_IFS
21363
21364 ;;
21365 esac
21366 fi
21367 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21368 if test -n "$gcc_cv_ld"; then
21369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21370 $as_echo "$gcc_cv_ld" >&6; }
21371 else
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21373 $as_echo "no" >&6; }
21374 fi
21375
21376
21377 fi
21378 fi
21379
21380 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21381 PLUGIN_LD=`basename $gcc_cv_ld`
21382
21383 # Check whether --with-plugin-ld was given.
21384 if test "${with_plugin_ld+set}" = set; then :
21385 withval=$with_plugin_ld; if test x"$withval" != x; then
21386 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21387 PLUGIN_LD="$withval"
21388 fi
21389 fi
21390
21391
21392
21393 cat >>confdefs.h <<_ACEOF
21394 #define PLUGIN_LD "$PLUGIN_LD"
21395 _ACEOF
21396
21397
21398 # Check to see if we are using gold instead of ld
21399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21400 $as_echo_n "checking whether we are using gold... " >&6; }
21401 ld_is_gold=no
21402 if test x$gcc_cv_ld != x; then
21403 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21404 | grep "GNU gold" > /dev/null; then
21405 ld_is_gold=yes
21406 fi
21407 fi
21408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21409 $as_echo "$ld_is_gold" >&6; }
21410
21411 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21412
21413 case "$ORIGINAL_LD_FOR_TARGET" in
21414 ./collect-ld | ./collect-ld$build_exeext) ;;
21415 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21416 ;;
21417 esac
21418
21419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21420 $as_echo_n "checking what linker to use... " >&6; }
21421 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21422 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21423 # Single tree build which includes ld. We want to prefer it
21424 # over whatever linker top-level may have detected, since
21425 # we'll use what we're building after installation anyway.
21426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21427 $as_echo "newly built ld" >&6; }
21428 in_tree_ld=yes
21429 in_tree_ld_is_elf=no
21430 if (grep 'EMUL = .*elf' ../ld/Makefile \
21431 || grep 'EMUL = .*linux' ../ld/Makefile \
21432 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21433 in_tree_ld_is_elf=yes
21434 elif test "$ld_is_gold" = yes; then
21435 in_tree_ld_is_elf=yes
21436 fi
21437 for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in
21438 do
21439 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21440 if test x$gcc_cv_gld_version != x; then
21441 break
21442 fi
21443 done
21444 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21445 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21446 else
21447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21448 $as_echo "$gcc_cv_ld" >&6; }
21449 in_tree_ld=no
21450 fi
21451
21452 # Figure out what nm we will be using.
21453 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21454 if test "${gcc_cv_nm+set}" = set; then :
21455
21456 else
21457
21458 if test -f $gcc_cv_binutils_srcdir/configure.in \
21459 && test -f ../binutils/Makefile \
21460 && test x$build = x$host; then
21461 gcc_cv_nm=../binutils/nm-new$build_exeext
21462 elif test -x nm$build_exeext; then
21463 gcc_cv_nm=./nm$build_exeext
21464 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21465 gcc_cv_nm="$NM_FOR_TARGET"
21466 else
21467 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21468 set dummy $NM_FOR_TARGET; ac_word=$2
21469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21470 $as_echo_n "checking for $ac_word... " >&6; }
21471 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21472 $as_echo_n "(cached) " >&6
21473 else
21474 case $gcc_cv_nm in
21475 [\\/]* | ?:[\\/]*)
21476 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21477 ;;
21478 *)
21479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21480 for as_dir in $PATH
21481 do
21482 IFS=$as_save_IFS
21483 test -z "$as_dir" && as_dir=.
21484 for ac_exec_ext in '' $ac_executable_extensions; do
21485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21486 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21488 break 2
21489 fi
21490 done
21491 done
21492 IFS=$as_save_IFS
21493
21494 ;;
21495 esac
21496 fi
21497 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21498 if test -n "$gcc_cv_nm"; then
21499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21500 $as_echo "$gcc_cv_nm" >&6; }
21501 else
21502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21503 $as_echo "no" >&6; }
21504 fi
21505
21506
21507 fi
21508 fi
21509
21510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21511 $as_echo_n "checking what nm to use... " >&6; }
21512 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21513 # Single tree build which includes binutils.
21514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21515 $as_echo "newly built nm" >&6; }
21516 in_tree_nm=yes
21517 else
21518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21519 $as_echo "$gcc_cv_nm" >&6; }
21520 in_tree_nm=no
21521 fi
21522
21523 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21524
21525 case "$ORIGINAL_NM_FOR_TARGET" in
21526 ./nm | ./nm$build_exeext) ;;
21527 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21528 ;;
21529 esac
21530
21531
21532 # Figure out what objdump we will be using.
21533 if test "${gcc_cv_objdump+set}" = set; then :
21534
21535 else
21536
21537 if test -f $gcc_cv_binutils_srcdir/configure.in \
21538 && test -f ../binutils/Makefile \
21539 && test x$build = x$host; then
21540 # Single tree build which includes binutils.
21541 gcc_cv_objdump=../binutils/objdump$build_exeext
21542 elif test -x objdump$build_exeext; then
21543 gcc_cv_objdump=./objdump$build_exeext
21544 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21545 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21546 else
21547 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21548 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21550 $as_echo_n "checking for $ac_word... " >&6; }
21551 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21552 $as_echo_n "(cached) " >&6
21553 else
21554 case $gcc_cv_objdump in
21555 [\\/]* | ?:[\\/]*)
21556 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21557 ;;
21558 *)
21559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21560 for as_dir in $PATH
21561 do
21562 IFS=$as_save_IFS
21563 test -z "$as_dir" && as_dir=.
21564 for ac_exec_ext in '' $ac_executable_extensions; do
21565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21566 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21568 break 2
21569 fi
21570 done
21571 done
21572 IFS=$as_save_IFS
21573
21574 ;;
21575 esac
21576 fi
21577 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21578 if test -n "$gcc_cv_objdump"; then
21579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21580 $as_echo "$gcc_cv_objdump" >&6; }
21581 else
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21583 $as_echo "no" >&6; }
21584 fi
21585
21586
21587 fi
21588 fi
21589
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21591 $as_echo_n "checking what objdump to use... " >&6; }
21592 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21593 # Single tree build which includes binutils.
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21595 $as_echo "newly built objdump" >&6; }
21596 elif test x$gcc_cv_objdump = x; then
21597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21598 $as_echo "not found" >&6; }
21599 else
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21601 $as_echo "$gcc_cv_objdump" >&6; }
21602 fi
21603
21604 # Figure out what readelf we will be using.
21605 if test "${gcc_cv_readelf+set}" = set; then :
21606
21607 else
21608
21609 if test -f $gcc_cv_binutils_srcdir/configure.in \
21610 && test -f ../binutils/Makefile \
21611 && test x$build = x$host; then
21612 # Single tree build which includes binutils.
21613 gcc_cv_readelf=../binutils/readelf$build_exeext
21614 elif test -x readelf$build_exeext; then
21615 gcc_cv_readelf=./readelf$build_exeext
21616 else
21617 # Extract the first word of "readelf", so it can be a program name with args.
21618 set dummy readelf; ac_word=$2
21619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21620 $as_echo_n "checking for $ac_word... " >&6; }
21621 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21622 $as_echo_n "(cached) " >&6
21623 else
21624 case $gcc_cv_readelf in
21625 [\\/]* | ?:[\\/]*)
21626 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21627 ;;
21628 *)
21629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21630 for as_dir in $PATH
21631 do
21632 IFS=$as_save_IFS
21633 test -z "$as_dir" && as_dir=.
21634 for ac_exec_ext in '' $ac_executable_extensions; do
21635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21636 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21638 break 2
21639 fi
21640 done
21641 done
21642 IFS=$as_save_IFS
21643
21644 ;;
21645 esac
21646 fi
21647 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21648 if test -n "$gcc_cv_readelf"; then
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21650 $as_echo "$gcc_cv_readelf" >&6; }
21651 else
21652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21653 $as_echo "no" >&6; }
21654 fi
21655
21656
21657 fi
21658 fi
21659
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21661 $as_echo_n "checking what readelf to use... " >&6; }
21662 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21663 # Single tree build which includes binutils.
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21665 $as_echo "newly built readelf" >&6; }
21666 elif test x$gcc_cv_readelf = x; then
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21668 $as_echo "not found" >&6; }
21669 else
21670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21671 $as_echo "$gcc_cv_readelf" >&6; }
21672 fi
21673
21674 # Figure out what assembler alignment features are present.
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21676 $as_echo_n "checking assembler flags... " >&6; }
21677 if test "${gcc_cv_as_flags+set}" = set; then :
21678 $as_echo_n "(cached) " >&6
21679 else
21680 case "$target" in
21681 i[34567]86-*-linux*)
21682 gcc_cv_as_flags="--32"
21683 ;;
21684 powerpc*-*-darwin*)
21685 gcc_cv_as_flags="-arch ppc"
21686 ;;
21687 *)
21688 gcc_cv_as_flags=" "
21689 ;;
21690 esac
21691 fi
21692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21693 $as_echo "$gcc_cv_as_flags" >&6; }
21694
21695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21696 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21697 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21698 $as_echo_n "(cached) " >&6
21699 else
21700 gcc_cv_as_balign_and_p2align=no
21701 if test $in_tree_gas = yes; then
21702 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21703 then gcc_cv_as_balign_and_p2align=yes
21704 fi
21705 elif test x$gcc_cv_as != x; then
21706 $as_echo '.balign 4
21707 .p2align 2' > conftest.s
21708 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21710 (eval $ac_try) 2>&5
21711 ac_status=$?
21712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21713 test $ac_status = 0; }; }
21714 then
21715 gcc_cv_as_balign_and_p2align=yes
21716 else
21717 echo "configure: failed program was" >&5
21718 cat conftest.s >&5
21719 fi
21720 rm -f conftest.o conftest.s
21721 fi
21722 fi
21723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21724 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21725 if test $gcc_cv_as_balign_and_p2align = yes; then
21726
21727 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21728
21729 fi
21730
21731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21732 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21733 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21734 $as_echo_n "(cached) " >&6
21735 else
21736 gcc_cv_as_max_skip_p2align=no
21737 if test $in_tree_gas = yes; then
21738 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21739 then gcc_cv_as_max_skip_p2align=yes
21740 fi
21741 elif test x$gcc_cv_as != x; then
21742 $as_echo '.p2align 4,,7' > conftest.s
21743 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21745 (eval $ac_try) 2>&5
21746 ac_status=$?
21747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21748 test $ac_status = 0; }; }
21749 then
21750 gcc_cv_as_max_skip_p2align=yes
21751 else
21752 echo "configure: failed program was" >&5
21753 cat conftest.s >&5
21754 fi
21755 rm -f conftest.o conftest.s
21756 fi
21757 fi
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21759 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21760 if test $gcc_cv_as_max_skip_p2align = yes; then
21761
21762 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21763
21764 fi
21765
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21767 $as_echo_n "checking assembler for .literal16... " >&6; }
21768 if test "${gcc_cv_as_literal16+set}" = set; then :
21769 $as_echo_n "(cached) " >&6
21770 else
21771 gcc_cv_as_literal16=no
21772 if test $in_tree_gas = yes; then
21773 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21774 then gcc_cv_as_literal16=yes
21775 fi
21776 elif test x$gcc_cv_as != x; then
21777 $as_echo '.literal16' > conftest.s
21778 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21780 (eval $ac_try) 2>&5
21781 ac_status=$?
21782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21783 test $ac_status = 0; }; }
21784 then
21785 gcc_cv_as_literal16=yes
21786 else
21787 echo "configure: failed program was" >&5
21788 cat conftest.s >&5
21789 fi
21790 rm -f conftest.o conftest.s
21791 fi
21792 fi
21793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21794 $as_echo "$gcc_cv_as_literal16" >&6; }
21795 if test $gcc_cv_as_literal16 = yes; then
21796
21797 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21798
21799 fi
21800
21801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21802 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21803 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21804 $as_echo_n "(cached) " >&6
21805 else
21806 gcc_cv_as_subsection_m1=no
21807 if test $in_tree_gas = yes; then
21808 if test $in_tree_gas_is_elf = yes \
21809 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21810 then gcc_cv_as_subsection_m1=yes
21811 fi
21812 elif test x$gcc_cv_as != x; then
21813 $as_echo 'conftest_label1: .word 0
21814 .subsection -1
21815 conftest_label2: .word 0
21816 .previous' > conftest.s
21817 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21818 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21819 (eval $ac_try) 2>&5
21820 ac_status=$?
21821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21822 test $ac_status = 0; }; }
21823 then
21824 if test x$gcc_cv_nm != x; then
21825 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21826 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21827 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21828 then :
21829 else gcc_cv_as_subsection_m1=yes
21830 fi
21831 rm -f conftest.nm1 conftest.nm2
21832 fi
21833 else
21834 echo "configure: failed program was" >&5
21835 cat conftest.s >&5
21836 fi
21837 rm -f conftest.o conftest.s
21838 fi
21839 fi
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21841 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21842 if test $gcc_cv_as_subsection_m1 = yes; then
21843
21844 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21845
21846 fi
21847
21848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21849 $as_echo_n "checking assembler for .weak... " >&6; }
21850 if test "${gcc_cv_as_weak+set}" = set; then :
21851 $as_echo_n "(cached) " >&6
21852 else
21853 gcc_cv_as_weak=no
21854 if test $in_tree_gas = yes; then
21855 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21856 then gcc_cv_as_weak=yes
21857 fi
21858 elif test x$gcc_cv_as != x; then
21859 $as_echo ' .weak foobar' > conftest.s
21860 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21862 (eval $ac_try) 2>&5
21863 ac_status=$?
21864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21865 test $ac_status = 0; }; }
21866 then
21867 gcc_cv_as_weak=yes
21868 else
21869 echo "configure: failed program was" >&5
21870 cat conftest.s >&5
21871 fi
21872 rm -f conftest.o conftest.s
21873 fi
21874 fi
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21876 $as_echo "$gcc_cv_as_weak" >&6; }
21877 if test $gcc_cv_as_weak = yes; then
21878
21879 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21880
21881 fi
21882
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21884 $as_echo_n "checking assembler for .weakref... " >&6; }
21885 if test "${gcc_cv_as_weakref+set}" = set; then :
21886 $as_echo_n "(cached) " >&6
21887 else
21888 gcc_cv_as_weakref=no
21889 if test $in_tree_gas = yes; then
21890 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21891 then gcc_cv_as_weakref=yes
21892 fi
21893 elif test x$gcc_cv_as != x; then
21894 $as_echo ' .weakref foobar, barfnot' > conftest.s
21895 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21897 (eval $ac_try) 2>&5
21898 ac_status=$?
21899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21900 test $ac_status = 0; }; }
21901 then
21902 gcc_cv_as_weakref=yes
21903 else
21904 echo "configure: failed program was" >&5
21905 cat conftest.s >&5
21906 fi
21907 rm -f conftest.o conftest.s
21908 fi
21909 fi
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21911 $as_echo "$gcc_cv_as_weakref" >&6; }
21912 if test $gcc_cv_as_weakref = yes; then
21913
21914 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21915
21916 fi
21917
21918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21919 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21920 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21921 $as_echo_n "(cached) " >&6
21922 else
21923 gcc_cv_as_nsubspa_comdat=no
21924 if test $in_tree_gas = yes; then
21925 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21926 then gcc_cv_as_nsubspa_comdat=yes
21927 fi
21928 elif test x$gcc_cv_as != x; then
21929 $as_echo ' .SPACE $TEXT$
21930 .NSUBSPA $CODE$,COMDAT' > conftest.s
21931 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21933 (eval $ac_try) 2>&5
21934 ac_status=$?
21935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21936 test $ac_status = 0; }; }
21937 then
21938 gcc_cv_as_nsubspa_comdat=yes
21939 else
21940 echo "configure: failed program was" >&5
21941 cat conftest.s >&5
21942 fi
21943 rm -f conftest.o conftest.s
21944 fi
21945 fi
21946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21947 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21948 if test $gcc_cv_as_nsubspa_comdat = yes; then
21949
21950 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21951
21952 fi
21953
21954 # .hidden needs to be supported in both the assembler and the linker,
21955 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21956 # This is irritatingly difficult to feature test for; we have to check the
21957 # date string after the version number. If we've got an in-tree
21958 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21959 # to be safe.
21960 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21962 $as_echo_n "checking assembler for .hidden... " >&6; }
21963 if test "${gcc_cv_as_hidden+set}" = set; then :
21964 $as_echo_n "(cached) " >&6
21965 else
21966 gcc_cv_as_hidden=no
21967 if test $in_tree_gas = yes; then
21968 if test $in_tree_gas_is_elf = yes \
21969 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21970 then gcc_cv_as_hidden=yes
21971 fi
21972 elif test x$gcc_cv_as != x; then
21973 $as_echo ' .hidden foobar
21974 foobar:' > conftest.s
21975 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21977 (eval $ac_try) 2>&5
21978 ac_status=$?
21979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21980 test $ac_status = 0; }; }
21981 then
21982
21983 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21984 # STV_HIDDEN, so disable .hidden support if so.
21985 case "${target}" in
21986 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
21987 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21988 cat > conftest.s <<EOF
21989 .globl hidden
21990 .hidden hidden
21991 hidden:
21992 .globl default
21993 .set default,hidden
21994 EOF
21995 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
21996 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
21997 grep '\.hidden default' > /dev/null; then
21998 gcc_cv_as_hidden=no
21999 else
22000 gcc_cv_as_hidden=yes
22001 fi
22002 else
22003 # Assume bug is present if objdump is missing.
22004 gcc_cv_as_hidden=no
22005 fi
22006 ;;
22007 *)
22008 gcc_cv_as_hidden=yes
22009 ;;
22010 esac
22011 else
22012 echo "configure: failed program was" >&5
22013 cat conftest.s >&5
22014 fi
22015 rm -f conftest.o conftest.s
22016 fi
22017 fi
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22019 $as_echo "$gcc_cv_as_hidden" >&6; }
22020
22021 case "${target}" in
22022 *-*-darwin*)
22023 # Darwin as has some visibility support, though with a different syntax.
22024 gcc_cv_as_hidden=yes
22025 ;;
22026 esac
22027
22028 # gnu_indirect_function type is an extension proposed at
22029 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22030 # selection of function implementation
22031 # Check whether --enable-gnu-indirect-function was given.
22032 if test "${enable_gnu_indirect_function+set}" = set; then :
22033 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22034 yes | no) ;;
22035 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22036 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22037 esac
22038 else
22039 enable_gnu_indirect_function="$default_gnu_indirect_function"
22040 fi
22041
22042 if test x$enable_gnu_indirect_function = xyes; then
22043
22044 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22045
22046 fi
22047
22048 if test $in_tree_ld != yes ; then
22049 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22050 if echo "$ld_ver" | grep GNU > /dev/null; then
22051 if test x"$ld_is_gold" = xyes; then
22052 # GNU gold --version looks like this:
22053 #
22054 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22055 #
22056 # We extract the binutils version which is more familiar and specific
22057 # than the gold version.
22058 ld_vers=`echo $ld_ver | sed -n \
22059 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22060 else
22061 # GNU ld --version looks like this:
22062 #
22063 # GNU ld (GNU Binutils) 2.21.51.20110225
22064 ld_vers=`echo $ld_ver | sed -n \
22065 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22066 fi
22067 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'`
22068 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22069 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22070 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22071 else
22072 case "${target}" in
22073 *-*-solaris2*)
22074 #
22075 # Solaris 2 ld -V output looks like this for a regular version:
22076 #
22077 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22078 #
22079 # but test versions add stuff at the end:
22080 #
22081 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22082 #
22083 ld_ver=`$gcc_cv_ld -V 2>&1`
22084 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22085 ld_vers=`echo $ld_ver | sed -n \
22086 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22087 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22088 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22089 fi
22090 ;;
22091 esac
22092 fi
22093 fi
22094
22095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22096 $as_echo_n "checking linker for .hidden support... " >&6; }
22097 if test "${gcc_cv_ld_hidden+set}" = set; then :
22098 $as_echo_n "(cached) " >&6
22099 else
22100 if test $in_tree_ld = yes ; then
22101 gcc_cv_ld_hidden=no
22102 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 \
22103 && test $in_tree_ld_is_elf = yes; then
22104 gcc_cv_ld_hidden=yes
22105 fi
22106 else
22107 gcc_cv_ld_hidden=yes
22108 if test x"$ld_is_gold" = xyes; then
22109 :
22110 elif echo "$ld_ver" | grep GNU > /dev/null; then
22111 if test 0"$ld_date" -lt 20020404; then
22112 if test -n "$ld_date"; then
22113 # If there was date string, but was earlier than 2002-04-04, fail
22114 gcc_cv_ld_hidden=no
22115 elif test -z "$ld_vers"; then
22116 # If there was no date string nor ld version number, something is wrong
22117 gcc_cv_ld_hidden=no
22118 else
22119 test -z "$ld_vers_patch" && ld_vers_patch=0
22120 if test "$ld_vers_major" -lt 2; then
22121 gcc_cv_ld_hidden=no
22122 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22123 gcc_cv_ld_hidden="no"
22124 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22125 gcc_cv_ld_hidden=no
22126 fi
22127 fi
22128 fi
22129 else
22130 case "${target}" in
22131 *-*-darwin*)
22132 # Darwin ld has some visibility support.
22133 gcc_cv_ld_hidden=yes
22134 ;;
22135 hppa64*-*-hpux* | ia64*-*-hpux*)
22136 gcc_cv_ld_hidden=yes
22137 ;;
22138 *-*-solaris2.8*)
22139 # .hidden support was backported to Solaris 8, starting with ld
22140 # version 1.276.
22141 if test "$ld_vers_minor" -ge 276; then
22142 gcc_cv_ld_hidden=yes
22143 else
22144 gcc_cv_ld_hidden=no
22145 fi
22146 ;;
22147 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22148 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22149 # .symbolic was only added in Solaris 9 12/02.
22150 gcc_cv_ld_hidden=yes
22151 ;;
22152 *)
22153 gcc_cv_ld_hidden=no
22154 ;;
22155 esac
22156 fi
22157 fi
22158 fi
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22160 $as_echo "$gcc_cv_ld_hidden" >&6; }
22161 libgcc_visibility=no
22162
22163
22164 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22165 libgcc_visibility=yes
22166
22167 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22168
22169 fi
22170
22171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22172 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22173 gcc_cv_ld_ro_rw_mix=unknown
22174 if test $in_tree_ld = yes ; then
22175 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 \
22176 && test $in_tree_ld_is_elf = yes; then
22177 gcc_cv_ld_ro_rw_mix=read-write
22178 fi
22179 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22180 echo '.section myfoosect, "a"' > conftest1.s
22181 echo '.section myfoosect, "aw"' > conftest2.s
22182 echo '.byte 1' >> conftest2.s
22183 echo '.section myfoosect, "a"' > conftest3.s
22184 echo '.byte 0' >> conftest3.s
22185 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22186 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22187 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22188 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22189 conftest2.o conftest3.o > /dev/null 2>&1; then
22190 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22191 | sed -e '/myfoosect/!d' -e N`
22192 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22193 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22194 gcc_cv_ld_ro_rw_mix=read-only
22195 else
22196 gcc_cv_ld_ro_rw_mix=read-write
22197 fi
22198 fi
22199 fi
22200 rm -f conftest.* conftest[123].*
22201 fi
22202 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22203
22204 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22205
22206 fi
22207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22208 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22209
22210 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22212 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22213 if test "${gcc_cv_as_leb128+set}" = set; then :
22214 $as_echo_n "(cached) " >&6
22215 else
22216 gcc_cv_as_leb128=no
22217 if test $in_tree_gas = yes; then
22218 if test $in_tree_gas_is_elf = yes \
22219 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22220 then gcc_cv_as_leb128=yes
22221 fi
22222 elif test x$gcc_cv_as != x; then
22223 $as_echo ' .data
22224 .uleb128 L2 - L1
22225 L1:
22226 .uleb128 1280
22227 .sleb128 -1010
22228 L2:' > conftest.s
22229 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22231 (eval $ac_try) 2>&5
22232 ac_status=$?
22233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22234 test $ac_status = 0; }; }
22235 then
22236 # GAS versions before 2.11 do not support uleb128,
22237 # despite appearing to.
22238 # ??? There exists an elf-specific test that will crash
22239 # the assembler. Perhaps it's better to figure out whether
22240 # arbitrary sections are supported and try the test.
22241 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22242 if echo "$as_ver" | grep GNU > /dev/null; then
22243 as_vers=`echo $as_ver | sed -n \
22244 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22245 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22246 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22247 if test $as_major -eq 2 && test $as_minor -lt 11
22248 then :
22249 else gcc_cv_as_leb128=yes
22250 fi
22251 fi
22252 else
22253 echo "configure: failed program was" >&5
22254 cat conftest.s >&5
22255 fi
22256 rm -f conftest.o conftest.s
22257 fi
22258 fi
22259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22260 $as_echo "$gcc_cv_as_leb128" >&6; }
22261 if test $gcc_cv_as_leb128 = yes; then
22262
22263 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22264
22265 fi
22266
22267 # Check if we have assembler support for unwind directives.
22268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22269 $as_echo_n "checking assembler for cfi directives... " >&6; }
22270 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22271 $as_echo_n "(cached) " >&6
22272 else
22273 gcc_cv_as_cfi_directive=no
22274 if test x$gcc_cv_as != x; then
22275 $as_echo ' .text
22276 .cfi_startproc
22277 .cfi_offset 0, 0
22278 .cfi_same_value 1
22279 .cfi_def_cfa 1, 2
22280 .cfi_escape 1, 2, 3, 4, 5
22281 .cfi_endproc' > conftest.s
22282 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22284 (eval $ac_try) 2>&5
22285 ac_status=$?
22286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22287 test $ac_status = 0; }; }
22288 then
22289 case "$target" in
22290 *-*-solaris*)
22291 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22292 # read-only and read-write sections, we need to make sure that the
22293 # assembler used emits read-write .eh_frame sections.
22294 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22295 if test "x$gcc_cv_objdump" != x; then
22296 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22297 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22298 gcc_cv_as_cfi_directive=no
22299 else
22300 case "$target" in
22301 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22302 # On Solaris/x86, make sure that GCC and gas agree on using
22303 # read-only .eh_frame sections for 64-bit.
22304 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22305 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22306 sed -e /.eh_frame/!d -e N | \
22307 grep READONLY > /dev/null; then
22308 gcc_cv_as_cfi_directive=yes
22309 else
22310 gcc_cv_as_cfi_directive=no
22311 fi
22312 ;;
22313 *)
22314 gcc_cv_as_cfi_directive=yes
22315 ;;
22316 esac
22317 fi
22318 else
22319 # no objdump, err on the side of caution
22320 gcc_cv_as_cfi_directive=no
22321 fi
22322 else
22323 gcc_cv_as_cfi_directive=yes
22324 fi
22325 ;;
22326 *-*-*)
22327 gcc_cv_as_cfi_directive=yes
22328 ;;
22329 esac
22330 else
22331 echo "configure: failed program was" >&5
22332 cat conftest.s >&5
22333 fi
22334 rm -f conftest.o conftest.s
22335 fi
22336 fi
22337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22338 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22339
22340 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22342 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22343 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22344 $as_echo_n "(cached) " >&6
22345 else
22346 gcc_cv_as_cfi_advance_working=no
22347 if test x$gcc_cv_as != x; then
22348 $as_echo ' .text
22349 .cfi_startproc
22350 .cfi_adjust_cfa_offset 64
22351 .skip 75040, 0
22352 .cfi_adjust_cfa_offset 128
22353 .cfi_endproc' > conftest.s
22354 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22356 (eval $ac_try) 2>&5
22357 ac_status=$?
22358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22359 test $ac_status = 0; }; }
22360 then
22361
22362 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22363 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22364 gcc_cv_as_cfi_advance_working=yes
22365 fi
22366
22367 else
22368 echo "configure: failed program was" >&5
22369 cat conftest.s >&5
22370 fi
22371 rm -f conftest.o conftest.s
22372 fi
22373 fi
22374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22375 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22376
22377 else
22378 # no objdump, err on the side of caution
22379 gcc_cv_as_cfi_advance_working=no
22380 fi
22381
22382
22383 cat >>confdefs.h <<_ACEOF
22384 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22385 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22386 _ACEOF
22387
22388
22389
22390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22391 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22392 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22393 $as_echo_n "(cached) " >&6
22394 else
22395 gcc_cv_as_cfi_personality_directive=no
22396 if test x$gcc_cv_as != x; then
22397 $as_echo ' .text
22398 .cfi_startproc
22399 .cfi_personality 0, symbol
22400 .cfi_endproc' > conftest.s
22401 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22403 (eval $ac_try) 2>&5
22404 ac_status=$?
22405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22406 test $ac_status = 0; }; }
22407 then
22408 gcc_cv_as_cfi_personality_directive=yes
22409 else
22410 echo "configure: failed program was" >&5
22411 cat conftest.s >&5
22412 fi
22413 rm -f conftest.o conftest.s
22414 fi
22415 fi
22416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22417 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22418
22419
22420 cat >>confdefs.h <<_ACEOF
22421 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22422 then echo 1; else echo 0; fi`
22423 _ACEOF
22424
22425
22426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22427 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22428 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22429 $as_echo_n "(cached) " >&6
22430 else
22431 gcc_cv_as_cfi_sections_directive=no
22432 if test x$gcc_cv_as != x; then
22433 $as_echo ' .text
22434 .cfi_sections .debug_frame, .eh_frame
22435 .cfi_startproc
22436 .cfi_endproc' > conftest.s
22437 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22439 (eval $ac_try) 2>&5
22440 ac_status=$?
22441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22442 test $ac_status = 0; }; }
22443 then
22444 case $target_os in
22445 win32 | pe | cygwin* | mingw32* | uwin*)
22446 # Need to check that we generated the correct relocation for the
22447 # .debug_frame section. This was fixed for binutils 2.21.
22448 gcc_cv_as_cfi_sections_directive=no
22449 if test "x$gcc_cv_objdump" != x; then
22450 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22451 grep secrel > /dev/null; then
22452 gcc_cv_as_cfi_sections_directive=yes
22453 fi
22454 fi
22455 ;;
22456 *)
22457 gcc_cv_as_cfi_sections_directive=yes
22458 ;;
22459 esac
22460 else
22461 echo "configure: failed program was" >&5
22462 cat conftest.s >&5
22463 fi
22464 rm -f conftest.o conftest.s
22465 fi
22466 fi
22467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22468 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22469
22470
22471
22472 cat >>confdefs.h <<_ACEOF
22473 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22474 then echo 1; else echo 0; fi`
22475 _ACEOF
22476
22477
22478 # GAS versions up to and including 2.11.0 may mis-optimize
22479 # .eh_frame data.
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22481 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22482 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22483 $as_echo_n "(cached) " >&6
22484 else
22485 gcc_cv_as_eh_frame=no
22486 if test $in_tree_gas = yes; then
22487 if test $in_tree_gas_is_elf = yes \
22488 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22489 then gcc_cv_as_eh_frame=yes
22490 fi
22491 elif test x$gcc_cv_as != x; then
22492 $as_echo ' .text
22493 .LFB1:
22494 .4byte 0
22495 .L1:
22496 .4byte 0
22497 .LFE1:
22498 .section .eh_frame,"aw",@progbits
22499 __FRAME_BEGIN__:
22500 .4byte .LECIE1-.LSCIE1
22501 .LSCIE1:
22502 .4byte 0x0
22503 .byte 0x1
22504 .ascii "z\0"
22505 .byte 0x1
22506 .byte 0x78
22507 .byte 0x1a
22508 .byte 0x0
22509 .byte 0x4
22510 .4byte 1
22511 .p2align 1
22512 .LECIE1:
22513 .LSFDE1:
22514 .4byte .LEFDE1-.LASFDE1
22515 .LASFDE1:
22516 .4byte .LASFDE1-__FRAME_BEGIN__
22517 .4byte .LFB1
22518 .4byte .LFE1-.LFB1
22519 .byte 0x4
22520 .4byte .LFE1-.LFB1
22521 .byte 0x4
22522 .4byte .L1-.LFB1
22523 .LEFDE1:' > conftest.s
22524 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22526 (eval $ac_try) 2>&5
22527 ac_status=$?
22528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22529 test $ac_status = 0; }; }
22530 then
22531 cat > conftest.lit <<EOF
22532 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22533 0010 01000000 12000000 18000000 00000000 ................
22534 0020 08000000 04080000 0044 .........D
22535 EOF
22536 cat > conftest.big <<EOF
22537 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22538 0010 00000001 00000012 00000018 00000000 ................
22539 0020 00000008 04000000 0844 .........D
22540 EOF
22541 # If the assembler didn't choke, and we can objdump,
22542 # and we got the correct data, then succeed.
22543 # The text in the here-document typically retains its unix-style line
22544 # endings, while the output of objdump will use host line endings.
22545 # Therefore, use diff -b for the comparisons.
22546 if test x$gcc_cv_objdump != x \
22547 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22548 | tail -3 > conftest.got \
22549 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22550 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22551 then
22552 gcc_cv_as_eh_frame=yes
22553 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22555 (eval $ac_try) 2>&5
22556 ac_status=$?
22557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22558 test $ac_status = 0; }; }; then
22559 gcc_cv_as_eh_frame=buggy
22560 else
22561 # Uh oh, what do we do now?
22562 gcc_cv_as_eh_frame=no
22563 fi
22564 else
22565 echo "configure: failed program was" >&5
22566 cat conftest.s >&5
22567 fi
22568 rm -f conftest.o conftest.s
22569 fi
22570 fi
22571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22572 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22573
22574
22575 if test $gcc_cv_as_eh_frame = buggy; then
22576
22577 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22578
22579 fi
22580
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22582 $as_echo_n "checking assembler for section merging support... " >&6; }
22583 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22584 $as_echo_n "(cached) " >&6
22585 else
22586 gcc_cv_as_shf_merge=no
22587 if test $in_tree_gas = yes; then
22588 if test $in_tree_gas_is_elf = yes \
22589 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22590 then gcc_cv_as_shf_merge=yes
22591 fi
22592 elif test x$gcc_cv_as != x; then
22593 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22594 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22596 (eval $ac_try) 2>&5
22597 ac_status=$?
22598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22599 test $ac_status = 0; }; }
22600 then
22601 gcc_cv_as_shf_merge=yes
22602 else
22603 echo "configure: failed program was" >&5
22604 cat conftest.s >&5
22605 fi
22606 rm -f conftest.o conftest.s
22607 fi
22608 fi
22609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22610 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22611
22612 if test $gcc_cv_as_shf_merge = no; then
22613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22614 $as_echo_n "checking assembler for section merging support... " >&6; }
22615 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22616 $as_echo_n "(cached) " >&6
22617 else
22618 gcc_cv_as_shf_merge=no
22619 if test $in_tree_gas = yes; then
22620 if test $in_tree_gas_is_elf = yes \
22621 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22622 then gcc_cv_as_shf_merge=yes
22623 fi
22624 elif test x$gcc_cv_as != x; then
22625 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22626 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22628 (eval $ac_try) 2>&5
22629 ac_status=$?
22630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22631 test $ac_status = 0; }; }
22632 then
22633 gcc_cv_as_shf_merge=yes
22634 else
22635 echo "configure: failed program was" >&5
22636 cat conftest.s >&5
22637 fi
22638 rm -f conftest.o conftest.s
22639 fi
22640 fi
22641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22642 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22643
22644 fi
22645
22646 cat >>confdefs.h <<_ACEOF
22647 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22648 _ACEOF
22649
22650
22651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22652 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22653 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22654 $as_echo_n "(cached) " >&6
22655 else
22656 gcc_cv_as_comdat_group=no
22657 if test $in_tree_gas = yes; then
22658 if test $in_tree_gas_is_elf = yes \
22659 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22660 then gcc_cv_as_comdat_group=yes
22661 fi
22662 elif test x$gcc_cv_as != x; then
22663 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22664 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22666 (eval $ac_try) 2>&5
22667 ac_status=$?
22668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22669 test $ac_status = 0; }; }
22670 then
22671 gcc_cv_as_comdat_group=yes
22672 else
22673 echo "configure: failed program was" >&5
22674 cat conftest.s >&5
22675 fi
22676 rm -f conftest.o conftest.s
22677 fi
22678 fi
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22680 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22681
22682 if test $gcc_cv_as_comdat_group = yes; then
22683 gcc_cv_as_comdat_group_percent=no
22684 gcc_cv_as_comdat_group_group=no
22685 else
22686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22687 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22688 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22689 $as_echo_n "(cached) " >&6
22690 else
22691 gcc_cv_as_comdat_group_percent=no
22692 if test $in_tree_gas = yes; then
22693 if test $in_tree_gas_is_elf = yes \
22694 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22695 then gcc_cv_as_comdat_group_percent=yes
22696 fi
22697 elif test x$gcc_cv_as != x; then
22698 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22699 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22700 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22701 (eval $ac_try) 2>&5
22702 ac_status=$?
22703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22704 test $ac_status = 0; }; }
22705 then
22706 gcc_cv_as_comdat_group_percent=yes
22707 else
22708 echo "configure: failed program was" >&5
22709 cat conftest.s >&5
22710 fi
22711 rm -f conftest.o conftest.s
22712 fi
22713 fi
22714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22715 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22716
22717 if test $gcc_cv_as_comdat_group_percent = yes; then
22718 gcc_cv_as_comdat_group_group=no
22719 else
22720 case "${target}" in
22721 # Sun as uses a completely different syntax.
22722 *-*-solaris2*)
22723 case "${target}" in
22724 sparc*-*-solaris2*)
22725 conftest_s='
22726 .group foo,".text%foo",#comdat
22727 .section ".text%foo", #alloc,#execinstr,#progbits
22728 .globl foo
22729 foo:
22730 '
22731 ;;
22732 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22733 conftest_s='
22734 .group foo,.text%foo,#comdat
22735 .section .text%foo, "ax", @progbits
22736 .globl foo
22737 foo:
22738 '
22739 ;;
22740 esac
22741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22742 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22743 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22744 $as_echo_n "(cached) " >&6
22745 else
22746 gcc_cv_as_comdat_group_group=no
22747 if test x$gcc_cv_as != x; then
22748 $as_echo "$conftest_s" > conftest.s
22749 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22751 (eval $ac_try) 2>&5
22752 ac_status=$?
22753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22754 test $ac_status = 0; }; }
22755 then
22756 gcc_cv_as_comdat_group_group=yes
22757 else
22758 echo "configure: failed program was" >&5
22759 cat conftest.s >&5
22760 fi
22761 rm -f conftest.o conftest.s
22762 fi
22763 fi
22764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22765 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22766
22767 ;;
22768 esac
22769 fi
22770 fi
22771 if test x"$ld_is_gold" = xyes; then
22772 comdat_group=yes
22773 elif test $in_tree_ld = yes ; then
22774 comdat_group=no
22775 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 \
22776 && test $in_tree_ld_is_elf = yes; then
22777 comdat_group=yes
22778 fi
22779 elif echo "$ld_ver" | grep GNU > /dev/null; then
22780 comdat_group=yes
22781 if test 0"$ld_date" -lt 20050308; then
22782 if test -n "$ld_date"; then
22783 # If there was date string, but was earlier than 2005-03-08, fail
22784 comdat_group=no
22785 elif test "$ld_vers_major" -lt 2; then
22786 comdat_group=no
22787 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22788 comdat_group=no
22789 fi
22790 fi
22791 else
22792 case "${target}" in
22793 *-*-solaris2.1[1-9]*)
22794 comdat_group=no
22795 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22796 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22797 # version 1.688.
22798 #
22799 # If using Sun as for COMDAT group as emitted by GCC, one needs at
22800 # least ld version 1.2267.
22801 if test "$ld_vers_major" -gt 1; then
22802 comdat_group=yes
22803 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
22804 comdat_group=yes
22805 elif test "$ld_vers_minor" -ge 2267; then
22806 comdat_group=yes
22807 fi
22808 ;;
22809 *)
22810 # Assume linkers other than GNU ld don't support COMDAT group.
22811 comdat_group=no
22812 ;;
22813 esac
22814 fi
22815 # Allow overriding the automatic COMDAT group tests above.
22816 # Check whether --enable-comdat was given.
22817 if test "${enable_comdat+set}" = set; then :
22818 enableval=$enable_comdat; comdat_group="$enable_comdat"
22819 fi
22820
22821 if test $comdat_group = no; then
22822 gcc_cv_as_comdat_group=no
22823 gcc_cv_as_comdat_group_percent=no
22824 gcc_cv_as_comdat_group_group=no
22825 fi
22826
22827 cat >>confdefs.h <<_ACEOF
22828 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
22829 || test $gcc_cv_as_comdat_group_percent = yes \
22830 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
22831 _ACEOF
22832
22833
22834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22835 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22836 if test "${gcc_cv_as_discriminator+set}" = set; then :
22837 $as_echo_n "(cached) " >&6
22838 else
22839 gcc_cv_as_discriminator=no
22840 if test $in_tree_gas = yes; then
22841 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22842 then gcc_cv_as_discriminator=yes
22843 fi
22844 elif test x$gcc_cv_as != x; then
22845 $as_echo ' .text
22846 .file 1 "conf.c"
22847 .loc 1 1 0 discriminator 1' > conftest.s
22848 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22850 (eval $ac_try) 2>&5
22851 ac_status=$?
22852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22853 test $ac_status = 0; }; }
22854 then
22855 gcc_cv_as_discriminator=yes
22856 else
22857 echo "configure: failed program was" >&5
22858 cat conftest.s >&5
22859 fi
22860 rm -f conftest.o conftest.s
22861 fi
22862 fi
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22864 $as_echo "$gcc_cv_as_discriminator" >&6; }
22865 if test $gcc_cv_as_discriminator = yes; then
22866
22867 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22868
22869 fi
22870
22871 # Thread-local storage - the check is heavily parameterized.
22872 conftest_s=
22873 tls_first_major=
22874 tls_first_minor=
22875 tls_as_opt=
22876 case "$target" in
22877 alpha*-*-*)
22878 conftest_s='
22879 .section ".tdata","awT",@progbits
22880 foo: .long 25
22881 .text
22882 ldq $27,__tls_get_addr($29) !literal!1
22883 lda $16,foo($29) !tlsgd!1
22884 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22885 ldq $27,__tls_get_addr($29) !literal!2
22886 lda $16,foo($29) !tlsldm!2
22887 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22888 ldq $1,foo($29) !gotdtprel
22889 ldah $2,foo($29) !dtprelhi
22890 lda $3,foo($2) !dtprello
22891 lda $4,foo($29) !dtprel
22892 ldq $1,foo($29) !gottprel
22893 ldah $2,foo($29) !tprelhi
22894 lda $3,foo($2) !tprello
22895 lda $4,foo($29) !tprel'
22896 tls_first_major=2
22897 tls_first_minor=13
22898 tls_as_opt=--fatal-warnings
22899 ;;
22900 cris-*-*|crisv32-*-*)
22901 conftest_s='
22902 .section ".tdata","awT",@progbits
22903 x: .long 25
22904 .text
22905 move.d x:IE,$r10
22906 nop'
22907 tls_first_major=2
22908 tls_first_minor=20
22909 tls_as_opt=--fatal-warnings
22910 ;;
22911 frv*-*-*)
22912 conftest_s='
22913 .section ".tdata","awT",@progbits
22914 x: .long 25
22915 .text
22916 call #gettlsoff(x)'
22917 tls_first_major=2
22918 tls_first_minor=14
22919 ;;
22920 hppa*-*-linux*)
22921 conftest_s='
22922 t1: .reg %r20
22923 t2: .reg %r21
22924 gp: .reg %r19
22925 .section ".tdata","awT",@progbits
22926 foo: .long 25
22927 .text
22928 .align 4
22929 addil LT%foo-$tls_gdidx$,gp
22930 ldo RT%foo-$tls_gdidx$(%r1),%arg0
22931 b __tls_get_addr
22932 nop
22933 addil LT%foo-$tls_ldidx$,gp
22934 b __tls_get_addr
22935 ldo RT%foo-$tls_ldidx$(%r1),%arg0
22936 addil LR%foo-$tls_dtpoff$,%ret0
22937 ldo RR%foo-$tls_dtpoff$(%r1),%t1
22938 mfctl %cr27,%t1
22939 addil LT%foo-$tls_ieoff$,gp
22940 ldw RT%foo-$tls_ieoff$(%r1),%t2
22941 add %t1,%t2,%t3
22942 mfctl %cr27,%t1
22943 addil LR%foo-$tls_leoff$,%t1
22944 ldo RR%foo-$tls_leoff$(%r1),%t2'
22945 tls_first_major=2
22946 tls_first_minor=15
22947 tls_as_opt=--fatal-warnings
22948 ;;
22949 arm*-*-*)
22950 conftest_s='
22951 .section ".tdata","awT",%progbits
22952 foo: .long 25
22953 .text
22954 .word foo(gottpoff)
22955 .word foo(tpoff)
22956 .word foo(tlsgd)
22957 .word foo(tlsldm)
22958 .word foo(tlsldo)'
22959 tls_first_major=2
22960 tls_first_minor=17
22961 ;;
22962 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
22963 case "$target" in
22964 i[34567]86-*-solaris2.*)
22965 on_solaris=yes
22966 tga_func=___tls_get_addr
22967 ;;
22968 x86_64-*-solaris2.1[0-9]*)
22969 on_solaris=yes
22970 tga_func=__tls_get_addr
22971 ;;
22972 *)
22973 on_solaris=no
22974 ;;
22975 esac
22976 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22977 conftest_s='
22978 .section .tdata,"awt",@progbits'
22979 tls_first_major=0
22980 tls_first_minor=0
22981
22982 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22983
22984 else
22985 conftest_s='
22986 .section ".tdata","awT",@progbits'
22987 tls_first_major=2
22988 tls_first_minor=14
22989 tls_as_opt="--fatal-warnings"
22990 fi
22991 conftest_s="$conftest_s
22992 foo: .long 25
22993 .text
22994 movl %gs:0, %eax
22995 leal foo@tlsgd(,%ebx,1), %eax
22996 leal foo@tlsldm(%ebx), %eax
22997 leal foo@dtpoff(%eax), %edx
22998 movl foo@gottpoff(%ebx), %eax
22999 subl foo@gottpoff(%ebx), %eax
23000 addl foo@gotntpoff(%ebx), %eax
23001 movl foo@indntpoff, %eax
23002 movl \$foo@tpoff, %eax
23003 subl \$foo@tpoff, %eax
23004 leal foo@ntpoff(%ecx), %eax"
23005 ;;
23006 x86_64-*-*)
23007 conftest_s='
23008 .section ".tdata","awT",@progbits
23009 foo: .long 25
23010 .text
23011 movq %fs:0, %rax
23012 leaq foo@TLSGD(%rip), %rdi
23013 leaq foo@TLSLD(%rip), %rdi
23014 leaq foo@DTPOFF(%rax), %rdx
23015 movq foo@GOTTPOFF(%rip), %rax
23016 movq $foo@TPOFF, %rax'
23017 tls_first_major=2
23018 tls_first_minor=14
23019 tls_as_opt=--fatal-warnings
23020 ;;
23021 ia64-*-*)
23022 conftest_s='
23023 .section ".tdata","awT",@progbits
23024 foo: data8 25
23025 .text
23026 addl r16 = @ltoff(@dtpmod(foo#)), gp
23027 addl r17 = @ltoff(@dtprel(foo#)), gp
23028 addl r18 = @ltoff(@tprel(foo#)), gp
23029 addl r19 = @dtprel(foo#), gp
23030 adds r21 = @dtprel(foo#), r13
23031 movl r23 = @dtprel(foo#)
23032 addl r20 = @tprel(foo#), gp
23033 adds r22 = @tprel(foo#), r13
23034 movl r24 = @tprel(foo#)'
23035 tls_first_major=2
23036 tls_first_minor=13
23037 tls_as_opt=--fatal-warnings
23038 ;;
23039 mips*-*-*)
23040 conftest_s='
23041 .section .tdata,"awT",@progbits
23042 x:
23043 .word 2
23044 .text
23045 addiu $4, $28, %tlsgd(x)
23046 addiu $4, $28, %tlsldm(x)
23047 lui $4, %dtprel_hi(x)
23048 addiu $4, $4, %dtprel_lo(x)
23049 lw $4, %gottprel(x)($28)
23050 lui $4, %tprel_hi(x)
23051 addiu $4, $4, %tprel_lo(x)'
23052 tls_first_major=2
23053 tls_first_minor=16
23054 tls_as_opt='-32 --fatal-warnings'
23055 ;;
23056 m68k-*-*)
23057 conftest_s='
23058 .section .tdata,"awT",@progbits
23059 x:
23060 .word 2
23061 .text
23062 foo:
23063 move.l x@TLSGD(%a5),%a0
23064 move.l x@TLSLDM(%a5),%a0
23065 move.l x@TLSLDO(%a5),%a0
23066 move.l x@TLSIE(%a5),%a0
23067 move.l x@TLSLE(%a5),%a0'
23068 tls_first_major=2
23069 tls_first_minor=19
23070 tls_as_opt='--fatal-warnings'
23071 ;;
23072 powerpc-*-*)
23073 conftest_s='
23074 .section ".tdata","awT",@progbits
23075 .align 2
23076 ld0: .space 4
23077 ld1: .space 4
23078 x1: .space 4
23079 x2: .space 4
23080 x3: .space 4
23081 .text
23082 addi 3,31,ld0@got@tlsgd
23083 bl __tls_get_addr
23084 addi 3,31,x1@got@tlsld
23085 bl __tls_get_addr
23086 addi 9,3,x1@dtprel
23087 addis 9,3,x2@dtprel@ha
23088 addi 9,9,x2@dtprel@l
23089 lwz 9,x3@got@tprel(31)
23090 add 9,9,x@tls
23091 addi 9,2,x1@tprel
23092 addis 9,2,x2@tprel@ha
23093 addi 9,9,x2@tprel@l'
23094 tls_first_major=2
23095 tls_first_minor=14
23096 tls_as_opt="-a32 --fatal-warnings"
23097 ;;
23098 powerpc64-*-*)
23099 conftest_s='
23100 .section ".tdata","awT",@progbits
23101 .align 3
23102 ld0: .space 8
23103 ld1: .space 8
23104 x1: .space 8
23105 x2: .space 8
23106 x3: .space 8
23107 .text
23108 addi 3,2,ld0@got@tlsgd
23109 bl .__tls_get_addr
23110 nop
23111 addi 3,2,ld1@toc
23112 bl .__tls_get_addr
23113 nop
23114 addi 3,2,x1@got@tlsld
23115 bl .__tls_get_addr
23116 nop
23117 addi 9,3,x1@dtprel
23118 bl .__tls_get_addr
23119 nop
23120 addis 9,3,x2@dtprel@ha
23121 addi 9,9,x2@dtprel@l
23122 bl .__tls_get_addr
23123 nop
23124 ld 9,x3@got@dtprel(2)
23125 add 9,9,3
23126 bl .__tls_get_addr
23127 nop'
23128 tls_first_major=2
23129 tls_first_minor=14
23130 tls_as_opt="-a64 --fatal-warnings"
23131 ;;
23132 s390-*-*)
23133 conftest_s='
23134 .section ".tdata","awT",@progbits
23135 foo: .long 25
23136 .text
23137 .long foo@TLSGD
23138 .long foo@TLSLDM
23139 .long foo@DTPOFF
23140 .long foo@NTPOFF
23141 .long foo@GOTNTPOFF
23142 .long foo@INDNTPOFF
23143 l %r1,foo@GOTNTPOFF(%r12)
23144 l %r1,0(%r1):tls_load:foo
23145 bas %r14,0(%r1,%r13):tls_gdcall:foo
23146 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23147 tls_first_major=2
23148 tls_first_minor=14
23149 tls_as_opt="-m31 --fatal-warnings"
23150 ;;
23151 s390x-*-*)
23152 conftest_s='
23153 .section ".tdata","awT",@progbits
23154 foo: .long 25
23155 .text
23156 .quad foo@TLSGD
23157 .quad foo@TLSLDM
23158 .quad foo@DTPOFF
23159 .quad foo@NTPOFF
23160 .quad foo@GOTNTPOFF
23161 lg %r1,foo@GOTNTPOFF(%r12)
23162 larl %r1,foo@INDNTPOFF
23163 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23164 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23165 tls_first_major=2
23166 tls_first_minor=14
23167 tls_as_opt="-m64 -Aesame --fatal-warnings"
23168 ;;
23169 sh-*-* | sh[34]-*-*)
23170 conftest_s='
23171 .section ".tdata","awT",@progbits
23172 foo: .long 25
23173 .text
23174 .long foo@TLSGD
23175 .long foo@TLSLDM
23176 .long foo@DTPOFF
23177 .long foo@GOTTPOFF
23178 .long foo@TPOFF'
23179 tls_first_major=2
23180 tls_first_minor=13
23181 tls_as_opt=--fatal-warnings
23182 ;;
23183 sparc*-*-*)
23184 case "$target" in
23185 sparc*-sun-solaris2.*)
23186 on_solaris=yes
23187 tga_func=__tls_get_addr
23188 ;;
23189 *)
23190 on_solaris=no
23191 ;;
23192 esac
23193 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23194 conftest_s='
23195 .section ".tdata",#alloc,#write,#tls'
23196 tls_first_major=0
23197 tls_first_minor=0
23198 else
23199 conftest_s='
23200 .section ".tdata","awT",@progbits'
23201 tls_first_major=2
23202 tls_first_minor=14
23203 tls_as_opt="-32 --fatal-warnings"
23204 fi
23205 conftest_s="$conftest_s
23206 foo: .long 25
23207 .text
23208 sethi %tgd_hi22(foo), %o0
23209 add %o0, %tgd_lo10(foo), %o1
23210 add %l7, %o1, %o0, %tgd_add(foo)
23211 call __tls_get_addr, %tgd_call(foo)
23212 sethi %tldm_hi22(foo), %l1
23213 add %l1, %tldm_lo10(foo), %l2
23214 add %l7, %l2, %o0, %tldm_add(foo)
23215 call __tls_get_addr, %tldm_call(foo)
23216 sethi %tldo_hix22(foo), %l3
23217 xor %l3, %tldo_lox10(foo), %l4
23218 add %o0, %l4, %l5, %tldo_add(foo)
23219 sethi %tie_hi22(foo), %o3
23220 add %o3, %tie_lo10(foo), %o3
23221 ld [%l7 + %o3], %o2, %tie_ld(foo)
23222 add %g7, %o2, %o4, %tie_add(foo)
23223 sethi %tle_hix22(foo), %l1
23224 xor %l1, %tle_lox10(foo), %o5
23225 ld [%g7 + %o5], %o1"
23226 ;;
23227 xtensa*-*-*)
23228 conftest_s='
23229 .section ".tdata","awT",@progbits
23230 foo: .long 25
23231 .text
23232 movi a8, foo@TLSFUNC
23233 movi a10, foo@TLSARG
23234 callx8.tls a8, foo@TLSCALL'
23235 tls_first_major=2
23236 tls_first_minor=19
23237 ;;
23238 esac
23239 set_have_as_tls=no
23240 if test "x$enable_tls" = xno ; then
23241 : # TLS explicitly disabled.
23242 elif test "x$enable_tls" = xyes ; then
23243 set_have_as_tls=yes # TLS explicitly enabled.
23244 elif test -z "$tls_first_major"; then
23245 : # If we don't have a check, assume no support.
23246 else
23247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23248 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23249 if test "${gcc_cv_as_tls+set}" = set; then :
23250 $as_echo_n "(cached) " >&6
23251 else
23252 gcc_cv_as_tls=no
23253 if test $in_tree_gas = yes; then
23254 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23255 then gcc_cv_as_tls=yes
23256 fi
23257 elif test x$gcc_cv_as != x; then
23258 $as_echo "$conftest_s" > conftest.s
23259 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23261 (eval $ac_try) 2>&5
23262 ac_status=$?
23263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23264 test $ac_status = 0; }; }
23265 then
23266 gcc_cv_as_tls=yes
23267 else
23268 echo "configure: failed program was" >&5
23269 cat conftest.s >&5
23270 fi
23271 rm -f conftest.o conftest.s
23272 fi
23273 fi
23274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23275 $as_echo "$gcc_cv_as_tls" >&6; }
23276 if test $gcc_cv_as_tls = yes; then
23277 set_have_as_tls=yes
23278 fi
23279 fi
23280 case "$target" in
23281 *-*-irix6*)
23282 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23283 # with TLS support are in use, native TLS cannot work.
23284 set_have_as_tls=no
23285 ;;
23286 *-*-osf*)
23287 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23288 # gld with TLS support are in use, native TLS cannot work.
23289 set_have_as_tls=no
23290 ;;
23291 # TLS was introduced in the Solaris 9 FCS release and backported to
23292 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
23293 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23294 # ld and GCC don't support any longer.
23295 *-*-solaris2.*)
23296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23297 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23298 ld_tls_support=no
23299 # Check ld and ld.so.1 TLS support.
23300 if echo "$ld_ver" | grep GNU > /dev/null; then
23301 # Assume all interesting versions of GNU ld have TLS support.
23302 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23303 ld_tls_support=yes
23304 else
23305 case "$target" in
23306 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23307 i?86-*-solaris2.8)
23308 min_tls_ld_vers_minor=280
23309 ;;
23310 # Solaris 8/SPARC ld has TLS support since version 1.272.
23311 sparc*-*-solaris2.8)
23312 min_tls_ld_vers_minor=272
23313 ;;
23314 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23315 i?86-*-solaris2.9)
23316 min_tls_ld_vers_minor=374
23317 ;;
23318 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23319 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23320 min_tls_ld_vers_minor=343
23321 ;;
23322 esac
23323 if test "$ld_vers_major" -gt 1 || \
23324 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23325 ld_tls_support=yes
23326 else
23327 set_have_as_tls=no
23328 fi
23329 fi
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23331 $as_echo "$ld_tls_support" >&6; }
23332
23333 save_LIBS="$LIBS"
23334 save_LDFLAGS="$LDFLAGS"
23335 LIBS=
23336 LDFLAGS=
23337
23338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23339 $as_echo_n "checking alternate thread library... " >&6; }
23340 case "$target" in
23341 # TLS support was backported to Solaris 8 patches, but only lives in
23342 # the alternate thread library which became the default in Solaris 9.
23343 # We want to always use that, irrespective of TLS support.
23344 *-*-solaris2.8)
23345 # Take multilib subdir into account. There's no spec to handle
23346 # this. The 64 symlink exists since Solaris 8.
23347 lwp_dir=/usr/lib/lwp
23348 lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23349 LDFLAGS="-L$lwp_dir -R$lwp_dir"
23350 ;;
23351 *-*-solaris2*)
23352 lwp_dir="none"
23353 lwp_spec=""
23354 ;;
23355 esac
23356 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23357
23358 cat >>confdefs.h <<_ACEOF
23359 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23360 _ACEOF
23361
23362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23363 $as_echo "$lwp_dir" >&6; }
23364
23365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23366 $as_echo_n "checking library containing $tga_func... " >&6; }
23367 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23368 # (32-bit x86) only lived in libthread, so check for that. Keep
23369 # set_have_as_tls if found, disable if not.
23370 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23372 $as_echo_n "checking for library containing $tga_func... " >&6; }
23373 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23374 $as_echo_n "(cached) " >&6
23375 else
23376 ac_func_search_save_LIBS=$LIBS
23377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23378 /* end confdefs.h. */
23379
23380 /* Override any GCC internal prototype to avoid an error.
23381 Use char because int might match the return type of a GCC
23382 builtin and then its argument prototype would still apply. */
23383 #ifdef __cplusplus
23384 extern "C"
23385 #endif
23386 char $tga_func ();
23387 int
23388 main ()
23389 {
23390 return $tga_func ();
23391 ;
23392 return 0;
23393 }
23394 _ACEOF
23395 for ac_lib in '' thread; do
23396 if test -z "$ac_lib"; then
23397 ac_res="none required"
23398 else
23399 ac_res=-l$ac_lib
23400 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23401 fi
23402 if ac_fn_c_try_link "$LINENO"; then :
23403 eval "$as_ac_Search=\$ac_res"
23404 fi
23405 rm -f core conftest.err conftest.$ac_objext \
23406 conftest$ac_exeext
23407 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23408 break
23409 fi
23410 done
23411 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23412
23413 else
23414 eval "$as_ac_Search=no"
23415 fi
23416 rm conftest.$ac_ext
23417 LIBS=$ac_func_search_save_LIBS
23418 fi
23419 eval ac_res=\$$as_ac_Search
23420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23421 $as_echo "$ac_res" >&6; }
23422 eval ac_res=\$$as_ac_Search
23423 if test "$ac_res" != no; then :
23424 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23425
23426 else
23427 set_have_as_tls=no
23428 fi
23429
23430 # Clear LIBS if we cannot support TLS.
23431 if test $set_have_as_tls = no; then
23432 LIBS=
23433 fi
23434 # Always define LIB_TLS_SPEC, even without TLS support.
23435
23436 cat >>confdefs.h <<_ACEOF
23437 #define LIB_TLS_SPEC "$LIBS"
23438 _ACEOF
23439
23440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23441 $as_echo "$LIBS" >&6; }
23442
23443 LIBS="$save_LIBS"
23444 LDFLAGS="$save_LDFLAGS"
23445 ;;
23446 esac
23447 if test $set_have_as_tls = yes ; then
23448
23449 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23450
23451 fi
23452
23453 # Target-specific assembler checks.
23454
23455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23456 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23457 gcc_cv_ld_static_dynamic=no
23458 gcc_cv_ld_static_option='-Bstatic'
23459 gcc_cv_ld_dynamic_option='-Bdynamic'
23460 if test $in_tree_ld = yes ; then
23461 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
23462 gcc_cv_ld_static_dynamic=yes
23463 fi
23464 elif test x$gcc_cv_ld != x; then
23465 # Check if linker supports -Bstatic/-Bdynamic option
23466 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23467 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23468 gcc_cv_ld_static_dynamic=yes
23469 else
23470 case "$target" in
23471 # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23472 alpha*-dec-osf*)
23473 gcc_cv_ld_static_dynamic=yes
23474 gcc_cv_ld_static_option="-noso"
23475 gcc_cv_ld_dynamic_option="-so_archive"
23476 ;;
23477 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23478 mips-sgi-irix6*)
23479 gcc_cv_ld_static_dynamic=yes
23480 ;;
23481 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23482 *-*-solaris2*)
23483 gcc_cv_ld_static_dynamic=yes
23484 ;;
23485 esac
23486 fi
23487 fi
23488 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23489
23490 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23491
23492
23493 cat >>confdefs.h <<_ACEOF
23494 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23495 _ACEOF
23496
23497
23498 cat >>confdefs.h <<_ACEOF
23499 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23500 _ACEOF
23501
23502 fi
23503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23504 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23505
23506 if test x"$demangler_in_ld" = xyes; then
23507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23508 $as_echo_n "checking linker --demangle support... " >&6; }
23509 gcc_cv_ld_demangle=no
23510 if test $in_tree_ld = yes; then
23511 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 \
23512 gcc_cv_ld_demangle=yes
23513 fi
23514 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23515 # Check if the GNU linker supports --demangle option
23516 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23517 gcc_cv_ld_demangle=yes
23518 fi
23519 fi
23520 if test x"$gcc_cv_ld_demangle" = xyes; then
23521
23522 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23523
23524 fi
23525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23526 $as_echo "$gcc_cv_ld_demangle" >&6; }
23527 fi
23528
23529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23530 $as_echo_n "checking linker plugin support... " >&6; }
23531 gcc_cv_lto_plugin=0
23532 if test -f liblto_plugin.la; then
23533 save_ld_ver="$ld_ver"
23534 save_ld_vers_major="$ld_vers_major"
23535 save_ld_vers_minor="$ld_vers_minor"
23536 save_ld_is_gold="$ld_is_gold"
23537
23538 ld_is_gold=no
23539
23540 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23541 ld_ver="GNU ld"
23542 # FIXME: ld_is_gold?
23543 ld_vers_major="$gcc_cv_gld_major_version"
23544 ld_vers_minor="$gcc_cv_gld_minor_version"
23545 else
23546 # Determine plugin linker version.
23547 # FIXME: Partial duplicate from above, generalize.
23548 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23549 if echo "$ld_ver" | grep GNU > /dev/null; then
23550 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23551 ld_is_gold=yes
23552 ld_vers=`echo $ld_ver | sed -n \
23553 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23554 else
23555 ld_vers=`echo $ld_ver | sed -n \
23556 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23557 fi
23558 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23559 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23560 fi
23561 fi
23562
23563 # Determine plugin support.
23564 if echo "$ld_ver" | grep GNU > /dev/null; then
23565 # Require GNU ld or gold 2.21+ for plugin support by default.
23566 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23567 gcc_cv_lto_plugin=2
23568 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23569 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23570 gcc_cv_lto_plugin=1
23571 fi
23572 fi
23573
23574 ld_ver="$save_ld_ver"
23575 ld_vers_major="$save_ld_vers_major"
23576 ld_vers_minor="$save_ld_vers_minor"
23577 ld_is_gold="$save_ld_is_gold"
23578 fi
23579
23580 cat >>confdefs.h <<_ACEOF
23581 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23582 _ACEOF
23583
23584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23585 $as_echo "$gcc_cv_lto_plugin" >&6; }
23586
23587 case "$target" in
23588 # All TARGET_ABI_OSF targets.
23589 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23591 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23592 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23593 $as_echo_n "(cached) " >&6
23594 else
23595 gcc_cv_as_alpha_explicit_relocs=no
23596 if test $in_tree_gas = yes; then
23597 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23598 then gcc_cv_as_alpha_explicit_relocs=yes
23599 fi
23600 elif test x$gcc_cv_as != x; then
23601 $as_echo ' .set nomacro
23602 .text
23603 extbl $3, $2, $3 !lituse_bytoff!1
23604 ldq $2, a($29) !literal!1
23605 ldq $4, b($29) !literal!2
23606 ldq_u $3, 0($2) !lituse_base!1
23607 ldq $27, f($29) !literal!5
23608 jsr $26, ($27), f !lituse_jsr!5
23609 ldah $29, 0($26) !gpdisp!3
23610 lda $0, c($29) !gprel
23611 ldah $1, d($29) !gprelhigh
23612 lda $1, d($1) !gprellow
23613 lda $29, 0($29) !gpdisp!3' > conftest.s
23614 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23616 (eval $ac_try) 2>&5
23617 ac_status=$?
23618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23619 test $ac_status = 0; }; }
23620 then
23621 gcc_cv_as_alpha_explicit_relocs=yes
23622 else
23623 echo "configure: failed program was" >&5
23624 cat conftest.s >&5
23625 fi
23626 rm -f conftest.o conftest.s
23627 fi
23628 fi
23629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23630 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23631 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23632
23633 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23634
23635 fi
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23637 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23638 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23639 $as_echo_n "(cached) " >&6
23640 else
23641 gcc_cv_as_alpha_jsrdirect_relocs=no
23642 if test $in_tree_gas = yes; then
23643 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23644 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23645 fi
23646 elif test x$gcc_cv_as != x; then
23647 $as_echo ' .set nomacro
23648 .text
23649 ldq $27, a($29) !literal!1
23650 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23651 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23653 (eval $ac_try) 2>&5
23654 ac_status=$?
23655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23656 test $ac_status = 0; }; }
23657 then
23658 gcc_cv_as_alpha_jsrdirect_relocs=yes
23659 else
23660 echo "configure: failed program was" >&5
23661 cat conftest.s >&5
23662 fi
23663 rm -f conftest.o conftest.s
23664 fi
23665 fi
23666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23667 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23668 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23669
23670 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23671
23672 fi
23673 ;;
23674
23675 cris-*-*)
23676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23677 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23678 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23679 $as_echo_n "(cached) " >&6
23680 else
23681 gcc_cv_as_cris_no_mul_bug=no
23682 if test $in_tree_gas = yes; then
23683 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23684 then gcc_cv_as_cris_no_mul_bug=yes
23685 fi
23686 elif test x$gcc_cv_as != x; then
23687 $as_echo '.text' > conftest.s
23688 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -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_cris_no_mul_bug=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_cris_no_mul_bug" >&5
23704 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23705 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23706
23707 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23708
23709 fi
23710 ;;
23711
23712 sparc*-*-*)
23713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23714 $as_echo_n "checking assembler for .register... " >&6; }
23715 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23716 $as_echo_n "(cached) " >&6
23717 else
23718 gcc_cv_as_sparc_register_op=no
23719 if test x$gcc_cv_as != x; then
23720 $as_echo '.register %g2, #scratch' > conftest.s
23721 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23723 (eval $ac_try) 2>&5
23724 ac_status=$?
23725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23726 test $ac_status = 0; }; }
23727 then
23728 gcc_cv_as_sparc_register_op=yes
23729 else
23730 echo "configure: failed program was" >&5
23731 cat conftest.s >&5
23732 fi
23733 rm -f conftest.o conftest.s
23734 fi
23735 fi
23736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23737 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23738 if test $gcc_cv_as_sparc_register_op = yes; then
23739
23740 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23741
23742 fi
23743
23744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23745 $as_echo_n "checking assembler for -relax option... " >&6; }
23746 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23747 $as_echo_n "(cached) " >&6
23748 else
23749 gcc_cv_as_sparc_relax=no
23750 if test x$gcc_cv_as != x; then
23751 $as_echo '.text' > conftest.s
23752 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23754 (eval $ac_try) 2>&5
23755 ac_status=$?
23756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23757 test $ac_status = 0; }; }
23758 then
23759 gcc_cv_as_sparc_relax=yes
23760 else
23761 echo "configure: failed program was" >&5
23762 cat conftest.s >&5
23763 fi
23764 rm -f conftest.o conftest.s
23765 fi
23766 fi
23767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23768 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23769 if test $gcc_cv_as_sparc_relax = yes; then
23770
23771 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23772
23773 fi
23774
23775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23776 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23777 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23778 $as_echo_n "(cached) " >&6
23779 else
23780 gcc_cv_as_sparc_gotdata_op=no
23781 if test x$gcc_cv_as != x; then
23782 $as_echo '.text
23783 .align 4
23784 foo:
23785 nop
23786 bar:
23787 sethi %gdop_hix22(foo), %g1
23788 xor %g1, %gdop_lox10(foo), %g1
23789 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23790 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23792 (eval $ac_try) 2>&5
23793 ac_status=$?
23794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23795 test $ac_status = 0; }; }
23796 then
23797 if test x$gcc_cv_ld != x \
23798 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23799 if test x$gcc_cv_objdump != x; then
23800 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
23801 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
23802 gcc_cv_as_sparc_gotdata_op=no
23803 else
23804 gcc_cv_as_sparc_gotdata_op=yes
23805 fi
23806 fi
23807 fi
23808 rm -f conftest
23809 else
23810 echo "configure: failed program was" >&5
23811 cat conftest.s >&5
23812 fi
23813 rm -f conftest.o conftest.s
23814 fi
23815 fi
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23817 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23818 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23819
23820 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23821
23822 fi
23823
23824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23825 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23826 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23827 $as_echo_n "(cached) " >&6
23828 else
23829 gcc_cv_as_sparc_ua_pcrel=no
23830 if test x$gcc_cv_as != x; then
23831 $as_echo '.text
23832 foo:
23833 nop
23834 .data
23835 .align 4
23836 .byte 0
23837 .uaword %r_disp32(foo)' > conftest.s
23838 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23840 (eval $ac_try) 2>&5
23841 ac_status=$?
23842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23843 test $ac_status = 0; }; }
23844 then
23845 if test x$gcc_cv_ld != x \
23846 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23847 gcc_cv_as_sparc_ua_pcrel=yes
23848 fi
23849 rm -f conftest
23850 else
23851 echo "configure: failed program was" >&5
23852 cat conftest.s >&5
23853 fi
23854 rm -f conftest.o conftest.s
23855 fi
23856 fi
23857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23858 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23859 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23860
23861 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23862
23863
23864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23865 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23866 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23867 $as_echo_n "(cached) " >&6
23868 else
23869 gcc_cv_as_sparc_ua_pcrel_hidden=no
23870 if test x$gcc_cv_as != x; then
23871 $as_echo '.data
23872 .align 4
23873 .byte 0x31
23874 .uaword %r_disp32(foo)
23875 .byte 0x32, 0x33, 0x34
23876 .global foo
23877 .hidden foo
23878 foo:
23879 .skip 4' > conftest.s
23880 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23882 (eval $ac_try) 2>&5
23883 ac_status=$?
23884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23885 test $ac_status = 0; }; }
23886 then
23887 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
23888 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
23889 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
23890 | grep ' 31000000 07323334' > /dev/null 2>&1; then
23891 if $gcc_cv_objdump -R conftest 2> /dev/null \
23892 | grep 'DISP32' > /dev/null 2>&1; then
23893 :
23894 else
23895 gcc_cv_as_sparc_ua_pcrel_hidden=yes
23896 fi
23897 fi
23898 rm -f conftest
23899 else
23900 echo "configure: failed program was" >&5
23901 cat conftest.s >&5
23902 fi
23903 rm -f conftest.o conftest.s
23904 fi
23905 fi
23906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23907 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23908 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23909
23910 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23911
23912 fi
23913
23914 fi # unaligned pcrel relocs
23915
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
23917 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
23918 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
23919 $as_echo_n "(cached) " >&6
23920 else
23921 gcc_cv_as_sparc_offsetable_lo10=no
23922 if test x$gcc_cv_as != x; then
23923 $as_echo '.text
23924 or %g1, %lo(ab) + 12, %g1
23925 or %g1, %lo(ab + 12), %g1' > conftest.s
23926 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
23927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23928 (eval $ac_try) 2>&5
23929 ac_status=$?
23930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23931 test $ac_status = 0; }; }
23932 then
23933 if test x$gcc_cv_objdump != x \
23934 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
23935 | grep ' 82106000 82106000' > /dev/null 2>&1; then
23936 gcc_cv_as_sparc_offsetable_lo10=yes
23937 fi
23938 else
23939 echo "configure: failed program was" >&5
23940 cat conftest.s >&5
23941 fi
23942 rm -f conftest.o conftest.s
23943 fi
23944 fi
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23946 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23947 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23948
23949 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23950
23951 fi
23952 ;;
23953
23954 i[34567]86-*-* | x86_64-*-*)
23955 case $target_os in
23956 cygwin*)
23957 # Full C++ conformance when using a shared libstdc++-v3 requires some
23958 # support from the Cygwin DLL, which in more recent versions exports
23959 # wrappers to aid in interposing and redirecting operators new, delete,
23960 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
23961 # are configuring for a version of Cygwin that exports the wrappers.
23962 if test x$host = x$target; then
23963 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23964 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
23965 gcc_ac_cygwin_dll_wrappers=yes
23966 else
23967 gcc_ac_cygwin_dll_wrappers=no
23968 fi
23969
23970 else
23971 # Can't check presence of libc functions during cross-compile, so
23972 # we just have to assume we're building for an up-to-date target.
23973 gcc_ac_cygwin_dll_wrappers=yes
23974 fi
23975
23976 cat >>confdefs.h <<_ACEOF
23977 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23978 _ACEOF
23979
23980 esac
23981 case $target_os in
23982 cygwin* | pe | mingw32*)
23983 # Recent binutils allows the three-operand form of ".comm" on PE. This
23984 # definition is used unconditionally to initialise the default state of
23985 # the target option variable that governs usage of the feature.
23986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23987 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23988 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23989 $as_echo_n "(cached) " >&6
23990 else
23991 gcc_cv_as_comm_has_align=no
23992 if test $in_tree_gas = yes; then
23993 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23994 then gcc_cv_as_comm_has_align=yes
23995 fi
23996 elif test x$gcc_cv_as != x; then
23997 $as_echo '.comm foo,1,32' > conftest.s
23998 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24000 (eval $ac_try) 2>&5
24001 ac_status=$?
24002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24003 test $ac_status = 0; }; }
24004 then
24005 gcc_cv_as_comm_has_align=yes
24006 else
24007 echo "configure: failed program was" >&5
24008 cat conftest.s >&5
24009 fi
24010 rm -f conftest.o conftest.s
24011 fi
24012 fi
24013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24014 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24015
24016
24017 cat >>confdefs.h <<_ACEOF
24018 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24019 _ACEOF
24020
24021 # Used for DWARF 2 in PE
24022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24023 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24024 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24025 $as_echo_n "(cached) " >&6
24026 else
24027 gcc_cv_as_ix86_pe_secrel32=no
24028 if test $in_tree_gas = yes; then
24029 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24030 then gcc_cv_as_ix86_pe_secrel32=yes
24031 fi
24032 elif test x$gcc_cv_as != x; then
24033 $as_echo '.text
24034 foo: nop
24035 .data
24036 .secrel32 foo' > conftest.s
24037 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24039 (eval $ac_try) 2>&5
24040 ac_status=$?
24041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24042 test $ac_status = 0; }; }
24043 then
24044 if test x$gcc_cv_ld != x \
24045 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24046 gcc_cv_as_ix86_pe_secrel32=yes
24047 fi
24048 rm -f conftest
24049 else
24050 echo "configure: failed program was" >&5
24051 cat conftest.s >&5
24052 fi
24053 rm -f conftest.o conftest.s
24054 fi
24055 fi
24056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24057 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24058 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24059
24060 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24061
24062 fi
24063 # Test if the assembler supports the extended form of the .section
24064 # directive that specifies section alignment. LTO support uses this,
24065 # but normally only after installation, so we warn but don't fail the
24066 # configure if LTO is enabled but the assembler does not support it.
24067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24068 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24069 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24070 $as_echo_n "(cached) " >&6
24071 else
24072 gcc_cv_as_section_has_align=no
24073 if test $in_tree_gas = yes; then
24074 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24075 then gcc_cv_as_section_has_align=yes
24076 fi
24077 elif test x$gcc_cv_as != x; then
24078 $as_echo '.section lto_test,"dr0"' > conftest.s
24079 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24081 (eval $ac_try) 2>&5
24082 ac_status=$?
24083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24084 test $ac_status = 0; }; }
24085 then
24086 gcc_cv_as_section_has_align=yes
24087 else
24088 echo "configure: failed program was" >&5
24089 cat conftest.s >&5
24090 fi
24091 rm -f conftest.o conftest.s
24092 fi
24093 fi
24094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24095 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24096
24097 if test x$gcc_cv_as_section_has_align != xyes; then
24098 case ",$enable_languages," in
24099 *,lto,*)
24100 { $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
24101 $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;}
24102 ;;
24103 esac
24104 fi
24105 ;;
24106 esac
24107
24108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24109 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24110 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24111 $as_echo_n "(cached) " >&6
24112 else
24113 gcc_cv_as_ix86_filds=no
24114 if test x$gcc_cv_as != x; then
24115 $as_echo 'filds mem; fists mem' > conftest.s
24116 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24118 (eval $ac_try) 2>&5
24119 ac_status=$?
24120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24121 test $ac_status = 0; }; }
24122 then
24123 gcc_cv_as_ix86_filds=yes
24124 else
24125 echo "configure: failed program was" >&5
24126 cat conftest.s >&5
24127 fi
24128 rm -f conftest.o conftest.s
24129 fi
24130 fi
24131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24132 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24133 if test $gcc_cv_as_ix86_filds = yes; then
24134
24135 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24136
24137 fi
24138
24139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24140 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24141 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24142 $as_echo_n "(cached) " >&6
24143 else
24144 gcc_cv_as_ix86_fildq=no
24145 if test x$gcc_cv_as != x; then
24146 $as_echo 'fildq mem; fistpq mem' > conftest.s
24147 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24149 (eval $ac_try) 2>&5
24150 ac_status=$?
24151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24152 test $ac_status = 0; }; }
24153 then
24154 gcc_cv_as_ix86_fildq=yes
24155 else
24156 echo "configure: failed program was" >&5
24157 cat conftest.s >&5
24158 fi
24159 rm -f conftest.o conftest.s
24160 fi
24161 fi
24162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24163 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24164 if test $gcc_cv_as_ix86_fildq = yes; then
24165
24166 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24167
24168 fi
24169
24170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24171 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24172 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24173 $as_echo_n "(cached) " >&6
24174 else
24175 gcc_cv_as_ix86_cmov_sun_syntax=no
24176 if test x$gcc_cv_as != x; then
24177 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24178 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24180 (eval $ac_try) 2>&5
24181 ac_status=$?
24182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24183 test $ac_status = 0; }; }
24184 then
24185 gcc_cv_as_ix86_cmov_sun_syntax=yes
24186 else
24187 echo "configure: failed program was" >&5
24188 cat conftest.s >&5
24189 fi
24190 rm -f conftest.o conftest.s
24191 fi
24192 fi
24193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24194 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24195 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24196
24197 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24198
24199 fi
24200
24201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24202 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24203 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24204 $as_echo_n "(cached) " >&6
24205 else
24206 gcc_cv_as_ix86_ffreep=no
24207 if test x$gcc_cv_as != x; then
24208 $as_echo 'ffreep %st(1)' > conftest.s
24209 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24211 (eval $ac_try) 2>&5
24212 ac_status=$?
24213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24214 test $ac_status = 0; }; }
24215 then
24216 gcc_cv_as_ix86_ffreep=yes
24217 else
24218 echo "configure: failed program was" >&5
24219 cat conftest.s >&5
24220 fi
24221 rm -f conftest.o conftest.s
24222 fi
24223 fi
24224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24225 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24226 if test $gcc_cv_as_ix86_ffreep = yes; then
24227
24228 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24229
24230 fi
24231
24232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24233 $as_echo_n "checking assembler for .quad directive... " >&6; }
24234 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24235 $as_echo_n "(cached) " >&6
24236 else
24237 gcc_cv_as_ix86_quad=no
24238 if test x$gcc_cv_as != x; then
24239 $as_echo '.quad 0' > conftest.s
24240 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24242 (eval $ac_try) 2>&5
24243 ac_status=$?
24244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24245 test $ac_status = 0; }; }
24246 then
24247 gcc_cv_as_ix86_quad=yes
24248 else
24249 echo "configure: failed program was" >&5
24250 cat conftest.s >&5
24251 fi
24252 rm -f conftest.o conftest.s
24253 fi
24254 fi
24255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24256 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24257 if test $gcc_cv_as_ix86_quad = yes; then
24258
24259 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24260
24261 fi
24262
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24264 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24265 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24266 $as_echo_n "(cached) " >&6
24267 else
24268 gcc_cv_as_ix86_sahf=no
24269 if test x$gcc_cv_as != x; then
24270 $as_echo '.code64
24271 sahf' > conftest.s
24272 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24274 (eval $ac_try) 2>&5
24275 ac_status=$?
24276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24277 test $ac_status = 0; }; }
24278 then
24279 gcc_cv_as_ix86_sahf=yes
24280 else
24281 echo "configure: failed program was" >&5
24282 cat conftest.s >&5
24283 fi
24284 rm -f conftest.o conftest.s
24285 fi
24286 fi
24287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24288 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24289 if test $gcc_cv_as_ix86_sahf = yes; then
24290
24291 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24292
24293 fi
24294
24295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24296 $as_echo_n "checking assembler for swap suffix... " >&6; }
24297 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24298 $as_echo_n "(cached) " >&6
24299 else
24300 gcc_cv_as_ix86_swap=no
24301 if test x$gcc_cv_as != x; then
24302 $as_echo 'movl.s %esp, %ebp' > conftest.s
24303 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24305 (eval $ac_try) 2>&5
24306 ac_status=$?
24307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24308 test $ac_status = 0; }; }
24309 then
24310 gcc_cv_as_ix86_swap=yes
24311 else
24312 echo "configure: failed program was" >&5
24313 cat conftest.s >&5
24314 fi
24315 rm -f conftest.o conftest.s
24316 fi
24317 fi
24318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24319 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24320 if test $gcc_cv_as_ix86_swap = yes; then
24321
24322 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24323
24324 fi
24325
24326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24327 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24328 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24329 $as_echo_n "(cached) " >&6
24330 else
24331 gcc_cv_as_ix86_diff_sect_delta=no
24332 if test x$gcc_cv_as != x; then
24333 $as_echo '.section .rodata
24334 .L1:
24335 .long .L2-.L1
24336 .long .L3-.L1
24337 .text
24338 .L3: nop
24339 .L2: nop' > conftest.s
24340 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24342 (eval $ac_try) 2>&5
24343 ac_status=$?
24344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24345 test $ac_status = 0; }; }
24346 then
24347 gcc_cv_as_ix86_diff_sect_delta=yes
24348 else
24349 echo "configure: failed program was" >&5
24350 cat conftest.s >&5
24351 fi
24352 rm -f conftest.o conftest.s
24353 fi
24354 fi
24355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24356 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24357 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24358
24359 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24360
24361 fi
24362
24363 # These two are used unconditionally by i386.[ch]; it is to be defined
24364 # to 1 if the feature is present, 0 otherwise.
24365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24366 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24367 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24368 $as_echo_n "(cached) " >&6
24369 else
24370 gcc_cv_as_ix86_gotoff_in_data=no
24371 if test $in_tree_gas = yes; then
24372 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24373 then gcc_cv_as_ix86_gotoff_in_data=yes
24374 fi
24375 elif test x$gcc_cv_as != x; then
24376 $as_echo ' .text
24377 .L0:
24378 nop
24379 .data
24380 .long .L0@GOTOFF' > conftest.s
24381 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24383 (eval $ac_try) 2>&5
24384 ac_status=$?
24385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24386 test $ac_status = 0; }; }
24387 then
24388 gcc_cv_as_ix86_gotoff_in_data=yes
24389 else
24390 echo "configure: failed program was" >&5
24391 cat conftest.s >&5
24392 fi
24393 rm -f conftest.o conftest.s
24394 fi
24395 fi
24396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24397 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24398
24399
24400 cat >>confdefs.h <<_ACEOF
24401 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24402 _ACEOF
24403
24404
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24406 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24407 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24408 $as_echo_n "(cached) " >&6
24409 else
24410 gcc_cv_as_ix86_rep_lock_prefix=no
24411 if test x$gcc_cv_as != x; then
24412 $as_echo 'rep movsl
24413 lock addl %edi, (%eax,%esi)
24414 lock orl $0, (%esp)' > conftest.s
24415 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24417 (eval $ac_try) 2>&5
24418 ac_status=$?
24419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24420 test $ac_status = 0; }; }
24421 then
24422 gcc_cv_as_ix86_rep_lock_prefix=yes
24423 else
24424 echo "configure: failed program was" >&5
24425 cat conftest.s >&5
24426 fi
24427 rm -f conftest.o conftest.s
24428 fi
24429 fi
24430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24431 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24432 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24433
24434 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24435
24436 fi
24437
24438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24439 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24440 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24441 $as_echo_n "(cached) " >&6
24442 else
24443 gcc_cv_as_ix86_tlsgdplt=no
24444 if test x$gcc_cv_as != x; then
24445 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24446 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24448 (eval $ac_try) 2>&5
24449 ac_status=$?
24450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24451 test $ac_status = 0; }; }
24452 then
24453 gcc_cv_as_ix86_tlsgdplt=yes
24454 else
24455 echo "configure: failed program was" >&5
24456 cat conftest.s >&5
24457 fi
24458 rm -f conftest.o conftest.s
24459 fi
24460 fi
24461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24462 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24463 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24464
24465 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24466
24467 fi
24468
24469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24470 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24471 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24472 $as_echo_n "(cached) " >&6
24473 else
24474 gcc_cv_as_ix86_tlsldmplt=no
24475 if test x$gcc_cv_as != x; then
24476 $as_echo 'call tls_ld@tlsldmplt' > conftest.s
24477 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24479 (eval $ac_try) 2>&5
24480 ac_status=$?
24481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24482 test $ac_status = 0; }; }
24483 then
24484 gcc_cv_as_ix86_tlsldmplt=yes
24485 else
24486 echo "configure: failed program was" >&5
24487 cat conftest.s >&5
24488 fi
24489 rm -f conftest.o conftest.s
24490 fi
24491 fi
24492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24493 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24494 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24495
24496 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24497
24498 fi
24499
24500 ;;
24501
24502 ia64*-*-*)
24503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24504 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24505 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24506 $as_echo_n "(cached) " >&6
24507 else
24508 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24509 if test $in_tree_gas = yes; then
24510 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24511 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24512 fi
24513 elif test x$gcc_cv_as != x; then
24514 $as_echo ' .text
24515 addl r15 = @ltoffx(x#), gp
24516 ;;
24517 ld8.mov r16 = [r15], x#' > conftest.s
24518 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24520 (eval $ac_try) 2>&5
24521 ac_status=$?
24522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24523 test $ac_status = 0; }; }
24524 then
24525 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24526 else
24527 echo "configure: failed program was" >&5
24528 cat conftest.s >&5
24529 fi
24530 rm -f conftest.o conftest.s
24531 fi
24532 fi
24533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24534 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24535 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24536
24537 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24538
24539 fi
24540
24541 ;;
24542
24543 powerpc*-*-*)
24544 case $target in
24545 *-*-aix*) conftest_s=' .machine "pwr5"
24546 .csect .text[PR]
24547 mfcr 3,128';;
24548 *-*-darwin*)
24549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24550 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24551 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24552 $as_echo_n "(cached) " >&6
24553 else
24554 gcc_cv_as_machine_directive=no
24555 if test x$gcc_cv_as != x; then
24556 $as_echo ' .machine ppc7400' > conftest.s
24557 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24559 (eval $ac_try) 2>&5
24560 ac_status=$?
24561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24562 test $ac_status = 0; }; }
24563 then
24564 gcc_cv_as_machine_directive=yes
24565 else
24566 echo "configure: failed program was" >&5
24567 cat conftest.s >&5
24568 fi
24569 rm -f conftest.o conftest.s
24570 fi
24571 fi
24572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24573 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24574
24575 if test x$gcc_cv_as_machine_directive != xyes; then
24576 echo "*** This target requires an assembler supporting \".machine\"" >&2
24577 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24578 test x$build = x$target && exit 1
24579 fi
24580 conftest_s=' .text
24581 mfcr r3,128';;
24582 *) conftest_s=' .machine power4
24583 .text
24584 mfcr 3,128';;
24585 esac
24586
24587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24588 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24589 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24590 $as_echo_n "(cached) " >&6
24591 else
24592 gcc_cv_as_powerpc_mfcrf=no
24593 if test $in_tree_gas = yes; then
24594 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24595 then gcc_cv_as_powerpc_mfcrf=yes
24596 fi
24597 elif test x$gcc_cv_as != x; then
24598 $as_echo "$conftest_s" > conftest.s
24599 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24601 (eval $ac_try) 2>&5
24602 ac_status=$?
24603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24604 test $ac_status = 0; }; }
24605 then
24606 gcc_cv_as_powerpc_mfcrf=yes
24607 else
24608 echo "configure: failed program was" >&5
24609 cat conftest.s >&5
24610 fi
24611 rm -f conftest.o conftest.s
24612 fi
24613 fi
24614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24615 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24616 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24617
24618 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24619
24620 fi
24621
24622 case $target in
24623 *-*-aix*) conftest_s=' .machine "pwr5"
24624 .csect .text[PR]
24625 popcntb 3,3';;
24626 *) conftest_s=' .machine power5
24627 .text
24628 popcntb 3,3';;
24629 esac
24630
24631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24632 $as_echo_n "checking assembler for popcntb support... " >&6; }
24633 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24634 $as_echo_n "(cached) " >&6
24635 else
24636 gcc_cv_as_powerpc_popcntb=no
24637 if test $in_tree_gas = yes; then
24638 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24639 then gcc_cv_as_powerpc_popcntb=yes
24640 fi
24641 elif test x$gcc_cv_as != x; then
24642 $as_echo "$conftest_s" > conftest.s
24643 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24644 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24645 (eval $ac_try) 2>&5
24646 ac_status=$?
24647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24648 test $ac_status = 0; }; }
24649 then
24650 gcc_cv_as_powerpc_popcntb=yes
24651 else
24652 echo "configure: failed program was" >&5
24653 cat conftest.s >&5
24654 fi
24655 rm -f conftest.o conftest.s
24656 fi
24657 fi
24658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24659 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24660 if test $gcc_cv_as_powerpc_popcntb = yes; then
24661
24662 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24663
24664 fi
24665
24666 case $target in
24667 *-*-aix*) conftest_s=' .machine "pwr5x"
24668 .csect .text[PR]
24669 frin 1,1';;
24670 *) conftest_s=' .machine power5
24671 .text
24672 frin 1,1';;
24673 esac
24674
24675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24676 $as_echo_n "checking assembler for fp round support... " >&6; }
24677 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24678 $as_echo_n "(cached) " >&6
24679 else
24680 gcc_cv_as_powerpc_fprnd=no
24681 if test $in_tree_gas = yes; then
24682 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24683 then gcc_cv_as_powerpc_fprnd=yes
24684 fi
24685 elif test x$gcc_cv_as != x; then
24686 $as_echo "$conftest_s" > conftest.s
24687 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24689 (eval $ac_try) 2>&5
24690 ac_status=$?
24691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24692 test $ac_status = 0; }; }
24693 then
24694 gcc_cv_as_powerpc_fprnd=yes
24695 else
24696 echo "configure: failed program was" >&5
24697 cat conftest.s >&5
24698 fi
24699 rm -f conftest.o conftest.s
24700 fi
24701 fi
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24703 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24704 if test $gcc_cv_as_powerpc_fprnd = yes; then
24705
24706 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24707
24708 fi
24709
24710 case $target in
24711 *-*-aix*) conftest_s=' .machine "pwr6"
24712 .csect .text[PR]
24713 mffgpr 1,3';;
24714 *) conftest_s=' .machine power6
24715 .text
24716 mffgpr 1,3';;
24717 esac
24718
24719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24720 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24721 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24722 $as_echo_n "(cached) " >&6
24723 else
24724 gcc_cv_as_powerpc_mfpgpr=no
24725 if test $in_tree_gas = yes; then
24726 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24727 then gcc_cv_as_powerpc_mfpgpr=yes
24728 fi
24729 elif test x$gcc_cv_as != x; then
24730 $as_echo "$conftest_s" > conftest.s
24731 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24733 (eval $ac_try) 2>&5
24734 ac_status=$?
24735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24736 test $ac_status = 0; }; }
24737 then
24738 gcc_cv_as_powerpc_mfpgpr=yes
24739 else
24740 echo "configure: failed program was" >&5
24741 cat conftest.s >&5
24742 fi
24743 rm -f conftest.o conftest.s
24744 fi
24745 fi
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
24747 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24748 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24749
24750 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24751
24752 fi
24753
24754 case $target in
24755 *-*-aix*) conftest_s=' .csect .text[PR]
24756 LCF..0:
24757 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24758 *-*-darwin*)
24759 conftest_s=' .text
24760 LCF0:
24761 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24762 *) conftest_s=' .text
24763 .LCF0:
24764 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24765 esac
24766
24767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24768 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24769 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24770 $as_echo_n "(cached) " >&6
24771 else
24772 gcc_cv_as_powerpc_rel16=no
24773 if test $in_tree_gas = yes; then
24774 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24775 then gcc_cv_as_powerpc_rel16=yes
24776 fi
24777 elif test x$gcc_cv_as != x; then
24778 $as_echo "$conftest_s" > conftest.s
24779 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24781 (eval $ac_try) 2>&5
24782 ac_status=$?
24783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24784 test $ac_status = 0; }; }
24785 then
24786 gcc_cv_as_powerpc_rel16=yes
24787 else
24788 echo "configure: failed program was" >&5
24789 cat conftest.s >&5
24790 fi
24791 rm -f conftest.o conftest.s
24792 fi
24793 fi
24794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24795 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24796 if test $gcc_cv_as_powerpc_rel16 = yes; then
24797
24798 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24799
24800 fi
24801
24802 case $target in
24803 *-*-aix*) conftest_s=' .machine "pwr6"
24804 .csect .text[PR]
24805 cmpb 3,4,5';;
24806 *) conftest_s=' .machine power6
24807 .text
24808 cmpb 3,4,5';;
24809 esac
24810
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24812 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24813 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24814 $as_echo_n "(cached) " >&6
24815 else
24816 gcc_cv_as_powerpc_cmpb=no
24817 if test $in_tree_gas = yes; then
24818 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24819 then gcc_cv_as_powerpc_cmpb=yes
24820 fi
24821 elif test x$gcc_cv_as != x; then
24822 $as_echo "$conftest_s" > conftest.s
24823 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24825 (eval $ac_try) 2>&5
24826 ac_status=$?
24827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24828 test $ac_status = 0; }; }
24829 then
24830 gcc_cv_as_powerpc_cmpb=yes
24831 else
24832 echo "configure: failed program was" >&5
24833 cat conftest.s >&5
24834 fi
24835 rm -f conftest.o conftest.s
24836 fi
24837 fi
24838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
24839 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
24840 if test $gcc_cv_as_powerpc_cmpb = yes; then
24841
24842 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
24843
24844 fi
24845
24846 case $target in
24847 *-*-aix*) conftest_s=' .machine "pwr6"
24848 .csect .text[PR]
24849 dadd 1,2,3';;
24850 *) conftest_s=' .machine power6
24851 .text
24852 dadd 1,2,3';;
24853 esac
24854
24855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
24856 $as_echo_n "checking assembler for decimal float support... " >&6; }
24857 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
24858 $as_echo_n "(cached) " >&6
24859 else
24860 gcc_cv_as_powerpc_dfp=no
24861 if test $in_tree_gas = yes; then
24862 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24863 then gcc_cv_as_powerpc_dfp=yes
24864 fi
24865 elif test x$gcc_cv_as != x; then
24866 $as_echo "$conftest_s" > conftest.s
24867 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24869 (eval $ac_try) 2>&5
24870 ac_status=$?
24871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24872 test $ac_status = 0; }; }
24873 then
24874 gcc_cv_as_powerpc_dfp=yes
24875 else
24876 echo "configure: failed program was" >&5
24877 cat conftest.s >&5
24878 fi
24879 rm -f conftest.o conftest.s
24880 fi
24881 fi
24882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
24883 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
24884 if test $gcc_cv_as_powerpc_dfp = yes; then
24885
24886 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
24887
24888 fi
24889
24890 case $target in
24891 *-*-aix*) conftest_s=' .machine "pwr7"
24892 .csect .text[PR]
24893 lxvd2x 1,2,3';;
24894 *) conftest_s=' .machine power7
24895 .text
24896 lxvd2x 1,2,3';;
24897 esac
24898
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
24900 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
24901 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
24902 $as_echo_n "(cached) " >&6
24903 else
24904 gcc_cv_as_powerpc_vsx=no
24905 if test $in_tree_gas = yes; then
24906 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24907 then gcc_cv_as_powerpc_vsx=yes
24908 fi
24909 elif test x$gcc_cv_as != x; then
24910 $as_echo "$conftest_s" > conftest.s
24911 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24913 (eval $ac_try) 2>&5
24914 ac_status=$?
24915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24916 test $ac_status = 0; }; }
24917 then
24918 gcc_cv_as_powerpc_vsx=yes
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_powerpc_vsx" >&5
24927 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
24928 if test $gcc_cv_as_powerpc_vsx = yes; then
24929
24930 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
24931
24932 fi
24933
24934 case $target in
24935 *-*-aix*) conftest_s=' .machine "pwr7"
24936 .csect .text[PR]
24937 popcntd 3,3';;
24938 *) conftest_s=' .machine power7
24939 .text
24940 popcntd 3,3';;
24941 esac
24942
24943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
24944 $as_echo_n "checking assembler for popcntd support... " >&6; }
24945 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
24946 $as_echo_n "(cached) " >&6
24947 else
24948 gcc_cv_as_powerpc_popcntd=no
24949 if test $in_tree_gas = yes; then
24950 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24951 then gcc_cv_as_powerpc_popcntd=yes
24952 fi
24953 elif test x$gcc_cv_as != x; then
24954 $as_echo "$conftest_s" > conftest.s
24955 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24957 (eval $ac_try) 2>&5
24958 ac_status=$?
24959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24960 test $ac_status = 0; }; }
24961 then
24962 gcc_cv_as_powerpc_popcntd=yes
24963 else
24964 echo "configure: failed program was" >&5
24965 cat conftest.s >&5
24966 fi
24967 rm -f conftest.o conftest.s
24968 fi
24969 fi
24970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
24971 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
24972 if test $gcc_cv_as_powerpc_popcntd = yes; then
24973
24974 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
24975
24976 fi
24977
24978 case $target in
24979 *-*-aix*) conftest_s=' .csect .text[PR]
24980 lwsync';;
24981 *) conftest_s=' .text
24982 lwsync';;
24983 esac
24984
24985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
24986 $as_echo_n "checking assembler for lwsync support... " >&6; }
24987 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
24988 $as_echo_n "(cached) " >&6
24989 else
24990 gcc_cv_as_powerpc_lwsync=no
24991 if test $in_tree_gas = yes; then
24992 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24993 then gcc_cv_as_powerpc_lwsync=yes
24994 fi
24995 elif test x$gcc_cv_as != x; then
24996 $as_echo "$conftest_s" > conftest.s
24997 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24999 (eval $ac_try) 2>&5
25000 ac_status=$?
25001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25002 test $ac_status = 0; }; }
25003 then
25004 gcc_cv_as_powerpc_lwsync=yes
25005 else
25006 echo "configure: failed program was" >&5
25007 cat conftest.s >&5
25008 fi
25009 rm -f conftest.o conftest.s
25010 fi
25011 fi
25012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25013 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25014 if test $gcc_cv_as_powerpc_lwsync = yes; then
25015
25016 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25017
25018 fi
25019
25020 case $target in
25021 *-*-aix*) conftest_s=' .machine "476"
25022 .csect .text[PR]
25023 dci 0';;
25024 *) conftest_s=' .machine "476"
25025 .text
25026 dci 0';;
25027 esac
25028
25029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25030 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25031 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25032 $as_echo_n "(cached) " >&6
25033 else
25034 gcc_cv_as_powerpc_dci=no
25035 if test $in_tree_gas = yes; then
25036 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25037 then gcc_cv_as_powerpc_dci=yes
25038 fi
25039 elif test x$gcc_cv_as != x; then
25040 $as_echo "$conftest_s" > conftest.s
25041 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25043 (eval $ac_try) 2>&5
25044 ac_status=$?
25045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25046 test $ac_status = 0; }; }
25047 then
25048 gcc_cv_as_powerpc_dci=yes
25049 else
25050 echo "configure: failed program was" >&5
25051 cat conftest.s >&5
25052 fi
25053 rm -f conftest.o conftest.s
25054 fi
25055 fi
25056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25057 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25058 if test $gcc_cv_as_powerpc_dci = yes; then
25059
25060 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25061
25062 fi
25063
25064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25065 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25066 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25067 $as_echo_n "(cached) " >&6
25068 else
25069 gcc_cv_as_powerpc_gnu_attribute=no
25070 if test $in_tree_gas = yes; then
25071 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25072 then gcc_cv_as_powerpc_gnu_attribute=yes
25073 fi
25074 elif test x$gcc_cv_as != x; then
25075 $as_echo '.gnu_attribute 4,1' > conftest.s
25076 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25078 (eval $ac_try) 2>&5
25079 ac_status=$?
25080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25081 test $ac_status = 0; }; }
25082 then
25083 gcc_cv_as_powerpc_gnu_attribute=yes
25084 else
25085 echo "configure: failed program was" >&5
25086 cat conftest.s >&5
25087 fi
25088 rm -f conftest.o conftest.s
25089 fi
25090 fi
25091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25092 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25093 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25094
25095 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25096
25097 fi
25098
25099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25100 $as_echo_n "checking assembler for tls marker support... " >&6; }
25101 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25102 $as_echo_n "(cached) " >&6
25103 else
25104 gcc_cv_as_powerpc_tls_markers=no
25105 if test $in_tree_gas = yes; then
25106 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25107 then gcc_cv_as_powerpc_tls_markers=yes
25108 fi
25109 elif test x$gcc_cv_as != x; then
25110 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25111 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25113 (eval $ac_try) 2>&5
25114 ac_status=$?
25115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25116 test $ac_status = 0; }; }
25117 then
25118 gcc_cv_as_powerpc_tls_markers=yes
25119 else
25120 echo "configure: failed program was" >&5
25121 cat conftest.s >&5
25122 fi
25123 rm -f conftest.o conftest.s
25124 fi
25125 fi
25126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25127 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25128 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25129
25130 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25131
25132 fi
25133
25134 case $target in
25135 *-*-aix*)
25136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25137 $as_echo_n "checking assembler for .ref support... " >&6; }
25138 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25139 $as_echo_n "(cached) " >&6
25140 else
25141 gcc_cv_as_aix_ref=no
25142 if test $in_tree_gas = yes; then
25143 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25144 then :
25145 fi
25146 elif test x$gcc_cv_as != x; then
25147 $as_echo ' .csect stuff[rw]
25148 stuff:
25149 .long 1
25150 .extern sym
25151 .ref sym
25152 ' > conftest.s
25153 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25155 (eval $ac_try) 2>&5
25156 ac_status=$?
25157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25158 test $ac_status = 0; }; }
25159 then
25160 gcc_cv_as_aix_ref=yes
25161 else
25162 echo "configure: failed program was" >&5
25163 cat conftest.s >&5
25164 fi
25165 rm -f conftest.o conftest.s
25166 fi
25167 fi
25168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25169 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25170 if test $gcc_cv_as_aix_ref = yes; then
25171
25172 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25173
25174 fi
25175 ;;
25176 esac
25177 ;;
25178
25179 mips*-*-*)
25180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25181 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25182 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25183 $as_echo_n "(cached) " >&6
25184 else
25185 gcc_cv_as_mips_explicit_relocs=no
25186 if test $in_tree_gas = yes; then
25187 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25188 then gcc_cv_as_mips_explicit_relocs=yes
25189 fi
25190 elif test x$gcc_cv_as != x; then
25191 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25192 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25194 (eval $ac_try) 2>&5
25195 ac_status=$?
25196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25197 test $ac_status = 0; }; }
25198 then
25199 gcc_cv_as_mips_explicit_relocs=yes
25200 else
25201 echo "configure: failed program was" >&5
25202 cat conftest.s >&5
25203 fi
25204 rm -f conftest.o conftest.s
25205 fi
25206 fi
25207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25208 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25209 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25210 if test x$target_cpu_default = x
25211 then target_cpu_default=MASK_EXPLICIT_RELOCS
25212 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25213 fi
25214 fi
25215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25216 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25217 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25218 $as_echo_n "(cached) " >&6
25219 else
25220 gcc_cv_as_mips_no_shared=no
25221 if test $in_tree_gas = yes; then
25222 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25223 then gcc_cv_as_mips_no_shared=yes
25224 fi
25225 elif test x$gcc_cv_as != x; then
25226 $as_echo 'nop' > conftest.s
25227 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25229 (eval $ac_try) 2>&5
25230 ac_status=$?
25231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25232 test $ac_status = 0; }; }
25233 then
25234 gcc_cv_as_mips_no_shared=yes
25235 else
25236 echo "configure: failed program was" >&5
25237 cat conftest.s >&5
25238 fi
25239 rm -f conftest.o conftest.s
25240 fi
25241 fi
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25243 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25244 if test $gcc_cv_as_mips_no_shared = yes; then
25245
25246 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25247
25248 fi
25249
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25251 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25252 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25253 $as_echo_n "(cached) " >&6
25254 else
25255 gcc_cv_as_mips_gnu_attribute=no
25256 if test $in_tree_gas = yes; then
25257 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25258 then gcc_cv_as_mips_gnu_attribute=yes
25259 fi
25260 elif test x$gcc_cv_as != x; then
25261 $as_echo '.gnu_attribute 4,1' > conftest.s
25262 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25264 (eval $ac_try) 2>&5
25265 ac_status=$?
25266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25267 test $ac_status = 0; }; }
25268 then
25269 gcc_cv_as_mips_gnu_attribute=yes
25270 else
25271 echo "configure: failed program was" >&5
25272 cat conftest.s >&5
25273 fi
25274 rm -f conftest.o conftest.s
25275 fi
25276 fi
25277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25278 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25279 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25280
25281 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25282
25283 fi
25284
25285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25286 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25287 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25288 $as_echo_n "(cached) " >&6
25289 else
25290 gcc_cv_as_mips_dtprelword=no
25291 if test $in_tree_gas = yes; then
25292 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25293 then gcc_cv_as_mips_dtprelword=yes
25294 fi
25295 elif test x$gcc_cv_as != x; then
25296 $as_echo '.section .tdata,"awT",@progbits
25297 x:
25298 .word 2
25299 .text
25300 .dtprelword x+0x8000' > conftest.s
25301 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25303 (eval $ac_try) 2>&5
25304 ac_status=$?
25305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25306 test $ac_status = 0; }; }
25307 then
25308 gcc_cv_as_mips_dtprelword=yes
25309 else
25310 echo "configure: failed program was" >&5
25311 cat conftest.s >&5
25312 fi
25313 rm -f conftest.o conftest.s
25314 fi
25315 fi
25316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25317 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25318 if test $gcc_cv_as_mips_dtprelword = yes; then
25319
25320 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25321
25322 fi
25323
25324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25325 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25326 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25327 $as_echo_n "(cached) " >&6
25328 else
25329 gcc_cv_as_mips_dspr1_mult=no
25330 if test x$gcc_cv_as != x; then
25331 $as_echo ' .set mips32r2
25332 .set nodspr2
25333 .set dsp
25334 madd $ac3,$4,$5
25335 maddu $ac3,$4,$5
25336 msub $ac3,$4,$5
25337 msubu $ac3,$4,$5
25338 mult $ac3,$4,$5
25339 multu $ac3,$4,$5' > conftest.s
25340 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25342 (eval $ac_try) 2>&5
25343 ac_status=$?
25344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25345 test $ac_status = 0; }; }
25346 then
25347 gcc_cv_as_mips_dspr1_mult=yes
25348 else
25349 echo "configure: failed program was" >&5
25350 cat conftest.s >&5
25351 fi
25352 rm -f conftest.o conftest.s
25353 fi
25354 fi
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25356 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25357 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25358
25359 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25360
25361 fi
25362
25363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25364 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25365 gcc_cv_as_ld_jalr_reloc=no
25366 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25367 if test $in_tree_ld = yes ; then
25368 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 \
25369 && test $in_tree_ld_is_elf = yes; then
25370 gcc_cv_as_ld_jalr_reloc=yes
25371 fi
25372 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25373 echo ' .ent x' > conftest.s
25374 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25375 echo ' ld $25,%call16(y)($28)' >> conftest.s
25376 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25377 echo '1: jalr $25' >> conftest.s
25378 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25379 echo '1: jalr $25' >> conftest.s
25380 echo ' .end x' >> conftest.s
25381 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25382 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25383 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25384 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25385 gcc_cv_as_ld_jalr_reloc=yes
25386 fi
25387 fi
25388 rm -f conftest.*
25389 fi
25390 fi
25391 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25392 if test x$target_cpu_default = x; then
25393 target_cpu_default=MASK_RELAX_PIC_CALLS
25394 else
25395 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25396 fi
25397 fi
25398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25399 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25400
25401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25402 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25403 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25404 $as_echo_n "(cached) " >&6
25405 else
25406 gcc_cv_ld_mips_personality_relaxation=no
25407 if test $in_tree_ld = yes ; then
25408 if test "$gcc_cv_gld_major_version" -eq 2 \
25409 -a "$gcc_cv_gld_minor_version" -ge 21 \
25410 -o "$gcc_cv_gld_major_version" -gt 2; then
25411 gcc_cv_ld_mips_personality_relaxation=yes
25412 fi
25413 elif test x$gcc_cv_as != x \
25414 -a x$gcc_cv_ld != x \
25415 -a x$gcc_cv_readelf != x ; then
25416 cat > conftest.s <<EOF
25417 .cfi_startproc
25418 .cfi_personality 0x80,indirect_ptr
25419 .ent test
25420 test:
25421 nop
25422 .end test
25423 .cfi_endproc
25424
25425 .section .data,"aw",@progbits
25426 indirect_ptr:
25427 .dc.a personality
25428 EOF
25429 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25430 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25431 if $gcc_cv_readelf -d conftest 2>&1 \
25432 | grep TEXTREL > /dev/null 2>&1; then
25433 :
25434 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25435 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25436 :
25437 else
25438 gcc_cv_ld_mips_personality_relaxation=yes
25439 fi
25440 fi
25441 fi
25442 rm -f conftest.s conftest.o conftest
25443 fi
25444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25445 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25446 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25447
25448 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25449
25450 fi
25451 ;;
25452 esac
25453
25454 # Mips and HP-UX need the GNU assembler.
25455 # Linux on IA64 might be able to use the Intel assembler.
25456
25457 case "$target" in
25458 mips*-*-* | *-*-hpux* )
25459 if test x$gas_flag = xyes \
25460 || test x"$host" != x"$build" \
25461 || test ! -x "$gcc_cv_as" \
25462 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25463 :
25464 else
25465 echo "*** This configuration requires the GNU assembler" >&2
25466 exit 1
25467 fi
25468 ;;
25469 esac
25470
25471 # ??? Not all targets support dwarf2 debug_line, even within a version
25472 # of gas. Moreover, we need to emit a valid instruction to trigger any
25473 # info to the output file. So, as supported targets are added to gas 2.11,
25474 # add some instruction here to (also) show we expect this might work.
25475 # ??? Once 2.11 is released, probably need to add first known working
25476 # version to the per-target configury.
25477 case "$cpu_type" in
25478 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25479 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
25480 insn="nop"
25481 ;;
25482 ia64 | s390)
25483 insn="nop 0"
25484 ;;
25485 mmix)
25486 insn="swym 0"
25487 ;;
25488 esac
25489 if test x"$insn" != x; then
25490 conftest_s="\
25491 .file 1 \"conftest.s\"
25492 .loc 1 3 0
25493 $insn"
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25495 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25496 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25497 $as_echo_n "(cached) " >&6
25498 else
25499 gcc_cv_as_dwarf2_debug_line=no
25500 if test $in_tree_gas = yes; then
25501 if test $in_tree_gas_is_elf = yes \
25502 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25503 then gcc_cv_as_dwarf2_debug_line=yes
25504 fi
25505 elif test x$gcc_cv_as != x; then
25506 $as_echo "$conftest_s" > conftest.s
25507 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25509 (eval $ac_try) 2>&5
25510 ac_status=$?
25511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25512 test $ac_status = 0; }; }
25513 then
25514 if test x$gcc_cv_objdump != x \
25515 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25516 | grep debug_line > /dev/null 2>&1; then
25517 gcc_cv_as_dwarf2_debug_line=yes
25518 fi
25519 else
25520 echo "configure: failed program was" >&5
25521 cat conftest.s >&5
25522 fi
25523 rm -f conftest.o conftest.s
25524 fi
25525 fi
25526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25527 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25528
25529
25530 # The .debug_line file table must be in the exact order that
25531 # we specified the files, since these indices are also used
25532 # by DW_AT_decl_file. Approximate this test by testing if
25533 # the assembler bitches if the same index is assigned twice.
25534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25535 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25536 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25537 $as_echo_n "(cached) " >&6
25538 else
25539 gcc_cv_as_dwarf2_file_buggy=no
25540 if test x$gcc_cv_as != x; then
25541 $as_echo ' .file 1 "foo.s"
25542 .file 1 "bar.s"' > conftest.s
25543 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25545 (eval $ac_try) 2>&5
25546 ac_status=$?
25547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25548 test $ac_status = 0; }; }
25549 then
25550 gcc_cv_as_dwarf2_file_buggy=yes
25551 else
25552 echo "configure: failed program was" >&5
25553 cat conftest.s >&5
25554 fi
25555 rm -f conftest.o conftest.s
25556 fi
25557 fi
25558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25559 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25560
25561
25562 if test $gcc_cv_as_dwarf2_debug_line = yes \
25563 && test $gcc_cv_as_dwarf2_file_buggy = no; then
25564
25565 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25566
25567 fi
25568
25569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25570 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25571 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25572 $as_echo_n "(cached) " >&6
25573 else
25574 gcc_cv_as_gdwarf2_flag=no
25575 if test $in_tree_gas = yes; then
25576 if test $in_tree_gas_is_elf = yes \
25577 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25578 then gcc_cv_as_gdwarf2_flag=yes
25579 fi
25580 elif test x$gcc_cv_as != x; then
25581 $as_echo "$insn" > conftest.s
25582 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25584 (eval $ac_try) 2>&5
25585 ac_status=$?
25586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25587 test $ac_status = 0; }; }
25588 then
25589 gcc_cv_as_gdwarf2_flag=yes
25590 else
25591 echo "configure: failed program was" >&5
25592 cat conftest.s >&5
25593 fi
25594 rm -f conftest.o conftest.s
25595 fi
25596 fi
25597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25598 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25599 if test $gcc_cv_as_gdwarf2_flag = yes; then
25600
25601 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25602
25603 fi
25604
25605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25606 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25607 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25608 $as_echo_n "(cached) " >&6
25609 else
25610 gcc_cv_as_gstabs_flag=no
25611 if test $in_tree_gas = yes; then
25612 if test $in_tree_gas_is_elf = yes \
25613 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25614 then gcc_cv_as_gstabs_flag=yes
25615 fi
25616 elif test x$gcc_cv_as != x; then
25617 $as_echo "$insn" > conftest.s
25618 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25620 (eval $ac_try) 2>&5
25621 ac_status=$?
25622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25623 test $ac_status = 0; }; }
25624 then
25625 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25626 # and warns about it, but still exits successfully. So check for
25627 # this.
25628 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25630 (eval $ac_try) 2>&5
25631 ac_status=$?
25632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25633 test $ac_status = 0; }; }
25634 then :
25635 else gcc_cv_as_gstabs_flag=yes
25636 fi
25637 else
25638 echo "configure: failed program was" >&5
25639 cat conftest.s >&5
25640 fi
25641 rm -f conftest.o conftest.s
25642 fi
25643 fi
25644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25645 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25646 if test $gcc_cv_as_gstabs_flag = yes; then
25647
25648 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25649
25650 fi
25651
25652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25653 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25654 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25655 $as_echo_n "(cached) " >&6
25656 else
25657 gcc_cv_as_debug_prefix_map_flag=no
25658 if test $in_tree_gas = yes; then
25659 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25660 then gcc_cv_as_debug_prefix_map_flag=yes
25661 fi
25662 elif test x$gcc_cv_as != x; then
25663 $as_echo "$insn" > conftest.s
25664 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25666 (eval $ac_try) 2>&5
25667 ac_status=$?
25668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25669 test $ac_status = 0; }; }
25670 then
25671 gcc_cv_as_debug_prefix_map_flag=yes
25672 else
25673 echo "configure: failed program was" >&5
25674 cat conftest.s >&5
25675 fi
25676 rm -f conftest.o conftest.s
25677 fi
25678 fi
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25680 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25681 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25682
25683 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25684
25685 fi
25686 fi
25687
25688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25689 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25690 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25691 $as_echo_n "(cached) " >&6
25692 else
25693 gcc_cv_as_lcomm_with_alignment=no
25694 if test x$gcc_cv_as != x; then
25695 $as_echo '.lcomm bar,4,16' > conftest.s
25696 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25698 (eval $ac_try) 2>&5
25699 ac_status=$?
25700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25701 test $ac_status = 0; }; }
25702 then
25703 gcc_cv_as_lcomm_with_alignment=yes
25704 else
25705 echo "configure: failed program was" >&5
25706 cat conftest.s >&5
25707 fi
25708 rm -f conftest.o conftest.s
25709 fi
25710 fi
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
25712 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25713 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25714
25715 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
25716
25717 fi
25718
25719 # Check whether --enable-gnu-unique-object was given.
25720 if test "${enable_gnu_unique_object+set}" = set; then :
25721 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
25722 yes | no) ;;
25723 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
25724 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25725 esac
25726 else
25727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
25728 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
25729 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
25730 $as_echo_n "(cached) " >&6
25731 else
25732 gcc_cv_as_gnu_unique_object=no
25733 if test $in_tree_gas = yes; then
25734 if test $in_tree_gas_is_elf = yes \
25735 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25736 then gcc_cv_as_gnu_unique_object=yes
25737 fi
25738 elif test x$gcc_cv_as != x; then
25739 $as_echo '.type foo, @gnu_unique_object' > conftest.s
25740 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25742 (eval $ac_try) 2>&5
25743 ac_status=$?
25744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25745 test $ac_status = 0; }; }
25746 then
25747 gcc_cv_as_gnu_unique_object=yes
25748 else
25749 echo "configure: failed program was" >&5
25750 cat conftest.s >&5
25751 fi
25752 rm -f conftest.o conftest.s
25753 fi
25754 fi
25755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
25756 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
25757 if test $gcc_cv_as_gnu_unique_object = yes; then
25758 # Also check for ld.so support, i.e. glibc 2.11 or higher.
25759 if test x$host = x$build -a x$host = x$target &&
25760 ldd --version 2>/dev/null &&
25761 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25762 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
25763 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25764 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
25765 if test "$glibcnum" -ge 2011 ; then
25766 enable_gnu_unique_object=yes
25767 fi
25768 fi
25769 fi
25770 fi
25771
25772 if test x$enable_gnu_unique_object = xyes; then
25773
25774 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25775
25776 fi
25777
25778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25779 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25780 if test "${gcc_cv_as_line_zero+set}" = set; then :
25781 $as_echo_n "(cached) " >&6
25782 else
25783 gcc_cv_as_line_zero=no
25784 if test $in_tree_gas = yes; then
25785 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25786 then gcc_cv_as_line_zero=yes
25787 fi
25788 elif test "x$gcc_cv_as" != x; then
25789 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25790 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25792 (eval $ac_try) 2>&5
25793 ac_status=$?
25794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25795 test $ac_status = 0; }; } &&
25796 test "x`cat conftest.out`" = x
25797 then
25798 gcc_cv_as_line_zero=yes
25799 else
25800 echo "configure: failed program was" >&5
25801 cat conftest.s >&5
25802 echo "configure: error output was" >&5
25803 cat conftest.out >&5
25804 fi
25805 rm -f conftest.o conftest.s conftest.out
25806 fi
25807 fi
25808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
25809 $as_echo "$gcc_cv_as_line_zero" >&6; }
25810 if test "x$gcc_cv_as_line_zero" = xyes; then
25811
25812 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
25813
25814 fi
25815
25816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
25817 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
25818 gcc_cv_ld_eh_frame_hdr=no
25819 if test $in_tree_ld = yes ; then
25820 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 \
25821 && test $in_tree_ld_is_elf = yes; then
25822 gcc_cv_ld_eh_frame_hdr=yes
25823 fi
25824 elif test x$gcc_cv_ld != x; then
25825 if echo "$ld_ver" | grep GNU > /dev/null; then
25826 # Check if linker supports --eh-frame-hdr option
25827 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
25828 gcc_cv_ld_eh_frame_hdr=yes
25829 fi
25830 else
25831 case "$target" in
25832 *-*-solaris2*)
25833 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
25834 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
25835 gcc_cv_ld_eh_frame_hdr=yes
25836 fi
25837 ;;
25838 esac
25839 fi
25840 fi
25841
25842 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
25843
25844 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
25845
25846 fi
25847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
25848 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
25849
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
25851 $as_echo_n "checking linker position independent executable support... " >&6; }
25852 gcc_cv_ld_pie=no
25853 if test $in_tree_ld = yes ; then
25854 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
25855 && test $in_tree_ld_is_elf = yes; then
25856 gcc_cv_ld_pie=yes
25857 fi
25858 elif test x$gcc_cv_ld != x; then
25859 # Check if linker supports -pie option
25860 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
25861 gcc_cv_ld_pie=yes
25862 fi
25863 fi
25864 if test x"$gcc_cv_ld_pie" = xyes; then
25865
25866 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
25867
25868 fi
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
25870 $as_echo "$gcc_cv_ld_pie" >&6; }
25871
25872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
25873 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
25874 gcc_cv_ld_eh_gc_sections=no
25875 if test $in_tree_ld = yes ; then
25876 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 \
25877 && test $in_tree_ld_is_elf = yes; then
25878 gcc_cv_ld_eh_gc_sections=yes
25879 fi
25880 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
25881 cat > conftest.s <<EOF
25882 .section .text
25883 .globl _start
25884 .type _start, @function
25885 _start:
25886 .long foo
25887 .size _start, .-_start
25888 .section .text.foo,"ax",@progbits
25889 .type foo, @function
25890 foo:
25891 .long 0
25892 .size foo, .-foo
25893 .section .gcc_except_table.foo,"a",@progbits
25894 .L0:
25895 .long 0
25896 .section .eh_frame,"a",@progbits
25897 .long .L0
25898 EOF
25899 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25900 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25901 | grep "gc-sections option ignored" > /dev/null; then
25902 gcc_cv_ld_eh_gc_sections=no
25903 elif $gcc_cv_objdump -h conftest 2> /dev/null \
25904 | grep gcc_except_table > /dev/null; then
25905 gcc_cv_ld_eh_gc_sections=yes
25906 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
25907 if test x$gcc_cv_as_comdat_group != xyes; then
25908 gcc_cv_ld_eh_gc_sections=no
25909 cat > conftest.s <<EOF
25910 .section .text
25911 .globl _start
25912 .type _start, @function
25913 _start:
25914 .long foo
25915 .size _start, .-_start
25916 .section .gnu.linkonce.t.foo,"ax",@progbits
25917 .type foo, @function
25918 foo:
25919 .long 0
25920 .size foo, .-foo
25921 .section .gcc_except_table.foo,"a",@progbits
25922 .L0:
25923 .long 0
25924 .section .eh_frame,"a",@progbits
25925 .long .L0
25926 EOF
25927 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25928 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25929 | grep "gc-sections option ignored" > /dev/null; then
25930 gcc_cv_ld_eh_gc_sections=no
25931 elif $gcc_cv_objdump -h conftest 2> /dev/null \
25932 | grep gcc_except_table > /dev/null; then
25933 gcc_cv_ld_eh_gc_sections=yes
25934 fi
25935 fi
25936 fi
25937 fi
25938 fi
25939 rm -f conftest.s conftest.o conftest
25940 fi
25941 case "$target" in
25942 hppa*-*-linux*)
25943 # ??? This apparently exposes a binutils bug with PC-relative relocations.
25944 gcc_cv_ld_eh_gc_sections=no
25945 ;;
25946 esac
25947 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
25948
25949 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
25950
25951 fi
25952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
25953 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
25954
25955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
25956 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
25957 gcc_cv_ld_eh_gc_sections_bug=no
25958 if test $in_tree_ld = yes ; then
25959 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 \
25960 && test $in_tree_ld_is_elf = yes; then
25961 gcc_cv_ld_eh_gc_sections_bug=yes
25962 fi
25963 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
25964 gcc_cv_ld_eh_gc_sections_bug=yes
25965 cat > conftest.s <<EOF
25966 .section .text
25967 .globl _start
25968 .type _start, @function
25969 _start:
25970 .long foo
25971 .size _start, .-_start
25972 .section .text.startup.foo,"ax",@progbits
25973 .type foo, @function
25974 foo:
25975 .long 0
25976 .size foo, .-foo
25977 .section .gcc_except_table.foo,"a",@progbits
25978 .L0:
25979 .long 0
25980 .section .eh_frame,"a",@progbits
25981 .long .L0
25982 EOF
25983 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25984 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25985 | grep "gc-sections option ignored" > /dev/null; then
25986 :
25987 elif $gcc_cv_objdump -h conftest 2> /dev/null \
25988 | grep gcc_except_table > /dev/null; then
25989 gcc_cv_ld_eh_gc_sections_bug=no
25990 fi
25991 fi
25992 rm -f conftest.s conftest.o conftest
25993 fi
25994 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
25995
25996 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
25997
25998 fi
25999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26000 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26001
26002 # --------
26003 # UNSORTED
26004 # --------
26005
26006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26007 $as_echo_n "checking linker --as-needed support... " >&6; }
26008 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26009 $as_echo_n "(cached) " >&6
26010 else
26011 gcc_cv_ld_as_needed=no
26012 if test $in_tree_ld = yes ; then
26013 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 \
26014 && test $in_tree_ld_is_elf = yes; then
26015 gcc_cv_ld_as_needed=yes
26016 fi
26017 elif test x$gcc_cv_ld != x; then
26018 # Check if linker supports --as-needed and --no-as-needed options
26019 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26020 gcc_cv_ld_as_needed=yes
26021 fi
26022 fi
26023
26024 fi
26025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26026 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26027 if test x"$gcc_cv_ld_as_needed" = xyes; then
26028
26029 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26030
26031 fi
26032
26033 case "$target:$tm_file" in
26034 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26036 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26037 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26038 $as_echo_n "(cached) " >&6
26039 else
26040 gcc_cv_ld_no_dot_syms=no
26041 if test $in_tree_ld = yes ; then
26042 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
26043 gcc_cv_ld_no_dot_syms=yes
26044 fi
26045 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26046 cat > conftest1.s <<EOF
26047 .text
26048 bl .foo
26049 EOF
26050 cat > conftest2.s <<EOF
26051 .section ".opd","aw"
26052 .align 3
26053 .globl foo
26054 .type foo,@function
26055 foo:
26056 .quad .LEfoo,.TOC.@tocbase,0
26057 .text
26058 .LEfoo:
26059 blr
26060 .size foo,.-.LEfoo
26061 EOF
26062 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26063 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26064 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26065 gcc_cv_ld_no_dot_syms=yes
26066 fi
26067 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26068 fi
26069
26070 fi
26071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26072 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26073 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26074
26075 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26076
26077 fi
26078
26079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26080 $as_echo_n "checking linker large toc support... " >&6; }
26081 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26082 $as_echo_n "(cached) " >&6
26083 else
26084 gcc_cv_ld_large_toc=no
26085 if test $in_tree_ld = yes ; then
26086 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
26087 gcc_cv_ld_large_toc=yes
26088 fi
26089 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26090 cat > conftest.s <<EOF
26091 .section ".tbss","awT",@nobits
26092 .align 3
26093 ie0: .space 8
26094 .global _start
26095 .text
26096 _start:
26097 addis 9,13,ie0@got@tprel@ha
26098 ld 9,ie0@got@tprel@l(9)
26099 EOF
26100 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26101 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26102 gcc_cv_ld_large_toc=yes
26103 fi
26104 rm -f conftest conftest.o conftest.s
26105 fi
26106
26107 fi
26108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26109 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26110 if test x"$gcc_cv_ld_large_toc" = xyes; then
26111
26112 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26113
26114 fi
26115 ;;
26116 esac
26117
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26119 $as_echo_n "checking linker --build-id support... " >&6; }
26120 if test "${gcc_cv_ld_buildid+set}" = set; then :
26121 $as_echo_n "(cached) " >&6
26122 else
26123 gcc_cv_ld_buildid=no
26124 if test $in_tree_ld = yes ; then
26125 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26126 "$gcc_cv_gld_minor_version" -ge 18 -o \
26127 "$gcc_cv_gld_major_version" -gt 2 \
26128 && test $in_tree_ld_is_elf = yes; then
26129 gcc_cv_ld_buildid=yes
26130 fi
26131 elif test x$gcc_cv_ld != x; then
26132 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26133 gcc_cv_ld_buildid=yes
26134 fi
26135 fi
26136 fi
26137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26138 $as_echo "$gcc_cv_ld_buildid" >&6; }
26139 if test x"$gcc_cv_ld_buildid" = xyes; then
26140
26141 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26142
26143 fi
26144
26145 # Check whether --enable-linker-build-id was given.
26146 if test "${enable_linker_build_id+set}" = set; then :
26147 enableval=$enable_linker_build_id;
26148 else
26149 enable_linker_build_id=no
26150 fi
26151
26152
26153 if test x"$enable_linker_build_id" = xyes; then
26154 if test x"$gcc_cv_ld_buildid" = xyes; then
26155
26156 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26157
26158 else
26159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26160 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26161 fi
26162 fi
26163
26164 # In binutils 2.21, GNU ld gained support for new emulations fully
26165 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26167 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26168 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26169 $as_echo_n "(cached) " >&6
26170 else
26171 gcc_cv_ld_sol2_emulation=no
26172 if test $in_tree_ld = yes ; then
26173 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26174 "$gcc_cv_gld_minor_version" -ge 21 -o \
26175 "$gcc_cv_gld_major_version" -gt 2 \
26176 && test $in_tree_ld_is_elf = yes; then
26177 gcc_cv_ld_sol2_emulation=yes
26178 fi
26179 elif test x$gcc_cv_ld != x; then
26180 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26181 grep _sol2 > /dev/null; then
26182 gcc_cv_ld_sol2_emulation=yes
26183 fi
26184 fi
26185 fi
26186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26187 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26188 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26189
26190 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26191
26192 fi
26193
26194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26195 $as_echo_n "checking linker --sysroot support... " >&6; }
26196 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26197 $as_echo_n "(cached) " >&6
26198 else
26199 gcc_cv_ld_sysroot=no
26200 if test $in_tree_ld = yes ; then
26201 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
26202 gcc_cv_ld_sysroot=yes
26203 fi
26204 elif test x$gcc_cv_ld != x; then
26205 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26206 gcc_cv_ld_sysroot=yes
26207 fi
26208 fi
26209 fi
26210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26211 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26212 if test x"$gcc_cv_ld_sysroot" = xyes; then
26213
26214 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26215
26216 fi
26217
26218 if test x$with_sysroot = x && test x$host = x$target \
26219 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26220 && test "$prefix" != "NONE"; then
26221
26222 cat >>confdefs.h <<_ACEOF
26223 #define PREFIX_INCLUDE_DIR "$prefix/include"
26224 _ACEOF
26225
26226 fi
26227
26228 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26229 if test "x$with_headers" != x; then
26230 target_header_dir=$with_headers
26231 elif test "x$with_sysroot" = x; then
26232 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
26233 elif test "x$with_build_sysroot" != "x"; then
26234 target_header_dir="${with_build_sysroot}/usr/include"
26235 elif test "x$with_sysroot" = xyes; then
26236 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
26237 else
26238 target_header_dir="${with_sysroot}/usr/include"
26239 fi
26240 else
26241 target_header_dir=/usr/include
26242 fi
26243
26244 # Test for stack protector support in target C library.
26245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26246 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26247 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26248 $as_echo_n "(cached) " >&6
26249 else
26250 gcc_cv_libc_provides_ssp=no
26251 case "$target" in
26252 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26253 # glibc 2.4 and later provides __stack_chk_fail and
26254 # either __stack_chk_guard, or TLS access to stack guard canary.
26255 if test -f $target_header_dir/features.h \
26256 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26257 $target_header_dir/features.h > /dev/null; then
26258 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26259 $target_header_dir/features.h > /dev/null; then
26260 gcc_cv_libc_provides_ssp=yes
26261 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26262 $target_header_dir/features.h > /dev/null \
26263 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26264 $target_header_dir/features.h > /dev/null; then
26265 gcc_cv_libc_provides_ssp=yes
26266 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26267 $target_header_dir/features.h > /dev/null && \
26268 test -f $target_header_dir/bits/uClibc_config.h && \
26269 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26270 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26271 gcc_cv_libc_provides_ssp=yes
26272 fi
26273 fi
26274 ;;
26275 *-*-gnu*)
26276 # Avoid complicated tests (see
26277 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26278 # simply assert that glibc does provide this, which is true for all
26279 # realistically usable GNU/Hurd configurations.
26280 gcc_cv_libc_provides_ssp=yes;;
26281 *-*-darwin* | *-*-freebsd*)
26282 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26283 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26284 gcc_cv_libc_provides_ssp=yes
26285 else
26286 echo "no __stack_chk_fail on this target"
26287 fi
26288
26289 ;;
26290 *) gcc_cv_libc_provides_ssp=no ;;
26291 esac
26292 fi
26293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26294 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26295
26296 if test x$gcc_cv_libc_provides_ssp = xyes; then
26297
26298 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26299
26300 fi
26301
26302 # Test for <sys/sdt.h> on the target.
26303
26304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26305 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26306 have_sys_sdt_h=no
26307 if test -f $target_header_dir/sys/sdt.h; then
26308
26309 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26310
26311 fi
26312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26313 $as_echo "$have_sys_sdt_h" >&6; }
26314
26315 # Check if TFmode long double should be used by default or not.
26316 # Some glibc targets used DFmode long double, but with glibc 2.4
26317 # and later they can use TFmode.
26318 case "$target" in
26319 powerpc*-*-linux* | \
26320 sparc*-*-linux* | \
26321 s390*-*-linux* | \
26322 alpha*-*-linux*)
26323
26324 # Check whether --with-long-double-128 was given.
26325 if test "${with_long_double_128+set}" = set; then :
26326 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26327 else
26328 gcc_cv_target_ldbl128=no
26329 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26330 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26331 && gcc_cv_target_ldbl128=yes
26332
26333 fi
26334
26335 ;;
26336 esac
26337 if test x$gcc_cv_target_ldbl128 = xyes; then
26338
26339 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26340
26341 fi
26342
26343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26344 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26345 gcc_cv_target_dl_iterate_phdr=unknown
26346 case "$target" in
26347 *-*-solaris2*)
26348 # <link.h> needs both a dl_iterate_phdr declaration and support for
26349 # compilation with largefile support.
26350 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26351 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26352 gcc_cv_target_dl_iterate_phdr=yes
26353 else
26354 gcc_cv_target_dl_iterate_phdr=no
26355 fi
26356 ;;
26357 esac
26358
26359 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26360
26361 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26362
26363 fi
26364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26365 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26366
26367 # Find out what GC implementation we want, or may, use.
26368
26369 # Check whether --with-gc was given.
26370 if test "${with_gc+set}" = set; then :
26371 withval=$with_gc; case "$withval" in
26372 page)
26373 GGC=ggc-$withval
26374 ;;
26375 zone)
26376 GGC=ggc-$withval
26377
26378 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26379
26380 ;;
26381 *)
26382 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26383 ;;
26384 esac
26385 else
26386 GGC=ggc-page
26387 fi
26388
26389
26390 echo "Using $GGC for garbage collection."
26391
26392 # Libraries to use on the host. This will normally be set by the top
26393 # level Makefile. Here we simply capture the value for our Makefile.
26394 if test -z "${HOST_LIBS+set}"; then
26395 HOST_LIBS=
26396 fi
26397
26398
26399 # Use the system's zlib library.
26400 zlibdir=-L../zlib
26401 zlibinc="-I\$(srcdir)/../zlib"
26402
26403 # Check whether --with-system-zlib was given.
26404 if test "${with_system_zlib+set}" = set; then :
26405 withval=$with_system_zlib; zlibdir=
26406 zlibinc=
26407
26408 fi
26409
26410
26411
26412
26413
26414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26415 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26416 # Check whether --enable-maintainer-mode was given.
26417 if test "${enable_maintainer_mode+set}" = set; then :
26418 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26419 else
26420 maintainer_mode=no
26421 fi
26422
26423
26424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26425 $as_echo "$maintainer_mode" >&6; }
26426
26427 if test "$maintainer_mode" = "yes"; then
26428 MAINT=''
26429 else
26430 MAINT='#'
26431 fi
26432
26433 # --------------
26434 # Language hooks
26435 # --------------
26436
26437 # Make empty files to contain the specs and options for each language.
26438 # Then add #include lines to for a compiler that has specs and/or options.
26439
26440 subdirs=
26441 lang_opt_files=
26442 lang_specs_files=
26443 lang_tree_files=
26444 # These (without "all_") are set in each config-lang.in.
26445 # `language' must be a single word so is spelled singularly.
26446 all_languages=
26447 all_compilers=
26448 all_outputs='Makefile'
26449 # List of language makefile fragments.
26450 all_lang_makefrags=
26451 # Additional files for gengtype
26452 all_gtfiles="$target_gtfiles"
26453
26454 # These are the languages that are set in --enable-languages,
26455 # and are available in the GCC tree.
26456 all_selected_languages=
26457
26458 # Add the language fragments.
26459 # Languages are added via two mechanisms. Some information must be
26460 # recorded in makefile variables, these are defined in config-lang.in.
26461 # We accumulate them and plug them into the main Makefile.
26462 # The other mechanism is a set of hooks for each of the main targets
26463 # like `clean', `install', etc.
26464
26465 language_hooks="Make-hooks"
26466
26467 for lang in ${srcdir}/*/config-lang.in
26468 do
26469 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26470
26471 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26472 if test "x$lang_alias" = x
26473 then
26474 echo "$lang doesn't set \$language." 1>&2
26475 exit 1
26476 fi
26477 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26478 subdirs="$subdirs $subdir"
26479
26480 # $gcc_subdir is where the gcc integration files are to be found
26481 # for a language, both for internal compiler purposes (compiler
26482 # sources implementing front-end to GCC tree converters), and for
26483 # build infrastructure purposes (Make-lang.in, etc.)
26484 #
26485 # This will be <subdir> (relative to $srcdir) if a line like
26486 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26487 # is found in <langdir>/config-lang.in, and will remain <langdir>
26488 # otherwise.
26489 #
26490 # Except for the language alias (fetched above), the regular
26491 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26492 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26493 # only this and the language alias.
26494
26495 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26496 if [ "$gcc_subdir" = "" ]; then
26497 gcc_subdir="$subdir"
26498 fi
26499
26500 case ",$enable_languages," in
26501 *,$lang_alias,*)
26502 all_selected_languages="$all_selected_languages $lang_alias"
26503 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26504 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26505 fi
26506 ;;
26507 esac
26508
26509 language=
26510 boot_language=
26511 compilers=
26512 outputs=
26513 gtfiles=
26514 subdir_requires=
26515 . ${srcdir}/$gcc_subdir/config-lang.in
26516 if test "x$language" = x
26517 then
26518 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26519 exit 1
26520 fi
26521
26522 ok=:
26523 case ",$enable_languages," in
26524 *,$lang_alias,*) ;;
26525 *)
26526 for i in $subdir_requires; do
26527 test -f "${srcdir}/$i/config-lang.in" && continue
26528 ok=false
26529 break
26530 done
26531 ;;
26532 esac
26533 $ok || continue
26534
26535 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26536 if test -f $srcdir/$gcc_subdir/lang.opt; then
26537 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26538 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26539 fi
26540 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26541 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26542 fi
26543 all_languages="$all_languages $language"
26544 all_compilers="$all_compilers $compilers"
26545 all_outputs="$all_outputs $outputs"
26546 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26547 case ",$enable_languages," in
26548 *,lto,*)
26549
26550 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26551
26552 enable_lto=yes
26553
26554 ;;
26555 *) ;;
26556 esac
26557 done
26558
26559 # Pick up gtfiles for c
26560 gtfiles=
26561 . ${srcdir}/c-config-lang.in
26562 all_gtfiles="$all_gtfiles [c] $gtfiles"
26563
26564 check_languages=
26565 for language in $all_selected_languages
26566 do
26567 check_languages="$check_languages check-$language"
26568 done
26569
26570 # We link each language in with a set of hooks, reached indirectly via
26571 # lang.${target}. Only do so for selected languages.
26572
26573 rm -f Make-hooks
26574 touch Make-hooks
26575 target_list="all.cross start.encap rest.encap tags \
26576 install-common install-man install-info install-pdf install-html dvi \
26577 pdf html uninstall info man srcextra srcman srcinfo \
26578 mostlyclean clean distclean maintainer-clean install-plugin"
26579
26580 for t in $target_list
26581 do
26582 x=
26583 for lang in $all_selected_languages
26584 do
26585 x="$x $lang.$t"
26586 done
26587 echo "lang.$t: $x" >> Make-hooks
26588 done
26589
26590 # --------
26591 # Option include files
26592 # --------
26593
26594 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26595 option_includes="option-includes.mk"
26596
26597
26598 # --------
26599 # UNSORTED
26600 # --------
26601
26602 # Create .gdbinit.
26603
26604 echo "dir ." > .gdbinit
26605 echo "dir ${srcdir}" >> .gdbinit
26606 if test x$gdb_needs_out_file_path = xyes
26607 then
26608 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26609 fi
26610 if test "x$subdirs" != x; then
26611 for s in $subdirs
26612 do
26613 echo "dir ${srcdir}/$s" >> .gdbinit
26614 done
26615 fi
26616 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26617
26618 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26619
26620
26621
26622 # Find a directory in which to install a shared libgcc.
26623
26624 # Check whether --enable-version-specific-runtime-libs was given.
26625 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26626 enableval=$enable_version_specific_runtime_libs;
26627 fi
26628
26629
26630
26631 # Check whether --with-slibdir was given.
26632 if test "${with_slibdir+set}" = set; then :
26633 withval=$with_slibdir; slibdir="$with_slibdir"
26634 else
26635 if test "${enable_version_specific_runtime_libs+set}" = set; then
26636 slibdir='$(libsubdir)'
26637 elif test "$host" != "$target"; then
26638 slibdir='$(build_tooldir)/lib'
26639 else
26640 slibdir='$(libdir)'
26641 fi
26642 fi
26643
26644
26645
26646 # Substitute configuration variables
26647
26648
26649
26650
26651
26652
26653
26654
26655
26656
26657
26658
26659
26660
26661
26662
26663
26664
26665
26666
26667
26668
26669
26670
26671
26672
26673
26674
26675
26676
26677
26678
26679
26680
26681
26682
26683
26684
26685
26686
26687
26688
26689
26690
26691
26692
26693
26694
26695
26696
26697
26698
26699
26700
26701
26702
26703
26704
26705
26706
26707
26708
26709
26710
26711
26712
26713 # Echo link setup.
26714 if test x${build} = x${host} ; then
26715 if test x${host} = x${target} ; then
26716 echo "Links are now set up to build a native compiler for ${target}." 1>&2
26717 else
26718 echo "Links are now set up to build a cross-compiler" 1>&2
26719 echo " from ${host} to ${target}." 1>&2
26720 fi
26721 else
26722 if test x${host} = x${target} ; then
26723 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
26724 echo " for ${target}." 1>&2
26725 else
26726 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
26727 echo " from ${host} to ${target}." 1>&2
26728 fi
26729 fi
26730
26731
26732
26733
26734
26735
26736
26737
26738
26739 if test "x${CLOOGLIBS}" != "x" ; then
26740
26741 $as_echo "#define HAVE_cloog 1" >>confdefs.h
26742
26743 fi
26744
26745 # Check for plugin support
26746 # Check whether --enable-plugin was given.
26747 if test "${enable_plugin+set}" = set; then :
26748 enableval=$enable_plugin; enable_plugin=$enableval
26749 else
26750 enable_plugin=yes; default_plugin=yes
26751 fi
26752
26753
26754 pluginlibs=
26755
26756 case "${host}" in
26757 *-*-darwin*)
26758 if test x$build = x$host; then
26759 export_sym_check="nm${exeext} -g"
26760 elif test x$host = x$target; then
26761 export_sym_check="$gcc_cv_nm -g"
26762 else
26763 export_sym_check=
26764 fi
26765 ;;
26766 *)
26767 if test x$build = x$host; then
26768 export_sym_check="objdump${exeext} -T"
26769 elif test x$host = x$target; then
26770 export_sym_check="$gcc_cv_objdump -T"
26771 else
26772 export_sym_check=
26773 fi
26774 ;;
26775 esac
26776
26777 if test x"$enable_plugin" = x"yes"; then
26778
26779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
26780 $as_echo_n "checking for exported symbols... " >&6; }
26781 if test "x$export_sym_check" != x; then
26782 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
26783 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
26784 if $export_sym_check conftest | grep foobar > /dev/null; then
26785 : # No need to use a flag
26786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26787 $as_echo "yes" >&6; }
26788 else
26789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26790 $as_echo "yes" >&6; }
26791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
26792 $as_echo_n "checking for -rdynamic... " >&6; }
26793 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
26794 if $export_sym_check conftest | grep foobar > /dev/null; then
26795 plugin_rdynamic=yes
26796 pluginlibs="-rdynamic"
26797 else
26798 plugin_rdynamic=no
26799 enable_plugin=no
26800 fi
26801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
26802 $as_echo "$plugin_rdynamic" >&6; }
26803 fi
26804 else
26805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
26806 $as_echo "unable to check" >&6; }
26807 fi
26808
26809 # Check -ldl
26810 saved_LIBS="$LIBS"
26811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
26812 $as_echo_n "checking for library containing dlopen... " >&6; }
26813 if test "${ac_cv_search_dlopen+set}" = set; then :
26814 $as_echo_n "(cached) " >&6
26815 else
26816 ac_func_search_save_LIBS=$LIBS
26817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26818 /* end confdefs.h. */
26819
26820 /* Override any GCC internal prototype to avoid an error.
26821 Use char because int might match the return type of a GCC
26822 builtin and then its argument prototype would still apply. */
26823 #ifdef __cplusplus
26824 extern "C"
26825 #endif
26826 char dlopen ();
26827 int
26828 main ()
26829 {
26830 return dlopen ();
26831 ;
26832 return 0;
26833 }
26834 _ACEOF
26835 for ac_lib in '' dl; do
26836 if test -z "$ac_lib"; then
26837 ac_res="none required"
26838 else
26839 ac_res=-l$ac_lib
26840 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26841 fi
26842 if ac_fn_c_try_link "$LINENO"; then :
26843 ac_cv_search_dlopen=$ac_res
26844 fi
26845 rm -f core conftest.err conftest.$ac_objext \
26846 conftest$ac_exeext
26847 if test "${ac_cv_search_dlopen+set}" = set; then :
26848 break
26849 fi
26850 done
26851 if test "${ac_cv_search_dlopen+set}" = set; then :
26852
26853 else
26854 ac_cv_search_dlopen=no
26855 fi
26856 rm conftest.$ac_ext
26857 LIBS=$ac_func_search_save_LIBS
26858 fi
26859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
26860 $as_echo "$ac_cv_search_dlopen" >&6; }
26861 ac_res=$ac_cv_search_dlopen
26862 if test "$ac_res" != no; then :
26863 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26864
26865 fi
26866
26867 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
26868 pluginlibs="$pluginlibs -ldl"
26869 fi
26870 LIBS="$saved_LIBS"
26871
26872 # Check that we can build shared objects with -fPIC -shared
26873 saved_LDFLAGS="$LDFLAGS"
26874 saved_CFLAGS="$CFLAGS"
26875 case "${host}" in
26876 *-*-darwin*)
26877 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
26878 CFLAGS="$CFLAGS -fPIC"
26879 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
26880 ;;
26881 *)
26882 CFLAGS="$CFLAGS -fPIC"
26883 LDFLAGS="$LDFLAGS -fPIC -shared"
26884 ;;
26885 esac
26886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
26887 $as_echo_n "checking for -fPIC -shared... " >&6; }
26888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26889 /* end confdefs.h. */
26890 extern int X;
26891 int
26892 main ()
26893 {
26894 return X == 0;
26895 ;
26896 return 0;
26897 }
26898 _ACEOF
26899 if ac_fn_c_try_link "$LINENO"; then :
26900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26901 $as_echo "yes" >&6; }; have_pic_shared=yes
26902 else
26903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26904 $as_echo "no" >&6; }; have_pic_shared=no
26905 fi
26906 rm -f core conftest.err conftest.$ac_objext \
26907 conftest$ac_exeext conftest.$ac_ext
26908 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
26909 pluginlibs=
26910 enable_plugin=no
26911 fi
26912 LDFLAGS="$saved_LDFLAGS"
26913 CFLAGS="$saved_CFLAGS"
26914
26915 # If plugin support had been requested but not available, fail.
26916 if test x"$enable_plugin" = x"no" ; then
26917 if test x"$default_plugin" != x"yes"; then
26918 as_fn_error "
26919 Building GCC with plugin support requires a host that supports
26920 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
26921 fi
26922 fi
26923 fi
26924
26925
26926
26927 if test x"$enable_plugin" = x"yes"; then
26928
26929 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
26930
26931 fi
26932
26933
26934 # Check whether --enable-libquadmath-support was given.
26935 if test "${enable_libquadmath_support+set}" = set; then :
26936 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
26937 else
26938 ENABLE_LIBQUADMATH_SUPPORT=yes
26939 fi
26940
26941 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
26942
26943 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
26944
26945 fi
26946
26947
26948 # Specify what hash style to use by default.
26949
26950 # Check whether --with-linker-hash-style was given.
26951 if test "${with_linker_hash_style+set}" = set; then :
26952 withval=$with_linker_hash_style; case x"$withval" in
26953 xsysv)
26954 LINKER_HASH_STYLE=sysv
26955 ;;
26956 xgnu)
26957 LINKER_HASH_STYLE=gnu
26958 ;;
26959 xboth)
26960 LINKER_HASH_STYLE=both
26961 ;;
26962 *)
26963 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
26964 ;;
26965 esac
26966 else
26967 LINKER_HASH_STYLE=''
26968 fi
26969
26970 if test x"${LINKER_HASH_STYLE}" != x; then
26971
26972 cat >>confdefs.h <<_ACEOF
26973 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
26974 _ACEOF
26975
26976 fi
26977
26978 # Configure the subdirectories
26979 # AC_CONFIG_SUBDIRS($subdirs)
26980
26981 # Create the Makefile
26982 # and configure language subdirectories
26983 ac_config_files="$ac_config_files $all_outputs"
26984
26985
26986 ac_config_commands="$ac_config_commands default"
26987
26988 cat >confcache <<\_ACEOF
26989 # This file is a shell script that caches the results of configure
26990 # tests run on this system so they can be shared between configure
26991 # scripts and configure runs, see configure's option --config-cache.
26992 # It is not useful on other systems. If it contains results you don't
26993 # want to keep, you may remove or edit it.
26994 #
26995 # config.status only pays attention to the cache file if you give it
26996 # the --recheck option to rerun configure.
26997 #
26998 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26999 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27000 # following values.
27001
27002 _ACEOF
27003
27004 # The following way of writing the cache mishandles newlines in values,
27005 # but we know of no workaround that is simple, portable, and efficient.
27006 # So, we kill variables containing newlines.
27007 # Ultrix sh set writes to stderr and can't be redirected directly,
27008 # and sets the high bit in the cache file unless we assign to the vars.
27009 (
27010 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27011 eval ac_val=\$$ac_var
27012 case $ac_val in #(
27013 *${as_nl}*)
27014 case $ac_var in #(
27015 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27016 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27017 esac
27018 case $ac_var in #(
27019 _ | IFS | as_nl) ;; #(
27020 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27021 *) { eval $ac_var=; unset $ac_var;} ;;
27022 esac ;;
27023 esac
27024 done
27025
27026 (set) 2>&1 |
27027 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27028 *${as_nl}ac_space=\ *)
27029 # `set' does not quote correctly, so add quotes: double-quote
27030 # substitution turns \\\\ into \\, and sed turns \\ into \.
27031 sed -n \
27032 "s/'/'\\\\''/g;
27033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27034 ;; #(
27035 *)
27036 # `set' quotes correctly as required by POSIX, so do not add quotes.
27037 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27038 ;;
27039 esac |
27040 sort
27041 ) |
27042 sed '
27043 /^ac_cv_env_/b end
27044 t clear
27045 :clear
27046 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27047 t end
27048 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27049 :end' >>confcache
27050 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27051 if test -w "$cache_file"; then
27052 test "x$cache_file" != "x/dev/null" &&
27053 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27054 $as_echo "$as_me: updating cache $cache_file" >&6;}
27055 cat confcache >$cache_file
27056 else
27057 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27058 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27059 fi
27060 fi
27061 rm -f confcache
27062
27063 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27064 # Let make expand exec_prefix.
27065 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27066
27067 DEFS=-DHAVE_CONFIG_H
27068
27069 ac_libobjs=
27070 ac_ltlibobjs=
27071 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27072 # 1. Remove the extension, and $U if already installed.
27073 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27074 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27075 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27076 # will be set to the directory where LIBOBJS objects are built.
27077 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27078 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27079 done
27080 LIBOBJS=$ac_libobjs
27081
27082 LTLIBOBJS=$ac_ltlibobjs
27083
27084
27085
27086
27087 : ${CONFIG_STATUS=./config.status}
27088 ac_write_fail=0
27089 ac_clean_files_save=$ac_clean_files
27090 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27091 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27092 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27093 as_write_fail=0
27094 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27095 #! $SHELL
27096 # Generated by $as_me.
27097 # Run this file to recreate the current configuration.
27098 # Compiler output produced by configure, useful for debugging
27099 # configure, is in config.log if it exists.
27100
27101 debug=false
27102 ac_cs_recheck=false
27103 ac_cs_silent=false
27104
27105 SHELL=\${CONFIG_SHELL-$SHELL}
27106 export SHELL
27107 _ASEOF
27108 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27109 ## -------------------- ##
27110 ## M4sh Initialization. ##
27111 ## -------------------- ##
27112
27113 # Be more Bourne compatible
27114 DUALCASE=1; export DUALCASE # for MKS sh
27115 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27116 emulate sh
27117 NULLCMD=:
27118 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27119 # is contrary to our usage. Disable this feature.
27120 alias -g '${1+"$@"}'='"$@"'
27121 setopt NO_GLOB_SUBST
27122 else
27123 case `(set -o) 2>/dev/null` in #(
27124 *posix*) :
27125 set -o posix ;; #(
27126 *) :
27127 ;;
27128 esac
27129 fi
27130
27131
27132 as_nl='
27133 '
27134 export as_nl
27135 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27136 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27137 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27138 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27139 # Prefer a ksh shell builtin over an external printf program on Solaris,
27140 # but without wasting forks for bash or zsh.
27141 if test -z "$BASH_VERSION$ZSH_VERSION" \
27142 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27143 as_echo='print -r --'
27144 as_echo_n='print -rn --'
27145 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27146 as_echo='printf %s\n'
27147 as_echo_n='printf %s'
27148 else
27149 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27150 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27151 as_echo_n='/usr/ucb/echo -n'
27152 else
27153 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27154 as_echo_n_body='eval
27155 arg=$1;
27156 case $arg in #(
27157 *"$as_nl"*)
27158 expr "X$arg" : "X\\(.*\\)$as_nl";
27159 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27160 esac;
27161 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27162 '
27163 export as_echo_n_body
27164 as_echo_n='sh -c $as_echo_n_body as_echo'
27165 fi
27166 export as_echo_body
27167 as_echo='sh -c $as_echo_body as_echo'
27168 fi
27169
27170 # The user is always right.
27171 if test "${PATH_SEPARATOR+set}" != set; then
27172 PATH_SEPARATOR=:
27173 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27174 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27175 PATH_SEPARATOR=';'
27176 }
27177 fi
27178
27179
27180 # IFS
27181 # We need space, tab and new line, in precisely that order. Quoting is
27182 # there to prevent editors from complaining about space-tab.
27183 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27184 # splitting by setting IFS to empty value.)
27185 IFS=" "" $as_nl"
27186
27187 # Find who we are. Look in the path if we contain no directory separator.
27188 case $0 in #((
27189 *[\\/]* ) as_myself=$0 ;;
27190 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27191 for as_dir in $PATH
27192 do
27193 IFS=$as_save_IFS
27194 test -z "$as_dir" && as_dir=.
27195 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27196 done
27197 IFS=$as_save_IFS
27198
27199 ;;
27200 esac
27201 # We did not find ourselves, most probably we were run as `sh COMMAND'
27202 # in which case we are not to be found in the path.
27203 if test "x$as_myself" = x; then
27204 as_myself=$0
27205 fi
27206 if test ! -f "$as_myself"; then
27207 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27208 exit 1
27209 fi
27210
27211 # Unset variables that we do not need and which cause bugs (e.g. in
27212 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27213 # suppresses any "Segmentation fault" message there. '((' could
27214 # trigger a bug in pdksh 5.2.14.
27215 for as_var in BASH_ENV ENV MAIL MAILPATH
27216 do eval test x\${$as_var+set} = xset \
27217 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27218 done
27219 PS1='$ '
27220 PS2='> '
27221 PS4='+ '
27222
27223 # NLS nuisances.
27224 LC_ALL=C
27225 export LC_ALL
27226 LANGUAGE=C
27227 export LANGUAGE
27228
27229 # CDPATH.
27230 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27231
27232
27233 # as_fn_error ERROR [LINENO LOG_FD]
27234 # ---------------------------------
27235 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27236 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27237 # script with status $?, using 1 if that was 0.
27238 as_fn_error ()
27239 {
27240 as_status=$?; test $as_status -eq 0 && as_status=1
27241 if test "$3"; then
27242 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27243 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27244 fi
27245 $as_echo "$as_me: error: $1" >&2
27246 as_fn_exit $as_status
27247 } # as_fn_error
27248
27249
27250 # as_fn_set_status STATUS
27251 # -----------------------
27252 # Set $? to STATUS, without forking.
27253 as_fn_set_status ()
27254 {
27255 return $1
27256 } # as_fn_set_status
27257
27258 # as_fn_exit STATUS
27259 # -----------------
27260 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27261 as_fn_exit ()
27262 {
27263 set +e
27264 as_fn_set_status $1
27265 exit $1
27266 } # as_fn_exit
27267
27268 # as_fn_unset VAR
27269 # ---------------
27270 # Portably unset VAR.
27271 as_fn_unset ()
27272 {
27273 { eval $1=; unset $1;}
27274 }
27275 as_unset=as_fn_unset
27276 # as_fn_append VAR VALUE
27277 # ----------------------
27278 # Append the text in VALUE to the end of the definition contained in VAR. Take
27279 # advantage of any shell optimizations that allow amortized linear growth over
27280 # repeated appends, instead of the typical quadratic growth present in naive
27281 # implementations.
27282 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27283 eval 'as_fn_append ()
27284 {
27285 eval $1+=\$2
27286 }'
27287 else
27288 as_fn_append ()
27289 {
27290 eval $1=\$$1\$2
27291 }
27292 fi # as_fn_append
27293
27294 # as_fn_arith ARG...
27295 # ------------------
27296 # Perform arithmetic evaluation on the ARGs, and store the result in the
27297 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27298 # must be portable across $(()) and expr.
27299 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27300 eval 'as_fn_arith ()
27301 {
27302 as_val=$(( $* ))
27303 }'
27304 else
27305 as_fn_arith ()
27306 {
27307 as_val=`expr "$@" || test $? -eq 1`
27308 }
27309 fi # as_fn_arith
27310
27311
27312 if expr a : '\(a\)' >/dev/null 2>&1 &&
27313 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27314 as_expr=expr
27315 else
27316 as_expr=false
27317 fi
27318
27319 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27320 as_basename=basename
27321 else
27322 as_basename=false
27323 fi
27324
27325 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27326 as_dirname=dirname
27327 else
27328 as_dirname=false
27329 fi
27330
27331 as_me=`$as_basename -- "$0" ||
27332 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27333 X"$0" : 'X\(//\)$' \| \
27334 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27335 $as_echo X/"$0" |
27336 sed '/^.*\/\([^/][^/]*\)\/*$/{
27337 s//\1/
27338 q
27339 }
27340 /^X\/\(\/\/\)$/{
27341 s//\1/
27342 q
27343 }
27344 /^X\/\(\/\).*/{
27345 s//\1/
27346 q
27347 }
27348 s/.*/./; q'`
27349
27350 # Avoid depending upon Character Ranges.
27351 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27352 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27353 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27354 as_cr_digits='0123456789'
27355 as_cr_alnum=$as_cr_Letters$as_cr_digits
27356
27357 ECHO_C= ECHO_N= ECHO_T=
27358 case `echo -n x` in #(((((
27359 -n*)
27360 case `echo 'xy\c'` in
27361 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27362 xy) ECHO_C='\c';;
27363 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27364 ECHO_T=' ';;
27365 esac;;
27366 *)
27367 ECHO_N='-n';;
27368 esac
27369
27370 rm -f conf$$ conf$$.exe conf$$.file
27371 if test -d conf$$.dir; then
27372 rm -f conf$$.dir/conf$$.file
27373 else
27374 rm -f conf$$.dir
27375 mkdir conf$$.dir 2>/dev/null
27376 fi
27377 if (echo >conf$$.file) 2>/dev/null; then
27378 if ln -s conf$$.file conf$$ 2>/dev/null; then
27379 as_ln_s='ln -s'
27380 # ... but there are two gotchas:
27381 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27382 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27383 # In both cases, we have to default to `cp -p'.
27384 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27385 as_ln_s='cp -p'
27386 elif ln conf$$.file conf$$ 2>/dev/null; then
27387 as_ln_s=ln
27388 else
27389 as_ln_s='cp -p'
27390 fi
27391 else
27392 as_ln_s='cp -p'
27393 fi
27394 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27395 rmdir conf$$.dir 2>/dev/null
27396
27397
27398 # as_fn_mkdir_p
27399 # -------------
27400 # Create "$as_dir" as a directory, including parents if necessary.
27401 as_fn_mkdir_p ()
27402 {
27403
27404 case $as_dir in #(
27405 -*) as_dir=./$as_dir;;
27406 esac
27407 test -d "$as_dir" || eval $as_mkdir_p || {
27408 as_dirs=
27409 while :; do
27410 case $as_dir in #(
27411 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27412 *) as_qdir=$as_dir;;
27413 esac
27414 as_dirs="'$as_qdir' $as_dirs"
27415 as_dir=`$as_dirname -- "$as_dir" ||
27416 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27417 X"$as_dir" : 'X\(//\)[^/]' \| \
27418 X"$as_dir" : 'X\(//\)$' \| \
27419 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27420 $as_echo X"$as_dir" |
27421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27422 s//\1/
27423 q
27424 }
27425 /^X\(\/\/\)[^/].*/{
27426 s//\1/
27427 q
27428 }
27429 /^X\(\/\/\)$/{
27430 s//\1/
27431 q
27432 }
27433 /^X\(\/\).*/{
27434 s//\1/
27435 q
27436 }
27437 s/.*/./; q'`
27438 test -d "$as_dir" && break
27439 done
27440 test -z "$as_dirs" || eval "mkdir $as_dirs"
27441 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27442
27443
27444 } # as_fn_mkdir_p
27445 if mkdir -p . 2>/dev/null; then
27446 as_mkdir_p='mkdir -p "$as_dir"'
27447 else
27448 test -d ./-p && rmdir ./-p
27449 as_mkdir_p=false
27450 fi
27451
27452 if test -x / >/dev/null 2>&1; then
27453 as_test_x='test -x'
27454 else
27455 if ls -dL / >/dev/null 2>&1; then
27456 as_ls_L_option=L
27457 else
27458 as_ls_L_option=
27459 fi
27460 as_test_x='
27461 eval sh -c '\''
27462 if test -d "$1"; then
27463 test -d "$1/.";
27464 else
27465 case $1 in #(
27466 -*)set "./$1";;
27467 esac;
27468 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27469 ???[sx]*):;;*)false;;esac;fi
27470 '\'' sh
27471 '
27472 fi
27473 as_executable_p=$as_test_x
27474
27475 # Sed expression to map a string onto a valid CPP name.
27476 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27477
27478 # Sed expression to map a string onto a valid variable name.
27479 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27480
27481
27482 exec 6>&1
27483 ## ----------------------------------- ##
27484 ## Main body of $CONFIG_STATUS script. ##
27485 ## ----------------------------------- ##
27486 _ASEOF
27487 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27488
27489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27490 # Save the log message, to keep $0 and so on meaningful, and to
27491 # report actual input values of CONFIG_FILES etc. instead of their
27492 # values after options handling.
27493 ac_log="
27494 This file was extended by $as_me, which was
27495 generated by GNU Autoconf 2.64. Invocation command line was
27496
27497 CONFIG_FILES = $CONFIG_FILES
27498 CONFIG_HEADERS = $CONFIG_HEADERS
27499 CONFIG_LINKS = $CONFIG_LINKS
27500 CONFIG_COMMANDS = $CONFIG_COMMANDS
27501 $ $0 $@
27502
27503 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27504 "
27505
27506 _ACEOF
27507
27508 case $ac_config_files in *"
27509 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27510 esac
27511
27512 case $ac_config_headers in *"
27513 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27514 esac
27515
27516
27517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27518 # Files that config.status was made for.
27519 config_files="$ac_config_files"
27520 config_headers="$ac_config_headers"
27521 config_commands="$ac_config_commands"
27522
27523 _ACEOF
27524
27525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27526 ac_cs_usage="\
27527 \`$as_me' instantiates files and other configuration actions
27528 from templates according to the current configuration. Unless the files
27529 and actions are specified as TAGs, all are instantiated by default.
27530
27531 Usage: $0 [OPTION]... [TAG]...
27532
27533 -h, --help print this help, then exit
27534 -V, --version print version number and configuration settings, then exit
27535 -q, --quiet, --silent
27536 do not print progress messages
27537 -d, --debug don't remove temporary files
27538 --recheck update $as_me by reconfiguring in the same conditions
27539 --file=FILE[:TEMPLATE]
27540 instantiate the configuration file FILE
27541 --header=FILE[:TEMPLATE]
27542 instantiate the configuration header FILE
27543
27544 Configuration files:
27545 $config_files
27546
27547 Configuration headers:
27548 $config_headers
27549
27550 Configuration commands:
27551 $config_commands
27552
27553 Report bugs to the package provider."
27554
27555 _ACEOF
27556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27557 ac_cs_version="\\
27558 config.status
27559 configured by $0, generated by GNU Autoconf 2.64,
27560 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27561
27562 Copyright (C) 2009 Free Software Foundation, Inc.
27563 This config.status script is free software; the Free Software Foundation
27564 gives unlimited permission to copy, distribute and modify it."
27565
27566 ac_pwd='$ac_pwd'
27567 srcdir='$srcdir'
27568 AWK='$AWK'
27569 test -n "\$AWK" || AWK=awk
27570 _ACEOF
27571
27572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27573 # The default lists apply if the user does not specify any file.
27574 ac_need_defaults=:
27575 while test $# != 0
27576 do
27577 case $1 in
27578 --*=*)
27579 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27580 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27581 ac_shift=:
27582 ;;
27583 *)
27584 ac_option=$1
27585 ac_optarg=$2
27586 ac_shift=shift
27587 ;;
27588 esac
27589
27590 case $ac_option in
27591 # Handling of the options.
27592 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27593 ac_cs_recheck=: ;;
27594 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27595 $as_echo "$ac_cs_version"; exit ;;
27596 --debug | --debu | --deb | --de | --d | -d )
27597 debug=: ;;
27598 --file | --fil | --fi | --f )
27599 $ac_shift
27600 case $ac_optarg in
27601 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27602 esac
27603 as_fn_append CONFIG_FILES " '$ac_optarg'"
27604 ac_need_defaults=false;;
27605 --header | --heade | --head | --hea )
27606 $ac_shift
27607 case $ac_optarg in
27608 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27609 esac
27610 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27611 ac_need_defaults=false;;
27612 --he | --h)
27613 # Conflict between --help and --header
27614 as_fn_error "ambiguous option: \`$1'
27615 Try \`$0 --help' for more information.";;
27616 --help | --hel | -h )
27617 $as_echo "$ac_cs_usage"; exit ;;
27618 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27619 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27620 ac_cs_silent=: ;;
27621
27622 # This is an error.
27623 -*) as_fn_error "unrecognized option: \`$1'
27624 Try \`$0 --help' for more information." ;;
27625
27626 *) as_fn_append ac_config_targets " $1"
27627 ac_need_defaults=false ;;
27628
27629 esac
27630 shift
27631 done
27632
27633 ac_configure_extra_args=
27634
27635 if $ac_cs_silent; then
27636 exec 6>/dev/null
27637 ac_configure_extra_args="$ac_configure_extra_args --silent"
27638 fi
27639
27640 _ACEOF
27641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27642 if \$ac_cs_recheck; then
27643 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27644 shift
27645 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27646 CONFIG_SHELL='$SHELL'
27647 export CONFIG_SHELL
27648 exec "\$@"
27649 fi
27650
27651 _ACEOF
27652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27653 exec 5>>config.log
27654 {
27655 echo
27656 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27657 ## Running $as_me. ##
27658 _ASBOX
27659 $as_echo "$ac_log"
27660 } >&5
27661
27662 _ACEOF
27663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27664 #
27665 # INIT-COMMANDS
27666 #
27667 subdirs='$subdirs'
27668
27669 _ACEOF
27670
27671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27672
27673 # Handling of arguments.
27674 for ac_config_target in $ac_config_targets
27675 do
27676 case $ac_config_target in
27677 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
27678 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
27679 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27680 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
27681 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
27682 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27683
27684 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27685 esac
27686 done
27687
27688
27689 # If the user did not use the arguments to specify the items to instantiate,
27690 # then the envvar interface is used. Set only those that are not.
27691 # We use the long form for the default assignment because of an extremely
27692 # bizarre bug on SunOS 4.1.3.
27693 if $ac_need_defaults; then
27694 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27695 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27696 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27697 fi
27698
27699 # Have a temporary directory for convenience. Make it in the build tree
27700 # simply because there is no reason against having it here, and in addition,
27701 # creating and moving files from /tmp can sometimes cause problems.
27702 # Hook for its removal unless debugging.
27703 # Note that there is a small window in which the directory will not be cleaned:
27704 # after its creation but before its name has been assigned to `$tmp'.
27705 $debug ||
27706 {
27707 tmp=
27708 trap 'exit_status=$?
27709 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27710 ' 0
27711 trap 'as_fn_exit 1' 1 2 13 15
27712 }
27713 # Create a (secure) tmp directory for tmp files.
27714
27715 {
27716 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27717 test -n "$tmp" && test -d "$tmp"
27718 } ||
27719 {
27720 tmp=./conf$$-$RANDOM
27721 (umask 077 && mkdir "$tmp")
27722 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27723
27724 # Set up the scripts for CONFIG_FILES section.
27725 # No need to generate them if there are no CONFIG_FILES.
27726 # This happens for instance with `./config.status config.h'.
27727 if test -n "$CONFIG_FILES"; then
27728
27729 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27730 ac_cs_awk_getline=:
27731 ac_cs_awk_pipe_init=
27732 ac_cs_awk_read_file='
27733 while ((getline aline < (F[key])) > 0)
27734 print(aline)
27735 close(F[key])'
27736 ac_cs_awk_pipe_fini=
27737 else
27738 ac_cs_awk_getline=false
27739 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27740 ac_cs_awk_read_file='
27741 print "|#_!!_#|"
27742 print "cat " F[key] " &&"
27743 '$ac_cs_awk_pipe_init
27744 # The final `:' finishes the AND list.
27745 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27746 fi
27747 ac_cr=`echo X | tr X '\015'`
27748 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27749 # But we know of no other shell where ac_cr would be empty at this
27750 # point, so we can use a bashism as a fallback.
27751 if test "x$ac_cr" = x; then
27752 eval ac_cr=\$\'\\r\'
27753 fi
27754 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27755 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27756 ac_cs_awk_cr='\r'
27757 else
27758 ac_cs_awk_cr=$ac_cr
27759 fi
27760
27761 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27762 _ACEOF
27763
27764 # Create commands to substitute file output variables.
27765 {
27766 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27767 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27768 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27769 echo "_ACAWK" &&
27770 echo "_ACEOF"
27771 } >conf$$files.sh &&
27772 . ./conf$$files.sh ||
27773 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27774 rm -f conf$$files.sh
27775
27776 {
27777 echo "cat >conf$$subs.awk <<_ACEOF" &&
27778 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27779 echo "_ACEOF"
27780 } >conf$$subs.sh ||
27781 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27782 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27783 ac_delim='%!_!# '
27784 for ac_last_try in false false false false false :; do
27785 . ./conf$$subs.sh ||
27786 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27787
27788 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27789 if test $ac_delim_n = $ac_delim_num; then
27790 break
27791 elif $ac_last_try; then
27792 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27793 else
27794 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27795 fi
27796 done
27797 rm -f conf$$subs.sh
27798
27799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27800 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27801 _ACEOF
27802 sed -n '
27803 h
27804 s/^/S["/; s/!.*/"]=/
27805 p
27806 g
27807 s/^[^!]*!//
27808 :repl
27809 t repl
27810 s/'"$ac_delim"'$//
27811 t delim
27812 :nl
27813 h
27814 s/\(.\{148\}\).*/\1/
27815 t more1
27816 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27817 p
27818 n
27819 b repl
27820 :more1
27821 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27822 p
27823 g
27824 s/.\{148\}//
27825 t nl
27826 :delim
27827 h
27828 s/\(.\{148\}\).*/\1/
27829 t more2
27830 s/["\\]/\\&/g; s/^/"/; s/$/"/
27831 p
27832 b
27833 :more2
27834 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27835 p
27836 g
27837 s/.\{148\}//
27838 t delim
27839 ' <conf$$subs.awk | sed '
27840 /^[^""]/{
27841 N
27842 s/\n//
27843 }
27844 ' >>$CONFIG_STATUS || ac_write_fail=1
27845 rm -f conf$$subs.awk
27846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27847 _ACAWK
27848 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27849 for (key in S) S_is_set[key] = 1
27850 FS = "\a"
27851 \$ac_cs_awk_pipe_init
27852 }
27853 {
27854 line = $ 0
27855 nfields = split(line, field, "@")
27856 substed = 0
27857 len = length(field[1])
27858 for (i = 2; i < nfields; i++) {
27859 key = field[i]
27860 keylen = length(key)
27861 if (S_is_set[key]) {
27862 value = S[key]
27863 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27864 len += length(value) + length(field[++i])
27865 substed = 1
27866 } else
27867 len += 1 + keylen
27868 }
27869 if (nfields == 3 && !substed) {
27870 key = field[2]
27871 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27872 \$ac_cs_awk_read_file
27873 next
27874 }
27875 }
27876 print line
27877 }
27878 \$ac_cs_awk_pipe_fini
27879 _ACAWK
27880 _ACEOF
27881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27882 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27883 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27884 else
27885 cat
27886 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27887 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27888 _ACEOF
27889
27890 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27891 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27892 # trailing colons and then remove the whole line if VPATH becomes empty
27893 # (actually we leave an empty line to preserve line numbers).
27894 if test "x$srcdir" = x.; then
27895 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27896 s/:*\$(srcdir):*/:/
27897 s/:*\${srcdir}:*/:/
27898 s/:*@srcdir@:*/:/
27899 s/^\([^=]*=[ ]*\):*/\1/
27900 s/:*$//
27901 s/^[^=]*=[ ]*$//
27902 }'
27903 fi
27904
27905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27906 fi # test -n "$CONFIG_FILES"
27907
27908 # Set up the scripts for CONFIG_HEADERS section.
27909 # No need to generate them if there are no CONFIG_HEADERS.
27910 # This happens for instance with `./config.status Makefile'.
27911 if test -n "$CONFIG_HEADERS"; then
27912 cat >"$tmp/defines.awk" <<\_ACAWK ||
27913 BEGIN {
27914 _ACEOF
27915
27916 # Transform confdefs.h into an awk script `defines.awk', embedded as
27917 # here-document in config.status, that substitutes the proper values into
27918 # config.h.in to produce config.h.
27919
27920 # Create a delimiter string that does not exist in confdefs.h, to ease
27921 # handling of long lines.
27922 ac_delim='%!_!# '
27923 for ac_last_try in false false :; do
27924 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27925 if test -z "$ac_t"; then
27926 break
27927 elif $ac_last_try; then
27928 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27929 else
27930 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27931 fi
27932 done
27933
27934 # For the awk script, D is an array of macro values keyed by name,
27935 # likewise P contains macro parameters if any. Preserve backslash
27936 # newline sequences.
27937
27938 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27939 sed -n '
27940 s/.\{148\}/&'"$ac_delim"'/g
27941 t rset
27942 :rset
27943 s/^[ ]*#[ ]*define[ ][ ]*/ /
27944 t def
27945 d
27946 :def
27947 s/\\$//
27948 t bsnl
27949 s/["\\]/\\&/g
27950 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27951 D["\1"]=" \3"/p
27952 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27953 d
27954 :bsnl
27955 s/["\\]/\\&/g
27956 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27957 D["\1"]=" \3\\\\\\n"\\/p
27958 t cont
27959 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27960 t cont
27961 d
27962 :cont
27963 n
27964 s/.\{148\}/&'"$ac_delim"'/g
27965 t clear
27966 :clear
27967 s/\\$//
27968 t bsnlc
27969 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27970 d
27971 :bsnlc
27972 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27973 b cont
27974 ' <confdefs.h | sed '
27975 s/'"$ac_delim"'/"\\\
27976 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27977
27978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27979 for (key in D) D_is_set[key] = 1
27980 FS = "\a"
27981 }
27982 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27983 line = \$ 0
27984 split(line, arg, " ")
27985 if (arg[1] == "#") {
27986 defundef = arg[2]
27987 mac1 = arg[3]
27988 } else {
27989 defundef = substr(arg[1], 2)
27990 mac1 = arg[2]
27991 }
27992 split(mac1, mac2, "(") #)
27993 macro = mac2[1]
27994 prefix = substr(line, 1, index(line, defundef) - 1)
27995 if (D_is_set[macro]) {
27996 # Preserve the white space surrounding the "#".
27997 print prefix "define", macro P[macro] D[macro]
27998 next
27999 } else {
28000 # Replace #undef with comments. This is necessary, for example,
28001 # in the case of _POSIX_SOURCE, which is predefined and required
28002 # on some systems where configure will not decide to define it.
28003 if (defundef == "undef") {
28004 print "/*", prefix defundef, macro, "*/"
28005 next
28006 }
28007 }
28008 }
28009 { print }
28010 _ACAWK
28011 _ACEOF
28012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28013 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28014 fi # test -n "$CONFIG_HEADERS"
28015
28016
28017 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28018 shift
28019 for ac_tag
28020 do
28021 case $ac_tag in
28022 :[FHLC]) ac_mode=$ac_tag; continue;;
28023 esac
28024 case $ac_mode$ac_tag in
28025 :[FHL]*:*);;
28026 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28027 :[FH]-) ac_tag=-:-;;
28028 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28029 esac
28030 ac_save_IFS=$IFS
28031 IFS=:
28032 set x $ac_tag
28033 IFS=$ac_save_IFS
28034 shift
28035 ac_file=$1
28036 shift
28037
28038 case $ac_mode in
28039 :L) ac_source=$1;;
28040 :[FH])
28041 ac_file_inputs=
28042 for ac_f
28043 do
28044 case $ac_f in
28045 -) ac_f="$tmp/stdin";;
28046 *) # Look for the file first in the build tree, then in the source tree
28047 # (if the path is not absolute). The absolute path cannot be DOS-style,
28048 # because $ac_f cannot contain `:'.
28049 test -f "$ac_f" ||
28050 case $ac_f in
28051 [\\/$]*) false;;
28052 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28053 esac ||
28054 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28055 esac
28056 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28057 as_fn_append ac_file_inputs " '$ac_f'"
28058 done
28059
28060 # Let's still pretend it is `configure' which instantiates (i.e., don't
28061 # use $as_me), people would be surprised to read:
28062 # /* config.h. Generated by config.status. */
28063 configure_input='Generated from '`
28064 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28065 `' by configure.'
28066 if test x"$ac_file" != x-; then
28067 configure_input="$ac_file. $configure_input"
28068 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28069 $as_echo "$as_me: creating $ac_file" >&6;}
28070 fi
28071 # Neutralize special characters interpreted by sed in replacement strings.
28072 case $configure_input in #(
28073 *\&* | *\|* | *\\* )
28074 ac_sed_conf_input=`$as_echo "$configure_input" |
28075 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28076 *) ac_sed_conf_input=$configure_input;;
28077 esac
28078
28079 case $ac_tag in
28080 *:-:* | *:-) cat >"$tmp/stdin" \
28081 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28082 esac
28083 ;;
28084 esac
28085
28086 ac_dir=`$as_dirname -- "$ac_file" ||
28087 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28088 X"$ac_file" : 'X\(//\)[^/]' \| \
28089 X"$ac_file" : 'X\(//\)$' \| \
28090 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28091 $as_echo X"$ac_file" |
28092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28093 s//\1/
28094 q
28095 }
28096 /^X\(\/\/\)[^/].*/{
28097 s//\1/
28098 q
28099 }
28100 /^X\(\/\/\)$/{
28101 s//\1/
28102 q
28103 }
28104 /^X\(\/\).*/{
28105 s//\1/
28106 q
28107 }
28108 s/.*/./; q'`
28109 as_dir="$ac_dir"; as_fn_mkdir_p
28110 ac_builddir=.
28111
28112 case "$ac_dir" in
28113 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28114 *)
28115 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28116 # A ".." for each directory in $ac_dir_suffix.
28117 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28118 case $ac_top_builddir_sub in
28119 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28120 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28121 esac ;;
28122 esac
28123 ac_abs_top_builddir=$ac_pwd
28124 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28125 # for backward compatibility:
28126 ac_top_builddir=$ac_top_build_prefix
28127
28128 case $srcdir in
28129 .) # We are building in place.
28130 ac_srcdir=.
28131 ac_top_srcdir=$ac_top_builddir_sub
28132 ac_abs_top_srcdir=$ac_pwd ;;
28133 [\\/]* | ?:[\\/]* ) # Absolute name.
28134 ac_srcdir=$srcdir$ac_dir_suffix;
28135 ac_top_srcdir=$srcdir
28136 ac_abs_top_srcdir=$srcdir ;;
28137 *) # Relative name.
28138 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28139 ac_top_srcdir=$ac_top_build_prefix$srcdir
28140 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28141 esac
28142 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28143
28144
28145 case $ac_mode in
28146 :F)
28147 #
28148 # CONFIG_FILE
28149 #
28150
28151 _ACEOF
28152
28153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28154 # If the template does not know about datarootdir, expand it.
28155 # FIXME: This hack should be removed a few years after 2.60.
28156 ac_datarootdir_hack=; ac_datarootdir_seen=
28157 ac_sed_dataroot='
28158 /datarootdir/ {
28159 p
28160 q
28161 }
28162 /@datadir@/p
28163 /@docdir@/p
28164 /@infodir@/p
28165 /@localedir@/p
28166 /@mandir@/p'
28167 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28168 *datarootdir*) ac_datarootdir_seen=yes;;
28169 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28171 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28172 _ACEOF
28173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28174 ac_datarootdir_hack='
28175 s&@datadir@&$datadir&g
28176 s&@docdir@&$docdir&g
28177 s&@infodir@&$infodir&g
28178 s&@localedir@&$localedir&g
28179 s&@mandir@&$mandir&g
28180 s&\\\${datarootdir}&$datarootdir&g' ;;
28181 esac
28182 _ACEOF
28183
28184 # Neutralize VPATH when `$srcdir' = `.'.
28185 # Shell code in configure.ac might set extrasub.
28186 # FIXME: do we really want to maintain this feature?
28187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28188 ac_sed_extra="$ac_vpsub
28189 $extrasub
28190 _ACEOF
28191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28192 :t
28193 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28194 s|@configure_input@|$ac_sed_conf_input|;t t
28195 s&@top_builddir@&$ac_top_builddir_sub&;t t
28196 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28197 s&@srcdir@&$ac_srcdir&;t t
28198 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28199 s&@top_srcdir@&$ac_top_srcdir&;t t
28200 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28201 s&@builddir@&$ac_builddir&;t t
28202 s&@abs_builddir@&$ac_abs_builddir&;t t
28203 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28204 $ac_datarootdir_hack
28205 "
28206 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28207 if $ac_cs_awk_getline; then
28208 $AWK -f "$tmp/subs.awk"
28209 else
28210 $AWK -f "$tmp/subs.awk" | $SHELL
28211 fi >$tmp/out \
28212 || as_fn_error "could not create $ac_file" "$LINENO" 5
28213
28214 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28215 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28216 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28218 which seems to be undefined. Please make sure it is defined." >&5
28219 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28220 which seems to be undefined. Please make sure it is defined." >&2;}
28221
28222 rm -f "$tmp/stdin"
28223 case $ac_file in
28224 -) cat "$tmp/out" && rm -f "$tmp/out";;
28225 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28226 esac \
28227 || as_fn_error "could not create $ac_file" "$LINENO" 5
28228 ;;
28229 :H)
28230 #
28231 # CONFIG_HEADER
28232 #
28233 if test x"$ac_file" != x-; then
28234 {
28235 $as_echo "/* $configure_input */" \
28236 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28237 } >"$tmp/config.h" \
28238 || as_fn_error "could not create $ac_file" "$LINENO" 5
28239 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28240 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28241 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28242 else
28243 rm -f "$ac_file"
28244 mv "$tmp/config.h" "$ac_file" \
28245 || as_fn_error "could not create $ac_file" "$LINENO" 5
28246 fi
28247 else
28248 $as_echo "/* $configure_input */" \
28249 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28250 || as_fn_error "could not create -" "$LINENO" 5
28251 fi
28252 ;;
28253
28254 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28255 $as_echo "$as_me: executing $ac_file commands" >&6;}
28256 ;;
28257 esac
28258
28259
28260 case $ac_file$ac_mode in
28261 "as":F) chmod +x as ;;
28262 "collect-ld":F) chmod +x collect-ld ;;
28263 "nm":F) chmod +x nm ;;
28264 "default":C)
28265 case ${CONFIG_HEADERS} in
28266 *auto-host.h:config.in*)
28267 echo > cstamp-h ;;
28268 esac
28269 # Make sure all the subdirs exist.
28270 for d in $subdirs doc build common c-family
28271 do
28272 test -d $d || mkdir $d
28273 done
28274 ;;
28275
28276 esac
28277 done # for ac_tag
28278
28279
28280 as_fn_exit 0
28281 _ACEOF
28282 ac_clean_files=$ac_clean_files_save
28283
28284 test $ac_write_fail = 0 ||
28285 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28286
28287
28288 # configure is writing to config.log, and then calls config.status.
28289 # config.status does its own redirection, appending to config.log.
28290 # Unfortunately, on DOS this fails, as config.log is still kept open
28291 # by configure, so config.status won't be able to write to it; its
28292 # output is simply discarded. So we exec the FD to /dev/null,
28293 # effectively closing config.log, so it can be properly (re)opened and
28294 # appended to by config.status. When coming back to configure, we
28295 # need to make the FD available again.
28296 if test "$no_create" != yes; then
28297 ac_cs_success=:
28298 ac_config_status_args=
28299 test "$silent" = yes &&
28300 ac_config_status_args="$ac_config_status_args --quiet"
28301 exec 5>/dev/null
28302 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28303 exec 5>>config.log
28304 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28305 # would make configure fail if this is the last instruction.
28306 $ac_cs_success || as_fn_exit $?
28307 fi
28308 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28310 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28311 fi
28312
28313