]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
Move crtstuff support to toplevel libgcc
[thirdparty/gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 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_objs
649 extra_headers_list
650 user_headers_inc_next_post
651 user_headers_inc_next_pre
652 extra_gcc_objs
653 TM_MULTILIB_EXCEPTIONS_CONFIG
654 TM_MULTILIB_CONFIG
655 TM_ENDIAN_CONFIG
656 tmake_file
657 xmake_file
658 cpp_install_dir
659 check_languages
660 build_file_translate
661 build_xm_defines
662 build_xm_include_list
663 build_xm_file_list
664 build_install_headers_dir
665 build_exeext
666 all_selected_languages
667 all_languages
668 all_lang_makefrags
669 all_gtfiles
670 all_compilers
671 srcdir
672 subdirs
673 dollar
674 gcc_tooldir
675 enable_lto
676 MAINT
677 zlibinc
678 zlibdir
679 HOST_LIBS
680 GGC
681 libgcc_visibility
682 gcc_cv_readelf
683 gcc_cv_objdump
684 ORIGINAL_NM_FOR_TARGET
685 gcc_cv_nm
686 ORIGINAL_LD_FOR_TARGET
687 ORIGINAL_PLUGIN_LD_FOR_TARGET
688 gcc_cv_ld
689 ORIGINAL_AS_FOR_TARGET
690 gcc_cv_as
691 enable_fast_install
692 objdir
693 OTOOL64
694 OTOOL
695 LIPO
696 NMEDIT
697 DSYMUTIL
698 STRIP
699 OBJDUMP
700 ac_ct_DUMPBIN
701 DUMPBIN
702 LD
703 FGREP
704 SED
705 LIBTOOL
706 collect2
707 STMP_FIXINC
708 BUILD_LDFLAGS
709 BUILD_CFLAGS
710 CC_FOR_BUILD
711 inhibit_libc
712 SYSTEM_HEADER_DIR
713 ALL
714 CROSS
715 CATOBJEXT
716 GENCAT
717 INSTOBJEXT
718 DATADIRNAME
719 CATALOGS
720 POSUB
721 GMSGFMT
722 XGETTEXT
723 INCINTL
724 LIBINTL_DEP
725 LIBINTL
726 USE_NLS
727 extra_opt_files
728 extra_modes_file
729 gthread_flags
730 NATIVE_SYSTEM_HEADER_DIR
731 objext
732 manext
733 LIBICONV_DEP
734 LTLIBICONV
735 LIBICONV
736 LDEXP_LIB
737 EXTRA_GCC_LIBS
738 GNAT_LIBEXC
739 COLLECT2_LIBS
740 CXXCPP
741 AR
742 NM
743 BISON
744 FLEX
745 GENERATED_MANPAGES
746 BUILD_INFO
747 MAKEINFO
748 have_mktemp_command
749 make_compare_target
750 INSTALL_DATA
751 INSTALL_PROGRAM
752 INSTALL
753 ranlib_flags
754 RANLIB
755 LN
756 LN_S
757 AWK
758 SET_MAKE
759 REPORT_BUGS_TEXI
760 REPORT_BUGS_TO
761 PKGVERSION
762 CONFIGURE_SPECS
763 CROSS_SYSTEM_HEADER_DIR
764 TARGET_SYSTEM_ROOT_DEFINE
765 TARGET_SYSTEM_ROOT
766 SYSROOT_CFLAGS_FOR_TARGET
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 PICFLAG_FOR_TARGET
788 OUTPUT_OPTION
789 NO_MINUS_C_MINUS_O
790 GNATMAKE
791 GNATBIND
792 ac_ct_CXX
793 CXXFLAGS
794 CXX
795 OBJEXT
796 EXEEXT
797 ac_ct_CC
798 CPPFLAGS
799 LDFLAGS
800 CFLAGS
801 CC
802 GENINSRC
803 target_subdir
804 host_subdir
805 build_subdir
806 build_libsubdir
807 target_noncanonical
808 target_os
809 target_vendor
810 target_cpu
811 target
812 host_os
813 host_vendor
814 host_cpu
815 host
816 build_os
817 build_vendor
818 build_cpu
819 build
820 target_alias
821 host_alias
822 build_alias
823 LIBS
824 ECHO_T
825 ECHO_N
826 ECHO_C
827 DEFS
828 mandir
829 localedir
830 libdir
831 psdir
832 pdfdir
833 dvidir
834 htmldir
835 infodir
836 docdir
837 oldincludedir
838 includedir
839 localstatedir
840 sharedstatedir
841 sysconfdir
842 datadir
843 datarootdir
844 libexecdir
845 sbindir
846 bindir
847 program_transform_name
848 prefix
849 exec_prefix
850 PACKAGE_URL
851 PACKAGE_BUGREPORT
852 PACKAGE_STRING
853 PACKAGE_VERSION
854 PACKAGE_TARNAME
855 PACKAGE_NAME
856 PATH_SEPARATOR
857 SHELL'
858 ac_subst_files='option_includes
859 language_hooks'
860 ac_user_opts='
861 enable_option_checking
862 with_build_libsubdir
863 with_local_prefix
864 with_gxx_include_dir
865 with_cpp_install_dir
866 enable_generated_files_in_srcdir
867 with_gnu_ld
868 with_ld
869 with_demangler_in_ld
870 with_gnu_as
871 with_as
872 enable_largefile
873 enable_werror_always
874 enable_checking
875 enable_coverage
876 enable_gather_detailed_mem_stats
877 enable_build_with_cxx
878 with_stabs
879 enable_multilib
880 enable___cxa_atexit
881 enable_decimal_float
882 enable_fixed_point
883 enable_threads
884 enable_tls
885 enable_objc_gc
886 with_dwarf2
887 enable_shared
888 with_native_system_header_dir
889 with_build_sysroot
890 with_sysroot
891 with_specs
892 with_pkgversion
893 with_bugurl
894 enable_languages
895 with_multilib_list
896 enable_rpath
897 with_libiconv_prefix
898 enable_initfini_array
899 enable_sjlj_exceptions
900 enable_secureplt
901 enable_leading_mingw64_underscores
902 enable_cld
903 enable_frame_pointer
904 enable_win32_registry
905 enable_static
906 with_pic
907 enable_fast_install
908 enable_libtool_lock
909 with_plugin_ld
910 enable_gnu_indirect_function
911 enable_comdat
912 enable_gnu_unique_object
913 enable_linker_build_id
914 with_long_double_128
915 with_gc
916 with_system_zlib
917 enable_maintainer_mode
918 enable_version_specific_runtime_libs
919 enable_plugin
920 enable_libquadmath_support
921 with_linker_hash_style
922 '
923 ac_precious_vars='build_alias
924 host_alias
925 target_alias
926 CC
927 CFLAGS
928 LDFLAGS
929 LIBS
930 CPPFLAGS
931 CXX
932 CXXFLAGS
933 CCC
934 CPP
935 CXXCPP
936 GMPLIBS
937 GMPINC
938 PPLLIBS
939 PPLINC
940 CLOOGLIBS
941 CLOOGINC'
942
943
944 # Initialize some variables set by options.
945 ac_init_help=
946 ac_init_version=false
947 ac_unrecognized_opts=
948 ac_unrecognized_sep=
949 # The variables have the same names as the options, with
950 # dashes changed to underlines.
951 cache_file=/dev/null
952 exec_prefix=NONE
953 no_create=
954 no_recursion=
955 prefix=NONE
956 program_prefix=NONE
957 program_suffix=NONE
958 program_transform_name=s,x,x,
959 silent=
960 site=
961 srcdir=
962 verbose=
963 x_includes=NONE
964 x_libraries=NONE
965
966 # Installation directory options.
967 # These are left unexpanded so users can "make install exec_prefix=/foo"
968 # and all the variables that are supposed to be based on exec_prefix
969 # by default will actually change.
970 # Use braces instead of parens because sh, perl, etc. also accept them.
971 # (The list follows the same order as the GNU Coding Standards.)
972 bindir='${exec_prefix}/bin'
973 sbindir='${exec_prefix}/sbin'
974 libexecdir='${exec_prefix}/libexec'
975 datarootdir='${prefix}/share'
976 datadir='${datarootdir}'
977 sysconfdir='${prefix}/etc'
978 sharedstatedir='${prefix}/com'
979 localstatedir='${prefix}/var'
980 includedir='${prefix}/include'
981 oldincludedir='/usr/include'
982 docdir='${datarootdir}/doc/${PACKAGE}'
983 infodir='${datarootdir}/info'
984 htmldir='${docdir}'
985 dvidir='${docdir}'
986 pdfdir='${docdir}'
987 psdir='${docdir}'
988 libdir='${exec_prefix}/lib'
989 localedir='${datarootdir}/locale'
990 mandir='${datarootdir}/man'
991
992 ac_prev=
993 ac_dashdash=
994 for ac_option
995 do
996 # If the previous option needs an argument, assign it.
997 if test -n "$ac_prev"; then
998 eval $ac_prev=\$ac_option
999 ac_prev=
1000 continue
1001 fi
1002
1003 case $ac_option in
1004 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1005 *) ac_optarg=yes ;;
1006 esac
1007
1008 # Accept the important Cygnus configure options, so we can diagnose typos.
1009
1010 case $ac_dashdash$ac_option in
1011 --)
1012 ac_dashdash=yes ;;
1013
1014 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1015 ac_prev=bindir ;;
1016 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1017 bindir=$ac_optarg ;;
1018
1019 -build | --build | --buil | --bui | --bu)
1020 ac_prev=build_alias ;;
1021 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1022 build_alias=$ac_optarg ;;
1023
1024 -cache-file | --cache-file | --cache-fil | --cache-fi \
1025 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1026 ac_prev=cache_file ;;
1027 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1028 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1029 cache_file=$ac_optarg ;;
1030
1031 --config-cache | -C)
1032 cache_file=config.cache ;;
1033
1034 -datadir | --datadir | --datadi | --datad)
1035 ac_prev=datadir ;;
1036 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1037 datadir=$ac_optarg ;;
1038
1039 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1040 | --dataroo | --dataro | --datar)
1041 ac_prev=datarootdir ;;
1042 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1043 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1044 datarootdir=$ac_optarg ;;
1045
1046 -disable-* | --disable-*)
1047 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1048 # Reject names that are not valid shell variable names.
1049 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050 as_fn_error "invalid feature name: $ac_useropt"
1051 ac_useropt_orig=$ac_useropt
1052 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053 case $ac_user_opts in
1054 *"
1055 "enable_$ac_useropt"
1056 "*) ;;
1057 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1058 ac_unrecognized_sep=', ';;
1059 esac
1060 eval enable_$ac_useropt=no ;;
1061
1062 -docdir | --docdir | --docdi | --doc | --do)
1063 ac_prev=docdir ;;
1064 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1065 docdir=$ac_optarg ;;
1066
1067 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1068 ac_prev=dvidir ;;
1069 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1070 dvidir=$ac_optarg ;;
1071
1072 -enable-* | --enable-*)
1073 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076 as_fn_error "invalid feature name: $ac_useropt"
1077 ac_useropt_orig=$ac_useropt
1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1080 *"
1081 "enable_$ac_useropt"
1082 "*) ;;
1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1084 ac_unrecognized_sep=', ';;
1085 esac
1086 eval enable_$ac_useropt=\$ac_optarg ;;
1087
1088 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1089 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1090 | --exec | --exe | --ex)
1091 ac_prev=exec_prefix ;;
1092 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1093 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1094 | --exec=* | --exe=* | --ex=*)
1095 exec_prefix=$ac_optarg ;;
1096
1097 -gas | --gas | --ga | --g)
1098 # Obsolete; use --with-gas.
1099 with_gas=yes ;;
1100
1101 -help | --help | --hel | --he | -h)
1102 ac_init_help=long ;;
1103 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1104 ac_init_help=recursive ;;
1105 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1106 ac_init_help=short ;;
1107
1108 -host | --host | --hos | --ho)
1109 ac_prev=host_alias ;;
1110 -host=* | --host=* | --hos=* | --ho=*)
1111 host_alias=$ac_optarg ;;
1112
1113 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1114 ac_prev=htmldir ;;
1115 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1116 | --ht=*)
1117 htmldir=$ac_optarg ;;
1118
1119 -includedir | --includedir | --includedi | --included | --include \
1120 | --includ | --inclu | --incl | --inc)
1121 ac_prev=includedir ;;
1122 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1123 | --includ=* | --inclu=* | --incl=* | --inc=*)
1124 includedir=$ac_optarg ;;
1125
1126 -infodir | --infodir | --infodi | --infod | --info | --inf)
1127 ac_prev=infodir ;;
1128 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1129 infodir=$ac_optarg ;;
1130
1131 -libdir | --libdir | --libdi | --libd)
1132 ac_prev=libdir ;;
1133 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1134 libdir=$ac_optarg ;;
1135
1136 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1137 | --libexe | --libex | --libe)
1138 ac_prev=libexecdir ;;
1139 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1140 | --libexe=* | --libex=* | --libe=*)
1141 libexecdir=$ac_optarg ;;
1142
1143 -localedir | --localedir | --localedi | --localed | --locale)
1144 ac_prev=localedir ;;
1145 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1146 localedir=$ac_optarg ;;
1147
1148 -localstatedir | --localstatedir | --localstatedi | --localstated \
1149 | --localstate | --localstat | --localsta | --localst | --locals)
1150 ac_prev=localstatedir ;;
1151 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1152 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1153 localstatedir=$ac_optarg ;;
1154
1155 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1156 ac_prev=mandir ;;
1157 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1158 mandir=$ac_optarg ;;
1159
1160 -nfp | --nfp | --nf)
1161 # Obsolete; use --without-fp.
1162 with_fp=no ;;
1163
1164 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1165 | --no-cr | --no-c | -n)
1166 no_create=yes ;;
1167
1168 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1169 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1170 no_recursion=yes ;;
1171
1172 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1173 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1174 | --oldin | --oldi | --old | --ol | --o)
1175 ac_prev=oldincludedir ;;
1176 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1177 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1178 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1179 oldincludedir=$ac_optarg ;;
1180
1181 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1182 ac_prev=prefix ;;
1183 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1184 prefix=$ac_optarg ;;
1185
1186 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1187 | --program-pre | --program-pr | --program-p)
1188 ac_prev=program_prefix ;;
1189 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1190 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1191 program_prefix=$ac_optarg ;;
1192
1193 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1194 | --program-suf | --program-su | --program-s)
1195 ac_prev=program_suffix ;;
1196 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1197 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1198 program_suffix=$ac_optarg ;;
1199
1200 -program-transform-name | --program-transform-name \
1201 | --program-transform-nam | --program-transform-na \
1202 | --program-transform-n | --program-transform- \
1203 | --program-transform | --program-transfor \
1204 | --program-transfo | --program-transf \
1205 | --program-trans | --program-tran \
1206 | --progr-tra | --program-tr | --program-t)
1207 ac_prev=program_transform_name ;;
1208 -program-transform-name=* | --program-transform-name=* \
1209 | --program-transform-nam=* | --program-transform-na=* \
1210 | --program-transform-n=* | --program-transform-=* \
1211 | --program-transform=* | --program-transfor=* \
1212 | --program-transfo=* | --program-transf=* \
1213 | --program-trans=* | --program-tran=* \
1214 | --progr-tra=* | --program-tr=* | --program-t=*)
1215 program_transform_name=$ac_optarg ;;
1216
1217 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1218 ac_prev=pdfdir ;;
1219 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1220 pdfdir=$ac_optarg ;;
1221
1222 -psdir | --psdir | --psdi | --psd | --ps)
1223 ac_prev=psdir ;;
1224 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1225 psdir=$ac_optarg ;;
1226
1227 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1228 | -silent | --silent | --silen | --sile | --sil)
1229 silent=yes ;;
1230
1231 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232 ac_prev=sbindir ;;
1233 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234 | --sbi=* | --sb=*)
1235 sbindir=$ac_optarg ;;
1236
1237 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1238 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1239 | --sharedst | --shareds | --shared | --share | --shar \
1240 | --sha | --sh)
1241 ac_prev=sharedstatedir ;;
1242 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1243 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1244 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245 | --sha=* | --sh=*)
1246 sharedstatedir=$ac_optarg ;;
1247
1248 -site | --site | --sit)
1249 ac_prev=site ;;
1250 -site=* | --site=* | --sit=*)
1251 site=$ac_optarg ;;
1252
1253 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254 ac_prev=srcdir ;;
1255 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256 srcdir=$ac_optarg ;;
1257
1258 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1259 | --syscon | --sysco | --sysc | --sys | --sy)
1260 ac_prev=sysconfdir ;;
1261 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1262 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1263 sysconfdir=$ac_optarg ;;
1264
1265 -target | --target | --targe | --targ | --tar | --ta | --t)
1266 ac_prev=target_alias ;;
1267 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1268 target_alias=$ac_optarg ;;
1269
1270 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1271 verbose=yes ;;
1272
1273 -version | --version | --versio | --versi | --vers | -V)
1274 ac_init_version=: ;;
1275
1276 -with-* | --with-*)
1277 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1280 as_fn_error "invalid package name: $ac_useropt"
1281 ac_useropt_orig=$ac_useropt
1282 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283 case $ac_user_opts in
1284 *"
1285 "with_$ac_useropt"
1286 "*) ;;
1287 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1288 ac_unrecognized_sep=', ';;
1289 esac
1290 eval with_$ac_useropt=\$ac_optarg ;;
1291
1292 -without-* | --without-*)
1293 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296 as_fn_error "invalid package name: $ac_useropt"
1297 ac_useropt_orig=$ac_useropt
1298 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1300 *"
1301 "with_$ac_useropt"
1302 "*) ;;
1303 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1304 ac_unrecognized_sep=', ';;
1305 esac
1306 eval with_$ac_useropt=no ;;
1307
1308 --x)
1309 # Obsolete; use --with-x.
1310 with_x=yes ;;
1311
1312 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1313 | --x-incl | --x-inc | --x-in | --x-i)
1314 ac_prev=x_includes ;;
1315 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1316 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1317 x_includes=$ac_optarg ;;
1318
1319 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1320 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1321 ac_prev=x_libraries ;;
1322 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1323 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1324 x_libraries=$ac_optarg ;;
1325
1326 -*) as_fn_error "unrecognized option: \`$ac_option'
1327 Try \`$0 --help' for more information."
1328 ;;
1329
1330 *=*)
1331 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1332 # Reject names that are not valid shell variable names.
1333 case $ac_envvar in #(
1334 '' | [0-9]* | *[!_$as_cr_alnum]* )
1335 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1336 esac
1337 eval $ac_envvar=\$ac_optarg
1338 export $ac_envvar ;;
1339
1340 *)
1341 # FIXME: should be removed in autoconf 3.0.
1342 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1343 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1344 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1345 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1346 ;;
1347
1348 esac
1349 done
1350
1351 if test -n "$ac_prev"; then
1352 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1353 as_fn_error "missing argument to $ac_option"
1354 fi
1355
1356 if test -n "$ac_unrecognized_opts"; then
1357 case $enable_option_checking in
1358 no) ;;
1359 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1360 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1361 esac
1362 fi
1363
1364 # Check all directory arguments for consistency.
1365 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1366 datadir sysconfdir sharedstatedir localstatedir includedir \
1367 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1368 libdir localedir mandir
1369 do
1370 eval ac_val=\$$ac_var
1371 # Remove trailing slashes.
1372 case $ac_val in
1373 */ )
1374 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1375 eval $ac_var=\$ac_val;;
1376 esac
1377 # Be sure to have absolute directory names.
1378 case $ac_val in
1379 [\\/$]* | ?:[\\/]* ) continue;;
1380 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1381 esac
1382 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1383 done
1384
1385 # There might be people who depend on the old broken behavior: `$host'
1386 # used to hold the argument of --host etc.
1387 # FIXME: To remove some day.
1388 build=$build_alias
1389 host=$host_alias
1390 target=$target_alias
1391
1392 # FIXME: To remove some day.
1393 if test "x$host_alias" != x; then
1394 if test "x$build_alias" = x; then
1395 cross_compiling=maybe
1396 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1397 If a cross compiler is detected then cross compile mode will be used." >&2
1398 elif test "x$build_alias" != "x$host_alias"; then
1399 cross_compiling=yes
1400 fi
1401 fi
1402
1403 ac_tool_prefix=
1404 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1405
1406 test "$silent" = yes && exec 6>/dev/null
1407
1408
1409 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1410 ac_ls_di=`ls -di .` &&
1411 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1412 as_fn_error "working directory cannot be determined"
1413 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1414 as_fn_error "pwd does not report name of working directory"
1415
1416
1417 # Find the source files, if location was not specified.
1418 if test -z "$srcdir"; then
1419 ac_srcdir_defaulted=yes
1420 # Try the directory containing this script, then the parent directory.
1421 ac_confdir=`$as_dirname -- "$as_myself" ||
1422 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1423 X"$as_myself" : 'X\(//\)[^/]' \| \
1424 X"$as_myself" : 'X\(//\)$' \| \
1425 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1426 $as_echo X"$as_myself" |
1427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1428 s//\1/
1429 q
1430 }
1431 /^X\(\/\/\)[^/].*/{
1432 s//\1/
1433 q
1434 }
1435 /^X\(\/\/\)$/{
1436 s//\1/
1437 q
1438 }
1439 /^X\(\/\).*/{
1440 s//\1/
1441 q
1442 }
1443 s/.*/./; q'`
1444 srcdir=$ac_confdir
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1446 srcdir=..
1447 fi
1448 else
1449 ac_srcdir_defaulted=no
1450 fi
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1452 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1453 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1454 fi
1455 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1456 ac_abs_confdir=`(
1457 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1458 pwd)`
1459 # When building in place, set srcdir=.
1460 if test "$ac_abs_confdir" = "$ac_pwd"; then
1461 srcdir=.
1462 fi
1463 # Remove unnecessary trailing slashes from srcdir.
1464 # Double slashes in file names in object file debugging info
1465 # mess up M-x gdb in Emacs.
1466 case $srcdir in
1467 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1468 esac
1469 for ac_var in $ac_precious_vars; do
1470 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_env_${ac_var}_value=\$${ac_var}
1472 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1473 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1474 done
1475
1476 #
1477 # Report the --help message.
1478 #
1479 if test "$ac_init_help" = "long"; then
1480 # Omit some internal or obsolete options to make the list less imposing.
1481 # This message is too long to be a string in the A/UX 3.1 sh.
1482 cat <<_ACEOF
1483 \`configure' configures this package to adapt to many kinds of systems.
1484
1485 Usage: $0 [OPTION]... [VAR=VALUE]...
1486
1487 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1488 VAR=VALUE. See below for descriptions of some of the useful variables.
1489
1490 Defaults for the options are specified in brackets.
1491
1492 Configuration:
1493 -h, --help display this help and exit
1494 --help=short display options specific to this package
1495 --help=recursive display the short help of all the included packages
1496 -V, --version display version information and exit
1497 -q, --quiet, --silent do not print \`checking...' messages
1498 --cache-file=FILE cache test results in FILE [disabled]
1499 -C, --config-cache alias for \`--cache-file=config.cache'
1500 -n, --no-create do not create output files
1501 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1502
1503 Installation directories:
1504 --prefix=PREFIX install architecture-independent files in PREFIX
1505 [$ac_default_prefix]
1506 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1507 [PREFIX]
1508
1509 By default, \`make install' will install all the files in
1510 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1511 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1512 for instance \`--prefix=\$HOME'.
1513
1514 For better control, use the options below.
1515
1516 Fine tuning of the installation directories:
1517 --bindir=DIR user executables [EPREFIX/bin]
1518 --sbindir=DIR system admin executables [EPREFIX/sbin]
1519 --libexecdir=DIR program executables [EPREFIX/libexec]
1520 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1521 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1522 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1523 --libdir=DIR object code libraries [EPREFIX/lib]
1524 --includedir=DIR C header files [PREFIX/include]
1525 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1526 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1527 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1528 --infodir=DIR info documentation [DATAROOTDIR/info]
1529 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1530 --mandir=DIR man documentation [DATAROOTDIR/man]
1531 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1532 --htmldir=DIR html documentation [DOCDIR]
1533 --dvidir=DIR dvi documentation [DOCDIR]
1534 --pdfdir=DIR pdf documentation [DOCDIR]
1535 --psdir=DIR ps documentation [DOCDIR]
1536 _ACEOF
1537
1538 cat <<\_ACEOF
1539
1540 Program names:
1541 --program-prefix=PREFIX prepend PREFIX to installed program names
1542 --program-suffix=SUFFIX append SUFFIX to installed program names
1543 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1544
1545 System types:
1546 --build=BUILD configure for building on BUILD [guessed]
1547 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1548 --target=TARGET configure for building compilers for TARGET [HOST]
1549 _ACEOF
1550 fi
1551
1552 if test -n "$ac_init_help"; then
1553
1554 cat <<\_ACEOF
1555
1556 Optional Features:
1557 --disable-option-checking ignore unrecognized --enable/--with options
1558 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1559 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1560 --enable-generated-files-in-srcdir
1561 put copies of generated files in source dir intended
1562 for creating source tarballs for users without
1563 texinfo bison or flex
1564 --disable-largefile omit support for large files
1565 --enable-werror-always enable -Werror despite compiler version
1566 --enable-checking[=LIST]
1567 enable expensive run-time checks. With LIST, enable
1568 only specific categories of checks. Categories are:
1569 yes,no,all,none,release. Flags are:
1570 assert,df,fold,gc,gcac,gimple,misc,
1571 rtlflag,rtl,runtime,tree,valgrind,types
1572 --enable-coverage[=LEVEL]
1573 enable compiler's code coverage collection. Use to
1574 measure compiler performance and locate unused parts
1575 of the compiler. With LEVEL, specify optimization.
1576 Values are opt, noopt, default is noopt
1577 --enable-gather-detailed-mem-stats
1578 enable detailed memory allocation stats gathering
1579 --enable-build-with-cxx build with C++ compiler instead of C compiler
1580 --enable-multilib enable library support for multiple ABIs
1581 --enable-__cxa_atexit enable __cxa_atexit for C++
1582 --enable-decimal-float={no,yes,bid,dpd}
1583 enable decimal float extension to C. Selecting 'bid'
1584 or 'dpd' choses which decimal floating point format
1585 to use
1586 --enable-fixed-point enable fixed-point arithmetic extension to C
1587 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1588 package
1589 --enable-tls enable or disable generation of tls code overriding
1590 the assembler check for tls support
1591 --enable-objc-gc enable the use of Boehm's garbage collector with the
1592 GNU Objective-C runtime
1593 --disable-shared don't provide a shared libgcc
1594 --enable-languages=LIST specify which front-ends to build
1595 --disable-rpath do not hardcode runtime library paths
1596 --enable-initfini-array use .init_array/.fini_array sections
1597 --enable-sjlj-exceptions
1598 arrange to use setjmp/longjmp exception handling
1599 --enable-secureplt enable -msecure-plt by default for PowerPC
1600 --enable-leading-mingw64-underscores
1601 enable leading underscores on 64 bit mingw targets
1602 --enable-cld enable -mcld by default for 32bit x86
1603 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1604 x86
1605 --disable-win32-registry
1606 disable lookup of installation paths in the Registry
1607 on Windows hosts
1608 --enable-win32-registry enable registry lookup (default)
1609 --enable-win32-registry=KEY
1610 use KEY instead of GCC version as the last portion
1611 of the registry key
1612 --enable-shared[=PKGS] build shared libraries [default=yes]
1613 --enable-static[=PKGS] build static libraries [default=yes]
1614 --enable-fast-install[=PKGS]
1615 optimize for fast installation [default=yes]
1616 --disable-libtool-lock avoid locking (might break parallel builds)
1617 --enable-gnu-indirect-function
1618 enable the use of the @gnu_indirect_function to
1619 glibc systems
1620 --enable-comdat enable COMDAT group support
1621 --enable-gnu-unique-object
1622 enable the use of the @gnu_unique_object ELF
1623 extension on glibc systems
1624 --enable-linker-build-id
1625 compiler will always pass --build-id to linker
1626 --enable-maintainer-mode
1627 enable make rules and dependencies not useful (and
1628 sometimes confusing) to the casual installer
1629 --enable-version-specific-runtime-libs
1630 specify that runtime libraries should be installed
1631 in a compiler-specific directory
1632 --enable-plugin enable plugin support
1633 --disable-libquadmath-support
1634 disable libquadmath support for Fortran
1635
1636 Optional Packages:
1637 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1638 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1639 --with-build-libsubdir=DIR Directory where to find libraries for build system
1640 --with-local-prefix=DIR specifies directory to put local include
1641 --with-gxx-include-dir=DIR
1642 specifies directory to put g++ header files
1643 --with-cpp-install-dir=DIR
1644 install the user visible C preprocessor in DIR
1645 (relative to PREFIX) as well as PREFIX/bin
1646 --with-gnu-ld arrange to work with GNU ld
1647 --with-ld arrange to use the specified ld (full pathname)
1648 --with-demangler-in-ld try to use demangler in GNU ld
1649 --with-gnu-as arrange to work with GNU as
1650 --with-as arrange to use the specified as (full pathname)
1651 --with-stabs arrange to use stabs instead of host debug format
1652 --with-dwarf2 force the default debug format to be DWARF 2
1653 --with-native-system-header-dir=dir
1654 use dir as the directory to look for standard
1655 system header files in. Defaults to /usr/include.
1656 --with-build-sysroot=sysroot
1657 use sysroot as the system root during the build
1658 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1659 --with-specs=SPECS add SPECS to driver command-line processing
1660 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1661 --with-bugurl=URL Direct users to URL to report a bug
1662 --with-multilib-list select multilibs (SH and x86-64 only)
1663 --with-gnu-ld assume the C compiler uses GNU ld default=no
1664 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1665 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1666 --with-pic try to use only PIC/non-PIC objects [default=use
1667 both]
1668 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1669 --with-plugin-ld=[ARG] specify the plugin linker
1670 --with-long-double-128 use 128-bit long double by default
1671 --with-gc={page,zone} choose the garbage collection mechanism to use with
1672 the compiler
1673 --with-system-zlib use installed libz
1674 --with-linker-hash-style={sysv,gnu,both}
1675 specify the linker hash style
1676
1677 Some influential environment variables:
1678 CC C compiler command
1679 CFLAGS C compiler flags
1680 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1681 nonstandard directory <lib dir>
1682 LIBS libraries to pass to the linker, e.g. -l<library>
1683 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1684 you have headers in a nonstandard directory <include dir>
1685 CXX C++ compiler command
1686 CXXFLAGS C++ compiler flags
1687 CPP C preprocessor
1688 CXXCPP C++ preprocessor
1689 GMPLIBS How to link GMP
1690 GMPINC How to find GMP include files
1691 PPLLIBS How to link PPL
1692 PPLINC How to find PPL include files
1693 CLOOGLIBS How to link CLOOG
1694 CLOOGINC How to find CLOOG include files
1695
1696 Use these variables to override the choices made by `configure' or to help
1697 it to find libraries and programs with nonstandard names/locations.
1698
1699 Report bugs to the package provider.
1700 _ACEOF
1701 ac_status=$?
1702 fi
1703
1704 if test "$ac_init_help" = "recursive"; then
1705 # If there are subdirs, report their specific --help.
1706 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1707 test -d "$ac_dir" ||
1708 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1709 continue
1710 ac_builddir=.
1711
1712 case "$ac_dir" in
1713 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1714 *)
1715 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1716 # A ".." for each directory in $ac_dir_suffix.
1717 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1718 case $ac_top_builddir_sub in
1719 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1720 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1721 esac ;;
1722 esac
1723 ac_abs_top_builddir=$ac_pwd
1724 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1725 # for backward compatibility:
1726 ac_top_builddir=$ac_top_build_prefix
1727
1728 case $srcdir in
1729 .) # We are building in place.
1730 ac_srcdir=.
1731 ac_top_srcdir=$ac_top_builddir_sub
1732 ac_abs_top_srcdir=$ac_pwd ;;
1733 [\\/]* | ?:[\\/]* ) # Absolute name.
1734 ac_srcdir=$srcdir$ac_dir_suffix;
1735 ac_top_srcdir=$srcdir
1736 ac_abs_top_srcdir=$srcdir ;;
1737 *) # Relative name.
1738 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1739 ac_top_srcdir=$ac_top_build_prefix$srcdir
1740 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1741 esac
1742 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1743
1744 cd "$ac_dir" || { ac_status=$?; continue; }
1745 # Check for guested configure.
1746 if test -f "$ac_srcdir/configure.gnu"; then
1747 echo &&
1748 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1749 elif test -f "$ac_srcdir/configure"; then
1750 echo &&
1751 $SHELL "$ac_srcdir/configure" --help=recursive
1752 else
1753 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1754 fi || ac_status=$?
1755 cd "$ac_pwd" || { ac_status=$?; break; }
1756 done
1757 fi
1758
1759 test -n "$ac_init_help" && exit $ac_status
1760 if $ac_init_version; then
1761 cat <<\_ACEOF
1762 configure
1763 generated by GNU Autoconf 2.64
1764
1765 Copyright (C) 2009 Free Software Foundation, Inc.
1766 This configure script is free software; the Free Software Foundation
1767 gives unlimited permission to copy, distribute and modify it.
1768 _ACEOF
1769 exit
1770 fi
1771
1772 ## ------------------------ ##
1773 ## Autoconf initialization. ##
1774 ## ------------------------ ##
1775
1776 # ac_fn_c_try_compile LINENO
1777 # --------------------------
1778 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1779 ac_fn_c_try_compile ()
1780 {
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 rm -f conftest.$ac_objext
1783 if { { ac_try="$ac_compile"
1784 case "(($ac_try" in
1785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786 *) ac_try_echo=$ac_try;;
1787 esac
1788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789 $as_echo "$ac_try_echo"; } >&5
1790 (eval "$ac_compile") 2>conftest.err
1791 ac_status=$?
1792 if test -s conftest.err; then
1793 grep -v '^ *+' conftest.err >conftest.er1
1794 cat conftest.er1 >&5
1795 mv -f conftest.er1 conftest.err
1796 fi
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; } && {
1799 test -z "$ac_c_werror_flag" ||
1800 test ! -s conftest.err
1801 } && test -s conftest.$ac_objext; then :
1802 ac_retval=0
1803 else
1804 $as_echo "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.$ac_ext >&5
1806
1807 ac_retval=1
1808 fi
1809 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810 return $ac_retval
1811
1812 } # ac_fn_c_try_compile
1813
1814 # ac_fn_cxx_try_compile LINENO
1815 # ----------------------------
1816 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1817 ac_fn_cxx_try_compile ()
1818 {
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 rm -f conftest.$ac_objext
1821 if { { ac_try="$ac_compile"
1822 case "(($ac_try" in
1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824 *) ac_try_echo=$ac_try;;
1825 esac
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_compile") 2>conftest.err
1829 ac_status=$?
1830 if test -s conftest.err; then
1831 grep -v '^ *+' conftest.err >conftest.er1
1832 cat conftest.er1 >&5
1833 mv -f conftest.er1 conftest.err
1834 fi
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } && {
1837 test -z "$ac_cxx_werror_flag" ||
1838 test ! -s conftest.err
1839 } && test -s conftest.$ac_objext; then :
1840 ac_retval=0
1841 else
1842 $as_echo "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.$ac_ext >&5
1844
1845 ac_retval=1
1846 fi
1847 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848 return $ac_retval
1849
1850 } # ac_fn_cxx_try_compile
1851
1852 # ac_fn_c_try_cpp LINENO
1853 # ----------------------
1854 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1855 ac_fn_c_try_cpp ()
1856 {
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 if { { ac_try="$ac_cpp conftest.$ac_ext"
1859 case "(($ac_try" in
1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861 *) ac_try_echo=$ac_try;;
1862 esac
1863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1866 ac_status=$?
1867 if test -s conftest.err; then
1868 grep -v '^ *+' conftest.err >conftest.er1
1869 cat conftest.er1 >&5
1870 mv -f conftest.er1 conftest.err
1871 fi
1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; } >/dev/null && {
1874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1875 test ! -s conftest.err
1876 }; then :
1877 ac_retval=0
1878 else
1879 $as_echo "$as_me: failed program was:" >&5
1880 sed 's/^/| /' conftest.$ac_ext >&5
1881
1882 ac_retval=1
1883 fi
1884 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1885 return $ac_retval
1886
1887 } # ac_fn_c_try_cpp
1888
1889 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1890 # -------------------------------------------------------
1891 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1892 # the include files in INCLUDES and setting the cache variable VAR
1893 # accordingly.
1894 ac_fn_c_check_header_mongrel ()
1895 {
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1901 $as_echo_n "(cached) " >&6
1902 fi
1903 eval ac_res=\$$3
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1906 else
1907 # Is the header compilable?
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1909 $as_echo_n "checking $2 usability... " >&6; }
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1912 $4
1913 #include <$2>
1914 _ACEOF
1915 if ac_fn_c_try_compile "$LINENO"; then :
1916 ac_header_compiler=yes
1917 else
1918 ac_header_compiler=no
1919 fi
1920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1922 $as_echo "$ac_header_compiler" >&6; }
1923
1924 # Is the header present?
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1926 $as_echo_n "checking $2 presence... " >&6; }
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1929 #include <$2>
1930 _ACEOF
1931 if ac_fn_c_try_cpp "$LINENO"; then :
1932 ac_header_preproc=yes
1933 else
1934 ac_header_preproc=no
1935 fi
1936 rm -f conftest.err conftest.$ac_ext
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1938 $as_echo "$ac_header_preproc" >&6; }
1939
1940 # So? What about this header?
1941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1942 yes:no: )
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1944 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1946 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1947 ;;
1948 no:yes:* )
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1950 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1952 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1954 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1956 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1958 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1959 ;;
1960 esac
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 $as_echo_n "checking for $2... " >&6; }
1963 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1964 $as_echo_n "(cached) " >&6
1965 else
1966 eval "$3=\$ac_header_compiler"
1967 fi
1968 eval ac_res=\$$3
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970 $as_echo "$ac_res" >&6; }
1971 fi
1972 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1973
1974 } # ac_fn_c_check_header_mongrel
1975
1976 # ac_fn_c_try_run LINENO
1977 # ----------------------
1978 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1979 # that executables *can* be run.
1980 ac_fn_c_try_run ()
1981 {
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 if { { ac_try="$ac_link"
1984 case "(($ac_try" in
1985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986 *) ac_try_echo=$ac_try;;
1987 esac
1988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 $as_echo "$ac_try_echo"; } >&5
1990 (eval "$ac_link") 2>&5
1991 ac_status=$?
1992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1994 { { case "(($ac_try" in
1995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996 *) ac_try_echo=$ac_try;;
1997 esac
1998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999 $as_echo "$ac_try_echo"; } >&5
2000 (eval "$ac_try") 2>&5
2001 ac_status=$?
2002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2003 test $ac_status = 0; }; }; then :
2004 ac_retval=0
2005 else
2006 $as_echo "$as_me: program exited with status $ac_status" >&5
2007 $as_echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2009
2010 ac_retval=$ac_status
2011 fi
2012 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2013 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2014 return $ac_retval
2015
2016 } # ac_fn_c_try_run
2017
2018 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2019 # -------------------------------------------------------
2020 # Tests whether HEADER exists and can be compiled using the include files in
2021 # INCLUDES, setting the cache variable VAR accordingly.
2022 ac_fn_c_check_header_compile ()
2023 {
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026 $as_echo_n "checking for $2... " >&6; }
2027 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2028 $as_echo_n "(cached) " >&6
2029 else
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2032 $4
2033 #include <$2>
2034 _ACEOF
2035 if ac_fn_c_try_compile "$LINENO"; then :
2036 eval "$3=yes"
2037 else
2038 eval "$3=no"
2039 fi
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 fi
2042 eval ac_res=\$$3
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044 $as_echo "$ac_res" >&6; }
2045 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2046
2047 } # ac_fn_c_check_header_compile
2048
2049 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2050 # --------------------------------------------
2051 # Tries to find the compile-time value of EXPR in a program that includes
2052 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2053 # computed
2054 ac_fn_c_compute_int ()
2055 {
2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057 if test "$cross_compiling" = yes; then
2058 # Depending upon the size, compute the lo and hi bounds.
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2061 $4
2062 int
2063 main ()
2064 {
2065 static int test_array [1 - 2 * !(($2) >= 0)];
2066 test_array [0] = 0
2067
2068 ;
2069 return 0;
2070 }
2071 _ACEOF
2072 if ac_fn_c_try_compile "$LINENO"; then :
2073 ac_lo=0 ac_mid=0
2074 while :; do
2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h. */
2077 $4
2078 int
2079 main ()
2080 {
2081 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2082 test_array [0] = 0
2083
2084 ;
2085 return 0;
2086 }
2087 _ACEOF
2088 if ac_fn_c_try_compile "$LINENO"; then :
2089 ac_hi=$ac_mid; break
2090 else
2091 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2092 if test $ac_lo -le $ac_mid; then
2093 ac_lo= ac_hi=
2094 break
2095 fi
2096 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2097 fi
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 done
2100 else
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2103 $4
2104 int
2105 main ()
2106 {
2107 static int test_array [1 - 2 * !(($2) < 0)];
2108 test_array [0] = 0
2109
2110 ;
2111 return 0;
2112 }
2113 _ACEOF
2114 if ac_fn_c_try_compile "$LINENO"; then :
2115 ac_hi=-1 ac_mid=-1
2116 while :; do
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2119 $4
2120 int
2121 main ()
2122 {
2123 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2124 test_array [0] = 0
2125
2126 ;
2127 return 0;
2128 }
2129 _ACEOF
2130 if ac_fn_c_try_compile "$LINENO"; then :
2131 ac_lo=$ac_mid; break
2132 else
2133 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2134 if test $ac_mid -le $ac_hi; then
2135 ac_lo= ac_hi=
2136 break
2137 fi
2138 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2139 fi
2140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2141 done
2142 else
2143 ac_lo= ac_hi=
2144 fi
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 fi
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148 # Binary search between lo and hi bounds.
2149 while test "x$ac_lo" != "x$ac_hi"; do
2150 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2153 $4
2154 int
2155 main ()
2156 {
2157 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2158 test_array [0] = 0
2159
2160 ;
2161 return 0;
2162 }
2163 _ACEOF
2164 if ac_fn_c_try_compile "$LINENO"; then :
2165 ac_hi=$ac_mid
2166 else
2167 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2168 fi
2169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 done
2171 case $ac_lo in #((
2172 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2173 '') ac_retval=1 ;;
2174 esac
2175 else
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2178 $4
2179 static long int longval () { return $2; }
2180 static unsigned long int ulongval () { return $2; }
2181 #include <stdio.h>
2182 #include <stdlib.h>
2183 int
2184 main ()
2185 {
2186
2187 FILE *f = fopen ("conftest.val", "w");
2188 if (! f)
2189 return 1;
2190 if (($2) < 0)
2191 {
2192 long int i = longval ();
2193 if (i != ($2))
2194 return 1;
2195 fprintf (f, "%ld", i);
2196 }
2197 else
2198 {
2199 unsigned long int i = ulongval ();
2200 if (i != ($2))
2201 return 1;
2202 fprintf (f, "%lu", i);
2203 }
2204 /* Do not output a trailing newline, as this causes \r\n confusion
2205 on some platforms. */
2206 return ferror (f) || fclose (f) != 0;
2207
2208 ;
2209 return 0;
2210 }
2211 _ACEOF
2212 if ac_fn_c_try_run "$LINENO"; then :
2213 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2214 else
2215 ac_retval=1
2216 fi
2217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2218 conftest.$ac_objext conftest.beam conftest.$ac_ext
2219 rm -f conftest.val
2220
2221 fi
2222 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2223 return $ac_retval
2224
2225 } # ac_fn_c_compute_int
2226
2227 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2228 # -------------------------------------------
2229 # Tests whether TYPE exists after having included INCLUDES, setting cache
2230 # variable VAR accordingly.
2231 ac_fn_c_check_type ()
2232 {
2233 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2235 $as_echo_n "checking for $2... " >&6; }
2236 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2237 $as_echo_n "(cached) " >&6
2238 else
2239 eval "$3=no"
2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2242 $4
2243 int
2244 main ()
2245 {
2246 if (sizeof ($2))
2247 return 0;
2248 ;
2249 return 0;
2250 }
2251 _ACEOF
2252 if ac_fn_c_try_compile "$LINENO"; then :
2253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2254 /* end confdefs.h. */
2255 $4
2256 int
2257 main ()
2258 {
2259 if (sizeof (($2)))
2260 return 0;
2261 ;
2262 return 0;
2263 }
2264 _ACEOF
2265 if ac_fn_c_try_compile "$LINENO"; then :
2266
2267 else
2268 eval "$3=yes"
2269 fi
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 fi
2272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273 fi
2274 eval ac_res=\$$3
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2276 $as_echo "$ac_res" >&6; }
2277 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2278
2279 } # ac_fn_c_check_type
2280
2281 # ac_fn_c_find_intX_t LINENO BITS VAR
2282 # -----------------------------------
2283 # Finds a signed integer type with width BITS, setting cache variable VAR
2284 # accordingly.
2285 ac_fn_c_find_intX_t ()
2286 {
2287 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2289 $as_echo_n "checking for int$2_t... " >&6; }
2290 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2291 $as_echo_n "(cached) " >&6
2292 else
2293 eval "$3=no"
2294 for ac_type in int$2_t 'int' 'long int' \
2295 'long long int' 'short int' 'signed char'; do
2296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h. */
2298 $ac_includes_default
2299 int
2300 main ()
2301 {
2302 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2303 test_array [0] = 0
2304
2305 ;
2306 return 0;
2307 }
2308 _ACEOF
2309 if ac_fn_c_try_compile "$LINENO"; then :
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h. */
2312 $ac_includes_default
2313 int
2314 main ()
2315 {
2316 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2317 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2318 test_array [0] = 0
2319
2320 ;
2321 return 0;
2322 }
2323 _ACEOF
2324 if ac_fn_c_try_compile "$LINENO"; then :
2325
2326 else
2327 case $ac_type in #(
2328 int$2_t) :
2329 eval "$3=yes" ;; #(
2330 *) :
2331 eval "$3=\$ac_type" ;;
2332 esac
2333 fi
2334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335 fi
2336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2337 eval as_val=\$$3
2338 if test "x$as_val" = x""no; then :
2339
2340 else
2341 break
2342 fi
2343 done
2344 fi
2345 eval ac_res=\$$3
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2347 $as_echo "$ac_res" >&6; }
2348 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2349
2350 } # ac_fn_c_find_intX_t
2351
2352 # ac_fn_c_try_link LINENO
2353 # -----------------------
2354 # Try to link conftest.$ac_ext, and return whether this succeeded.
2355 ac_fn_c_try_link ()
2356 {
2357 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2358 rm -f conftest.$ac_objext conftest$ac_exeext
2359 if { { ac_try="$ac_link"
2360 case "(($ac_try" in
2361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362 *) ac_try_echo=$ac_try;;
2363 esac
2364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2365 $as_echo "$ac_try_echo"; } >&5
2366 (eval "$ac_link") 2>conftest.err
2367 ac_status=$?
2368 if test -s conftest.err; then
2369 grep -v '^ *+' conftest.err >conftest.er1
2370 cat conftest.er1 >&5
2371 mv -f conftest.er1 conftest.err
2372 fi
2373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2374 test $ac_status = 0; } && {
2375 test -z "$ac_c_werror_flag" ||
2376 test ! -s conftest.err
2377 } && test -s conftest$ac_exeext && {
2378 test "$cross_compiling" = yes ||
2379 $as_test_x conftest$ac_exeext
2380 }; then :
2381 ac_retval=0
2382 else
2383 $as_echo "$as_me: failed program was:" >&5
2384 sed 's/^/| /' conftest.$ac_ext >&5
2385
2386 ac_retval=1
2387 fi
2388 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2389 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2390 # interfere with the next link command; also delete a directory that is
2391 # left behind by Apple's compiler. We do this before executing the actions.
2392 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2393 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2394 return $ac_retval
2395
2396 } # ac_fn_c_try_link
2397
2398 # ac_fn_c_find_uintX_t LINENO BITS VAR
2399 # ------------------------------------
2400 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2401 # accordingly.
2402 ac_fn_c_find_uintX_t ()
2403 {
2404 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2406 $as_echo_n "checking for uint$2_t... " >&6; }
2407 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2408 $as_echo_n "(cached) " >&6
2409 else
2410 eval "$3=no"
2411 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2412 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414 /* end confdefs.h. */
2415 $ac_includes_default
2416 int
2417 main ()
2418 {
2419 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2420 test_array [0] = 0
2421
2422 ;
2423 return 0;
2424 }
2425 _ACEOF
2426 if ac_fn_c_try_compile "$LINENO"; then :
2427 case $ac_type in #(
2428 uint$2_t) :
2429 eval "$3=yes" ;; #(
2430 *) :
2431 eval "$3=\$ac_type" ;;
2432 esac
2433 fi
2434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2435 eval as_val=\$$3
2436 if test "x$as_val" = x""no; then :
2437
2438 else
2439 break
2440 fi
2441 done
2442 fi
2443 eval ac_res=\$$3
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2445 $as_echo "$ac_res" >&6; }
2446 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2447
2448 } # ac_fn_c_find_uintX_t
2449
2450 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2451 # ----------------------------------------------
2452 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2453 ac_fn_c_check_header_preproc ()
2454 {
2455 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2457 $as_echo_n "checking for $2... " >&6; }
2458 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2459 $as_echo_n "(cached) " >&6
2460 else
2461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2462 /* end confdefs.h. */
2463 #include <$2>
2464 _ACEOF
2465 if ac_fn_c_try_cpp "$LINENO"; then :
2466 eval "$3=yes"
2467 else
2468 eval "$3=no"
2469 fi
2470 rm -f conftest.err conftest.$ac_ext
2471 fi
2472 eval ac_res=\$$3
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2474 $as_echo "$ac_res" >&6; }
2475 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2476
2477 } # ac_fn_c_check_header_preproc
2478
2479 # ac_fn_cxx_try_cpp LINENO
2480 # ------------------------
2481 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2482 ac_fn_cxx_try_cpp ()
2483 {
2484 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2485 if { { ac_try="$ac_cpp conftest.$ac_ext"
2486 case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2489 esac
2490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2491 $as_echo "$ac_try_echo"; } >&5
2492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2493 ac_status=$?
2494 if test -s conftest.err; then
2495 grep -v '^ *+' conftest.err >conftest.er1
2496 cat conftest.er1 >&5
2497 mv -f conftest.er1 conftest.err
2498 fi
2499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2500 test $ac_status = 0; } >/dev/null && {
2501 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2502 test ! -s conftest.err
2503 }; then :
2504 ac_retval=0
2505 else
2506 $as_echo "$as_me: failed program was:" >&5
2507 sed 's/^/| /' conftest.$ac_ext >&5
2508
2509 ac_retval=1
2510 fi
2511 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2512 return $ac_retval
2513
2514 } # ac_fn_cxx_try_cpp
2515
2516 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2517 # ------------------------------------------------
2518 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2519 ac_fn_cxx_check_header_preproc ()
2520 {
2521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2523 $as_echo_n "checking for $2... " >&6; }
2524 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2525 $as_echo_n "(cached) " >&6
2526 else
2527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2528 /* end confdefs.h. */
2529 #include <$2>
2530 _ACEOF
2531 if ac_fn_cxx_try_cpp "$LINENO"; then :
2532 eval "$3=yes"
2533 else
2534 eval "$3=no"
2535 fi
2536 rm -f conftest.err conftest.$ac_ext
2537 fi
2538 eval ac_res=\$$3
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2540 $as_echo "$ac_res" >&6; }
2541 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2542
2543 } # ac_fn_cxx_check_header_preproc
2544
2545 # ac_fn_c_check_func LINENO FUNC VAR
2546 # ----------------------------------
2547 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2548 ac_fn_c_check_func ()
2549 {
2550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2552 $as_echo_n "checking for $2... " >&6; }
2553 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2554 $as_echo_n "(cached) " >&6
2555 else
2556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2557 /* end confdefs.h. */
2558 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2560 #define $2 innocuous_$2
2561
2562 /* System header to define __stub macros and hopefully few prototypes,
2563 which can conflict with char $2 (); below.
2564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2565 <limits.h> exists even on freestanding compilers. */
2566
2567 #ifdef __STDC__
2568 # include <limits.h>
2569 #else
2570 # include <assert.h>
2571 #endif
2572
2573 #undef $2
2574
2575 /* Override any GCC internal prototype to avoid an error.
2576 Use char because int might match the return type of a GCC
2577 builtin and then its argument prototype would still apply. */
2578 #ifdef __cplusplus
2579 extern "C"
2580 #endif
2581 char $2 ();
2582 /* The GNU C library defines this for functions which it implements
2583 to always fail with ENOSYS. Some functions are actually named
2584 something starting with __ and the normal name is an alias. */
2585 #if defined __stub_$2 || defined __stub___$2
2586 choke me
2587 #endif
2588
2589 int
2590 main ()
2591 {
2592 return $2 ();
2593 ;
2594 return 0;
2595 }
2596 _ACEOF
2597 if ac_fn_c_try_link "$LINENO"; then :
2598 eval "$3=yes"
2599 else
2600 eval "$3=no"
2601 fi
2602 rm -f core conftest.err conftest.$ac_objext \
2603 conftest$ac_exeext conftest.$ac_ext
2604 fi
2605 eval ac_res=\$$3
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2607 $as_echo "$ac_res" >&6; }
2608 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2609
2610 } # ac_fn_c_check_func
2611
2612 # ac_fn_cxx_try_link LINENO
2613 # -------------------------
2614 # Try to link conftest.$ac_ext, and return whether this succeeded.
2615 ac_fn_cxx_try_link ()
2616 {
2617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2618 rm -f conftest.$ac_objext conftest$ac_exeext
2619 if { { ac_try="$ac_link"
2620 case "(($ac_try" in
2621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2622 *) ac_try_echo=$ac_try;;
2623 esac
2624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2625 $as_echo "$ac_try_echo"; } >&5
2626 (eval "$ac_link") 2>conftest.err
2627 ac_status=$?
2628 if test -s conftest.err; then
2629 grep -v '^ *+' conftest.err >conftest.er1
2630 cat conftest.er1 >&5
2631 mv -f conftest.er1 conftest.err
2632 fi
2633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2634 test $ac_status = 0; } && {
2635 test -z "$ac_cxx_werror_flag" ||
2636 test ! -s conftest.err
2637 } && test -s conftest$ac_exeext && {
2638 test "$cross_compiling" = yes ||
2639 $as_test_x conftest$ac_exeext
2640 }; then :
2641 ac_retval=0
2642 else
2643 $as_echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2645
2646 ac_retval=1
2647 fi
2648 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2649 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2650 # interfere with the next link command; also delete a directory that is
2651 # left behind by Apple's compiler. We do this before executing the actions.
2652 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2653 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2654 return $ac_retval
2655
2656 } # ac_fn_cxx_try_link
2657 cat >config.log <<_ACEOF
2658 This file contains any messages produced by compilers while
2659 running configure, to aid debugging if configure makes a mistake.
2660
2661 It was created by $as_me, which was
2662 generated by GNU Autoconf 2.64. Invocation command line was
2663
2664 $ $0 $@
2665
2666 _ACEOF
2667 exec 5>>config.log
2668 {
2669 cat <<_ASUNAME
2670 ## --------- ##
2671 ## Platform. ##
2672 ## --------- ##
2673
2674 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2675 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2676 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2677 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2678 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2679
2680 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2681 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2682
2683 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2684 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2685 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2686 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2687 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2688 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2689 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2690
2691 _ASUNAME
2692
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 for as_dir in $PATH
2695 do
2696 IFS=$as_save_IFS
2697 test -z "$as_dir" && as_dir=.
2698 $as_echo "PATH: $as_dir"
2699 done
2700 IFS=$as_save_IFS
2701
2702 } >&5
2703
2704 cat >&5 <<_ACEOF
2705
2706
2707 ## ----------- ##
2708 ## Core tests. ##
2709 ## ----------- ##
2710
2711 _ACEOF
2712
2713
2714 # Keep a trace of the command line.
2715 # Strip out --no-create and --no-recursion so they do not pile up.
2716 # Strip out --silent because we don't want to record it for future runs.
2717 # Also quote any args containing shell meta-characters.
2718 # Make two passes to allow for proper duplicate-argument suppression.
2719 ac_configure_args=
2720 ac_configure_args0=
2721 ac_configure_args1=
2722 ac_must_keep_next=false
2723 for ac_pass in 1 2
2724 do
2725 for ac_arg
2726 do
2727 case $ac_arg in
2728 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2729 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2730 | -silent | --silent | --silen | --sile | --sil)
2731 continue ;;
2732 *\'*)
2733 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2734 esac
2735 case $ac_pass in
2736 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2737 2)
2738 as_fn_append ac_configure_args1 " '$ac_arg'"
2739 if test $ac_must_keep_next = true; then
2740 ac_must_keep_next=false # Got value, back to normal.
2741 else
2742 case $ac_arg in
2743 *=* | --config-cache | -C | -disable-* | --disable-* \
2744 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2745 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2746 | -with-* | --with-* | -without-* | --without-* | --x)
2747 case "$ac_configure_args0 " in
2748 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2749 esac
2750 ;;
2751 -* ) ac_must_keep_next=true ;;
2752 esac
2753 fi
2754 as_fn_append ac_configure_args " '$ac_arg'"
2755 ;;
2756 esac
2757 done
2758 done
2759 { ac_configure_args0=; unset ac_configure_args0;}
2760 { ac_configure_args1=; unset ac_configure_args1;}
2761
2762 # When interrupted or exit'd, cleanup temporary files, and complete
2763 # config.log. We remove comments because anyway the quotes in there
2764 # would cause problems or look ugly.
2765 # WARNING: Use '\'' to represent an apostrophe within the trap.
2766 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2767 trap 'exit_status=$?
2768 # Save into config.log some information that might help in debugging.
2769 {
2770 echo
2771
2772 cat <<\_ASBOX
2773 ## ---------------- ##
2774 ## Cache variables. ##
2775 ## ---------------- ##
2776 _ASBOX
2777 echo
2778 # The following way of writing the cache mishandles newlines in values,
2779 (
2780 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2781 eval ac_val=\$$ac_var
2782 case $ac_val in #(
2783 *${as_nl}*)
2784 case $ac_var in #(
2785 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2786 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2787 esac
2788 case $ac_var in #(
2789 _ | IFS | as_nl) ;; #(
2790 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2791 *) { eval $ac_var=; unset $ac_var;} ;;
2792 esac ;;
2793 esac
2794 done
2795 (set) 2>&1 |
2796 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2797 *${as_nl}ac_space=\ *)
2798 sed -n \
2799 "s/'\''/'\''\\\\'\'''\''/g;
2800 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2801 ;; #(
2802 *)
2803 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2804 ;;
2805 esac |
2806 sort
2807 )
2808 echo
2809
2810 cat <<\_ASBOX
2811 ## ----------------- ##
2812 ## Output variables. ##
2813 ## ----------------- ##
2814 _ASBOX
2815 echo
2816 for ac_var in $ac_subst_vars
2817 do
2818 eval ac_val=\$$ac_var
2819 case $ac_val in
2820 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2821 esac
2822 $as_echo "$ac_var='\''$ac_val'\''"
2823 done | sort
2824 echo
2825
2826 if test -n "$ac_subst_files"; then
2827 cat <<\_ASBOX
2828 ## ------------------- ##
2829 ## File substitutions. ##
2830 ## ------------------- ##
2831 _ASBOX
2832 echo
2833 for ac_var in $ac_subst_files
2834 do
2835 eval ac_val=\$$ac_var
2836 case $ac_val in
2837 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2838 esac
2839 $as_echo "$ac_var='\''$ac_val'\''"
2840 done | sort
2841 echo
2842 fi
2843
2844 if test -s confdefs.h; then
2845 cat <<\_ASBOX
2846 ## ----------- ##
2847 ## confdefs.h. ##
2848 ## ----------- ##
2849 _ASBOX
2850 echo
2851 cat confdefs.h
2852 echo
2853 fi
2854 test "$ac_signal" != 0 &&
2855 $as_echo "$as_me: caught signal $ac_signal"
2856 $as_echo "$as_me: exit $exit_status"
2857 } >&5
2858 rm -f core *.core core.conftest.* &&
2859 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2860 exit $exit_status
2861 ' 0
2862 for ac_signal in 1 2 13 15; do
2863 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2864 done
2865 ac_signal=0
2866
2867 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2868 rm -f -r conftest* confdefs.h
2869
2870 $as_echo "/* confdefs.h */" > confdefs.h
2871
2872 # Predefined preprocessor variables.
2873
2874 cat >>confdefs.h <<_ACEOF
2875 #define PACKAGE_NAME "$PACKAGE_NAME"
2876 _ACEOF
2877
2878 cat >>confdefs.h <<_ACEOF
2879 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2880 _ACEOF
2881
2882 cat >>confdefs.h <<_ACEOF
2883 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2884 _ACEOF
2885
2886 cat >>confdefs.h <<_ACEOF
2887 #define PACKAGE_STRING "$PACKAGE_STRING"
2888 _ACEOF
2889
2890 cat >>confdefs.h <<_ACEOF
2891 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2892 _ACEOF
2893
2894 cat >>confdefs.h <<_ACEOF
2895 #define PACKAGE_URL "$PACKAGE_URL"
2896 _ACEOF
2897
2898
2899 # Let the site file select an alternate cache file if it wants to.
2900 # Prefer an explicitly selected file to automatically selected ones.
2901 ac_site_file1=NONE
2902 ac_site_file2=NONE
2903 if test -n "$CONFIG_SITE"; then
2904 ac_site_file1=$CONFIG_SITE
2905 elif test "x$prefix" != xNONE; then
2906 ac_site_file1=$prefix/share/config.site
2907 ac_site_file2=$prefix/etc/config.site
2908 else
2909 ac_site_file1=$ac_default_prefix/share/config.site
2910 ac_site_file2=$ac_default_prefix/etc/config.site
2911 fi
2912 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2913 do
2914 test "x$ac_site_file" = xNONE && continue
2915 if test -r "$ac_site_file"; then
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2917 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2918 sed 's/^/| /' "$ac_site_file" >&5
2919 . "$ac_site_file"
2920 fi
2921 done
2922
2923 if test -r "$cache_file"; then
2924 # Some versions of bash will fail to source /dev/null (special
2925 # files actually), so we avoid doing that.
2926 if test -f "$cache_file"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2928 $as_echo "$as_me: loading cache $cache_file" >&6;}
2929 case $cache_file in
2930 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2931 *) . "./$cache_file";;
2932 esac
2933 fi
2934 else
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2936 $as_echo "$as_me: creating cache $cache_file" >&6;}
2937 >$cache_file
2938 fi
2939
2940 # Check that the precious variables saved in the cache have kept the same
2941 # value.
2942 ac_cache_corrupted=false
2943 for ac_var in $ac_precious_vars; do
2944 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2945 eval ac_new_set=\$ac_env_${ac_var}_set
2946 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2947 eval ac_new_val=\$ac_env_${ac_var}_value
2948 case $ac_old_set,$ac_new_set in
2949 set,)
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2951 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2952 ac_cache_corrupted=: ;;
2953 ,set)
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2955 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2956 ac_cache_corrupted=: ;;
2957 ,);;
2958 *)
2959 if test "x$ac_old_val" != "x$ac_new_val"; then
2960 # differences in whitespace do not lead to failure.
2961 ac_old_val_w=`echo x $ac_old_val`
2962 ac_new_val_w=`echo x $ac_new_val`
2963 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2965 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2966 ac_cache_corrupted=:
2967 else
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2969 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2970 eval $ac_var=\$ac_old_val
2971 fi
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2973 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2975 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2976 fi;;
2977 esac
2978 # Pass precious variables to config.status.
2979 if test "$ac_new_set" = set; then
2980 case $ac_new_val in
2981 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2982 *) ac_arg=$ac_var=$ac_new_val ;;
2983 esac
2984 case " $ac_configure_args " in
2985 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2986 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2987 esac
2988 fi
2989 done
2990 if $ac_cache_corrupted; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2994 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2995 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2996 fi
2997 ## -------------------- ##
2998 ## Main body of script. ##
2999 ## -------------------- ##
3000
3001 ac_ext=c
3002 ac_cpp='$CPP $CPPFLAGS'
3003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3006
3007
3008
3009
3010
3011
3012 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3013
3014
3015 gcc_version=`cat $srcdir/BASE-VER`
3016
3017 # Determine the host, build, and target systems
3018 ac_aux_dir=
3019 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3020 for ac_t in install-sh install.sh shtool; do
3021 if test -f "$ac_dir/$ac_t"; then
3022 ac_aux_dir=$ac_dir
3023 ac_install_sh="$ac_aux_dir/$ac_t -c"
3024 break 2
3025 fi
3026 done
3027 done
3028 if test -z "$ac_aux_dir"; then
3029 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3030 fi
3031
3032 # These three variables are undocumented and unsupported,
3033 # and are intended to be withdrawn in a future Autoconf release.
3034 # They can cause serious problems if a builder's source tree is in a directory
3035 # whose full name contains unusual characters.
3036 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3037 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3038 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3039
3040
3041 # Make sure we can run config.sub.
3042 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3043 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3044
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3046 $as_echo_n "checking build system type... " >&6; }
3047 if test "${ac_cv_build+set}" = set; then :
3048 $as_echo_n "(cached) " >&6
3049 else
3050 ac_build_alias=$build_alias
3051 test "x$ac_build_alias" = x &&
3052 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3053 test "x$ac_build_alias" = x &&
3054 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3055 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3056 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3057
3058 fi
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3060 $as_echo "$ac_cv_build" >&6; }
3061 case $ac_cv_build in
3062 *-*-*) ;;
3063 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3064 esac
3065 build=$ac_cv_build
3066 ac_save_IFS=$IFS; IFS='-'
3067 set x $ac_cv_build
3068 shift
3069 build_cpu=$1
3070 build_vendor=$2
3071 shift; shift
3072 # Remember, the first character of IFS is used to create $*,
3073 # except with old shells:
3074 build_os=$*
3075 IFS=$ac_save_IFS
3076 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3077
3078
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3080 $as_echo_n "checking host system type... " >&6; }
3081 if test "${ac_cv_host+set}" = set; then :
3082 $as_echo_n "(cached) " >&6
3083 else
3084 if test "x$host_alias" = x; then
3085 ac_cv_host=$ac_cv_build
3086 else
3087 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3088 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3089 fi
3090
3091 fi
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3093 $as_echo "$ac_cv_host" >&6; }
3094 case $ac_cv_host in
3095 *-*-*) ;;
3096 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3097 esac
3098 host=$ac_cv_host
3099 ac_save_IFS=$IFS; IFS='-'
3100 set x $ac_cv_host
3101 shift
3102 host_cpu=$1
3103 host_vendor=$2
3104 shift; shift
3105 # Remember, the first character of IFS is used to create $*,
3106 # except with old shells:
3107 host_os=$*
3108 IFS=$ac_save_IFS
3109 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3110
3111
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3113 $as_echo_n "checking target system type... " >&6; }
3114 if test "${ac_cv_target+set}" = set; then :
3115 $as_echo_n "(cached) " >&6
3116 else
3117 if test "x$target_alias" = x; then
3118 ac_cv_target=$ac_cv_host
3119 else
3120 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3121 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3122 fi
3123
3124 fi
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3126 $as_echo "$ac_cv_target" >&6; }
3127 case $ac_cv_target in
3128 *-*-*) ;;
3129 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3130 esac
3131 target=$ac_cv_target
3132 ac_save_IFS=$IFS; IFS='-'
3133 set x $ac_cv_target
3134 shift
3135 target_cpu=$1
3136 target_vendor=$2
3137 shift; shift
3138 # Remember, the first character of IFS is used to create $*,
3139 # except with old shells:
3140 target_os=$*
3141 IFS=$ac_save_IFS
3142 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3143
3144
3145 # The aliases save the names the user supplied, while $host etc.
3146 # will get canonicalized.
3147 test -n "$target_alias" &&
3148 test "$program_prefix$program_suffix$program_transform_name" = \
3149 NONENONEs,x,x, &&
3150 program_prefix=${target_alias}-
3151
3152 # Determine the noncanonical target name, for directory use.
3153 case ${build_alias} in
3154 "") build_noncanonical=${build} ;;
3155 *) build_noncanonical=${build_alias} ;;
3156 esac
3157
3158 case ${host_alias} in
3159 "") host_noncanonical=${build_noncanonical} ;;
3160 *) host_noncanonical=${host_alias} ;;
3161 esac
3162
3163 case ${target_alias} in
3164 "") target_noncanonical=${host_noncanonical} ;;
3165 *) target_noncanonical=${target_alias} ;;
3166 esac
3167
3168
3169
3170
3171 # Determine the target- and build-specific subdirectories
3172
3173 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3174 # have matching libraries, they should use host libraries: Makefile.tpl
3175 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3176 # However, they still use the build modules, because the corresponding
3177 # host modules (e.g. bison) are only built for the host when bootstrap
3178 # finishes. So:
3179 # - build_subdir is where we find build modules, and never changes.
3180 # - build_libsubdir is where we find build libraries, and can be overridden.
3181
3182 # Prefix 'build-' so this never conflicts with target_subdir.
3183 build_subdir="build-${build_noncanonical}"
3184
3185 # Check whether --with-build-libsubdir was given.
3186 if test "${with_build_libsubdir+set}" = set; then :
3187 withval=$with_build_libsubdir; build_libsubdir="$withval"
3188 else
3189 build_libsubdir="$build_subdir"
3190 fi
3191
3192 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3193 if ( test $srcdir = . && test -d gcc ) \
3194 || test -d $srcdir/../host-${host_noncanonical}; then
3195 host_subdir="host-${host_noncanonical}"
3196 else
3197 host_subdir=.
3198 fi
3199 # No prefix.
3200 target_subdir=${target_noncanonical}
3201
3202
3203 # Set program_transform_name
3204 test "$program_prefix" != NONE &&
3205 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3206 # Use a double $ so make ignores it.
3207 test "$program_suffix" != NONE &&
3208 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3209 # Double any \ or $.
3210 # By default was `s,x,x', remove it if useless.
3211 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3212 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3213
3214
3215 # Check for bogus environment variables.
3216 # Test if LIBRARY_PATH contains the notation for the current directory
3217 # since this would lead to problems installing/building glibc.
3218 # LIBRARY_PATH contains the current directory if one of the following
3219 # is true:
3220 # - one of the terminals (":" and ";") is the first or last sign
3221 # - two terminals occur directly after each other
3222 # - the path contains an element with a dot in it
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3224 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3225 case ${LIBRARY_PATH} in
3226 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3227 library_path_setting="contains current directory"
3228 ;;
3229 *)
3230 library_path_setting="ok"
3231 ;;
3232 esac
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3234 $as_echo "$library_path_setting" >&6; }
3235 if test "$library_path_setting" != "ok"; then
3236 as_fn_error "
3237 *** LIBRARY_PATH shouldn't contain the current directory when
3238 *** building gcc. Please change the environment variable
3239 *** and run configure again." "$LINENO" 5
3240 fi
3241
3242 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3243 # since this would lead to problems installing/building glibc.
3244 # GCC_EXEC_PREFIX contains the current directory if one of the following
3245 # is true:
3246 # - one of the terminals (":" and ";") is the first or last sign
3247 # - two terminals occur directly after each other
3248 # - the path contains an element with a dot in it
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3250 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3251 case ${GCC_EXEC_PREFIX} in
3252 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3253 gcc_exec_prefix_setting="contains current directory"
3254 ;;
3255 *)
3256 gcc_exec_prefix_setting="ok"
3257 ;;
3258 esac
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3260 $as_echo "$gcc_exec_prefix_setting" >&6; }
3261 if test "$gcc_exec_prefix_setting" != "ok"; then
3262 as_fn_error "
3263 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3264 *** building gcc. Please change the environment variable
3265 *** and run configure again." "$LINENO" 5
3266 fi
3267
3268 # -----------
3269 # Directories
3270 # -----------
3271
3272 # Specify the local prefix
3273 local_prefix=
3274
3275 # Check whether --with-local-prefix was given.
3276 if test "${with_local_prefix+set}" = set; then :
3277 withval=$with_local_prefix; case "${withval}" in
3278 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3279 no) ;;
3280 *) local_prefix=$with_local_prefix ;;
3281 esac
3282 fi
3283
3284
3285 # Default local prefix if it is empty
3286 if test x$local_prefix = x; then
3287 local_prefix=/usr/local
3288 fi
3289
3290 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3291 # passed in by the toplevel make and thus we'd get different behavior
3292 # depending on where we built the sources.
3293 gcc_gxx_include_dir=
3294 # Specify the g++ header file directory
3295
3296 # Check whether --with-gxx-include-dir was given.
3297 if test "${with_gxx_include_dir+set}" = set; then :
3298 withval=$with_gxx_include_dir; case "${withval}" in
3299 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3300 no) ;;
3301 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3302 esac
3303 fi
3304
3305
3306 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3307 if test x${gcc_gxx_include_dir} = x; then
3308 if test x${enable_version_specific_runtime_libs} = xyes; then
3309 gcc_gxx_include_dir='${libsubdir}/include/c++'
3310 else
3311 libstdcxx_incdir='include/c++/$(version)'
3312 if test x$host != x$target; then
3313 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3314 fi
3315 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3316 fi
3317 fi
3318
3319
3320 # Check whether --with-cpp_install_dir was given.
3321 if test "${with_cpp_install_dir+set}" = set; then :
3322 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3323 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3324 elif test x$withval != xno; then
3325 cpp_install_dir=$withval
3326 fi
3327 fi
3328
3329
3330 # We would like to our source tree to be readonly. However when releases or
3331 # pre-releases are generated, the flex/bison generated files as well as the
3332 # various formats of manuals need to be included along with the rest of the
3333 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3334 # just that.
3335
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3337 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3338 # Check whether --enable-generated-files-in-srcdir was given.
3339 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3340 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3341 else
3342 generated_files_in_srcdir=no
3343 fi
3344
3345
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3347 $as_echo "$generated_files_in_srcdir" >&6; }
3348
3349 if test "$generated_files_in_srcdir" = "yes"; then
3350 GENINSRC=''
3351 else
3352 GENINSRC='#'
3353 fi
3354
3355
3356 # -------------------
3357 # Find default linker
3358 # -------------------
3359
3360 # With GNU ld
3361
3362 # Check whether --with-gnu-ld was given.
3363 if test "${with_gnu_ld+set}" = set; then :
3364 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3365 else
3366 gnu_ld_flag=no
3367 fi
3368
3369
3370 # With pre-defined ld
3371
3372 # Check whether --with-ld was given.
3373 if test "${with_ld+set}" = set; then :
3374 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3375 fi
3376
3377 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3378 if test ! -x "$DEFAULT_LINKER"; then
3379 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3380 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3381 gnu_ld_flag=yes
3382 fi
3383
3384 cat >>confdefs.h <<_ACEOF
3385 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3386 _ACEOF
3387
3388 fi
3389
3390 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3391
3392 cat >>confdefs.h <<_ACEOF
3393 #define HAVE_GNU_LD $gnu_ld
3394 _ACEOF
3395
3396
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3398 $as_echo_n "checking whether a default linker was specified... " >&6; }
3399 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3400 if test x"$gnu_ld_flag" = x"no"; then
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3402 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3403 else
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3405 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3406 fi
3407 else
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3410 fi
3411
3412 # With demangler in GNU ld
3413
3414 # Check whether --with-demangler-in-ld was given.
3415 if test "${with_demangler_in_ld+set}" = set; then :
3416 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3417 else
3418 demangler_in_ld=yes
3419 fi
3420
3421
3422 # ----------------------
3423 # Find default assembler
3424 # ----------------------
3425
3426 # With GNU as
3427
3428 # Check whether --with-gnu-as was given.
3429 if test "${with_gnu_as+set}" = set; then :
3430 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3431 else
3432 gas_flag=no
3433 fi
3434
3435
3436
3437 # Check whether --with-as was given.
3438 if test "${with_as+set}" = set; then :
3439 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3440 fi
3441
3442 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3443 if test ! -x "$DEFAULT_ASSEMBLER"; then
3444 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3445 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3446 gas_flag=yes
3447 fi
3448
3449 cat >>confdefs.h <<_ACEOF
3450 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3451 _ACEOF
3452
3453 fi
3454
3455 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3456
3457 cat >>confdefs.h <<_ACEOF
3458 #define HAVE_GNU_AS $gnu_as
3459 _ACEOF
3460
3461
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3463 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3464 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3465 if test x"$gas_flag" = x"no"; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3467 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3468 else
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3470 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3471 fi
3472 else
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474 $as_echo "no" >&6; }
3475 fi
3476
3477 # ---------------
3478 # Find C compiler
3479 # ---------------
3480
3481 # If a non-executable a.out is present (e.g. created by GNU as above even if
3482 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3483 # file, even when creating an executable, so an execution test fails.
3484 # Remove possible default executable files to avoid this.
3485 #
3486 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3487 # Autoconf includes it.
3488 rm -f a.out a.exe b.out
3489
3490 # Find the native compiler
3491 ac_ext=c
3492 ac_cpp='$CPP $CPPFLAGS'
3493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3496 if test -n "$ac_tool_prefix"; then
3497 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3498 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3500 $as_echo_n "checking for $ac_word... " >&6; }
3501 if test "${ac_cv_prog_CC+set}" = set; then :
3502 $as_echo_n "(cached) " >&6
3503 else
3504 if test -n "$CC"; then
3505 ac_cv_prog_CC="$CC" # Let the user override the test.
3506 else
3507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508 for as_dir in $PATH
3509 do
3510 IFS=$as_save_IFS
3511 test -z "$as_dir" && as_dir=.
3512 for ac_exec_ext in '' $ac_executable_extensions; do
3513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3514 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3516 break 2
3517 fi
3518 done
3519 done
3520 IFS=$as_save_IFS
3521
3522 fi
3523 fi
3524 CC=$ac_cv_prog_CC
3525 if test -n "$CC"; then
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3527 $as_echo "$CC" >&6; }
3528 else
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3530 $as_echo "no" >&6; }
3531 fi
3532
3533
3534 fi
3535 if test -z "$ac_cv_prog_CC"; then
3536 ac_ct_CC=$CC
3537 # Extract the first word of "gcc", so it can be a program name with args.
3538 set dummy gcc; ac_word=$2
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540 $as_echo_n "checking for $ac_word... " >&6; }
3541 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3542 $as_echo_n "(cached) " >&6
3543 else
3544 if test -n "$ac_ct_CC"; then
3545 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3546 else
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 for as_dir in $PATH
3549 do
3550 IFS=$as_save_IFS
3551 test -z "$as_dir" && as_dir=.
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3554 ac_cv_prog_ac_ct_CC="gcc"
3555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3556 break 2
3557 fi
3558 done
3559 done
3560 IFS=$as_save_IFS
3561
3562 fi
3563 fi
3564 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3565 if test -n "$ac_ct_CC"; then
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3567 $as_echo "$ac_ct_CC" >&6; }
3568 else
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570 $as_echo "no" >&6; }
3571 fi
3572
3573 if test "x$ac_ct_CC" = x; then
3574 CC=""
3575 else
3576 case $cross_compiling:$ac_tool_warned in
3577 yes:)
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3580 ac_tool_warned=yes ;;
3581 esac
3582 CC=$ac_ct_CC
3583 fi
3584 else
3585 CC="$ac_cv_prog_CC"
3586 fi
3587
3588 if test -z "$CC"; then
3589 if test -n "$ac_tool_prefix"; then
3590 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3591 set dummy ${ac_tool_prefix}cc; ac_word=$2
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3593 $as_echo_n "checking for $ac_word... " >&6; }
3594 if test "${ac_cv_prog_CC+set}" = set; then :
3595 $as_echo_n "(cached) " >&6
3596 else
3597 if test -n "$CC"; then
3598 ac_cv_prog_CC="$CC" # Let the user override the test.
3599 else
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 for as_dir in $PATH
3602 do
3603 IFS=$as_save_IFS
3604 test -z "$as_dir" && as_dir=.
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3607 ac_cv_prog_CC="${ac_tool_prefix}cc"
3608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3609 break 2
3610 fi
3611 done
3612 done
3613 IFS=$as_save_IFS
3614
3615 fi
3616 fi
3617 CC=$ac_cv_prog_CC
3618 if test -n "$CC"; then
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3620 $as_echo "$CC" >&6; }
3621 else
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623 $as_echo "no" >&6; }
3624 fi
3625
3626
3627 fi
3628 fi
3629 if test -z "$CC"; then
3630 # Extract the first word of "cc", so it can be a program name with args.
3631 set dummy cc; ac_word=$2
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3633 $as_echo_n "checking for $ac_word... " >&6; }
3634 if test "${ac_cv_prog_CC+set}" = set; then :
3635 $as_echo_n "(cached) " >&6
3636 else
3637 if test -n "$CC"; then
3638 ac_cv_prog_CC="$CC" # Let the user override the test.
3639 else
3640 ac_prog_rejected=no
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH
3643 do
3644 IFS=$as_save_IFS
3645 test -z "$as_dir" && as_dir=.
3646 for ac_exec_ext in '' $ac_executable_extensions; do
3647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3648 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3649 ac_prog_rejected=yes
3650 continue
3651 fi
3652 ac_cv_prog_CC="cc"
3653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3654 break 2
3655 fi
3656 done
3657 done
3658 IFS=$as_save_IFS
3659
3660 if test $ac_prog_rejected = yes; then
3661 # We found a bogon in the path, so make sure we never use it.
3662 set dummy $ac_cv_prog_CC
3663 shift
3664 if test $# != 0; then
3665 # We chose a different compiler from the bogus one.
3666 # However, it has the same basename, so the bogon will be chosen
3667 # first if we set CC to just the basename; use the full file name.
3668 shift
3669 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3670 fi
3671 fi
3672 fi
3673 fi
3674 CC=$ac_cv_prog_CC
3675 if test -n "$CC"; then
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3677 $as_echo "$CC" >&6; }
3678 else
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3680 $as_echo "no" >&6; }
3681 fi
3682
3683
3684 fi
3685 if test -z "$CC"; then
3686 if test -n "$ac_tool_prefix"; then
3687 for ac_prog in cl.exe
3688 do
3689 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3690 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3692 $as_echo_n "checking for $ac_word... " >&6; }
3693 if test "${ac_cv_prog_CC+set}" = set; then :
3694 $as_echo_n "(cached) " >&6
3695 else
3696 if test -n "$CC"; then
3697 ac_cv_prog_CC="$CC" # Let the user override the test.
3698 else
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH
3701 do
3702 IFS=$as_save_IFS
3703 test -z "$as_dir" && as_dir=.
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3706 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 break 2
3709 fi
3710 done
3711 done
3712 IFS=$as_save_IFS
3713
3714 fi
3715 fi
3716 CC=$ac_cv_prog_CC
3717 if test -n "$CC"; then
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3719 $as_echo "$CC" >&6; }
3720 else
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3722 $as_echo "no" >&6; }
3723 fi
3724
3725
3726 test -n "$CC" && break
3727 done
3728 fi
3729 if test -z "$CC"; then
3730 ac_ct_CC=$CC
3731 for ac_prog in cl.exe
3732 do
3733 # Extract the first word of "$ac_prog", so it can be a program name with args.
3734 set dummy $ac_prog; ac_word=$2
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3736 $as_echo_n "checking for $ac_word... " >&6; }
3737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3738 $as_echo_n "(cached) " >&6
3739 else
3740 if test -n "$ac_ct_CC"; then
3741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3742 else
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 for as_dir in $PATH
3745 do
3746 IFS=$as_save_IFS
3747 test -z "$as_dir" && as_dir=.
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3750 ac_cv_prog_ac_ct_CC="$ac_prog"
3751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3752 break 2
3753 fi
3754 done
3755 done
3756 IFS=$as_save_IFS
3757
3758 fi
3759 fi
3760 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3761 if test -n "$ac_ct_CC"; then
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3763 $as_echo "$ac_ct_CC" >&6; }
3764 else
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3766 $as_echo "no" >&6; }
3767 fi
3768
3769
3770 test -n "$ac_ct_CC" && break
3771 done
3772
3773 if test "x$ac_ct_CC" = x; then
3774 CC=""
3775 else
3776 case $cross_compiling:$ac_tool_warned in
3777 yes:)
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3780 ac_tool_warned=yes ;;
3781 esac
3782 CC=$ac_ct_CC
3783 fi
3784 fi
3785
3786 fi
3787
3788
3789 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3791 as_fn_error "no acceptable C compiler found in \$PATH
3792 See \`config.log' for more details." "$LINENO" 5; }
3793
3794 # Provide some information about the compiler.
3795 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3796 set X $ac_compile
3797 ac_compiler=$2
3798 for ac_option in --version -v -V -qversion; do
3799 { { ac_try="$ac_compiler $ac_option >&5"
3800 case "(($ac_try" in
3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802 *) ac_try_echo=$ac_try;;
3803 esac
3804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3805 $as_echo "$ac_try_echo"; } >&5
3806 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3807 ac_status=$?
3808 if test -s conftest.err; then
3809 sed '10a\
3810 ... rest of stderr output deleted ...
3811 10q' conftest.err >conftest.er1
3812 cat conftest.er1 >&5
3813 rm -f conftest.er1 conftest.err
3814 fi
3815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3816 test $ac_status = 0; }
3817 done
3818
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3821
3822 int
3823 main ()
3824 {
3825
3826 ;
3827 return 0;
3828 }
3829 _ACEOF
3830 ac_clean_files_save=$ac_clean_files
3831 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3832 # Try to create an executable without -o first, disregard a.out.
3833 # It will help us diagnose broken compilers, and finding out an intuition
3834 # of exeext.
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3836 $as_echo_n "checking for C compiler default output file name... " >&6; }
3837 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3838
3839 # The possible output files:
3840 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3841
3842 ac_rmfiles=
3843 for ac_file in $ac_files
3844 do
3845 case $ac_file in
3846 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3847 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3848 esac
3849 done
3850 rm -f $ac_rmfiles
3851
3852 if { { ac_try="$ac_link_default"
3853 case "(($ac_try" in
3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855 *) ac_try_echo=$ac_try;;
3856 esac
3857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3858 $as_echo "$ac_try_echo"; } >&5
3859 (eval "$ac_link_default") 2>&5
3860 ac_status=$?
3861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3862 test $ac_status = 0; }; then :
3863 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3864 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3865 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3866 # so that the user can short-circuit this test for compilers unknown to
3867 # Autoconf.
3868 for ac_file in $ac_files ''
3869 do
3870 test -f "$ac_file" || continue
3871 case $ac_file in
3872 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3873 ;;
3874 [ab].out )
3875 # We found the default executable, but exeext='' is most
3876 # certainly right.
3877 break;;
3878 *.* )
3879 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3880 then :; else
3881 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3882 fi
3883 # We set ac_cv_exeext here because the later test for it is not
3884 # safe: cross compilers may not add the suffix if given an `-o'
3885 # argument, so we may need to know it at that point already.
3886 # Even if this section looks crufty: it has the advantage of
3887 # actually working.
3888 break;;
3889 * )
3890 break;;
3891 esac
3892 done
3893 test "$ac_cv_exeext" = no && ac_cv_exeext=
3894
3895 else
3896 ac_file=''
3897 fi
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3899 $as_echo "$ac_file" >&6; }
3900 if test -z "$ac_file"; then :
3901 $as_echo "$as_me: failed program was:" >&5
3902 sed 's/^/| /' conftest.$ac_ext >&5
3903
3904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3906 { as_fn_set_status 77
3907 as_fn_error "C compiler cannot create executables
3908 See \`config.log' for more details." "$LINENO" 5; }; }
3909 fi
3910 ac_exeext=$ac_cv_exeext
3911
3912 # Check that the compiler produces executables we can run. If not, either
3913 # the compiler is broken, or we cross compile.
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3915 $as_echo_n "checking whether the C compiler works... " >&6; }
3916 # If not cross compiling, check that we can run a simple program.
3917 if test "$cross_compiling" != yes; then
3918 if { ac_try='./$ac_file'
3919 { { case "(($ac_try" in
3920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921 *) ac_try_echo=$ac_try;;
3922 esac
3923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3924 $as_echo "$ac_try_echo"; } >&5
3925 (eval "$ac_try") 2>&5
3926 ac_status=$?
3927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3928 test $ac_status = 0; }; }; then
3929 cross_compiling=no
3930 else
3931 if test "$cross_compiling" = maybe; then
3932 cross_compiling=yes
3933 else
3934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3936 as_fn_error "cannot run C compiled programs.
3937 If you meant to cross compile, use \`--host'.
3938 See \`config.log' for more details." "$LINENO" 5; }
3939 fi
3940 fi
3941 fi
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3943 $as_echo "yes" >&6; }
3944
3945 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3946 ac_clean_files=$ac_clean_files_save
3947 # Check that the compiler produces executables we can run. If not, either
3948 # the compiler is broken, or we cross compile.
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3950 $as_echo_n "checking whether we are cross compiling... " >&6; }
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3952 $as_echo "$cross_compiling" >&6; }
3953
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3955 $as_echo_n "checking for suffix of executables... " >&6; }
3956 if { { ac_try="$ac_link"
3957 case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3960 esac
3961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3962 $as_echo "$ac_try_echo"; } >&5
3963 (eval "$ac_link") 2>&5
3964 ac_status=$?
3965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3966 test $ac_status = 0; }; then :
3967 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3968 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3969 # work properly (i.e., refer to `conftest.exe'), while it won't with
3970 # `rm'.
3971 for ac_file in conftest.exe conftest conftest.*; do
3972 test -f "$ac_file" || continue
3973 case $ac_file in
3974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3975 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3976 break;;
3977 * ) break;;
3978 esac
3979 done
3980 else
3981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3983 as_fn_error "cannot compute suffix of executables: cannot compile and link
3984 See \`config.log' for more details." "$LINENO" 5; }
3985 fi
3986 rm -f conftest$ac_cv_exeext
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3988 $as_echo "$ac_cv_exeext" >&6; }
3989
3990 rm -f conftest.$ac_ext
3991 EXEEXT=$ac_cv_exeext
3992 ac_exeext=$EXEEXT
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3994 $as_echo_n "checking for suffix of object files... " >&6; }
3995 if test "${ac_cv_objext+set}" = set; then :
3996 $as_echo_n "(cached) " >&6
3997 else
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4000
4001 int
4002 main ()
4003 {
4004
4005 ;
4006 return 0;
4007 }
4008 _ACEOF
4009 rm -f conftest.o conftest.obj
4010 if { { ac_try="$ac_compile"
4011 case "(($ac_try" in
4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4014 esac
4015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4016 $as_echo "$ac_try_echo"; } >&5
4017 (eval "$ac_compile") 2>&5
4018 ac_status=$?
4019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4020 test $ac_status = 0; }; then :
4021 for ac_file in conftest.o conftest.obj conftest.*; do
4022 test -f "$ac_file" || continue;
4023 case $ac_file in
4024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4025 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4026 break;;
4027 esac
4028 done
4029 else
4030 $as_echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4032
4033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4035 as_fn_error "cannot compute suffix of object files: cannot compile
4036 See \`config.log' for more details." "$LINENO" 5; }
4037 fi
4038 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4039 fi
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4041 $as_echo "$ac_cv_objext" >&6; }
4042 OBJEXT=$ac_cv_objext
4043 ac_objext=$OBJEXT
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4045 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4046 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4047 $as_echo_n "(cached) " >&6
4048 else
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4051
4052 int
4053 main ()
4054 {
4055 #ifndef __GNUC__
4056 choke me
4057 #endif
4058
4059 ;
4060 return 0;
4061 }
4062 _ACEOF
4063 if ac_fn_c_try_compile "$LINENO"; then :
4064 ac_compiler_gnu=yes
4065 else
4066 ac_compiler_gnu=no
4067 fi
4068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4069 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4070
4071 fi
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4073 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4074 if test $ac_compiler_gnu = yes; then
4075 GCC=yes
4076 else
4077 GCC=
4078 fi
4079 ac_test_CFLAGS=${CFLAGS+set}
4080 ac_save_CFLAGS=$CFLAGS
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4082 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4083 if test "${ac_cv_prog_cc_g+set}" = set; then :
4084 $as_echo_n "(cached) " >&6
4085 else
4086 ac_save_c_werror_flag=$ac_c_werror_flag
4087 ac_c_werror_flag=yes
4088 ac_cv_prog_cc_g=no
4089 CFLAGS="-g"
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4092
4093 int
4094 main ()
4095 {
4096
4097 ;
4098 return 0;
4099 }
4100 _ACEOF
4101 if ac_fn_c_try_compile "$LINENO"; then :
4102 ac_cv_prog_cc_g=yes
4103 else
4104 CFLAGS=""
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4107
4108 int
4109 main ()
4110 {
4111
4112 ;
4113 return 0;
4114 }
4115 _ACEOF
4116 if ac_fn_c_try_compile "$LINENO"; then :
4117
4118 else
4119 ac_c_werror_flag=$ac_save_c_werror_flag
4120 CFLAGS="-g"
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4123
4124 int
4125 main ()
4126 {
4127
4128 ;
4129 return 0;
4130 }
4131 _ACEOF
4132 if ac_fn_c_try_compile "$LINENO"; then :
4133 ac_cv_prog_cc_g=yes
4134 fi
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 fi
4137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 fi
4139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4140 ac_c_werror_flag=$ac_save_c_werror_flag
4141 fi
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4143 $as_echo "$ac_cv_prog_cc_g" >&6; }
4144 if test "$ac_test_CFLAGS" = set; then
4145 CFLAGS=$ac_save_CFLAGS
4146 elif test $ac_cv_prog_cc_g = yes; then
4147 if test "$GCC" = yes; then
4148 CFLAGS="-g -O2"
4149 else
4150 CFLAGS="-g"
4151 fi
4152 else
4153 if test "$GCC" = yes; then
4154 CFLAGS="-O2"
4155 else
4156 CFLAGS=
4157 fi
4158 fi
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4160 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4161 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4162 $as_echo_n "(cached) " >&6
4163 else
4164 ac_cv_prog_cc_c89=no
4165 ac_save_CC=$CC
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h. */
4168 #include <stdarg.h>
4169 #include <stdio.h>
4170 #include <sys/types.h>
4171 #include <sys/stat.h>
4172 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4173 struct buf { int x; };
4174 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4175 static char *e (p, i)
4176 char **p;
4177 int i;
4178 {
4179 return p[i];
4180 }
4181 static char *f (char * (*g) (char **, int), char **p, ...)
4182 {
4183 char *s;
4184 va_list v;
4185 va_start (v,p);
4186 s = g (p, va_arg (v,int));
4187 va_end (v);
4188 return s;
4189 }
4190
4191 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4192 function prototypes and stuff, but not '\xHH' hex character constants.
4193 These don't provoke an error unfortunately, instead are silently treated
4194 as 'x'. The following induces an error, until -std is added to get
4195 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4196 array size at least. It's necessary to write '\x00'==0 to get something
4197 that's true only with -std. */
4198 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4199
4200 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4201 inside strings and character constants. */
4202 #define FOO(x) 'x'
4203 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4204
4205 int test (int i, double x);
4206 struct s1 {int (*f) (int a);};
4207 struct s2 {int (*f) (double a);};
4208 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4209 int argc;
4210 char **argv;
4211 int
4212 main ()
4213 {
4214 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4215 ;
4216 return 0;
4217 }
4218 _ACEOF
4219 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4220 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4221 do
4222 CC="$ac_save_CC $ac_arg"
4223 if ac_fn_c_try_compile "$LINENO"; then :
4224 ac_cv_prog_cc_c89=$ac_arg
4225 fi
4226 rm -f core conftest.err conftest.$ac_objext
4227 test "x$ac_cv_prog_cc_c89" != "xno" && break
4228 done
4229 rm -f conftest.$ac_ext
4230 CC=$ac_save_CC
4231
4232 fi
4233 # AC_CACHE_VAL
4234 case "x$ac_cv_prog_cc_c89" in
4235 x)
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4237 $as_echo "none needed" >&6; } ;;
4238 xno)
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4240 $as_echo "unsupported" >&6; } ;;
4241 *)
4242 CC="$CC $ac_cv_prog_cc_c89"
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4244 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4245 esac
4246 if test "x$ac_cv_prog_cc_c89" != xno; then :
4247
4248 fi
4249
4250 ac_ext=c
4251 ac_cpp='$CPP $CPPFLAGS'
4252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4255
4256 if test "x$CC" != xcc; then
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4258 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4259 else
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4261 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4262 fi
4263 set dummy $CC; ac_cc=`$as_echo "$2" |
4264 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4265 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4266 $as_echo_n "(cached) " >&6
4267 else
4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4270
4271 int
4272 main ()
4273 {
4274
4275 ;
4276 return 0;
4277 }
4278 _ACEOF
4279 # Make sure it works both with $CC and with simple cc.
4280 # We do the test twice because some compilers refuse to overwrite an
4281 # existing .o file with -o, though they will create one.
4282 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4283 rm -f conftest2.*
4284 if { { case "(($ac_try" in
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4287 esac
4288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4289 $as_echo "$ac_try_echo"; } >&5
4290 (eval "$ac_try") 2>&5
4291 ac_status=$?
4292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4293 test $ac_status = 0; } &&
4294 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4297 esac
4298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4299 $as_echo "$ac_try_echo"; } >&5
4300 (eval "$ac_try") 2>&5
4301 ac_status=$?
4302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4303 test $ac_status = 0; };
4304 then
4305 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4306 if test "x$CC" != xcc; then
4307 # Test first that cc exists at all.
4308 if { ac_try='cc -c conftest.$ac_ext >&5'
4309 { { case "(($ac_try" in
4310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311 *) ac_try_echo=$ac_try;;
4312 esac
4313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4314 $as_echo "$ac_try_echo"; } >&5
4315 (eval "$ac_try") 2>&5
4316 ac_status=$?
4317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4318 test $ac_status = 0; }; }; then
4319 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4320 rm -f conftest2.*
4321 if { { case "(($ac_try" in
4322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4324 esac
4325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4326 $as_echo "$ac_try_echo"; } >&5
4327 (eval "$ac_try") 2>&5
4328 ac_status=$?
4329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4330 test $ac_status = 0; } &&
4331 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4334 esac
4335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4336 $as_echo "$ac_try_echo"; } >&5
4337 (eval "$ac_try") 2>&5
4338 ac_status=$?
4339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4340 test $ac_status = 0; };
4341 then
4342 # cc works too.
4343 :
4344 else
4345 # cc exists but doesn't like -o.
4346 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4347 fi
4348 fi
4349 fi
4350 else
4351 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4352 fi
4353 rm -f core conftest*
4354
4355 fi
4356 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4358 $as_echo "yes" >&6; }
4359 else
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361 $as_echo "no" >&6; }
4362
4363 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4364
4365 fi
4366
4367 # expand $ac_aux_dir to an absolute path
4368 am_aux_dir=`cd $ac_aux_dir && pwd`
4369
4370 # FIXME: we rely on the cache variable name because
4371 # there is no other way.
4372 set dummy $CC
4373 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4374 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4375 if test "$am_t" != yes; then
4376 # Losing compiler, so override with the script.
4377 # FIXME: It is wrong to rewrite CC.
4378 # But if we don't then we get into trouble of one sort or another.
4379 # A longer-term fix would be to have automake use am__CC in this case,
4380 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4381 CC="$am_aux_dir/compile $CC"
4382 fi
4383
4384
4385 ac_ext=cpp
4386 ac_cpp='$CXXCPP $CPPFLAGS'
4387 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4388 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4389 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4390 if test -z "$CXX"; then
4391 if test -n "$CCC"; then
4392 CXX=$CCC
4393 else
4394 if test -n "$ac_tool_prefix"; then
4395 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4396 do
4397 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4398 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4400 $as_echo_n "checking for $ac_word... " >&6; }
4401 if test "${ac_cv_prog_CXX+set}" = set; then :
4402 $as_echo_n "(cached) " >&6
4403 else
4404 if test -n "$CXX"; then
4405 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4406 else
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 for as_dir in $PATH
4409 do
4410 IFS=$as_save_IFS
4411 test -z "$as_dir" && as_dir=.
4412 for ac_exec_ext in '' $ac_executable_extensions; do
4413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4414 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 break 2
4417 fi
4418 done
4419 done
4420 IFS=$as_save_IFS
4421
4422 fi
4423 fi
4424 CXX=$ac_cv_prog_CXX
4425 if test -n "$CXX"; then
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4427 $as_echo "$CXX" >&6; }
4428 else
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430 $as_echo "no" >&6; }
4431 fi
4432
4433
4434 test -n "$CXX" && break
4435 done
4436 fi
4437 if test -z "$CXX"; then
4438 ac_ct_CXX=$CXX
4439 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4440 do
4441 # Extract the first word of "$ac_prog", so it can be a program name with args.
4442 set dummy $ac_prog; ac_word=$2
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4444 $as_echo_n "checking for $ac_word... " >&6; }
4445 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4446 $as_echo_n "(cached) " >&6
4447 else
4448 if test -n "$ac_ct_CXX"; then
4449 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4450 else
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH
4453 do
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4458 ac_cv_prog_ac_ct_CXX="$ac_prog"
4459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 break 2
4461 fi
4462 done
4463 done
4464 IFS=$as_save_IFS
4465
4466 fi
4467 fi
4468 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4469 if test -n "$ac_ct_CXX"; then
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4471 $as_echo "$ac_ct_CXX" >&6; }
4472 else
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474 $as_echo "no" >&6; }
4475 fi
4476
4477
4478 test -n "$ac_ct_CXX" && break
4479 done
4480
4481 if test "x$ac_ct_CXX" = x; then
4482 CXX="g++"
4483 else
4484 case $cross_compiling:$ac_tool_warned in
4485 yes:)
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4488 ac_tool_warned=yes ;;
4489 esac
4490 CXX=$ac_ct_CXX
4491 fi
4492 fi
4493
4494 fi
4495 fi
4496 # Provide some information about the compiler.
4497 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4498 set X $ac_compile
4499 ac_compiler=$2
4500 for ac_option in --version -v -V -qversion; do
4501 { { ac_try="$ac_compiler $ac_option >&5"
4502 case "(($ac_try" in
4503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504 *) ac_try_echo=$ac_try;;
4505 esac
4506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4507 $as_echo "$ac_try_echo"; } >&5
4508 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4509 ac_status=$?
4510 if test -s conftest.err; then
4511 sed '10a\
4512 ... rest of stderr output deleted ...
4513 10q' conftest.err >conftest.er1
4514 cat conftest.er1 >&5
4515 rm -f conftest.er1 conftest.err
4516 fi
4517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4518 test $ac_status = 0; }
4519 done
4520
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4522 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4523 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4524 $as_echo_n "(cached) " >&6
4525 else
4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h. */
4528
4529 int
4530 main ()
4531 {
4532 #ifndef __GNUC__
4533 choke me
4534 #endif
4535
4536 ;
4537 return 0;
4538 }
4539 _ACEOF
4540 if ac_fn_cxx_try_compile "$LINENO"; then :
4541 ac_compiler_gnu=yes
4542 else
4543 ac_compiler_gnu=no
4544 fi
4545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4546 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4547
4548 fi
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4550 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4551 if test $ac_compiler_gnu = yes; then
4552 GXX=yes
4553 else
4554 GXX=
4555 fi
4556 ac_test_CXXFLAGS=${CXXFLAGS+set}
4557 ac_save_CXXFLAGS=$CXXFLAGS
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4559 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4560 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4561 $as_echo_n "(cached) " >&6
4562 else
4563 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4564 ac_cxx_werror_flag=yes
4565 ac_cv_prog_cxx_g=no
4566 CXXFLAGS="-g"
4567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h. */
4569
4570 int
4571 main ()
4572 {
4573
4574 ;
4575 return 0;
4576 }
4577 _ACEOF
4578 if ac_fn_cxx_try_compile "$LINENO"; then :
4579 ac_cv_prog_cxx_g=yes
4580 else
4581 CXXFLAGS=""
4582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4583 /* end confdefs.h. */
4584
4585 int
4586 main ()
4587 {
4588
4589 ;
4590 return 0;
4591 }
4592 _ACEOF
4593 if ac_fn_cxx_try_compile "$LINENO"; then :
4594
4595 else
4596 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4597 CXXFLAGS="-g"
4598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599 /* end confdefs.h. */
4600
4601 int
4602 main ()
4603 {
4604
4605 ;
4606 return 0;
4607 }
4608 _ACEOF
4609 if ac_fn_cxx_try_compile "$LINENO"; then :
4610 ac_cv_prog_cxx_g=yes
4611 fi
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613 fi
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 fi
4616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4617 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4618 fi
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4620 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4621 if test "$ac_test_CXXFLAGS" = set; then
4622 CXXFLAGS=$ac_save_CXXFLAGS
4623 elif test $ac_cv_prog_cxx_g = yes; then
4624 if test "$GXX" = yes; then
4625 CXXFLAGS="-g -O2"
4626 else
4627 CXXFLAGS="-g"
4628 fi
4629 else
4630 if test "$GXX" = yes; then
4631 CXXFLAGS="-O2"
4632 else
4633 CXXFLAGS=
4634 fi
4635 fi
4636 ac_ext=c
4637 ac_cpp='$CPP $CPPFLAGS'
4638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4641
4642
4643
4644
4645 if test -n "$ac_tool_prefix"; then
4646 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4647 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4649 $as_echo_n "checking for $ac_word... " >&6; }
4650 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4651 $as_echo_n "(cached) " >&6
4652 else
4653 if test -n "$GNATBIND"; then
4654 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4655 else
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH
4658 do
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4663 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 break 2
4666 fi
4667 done
4668 done
4669 IFS=$as_save_IFS
4670
4671 fi
4672 fi
4673 GNATBIND=$ac_cv_prog_GNATBIND
4674 if test -n "$GNATBIND"; then
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4676 $as_echo "$GNATBIND" >&6; }
4677 else
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4679 $as_echo "no" >&6; }
4680 fi
4681
4682
4683 fi
4684 if test -z "$ac_cv_prog_GNATBIND"; then
4685 ac_ct_GNATBIND=$GNATBIND
4686 # Extract the first word of "gnatbind", so it can be a program name with args.
4687 set dummy gnatbind; ac_word=$2
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4689 $as_echo_n "checking for $ac_word... " >&6; }
4690 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 if test -n "$ac_ct_GNATBIND"; then
4694 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4695 else
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH
4698 do
4699 IFS=$as_save_IFS
4700 test -z "$as_dir" && as_dir=.
4701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4703 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4705 break 2
4706 fi
4707 done
4708 done
4709 IFS=$as_save_IFS
4710
4711 fi
4712 fi
4713 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4714 if test -n "$ac_ct_GNATBIND"; then
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4716 $as_echo "$ac_ct_GNATBIND" >&6; }
4717 else
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719 $as_echo "no" >&6; }
4720 fi
4721
4722 if test "x$ac_ct_GNATBIND" = x; then
4723 GNATBIND="no"
4724 else
4725 case $cross_compiling:$ac_tool_warned in
4726 yes:)
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4729 ac_tool_warned=yes ;;
4730 esac
4731 GNATBIND=$ac_ct_GNATBIND
4732 fi
4733 else
4734 GNATBIND="$ac_cv_prog_GNATBIND"
4735 fi
4736
4737 if test -n "$ac_tool_prefix"; then
4738 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4739 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4741 $as_echo_n "checking for $ac_word... " >&6; }
4742 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4743 $as_echo_n "(cached) " >&6
4744 else
4745 if test -n "$GNATMAKE"; then
4746 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4747 else
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 for as_dir in $PATH
4750 do
4751 IFS=$as_save_IFS
4752 test -z "$as_dir" && as_dir=.
4753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4755 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4757 break 2
4758 fi
4759 done
4760 done
4761 IFS=$as_save_IFS
4762
4763 fi
4764 fi
4765 GNATMAKE=$ac_cv_prog_GNATMAKE
4766 if test -n "$GNATMAKE"; then
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4768 $as_echo "$GNATMAKE" >&6; }
4769 else
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4771 $as_echo "no" >&6; }
4772 fi
4773
4774
4775 fi
4776 if test -z "$ac_cv_prog_GNATMAKE"; then
4777 ac_ct_GNATMAKE=$GNATMAKE
4778 # Extract the first word of "gnatmake", so it can be a program name with args.
4779 set dummy gnatmake; ac_word=$2
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4781 $as_echo_n "checking for $ac_word... " >&6; }
4782 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4783 $as_echo_n "(cached) " >&6
4784 else
4785 if test -n "$ac_ct_GNATMAKE"; then
4786 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4787 else
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 for as_dir in $PATH
4790 do
4791 IFS=$as_save_IFS
4792 test -z "$as_dir" && as_dir=.
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4795 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4797 break 2
4798 fi
4799 done
4800 done
4801 IFS=$as_save_IFS
4802
4803 fi
4804 fi
4805 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4806 if test -n "$ac_ct_GNATMAKE"; then
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4808 $as_echo "$ac_ct_GNATMAKE" >&6; }
4809 else
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4811 $as_echo "no" >&6; }
4812 fi
4813
4814 if test "x$ac_ct_GNATMAKE" = x; then
4815 GNATMAKE="no"
4816 else
4817 case $cross_compiling:$ac_tool_warned in
4818 yes:)
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4821 ac_tool_warned=yes ;;
4822 esac
4823 GNATMAKE=$ac_ct_GNATMAKE
4824 fi
4825 else
4826 GNATMAKE="$ac_cv_prog_GNATMAKE"
4827 fi
4828
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4830 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4831 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4832 $as_echo_n "(cached) " >&6
4833 else
4834 cat >conftest.adb <<EOF
4835 procedure conftest is begin null; end conftest;
4836 EOF
4837 acx_cv_cc_gcc_supports_ada=no
4838 # There is a bug in old released versions of GCC which causes the
4839 # driver to exit successfully when the appropriate language module
4840 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4841 # Therefore we must check for the error message as well as an
4842 # unsuccessful exit.
4843 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4844 # given a .adb file, but produce no object file. So we must check
4845 # if an object file was really produced to guard against this.
4846 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4847 if test x"$errors" = x && test -f conftest.$ac_objext; then
4848 acx_cv_cc_gcc_supports_ada=yes
4849 fi
4850 rm -f conftest.*
4851 fi
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4853 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4854
4855 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4856 have_gnat=yes
4857 else
4858 have_gnat=no
4859 fi
4860
4861
4862 # autoconf is lame and doesn't give us any substitution variable for this.
4863 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4864 NO_MINUS_C_MINUS_O=yes
4865 else
4866 OUTPUT_OPTION='-o $@'
4867 fi
4868
4869
4870
4871 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4872 # optimizations to be activated explicitly by the toplevel.
4873 case "$CC" in
4874 */prev-gcc/xgcc*) ;;
4875 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4876 esac
4877
4878
4879 # Determine PICFLAG for target gnatlib.
4880
4881
4882
4883
4884 case "${target}" in
4885 # PIC is the default on some targets or must not be used.
4886 *-*-darwin*)
4887 # PIC is the default on this platform
4888 # Common symbols not allowed in MH_DYLIB files
4889 PICFLAG_FOR_TARGET=-fno-common
4890 ;;
4891 alpha*-dec-osf5*)
4892 # PIC is the default.
4893 ;;
4894 hppa*64*-*-hpux*)
4895 # PIC is the default for 64-bit PA HP-UX.
4896 ;;
4897 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4898 ;;
4899 i[34567]86-*-interix3*)
4900 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4901 # Instead, we relocate shared libraries at runtime.
4902 ;;
4903 i[34567]86-*-nto-qnx*)
4904 # QNX uses GNU C++, but need to define -shared option too, otherwise
4905 # it will coredump.
4906 PICFLAG_FOR_TARGET='-fPIC -shared'
4907 ;;
4908 i[34567]86-pc-msdosdjgpp*)
4909 # DJGPP does not support shared libraries at all.
4910 ;;
4911 ia64*-*-hpux*)
4912 # On IA64 HP-UX, PIC is the default but the pic flag
4913 # sets the default TLS model and affects inlining.
4914 PICFLAG_FOR_TARGET=-fPIC
4915 ;;
4916 mips-sgi-irix6*)
4917 # PIC is the default.
4918 ;;
4919 rs6000-ibm-aix* | powerpc-ibm-aix*)
4920 # All AIX code is PIC.
4921 ;;
4922
4923 # Some targets support both -fPIC and -fpic, but prefer the latter.
4924 # FIXME: Why?
4925 i[34567]86-*-* | x86_64-*-*)
4926 PICFLAG_FOR_TARGET=-fpic
4927 ;;
4928 m68k-*-*)
4929 PICFLAG_FOR_TARGET=-fpic
4930 ;;
4931 s390*-*-*)
4932 PICFLAG_FOR_TARGET=-fpic
4933 ;;
4934 # FIXME: Override -fPIC default in libgcc only?
4935 sh-*-linux* | sh[2346lbe]*-*-linux*)
4936 PICFLAG_FOR_TARGET=-fpic
4937 ;;
4938 # FIXME: Simplify to sh*-*-netbsd*?
4939 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4940 sh64-*-netbsd* | sh64l*-*-netbsd*)
4941 PICFLAG_FOR_TARGET=-fpic
4942 ;;
4943 # Default to -fPIC unless specified otherwise.
4944 *)
4945 PICFLAG_FOR_TARGET=-fPIC
4946 ;;
4947 esac
4948
4949 # If the user explicitly uses -fpic/-fPIC, keep that.
4950 case "${CFLAGS_FOR_TARGET}" in
4951 *-fpic*)
4952 PICFLAG_FOR_TARGET=-fpic
4953 ;;
4954 *-fPIC*)
4955 PICFLAG_FOR_TARGET=-fPIC
4956 ;;
4957 esac
4958
4959
4960
4961 # -------------------------
4962 # Check C compiler features
4963 # -------------------------
4964
4965
4966 ac_ext=c
4967 ac_cpp='$CPP $CPPFLAGS'
4968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4972 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4973 # On Suns, sometimes $CPP names a directory.
4974 if test -n "$CPP" && test -d "$CPP"; then
4975 CPP=
4976 fi
4977 if test -z "$CPP"; then
4978 if test "${ac_cv_prog_CPP+set}" = set; then :
4979 $as_echo_n "(cached) " >&6
4980 else
4981 # Double quotes because CPP needs to be expanded
4982 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4983 do
4984 ac_preproc_ok=false
4985 for ac_c_preproc_warn_flag in '' yes
4986 do
4987 # Use a header file that comes with gcc, so configuring glibc
4988 # with a fresh cross-compiler works.
4989 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4990 # <limits.h> exists even on freestanding compilers.
4991 # On the NeXT, cc -E runs the code through the compiler's parser,
4992 # not just through cpp. "Syntax error" is here to catch this case.
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4995 #ifdef __STDC__
4996 # include <limits.h>
4997 #else
4998 # include <assert.h>
4999 #endif
5000 Syntax error
5001 _ACEOF
5002 if ac_fn_c_try_cpp "$LINENO"; then :
5003
5004 else
5005 # Broken: fails on valid input.
5006 continue
5007 fi
5008 rm -f conftest.err conftest.$ac_ext
5009
5010 # OK, works on sane cases. Now check whether nonexistent headers
5011 # can be detected and how.
5012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5013 /* end confdefs.h. */
5014 #include <ac_nonexistent.h>
5015 _ACEOF
5016 if ac_fn_c_try_cpp "$LINENO"; then :
5017 # Broken: success on invalid input.
5018 continue
5019 else
5020 # Passes both tests.
5021 ac_preproc_ok=:
5022 break
5023 fi
5024 rm -f conftest.err conftest.$ac_ext
5025
5026 done
5027 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5028 rm -f conftest.err conftest.$ac_ext
5029 if $ac_preproc_ok; then :
5030 break
5031 fi
5032
5033 done
5034 ac_cv_prog_CPP=$CPP
5035
5036 fi
5037 CPP=$ac_cv_prog_CPP
5038 else
5039 ac_cv_prog_CPP=$CPP
5040 fi
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5042 $as_echo "$CPP" >&6; }
5043 ac_preproc_ok=false
5044 for ac_c_preproc_warn_flag in '' yes
5045 do
5046 # Use a header file that comes with gcc, so configuring glibc
5047 # with a fresh cross-compiler works.
5048 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5049 # <limits.h> exists even on freestanding compilers.
5050 # On the NeXT, cc -E runs the code through the compiler's parser,
5051 # not just through cpp. "Syntax error" is here to catch this case.
5052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053 /* end confdefs.h. */
5054 #ifdef __STDC__
5055 # include <limits.h>
5056 #else
5057 # include <assert.h>
5058 #endif
5059 Syntax error
5060 _ACEOF
5061 if ac_fn_c_try_cpp "$LINENO"; then :
5062
5063 else
5064 # Broken: fails on valid input.
5065 continue
5066 fi
5067 rm -f conftest.err conftest.$ac_ext
5068
5069 # OK, works on sane cases. Now check whether nonexistent headers
5070 # can be detected and how.
5071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5072 /* end confdefs.h. */
5073 #include <ac_nonexistent.h>
5074 _ACEOF
5075 if ac_fn_c_try_cpp "$LINENO"; then :
5076 # Broken: success on invalid input.
5077 continue
5078 else
5079 # Passes both tests.
5080 ac_preproc_ok=:
5081 break
5082 fi
5083 rm -f conftest.err conftest.$ac_ext
5084
5085 done
5086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5087 rm -f conftest.err conftest.$ac_ext
5088 if $ac_preproc_ok; then :
5089
5090 else
5091 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5093 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5094 See \`config.log' for more details." "$LINENO" 5; }
5095 fi
5096
5097 ac_ext=c
5098 ac_cpp='$CPP $CPPFLAGS'
5099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5102
5103
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5105 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5106 if test "${ac_cv_path_GREP+set}" = set; then :
5107 $as_echo_n "(cached) " >&6
5108 else
5109 if test -z "$GREP"; then
5110 ac_path_GREP_found=false
5111 # Loop through the user's path and test for each of PROGNAME-LIST
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5114 do
5115 IFS=$as_save_IFS
5116 test -z "$as_dir" && as_dir=.
5117 for ac_prog in grep ggrep; do
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5120 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5121 # Check for GNU ac_path_GREP and select it if it is found.
5122 # Check for GNU $ac_path_GREP
5123 case `"$ac_path_GREP" --version 2>&1` in
5124 *GNU*)
5125 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5126 *)
5127 ac_count=0
5128 $as_echo_n 0123456789 >"conftest.in"
5129 while :
5130 do
5131 cat "conftest.in" "conftest.in" >"conftest.tmp"
5132 mv "conftest.tmp" "conftest.in"
5133 cp "conftest.in" "conftest.nl"
5134 $as_echo 'GREP' >> "conftest.nl"
5135 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5136 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5137 as_fn_arith $ac_count + 1 && ac_count=$as_val
5138 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5139 # Best one so far, save it but keep looking for a better one
5140 ac_cv_path_GREP="$ac_path_GREP"
5141 ac_path_GREP_max=$ac_count
5142 fi
5143 # 10*(2^10) chars as input seems more than enough
5144 test $ac_count -gt 10 && break
5145 done
5146 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5147 esac
5148
5149 $ac_path_GREP_found && break 3
5150 done
5151 done
5152 done
5153 IFS=$as_save_IFS
5154 if test -z "$ac_cv_path_GREP"; then
5155 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5156 fi
5157 else
5158 ac_cv_path_GREP=$GREP
5159 fi
5160
5161 fi
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5163 $as_echo "$ac_cv_path_GREP" >&6; }
5164 GREP="$ac_cv_path_GREP"
5165
5166
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5168 $as_echo_n "checking for egrep... " >&6; }
5169 if test "${ac_cv_path_EGREP+set}" = set; then :
5170 $as_echo_n "(cached) " >&6
5171 else
5172 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5173 then ac_cv_path_EGREP="$GREP -E"
5174 else
5175 if test -z "$EGREP"; then
5176 ac_path_EGREP_found=false
5177 # Loop through the user's path and test for each of PROGNAME-LIST
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5180 do
5181 IFS=$as_save_IFS
5182 test -z "$as_dir" && as_dir=.
5183 for ac_prog in egrep; do
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5186 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5187 # Check for GNU ac_path_EGREP and select it if it is found.
5188 # Check for GNU $ac_path_EGREP
5189 case `"$ac_path_EGREP" --version 2>&1` in
5190 *GNU*)
5191 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5192 *)
5193 ac_count=0
5194 $as_echo_n 0123456789 >"conftest.in"
5195 while :
5196 do
5197 cat "conftest.in" "conftest.in" >"conftest.tmp"
5198 mv "conftest.tmp" "conftest.in"
5199 cp "conftest.in" "conftest.nl"
5200 $as_echo 'EGREP' >> "conftest.nl"
5201 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5202 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5203 as_fn_arith $ac_count + 1 && ac_count=$as_val
5204 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5205 # Best one so far, save it but keep looking for a better one
5206 ac_cv_path_EGREP="$ac_path_EGREP"
5207 ac_path_EGREP_max=$ac_count
5208 fi
5209 # 10*(2^10) chars as input seems more than enough
5210 test $ac_count -gt 10 && break
5211 done
5212 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5213 esac
5214
5215 $ac_path_EGREP_found && break 3
5216 done
5217 done
5218 done
5219 IFS=$as_save_IFS
5220 if test -z "$ac_cv_path_EGREP"; then
5221 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5222 fi
5223 else
5224 ac_cv_path_EGREP=$EGREP
5225 fi
5226
5227 fi
5228 fi
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5230 $as_echo "$ac_cv_path_EGREP" >&6; }
5231 EGREP="$ac_cv_path_EGREP"
5232
5233
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5235 $as_echo_n "checking for ANSI C header files... " >&6; }
5236 if test "${ac_cv_header_stdc+set}" = set; then :
5237 $as_echo_n "(cached) " >&6
5238 else
5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5240 /* end confdefs.h. */
5241 #include <stdlib.h>
5242 #include <stdarg.h>
5243 #include <string.h>
5244 #include <float.h>
5245
5246 int
5247 main ()
5248 {
5249
5250 ;
5251 return 0;
5252 }
5253 _ACEOF
5254 if ac_fn_c_try_compile "$LINENO"; then :
5255 ac_cv_header_stdc=yes
5256 else
5257 ac_cv_header_stdc=no
5258 fi
5259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5260
5261 if test $ac_cv_header_stdc = yes; then
5262 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5264 /* end confdefs.h. */
5265 #include <string.h>
5266
5267 _ACEOF
5268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5269 $EGREP "memchr" >/dev/null 2>&1; then :
5270
5271 else
5272 ac_cv_header_stdc=no
5273 fi
5274 rm -f conftest*
5275
5276 fi
5277
5278 if test $ac_cv_header_stdc = yes; then
5279 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281 /* end confdefs.h. */
5282 #include <stdlib.h>
5283
5284 _ACEOF
5285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5286 $EGREP "free" >/dev/null 2>&1; then :
5287
5288 else
5289 ac_cv_header_stdc=no
5290 fi
5291 rm -f conftest*
5292
5293 fi
5294
5295 if test $ac_cv_header_stdc = yes; then
5296 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5297 if test "$cross_compiling" = yes; then :
5298 :
5299 else
5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h. */
5302 #include <ctype.h>
5303 #include <stdlib.h>
5304 #if ((' ' & 0x0FF) == 0x020)
5305 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5306 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5307 #else
5308 # define ISLOWER(c) \
5309 (('a' <= (c) && (c) <= 'i') \
5310 || ('j' <= (c) && (c) <= 'r') \
5311 || ('s' <= (c) && (c) <= 'z'))
5312 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5313 #endif
5314
5315 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5316 int
5317 main ()
5318 {
5319 int i;
5320 for (i = 0; i < 256; i++)
5321 if (XOR (islower (i), ISLOWER (i))
5322 || toupper (i) != TOUPPER (i))
5323 return 2;
5324 return 0;
5325 }
5326 _ACEOF
5327 if ac_fn_c_try_run "$LINENO"; then :
5328
5329 else
5330 ac_cv_header_stdc=no
5331 fi
5332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5333 conftest.$ac_objext conftest.beam conftest.$ac_ext
5334 fi
5335
5336 fi
5337 fi
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5339 $as_echo "$ac_cv_header_stdc" >&6; }
5340 if test $ac_cv_header_stdc = yes; then
5341
5342 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5343
5344 fi
5345
5346 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5347 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5348 inttypes.h stdint.h unistd.h
5349 do :
5350 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5351 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5352 "
5353 eval as_val=\$$as_ac_Header
5354 if test "x$as_val" = x""yes; then :
5355 cat >>confdefs.h <<_ACEOF
5356 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5357 _ACEOF
5358
5359 fi
5360
5361 done
5362
5363
5364
5365 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5366 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5367 MINIX=yes
5368 else
5369 MINIX=
5370 fi
5371
5372
5373 if test "$MINIX" = yes; then
5374
5375 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5376
5377
5378 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5379
5380
5381 $as_echo "#define _MINIX 1" >>confdefs.h
5382
5383 fi
5384
5385
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5387 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5388 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h. */
5393
5394 # define __EXTENSIONS__ 1
5395 $ac_includes_default
5396 int
5397 main ()
5398 {
5399
5400 ;
5401 return 0;
5402 }
5403 _ACEOF
5404 if ac_fn_c_try_compile "$LINENO"; then :
5405 ac_cv_safe_to_define___extensions__=yes
5406 else
5407 ac_cv_safe_to_define___extensions__=no
5408 fi
5409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5410 fi
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5412 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5413 test $ac_cv_safe_to_define___extensions__ = yes &&
5414 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5415
5416 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5417
5418 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5419
5420 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5421
5422 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5423
5424
5425 ac_ext=c
5426 ac_cpp='$CPP $CPPFLAGS'
5427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5431 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5432 # On Suns, sometimes $CPP names a directory.
5433 if test -n "$CPP" && test -d "$CPP"; then
5434 CPP=
5435 fi
5436 if test -z "$CPP"; then
5437 if test "${ac_cv_prog_CPP+set}" = set; then :
5438 $as_echo_n "(cached) " >&6
5439 else
5440 # Double quotes because CPP needs to be expanded
5441 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5442 do
5443 ac_preproc_ok=false
5444 for ac_c_preproc_warn_flag in '' yes
5445 do
5446 # Use a header file that comes with gcc, so configuring glibc
5447 # with a fresh cross-compiler works.
5448 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5449 # <limits.h> exists even on freestanding compilers.
5450 # On the NeXT, cc -E runs the code through the compiler's parser,
5451 # not just through cpp. "Syntax error" is here to catch this case.
5452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453 /* end confdefs.h. */
5454 #ifdef __STDC__
5455 # include <limits.h>
5456 #else
5457 # include <assert.h>
5458 #endif
5459 Syntax error
5460 _ACEOF
5461 if ac_fn_c_try_cpp "$LINENO"; then :
5462
5463 else
5464 # Broken: fails on valid input.
5465 continue
5466 fi
5467 rm -f conftest.err conftest.$ac_ext
5468
5469 # OK, works on sane cases. Now check whether nonexistent headers
5470 # can be detected and how.
5471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5472 /* end confdefs.h. */
5473 #include <ac_nonexistent.h>
5474 _ACEOF
5475 if ac_fn_c_try_cpp "$LINENO"; then :
5476 # Broken: success on invalid input.
5477 continue
5478 else
5479 # Passes both tests.
5480 ac_preproc_ok=:
5481 break
5482 fi
5483 rm -f conftest.err conftest.$ac_ext
5484
5485 done
5486 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5487 rm -f conftest.err conftest.$ac_ext
5488 if $ac_preproc_ok; then :
5489 break
5490 fi
5491
5492 done
5493 ac_cv_prog_CPP=$CPP
5494
5495 fi
5496 CPP=$ac_cv_prog_CPP
5497 else
5498 ac_cv_prog_CPP=$CPP
5499 fi
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5501 $as_echo "$CPP" >&6; }
5502 ac_preproc_ok=false
5503 for ac_c_preproc_warn_flag in '' yes
5504 do
5505 # Use a header file that comes with gcc, so configuring glibc
5506 # with a fresh cross-compiler works.
5507 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5508 # <limits.h> exists even on freestanding compilers.
5509 # On the NeXT, cc -E runs the code through the compiler's parser,
5510 # not just through cpp. "Syntax error" is here to catch this case.
5511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512 /* end confdefs.h. */
5513 #ifdef __STDC__
5514 # include <limits.h>
5515 #else
5516 # include <assert.h>
5517 #endif
5518 Syntax error
5519 _ACEOF
5520 if ac_fn_c_try_cpp "$LINENO"; then :
5521
5522 else
5523 # Broken: fails on valid input.
5524 continue
5525 fi
5526 rm -f conftest.err conftest.$ac_ext
5527
5528 # OK, works on sane cases. Now check whether nonexistent headers
5529 # can be detected and how.
5530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5531 /* end confdefs.h. */
5532 #include <ac_nonexistent.h>
5533 _ACEOF
5534 if ac_fn_c_try_cpp "$LINENO"; then :
5535 # Broken: success on invalid input.
5536 continue
5537 else
5538 # Passes both tests.
5539 ac_preproc_ok=:
5540 break
5541 fi
5542 rm -f conftest.err conftest.$ac_ext
5543
5544 done
5545 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5546 rm -f conftest.err conftest.$ac_ext
5547 if $ac_preproc_ok; then :
5548
5549 else
5550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5552 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5553 See \`config.log' for more details." "$LINENO" 5; }
5554 fi
5555
5556 ac_ext=c
5557 ac_cpp='$CPP $CPPFLAGS'
5558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5561
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5563 $as_echo_n "checking for inline... " >&6; }
5564 if test "${ac_cv_c_inline+set}" = set; then :
5565 $as_echo_n "(cached) " >&6
5566 else
5567 ac_cv_c_inline=no
5568 for ac_kw in inline __inline__ __inline; do
5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h. */
5571 #ifndef __cplusplus
5572 typedef int foo_t;
5573 static $ac_kw foo_t static_foo () {return 0; }
5574 $ac_kw foo_t foo () {return 0; }
5575 #endif
5576
5577 _ACEOF
5578 if ac_fn_c_try_compile "$LINENO"; then :
5579 ac_cv_c_inline=$ac_kw
5580 fi
5581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582 test "$ac_cv_c_inline" != no && break
5583 done
5584
5585 fi
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5587 $as_echo "$ac_cv_c_inline" >&6; }
5588
5589 case $ac_cv_c_inline in
5590 inline | yes) ;;
5591 *)
5592 case $ac_cv_c_inline in
5593 no) ac_val=;;
5594 *) ac_val=$ac_cv_c_inline;;
5595 esac
5596 cat >>confdefs.h <<_ACEOF
5597 #ifndef __cplusplus
5598 #define inline $ac_val
5599 #endif
5600 _ACEOF
5601 ;;
5602 esac
5603
5604
5605 # Check whether --enable-largefile was given.
5606 if test "${enable_largefile+set}" = set; then :
5607 enableval=$enable_largefile;
5608 fi
5609
5610 if test "$enable_largefile" != no; then
5611
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5613 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5614 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5615 $as_echo_n "(cached) " >&6
5616 else
5617 ac_cv_sys_largefile_CC=no
5618 if test "$GCC" != yes; then
5619 ac_save_CC=$CC
5620 while :; do
5621 # IRIX 6.2 and later do not support large files by default,
5622 # so use the C compiler's -n32 option if that helps.
5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624 /* end confdefs.h. */
5625 #include <sys/types.h>
5626 /* Check that off_t can represent 2**63 - 1 correctly.
5627 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5628 since some C++ compilers masquerading as C compilers
5629 incorrectly reject 9223372036854775807. */
5630 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5631 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5632 && LARGE_OFF_T % 2147483647 == 1)
5633 ? 1 : -1];
5634 int
5635 main ()
5636 {
5637
5638 ;
5639 return 0;
5640 }
5641 _ACEOF
5642 if ac_fn_c_try_compile "$LINENO"; then :
5643 break
5644 fi
5645 rm -f core conftest.err conftest.$ac_objext
5646 CC="$CC -n32"
5647 if ac_fn_c_try_compile "$LINENO"; then :
5648 ac_cv_sys_largefile_CC=' -n32'; break
5649 fi
5650 rm -f core conftest.err conftest.$ac_objext
5651 break
5652 done
5653 CC=$ac_save_CC
5654 rm -f conftest.$ac_ext
5655 fi
5656 fi
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5658 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5659 if test "$ac_cv_sys_largefile_CC" != no; then
5660 CC=$CC$ac_cv_sys_largefile_CC
5661 fi
5662
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5664 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5665 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5666 $as_echo_n "(cached) " >&6
5667 else
5668 while :; do
5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5671 #include <sys/types.h>
5672 /* Check that off_t can represent 2**63 - 1 correctly.
5673 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5674 since some C++ compilers masquerading as C compilers
5675 incorrectly reject 9223372036854775807. */
5676 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5677 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5678 && LARGE_OFF_T % 2147483647 == 1)
5679 ? 1 : -1];
5680 int
5681 main ()
5682 {
5683
5684 ;
5685 return 0;
5686 }
5687 _ACEOF
5688 if ac_fn_c_try_compile "$LINENO"; then :
5689 ac_cv_sys_file_offset_bits=no; break
5690 fi
5691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h. */
5694 #define _FILE_OFFSET_BITS 64
5695 #include <sys/types.h>
5696 /* Check that off_t can represent 2**63 - 1 correctly.
5697 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5698 since some C++ compilers masquerading as C compilers
5699 incorrectly reject 9223372036854775807. */
5700 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5701 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5702 && LARGE_OFF_T % 2147483647 == 1)
5703 ? 1 : -1];
5704 int
5705 main ()
5706 {
5707
5708 ;
5709 return 0;
5710 }
5711 _ACEOF
5712 if ac_fn_c_try_compile "$LINENO"; then :
5713 ac_cv_sys_file_offset_bits=64; break
5714 fi
5715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5716 ac_cv_sys_file_offset_bits=unknown
5717 break
5718 done
5719 fi
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5721 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5722 case $ac_cv_sys_file_offset_bits in #(
5723 no | unknown) ;;
5724 *)
5725 cat >>confdefs.h <<_ACEOF
5726 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5727 _ACEOF
5728 ;;
5729 esac
5730 rm -rf conftest*
5731 if test $ac_cv_sys_file_offset_bits = unknown; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5733 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5734 if test "${ac_cv_sys_large_files+set}" = set; then :
5735 $as_echo_n "(cached) " >&6
5736 else
5737 while :; do
5738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739 /* end confdefs.h. */
5740 #include <sys/types.h>
5741 /* Check that off_t can represent 2**63 - 1 correctly.
5742 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5743 since some C++ compilers masquerading as C compilers
5744 incorrectly reject 9223372036854775807. */
5745 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5746 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5747 && LARGE_OFF_T % 2147483647 == 1)
5748 ? 1 : -1];
5749 int
5750 main ()
5751 {
5752
5753 ;
5754 return 0;
5755 }
5756 _ACEOF
5757 if ac_fn_c_try_compile "$LINENO"; then :
5758 ac_cv_sys_large_files=no; break
5759 fi
5760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h. */
5763 #define _LARGE_FILES 1
5764 #include <sys/types.h>
5765 /* Check that off_t can represent 2**63 - 1 correctly.
5766 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5767 since some C++ compilers masquerading as C compilers
5768 incorrectly reject 9223372036854775807. */
5769 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5770 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5771 && LARGE_OFF_T % 2147483647 == 1)
5772 ? 1 : -1];
5773 int
5774 main ()
5775 {
5776
5777 ;
5778 return 0;
5779 }
5780 _ACEOF
5781 if ac_fn_c_try_compile "$LINENO"; then :
5782 ac_cv_sys_large_files=1; break
5783 fi
5784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5785 ac_cv_sys_large_files=unknown
5786 break
5787 done
5788 fi
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5790 $as_echo "$ac_cv_sys_large_files" >&6; }
5791 case $ac_cv_sys_large_files in #(
5792 no | unknown) ;;
5793 *)
5794 cat >>confdefs.h <<_ACEOF
5795 #define _LARGE_FILES $ac_cv_sys_large_files
5796 _ACEOF
5797 ;;
5798 esac
5799 rm -rf conftest*
5800 fi
5801 fi
5802
5803
5804 # sizeof(char) is 1 by definition.
5805 # The cast to long int works around a bug in the HP C Compiler
5806 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5807 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5808 # This bug is HP SR number 8606223364.
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5810 $as_echo_n "checking size of void *... " >&6; }
5811 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5812 $as_echo_n "(cached) " >&6
5813 else
5814 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5815
5816 else
5817 if test "$ac_cv_type_void_p" = yes; then
5818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5820 { as_fn_set_status 77
5821 as_fn_error "cannot compute sizeof (void *)
5822 See \`config.log' for more details." "$LINENO" 5; }; }
5823 else
5824 ac_cv_sizeof_void_p=0
5825 fi
5826 fi
5827
5828 fi
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5830 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5831
5832
5833
5834 cat >>confdefs.h <<_ACEOF
5835 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5836 _ACEOF
5837
5838
5839 # The cast to long int works around a bug in the HP C Compiler
5840 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5841 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5842 # This bug is HP SR number 8606223364.
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5844 $as_echo_n "checking size of short... " >&6; }
5845 if test "${ac_cv_sizeof_short+set}" = set; then :
5846 $as_echo_n "(cached) " >&6
5847 else
5848 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5849
5850 else
5851 if test "$ac_cv_type_short" = yes; then
5852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5854 { as_fn_set_status 77
5855 as_fn_error "cannot compute sizeof (short)
5856 See \`config.log' for more details." "$LINENO" 5; }; }
5857 else
5858 ac_cv_sizeof_short=0
5859 fi
5860 fi
5861
5862 fi
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5864 $as_echo "$ac_cv_sizeof_short" >&6; }
5865
5866
5867
5868 cat >>confdefs.h <<_ACEOF
5869 #define SIZEOF_SHORT $ac_cv_sizeof_short
5870 _ACEOF
5871
5872
5873 # The cast to long int works around a bug in the HP C Compiler
5874 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5875 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5876 # This bug is HP SR number 8606223364.
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5878 $as_echo_n "checking size of int... " >&6; }
5879 if test "${ac_cv_sizeof_int+set}" = set; then :
5880 $as_echo_n "(cached) " >&6
5881 else
5882 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5883
5884 else
5885 if test "$ac_cv_type_int" = yes; then
5886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5888 { as_fn_set_status 77
5889 as_fn_error "cannot compute sizeof (int)
5890 See \`config.log' for more details." "$LINENO" 5; }; }
5891 else
5892 ac_cv_sizeof_int=0
5893 fi
5894 fi
5895
5896 fi
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5898 $as_echo "$ac_cv_sizeof_int" >&6; }
5899
5900
5901
5902 cat >>confdefs.h <<_ACEOF
5903 #define SIZEOF_INT $ac_cv_sizeof_int
5904 _ACEOF
5905
5906
5907 # The cast to long int works around a bug in the HP C Compiler
5908 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5909 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5910 # This bug is HP SR number 8606223364.
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5912 $as_echo_n "checking size of long... " >&6; }
5913 if test "${ac_cv_sizeof_long+set}" = set; then :
5914 $as_echo_n "(cached) " >&6
5915 else
5916 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5917
5918 else
5919 if test "$ac_cv_type_long" = yes; then
5920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5922 { as_fn_set_status 77
5923 as_fn_error "cannot compute sizeof (long)
5924 See \`config.log' for more details." "$LINENO" 5; }; }
5925 else
5926 ac_cv_sizeof_long=0
5927 fi
5928 fi
5929
5930 fi
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5932 $as_echo "$ac_cv_sizeof_long" >&6; }
5933
5934
5935
5936 cat >>confdefs.h <<_ACEOF
5937 #define SIZEOF_LONG $ac_cv_sizeof_long
5938 _ACEOF
5939
5940
5941 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5942 if test "x$ac_cv_type_long_long" = x""yes; then :
5943
5944 cat >>confdefs.h <<_ACEOF
5945 #define HAVE_LONG_LONG 1
5946 _ACEOF
5947
5948 # The cast to long int works around a bug in the HP C Compiler
5949 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5950 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5951 # This bug is HP SR number 8606223364.
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5953 $as_echo_n "checking size of long long... " >&6; }
5954 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5955 $as_echo_n "(cached) " >&6
5956 else
5957 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5958
5959 else
5960 if test "$ac_cv_type_long_long" = yes; then
5961 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5963 { as_fn_set_status 77
5964 as_fn_error "cannot compute sizeof (long long)
5965 See \`config.log' for more details." "$LINENO" 5; }; }
5966 else
5967 ac_cv_sizeof_long_long=0
5968 fi
5969 fi
5970
5971 fi
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5973 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5974
5975
5976
5977 cat >>confdefs.h <<_ACEOF
5978 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5979 _ACEOF
5980
5981
5982 fi
5983
5984 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5985 if test "x$ac_cv_type___int64" = x""yes; then :
5986
5987 cat >>confdefs.h <<_ACEOF
5988 #define HAVE___INT64 1
5989 _ACEOF
5990
5991 # The cast to long int works around a bug in the HP C Compiler
5992 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5993 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5994 # This bug is HP SR number 8606223364.
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5996 $as_echo_n "checking size of __int64... " >&6; }
5997 if test "${ac_cv_sizeof___int64+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
5999 else
6000 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6001
6002 else
6003 if test "$ac_cv_type___int64" = yes; then
6004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6006 { as_fn_set_status 77
6007 as_fn_error "cannot compute sizeof (__int64)
6008 See \`config.log' for more details." "$LINENO" 5; }; }
6009 else
6010 ac_cv_sizeof___int64=0
6011 fi
6012 fi
6013
6014 fi
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6016 $as_echo "$ac_cv_sizeof___int64" >&6; }
6017
6018
6019
6020 cat >>confdefs.h <<_ACEOF
6021 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6022 _ACEOF
6023
6024
6025 fi
6026
6027 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6028 case $ac_cv_c_int8_t in #(
6029 no|yes) ;; #(
6030 *)
6031
6032 cat >>confdefs.h <<_ACEOF
6033 #define int8_t $ac_cv_c_int8_t
6034 _ACEOF
6035 ;;
6036 esac
6037
6038 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6039 case $ac_cv_c_int16_t in #(
6040 no|yes) ;; #(
6041 *)
6042
6043 cat >>confdefs.h <<_ACEOF
6044 #define int16_t $ac_cv_c_int16_t
6045 _ACEOF
6046 ;;
6047 esac
6048
6049 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6050 case $ac_cv_c_int32_t in #(
6051 no|yes) ;; #(
6052 *)
6053
6054 cat >>confdefs.h <<_ACEOF
6055 #define int32_t $ac_cv_c_int32_t
6056 _ACEOF
6057 ;;
6058 esac
6059
6060 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6061 case $ac_cv_c_int64_t in #(
6062 no|yes) ;; #(
6063 *)
6064
6065 cat >>confdefs.h <<_ACEOF
6066 #define int64_t $ac_cv_c_int64_t
6067 _ACEOF
6068 ;;
6069 esac
6070
6071
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6073 $as_echo_n "checking for long long int... " >&6; }
6074 if test "${ac_cv_type_long_long_int+set}" = set; then :
6075 $as_echo_n "(cached) " >&6
6076 else
6077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6078 /* end confdefs.h. */
6079
6080 /* For now, do not test the preprocessor; as of 2007 there are too many
6081 implementations with broken preprocessors. Perhaps this can
6082 be revisited in 2012. In the meantime, code should not expect
6083 #if to work with literals wider than 32 bits. */
6084 /* Test literals. */
6085 long long int ll = 9223372036854775807ll;
6086 long long int nll = -9223372036854775807LL;
6087 unsigned long long int ull = 18446744073709551615ULL;
6088 /* Test constant expressions. */
6089 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6090 ? 1 : -1)];
6091 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6092 ? 1 : -1)];
6093 int i = 63;
6094 int
6095 main ()
6096 {
6097 /* Test availability of runtime routines for shift and division. */
6098 long long int llmax = 9223372036854775807ll;
6099 unsigned long long int ullmax = 18446744073709551615ull;
6100 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6101 | (llmax / ll) | (llmax % ll)
6102 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6103 | (ullmax / ull) | (ullmax % ull));
6104 ;
6105 return 0;
6106 }
6107
6108 _ACEOF
6109 if ac_fn_c_try_link "$LINENO"; then :
6110 if test "$cross_compiling" = yes; then :
6111 ac_cv_type_long_long_int=yes
6112 else
6113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114 /* end confdefs.h. */
6115 #include <limits.h>
6116 #ifndef LLONG_MAX
6117 # define HALF \
6118 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6119 # define LLONG_MAX (HALF - 1 + HALF)
6120 #endif
6121 int
6122 main ()
6123 {
6124 long long int n = 1;
6125 int i;
6126 for (i = 0; ; i++)
6127 {
6128 long long int m = n << i;
6129 if (m >> i != n)
6130 return 1;
6131 if (LLONG_MAX / 2 < m)
6132 break;
6133 }
6134 return 0;
6135 ;
6136 return 0;
6137 }
6138 _ACEOF
6139 if ac_fn_c_try_run "$LINENO"; then :
6140 ac_cv_type_long_long_int=yes
6141 else
6142 ac_cv_type_long_long_int=no
6143 fi
6144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6145 conftest.$ac_objext conftest.beam conftest.$ac_ext
6146 fi
6147
6148 else
6149 ac_cv_type_long_long_int=no
6150 fi
6151 rm -f core conftest.err conftest.$ac_objext \
6152 conftest$ac_exeext conftest.$ac_ext
6153 fi
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6155 $as_echo "$ac_cv_type_long_long_int" >&6; }
6156 if test $ac_cv_type_long_long_int = yes; then
6157
6158 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6159
6160 fi
6161
6162
6163
6164 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6165 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6166
6167 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6168
6169 else
6170 test $ac_cv_type_long_long_int = yes \
6171 && ac_type='long long int' \
6172 || ac_type='long int'
6173
6174 cat >>confdefs.h <<_ACEOF
6175 #define intmax_t $ac_type
6176 _ACEOF
6177
6178 fi
6179
6180
6181
6182 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6183 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6184
6185 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6186
6187 else
6188 for ac_type in 'int' 'long int' 'long long int'; do
6189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190 /* end confdefs.h. */
6191 $ac_includes_default
6192 int
6193 main ()
6194 {
6195 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6196 test_array [0] = 0
6197
6198 ;
6199 return 0;
6200 }
6201 _ACEOF
6202 if ac_fn_c_try_compile "$LINENO"; then :
6203
6204 cat >>confdefs.h <<_ACEOF
6205 #define intptr_t $ac_type
6206 _ACEOF
6207
6208 ac_type=
6209 fi
6210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6211 test -z "$ac_type" && break
6212 done
6213 fi
6214
6215
6216 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6217 case $ac_cv_c_uint8_t in #(
6218 no|yes) ;; #(
6219 *)
6220
6221 $as_echo "#define _UINT8_T 1" >>confdefs.h
6222
6223
6224 cat >>confdefs.h <<_ACEOF
6225 #define uint8_t $ac_cv_c_uint8_t
6226 _ACEOF
6227 ;;
6228 esac
6229
6230 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6231 case $ac_cv_c_uint16_t in #(
6232 no|yes) ;; #(
6233 *)
6234
6235
6236 cat >>confdefs.h <<_ACEOF
6237 #define uint16_t $ac_cv_c_uint16_t
6238 _ACEOF
6239 ;;
6240 esac
6241
6242 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6243 case $ac_cv_c_uint32_t in #(
6244 no|yes) ;; #(
6245 *)
6246
6247 $as_echo "#define _UINT32_T 1" >>confdefs.h
6248
6249
6250 cat >>confdefs.h <<_ACEOF
6251 #define uint32_t $ac_cv_c_uint32_t
6252 _ACEOF
6253 ;;
6254 esac
6255
6256 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6257 case $ac_cv_c_uint64_t in #(
6258 no|yes) ;; #(
6259 *)
6260
6261 $as_echo "#define _UINT64_T 1" >>confdefs.h
6262
6263
6264 cat >>confdefs.h <<_ACEOF
6265 #define uint64_t $ac_cv_c_uint64_t
6266 _ACEOF
6267 ;;
6268 esac
6269
6270
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6272 $as_echo_n "checking for unsigned long long int... " >&6; }
6273 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6274 $as_echo_n "(cached) " >&6
6275 else
6276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6277 /* end confdefs.h. */
6278
6279 /* For now, do not test the preprocessor; as of 2007 there are too many
6280 implementations with broken preprocessors. Perhaps this can
6281 be revisited in 2012. In the meantime, code should not expect
6282 #if to work with literals wider than 32 bits. */
6283 /* Test literals. */
6284 long long int ll = 9223372036854775807ll;
6285 long long int nll = -9223372036854775807LL;
6286 unsigned long long int ull = 18446744073709551615ULL;
6287 /* Test constant expressions. */
6288 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6289 ? 1 : -1)];
6290 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6291 ? 1 : -1)];
6292 int i = 63;
6293 int
6294 main ()
6295 {
6296 /* Test availability of runtime routines for shift and division. */
6297 long long int llmax = 9223372036854775807ll;
6298 unsigned long long int ullmax = 18446744073709551615ull;
6299 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6300 | (llmax / ll) | (llmax % ll)
6301 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6302 | (ullmax / ull) | (ullmax % ull));
6303 ;
6304 return 0;
6305 }
6306
6307 _ACEOF
6308 if ac_fn_c_try_link "$LINENO"; then :
6309 ac_cv_type_unsigned_long_long_int=yes
6310 else
6311 ac_cv_type_unsigned_long_long_int=no
6312 fi
6313 rm -f core conftest.err conftest.$ac_objext \
6314 conftest$ac_exeext conftest.$ac_ext
6315 fi
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6317 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6318 if test $ac_cv_type_unsigned_long_long_int = yes; then
6319
6320 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6321
6322 fi
6323
6324
6325
6326 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6327 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6328
6329 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6330
6331 else
6332 test $ac_cv_type_unsigned_long_long_int = yes \
6333 && ac_type='unsigned long long int' \
6334 || ac_type='unsigned long int'
6335
6336 cat >>confdefs.h <<_ACEOF
6337 #define uintmax_t $ac_type
6338 _ACEOF
6339
6340 fi
6341
6342
6343
6344 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6345 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6346
6347 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6348
6349 else
6350 for ac_type in 'unsigned int' 'unsigned long int' \
6351 'unsigned long long int'; do
6352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6353 /* end confdefs.h. */
6354 $ac_includes_default
6355 int
6356 main ()
6357 {
6358 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6359 test_array [0] = 0
6360
6361 ;
6362 return 0;
6363 }
6364 _ACEOF
6365 if ac_fn_c_try_compile "$LINENO"; then :
6366
6367 cat >>confdefs.h <<_ACEOF
6368 #define uintptr_t $ac_type
6369 _ACEOF
6370
6371 ac_type=
6372 fi
6373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6374 test -z "$ac_type" && break
6375 done
6376 fi
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392 # ---------------------
6393 # Warnings and checking
6394 # ---------------------
6395
6396 # Check $CC warning features (if it's GCC).
6397 # We want to use -pedantic, but we don't want warnings about
6398 # * 'long long'
6399 # * variadic macros
6400 # * overlong strings
6401 # So, we only use -pedantic if we can disable those warnings.
6402
6403 loose_warn=
6404 save_CFLAGS="$CFLAGS"
6405 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6406 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6407
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6409 $as_echo_n "checking whether $CC supports $option... " >&6; }
6410 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6411 $as_echo_n "(cached) " >&6
6412 else
6413 CFLAGS="$option"
6414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6415 /* end confdefs.h. */
6416
6417 int
6418 main ()
6419 {
6420
6421 ;
6422 return 0;
6423 }
6424 _ACEOF
6425 if ac_fn_c_try_compile "$LINENO"; then :
6426 eval "$as_acx_Woption=yes"
6427 else
6428 eval "$as_acx_Woption=no"
6429 fi
6430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6431
6432 fi
6433 eval ac_res=\$$as_acx_Woption
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6435 $as_echo "$ac_res" >&6; }
6436 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6437 loose_warn="$loose_warn${loose_warn:+ }$option"
6438 fi
6439 done
6440 CFLAGS="$save_CFLAGS"
6441
6442 c_loose_warn=
6443 save_CFLAGS="$CFLAGS"
6444 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6445 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6446
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6448 $as_echo_n "checking whether $CC supports $option... " >&6; }
6449 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6450 $as_echo_n "(cached) " >&6
6451 else
6452 CFLAGS="$option"
6453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6454 /* end confdefs.h. */
6455
6456 int
6457 main ()
6458 {
6459
6460 ;
6461 return 0;
6462 }
6463 _ACEOF
6464 if ac_fn_c_try_compile "$LINENO"; then :
6465 eval "$as_acx_Woption=yes"
6466 else
6467 eval "$as_acx_Woption=no"
6468 fi
6469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6470
6471 fi
6472 eval ac_res=\$$as_acx_Woption
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6474 $as_echo "$ac_res" >&6; }
6475 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6476 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6477 fi
6478 done
6479 CFLAGS="$save_CFLAGS"
6480
6481 strict_warn=
6482 save_CFLAGS="$CFLAGS"
6483 for option in -Wmissing-format-attribute; do
6484 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6485
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6487 $as_echo_n "checking whether $CC supports $option... " >&6; }
6488 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6489 $as_echo_n "(cached) " >&6
6490 else
6491 CFLAGS="$option"
6492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6493 /* end confdefs.h. */
6494
6495 int
6496 main ()
6497 {
6498
6499 ;
6500 return 0;
6501 }
6502 _ACEOF
6503 if ac_fn_c_try_compile "$LINENO"; then :
6504 eval "$as_acx_Woption=yes"
6505 else
6506 eval "$as_acx_Woption=no"
6507 fi
6508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6509
6510 fi
6511 eval ac_res=\$$as_acx_Woption
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6513 $as_echo "$ac_res" >&6; }
6514 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6515 strict_warn="$strict_warn${strict_warn:+ }$option"
6516 fi
6517 done
6518 CFLAGS="$save_CFLAGS"
6519
6520 c_strict_warn=
6521 save_CFLAGS="$CFLAGS"
6522 for option in -Wold-style-definition -Wc++-compat; do
6523 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6524
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6526 $as_echo_n "checking whether $CC supports $option... " >&6; }
6527 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6528 $as_echo_n "(cached) " >&6
6529 else
6530 CFLAGS="$option"
6531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6532 /* end confdefs.h. */
6533
6534 int
6535 main ()
6536 {
6537
6538 ;
6539 return 0;
6540 }
6541 _ACEOF
6542 if ac_fn_c_try_compile "$LINENO"; then :
6543 eval "$as_acx_Woption=yes"
6544 else
6545 eval "$as_acx_Woption=no"
6546 fi
6547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548
6549 fi
6550 eval ac_res=\$$as_acx_Woption
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6552 $as_echo "$ac_res" >&6; }
6553 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6554 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6555 fi
6556 done
6557 CFLAGS="$save_CFLAGS"
6558
6559 if test "$GCC" = yes; then :
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6561 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6562 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6563 $as_echo_n "(cached) " >&6
6564 else
6565 save_CFLAGS="$CFLAGS"
6566 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6568 /* end confdefs.h. */
6569
6570 int
6571 main ()
6572 {
6573
6574 ;
6575 return 0;
6576 }
6577 _ACEOF
6578 if ac_fn_c_try_compile "$LINENO"; then :
6579 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6580 else
6581 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6582 fi
6583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6584 CFLAGS="$save_CFLAGS"
6585 fi
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6587 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6588 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6589 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6590 fi
6591
6592 fi
6593
6594 # Check whether --enable-werror-always was given.
6595 if test "${enable_werror_always+set}" = set; then :
6596 enableval=$enable_werror_always;
6597 else
6598 enable_werror_always=no
6599 fi
6600
6601 if test $enable_werror_always = yes; then :
6602 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6603 fi
6604
6605
6606
6607 # The above macros do nothing if the compiler is not GCC. However, the
6608 # Makefile has more goo to add other flags, so these variables are used
6609 # to enable warnings only for GCC.
6610 warn_cflags=
6611 warn_cxxflags=
6612 if test "x$GCC" = "xyes"; then
6613 warn_cflags='$(GCC_WARN_CFLAGS)'
6614 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6615 fi
6616
6617
6618
6619 # Enable expensive internal checks
6620 is_release=
6621 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6622 is_release=yes
6623 fi
6624
6625 # Check whether --enable-checking was given.
6626 if test "${enable_checking+set}" = set; then :
6627 enableval=$enable_checking; ac_checking_flags="${enableval}"
6628 else
6629
6630 # Determine the default checks.
6631 if test x$is_release = x ; then
6632 ac_checking_flags=yes
6633 else
6634 ac_checking_flags=release
6635 fi
6636 fi
6637
6638 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6639 for check in release $ac_checking_flags
6640 do
6641 case $check in
6642 # these set all the flags to specific states
6643 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6644 ac_fold_checking= ; ac_gc_checking=1 ;
6645 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6646 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6647 ac_tree_checking=1 ; ac_valgrind_checking= ;
6648 ac_types_checking=1 ;;
6649 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6650 ac_fold_checking= ; ac_gc_checking= ;
6651 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6652 ac_rtlflag_checking= ; ac_runtime_checking= ;
6653 ac_tree_checking= ; ac_valgrind_checking= ;
6654 ac_types_checking= ;;
6655 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6656 ac_fold_checking=1 ; ac_gc_checking=1 ;
6657 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6658 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6659 ac_tree_checking=1 ; ac_valgrind_checking= ;
6660 ac_types_checking=1 ;;
6661 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6662 ac_fold_checking= ; ac_gc_checking= ;
6663 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6664 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6665 ac_tree_checking= ; ac_valgrind_checking= ;
6666 ac_types_checking= ;;
6667 # these enable particular checks
6668 assert) ac_assert_checking=1 ;;
6669 df) ac_df_checking=1 ;;
6670 fold) ac_fold_checking=1 ;;
6671 gc) ac_gc_checking=1 ;;
6672 gcac) ac_gc_always_collect=1 ;;
6673 gimple) ac_gimple_checking=1 ;;
6674 misc) ac_checking=1 ;;
6675 rtl) ac_rtl_checking=1 ;;
6676 rtlflag) ac_rtlflag_checking=1 ;;
6677 runtime) ac_runtime_checking=1 ;;
6678 tree) ac_tree_checking=1 ;;
6679 types) ac_types_checking=1 ;;
6680 valgrind) ac_valgrind_checking=1 ;;
6681 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6682 esac
6683 done
6684 IFS="$ac_save_IFS"
6685
6686 nocommon_flag=""
6687 if test x$ac_checking != x ; then
6688
6689 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6690
6691 nocommon_flag=-fno-common
6692 fi
6693
6694 if test x$ac_df_checking != x ; then
6695
6696 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6697
6698 fi
6699 if test x$ac_assert_checking != x ; then
6700
6701 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6702
6703 fi
6704 if test x$ac_gimple_checking != x ; then
6705
6706 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6707
6708 fi
6709
6710 if test x$ac_runtime_checking != x ; then
6711
6712 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6713
6714 fi
6715 if test x$ac_tree_checking != x ; then
6716
6717 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6718
6719 TREEBROWSER=tree-browser.o
6720 fi
6721 if test x$ac_types_checking != x ; then
6722
6723 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6724
6725 fi
6726
6727 if test x$ac_rtl_checking != x ; then
6728
6729 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6730
6731 fi
6732 if test x$ac_rtlflag_checking != x ; then
6733
6734 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6735
6736 fi
6737 if test x$ac_gc_checking != x ; then
6738
6739 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6740
6741 fi
6742 if test x$ac_gc_always_collect != x ; then
6743
6744 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6745
6746 fi
6747 if test x$ac_fold_checking != x ; then
6748
6749 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6750
6751 fi
6752 valgrind_path_defines=
6753 valgrind_command=
6754
6755 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6756 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6757 have_valgrind_h=yes
6758 else
6759 have_valgrind_h=no
6760 fi
6761
6762
6763
6764 if test x$ac_valgrind_checking != x ; then
6765 # It is certainly possible that there's valgrind but no valgrind.h.
6766 # GCC relies on making annotations so we must have both.
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6768 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6770 /* end confdefs.h. */
6771 #include <valgrind/memcheck.h>
6772 #ifndef VALGRIND_DISCARD
6773 #error VALGRIND_DISCARD not defined
6774 #endif
6775 _ACEOF
6776 if ac_fn_c_try_cpp "$LINENO"; then :
6777 gcc_cv_header_valgrind_memcheck_h=yes
6778 else
6779 gcc_cv_header_valgrind_memcheck_h=no
6780 fi
6781 rm -f conftest.err conftest.$ac_ext
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6783 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6785 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787 /* end confdefs.h. */
6788 #include <memcheck.h>
6789 #ifndef VALGRIND_DISCARD
6790 #error VALGRIND_DISCARD not defined
6791 #endif
6792 _ACEOF
6793 if ac_fn_c_try_cpp "$LINENO"; then :
6794 gcc_cv_header_memcheck_h=yes
6795 else
6796 gcc_cv_header_memcheck_h=no
6797 fi
6798 rm -f conftest.err conftest.$ac_ext
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6800 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6801
6802 # Prepare PATH_SEPARATOR.
6803 # The user is always right.
6804 if test "${PATH_SEPARATOR+set}" != set; then
6805 echo "#! /bin/sh" >conf$$.sh
6806 echo "exit 0" >>conf$$.sh
6807 chmod +x conf$$.sh
6808 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6809 PATH_SEPARATOR=';'
6810 else
6811 PATH_SEPARATOR=:
6812 fi
6813 rm -f conf$$.sh
6814 fi
6815
6816 # Find out how to test for executable files. Don't use a zero-byte file,
6817 # as systems may use methods other than mode bits to determine executability.
6818 cat >conf$$.file <<_ASEOF
6819 #! /bin/sh
6820 exit 0
6821 _ASEOF
6822 chmod +x conf$$.file
6823 if test -x conf$$.file >/dev/null 2>&1; then
6824 ac_executable_p="test -x"
6825 else
6826 ac_executable_p="test -f"
6827 fi
6828 rm -f conf$$.file
6829
6830 # Extract the first word of "valgrind", so it can be a program name with args.
6831 set dummy valgrind; ac_word=$2
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6833 $as_echo_n "checking for $ac_word... " >&6; }
6834 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6835 $as_echo_n "(cached) " >&6
6836 else
6837 case "$valgrind_path" in
6838 [\\/]* | ?:[\\/]*)
6839 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6840 ;;
6841 *)
6842 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6843 for ac_dir in $PATH; do
6844 IFS="$ac_save_IFS"
6845 test -z "$ac_dir" && ac_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6848 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6849 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6850 break 2
6851 fi
6852 fi
6853 done
6854 done
6855 IFS="$ac_save_IFS"
6856 ;;
6857 esac
6858 fi
6859 valgrind_path="$ac_cv_path_valgrind_path"
6860 if test -n "$valgrind_path"; then
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6862 $as_echo "$valgrind_path" >&6; }
6863 else
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6865 $as_echo "no" >&6; }
6866 fi
6867
6868 if test "x$valgrind_path" = "x" \
6869 || (test $have_valgrind_h = no \
6870 && test $gcc_cv_header_memcheck_h = no \
6871 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6872 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6873 fi
6874 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6875 valgrind_command="$valgrind_path -q"
6876
6877 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6878
6879 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6880
6881 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6882
6883 fi
6884 if test $gcc_cv_header_memcheck_h = yes; then
6885
6886 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6887
6888 fi
6889 fi
6890
6891
6892
6893 # Enable code coverage collection
6894 # Check whether --enable-coverage was given.
6895 if test "${enable_coverage+set}" = set; then :
6896 enableval=$enable_coverage; case "${enableval}" in
6897 yes|noopt)
6898 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6899 ;;
6900 opt)
6901 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6902 ;;
6903 no)
6904 # a.k.a. --disable-coverage
6905 coverage_flags=""
6906 ;;
6907 *)
6908 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6909 ;;
6910 esac
6911 else
6912 coverage_flags=""
6913 fi
6914
6915
6916
6917 # Check whether --enable-gather-detailed-mem-stats was given.
6918 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6919 enableval=$enable_gather_detailed_mem_stats;
6920 else
6921 enable_gather_detailed_mem_stats=no
6922 fi
6923
6924 if test x$enable_gather_detailed_mem_stats = xyes ; then
6925
6926 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6927
6928 fi
6929
6930 # -------------------------------
6931 # Miscenalleous configure options
6932 # -------------------------------
6933
6934 # See if we are building gcc with C++.
6935 # Check whether --enable-build-with-cxx was given.
6936 if test "${enable_build_with_cxx+set}" = set; then :
6937 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6938 else
6939 ENABLE_BUILD_WITH_CXX=no
6940 fi
6941
6942
6943 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6944
6945 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6946
6947 fi
6948
6949 # With stabs
6950
6951 # Check whether --with-stabs was given.
6952 if test "${with_stabs+set}" = set; then :
6953 withval=$with_stabs; stabs="$with_stabs"
6954 else
6955 stabs=no
6956 fi
6957
6958
6959 # Determine whether or not multilibs are enabled.
6960 # Check whether --enable-multilib was given.
6961 if test "${enable_multilib+set}" = set; then :
6962 enableval=$enable_multilib;
6963 else
6964 enable_multilib=yes
6965 fi
6966
6967
6968
6969 # Enable __cxa_atexit for C++.
6970 # Check whether --enable-__cxa_atexit was given.
6971 if test "${enable___cxa_atexit+set}" = set; then :
6972 enableval=$enable___cxa_atexit;
6973 fi
6974
6975
6976 # Enable C extension for decimal float if target supports it.
6977
6978 # Check whether --enable-decimal-float was given.
6979 if test "${enable_decimal_float+set}" = set; then :
6980 enableval=$enable_decimal_float;
6981 case $enable_decimal_float in
6982 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6983 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6984 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6985 esac
6986
6987 else
6988
6989 case $target in
6990 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6991 i?86*-*-mingw* | x86_64*-*-mingw* | \
6992 i?86*-*-cygwin*)
6993 enable_decimal_float=yes
6994 ;;
6995 *)
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6997 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6998 enable_decimal_float=no
6999 ;;
7000 esac
7001
7002 fi
7003
7004
7005 # x86's use BID format instead of DPD
7006 case x$enable_decimal_float in
7007 xyes)
7008 case $target in
7009 i?86*-*-* | x86_64*-*-*)
7010 enable_decimal_float=bid
7011 ;;
7012 *)
7013 enable_decimal_float=dpd
7014 ;;
7015 esac
7016 default_decimal_float=$enable_decimal_float
7017 ;;
7018 xno)
7019 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7020 # dependency on libdecnumber.
7021 default_decimal_float=dpd
7022 ;;
7023 esac
7024
7025
7026
7027
7028 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7029
7030 cat >>confdefs.h <<_ACEOF
7031 #define ENABLE_DECIMAL_FLOAT $dfp
7032 _ACEOF
7033
7034
7035 # Use default_decimal_float for dependency.
7036 enable_decimal_float=$default_decimal_float
7037
7038 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7039
7040 cat >>confdefs.h <<_ACEOF
7041 #define ENABLE_DECIMAL_BID_FORMAT $bid
7042 _ACEOF
7043
7044
7045 # Enable C extension for fixed-point arithmetic.
7046 # Check whether --enable-fixed-point was given.
7047 if test "${enable_fixed_point+set}" = set; then :
7048 enableval=$enable_fixed_point;
7049 else
7050
7051 case $target in
7052 arm*)
7053 enable_fixed_point=yes
7054 ;;
7055
7056 mips*-*-*)
7057 case $host in
7058 mips*-sgi-irix*)
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
7060 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
7061 enable_fixed_point=no
7062 ;;
7063 *)
7064 enable_fixed_point=yes
7065 ;;
7066 esac
7067 ;;
7068 *)
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7070 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7071 enable_fixed_point=no
7072 ;;
7073 esac
7074
7075 fi
7076
7077
7078
7079 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7080
7081 cat >>confdefs.h <<_ACEOF
7082 #define ENABLE_FIXED_POINT $fixedpoint
7083 _ACEOF
7084
7085
7086 # Enable threads
7087 # Pass with no value to take the default
7088 # Pass with a value to specify a thread package
7089 # Check whether --enable-threads was given.
7090 if test "${enable_threads+set}" = set; then :
7091 enableval=$enable_threads;
7092 else
7093 enable_threads=''
7094 fi
7095
7096
7097 # Check whether --enable-tls was given.
7098 if test "${enable_tls+set}" = set; then :
7099 enableval=$enable_tls;
7100 case $enable_tls in
7101 yes | no) ;;
7102 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7103 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7104 esac
7105
7106 else
7107 enable_tls=''
7108 fi
7109
7110
7111 # Check whether --enable-objc-gc was given.
7112 if test "${enable_objc_gc+set}" = set; then :
7113 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7114 objc_boehm_gc=''
7115 else
7116 objc_boehm_gc=1
7117 fi
7118 else
7119 objc_boehm_gc=''
7120 fi
7121
7122
7123
7124 # Check whether --with-dwarf2 was given.
7125 if test "${with_dwarf2+set}" = set; then :
7126 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7127 else
7128 dwarf2=no
7129 fi
7130
7131
7132 # Check whether --enable-shared was given.
7133 if test "${enable_shared+set}" = set; then :
7134 enableval=$enable_shared;
7135 case $enable_shared in
7136 yes | no) ;;
7137 *)
7138 enable_shared=no
7139 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7140 for pkg in $enableval; do
7141 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7142 enable_shared=yes
7143 fi
7144 done
7145 IFS="$ac_save_ifs"
7146 ;;
7147 esac
7148
7149 else
7150 enable_shared=yes
7151 fi
7152
7153
7154
7155
7156 # Check whether --with-native-system-header-dir was given.
7157 if test "${with_native_system_header_dir+set}" = set; then :
7158 withval=$with_native_system_header_dir;
7159 case ${with_native_system_header_dir} in
7160 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7161 /* | [A-Za-z]:[\\/]*) ;;
7162 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7163 esac
7164 configured_native_system_header_dir="${withval}"
7165
7166 else
7167 configured_native_system_header_dir=
7168 fi
7169
7170
7171
7172 # Check whether --with-build-sysroot was given.
7173 if test "${with_build_sysroot+set}" = set; then :
7174 withval=$with_build_sysroot; if test x"$withval" != x ; then
7175 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7176 fi
7177 else
7178 SYSROOT_CFLAGS_FOR_TARGET=
7179 fi
7180
7181
7182
7183
7184 # Check whether --with-sysroot was given.
7185 if test "${with_sysroot+set}" = set; then :
7186 withval=$with_sysroot;
7187 case ${with_sysroot} in
7188 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7189 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7190 esac
7191
7192 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7193 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7194
7195 if test "x$prefix" = xNONE; then
7196 test_prefix=/usr/local
7197 else
7198 test_prefix=$prefix
7199 fi
7200 if test "x$exec_prefix" = xNONE; then
7201 test_exec_prefix=$test_prefix
7202 else
7203 test_exec_prefix=$exec_prefix
7204 fi
7205 case ${TARGET_SYSTEM_ROOT} in
7206 "${test_prefix}"|"${test_prefix}/"*|\
7207 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7208 '${prefix}'|'${prefix}/'*|\
7209 '${exec_prefix}'|'${exec_prefix}/'*)
7210 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7211 TARGET_SYSTEM_ROOT_DEFINE="$t"
7212 ;;
7213 esac
7214
7215 else
7216
7217 TARGET_SYSTEM_ROOT=
7218 TARGET_SYSTEM_ROOT_DEFINE=
7219 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7220
7221 fi
7222
7223
7224
7225
7226
7227
7228 # Check whether --with-specs was given.
7229 if test "${with_specs+set}" = set; then :
7230 withval=$with_specs; CONFIGURE_SPECS=$withval
7231 else
7232 CONFIGURE_SPECS=
7233
7234 fi
7235
7236
7237
7238
7239
7240 # Check whether --with-pkgversion was given.
7241 if test "${with_pkgversion+set}" = set; then :
7242 withval=$with_pkgversion; case "$withval" in
7243 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7244 no) PKGVERSION= ;;
7245 *) PKGVERSION="($withval) " ;;
7246 esac
7247 else
7248 PKGVERSION="(GCC) "
7249
7250 fi
7251
7252
7253
7254
7255
7256 # Check whether --with-bugurl was given.
7257 if test "${with_bugurl+set}" = set; then :
7258 withval=$with_bugurl; case "$withval" in
7259 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7260 no) BUGURL=
7261 ;;
7262 *) BUGURL="$withval"
7263 ;;
7264 esac
7265 else
7266 BUGURL="http://gcc.gnu.org/bugs.html"
7267
7268 fi
7269
7270 case ${BUGURL} in
7271 "")
7272 REPORT_BUGS_TO=
7273 REPORT_BUGS_TEXI=
7274 ;;
7275 *)
7276 REPORT_BUGS_TO="<$BUGURL>"
7277 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7278 ;;
7279 esac;
7280
7281
7282
7283
7284 # Sanity check enable_languages in case someone does not run the toplevel
7285 # configure # script.
7286 # Check whether --enable-languages was given.
7287 if test "${enable_languages+set}" = set; then :
7288 enableval=$enable_languages; case ,${enable_languages}, in
7289 ,,|,yes,)
7290 # go safe -- we cannot be much sure without the toplevel
7291 # configure's
7292 # analysis of which target libs are present and usable
7293 enable_languages=c
7294 ;;
7295 *,all,*)
7296 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7297 ;;
7298 *,c,*)
7299 ;;
7300 *)
7301 enable_languages=c,${enable_languages}
7302 ;;
7303 esac
7304 else
7305 enable_languages=c
7306 fi
7307
7308
7309
7310 # Check whether --with-multilib-list was given.
7311 if test "${with_multilib_list+set}" = set; then :
7312 withval=$with_multilib_list; :
7313 else
7314 with_multilib_list=default
7315 fi
7316
7317
7318 # -------------------------
7319 # Checks for other programs
7320 # -------------------------
7321
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7323 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7324 set x ${MAKE-make}
7325 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7326 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7327 $as_echo_n "(cached) " >&6
7328 else
7329 cat >conftest.make <<\_ACEOF
7330 SHELL = /bin/sh
7331 all:
7332 @echo '@@@%%%=$(MAKE)=@@@%%%'
7333 _ACEOF
7334 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7335 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7336 *@@@%%%=?*=@@@%%%*)
7337 eval ac_cv_prog_make_${ac_make}_set=yes;;
7338 *)
7339 eval ac_cv_prog_make_${ac_make}_set=no;;
7340 esac
7341 rm -f conftest.make
7342 fi
7343 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7345 $as_echo "yes" >&6; }
7346 SET_MAKE=
7347 else
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7349 $as_echo "no" >&6; }
7350 SET_MAKE="MAKE=${MAKE-make}"
7351 fi
7352
7353
7354 # Find some useful tools
7355 for ac_prog in gawk mawk nawk awk
7356 do
7357 # Extract the first word of "$ac_prog", so it can be a program name with args.
7358 set dummy $ac_prog; ac_word=$2
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7360 $as_echo_n "checking for $ac_word... " >&6; }
7361 if test "${ac_cv_prog_AWK+set}" = set; then :
7362 $as_echo_n "(cached) " >&6
7363 else
7364 if test -n "$AWK"; then
7365 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7366 else
7367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368 for as_dir in $PATH
7369 do
7370 IFS=$as_save_IFS
7371 test -z "$as_dir" && as_dir=.
7372 for ac_exec_ext in '' $ac_executable_extensions; do
7373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7374 ac_cv_prog_AWK="$ac_prog"
7375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 break 2
7377 fi
7378 done
7379 done
7380 IFS=$as_save_IFS
7381
7382 fi
7383 fi
7384 AWK=$ac_cv_prog_AWK
7385 if test -n "$AWK"; then
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7387 $as_echo "$AWK" >&6; }
7388 else
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7390 $as_echo "no" >&6; }
7391 fi
7392
7393
7394 test -n "$AWK" && break
7395 done
7396
7397 # We need awk to create options.c and options.h.
7398 # Bail out if it's missing.
7399 case ${AWK} in
7400 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7401 esac
7402
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7404 $as_echo_n "checking whether ln -s works... " >&6; }
7405 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7406 $as_echo_n "(cached) " >&6
7407 else
7408 rm -f conftestdata_t
7409 echo >conftestdata_f
7410 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7411 then
7412 gcc_cv_prog_LN_S="ln -s"
7413 else
7414 if ln conftestdata_f conftestdata_t 2>/dev/null
7415 then
7416 gcc_cv_prog_LN_S=ln
7417 else
7418 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7419 then
7420 gcc_cv_prog_LN_S="cp -p"
7421 else
7422 gcc_cv_prog_LN_S=cp
7423 fi
7424 fi
7425 fi
7426 rm -f conftestdata_f conftestdata_t
7427
7428 fi
7429 LN_S="$gcc_cv_prog_LN_S"
7430 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7432 $as_echo "yes" >&6; }
7433 else
7434 if test "$gcc_cv_prog_LN_S" = "ln"; then
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7436 $as_echo "no, using ln" >&6; }
7437 else
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7439 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7440 fi
7441 fi
7442
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7444 $as_echo_n "checking whether ln works... " >&6; }
7445 if test "${acx_cv_prog_LN+set}" = set; then :
7446 $as_echo_n "(cached) " >&6
7447 else
7448 rm -f conftestdata_t
7449 echo >conftestdata_f
7450 if ln conftestdata_f conftestdata_t 2>/dev/null
7451 then
7452 acx_cv_prog_LN=ln
7453 else
7454 acx_cv_prog_LN=no
7455 fi
7456 rm -f conftestdata_f conftestdata_t
7457
7458 fi
7459 if test $acx_cv_prog_LN = no; then
7460 LN="$LN_S"
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7462 $as_echo "no, using $LN" >&6; }
7463 else
7464 LN="$acx_cv_prog_LN"
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7466 $as_echo "yes" >&6; }
7467 fi
7468
7469 if test -n "$ac_tool_prefix"; then
7470 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7471 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7473 $as_echo_n "checking for $ac_word... " >&6; }
7474 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7475 $as_echo_n "(cached) " >&6
7476 else
7477 if test -n "$RANLIB"; then
7478 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7479 else
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 for as_dir in $PATH
7482 do
7483 IFS=$as_save_IFS
7484 test -z "$as_dir" && as_dir=.
7485 for ac_exec_ext in '' $ac_executable_extensions; do
7486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7487 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 break 2
7490 fi
7491 done
7492 done
7493 IFS=$as_save_IFS
7494
7495 fi
7496 fi
7497 RANLIB=$ac_cv_prog_RANLIB
7498 if test -n "$RANLIB"; then
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7500 $as_echo "$RANLIB" >&6; }
7501 else
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503 $as_echo "no" >&6; }
7504 fi
7505
7506
7507 fi
7508 if test -z "$ac_cv_prog_RANLIB"; then
7509 ac_ct_RANLIB=$RANLIB
7510 # Extract the first word of "ranlib", so it can be a program name with args.
7511 set dummy ranlib; ac_word=$2
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7513 $as_echo_n "checking for $ac_word... " >&6; }
7514 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7515 $as_echo_n "(cached) " >&6
7516 else
7517 if test -n "$ac_ct_RANLIB"; then
7518 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7519 else
7520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521 for as_dir in $PATH
7522 do
7523 IFS=$as_save_IFS
7524 test -z "$as_dir" && as_dir=.
7525 for ac_exec_ext in '' $ac_executable_extensions; do
7526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7527 ac_cv_prog_ac_ct_RANLIB="ranlib"
7528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7529 break 2
7530 fi
7531 done
7532 done
7533 IFS=$as_save_IFS
7534
7535 fi
7536 fi
7537 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7538 if test -n "$ac_ct_RANLIB"; then
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7540 $as_echo "$ac_ct_RANLIB" >&6; }
7541 else
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7543 $as_echo "no" >&6; }
7544 fi
7545
7546 if test "x$ac_ct_RANLIB" = x; then
7547 RANLIB=":"
7548 else
7549 case $cross_compiling:$ac_tool_warned in
7550 yes:)
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7553 ac_tool_warned=yes ;;
7554 esac
7555 RANLIB=$ac_ct_RANLIB
7556 fi
7557 else
7558 RANLIB="$ac_cv_prog_RANLIB"
7559 fi
7560
7561 case "${host}" in
7562 *-*-darwin*)
7563 # By default, the Darwin ranlib will not treat common symbols as
7564 # definitions when building the archive table of contents. Other
7565 # ranlibs do that; pass an option to the Darwin ranlib that makes
7566 # it behave similarly.
7567 ranlib_flags="-c"
7568 ;;
7569 *)
7570 ranlib_flags=""
7571 esac
7572
7573
7574 # Find a good install program. We prefer a C program (faster),
7575 # so one script is as good as another. But avoid the broken or
7576 # incompatible versions:
7577 # SysV /etc/install, /usr/sbin/install
7578 # SunOS /usr/etc/install
7579 # IRIX /sbin/install
7580 # AIX /bin/install
7581 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7582 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7583 # ./install, which can be erroneously created by make from ./install.sh.
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7585 $as_echo_n "checking for a BSD compatible install... " >&6; }
7586 if test -z "$INSTALL"; then
7587 if test "${ac_cv_path_install+set}" = set; then :
7588 $as_echo_n "(cached) " >&6
7589 else
7590 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7591 for ac_dir in $PATH; do
7592 # Account for people who put trailing slashes in PATH elements.
7593 case "$ac_dir/" in
7594 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7595 *)
7596 # OSF1 and SCO ODT 3.0 have their own names for install.
7597 for ac_prog in ginstall scoinst install; do
7598 if test -f $ac_dir/$ac_prog; then
7599 if test $ac_prog = install &&
7600 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7601 # AIX install. It has an incompatible calling convention.
7602 # OSF/1 installbsd also uses dspmsg, but is usable.
7603 :
7604 else
7605 ac_cv_path_install="$ac_dir/$ac_prog -c"
7606 break 2
7607 fi
7608 fi
7609 done
7610 ;;
7611 esac
7612 done
7613 IFS="$ac_save_IFS"
7614
7615 fi
7616 if test "${ac_cv_path_install+set}" = set; then
7617 INSTALL="$ac_cv_path_install"
7618 else
7619 # As a last resort, use the slow shell script. We don't cache a
7620 # path for INSTALL within a source directory, because that will
7621 # break other packages using the cache if that directory is
7622 # removed, or if the path is relative.
7623 INSTALL="$ac_install_sh"
7624 fi
7625 fi
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7627 $as_echo "$INSTALL" >&6; }
7628
7629 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7630 # It thinks the first close brace ends the variable substitution.
7631 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7632
7633 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7634
7635
7636 # See if cmp has --ignore-initial.
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7638 $as_echo_n "checking for cmp's capabilities... " >&6; }
7639 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7640 $as_echo_n "(cached) " >&6
7641 else
7642 echo abfoo >t1
7643 echo cdfoo >t2
7644 gcc_cv_prog_cmp_skip=slowcompare
7645 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7646 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7647 :
7648 else
7649 gcc_cv_prog_cmp_skip=gnucompare
7650 fi
7651 fi
7652 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7653 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7654 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7655 :
7656 else
7657 gcc_cv_prog_cmp_skip=fastcompare
7658 fi
7659 fi
7660 fi
7661 rm t1 t2
7662
7663 fi
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7665 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7666 make_compare_target=$gcc_cv_prog_cmp_skip
7667
7668
7669
7670 # See if we have the mktemp command.
7671 # Extract the first word of "mktemp", so it can be a program name with args.
7672 set dummy mktemp; ac_word=$2
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7674 $as_echo_n "checking for $ac_word... " >&6; }
7675 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7676 $as_echo_n "(cached) " >&6
7677 else
7678 if test -n "$have_mktemp_command"; then
7679 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7680 else
7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 for as_dir in $PATH
7683 do
7684 IFS=$as_save_IFS
7685 test -z "$as_dir" && as_dir=.
7686 for ac_exec_ext in '' $ac_executable_extensions; do
7687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7688 ac_cv_prog_have_mktemp_command="yes"
7689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7690 break 2
7691 fi
7692 done
7693 done
7694 IFS=$as_save_IFS
7695
7696 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7697 fi
7698 fi
7699 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7700 if test -n "$have_mktemp_command"; then
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7702 $as_echo "$have_mktemp_command" >&6; }
7703 else
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7705 $as_echo "no" >&6; }
7706 fi
7707
7708
7709
7710 # See if makeinfo has been installed and is modern enough
7711 # that we can use it.
7712
7713 # Extract the first word of "makeinfo", so it can be a program name with args.
7714 set dummy makeinfo; ac_word=$2
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7716 $as_echo_n "checking for $ac_word... " >&6; }
7717 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7718 $as_echo_n "(cached) " >&6
7719 else
7720 if test -n "$MAKEINFO"; then
7721 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7722 else
7723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724 for as_dir in $PATH
7725 do
7726 IFS=$as_save_IFS
7727 test -z "$as_dir" && as_dir=.
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7730 ac_cv_prog_MAKEINFO="makeinfo"
7731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7732 break 2
7733 fi
7734 done
7735 done
7736 IFS=$as_save_IFS
7737
7738 fi
7739 fi
7740 MAKEINFO=$ac_cv_prog_MAKEINFO
7741 if test -n "$MAKEINFO"; then
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7743 $as_echo "$MAKEINFO" >&6; }
7744 else
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 $as_echo "no" >&6; }
7747 fi
7748
7749
7750 if test -n "$MAKEINFO"; then
7751 # Found it, now check the version.
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7753 $as_echo_n "checking for modern makeinfo... " >&6; }
7754 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7755 $as_echo_n "(cached) " >&6
7756 else
7757 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7758 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7759
7760 case $ac_prog_version in
7761 '') gcc_cv_prog_makeinfo_modern=no;;
7762 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7763 *) gcc_cv_prog_makeinfo_modern=no;;
7764 esac
7765
7766 fi
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7768 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7769 else
7770 gcc_cv_prog_makeinfo_modern=no
7771 fi
7772 if test $gcc_cv_prog_makeinfo_modern = no; then
7773 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7774 fi
7775
7776 if test $gcc_cv_prog_makeinfo_modern = no; then
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7778 *** Makeinfo is missing or too old.
7779 *** Info documentation will not be built." >&5
7780 $as_echo "$as_me: WARNING:
7781 *** Makeinfo is missing or too old.
7782 *** Info documentation will not be built." >&2;}
7783 BUILD_INFO=
7784 else
7785 BUILD_INFO=info
7786 fi
7787
7788
7789 # Is pod2man recent enough to regenerate manpages?
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7791 $as_echo_n "checking for recent Pod::Man... " >&6; }
7792 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7794 $as_echo "yes" >&6; }
7795 GENERATED_MANPAGES=generated-manpages
7796 else
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798 $as_echo "no" >&6; }
7799 GENERATED_MANPAGES=
7800 fi
7801
7802
7803 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7804
7805 # How about lex?
7806 for ac_prog in flex
7807 do
7808 # Extract the first word of "$ac_prog", so it can be a program name with args.
7809 set dummy $ac_prog; ac_word=$2
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7811 $as_echo_n "checking for $ac_word... " >&6; }
7812 if test "${ac_cv_prog_FLEX+set}" = set; then :
7813 $as_echo_n "(cached) " >&6
7814 else
7815 if test -n "$FLEX"; then
7816 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7817 else
7818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819 for as_dir in $PATH
7820 do
7821 IFS=$as_save_IFS
7822 test -z "$as_dir" && as_dir=.
7823 for ac_exec_ext in '' $ac_executable_extensions; do
7824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7825 ac_cv_prog_FLEX="$ac_prog"
7826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7827 break 2
7828 fi
7829 done
7830 done
7831 IFS=$as_save_IFS
7832
7833 fi
7834 fi
7835 FLEX=$ac_cv_prog_FLEX
7836 if test -n "$FLEX"; then
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7838 $as_echo "$FLEX" >&6; }
7839 else
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7841 $as_echo "no" >&6; }
7842 fi
7843
7844
7845 test -n "$FLEX" && break
7846 done
7847 test -n "$FLEX" || FLEX="$MISSING flex"
7848
7849
7850 # Bison?
7851 for ac_prog in bison
7852 do
7853 # Extract the first word of "$ac_prog", so it can be a program name with args.
7854 set dummy $ac_prog; ac_word=$2
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7856 $as_echo_n "checking for $ac_word... " >&6; }
7857 if test "${ac_cv_prog_BISON+set}" = set; then :
7858 $as_echo_n "(cached) " >&6
7859 else
7860 if test -n "$BISON"; then
7861 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7862 else
7863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864 for as_dir in $PATH
7865 do
7866 IFS=$as_save_IFS
7867 test -z "$as_dir" && as_dir=.
7868 for ac_exec_ext in '' $ac_executable_extensions; do
7869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7870 ac_cv_prog_BISON="$ac_prog"
7871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7872 break 2
7873 fi
7874 done
7875 done
7876 IFS=$as_save_IFS
7877
7878 fi
7879 fi
7880 BISON=$ac_cv_prog_BISON
7881 if test -n "$BISON"; then
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7883 $as_echo "$BISON" >&6; }
7884 else
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886 $as_echo "no" >&6; }
7887 fi
7888
7889
7890 test -n "$BISON" && break
7891 done
7892 test -n "$BISON" || BISON="$MISSING bison"
7893
7894
7895 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7896 # check for build == host before using them.
7897
7898 # NM
7899 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7900 && test -d ../binutils ; then
7901 NM='${objdir}/../binutils/nm-new'
7902 else
7903 # Extract the first word of "nm", so it can be a program name with args.
7904 set dummy nm; ac_word=$2
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7906 $as_echo_n "checking for $ac_word... " >&6; }
7907 if test "${ac_cv_prog_NM+set}" = set; then :
7908 $as_echo_n "(cached) " >&6
7909 else
7910 if test -n "$NM"; then
7911 ac_cv_prog_NM="$NM" # Let the user override the test.
7912 else
7913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7914 for as_dir in $PATH
7915 do
7916 IFS=$as_save_IFS
7917 test -z "$as_dir" && as_dir=.
7918 for ac_exec_ext in '' $ac_executable_extensions; do
7919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7920 ac_cv_prog_NM="nm"
7921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7922 break 2
7923 fi
7924 done
7925 done
7926 IFS=$as_save_IFS
7927
7928 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7929 fi
7930 fi
7931 NM=$ac_cv_prog_NM
7932 if test -n "$NM"; then
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7934 $as_echo "$NM" >&6; }
7935 else
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7937 $as_echo "no" >&6; }
7938 fi
7939
7940
7941 fi
7942
7943 # AR
7944 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7945 && test -d ../binutils ; then
7946 AR='${objdir}/../binutils/ar'
7947 else
7948 # Extract the first word of "ar", so it can be a program name with args.
7949 set dummy ar; ac_word=$2
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7951 $as_echo_n "checking for $ac_word... " >&6; }
7952 if test "${ac_cv_prog_AR+set}" = set; then :
7953 $as_echo_n "(cached) " >&6
7954 else
7955 if test -n "$AR"; then
7956 ac_cv_prog_AR="$AR" # Let the user override the test.
7957 else
7958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 for as_dir in $PATH
7960 do
7961 IFS=$as_save_IFS
7962 test -z "$as_dir" && as_dir=.
7963 for ac_exec_ext in '' $ac_executable_extensions; do
7964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7965 ac_cv_prog_AR="ar"
7966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7967 break 2
7968 fi
7969 done
7970 done
7971 IFS=$as_save_IFS
7972
7973 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7974 fi
7975 fi
7976 AR=$ac_cv_prog_AR
7977 if test -n "$AR"; then
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7979 $as_echo "$AR" >&6; }
7980 else
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982 $as_echo "no" >&6; }
7983 fi
7984
7985
7986 fi
7987
7988
7989 # --------------------
7990 # Checks for C headers
7991 # --------------------
7992
7993 # Need to reject headers which give warnings, so that the -Werror bootstrap
7994 # works later. *sigh* This needs to come before all header checks.
7995
7996 ac_c_preproc_warn_flag=yes
7997
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7999 $as_echo_n "checking for ANSI C header files... " >&6; }
8000 if test "${ac_cv_header_stdc+set}" = set; then :
8001 $as_echo_n "(cached) " >&6
8002 else
8003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8004 /* end confdefs.h. */
8005 #include <stdlib.h>
8006 #include <stdarg.h>
8007 #include <string.h>
8008 #include <float.h>
8009
8010 int
8011 main ()
8012 {
8013
8014 ;
8015 return 0;
8016 }
8017 _ACEOF
8018 if ac_fn_c_try_compile "$LINENO"; then :
8019 ac_cv_header_stdc=yes
8020 else
8021 ac_cv_header_stdc=no
8022 fi
8023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8024
8025 if test $ac_cv_header_stdc = yes; then
8026 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8028 /* end confdefs.h. */
8029 #include <string.h>
8030
8031 _ACEOF
8032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8033 $EGREP "memchr" >/dev/null 2>&1; then :
8034
8035 else
8036 ac_cv_header_stdc=no
8037 fi
8038 rm -f conftest*
8039
8040 fi
8041
8042 if test $ac_cv_header_stdc = yes; then
8043 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8045 /* end confdefs.h. */
8046 #include <stdlib.h>
8047
8048 _ACEOF
8049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8050 $EGREP "free" >/dev/null 2>&1; then :
8051
8052 else
8053 ac_cv_header_stdc=no
8054 fi
8055 rm -f conftest*
8056
8057 fi
8058
8059 if test $ac_cv_header_stdc = yes; then
8060 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8061 if test "$cross_compiling" = yes; then :
8062 :
8063 else
8064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065 /* end confdefs.h. */
8066 #include <ctype.h>
8067 #include <stdlib.h>
8068 #if ((' ' & 0x0FF) == 0x020)
8069 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8070 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8071 #else
8072 # define ISLOWER(c) \
8073 (('a' <= (c) && (c) <= 'i') \
8074 || ('j' <= (c) && (c) <= 'r') \
8075 || ('s' <= (c) && (c) <= 'z'))
8076 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8077 #endif
8078
8079 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8080 int
8081 main ()
8082 {
8083 int i;
8084 for (i = 0; i < 256; i++)
8085 if (XOR (islower (i), ISLOWER (i))
8086 || toupper (i) != TOUPPER (i))
8087 return 2;
8088 return 0;
8089 }
8090 _ACEOF
8091 if ac_fn_c_try_run "$LINENO"; then :
8092
8093 else
8094 ac_cv_header_stdc=no
8095 fi
8096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8097 conftest.$ac_objext conftest.beam conftest.$ac_ext
8098 fi
8099
8100 fi
8101 fi
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8103 $as_echo "$ac_cv_header_stdc" >&6; }
8104 if test $ac_cv_header_stdc = yes; then
8105
8106 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8107
8108 fi
8109
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8111 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8112 if test "${ac_cv_header_time+set}" = set; then :
8113 $as_echo_n "(cached) " >&6
8114 else
8115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8116 /* end confdefs.h. */
8117 #include <sys/types.h>
8118 #include <sys/time.h>
8119 #include <time.h>
8120
8121 int
8122 main ()
8123 {
8124 if ((struct tm *) 0)
8125 return 0;
8126 ;
8127 return 0;
8128 }
8129 _ACEOF
8130 if ac_fn_c_try_compile "$LINENO"; then :
8131 ac_cv_header_time=yes
8132 else
8133 ac_cv_header_time=no
8134 fi
8135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8136 fi
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8138 $as_echo "$ac_cv_header_time" >&6; }
8139 if test $ac_cv_header_time = yes; then
8140
8141 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8142
8143 fi
8144
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8146 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8147 if test "${gcc_cv_header_string+set}" = set; then :
8148 $as_echo_n "(cached) " >&6
8149 else
8150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8151 /* end confdefs.h. */
8152 #include <string.h>
8153 #include <strings.h>
8154 int
8155 main ()
8156 {
8157
8158 ;
8159 return 0;
8160 }
8161 _ACEOF
8162 if ac_fn_c_try_compile "$LINENO"; then :
8163 gcc_cv_header_string=yes
8164 else
8165 gcc_cv_header_string=no
8166 fi
8167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8168 fi
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8170 $as_echo "$gcc_cv_header_string" >&6; }
8171 if test $gcc_cv_header_string = yes; then
8172
8173 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8174
8175 fi
8176
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8178 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8179 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8180 $as_echo_n "(cached) " >&6
8181 else
8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183 /* end confdefs.h. */
8184 #include <sys/types.h>
8185 #include <sys/wait.h>
8186 #ifndef WEXITSTATUS
8187 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8188 #endif
8189 #ifndef WIFEXITED
8190 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8191 #endif
8192
8193 int
8194 main ()
8195 {
8196 int s;
8197 wait (&s);
8198 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8199 ;
8200 return 0;
8201 }
8202 _ACEOF
8203 if ac_fn_c_try_compile "$LINENO"; then :
8204 ac_cv_header_sys_wait_h=yes
8205 else
8206 ac_cv_header_sys_wait_h=no
8207 fi
8208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8209 fi
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8211 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8212 if test $ac_cv_header_sys_wait_h = yes; then
8213
8214 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8215
8216 fi
8217
8218 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8219 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8220 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8221 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8222 do :
8223 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8224 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8225 eval as_val=\$$as_ac_Header
8226 if test "x$as_val" = x""yes; then :
8227 cat >>confdefs.h <<_ACEOF
8228 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8229 _ACEOF
8230
8231 fi
8232 done
8233
8234
8235 # Check for thread headers.
8236 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8237 if test "x$ac_cv_header_thread_h" = x""yes; then :
8238 have_thread_h=yes
8239 else
8240 have_thread_h=
8241 fi
8242
8243 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8244 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8245 have_pthread_h=yes
8246 else
8247 have_pthread_h=
8248 fi
8249
8250
8251 # These tests can't be done till we know if we have limits.h.
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8253 $as_echo_n "checking for CHAR_BIT... " >&6; }
8254 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8255 $as_echo_n "(cached) " >&6
8256 else
8257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h. */
8259 #ifdef HAVE_LIMITS_H
8260 #include <limits.h>
8261 #endif
8262 #ifdef CHAR_BIT
8263 found
8264 #endif
8265 _ACEOF
8266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8267 $EGREP "found" >/dev/null 2>&1; then :
8268 gcc_cv_decl_char_bit=yes
8269 else
8270 gcc_cv_decl_char_bit=no
8271 fi
8272 rm -f conftest*
8273
8274
8275 fi
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8277 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8278 if test $gcc_cv_decl_char_bit = no; then
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8280 $as_echo_n "checking number of bits in a byte... " >&6; }
8281 if test "${gcc_cv_c_nbby+set}" = set; then :
8282 $as_echo_n "(cached) " >&6
8283 else
8284 i=8
8285 gcc_cv_c_nbby=
8286 while test $i -lt 65; do
8287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288 /* end confdefs.h. */
8289
8290 int
8291 main ()
8292 {
8293 switch(0) {
8294 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8295 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8296 ; }
8297 ;
8298 return 0;
8299 }
8300 _ACEOF
8301 if ac_fn_c_try_compile "$LINENO"; then :
8302 gcc_cv_c_nbby=$i; break
8303 fi
8304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8305 i=`expr $i + 1`
8306 done
8307 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8308
8309 fi
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8311 $as_echo "$gcc_cv_c_nbby" >&6; }
8312 if test $gcc_cv_c_nbby = failed; then
8313 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8314 else
8315
8316 cat >>confdefs.h <<_ACEOF
8317 #define CHAR_BIT $gcc_cv_c_nbby
8318 _ACEOF
8319
8320 fi
8321 fi
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8323 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8324 if test "${ac_cv_c_bigendian+set}" = set; then :
8325 $as_echo_n "(cached) " >&6
8326 else
8327 ac_cv_c_bigendian=unknown
8328 # See if we're dealing with a universal compiler.
8329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8330 /* end confdefs.h. */
8331 #ifndef __APPLE_CC__
8332 not a universal capable compiler
8333 #endif
8334 typedef int dummy;
8335
8336 _ACEOF
8337 if ac_fn_c_try_compile "$LINENO"; then :
8338
8339 # Check for potential -arch flags. It is not universal unless
8340 # there are at least two -arch flags with different values.
8341 ac_arch=
8342 ac_prev=
8343 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8344 if test -n "$ac_prev"; then
8345 case $ac_word in
8346 i?86 | x86_64 | ppc | ppc64)
8347 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8348 ac_arch=$ac_word
8349 else
8350 ac_cv_c_bigendian=universal
8351 break
8352 fi
8353 ;;
8354 esac
8355 ac_prev=
8356 elif test "x$ac_word" = "x-arch"; then
8357 ac_prev=arch
8358 fi
8359 done
8360 fi
8361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8362 if test $ac_cv_c_bigendian = unknown; then
8363 # See if sys/param.h defines the BYTE_ORDER macro.
8364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365 /* end confdefs.h. */
8366 #include <sys/types.h>
8367 #include <sys/param.h>
8368
8369 int
8370 main ()
8371 {
8372 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8373 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8374 && LITTLE_ENDIAN)
8375 bogus endian macros
8376 #endif
8377
8378 ;
8379 return 0;
8380 }
8381 _ACEOF
8382 if ac_fn_c_try_compile "$LINENO"; then :
8383 # It does; now see whether it defined to BIG_ENDIAN or not.
8384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8385 /* end confdefs.h. */
8386 #include <sys/types.h>
8387 #include <sys/param.h>
8388
8389 int
8390 main ()
8391 {
8392 #if BYTE_ORDER != BIG_ENDIAN
8393 not big endian
8394 #endif
8395
8396 ;
8397 return 0;
8398 }
8399 _ACEOF
8400 if ac_fn_c_try_compile "$LINENO"; then :
8401 ac_cv_c_bigendian=yes
8402 else
8403 ac_cv_c_bigendian=no
8404 fi
8405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8406 fi
8407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8408 fi
8409 if test $ac_cv_c_bigendian = unknown; then
8410 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8412 /* end confdefs.h. */
8413 #include <limits.h>
8414
8415 int
8416 main ()
8417 {
8418 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8419 bogus endian macros
8420 #endif
8421
8422 ;
8423 return 0;
8424 }
8425 _ACEOF
8426 if ac_fn_c_try_compile "$LINENO"; then :
8427 # It does; now see whether it defined to _BIG_ENDIAN or not.
8428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8429 /* end confdefs.h. */
8430 #include <limits.h>
8431
8432 int
8433 main ()
8434 {
8435 #ifndef _BIG_ENDIAN
8436 not big endian
8437 #endif
8438
8439 ;
8440 return 0;
8441 }
8442 _ACEOF
8443 if ac_fn_c_try_compile "$LINENO"; then :
8444 ac_cv_c_bigendian=yes
8445 else
8446 ac_cv_c_bigendian=no
8447 fi
8448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8449 fi
8450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8451 fi
8452 if test $ac_cv_c_bigendian = unknown; then
8453 # Compile a test program.
8454 if test "$cross_compiling" = yes; then :
8455 # Try to guess by grepping values from an object file.
8456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8457 /* end confdefs.h. */
8458 short int ascii_mm[] =
8459 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8460 short int ascii_ii[] =
8461 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8462 int use_ascii (int i) {
8463 return ascii_mm[i] + ascii_ii[i];
8464 }
8465 short int ebcdic_ii[] =
8466 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8467 short int ebcdic_mm[] =
8468 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8469 int use_ebcdic (int i) {
8470 return ebcdic_mm[i] + ebcdic_ii[i];
8471 }
8472 extern int foo;
8473
8474 int
8475 main ()
8476 {
8477 return use_ascii (foo) == use_ebcdic (foo);
8478 ;
8479 return 0;
8480 }
8481 _ACEOF
8482 if ac_fn_c_try_compile "$LINENO"; then :
8483 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8484 ac_cv_c_bigendian=yes
8485 fi
8486 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8487 if test "$ac_cv_c_bigendian" = unknown; then
8488 ac_cv_c_bigendian=no
8489 else
8490 # finding both strings is unlikely to happen, but who knows?
8491 ac_cv_c_bigendian=unknown
8492 fi
8493 fi
8494 fi
8495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8496 else
8497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8498 /* end confdefs.h. */
8499 $ac_includes_default
8500 int
8501 main ()
8502 {
8503
8504 /* Are we little or big endian? From Harbison&Steele. */
8505 union
8506 {
8507 long int l;
8508 char c[sizeof (long int)];
8509 } u;
8510 u.l = 1;
8511 return u.c[sizeof (long int) - 1] == 1;
8512
8513 ;
8514 return 0;
8515 }
8516 _ACEOF
8517 if ac_fn_c_try_run "$LINENO"; then :
8518 ac_cv_c_bigendian=no
8519 else
8520 ac_cv_c_bigendian=yes
8521 fi
8522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8523 conftest.$ac_objext conftest.beam conftest.$ac_ext
8524 fi
8525
8526 fi
8527 fi
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8529 $as_echo "$ac_cv_c_bigendian" >&6; }
8530 case $ac_cv_c_bigendian in #(
8531 yes)
8532 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8533 ;; #(
8534 no)
8535 ;; #(
8536 universal)
8537
8538 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8539
8540 ;; #(
8541 *)
8542 as_fn_error "unknown endianness
8543 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8544 esac
8545
8546
8547 # ----------------------
8548 # Checks for C++ headers
8549 # ----------------------
8550
8551 ac_ext=cpp
8552 ac_cpp='$CXXCPP $CPPFLAGS'
8553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8557 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8558 if test -z "$CXXCPP"; then
8559 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8560 $as_echo_n "(cached) " >&6
8561 else
8562 # Double quotes because CXXCPP needs to be expanded
8563 for CXXCPP in "$CXX -E" "/lib/cpp"
8564 do
8565 ac_preproc_ok=false
8566 for ac_cxx_preproc_warn_flag in '' yes
8567 do
8568 # Use a header file that comes with gcc, so configuring glibc
8569 # with a fresh cross-compiler works.
8570 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8571 # <limits.h> exists even on freestanding compilers.
8572 # On the NeXT, cc -E runs the code through the compiler's parser,
8573 # not just through cpp. "Syntax error" is here to catch this case.
8574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575 /* end confdefs.h. */
8576 #ifdef __STDC__
8577 # include <limits.h>
8578 #else
8579 # include <assert.h>
8580 #endif
8581 Syntax error
8582 _ACEOF
8583 if ac_fn_cxx_try_cpp "$LINENO"; then :
8584
8585 else
8586 # Broken: fails on valid input.
8587 continue
8588 fi
8589 rm -f conftest.err conftest.$ac_ext
8590
8591 # OK, works on sane cases. Now check whether nonexistent headers
8592 # can be detected and how.
8593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8594 /* end confdefs.h. */
8595 #include <ac_nonexistent.h>
8596 _ACEOF
8597 if ac_fn_cxx_try_cpp "$LINENO"; then :
8598 # Broken: success on invalid input.
8599 continue
8600 else
8601 # Passes both tests.
8602 ac_preproc_ok=:
8603 break
8604 fi
8605 rm -f conftest.err conftest.$ac_ext
8606
8607 done
8608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8609 rm -f conftest.err conftest.$ac_ext
8610 if $ac_preproc_ok; then :
8611 break
8612 fi
8613
8614 done
8615 ac_cv_prog_CXXCPP=$CXXCPP
8616
8617 fi
8618 CXXCPP=$ac_cv_prog_CXXCPP
8619 else
8620 ac_cv_prog_CXXCPP=$CXXCPP
8621 fi
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8623 $as_echo "$CXXCPP" >&6; }
8624 ac_preproc_ok=false
8625 for ac_cxx_preproc_warn_flag in '' yes
8626 do
8627 # Use a header file that comes with gcc, so configuring glibc
8628 # with a fresh cross-compiler works.
8629 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8630 # <limits.h> exists even on freestanding compilers.
8631 # On the NeXT, cc -E runs the code through the compiler's parser,
8632 # not just through cpp. "Syntax error" is here to catch this case.
8633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8634 /* end confdefs.h. */
8635 #ifdef __STDC__
8636 # include <limits.h>
8637 #else
8638 # include <assert.h>
8639 #endif
8640 Syntax error
8641 _ACEOF
8642 if ac_fn_cxx_try_cpp "$LINENO"; then :
8643
8644 else
8645 # Broken: fails on valid input.
8646 continue
8647 fi
8648 rm -f conftest.err conftest.$ac_ext
8649
8650 # OK, works on sane cases. Now check whether nonexistent headers
8651 # can be detected and how.
8652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8653 /* end confdefs.h. */
8654 #include <ac_nonexistent.h>
8655 _ACEOF
8656 if ac_fn_cxx_try_cpp "$LINENO"; then :
8657 # Broken: success on invalid input.
8658 continue
8659 else
8660 # Passes both tests.
8661 ac_preproc_ok=:
8662 break
8663 fi
8664 rm -f conftest.err conftest.$ac_ext
8665
8666 done
8667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8668 rm -f conftest.err conftest.$ac_ext
8669 if $ac_preproc_ok; then :
8670
8671 else
8672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8675 See \`config.log' for more details." >&5
8676 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8677 See \`config.log' for more details." >&2;}; }
8678 fi
8679
8680 ac_ext=c
8681 ac_cpp='$CPP $CPPFLAGS'
8682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8685
8686
8687 ac_ext=cpp
8688 ac_cpp='$CXXCPP $CPPFLAGS'
8689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8692
8693
8694
8695
8696 for ac_header in unordered_map
8697 do :
8698 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8699 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8700 cat >>confdefs.h <<_ACEOF
8701 #define HAVE_UNORDERED_MAP 1
8702 _ACEOF
8703
8704 fi
8705 done
8706
8707 for ac_header in tr1/unordered_map
8708 do :
8709 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8710 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8711 cat >>confdefs.h <<_ACEOF
8712 #define HAVE_TR1_UNORDERED_MAP 1
8713 _ACEOF
8714
8715 fi
8716 done
8717
8718 for ac_header in ext/hash_map
8719 do :
8720 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8721 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8722 cat >>confdefs.h <<_ACEOF
8723 #define HAVE_EXT_HASH_MAP 1
8724 _ACEOF
8725
8726 fi
8727 done
8728
8729
8730 ac_ext=c
8731 ac_cpp='$CPP $CPPFLAGS'
8732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8735
8736
8737 # --------
8738 # UNSORTED
8739 # --------
8740
8741
8742 # These libraries may be used by collect2.
8743 # We may need a special search path to get them linked.
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8745 $as_echo_n "checking for collect2 libraries... " >&6; }
8746 if test "${gcc_cv_collect2_libs+set}" = set; then :
8747 $as_echo_n "(cached) " >&6
8748 else
8749 save_LIBS="$LIBS"
8750 for libs in '' -lld -lmld \
8751 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8752 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8753 do
8754 LIBS="$libs"
8755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8756 /* end confdefs.h. */
8757
8758 /* Override any GCC internal prototype to avoid an error.
8759 Use char because int might match the return type of a GCC
8760 builtin and then its argument prototype would still apply. */
8761 #ifdef __cplusplus
8762 extern "C"
8763 #endif
8764 char ldopen ();
8765 int
8766 main ()
8767 {
8768 return ldopen ();
8769 ;
8770 return 0;
8771 }
8772 _ACEOF
8773 if ac_fn_c_try_link "$LINENO"; then :
8774 gcc_cv_collect2_libs="$libs"; break
8775 fi
8776 rm -f core conftest.err conftest.$ac_objext \
8777 conftest$ac_exeext conftest.$ac_ext
8778 done
8779 LIBS="$save_LIBS"
8780 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8781 fi
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8783 $as_echo "$gcc_cv_collect2_libs" >&6; }
8784 case $gcc_cv_collect2_libs in
8785 "none required") ;;
8786 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8787 esac
8788
8789
8790 # When building Ada code on Alpha, we need exc_resume which is usually in
8791 # -lexc. So test for it.
8792 save_LIBS="$LIBS"
8793 LIBS=
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8795 $as_echo_n "checking for library containing exc_resume... " >&6; }
8796 if test "${ac_cv_search_exc_resume+set}" = set; then :
8797 $as_echo_n "(cached) " >&6
8798 else
8799 ac_func_search_save_LIBS=$LIBS
8800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8801 /* end confdefs.h. */
8802
8803 /* Override any GCC internal prototype to avoid an error.
8804 Use char because int might match the return type of a GCC
8805 builtin and then its argument prototype would still apply. */
8806 #ifdef __cplusplus
8807 extern "C"
8808 #endif
8809 char exc_resume ();
8810 int
8811 main ()
8812 {
8813 return exc_resume ();
8814 ;
8815 return 0;
8816 }
8817 _ACEOF
8818 for ac_lib in '' exc; do
8819 if test -z "$ac_lib"; then
8820 ac_res="none required"
8821 else
8822 ac_res=-l$ac_lib
8823 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8824 fi
8825 if ac_fn_c_try_link "$LINENO"; then :
8826 ac_cv_search_exc_resume=$ac_res
8827 fi
8828 rm -f core conftest.err conftest.$ac_objext \
8829 conftest$ac_exeext
8830 if test "${ac_cv_search_exc_resume+set}" = set; then :
8831 break
8832 fi
8833 done
8834 if test "${ac_cv_search_exc_resume+set}" = set; then :
8835
8836 else
8837 ac_cv_search_exc_resume=no
8838 fi
8839 rm conftest.$ac_ext
8840 LIBS=$ac_func_search_save_LIBS
8841 fi
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8843 $as_echo "$ac_cv_search_exc_resume" >&6; }
8844 ac_res=$ac_cv_search_exc_resume
8845 if test "$ac_res" != no; then :
8846 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8847
8848 fi
8849
8850 GNAT_LIBEXC="$LIBS"
8851 LIBS="$save_LIBS"
8852
8853
8854 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8855 save_LIBS="$LIBS"
8856 LIBS=
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8858 $as_echo_n "checking for library containing kstat_open... " >&6; }
8859 if test "${ac_cv_search_kstat_open+set}" = set; then :
8860 $as_echo_n "(cached) " >&6
8861 else
8862 ac_func_search_save_LIBS=$LIBS
8863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864 /* end confdefs.h. */
8865
8866 /* Override any GCC internal prototype to avoid an error.
8867 Use char because int might match the return type of a GCC
8868 builtin and then its argument prototype would still apply. */
8869 #ifdef __cplusplus
8870 extern "C"
8871 #endif
8872 char kstat_open ();
8873 int
8874 main ()
8875 {
8876 return kstat_open ();
8877 ;
8878 return 0;
8879 }
8880 _ACEOF
8881 for ac_lib in '' kstat; do
8882 if test -z "$ac_lib"; then
8883 ac_res="none required"
8884 else
8885 ac_res=-l$ac_lib
8886 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8887 fi
8888 if ac_fn_c_try_link "$LINENO"; then :
8889 ac_cv_search_kstat_open=$ac_res
8890 fi
8891 rm -f core conftest.err conftest.$ac_objext \
8892 conftest$ac_exeext
8893 if test "${ac_cv_search_kstat_open+set}" = set; then :
8894 break
8895 fi
8896 done
8897 if test "${ac_cv_search_kstat_open+set}" = set; then :
8898
8899 else
8900 ac_cv_search_kstat_open=no
8901 fi
8902 rm conftest.$ac_ext
8903 LIBS=$ac_func_search_save_LIBS
8904 fi
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8906 $as_echo "$ac_cv_search_kstat_open" >&6; }
8907 ac_res=$ac_cv_search_kstat_open
8908 if test "$ac_res" != no; then :
8909 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8910
8911 fi
8912
8913 EXTRA_GCC_LIBS="$LIBS"
8914 LIBS="$save_LIBS"
8915
8916
8917 # Some systems put ldexp and frexp in libm instead of libc; assume
8918 # they're both in the same place. jcf-dump needs them.
8919 save_LIBS="$LIBS"
8920 LIBS=
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8922 $as_echo_n "checking for library containing ldexp... " >&6; }
8923 if test "${ac_cv_search_ldexp+set}" = set; then :
8924 $as_echo_n "(cached) " >&6
8925 else
8926 ac_func_search_save_LIBS=$LIBS
8927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8928 /* end confdefs.h. */
8929
8930 /* Override any GCC internal prototype to avoid an error.
8931 Use char because int might match the return type of a GCC
8932 builtin and then its argument prototype would still apply. */
8933 #ifdef __cplusplus
8934 extern "C"
8935 #endif
8936 char ldexp ();
8937 int
8938 main ()
8939 {
8940 return ldexp ();
8941 ;
8942 return 0;
8943 }
8944 _ACEOF
8945 for ac_lib in '' m; do
8946 if test -z "$ac_lib"; then
8947 ac_res="none required"
8948 else
8949 ac_res=-l$ac_lib
8950 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8951 fi
8952 if ac_fn_c_try_link "$LINENO"; then :
8953 ac_cv_search_ldexp=$ac_res
8954 fi
8955 rm -f core conftest.err conftest.$ac_objext \
8956 conftest$ac_exeext
8957 if test "${ac_cv_search_ldexp+set}" = set; then :
8958 break
8959 fi
8960 done
8961 if test "${ac_cv_search_ldexp+set}" = set; then :
8962
8963 else
8964 ac_cv_search_ldexp=no
8965 fi
8966 rm conftest.$ac_ext
8967 LIBS=$ac_func_search_save_LIBS
8968 fi
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8970 $as_echo "$ac_cv_search_ldexp" >&6; }
8971 ac_res=$ac_cv_search_ldexp
8972 if test "$ac_res" != no; then :
8973 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8974
8975 fi
8976
8977 LDEXP_LIB="$LIBS"
8978 LIBS="$save_LIBS"
8979
8980
8981 # Use <inttypes.h> only if it exists,
8982 # doesn't clash with <sys/types.h>, and declares intmax_t.
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8984 $as_echo_n "checking for inttypes.h... " >&6; }
8985 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8986 $as_echo_n "(cached) " >&6
8987 else
8988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8989 /* end confdefs.h. */
8990 #include <sys/types.h>
8991 #include <inttypes.h>
8992 int
8993 main ()
8994 {
8995 intmax_t i = -1;
8996 ;
8997 return 0;
8998 }
8999 _ACEOF
9000 if ac_fn_c_try_compile "$LINENO"; then :
9001 gcc_cv_header_inttypes_h=yes
9002 else
9003 gcc_cv_header_inttypes_h=no
9004 fi
9005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9006 fi
9007
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9009 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9010 if test $gcc_cv_header_inttypes_h = yes; then
9011
9012 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9013
9014 fi
9015
9016
9017
9018 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9019 sysconf strsignal getrusage nl_langinfo \
9020 gettimeofday mbstowcs wcswidth mmap setlocale \
9021 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked madvise
9022 do :
9023 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9024 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9025 eval as_val=\$$as_ac_var
9026 if test "x$as_val" = x""yes; then :
9027 cat >>confdefs.h <<_ACEOF
9028 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9029 _ACEOF
9030
9031 fi
9032 done
9033
9034
9035 if test x$ac_cv_func_mbstowcs = xyes; then
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9037 $as_echo_n "checking whether mbstowcs works... " >&6; }
9038 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9039 $as_echo_n "(cached) " >&6
9040 else
9041 if test "$cross_compiling" = yes; then :
9042 gcc_cv_func_mbstowcs_works=yes
9043 else
9044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9045 /* end confdefs.h. */
9046 #include <stdlib.h>
9047 int main()
9048 {
9049 mbstowcs(0, "", 0);
9050 return 0;
9051 }
9052 _ACEOF
9053 if ac_fn_c_try_run "$LINENO"; then :
9054 gcc_cv_func_mbstowcs_works=yes
9055 else
9056 gcc_cv_func_mbstowcs_works=no
9057 fi
9058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9059 conftest.$ac_objext conftest.beam conftest.$ac_ext
9060 fi
9061
9062 fi
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9064 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9065 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9066
9067 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9068
9069 fi
9070 fi
9071
9072 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9073 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9074
9075 else
9076
9077 cat >>confdefs.h <<_ACEOF
9078 #define ssize_t int
9079 _ACEOF
9080
9081 fi
9082
9083 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9084 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9085
9086 else
9087
9088 cat >>confdefs.h <<_ACEOF
9089 #define caddr_t char *
9090 _ACEOF
9091
9092 fi
9093
9094
9095
9096 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9097 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9098 gcc_header_sys_mman_h=yes
9099 else
9100 gcc_header_sys_mman_h=no
9101 fi
9102
9103 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9104 if test "x$ac_cv_func_mmap" = x""yes; then :
9105 gcc_func_mmap=yes
9106 else
9107 gcc_func_mmap=no
9108 fi
9109
9110 if test "$gcc_header_sys_mman_h" != yes \
9111 || test "$gcc_func_mmap" != yes; then
9112 gcc_cv_func_mmap_file=no
9113 gcc_cv_func_mmap_dev_zero=no
9114 gcc_cv_func_mmap_anon=no
9115 else
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9117 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9118 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9119 $as_echo_n "(cached) " >&6
9120 else
9121 # Add a system to this blacklist if
9122 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9123 # memory area containing the same data that you'd get if you applied
9124 # read() to the same fd. The only system known to have a problem here
9125 # is VMS, where text files have record structure.
9126 case "$host_os" in
9127 vms* | ultrix*)
9128 gcc_cv_func_mmap_file=no ;;
9129 *)
9130 gcc_cv_func_mmap_file=yes;;
9131 esac
9132 fi
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9134 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9136 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9137 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9138 $as_echo_n "(cached) " >&6
9139 else
9140 # Add a system to this blacklist if it has mmap() but /dev/zero
9141 # does not exist, or if mmapping /dev/zero does not give anonymous
9142 # zeroed pages with both the following properties:
9143 # 1. If you map N consecutive pages in with one call, and then
9144 # unmap any subset of those pages, the pages that were not
9145 # explicitly unmapped remain accessible.
9146 # 2. If you map two adjacent blocks of memory and then unmap them
9147 # both at once, they must both go away.
9148 # Systems known to be in this category are Windows (all variants),
9149 # VMS, and Darwin.
9150 case "$host_os" in
9151 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9152 gcc_cv_func_mmap_dev_zero=no ;;
9153 *)
9154 gcc_cv_func_mmap_dev_zero=yes;;
9155 esac
9156 fi
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9158 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9159
9160 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9162 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9163 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9164 $as_echo_n "(cached) " >&6
9165 else
9166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9167 /* end confdefs.h. */
9168 #include <sys/types.h>
9169 #include <sys/mman.h>
9170 #include <unistd.h>
9171
9172 #ifndef MAP_ANONYMOUS
9173 #define MAP_ANONYMOUS MAP_ANON
9174 #endif
9175
9176 int
9177 main ()
9178 {
9179 int n = MAP_ANONYMOUS;
9180 ;
9181 return 0;
9182 }
9183 _ACEOF
9184 if ac_fn_c_try_compile "$LINENO"; then :
9185 gcc_cv_decl_map_anon=yes
9186 else
9187 gcc_cv_decl_map_anon=no
9188 fi
9189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9190 fi
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9192 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9193
9194 if test $gcc_cv_decl_map_anon = no; then
9195 gcc_cv_func_mmap_anon=no
9196 else
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9198 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9199 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9200 $as_echo_n "(cached) " >&6
9201 else
9202 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9203 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9204 # doesn't give anonymous zeroed pages with the same properties listed
9205 # above for use of /dev/zero.
9206 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9207 case "$host_os" in
9208 vms* | cygwin* | pe | mingw* | sco* | udk* )
9209 gcc_cv_func_mmap_anon=no ;;
9210 *)
9211 gcc_cv_func_mmap_anon=yes;;
9212 esac
9213 fi
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9215 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9216 fi
9217 fi
9218
9219 if test $gcc_cv_func_mmap_file = yes; then
9220
9221 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9222
9223 fi
9224 if test $gcc_cv_func_mmap_dev_zero = yes; then
9225
9226 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9227
9228 fi
9229 if test $gcc_cv_func_mmap_anon = yes; then
9230
9231 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9232
9233 fi
9234
9235
9236 case "${host}" in
9237 *-*-*vms*)
9238 # Under VMS, vfork works very differently than on Unix. The standard test
9239 # won't work, and it isn't easily adaptable. It makes more sense to
9240 # just force it.
9241 ac_cv_func_vfork_works=yes
9242 ;;
9243 esac
9244 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9245 if test "x$ac_cv_type_pid_t" = x""yes; then :
9246
9247 else
9248
9249 cat >>confdefs.h <<_ACEOF
9250 #define pid_t int
9251 _ACEOF
9252
9253 fi
9254
9255 for ac_header in vfork.h
9256 do :
9257 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9258 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9259 cat >>confdefs.h <<_ACEOF
9260 #define HAVE_VFORK_H 1
9261 _ACEOF
9262
9263 fi
9264 done
9265
9266 for ac_func in fork vfork
9267 do :
9268 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9269 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9270 eval as_val=\$$as_ac_var
9271 if test "x$as_val" = x""yes; then :
9272 cat >>confdefs.h <<_ACEOF
9273 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9274 _ACEOF
9275
9276 fi
9277 done
9278
9279 if test "x$ac_cv_func_fork" = xyes; then
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9281 $as_echo_n "checking for working fork... " >&6; }
9282 if test "${ac_cv_func_fork_works+set}" = set; then :
9283 $as_echo_n "(cached) " >&6
9284 else
9285 if test "$cross_compiling" = yes; then :
9286 ac_cv_func_fork_works=cross
9287 else
9288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9289 /* end confdefs.h. */
9290 $ac_includes_default
9291 int
9292 main ()
9293 {
9294
9295 /* By Ruediger Kuhlmann. */
9296 return fork () < 0;
9297
9298 ;
9299 return 0;
9300 }
9301 _ACEOF
9302 if ac_fn_c_try_run "$LINENO"; then :
9303 ac_cv_func_fork_works=yes
9304 else
9305 ac_cv_func_fork_works=no
9306 fi
9307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9308 conftest.$ac_objext conftest.beam conftest.$ac_ext
9309 fi
9310
9311 fi
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9313 $as_echo "$ac_cv_func_fork_works" >&6; }
9314
9315 else
9316 ac_cv_func_fork_works=$ac_cv_func_fork
9317 fi
9318 if test "x$ac_cv_func_fork_works" = xcross; then
9319 case $host in
9320 *-*-amigaos* | *-*-msdosdjgpp*)
9321 # Override, as these systems have only a dummy fork() stub
9322 ac_cv_func_fork_works=no
9323 ;;
9324 *)
9325 ac_cv_func_fork_works=yes
9326 ;;
9327 esac
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9329 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9330 fi
9331 ac_cv_func_vfork_works=$ac_cv_func_vfork
9332 if test "x$ac_cv_func_vfork" = xyes; then
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9334 $as_echo_n "checking for working vfork... " >&6; }
9335 if test "${ac_cv_func_vfork_works+set}" = set; then :
9336 $as_echo_n "(cached) " >&6
9337 else
9338 if test "$cross_compiling" = yes; then :
9339 ac_cv_func_vfork_works=cross
9340 else
9341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9342 /* end confdefs.h. */
9343 /* Thanks to Paul Eggert for this test. */
9344 $ac_includes_default
9345 #include <sys/wait.h>
9346 #ifdef HAVE_VFORK_H
9347 # include <vfork.h>
9348 #endif
9349 /* On some sparc systems, changes by the child to local and incoming
9350 argument registers are propagated back to the parent. The compiler
9351 is told about this with #include <vfork.h>, but some compilers
9352 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9353 static variable whose address is put into a register that is
9354 clobbered by the vfork. */
9355 static void
9356 #ifdef __cplusplus
9357 sparc_address_test (int arg)
9358 # else
9359 sparc_address_test (arg) int arg;
9360 #endif
9361 {
9362 static pid_t child;
9363 if (!child) {
9364 child = vfork ();
9365 if (child < 0) {
9366 perror ("vfork");
9367 _exit(2);
9368 }
9369 if (!child) {
9370 arg = getpid();
9371 write(-1, "", 0);
9372 _exit (arg);
9373 }
9374 }
9375 }
9376
9377 int
9378 main ()
9379 {
9380 pid_t parent = getpid ();
9381 pid_t child;
9382
9383 sparc_address_test (0);
9384
9385 child = vfork ();
9386
9387 if (child == 0) {
9388 /* Here is another test for sparc vfork register problems. This
9389 test uses lots of local variables, at least as many local
9390 variables as main has allocated so far including compiler
9391 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9392 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9393 reuse the register of parent for one of the local variables,
9394 since it will think that parent can't possibly be used any more
9395 in this routine. Assigning to the local variable will thus
9396 munge parent in the parent process. */
9397 pid_t
9398 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9399 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9400 /* Convince the compiler that p..p7 are live; otherwise, it might
9401 use the same hardware register for all 8 local variables. */
9402 if (p != p1 || p != p2 || p != p3 || p != p4
9403 || p != p5 || p != p6 || p != p7)
9404 _exit(1);
9405
9406 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9407 from child file descriptors. If the child closes a descriptor
9408 before it execs or exits, this munges the parent's descriptor
9409 as well. Test for this by closing stdout in the child. */
9410 _exit(close(fileno(stdout)) != 0);
9411 } else {
9412 int status;
9413 struct stat st;
9414
9415 while (wait(&status) != child)
9416 ;
9417 return (
9418 /* Was there some problem with vforking? */
9419 child < 0
9420
9421 /* Did the child fail? (This shouldn't happen.) */
9422 || status
9423
9424 /* Did the vfork/compiler bug occur? */
9425 || parent != getpid()
9426
9427 /* Did the file descriptor bug occur? */
9428 || fstat(fileno(stdout), &st) != 0
9429 );
9430 }
9431 }
9432 _ACEOF
9433 if ac_fn_c_try_run "$LINENO"; then :
9434 ac_cv_func_vfork_works=yes
9435 else
9436 ac_cv_func_vfork_works=no
9437 fi
9438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9439 conftest.$ac_objext conftest.beam conftest.$ac_ext
9440 fi
9441
9442 fi
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9444 $as_echo "$ac_cv_func_vfork_works" >&6; }
9445
9446 fi;
9447 if test "x$ac_cv_func_fork_works" = xcross; then
9448 ac_cv_func_vfork_works=$ac_cv_func_vfork
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9450 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9451 fi
9452
9453 if test "x$ac_cv_func_vfork_works" = xyes; then
9454
9455 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9456
9457 else
9458
9459 $as_echo "#define vfork fork" >>confdefs.h
9460
9461 fi
9462 if test "x$ac_cv_func_fork_works" = xyes; then
9463
9464 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9465
9466 fi
9467
9468
9469 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9470 # iconv() prototype.
9471
9472 if test "X$prefix" = "XNONE"; then
9473 acl_final_prefix="$ac_default_prefix"
9474 else
9475 acl_final_prefix="$prefix"
9476 fi
9477 if test "X$exec_prefix" = "XNONE"; then
9478 acl_final_exec_prefix='${prefix}'
9479 else
9480 acl_final_exec_prefix="$exec_prefix"
9481 fi
9482 acl_save_prefix="$prefix"
9483 prefix="$acl_final_prefix"
9484 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9485 prefix="$acl_save_prefix"
9486
9487
9488 # Check whether --with-gnu-ld was given.
9489 if test "${with_gnu_ld+set}" = set; then :
9490 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9491 else
9492 with_gnu_ld=no
9493 fi
9494
9495 # Prepare PATH_SEPARATOR.
9496 # The user is always right.
9497 if test "${PATH_SEPARATOR+set}" != set; then
9498 echo "#! /bin/sh" >conf$$.sh
9499 echo "exit 0" >>conf$$.sh
9500 chmod +x conf$$.sh
9501 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9502 PATH_SEPARATOR=';'
9503 else
9504 PATH_SEPARATOR=:
9505 fi
9506 rm -f conf$$.sh
9507 fi
9508 ac_prog=ld
9509 if test "$GCC" = yes; then
9510 # Check if gcc -print-prog-name=ld gives a path.
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9512 $as_echo_n "checking for ld used by GCC... " >&6; }
9513 case $host in
9514 *-*-mingw*)
9515 # gcc leaves a trailing carriage return which upsets mingw
9516 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9517 *)
9518 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9519 esac
9520 case $ac_prog in
9521 # Accept absolute paths.
9522 [\\/]* | [A-Za-z]:[\\/]*)
9523 re_direlt='/[^/][^/]*/\.\./'
9524 # Canonicalize the path of ld
9525 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9526 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9527 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9528 done
9529 test -z "$LD" && LD="$ac_prog"
9530 ;;
9531 "")
9532 # If it fails, then pretend we aren't using GCC.
9533 ac_prog=ld
9534 ;;
9535 *)
9536 # If it is relative, then search for the first ld in PATH.
9537 with_gnu_ld=unknown
9538 ;;
9539 esac
9540 elif test "$with_gnu_ld" = yes; then
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9542 $as_echo_n "checking for GNU ld... " >&6; }
9543 else
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9545 $as_echo_n "checking for non-GNU ld... " >&6; }
9546 fi
9547 if test "${acl_cv_path_LD+set}" = set; then :
9548 $as_echo_n "(cached) " >&6
9549 else
9550 if test -z "$LD"; then
9551 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9552 for ac_dir in $PATH; do
9553 test -z "$ac_dir" && ac_dir=.
9554 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9555 acl_cv_path_LD="$ac_dir/$ac_prog"
9556 # Check to see if the program is GNU ld. I'd rather use --version,
9557 # but apparently some GNU ld's only accept -v.
9558 # Break only if it was the GNU/non-GNU ld that we prefer.
9559 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9560 test "$with_gnu_ld" != no && break
9561 else
9562 test "$with_gnu_ld" != yes && break
9563 fi
9564 fi
9565 done
9566 IFS="$ac_save_ifs"
9567 else
9568 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9569 fi
9570 fi
9571
9572 LD="$acl_cv_path_LD"
9573 if test -n "$LD"; then
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9575 $as_echo "$LD" >&6; }
9576 else
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9578 $as_echo "no" >&6; }
9579 fi
9580 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9582 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9583 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9584 $as_echo_n "(cached) " >&6
9585 else
9586 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9587 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9588 acl_cv_prog_gnu_ld=yes
9589 else
9590 acl_cv_prog_gnu_ld=no
9591 fi
9592 fi
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9594 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9595 with_gnu_ld=$acl_cv_prog_gnu_ld
9596
9597
9598
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9600 $as_echo_n "checking for shared library run path origin... " >&6; }
9601 if test "${acl_cv_rpath+set}" = set; then :
9602 $as_echo_n "(cached) " >&6
9603 else
9604
9605 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9606 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9607 . ./conftest.sh
9608 rm -f ./conftest.sh
9609 acl_cv_rpath=done
9610
9611 fi
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9613 $as_echo "$acl_cv_rpath" >&6; }
9614 wl="$acl_cv_wl"
9615 libext="$acl_cv_libext"
9616 shlibext="$acl_cv_shlibext"
9617 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9618 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9619 hardcode_direct="$acl_cv_hardcode_direct"
9620 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9621 # Check whether --enable-rpath was given.
9622 if test "${enable_rpath+set}" = set; then :
9623 enableval=$enable_rpath; :
9624 else
9625 enable_rpath=yes
9626 fi
9627
9628
9629
9630
9631
9632
9633
9634
9635 use_additional=yes
9636
9637 acl_save_prefix="$prefix"
9638 prefix="$acl_final_prefix"
9639 acl_save_exec_prefix="$exec_prefix"
9640 exec_prefix="$acl_final_exec_prefix"
9641
9642 eval additional_includedir=\"$includedir\"
9643 eval additional_libdir=\"$libdir\"
9644
9645 exec_prefix="$acl_save_exec_prefix"
9646 prefix="$acl_save_prefix"
9647
9648
9649 # Check whether --with-libiconv-prefix was given.
9650 if test "${with_libiconv_prefix+set}" = set; then :
9651 withval=$with_libiconv_prefix;
9652 if test "X$withval" = "Xno"; then
9653 use_additional=no
9654 else
9655 if test "X$withval" = "X"; then
9656
9657 acl_save_prefix="$prefix"
9658 prefix="$acl_final_prefix"
9659 acl_save_exec_prefix="$exec_prefix"
9660 exec_prefix="$acl_final_exec_prefix"
9661
9662 eval additional_includedir=\"$includedir\"
9663 eval additional_libdir=\"$libdir\"
9664
9665 exec_prefix="$acl_save_exec_prefix"
9666 prefix="$acl_save_prefix"
9667
9668 else
9669 additional_includedir="$withval/include"
9670 additional_libdir="$withval/lib"
9671 fi
9672 fi
9673
9674 fi
9675
9676 LIBICONV=
9677 LTLIBICONV=
9678 INCICONV=
9679 rpathdirs=
9680 ltrpathdirs=
9681 names_already_handled=
9682 names_next_round='iconv '
9683 while test -n "$names_next_round"; do
9684 names_this_round="$names_next_round"
9685 names_next_round=
9686 for name in $names_this_round; do
9687 already_handled=
9688 for n in $names_already_handled; do
9689 if test "$n" = "$name"; then
9690 already_handled=yes
9691 break
9692 fi
9693 done
9694 if test -z "$already_handled"; then
9695 names_already_handled="$names_already_handled $name"
9696 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9697 eval value=\"\$HAVE_LIB$uppername\"
9698 if test -n "$value"; then
9699 if test "$value" = yes; then
9700 eval value=\"\$LIB$uppername\"
9701 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9702 eval value=\"\$LTLIB$uppername\"
9703 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9704 else
9705 :
9706 fi
9707 else
9708 found_dir=
9709 found_la=
9710 found_so=
9711 found_a=
9712 if test $use_additional = yes; then
9713 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9714 found_dir="$additional_libdir"
9715 found_so="$additional_libdir/lib$name.$shlibext"
9716 if test -f "$additional_libdir/lib$name.la"; then
9717 found_la="$additional_libdir/lib$name.la"
9718 fi
9719 else
9720 if test -f "$additional_libdir/lib$name.$libext"; then
9721 found_dir="$additional_libdir"
9722 found_a="$additional_libdir/lib$name.$libext"
9723 if test -f "$additional_libdir/lib$name.la"; then
9724 found_la="$additional_libdir/lib$name.la"
9725 fi
9726 fi
9727 fi
9728 fi
9729 if test "X$found_dir" = "X"; then
9730 for x in $LDFLAGS $LTLIBICONV; do
9731
9732 acl_save_prefix="$prefix"
9733 prefix="$acl_final_prefix"
9734 acl_save_exec_prefix="$exec_prefix"
9735 exec_prefix="$acl_final_exec_prefix"
9736 eval x=\"$x\"
9737 exec_prefix="$acl_save_exec_prefix"
9738 prefix="$acl_save_prefix"
9739
9740 case "$x" in
9741 -L*)
9742 dir=`echo "X$x" | sed -e 's/^X-L//'`
9743 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9744 found_dir="$dir"
9745 found_so="$dir/lib$name.$shlibext"
9746 if test -f "$dir/lib$name.la"; then
9747 found_la="$dir/lib$name.la"
9748 fi
9749 else
9750 if test -f "$dir/lib$name.$libext"; then
9751 found_dir="$dir"
9752 found_a="$dir/lib$name.$libext"
9753 if test -f "$dir/lib$name.la"; then
9754 found_la="$dir/lib$name.la"
9755 fi
9756 fi
9757 fi
9758 ;;
9759 esac
9760 if test "X$found_dir" != "X"; then
9761 break
9762 fi
9763 done
9764 fi
9765 if test "X$found_dir" != "X"; then
9766 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9767 if test "X$found_so" != "X"; then
9768 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9769 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9770 else
9771 haveit=
9772 for x in $ltrpathdirs; do
9773 if test "X$x" = "X$found_dir"; then
9774 haveit=yes
9775 break
9776 fi
9777 done
9778 if test -z "$haveit"; then
9779 ltrpathdirs="$ltrpathdirs $found_dir"
9780 fi
9781 if test "$hardcode_direct" = yes; then
9782 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9783 else
9784 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9785 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9786 haveit=
9787 for x in $rpathdirs; do
9788 if test "X$x" = "X$found_dir"; then
9789 haveit=yes
9790 break
9791 fi
9792 done
9793 if test -z "$haveit"; then
9794 rpathdirs="$rpathdirs $found_dir"
9795 fi
9796 else
9797 haveit=
9798 for x in $LDFLAGS $LIBICONV; do
9799
9800 acl_save_prefix="$prefix"
9801 prefix="$acl_final_prefix"
9802 acl_save_exec_prefix="$exec_prefix"
9803 exec_prefix="$acl_final_exec_prefix"
9804 eval x=\"$x\"
9805 exec_prefix="$acl_save_exec_prefix"
9806 prefix="$acl_save_prefix"
9807
9808 if test "X$x" = "X-L$found_dir"; then
9809 haveit=yes
9810 break
9811 fi
9812 done
9813 if test -z "$haveit"; then
9814 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9815 fi
9816 if test "$hardcode_minus_L" != no; then
9817 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9818 else
9819 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9820 fi
9821 fi
9822 fi
9823 fi
9824 else
9825 if test "X$found_a" != "X"; then
9826 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9827 else
9828 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9829 fi
9830 fi
9831 additional_includedir=
9832 case "$found_dir" in
9833 */lib | */lib/)
9834 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9835 additional_includedir="$basedir/include"
9836 ;;
9837 esac
9838 if test "X$additional_includedir" != "X"; then
9839 if test "X$additional_includedir" != "X/usr/include"; then
9840 haveit=
9841 if test "X$additional_includedir" = "X/usr/local/include"; then
9842 if test -n "$GCC"; then
9843 case $host_os in
9844 linux*) haveit=yes;;
9845 esac
9846 fi
9847 fi
9848 if test -z "$haveit"; then
9849 for x in $CPPFLAGS $INCICONV; do
9850
9851 acl_save_prefix="$prefix"
9852 prefix="$acl_final_prefix"
9853 acl_save_exec_prefix="$exec_prefix"
9854 exec_prefix="$acl_final_exec_prefix"
9855 eval x=\"$x\"
9856 exec_prefix="$acl_save_exec_prefix"
9857 prefix="$acl_save_prefix"
9858
9859 if test "X$x" = "X-I$additional_includedir"; then
9860 haveit=yes
9861 break
9862 fi
9863 done
9864 if test -z "$haveit"; then
9865 if test -d "$additional_includedir"; then
9866 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9867 fi
9868 fi
9869 fi
9870 fi
9871 fi
9872 if test -n "$found_la"; then
9873 save_libdir="$libdir"
9874 case "$found_la" in
9875 */* | *\\*) . "$found_la" ;;
9876 *) . "./$found_la" ;;
9877 esac
9878 libdir="$save_libdir"
9879 for dep in $dependency_libs; do
9880 case "$dep" in
9881 -L*)
9882 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9883 if test "X$additional_libdir" != "X/usr/lib"; then
9884 haveit=
9885 if test "X$additional_libdir" = "X/usr/local/lib"; then
9886 if test -n "$GCC"; then
9887 case $host_os in
9888 linux*) haveit=yes;;
9889 esac
9890 fi
9891 fi
9892 if test -z "$haveit"; then
9893 haveit=
9894 for x in $LDFLAGS $LIBICONV; do
9895
9896 acl_save_prefix="$prefix"
9897 prefix="$acl_final_prefix"
9898 acl_save_exec_prefix="$exec_prefix"
9899 exec_prefix="$acl_final_exec_prefix"
9900 eval x=\"$x\"
9901 exec_prefix="$acl_save_exec_prefix"
9902 prefix="$acl_save_prefix"
9903
9904 if test "X$x" = "X-L$additional_libdir"; then
9905 haveit=yes
9906 break
9907 fi
9908 done
9909 if test -z "$haveit"; then
9910 if test -d "$additional_libdir"; then
9911 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9912 fi
9913 fi
9914 haveit=
9915 for x in $LDFLAGS $LTLIBICONV; do
9916
9917 acl_save_prefix="$prefix"
9918 prefix="$acl_final_prefix"
9919 acl_save_exec_prefix="$exec_prefix"
9920 exec_prefix="$acl_final_exec_prefix"
9921 eval x=\"$x\"
9922 exec_prefix="$acl_save_exec_prefix"
9923 prefix="$acl_save_prefix"
9924
9925 if test "X$x" = "X-L$additional_libdir"; then
9926 haveit=yes
9927 break
9928 fi
9929 done
9930 if test -z "$haveit"; then
9931 if test -d "$additional_libdir"; then
9932 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9933 fi
9934 fi
9935 fi
9936 fi
9937 ;;
9938 -R*)
9939 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9940 if test "$enable_rpath" != no; then
9941 haveit=
9942 for x in $rpathdirs; do
9943 if test "X$x" = "X$dir"; then
9944 haveit=yes
9945 break
9946 fi
9947 done
9948 if test -z "$haveit"; then
9949 rpathdirs="$rpathdirs $dir"
9950 fi
9951 haveit=
9952 for x in $ltrpathdirs; do
9953 if test "X$x" = "X$dir"; then
9954 haveit=yes
9955 break
9956 fi
9957 done
9958 if test -z "$haveit"; then
9959 ltrpathdirs="$ltrpathdirs $dir"
9960 fi
9961 fi
9962 ;;
9963 -l*)
9964 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9965 ;;
9966 *.la)
9967 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9968 ;;
9969 *)
9970 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9971 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9972 ;;
9973 esac
9974 done
9975 fi
9976 else
9977 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9978 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9979 fi
9980 fi
9981 fi
9982 done
9983 done
9984 if test "X$rpathdirs" != "X"; then
9985 if test -n "$hardcode_libdir_separator"; then
9986 alldirs=
9987 for found_dir in $rpathdirs; do
9988 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9989 done
9990 acl_save_libdir="$libdir"
9991 libdir="$alldirs"
9992 eval flag=\"$hardcode_libdir_flag_spec\"
9993 libdir="$acl_save_libdir"
9994 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9995 else
9996 for found_dir in $rpathdirs; do
9997 acl_save_libdir="$libdir"
9998 libdir="$found_dir"
9999 eval flag=\"$hardcode_libdir_flag_spec\"
10000 libdir="$acl_save_libdir"
10001 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10002 done
10003 fi
10004 fi
10005 if test "X$ltrpathdirs" != "X"; then
10006 for found_dir in $ltrpathdirs; do
10007 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10008 done
10009 fi
10010
10011
10012 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10013 ac_ext=cpp
10014 ac_cpp='$CXXCPP $CPPFLAGS'
10015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10018
10019
10020
10021
10022
10023
10024 am_save_CPPFLAGS="$CPPFLAGS"
10025
10026 for element in $INCICONV; do
10027 haveit=
10028 for x in $CPPFLAGS; do
10029
10030 acl_save_prefix="$prefix"
10031 prefix="$acl_final_prefix"
10032 acl_save_exec_prefix="$exec_prefix"
10033 exec_prefix="$acl_final_exec_prefix"
10034 eval x=\"$x\"
10035 exec_prefix="$acl_save_exec_prefix"
10036 prefix="$acl_save_prefix"
10037
10038 if test "X$x" = "X$element"; then
10039 haveit=yes
10040 break
10041 fi
10042 done
10043 if test -z "$haveit"; then
10044 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10045 fi
10046 done
10047
10048
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10050 $as_echo_n "checking for iconv... " >&6; }
10051 if test "${am_cv_func_iconv+set}" = set; then :
10052 $as_echo_n "(cached) " >&6
10053 else
10054
10055 am_cv_func_iconv="no, consider installing GNU libiconv"
10056 am_cv_lib_iconv=no
10057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10058 /* end confdefs.h. */
10059 #include <stdlib.h>
10060 #include <iconv.h>
10061 int
10062 main ()
10063 {
10064 iconv_t cd = iconv_open("","");
10065 iconv(cd,NULL,NULL,NULL,NULL);
10066 iconv_close(cd);
10067 ;
10068 return 0;
10069 }
10070 _ACEOF
10071 if ac_fn_cxx_try_link "$LINENO"; then :
10072 am_cv_func_iconv=yes
10073 fi
10074 rm -f core conftest.err conftest.$ac_objext \
10075 conftest$ac_exeext conftest.$ac_ext
10076 if test "$am_cv_func_iconv" != yes; then
10077 am_save_LIBS="$LIBS"
10078 LIBS="$LIBS $LIBICONV"
10079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10080 /* end confdefs.h. */
10081 #include <stdlib.h>
10082 #include <iconv.h>
10083 int
10084 main ()
10085 {
10086 iconv_t cd = iconv_open("","");
10087 iconv(cd,NULL,NULL,NULL,NULL);
10088 iconv_close(cd);
10089 ;
10090 return 0;
10091 }
10092 _ACEOF
10093 if ac_fn_cxx_try_link "$LINENO"; then :
10094 am_cv_lib_iconv=yes
10095 am_cv_func_iconv=yes
10096 fi
10097 rm -f core conftest.err conftest.$ac_objext \
10098 conftest$ac_exeext conftest.$ac_ext
10099 LIBS="$am_save_LIBS"
10100 fi
10101
10102 fi
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10104 $as_echo "$am_cv_func_iconv" >&6; }
10105 if test "$am_cv_func_iconv" = yes; then
10106
10107 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10108
10109 fi
10110 if test "$am_cv_lib_iconv" = yes; then
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10112 $as_echo_n "checking how to link with libiconv... " >&6; }
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10114 $as_echo "$LIBICONV" >&6; }
10115 else
10116 CPPFLAGS="$am_save_CPPFLAGS"
10117 LIBICONV=
10118 LTLIBICONV=
10119 fi
10120
10121
10122
10123 if test "$am_cv_func_iconv" = yes; then
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10125 $as_echo_n "checking for iconv declaration... " >&6; }
10126 if test "${am_cv_proto_iconv+set}" = set; then :
10127 $as_echo_n "(cached) " >&6
10128 else
10129
10130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10131 /* end confdefs.h. */
10132
10133 #include <stdlib.h>
10134 #include <iconv.h>
10135 extern
10136 #ifdef __cplusplus
10137 "C"
10138 #endif
10139 #if defined(__STDC__) || defined(__cplusplus)
10140 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10141 #else
10142 size_t iconv();
10143 #endif
10144
10145 int
10146 main ()
10147 {
10148
10149 ;
10150 return 0;
10151 }
10152 _ACEOF
10153 if ac_fn_cxx_try_compile "$LINENO"; then :
10154 am_cv_proto_iconv_arg1=""
10155 else
10156 am_cv_proto_iconv_arg1="const"
10157 fi
10158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10159 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);"
10160 fi
10161
10162 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10164 }$am_cv_proto_iconv" >&5
10165 $as_echo "${ac_t:-
10166 }$am_cv_proto_iconv" >&6; }
10167
10168 cat >>confdefs.h <<_ACEOF
10169 #define ICONV_CONST $am_cv_proto_iconv_arg1
10170 _ACEOF
10171
10172 fi
10173
10174 ac_ext=c
10175 ac_cpp='$CPP $CPPFLAGS'
10176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10179
10180 else
10181
10182
10183
10184
10185
10186 am_save_CPPFLAGS="$CPPFLAGS"
10187
10188 for element in $INCICONV; do
10189 haveit=
10190 for x in $CPPFLAGS; do
10191
10192 acl_save_prefix="$prefix"
10193 prefix="$acl_final_prefix"
10194 acl_save_exec_prefix="$exec_prefix"
10195 exec_prefix="$acl_final_exec_prefix"
10196 eval x=\"$x\"
10197 exec_prefix="$acl_save_exec_prefix"
10198 prefix="$acl_save_prefix"
10199
10200 if test "X$x" = "X$element"; then
10201 haveit=yes
10202 break
10203 fi
10204 done
10205 if test -z "$haveit"; then
10206 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10207 fi
10208 done
10209
10210
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10212 $as_echo_n "checking for iconv... " >&6; }
10213 if test "${am_cv_func_iconv+set}" = set; then :
10214 $as_echo_n "(cached) " >&6
10215 else
10216
10217 am_cv_func_iconv="no, consider installing GNU libiconv"
10218 am_cv_lib_iconv=no
10219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10220 /* end confdefs.h. */
10221 #include <stdlib.h>
10222 #include <iconv.h>
10223 int
10224 main ()
10225 {
10226 iconv_t cd = iconv_open("","");
10227 iconv(cd,NULL,NULL,NULL,NULL);
10228 iconv_close(cd);
10229 ;
10230 return 0;
10231 }
10232 _ACEOF
10233 if ac_fn_c_try_link "$LINENO"; then :
10234 am_cv_func_iconv=yes
10235 fi
10236 rm -f core conftest.err conftest.$ac_objext \
10237 conftest$ac_exeext conftest.$ac_ext
10238 if test "$am_cv_func_iconv" != yes; then
10239 am_save_LIBS="$LIBS"
10240 LIBS="$LIBS $LIBICONV"
10241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10242 /* end confdefs.h. */
10243 #include <stdlib.h>
10244 #include <iconv.h>
10245 int
10246 main ()
10247 {
10248 iconv_t cd = iconv_open("","");
10249 iconv(cd,NULL,NULL,NULL,NULL);
10250 iconv_close(cd);
10251 ;
10252 return 0;
10253 }
10254 _ACEOF
10255 if ac_fn_c_try_link "$LINENO"; then :
10256 am_cv_lib_iconv=yes
10257 am_cv_func_iconv=yes
10258 fi
10259 rm -f core conftest.err conftest.$ac_objext \
10260 conftest$ac_exeext conftest.$ac_ext
10261 LIBS="$am_save_LIBS"
10262 fi
10263
10264 fi
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10266 $as_echo "$am_cv_func_iconv" >&6; }
10267 if test "$am_cv_func_iconv" = yes; then
10268
10269 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10270
10271 fi
10272 if test "$am_cv_lib_iconv" = yes; then
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10274 $as_echo_n "checking how to link with libiconv... " >&6; }
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10276 $as_echo "$LIBICONV" >&6; }
10277 else
10278 CPPFLAGS="$am_save_CPPFLAGS"
10279 LIBICONV=
10280 LTLIBICONV=
10281 fi
10282
10283
10284
10285 if test "$am_cv_func_iconv" = yes; then
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10287 $as_echo_n "checking for iconv declaration... " >&6; }
10288 if test "${am_cv_proto_iconv+set}" = set; then :
10289 $as_echo_n "(cached) " >&6
10290 else
10291
10292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10293 /* end confdefs.h. */
10294
10295 #include <stdlib.h>
10296 #include <iconv.h>
10297 extern
10298 #ifdef __cplusplus
10299 "C"
10300 #endif
10301 #if defined(__STDC__) || defined(__cplusplus)
10302 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10303 #else
10304 size_t iconv();
10305 #endif
10306
10307 int
10308 main ()
10309 {
10310
10311 ;
10312 return 0;
10313 }
10314 _ACEOF
10315 if ac_fn_c_try_compile "$LINENO"; then :
10316 am_cv_proto_iconv_arg1=""
10317 else
10318 am_cv_proto_iconv_arg1="const"
10319 fi
10320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10321 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);"
10322 fi
10323
10324 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10326 }$am_cv_proto_iconv" >&5
10327 $as_echo "${ac_t:-
10328 }$am_cv_proto_iconv" >&6; }
10329
10330 cat >>confdefs.h <<_ACEOF
10331 #define ICONV_CONST $am_cv_proto_iconv_arg1
10332 _ACEOF
10333
10334 fi
10335
10336 fi
10337
10338 # Until we have in-tree GNU iconv:
10339 LIBICONV_DEP=
10340
10341
10342
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10344 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10345 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10346 $as_echo_n "(cached) " >&6
10347 else
10348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10349 /* end confdefs.h. */
10350 #include <locale.h>
10351 int
10352 main ()
10353 {
10354 return LC_MESSAGES
10355 ;
10356 return 0;
10357 }
10358 _ACEOF
10359 if ac_fn_c_try_link "$LINENO"; then :
10360 am_cv_val_LC_MESSAGES=yes
10361 else
10362 am_cv_val_LC_MESSAGES=no
10363 fi
10364 rm -f core conftest.err conftest.$ac_objext \
10365 conftest$ac_exeext conftest.$ac_ext
10366 fi
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10368 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10369 if test $am_cv_val_LC_MESSAGES = yes; then
10370
10371 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10372
10373 fi
10374
10375
10376
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10378 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10379 if test "${am_cv_langinfo_codeset+set}" = set; then :
10380 $as_echo_n "(cached) " >&6
10381 else
10382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10383 /* end confdefs.h. */
10384 #include <langinfo.h>
10385 int
10386 main ()
10387 {
10388 char* cs = nl_langinfo(CODESET);
10389 ;
10390 return 0;
10391 }
10392 _ACEOF
10393 if ac_fn_c_try_link "$LINENO"; then :
10394 am_cv_langinfo_codeset=yes
10395 else
10396 am_cv_langinfo_codeset=no
10397 fi
10398 rm -f core conftest.err conftest.$ac_objext \
10399 conftest$ac_exeext conftest.$ac_ext
10400
10401 fi
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10403 $as_echo "$am_cv_langinfo_codeset" >&6; }
10404 if test $am_cv_langinfo_codeset = yes; then
10405
10406 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10407
10408 fi
10409
10410
10411 # We will need to find libiberty.h and ansidecl.h
10412 saved_CFLAGS="$CFLAGS"
10413 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10414 saved_CXXFLAGS="$CXXFLAGS"
10415 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10416 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10417 strsignal strstr strverscmp \
10418 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10419 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
10420 do
10421 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10423 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10424 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10425 $as_echo_n "(cached) " >&6
10426 else
10427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10428 /* end confdefs.h. */
10429 #undef $ac_tr_decl
10430 #define $ac_tr_decl 1
10431
10432 #include "ansidecl.h"
10433 #include "system.h"
10434
10435 int
10436 main ()
10437 {
10438 #ifndef $ac_func
10439 char *(*pfn) = (char *(*)) $ac_func ;
10440 #endif
10441 ;
10442 return 0;
10443 }
10444 _ACEOF
10445 if ac_fn_c_try_compile "$LINENO"; then :
10446 eval "gcc_cv_have_decl_$ac_func=yes"
10447 else
10448 eval "gcc_cv_have_decl_$ac_func=no"
10449 fi
10450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10451 fi
10452
10453 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10455 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10456 #define $ac_tr_decl 1
10457 _ACEOF
10458
10459 else
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10461 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10462 #define $ac_tr_decl 0
10463 _ACEOF
10464
10465 fi
10466
10467 done
10468
10469
10470 for ac_func in getrlimit setrlimit getrusage
10471 do
10472 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10474 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10475 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10476 $as_echo_n "(cached) " >&6
10477 else
10478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10479 /* end confdefs.h. */
10480 #undef $ac_tr_decl
10481 #define $ac_tr_decl 1
10482
10483 #include "ansidecl.h"
10484 #include "system.h"
10485 #ifdef HAVE_SYS_RESOURCE_H
10486 #include <sys/resource.h>
10487 #endif
10488
10489
10490 int
10491 main ()
10492 {
10493 #ifndef $ac_func
10494 char *(*pfn) = (char *(*)) $ac_func ;
10495 #endif
10496 ;
10497 return 0;
10498 }
10499 _ACEOF
10500 if ac_fn_c_try_compile "$LINENO"; then :
10501 eval "gcc_cv_have_decl_$ac_func=yes"
10502 else
10503 eval "gcc_cv_have_decl_$ac_func=no"
10504 fi
10505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10506 fi
10507
10508 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10510 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10511 #define $ac_tr_decl 1
10512 _ACEOF
10513
10514 else
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10516 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10517 #define $ac_tr_decl 0
10518 _ACEOF
10519
10520 fi
10521
10522 done
10523
10524
10525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10526 /* end confdefs.h. */
10527
10528 #include "ansidecl.h"
10529 #include "system.h"
10530 #ifdef HAVE_SYS_RESOURCE_H
10531 #include <sys/resource.h>
10532 #endif
10533
10534 int
10535 main ()
10536 {
10537 rlim_t l = 0;
10538 ;
10539 return 0;
10540 }
10541 _ACEOF
10542 if ac_fn_c_try_compile "$LINENO"; then :
10543
10544 else
10545
10546 $as_echo "#define rlim_t long" >>confdefs.h
10547
10548 fi
10549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10550
10551 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10552 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10553 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10554 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10555 for ac_func in ldgetname
10556 do
10557 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10559 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10560 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10561 $as_echo_n "(cached) " >&6
10562 else
10563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10564 /* end confdefs.h. */
10565 #undef $ac_tr_decl
10566 #define $ac_tr_decl 1
10567
10568 #include "ansidecl.h"
10569 #include "system.h"
10570 #ifdef HAVE_LDFCN_H
10571 #undef FREAD
10572 #undef FWRITE
10573 #include <ldfcn.h>
10574 #endif
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 for ac_func in times
10613 do
10614 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10616 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10617 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10618 $as_echo_n "(cached) " >&6
10619 else
10620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10621 /* end confdefs.h. */
10622 #undef $ac_tr_decl
10623 #define $ac_tr_decl 1
10624
10625 #include "ansidecl.h"
10626 #include "system.h"
10627 #ifdef HAVE_SYS_TIMES_H
10628 #include <sys/times.h>
10629 #endif
10630
10631
10632 int
10633 main ()
10634 {
10635 #ifndef $ac_func
10636 char *(*pfn) = (char *(*)) $ac_func ;
10637 #endif
10638 ;
10639 return 0;
10640 }
10641 _ACEOF
10642 if ac_fn_c_try_compile "$LINENO"; then :
10643 eval "gcc_cv_have_decl_$ac_func=yes"
10644 else
10645 eval "gcc_cv_have_decl_$ac_func=no"
10646 fi
10647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10648 fi
10649
10650 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10652 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10653 #define $ac_tr_decl 1
10654 _ACEOF
10655
10656 else
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10658 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10659 #define $ac_tr_decl 0
10660 _ACEOF
10661
10662 fi
10663
10664 done
10665
10666
10667 for ac_func in sigaltstack
10668 do
10669 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10671 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10672 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10673 $as_echo_n "(cached) " >&6
10674 else
10675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676 /* end confdefs.h. */
10677 #undef $ac_tr_decl
10678 #define $ac_tr_decl 1
10679
10680 #include "ansidecl.h"
10681 #include "system.h"
10682 #include <signal.h>
10683
10684
10685 int
10686 main ()
10687 {
10688 #ifndef $ac_func
10689 char *(*pfn) = (char *(*)) $ac_func ;
10690 #endif
10691 ;
10692 return 0;
10693 }
10694 _ACEOF
10695 if ac_fn_c_try_compile "$LINENO"; then :
10696 eval "gcc_cv_have_decl_$ac_func=yes"
10697 else
10698 eval "gcc_cv_have_decl_$ac_func=no"
10699 fi
10700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10701 fi
10702
10703 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10705 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10706 #define $ac_tr_decl 1
10707 _ACEOF
10708
10709 else
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10711 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10712 #define $ac_tr_decl 0
10713 _ACEOF
10714
10715 fi
10716
10717 done
10718
10719
10720 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10721 # prototype.
10722 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10723 ac_ext=cpp
10724 ac_cpp='$CXXCPP $CPPFLAGS'
10725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10728
10729 for ac_func in madvise
10730 do
10731 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10733 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10734 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10735 $as_echo_n "(cached) " >&6
10736 else
10737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10738 /* end confdefs.h. */
10739 #undef $ac_tr_decl
10740 #define $ac_tr_decl 1
10741
10742 #include "ansidecl.h"
10743 #include "system.h"
10744
10745
10746 int
10747 main ()
10748 {
10749 #ifndef $ac_func
10750 char *(*pfn) = (char *(*)) $ac_func ;
10751 #endif
10752 ;
10753 return 0;
10754 }
10755 _ACEOF
10756 if ac_fn_cxx_try_compile "$LINENO"; then :
10757 eval "gcc_cv_have_decl_$ac_func=yes"
10758 else
10759 eval "gcc_cv_have_decl_$ac_func=no"
10760 fi
10761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10762 fi
10763
10764 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10766 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10767 #define $ac_tr_decl 1
10768 _ACEOF
10769
10770 else
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10772 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10773 #define $ac_tr_decl 0
10774 _ACEOF
10775
10776 fi
10777
10778 done
10779
10780 ac_ext=c
10781 ac_cpp='$CPP $CPPFLAGS'
10782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10785
10786 else
10787 for ac_func in madvise
10788 do
10789 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10791 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10792 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10793 $as_echo_n "(cached) " >&6
10794 else
10795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10796 /* end confdefs.h. */
10797 #undef $ac_tr_decl
10798 #define $ac_tr_decl 1
10799
10800 #include "ansidecl.h"
10801 #include "system.h"
10802
10803
10804 int
10805 main ()
10806 {
10807 #ifndef $ac_func
10808 char *(*pfn) = (char *(*)) $ac_func ;
10809 #endif
10810 ;
10811 return 0;
10812 }
10813 _ACEOF
10814 if ac_fn_c_try_compile "$LINENO"; then :
10815 eval "gcc_cv_have_decl_$ac_func=yes"
10816 else
10817 eval "gcc_cv_have_decl_$ac_func=no"
10818 fi
10819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10820 fi
10821
10822 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10824 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10825 #define $ac_tr_decl 1
10826 _ACEOF
10827
10828 else
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10830 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10831 #define $ac_tr_decl 0
10832 _ACEOF
10833
10834 fi
10835
10836 done
10837
10838
10839 fi
10840
10841 # More time-related stuff.
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10843 $as_echo_n "checking for struct tms... " >&6; }
10844 if test "${ac_cv_struct_tms+set}" = set; then :
10845 $as_echo_n "(cached) " >&6
10846 else
10847
10848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10849 /* end confdefs.h. */
10850
10851 #include "ansidecl.h"
10852 #include "system.h"
10853 #ifdef HAVE_SYS_TIMES_H
10854 #include <sys/times.h>
10855 #endif
10856
10857 int
10858 main ()
10859 {
10860 struct tms tms;
10861 ;
10862 return 0;
10863 }
10864 _ACEOF
10865 if ac_fn_c_try_compile "$LINENO"; then :
10866 ac_cv_struct_tms=yes
10867 else
10868 ac_cv_struct_tms=no
10869 fi
10870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10871 fi
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10873 $as_echo "$ac_cv_struct_tms" >&6; }
10874 if test $ac_cv_struct_tms = yes; then
10875
10876 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10877
10878 fi
10879
10880 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10881 # revisit after autoconf 2.50.
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10883 $as_echo_n "checking for clock_t... " >&6; }
10884 if test "${gcc_cv_type_clock_t+set}" = set; then :
10885 $as_echo_n "(cached) " >&6
10886 else
10887
10888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10889 /* end confdefs.h. */
10890
10891 #include "ansidecl.h"
10892 #include "system.h"
10893
10894 int
10895 main ()
10896 {
10897 clock_t x;
10898 ;
10899 return 0;
10900 }
10901 _ACEOF
10902 if ac_fn_c_try_compile "$LINENO"; then :
10903 gcc_cv_type_clock_t=yes
10904 else
10905 gcc_cv_type_clock_t=no
10906 fi
10907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10908 fi
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10910 $as_echo "$gcc_cv_type_clock_t" >&6; }
10911 if test $gcc_cv_type_clock_t = yes; then
10912
10913 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10914
10915 fi
10916
10917 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10918 CFLAGS="$saved_CFLAGS"
10919 CXXFLAGS="$saved_CXXFLAGS"
10920
10921 # Check whether --enable-initfini-array was given.
10922 if test "${enable_initfini_array+set}" = set; then :
10923 enableval=$enable_initfini_array;
10924 else
10925
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10927 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10928 if test "${gcc_cv_initfini_array+set}" = set; then :
10929 $as_echo_n "(cached) " >&6
10930 else
10931 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
10932 if test "$cross_compiling" = yes; then :
10933 gcc_cv_initfini_array=no
10934 else
10935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10936 /* end confdefs.h. */
10937
10938 #ifndef __ELF__
10939 #error Not an ELF OS
10940 #endif
10941 #ifdef __ia64__
10942 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
10943 if it can be used. */
10944 static int x = -1;
10945 int main (void) { return x; }
10946 int foo (void) { x = 0; }
10947 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10948 #else
10949 extern void abort ();
10950 static int count;
10951
10952 static void
10953 init1005 ()
10954 {
10955 if (count != 0)
10956 abort ();
10957 count = 1005;
10958 }
10959 void (*const init_array1005) ()
10960 __attribute__ ((section (".init_array.01005"), aligned (sizeof (void *))))
10961 = { init1005 };
10962 static void
10963 fini1005 ()
10964 {
10965 if (count != 1005)
10966 abort ();
10967 }
10968 void (*const fini_array1005) ()
10969 __attribute__ ((section (".fini_array.01005"), aligned (sizeof (void *))))
10970 = { fini1005 };
10971
10972 static void
10973 ctor1007 ()
10974 {
10975 if (count != 1005)
10976 abort ();
10977 count = 1007;
10978 }
10979 void (*const ctors1007) ()
10980 __attribute__ ((section (".ctors.64528"), aligned (sizeof (void *))))
10981 = { ctor1007 };
10982 static void
10983 dtor1007 ()
10984 {
10985 if (count != 1007)
10986 abort ();
10987 count = 1005;
10988 }
10989 void (*const dtors1007) ()
10990 __attribute__ ((section (".dtors.64528"), aligned (sizeof (void *))))
10991 = { dtor1007 };
10992
10993 static void
10994 init65530 ()
10995 {
10996 if (count != 1007)
10997 abort ();
10998 count = 65530;
10999 }
11000 void (*const init_array65530) ()
11001 __attribute__ ((section (".init_array.65530"), aligned (sizeof (void *))))
11002 = { init65530 };
11003 static void
11004 fini65530 ()
11005 {
11006 if (count != 65530)
11007 abort ();
11008 count = 1007;
11009 }
11010 void (*const fini_array65530) ()
11011 __attribute__ ((section (".fini_array.65530"), aligned (sizeof (void *))))
11012 = { fini65530 };
11013
11014 static void
11015 ctor65535 ()
11016 {
11017 if (count != 65530)
11018 abort ();
11019 count = 65535;
11020 }
11021 void (*const ctors65535) ()
11022 __attribute__ ((section (".ctors"), aligned (sizeof (void *))))
11023 = { ctor65535 };
11024 static void
11025 dtor65535 ()
11026 {
11027 if (count != 65535)
11028 abort ();
11029 count = 65530;
11030 }
11031 void (*const dtors65535) ()
11032 __attribute__ ((section (".dtors"), aligned (sizeof (void *))))
11033 = { dtor65535 };
11034
11035 int
11036 main ()
11037 {
11038 if (count != 65535)
11039 abort ();
11040 return 0;
11041 }
11042 #endif
11043
11044 _ACEOF
11045 if ac_fn_c_try_run "$LINENO"; then :
11046 gcc_cv_initfini_array=yes
11047 else
11048 gcc_cv_initfini_array=no
11049 fi
11050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11051 conftest.$ac_objext conftest.beam conftest.$ac_ext
11052 fi
11053
11054 else
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
11056 $as_echo_n "checking cross compile... guessing... " >&6; }
11057 gcc_cv_initfini_array=no
11058 fi
11059 fi
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
11061 $as_echo "$gcc_cv_initfini_array" >&6; }
11062 enable_initfini_array=$gcc_cv_initfini_array
11063
11064 fi
11065
11066 if test $enable_initfini_array = yes; then
11067
11068 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
11069
11070 fi
11071
11072 # mkdir takes a single argument on some systems.
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11074 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11075 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11076 $as_echo_n "(cached) " >&6
11077 else
11078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11079 /* end confdefs.h. */
11080
11081 #include <sys/types.h>
11082 #ifdef HAVE_SYS_STAT_H
11083 # include <sys/stat.h>
11084 #endif
11085 #ifdef HAVE_UNISTD_H
11086 # include <unistd.h>
11087 #endif
11088 #ifdef HAVE_DIRECT_H
11089 # include <direct.h>
11090 #endif
11091 int
11092 main ()
11093 {
11094 mkdir ("foo", 0);
11095 ;
11096 return 0;
11097 }
11098 _ACEOF
11099 if ac_fn_c_try_compile "$LINENO"; then :
11100 gcc_cv_mkdir_takes_one_arg=no
11101 else
11102 gcc_cv_mkdir_takes_one_arg=yes
11103 fi
11104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11105 fi
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11107 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11108 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11109
11110 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11111
11112 fi
11113
11114
11115 # File extensions
11116 manext='.1'
11117 objext='.o'
11118
11119
11120
11121 # With Setjmp/Longjmp based exception handling.
11122 # Check whether --enable-sjlj-exceptions was given.
11123 if test "${enable_sjlj_exceptions+set}" = set; then :
11124 enableval=$enable_sjlj_exceptions; case $target in
11125 *-*-hpux10*)
11126 if test $enableval != yes; then
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11128 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11129 enableval=yes
11130 fi
11131 ;;
11132 esac
11133 force_sjlj_exceptions=yes
11134 else
11135 case $target in
11136 *-*-hpux10*)
11137 force_sjlj_exceptions=yes
11138 enableval=yes
11139 ;;
11140 *)
11141 force_sjlj_exceptions=no
11142 ;;
11143 esac
11144 fi
11145
11146 if test $force_sjlj_exceptions = yes; then
11147 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11148
11149 cat >>confdefs.h <<_ACEOF
11150 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11151 _ACEOF
11152
11153 fi
11154
11155 # --------------------------------------------------------
11156 # Build, host, and target specific configuration fragments
11157 # --------------------------------------------------------
11158
11159 # Collect build-machine-specific information.
11160 . ${srcdir}/config.build
11161
11162 # Collect host-machine-specific information.
11163 . ${srcdir}/config.host
11164
11165 target_gtfiles=
11166
11167 # Collect target-machine-specific information.
11168 . ${srcdir}/config.gcc
11169
11170 extra_objs="${host_extra_objs} ${extra_objs}"
11171 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11172
11173 # Default the target-machine variables that were not explicitly set.
11174 if test x"$tm_file" = x
11175 then tm_file=$cpu_type/$cpu_type.h; fi
11176
11177 if test x"$extra_headers" = x
11178 then extra_headers=; fi
11179
11180 if test x$md_file = x
11181 then md_file=$cpu_type/$cpu_type.md; fi
11182
11183 if test x$out_file = x
11184 then out_file=$cpu_type/$cpu_type.c; fi
11185
11186 if test x"$tmake_file" = x
11187 then tmake_file=$cpu_type/t-$cpu_type
11188 fi
11189
11190 if test x"$dwarf2" = xyes
11191 then tm_file="$tm_file tm-dwarf2.h"
11192 fi
11193
11194 # Say what files are being used for the output code and MD file.
11195 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11196 echo "Using \`$srcdir/config/$md_file' as machine description file."
11197
11198 # If any of the xm_file variables contain nonexistent files, warn
11199 # about them and drop them.
11200
11201 bx=
11202 for x in $build_xm_file; do
11203 if test -f $srcdir/config/$x
11204 then bx="$bx $x"
11205 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11206 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11207 fi
11208 done
11209 build_xm_file="$bx"
11210
11211 hx=
11212 for x in $host_xm_file; do
11213 if test -f $srcdir/config/$x
11214 then hx="$hx $x"
11215 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11216 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11217 fi
11218 done
11219 host_xm_file="$hx"
11220
11221 tx=
11222 for x in $xm_file; do
11223 if test -f $srcdir/config/$x
11224 then tx="$tx $x"
11225 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11226 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11227 fi
11228 done
11229 xm_file="$tx"
11230
11231 count=a
11232 for f in $tm_file; do
11233 count=${count}x
11234 done
11235 if test $count = ax; then
11236 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11237 else
11238 echo "Using the following target machine macro files:"
11239 for f in $tm_file; do
11240 echo " $srcdir/config/$f"
11241 done
11242 fi
11243
11244 if test x$need_64bit_hwint = xyes; then
11245
11246 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11247
11248 fi
11249
11250 if test x$use_long_long_for_widest_fast_int = xyes; then
11251
11252 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11253
11254 fi
11255
11256 count=a
11257 for f in $host_xm_file; do
11258 count=${count}x
11259 done
11260 if test $count = a; then
11261 :
11262 elif test $count = ax; then
11263 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11264 else
11265 echo "Using the following host machine macro files:"
11266 for f in $host_xm_file; do
11267 echo " $srcdir/config/$f"
11268 done
11269 fi
11270 echo "Using ${out_host_hook_obj} for host machine hooks."
11271
11272 if test "$host_xm_file" != "$build_xm_file"; then
11273 count=a
11274 for f in $build_xm_file; do
11275 count=${count}x
11276 done
11277 if test $count = a; then
11278 :
11279 elif test $count = ax; then
11280 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11281 else
11282 echo "Using the following build machine macro files:"
11283 for f in $build_xm_file; do
11284 echo " $srcdir/config/$f"
11285 done
11286 fi
11287 fi
11288
11289 if test -n "$configured_native_system_header_dir"; then
11290 native_system_header_dir=$configured_native_system_header_dir
11291 fi
11292 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11293
11294
11295 case ${host} in
11296 powerpc*-*-darwin*)
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11298 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11299 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11300 $as_echo_n "(cached) " >&6
11301 else
11302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303 /* end confdefs.h. */
11304
11305 #include <sys/cdefs.h>
11306 #include <sys/signal.h>
11307 #include <ucontext.h>
11308 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11309
11310 _ACEOF
11311 if ac_fn_c_try_compile "$LINENO"; then :
11312 gcc_cv_mcontext_underscores=no
11313 else
11314 gcc_cv_mcontext_underscores=yes
11315 fi
11316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11317 fi
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11319 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11320 if test $gcc_cv_mcontext_underscores = yes; then
11321
11322 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11323
11324 fi
11325 ;;
11326 esac
11327
11328 # ---------
11329 # Threading
11330 # ---------
11331
11332 # Check if a valid thread package
11333 case ${enable_threads} in
11334 "" | no)
11335 # No threads
11336 target_thread_file='single'
11337 ;;
11338 yes)
11339 # default
11340 target_thread_file='single'
11341 ;;
11342 aix | dce | lynx | mipssde | posix | rtems | \
11343 single | tpf | vxworks | win32)
11344 target_thread_file=${enable_threads}
11345 ;;
11346 *)
11347 echo "${enable_threads} is an unknown thread package" 1>&2
11348 exit 1
11349 ;;
11350 esac
11351
11352 if test x${thread_file} = x; then
11353 # No thread file set by target-specific clauses in config.gcc,
11354 # so use file chosen by default logic above
11355 thread_file=${target_thread_file}
11356 fi
11357
11358 # Make gthr-default.h if we have a thread file.
11359 gthread_flags=
11360 if test $thread_file != single; then
11361 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
11362 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
11363 rm -f gthr-default.h-t
11364 else
11365 mv -f gthr-default.h-t gthr-default.h
11366 fi
11367 gthread_flags=-DHAVE_GTHR_DEFAULT
11368 fi
11369
11370
11371 # --------
11372 # UNSORTED
11373 # --------
11374
11375 use_cxa_atexit=no
11376 if test x$enable___cxa_atexit = xyes || \
11377 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11378 if test x$host = x$target; then
11379 case $host in
11380 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11381 # keyed to flag_use_cxa_atexit
11382 *-*-mingw32*)
11383 use_cxa_atexit=yes
11384 ;;
11385 *)
11386 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11387 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11388 use_cxa_atexit=yes
11389 else
11390 echo "__cxa_atexit can't be enabled on this target"
11391 fi
11392
11393 ;;
11394 esac
11395 else
11396 # We can't check for __cxa_atexit when building a cross, so assume
11397 # it is available
11398 use_cxa_atexit=yes
11399 fi
11400 if test x$use_cxa_atexit = xyes; then
11401
11402 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11403
11404 fi
11405 fi
11406
11407 # Look for a file containing extra machine modes.
11408 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11409 extra_modes_file='$(srcdir)'/config/${extra_modes}
11410
11411
11412 cat >>confdefs.h <<_ACEOF
11413 #define EXTRA_MODES_FILE "config/$extra_modes"
11414 _ACEOF
11415
11416 fi
11417
11418 # Convert extra_options into a form suitable for Makefile use.
11419 extra_opt_files=
11420 all_opt_files=
11421 for f in $extra_options; do
11422 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11423 all_opt_files="$all_opt_files $srcdir/config/$f"
11424 done
11425
11426
11427 # auto-host.h is the file containing items generated by autoconf and is
11428 # the first file included by config.h.
11429 # If host=build, it is correct to have bconfig include auto-host.h
11430 # as well. If host!=build, we are in error and need to do more
11431 # work to find out the build config parameters.
11432 if test x$host = x$build
11433 then
11434 build_auto=auto-host.h
11435 else
11436 # We create a subdir, then run autoconf in the subdir.
11437 # To prevent recursion we set host and build for the new
11438 # invocation of configure to the build for this invocation
11439 # of configure.
11440 tempdir=build.$$
11441 rm -rf $tempdir
11442 mkdir $tempdir
11443 cd $tempdir
11444 case ${srcdir} in
11445 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11446 *) realsrcdir=../${srcdir};;
11447 esac
11448 saved_CFLAGS="${CFLAGS}"
11449 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11450 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11451 ${realsrcdir}/configure \
11452 --enable-languages=${enable_languages-all} \
11453 --target=$target_alias --host=$build_alias --build=$build_alias
11454 CFLAGS="${saved_CFLAGS}"
11455
11456 # We just finished tests for the build machine, so rename
11457 # the file auto-build.h in the gcc directory.
11458 mv auto-host.h ../auto-build.h
11459 cd ..
11460 rm -rf $tempdir
11461 build_auto=auto-build.h
11462 fi
11463
11464
11465 tm_file="${tm_file} defaults.h"
11466 tm_p_file="${tm_p_file} tm-preds.h"
11467 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11468 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11469 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11470 # put this back in temporarily.
11471 xm_file="auto-host.h ansidecl.h ${xm_file}"
11472
11473 # --------
11474 # UNSORTED
11475 # --------
11476
11477 # Compile in configure arguments.
11478 if test -f configargs.h ; then
11479 # Being re-configured.
11480 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11481 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11482 else
11483 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11484 fi
11485
11486 # Double all backslashes and backslash all quotes to turn
11487 # gcc_config_arguments into a C string.
11488 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11489 $gcc_config_arguments
11490 EOF
11491 gcc_config_arguments_str=`cat conftest.out`
11492 rm -f conftest.out
11493
11494 cat > configargs.h <<EOF
11495 /* Generated automatically. */
11496 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11497 static const char thread_model[] = "$thread_file";
11498
11499 static const struct {
11500 const char *name, *value;
11501 } configure_default_options[] = $configure_default_options;
11502 EOF
11503
11504 gcc_BASEVER=`cat $srcdir/BASE-VER`
11505 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11506 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11507 if test -f $srcdir/REVISION ; then
11508 gcc_REVISION=`cat $srcdir/REVISION`
11509 else
11510 gcc_REVISION=""
11511 fi
11512 cat > plugin-version.h <<EOF
11513 #include "configargs.h"
11514
11515 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11516 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11517 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11518 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11519
11520 static char basever[] = "$gcc_BASEVER";
11521 static char datestamp[] = "$gcc_DATESTAMP";
11522 static char devphase[] = "$gcc_DEVPHASE";
11523 static char revision[] = "$gcc_REVISION";
11524
11525 /* FIXME plugins: We should make the version information more precise.
11526 One way to do is to add a checksum. */
11527
11528 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11529 devphase, revision,
11530 configuration_arguments};
11531 EOF
11532
11533 # Internationalization
11534 # If we haven't got the data from the intl directory,
11535 # assume NLS is disabled.
11536 USE_NLS=no
11537 LIBINTL=
11538 LIBINTL_DEP=
11539 INCINTL=
11540 XGETTEXT=
11541 GMSGFMT=
11542 POSUB=
11543
11544 if test -f ../intl/config.intl; then
11545 . ../intl/config.intl
11546 fi
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11548 $as_echo_n "checking whether NLS is requested... " >&6; }
11549 if test x"$USE_NLS" != xyes; then
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11551 $as_echo "no" >&6; }
11552 else
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11554 $as_echo "yes" >&6; }
11555
11556 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11557
11558
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11560 $as_echo_n "checking for catalogs to be installed... " >&6; }
11561 # Look for .po and .gmo files in the source directory.
11562 CATALOGS=
11563 XLINGUAS=
11564 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11565 # If there aren't any .gmo files the shell will give us the
11566 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11567 # weeded out.
11568 case "$cat" in *\**)
11569 continue;;
11570 esac
11571 # The quadruple backslash is collapsed to a double backslash
11572 # by the backticks, then collapsed again by the double quotes,
11573 # leaving us with one backslash in the sed expression (right
11574 # before the dot that mustn't act as a wildcard).
11575 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11576 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11577 # The user is allowed to set LINGUAS to a list of languages to
11578 # install catalogs for. If it's empty that means "all of them."
11579 if test "x$LINGUAS" = x; then
11580 CATALOGS="$CATALOGS $cat"
11581 XLINGUAS="$XLINGUAS $lang"
11582 else
11583 case "$LINGUAS" in *$lang*)
11584 CATALOGS="$CATALOGS $cat"
11585 XLINGUAS="$XLINGUAS $lang"
11586 ;;
11587 esac
11588 fi
11589 done
11590 LINGUAS="$XLINGUAS"
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11592 $as_echo "$LINGUAS" >&6; }
11593
11594
11595 DATADIRNAME=share
11596
11597 INSTOBJEXT=.mo
11598
11599 GENCAT=gencat
11600
11601 CATOBJEXT=.gmo
11602
11603 fi
11604
11605 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11606 # -liconv on the link line twice.
11607 case "$LIBINTL" in *$LIBICONV*)
11608 LIBICONV= ;;
11609 esac
11610
11611 # Check whether --enable-secureplt was given.
11612 if test "${enable_secureplt+set}" = set; then :
11613 enableval=$enable_secureplt;
11614 fi
11615
11616
11617 # Check whether --enable-leading-mingw64-underscores was given.
11618 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11619 enableval=$enable_leading_mingw64_underscores;
11620 fi
11621
11622 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11623
11624 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11625
11626 fi
11627
11628 # Check whether --enable-cld was given.
11629 if test "${enable_cld+set}" = set; then :
11630 enableval=$enable_cld;
11631 else
11632 enable_cld=no
11633 fi
11634
11635
11636 # Check whether --enable-frame-pointer was given.
11637 if test "${enable_frame_pointer+set}" = set; then :
11638 enableval=$enable_frame_pointer;
11639 else
11640
11641 case $target_os in
11642 linux* | darwin[8912]*)
11643 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11644 # DWARF2.
11645 enable_frame_pointer=no
11646 ;;
11647 *)
11648 enable_frame_pointer=yes
11649 ;;
11650 esac
11651
11652 fi
11653
11654
11655 # Windows32 Registry support for specifying GCC installation paths.
11656 # Check whether --enable-win32-registry was given.
11657 if test "${enable_win32_registry+set}" = set; then :
11658 enableval=$enable_win32_registry;
11659 fi
11660
11661
11662 case $host_os in
11663 win32 | pe | cygwin* | mingw32* | uwin*)
11664 if test "x$enable_win32_registry" != xno; then
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11666 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11667 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11668 $as_echo_n "(cached) " >&6
11669 else
11670 ac_func_search_save_LIBS=$LIBS
11671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11672 /* end confdefs.h. */
11673
11674 /* Override any GCC internal prototype to avoid an error.
11675 Use char because int might match the return type of a GCC
11676 builtin and then its argument prototype would still apply. */
11677 #ifdef __cplusplus
11678 extern "C"
11679 #endif
11680 char RegOpenKeyExA ();
11681 int
11682 main ()
11683 {
11684 return RegOpenKeyExA ();
11685 ;
11686 return 0;
11687 }
11688 _ACEOF
11689 for ac_lib in '' advapi32; do
11690 if test -z "$ac_lib"; then
11691 ac_res="none required"
11692 else
11693 ac_res=-l$ac_lib
11694 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11695 fi
11696 if ac_fn_c_try_link "$LINENO"; then :
11697 ac_cv_search_RegOpenKeyExA=$ac_res
11698 fi
11699 rm -f core conftest.err conftest.$ac_objext \
11700 conftest$ac_exeext
11701 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11702 break
11703 fi
11704 done
11705 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11706
11707 else
11708 ac_cv_search_RegOpenKeyExA=no
11709 fi
11710 rm conftest.$ac_ext
11711 LIBS=$ac_func_search_save_LIBS
11712 fi
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11714 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11715 ac_res=$ac_cv_search_RegOpenKeyExA
11716 if test "$ac_res" != no; then :
11717 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11718
11719 else
11720 enable_win32_registry=no
11721 fi
11722
11723 fi
11724
11725 if test "x$enable_win32_registry" != xno; then
11726
11727 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11728
11729
11730 if test "x$enable_win32_registry" != xyes \
11731 && test "x$enable_win32_registry" != x; then
11732
11733 cat >>confdefs.h <<_ACEOF
11734 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11735 _ACEOF
11736
11737 fi
11738 fi
11739 ;;
11740 esac
11741
11742 # Get an absolute path to the GCC top-level source directory
11743 holddir=`${PWDCMD-pwd}`
11744 cd $srcdir
11745 topdir=`${PWDCMD-pwd}`
11746 cd $holddir
11747
11748 # Conditionalize the makefile for this host machine.
11749 xmake_file=
11750 for f in ${host_xmake_file}
11751 do
11752 if test -f ${srcdir}/config/$f
11753 then
11754 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11755 fi
11756 done
11757
11758 # Conditionalize the makefile for this target machine.
11759 tmake_file_=
11760 for f in ${tmake_file}
11761 do
11762 if test -f ${srcdir}/config/$f
11763 then
11764 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11765 fi
11766 done
11767 tmake_file="${tmake_file_}"
11768
11769 out_object_file=`basename $out_file .c`.o
11770 common_out_object_file=`basename $common_out_file .c`.o
11771
11772 tm_file_list="options.h"
11773 tm_include_list="options.h insn-constants.h"
11774 for f in $tm_file; do
11775 case $f in
11776 ./* )
11777 f=`echo $f | sed 's/^..//'`
11778 tm_file_list="${tm_file_list} $f"
11779 tm_include_list="${tm_include_list} $f"
11780 ;;
11781 defaults.h )
11782 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11783 tm_include_list="${tm_include_list} $f"
11784 ;;
11785 * )
11786 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11787 tm_include_list="${tm_include_list} config/$f"
11788 ;;
11789 esac
11790 done
11791
11792 libgcc_tm_file_list=
11793 libgcc_tm_include_list=
11794 for f in $libgcc_tm_file; do
11795 libgcc_tm_file_list="${libgcc_tm_file_list} \$(srcdir)/../libgcc/config/$f"
11796 libgcc_tm_include_list="${libgcc_tm_include_list} ../libgcc/config/$f"
11797 done
11798
11799 tm_p_file_list=
11800 tm_p_include_list=
11801 for f in $tm_p_file; do
11802 case $f in
11803 tm-preds.h )
11804 tm_p_file_list="${tm_p_file_list} $f"
11805 tm_p_include_list="${tm_p_include_list} $f"
11806 ;;
11807 * )
11808 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11809 tm_p_include_list="${tm_p_include_list} config/$f"
11810 esac
11811 done
11812
11813 xm_file_list=
11814 xm_include_list=
11815 for f in $xm_file; do
11816 case $f in
11817 ansidecl.h )
11818 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11819 xm_include_list="${xm_include_list} $f"
11820 ;;
11821 auto-host.h )
11822 xm_file_list="${xm_file_list} $f"
11823 xm_include_list="${xm_include_list} $f"
11824 ;;
11825 * )
11826 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11827 xm_include_list="${xm_include_list} config/$f"
11828 ;;
11829 esac
11830 done
11831
11832 host_xm_file_list=
11833 host_xm_include_list=
11834 for f in $host_xm_file; do
11835 case $f in
11836 ansidecl.h )
11837 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11838 host_xm_include_list="${host_xm_include_list} $f"
11839 ;;
11840 auto-host.h )
11841 host_xm_file_list="${host_xm_file_list} $f"
11842 host_xm_include_list="${host_xm_include_list} $f"
11843 ;;
11844 * )
11845 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11846 host_xm_include_list="${host_xm_include_list} config/$f"
11847 ;;
11848 esac
11849 done
11850
11851 build_xm_file_list=
11852 for f in $build_xm_file; do
11853 case $f in
11854 ansidecl.h )
11855 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11856 build_xm_include_list="${build_xm_include_list} $f"
11857 ;;
11858 auto-build.h | auto-host.h )
11859 build_xm_file_list="${build_xm_file_list} $f"
11860 build_xm_include_list="${build_xm_include_list} $f"
11861 ;;
11862 * )
11863 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11864 build_xm_include_list="${build_xm_include_list} config/$f"
11865 ;;
11866 esac
11867 done
11868
11869 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11870 # cross-compiler which does not use the native headers and libraries.
11871 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11872 CROSS=
11873 ALL=all.internal
11874 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11875
11876 if test "x$with_build_sysroot" != x; then
11877 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11878 else
11879 # This value is used, even on a native system, because
11880 # CROSS_SYSTEM_HEADER_DIR is just
11881 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11882 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11883 fi
11884
11885 if test x$host != x$target
11886 then
11887 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11888 ALL=all.cross
11889 SYSTEM_HEADER_DIR=$build_system_header_dir
11890 case "$host","$target" in
11891 # Darwin crosses can use the host system's libraries and headers,
11892 # because of the fat library support. Of course, it must be the
11893 # same version of Darwin on both sides. Allow the user to
11894 # just say --target=foo-darwin without a version number to mean
11895 # "the version on this system".
11896 *-*-darwin*,*-*-darwin*)
11897 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11898 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11899 if test $hostos = $targetos -o $targetos = darwin ; then
11900 CROSS=
11901 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11902 with_headers=yes
11903 fi
11904 ;;
11905
11906 i?86-*-*,x86_64-*-* \
11907 | powerpc*-*-*,powerpc64*-*-*)
11908 CROSS="$CROSS -DNATIVE_CROSS" ;;
11909 esac
11910
11911 case $target in
11912 *-*-mingw*)
11913 if test "x$with_headers" = x; then
11914 with_headers=yes
11915 fi
11916 ;;
11917 *)
11918 ;;
11919 esac
11920 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11921 SYSTEM_HEADER_DIR=$build_system_header_dir
11922 fi
11923
11924 # If this is a cross-compiler that does not
11925 # have its own set of headers then define
11926 # inhibit_libc
11927
11928 # If this is using newlib, without having the headers available now,
11929 # then define inhibit_libc in LIBGCC2_CFLAGS.
11930 # This prevents libgcc2 from containing any code which requires libc
11931 # support.
11932 : ${inhibit_libc=false}
11933 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11934 test x$with_newlib = xyes ; } &&
11935 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11936 inhibit_libc=true
11937 fi
11938
11939
11940 # When building gcc with a cross-compiler, we need to adjust things so
11941 # that the generator programs are still built with the native compiler.
11942 # Also, we cannot run fixincludes.
11943
11944 # These are the normal (build=host) settings:
11945 CC_FOR_BUILD='$(CC)'
11946 BUILD_CFLAGS='$(ALL_CFLAGS)'
11947 BUILD_LDFLAGS='$(LDFLAGS)'
11948 STMP_FIXINC=stmp-fixinc
11949
11950 # And these apply if build != host, or we are generating coverage data
11951 if test x$build != x$host || test "x$coverage_flags" != x
11952 then
11953 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11954 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11955 fi
11956
11957 # Expand extra_headers to include complete path.
11958 # This substitutes for lots of t-* files.
11959 extra_headers_list=
11960 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11961 for file in ${extra_headers} ; do
11962 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11963 done
11964
11965 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11966 if test x"$use_gcc_tgmath" = xyes
11967 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11968 fi
11969
11970 # Define collect2 in Makefile.
11971 case $host_can_use_collect2 in
11972 no) collect2= ;;
11973 *) collect2='collect2$(exeext)' ;;
11974 esac
11975
11976
11977 # Add a definition of USE_COLLECT2 if system wants one.
11978 case $use_collect2 in
11979 no) use_collect2= ;;
11980 "") ;;
11981 *)
11982 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11983 xm_defines="${xm_defines} USE_COLLECT2"
11984 case $host_can_use_collect2 in
11985 no)
11986 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11987 ;;
11988 esac
11989 ;;
11990 esac
11991
11992
11993 cat >>confdefs.h <<_ACEOF
11994 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11995 _ACEOF
11996
11997
11998 # ---------------------------
11999 # Assembler & linker features
12000 # ---------------------------
12001
12002 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12003 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12004 # However when ld-new is first executed from the build tree, libtool will
12005 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12006 # to the build tree. While doing this we need to use the previous-stage
12007 # linker, or we have an infinite loop. The presence of a shell script as
12008 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12009 # the gcc/collect-ld script. So we need to know how libtool works, or
12010 # exec-tool will fail.
12011
12012
12013 case `pwd` in
12014 *\ * | *\ *)
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12016 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12017 esac
12018
12019
12020
12021 macro_version='2.2.7a'
12022 macro_revision='1.3134'
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036 ltmain="$ac_aux_dir/ltmain.sh"
12037
12038 # Backslashify metacharacters that are still active within
12039 # double-quoted strings.
12040 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12041
12042 # Same as above, but do not quote variable references.
12043 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12044
12045 # Sed substitution to delay expansion of an escaped shell variable in a
12046 # double_quote_subst'ed string.
12047 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12048
12049 # Sed substitution to delay expansion of an escaped single quote.
12050 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12051
12052 # Sed substitution to avoid accidental globbing in evaled expressions
12053 no_glob_subst='s/\*/\\\*/g'
12054
12055 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12056 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12057 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12058
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12060 $as_echo_n "checking how to print strings... " >&6; }
12061 # Test print first, because it will be a builtin if present.
12062 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12063 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12064 ECHO='print -r --'
12065 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12066 ECHO='printf %s\n'
12067 else
12068 # Use this function as a fallback that always works.
12069 func_fallback_echo ()
12070 {
12071 eval 'cat <<_LTECHO_EOF
12072 $1
12073 _LTECHO_EOF'
12074 }
12075 ECHO='func_fallback_echo'
12076 fi
12077
12078 # func_echo_all arg...
12079 # Invoke $ECHO with all args, space-separated.
12080 func_echo_all ()
12081 {
12082 $ECHO ""
12083 }
12084
12085 case "$ECHO" in
12086 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12087 $as_echo "printf" >&6; } ;;
12088 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12089 $as_echo "print -r" >&6; } ;;
12090 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12091 $as_echo "cat" >&6; } ;;
12092 esac
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12108 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12109 if test "${ac_cv_path_SED+set}" = set; then :
12110 $as_echo_n "(cached) " >&6
12111 else
12112 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12113 for ac_i in 1 2 3 4 5 6 7; do
12114 ac_script="$ac_script$as_nl$ac_script"
12115 done
12116 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12117 { ac_script=; unset ac_script;}
12118 if test -z "$SED"; then
12119 ac_path_SED_found=false
12120 # Loop through the user's path and test for each of PROGNAME-LIST
12121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12122 for as_dir in $PATH
12123 do
12124 IFS=$as_save_IFS
12125 test -z "$as_dir" && as_dir=.
12126 for ac_prog in sed gsed; do
12127 for ac_exec_ext in '' $ac_executable_extensions; do
12128 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12129 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12130 # Check for GNU ac_path_SED and select it if it is found.
12131 # Check for GNU $ac_path_SED
12132 case `"$ac_path_SED" --version 2>&1` in
12133 *GNU*)
12134 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12135 *)
12136 ac_count=0
12137 $as_echo_n 0123456789 >"conftest.in"
12138 while :
12139 do
12140 cat "conftest.in" "conftest.in" >"conftest.tmp"
12141 mv "conftest.tmp" "conftest.in"
12142 cp "conftest.in" "conftest.nl"
12143 $as_echo '' >> "conftest.nl"
12144 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12145 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12146 as_fn_arith $ac_count + 1 && ac_count=$as_val
12147 if test $ac_count -gt ${ac_path_SED_max-0}; then
12148 # Best one so far, save it but keep looking for a better one
12149 ac_cv_path_SED="$ac_path_SED"
12150 ac_path_SED_max=$ac_count
12151 fi
12152 # 10*(2^10) chars as input seems more than enough
12153 test $ac_count -gt 10 && break
12154 done
12155 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12156 esac
12157
12158 $ac_path_SED_found && break 3
12159 done
12160 done
12161 done
12162 IFS=$as_save_IFS
12163 if test -z "$ac_cv_path_SED"; then
12164 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12165 fi
12166 else
12167 ac_cv_path_SED=$SED
12168 fi
12169
12170 fi
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12172 $as_echo "$ac_cv_path_SED" >&6; }
12173 SED="$ac_cv_path_SED"
12174 rm -f conftest.sed
12175
12176 test -z "$SED" && SED=sed
12177 Xsed="$SED -e 1s/^X//"
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12190 $as_echo_n "checking for fgrep... " >&6; }
12191 if test "${ac_cv_path_FGREP+set}" = set; then :
12192 $as_echo_n "(cached) " >&6
12193 else
12194 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12195 then ac_cv_path_FGREP="$GREP -F"
12196 else
12197 if test -z "$FGREP"; then
12198 ac_path_FGREP_found=false
12199 # Loop through the user's path and test for each of PROGNAME-LIST
12200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12201 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12202 do
12203 IFS=$as_save_IFS
12204 test -z "$as_dir" && as_dir=.
12205 for ac_prog in fgrep; do
12206 for ac_exec_ext in '' $ac_executable_extensions; do
12207 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12208 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12209 # Check for GNU ac_path_FGREP and select it if it is found.
12210 # Check for GNU $ac_path_FGREP
12211 case `"$ac_path_FGREP" --version 2>&1` in
12212 *GNU*)
12213 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12214 *)
12215 ac_count=0
12216 $as_echo_n 0123456789 >"conftest.in"
12217 while :
12218 do
12219 cat "conftest.in" "conftest.in" >"conftest.tmp"
12220 mv "conftest.tmp" "conftest.in"
12221 cp "conftest.in" "conftest.nl"
12222 $as_echo 'FGREP' >> "conftest.nl"
12223 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12224 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12225 as_fn_arith $ac_count + 1 && ac_count=$as_val
12226 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12227 # Best one so far, save it but keep looking for a better one
12228 ac_cv_path_FGREP="$ac_path_FGREP"
12229 ac_path_FGREP_max=$ac_count
12230 fi
12231 # 10*(2^10) chars as input seems more than enough
12232 test $ac_count -gt 10 && break
12233 done
12234 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12235 esac
12236
12237 $ac_path_FGREP_found && break 3
12238 done
12239 done
12240 done
12241 IFS=$as_save_IFS
12242 if test -z "$ac_cv_path_FGREP"; then
12243 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12244 fi
12245 else
12246 ac_cv_path_FGREP=$FGREP
12247 fi
12248
12249 fi
12250 fi
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12252 $as_echo "$ac_cv_path_FGREP" >&6; }
12253 FGREP="$ac_cv_path_FGREP"
12254
12255
12256 test -z "$GREP" && GREP=grep
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276 # Check whether --with-gnu-ld was given.
12277 if test "${with_gnu_ld+set}" = set; then :
12278 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12279 else
12280 with_gnu_ld=no
12281 fi
12282
12283 ac_prog=ld
12284 if test "$GCC" = yes; then
12285 # Check if gcc -print-prog-name=ld gives a path.
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12287 $as_echo_n "checking for ld used by $CC... " >&6; }
12288 case $host in
12289 *-*-mingw*)
12290 # gcc leaves a trailing carriage return which upsets mingw
12291 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12292 *)
12293 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12294 esac
12295 case $ac_prog in
12296 # Accept absolute paths.
12297 [\\/]* | ?:[\\/]*)
12298 re_direlt='/[^/][^/]*/\.\./'
12299 # Canonicalize the pathname of ld
12300 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12301 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12302 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12303 done
12304 test -z "$LD" && LD="$ac_prog"
12305 ;;
12306 "")
12307 # If it fails, then pretend we aren't using GCC.
12308 ac_prog=ld
12309 ;;
12310 *)
12311 # If it is relative, then search for the first ld in PATH.
12312 with_gnu_ld=unknown
12313 ;;
12314 esac
12315 elif test "$with_gnu_ld" = yes; then
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12317 $as_echo_n "checking for GNU ld... " >&6; }
12318 else
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12320 $as_echo_n "checking for non-GNU ld... " >&6; }
12321 fi
12322 if test "${lt_cv_path_LD+set}" = set; then :
12323 $as_echo_n "(cached) " >&6
12324 else
12325 if test -z "$LD"; then
12326 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12327 for ac_dir in $PATH; do
12328 IFS="$lt_save_ifs"
12329 test -z "$ac_dir" && ac_dir=.
12330 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12331 lt_cv_path_LD="$ac_dir/$ac_prog"
12332 # Check to see if the program is GNU ld. I'd rather use --version,
12333 # but apparently some variants of GNU ld only accept -v.
12334 # Break only if it was the GNU/non-GNU ld that we prefer.
12335 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12336 *GNU* | *'with BFD'*)
12337 test "$with_gnu_ld" != no && break
12338 ;;
12339 *)
12340 test "$with_gnu_ld" != yes && break
12341 ;;
12342 esac
12343 fi
12344 done
12345 IFS="$lt_save_ifs"
12346 else
12347 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12348 fi
12349 fi
12350
12351 LD="$lt_cv_path_LD"
12352 if test -n "$LD"; then
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12354 $as_echo "$LD" >&6; }
12355 else
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12357 $as_echo "no" >&6; }
12358 fi
12359 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12361 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12362 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12363 $as_echo_n "(cached) " >&6
12364 else
12365 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12366 case `$LD -v 2>&1 </dev/null` in
12367 *GNU* | *'with BFD'*)
12368 lt_cv_prog_gnu_ld=yes
12369 ;;
12370 *)
12371 lt_cv_prog_gnu_ld=no
12372 ;;
12373 esac
12374 fi
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12376 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12377 with_gnu_ld=$lt_cv_prog_gnu_ld
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12388 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12389 if test "${lt_cv_path_NM+set}" = set; then :
12390 $as_echo_n "(cached) " >&6
12391 else
12392 if test -n "$NM"; then
12393 # Let the user override the test.
12394 lt_cv_path_NM="$NM"
12395 else
12396 lt_nm_to_check="${ac_tool_prefix}nm"
12397 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12398 lt_nm_to_check="$lt_nm_to_check nm"
12399 fi
12400 for lt_tmp_nm in $lt_nm_to_check; do
12401 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12402 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12403 IFS="$lt_save_ifs"
12404 test -z "$ac_dir" && ac_dir=.
12405 tmp_nm="$ac_dir/$lt_tmp_nm"
12406 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12407 # Check to see if the nm accepts a BSD-compat flag.
12408 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12409 # nm: unknown option "B" ignored
12410 # Tru64's nm complains that /dev/null is an invalid object file
12411 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12412 */dev/null* | *'Invalid file or object type'*)
12413 lt_cv_path_NM="$tmp_nm -B"
12414 break
12415 ;;
12416 *)
12417 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12418 */dev/null*)
12419 lt_cv_path_NM="$tmp_nm -p"
12420 break
12421 ;;
12422 *)
12423 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12424 continue # so that we can try to find one that supports BSD flags
12425 ;;
12426 esac
12427 ;;
12428 esac
12429 fi
12430 done
12431 IFS="$lt_save_ifs"
12432 done
12433 : ${lt_cv_path_NM=no}
12434 fi
12435 fi
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12437 $as_echo "$lt_cv_path_NM" >&6; }
12438 if test "$lt_cv_path_NM" != "no"; then
12439 NM="$lt_cv_path_NM"
12440 else
12441 # Didn't find any BSD compatible name lister, look for dumpbin.
12442 if test -n "$DUMPBIN"; then :
12443 # Let the user override the test.
12444 else
12445 if test -n "$ac_tool_prefix"; then
12446 for ac_prog in dumpbin "link -dump"
12447 do
12448 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12449 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12451 $as_echo_n "checking for $ac_word... " >&6; }
12452 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12453 $as_echo_n "(cached) " >&6
12454 else
12455 if test -n "$DUMPBIN"; then
12456 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12457 else
12458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12459 for as_dir in $PATH
12460 do
12461 IFS=$as_save_IFS
12462 test -z "$as_dir" && as_dir=.
12463 for ac_exec_ext in '' $ac_executable_extensions; do
12464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12465 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12467 break 2
12468 fi
12469 done
12470 done
12471 IFS=$as_save_IFS
12472
12473 fi
12474 fi
12475 DUMPBIN=$ac_cv_prog_DUMPBIN
12476 if test -n "$DUMPBIN"; then
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12478 $as_echo "$DUMPBIN" >&6; }
12479 else
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12481 $as_echo "no" >&6; }
12482 fi
12483
12484
12485 test -n "$DUMPBIN" && break
12486 done
12487 fi
12488 if test -z "$DUMPBIN"; then
12489 ac_ct_DUMPBIN=$DUMPBIN
12490 for ac_prog in dumpbin "link -dump"
12491 do
12492 # Extract the first word of "$ac_prog", so it can be a program name with args.
12493 set dummy $ac_prog; ac_word=$2
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12495 $as_echo_n "checking for $ac_word... " >&6; }
12496 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12497 $as_echo_n "(cached) " >&6
12498 else
12499 if test -n "$ac_ct_DUMPBIN"; then
12500 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12501 else
12502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12503 for as_dir in $PATH
12504 do
12505 IFS=$as_save_IFS
12506 test -z "$as_dir" && as_dir=.
12507 for ac_exec_ext in '' $ac_executable_extensions; do
12508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12509 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12511 break 2
12512 fi
12513 done
12514 done
12515 IFS=$as_save_IFS
12516
12517 fi
12518 fi
12519 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12520 if test -n "$ac_ct_DUMPBIN"; then
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12522 $as_echo "$ac_ct_DUMPBIN" >&6; }
12523 else
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12525 $as_echo "no" >&6; }
12526 fi
12527
12528
12529 test -n "$ac_ct_DUMPBIN" && break
12530 done
12531
12532 if test "x$ac_ct_DUMPBIN" = x; then
12533 DUMPBIN=":"
12534 else
12535 case $cross_compiling:$ac_tool_warned in
12536 yes:)
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12539 ac_tool_warned=yes ;;
12540 esac
12541 DUMPBIN=$ac_ct_DUMPBIN
12542 fi
12543 fi
12544
12545 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12546 *COFF*)
12547 DUMPBIN="$DUMPBIN -symbols"
12548 ;;
12549 *)
12550 DUMPBIN=:
12551 ;;
12552 esac
12553 fi
12554
12555 if test "$DUMPBIN" != ":"; then
12556 NM="$DUMPBIN"
12557 fi
12558 fi
12559 test -z "$NM" && NM=nm
12560
12561
12562
12563
12564
12565
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12567 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12568 if test "${lt_cv_nm_interface+set}" = set; then :
12569 $as_echo_n "(cached) " >&6
12570 else
12571 lt_cv_nm_interface="BSD nm"
12572 echo "int some_variable = 0;" > conftest.$ac_ext
12573 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12574 (eval "$ac_compile" 2>conftest.err)
12575 cat conftest.err >&5
12576 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12577 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12578 cat conftest.err >&5
12579 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12580 cat conftest.out >&5
12581 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12582 lt_cv_nm_interface="MS dumpbin"
12583 fi
12584 rm -f conftest*
12585 fi
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12587 $as_echo "$lt_cv_nm_interface" >&6; }
12588
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12590 $as_echo_n "checking whether ln -s works... " >&6; }
12591 LN_S=$as_ln_s
12592 if test "$LN_S" = "ln -s"; then
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12594 $as_echo "yes" >&6; }
12595 else
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12597 $as_echo "no, using $LN_S" >&6; }
12598 fi
12599
12600 # find the maximum length of command line arguments
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12602 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12603 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12604 $as_echo_n "(cached) " >&6
12605 else
12606 i=0
12607 teststring="ABCD"
12608
12609 case $build_os in
12610 msdosdjgpp*)
12611 # On DJGPP, this test can blow up pretty badly due to problems in libc
12612 # (any single argument exceeding 2000 bytes causes a buffer overrun
12613 # during glob expansion). Even if it were fixed, the result of this
12614 # check would be larger than it should be.
12615 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12616 ;;
12617
12618 gnu*)
12619 # Under GNU Hurd, this test is not required because there is
12620 # no limit to the length of command line arguments.
12621 # Libtool will interpret -1 as no limit whatsoever
12622 lt_cv_sys_max_cmd_len=-1;
12623 ;;
12624
12625 cygwin* | mingw* | cegcc*)
12626 # On Win9x/ME, this test blows up -- it succeeds, but takes
12627 # about 5 minutes as the teststring grows exponentially.
12628 # Worse, since 9x/ME are not pre-emptively multitasking,
12629 # you end up with a "frozen" computer, even though with patience
12630 # the test eventually succeeds (with a max line length of 256k).
12631 # Instead, let's just punt: use the minimum linelength reported by
12632 # all of the supported platforms: 8192 (on NT/2K/XP).
12633 lt_cv_sys_max_cmd_len=8192;
12634 ;;
12635
12636 mint*)
12637 # On MiNT this can take a long time and run out of memory.
12638 lt_cv_sys_max_cmd_len=8192;
12639 ;;
12640
12641 amigaos*)
12642 # On AmigaOS with pdksh, this test takes hours, literally.
12643 # So we just punt and use a minimum line length of 8192.
12644 lt_cv_sys_max_cmd_len=8192;
12645 ;;
12646
12647 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12648 # This has been around since 386BSD, at least. Likely further.
12649 if test -x /sbin/sysctl; then
12650 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12651 elif test -x /usr/sbin/sysctl; then
12652 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12653 else
12654 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12655 fi
12656 # And add a safety zone
12657 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12658 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12659 ;;
12660
12661 interix*)
12662 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12663 lt_cv_sys_max_cmd_len=196608
12664 ;;
12665
12666 osf*)
12667 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12668 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12669 # nice to cause kernel panics so lets avoid the loop below.
12670 # First set a reasonable default.
12671 lt_cv_sys_max_cmd_len=16384
12672 #
12673 if test -x /sbin/sysconfig; then
12674 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12675 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12676 esac
12677 fi
12678 ;;
12679 sco3.2v5*)
12680 lt_cv_sys_max_cmd_len=102400
12681 ;;
12682 sysv5* | sco5v6* | sysv4.2uw2*)
12683 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12684 if test -n "$kargmax"; then
12685 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12686 else
12687 lt_cv_sys_max_cmd_len=32768
12688 fi
12689 ;;
12690 *)
12691 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12692 if test -n "$lt_cv_sys_max_cmd_len"; then
12693 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12694 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12695 else
12696 # Make teststring a little bigger before we do anything with it.
12697 # a 1K string should be a reasonable start.
12698 for i in 1 2 3 4 5 6 7 8 ; do
12699 teststring=$teststring$teststring
12700 done
12701 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12702 # If test is not a shell built-in, we'll probably end up computing a
12703 # maximum length that is only half of the actual maximum length, but
12704 # we can't tell.
12705 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12706 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12707 test $i != 17 # 1/2 MB should be enough
12708 do
12709 i=`expr $i + 1`
12710 teststring=$teststring$teststring
12711 done
12712 # Only check the string length outside the loop.
12713 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12714 teststring=
12715 # Add a significant safety factor because C++ compilers can tack on
12716 # massive amounts of additional arguments before passing them to the
12717 # linker. It appears as though 1/2 is a usable value.
12718 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12719 fi
12720 ;;
12721 esac
12722
12723 fi
12724
12725 if test -n $lt_cv_sys_max_cmd_len ; then
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12727 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12728 else
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12730 $as_echo "none" >&6; }
12731 fi
12732 max_cmd_len=$lt_cv_sys_max_cmd_len
12733
12734
12735
12736
12737
12738
12739 : ${CP="cp -f"}
12740 : ${MV="mv -f"}
12741 : ${RM="rm -f"}
12742
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12744 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12745 # Try some XSI features
12746 xsi_shell=no
12747 ( _lt_dummy="a/b/c"
12748 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12749 = c,a/b,, \
12750 && eval 'test $(( 1 + 1 )) -eq 2 \
12751 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12752 && xsi_shell=yes
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12754 $as_echo "$xsi_shell" >&6; }
12755
12756
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12758 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12759 lt_shell_append=no
12760 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12761 >/dev/null 2>&1 \
12762 && lt_shell_append=yes
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12764 $as_echo "$lt_shell_append" >&6; }
12765
12766
12767 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12768 lt_unset=unset
12769 else
12770 lt_unset=false
12771 fi
12772
12773
12774
12775
12776
12777 # test EBCDIC or ASCII
12778 case `echo X|tr X '\101'` in
12779 A) # ASCII based system
12780 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12781 lt_SP2NL='tr \040 \012'
12782 lt_NL2SP='tr \015\012 \040\040'
12783 ;;
12784 *) # EBCDIC based system
12785 lt_SP2NL='tr \100 \n'
12786 lt_NL2SP='tr \r\n \100\100'
12787 ;;
12788 esac
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12799 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12800 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12801 $as_echo_n "(cached) " >&6
12802 else
12803 lt_cv_ld_reload_flag='-r'
12804 fi
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12806 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12807 reload_flag=$lt_cv_ld_reload_flag
12808 case $reload_flag in
12809 "" | " "*) ;;
12810 *) reload_flag=" $reload_flag" ;;
12811 esac
12812 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12813 case $host_os in
12814 darwin*)
12815 if test "$GCC" = yes; then
12816 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12817 else
12818 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12819 fi
12820 ;;
12821 esac
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831 if test -n "$ac_tool_prefix"; then
12832 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12833 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12835 $as_echo_n "checking for $ac_word... " >&6; }
12836 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12837 $as_echo_n "(cached) " >&6
12838 else
12839 if test -n "$OBJDUMP"; then
12840 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12841 else
12842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12843 for as_dir in $PATH
12844 do
12845 IFS=$as_save_IFS
12846 test -z "$as_dir" && as_dir=.
12847 for ac_exec_ext in '' $ac_executable_extensions; do
12848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12849 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12851 break 2
12852 fi
12853 done
12854 done
12855 IFS=$as_save_IFS
12856
12857 fi
12858 fi
12859 OBJDUMP=$ac_cv_prog_OBJDUMP
12860 if test -n "$OBJDUMP"; then
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12862 $as_echo "$OBJDUMP" >&6; }
12863 else
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12865 $as_echo "no" >&6; }
12866 fi
12867
12868
12869 fi
12870 if test -z "$ac_cv_prog_OBJDUMP"; then
12871 ac_ct_OBJDUMP=$OBJDUMP
12872 # Extract the first word of "objdump", so it can be a program name with args.
12873 set dummy objdump; ac_word=$2
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12875 $as_echo_n "checking for $ac_word... " >&6; }
12876 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12877 $as_echo_n "(cached) " >&6
12878 else
12879 if test -n "$ac_ct_OBJDUMP"; then
12880 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12881 else
12882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12883 for as_dir in $PATH
12884 do
12885 IFS=$as_save_IFS
12886 test -z "$as_dir" && as_dir=.
12887 for ac_exec_ext in '' $ac_executable_extensions; do
12888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12889 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12891 break 2
12892 fi
12893 done
12894 done
12895 IFS=$as_save_IFS
12896
12897 fi
12898 fi
12899 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12900 if test -n "$ac_ct_OBJDUMP"; then
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12902 $as_echo "$ac_ct_OBJDUMP" >&6; }
12903 else
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905 $as_echo "no" >&6; }
12906 fi
12907
12908 if test "x$ac_ct_OBJDUMP" = x; then
12909 OBJDUMP="false"
12910 else
12911 case $cross_compiling:$ac_tool_warned in
12912 yes:)
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12915 ac_tool_warned=yes ;;
12916 esac
12917 OBJDUMP=$ac_ct_OBJDUMP
12918 fi
12919 else
12920 OBJDUMP="$ac_cv_prog_OBJDUMP"
12921 fi
12922
12923 test -z "$OBJDUMP" && OBJDUMP=objdump
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12934 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12935 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12936 $as_echo_n "(cached) " >&6
12937 else
12938 lt_cv_file_magic_cmd='$MAGIC_CMD'
12939 lt_cv_file_magic_test_file=
12940 lt_cv_deplibs_check_method='unknown'
12941 # Need to set the preceding variable on all platforms that support
12942 # interlibrary dependencies.
12943 # 'none' -- dependencies not supported.
12944 # `unknown' -- same as none, but documents that we really don't know.
12945 # 'pass_all' -- all dependencies passed with no checks.
12946 # 'test_compile' -- check by making test program.
12947 # 'file_magic [[regex]]' -- check by looking for files in library path
12948 # which responds to the $file_magic_cmd with a given extended regex.
12949 # If you have `file' or equivalent on your system and you're not sure
12950 # whether `pass_all' will *always* work, you probably want this one.
12951
12952 case $host_os in
12953 aix[4-9]*)
12954 lt_cv_deplibs_check_method=pass_all
12955 ;;
12956
12957 beos*)
12958 lt_cv_deplibs_check_method=pass_all
12959 ;;
12960
12961 bsdi[45]*)
12962 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12963 lt_cv_file_magic_cmd='/usr/bin/file -L'
12964 lt_cv_file_magic_test_file=/shlib/libc.so
12965 ;;
12966
12967 cygwin*)
12968 # func_win32_libid is a shell function defined in ltmain.sh
12969 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12970 lt_cv_file_magic_cmd='func_win32_libid'
12971 ;;
12972
12973 mingw* | pw32*)
12974 # Base MSYS/MinGW do not provide the 'file' command needed by
12975 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12976 # unless we find 'file', for example because we are cross-compiling.
12977 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12978 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12979 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12980 lt_cv_file_magic_cmd='func_win32_libid'
12981 else
12982 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12983 lt_cv_file_magic_cmd='$OBJDUMP -f'
12984 fi
12985 ;;
12986
12987 cegcc*)
12988 # use the weaker test based on 'objdump'. See mingw*.
12989 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12990 lt_cv_file_magic_cmd='$OBJDUMP -f'
12991 ;;
12992
12993 darwin* | rhapsody*)
12994 lt_cv_deplibs_check_method=pass_all
12995 ;;
12996
12997 freebsd* | dragonfly*)
12998 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12999 case $host_cpu in
13000 i*86 )
13001 # Not sure whether the presence of OpenBSD here was a mistake.
13002 # Let's accept both of them until this is cleared up.
13003 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13004 lt_cv_file_magic_cmd=/usr/bin/file
13005 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13006 ;;
13007 esac
13008 else
13009 lt_cv_deplibs_check_method=pass_all
13010 fi
13011 ;;
13012
13013 gnu*)
13014 lt_cv_deplibs_check_method=pass_all
13015 ;;
13016
13017 haiku*)
13018 lt_cv_deplibs_check_method=pass_all
13019 ;;
13020
13021 hpux10.20* | hpux11*)
13022 lt_cv_file_magic_cmd=/usr/bin/file
13023 case $host_cpu in
13024 ia64*)
13025 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13026 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13027 ;;
13028 hppa*64*)
13029 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]'
13030 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13031 ;;
13032 *)
13033 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13034 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13035 ;;
13036 esac
13037 ;;
13038
13039 interix[3-9]*)
13040 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13041 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13042 ;;
13043
13044 irix5* | irix6* | nonstopux*)
13045 case $LD in
13046 *-32|*"-32 ") libmagic=32-bit;;
13047 *-n32|*"-n32 ") libmagic=N32;;
13048 *-64|*"-64 ") libmagic=64-bit;;
13049 *) libmagic=never-match;;
13050 esac
13051 lt_cv_deplibs_check_method=pass_all
13052 ;;
13053
13054 # This must be Linux ELF.
13055 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13056 lt_cv_deplibs_check_method=pass_all
13057 ;;
13058
13059 netbsd*)
13060 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13061 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13062 else
13063 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13064 fi
13065 ;;
13066
13067 newos6*)
13068 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13069 lt_cv_file_magic_cmd=/usr/bin/file
13070 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13071 ;;
13072
13073 *nto* | *qnx*)
13074 lt_cv_deplibs_check_method=pass_all
13075 ;;
13076
13077 openbsd*)
13078 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13079 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13080 else
13081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13082 fi
13083 ;;
13084
13085 osf3* | osf4* | osf5*)
13086 lt_cv_deplibs_check_method=pass_all
13087 ;;
13088
13089 rdos*)
13090 lt_cv_deplibs_check_method=pass_all
13091 ;;
13092
13093 solaris*)
13094 lt_cv_deplibs_check_method=pass_all
13095 ;;
13096
13097 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13098 lt_cv_deplibs_check_method=pass_all
13099 ;;
13100
13101 sysv4 | sysv4.3*)
13102 case $host_vendor in
13103 motorola)
13104 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]'
13105 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13106 ;;
13107 ncr)
13108 lt_cv_deplibs_check_method=pass_all
13109 ;;
13110 sequent)
13111 lt_cv_file_magic_cmd='/bin/file'
13112 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13113 ;;
13114 sni)
13115 lt_cv_file_magic_cmd='/bin/file'
13116 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13117 lt_cv_file_magic_test_file=/lib/libc.so
13118 ;;
13119 siemens)
13120 lt_cv_deplibs_check_method=pass_all
13121 ;;
13122 pc)
13123 lt_cv_deplibs_check_method=pass_all
13124 ;;
13125 esac
13126 ;;
13127
13128 tpf*)
13129 lt_cv_deplibs_check_method=pass_all
13130 ;;
13131 esac
13132
13133 fi
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13135 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13136 file_magic_cmd=$lt_cv_file_magic_cmd
13137 deplibs_check_method=$lt_cv_deplibs_check_method
13138 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151 if test -n "$ac_tool_prefix"; then
13152 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13153 set dummy ${ac_tool_prefix}ar; ac_word=$2
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13155 $as_echo_n "checking for $ac_word... " >&6; }
13156 if test "${ac_cv_prog_AR+set}" = set; then :
13157 $as_echo_n "(cached) " >&6
13158 else
13159 if test -n "$AR"; then
13160 ac_cv_prog_AR="$AR" # Let the user override the test.
13161 else
13162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13163 for as_dir in $PATH
13164 do
13165 IFS=$as_save_IFS
13166 test -z "$as_dir" && as_dir=.
13167 for ac_exec_ext in '' $ac_executable_extensions; do
13168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13169 ac_cv_prog_AR="${ac_tool_prefix}ar"
13170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13171 break 2
13172 fi
13173 done
13174 done
13175 IFS=$as_save_IFS
13176
13177 fi
13178 fi
13179 AR=$ac_cv_prog_AR
13180 if test -n "$AR"; then
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13182 $as_echo "$AR" >&6; }
13183 else
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13185 $as_echo "no" >&6; }
13186 fi
13187
13188
13189 fi
13190 if test -z "$ac_cv_prog_AR"; then
13191 ac_ct_AR=$AR
13192 # Extract the first word of "ar", so it can be a program name with args.
13193 set dummy ar; ac_word=$2
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13195 $as_echo_n "checking for $ac_word... " >&6; }
13196 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13197 $as_echo_n "(cached) " >&6
13198 else
13199 if test -n "$ac_ct_AR"; then
13200 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13201 else
13202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13203 for as_dir in $PATH
13204 do
13205 IFS=$as_save_IFS
13206 test -z "$as_dir" && as_dir=.
13207 for ac_exec_ext in '' $ac_executable_extensions; do
13208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13209 ac_cv_prog_ac_ct_AR="ar"
13210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13211 break 2
13212 fi
13213 done
13214 done
13215 IFS=$as_save_IFS
13216
13217 fi
13218 fi
13219 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13220 if test -n "$ac_ct_AR"; then
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13222 $as_echo "$ac_ct_AR" >&6; }
13223 else
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13225 $as_echo "no" >&6; }
13226 fi
13227
13228 if test "x$ac_ct_AR" = x; then
13229 AR="false"
13230 else
13231 case $cross_compiling:$ac_tool_warned in
13232 yes:)
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13235 ac_tool_warned=yes ;;
13236 esac
13237 AR=$ac_ct_AR
13238 fi
13239 else
13240 AR="$ac_cv_prog_AR"
13241 fi
13242
13243 test -z "$AR" && AR=ar
13244 test -z "$AR_FLAGS" && AR_FLAGS=cru
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256 if test -n "$ac_tool_prefix"; then
13257 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13258 set dummy ${ac_tool_prefix}strip; ac_word=$2
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13260 $as_echo_n "checking for $ac_word... " >&6; }
13261 if test "${ac_cv_prog_STRIP+set}" = set; then :
13262 $as_echo_n "(cached) " >&6
13263 else
13264 if test -n "$STRIP"; then
13265 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13266 else
13267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13268 for as_dir in $PATH
13269 do
13270 IFS=$as_save_IFS
13271 test -z "$as_dir" && as_dir=.
13272 for ac_exec_ext in '' $ac_executable_extensions; do
13273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13274 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13276 break 2
13277 fi
13278 done
13279 done
13280 IFS=$as_save_IFS
13281
13282 fi
13283 fi
13284 STRIP=$ac_cv_prog_STRIP
13285 if test -n "$STRIP"; then
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13287 $as_echo "$STRIP" >&6; }
13288 else
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13290 $as_echo "no" >&6; }
13291 fi
13292
13293
13294 fi
13295 if test -z "$ac_cv_prog_STRIP"; then
13296 ac_ct_STRIP=$STRIP
13297 # Extract the first word of "strip", so it can be a program name with args.
13298 set dummy strip; ac_word=$2
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13300 $as_echo_n "checking for $ac_word... " >&6; }
13301 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13302 $as_echo_n "(cached) " >&6
13303 else
13304 if test -n "$ac_ct_STRIP"; then
13305 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13306 else
13307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13308 for as_dir in $PATH
13309 do
13310 IFS=$as_save_IFS
13311 test -z "$as_dir" && as_dir=.
13312 for ac_exec_ext in '' $ac_executable_extensions; do
13313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13314 ac_cv_prog_ac_ct_STRIP="strip"
13315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13316 break 2
13317 fi
13318 done
13319 done
13320 IFS=$as_save_IFS
13321
13322 fi
13323 fi
13324 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13325 if test -n "$ac_ct_STRIP"; then
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13327 $as_echo "$ac_ct_STRIP" >&6; }
13328 else
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13330 $as_echo "no" >&6; }
13331 fi
13332
13333 if test "x$ac_ct_STRIP" = x; then
13334 STRIP=":"
13335 else
13336 case $cross_compiling:$ac_tool_warned in
13337 yes:)
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13340 ac_tool_warned=yes ;;
13341 esac
13342 STRIP=$ac_ct_STRIP
13343 fi
13344 else
13345 STRIP="$ac_cv_prog_STRIP"
13346 fi
13347
13348 test -z "$STRIP" && STRIP=:
13349
13350
13351
13352
13353
13354
13355 if test -n "$ac_tool_prefix"; then
13356 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13357 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13359 $as_echo_n "checking for $ac_word... " >&6; }
13360 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13361 $as_echo_n "(cached) " >&6
13362 else
13363 if test -n "$RANLIB"; then
13364 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13365 else
13366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13367 for as_dir in $PATH
13368 do
13369 IFS=$as_save_IFS
13370 test -z "$as_dir" && as_dir=.
13371 for ac_exec_ext in '' $ac_executable_extensions; do
13372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13373 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13375 break 2
13376 fi
13377 done
13378 done
13379 IFS=$as_save_IFS
13380
13381 fi
13382 fi
13383 RANLIB=$ac_cv_prog_RANLIB
13384 if test -n "$RANLIB"; then
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13386 $as_echo "$RANLIB" >&6; }
13387 else
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13389 $as_echo "no" >&6; }
13390 fi
13391
13392
13393 fi
13394 if test -z "$ac_cv_prog_RANLIB"; then
13395 ac_ct_RANLIB=$RANLIB
13396 # Extract the first word of "ranlib", so it can be a program name with args.
13397 set dummy ranlib; ac_word=$2
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13399 $as_echo_n "checking for $ac_word... " >&6; }
13400 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13401 $as_echo_n "(cached) " >&6
13402 else
13403 if test -n "$ac_ct_RANLIB"; then
13404 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13405 else
13406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13407 for as_dir in $PATH
13408 do
13409 IFS=$as_save_IFS
13410 test -z "$as_dir" && as_dir=.
13411 for ac_exec_ext in '' $ac_executable_extensions; do
13412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13413 ac_cv_prog_ac_ct_RANLIB="ranlib"
13414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13415 break 2
13416 fi
13417 done
13418 done
13419 IFS=$as_save_IFS
13420
13421 fi
13422 fi
13423 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13424 if test -n "$ac_ct_RANLIB"; then
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13426 $as_echo "$ac_ct_RANLIB" >&6; }
13427 else
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13429 $as_echo "no" >&6; }
13430 fi
13431
13432 if test "x$ac_ct_RANLIB" = x; then
13433 RANLIB=":"
13434 else
13435 case $cross_compiling:$ac_tool_warned in
13436 yes:)
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13439 ac_tool_warned=yes ;;
13440 esac
13441 RANLIB=$ac_ct_RANLIB
13442 fi
13443 else
13444 RANLIB="$ac_cv_prog_RANLIB"
13445 fi
13446
13447 test -z "$RANLIB" && RANLIB=:
13448
13449
13450
13451
13452
13453
13454 # Determine commands to create old-style static archives.
13455 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13456 old_postinstall_cmds='chmod 644 $oldlib'
13457 old_postuninstall_cmds=
13458
13459 if test -n "$RANLIB"; then
13460 case $host_os in
13461 openbsd*)
13462 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13463 ;;
13464 *)
13465 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13466 ;;
13467 esac
13468 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13469 fi
13470
13471 case $host_os in
13472 darwin*)
13473 lock_old_archive_extraction=yes ;;
13474 *)
13475 lock_old_archive_extraction=no ;;
13476 esac
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516 # If no C compiler was specified, use CC.
13517 LTCC=${LTCC-"$CC"}
13518
13519 # If no C compiler flags were specified, use CFLAGS.
13520 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13521
13522 # Allow CC to be a program name with arguments.
13523 compiler=$CC
13524
13525
13526 # Check for command to grab the raw symbol name followed by C symbol from nm.
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13528 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13529 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13530 $as_echo_n "(cached) " >&6
13531 else
13532
13533 # These are sane defaults that work on at least a few old systems.
13534 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13535
13536 # Character class describing NM global symbol codes.
13537 symcode='[BCDEGRST]'
13538
13539 # Regexp to match symbols that can be accessed directly from C.
13540 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13541
13542 # Define system-specific variables.
13543 case $host_os in
13544 aix*)
13545 symcode='[BCDT]'
13546 ;;
13547 cygwin* | mingw* | pw32* | cegcc*)
13548 symcode='[ABCDGISTW]'
13549 ;;
13550 hpux*)
13551 if test "$host_cpu" = ia64; then
13552 symcode='[ABCDEGRST]'
13553 fi
13554 ;;
13555 irix* | nonstopux*)
13556 symcode='[BCDEGRST]'
13557 ;;
13558 osf*)
13559 symcode='[BCDEGQRST]'
13560 ;;
13561 solaris*)
13562 symcode='[BDRT]'
13563 ;;
13564 sco3.2v5*)
13565 symcode='[DT]'
13566 ;;
13567 sysv4.2uw2*)
13568 symcode='[DT]'
13569 ;;
13570 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13571 symcode='[ABDT]'
13572 ;;
13573 sysv4)
13574 symcode='[DFNSTU]'
13575 ;;
13576 esac
13577
13578 # If we're using GNU nm, then use its standard symbol codes.
13579 case `$NM -V 2>&1` in
13580 *GNU* | *'with BFD'*)
13581 symcode='[ABCDGIRSTW]' ;;
13582 esac
13583
13584 # Transform an extracted symbol line into a proper C declaration.
13585 # Some systems (esp. on ia64) link data and code symbols differently,
13586 # so use this general approach.
13587 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13588
13589 # Transform an extracted symbol line into symbol name and symbol address
13590 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13591 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'"
13592
13593 # Handle CRLF in mingw tool chain
13594 opt_cr=
13595 case $build_os in
13596 mingw*)
13597 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13598 ;;
13599 esac
13600
13601 # Try without a prefix underscore, then with it.
13602 for ac_symprfx in "" "_"; do
13603
13604 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13605 symxfrm="\\1 $ac_symprfx\\2 \\2"
13606
13607 # Write the raw and C identifiers.
13608 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13609 # Fake it for dumpbin and say T for any non-static function
13610 # and D for any global variable.
13611 # Also find C++ and __fastcall symbols from MSVC++,
13612 # which start with @ or ?.
13613 lt_cv_sys_global_symbol_pipe="$AWK '"\
13614 " {last_section=section; section=\$ 3};"\
13615 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13616 " \$ 0!~/External *\|/{next};"\
13617 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13618 " {if(hide[section]) next};"\
13619 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13620 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13621 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13622 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13623 " ' prfx=^$ac_symprfx"
13624 else
13625 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13626 fi
13627
13628 # Check to see that the pipe works correctly.
13629 pipe_works=no
13630
13631 rm -f conftest*
13632 cat > conftest.$ac_ext <<_LT_EOF
13633 #ifdef __cplusplus
13634 extern "C" {
13635 #endif
13636 char nm_test_var;
13637 void nm_test_func(void);
13638 void nm_test_func(void){}
13639 #ifdef __cplusplus
13640 }
13641 #endif
13642 int main(){nm_test_var='a';nm_test_func();return(0);}
13643 _LT_EOF
13644
13645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13646 (eval $ac_compile) 2>&5
13647 ac_status=$?
13648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13649 test $ac_status = 0; }; then
13650 # Now try to grab the symbols.
13651 nlist=conftest.nm
13652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13653 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13654 ac_status=$?
13655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13656 test $ac_status = 0; } && test -s "$nlist"; then
13657 # Try sorting and uniquifying the output.
13658 if sort "$nlist" | uniq > "$nlist"T; then
13659 mv -f "$nlist"T "$nlist"
13660 else
13661 rm -f "$nlist"T
13662 fi
13663
13664 # Make sure that we snagged all the symbols we need.
13665 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13666 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13667 cat <<_LT_EOF > conftest.$ac_ext
13668 #ifdef __cplusplus
13669 extern "C" {
13670 #endif
13671
13672 _LT_EOF
13673 # Now generate the symbol file.
13674 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13675
13676 cat <<_LT_EOF >> conftest.$ac_ext
13677
13678 /* The mapping between symbol names and symbols. */
13679 const struct {
13680 const char *name;
13681 void *address;
13682 }
13683 lt__PROGRAM__LTX_preloaded_symbols[] =
13684 {
13685 { "@PROGRAM@", (void *) 0 },
13686 _LT_EOF
13687 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13688 cat <<\_LT_EOF >> conftest.$ac_ext
13689 {0, (void *) 0}
13690 };
13691
13692 /* This works around a problem in FreeBSD linker */
13693 #ifdef FREEBSD_WORKAROUND
13694 static const void *lt_preloaded_setup() {
13695 return lt__PROGRAM__LTX_preloaded_symbols;
13696 }
13697 #endif
13698
13699 #ifdef __cplusplus
13700 }
13701 #endif
13702 _LT_EOF
13703 # Now try linking the two files.
13704 mv conftest.$ac_objext conftstm.$ac_objext
13705 lt_save_LIBS="$LIBS"
13706 lt_save_CFLAGS="$CFLAGS"
13707 LIBS="conftstm.$ac_objext"
13708 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13710 (eval $ac_link) 2>&5
13711 ac_status=$?
13712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13713 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13714 pipe_works=yes
13715 fi
13716 LIBS="$lt_save_LIBS"
13717 CFLAGS="$lt_save_CFLAGS"
13718 else
13719 echo "cannot find nm_test_func in $nlist" >&5
13720 fi
13721 else
13722 echo "cannot find nm_test_var in $nlist" >&5
13723 fi
13724 else
13725 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13726 fi
13727 else
13728 echo "$progname: failed program was:" >&5
13729 cat conftest.$ac_ext >&5
13730 fi
13731 rm -rf conftest* conftst*
13732
13733 # Do not use the global_symbol_pipe unless it works.
13734 if test "$pipe_works" = yes; then
13735 break
13736 else
13737 lt_cv_sys_global_symbol_pipe=
13738 fi
13739 done
13740
13741 fi
13742
13743 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13744 lt_cv_sys_global_symbol_to_cdecl=
13745 fi
13746 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13748 $as_echo "failed" >&6; }
13749 else
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13751 $as_echo "ok" >&6; }
13752 fi
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775 # Check whether --enable-libtool-lock was given.
13776 if test "${enable_libtool_lock+set}" = set; then :
13777 enableval=$enable_libtool_lock;
13778 fi
13779
13780 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13781
13782 # Some flags need to be propagated to the compiler or linker for good
13783 # libtool support.
13784 case $host in
13785 ia64-*-hpux*)
13786 # Find out which ABI we are using.
13787 echo 'int i;' > conftest.$ac_ext
13788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13789 (eval $ac_compile) 2>&5
13790 ac_status=$?
13791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13792 test $ac_status = 0; }; then
13793 case `/usr/bin/file conftest.$ac_objext` in
13794 *ELF-32*)
13795 HPUX_IA64_MODE="32"
13796 ;;
13797 *ELF-64*)
13798 HPUX_IA64_MODE="64"
13799 ;;
13800 esac
13801 fi
13802 rm -rf conftest*
13803 ;;
13804 *-*-irix6*)
13805 # Find out which ABI we are using.
13806 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13807 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13808 (eval $ac_compile) 2>&5
13809 ac_status=$?
13810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13811 test $ac_status = 0; }; then
13812 if test "$lt_cv_prog_gnu_ld" = yes; then
13813 case `/usr/bin/file conftest.$ac_objext` in
13814 *32-bit*)
13815 LD="${LD-ld} -melf32bsmip"
13816 ;;
13817 *N32*)
13818 LD="${LD-ld} -melf32bmipn32"
13819 ;;
13820 *64-bit*)
13821 LD="${LD-ld} -melf64bmip"
13822 ;;
13823 esac
13824 else
13825 case `/usr/bin/file conftest.$ac_objext` in
13826 *32-bit*)
13827 LD="${LD-ld} -32"
13828 ;;
13829 *N32*)
13830 LD="${LD-ld} -n32"
13831 ;;
13832 *64-bit*)
13833 LD="${LD-ld} -64"
13834 ;;
13835 esac
13836 fi
13837 fi
13838 rm -rf conftest*
13839 ;;
13840
13841 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13842 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13843 # Find out which ABI we are using.
13844 echo 'int i;' > conftest.$ac_ext
13845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13846 (eval $ac_compile) 2>&5
13847 ac_status=$?
13848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13849 test $ac_status = 0; }; then
13850 case `/usr/bin/file conftest.o` in
13851 *32-bit*)
13852 case $host in
13853 x86_64-*kfreebsd*-gnu)
13854 LD="${LD-ld} -m elf_i386_fbsd"
13855 ;;
13856 x86_64-*linux*)
13857 LD="${LD-ld} -m elf_i386"
13858 ;;
13859 ppc64-*linux*|powerpc64-*linux*)
13860 LD="${LD-ld} -m elf32ppclinux"
13861 ;;
13862 s390x-*linux*)
13863 LD="${LD-ld} -m elf_s390"
13864 ;;
13865 sparc64-*linux*)
13866 LD="${LD-ld} -m elf32_sparc"
13867 ;;
13868 esac
13869 ;;
13870 *64-bit*)
13871 case $host in
13872 x86_64-*kfreebsd*-gnu)
13873 LD="${LD-ld} -m elf_x86_64_fbsd"
13874 ;;
13875 x86_64-*linux*)
13876 LD="${LD-ld} -m elf_x86_64"
13877 ;;
13878 ppc*-*linux*|powerpc*-*linux*)
13879 LD="${LD-ld} -m elf64ppc"
13880 ;;
13881 s390*-*linux*|s390*-*tpf*)
13882 LD="${LD-ld} -m elf64_s390"
13883 ;;
13884 sparc*-*linux*)
13885 LD="${LD-ld} -m elf64_sparc"
13886 ;;
13887 esac
13888 ;;
13889 esac
13890 fi
13891 rm -rf conftest*
13892 ;;
13893
13894 *-*-sco3.2v5*)
13895 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13896 SAVE_CFLAGS="$CFLAGS"
13897 CFLAGS="$CFLAGS -belf"
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13899 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13900 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13901 $as_echo_n "(cached) " >&6
13902 else
13903 ac_ext=c
13904 ac_cpp='$CPP $CPPFLAGS'
13905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13908
13909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13910 /* end confdefs.h. */
13911
13912 int
13913 main ()
13914 {
13915
13916 ;
13917 return 0;
13918 }
13919 _ACEOF
13920 if ac_fn_c_try_link "$LINENO"; then :
13921 lt_cv_cc_needs_belf=yes
13922 else
13923 lt_cv_cc_needs_belf=no
13924 fi
13925 rm -f core conftest.err conftest.$ac_objext \
13926 conftest$ac_exeext conftest.$ac_ext
13927 ac_ext=c
13928 ac_cpp='$CPP $CPPFLAGS'
13929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13932
13933 fi
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13935 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13936 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13937 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13938 CFLAGS="$SAVE_CFLAGS"
13939 fi
13940 ;;
13941 sparc*-*solaris*)
13942 # Find out which ABI we are using.
13943 echo 'int i;' > conftest.$ac_ext
13944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13945 (eval $ac_compile) 2>&5
13946 ac_status=$?
13947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13948 test $ac_status = 0; }; then
13949 case `/usr/bin/file conftest.o` in
13950 *64-bit*)
13951 case $lt_cv_prog_gnu_ld in
13952 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13953 *)
13954 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13955 LD="${LD-ld} -64"
13956 fi
13957 ;;
13958 esac
13959 ;;
13960 esac
13961 fi
13962 rm -rf conftest*
13963 ;;
13964 esac
13965
13966 need_locks="$enable_libtool_lock"
13967
13968
13969 case $host_os in
13970 rhapsody* | darwin*)
13971 if test -n "$ac_tool_prefix"; then
13972 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13973 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13975 $as_echo_n "checking for $ac_word... " >&6; }
13976 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13977 $as_echo_n "(cached) " >&6
13978 else
13979 if test -n "$DSYMUTIL"; then
13980 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13981 else
13982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13983 for as_dir in $PATH
13984 do
13985 IFS=$as_save_IFS
13986 test -z "$as_dir" && as_dir=.
13987 for ac_exec_ext in '' $ac_executable_extensions; do
13988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13989 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13991 break 2
13992 fi
13993 done
13994 done
13995 IFS=$as_save_IFS
13996
13997 fi
13998 fi
13999 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14000 if test -n "$DSYMUTIL"; then
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14002 $as_echo "$DSYMUTIL" >&6; }
14003 else
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14005 $as_echo "no" >&6; }
14006 fi
14007
14008
14009 fi
14010 if test -z "$ac_cv_prog_DSYMUTIL"; then
14011 ac_ct_DSYMUTIL=$DSYMUTIL
14012 # Extract the first word of "dsymutil", so it can be a program name with args.
14013 set dummy dsymutil; ac_word=$2
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14015 $as_echo_n "checking for $ac_word... " >&6; }
14016 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14017 $as_echo_n "(cached) " >&6
14018 else
14019 if test -n "$ac_ct_DSYMUTIL"; then
14020 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14021 else
14022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14023 for as_dir in $PATH
14024 do
14025 IFS=$as_save_IFS
14026 test -z "$as_dir" && as_dir=.
14027 for ac_exec_ext in '' $ac_executable_extensions; do
14028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14029 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14031 break 2
14032 fi
14033 done
14034 done
14035 IFS=$as_save_IFS
14036
14037 fi
14038 fi
14039 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14040 if test -n "$ac_ct_DSYMUTIL"; then
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14042 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14043 else
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14045 $as_echo "no" >&6; }
14046 fi
14047
14048 if test "x$ac_ct_DSYMUTIL" = x; then
14049 DSYMUTIL=":"
14050 else
14051 case $cross_compiling:$ac_tool_warned in
14052 yes:)
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14055 ac_tool_warned=yes ;;
14056 esac
14057 DSYMUTIL=$ac_ct_DSYMUTIL
14058 fi
14059 else
14060 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14061 fi
14062
14063 if test -n "$ac_tool_prefix"; then
14064 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14065 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14067 $as_echo_n "checking for $ac_word... " >&6; }
14068 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14069 $as_echo_n "(cached) " >&6
14070 else
14071 if test -n "$NMEDIT"; then
14072 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14073 else
14074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14075 for as_dir in $PATH
14076 do
14077 IFS=$as_save_IFS
14078 test -z "$as_dir" && as_dir=.
14079 for ac_exec_ext in '' $ac_executable_extensions; do
14080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14081 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14083 break 2
14084 fi
14085 done
14086 done
14087 IFS=$as_save_IFS
14088
14089 fi
14090 fi
14091 NMEDIT=$ac_cv_prog_NMEDIT
14092 if test -n "$NMEDIT"; then
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14094 $as_echo "$NMEDIT" >&6; }
14095 else
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14097 $as_echo "no" >&6; }
14098 fi
14099
14100
14101 fi
14102 if test -z "$ac_cv_prog_NMEDIT"; then
14103 ac_ct_NMEDIT=$NMEDIT
14104 # Extract the first word of "nmedit", so it can be a program name with args.
14105 set dummy nmedit; ac_word=$2
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14107 $as_echo_n "checking for $ac_word... " >&6; }
14108 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14109 $as_echo_n "(cached) " >&6
14110 else
14111 if test -n "$ac_ct_NMEDIT"; then
14112 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14113 else
14114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14115 for as_dir in $PATH
14116 do
14117 IFS=$as_save_IFS
14118 test -z "$as_dir" && as_dir=.
14119 for ac_exec_ext in '' $ac_executable_extensions; do
14120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14121 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14123 break 2
14124 fi
14125 done
14126 done
14127 IFS=$as_save_IFS
14128
14129 fi
14130 fi
14131 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14132 if test -n "$ac_ct_NMEDIT"; then
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14134 $as_echo "$ac_ct_NMEDIT" >&6; }
14135 else
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14137 $as_echo "no" >&6; }
14138 fi
14139
14140 if test "x$ac_ct_NMEDIT" = x; then
14141 NMEDIT=":"
14142 else
14143 case $cross_compiling:$ac_tool_warned in
14144 yes:)
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14147 ac_tool_warned=yes ;;
14148 esac
14149 NMEDIT=$ac_ct_NMEDIT
14150 fi
14151 else
14152 NMEDIT="$ac_cv_prog_NMEDIT"
14153 fi
14154
14155 if test -n "$ac_tool_prefix"; then
14156 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14157 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14159 $as_echo_n "checking for $ac_word... " >&6; }
14160 if test "${ac_cv_prog_LIPO+set}" = set; then :
14161 $as_echo_n "(cached) " >&6
14162 else
14163 if test -n "$LIPO"; then
14164 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14165 else
14166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14167 for as_dir in $PATH
14168 do
14169 IFS=$as_save_IFS
14170 test -z "$as_dir" && as_dir=.
14171 for ac_exec_ext in '' $ac_executable_extensions; do
14172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14173 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14175 break 2
14176 fi
14177 done
14178 done
14179 IFS=$as_save_IFS
14180
14181 fi
14182 fi
14183 LIPO=$ac_cv_prog_LIPO
14184 if test -n "$LIPO"; then
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14186 $as_echo "$LIPO" >&6; }
14187 else
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14189 $as_echo "no" >&6; }
14190 fi
14191
14192
14193 fi
14194 if test -z "$ac_cv_prog_LIPO"; then
14195 ac_ct_LIPO=$LIPO
14196 # Extract the first word of "lipo", so it can be a program name with args.
14197 set dummy lipo; ac_word=$2
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14199 $as_echo_n "checking for $ac_word... " >&6; }
14200 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14201 $as_echo_n "(cached) " >&6
14202 else
14203 if test -n "$ac_ct_LIPO"; then
14204 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14205 else
14206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14207 for as_dir in $PATH
14208 do
14209 IFS=$as_save_IFS
14210 test -z "$as_dir" && as_dir=.
14211 for ac_exec_ext in '' $ac_executable_extensions; do
14212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14213 ac_cv_prog_ac_ct_LIPO="lipo"
14214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14215 break 2
14216 fi
14217 done
14218 done
14219 IFS=$as_save_IFS
14220
14221 fi
14222 fi
14223 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14224 if test -n "$ac_ct_LIPO"; then
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14226 $as_echo "$ac_ct_LIPO" >&6; }
14227 else
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14229 $as_echo "no" >&6; }
14230 fi
14231
14232 if test "x$ac_ct_LIPO" = x; then
14233 LIPO=":"
14234 else
14235 case $cross_compiling:$ac_tool_warned in
14236 yes:)
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14239 ac_tool_warned=yes ;;
14240 esac
14241 LIPO=$ac_ct_LIPO
14242 fi
14243 else
14244 LIPO="$ac_cv_prog_LIPO"
14245 fi
14246
14247 if test -n "$ac_tool_prefix"; then
14248 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14249 set dummy ${ac_tool_prefix}otool; ac_word=$2
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14251 $as_echo_n "checking for $ac_word... " >&6; }
14252 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14253 $as_echo_n "(cached) " >&6
14254 else
14255 if test -n "$OTOOL"; then
14256 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14257 else
14258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14259 for as_dir in $PATH
14260 do
14261 IFS=$as_save_IFS
14262 test -z "$as_dir" && as_dir=.
14263 for ac_exec_ext in '' $ac_executable_extensions; do
14264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14265 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14267 break 2
14268 fi
14269 done
14270 done
14271 IFS=$as_save_IFS
14272
14273 fi
14274 fi
14275 OTOOL=$ac_cv_prog_OTOOL
14276 if test -n "$OTOOL"; then
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14278 $as_echo "$OTOOL" >&6; }
14279 else
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14281 $as_echo "no" >&6; }
14282 fi
14283
14284
14285 fi
14286 if test -z "$ac_cv_prog_OTOOL"; then
14287 ac_ct_OTOOL=$OTOOL
14288 # Extract the first word of "otool", so it can be a program name with args.
14289 set dummy otool; ac_word=$2
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14291 $as_echo_n "checking for $ac_word... " >&6; }
14292 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14293 $as_echo_n "(cached) " >&6
14294 else
14295 if test -n "$ac_ct_OTOOL"; then
14296 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14297 else
14298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14299 for as_dir in $PATH
14300 do
14301 IFS=$as_save_IFS
14302 test -z "$as_dir" && as_dir=.
14303 for ac_exec_ext in '' $ac_executable_extensions; do
14304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14305 ac_cv_prog_ac_ct_OTOOL="otool"
14306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14307 break 2
14308 fi
14309 done
14310 done
14311 IFS=$as_save_IFS
14312
14313 fi
14314 fi
14315 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14316 if test -n "$ac_ct_OTOOL"; then
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14318 $as_echo "$ac_ct_OTOOL" >&6; }
14319 else
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14321 $as_echo "no" >&6; }
14322 fi
14323
14324 if test "x$ac_ct_OTOOL" = x; then
14325 OTOOL=":"
14326 else
14327 case $cross_compiling:$ac_tool_warned in
14328 yes:)
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14331 ac_tool_warned=yes ;;
14332 esac
14333 OTOOL=$ac_ct_OTOOL
14334 fi
14335 else
14336 OTOOL="$ac_cv_prog_OTOOL"
14337 fi
14338
14339 if test -n "$ac_tool_prefix"; then
14340 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14341 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14343 $as_echo_n "checking for $ac_word... " >&6; }
14344 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14345 $as_echo_n "(cached) " >&6
14346 else
14347 if test -n "$OTOOL64"; then
14348 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14349 else
14350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14351 for as_dir in $PATH
14352 do
14353 IFS=$as_save_IFS
14354 test -z "$as_dir" && as_dir=.
14355 for ac_exec_ext in '' $ac_executable_extensions; do
14356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14357 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14359 break 2
14360 fi
14361 done
14362 done
14363 IFS=$as_save_IFS
14364
14365 fi
14366 fi
14367 OTOOL64=$ac_cv_prog_OTOOL64
14368 if test -n "$OTOOL64"; then
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14370 $as_echo "$OTOOL64" >&6; }
14371 else
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14373 $as_echo "no" >&6; }
14374 fi
14375
14376
14377 fi
14378 if test -z "$ac_cv_prog_OTOOL64"; then
14379 ac_ct_OTOOL64=$OTOOL64
14380 # Extract the first word of "otool64", so it can be a program name with args.
14381 set dummy otool64; ac_word=$2
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14383 $as_echo_n "checking for $ac_word... " >&6; }
14384 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14385 $as_echo_n "(cached) " >&6
14386 else
14387 if test -n "$ac_ct_OTOOL64"; then
14388 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14389 else
14390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14391 for as_dir in $PATH
14392 do
14393 IFS=$as_save_IFS
14394 test -z "$as_dir" && as_dir=.
14395 for ac_exec_ext in '' $ac_executable_extensions; do
14396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14397 ac_cv_prog_ac_ct_OTOOL64="otool64"
14398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14399 break 2
14400 fi
14401 done
14402 done
14403 IFS=$as_save_IFS
14404
14405 fi
14406 fi
14407 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14408 if test -n "$ac_ct_OTOOL64"; then
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14410 $as_echo "$ac_ct_OTOOL64" >&6; }
14411 else
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14413 $as_echo "no" >&6; }
14414 fi
14415
14416 if test "x$ac_ct_OTOOL64" = x; then
14417 OTOOL64=":"
14418 else
14419 case $cross_compiling:$ac_tool_warned in
14420 yes:)
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14423 ac_tool_warned=yes ;;
14424 esac
14425 OTOOL64=$ac_ct_OTOOL64
14426 fi
14427 else
14428 OTOOL64="$ac_cv_prog_OTOOL64"
14429 fi
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14458 $as_echo_n "checking for -single_module linker flag... " >&6; }
14459 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14460 $as_echo_n "(cached) " >&6
14461 else
14462 lt_cv_apple_cc_single_mod=no
14463 if test -z "${LT_MULTI_MODULE}"; then
14464 # By default we will add the -single_module flag. You can override
14465 # by either setting the environment variable LT_MULTI_MODULE
14466 # non-empty at configure time, or by adding -multi_module to the
14467 # link flags.
14468 rm -rf libconftest.dylib*
14469 echo "int foo(void){return 1;}" > conftest.c
14470 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14471 -dynamiclib -Wl,-single_module conftest.c" >&5
14472 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14473 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14474 _lt_result=$?
14475 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14476 lt_cv_apple_cc_single_mod=yes
14477 else
14478 cat conftest.err >&5
14479 fi
14480 rm -rf libconftest.dylib*
14481 rm -f conftest.*
14482 fi
14483 fi
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14485 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14487 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14488 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14489 $as_echo_n "(cached) " >&6
14490 else
14491 lt_cv_ld_exported_symbols_list=no
14492 save_LDFLAGS=$LDFLAGS
14493 echo "_main" > conftest.sym
14494 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14496 /* end confdefs.h. */
14497
14498 int
14499 main ()
14500 {
14501
14502 ;
14503 return 0;
14504 }
14505 _ACEOF
14506 if ac_fn_c_try_link "$LINENO"; then :
14507 lt_cv_ld_exported_symbols_list=yes
14508 else
14509 lt_cv_ld_exported_symbols_list=no
14510 fi
14511 rm -f core conftest.err conftest.$ac_objext \
14512 conftest$ac_exeext conftest.$ac_ext
14513 LDFLAGS="$save_LDFLAGS"
14514
14515 fi
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14517 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14519 $as_echo_n "checking for -force_load linker flag... " >&6; }
14520 if test "${lt_cv_ld_force_load+set}" = set; then :
14521 $as_echo_n "(cached) " >&6
14522 else
14523 lt_cv_ld_force_load=no
14524 cat > conftest.c << _LT_EOF
14525 int forced_loaded() { return 2;}
14526 _LT_EOF
14527 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14528 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14529 echo "$AR cru libconftest.a conftest.o" >&5
14530 $AR cru libconftest.a conftest.o 2>&5
14531 cat > conftest.c << _LT_EOF
14532 int main() { return 0;}
14533 _LT_EOF
14534 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14535 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14536 _lt_result=$?
14537 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14538 lt_cv_ld_force_load=yes
14539 else
14540 cat conftest.err >&5
14541 fi
14542 rm -f conftest.err libconftest.a conftest conftest.c
14543 rm -rf conftest.dSYM
14544
14545 fi
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14547 $as_echo "$lt_cv_ld_force_load" >&6; }
14548 case $host_os in
14549 rhapsody* | darwin1.[012])
14550 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14551 darwin1.*)
14552 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14553 darwin*) # darwin 5.x on
14554 # if running on 10.5 or later, the deployment target defaults
14555 # to the OS version, if on x86, and 10.4, the deployment
14556 # target defaults to 10.4. Don't you love it?
14557 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14558 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14559 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14560 10.[012]*)
14561 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14562 10.*)
14563 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14564 esac
14565 ;;
14566 esac
14567 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14568 _lt_dar_single_mod='$single_module'
14569 fi
14570 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14571 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14572 else
14573 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14574 fi
14575 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14576 _lt_dsymutil='~$DSYMUTIL $lib || :'
14577 else
14578 _lt_dsymutil=
14579 fi
14580 ;;
14581 esac
14582
14583 for ac_header in dlfcn.h
14584 do :
14585 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14586 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14587 cat >>confdefs.h <<_ACEOF
14588 #define HAVE_DLFCN_H 1
14589 _ACEOF
14590
14591 fi
14592 done
14593
14594
14595
14596
14597
14598 # Set options
14599
14600
14601
14602 enable_dlopen=no
14603
14604
14605 enable_win32_dll=no
14606
14607
14608 # Check whether --enable-shared was given.
14609 if test "${enable_shared+set}" = set; then :
14610 enableval=$enable_shared; p=${PACKAGE-default}
14611 case $enableval in
14612 yes) enable_shared=yes ;;
14613 no) enable_shared=no ;;
14614 *)
14615 enable_shared=no
14616 # Look at the argument we got. We use all the common list separators.
14617 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14618 for pkg in $enableval; do
14619 IFS="$lt_save_ifs"
14620 if test "X$pkg" = "X$p"; then
14621 enable_shared=yes
14622 fi
14623 done
14624 IFS="$lt_save_ifs"
14625 ;;
14626 esac
14627 else
14628 enable_shared=yes
14629 fi
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639 # Check whether --enable-static was given.
14640 if test "${enable_static+set}" = set; then :
14641 enableval=$enable_static; p=${PACKAGE-default}
14642 case $enableval in
14643 yes) enable_static=yes ;;
14644 no) enable_static=no ;;
14645 *)
14646 enable_static=no
14647 # Look at the argument we got. We use all the common list separators.
14648 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14649 for pkg in $enableval; do
14650 IFS="$lt_save_ifs"
14651 if test "X$pkg" = "X$p"; then
14652 enable_static=yes
14653 fi
14654 done
14655 IFS="$lt_save_ifs"
14656 ;;
14657 esac
14658 else
14659 enable_static=yes
14660 fi
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671 # Check whether --with-pic was given.
14672 if test "${with_pic+set}" = set; then :
14673 withval=$with_pic; pic_mode="$withval"
14674 else
14675 pic_mode=default
14676 fi
14677
14678
14679 test -z "$pic_mode" && pic_mode=default
14680
14681
14682
14683
14684
14685
14686
14687 # Check whether --enable-fast-install was given.
14688 if test "${enable_fast_install+set}" = set; then :
14689 enableval=$enable_fast_install; p=${PACKAGE-default}
14690 case $enableval in
14691 yes) enable_fast_install=yes ;;
14692 no) enable_fast_install=no ;;
14693 *)
14694 enable_fast_install=no
14695 # Look at the argument we got. We use all the common list separators.
14696 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14697 for pkg in $enableval; do
14698 IFS="$lt_save_ifs"
14699 if test "X$pkg" = "X$p"; then
14700 enable_fast_install=yes
14701 fi
14702 done
14703 IFS="$lt_save_ifs"
14704 ;;
14705 esac
14706 else
14707 enable_fast_install=yes
14708 fi
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720 # This can be used to rebuild libtool when needed
14721 LIBTOOL_DEPS="$ltmain"
14722
14723 # Always use our own libtool.
14724 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751 test -z "$LN_S" && LN_S="ln -s"
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766 if test -n "${ZSH_VERSION+set}" ; then
14767 setopt NO_GLOB_SUBST
14768 fi
14769
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14771 $as_echo_n "checking for objdir... " >&6; }
14772 if test "${lt_cv_objdir+set}" = set; then :
14773 $as_echo_n "(cached) " >&6
14774 else
14775 rm -f .libs 2>/dev/null
14776 mkdir .libs 2>/dev/null
14777 if test -d .libs; then
14778 lt_cv_objdir=.libs
14779 else
14780 # MS-DOS does not allow filenames that begin with a dot.
14781 lt_cv_objdir=_libs
14782 fi
14783 rmdir .libs 2>/dev/null
14784 fi
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14786 $as_echo "$lt_cv_objdir" >&6; }
14787 objdir=$lt_cv_objdir
14788
14789
14790
14791
14792
14793 cat >>confdefs.h <<_ACEOF
14794 #define LT_OBJDIR "$lt_cv_objdir/"
14795 _ACEOF
14796
14797
14798
14799
14800 case $host_os in
14801 aix3*)
14802 # AIX sometimes has problems with the GCC collect2 program. For some
14803 # reason, if we set the COLLECT_NAMES environment variable, the problems
14804 # vanish in a puff of smoke.
14805 if test "X${COLLECT_NAMES+set}" != Xset; then
14806 COLLECT_NAMES=
14807 export COLLECT_NAMES
14808 fi
14809 ;;
14810 esac
14811
14812 # Global variables:
14813 ofile=libtool
14814 can_build_shared=yes
14815
14816 # All known linkers require a `.a' archive for static linking (except MSVC,
14817 # which needs '.lib').
14818 libext=a
14819
14820 with_gnu_ld="$lt_cv_prog_gnu_ld"
14821
14822 old_CC="$CC"
14823 old_CFLAGS="$CFLAGS"
14824
14825 # Set sane defaults for various variables
14826 test -z "$CC" && CC=cc
14827 test -z "$LTCC" && LTCC=$CC
14828 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14829 test -z "$LD" && LD=ld
14830 test -z "$ac_objext" && ac_objext=o
14831
14832 for cc_temp in $compiler""; do
14833 case $cc_temp in
14834 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14835 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14836 \-*) ;;
14837 *) break;;
14838 esac
14839 done
14840 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14841
14842
14843 # Only perform the check for file, if the check method requires it
14844 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14845 case $deplibs_check_method in
14846 file_magic*)
14847 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14849 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14850 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14851 $as_echo_n "(cached) " >&6
14852 else
14853 case $MAGIC_CMD in
14854 [\\/*] | ?:[\\/]*)
14855 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14856 ;;
14857 *)
14858 lt_save_MAGIC_CMD="$MAGIC_CMD"
14859 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14860 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14861 for ac_dir in $ac_dummy; do
14862 IFS="$lt_save_ifs"
14863 test -z "$ac_dir" && ac_dir=.
14864 if test -f $ac_dir/${ac_tool_prefix}file; then
14865 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14866 if test -n "$file_magic_test_file"; then
14867 case $deplibs_check_method in
14868 "file_magic "*)
14869 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14870 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14871 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14872 $EGREP "$file_magic_regex" > /dev/null; then
14873 :
14874 else
14875 cat <<_LT_EOF 1>&2
14876
14877 *** Warning: the command libtool uses to detect shared libraries,
14878 *** $file_magic_cmd, produces output that libtool cannot recognize.
14879 *** The result is that libtool may fail to recognize shared libraries
14880 *** as such. This will affect the creation of libtool libraries that
14881 *** depend on shared libraries, but programs linked with such libtool
14882 *** libraries will work regardless of this problem. Nevertheless, you
14883 *** may want to report the problem to your system manager and/or to
14884 *** bug-libtool@gnu.org
14885
14886 _LT_EOF
14887 fi ;;
14888 esac
14889 fi
14890 break
14891 fi
14892 done
14893 IFS="$lt_save_ifs"
14894 MAGIC_CMD="$lt_save_MAGIC_CMD"
14895 ;;
14896 esac
14897 fi
14898
14899 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14900 if test -n "$MAGIC_CMD"; then
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14902 $as_echo "$MAGIC_CMD" >&6; }
14903 else
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14905 $as_echo "no" >&6; }
14906 fi
14907
14908
14909
14910
14911
14912 if test -z "$lt_cv_path_MAGIC_CMD"; then
14913 if test -n "$ac_tool_prefix"; then
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14915 $as_echo_n "checking for file... " >&6; }
14916 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14917 $as_echo_n "(cached) " >&6
14918 else
14919 case $MAGIC_CMD in
14920 [\\/*] | ?:[\\/]*)
14921 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14922 ;;
14923 *)
14924 lt_save_MAGIC_CMD="$MAGIC_CMD"
14925 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14926 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14927 for ac_dir in $ac_dummy; do
14928 IFS="$lt_save_ifs"
14929 test -z "$ac_dir" && ac_dir=.
14930 if test -f $ac_dir/file; then
14931 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14932 if test -n "$file_magic_test_file"; then
14933 case $deplibs_check_method in
14934 "file_magic "*)
14935 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14936 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14937 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14938 $EGREP "$file_magic_regex" > /dev/null; then
14939 :
14940 else
14941 cat <<_LT_EOF 1>&2
14942
14943 *** Warning: the command libtool uses to detect shared libraries,
14944 *** $file_magic_cmd, produces output that libtool cannot recognize.
14945 *** The result is that libtool may fail to recognize shared libraries
14946 *** as such. This will affect the creation of libtool libraries that
14947 *** depend on shared libraries, but programs linked with such libtool
14948 *** libraries will work regardless of this problem. Nevertheless, you
14949 *** may want to report the problem to your system manager and/or to
14950 *** bug-libtool@gnu.org
14951
14952 _LT_EOF
14953 fi ;;
14954 esac
14955 fi
14956 break
14957 fi
14958 done
14959 IFS="$lt_save_ifs"
14960 MAGIC_CMD="$lt_save_MAGIC_CMD"
14961 ;;
14962 esac
14963 fi
14964
14965 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14966 if test -n "$MAGIC_CMD"; then
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14968 $as_echo "$MAGIC_CMD" >&6; }
14969 else
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14971 $as_echo "no" >&6; }
14972 fi
14973
14974
14975 else
14976 MAGIC_CMD=:
14977 fi
14978 fi
14979
14980 fi
14981 ;;
14982 esac
14983
14984 # Use C for the default configuration in the libtool script
14985
14986 lt_save_CC="$CC"
14987 ac_ext=c
14988 ac_cpp='$CPP $CPPFLAGS'
14989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14992
14993
14994 # Source file extension for C test sources.
14995 ac_ext=c
14996
14997 # Object file extension for compiled C test sources.
14998 objext=o
14999 objext=$objext
15000
15001 # Code to be used in simple compile tests
15002 lt_simple_compile_test_code="int some_variable = 0;"
15003
15004 # Code to be used in simple link tests
15005 lt_simple_link_test_code='int main(){return(0);}'
15006
15007
15008
15009
15010
15011
15012
15013 # If no C compiler was specified, use CC.
15014 LTCC=${LTCC-"$CC"}
15015
15016 # If no C compiler flags were specified, use CFLAGS.
15017 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15018
15019 # Allow CC to be a program name with arguments.
15020 compiler=$CC
15021
15022 # Save the default compiler, since it gets overwritten when the other
15023 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15024 compiler_DEFAULT=$CC
15025
15026 # save warnings/boilerplate of simple test code
15027 ac_outfile=conftest.$ac_objext
15028 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15029 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15030 _lt_compiler_boilerplate=`cat conftest.err`
15031 $RM conftest*
15032
15033 ac_outfile=conftest.$ac_objext
15034 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15035 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15036 _lt_linker_boilerplate=`cat conftest.err`
15037 $RM -r conftest*
15038
15039
15040 ## CAVEAT EMPTOR:
15041 ## There is no encapsulation within the following macros, do not change
15042 ## the running order or otherwise move them around unless you know exactly
15043 ## what you are doing...
15044 if test -n "$compiler"; then
15045
15046 lt_prog_compiler_no_builtin_flag=
15047
15048 if test "$GCC" = yes; then
15049 case $cc_basename in
15050 nvcc*)
15051 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15052 *)
15053 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15054 esac
15055
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15057 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15058 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15059 $as_echo_n "(cached) " >&6
15060 else
15061 lt_cv_prog_compiler_rtti_exceptions=no
15062 ac_outfile=conftest.$ac_objext
15063 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15064 lt_compiler_flag="-fno-rtti -fno-exceptions"
15065 # Insert the option either (1) after the last *FLAGS variable, or
15066 # (2) before a word containing "conftest.", or (3) at the end.
15067 # Note that $ac_compile itself does not contain backslashes and begins
15068 # with a dollar sign (not a hyphen), so the echo should work correctly.
15069 # The option is referenced via a variable to avoid confusing sed.
15070 lt_compile=`echo "$ac_compile" | $SED \
15071 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15072 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15073 -e 's:$: $lt_compiler_flag:'`
15074 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15075 (eval "$lt_compile" 2>conftest.err)
15076 ac_status=$?
15077 cat conftest.err >&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 if (exit $ac_status) && test -s "$ac_outfile"; then
15080 # The compiler can only warn and ignore the option if not recognized
15081 # So say no if there are warnings other than the usual output.
15082 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15083 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15084 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15085 lt_cv_prog_compiler_rtti_exceptions=yes
15086 fi
15087 fi
15088 $RM conftest*
15089
15090 fi
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15092 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15093
15094 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15095 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15096 else
15097 :
15098 fi
15099
15100 fi
15101
15102
15103
15104
15105
15106
15107 lt_prog_compiler_wl=
15108 lt_prog_compiler_pic=
15109 lt_prog_compiler_static=
15110
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15112 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15113
15114 if test "$GCC" = yes; then
15115 lt_prog_compiler_wl='-Wl,'
15116 lt_prog_compiler_static='-static'
15117
15118 case $host_os in
15119 aix*)
15120 # All AIX code is PIC.
15121 if test "$host_cpu" = ia64; then
15122 # AIX 5 now supports IA64 processor
15123 lt_prog_compiler_static='-Bstatic'
15124 fi
15125 ;;
15126
15127 amigaos*)
15128 case $host_cpu in
15129 powerpc)
15130 # see comment about AmigaOS4 .so support
15131 lt_prog_compiler_pic='-fPIC'
15132 ;;
15133 m68k)
15134 # FIXME: we need at least 68020 code to build shared libraries, but
15135 # adding the `-m68020' flag to GCC prevents building anything better,
15136 # like `-m68040'.
15137 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15138 ;;
15139 esac
15140 ;;
15141
15142 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15143 # PIC is the default for these OSes.
15144 ;;
15145
15146 mingw* | cygwin* | pw32* | os2* | cegcc*)
15147 # This hack is so that the source file can tell whether it is being
15148 # built for inclusion in a dll (and should export symbols for example).
15149 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15150 # (--disable-auto-import) libraries
15151 lt_prog_compiler_pic='-DDLL_EXPORT'
15152 ;;
15153
15154 darwin* | rhapsody*)
15155 # PIC is the default on this platform
15156 # Common symbols not allowed in MH_DYLIB files
15157 lt_prog_compiler_pic='-fno-common'
15158 ;;
15159
15160 haiku*)
15161 # PIC is the default for Haiku.
15162 # The "-static" flag exists, but is broken.
15163 lt_prog_compiler_static=
15164 ;;
15165
15166 hpux*)
15167 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15168 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15169 # sets the default TLS model and affects inlining.
15170 case $host_cpu in
15171 hppa*64*)
15172 # +Z the default
15173 ;;
15174 *)
15175 lt_prog_compiler_pic='-fPIC'
15176 ;;
15177 esac
15178 ;;
15179
15180 interix[3-9]*)
15181 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15182 # Instead, we relocate shared libraries at runtime.
15183 ;;
15184
15185 msdosdjgpp*)
15186 # Just because we use GCC doesn't mean we suddenly get shared libraries
15187 # on systems that don't support them.
15188 lt_prog_compiler_can_build_shared=no
15189 enable_shared=no
15190 ;;
15191
15192 *nto* | *qnx*)
15193 # QNX uses GNU C++, but need to define -shared option too, otherwise
15194 # it will coredump.
15195 lt_prog_compiler_pic='-fPIC -shared'
15196 ;;
15197
15198 sysv4*MP*)
15199 if test -d /usr/nec; then
15200 lt_prog_compiler_pic=-Kconform_pic
15201 fi
15202 ;;
15203
15204 *)
15205 lt_prog_compiler_pic='-fPIC'
15206 ;;
15207 esac
15208
15209 case $cc_basename in
15210 nvcc*) # Cuda Compiler Driver 2.2
15211 lt_prog_compiler_wl='-Xlinker '
15212 lt_prog_compiler_pic='-Xcompiler -fPIC'
15213 ;;
15214 esac
15215 else
15216 # PORTME Check for flag to pass linker flags through the system compiler.
15217 case $host_os in
15218 aix*)
15219 lt_prog_compiler_wl='-Wl,'
15220 if test "$host_cpu" = ia64; then
15221 # AIX 5 now supports IA64 processor
15222 lt_prog_compiler_static='-Bstatic'
15223 else
15224 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15225 fi
15226 ;;
15227
15228 mingw* | cygwin* | pw32* | os2* | cegcc*)
15229 # This hack is so that the source file can tell whether it is being
15230 # built for inclusion in a dll (and should export symbols for example).
15231 lt_prog_compiler_pic='-DDLL_EXPORT'
15232 ;;
15233
15234 hpux9* | hpux10* | hpux11*)
15235 lt_prog_compiler_wl='-Wl,'
15236 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15237 # not for PA HP-UX.
15238 case $host_cpu in
15239 hppa*64*|ia64*)
15240 # +Z the default
15241 ;;
15242 *)
15243 lt_prog_compiler_pic='+Z'
15244 ;;
15245 esac
15246 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15247 lt_prog_compiler_static='${wl}-a ${wl}archive'
15248 ;;
15249
15250 irix5* | irix6* | nonstopux*)
15251 lt_prog_compiler_wl='-Wl,'
15252 # PIC (with -KPIC) is the default.
15253 lt_prog_compiler_static='-non_shared'
15254 ;;
15255
15256 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15257 case $cc_basename in
15258 # old Intel for x86_64 which still supported -KPIC.
15259 ecc*)
15260 lt_prog_compiler_wl='-Wl,'
15261 lt_prog_compiler_pic='-KPIC'
15262 lt_prog_compiler_static='-static'
15263 ;;
15264 # icc used to be incompatible with GCC.
15265 # ICC 10 doesn't accept -KPIC any more.
15266 icc* | ifort*)
15267 lt_prog_compiler_wl='-Wl,'
15268 lt_prog_compiler_pic='-fPIC'
15269 lt_prog_compiler_static='-static'
15270 ;;
15271 # Lahey Fortran 8.1.
15272 lf95*)
15273 lt_prog_compiler_wl='-Wl,'
15274 lt_prog_compiler_pic='--shared'
15275 lt_prog_compiler_static='--static'
15276 ;;
15277 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15278 # Portland Group compilers (*not* the Pentium gcc compiler,
15279 # which looks to be a dead project)
15280 lt_prog_compiler_wl='-Wl,'
15281 lt_prog_compiler_pic='-fpic'
15282 lt_prog_compiler_static='-Bstatic'
15283 ;;
15284 ccc*)
15285 lt_prog_compiler_wl='-Wl,'
15286 # All Alpha code is PIC.
15287 lt_prog_compiler_static='-non_shared'
15288 ;;
15289 xl* | bgxl* | bgf* | mpixl*)
15290 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15291 lt_prog_compiler_wl='-Wl,'
15292 lt_prog_compiler_pic='-qpic'
15293 lt_prog_compiler_static='-qstaticlink'
15294 ;;
15295 *)
15296 case `$CC -V 2>&1 | sed 5q` in
15297 *Sun\ F* | *Sun*Fortran*)
15298 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15299 lt_prog_compiler_pic='-KPIC'
15300 lt_prog_compiler_static='-Bstatic'
15301 lt_prog_compiler_wl=''
15302 ;;
15303 *Sun\ C*)
15304 # Sun C 5.9
15305 lt_prog_compiler_pic='-KPIC'
15306 lt_prog_compiler_static='-Bstatic'
15307 lt_prog_compiler_wl='-Wl,'
15308 ;;
15309 esac
15310 ;;
15311 esac
15312 ;;
15313
15314 newsos6)
15315 lt_prog_compiler_pic='-KPIC'
15316 lt_prog_compiler_static='-Bstatic'
15317 ;;
15318
15319 *nto* | *qnx*)
15320 # QNX uses GNU C++, but need to define -shared option too, otherwise
15321 # it will coredump.
15322 lt_prog_compiler_pic='-fPIC -shared'
15323 ;;
15324
15325 osf3* | osf4* | osf5*)
15326 lt_prog_compiler_wl='-Wl,'
15327 # All OSF/1 code is PIC.
15328 lt_prog_compiler_static='-non_shared'
15329 ;;
15330
15331 rdos*)
15332 lt_prog_compiler_static='-non_shared'
15333 ;;
15334
15335 solaris*)
15336 lt_prog_compiler_pic='-KPIC'
15337 lt_prog_compiler_static='-Bstatic'
15338 case $cc_basename in
15339 f77* | f90* | f95*)
15340 lt_prog_compiler_wl='-Qoption ld ';;
15341 *)
15342 lt_prog_compiler_wl='-Wl,';;
15343 esac
15344 ;;
15345
15346 sunos4*)
15347 lt_prog_compiler_wl='-Qoption ld '
15348 lt_prog_compiler_pic='-PIC'
15349 lt_prog_compiler_static='-Bstatic'
15350 ;;
15351
15352 sysv4 | sysv4.2uw2* | sysv4.3*)
15353 lt_prog_compiler_wl='-Wl,'
15354 lt_prog_compiler_pic='-KPIC'
15355 lt_prog_compiler_static='-Bstatic'
15356 ;;
15357
15358 sysv4*MP*)
15359 if test -d /usr/nec ;then
15360 lt_prog_compiler_pic='-Kconform_pic'
15361 lt_prog_compiler_static='-Bstatic'
15362 fi
15363 ;;
15364
15365 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15366 lt_prog_compiler_wl='-Wl,'
15367 lt_prog_compiler_pic='-KPIC'
15368 lt_prog_compiler_static='-Bstatic'
15369 ;;
15370
15371 unicos*)
15372 lt_prog_compiler_wl='-Wl,'
15373 lt_prog_compiler_can_build_shared=no
15374 ;;
15375
15376 uts4*)
15377 lt_prog_compiler_pic='-pic'
15378 lt_prog_compiler_static='-Bstatic'
15379 ;;
15380
15381 *)
15382 lt_prog_compiler_can_build_shared=no
15383 ;;
15384 esac
15385 fi
15386
15387 case $host_os in
15388 # For platforms which do not support PIC, -DPIC is meaningless:
15389 *djgpp*)
15390 lt_prog_compiler_pic=
15391 ;;
15392 *)
15393 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15394 ;;
15395 esac
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15397 $as_echo "$lt_prog_compiler_pic" >&6; }
15398
15399
15400
15401
15402
15403
15404 #
15405 # Check to make sure the PIC flag actually works.
15406 #
15407 if test -n "$lt_prog_compiler_pic"; then
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15409 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15410 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15411 $as_echo_n "(cached) " >&6
15412 else
15413 lt_cv_prog_compiler_pic_works=no
15414 ac_outfile=conftest.$ac_objext
15415 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15416 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15417 # Insert the option either (1) after the last *FLAGS variable, or
15418 # (2) before a word containing "conftest.", or (3) at the end.
15419 # Note that $ac_compile itself does not contain backslashes and begins
15420 # with a dollar sign (not a hyphen), so the echo should work correctly.
15421 # The option is referenced via a variable to avoid confusing sed.
15422 lt_compile=`echo "$ac_compile" | $SED \
15423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15425 -e 's:$: $lt_compiler_flag:'`
15426 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15427 (eval "$lt_compile" 2>conftest.err)
15428 ac_status=$?
15429 cat conftest.err >&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 if (exit $ac_status) && test -s "$ac_outfile"; then
15432 # The compiler can only warn and ignore the option if not recognized
15433 # So say no if there are warnings other than the usual output.
15434 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15436 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15437 lt_cv_prog_compiler_pic_works=yes
15438 fi
15439 fi
15440 $RM conftest*
15441
15442 fi
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15444 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15445
15446 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15447 case $lt_prog_compiler_pic in
15448 "" | " "*) ;;
15449 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15450 esac
15451 else
15452 lt_prog_compiler_pic=
15453 lt_prog_compiler_can_build_shared=no
15454 fi
15455
15456 fi
15457
15458
15459
15460
15461
15462
15463 #
15464 # Check to make sure the static flag actually works.
15465 #
15466 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15468 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15469 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15470 $as_echo_n "(cached) " >&6
15471 else
15472 lt_cv_prog_compiler_static_works=no
15473 save_LDFLAGS="$LDFLAGS"
15474 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15475 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15476 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15477 # The linker can only warn and ignore the option if not recognized
15478 # So say no if there are warnings
15479 if test -s conftest.err; then
15480 # Append any errors to the config.log.
15481 cat conftest.err 1>&5
15482 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15483 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15484 if diff conftest.exp conftest.er2 >/dev/null; then
15485 lt_cv_prog_compiler_static_works=yes
15486 fi
15487 else
15488 lt_cv_prog_compiler_static_works=yes
15489 fi
15490 fi
15491 $RM -r conftest*
15492 LDFLAGS="$save_LDFLAGS"
15493
15494 fi
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15496 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15497
15498 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15499 :
15500 else
15501 lt_prog_compiler_static=
15502 fi
15503
15504
15505
15506
15507
15508
15509
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15511 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15512 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15513 $as_echo_n "(cached) " >&6
15514 else
15515 lt_cv_prog_compiler_c_o=no
15516 $RM -r conftest 2>/dev/null
15517 mkdir conftest
15518 cd conftest
15519 mkdir out
15520 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15521
15522 lt_compiler_flag="-o out/conftest2.$ac_objext"
15523 # Insert the option either (1) after the last *FLAGS variable, or
15524 # (2) before a word containing "conftest.", or (3) at the end.
15525 # Note that $ac_compile itself does not contain backslashes and begins
15526 # with a dollar sign (not a hyphen), so the echo should work correctly.
15527 lt_compile=`echo "$ac_compile" | $SED \
15528 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15529 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15530 -e 's:$: $lt_compiler_flag:'`
15531 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15532 (eval "$lt_compile" 2>out/conftest.err)
15533 ac_status=$?
15534 cat out/conftest.err >&5
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15537 then
15538 # The compiler can only warn and ignore the option if not recognized
15539 # So say no if there are warnings
15540 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15541 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15542 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15543 lt_cv_prog_compiler_c_o=yes
15544 fi
15545 fi
15546 chmod u+w . 2>&5
15547 $RM conftest*
15548 # SGI C++ compiler will create directory out/ii_files/ for
15549 # template instantiation
15550 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15551 $RM out/* && rmdir out
15552 cd ..
15553 $RM -r conftest
15554 $RM conftest*
15555
15556 fi
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15558 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15559
15560
15561
15562
15563
15564
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15566 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15567 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15568 $as_echo_n "(cached) " >&6
15569 else
15570 lt_cv_prog_compiler_c_o=no
15571 $RM -r conftest 2>/dev/null
15572 mkdir conftest
15573 cd conftest
15574 mkdir out
15575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15576
15577 lt_compiler_flag="-o out/conftest2.$ac_objext"
15578 # Insert the option either (1) after the last *FLAGS variable, or
15579 # (2) before a word containing "conftest.", or (3) at the end.
15580 # Note that $ac_compile itself does not contain backslashes and begins
15581 # with a dollar sign (not a hyphen), so the echo should work correctly.
15582 lt_compile=`echo "$ac_compile" | $SED \
15583 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15584 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15585 -e 's:$: $lt_compiler_flag:'`
15586 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15587 (eval "$lt_compile" 2>out/conftest.err)
15588 ac_status=$?
15589 cat out/conftest.err >&5
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15592 then
15593 # The compiler can only warn and ignore the option if not recognized
15594 # So say no if there are warnings
15595 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15596 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15597 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15598 lt_cv_prog_compiler_c_o=yes
15599 fi
15600 fi
15601 chmod u+w . 2>&5
15602 $RM conftest*
15603 # SGI C++ compiler will create directory out/ii_files/ for
15604 # template instantiation
15605 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15606 $RM out/* && rmdir out
15607 cd ..
15608 $RM -r conftest
15609 $RM conftest*
15610
15611 fi
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15613 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15614
15615
15616
15617
15618 hard_links="nottested"
15619 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15620 # do not overwrite the value of need_locks provided by the user
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15622 $as_echo_n "checking if we can lock with hard links... " >&6; }
15623 hard_links=yes
15624 $RM conftest*
15625 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15626 touch conftest.a
15627 ln conftest.a conftest.b 2>&5 || hard_links=no
15628 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15630 $as_echo "$hard_links" >&6; }
15631 if test "$hard_links" = no; then
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15633 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15634 need_locks=warn
15635 fi
15636 else
15637 need_locks=no
15638 fi
15639
15640
15641
15642
15643
15644
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15646 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15647
15648 runpath_var=
15649 allow_undefined_flag=
15650 always_export_symbols=no
15651 archive_cmds=
15652 archive_expsym_cmds=
15653 compiler_needs_object=no
15654 enable_shared_with_static_runtimes=no
15655 export_dynamic_flag_spec=
15656 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15657 hardcode_automatic=no
15658 hardcode_direct=no
15659 hardcode_direct_absolute=no
15660 hardcode_libdir_flag_spec=
15661 hardcode_libdir_flag_spec_ld=
15662 hardcode_libdir_separator=
15663 hardcode_minus_L=no
15664 hardcode_shlibpath_var=unsupported
15665 inherit_rpath=no
15666 link_all_deplibs=unknown
15667 module_cmds=
15668 module_expsym_cmds=
15669 old_archive_from_new_cmds=
15670 old_archive_from_expsyms_cmds=
15671 thread_safe_flag_spec=
15672 whole_archive_flag_spec=
15673 # include_expsyms should be a list of space-separated symbols to be *always*
15674 # included in the symbol list
15675 include_expsyms=
15676 # exclude_expsyms can be an extended regexp of symbols to exclude
15677 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15678 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15679 # as well as any symbol that contains `d'.
15680 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15681 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15682 # platforms (ab)use it in PIC code, but their linkers get confused if
15683 # the symbol is explicitly referenced. Since portable code cannot
15684 # rely on this symbol name, it's probably fine to never include it in
15685 # preloaded symbol tables.
15686 # Exclude shared library initialization/finalization symbols.
15687 extract_expsyms_cmds=
15688
15689 case $host_os in
15690 cygwin* | mingw* | pw32* | cegcc*)
15691 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15692 # When not using gcc, we currently assume that we are using
15693 # Microsoft Visual C++.
15694 if test "$GCC" != yes; then
15695 with_gnu_ld=no
15696 fi
15697 ;;
15698 interix*)
15699 # we just hope/assume this is gcc and not c89 (= MSVC++)
15700 with_gnu_ld=yes
15701 ;;
15702 openbsd*)
15703 with_gnu_ld=no
15704 ;;
15705 esac
15706
15707 ld_shlibs=yes
15708
15709 # On some targets, GNU ld is compatible enough with the native linker
15710 # that we're better off using the native interface for both.
15711 lt_use_gnu_ld_interface=no
15712 if test "$with_gnu_ld" = yes; then
15713 case $host_os in
15714 aix*)
15715 # The AIX port of GNU ld has always aspired to compatibility
15716 # with the native linker. However, as the warning in the GNU ld
15717 # block says, versions before 2.19.5* couldn't really create working
15718 # shared libraries, regardless of the interface used.
15719 case `$LD -v 2>&1` in
15720 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15721 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15722 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15723 *)
15724 lt_use_gnu_ld_interface=yes
15725 ;;
15726 esac
15727 ;;
15728 *)
15729 lt_use_gnu_ld_interface=yes
15730 ;;
15731 esac
15732 fi
15733
15734 if test "$lt_use_gnu_ld_interface" = yes; then
15735 # If archive_cmds runs LD, not CC, wlarc should be empty
15736 wlarc='${wl}'
15737
15738 # Set some defaults for GNU ld with shared library support. These
15739 # are reset later if shared libraries are not supported. Putting them
15740 # here allows them to be overridden if necessary.
15741 runpath_var=LD_RUN_PATH
15742 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15743 export_dynamic_flag_spec='${wl}--export-dynamic'
15744 # ancient GNU ld didn't support --whole-archive et. al.
15745 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15746 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15747 else
15748 whole_archive_flag_spec=
15749 fi
15750 supports_anon_versioning=no
15751 case `$LD -v 2>&1` in
15752 *GNU\ gold*) supports_anon_versioning=yes ;;
15753 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15754 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15755 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15756 *\ 2.11.*) ;; # other 2.11 versions
15757 *) supports_anon_versioning=yes ;;
15758 esac
15759
15760 # See if GNU ld supports shared libraries.
15761 case $host_os in
15762 aix[3-9]*)
15763 # On AIX/PPC, the GNU linker is very broken
15764 if test "$host_cpu" != ia64; then
15765 ld_shlibs=no
15766 cat <<_LT_EOF 1>&2
15767
15768 *** Warning: the GNU linker, at least up to release 2.19, is reported
15769 *** to be unable to reliably create shared libraries on AIX.
15770 *** Therefore, libtool is disabling shared libraries support. If you
15771 *** really care for shared libraries, you may want to install binutils
15772 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15773 *** You will then need to restart the configuration process.
15774
15775 _LT_EOF
15776 fi
15777 ;;
15778
15779 amigaos*)
15780 case $host_cpu in
15781 powerpc)
15782 # see comment about AmigaOS4 .so support
15783 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15784 archive_expsym_cmds=''
15785 ;;
15786 m68k)
15787 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)'
15788 hardcode_libdir_flag_spec='-L$libdir'
15789 hardcode_minus_L=yes
15790 ;;
15791 esac
15792 ;;
15793
15794 beos*)
15795 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15796 allow_undefined_flag=unsupported
15797 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15798 # support --undefined. This deserves some investigation. FIXME
15799 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15800 else
15801 ld_shlibs=no
15802 fi
15803 ;;
15804
15805 cygwin* | mingw* | pw32* | cegcc*)
15806 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15807 # as there is no search path for DLLs.
15808 hardcode_libdir_flag_spec='-L$libdir'
15809 export_dynamic_flag_spec='${wl}--export-all-symbols'
15810 allow_undefined_flag=unsupported
15811 always_export_symbols=no
15812 enable_shared_with_static_runtimes=yes
15813 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15814
15815 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15816 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15817 # If the export-symbols file already is a .def file (1st line
15818 # is EXPORTS), use it as is; otherwise, prepend...
15819 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15820 cp $export_symbols $output_objdir/$soname.def;
15821 else
15822 echo EXPORTS > $output_objdir/$soname.def;
15823 cat $export_symbols >> $output_objdir/$soname.def;
15824 fi~
15825 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15826 else
15827 ld_shlibs=no
15828 fi
15829 ;;
15830
15831 haiku*)
15832 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15833 link_all_deplibs=yes
15834 ;;
15835
15836 interix[3-9]*)
15837 hardcode_direct=no
15838 hardcode_shlibpath_var=no
15839 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15840 export_dynamic_flag_spec='${wl}-E'
15841 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15842 # Instead, shared libraries are loaded at an image base (0x10000000 by
15843 # default) and relocated if they conflict, which is a slow very memory
15844 # consuming and fragmenting process. To avoid this, we pick a random,
15845 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15846 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15847 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15848 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'
15849 ;;
15850
15851 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15852 tmp_diet=no
15853 if test "$host_os" = linux-dietlibc; then
15854 case $cc_basename in
15855 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15856 esac
15857 fi
15858 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15859 && test "$tmp_diet" = no
15860 then
15861 tmp_addflag=
15862 tmp_sharedflag='-shared'
15863 case $cc_basename,$host_cpu in
15864 pgcc*) # Portland Group C compiler
15865 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'
15866 tmp_addflag=' $pic_flag'
15867 ;;
15868 pgf77* | pgf90* | pgf95* | pgfortran*)
15869 # Portland Group f77 and f90 compilers
15870 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'
15871 tmp_addflag=' $pic_flag -Mnomain' ;;
15872 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15873 tmp_addflag=' -i_dynamic' ;;
15874 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15875 tmp_addflag=' -i_dynamic -nofor_main' ;;
15876 ifc* | ifort*) # Intel Fortran compiler
15877 tmp_addflag=' -nofor_main' ;;
15878 lf95*) # Lahey Fortran 8.1
15879 whole_archive_flag_spec=
15880 tmp_sharedflag='--shared' ;;
15881 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15882 tmp_sharedflag='-qmkshrobj'
15883 tmp_addflag= ;;
15884 nvcc*) # Cuda Compiler Driver 2.2
15885 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'
15886 compiler_needs_object=yes
15887 ;;
15888 esac
15889 case `$CC -V 2>&1 | sed 5q` in
15890 *Sun\ C*) # Sun C 5.9
15891 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'
15892 compiler_needs_object=yes
15893 tmp_sharedflag='-G' ;;
15894 *Sun\ F*) # Sun Fortran 8.3
15895 tmp_sharedflag='-G' ;;
15896 esac
15897 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15898
15899 if test "x$supports_anon_versioning" = xyes; then
15900 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15901 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15902 echo "local: *; };" >> $output_objdir/$libname.ver~
15903 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15904 fi
15905
15906 case $cc_basename in
15907 xlf* | bgf* | bgxlf* | mpixlf*)
15908 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15909 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15910 hardcode_libdir_flag_spec=
15911 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15912 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15913 if test "x$supports_anon_versioning" = xyes; then
15914 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15915 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15916 echo "local: *; };" >> $output_objdir/$libname.ver~
15917 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15918 fi
15919 ;;
15920 esac
15921 else
15922 ld_shlibs=no
15923 fi
15924 ;;
15925
15926 netbsd*)
15927 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15928 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15929 wlarc=
15930 else
15931 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15932 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15933 fi
15934 ;;
15935
15936 solaris*)
15937 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15938 ld_shlibs=no
15939 cat <<_LT_EOF 1>&2
15940
15941 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15942 *** create shared libraries on Solaris systems. Therefore, libtool
15943 *** is disabling shared libraries support. We urge you to upgrade GNU
15944 *** binutils to release 2.9.1 or newer. Another option is to modify
15945 *** your PATH or compiler configuration so that the native linker is
15946 *** used, and then restart.
15947
15948 _LT_EOF
15949 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15950 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15951 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15952 else
15953 ld_shlibs=no
15954 fi
15955 ;;
15956
15957 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15958 case `$LD -v 2>&1` in
15959 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15960 ld_shlibs=no
15961 cat <<_LT_EOF 1>&2
15962
15963 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15964 *** reliably create shared libraries on SCO systems. Therefore, libtool
15965 *** is disabling shared libraries support. We urge you to upgrade GNU
15966 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15967 *** your PATH or compiler configuration so that the native linker is
15968 *** used, and then restart.
15969
15970 _LT_EOF
15971 ;;
15972 *)
15973 # For security reasons, it is highly recommended that you always
15974 # use absolute paths for naming shared libraries, and exclude the
15975 # DT_RUNPATH tag from executables and libraries. But doing so
15976 # requires that you compile everything twice, which is a pain.
15977 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15978 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15979 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15980 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15981 else
15982 ld_shlibs=no
15983 fi
15984 ;;
15985 esac
15986 ;;
15987
15988 sunos4*)
15989 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15990 wlarc=
15991 hardcode_direct=yes
15992 hardcode_shlibpath_var=no
15993 ;;
15994
15995 *)
15996 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15997 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15998 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15999 else
16000 ld_shlibs=no
16001 fi
16002 ;;
16003 esac
16004
16005 if test "$ld_shlibs" = no; then
16006 runpath_var=
16007 hardcode_libdir_flag_spec=
16008 export_dynamic_flag_spec=
16009 whole_archive_flag_spec=
16010 fi
16011 else
16012 # PORTME fill in a description of your system's linker (not GNU ld)
16013 case $host_os in
16014 aix3*)
16015 allow_undefined_flag=unsupported
16016 always_export_symbols=yes
16017 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'
16018 # Note: this linker hardcodes the directories in LIBPATH if there
16019 # are no directories specified by -L.
16020 hardcode_minus_L=yes
16021 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16022 # Neither direct hardcoding nor static linking is supported with a
16023 # broken collect2.
16024 hardcode_direct=unsupported
16025 fi
16026 ;;
16027
16028 aix[4-9]*)
16029 if test "$host_cpu" = ia64; then
16030 # On IA64, the linker does run time linking by default, so we don't
16031 # have to do anything special.
16032 aix_use_runtimelinking=no
16033 exp_sym_flag='-Bexport'
16034 no_entry_flag=""
16035 else
16036 # If we're using GNU nm, then we don't want the "-C" option.
16037 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16038 # Also, AIX nm treats weak defined symbols like other global
16039 # defined symbols, whereas GNU nm marks them as "W".
16040 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16041 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'
16042 else
16043 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'
16044 fi
16045 aix_use_runtimelinking=no
16046
16047 # Test if we are trying to use run time linking or normal
16048 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16049 # need to do runtime linking.
16050 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16051 for ld_flag in $LDFLAGS; do
16052 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16053 aix_use_runtimelinking=yes
16054 break
16055 fi
16056 done
16057 ;;
16058 esac
16059
16060 exp_sym_flag='-bexport'
16061 no_entry_flag='-bnoentry'
16062 fi
16063
16064 # When large executables or shared objects are built, AIX ld can
16065 # have problems creating the table of contents. If linking a library
16066 # or program results in "error TOC overflow" add -mminimal-toc to
16067 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16068 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16069
16070 archive_cmds=''
16071 hardcode_direct=yes
16072 hardcode_direct_absolute=yes
16073 hardcode_libdir_separator=':'
16074 link_all_deplibs=yes
16075 file_list_spec='${wl}-f,'
16076
16077 if test "$GCC" = yes; then
16078 case $host_os in aix4.[012]|aix4.[012].*)
16079 # We only want to do this on AIX 4.2 and lower, the check
16080 # below for broken collect2 doesn't work under 4.3+
16081 collect2name=`${CC} -print-prog-name=collect2`
16082 if test -f "$collect2name" &&
16083 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16084 then
16085 # We have reworked collect2
16086 :
16087 else
16088 # We have old collect2
16089 hardcode_direct=unsupported
16090 # It fails to find uninstalled libraries when the uninstalled
16091 # path is not listed in the libpath. Setting hardcode_minus_L
16092 # to unsupported forces relinking
16093 hardcode_minus_L=yes
16094 hardcode_libdir_flag_spec='-L$libdir'
16095 hardcode_libdir_separator=
16096 fi
16097 ;;
16098 esac
16099 shared_flag='-shared'
16100 if test "$aix_use_runtimelinking" = yes; then
16101 shared_flag="$shared_flag "'${wl}-G'
16102 fi
16103 else
16104 # not using gcc
16105 if test "$host_cpu" = ia64; then
16106 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16107 # chokes on -Wl,-G. The following line is correct:
16108 shared_flag='-G'
16109 else
16110 if test "$aix_use_runtimelinking" = yes; then
16111 shared_flag='${wl}-G'
16112 else
16113 shared_flag='${wl}-bM:SRE'
16114 fi
16115 fi
16116 fi
16117
16118 export_dynamic_flag_spec='${wl}-bexpall'
16119 # It seems that -bexpall does not export symbols beginning with
16120 # underscore (_), so it is better to generate a list of symbols to export.
16121 always_export_symbols=yes
16122 if test "$aix_use_runtimelinking" = yes; then
16123 # Warning - without using the other runtime loading flags (-brtl),
16124 # -berok will link without error, but may produce a broken library.
16125 allow_undefined_flag='-berok'
16126 # Determine the default libpath from the value encoded in an
16127 # empty executable.
16128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16129 /* end confdefs.h. */
16130
16131 int
16132 main ()
16133 {
16134
16135 ;
16136 return 0;
16137 }
16138 _ACEOF
16139 if ac_fn_c_try_link "$LINENO"; then :
16140
16141 lt_aix_libpath_sed='
16142 /Import File Strings/,/^$/ {
16143 /^0/ {
16144 s/^0 *\(.*\)$/\1/
16145 p
16146 }
16147 }'
16148 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16149 # Check for a 64-bit object if we didn't find anything.
16150 if test -z "$aix_libpath"; then
16151 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16152 fi
16153 fi
16154 rm -f core conftest.err conftest.$ac_objext \
16155 conftest$ac_exeext conftest.$ac_ext
16156 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16157
16158 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16159 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"
16160 else
16161 if test "$host_cpu" = ia64; then
16162 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16163 allow_undefined_flag="-z nodefs"
16164 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"
16165 else
16166 # Determine the default libpath from the value encoded in an
16167 # empty executable.
16168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16169 /* end confdefs.h. */
16170
16171 int
16172 main ()
16173 {
16174
16175 ;
16176 return 0;
16177 }
16178 _ACEOF
16179 if ac_fn_c_try_link "$LINENO"; then :
16180
16181 lt_aix_libpath_sed='
16182 /Import File Strings/,/^$/ {
16183 /^0/ {
16184 s/^0 *\(.*\)$/\1/
16185 p
16186 }
16187 }'
16188 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16189 # Check for a 64-bit object if we didn't find anything.
16190 if test -z "$aix_libpath"; then
16191 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16192 fi
16193 fi
16194 rm -f core conftest.err conftest.$ac_objext \
16195 conftest$ac_exeext conftest.$ac_ext
16196 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16197
16198 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16199 # Warning - without using the other run time loading flags,
16200 # -berok will link without error, but may produce a broken library.
16201 no_undefined_flag=' ${wl}-bernotok'
16202 allow_undefined_flag=' ${wl}-berok'
16203 if test "$with_gnu_ld" = yes; then
16204 # We only use this code for GNU lds that support --whole-archive.
16205 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16206 else
16207 # Exported symbols can be pulled into shared objects from archives
16208 whole_archive_flag_spec='$convenience'
16209 fi
16210 archive_cmds_need_lc=yes
16211 # This is similar to how AIX traditionally builds its shared libraries.
16212 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'
16213 fi
16214 fi
16215 ;;
16216
16217 amigaos*)
16218 case $host_cpu in
16219 powerpc)
16220 # see comment about AmigaOS4 .so support
16221 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16222 archive_expsym_cmds=''
16223 ;;
16224 m68k)
16225 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)'
16226 hardcode_libdir_flag_spec='-L$libdir'
16227 hardcode_minus_L=yes
16228 ;;
16229 esac
16230 ;;
16231
16232 bsdi[45]*)
16233 export_dynamic_flag_spec=-rdynamic
16234 ;;
16235
16236 cygwin* | mingw* | pw32* | cegcc*)
16237 # When not using gcc, we currently assume that we are using
16238 # Microsoft Visual C++.
16239 # hardcode_libdir_flag_spec is actually meaningless, as there is
16240 # no search path for DLLs.
16241 hardcode_libdir_flag_spec=' '
16242 allow_undefined_flag=unsupported
16243 # Tell ltmain to make .lib files, not .a files.
16244 libext=lib
16245 # Tell ltmain to make .dll files, not .so files.
16246 shrext_cmds=".dll"
16247 # FIXME: Setting linknames here is a bad hack.
16248 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16249 # The linker will automatically build a .lib file if we build a DLL.
16250 old_archive_from_new_cmds='true'
16251 # FIXME: Should let the user specify the lib program.
16252 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16253 fix_srcfile_path='`cygpath -w "$srcfile"`'
16254 enable_shared_with_static_runtimes=yes
16255 ;;
16256
16257 darwin* | rhapsody*)
16258
16259
16260 archive_cmds_need_lc=no
16261 hardcode_direct=no
16262 hardcode_automatic=yes
16263 hardcode_shlibpath_var=unsupported
16264 if test "$lt_cv_ld_force_load" = "yes"; then
16265 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\"`'
16266 else
16267 whole_archive_flag_spec=''
16268 fi
16269 link_all_deplibs=yes
16270 allow_undefined_flag="$_lt_dar_allow_undefined"
16271 case $cc_basename in
16272 ifort*) _lt_dar_can_shared=yes ;;
16273 *) _lt_dar_can_shared=$GCC ;;
16274 esac
16275 if test "$_lt_dar_can_shared" = "yes"; then
16276 output_verbose_link_cmd=func_echo_all
16277 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16278 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16279 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}"
16280 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}"
16281
16282 else
16283 ld_shlibs=no
16284 fi
16285
16286 ;;
16287
16288 dgux*)
16289 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16290 hardcode_libdir_flag_spec='-L$libdir'
16291 hardcode_shlibpath_var=no
16292 ;;
16293
16294 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16295 # support. Future versions do this automatically, but an explicit c++rt0.o
16296 # does not break anything, and helps significantly (at the cost of a little
16297 # extra space).
16298 freebsd2.2*)
16299 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16300 hardcode_libdir_flag_spec='-R$libdir'
16301 hardcode_direct=yes
16302 hardcode_shlibpath_var=no
16303 ;;
16304
16305 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16306 freebsd2*)
16307 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16308 hardcode_direct=yes
16309 hardcode_minus_L=yes
16310 hardcode_shlibpath_var=no
16311 ;;
16312
16313 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16314 freebsd* | dragonfly*)
16315 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16316 hardcode_libdir_flag_spec='-R$libdir'
16317 hardcode_direct=yes
16318 hardcode_shlibpath_var=no
16319 ;;
16320
16321 hpux9*)
16322 if test "$GCC" = yes; then
16323 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'
16324 else
16325 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'
16326 fi
16327 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16328 hardcode_libdir_separator=:
16329 hardcode_direct=yes
16330
16331 # hardcode_minus_L: Not really in the search PATH,
16332 # but as the default location of the library.
16333 hardcode_minus_L=yes
16334 export_dynamic_flag_spec='${wl}-E'
16335 ;;
16336
16337 hpux10*)
16338 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16339 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16340 else
16341 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16342 fi
16343 if test "$with_gnu_ld" = no; then
16344 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16345 hardcode_libdir_flag_spec_ld='+b $libdir'
16346 hardcode_libdir_separator=:
16347 hardcode_direct=yes
16348 hardcode_direct_absolute=yes
16349 export_dynamic_flag_spec='${wl}-E'
16350 # hardcode_minus_L: Not really in the search PATH,
16351 # but as the default location of the library.
16352 hardcode_minus_L=yes
16353 fi
16354 ;;
16355
16356 hpux11*)
16357 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16358 case $host_cpu in
16359 hppa*64*)
16360 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16361 ;;
16362 ia64*)
16363 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16364 ;;
16365 *)
16366 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16367 ;;
16368 esac
16369 else
16370 case $host_cpu in
16371 hppa*64*)
16372 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16373 ;;
16374 ia64*)
16375 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16376 ;;
16377 *)
16378
16379 # Older versions of the 11.00 compiler do not understand -b yet
16380 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16382 $as_echo_n "checking if $CC understands -b... " >&6; }
16383 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16384 $as_echo_n "(cached) " >&6
16385 else
16386 lt_cv_prog_compiler__b=no
16387 save_LDFLAGS="$LDFLAGS"
16388 LDFLAGS="$LDFLAGS -b"
16389 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16390 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16391 # The linker can only warn and ignore the option if not recognized
16392 # So say no if there are warnings
16393 if test -s conftest.err; then
16394 # Append any errors to the config.log.
16395 cat conftest.err 1>&5
16396 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16397 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16398 if diff conftest.exp conftest.er2 >/dev/null; then
16399 lt_cv_prog_compiler__b=yes
16400 fi
16401 else
16402 lt_cv_prog_compiler__b=yes
16403 fi
16404 fi
16405 $RM -r conftest*
16406 LDFLAGS="$save_LDFLAGS"
16407
16408 fi
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16410 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16411
16412 if test x"$lt_cv_prog_compiler__b" = xyes; then
16413 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16414 else
16415 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16416 fi
16417
16418 ;;
16419 esac
16420 fi
16421 if test "$with_gnu_ld" = no; then
16422 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16423 hardcode_libdir_separator=:
16424
16425 case $host_cpu in
16426 hppa*64*|ia64*)
16427 hardcode_direct=no
16428 hardcode_shlibpath_var=no
16429 ;;
16430 *)
16431 hardcode_direct=yes
16432 hardcode_direct_absolute=yes
16433 export_dynamic_flag_spec='${wl}-E'
16434
16435 # hardcode_minus_L: Not really in the search PATH,
16436 # but as the default location of the library.
16437 hardcode_minus_L=yes
16438 ;;
16439 esac
16440 fi
16441 ;;
16442
16443 irix5* | irix6* | nonstopux*)
16444 if test "$GCC" = yes; then
16445 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'
16446 # Try to use the -exported_symbol ld option, if it does not
16447 # work, assume that -exports_file does not work either and
16448 # implicitly export all symbols.
16449 save_LDFLAGS="$LDFLAGS"
16450 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16452 /* end confdefs.h. */
16453 int foo(void) {}
16454 _ACEOF
16455 if ac_fn_c_try_link "$LINENO"; then :
16456 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'
16457
16458 fi
16459 rm -f core conftest.err conftest.$ac_objext \
16460 conftest$ac_exeext conftest.$ac_ext
16461 LDFLAGS="$save_LDFLAGS"
16462 else
16463 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'
16464 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'
16465 fi
16466 archive_cmds_need_lc='no'
16467 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16468 hardcode_libdir_separator=:
16469 inherit_rpath=yes
16470 link_all_deplibs=yes
16471 ;;
16472
16473 netbsd*)
16474 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16475 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16476 else
16477 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16478 fi
16479 hardcode_libdir_flag_spec='-R$libdir'
16480 hardcode_direct=yes
16481 hardcode_shlibpath_var=no
16482 ;;
16483
16484 newsos6)
16485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16486 hardcode_direct=yes
16487 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16488 hardcode_libdir_separator=:
16489 hardcode_shlibpath_var=no
16490 ;;
16491
16492 *nto* | *qnx*)
16493 ;;
16494
16495 openbsd*)
16496 if test -f /usr/libexec/ld.so; then
16497 hardcode_direct=yes
16498 hardcode_shlibpath_var=no
16499 hardcode_direct_absolute=yes
16500 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16501 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16502 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16503 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16504 export_dynamic_flag_spec='${wl}-E'
16505 else
16506 case $host_os in
16507 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16508 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16509 hardcode_libdir_flag_spec='-R$libdir'
16510 ;;
16511 *)
16512 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16513 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16514 ;;
16515 esac
16516 fi
16517 else
16518 ld_shlibs=no
16519 fi
16520 ;;
16521
16522 os2*)
16523 hardcode_libdir_flag_spec='-L$libdir'
16524 hardcode_minus_L=yes
16525 allow_undefined_flag=unsupported
16526 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'
16527 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16528 ;;
16529
16530 osf3*)
16531 if test "$GCC" = yes; then
16532 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16533 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'
16534 else
16535 allow_undefined_flag=' -expect_unresolved \*'
16536 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'
16537 fi
16538 archive_cmds_need_lc='no'
16539 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16540 hardcode_libdir_separator=:
16541 ;;
16542
16543 osf4* | osf5*) # as osf3* with the addition of -msym flag
16544 if test "$GCC" = yes; then
16545 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16546 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'
16547 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16548 else
16549 allow_undefined_flag=' -expect_unresolved \*'
16550 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'
16551 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~
16552 $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'
16553
16554 # Both c and cxx compiler support -rpath directly
16555 hardcode_libdir_flag_spec='-rpath $libdir'
16556 fi
16557 archive_cmds_need_lc='no'
16558 hardcode_libdir_separator=:
16559 ;;
16560
16561 solaris*)
16562 no_undefined_flag=' -z defs'
16563 if test "$GCC" = yes; then
16564 wlarc='${wl}'
16565 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16566 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16567 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16568 else
16569 case `$CC -V 2>&1` in
16570 *"Compilers 5.0"*)
16571 wlarc=''
16572 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16573 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16574 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16575 ;;
16576 *)
16577 wlarc='${wl}'
16578 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16579 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16580 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16581 ;;
16582 esac
16583 fi
16584 hardcode_libdir_flag_spec='-R$libdir'
16585 hardcode_shlibpath_var=no
16586 case $host_os in
16587 solaris2.[0-5] | solaris2.[0-5].*) ;;
16588 *)
16589 # The compiler driver will combine and reorder linker options,
16590 # but understands `-z linker_flag'. GCC discards it without `$wl',
16591 # but is careful enough not to reorder.
16592 # Supported since Solaris 2.6 (maybe 2.5.1?)
16593 if test "$GCC" = yes; then
16594 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16595 else
16596 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16597 fi
16598 ;;
16599 esac
16600 link_all_deplibs=yes
16601 ;;
16602
16603 sunos4*)
16604 if test "x$host_vendor" = xsequent; then
16605 # Use $CC to link under sequent, because it throws in some extra .o
16606 # files that make .init and .fini sections work.
16607 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16608 else
16609 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16610 fi
16611 hardcode_libdir_flag_spec='-L$libdir'
16612 hardcode_direct=yes
16613 hardcode_minus_L=yes
16614 hardcode_shlibpath_var=no
16615 ;;
16616
16617 sysv4)
16618 case $host_vendor in
16619 sni)
16620 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16621 hardcode_direct=yes # is this really true???
16622 ;;
16623 siemens)
16624 ## LD is ld it makes a PLAMLIB
16625 ## CC just makes a GrossModule.
16626 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16627 reload_cmds='$CC -r -o $output$reload_objs'
16628 hardcode_direct=no
16629 ;;
16630 motorola)
16631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16632 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16633 ;;
16634 esac
16635 runpath_var='LD_RUN_PATH'
16636 hardcode_shlibpath_var=no
16637 ;;
16638
16639 sysv4.3*)
16640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16641 hardcode_shlibpath_var=no
16642 export_dynamic_flag_spec='-Bexport'
16643 ;;
16644
16645 sysv4*MP*)
16646 if test -d /usr/nec; then
16647 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16648 hardcode_shlibpath_var=no
16649 runpath_var=LD_RUN_PATH
16650 hardcode_runpath_var=yes
16651 ld_shlibs=yes
16652 fi
16653 ;;
16654
16655 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16656 no_undefined_flag='${wl}-z,text'
16657 archive_cmds_need_lc=no
16658 hardcode_shlibpath_var=no
16659 runpath_var='LD_RUN_PATH'
16660
16661 if test "$GCC" = yes; then
16662 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16663 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16664 else
16665 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16666 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16667 fi
16668 ;;
16669
16670 sysv5* | sco3.2v5* | sco5v6*)
16671 # Note: We can NOT use -z defs as we might desire, because we do not
16672 # link with -lc, and that would cause any symbols used from libc to
16673 # always be unresolved, which means just about no library would
16674 # ever link correctly. If we're not using GNU ld we use -z text
16675 # though, which does catch some bad symbols but isn't as heavy-handed
16676 # as -z defs.
16677 no_undefined_flag='${wl}-z,text'
16678 allow_undefined_flag='${wl}-z,nodefs'
16679 archive_cmds_need_lc=no
16680 hardcode_shlibpath_var=no
16681 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16682 hardcode_libdir_separator=':'
16683 link_all_deplibs=yes
16684 export_dynamic_flag_spec='${wl}-Bexport'
16685 runpath_var='LD_RUN_PATH'
16686
16687 if test "$GCC" = yes; then
16688 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16689 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16690 else
16691 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16692 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16693 fi
16694 ;;
16695
16696 uts4*)
16697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16698 hardcode_libdir_flag_spec='-L$libdir'
16699 hardcode_shlibpath_var=no
16700 ;;
16701
16702 *)
16703 ld_shlibs=no
16704 ;;
16705 esac
16706
16707 if test x$host_vendor = xsni; then
16708 case $host in
16709 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16710 export_dynamic_flag_spec='${wl}-Blargedynsym'
16711 ;;
16712 esac
16713 fi
16714 fi
16715
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16717 $as_echo "$ld_shlibs" >&6; }
16718 test "$ld_shlibs" = no && can_build_shared=no
16719
16720 with_gnu_ld=$with_gnu_ld
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736 #
16737 # Do we need to explicitly link libc?
16738 #
16739 case "x$archive_cmds_need_lc" in
16740 x|xyes)
16741 # Assume -lc should be added
16742 archive_cmds_need_lc=yes
16743
16744 if test "$enable_shared" = yes && test "$GCC" = yes; then
16745 case $archive_cmds in
16746 *'~'*)
16747 # FIXME: we may have to deal with multi-command sequences.
16748 ;;
16749 '$CC '*)
16750 # Test whether the compiler implicitly links with -lc since on some
16751 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16752 # to ld, don't add -lc before -lgcc.
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16754 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16755 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16756 $as_echo_n "(cached) " >&6
16757 else
16758 $RM conftest*
16759 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16760
16761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16762 (eval $ac_compile) 2>&5
16763 ac_status=$?
16764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16765 test $ac_status = 0; } 2>conftest.err; then
16766 soname=conftest
16767 lib=conftest
16768 libobjs=conftest.$ac_objext
16769 deplibs=
16770 wl=$lt_prog_compiler_wl
16771 pic_flag=$lt_prog_compiler_pic
16772 compiler_flags=-v
16773 linker_flags=-v
16774 verstring=
16775 output_objdir=.
16776 libname=conftest
16777 lt_save_allow_undefined_flag=$allow_undefined_flag
16778 allow_undefined_flag=
16779 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16780 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16781 ac_status=$?
16782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16783 test $ac_status = 0; }
16784 then
16785 lt_cv_archive_cmds_need_lc=no
16786 else
16787 lt_cv_archive_cmds_need_lc=yes
16788 fi
16789 allow_undefined_flag=$lt_save_allow_undefined_flag
16790 else
16791 cat conftest.err 1>&5
16792 fi
16793 $RM conftest*
16794
16795 fi
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16797 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16798 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16799 ;;
16800 esac
16801 fi
16802 ;;
16803 esac
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16962 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16963
16964 if test "$GCC" = yes; then
16965 case $host_os in
16966 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16967 *) lt_awk_arg="/^libraries:/" ;;
16968 esac
16969 case $host_os in
16970 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16971 *) lt_sed_strip_eq="s,=/,/,g" ;;
16972 esac
16973 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16974 case $lt_search_path_spec in
16975 *\;*)
16976 # if the path contains ";" then we assume it to be the separator
16977 # otherwise default to the standard path separator (i.e. ":") - it is
16978 # assumed that no part of a normal pathname contains ";" but that should
16979 # okay in the real world where ";" in dirpaths is itself problematic.
16980 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16981 ;;
16982 *)
16983 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16984 ;;
16985 esac
16986 # Ok, now we have the path, separated by spaces, we can step through it
16987 # and add multilib dir if necessary.
16988 lt_tmp_lt_search_path_spec=
16989 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16990 for lt_sys_path in $lt_search_path_spec; do
16991 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16992 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16993 else
16994 test -d "$lt_sys_path" && \
16995 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16996 fi
16997 done
16998 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16999 BEGIN {RS=" "; FS="/|\n";} {
17000 lt_foo="";
17001 lt_count=0;
17002 for (lt_i = NF; lt_i > 0; lt_i--) {
17003 if ($lt_i != "" && $lt_i != ".") {
17004 if ($lt_i == "..") {
17005 lt_count++;
17006 } else {
17007 if (lt_count == 0) {
17008 lt_foo="/" $lt_i lt_foo;
17009 } else {
17010 lt_count--;
17011 }
17012 }
17013 }
17014 }
17015 if (lt_foo != "") { lt_freq[lt_foo]++; }
17016 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17017 }'`
17018 # AWK program above erroneously prepends '/' to C:/dos/paths
17019 # for these hosts.
17020 case $host_os in
17021 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17022 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17023 esac
17024 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17025 else
17026 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17027 fi
17028 library_names_spec=
17029 libname_spec='lib$name'
17030 soname_spec=
17031 shrext_cmds=".so"
17032 postinstall_cmds=
17033 postuninstall_cmds=
17034 finish_cmds=
17035 finish_eval=
17036 shlibpath_var=
17037 shlibpath_overrides_runpath=unknown
17038 version_type=none
17039 dynamic_linker="$host_os ld.so"
17040 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17041 need_lib_prefix=unknown
17042 hardcode_into_libs=no
17043
17044 # when you set need_version to no, make sure it does not cause -set_version
17045 # flags to be left without arguments
17046 need_version=unknown
17047
17048 case $host_os in
17049 aix3*)
17050 version_type=linux
17051 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17052 shlibpath_var=LIBPATH
17053
17054 # AIX 3 has no versioning support, so we append a major version to the name.
17055 soname_spec='${libname}${release}${shared_ext}$major'
17056 ;;
17057
17058 aix[4-9]*)
17059 version_type=linux
17060 need_lib_prefix=no
17061 need_version=no
17062 hardcode_into_libs=yes
17063 if test "$host_cpu" = ia64; then
17064 # AIX 5 supports IA64
17065 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17066 shlibpath_var=LD_LIBRARY_PATH
17067 else
17068 # With GCC up to 2.95.x, collect2 would create an import file
17069 # for dependence libraries. The import file would start with
17070 # the line `#! .'. This would cause the generated library to
17071 # depend on `.', always an invalid library. This was fixed in
17072 # development snapshots of GCC prior to 3.0.
17073 case $host_os in
17074 aix4 | aix4.[01] | aix4.[01].*)
17075 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17076 echo ' yes '
17077 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17078 :
17079 else
17080 can_build_shared=no
17081 fi
17082 ;;
17083 esac
17084 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17085 # soname into executable. Probably we can add versioning support to
17086 # collect2, so additional links can be useful in future.
17087 if test "$aix_use_runtimelinking" = yes; then
17088 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17089 # instead of lib<name>.a to let people know that these are not
17090 # typical AIX shared libraries.
17091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17092 else
17093 # We preserve .a as extension for shared libraries through AIX4.2
17094 # and later when we are not doing run time linking.
17095 library_names_spec='${libname}${release}.a $libname.a'
17096 soname_spec='${libname}${release}${shared_ext}$major'
17097 fi
17098 shlibpath_var=LIBPATH
17099 fi
17100 ;;
17101
17102 amigaos*)
17103 case $host_cpu in
17104 powerpc)
17105 # Since July 2007 AmigaOS4 officially supports .so libraries.
17106 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17108 ;;
17109 m68k)
17110 library_names_spec='$libname.ixlibrary $libname.a'
17111 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17112 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'
17113 ;;
17114 esac
17115 ;;
17116
17117 beos*)
17118 library_names_spec='${libname}${shared_ext}'
17119 dynamic_linker="$host_os ld.so"
17120 shlibpath_var=LIBRARY_PATH
17121 ;;
17122
17123 bsdi[45]*)
17124 version_type=linux
17125 need_version=no
17126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17127 soname_spec='${libname}${release}${shared_ext}$major'
17128 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17129 shlibpath_var=LD_LIBRARY_PATH
17130 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17131 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17132 # the default ld.so.conf also contains /usr/contrib/lib and
17133 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17134 # libtool to hard-code these into programs
17135 ;;
17136
17137 cygwin* | mingw* | pw32* | cegcc*)
17138 version_type=windows
17139 shrext_cmds=".dll"
17140 need_version=no
17141 need_lib_prefix=no
17142
17143 case $GCC,$host_os in
17144 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17145 library_names_spec='$libname.dll.a'
17146 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17147 postinstall_cmds='base_file=`basename \${file}`~
17148 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17149 dldir=$destdir/`dirname \$dlpath`~
17150 test -d \$dldir || mkdir -p \$dldir~
17151 $install_prog $dir/$dlname \$dldir/$dlname~
17152 chmod a+x \$dldir/$dlname~
17153 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17154 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17155 fi'
17156 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17157 dlpath=$dir/\$dldll~
17158 $RM \$dlpath'
17159 shlibpath_overrides_runpath=yes
17160
17161 case $host_os in
17162 cygwin*)
17163 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17164 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17165
17166 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17167 ;;
17168 mingw* | cegcc*)
17169 # MinGW DLLs use traditional 'lib' prefix
17170 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17171 ;;
17172 pw32*)
17173 # pw32 DLLs use 'pw' prefix rather than 'lib'
17174 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17175 ;;
17176 esac
17177 ;;
17178
17179 *)
17180 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17181 ;;
17182 esac
17183 dynamic_linker='Win32 ld.exe'
17184 # FIXME: first we should search . and the directory the executable is in
17185 shlibpath_var=PATH
17186 ;;
17187
17188 darwin* | rhapsody*)
17189 dynamic_linker="$host_os dyld"
17190 version_type=darwin
17191 need_lib_prefix=no
17192 need_version=no
17193 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17194 soname_spec='${libname}${release}${major}$shared_ext'
17195 shlibpath_overrides_runpath=yes
17196 shlibpath_var=DYLD_LIBRARY_PATH
17197 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17198
17199 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17200 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17201 ;;
17202
17203 dgux*)
17204 version_type=linux
17205 need_lib_prefix=no
17206 need_version=no
17207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17208 soname_spec='${libname}${release}${shared_ext}$major'
17209 shlibpath_var=LD_LIBRARY_PATH
17210 ;;
17211
17212 freebsd* | dragonfly*)
17213 # DragonFly does not have aout. When/if they implement a new
17214 # versioning mechanism, adjust this.
17215 if test -x /usr/bin/objformat; then
17216 objformat=`/usr/bin/objformat`
17217 else
17218 case $host_os in
17219 freebsd[123]*) objformat=aout ;;
17220 *) objformat=elf ;;
17221 esac
17222 fi
17223 version_type=freebsd-$objformat
17224 case $version_type in
17225 freebsd-elf*)
17226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17227 need_version=no
17228 need_lib_prefix=no
17229 ;;
17230 freebsd-*)
17231 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17232 need_version=yes
17233 ;;
17234 esac
17235 shlibpath_var=LD_LIBRARY_PATH
17236 case $host_os in
17237 freebsd2*)
17238 shlibpath_overrides_runpath=yes
17239 ;;
17240 freebsd3.[01]* | freebsdelf3.[01]*)
17241 shlibpath_overrides_runpath=yes
17242 hardcode_into_libs=yes
17243 ;;
17244 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17245 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17246 shlibpath_overrides_runpath=no
17247 hardcode_into_libs=yes
17248 ;;
17249 *) # from 4.6 on, and DragonFly
17250 shlibpath_overrides_runpath=yes
17251 hardcode_into_libs=yes
17252 ;;
17253 esac
17254 ;;
17255
17256 gnu*)
17257 version_type=linux
17258 need_lib_prefix=no
17259 need_version=no
17260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17261 soname_spec='${libname}${release}${shared_ext}$major'
17262 shlibpath_var=LD_LIBRARY_PATH
17263 hardcode_into_libs=yes
17264 ;;
17265
17266 haiku*)
17267 version_type=linux
17268 need_lib_prefix=no
17269 need_version=no
17270 dynamic_linker="$host_os runtime_loader"
17271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17272 soname_spec='${libname}${release}${shared_ext}$major'
17273 shlibpath_var=LIBRARY_PATH
17274 shlibpath_overrides_runpath=yes
17275 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17276 hardcode_into_libs=yes
17277 ;;
17278
17279 hpux9* | hpux10* | hpux11*)
17280 # Give a soname corresponding to the major version so that dld.sl refuses to
17281 # link against other versions.
17282 version_type=sunos
17283 need_lib_prefix=no
17284 need_version=no
17285 case $host_cpu in
17286 ia64*)
17287 shrext_cmds='.so'
17288 hardcode_into_libs=yes
17289 dynamic_linker="$host_os dld.so"
17290 shlibpath_var=LD_LIBRARY_PATH
17291 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17293 soname_spec='${libname}${release}${shared_ext}$major'
17294 if test "X$HPUX_IA64_MODE" = X32; then
17295 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17296 else
17297 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17298 fi
17299 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17300 ;;
17301 hppa*64*)
17302 shrext_cmds='.sl'
17303 hardcode_into_libs=yes
17304 dynamic_linker="$host_os dld.sl"
17305 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17306 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17308 soname_spec='${libname}${release}${shared_ext}$major'
17309 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17310 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17311 ;;
17312 *)
17313 shrext_cmds='.sl'
17314 dynamic_linker="$host_os dld.sl"
17315 shlibpath_var=SHLIB_PATH
17316 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17318 soname_spec='${libname}${release}${shared_ext}$major'
17319 ;;
17320 esac
17321 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17322 postinstall_cmds='chmod 555 $lib'
17323 # or fails outright, so override atomically:
17324 install_override_mode=555
17325 ;;
17326
17327 interix[3-9]*)
17328 version_type=linux
17329 need_lib_prefix=no
17330 need_version=no
17331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17332 soname_spec='${libname}${release}${shared_ext}$major'
17333 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17334 shlibpath_var=LD_LIBRARY_PATH
17335 shlibpath_overrides_runpath=no
17336 hardcode_into_libs=yes
17337 ;;
17338
17339 irix5* | irix6* | nonstopux*)
17340 case $host_os in
17341 nonstopux*) version_type=nonstopux ;;
17342 *)
17343 if test "$lt_cv_prog_gnu_ld" = yes; then
17344 version_type=linux
17345 else
17346 version_type=irix
17347 fi ;;
17348 esac
17349 need_lib_prefix=no
17350 need_version=no
17351 soname_spec='${libname}${release}${shared_ext}$major'
17352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17353 case $host_os in
17354 irix5* | nonstopux*)
17355 libsuff= shlibsuff=
17356 ;;
17357 *)
17358 case $LD in # libtool.m4 will add one of these switches to LD
17359 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17360 libsuff= shlibsuff= libmagic=32-bit;;
17361 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17362 libsuff=32 shlibsuff=N32 libmagic=N32;;
17363 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17364 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17365 *) libsuff= shlibsuff= libmagic=never-match;;
17366 esac
17367 ;;
17368 esac
17369 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17370 shlibpath_overrides_runpath=no
17371 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17372 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17373 hardcode_into_libs=yes
17374 ;;
17375
17376 # No shared lib support for Linux oldld, aout, or coff.
17377 linux*oldld* | linux*aout* | linux*coff*)
17378 dynamic_linker=no
17379 ;;
17380
17381 # This must be Linux ELF.
17382 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17383 version_type=linux
17384 need_lib_prefix=no
17385 need_version=no
17386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17387 soname_spec='${libname}${release}${shared_ext}$major'
17388 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17389 shlibpath_var=LD_LIBRARY_PATH
17390 shlibpath_overrides_runpath=no
17391
17392 # Some binutils ld are patched to set DT_RUNPATH
17393 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17394 $as_echo_n "(cached) " >&6
17395 else
17396 lt_cv_shlibpath_overrides_runpath=no
17397 save_LDFLAGS=$LDFLAGS
17398 save_libdir=$libdir
17399 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17400 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17402 /* end confdefs.h. */
17403
17404 int
17405 main ()
17406 {
17407
17408 ;
17409 return 0;
17410 }
17411 _ACEOF
17412 if ac_fn_c_try_link "$LINENO"; then :
17413 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17414 lt_cv_shlibpath_overrides_runpath=yes
17415 fi
17416 fi
17417 rm -f core conftest.err conftest.$ac_objext \
17418 conftest$ac_exeext conftest.$ac_ext
17419 LDFLAGS=$save_LDFLAGS
17420 libdir=$save_libdir
17421
17422 fi
17423
17424 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17425
17426 # This implies no fast_install, which is unacceptable.
17427 # Some rework will be needed to allow for fast_install
17428 # before this can be enabled.
17429 hardcode_into_libs=yes
17430
17431 # Append ld.so.conf contents to the search path
17432 if test -f /etc/ld.so.conf; then
17433 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' ' '`
17434 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17435 fi
17436
17437 # We used to test for /lib/ld.so.1 and disable shared libraries on
17438 # powerpc, because MkLinux only supported shared libraries with the
17439 # GNU dynamic linker. Since this was broken with cross compilers,
17440 # most powerpc-linux boxes support dynamic linking these days and
17441 # people can always --disable-shared, the test was removed, and we
17442 # assume the GNU/Linux dynamic linker is in use.
17443 dynamic_linker='GNU/Linux ld.so'
17444 ;;
17445
17446 netbsd*)
17447 version_type=sunos
17448 need_lib_prefix=no
17449 need_version=no
17450 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17453 dynamic_linker='NetBSD (a.out) ld.so'
17454 else
17455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17456 soname_spec='${libname}${release}${shared_ext}$major'
17457 dynamic_linker='NetBSD ld.elf_so'
17458 fi
17459 shlibpath_var=LD_LIBRARY_PATH
17460 shlibpath_overrides_runpath=yes
17461 hardcode_into_libs=yes
17462 ;;
17463
17464 newsos6)
17465 version_type=linux
17466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17467 shlibpath_var=LD_LIBRARY_PATH
17468 shlibpath_overrides_runpath=yes
17469 ;;
17470
17471 *nto* | *qnx*)
17472 version_type=qnx
17473 need_lib_prefix=no
17474 need_version=no
17475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17476 soname_spec='${libname}${release}${shared_ext}$major'
17477 shlibpath_var=LD_LIBRARY_PATH
17478 shlibpath_overrides_runpath=no
17479 hardcode_into_libs=yes
17480 dynamic_linker='ldqnx.so'
17481 ;;
17482
17483 openbsd*)
17484 version_type=sunos
17485 sys_lib_dlsearch_path_spec="/usr/lib"
17486 need_lib_prefix=no
17487 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17488 case $host_os in
17489 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17490 *) need_version=no ;;
17491 esac
17492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17494 shlibpath_var=LD_LIBRARY_PATH
17495 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17496 case $host_os in
17497 openbsd2.[89] | openbsd2.[89].*)
17498 shlibpath_overrides_runpath=no
17499 ;;
17500 *)
17501 shlibpath_overrides_runpath=yes
17502 ;;
17503 esac
17504 else
17505 shlibpath_overrides_runpath=yes
17506 fi
17507 ;;
17508
17509 os2*)
17510 libname_spec='$name'
17511 shrext_cmds=".dll"
17512 need_lib_prefix=no
17513 library_names_spec='$libname${shared_ext} $libname.a'
17514 dynamic_linker='OS/2 ld.exe'
17515 shlibpath_var=LIBPATH
17516 ;;
17517
17518 osf3* | osf4* | osf5*)
17519 version_type=osf
17520 need_lib_prefix=no
17521 need_version=no
17522 soname_spec='${libname}${release}${shared_ext}$major'
17523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17524 shlibpath_var=LD_LIBRARY_PATH
17525 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17526 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17527 ;;
17528
17529 rdos*)
17530 dynamic_linker=no
17531 ;;
17532
17533 solaris*)
17534 version_type=linux
17535 need_lib_prefix=no
17536 need_version=no
17537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17538 soname_spec='${libname}${release}${shared_ext}$major'
17539 shlibpath_var=LD_LIBRARY_PATH
17540 shlibpath_overrides_runpath=yes
17541 hardcode_into_libs=yes
17542 # ldd complains unless libraries are executable
17543 postinstall_cmds='chmod +x $lib'
17544 ;;
17545
17546 sunos4*)
17547 version_type=sunos
17548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17549 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17550 shlibpath_var=LD_LIBRARY_PATH
17551 shlibpath_overrides_runpath=yes
17552 if test "$with_gnu_ld" = yes; then
17553 need_lib_prefix=no
17554 fi
17555 need_version=yes
17556 ;;
17557
17558 sysv4 | sysv4.3*)
17559 version_type=linux
17560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17561 soname_spec='${libname}${release}${shared_ext}$major'
17562 shlibpath_var=LD_LIBRARY_PATH
17563 case $host_vendor in
17564 sni)
17565 shlibpath_overrides_runpath=no
17566 need_lib_prefix=no
17567 runpath_var=LD_RUN_PATH
17568 ;;
17569 siemens)
17570 need_lib_prefix=no
17571 ;;
17572 motorola)
17573 need_lib_prefix=no
17574 need_version=no
17575 shlibpath_overrides_runpath=no
17576 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17577 ;;
17578 esac
17579 ;;
17580
17581 sysv4*MP*)
17582 if test -d /usr/nec ;then
17583 version_type=linux
17584 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17585 soname_spec='$libname${shared_ext}.$major'
17586 shlibpath_var=LD_LIBRARY_PATH
17587 fi
17588 ;;
17589
17590 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17591 version_type=freebsd-elf
17592 need_lib_prefix=no
17593 need_version=no
17594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17595 soname_spec='${libname}${release}${shared_ext}$major'
17596 shlibpath_var=LD_LIBRARY_PATH
17597 shlibpath_overrides_runpath=yes
17598 hardcode_into_libs=yes
17599 if test "$with_gnu_ld" = yes; then
17600 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17601 else
17602 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17603 case $host_os in
17604 sco3.2v5*)
17605 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17606 ;;
17607 esac
17608 fi
17609 sys_lib_dlsearch_path_spec='/usr/lib'
17610 ;;
17611
17612 tpf*)
17613 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17614 version_type=linux
17615 need_lib_prefix=no
17616 need_version=no
17617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17618 shlibpath_var=LD_LIBRARY_PATH
17619 shlibpath_overrides_runpath=no
17620 hardcode_into_libs=yes
17621 ;;
17622
17623 uts4*)
17624 version_type=linux
17625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17626 soname_spec='${libname}${release}${shared_ext}$major'
17627 shlibpath_var=LD_LIBRARY_PATH
17628 ;;
17629
17630 *)
17631 dynamic_linker=no
17632 ;;
17633 esac
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17635 $as_echo "$dynamic_linker" >&6; }
17636 test "$dynamic_linker" = no && can_build_shared=no
17637
17638 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17639 if test "$GCC" = yes; then
17640 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17641 fi
17642
17643 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17644 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17645 fi
17646 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17647 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17648 fi
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17742 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17743 hardcode_action=
17744 if test -n "$hardcode_libdir_flag_spec" ||
17745 test -n "$runpath_var" ||
17746 test "X$hardcode_automatic" = "Xyes" ; then
17747
17748 # We can hardcode non-existent directories.
17749 if test "$hardcode_direct" != no &&
17750 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17751 # have to relink, otherwise we might link with an installed library
17752 # when we should be linking with a yet-to-be-installed one
17753 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17754 test "$hardcode_minus_L" != no; then
17755 # Linking always hardcodes the temporary library directory.
17756 hardcode_action=relink
17757 else
17758 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17759 hardcode_action=immediate
17760 fi
17761 else
17762 # We cannot hardcode anything, or else we can only hardcode existing
17763 # directories.
17764 hardcode_action=unsupported
17765 fi
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17767 $as_echo "$hardcode_action" >&6; }
17768
17769 if test "$hardcode_action" = relink ||
17770 test "$inherit_rpath" = yes; then
17771 # Fast installation is not supported
17772 enable_fast_install=no
17773 elif test "$shlibpath_overrides_runpath" = yes ||
17774 test "$enable_shared" = no; then
17775 # Fast installation is not necessary
17776 enable_fast_install=needless
17777 fi
17778
17779
17780
17781
17782
17783
17784 if test "x$enable_dlopen" != xyes; then
17785 enable_dlopen=unknown
17786 enable_dlopen_self=unknown
17787 enable_dlopen_self_static=unknown
17788 else
17789 lt_cv_dlopen=no
17790 lt_cv_dlopen_libs=
17791
17792 case $host_os in
17793 beos*)
17794 lt_cv_dlopen="load_add_on"
17795 lt_cv_dlopen_libs=
17796 lt_cv_dlopen_self=yes
17797 ;;
17798
17799 mingw* | pw32* | cegcc*)
17800 lt_cv_dlopen="LoadLibrary"
17801 lt_cv_dlopen_libs=
17802 ;;
17803
17804 cygwin*)
17805 lt_cv_dlopen="dlopen"
17806 lt_cv_dlopen_libs=
17807 ;;
17808
17809 darwin*)
17810 # if libdl is installed we need to link against it
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17812 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17813 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17814 $as_echo_n "(cached) " >&6
17815 else
17816 ac_check_lib_save_LIBS=$LIBS
17817 LIBS="-ldl $LIBS"
17818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17819 /* end confdefs.h. */
17820
17821 /* Override any GCC internal prototype to avoid an error.
17822 Use char because int might match the return type of a GCC
17823 builtin and then its argument prototype would still apply. */
17824 #ifdef __cplusplus
17825 extern "C"
17826 #endif
17827 char dlopen ();
17828 int
17829 main ()
17830 {
17831 return dlopen ();
17832 ;
17833 return 0;
17834 }
17835 _ACEOF
17836 if ac_fn_c_try_link "$LINENO"; then :
17837 ac_cv_lib_dl_dlopen=yes
17838 else
17839 ac_cv_lib_dl_dlopen=no
17840 fi
17841 rm -f core conftest.err conftest.$ac_objext \
17842 conftest$ac_exeext conftest.$ac_ext
17843 LIBS=$ac_check_lib_save_LIBS
17844 fi
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17846 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17847 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17848 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17849 else
17850
17851 lt_cv_dlopen="dyld"
17852 lt_cv_dlopen_libs=
17853 lt_cv_dlopen_self=yes
17854
17855 fi
17856
17857 ;;
17858
17859 *)
17860 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17861 if test "x$ac_cv_func_shl_load" = x""yes; then :
17862 lt_cv_dlopen="shl_load"
17863 else
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17865 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17866 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17867 $as_echo_n "(cached) " >&6
17868 else
17869 ac_check_lib_save_LIBS=$LIBS
17870 LIBS="-ldld $LIBS"
17871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17872 /* end confdefs.h. */
17873
17874 /* Override any GCC internal prototype to avoid an error.
17875 Use char because int might match the return type of a GCC
17876 builtin and then its argument prototype would still apply. */
17877 #ifdef __cplusplus
17878 extern "C"
17879 #endif
17880 char shl_load ();
17881 int
17882 main ()
17883 {
17884 return shl_load ();
17885 ;
17886 return 0;
17887 }
17888 _ACEOF
17889 if ac_fn_c_try_link "$LINENO"; then :
17890 ac_cv_lib_dld_shl_load=yes
17891 else
17892 ac_cv_lib_dld_shl_load=no
17893 fi
17894 rm -f core conftest.err conftest.$ac_objext \
17895 conftest$ac_exeext conftest.$ac_ext
17896 LIBS=$ac_check_lib_save_LIBS
17897 fi
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17899 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17900 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17901 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17902 else
17903 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17904 if test "x$ac_cv_func_dlopen" = x""yes; then :
17905 lt_cv_dlopen="dlopen"
17906 else
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17908 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17909 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17910 $as_echo_n "(cached) " >&6
17911 else
17912 ac_check_lib_save_LIBS=$LIBS
17913 LIBS="-ldl $LIBS"
17914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17915 /* end confdefs.h. */
17916
17917 /* Override any GCC internal prototype to avoid an error.
17918 Use char because int might match the return type of a GCC
17919 builtin and then its argument prototype would still apply. */
17920 #ifdef __cplusplus
17921 extern "C"
17922 #endif
17923 char dlopen ();
17924 int
17925 main ()
17926 {
17927 return dlopen ();
17928 ;
17929 return 0;
17930 }
17931 _ACEOF
17932 if ac_fn_c_try_link "$LINENO"; then :
17933 ac_cv_lib_dl_dlopen=yes
17934 else
17935 ac_cv_lib_dl_dlopen=no
17936 fi
17937 rm -f core conftest.err conftest.$ac_objext \
17938 conftest$ac_exeext conftest.$ac_ext
17939 LIBS=$ac_check_lib_save_LIBS
17940 fi
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17942 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17943 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17944 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17945 else
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17947 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17948 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17949 $as_echo_n "(cached) " >&6
17950 else
17951 ac_check_lib_save_LIBS=$LIBS
17952 LIBS="-lsvld $LIBS"
17953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17954 /* end confdefs.h. */
17955
17956 /* Override any GCC internal prototype to avoid an error.
17957 Use char because int might match the return type of a GCC
17958 builtin and then its argument prototype would still apply. */
17959 #ifdef __cplusplus
17960 extern "C"
17961 #endif
17962 char dlopen ();
17963 int
17964 main ()
17965 {
17966 return dlopen ();
17967 ;
17968 return 0;
17969 }
17970 _ACEOF
17971 if ac_fn_c_try_link "$LINENO"; then :
17972 ac_cv_lib_svld_dlopen=yes
17973 else
17974 ac_cv_lib_svld_dlopen=no
17975 fi
17976 rm -f core conftest.err conftest.$ac_objext \
17977 conftest$ac_exeext conftest.$ac_ext
17978 LIBS=$ac_check_lib_save_LIBS
17979 fi
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17981 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17982 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17983 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17984 else
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17986 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17987 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17988 $as_echo_n "(cached) " >&6
17989 else
17990 ac_check_lib_save_LIBS=$LIBS
17991 LIBS="-ldld $LIBS"
17992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17993 /* end confdefs.h. */
17994
17995 /* Override any GCC internal prototype to avoid an error.
17996 Use char because int might match the return type of a GCC
17997 builtin and then its argument prototype would still apply. */
17998 #ifdef __cplusplus
17999 extern "C"
18000 #endif
18001 char dld_link ();
18002 int
18003 main ()
18004 {
18005 return dld_link ();
18006 ;
18007 return 0;
18008 }
18009 _ACEOF
18010 if ac_fn_c_try_link "$LINENO"; then :
18011 ac_cv_lib_dld_dld_link=yes
18012 else
18013 ac_cv_lib_dld_dld_link=no
18014 fi
18015 rm -f core conftest.err conftest.$ac_objext \
18016 conftest$ac_exeext conftest.$ac_ext
18017 LIBS=$ac_check_lib_save_LIBS
18018 fi
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18020 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18021 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18022 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18023 fi
18024
18025
18026 fi
18027
18028
18029 fi
18030
18031
18032 fi
18033
18034
18035 fi
18036
18037
18038 fi
18039
18040 ;;
18041 esac
18042
18043 if test "x$lt_cv_dlopen" != xno; then
18044 enable_dlopen=yes
18045 else
18046 enable_dlopen=no
18047 fi
18048
18049 case $lt_cv_dlopen in
18050 dlopen)
18051 save_CPPFLAGS="$CPPFLAGS"
18052 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18053
18054 save_LDFLAGS="$LDFLAGS"
18055 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18056
18057 save_LIBS="$LIBS"
18058 LIBS="$lt_cv_dlopen_libs $LIBS"
18059
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18061 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18062 if test "${lt_cv_dlopen_self+set}" = set; then :
18063 $as_echo_n "(cached) " >&6
18064 else
18065 if test "$cross_compiling" = yes; then :
18066 lt_cv_dlopen_self=cross
18067 else
18068 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18069 lt_status=$lt_dlunknown
18070 cat > conftest.$ac_ext <<_LT_EOF
18071 #line 18071 "configure"
18072 #include "confdefs.h"
18073
18074 #if HAVE_DLFCN_H
18075 #include <dlfcn.h>
18076 #endif
18077
18078 #include <stdio.h>
18079
18080 #ifdef RTLD_GLOBAL
18081 # define LT_DLGLOBAL RTLD_GLOBAL
18082 #else
18083 # ifdef DL_GLOBAL
18084 # define LT_DLGLOBAL DL_GLOBAL
18085 # else
18086 # define LT_DLGLOBAL 0
18087 # endif
18088 #endif
18089
18090 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18091 find out it does not work in some platform. */
18092 #ifndef LT_DLLAZY_OR_NOW
18093 # ifdef RTLD_LAZY
18094 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18095 # else
18096 # ifdef DL_LAZY
18097 # define LT_DLLAZY_OR_NOW DL_LAZY
18098 # else
18099 # ifdef RTLD_NOW
18100 # define LT_DLLAZY_OR_NOW RTLD_NOW
18101 # else
18102 # ifdef DL_NOW
18103 # define LT_DLLAZY_OR_NOW DL_NOW
18104 # else
18105 # define LT_DLLAZY_OR_NOW 0
18106 # endif
18107 # endif
18108 # endif
18109 # endif
18110 #endif
18111
18112 /* When -fvisbility=hidden is used, assume the code has been annotated
18113 correspondingly for the symbols needed. */
18114 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18115 void fnord () __attribute__((visibility("default")));
18116 #endif
18117
18118 void fnord () { int i=42; }
18119 int main ()
18120 {
18121 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18122 int status = $lt_dlunknown;
18123
18124 if (self)
18125 {
18126 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18127 else
18128 {
18129 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18130 else puts (dlerror ());
18131 }
18132 /* dlclose (self); */
18133 }
18134 else
18135 puts (dlerror ());
18136
18137 return status;
18138 }
18139 _LT_EOF
18140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18141 (eval $ac_link) 2>&5
18142 ac_status=$?
18143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18144 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18145 (./conftest; exit; ) >&5 2>/dev/null
18146 lt_status=$?
18147 case x$lt_status in
18148 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18149 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18150 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18151 esac
18152 else :
18153 # compilation failed
18154 lt_cv_dlopen_self=no
18155 fi
18156 fi
18157 rm -fr conftest*
18158
18159
18160 fi
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18162 $as_echo "$lt_cv_dlopen_self" >&6; }
18163
18164 if test "x$lt_cv_dlopen_self" = xyes; then
18165 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18167 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18168 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18169 $as_echo_n "(cached) " >&6
18170 else
18171 if test "$cross_compiling" = yes; then :
18172 lt_cv_dlopen_self_static=cross
18173 else
18174 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18175 lt_status=$lt_dlunknown
18176 cat > conftest.$ac_ext <<_LT_EOF
18177 #line 18177 "configure"
18178 #include "confdefs.h"
18179
18180 #if HAVE_DLFCN_H
18181 #include <dlfcn.h>
18182 #endif
18183
18184 #include <stdio.h>
18185
18186 #ifdef RTLD_GLOBAL
18187 # define LT_DLGLOBAL RTLD_GLOBAL
18188 #else
18189 # ifdef DL_GLOBAL
18190 # define LT_DLGLOBAL DL_GLOBAL
18191 # else
18192 # define LT_DLGLOBAL 0
18193 # endif
18194 #endif
18195
18196 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18197 find out it does not work in some platform. */
18198 #ifndef LT_DLLAZY_OR_NOW
18199 # ifdef RTLD_LAZY
18200 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18201 # else
18202 # ifdef DL_LAZY
18203 # define LT_DLLAZY_OR_NOW DL_LAZY
18204 # else
18205 # ifdef RTLD_NOW
18206 # define LT_DLLAZY_OR_NOW RTLD_NOW
18207 # else
18208 # ifdef DL_NOW
18209 # define LT_DLLAZY_OR_NOW DL_NOW
18210 # else
18211 # define LT_DLLAZY_OR_NOW 0
18212 # endif
18213 # endif
18214 # endif
18215 # endif
18216 #endif
18217
18218 /* When -fvisbility=hidden is used, assume the code has been annotated
18219 correspondingly for the symbols needed. */
18220 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18221 void fnord () __attribute__((visibility("default")));
18222 #endif
18223
18224 void fnord () { int i=42; }
18225 int main ()
18226 {
18227 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18228 int status = $lt_dlunknown;
18229
18230 if (self)
18231 {
18232 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18233 else
18234 {
18235 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18236 else puts (dlerror ());
18237 }
18238 /* dlclose (self); */
18239 }
18240 else
18241 puts (dlerror ());
18242
18243 return status;
18244 }
18245 _LT_EOF
18246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18247 (eval $ac_link) 2>&5
18248 ac_status=$?
18249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18250 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18251 (./conftest; exit; ) >&5 2>/dev/null
18252 lt_status=$?
18253 case x$lt_status in
18254 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18255 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18256 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18257 esac
18258 else :
18259 # compilation failed
18260 lt_cv_dlopen_self_static=no
18261 fi
18262 fi
18263 rm -fr conftest*
18264
18265
18266 fi
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18268 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18269 fi
18270
18271 CPPFLAGS="$save_CPPFLAGS"
18272 LDFLAGS="$save_LDFLAGS"
18273 LIBS="$save_LIBS"
18274 ;;
18275 esac
18276
18277 case $lt_cv_dlopen_self in
18278 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18279 *) enable_dlopen_self=unknown ;;
18280 esac
18281
18282 case $lt_cv_dlopen_self_static in
18283 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18284 *) enable_dlopen_self_static=unknown ;;
18285 esac
18286 fi
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304 striplib=
18305 old_striplib=
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18307 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18308 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18309 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18310 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18312 $as_echo "yes" >&6; }
18313 else
18314 # FIXME - insert some real tests, host_os isn't really good enough
18315 case $host_os in
18316 darwin*)
18317 if test -n "$STRIP" ; then
18318 striplib="$STRIP -x"
18319 old_striplib="$STRIP -S"
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18321 $as_echo "yes" >&6; }
18322 else
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18324 $as_echo "no" >&6; }
18325 fi
18326 ;;
18327 *)
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18329 $as_echo "no" >&6; }
18330 ;;
18331 esac
18332 fi
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345 # Report which library types will actually be built
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18347 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18349 $as_echo "$can_build_shared" >&6; }
18350
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18352 $as_echo_n "checking whether to build shared libraries... " >&6; }
18353 test "$can_build_shared" = "no" && enable_shared=no
18354
18355 # On AIX, shared libraries and static libraries use the same namespace, and
18356 # are all built from PIC.
18357 case $host_os in
18358 aix3*)
18359 test "$enable_shared" = yes && enable_static=no
18360 if test -n "$RANLIB"; then
18361 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18362 postinstall_cmds='$RANLIB $lib'
18363 fi
18364 ;;
18365
18366 aix[4-9]*)
18367 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18368 test "$enable_shared" = yes && enable_static=no
18369 fi
18370 ;;
18371 esac
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18373 $as_echo "$enable_shared" >&6; }
18374
18375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18376 $as_echo_n "checking whether to build static libraries... " >&6; }
18377 # Make sure either enable_shared or enable_static is yes.
18378 test "$enable_shared" = yes || enable_static=yes
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18380 $as_echo "$enable_static" >&6; }
18381
18382
18383
18384
18385 fi
18386 ac_ext=c
18387 ac_cpp='$CPP $CPPFLAGS'
18388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18391
18392 CC="$lt_save_CC"
18393
18394 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18395 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18396 (test "X$CXX" != "Xg++"))) ; then
18397 ac_ext=cpp
18398 ac_cpp='$CXXCPP $CPPFLAGS'
18399 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18400 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18401 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18403 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18404 if test -z "$CXXCPP"; then
18405 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18406 $as_echo_n "(cached) " >&6
18407 else
18408 # Double quotes because CXXCPP needs to be expanded
18409 for CXXCPP in "$CXX -E" "/lib/cpp"
18410 do
18411 ac_preproc_ok=false
18412 for ac_cxx_preproc_warn_flag in '' yes
18413 do
18414 # Use a header file that comes with gcc, so configuring glibc
18415 # with a fresh cross-compiler works.
18416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18417 # <limits.h> exists even on freestanding compilers.
18418 # On the NeXT, cc -E runs the code through the compiler's parser,
18419 # not just through cpp. "Syntax error" is here to catch this case.
18420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18421 /* end confdefs.h. */
18422 #ifdef __STDC__
18423 # include <limits.h>
18424 #else
18425 # include <assert.h>
18426 #endif
18427 Syntax error
18428 _ACEOF
18429 if ac_fn_cxx_try_cpp "$LINENO"; then :
18430
18431 else
18432 # Broken: fails on valid input.
18433 continue
18434 fi
18435 rm -f conftest.err conftest.$ac_ext
18436
18437 # OK, works on sane cases. Now check whether nonexistent headers
18438 # can be detected and how.
18439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18440 /* end confdefs.h. */
18441 #include <ac_nonexistent.h>
18442 _ACEOF
18443 if ac_fn_cxx_try_cpp "$LINENO"; then :
18444 # Broken: success on invalid input.
18445 continue
18446 else
18447 # Passes both tests.
18448 ac_preproc_ok=:
18449 break
18450 fi
18451 rm -f conftest.err conftest.$ac_ext
18452
18453 done
18454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18455 rm -f conftest.err conftest.$ac_ext
18456 if $ac_preproc_ok; then :
18457 break
18458 fi
18459
18460 done
18461 ac_cv_prog_CXXCPP=$CXXCPP
18462
18463 fi
18464 CXXCPP=$ac_cv_prog_CXXCPP
18465 else
18466 ac_cv_prog_CXXCPP=$CXXCPP
18467 fi
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18469 $as_echo "$CXXCPP" >&6; }
18470 ac_preproc_ok=false
18471 for ac_cxx_preproc_warn_flag in '' yes
18472 do
18473 # Use a header file that comes with gcc, so configuring glibc
18474 # with a fresh cross-compiler works.
18475 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18476 # <limits.h> exists even on freestanding compilers.
18477 # On the NeXT, cc -E runs the code through the compiler's parser,
18478 # not just through cpp. "Syntax error" is here to catch this case.
18479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18480 /* end confdefs.h. */
18481 #ifdef __STDC__
18482 # include <limits.h>
18483 #else
18484 # include <assert.h>
18485 #endif
18486 Syntax error
18487 _ACEOF
18488 if ac_fn_cxx_try_cpp "$LINENO"; then :
18489
18490 else
18491 # Broken: fails on valid input.
18492 continue
18493 fi
18494 rm -f conftest.err conftest.$ac_ext
18495
18496 # OK, works on sane cases. Now check whether nonexistent headers
18497 # can be detected and how.
18498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18499 /* end confdefs.h. */
18500 #include <ac_nonexistent.h>
18501 _ACEOF
18502 if ac_fn_cxx_try_cpp "$LINENO"; then :
18503 # Broken: success on invalid input.
18504 continue
18505 else
18506 # Passes both tests.
18507 ac_preproc_ok=:
18508 break
18509 fi
18510 rm -f conftest.err conftest.$ac_ext
18511
18512 done
18513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18514 rm -f conftest.err conftest.$ac_ext
18515 if $ac_preproc_ok; then :
18516
18517 else
18518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18520 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18521 See \`config.log' for more details." "$LINENO" 5; }
18522 fi
18523
18524 ac_ext=c
18525 ac_cpp='$CPP $CPPFLAGS'
18526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18529
18530 else
18531 _lt_caught_CXX_error=yes
18532 fi
18533
18534 ac_ext=cpp
18535 ac_cpp='$CXXCPP $CPPFLAGS'
18536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18539
18540 archive_cmds_need_lc_CXX=no
18541 allow_undefined_flag_CXX=
18542 always_export_symbols_CXX=no
18543 archive_expsym_cmds_CXX=
18544 compiler_needs_object_CXX=no
18545 export_dynamic_flag_spec_CXX=
18546 hardcode_direct_CXX=no
18547 hardcode_direct_absolute_CXX=no
18548 hardcode_libdir_flag_spec_CXX=
18549 hardcode_libdir_flag_spec_ld_CXX=
18550 hardcode_libdir_separator_CXX=
18551 hardcode_minus_L_CXX=no
18552 hardcode_shlibpath_var_CXX=unsupported
18553 hardcode_automatic_CXX=no
18554 inherit_rpath_CXX=no
18555 module_cmds_CXX=
18556 module_expsym_cmds_CXX=
18557 link_all_deplibs_CXX=unknown
18558 old_archive_cmds_CXX=$old_archive_cmds
18559 reload_flag_CXX=$reload_flag
18560 reload_cmds_CXX=$reload_cmds
18561 no_undefined_flag_CXX=
18562 whole_archive_flag_spec_CXX=
18563 enable_shared_with_static_runtimes_CXX=no
18564
18565 # Source file extension for C++ test sources.
18566 ac_ext=cpp
18567
18568 # Object file extension for compiled C++ test sources.
18569 objext=o
18570 objext_CXX=$objext
18571
18572 # No sense in running all these tests if we already determined that
18573 # the CXX compiler isn't working. Some variables (like enable_shared)
18574 # are currently assumed to apply to all compilers on this platform,
18575 # and will be corrupted by setting them based on a non-working compiler.
18576 if test "$_lt_caught_CXX_error" != yes; then
18577 # Code to be used in simple compile tests
18578 lt_simple_compile_test_code="int some_variable = 0;"
18579
18580 # Code to be used in simple link tests
18581 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18582
18583 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18584
18585
18586
18587
18588
18589
18590 # If no C compiler was specified, use CC.
18591 LTCC=${LTCC-"$CC"}
18592
18593 # If no C compiler flags were specified, use CFLAGS.
18594 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18595
18596 # Allow CC to be a program name with arguments.
18597 compiler=$CC
18598
18599
18600 # save warnings/boilerplate of simple test code
18601 ac_outfile=conftest.$ac_objext
18602 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18603 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18604 _lt_compiler_boilerplate=`cat conftest.err`
18605 $RM conftest*
18606
18607 ac_outfile=conftest.$ac_objext
18608 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18609 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18610 _lt_linker_boilerplate=`cat conftest.err`
18611 $RM -r conftest*
18612
18613
18614 # Allow CC to be a program name with arguments.
18615 lt_save_CC=$CC
18616 lt_save_LD=$LD
18617 lt_save_GCC=$GCC
18618 GCC=$GXX
18619 lt_save_with_gnu_ld=$with_gnu_ld
18620 lt_save_path_LD=$lt_cv_path_LD
18621 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18622 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18623 else
18624 $as_unset lt_cv_prog_gnu_ld
18625 fi
18626 if test -n "${lt_cv_path_LDCXX+set}"; then
18627 lt_cv_path_LD=$lt_cv_path_LDCXX
18628 else
18629 $as_unset lt_cv_path_LD
18630 fi
18631 test -z "${LDCXX+set}" || LD=$LDCXX
18632 CC=${CXX-"c++"}
18633 compiler=$CC
18634 compiler_CXX=$CC
18635 for cc_temp in $compiler""; do
18636 case $cc_temp in
18637 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18638 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18639 \-*) ;;
18640 *) break;;
18641 esac
18642 done
18643 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18644
18645
18646 if test -n "$compiler"; then
18647 # We don't want -fno-exception when compiling C++ code, so set the
18648 # no_builtin_flag separately
18649 if test "$GXX" = yes; then
18650 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18651 else
18652 lt_prog_compiler_no_builtin_flag_CXX=
18653 fi
18654
18655 if test "$GXX" = yes; then
18656 # Set up default GNU C++ configuration
18657
18658
18659
18660 # Check whether --with-gnu-ld was given.
18661 if test "${with_gnu_ld+set}" = set; then :
18662 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18663 else
18664 with_gnu_ld=no
18665 fi
18666
18667 ac_prog=ld
18668 if test "$GCC" = yes; then
18669 # Check if gcc -print-prog-name=ld gives a path.
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18671 $as_echo_n "checking for ld used by $CC... " >&6; }
18672 case $host in
18673 *-*-mingw*)
18674 # gcc leaves a trailing carriage return which upsets mingw
18675 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18676 *)
18677 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18678 esac
18679 case $ac_prog in
18680 # Accept absolute paths.
18681 [\\/]* | ?:[\\/]*)
18682 re_direlt='/[^/][^/]*/\.\./'
18683 # Canonicalize the pathname of ld
18684 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18685 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18686 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18687 done
18688 test -z "$LD" && LD="$ac_prog"
18689 ;;
18690 "")
18691 # If it fails, then pretend we aren't using GCC.
18692 ac_prog=ld
18693 ;;
18694 *)
18695 # If it is relative, then search for the first ld in PATH.
18696 with_gnu_ld=unknown
18697 ;;
18698 esac
18699 elif test "$with_gnu_ld" = yes; then
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18701 $as_echo_n "checking for GNU ld... " >&6; }
18702 else
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18704 $as_echo_n "checking for non-GNU ld... " >&6; }
18705 fi
18706 if test "${lt_cv_path_LD+set}" = set; then :
18707 $as_echo_n "(cached) " >&6
18708 else
18709 if test -z "$LD"; then
18710 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18711 for ac_dir in $PATH; do
18712 IFS="$lt_save_ifs"
18713 test -z "$ac_dir" && ac_dir=.
18714 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18715 lt_cv_path_LD="$ac_dir/$ac_prog"
18716 # Check to see if the program is GNU ld. I'd rather use --version,
18717 # but apparently some variants of GNU ld only accept -v.
18718 # Break only if it was the GNU/non-GNU ld that we prefer.
18719 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18720 *GNU* | *'with BFD'*)
18721 test "$with_gnu_ld" != no && break
18722 ;;
18723 *)
18724 test "$with_gnu_ld" != yes && break
18725 ;;
18726 esac
18727 fi
18728 done
18729 IFS="$lt_save_ifs"
18730 else
18731 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18732 fi
18733 fi
18734
18735 LD="$lt_cv_path_LD"
18736 if test -n "$LD"; then
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18738 $as_echo "$LD" >&6; }
18739 else
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18741 $as_echo "no" >&6; }
18742 fi
18743 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18745 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18746 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18747 $as_echo_n "(cached) " >&6
18748 else
18749 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18750 case `$LD -v 2>&1 </dev/null` in
18751 *GNU* | *'with BFD'*)
18752 lt_cv_prog_gnu_ld=yes
18753 ;;
18754 *)
18755 lt_cv_prog_gnu_ld=no
18756 ;;
18757 esac
18758 fi
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18760 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18761 with_gnu_ld=$lt_cv_prog_gnu_ld
18762
18763
18764
18765
18766
18767
18768
18769 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18770 # archiving commands below assume that GNU ld is being used.
18771 if test "$with_gnu_ld" = yes; then
18772 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18773 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'
18774
18775 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18776 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18777
18778 # If archive_cmds runs LD, not CC, wlarc should be empty
18779 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18780 # investigate it a little bit more. (MM)
18781 wlarc='${wl}'
18782
18783 # ancient GNU ld didn't support --whole-archive et. al.
18784 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18785 $GREP 'no-whole-archive' > /dev/null; then
18786 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18787 else
18788 whole_archive_flag_spec_CXX=
18789 fi
18790 else
18791 with_gnu_ld=no
18792 wlarc=
18793
18794 # A generic and very simple default shared library creation
18795 # command for GNU C++ for the case where it uses the native
18796 # linker, instead of GNU ld. If possible, this setting should
18797 # overridden to take advantage of the native linker features on
18798 # the platform it is being used on.
18799 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18800 fi
18801
18802 # Commands to make compiler produce verbose output that lists
18803 # what "hidden" libraries, object files and flags are used when
18804 # linking a shared library.
18805 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18806
18807 else
18808 GXX=no
18809 with_gnu_ld=no
18810 wlarc=
18811 fi
18812
18813 # PORTME: fill in a description of your system's C++ link characteristics
18814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18815 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18816 ld_shlibs_CXX=yes
18817 case $host_os in
18818 aix3*)
18819 # FIXME: insert proper C++ library support
18820 ld_shlibs_CXX=no
18821 ;;
18822 aix[4-9]*)
18823 if test "$host_cpu" = ia64; then
18824 # On IA64, the linker does run time linking by default, so we don't
18825 # have to do anything special.
18826 aix_use_runtimelinking=no
18827 exp_sym_flag='-Bexport'
18828 no_entry_flag=""
18829 else
18830 aix_use_runtimelinking=no
18831
18832 # Test if we are trying to use run time linking or normal
18833 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18834 # need to do runtime linking.
18835 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18836 for ld_flag in $LDFLAGS; do
18837 case $ld_flag in
18838 *-brtl*)
18839 aix_use_runtimelinking=yes
18840 break
18841 ;;
18842 esac
18843 done
18844 ;;
18845 esac
18846
18847 exp_sym_flag='-bexport'
18848 no_entry_flag='-bnoentry'
18849 fi
18850
18851 # When large executables or shared objects are built, AIX ld can
18852 # have problems creating the table of contents. If linking a library
18853 # or program results in "error TOC overflow" add -mminimal-toc to
18854 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18855 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18856
18857 archive_cmds_CXX=''
18858 hardcode_direct_CXX=yes
18859 hardcode_direct_absolute_CXX=yes
18860 hardcode_libdir_separator_CXX=':'
18861 link_all_deplibs_CXX=yes
18862 file_list_spec_CXX='${wl}-f,'
18863
18864 if test "$GXX" = yes; then
18865 case $host_os in aix4.[012]|aix4.[012].*)
18866 # We only want to do this on AIX 4.2 and lower, the check
18867 # below for broken collect2 doesn't work under 4.3+
18868 collect2name=`${CC} -print-prog-name=collect2`
18869 if test -f "$collect2name" &&
18870 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18871 then
18872 # We have reworked collect2
18873 :
18874 else
18875 # We have old collect2
18876 hardcode_direct_CXX=unsupported
18877 # It fails to find uninstalled libraries when the uninstalled
18878 # path is not listed in the libpath. Setting hardcode_minus_L
18879 # to unsupported forces relinking
18880 hardcode_minus_L_CXX=yes
18881 hardcode_libdir_flag_spec_CXX='-L$libdir'
18882 hardcode_libdir_separator_CXX=
18883 fi
18884 esac
18885 shared_flag='-shared'
18886 if test "$aix_use_runtimelinking" = yes; then
18887 shared_flag="$shared_flag "'${wl}-G'
18888 fi
18889 else
18890 # not using gcc
18891 if test "$host_cpu" = ia64; then
18892 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18893 # chokes on -Wl,-G. The following line is correct:
18894 shared_flag='-G'
18895 else
18896 if test "$aix_use_runtimelinking" = yes; then
18897 shared_flag='${wl}-G'
18898 else
18899 shared_flag='${wl}-bM:SRE'
18900 fi
18901 fi
18902 fi
18903
18904 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18905 # It seems that -bexpall does not export symbols beginning with
18906 # underscore (_), so it is better to generate a list of symbols to
18907 # export.
18908 always_export_symbols_CXX=yes
18909 if test "$aix_use_runtimelinking" = yes; then
18910 # Warning - without using the other runtime loading flags (-brtl),
18911 # -berok will link without error, but may produce a broken library.
18912 allow_undefined_flag_CXX='-berok'
18913 # Determine the default libpath from the value encoded in an empty
18914 # executable.
18915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18916 /* end confdefs.h. */
18917
18918 int
18919 main ()
18920 {
18921
18922 ;
18923 return 0;
18924 }
18925 _ACEOF
18926 if ac_fn_cxx_try_link "$LINENO"; then :
18927
18928 lt_aix_libpath_sed='
18929 /Import File Strings/,/^$/ {
18930 /^0/ {
18931 s/^0 *\(.*\)$/\1/
18932 p
18933 }
18934 }'
18935 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18936 # Check for a 64-bit object if we didn't find anything.
18937 if test -z "$aix_libpath"; then
18938 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18939 fi
18940 fi
18941 rm -f core conftest.err conftest.$ac_objext \
18942 conftest$ac_exeext conftest.$ac_ext
18943 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18944
18945 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18946
18947 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"
18948 else
18949 if test "$host_cpu" = ia64; then
18950 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18951 allow_undefined_flag_CXX="-z nodefs"
18952 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"
18953 else
18954 # Determine the default libpath from the value encoded in an
18955 # empty executable.
18956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18957 /* end confdefs.h. */
18958
18959 int
18960 main ()
18961 {
18962
18963 ;
18964 return 0;
18965 }
18966 _ACEOF
18967 if ac_fn_cxx_try_link "$LINENO"; then :
18968
18969 lt_aix_libpath_sed='
18970 /Import File Strings/,/^$/ {
18971 /^0/ {
18972 s/^0 *\(.*\)$/\1/
18973 p
18974 }
18975 }'
18976 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18977 # Check for a 64-bit object if we didn't find anything.
18978 if test -z "$aix_libpath"; then
18979 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18980 fi
18981 fi
18982 rm -f core conftest.err conftest.$ac_objext \
18983 conftest$ac_exeext conftest.$ac_ext
18984 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18985
18986 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18987 # Warning - without using the other run time loading flags,
18988 # -berok will link without error, but may produce a broken library.
18989 no_undefined_flag_CXX=' ${wl}-bernotok'
18990 allow_undefined_flag_CXX=' ${wl}-berok'
18991 if test "$with_gnu_ld" = yes; then
18992 # We only use this code for GNU lds that support --whole-archive.
18993 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18994 else
18995 # Exported symbols can be pulled into shared objects from archives
18996 whole_archive_flag_spec_CXX='$convenience'
18997 fi
18998 archive_cmds_need_lc_CXX=yes
18999 # This is similar to how AIX traditionally builds its shared
19000 # libraries.
19001 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'
19002 fi
19003 fi
19004 ;;
19005
19006 beos*)
19007 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19008 allow_undefined_flag_CXX=unsupported
19009 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19010 # support --undefined. This deserves some investigation. FIXME
19011 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19012 else
19013 ld_shlibs_CXX=no
19014 fi
19015 ;;
19016
19017 chorus*)
19018 case $cc_basename in
19019 *)
19020 # FIXME: insert proper C++ library support
19021 ld_shlibs_CXX=no
19022 ;;
19023 esac
19024 ;;
19025
19026 cygwin* | mingw* | pw32* | cegcc*)
19027 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19028 # as there is no search path for DLLs.
19029 hardcode_libdir_flag_spec_CXX='-L$libdir'
19030 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19031 allow_undefined_flag_CXX=unsupported
19032 always_export_symbols_CXX=no
19033 enable_shared_with_static_runtimes_CXX=yes
19034
19035 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19036 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'
19037 # If the export-symbols file already is a .def file (1st line
19038 # is EXPORTS), use it as is; otherwise, prepend...
19039 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19040 cp $export_symbols $output_objdir/$soname.def;
19041 else
19042 echo EXPORTS > $output_objdir/$soname.def;
19043 cat $export_symbols >> $output_objdir/$soname.def;
19044 fi~
19045 $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'
19046 else
19047 ld_shlibs_CXX=no
19048 fi
19049 ;;
19050 darwin* | rhapsody*)
19051
19052
19053 archive_cmds_need_lc_CXX=no
19054 hardcode_direct_CXX=no
19055 hardcode_automatic_CXX=yes
19056 hardcode_shlibpath_var_CXX=unsupported
19057 if test "$lt_cv_ld_force_load" = "yes"; then
19058 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\"`'
19059 else
19060 whole_archive_flag_spec_CXX=''
19061 fi
19062 link_all_deplibs_CXX=yes
19063 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19064 case $cc_basename in
19065 ifort*) _lt_dar_can_shared=yes ;;
19066 *) _lt_dar_can_shared=$GCC ;;
19067 esac
19068 if test "$_lt_dar_can_shared" = "yes"; then
19069 output_verbose_link_cmd=func_echo_all
19070 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}"
19071 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19072 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}"
19073 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}"
19074 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19075 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}"
19076 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}"
19077 fi
19078
19079 else
19080 ld_shlibs_CXX=no
19081 fi
19082
19083 ;;
19084
19085 dgux*)
19086 case $cc_basename in
19087 ec++*)
19088 # FIXME: insert proper C++ library support
19089 ld_shlibs_CXX=no
19090 ;;
19091 ghcx*)
19092 # Green Hills C++ Compiler
19093 # FIXME: insert proper C++ library support
19094 ld_shlibs_CXX=no
19095 ;;
19096 *)
19097 # FIXME: insert proper C++ library support
19098 ld_shlibs_CXX=no
19099 ;;
19100 esac
19101 ;;
19102
19103 freebsd[12]*)
19104 # C++ shared libraries reported to be fairly broken before
19105 # switch to ELF
19106 ld_shlibs_CXX=no
19107 ;;
19108
19109 freebsd-elf*)
19110 archive_cmds_need_lc_CXX=no
19111 ;;
19112
19113 freebsd* | dragonfly*)
19114 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19115 # conventions
19116 ld_shlibs_CXX=yes
19117 ;;
19118
19119 gnu*)
19120 ;;
19121
19122 haiku*)
19123 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19124 link_all_deplibs_CXX=yes
19125 ;;
19126
19127 hpux9*)
19128 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19129 hardcode_libdir_separator_CXX=:
19130 export_dynamic_flag_spec_CXX='${wl}-E'
19131 hardcode_direct_CXX=yes
19132 hardcode_minus_L_CXX=yes # Not in the search PATH,
19133 # but as the default
19134 # location of the library.
19135
19136 case $cc_basename in
19137 CC*)
19138 # FIXME: insert proper C++ library support
19139 ld_shlibs_CXX=no
19140 ;;
19141 aCC*)
19142 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'
19143 # Commands to make compiler produce verbose output that lists
19144 # what "hidden" libraries, object files and flags are used when
19145 # linking a shared library.
19146 #
19147 # There doesn't appear to be a way to prevent this compiler from
19148 # explicitly linking system object files so we need to strip them
19149 # from the output so that they don't get included in the library
19150 # dependencies.
19151 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"'
19152 ;;
19153 *)
19154 if test "$GXX" = yes; then
19155 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'
19156 else
19157 # FIXME: insert proper C++ library support
19158 ld_shlibs_CXX=no
19159 fi
19160 ;;
19161 esac
19162 ;;
19163
19164 hpux10*|hpux11*)
19165 if test $with_gnu_ld = no; then
19166 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19167 hardcode_libdir_separator_CXX=:
19168
19169 case $host_cpu in
19170 hppa*64*|ia64*)
19171 ;;
19172 *)
19173 export_dynamic_flag_spec_CXX='${wl}-E'
19174 ;;
19175 esac
19176 fi
19177 case $host_cpu in
19178 hppa*64*|ia64*)
19179 hardcode_direct_CXX=no
19180 hardcode_shlibpath_var_CXX=no
19181 ;;
19182 *)
19183 hardcode_direct_CXX=yes
19184 hardcode_direct_absolute_CXX=yes
19185 hardcode_minus_L_CXX=yes # Not in the search PATH,
19186 # but as the default
19187 # location of the library.
19188 ;;
19189 esac
19190
19191 case $cc_basename in
19192 CC*)
19193 # FIXME: insert proper C++ library support
19194 ld_shlibs_CXX=no
19195 ;;
19196 aCC*)
19197 case $host_cpu in
19198 hppa*64*)
19199 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19200 ;;
19201 ia64*)
19202 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19203 ;;
19204 *)
19205 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19206 ;;
19207 esac
19208 # Commands to make compiler produce verbose output that lists
19209 # what "hidden" libraries, object files and flags are used when
19210 # linking a shared library.
19211 #
19212 # There doesn't appear to be a way to prevent this compiler from
19213 # explicitly linking system object files so we need to strip them
19214 # from the output so that they don't get included in the library
19215 # dependencies.
19216 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"'
19217 ;;
19218 *)
19219 if test "$GXX" = yes; then
19220 if test $with_gnu_ld = no; then
19221 case $host_cpu in
19222 hppa*64*)
19223 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19224 ;;
19225 ia64*)
19226 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19227 ;;
19228 *)
19229 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'
19230 ;;
19231 esac
19232 fi
19233 else
19234 # FIXME: insert proper C++ library support
19235 ld_shlibs_CXX=no
19236 fi
19237 ;;
19238 esac
19239 ;;
19240
19241 interix[3-9]*)
19242 hardcode_direct_CXX=no
19243 hardcode_shlibpath_var_CXX=no
19244 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19245 export_dynamic_flag_spec_CXX='${wl}-E'
19246 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19247 # Instead, shared libraries are loaded at an image base (0x10000000 by
19248 # default) and relocated if they conflict, which is a slow very memory
19249 # consuming and fragmenting process. To avoid this, we pick a random,
19250 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19251 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19252 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'
19253 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'
19254 ;;
19255 irix5* | irix6*)
19256 case $cc_basename in
19257 CC*)
19258 # SGI C++
19259 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'
19260
19261 # Archives containing C++ object files must be created using
19262 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19263 # necessary to make sure instantiated templates are included
19264 # in the archive.
19265 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19266 ;;
19267 *)
19268 if test "$GXX" = yes; then
19269 if test "$with_gnu_ld" = no; then
19270 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'
19271 else
19272 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'
19273 fi
19274 fi
19275 link_all_deplibs_CXX=yes
19276 ;;
19277 esac
19278 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19279 hardcode_libdir_separator_CXX=:
19280 inherit_rpath_CXX=yes
19281 ;;
19282
19283 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19284 case $cc_basename in
19285 KCC*)
19286 # Kuck and Associates, Inc. (KAI) C++ Compiler
19287
19288 # KCC will only create a shared library if the output file
19289 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19290 # to its proper name (with version) after linking.
19291 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'
19292 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'
19293 # Commands to make compiler produce verbose output that lists
19294 # what "hidden" libraries, object files and flags are used when
19295 # linking a shared library.
19296 #
19297 # There doesn't appear to be a way to prevent this compiler from
19298 # explicitly linking system object files so we need to strip them
19299 # from the output so that they don't get included in the library
19300 # dependencies.
19301 output_verbose_link_cmd='templist=`$CC $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"'
19302
19303 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19304 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19305
19306 # Archives containing C++ object files must be created using
19307 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19308 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19309 ;;
19310 icpc* | ecpc* )
19311 # Intel C++
19312 with_gnu_ld=yes
19313 # version 8.0 and above of icpc choke on multiply defined symbols
19314 # if we add $predep_objects and $postdep_objects, however 7.1 and
19315 # earlier do not add the objects themselves.
19316 case `$CC -V 2>&1` in
19317 *"Version 7."*)
19318 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19319 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'
19320 ;;
19321 *) # Version 8.0 or newer
19322 tmp_idyn=
19323 case $host_cpu in
19324 ia64*) tmp_idyn=' -i_dynamic';;
19325 esac
19326 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19327 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'
19328 ;;
19329 esac
19330 archive_cmds_need_lc_CXX=no
19331 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19332 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19333 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19334 ;;
19335 pgCC* | pgcpp*)
19336 # Portland Group C++ compiler
19337 case `$CC -V` in
19338 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19339 prelink_cmds_CXX='tpldir=Template.dir~
19340 rm -rf $tpldir~
19341 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19342 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19343 old_archive_cmds_CXX='tpldir=Template.dir~
19344 rm -rf $tpldir~
19345 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19346 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19347 $RANLIB $oldlib'
19348 archive_cmds_CXX='tpldir=Template.dir~
19349 rm -rf $tpldir~
19350 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19351 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19352 archive_expsym_cmds_CXX='tpldir=Template.dir~
19353 rm -rf $tpldir~
19354 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19355 $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'
19356 ;;
19357 *) # Version 6 and above use weak symbols
19358 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19359 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'
19360 ;;
19361 esac
19362
19363 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19364 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19365 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'
19366 ;;
19367 cxx*)
19368 # Compaq C++
19369 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19370 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'
19371
19372 runpath_var=LD_RUN_PATH
19373 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19374 hardcode_libdir_separator_CXX=:
19375
19376 # Commands to make compiler produce verbose output that lists
19377 # what "hidden" libraries, object files and flags are used when
19378 # linking a shared library.
19379 #
19380 # There doesn't appear to be a way to prevent this compiler from
19381 # explicitly linking system object files so we need to strip them
19382 # from the output so that they don't get included in the library
19383 # dependencies.
19384 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'
19385 ;;
19386 xl* | mpixl* | bgxl*)
19387 # IBM XL 8.0 on PPC, with GNU ld
19388 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19389 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19390 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19391 if test "x$supports_anon_versioning" = xyes; then
19392 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19393 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19394 echo "local: *; };" >> $output_objdir/$libname.ver~
19395 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19396 fi
19397 ;;
19398 *)
19399 case `$CC -V 2>&1 | sed 5q` in
19400 *Sun\ C*)
19401 # Sun C++ 5.9
19402 no_undefined_flag_CXX=' -zdefs'
19403 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19404 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'
19405 hardcode_libdir_flag_spec_CXX='-R$libdir'
19406 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'
19407 compiler_needs_object_CXX=yes
19408
19409 # Not sure whether something based on
19410 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19411 # would be better.
19412 output_verbose_link_cmd='func_echo_all'
19413
19414 # Archives containing C++ object files must be created using
19415 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19416 # necessary to make sure instantiated templates are included
19417 # in the archive.
19418 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19419 ;;
19420 esac
19421 ;;
19422 esac
19423 ;;
19424
19425 lynxos*)
19426 # FIXME: insert proper C++ library support
19427 ld_shlibs_CXX=no
19428 ;;
19429
19430 m88k*)
19431 # FIXME: insert proper C++ library support
19432 ld_shlibs_CXX=no
19433 ;;
19434
19435 mvs*)
19436 case $cc_basename in
19437 cxx*)
19438 # FIXME: insert proper C++ library support
19439 ld_shlibs_CXX=no
19440 ;;
19441 *)
19442 # FIXME: insert proper C++ library support
19443 ld_shlibs_CXX=no
19444 ;;
19445 esac
19446 ;;
19447
19448 netbsd*)
19449 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19450 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19451 wlarc=
19452 hardcode_libdir_flag_spec_CXX='-R$libdir'
19453 hardcode_direct_CXX=yes
19454 hardcode_shlibpath_var_CXX=no
19455 fi
19456 # Workaround some broken pre-1.5 toolchains
19457 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19458 ;;
19459
19460 *nto* | *qnx*)
19461 ld_shlibs_CXX=yes
19462 ;;
19463
19464 openbsd2*)
19465 # C++ shared libraries are fairly broken
19466 ld_shlibs_CXX=no
19467 ;;
19468
19469 openbsd*)
19470 if test -f /usr/libexec/ld.so; then
19471 hardcode_direct_CXX=yes
19472 hardcode_shlibpath_var_CXX=no
19473 hardcode_direct_absolute_CXX=yes
19474 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19475 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19476 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19477 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19478 export_dynamic_flag_spec_CXX='${wl}-E'
19479 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19480 fi
19481 output_verbose_link_cmd=func_echo_all
19482 else
19483 ld_shlibs_CXX=no
19484 fi
19485 ;;
19486
19487 osf3* | osf4* | osf5*)
19488 case $cc_basename in
19489 KCC*)
19490 # Kuck and Associates, Inc. (KAI) C++ Compiler
19491
19492 # KCC will only create a shared library if the output file
19493 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19494 # to its proper name (with version) after linking.
19495 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'
19496
19497 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19498 hardcode_libdir_separator_CXX=:
19499
19500 # Archives containing C++ object files must be created using
19501 # the KAI C++ compiler.
19502 case $host in
19503 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19504 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19505 esac
19506 ;;
19507 RCC*)
19508 # Rational C++ 2.4.1
19509 # FIXME: insert proper C++ library support
19510 ld_shlibs_CXX=no
19511 ;;
19512 cxx*)
19513 case $host in
19514 osf3*)
19515 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19516 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'
19517 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19518 ;;
19519 *)
19520 allow_undefined_flag_CXX=' -expect_unresolved \*'
19521 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'
19522 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19523 echo "-hidden">> $lib.exp~
19524 $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~
19525 $RM $lib.exp'
19526 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19527 ;;
19528 esac
19529
19530 hardcode_libdir_separator_CXX=:
19531
19532 # Commands to make compiler produce verbose output that lists
19533 # what "hidden" libraries, object files and flags are used when
19534 # linking a shared library.
19535 #
19536 # There doesn't appear to be a way to prevent this compiler from
19537 # explicitly linking system object files so we need to strip them
19538 # from the output so that they don't get included in the library
19539 # dependencies.
19540 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"'
19541 ;;
19542 *)
19543 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19544 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19545 case $host in
19546 osf3*)
19547 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'
19548 ;;
19549 *)
19550 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'
19551 ;;
19552 esac
19553
19554 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19555 hardcode_libdir_separator_CXX=:
19556
19557 # Commands to make compiler produce verbose output that lists
19558 # what "hidden" libraries, object files and flags are used when
19559 # linking a shared library.
19560 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19561
19562 else
19563 # FIXME: insert proper C++ library support
19564 ld_shlibs_CXX=no
19565 fi
19566 ;;
19567 esac
19568 ;;
19569
19570 psos*)
19571 # FIXME: insert proper C++ library support
19572 ld_shlibs_CXX=no
19573 ;;
19574
19575 sunos4*)
19576 case $cc_basename in
19577 CC*)
19578 # Sun C++ 4.x
19579 # FIXME: insert proper C++ library support
19580 ld_shlibs_CXX=no
19581 ;;
19582 lcc*)
19583 # Lucid
19584 # FIXME: insert proper C++ library support
19585 ld_shlibs_CXX=no
19586 ;;
19587 *)
19588 # FIXME: insert proper C++ library support
19589 ld_shlibs_CXX=no
19590 ;;
19591 esac
19592 ;;
19593
19594 solaris*)
19595 case $cc_basename in
19596 CC*)
19597 # Sun C++ 4.2, 5.x and Centerline C++
19598 archive_cmds_need_lc_CXX=yes
19599 no_undefined_flag_CXX=' -zdefs'
19600 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19601 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19602 $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'
19603
19604 hardcode_libdir_flag_spec_CXX='-R$libdir'
19605 hardcode_shlibpath_var_CXX=no
19606 case $host_os in
19607 solaris2.[0-5] | solaris2.[0-5].*) ;;
19608 *)
19609 # The compiler driver will combine and reorder linker options,
19610 # but understands `-z linker_flag'.
19611 # Supported since Solaris 2.6 (maybe 2.5.1?)
19612 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19613 ;;
19614 esac
19615 link_all_deplibs_CXX=yes
19616
19617 output_verbose_link_cmd='func_echo_all'
19618
19619 # Archives containing C++ object files must be created using
19620 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19621 # necessary to make sure instantiated templates are included
19622 # in the archive.
19623 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19624 ;;
19625 gcx*)
19626 # Green Hills C++ Compiler
19627 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19628
19629 # The C++ compiler must be used to create the archive.
19630 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19631 ;;
19632 *)
19633 # GNU C++ compiler with Solaris linker
19634 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19635 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19636 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19637 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19638 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19639 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19640
19641 # Commands to make compiler produce verbose output that lists
19642 # what "hidden" libraries, object files and flags are used when
19643 # linking a shared library.
19644 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19645 else
19646 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19647 # platform.
19648 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19649 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19650 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19651
19652 # Commands to make compiler produce verbose output that lists
19653 # what "hidden" libraries, object files and flags are used when
19654 # linking a shared library.
19655 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19656 fi
19657
19658 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19659 case $host_os in
19660 solaris2.[0-5] | solaris2.[0-5].*) ;;
19661 *)
19662 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19663 ;;
19664 esac
19665 fi
19666 ;;
19667 esac
19668 ;;
19669
19670 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19671 no_undefined_flag_CXX='${wl}-z,text'
19672 archive_cmds_need_lc_CXX=no
19673 hardcode_shlibpath_var_CXX=no
19674 runpath_var='LD_RUN_PATH'
19675
19676 case $cc_basename in
19677 CC*)
19678 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19679 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19680 ;;
19681 *)
19682 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19683 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19684 ;;
19685 esac
19686 ;;
19687
19688 sysv5* | sco3.2v5* | sco5v6*)
19689 # Note: We can NOT use -z defs as we might desire, because we do not
19690 # link with -lc, and that would cause any symbols used from libc to
19691 # always be unresolved, which means just about no library would
19692 # ever link correctly. If we're not using GNU ld we use -z text
19693 # though, which does catch some bad symbols but isn't as heavy-handed
19694 # as -z defs.
19695 no_undefined_flag_CXX='${wl}-z,text'
19696 allow_undefined_flag_CXX='${wl}-z,nodefs'
19697 archive_cmds_need_lc_CXX=no
19698 hardcode_shlibpath_var_CXX=no
19699 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19700 hardcode_libdir_separator_CXX=':'
19701 link_all_deplibs_CXX=yes
19702 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19703 runpath_var='LD_RUN_PATH'
19704
19705 case $cc_basename in
19706 CC*)
19707 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19708 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19709 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19710 '"$old_archive_cmds_CXX"
19711 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19712 '"$reload_cmds_CXX"
19713 ;;
19714 *)
19715 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19716 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19717 ;;
19718 esac
19719 ;;
19720
19721 tandem*)
19722 case $cc_basename in
19723 NCC*)
19724 # NonStop-UX NCC 3.20
19725 # FIXME: insert proper C++ library support
19726 ld_shlibs_CXX=no
19727 ;;
19728 *)
19729 # FIXME: insert proper C++ library support
19730 ld_shlibs_CXX=no
19731 ;;
19732 esac
19733 ;;
19734
19735 vxworks*)
19736 # FIXME: insert proper C++ library support
19737 ld_shlibs_CXX=no
19738 ;;
19739
19740 *)
19741 # FIXME: insert proper C++ library support
19742 ld_shlibs_CXX=no
19743 ;;
19744 esac
19745
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19747 $as_echo "$ld_shlibs_CXX" >&6; }
19748 test "$ld_shlibs_CXX" = no && can_build_shared=no
19749
19750 GCC_CXX="$GXX"
19751 LD_CXX="$LD"
19752
19753 ## CAVEAT EMPTOR:
19754 ## There is no encapsulation within the following macros, do not change
19755 ## the running order or otherwise move them around unless you know exactly
19756 ## what you are doing...
19757 # Dependencies to place before and after the object being linked:
19758 predep_objects_CXX=
19759 postdep_objects_CXX=
19760 predeps_CXX=
19761 postdeps_CXX=
19762 compiler_lib_search_path_CXX=
19763
19764 cat > conftest.$ac_ext <<_LT_EOF
19765 class Foo
19766 {
19767 public:
19768 Foo (void) { a = 0; }
19769 private:
19770 int a;
19771 };
19772 _LT_EOF
19773
19774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19775 (eval $ac_compile) 2>&5
19776 ac_status=$?
19777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19778 test $ac_status = 0; }; then
19779 # Parse the compiler output and extract the necessary
19780 # objects, libraries and library flags.
19781
19782 # Sentinel used to keep track of whether or not we are before
19783 # the conftest object file.
19784 pre_test_object_deps_done=no
19785
19786 for p in `eval "$output_verbose_link_cmd"`; do
19787 case $p in
19788
19789 -L* | -R* | -l*)
19790 # Some compilers place space between "-{L,R}" and the path.
19791 # Remove the space.
19792 if test $p = "-L" ||
19793 test $p = "-R"; then
19794 prev=$p
19795 continue
19796 else
19797 prev=
19798 fi
19799
19800 if test "$pre_test_object_deps_done" = no; then
19801 case $p in
19802 -L* | -R*)
19803 # Internal compiler library paths should come after those
19804 # provided the user. The postdeps already come after the
19805 # user supplied libs so there is no need to process them.
19806 if test -z "$compiler_lib_search_path_CXX"; then
19807 compiler_lib_search_path_CXX="${prev}${p}"
19808 else
19809 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19810 fi
19811 ;;
19812 # The "-l" case would never come before the object being
19813 # linked, so don't bother handling this case.
19814 esac
19815 else
19816 if test -z "$postdeps_CXX"; then
19817 postdeps_CXX="${prev}${p}"
19818 else
19819 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19820 fi
19821 fi
19822 ;;
19823
19824 *.$objext)
19825 # This assumes that the test object file only shows up
19826 # once in the compiler output.
19827 if test "$p" = "conftest.$objext"; then
19828 pre_test_object_deps_done=yes
19829 continue
19830 fi
19831
19832 if test "$pre_test_object_deps_done" = no; then
19833 if test -z "$predep_objects_CXX"; then
19834 predep_objects_CXX="$p"
19835 else
19836 predep_objects_CXX="$predep_objects_CXX $p"
19837 fi
19838 else
19839 if test -z "$postdep_objects_CXX"; then
19840 postdep_objects_CXX="$p"
19841 else
19842 postdep_objects_CXX="$postdep_objects_CXX $p"
19843 fi
19844 fi
19845 ;;
19846
19847 *) ;; # Ignore the rest.
19848
19849 esac
19850 done
19851
19852 # Clean up.
19853 rm -f a.out a.exe
19854 else
19855 echo "libtool.m4: error: problem compiling CXX test program"
19856 fi
19857
19858 $RM -f confest.$objext
19859
19860 # PORTME: override above test on systems where it is broken
19861 case $host_os in
19862 interix[3-9]*)
19863 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19864 # hack all around it, let's just trust "g++" to DTRT.
19865 predep_objects_CXX=
19866 postdep_objects_CXX=
19867 postdeps_CXX=
19868 ;;
19869
19870 linux*)
19871 case `$CC -V 2>&1 | sed 5q` in
19872 *Sun\ C*)
19873 # Sun C++ 5.9
19874
19875 # The more standards-conforming stlport4 library is
19876 # incompatible with the Cstd library. Avoid specifying
19877 # it if it's in CXXFLAGS. Ignore libCrun as
19878 # -library=stlport4 depends on it.
19879 case " $CXX $CXXFLAGS " in
19880 *" -library=stlport4 "*)
19881 solaris_use_stlport4=yes
19882 ;;
19883 esac
19884
19885 if test "$solaris_use_stlport4" != yes; then
19886 postdeps_CXX='-library=Cstd -library=Crun'
19887 fi
19888 ;;
19889 esac
19890 ;;
19891
19892 solaris*)
19893 case $cc_basename in
19894 CC*)
19895 # The more standards-conforming stlport4 library is
19896 # incompatible with the Cstd library. Avoid specifying
19897 # it if it's in CXXFLAGS. Ignore libCrun as
19898 # -library=stlport4 depends on it.
19899 case " $CXX $CXXFLAGS " in
19900 *" -library=stlport4 "*)
19901 solaris_use_stlport4=yes
19902 ;;
19903 esac
19904
19905 # Adding this requires a known-good setup of shared libraries for
19906 # Sun compiler versions before 5.6, else PIC objects from an old
19907 # archive will be linked into the output, leading to subtle bugs.
19908 if test "$solaris_use_stlport4" != yes; then
19909 postdeps_CXX='-library=Cstd -library=Crun'
19910 fi
19911 ;;
19912 esac
19913 ;;
19914 esac
19915
19916
19917 case " $postdeps_CXX " in
19918 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19919 esac
19920 compiler_lib_search_dirs_CXX=
19921 if test -n "${compiler_lib_search_path_CXX}"; then
19922 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19923 fi
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
19949
19950
19951
19952
19953
19954
19955 lt_prog_compiler_wl_CXX=
19956 lt_prog_compiler_pic_CXX=
19957 lt_prog_compiler_static_CXX=
19958
19959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19960 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19961
19962 # C++ specific cases for pic, static, wl, etc.
19963 if test "$GXX" = yes; then
19964 lt_prog_compiler_wl_CXX='-Wl,'
19965 lt_prog_compiler_static_CXX='-static'
19966
19967 case $host_os in
19968 aix*)
19969 # All AIX code is PIC.
19970 if test "$host_cpu" = ia64; then
19971 # AIX 5 now supports IA64 processor
19972 lt_prog_compiler_static_CXX='-Bstatic'
19973 fi
19974 ;;
19975
19976 amigaos*)
19977 case $host_cpu in
19978 powerpc)
19979 # see comment about AmigaOS4 .so support
19980 lt_prog_compiler_pic_CXX='-fPIC'
19981 ;;
19982 m68k)
19983 # FIXME: we need at least 68020 code to build shared libraries, but
19984 # adding the `-m68020' flag to GCC prevents building anything better,
19985 # like `-m68040'.
19986 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19987 ;;
19988 esac
19989 ;;
19990
19991 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19992 # PIC is the default for these OSes.
19993 ;;
19994 mingw* | cygwin* | os2* | pw32* | cegcc*)
19995 # This hack is so that the source file can tell whether it is being
19996 # built for inclusion in a dll (and should export symbols for example).
19997 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19998 # (--disable-auto-import) libraries
19999 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20000 ;;
20001 darwin* | rhapsody*)
20002 # PIC is the default on this platform
20003 # Common symbols not allowed in MH_DYLIB files
20004 lt_prog_compiler_pic_CXX='-fno-common'
20005 ;;
20006 *djgpp*)
20007 # DJGPP does not support shared libraries at all
20008 lt_prog_compiler_pic_CXX=
20009 ;;
20010 haiku*)
20011 # PIC is the default for Haiku.
20012 # The "-static" flag exists, but is broken.
20013 lt_prog_compiler_static_CXX=
20014 ;;
20015 interix[3-9]*)
20016 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20017 # Instead, we relocate shared libraries at runtime.
20018 ;;
20019 sysv4*MP*)
20020 if test -d /usr/nec; then
20021 lt_prog_compiler_pic_CXX=-Kconform_pic
20022 fi
20023 ;;
20024 hpux*)
20025 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20026 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20027 # sets the default TLS model and affects inlining.
20028 case $host_cpu in
20029 hppa*64*)
20030 ;;
20031 *)
20032 lt_prog_compiler_pic_CXX='-fPIC'
20033 ;;
20034 esac
20035 ;;
20036 *qnx* | *nto*)
20037 # QNX uses GNU C++, but need to define -shared option too, otherwise
20038 # it will coredump.
20039 lt_prog_compiler_pic_CXX='-fPIC -shared'
20040 ;;
20041 *)
20042 lt_prog_compiler_pic_CXX='-fPIC'
20043 ;;
20044 esac
20045 else
20046 case $host_os in
20047 aix[4-9]*)
20048 # All AIX code is PIC.
20049 if test "$host_cpu" = ia64; then
20050 # AIX 5 now supports IA64 processor
20051 lt_prog_compiler_static_CXX='-Bstatic'
20052 else
20053 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20054 fi
20055 ;;
20056 chorus*)
20057 case $cc_basename in
20058 cxch68*)
20059 # Green Hills C++ Compiler
20060 # _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"
20061 ;;
20062 esac
20063 ;;
20064 dgux*)
20065 case $cc_basename in
20066 ec++*)
20067 lt_prog_compiler_pic_CXX='-KPIC'
20068 ;;
20069 ghcx*)
20070 # Green Hills C++ Compiler
20071 lt_prog_compiler_pic_CXX='-pic'
20072 ;;
20073 *)
20074 ;;
20075 esac
20076 ;;
20077 freebsd* | dragonfly*)
20078 # FreeBSD uses GNU C++
20079 ;;
20080 hpux9* | hpux10* | hpux11*)
20081 case $cc_basename in
20082 CC*)
20083 lt_prog_compiler_wl_CXX='-Wl,'
20084 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20085 if test "$host_cpu" != ia64; then
20086 lt_prog_compiler_pic_CXX='+Z'
20087 fi
20088 ;;
20089 aCC*)
20090 lt_prog_compiler_wl_CXX='-Wl,'
20091 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20092 case $host_cpu in
20093 hppa*64*|ia64*)
20094 # +Z the default
20095 ;;
20096 *)
20097 lt_prog_compiler_pic_CXX='+Z'
20098 ;;
20099 esac
20100 ;;
20101 *)
20102 ;;
20103 esac
20104 ;;
20105 interix*)
20106 # This is c89, which is MS Visual C++ (no shared libs)
20107 # Anyone wants to do a port?
20108 ;;
20109 irix5* | irix6* | nonstopux*)
20110 case $cc_basename in
20111 CC*)
20112 lt_prog_compiler_wl_CXX='-Wl,'
20113 lt_prog_compiler_static_CXX='-non_shared'
20114 # CC pic flag -KPIC is the default.
20115 ;;
20116 *)
20117 ;;
20118 esac
20119 ;;
20120 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20121 case $cc_basename in
20122 KCC*)
20123 # KAI C++ Compiler
20124 lt_prog_compiler_wl_CXX='--backend -Wl,'
20125 lt_prog_compiler_pic_CXX='-fPIC'
20126 ;;
20127 ecpc* )
20128 # old Intel C++ for x86_64 which still supported -KPIC.
20129 lt_prog_compiler_wl_CXX='-Wl,'
20130 lt_prog_compiler_pic_CXX='-KPIC'
20131 lt_prog_compiler_static_CXX='-static'
20132 ;;
20133 icpc* )
20134 # Intel C++, used to be incompatible with GCC.
20135 # ICC 10 doesn't accept -KPIC any more.
20136 lt_prog_compiler_wl_CXX='-Wl,'
20137 lt_prog_compiler_pic_CXX='-fPIC'
20138 lt_prog_compiler_static_CXX='-static'
20139 ;;
20140 pgCC* | pgcpp*)
20141 # Portland Group C++ compiler
20142 lt_prog_compiler_wl_CXX='-Wl,'
20143 lt_prog_compiler_pic_CXX='-fpic'
20144 lt_prog_compiler_static_CXX='-Bstatic'
20145 ;;
20146 cxx*)
20147 # Compaq C++
20148 # Make sure the PIC flag is empty. It appears that all Alpha
20149 # Linux and Compaq Tru64 Unix objects are PIC.
20150 lt_prog_compiler_pic_CXX=
20151 lt_prog_compiler_static_CXX='-non_shared'
20152 ;;
20153 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20154 # IBM XL 8.0, 9.0 on PPC and BlueGene
20155 lt_prog_compiler_wl_CXX='-Wl,'
20156 lt_prog_compiler_pic_CXX='-qpic'
20157 lt_prog_compiler_static_CXX='-qstaticlink'
20158 ;;
20159 *)
20160 case `$CC -V 2>&1 | sed 5q` in
20161 *Sun\ C*)
20162 # Sun C++ 5.9
20163 lt_prog_compiler_pic_CXX='-KPIC'
20164 lt_prog_compiler_static_CXX='-Bstatic'
20165 lt_prog_compiler_wl_CXX='-Qoption ld '
20166 ;;
20167 esac
20168 ;;
20169 esac
20170 ;;
20171 lynxos*)
20172 ;;
20173 m88k*)
20174 ;;
20175 mvs*)
20176 case $cc_basename in
20177 cxx*)
20178 lt_prog_compiler_pic_CXX='-W c,exportall'
20179 ;;
20180 *)
20181 ;;
20182 esac
20183 ;;
20184 netbsd*)
20185 ;;
20186 *qnx* | *nto*)
20187 # QNX uses GNU C++, but need to define -shared option too, otherwise
20188 # it will coredump.
20189 lt_prog_compiler_pic_CXX='-fPIC -shared'
20190 ;;
20191 osf3* | osf4* | osf5*)
20192 case $cc_basename in
20193 KCC*)
20194 lt_prog_compiler_wl_CXX='--backend -Wl,'
20195 ;;
20196 RCC*)
20197 # Rational C++ 2.4.1
20198 lt_prog_compiler_pic_CXX='-pic'
20199 ;;
20200 cxx*)
20201 # Digital/Compaq C++
20202 lt_prog_compiler_wl_CXX='-Wl,'
20203 # Make sure the PIC flag is empty. It appears that all Alpha
20204 # Linux and Compaq Tru64 Unix objects are PIC.
20205 lt_prog_compiler_pic_CXX=
20206 lt_prog_compiler_static_CXX='-non_shared'
20207 ;;
20208 *)
20209 ;;
20210 esac
20211 ;;
20212 psos*)
20213 ;;
20214 solaris*)
20215 case $cc_basename in
20216 CC*)
20217 # Sun C++ 4.2, 5.x and Centerline C++
20218 lt_prog_compiler_pic_CXX='-KPIC'
20219 lt_prog_compiler_static_CXX='-Bstatic'
20220 lt_prog_compiler_wl_CXX='-Qoption ld '
20221 ;;
20222 gcx*)
20223 # Green Hills C++ Compiler
20224 lt_prog_compiler_pic_CXX='-PIC'
20225 ;;
20226 *)
20227 ;;
20228 esac
20229 ;;
20230 sunos4*)
20231 case $cc_basename in
20232 CC*)
20233 # Sun C++ 4.x
20234 lt_prog_compiler_pic_CXX='-pic'
20235 lt_prog_compiler_static_CXX='-Bstatic'
20236 ;;
20237 lcc*)
20238 # Lucid
20239 lt_prog_compiler_pic_CXX='-pic'
20240 ;;
20241 *)
20242 ;;
20243 esac
20244 ;;
20245 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20246 case $cc_basename in
20247 CC*)
20248 lt_prog_compiler_wl_CXX='-Wl,'
20249 lt_prog_compiler_pic_CXX='-KPIC'
20250 lt_prog_compiler_static_CXX='-Bstatic'
20251 ;;
20252 esac
20253 ;;
20254 tandem*)
20255 case $cc_basename in
20256 NCC*)
20257 # NonStop-UX NCC 3.20
20258 lt_prog_compiler_pic_CXX='-KPIC'
20259 ;;
20260 *)
20261 ;;
20262 esac
20263 ;;
20264 vxworks*)
20265 ;;
20266 *)
20267 lt_prog_compiler_can_build_shared_CXX=no
20268 ;;
20269 esac
20270 fi
20271
20272 case $host_os in
20273 # For platforms which do not support PIC, -DPIC is meaningless:
20274 *djgpp*)
20275 lt_prog_compiler_pic_CXX=
20276 ;;
20277 *)
20278 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20279 ;;
20280 esac
20281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20282 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20283
20284
20285
20286 #
20287 # Check to make sure the PIC flag actually works.
20288 #
20289 if test -n "$lt_prog_compiler_pic_CXX"; then
20290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20291 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20292 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20293 $as_echo_n "(cached) " >&6
20294 else
20295 lt_cv_prog_compiler_pic_works_CXX=no
20296 ac_outfile=conftest.$ac_objext
20297 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20298 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20299 # Insert the option either (1) after the last *FLAGS variable, or
20300 # (2) before a word containing "conftest.", or (3) at the end.
20301 # Note that $ac_compile itself does not contain backslashes and begins
20302 # with a dollar sign (not a hyphen), so the echo should work correctly.
20303 # The option is referenced via a variable to avoid confusing sed.
20304 lt_compile=`echo "$ac_compile" | $SED \
20305 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20306 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20307 -e 's:$: $lt_compiler_flag:'`
20308 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20309 (eval "$lt_compile" 2>conftest.err)
20310 ac_status=$?
20311 cat conftest.err >&5
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 if (exit $ac_status) && test -s "$ac_outfile"; then
20314 # The compiler can only warn and ignore the option if not recognized
20315 # So say no if there are warnings other than the usual output.
20316 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20317 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20318 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20319 lt_cv_prog_compiler_pic_works_CXX=yes
20320 fi
20321 fi
20322 $RM conftest*
20323
20324 fi
20325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20326 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20327
20328 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20329 case $lt_prog_compiler_pic_CXX in
20330 "" | " "*) ;;
20331 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20332 esac
20333 else
20334 lt_prog_compiler_pic_CXX=
20335 lt_prog_compiler_can_build_shared_CXX=no
20336 fi
20337
20338 fi
20339
20340
20341
20342 #
20343 # Check to make sure the static flag actually works.
20344 #
20345 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20347 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20348 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20349 $as_echo_n "(cached) " >&6
20350 else
20351 lt_cv_prog_compiler_static_works_CXX=no
20352 save_LDFLAGS="$LDFLAGS"
20353 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20354 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20355 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20356 # The linker can only warn and ignore the option if not recognized
20357 # So say no if there are warnings
20358 if test -s conftest.err; then
20359 # Append any errors to the config.log.
20360 cat conftest.err 1>&5
20361 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20362 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20363 if diff conftest.exp conftest.er2 >/dev/null; then
20364 lt_cv_prog_compiler_static_works_CXX=yes
20365 fi
20366 else
20367 lt_cv_prog_compiler_static_works_CXX=yes
20368 fi
20369 fi
20370 $RM -r conftest*
20371 LDFLAGS="$save_LDFLAGS"
20372
20373 fi
20374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20375 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20376
20377 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20378 :
20379 else
20380 lt_prog_compiler_static_CXX=
20381 fi
20382
20383
20384
20385
20386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20387 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20388 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20389 $as_echo_n "(cached) " >&6
20390 else
20391 lt_cv_prog_compiler_c_o_CXX=no
20392 $RM -r conftest 2>/dev/null
20393 mkdir conftest
20394 cd conftest
20395 mkdir out
20396 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20397
20398 lt_compiler_flag="-o out/conftest2.$ac_objext"
20399 # Insert the option either (1) after the last *FLAGS variable, or
20400 # (2) before a word containing "conftest.", or (3) at the end.
20401 # Note that $ac_compile itself does not contain backslashes and begins
20402 # with a dollar sign (not a hyphen), so the echo should work correctly.
20403 lt_compile=`echo "$ac_compile" | $SED \
20404 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20405 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20406 -e 's:$: $lt_compiler_flag:'`
20407 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20408 (eval "$lt_compile" 2>out/conftest.err)
20409 ac_status=$?
20410 cat out/conftest.err >&5
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20413 then
20414 # The compiler can only warn and ignore the option if not recognized
20415 # So say no if there are warnings
20416 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20417 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20418 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20419 lt_cv_prog_compiler_c_o_CXX=yes
20420 fi
20421 fi
20422 chmod u+w . 2>&5
20423 $RM conftest*
20424 # SGI C++ compiler will create directory out/ii_files/ for
20425 # template instantiation
20426 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20427 $RM out/* && rmdir out
20428 cd ..
20429 $RM -r conftest
20430 $RM conftest*
20431
20432 fi
20433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20434 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20435
20436
20437
20438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20439 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20440 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20441 $as_echo_n "(cached) " >&6
20442 else
20443 lt_cv_prog_compiler_c_o_CXX=no
20444 $RM -r conftest 2>/dev/null
20445 mkdir conftest
20446 cd conftest
20447 mkdir out
20448 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20449
20450 lt_compiler_flag="-o out/conftest2.$ac_objext"
20451 # Insert the option either (1) after the last *FLAGS variable, or
20452 # (2) before a word containing "conftest.", or (3) at the end.
20453 # Note that $ac_compile itself does not contain backslashes and begins
20454 # with a dollar sign (not a hyphen), so the echo should work correctly.
20455 lt_compile=`echo "$ac_compile" | $SED \
20456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20458 -e 's:$: $lt_compiler_flag:'`
20459 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20460 (eval "$lt_compile" 2>out/conftest.err)
20461 ac_status=$?
20462 cat out/conftest.err >&5
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20465 then
20466 # The compiler can only warn and ignore the option if not recognized
20467 # So say no if there are warnings
20468 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20469 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20470 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20471 lt_cv_prog_compiler_c_o_CXX=yes
20472 fi
20473 fi
20474 chmod u+w . 2>&5
20475 $RM conftest*
20476 # SGI C++ compiler will create directory out/ii_files/ for
20477 # template instantiation
20478 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20479 $RM out/* && rmdir out
20480 cd ..
20481 $RM -r conftest
20482 $RM conftest*
20483
20484 fi
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20486 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20487
20488
20489
20490
20491 hard_links="nottested"
20492 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20493 # do not overwrite the value of need_locks provided by the user
20494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20495 $as_echo_n "checking if we can lock with hard links... " >&6; }
20496 hard_links=yes
20497 $RM conftest*
20498 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20499 touch conftest.a
20500 ln conftest.a conftest.b 2>&5 || hard_links=no
20501 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20503 $as_echo "$hard_links" >&6; }
20504 if test "$hard_links" = no; then
20505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20506 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20507 need_locks=warn
20508 fi
20509 else
20510 need_locks=no
20511 fi
20512
20513
20514
20515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20516 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20517
20518 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20519 case $host_os in
20520 aix[4-9]*)
20521 # If we're using GNU nm, then we don't want the "-C" option.
20522 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20523 # Also, AIX nm treats weak defined symbols like other global defined
20524 # symbols, whereas GNU nm marks them as "W".
20525 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20526 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'
20527 else
20528 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'
20529 fi
20530 ;;
20531 pw32*)
20532 export_symbols_cmds_CXX="$ltdll_cmds"
20533 ;;
20534 cygwin* | mingw* | cegcc*)
20535 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'
20536 ;;
20537 *)
20538 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20539 ;;
20540 esac
20541 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20542
20543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20544 $as_echo "$ld_shlibs_CXX" >&6; }
20545 test "$ld_shlibs_CXX" = no && can_build_shared=no
20546
20547 with_gnu_ld_CXX=$with_gnu_ld
20548
20549
20550
20551
20552
20553
20554 #
20555 # Do we need to explicitly link libc?
20556 #
20557 case "x$archive_cmds_need_lc_CXX" in
20558 x|xyes)
20559 # Assume -lc should be added
20560 archive_cmds_need_lc_CXX=yes
20561
20562 if test "$enable_shared" = yes && test "$GCC" = yes; then
20563 case $archive_cmds_CXX in
20564 *'~'*)
20565 # FIXME: we may have to deal with multi-command sequences.
20566 ;;
20567 '$CC '*)
20568 # Test whether the compiler implicitly links with -lc since on some
20569 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20570 # to ld, don't add -lc before -lgcc.
20571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20572 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20573 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20574 $as_echo_n "(cached) " >&6
20575 else
20576 $RM conftest*
20577 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20578
20579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20580 (eval $ac_compile) 2>&5
20581 ac_status=$?
20582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20583 test $ac_status = 0; } 2>conftest.err; then
20584 soname=conftest
20585 lib=conftest
20586 libobjs=conftest.$ac_objext
20587 deplibs=
20588 wl=$lt_prog_compiler_wl_CXX
20589 pic_flag=$lt_prog_compiler_pic_CXX
20590 compiler_flags=-v
20591 linker_flags=-v
20592 verstring=
20593 output_objdir=.
20594 libname=conftest
20595 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20596 allow_undefined_flag_CXX=
20597 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20598 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20599 ac_status=$?
20600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20601 test $ac_status = 0; }
20602 then
20603 lt_cv_archive_cmds_need_lc_CXX=no
20604 else
20605 lt_cv_archive_cmds_need_lc_CXX=yes
20606 fi
20607 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20608 else
20609 cat conftest.err 1>&5
20610 fi
20611 $RM conftest*
20612
20613 fi
20614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20615 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20616 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20617 ;;
20618 esac
20619 fi
20620 ;;
20621 esac
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20687 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20688
20689 library_names_spec=
20690 libname_spec='lib$name'
20691 soname_spec=
20692 shrext_cmds=".so"
20693 postinstall_cmds=
20694 postuninstall_cmds=
20695 finish_cmds=
20696 finish_eval=
20697 shlibpath_var=
20698 shlibpath_overrides_runpath=unknown
20699 version_type=none
20700 dynamic_linker="$host_os ld.so"
20701 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20702 need_lib_prefix=unknown
20703 hardcode_into_libs=no
20704
20705 # when you set need_version to no, make sure it does not cause -set_version
20706 # flags to be left without arguments
20707 need_version=unknown
20708
20709 case $host_os in
20710 aix3*)
20711 version_type=linux
20712 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20713 shlibpath_var=LIBPATH
20714
20715 # AIX 3 has no versioning support, so we append a major version to the name.
20716 soname_spec='${libname}${release}${shared_ext}$major'
20717 ;;
20718
20719 aix[4-9]*)
20720 version_type=linux
20721 need_lib_prefix=no
20722 need_version=no
20723 hardcode_into_libs=yes
20724 if test "$host_cpu" = ia64; then
20725 # AIX 5 supports IA64
20726 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20727 shlibpath_var=LD_LIBRARY_PATH
20728 else
20729 # With GCC up to 2.95.x, collect2 would create an import file
20730 # for dependence libraries. The import file would start with
20731 # the line `#! .'. This would cause the generated library to
20732 # depend on `.', always an invalid library. This was fixed in
20733 # development snapshots of GCC prior to 3.0.
20734 case $host_os in
20735 aix4 | aix4.[01] | aix4.[01].*)
20736 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20737 echo ' yes '
20738 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20739 :
20740 else
20741 can_build_shared=no
20742 fi
20743 ;;
20744 esac
20745 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20746 # soname into executable. Probably we can add versioning support to
20747 # collect2, so additional links can be useful in future.
20748 if test "$aix_use_runtimelinking" = yes; then
20749 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20750 # instead of lib<name>.a to let people know that these are not
20751 # typical AIX shared libraries.
20752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20753 else
20754 # We preserve .a as extension for shared libraries through AIX4.2
20755 # and later when we are not doing run time linking.
20756 library_names_spec='${libname}${release}.a $libname.a'
20757 soname_spec='${libname}${release}${shared_ext}$major'
20758 fi
20759 shlibpath_var=LIBPATH
20760 fi
20761 ;;
20762
20763 amigaos*)
20764 case $host_cpu in
20765 powerpc)
20766 # Since July 2007 AmigaOS4 officially supports .so libraries.
20767 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20769 ;;
20770 m68k)
20771 library_names_spec='$libname.ixlibrary $libname.a'
20772 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20773 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'
20774 ;;
20775 esac
20776 ;;
20777
20778 beos*)
20779 library_names_spec='${libname}${shared_ext}'
20780 dynamic_linker="$host_os ld.so"
20781 shlibpath_var=LIBRARY_PATH
20782 ;;
20783
20784 bsdi[45]*)
20785 version_type=linux
20786 need_version=no
20787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20788 soname_spec='${libname}${release}${shared_ext}$major'
20789 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20790 shlibpath_var=LD_LIBRARY_PATH
20791 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20792 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20793 # the default ld.so.conf also contains /usr/contrib/lib and
20794 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20795 # libtool to hard-code these into programs
20796 ;;
20797
20798 cygwin* | mingw* | pw32* | cegcc*)
20799 version_type=windows
20800 shrext_cmds=".dll"
20801 need_version=no
20802 need_lib_prefix=no
20803
20804 case $GCC,$host_os in
20805 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20806 library_names_spec='$libname.dll.a'
20807 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20808 postinstall_cmds='base_file=`basename \${file}`~
20809 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20810 dldir=$destdir/`dirname \$dlpath`~
20811 test -d \$dldir || mkdir -p \$dldir~
20812 $install_prog $dir/$dlname \$dldir/$dlname~
20813 chmod a+x \$dldir/$dlname~
20814 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20815 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20816 fi'
20817 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20818 dlpath=$dir/\$dldll~
20819 $RM \$dlpath'
20820 shlibpath_overrides_runpath=yes
20821
20822 case $host_os in
20823 cygwin*)
20824 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20825 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20826
20827 ;;
20828 mingw* | cegcc*)
20829 # MinGW DLLs use traditional 'lib' prefix
20830 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20831 ;;
20832 pw32*)
20833 # pw32 DLLs use 'pw' prefix rather than 'lib'
20834 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20835 ;;
20836 esac
20837 ;;
20838
20839 *)
20840 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20841 ;;
20842 esac
20843 dynamic_linker='Win32 ld.exe'
20844 # FIXME: first we should search . and the directory the executable is in
20845 shlibpath_var=PATH
20846 ;;
20847
20848 darwin* | rhapsody*)
20849 dynamic_linker="$host_os dyld"
20850 version_type=darwin
20851 need_lib_prefix=no
20852 need_version=no
20853 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20854 soname_spec='${libname}${release}${major}$shared_ext'
20855 shlibpath_overrides_runpath=yes
20856 shlibpath_var=DYLD_LIBRARY_PATH
20857 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20858
20859 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20860 ;;
20861
20862 dgux*)
20863 version_type=linux
20864 need_lib_prefix=no
20865 need_version=no
20866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20867 soname_spec='${libname}${release}${shared_ext}$major'
20868 shlibpath_var=LD_LIBRARY_PATH
20869 ;;
20870
20871 freebsd* | dragonfly*)
20872 # DragonFly does not have aout. When/if they implement a new
20873 # versioning mechanism, adjust this.
20874 if test -x /usr/bin/objformat; then
20875 objformat=`/usr/bin/objformat`
20876 else
20877 case $host_os in
20878 freebsd[123]*) objformat=aout ;;
20879 *) objformat=elf ;;
20880 esac
20881 fi
20882 version_type=freebsd-$objformat
20883 case $version_type in
20884 freebsd-elf*)
20885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20886 need_version=no
20887 need_lib_prefix=no
20888 ;;
20889 freebsd-*)
20890 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20891 need_version=yes
20892 ;;
20893 esac
20894 shlibpath_var=LD_LIBRARY_PATH
20895 case $host_os in
20896 freebsd2*)
20897 shlibpath_overrides_runpath=yes
20898 ;;
20899 freebsd3.[01]* | freebsdelf3.[01]*)
20900 shlibpath_overrides_runpath=yes
20901 hardcode_into_libs=yes
20902 ;;
20903 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20904 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20905 shlibpath_overrides_runpath=no
20906 hardcode_into_libs=yes
20907 ;;
20908 *) # from 4.6 on, and DragonFly
20909 shlibpath_overrides_runpath=yes
20910 hardcode_into_libs=yes
20911 ;;
20912 esac
20913 ;;
20914
20915 gnu*)
20916 version_type=linux
20917 need_lib_prefix=no
20918 need_version=no
20919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20920 soname_spec='${libname}${release}${shared_ext}$major'
20921 shlibpath_var=LD_LIBRARY_PATH
20922 hardcode_into_libs=yes
20923 ;;
20924
20925 haiku*)
20926 version_type=linux
20927 need_lib_prefix=no
20928 need_version=no
20929 dynamic_linker="$host_os runtime_loader"
20930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20931 soname_spec='${libname}${release}${shared_ext}$major'
20932 shlibpath_var=LIBRARY_PATH
20933 shlibpath_overrides_runpath=yes
20934 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20935 hardcode_into_libs=yes
20936 ;;
20937
20938 hpux9* | hpux10* | hpux11*)
20939 # Give a soname corresponding to the major version so that dld.sl refuses to
20940 # link against other versions.
20941 version_type=sunos
20942 need_lib_prefix=no
20943 need_version=no
20944 case $host_cpu in
20945 ia64*)
20946 shrext_cmds='.so'
20947 hardcode_into_libs=yes
20948 dynamic_linker="$host_os dld.so"
20949 shlibpath_var=LD_LIBRARY_PATH
20950 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20952 soname_spec='${libname}${release}${shared_ext}$major'
20953 if test "X$HPUX_IA64_MODE" = X32; then
20954 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20955 else
20956 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20957 fi
20958 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20959 ;;
20960 hppa*64*)
20961 shrext_cmds='.sl'
20962 hardcode_into_libs=yes
20963 dynamic_linker="$host_os dld.sl"
20964 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20965 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20967 soname_spec='${libname}${release}${shared_ext}$major'
20968 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20969 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20970 ;;
20971 *)
20972 shrext_cmds='.sl'
20973 dynamic_linker="$host_os dld.sl"
20974 shlibpath_var=SHLIB_PATH
20975 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20977 soname_spec='${libname}${release}${shared_ext}$major'
20978 ;;
20979 esac
20980 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20981 postinstall_cmds='chmod 555 $lib'
20982 # or fails outright, so override atomically:
20983 install_override_mode=555
20984 ;;
20985
20986 interix[3-9]*)
20987 version_type=linux
20988 need_lib_prefix=no
20989 need_version=no
20990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20991 soname_spec='${libname}${release}${shared_ext}$major'
20992 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20993 shlibpath_var=LD_LIBRARY_PATH
20994 shlibpath_overrides_runpath=no
20995 hardcode_into_libs=yes
20996 ;;
20997
20998 irix5* | irix6* | nonstopux*)
20999 case $host_os in
21000 nonstopux*) version_type=nonstopux ;;
21001 *)
21002 if test "$lt_cv_prog_gnu_ld" = yes; then
21003 version_type=linux
21004 else
21005 version_type=irix
21006 fi ;;
21007 esac
21008 need_lib_prefix=no
21009 need_version=no
21010 soname_spec='${libname}${release}${shared_ext}$major'
21011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21012 case $host_os in
21013 irix5* | nonstopux*)
21014 libsuff= shlibsuff=
21015 ;;
21016 *)
21017 case $LD in # libtool.m4 will add one of these switches to LD
21018 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21019 libsuff= shlibsuff= libmagic=32-bit;;
21020 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21021 libsuff=32 shlibsuff=N32 libmagic=N32;;
21022 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21023 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21024 *) libsuff= shlibsuff= libmagic=never-match;;
21025 esac
21026 ;;
21027 esac
21028 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21029 shlibpath_overrides_runpath=no
21030 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21031 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21032 hardcode_into_libs=yes
21033 ;;
21034
21035 # No shared lib support for Linux oldld, aout, or coff.
21036 linux*oldld* | linux*aout* | linux*coff*)
21037 dynamic_linker=no
21038 ;;
21039
21040 # This must be Linux ELF.
21041 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21042 version_type=linux
21043 need_lib_prefix=no
21044 need_version=no
21045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21046 soname_spec='${libname}${release}${shared_ext}$major'
21047 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21048 shlibpath_var=LD_LIBRARY_PATH
21049 shlibpath_overrides_runpath=no
21050
21051 # Some binutils ld are patched to set DT_RUNPATH
21052 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21053 $as_echo_n "(cached) " >&6
21054 else
21055 lt_cv_shlibpath_overrides_runpath=no
21056 save_LDFLAGS=$LDFLAGS
21057 save_libdir=$libdir
21058 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21059 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21061 /* end confdefs.h. */
21062
21063 int
21064 main ()
21065 {
21066
21067 ;
21068 return 0;
21069 }
21070 _ACEOF
21071 if ac_fn_cxx_try_link "$LINENO"; then :
21072 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21073 lt_cv_shlibpath_overrides_runpath=yes
21074 fi
21075 fi
21076 rm -f core conftest.err conftest.$ac_objext \
21077 conftest$ac_exeext conftest.$ac_ext
21078 LDFLAGS=$save_LDFLAGS
21079 libdir=$save_libdir
21080
21081 fi
21082
21083 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21084
21085 # This implies no fast_install, which is unacceptable.
21086 # Some rework will be needed to allow for fast_install
21087 # before this can be enabled.
21088 hardcode_into_libs=yes
21089
21090 # Append ld.so.conf contents to the search path
21091 if test -f /etc/ld.so.conf; then
21092 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' ' '`
21093 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21094 fi
21095
21096 # We used to test for /lib/ld.so.1 and disable shared libraries on
21097 # powerpc, because MkLinux only supported shared libraries with the
21098 # GNU dynamic linker. Since this was broken with cross compilers,
21099 # most powerpc-linux boxes support dynamic linking these days and
21100 # people can always --disable-shared, the test was removed, and we
21101 # assume the GNU/Linux dynamic linker is in use.
21102 dynamic_linker='GNU/Linux ld.so'
21103 ;;
21104
21105 netbsd*)
21106 version_type=sunos
21107 need_lib_prefix=no
21108 need_version=no
21109 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21111 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21112 dynamic_linker='NetBSD (a.out) ld.so'
21113 else
21114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21115 soname_spec='${libname}${release}${shared_ext}$major'
21116 dynamic_linker='NetBSD ld.elf_so'
21117 fi
21118 shlibpath_var=LD_LIBRARY_PATH
21119 shlibpath_overrides_runpath=yes
21120 hardcode_into_libs=yes
21121 ;;
21122
21123 newsos6)
21124 version_type=linux
21125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21126 shlibpath_var=LD_LIBRARY_PATH
21127 shlibpath_overrides_runpath=yes
21128 ;;
21129
21130 *nto* | *qnx*)
21131 version_type=qnx
21132 need_lib_prefix=no
21133 need_version=no
21134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21135 soname_spec='${libname}${release}${shared_ext}$major'
21136 shlibpath_var=LD_LIBRARY_PATH
21137 shlibpath_overrides_runpath=no
21138 hardcode_into_libs=yes
21139 dynamic_linker='ldqnx.so'
21140 ;;
21141
21142 openbsd*)
21143 version_type=sunos
21144 sys_lib_dlsearch_path_spec="/usr/lib"
21145 need_lib_prefix=no
21146 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21147 case $host_os in
21148 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21149 *) need_version=no ;;
21150 esac
21151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21152 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21153 shlibpath_var=LD_LIBRARY_PATH
21154 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21155 case $host_os in
21156 openbsd2.[89] | openbsd2.[89].*)
21157 shlibpath_overrides_runpath=no
21158 ;;
21159 *)
21160 shlibpath_overrides_runpath=yes
21161 ;;
21162 esac
21163 else
21164 shlibpath_overrides_runpath=yes
21165 fi
21166 ;;
21167
21168 os2*)
21169 libname_spec='$name'
21170 shrext_cmds=".dll"
21171 need_lib_prefix=no
21172 library_names_spec='$libname${shared_ext} $libname.a'
21173 dynamic_linker='OS/2 ld.exe'
21174 shlibpath_var=LIBPATH
21175 ;;
21176
21177 osf3* | osf4* | osf5*)
21178 version_type=osf
21179 need_lib_prefix=no
21180 need_version=no
21181 soname_spec='${libname}${release}${shared_ext}$major'
21182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21183 shlibpath_var=LD_LIBRARY_PATH
21184 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21185 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21186 ;;
21187
21188 rdos*)
21189 dynamic_linker=no
21190 ;;
21191
21192 solaris*)
21193 version_type=linux
21194 need_lib_prefix=no
21195 need_version=no
21196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21197 soname_spec='${libname}${release}${shared_ext}$major'
21198 shlibpath_var=LD_LIBRARY_PATH
21199 shlibpath_overrides_runpath=yes
21200 hardcode_into_libs=yes
21201 # ldd complains unless libraries are executable
21202 postinstall_cmds='chmod +x $lib'
21203 ;;
21204
21205 sunos4*)
21206 version_type=sunos
21207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21208 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21209 shlibpath_var=LD_LIBRARY_PATH
21210 shlibpath_overrides_runpath=yes
21211 if test "$with_gnu_ld" = yes; then
21212 need_lib_prefix=no
21213 fi
21214 need_version=yes
21215 ;;
21216
21217 sysv4 | sysv4.3*)
21218 version_type=linux
21219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21220 soname_spec='${libname}${release}${shared_ext}$major'
21221 shlibpath_var=LD_LIBRARY_PATH
21222 case $host_vendor in
21223 sni)
21224 shlibpath_overrides_runpath=no
21225 need_lib_prefix=no
21226 runpath_var=LD_RUN_PATH
21227 ;;
21228 siemens)
21229 need_lib_prefix=no
21230 ;;
21231 motorola)
21232 need_lib_prefix=no
21233 need_version=no
21234 shlibpath_overrides_runpath=no
21235 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21236 ;;
21237 esac
21238 ;;
21239
21240 sysv4*MP*)
21241 if test -d /usr/nec ;then
21242 version_type=linux
21243 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21244 soname_spec='$libname${shared_ext}.$major'
21245 shlibpath_var=LD_LIBRARY_PATH
21246 fi
21247 ;;
21248
21249 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21250 version_type=freebsd-elf
21251 need_lib_prefix=no
21252 need_version=no
21253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21254 soname_spec='${libname}${release}${shared_ext}$major'
21255 shlibpath_var=LD_LIBRARY_PATH
21256 shlibpath_overrides_runpath=yes
21257 hardcode_into_libs=yes
21258 if test "$with_gnu_ld" = yes; then
21259 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21260 else
21261 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21262 case $host_os in
21263 sco3.2v5*)
21264 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21265 ;;
21266 esac
21267 fi
21268 sys_lib_dlsearch_path_spec='/usr/lib'
21269 ;;
21270
21271 tpf*)
21272 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21273 version_type=linux
21274 need_lib_prefix=no
21275 need_version=no
21276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21277 shlibpath_var=LD_LIBRARY_PATH
21278 shlibpath_overrides_runpath=no
21279 hardcode_into_libs=yes
21280 ;;
21281
21282 uts4*)
21283 version_type=linux
21284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21285 soname_spec='${libname}${release}${shared_ext}$major'
21286 shlibpath_var=LD_LIBRARY_PATH
21287 ;;
21288
21289 *)
21290 dynamic_linker=no
21291 ;;
21292 esac
21293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21294 $as_echo "$dynamic_linker" >&6; }
21295 test "$dynamic_linker" = no && can_build_shared=no
21296
21297 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21298 if test "$GCC" = yes; then
21299 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21300 fi
21301
21302 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21303 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21304 fi
21305 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21306 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21307 fi
21308
21309
21310
21311
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322
21323
21324
21325
21326
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337
21338
21339
21340
21341
21342
21343
21344
21345
21346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21347 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21348 hardcode_action_CXX=
21349 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21350 test -n "$runpath_var_CXX" ||
21351 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21352
21353 # We can hardcode non-existent directories.
21354 if test "$hardcode_direct_CXX" != no &&
21355 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21356 # have to relink, otherwise we might link with an installed library
21357 # when we should be linking with a yet-to-be-installed one
21358 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21359 test "$hardcode_minus_L_CXX" != no; then
21360 # Linking always hardcodes the temporary library directory.
21361 hardcode_action_CXX=relink
21362 else
21363 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21364 hardcode_action_CXX=immediate
21365 fi
21366 else
21367 # We cannot hardcode anything, or else we can only hardcode existing
21368 # directories.
21369 hardcode_action_CXX=unsupported
21370 fi
21371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21372 $as_echo "$hardcode_action_CXX" >&6; }
21373
21374 if test "$hardcode_action_CXX" = relink ||
21375 test "$inherit_rpath_CXX" = yes; then
21376 # Fast installation is not supported
21377 enable_fast_install=no
21378 elif test "$shlibpath_overrides_runpath" = yes ||
21379 test "$enable_shared" = no; then
21380 # Fast installation is not necessary
21381 enable_fast_install=needless
21382 fi
21383
21384
21385
21386
21387
21388
21389
21390 fi # test -n "$compiler"
21391
21392 CC=$lt_save_CC
21393 LDCXX=$LD
21394 LD=$lt_save_LD
21395 GCC=$lt_save_GCC
21396 with_gnu_ld=$lt_save_with_gnu_ld
21397 lt_cv_path_LDCXX=$lt_cv_path_LD
21398 lt_cv_path_LD=$lt_save_path_LD
21399 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21400 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21401 fi # test "$_lt_caught_CXX_error" != yes
21402
21403 ac_ext=c
21404 ac_cpp='$CPP $CPPFLAGS'
21405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21408
21409
21410
21411
21412
21413
21414
21415
21416
21417
21418
21419
21420
21421
21422
21423
21424 # Only expand once:
21425
21426
21427
21428
21429
21430 # Identify the assembler which will work hand-in-glove with the newly
21431 # built GCC, so that we can examine its features. This is the assembler
21432 # which will be driven by the driver program.
21433 #
21434 # If build != host, and we aren't building gas in-tree, we identify a
21435 # build->target assembler and hope that it will have the same features
21436 # as the host->target assembler we'll be using.
21437 gcc_cv_gas_major_version=
21438 gcc_cv_gas_minor_version=
21439 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21440
21441 if test "${gcc_cv_as+set}" = set; then :
21442
21443 else
21444
21445 if test -x "$DEFAULT_ASSEMBLER"; then
21446 gcc_cv_as="$DEFAULT_ASSEMBLER"
21447 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21448 && test -f ../gas/Makefile \
21449 && test x$build = x$host; then
21450 gcc_cv_as=../gas/as-new$build_exeext
21451 elif test -x as$build_exeext; then
21452 # Build using assembler in the current directory.
21453 gcc_cv_as=./as$build_exeext
21454 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21455 gcc_cv_as="$AS_FOR_TARGET"
21456 else
21457 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21458 set dummy $AS_FOR_TARGET; ac_word=$2
21459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21460 $as_echo_n "checking for $ac_word... " >&6; }
21461 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21462 $as_echo_n "(cached) " >&6
21463 else
21464 case $gcc_cv_as in
21465 [\\/]* | ?:[\\/]*)
21466 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21467 ;;
21468 *)
21469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21470 for as_dir in $PATH
21471 do
21472 IFS=$as_save_IFS
21473 test -z "$as_dir" && as_dir=.
21474 for ac_exec_ext in '' $ac_executable_extensions; do
21475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21476 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21478 break 2
21479 fi
21480 done
21481 done
21482 IFS=$as_save_IFS
21483
21484 ;;
21485 esac
21486 fi
21487 gcc_cv_as=$ac_cv_path_gcc_cv_as
21488 if test -n "$gcc_cv_as"; then
21489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21490 $as_echo "$gcc_cv_as" >&6; }
21491 else
21492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21493 $as_echo "no" >&6; }
21494 fi
21495
21496
21497 fi
21498 fi
21499
21500 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21501
21502 case "$ORIGINAL_AS_FOR_TARGET" in
21503 ./as | ./as$build_exeext) ;;
21504 *) ac_config_files="$ac_config_files as:exec-tool.in"
21505 ;;
21506 esac
21507
21508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21509 $as_echo_n "checking what assembler to use... " >&6; }
21510 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21511 # Single tree build which includes gas. We want to prefer it
21512 # over whatever linker top-level may have detected, since
21513 # we'll use what we're building after installation anyway.
21514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21515 $as_echo "newly built gas" >&6; }
21516 in_tree_gas=yes
21517 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21518 for f in $gcc_cv_as_bfd_srcdir/configure \
21519 $gcc_cv_as_gas_srcdir/configure \
21520 $gcc_cv_as_gas_srcdir/configure.in \
21521 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21522 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21523 if test x$gcc_cv_gas_version != x; then
21524 break
21525 fi
21526 done
21527 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21528 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21529 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21530 case $gcc_cv_gas_patch_version in
21531 "") gcc_cv_gas_patch_version="0" ;;
21532 esac
21533 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21534 + $gcc_cv_gas_minor_version \) \* 1000 \
21535 + $gcc_cv_gas_patch_version`
21536
21537 in_tree_gas_is_elf=no
21538 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21539 || (grep 'obj_format = multi' ../gas/Makefile \
21540 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21541 then
21542 in_tree_gas_is_elf=yes
21543 fi
21544 else
21545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21546 $as_echo "$gcc_cv_as" >&6; }
21547 in_tree_gas=no
21548 fi
21549
21550 # Identify the linker which will work hand-in-glove with the newly
21551 # built GCC, so that we can examine its features. This is the linker
21552 # which will be driven by the driver program.
21553 #
21554 # If build != host, and we aren't building gas in-tree, we identify a
21555 # build->target linker and hope that it will have the same features
21556 # as the host->target linker we'll be using.
21557 gcc_cv_gld_major_version=
21558 gcc_cv_gld_minor_version=
21559 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21560 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21561
21562 if test "${gcc_cv_ld+set}" = set; then :
21563
21564 else
21565
21566 if test -x "$DEFAULT_LINKER"; then
21567 gcc_cv_ld="$DEFAULT_LINKER"
21568 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21569 && test -f ../ld/Makefile \
21570 && test x$build = x$host; then
21571 gcc_cv_ld=../ld/ld-new$build_exeext
21572 elif test -x collect-ld$build_exeext; then
21573 # Build using linker in the current directory.
21574 gcc_cv_ld=./collect-ld$build_exeext
21575 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21576 gcc_cv_ld="$LD_FOR_TARGET"
21577 else
21578 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21579 set dummy $LD_FOR_TARGET; ac_word=$2
21580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21581 $as_echo_n "checking for $ac_word... " >&6; }
21582 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21583 $as_echo_n "(cached) " >&6
21584 else
21585 case $gcc_cv_ld in
21586 [\\/]* | ?:[\\/]*)
21587 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21588 ;;
21589 *)
21590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21591 for as_dir in $PATH
21592 do
21593 IFS=$as_save_IFS
21594 test -z "$as_dir" && as_dir=.
21595 for ac_exec_ext in '' $ac_executable_extensions; do
21596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21597 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21599 break 2
21600 fi
21601 done
21602 done
21603 IFS=$as_save_IFS
21604
21605 ;;
21606 esac
21607 fi
21608 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21609 if test -n "$gcc_cv_ld"; then
21610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21611 $as_echo "$gcc_cv_ld" >&6; }
21612 else
21613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21614 $as_echo "no" >&6; }
21615 fi
21616
21617
21618 fi
21619 fi
21620
21621 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21622 PLUGIN_LD=`basename $gcc_cv_ld`
21623
21624 # Check whether --with-plugin-ld was given.
21625 if test "${with_plugin_ld+set}" = set; then :
21626 withval=$with_plugin_ld; if test x"$withval" != x; then
21627 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21628 PLUGIN_LD="$withval"
21629 fi
21630 fi
21631
21632
21633
21634 cat >>confdefs.h <<_ACEOF
21635 #define PLUGIN_LD "$PLUGIN_LD"
21636 _ACEOF
21637
21638
21639 # Check to see if we are using gold instead of ld
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21641 $as_echo_n "checking whether we are using gold... " >&6; }
21642 ld_is_gold=no
21643 if test x$gcc_cv_ld != x; then
21644 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21645 | grep "GNU gold" > /dev/null; then
21646 ld_is_gold=yes
21647 fi
21648 fi
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21650 $as_echo "$ld_is_gold" >&6; }
21651
21652 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21653
21654 case "$ORIGINAL_LD_FOR_TARGET" in
21655 ./collect-ld | ./collect-ld$build_exeext) ;;
21656 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21657 ;;
21658 esac
21659
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21661 $as_echo_n "checking what linker to use... " >&6; }
21662 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21663 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21664 # Single tree build which includes ld. We want to prefer it
21665 # over whatever linker top-level may have detected, since
21666 # we'll use what we're building after installation anyway.
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21668 $as_echo "newly built ld" >&6; }
21669 in_tree_ld=yes
21670 in_tree_ld_is_elf=no
21671 if (grep 'EMUL = .*elf' ../ld/Makefile \
21672 || grep 'EMUL = .*linux' ../ld/Makefile \
21673 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21674 in_tree_ld_is_elf=yes
21675 elif test "$ld_is_gold" = yes; then
21676 in_tree_ld_is_elf=yes
21677 fi
21678 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
21679 do
21680 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21681 if test x$gcc_cv_gld_version != x; then
21682 break
21683 fi
21684 done
21685 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21686 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21687 else
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21689 $as_echo "$gcc_cv_ld" >&6; }
21690 in_tree_ld=no
21691 fi
21692
21693 # Figure out what nm we will be using.
21694 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21695 if test "${gcc_cv_nm+set}" = set; then :
21696
21697 else
21698
21699 if test -f $gcc_cv_binutils_srcdir/configure.in \
21700 && test -f ../binutils/Makefile \
21701 && test x$build = x$host; then
21702 gcc_cv_nm=../binutils/nm-new$build_exeext
21703 elif test -x nm$build_exeext; then
21704 gcc_cv_nm=./nm$build_exeext
21705 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21706 gcc_cv_nm="$NM_FOR_TARGET"
21707 else
21708 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21709 set dummy $NM_FOR_TARGET; ac_word=$2
21710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21711 $as_echo_n "checking for $ac_word... " >&6; }
21712 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21713 $as_echo_n "(cached) " >&6
21714 else
21715 case $gcc_cv_nm in
21716 [\\/]* | ?:[\\/]*)
21717 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21718 ;;
21719 *)
21720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21721 for as_dir in $PATH
21722 do
21723 IFS=$as_save_IFS
21724 test -z "$as_dir" && as_dir=.
21725 for ac_exec_ext in '' $ac_executable_extensions; do
21726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21727 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21729 break 2
21730 fi
21731 done
21732 done
21733 IFS=$as_save_IFS
21734
21735 ;;
21736 esac
21737 fi
21738 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21739 if test -n "$gcc_cv_nm"; then
21740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21741 $as_echo "$gcc_cv_nm" >&6; }
21742 else
21743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21744 $as_echo "no" >&6; }
21745 fi
21746
21747
21748 fi
21749 fi
21750
21751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21752 $as_echo_n "checking what nm to use... " >&6; }
21753 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21754 # Single tree build which includes binutils.
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21756 $as_echo "newly built nm" >&6; }
21757 in_tree_nm=yes
21758 else
21759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21760 $as_echo "$gcc_cv_nm" >&6; }
21761 in_tree_nm=no
21762 fi
21763
21764 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21765
21766 case "$ORIGINAL_NM_FOR_TARGET" in
21767 ./nm | ./nm$build_exeext) ;;
21768 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21769 ;;
21770 esac
21771
21772
21773 # Figure out what objdump we will be using.
21774 if test "${gcc_cv_objdump+set}" = set; then :
21775
21776 else
21777
21778 if test -f $gcc_cv_binutils_srcdir/configure.in \
21779 && test -f ../binutils/Makefile \
21780 && test x$build = x$host; then
21781 # Single tree build which includes binutils.
21782 gcc_cv_objdump=../binutils/objdump$build_exeext
21783 elif test -x objdump$build_exeext; then
21784 gcc_cv_objdump=./objdump$build_exeext
21785 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21786 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21787 else
21788 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21789 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21791 $as_echo_n "checking for $ac_word... " >&6; }
21792 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21793 $as_echo_n "(cached) " >&6
21794 else
21795 case $gcc_cv_objdump in
21796 [\\/]* | ?:[\\/]*)
21797 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21798 ;;
21799 *)
21800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21801 for as_dir in $PATH
21802 do
21803 IFS=$as_save_IFS
21804 test -z "$as_dir" && as_dir=.
21805 for ac_exec_ext in '' $ac_executable_extensions; do
21806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21807 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21809 break 2
21810 fi
21811 done
21812 done
21813 IFS=$as_save_IFS
21814
21815 ;;
21816 esac
21817 fi
21818 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21819 if test -n "$gcc_cv_objdump"; then
21820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21821 $as_echo "$gcc_cv_objdump" >&6; }
21822 else
21823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21824 $as_echo "no" >&6; }
21825 fi
21826
21827
21828 fi
21829 fi
21830
21831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21832 $as_echo_n "checking what objdump to use... " >&6; }
21833 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21834 # Single tree build which includes binutils.
21835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21836 $as_echo "newly built objdump" >&6; }
21837 elif test x$gcc_cv_objdump = x; then
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21839 $as_echo "not found" >&6; }
21840 else
21841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21842 $as_echo "$gcc_cv_objdump" >&6; }
21843 fi
21844
21845 # Figure out what readelf we will be using.
21846 if test "${gcc_cv_readelf+set}" = set; then :
21847
21848 else
21849
21850 if test -f $gcc_cv_binutils_srcdir/configure.in \
21851 && test -f ../binutils/Makefile \
21852 && test x$build = x$host; then
21853 # Single tree build which includes binutils.
21854 gcc_cv_readelf=../binutils/readelf$build_exeext
21855 elif test -x readelf$build_exeext; then
21856 gcc_cv_readelf=./readelf$build_exeext
21857 else
21858 # Extract the first word of "readelf", so it can be a program name with args.
21859 set dummy readelf; ac_word=$2
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21861 $as_echo_n "checking for $ac_word... " >&6; }
21862 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21863 $as_echo_n "(cached) " >&6
21864 else
21865 case $gcc_cv_readelf in
21866 [\\/]* | ?:[\\/]*)
21867 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21868 ;;
21869 *)
21870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21871 for as_dir in $PATH
21872 do
21873 IFS=$as_save_IFS
21874 test -z "$as_dir" && as_dir=.
21875 for ac_exec_ext in '' $ac_executable_extensions; do
21876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21877 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21879 break 2
21880 fi
21881 done
21882 done
21883 IFS=$as_save_IFS
21884
21885 ;;
21886 esac
21887 fi
21888 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21889 if test -n "$gcc_cv_readelf"; then
21890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21891 $as_echo "$gcc_cv_readelf" >&6; }
21892 else
21893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21894 $as_echo "no" >&6; }
21895 fi
21896
21897
21898 fi
21899 fi
21900
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21902 $as_echo_n "checking what readelf to use... " >&6; }
21903 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21904 # Single tree build which includes binutils.
21905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21906 $as_echo "newly built readelf" >&6; }
21907 elif test x$gcc_cv_readelf = x; then
21908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21909 $as_echo "not found" >&6; }
21910 else
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21912 $as_echo "$gcc_cv_readelf" >&6; }
21913 fi
21914
21915 # Figure out what assembler alignment features are present.
21916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21917 $as_echo_n "checking assembler flags... " >&6; }
21918 if test "${gcc_cv_as_flags+set}" = set; then :
21919 $as_echo_n "(cached) " >&6
21920 else
21921 case "$target" in
21922 i[34567]86-*-linux*)
21923 gcc_cv_as_flags="--32"
21924 ;;
21925 powerpc*-*-darwin*)
21926 gcc_cv_as_flags="-arch ppc"
21927 ;;
21928 *)
21929 gcc_cv_as_flags=" "
21930 ;;
21931 esac
21932 fi
21933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21934 $as_echo "$gcc_cv_as_flags" >&6; }
21935
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21937 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21938 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21939 $as_echo_n "(cached) " >&6
21940 else
21941 gcc_cv_as_balign_and_p2align=no
21942 if test $in_tree_gas = yes; then
21943 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21944 then gcc_cv_as_balign_and_p2align=yes
21945 fi
21946 elif test x$gcc_cv_as != x; then
21947 $as_echo '.balign 4
21948 .p2align 2' > conftest.s
21949 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21951 (eval $ac_try) 2>&5
21952 ac_status=$?
21953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21954 test $ac_status = 0; }; }
21955 then
21956 gcc_cv_as_balign_and_p2align=yes
21957 else
21958 echo "configure: failed program was" >&5
21959 cat conftest.s >&5
21960 fi
21961 rm -f conftest.o conftest.s
21962 fi
21963 fi
21964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21965 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21966 if test $gcc_cv_as_balign_and_p2align = yes; then
21967
21968 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21969
21970 fi
21971
21972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21973 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21974 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21975 $as_echo_n "(cached) " >&6
21976 else
21977 gcc_cv_as_max_skip_p2align=no
21978 if test $in_tree_gas = yes; then
21979 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21980 then gcc_cv_as_max_skip_p2align=yes
21981 fi
21982 elif test x$gcc_cv_as != x; then
21983 $as_echo '.p2align 4,,7' > conftest.s
21984 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21986 (eval $ac_try) 2>&5
21987 ac_status=$?
21988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21989 test $ac_status = 0; }; }
21990 then
21991 gcc_cv_as_max_skip_p2align=yes
21992 else
21993 echo "configure: failed program was" >&5
21994 cat conftest.s >&5
21995 fi
21996 rm -f conftest.o conftest.s
21997 fi
21998 fi
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22000 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22001 if test $gcc_cv_as_max_skip_p2align = yes; then
22002
22003 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22004
22005 fi
22006
22007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22008 $as_echo_n "checking assembler for .literal16... " >&6; }
22009 if test "${gcc_cv_as_literal16+set}" = set; then :
22010 $as_echo_n "(cached) " >&6
22011 else
22012 gcc_cv_as_literal16=no
22013 if test $in_tree_gas = yes; then
22014 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22015 then gcc_cv_as_literal16=yes
22016 fi
22017 elif test x$gcc_cv_as != x; then
22018 $as_echo '.literal16' > conftest.s
22019 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22021 (eval $ac_try) 2>&5
22022 ac_status=$?
22023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22024 test $ac_status = 0; }; }
22025 then
22026 gcc_cv_as_literal16=yes
22027 else
22028 echo "configure: failed program was" >&5
22029 cat conftest.s >&5
22030 fi
22031 rm -f conftest.o conftest.s
22032 fi
22033 fi
22034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22035 $as_echo "$gcc_cv_as_literal16" >&6; }
22036 if test $gcc_cv_as_literal16 = yes; then
22037
22038 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22039
22040 fi
22041
22042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22043 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22044 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22045 $as_echo_n "(cached) " >&6
22046 else
22047 gcc_cv_as_subsection_m1=no
22048 if test $in_tree_gas = yes; then
22049 if test $in_tree_gas_is_elf = yes \
22050 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22051 then gcc_cv_as_subsection_m1=yes
22052 fi
22053 elif test x$gcc_cv_as != x; then
22054 $as_echo 'conftest_label1: .word 0
22055 .subsection -1
22056 conftest_label2: .word 0
22057 .previous' > conftest.s
22058 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22060 (eval $ac_try) 2>&5
22061 ac_status=$?
22062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22063 test $ac_status = 0; }; }
22064 then
22065 if test x$gcc_cv_nm != x; then
22066 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22067 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22068 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22069 then :
22070 else gcc_cv_as_subsection_m1=yes
22071 fi
22072 rm -f conftest.nm1 conftest.nm2
22073 fi
22074 else
22075 echo "configure: failed program was" >&5
22076 cat conftest.s >&5
22077 fi
22078 rm -f conftest.o conftest.s
22079 fi
22080 fi
22081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22082 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22083 if test $gcc_cv_as_subsection_m1 = yes; then
22084
22085 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22086
22087 fi
22088
22089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22090 $as_echo_n "checking assembler for .weak... " >&6; }
22091 if test "${gcc_cv_as_weak+set}" = set; then :
22092 $as_echo_n "(cached) " >&6
22093 else
22094 gcc_cv_as_weak=no
22095 if test $in_tree_gas = yes; then
22096 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22097 then gcc_cv_as_weak=yes
22098 fi
22099 elif test x$gcc_cv_as != x; then
22100 $as_echo ' .weak foobar' > conftest.s
22101 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22103 (eval $ac_try) 2>&5
22104 ac_status=$?
22105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22106 test $ac_status = 0; }; }
22107 then
22108 gcc_cv_as_weak=yes
22109 else
22110 echo "configure: failed program was" >&5
22111 cat conftest.s >&5
22112 fi
22113 rm -f conftest.o conftest.s
22114 fi
22115 fi
22116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22117 $as_echo "$gcc_cv_as_weak" >&6; }
22118 if test $gcc_cv_as_weak = yes; then
22119
22120 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22121
22122 fi
22123
22124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22125 $as_echo_n "checking assembler for .weakref... " >&6; }
22126 if test "${gcc_cv_as_weakref+set}" = set; then :
22127 $as_echo_n "(cached) " >&6
22128 else
22129 gcc_cv_as_weakref=no
22130 if test $in_tree_gas = yes; then
22131 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22132 then gcc_cv_as_weakref=yes
22133 fi
22134 elif test x$gcc_cv_as != x; then
22135 $as_echo ' .weakref foobar, barfnot' > conftest.s
22136 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22138 (eval $ac_try) 2>&5
22139 ac_status=$?
22140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22141 test $ac_status = 0; }; }
22142 then
22143 gcc_cv_as_weakref=yes
22144 else
22145 echo "configure: failed program was" >&5
22146 cat conftest.s >&5
22147 fi
22148 rm -f conftest.o conftest.s
22149 fi
22150 fi
22151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22152 $as_echo "$gcc_cv_as_weakref" >&6; }
22153 if test $gcc_cv_as_weakref = yes; then
22154
22155 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22156
22157 fi
22158
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22160 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22161 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22162 $as_echo_n "(cached) " >&6
22163 else
22164 gcc_cv_as_nsubspa_comdat=no
22165 if test $in_tree_gas = yes; then
22166 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22167 then gcc_cv_as_nsubspa_comdat=yes
22168 fi
22169 elif test x$gcc_cv_as != x; then
22170 $as_echo ' .SPACE $TEXT$
22171 .NSUBSPA $CODE$,COMDAT' > conftest.s
22172 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22174 (eval $ac_try) 2>&5
22175 ac_status=$?
22176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22177 test $ac_status = 0; }; }
22178 then
22179 gcc_cv_as_nsubspa_comdat=yes
22180 else
22181 echo "configure: failed program was" >&5
22182 cat conftest.s >&5
22183 fi
22184 rm -f conftest.o conftest.s
22185 fi
22186 fi
22187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22188 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22189 if test $gcc_cv_as_nsubspa_comdat = yes; then
22190
22191 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22192
22193 fi
22194
22195 # .hidden needs to be supported in both the assembler and the linker,
22196 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22197 # This is irritatingly difficult to feature test for; we have to check the
22198 # date string after the version number. If we've got an in-tree
22199 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22200 # to be safe.
22201 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22203 $as_echo_n "checking assembler for .hidden... " >&6; }
22204 if test "${gcc_cv_as_hidden+set}" = set; then :
22205 $as_echo_n "(cached) " >&6
22206 else
22207 gcc_cv_as_hidden=no
22208 if test $in_tree_gas = yes; then
22209 if test $in_tree_gas_is_elf = yes \
22210 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22211 then gcc_cv_as_hidden=yes
22212 fi
22213 elif test x$gcc_cv_as != x; then
22214 $as_echo ' .hidden foobar
22215 foobar:' > conftest.s
22216 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22218 (eval $ac_try) 2>&5
22219 ac_status=$?
22220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22221 test $ac_status = 0; }; }
22222 then
22223
22224 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22225 # STV_HIDDEN, so disable .hidden support if so.
22226 case "${target}" in
22227 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22228 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22229 cat > conftest.s <<EOF
22230 .globl hidden
22231 .hidden hidden
22232 hidden:
22233 .globl default
22234 .set default,hidden
22235 EOF
22236 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22237 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22238 grep '\.hidden default' > /dev/null; then
22239 gcc_cv_as_hidden=no
22240 else
22241 gcc_cv_as_hidden=yes
22242 fi
22243 else
22244 # Assume bug is present if objdump is missing.
22245 gcc_cv_as_hidden=no
22246 fi
22247 ;;
22248 *)
22249 gcc_cv_as_hidden=yes
22250 ;;
22251 esac
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_hidden" >&5
22260 $as_echo "$gcc_cv_as_hidden" >&6; }
22261
22262 case "${target}" in
22263 *-*-darwin*)
22264 # Darwin as has some visibility support, though with a different syntax.
22265 gcc_cv_as_hidden=yes
22266 ;;
22267 esac
22268
22269 # gnu_indirect_function type is an extension proposed at
22270 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22271 # selection of function implementation
22272 # Check whether --enable-gnu-indirect-function was given.
22273 if test "${enable_gnu_indirect_function+set}" = set; then :
22274 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22275 yes | no) ;;
22276 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22277 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22278 esac
22279 else
22280 enable_gnu_indirect_function="$default_gnu_indirect_function"
22281 fi
22282
22283 if test x$enable_gnu_indirect_function = xyes; then
22284
22285 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22286
22287 fi
22288
22289 if test $in_tree_ld != yes ; then
22290 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22291 if echo "$ld_ver" | grep GNU > /dev/null; then
22292 if test x"$ld_is_gold" = xyes; then
22293 # GNU gold --version looks like this:
22294 #
22295 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22296 #
22297 # We extract the binutils version which is more familiar and specific
22298 # than the gold version.
22299 ld_vers=`echo $ld_ver | sed -n \
22300 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22301 else
22302 # GNU ld --version looks like this:
22303 #
22304 # GNU ld (GNU Binutils) 2.21.51.20110225
22305 ld_vers=`echo $ld_ver | sed -n \
22306 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22307 fi
22308 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'`
22309 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22310 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22311 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22312 else
22313 case "${target}" in
22314 *-*-solaris2*)
22315 #
22316 # Solaris 2 ld -V output looks like this for a regular version:
22317 #
22318 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22319 #
22320 # but test versions add stuff at the end:
22321 #
22322 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22323 #
22324 ld_ver=`$gcc_cv_ld -V 2>&1`
22325 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22326 ld_vers=`echo $ld_ver | sed -n \
22327 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22328 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22329 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22330 fi
22331 ;;
22332 esac
22333 fi
22334 fi
22335
22336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22337 $as_echo_n "checking linker for .hidden support... " >&6; }
22338 if test "${gcc_cv_ld_hidden+set}" = set; then :
22339 $as_echo_n "(cached) " >&6
22340 else
22341 if test $in_tree_ld = yes ; then
22342 gcc_cv_ld_hidden=no
22343 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 \
22344 && test $in_tree_ld_is_elf = yes; then
22345 gcc_cv_ld_hidden=yes
22346 fi
22347 else
22348 gcc_cv_ld_hidden=yes
22349 if test x"$ld_is_gold" = xyes; then
22350 :
22351 elif echo "$ld_ver" | grep GNU > /dev/null; then
22352 if test 0"$ld_date" -lt 20020404; then
22353 if test -n "$ld_date"; then
22354 # If there was date string, but was earlier than 2002-04-04, fail
22355 gcc_cv_ld_hidden=no
22356 elif test -z "$ld_vers"; then
22357 # If there was no date string nor ld version number, something is wrong
22358 gcc_cv_ld_hidden=no
22359 else
22360 test -z "$ld_vers_patch" && ld_vers_patch=0
22361 if test "$ld_vers_major" -lt 2; then
22362 gcc_cv_ld_hidden=no
22363 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22364 gcc_cv_ld_hidden="no"
22365 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22366 gcc_cv_ld_hidden=no
22367 fi
22368 fi
22369 fi
22370 else
22371 case "${target}" in
22372 *-*-darwin*)
22373 # Darwin ld has some visibility support.
22374 gcc_cv_ld_hidden=yes
22375 ;;
22376 hppa64*-*-hpux* | ia64*-*-hpux*)
22377 gcc_cv_ld_hidden=yes
22378 ;;
22379 *-*-solaris2.8*)
22380 # .hidden support was backported to Solaris 8, starting with ld
22381 # version 1.276.
22382 if test "$ld_vers_minor" -ge 276; then
22383 gcc_cv_ld_hidden=yes
22384 else
22385 gcc_cv_ld_hidden=no
22386 fi
22387 ;;
22388 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22389 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22390 # .symbolic was only added in Solaris 9 12/02.
22391 gcc_cv_ld_hidden=yes
22392 ;;
22393 *)
22394 gcc_cv_ld_hidden=no
22395 ;;
22396 esac
22397 fi
22398 fi
22399 fi
22400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22401 $as_echo "$gcc_cv_ld_hidden" >&6; }
22402 libgcc_visibility=no
22403
22404
22405 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22406 libgcc_visibility=yes
22407
22408 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22409
22410 fi
22411
22412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22413 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22414 gcc_cv_ld_ro_rw_mix=unknown
22415 if test $in_tree_ld = yes ; then
22416 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 \
22417 && test $in_tree_ld_is_elf = yes; then
22418 gcc_cv_ld_ro_rw_mix=read-write
22419 fi
22420 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22421 echo '.section myfoosect, "a"' > conftest1.s
22422 echo '.section myfoosect, "aw"' > conftest2.s
22423 echo '.byte 1' >> conftest2.s
22424 echo '.section myfoosect, "a"' > conftest3.s
22425 echo '.byte 0' >> conftest3.s
22426 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22427 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22428 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22429 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22430 conftest2.o conftest3.o > /dev/null 2>&1; then
22431 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22432 | sed -e '/myfoosect/!d' -e N`
22433 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22434 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22435 gcc_cv_ld_ro_rw_mix=read-only
22436 else
22437 gcc_cv_ld_ro_rw_mix=read-write
22438 fi
22439 fi
22440 fi
22441 rm -f conftest.* conftest[123].*
22442 fi
22443 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22444
22445 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22446
22447 fi
22448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22449 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22450
22451 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22453 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22454 if test "${gcc_cv_as_leb128+set}" = set; then :
22455 $as_echo_n "(cached) " >&6
22456 else
22457 gcc_cv_as_leb128=no
22458 if test $in_tree_gas = yes; then
22459 if test $in_tree_gas_is_elf = yes \
22460 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22461 then gcc_cv_as_leb128=yes
22462 fi
22463 elif test x$gcc_cv_as != x; then
22464 $as_echo ' .data
22465 .uleb128 L2 - L1
22466 L1:
22467 .uleb128 1280
22468 .sleb128 -1010
22469 L2:' > conftest.s
22470 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22472 (eval $ac_try) 2>&5
22473 ac_status=$?
22474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22475 test $ac_status = 0; }; }
22476 then
22477 # GAS versions before 2.11 do not support uleb128,
22478 # despite appearing to.
22479 # ??? There exists an elf-specific test that will crash
22480 # the assembler. Perhaps it's better to figure out whether
22481 # arbitrary sections are supported and try the test.
22482 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22483 if echo "$as_ver" | grep GNU > /dev/null; then
22484 as_vers=`echo $as_ver | sed -n \
22485 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22486 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22487 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22488 if test $as_major -eq 2 && test $as_minor -lt 11
22489 then :
22490 else gcc_cv_as_leb128=yes
22491 fi
22492 fi
22493 else
22494 echo "configure: failed program was" >&5
22495 cat conftest.s >&5
22496 fi
22497 rm -f conftest.o conftest.s
22498 fi
22499 fi
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22501 $as_echo "$gcc_cv_as_leb128" >&6; }
22502 if test $gcc_cv_as_leb128 = yes; then
22503
22504 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22505
22506 fi
22507
22508 # Check if we have assembler support for unwind directives.
22509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22510 $as_echo_n "checking assembler for cfi directives... " >&6; }
22511 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22512 $as_echo_n "(cached) " >&6
22513 else
22514 gcc_cv_as_cfi_directive=no
22515 if test x$gcc_cv_as != x; then
22516 $as_echo ' .text
22517 .cfi_startproc
22518 .cfi_offset 0, 0
22519 .cfi_same_value 1
22520 .cfi_def_cfa 1, 2
22521 .cfi_escape 1, 2, 3, 4, 5
22522 .cfi_endproc' > conftest.s
22523 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22525 (eval $ac_try) 2>&5
22526 ac_status=$?
22527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22528 test $ac_status = 0; }; }
22529 then
22530 case "$target" in
22531 *-*-solaris*)
22532 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22533 # read-only and read-write sections, we need to make sure that the
22534 # assembler used emits read-write .eh_frame sections.
22535 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22536 if test "x$gcc_cv_objdump" != x; then
22537 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22538 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22539 gcc_cv_as_cfi_directive=no
22540 else
22541 case "$target" in
22542 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22543 # On Solaris/x86, make sure that GCC and gas agree on using
22544 # read-only .eh_frame sections for 64-bit.
22545 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22546 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22547 sed -e /.eh_frame/!d -e N | \
22548 grep READONLY > /dev/null; then
22549 gcc_cv_as_cfi_directive=yes
22550 else
22551 gcc_cv_as_cfi_directive=no
22552 fi
22553 ;;
22554 *)
22555 gcc_cv_as_cfi_directive=yes
22556 ;;
22557 esac
22558 fi
22559 else
22560 # no objdump, err on the side of caution
22561 gcc_cv_as_cfi_directive=no
22562 fi
22563 else
22564 gcc_cv_as_cfi_directive=yes
22565 fi
22566 ;;
22567 *-*-*)
22568 gcc_cv_as_cfi_directive=yes
22569 ;;
22570 esac
22571 else
22572 echo "configure: failed program was" >&5
22573 cat conftest.s >&5
22574 fi
22575 rm -f conftest.o conftest.s
22576 fi
22577 fi
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22579 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22580
22581 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22583 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22584 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22585 $as_echo_n "(cached) " >&6
22586 else
22587 gcc_cv_as_cfi_advance_working=no
22588 if test x$gcc_cv_as != x; then
22589 $as_echo ' .text
22590 .cfi_startproc
22591 .cfi_adjust_cfa_offset 64
22592 .skip 75040, 0
22593 .cfi_adjust_cfa_offset 128
22594 .cfi_endproc' > conftest.s
22595 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22597 (eval $ac_try) 2>&5
22598 ac_status=$?
22599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22600 test $ac_status = 0; }; }
22601 then
22602
22603 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22604 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22605 gcc_cv_as_cfi_advance_working=yes
22606 fi
22607
22608 else
22609 echo "configure: failed program was" >&5
22610 cat conftest.s >&5
22611 fi
22612 rm -f conftest.o conftest.s
22613 fi
22614 fi
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22616 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22617
22618 else
22619 # no objdump, err on the side of caution
22620 gcc_cv_as_cfi_advance_working=no
22621 fi
22622
22623
22624 cat >>confdefs.h <<_ACEOF
22625 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22626 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22627 _ACEOF
22628
22629
22630
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22632 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22633 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22634 $as_echo_n "(cached) " >&6
22635 else
22636 gcc_cv_as_cfi_personality_directive=no
22637 if test x$gcc_cv_as != x; then
22638 $as_echo ' .text
22639 .cfi_startproc
22640 .cfi_personality 0, symbol
22641 .cfi_endproc' > conftest.s
22642 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22644 (eval $ac_try) 2>&5
22645 ac_status=$?
22646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22647 test $ac_status = 0; }; }
22648 then
22649 gcc_cv_as_cfi_personality_directive=yes
22650 else
22651 echo "configure: failed program was" >&5
22652 cat conftest.s >&5
22653 fi
22654 rm -f conftest.o conftest.s
22655 fi
22656 fi
22657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22658 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22659
22660
22661 cat >>confdefs.h <<_ACEOF
22662 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22663 then echo 1; else echo 0; fi`
22664 _ACEOF
22665
22666
22667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22668 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22669 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22670 $as_echo_n "(cached) " >&6
22671 else
22672 gcc_cv_as_cfi_sections_directive=no
22673 if test x$gcc_cv_as != x; then
22674 $as_echo ' .text
22675 .cfi_sections .debug_frame, .eh_frame
22676 .cfi_startproc
22677 .cfi_endproc' > conftest.s
22678 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22680 (eval $ac_try) 2>&5
22681 ac_status=$?
22682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22683 test $ac_status = 0; }; }
22684 then
22685 case $target_os in
22686 win32 | pe | cygwin* | mingw32* | uwin*)
22687 # Need to check that we generated the correct relocation for the
22688 # .debug_frame section. This was fixed for binutils 2.21.
22689 gcc_cv_as_cfi_sections_directive=no
22690 if test "x$gcc_cv_objdump" != x; then
22691 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22692 grep secrel > /dev/null; then
22693 gcc_cv_as_cfi_sections_directive=yes
22694 fi
22695 fi
22696 ;;
22697 *)
22698 gcc_cv_as_cfi_sections_directive=yes
22699 ;;
22700 esac
22701 else
22702 echo "configure: failed program was" >&5
22703 cat conftest.s >&5
22704 fi
22705 rm -f conftest.o conftest.s
22706 fi
22707 fi
22708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22709 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22710
22711
22712
22713 cat >>confdefs.h <<_ACEOF
22714 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22715 then echo 1; else echo 0; fi`
22716 _ACEOF
22717
22718
22719 # GAS versions up to and including 2.11.0 may mis-optimize
22720 # .eh_frame data.
22721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22722 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22723 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22724 $as_echo_n "(cached) " >&6
22725 else
22726 gcc_cv_as_eh_frame=no
22727 if test $in_tree_gas = yes; then
22728 if test $in_tree_gas_is_elf = yes \
22729 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22730 then gcc_cv_as_eh_frame=yes
22731 fi
22732 elif test x$gcc_cv_as != x; then
22733 $as_echo ' .text
22734 .LFB1:
22735 .4byte 0
22736 .L1:
22737 .4byte 0
22738 .LFE1:
22739 .section .eh_frame,"aw",@progbits
22740 __FRAME_BEGIN__:
22741 .4byte .LECIE1-.LSCIE1
22742 .LSCIE1:
22743 .4byte 0x0
22744 .byte 0x1
22745 .ascii "z\0"
22746 .byte 0x1
22747 .byte 0x78
22748 .byte 0x1a
22749 .byte 0x0
22750 .byte 0x4
22751 .4byte 1
22752 .p2align 1
22753 .LECIE1:
22754 .LSFDE1:
22755 .4byte .LEFDE1-.LASFDE1
22756 .LASFDE1:
22757 .4byte .LASFDE1-__FRAME_BEGIN__
22758 .4byte .LFB1
22759 .4byte .LFE1-.LFB1
22760 .byte 0x4
22761 .4byte .LFE1-.LFB1
22762 .byte 0x4
22763 .4byte .L1-.LFB1
22764 .LEFDE1:' > conftest.s
22765 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22767 (eval $ac_try) 2>&5
22768 ac_status=$?
22769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22770 test $ac_status = 0; }; }
22771 then
22772 cat > conftest.lit <<EOF
22773 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22774 0010 01000000 12000000 18000000 00000000 ................
22775 0020 08000000 04080000 0044 .........D
22776 EOF
22777 cat > conftest.big <<EOF
22778 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22779 0010 00000001 00000012 00000018 00000000 ................
22780 0020 00000008 04000000 0844 .........D
22781 EOF
22782 # If the assembler didn't choke, and we can objdump,
22783 # and we got the correct data, then succeed.
22784 # The text in the here-document typically retains its unix-style line
22785 # endings, while the output of objdump will use host line endings.
22786 # Therefore, use diff -b for the comparisons.
22787 if test x$gcc_cv_objdump != x \
22788 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22789 | tail -3 > conftest.got \
22790 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22791 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22792 then
22793 gcc_cv_as_eh_frame=yes
22794 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22796 (eval $ac_try) 2>&5
22797 ac_status=$?
22798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22799 test $ac_status = 0; }; }; then
22800 gcc_cv_as_eh_frame=buggy
22801 else
22802 # Uh oh, what do we do now?
22803 gcc_cv_as_eh_frame=no
22804 fi
22805 else
22806 echo "configure: failed program was" >&5
22807 cat conftest.s >&5
22808 fi
22809 rm -f conftest.o conftest.s
22810 fi
22811 fi
22812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22813 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22814
22815
22816 if test $gcc_cv_as_eh_frame = buggy; then
22817
22818 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22819
22820 fi
22821
22822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22823 $as_echo_n "checking assembler for section merging support... " >&6; }
22824 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22825 $as_echo_n "(cached) " >&6
22826 else
22827 gcc_cv_as_shf_merge=no
22828 if test $in_tree_gas = yes; then
22829 if test $in_tree_gas_is_elf = yes \
22830 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22831 then gcc_cv_as_shf_merge=yes
22832 fi
22833 elif test x$gcc_cv_as != x; then
22834 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22835 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22837 (eval $ac_try) 2>&5
22838 ac_status=$?
22839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22840 test $ac_status = 0; }; }
22841 then
22842 gcc_cv_as_shf_merge=yes
22843 else
22844 echo "configure: failed program was" >&5
22845 cat conftest.s >&5
22846 fi
22847 rm -f conftest.o conftest.s
22848 fi
22849 fi
22850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22851 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22852
22853 if test $gcc_cv_as_shf_merge = no; then
22854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22855 $as_echo_n "checking assembler for section merging support... " >&6; }
22856 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22857 $as_echo_n "(cached) " >&6
22858 else
22859 gcc_cv_as_shf_merge=no
22860 if test $in_tree_gas = yes; then
22861 if test $in_tree_gas_is_elf = yes \
22862 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22863 then gcc_cv_as_shf_merge=yes
22864 fi
22865 elif test x$gcc_cv_as != x; then
22866 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22867 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22869 (eval $ac_try) 2>&5
22870 ac_status=$?
22871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22872 test $ac_status = 0; }; }
22873 then
22874 gcc_cv_as_shf_merge=yes
22875 else
22876 echo "configure: failed program was" >&5
22877 cat conftest.s >&5
22878 fi
22879 rm -f conftest.o conftest.s
22880 fi
22881 fi
22882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22883 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22884
22885 fi
22886
22887 cat >>confdefs.h <<_ACEOF
22888 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22889 _ACEOF
22890
22891
22892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22893 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22894 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22895 $as_echo_n "(cached) " >&6
22896 else
22897 gcc_cv_as_comdat_group=no
22898 if test $in_tree_gas = yes; then
22899 if test $in_tree_gas_is_elf = yes \
22900 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22901 then gcc_cv_as_comdat_group=yes
22902 fi
22903 elif test x$gcc_cv_as != x; then
22904 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22905 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22907 (eval $ac_try) 2>&5
22908 ac_status=$?
22909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22910 test $ac_status = 0; }; }
22911 then
22912 gcc_cv_as_comdat_group=yes
22913 else
22914 echo "configure: failed program was" >&5
22915 cat conftest.s >&5
22916 fi
22917 rm -f conftest.o conftest.s
22918 fi
22919 fi
22920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22921 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22922
22923 if test $gcc_cv_as_comdat_group = yes; then
22924 gcc_cv_as_comdat_group_percent=no
22925 gcc_cv_as_comdat_group_group=no
22926 else
22927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22928 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22929 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22930 $as_echo_n "(cached) " >&6
22931 else
22932 gcc_cv_as_comdat_group_percent=no
22933 if test $in_tree_gas = yes; then
22934 if test $in_tree_gas_is_elf = yes \
22935 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22936 then gcc_cv_as_comdat_group_percent=yes
22937 fi
22938 elif test x$gcc_cv_as != x; then
22939 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22940 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22942 (eval $ac_try) 2>&5
22943 ac_status=$?
22944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22945 test $ac_status = 0; }; }
22946 then
22947 gcc_cv_as_comdat_group_percent=yes
22948 else
22949 echo "configure: failed program was" >&5
22950 cat conftest.s >&5
22951 fi
22952 rm -f conftest.o conftest.s
22953 fi
22954 fi
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22956 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22957
22958 if test $gcc_cv_as_comdat_group_percent = yes; then
22959 gcc_cv_as_comdat_group_group=no
22960 else
22961 case "${target}" in
22962 # Sun as uses a completely different syntax.
22963 *-*-solaris2*)
22964 case "${target}" in
22965 sparc*-*-solaris2*)
22966 conftest_s='
22967 .group foo,".text%foo",#comdat
22968 .section ".text%foo", #alloc,#execinstr,#progbits
22969 .globl foo
22970 foo:
22971 '
22972 ;;
22973 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22974 conftest_s='
22975 .group foo,.text%foo,#comdat
22976 .section .text%foo, "ax", @progbits
22977 .globl foo
22978 foo:
22979 '
22980 ;;
22981 esac
22982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22983 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22984 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22985 $as_echo_n "(cached) " >&6
22986 else
22987 gcc_cv_as_comdat_group_group=no
22988 if test x$gcc_cv_as != x; then
22989 $as_echo "$conftest_s" > conftest.s
22990 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22992 (eval $ac_try) 2>&5
22993 ac_status=$?
22994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22995 test $ac_status = 0; }; }
22996 then
22997 gcc_cv_as_comdat_group_group=yes
22998 else
22999 echo "configure: failed program was" >&5
23000 cat conftest.s >&5
23001 fi
23002 rm -f conftest.o conftest.s
23003 fi
23004 fi
23005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23006 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23007
23008 ;;
23009 esac
23010 fi
23011 fi
23012 if test x"$ld_is_gold" = xyes; then
23013 comdat_group=yes
23014 elif test $in_tree_ld = yes ; then
23015 comdat_group=no
23016 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 \
23017 && test $in_tree_ld_is_elf = yes; then
23018 comdat_group=yes
23019 fi
23020 elif echo "$ld_ver" | grep GNU > /dev/null; then
23021 comdat_group=yes
23022 if test 0"$ld_date" -lt 20050308; then
23023 if test -n "$ld_date"; then
23024 # If there was date string, but was earlier than 2005-03-08, fail
23025 comdat_group=no
23026 elif test "$ld_vers_major" -lt 2; then
23027 comdat_group=no
23028 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23029 comdat_group=no
23030 fi
23031 fi
23032 else
23033 case "${target}" in
23034 *-*-solaris2.1[1-9]*)
23035 comdat_group=no
23036 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23037 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23038 # version 1.688.
23039 #
23040 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23041 # least ld version 1.2267.
23042 if test "$ld_vers_major" -gt 1; then
23043 comdat_group=yes
23044 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23045 comdat_group=yes
23046 elif test "$ld_vers_minor" -ge 2267; then
23047 comdat_group=yes
23048 fi
23049 ;;
23050 *)
23051 # Assume linkers other than GNU ld don't support COMDAT group.
23052 comdat_group=no
23053 ;;
23054 esac
23055 fi
23056 # Allow overriding the automatic COMDAT group tests above.
23057 # Check whether --enable-comdat was given.
23058 if test "${enable_comdat+set}" = set; then :
23059 enableval=$enable_comdat; comdat_group="$enable_comdat"
23060 fi
23061
23062 if test $comdat_group = no; then
23063 gcc_cv_as_comdat_group=no
23064 gcc_cv_as_comdat_group_percent=no
23065 gcc_cv_as_comdat_group_group=no
23066 fi
23067
23068 cat >>confdefs.h <<_ACEOF
23069 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23070 || test $gcc_cv_as_comdat_group_percent = yes \
23071 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23072 _ACEOF
23073
23074
23075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23076 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23077 if test "${gcc_cv_as_discriminator+set}" = set; then :
23078 $as_echo_n "(cached) " >&6
23079 else
23080 gcc_cv_as_discriminator=no
23081 if test $in_tree_gas = yes; then
23082 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23083 then gcc_cv_as_discriminator=yes
23084 fi
23085 elif test x$gcc_cv_as != x; then
23086 $as_echo ' .text
23087 .file 1 "conf.c"
23088 .loc 1 1 0 discriminator 1' > conftest.s
23089 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23091 (eval $ac_try) 2>&5
23092 ac_status=$?
23093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23094 test $ac_status = 0; }; }
23095 then
23096 gcc_cv_as_discriminator=yes
23097 else
23098 echo "configure: failed program was" >&5
23099 cat conftest.s >&5
23100 fi
23101 rm -f conftest.o conftest.s
23102 fi
23103 fi
23104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23105 $as_echo "$gcc_cv_as_discriminator" >&6; }
23106 if test $gcc_cv_as_discriminator = yes; then
23107
23108 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23109
23110 fi
23111
23112 # Thread-local storage - the check is heavily parameterized.
23113 conftest_s=
23114 tls_first_major=
23115 tls_first_minor=
23116 tls_as_opt=
23117 case "$target" in
23118 alpha*-*-*)
23119 conftest_s='
23120 .section ".tdata","awT",@progbits
23121 foo: .long 25
23122 .text
23123 ldq $27,__tls_get_addr($29) !literal!1
23124 lda $16,foo($29) !tlsgd!1
23125 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23126 ldq $27,__tls_get_addr($29) !literal!2
23127 lda $16,foo($29) !tlsldm!2
23128 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23129 ldq $1,foo($29) !gotdtprel
23130 ldah $2,foo($29) !dtprelhi
23131 lda $3,foo($2) !dtprello
23132 lda $4,foo($29) !dtprel
23133 ldq $1,foo($29) !gottprel
23134 ldah $2,foo($29) !tprelhi
23135 lda $3,foo($2) !tprello
23136 lda $4,foo($29) !tprel'
23137 tls_first_major=2
23138 tls_first_minor=13
23139 tls_as_opt=--fatal-warnings
23140 ;;
23141 cris-*-*|crisv32-*-*)
23142 conftest_s='
23143 .section ".tdata","awT",@progbits
23144 x: .long 25
23145 .text
23146 move.d x:IE,$r10
23147 nop'
23148 tls_first_major=2
23149 tls_first_minor=20
23150 tls_as_opt=--fatal-warnings
23151 ;;
23152 frv*-*-*)
23153 conftest_s='
23154 .section ".tdata","awT",@progbits
23155 x: .long 25
23156 .text
23157 call #gettlsoff(x)'
23158 tls_first_major=2
23159 tls_first_minor=14
23160 ;;
23161 hppa*-*-linux*)
23162 conftest_s='
23163 t1: .reg %r20
23164 t2: .reg %r21
23165 gp: .reg %r19
23166 .section ".tdata","awT",@progbits
23167 foo: .long 25
23168 .text
23169 .align 4
23170 addil LT%foo-$tls_gdidx$,gp
23171 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23172 b __tls_get_addr
23173 nop
23174 addil LT%foo-$tls_ldidx$,gp
23175 b __tls_get_addr
23176 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23177 addil LR%foo-$tls_dtpoff$,%ret0
23178 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23179 mfctl %cr27,%t1
23180 addil LT%foo-$tls_ieoff$,gp
23181 ldw RT%foo-$tls_ieoff$(%r1),%t2
23182 add %t1,%t2,%t3
23183 mfctl %cr27,%t1
23184 addil LR%foo-$tls_leoff$,%t1
23185 ldo RR%foo-$tls_leoff$(%r1),%t2'
23186 tls_first_major=2
23187 tls_first_minor=15
23188 tls_as_opt=--fatal-warnings
23189 ;;
23190 arm*-*-*)
23191 conftest_s='
23192 .section ".tdata","awT",%progbits
23193 foo: .long 25
23194 .text
23195 .word foo(gottpoff)
23196 .word foo(tpoff)
23197 .word foo(tlsgd)
23198 .word foo(tlsldm)
23199 .word foo(tlsldo)'
23200 tls_first_major=2
23201 tls_first_minor=17
23202 ;;
23203 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23204 case "$target" in
23205 i[34567]86-*-solaris2.*)
23206 on_solaris=yes
23207 tga_func=___tls_get_addr
23208 ;;
23209 x86_64-*-solaris2.1[0-9]*)
23210 on_solaris=yes
23211 tga_func=__tls_get_addr
23212 ;;
23213 *)
23214 on_solaris=no
23215 ;;
23216 esac
23217 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23218 conftest_s='
23219 .section .tdata,"awt",@progbits'
23220 tls_first_major=0
23221 tls_first_minor=0
23222
23223 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23224
23225 else
23226 conftest_s='
23227 .section ".tdata","awT",@progbits'
23228 tls_first_major=2
23229 tls_first_minor=14
23230 tls_as_opt="--fatal-warnings"
23231 fi
23232 conftest_s="$conftest_s
23233 foo: .long 25
23234 .text
23235 movl %gs:0, %eax
23236 leal foo@tlsgd(,%ebx,1), %eax
23237 leal foo@tlsldm(%ebx), %eax
23238 leal foo@dtpoff(%eax), %edx
23239 movl foo@gottpoff(%ebx), %eax
23240 subl foo@gottpoff(%ebx), %eax
23241 addl foo@gotntpoff(%ebx), %eax
23242 movl foo@indntpoff, %eax
23243 movl \$foo@tpoff, %eax
23244 subl \$foo@tpoff, %eax
23245 leal foo@ntpoff(%ecx), %eax"
23246 ;;
23247 x86_64-*-*)
23248 conftest_s='
23249 .section ".tdata","awT",@progbits
23250 foo: .long 25
23251 .text
23252 movq %fs:0, %rax
23253 leaq foo@TLSGD(%rip), %rdi
23254 leaq foo@TLSLD(%rip), %rdi
23255 leaq foo@DTPOFF(%rax), %rdx
23256 movq foo@GOTTPOFF(%rip), %rax
23257 movq $foo@TPOFF, %rax'
23258 tls_first_major=2
23259 tls_first_minor=14
23260 tls_as_opt=--fatal-warnings
23261 ;;
23262 ia64-*-*)
23263 conftest_s='
23264 .section ".tdata","awT",@progbits
23265 foo: data8 25
23266 .text
23267 addl r16 = @ltoff(@dtpmod(foo#)), gp
23268 addl r17 = @ltoff(@dtprel(foo#)), gp
23269 addl r18 = @ltoff(@tprel(foo#)), gp
23270 addl r19 = @dtprel(foo#), gp
23271 adds r21 = @dtprel(foo#), r13
23272 movl r23 = @dtprel(foo#)
23273 addl r20 = @tprel(foo#), gp
23274 adds r22 = @tprel(foo#), r13
23275 movl r24 = @tprel(foo#)'
23276 tls_first_major=2
23277 tls_first_minor=13
23278 tls_as_opt=--fatal-warnings
23279 ;;
23280 mips*-*-*)
23281 conftest_s='
23282 .section .tdata,"awT",@progbits
23283 x:
23284 .word 2
23285 .text
23286 addiu $4, $28, %tlsgd(x)
23287 addiu $4, $28, %tlsldm(x)
23288 lui $4, %dtprel_hi(x)
23289 addiu $4, $4, %dtprel_lo(x)
23290 lw $4, %gottprel(x)($28)
23291 lui $4, %tprel_hi(x)
23292 addiu $4, $4, %tprel_lo(x)'
23293 tls_first_major=2
23294 tls_first_minor=16
23295 tls_as_opt='-32 --fatal-warnings'
23296 ;;
23297 m68k-*-*)
23298 conftest_s='
23299 .section .tdata,"awT",@progbits
23300 x:
23301 .word 2
23302 .text
23303 foo:
23304 move.l x@TLSGD(%a5),%a0
23305 move.l x@TLSLDM(%a5),%a0
23306 move.l x@TLSLDO(%a5),%a0
23307 move.l x@TLSIE(%a5),%a0
23308 move.l x@TLSLE(%a5),%a0'
23309 tls_first_major=2
23310 tls_first_minor=19
23311 tls_as_opt='--fatal-warnings'
23312 ;;
23313 powerpc-*-*)
23314 conftest_s='
23315 .section ".tdata","awT",@progbits
23316 .align 2
23317 ld0: .space 4
23318 ld1: .space 4
23319 x1: .space 4
23320 x2: .space 4
23321 x3: .space 4
23322 .text
23323 addi 3,31,ld0@got@tlsgd
23324 bl __tls_get_addr
23325 addi 3,31,x1@got@tlsld
23326 bl __tls_get_addr
23327 addi 9,3,x1@dtprel
23328 addis 9,3,x2@dtprel@ha
23329 addi 9,9,x2@dtprel@l
23330 lwz 9,x3@got@tprel(31)
23331 add 9,9,x@tls
23332 addi 9,2,x1@tprel
23333 addis 9,2,x2@tprel@ha
23334 addi 9,9,x2@tprel@l'
23335 tls_first_major=2
23336 tls_first_minor=14
23337 tls_as_opt="-a32 --fatal-warnings"
23338 ;;
23339 powerpc64-*-*)
23340 conftest_s='
23341 .section ".tdata","awT",@progbits
23342 .align 3
23343 ld0: .space 8
23344 ld1: .space 8
23345 x1: .space 8
23346 x2: .space 8
23347 x3: .space 8
23348 .text
23349 addi 3,2,ld0@got@tlsgd
23350 bl .__tls_get_addr
23351 nop
23352 addi 3,2,ld1@toc
23353 bl .__tls_get_addr
23354 nop
23355 addi 3,2,x1@got@tlsld
23356 bl .__tls_get_addr
23357 nop
23358 addi 9,3,x1@dtprel
23359 bl .__tls_get_addr
23360 nop
23361 addis 9,3,x2@dtprel@ha
23362 addi 9,9,x2@dtprel@l
23363 bl .__tls_get_addr
23364 nop
23365 ld 9,x3@got@dtprel(2)
23366 add 9,9,3
23367 bl .__tls_get_addr
23368 nop'
23369 tls_first_major=2
23370 tls_first_minor=14
23371 tls_as_opt="-a64 --fatal-warnings"
23372 ;;
23373 s390-*-*)
23374 conftest_s='
23375 .section ".tdata","awT",@progbits
23376 foo: .long 25
23377 .text
23378 .long foo@TLSGD
23379 .long foo@TLSLDM
23380 .long foo@DTPOFF
23381 .long foo@NTPOFF
23382 .long foo@GOTNTPOFF
23383 .long foo@INDNTPOFF
23384 l %r1,foo@GOTNTPOFF(%r12)
23385 l %r1,0(%r1):tls_load:foo
23386 bas %r14,0(%r1,%r13):tls_gdcall:foo
23387 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23388 tls_first_major=2
23389 tls_first_minor=14
23390 tls_as_opt="-m31 --fatal-warnings"
23391 ;;
23392 s390x-*-*)
23393 conftest_s='
23394 .section ".tdata","awT",@progbits
23395 foo: .long 25
23396 .text
23397 .quad foo@TLSGD
23398 .quad foo@TLSLDM
23399 .quad foo@DTPOFF
23400 .quad foo@NTPOFF
23401 .quad foo@GOTNTPOFF
23402 lg %r1,foo@GOTNTPOFF(%r12)
23403 larl %r1,foo@INDNTPOFF
23404 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23405 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23406 tls_first_major=2
23407 tls_first_minor=14
23408 tls_as_opt="-m64 -Aesame --fatal-warnings"
23409 ;;
23410 sh-*-* | sh[34]-*-*)
23411 conftest_s='
23412 .section ".tdata","awT",@progbits
23413 foo: .long 25
23414 .text
23415 .long foo@TLSGD
23416 .long foo@TLSLDM
23417 .long foo@DTPOFF
23418 .long foo@GOTTPOFF
23419 .long foo@TPOFF'
23420 tls_first_major=2
23421 tls_first_minor=13
23422 tls_as_opt=--fatal-warnings
23423 ;;
23424 sparc*-*-*)
23425 case "$target" in
23426 sparc*-sun-solaris2.*)
23427 on_solaris=yes
23428 tga_func=__tls_get_addr
23429 ;;
23430 *)
23431 on_solaris=no
23432 ;;
23433 esac
23434 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23435 conftest_s='
23436 .section ".tdata",#alloc,#write,#tls'
23437 tls_first_major=0
23438 tls_first_minor=0
23439 else
23440 conftest_s='
23441 .section ".tdata","awT",@progbits'
23442 tls_first_major=2
23443 tls_first_minor=14
23444 tls_as_opt="-32 --fatal-warnings"
23445 fi
23446 conftest_s="$conftest_s
23447 foo: .long 25
23448 .text
23449 sethi %tgd_hi22(foo), %o0
23450 add %o0, %tgd_lo10(foo), %o1
23451 add %l7, %o1, %o0, %tgd_add(foo)
23452 call __tls_get_addr, %tgd_call(foo)
23453 sethi %tldm_hi22(foo), %l1
23454 add %l1, %tldm_lo10(foo), %l2
23455 add %l7, %l2, %o0, %tldm_add(foo)
23456 call __tls_get_addr, %tldm_call(foo)
23457 sethi %tldo_hix22(foo), %l3
23458 xor %l3, %tldo_lox10(foo), %l4
23459 add %o0, %l4, %l5, %tldo_add(foo)
23460 sethi %tie_hi22(foo), %o3
23461 add %o3, %tie_lo10(foo), %o3
23462 ld [%l7 + %o3], %o2, %tie_ld(foo)
23463 add %g7, %o2, %o4, %tie_add(foo)
23464 sethi %tle_hix22(foo), %l1
23465 xor %l1, %tle_lox10(foo), %o5
23466 ld [%g7 + %o5], %o1"
23467 ;;
23468 xtensa*-*-*)
23469 conftest_s='
23470 .section ".tdata","awT",@progbits
23471 foo: .long 25
23472 .text
23473 movi a8, foo@TLSFUNC
23474 movi a10, foo@TLSARG
23475 callx8.tls a8, foo@TLSCALL'
23476 tls_first_major=2
23477 tls_first_minor=19
23478 ;;
23479 esac
23480 set_have_as_tls=no
23481 if test "x$enable_tls" = xno ; then
23482 : # TLS explicitly disabled.
23483 elif test "x$enable_tls" = xyes ; then
23484 set_have_as_tls=yes # TLS explicitly enabled.
23485 elif test -z "$tls_first_major"; then
23486 : # If we don't have a check, assume no support.
23487 else
23488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23489 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23490 if test "${gcc_cv_as_tls+set}" = set; then :
23491 $as_echo_n "(cached) " >&6
23492 else
23493 gcc_cv_as_tls=no
23494 if test $in_tree_gas = yes; then
23495 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23496 then gcc_cv_as_tls=yes
23497 fi
23498 elif test x$gcc_cv_as != x; then
23499 $as_echo "$conftest_s" > conftest.s
23500 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23502 (eval $ac_try) 2>&5
23503 ac_status=$?
23504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23505 test $ac_status = 0; }; }
23506 then
23507 gcc_cv_as_tls=yes
23508 else
23509 echo "configure: failed program was" >&5
23510 cat conftest.s >&5
23511 fi
23512 rm -f conftest.o conftest.s
23513 fi
23514 fi
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23516 $as_echo "$gcc_cv_as_tls" >&6; }
23517 if test $gcc_cv_as_tls = yes; then
23518 set_have_as_tls=yes
23519 fi
23520 fi
23521 case "$target" in
23522 *-*-irix6*)
23523 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23524 # with TLS support are in use, native TLS cannot work.
23525 set_have_as_tls=no
23526 ;;
23527 *-*-osf*)
23528 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23529 # gld with TLS support are in use, native TLS cannot work.
23530 set_have_as_tls=no
23531 ;;
23532 # TLS was introduced in the Solaris 9 FCS release and backported to
23533 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
23534 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23535 # ld and GCC don't support any longer.
23536 *-*-solaris2.*)
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23538 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23539 ld_tls_support=no
23540 # Check ld and ld.so.1 TLS support.
23541 if echo "$ld_ver" | grep GNU > /dev/null; then
23542 # Assume all interesting versions of GNU ld have TLS support.
23543 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23544 ld_tls_support=yes
23545 else
23546 case "$target" in
23547 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23548 i?86-*-solaris2.8)
23549 min_tls_ld_vers_minor=280
23550 ;;
23551 # Solaris 8/SPARC ld has TLS support since version 1.272.
23552 sparc*-*-solaris2.8)
23553 min_tls_ld_vers_minor=272
23554 ;;
23555 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23556 i?86-*-solaris2.9)
23557 min_tls_ld_vers_minor=374
23558 ;;
23559 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23560 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23561 min_tls_ld_vers_minor=343
23562 ;;
23563 esac
23564 if test "$ld_vers_major" -gt 1 || \
23565 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23566 ld_tls_support=yes
23567 else
23568 set_have_as_tls=no
23569 fi
23570 fi
23571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23572 $as_echo "$ld_tls_support" >&6; }
23573
23574 save_LIBS="$LIBS"
23575 save_LDFLAGS="$LDFLAGS"
23576 LIBS=
23577 LDFLAGS=
23578
23579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23580 $as_echo_n "checking alternate thread library... " >&6; }
23581 case "$target" in
23582 # TLS support was backported to Solaris 8 patches, but only lives in
23583 # the alternate thread library which became the default in Solaris 9.
23584 # We want to always use that, irrespective of TLS support.
23585 *-*-solaris2.8)
23586 # Take multilib subdir into account. There's no spec to handle
23587 # this. The 64 symlink exists since Solaris 8.
23588 lwp_dir=/usr/lib/lwp
23589 lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23590 LDFLAGS="-L$lwp_dir -R$lwp_dir"
23591 ;;
23592 *-*-solaris2*)
23593 lwp_dir="none"
23594 lwp_spec=""
23595 ;;
23596 esac
23597 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23598
23599 cat >>confdefs.h <<_ACEOF
23600 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23601 _ACEOF
23602
23603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23604 $as_echo "$lwp_dir" >&6; }
23605
23606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23607 $as_echo_n "checking library containing $tga_func... " >&6; }
23608 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23609 # (32-bit x86) only lived in libthread, so check for that. Keep
23610 # set_have_as_tls if found, disable if not.
23611 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23613 $as_echo_n "checking for library containing $tga_func... " >&6; }
23614 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23615 $as_echo_n "(cached) " >&6
23616 else
23617 ac_func_search_save_LIBS=$LIBS
23618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23619 /* end confdefs.h. */
23620
23621 /* Override any GCC internal prototype to avoid an error.
23622 Use char because int might match the return type of a GCC
23623 builtin and then its argument prototype would still apply. */
23624 #ifdef __cplusplus
23625 extern "C"
23626 #endif
23627 char $tga_func ();
23628 int
23629 main ()
23630 {
23631 return $tga_func ();
23632 ;
23633 return 0;
23634 }
23635 _ACEOF
23636 for ac_lib in '' thread; do
23637 if test -z "$ac_lib"; then
23638 ac_res="none required"
23639 else
23640 ac_res=-l$ac_lib
23641 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23642 fi
23643 if ac_fn_c_try_link "$LINENO"; then :
23644 eval "$as_ac_Search=\$ac_res"
23645 fi
23646 rm -f core conftest.err conftest.$ac_objext \
23647 conftest$ac_exeext
23648 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23649 break
23650 fi
23651 done
23652 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23653
23654 else
23655 eval "$as_ac_Search=no"
23656 fi
23657 rm conftest.$ac_ext
23658 LIBS=$ac_func_search_save_LIBS
23659 fi
23660 eval ac_res=\$$as_ac_Search
23661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23662 $as_echo "$ac_res" >&6; }
23663 eval ac_res=\$$as_ac_Search
23664 if test "$ac_res" != no; then :
23665 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23666
23667 else
23668 set_have_as_tls=no
23669 fi
23670
23671 # Clear LIBS if we cannot support TLS.
23672 if test $set_have_as_tls = no; then
23673 LIBS=
23674 fi
23675 # Always define LIB_TLS_SPEC, even without TLS support.
23676
23677 cat >>confdefs.h <<_ACEOF
23678 #define LIB_TLS_SPEC "$LIBS"
23679 _ACEOF
23680
23681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23682 $as_echo "$LIBS" >&6; }
23683
23684 LIBS="$save_LIBS"
23685 LDFLAGS="$save_LDFLAGS"
23686 ;;
23687 esac
23688 if test $set_have_as_tls = yes ; then
23689
23690 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23691
23692 fi
23693
23694 # Target-specific assembler checks.
23695
23696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23697 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23698 gcc_cv_ld_static_dynamic=no
23699 gcc_cv_ld_static_option='-Bstatic'
23700 gcc_cv_ld_dynamic_option='-Bdynamic'
23701 if test $in_tree_ld = yes ; then
23702 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
23703 gcc_cv_ld_static_dynamic=yes
23704 fi
23705 elif test x$gcc_cv_ld != x; then
23706 # Check if linker supports -Bstatic/-Bdynamic option
23707 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23708 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23709 gcc_cv_ld_static_dynamic=yes
23710 else
23711 case "$target" in
23712 # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23713 alpha*-dec-osf*)
23714 gcc_cv_ld_static_dynamic=yes
23715 gcc_cv_ld_static_option="-noso"
23716 gcc_cv_ld_dynamic_option="-so_archive"
23717 ;;
23718 # HP-UX ld uses -a flags to select between shared and archive.
23719 *-*-hpux*)
23720 if test x"$gnu_ld" = xno; then
23721 gcc_cv_ld_static_dynamic=yes
23722 gcc_cv_ld_static_option="-aarchive_shared"
23723 gcc_cv_ld_dynamic_option="-adefault"
23724 fi
23725 ;;
23726 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23727 mips-sgi-irix6*)
23728 gcc_cv_ld_static_dynamic=yes
23729 ;;
23730 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23731 *-*-solaris2*)
23732 gcc_cv_ld_static_dynamic=yes
23733 ;;
23734 esac
23735 fi
23736 fi
23737 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23738
23739 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23740
23741
23742 cat >>confdefs.h <<_ACEOF
23743 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23744 _ACEOF
23745
23746
23747 cat >>confdefs.h <<_ACEOF
23748 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23749 _ACEOF
23750
23751 fi
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23753 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23754
23755 if test x"$demangler_in_ld" = xyes; then
23756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23757 $as_echo_n "checking linker --demangle support... " >&6; }
23758 gcc_cv_ld_demangle=no
23759 if test $in_tree_ld = yes; then
23760 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 \
23761 gcc_cv_ld_demangle=yes
23762 fi
23763 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23764 # Check if the GNU linker supports --demangle option
23765 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23766 gcc_cv_ld_demangle=yes
23767 fi
23768 fi
23769 if test x"$gcc_cv_ld_demangle" = xyes; then
23770
23771 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23772
23773 fi
23774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23775 $as_echo "$gcc_cv_ld_demangle" >&6; }
23776 fi
23777
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23779 $as_echo_n "checking linker plugin support... " >&6; }
23780 gcc_cv_lto_plugin=0
23781 if test -f liblto_plugin.la; then
23782 save_ld_ver="$ld_ver"
23783 save_ld_vers_major="$ld_vers_major"
23784 save_ld_vers_minor="$ld_vers_minor"
23785 save_ld_is_gold="$ld_is_gold"
23786
23787 ld_is_gold=no
23788
23789 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23790 ld_ver="GNU ld"
23791 # FIXME: ld_is_gold?
23792 ld_vers_major="$gcc_cv_gld_major_version"
23793 ld_vers_minor="$gcc_cv_gld_minor_version"
23794 else
23795 # Determine plugin linker version.
23796 # FIXME: Partial duplicate from above, generalize.
23797 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23798 if echo "$ld_ver" | grep GNU > /dev/null; then
23799 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23800 ld_is_gold=yes
23801 ld_vers=`echo $ld_ver | sed -n \
23802 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23803 else
23804 ld_vers=`echo $ld_ver | sed -n \
23805 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23806 fi
23807 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23808 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23809 fi
23810 fi
23811
23812 # Determine plugin support.
23813 if echo "$ld_ver" | grep GNU > /dev/null; then
23814 # Require GNU ld or gold 2.21+ for plugin support by default.
23815 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23816 gcc_cv_lto_plugin=2
23817 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23818 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23819 gcc_cv_lto_plugin=1
23820 fi
23821 fi
23822
23823 ld_ver="$save_ld_ver"
23824 ld_vers_major="$save_ld_vers_major"
23825 ld_vers_minor="$save_ld_vers_minor"
23826 ld_is_gold="$save_ld_is_gold"
23827 fi
23828
23829 cat >>confdefs.h <<_ACEOF
23830 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23831 _ACEOF
23832
23833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23834 $as_echo "$gcc_cv_lto_plugin" >&6; }
23835
23836 case "$target" in
23837 # All TARGET_ABI_OSF targets.
23838 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23840 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23841 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23842 $as_echo_n "(cached) " >&6
23843 else
23844 gcc_cv_as_alpha_explicit_relocs=no
23845 if test $in_tree_gas = yes; then
23846 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23847 then gcc_cv_as_alpha_explicit_relocs=yes
23848 fi
23849 elif test x$gcc_cv_as != x; then
23850 $as_echo ' .set nomacro
23851 .text
23852 extbl $3, $2, $3 !lituse_bytoff!1
23853 ldq $2, a($29) !literal!1
23854 ldq $4, b($29) !literal!2
23855 ldq_u $3, 0($2) !lituse_base!1
23856 ldq $27, f($29) !literal!5
23857 jsr $26, ($27), f !lituse_jsr!5
23858 ldah $29, 0($26) !gpdisp!3
23859 lda $0, c($29) !gprel
23860 ldah $1, d($29) !gprelhigh
23861 lda $1, d($1) !gprellow
23862 lda $29, 0($29) !gpdisp!3' > conftest.s
23863 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23865 (eval $ac_try) 2>&5
23866 ac_status=$?
23867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23868 test $ac_status = 0; }; }
23869 then
23870 gcc_cv_as_alpha_explicit_relocs=yes
23871 else
23872 echo "configure: failed program was" >&5
23873 cat conftest.s >&5
23874 fi
23875 rm -f conftest.o conftest.s
23876 fi
23877 fi
23878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23879 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23880 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23881
23882 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23883
23884 fi
23885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23886 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23887 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23888 $as_echo_n "(cached) " >&6
23889 else
23890 gcc_cv_as_alpha_jsrdirect_relocs=no
23891 if test $in_tree_gas = yes; then
23892 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23893 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23894 fi
23895 elif test x$gcc_cv_as != x; then
23896 $as_echo ' .set nomacro
23897 .text
23898 ldq $27, a($29) !literal!1
23899 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23900 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23902 (eval $ac_try) 2>&5
23903 ac_status=$?
23904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23905 test $ac_status = 0; }; }
23906 then
23907 gcc_cv_as_alpha_jsrdirect_relocs=yes
23908 else
23909 echo "configure: failed program was" >&5
23910 cat conftest.s >&5
23911 fi
23912 rm -f conftest.o conftest.s
23913 fi
23914 fi
23915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23916 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23917 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23918
23919 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23920
23921 fi
23922 ;;
23923
23924 cris-*-*)
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23926 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23927 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23928 $as_echo_n "(cached) " >&6
23929 else
23930 gcc_cv_as_cris_no_mul_bug=no
23931 if test $in_tree_gas = yes; then
23932 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23933 then gcc_cv_as_cris_no_mul_bug=yes
23934 fi
23935 elif test x$gcc_cv_as != x; then
23936 $as_echo '.text' > conftest.s
23937 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23939 (eval $ac_try) 2>&5
23940 ac_status=$?
23941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23942 test $ac_status = 0; }; }
23943 then
23944 gcc_cv_as_cris_no_mul_bug=yes
23945 else
23946 echo "configure: failed program was" >&5
23947 cat conftest.s >&5
23948 fi
23949 rm -f conftest.o conftest.s
23950 fi
23951 fi
23952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23953 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23954 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23955
23956 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23957
23958 fi
23959 ;;
23960
23961 sparc*-*-*)
23962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23963 $as_echo_n "checking assembler for .register... " >&6; }
23964 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23965 $as_echo_n "(cached) " >&6
23966 else
23967 gcc_cv_as_sparc_register_op=no
23968 if test x$gcc_cv_as != x; then
23969 $as_echo '.register %g2, #scratch' > conftest.s
23970 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23972 (eval $ac_try) 2>&5
23973 ac_status=$?
23974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23975 test $ac_status = 0; }; }
23976 then
23977 gcc_cv_as_sparc_register_op=yes
23978 else
23979 echo "configure: failed program was" >&5
23980 cat conftest.s >&5
23981 fi
23982 rm -f conftest.o conftest.s
23983 fi
23984 fi
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23986 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23987 if test $gcc_cv_as_sparc_register_op = yes; then
23988
23989 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23990
23991 fi
23992
23993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23994 $as_echo_n "checking assembler for -relax option... " >&6; }
23995 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23996 $as_echo_n "(cached) " >&6
23997 else
23998 gcc_cv_as_sparc_relax=no
23999 if test x$gcc_cv_as != x; then
24000 $as_echo '.text' > conftest.s
24001 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24003 (eval $ac_try) 2>&5
24004 ac_status=$?
24005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24006 test $ac_status = 0; }; }
24007 then
24008 gcc_cv_as_sparc_relax=yes
24009 else
24010 echo "configure: failed program was" >&5
24011 cat conftest.s >&5
24012 fi
24013 rm -f conftest.o conftest.s
24014 fi
24015 fi
24016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24017 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24018 if test $gcc_cv_as_sparc_relax = yes; then
24019
24020 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24021
24022 fi
24023
24024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24025 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24026 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24027 $as_echo_n "(cached) " >&6
24028 else
24029 gcc_cv_as_sparc_gotdata_op=no
24030 if test x$gcc_cv_as != x; then
24031 $as_echo '.text
24032 .align 4
24033 foo:
24034 nop
24035 bar:
24036 sethi %gdop_hix22(foo), %g1
24037 xor %g1, %gdop_lox10(foo), %g1
24038 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24039 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24041 (eval $ac_try) 2>&5
24042 ac_status=$?
24043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24044 test $ac_status = 0; }; }
24045 then
24046 if test x$gcc_cv_ld != x \
24047 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24048 if test x$gcc_cv_objdump != x; then
24049 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24050 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24051 gcc_cv_as_sparc_gotdata_op=no
24052 else
24053 gcc_cv_as_sparc_gotdata_op=yes
24054 fi
24055 fi
24056 fi
24057 rm -f conftest
24058 else
24059 echo "configure: failed program was" >&5
24060 cat conftest.s >&5
24061 fi
24062 rm -f conftest.o conftest.s
24063 fi
24064 fi
24065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24066 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24067 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24068
24069 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24070
24071 fi
24072
24073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24074 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24075 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24076 $as_echo_n "(cached) " >&6
24077 else
24078 gcc_cv_as_sparc_ua_pcrel=no
24079 if test x$gcc_cv_as != x; then
24080 $as_echo '.text
24081 foo:
24082 nop
24083 .data
24084 .align 4
24085 .byte 0
24086 .uaword %r_disp32(foo)' > conftest.s
24087 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24089 (eval $ac_try) 2>&5
24090 ac_status=$?
24091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24092 test $ac_status = 0; }; }
24093 then
24094 if test x$gcc_cv_ld != x \
24095 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24096 gcc_cv_as_sparc_ua_pcrel=yes
24097 fi
24098 rm -f conftest
24099 else
24100 echo "configure: failed program was" >&5
24101 cat conftest.s >&5
24102 fi
24103 rm -f conftest.o conftest.s
24104 fi
24105 fi
24106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24107 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24108 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24109
24110 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24111
24112
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24114 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24115 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24116 $as_echo_n "(cached) " >&6
24117 else
24118 gcc_cv_as_sparc_ua_pcrel_hidden=no
24119 if test x$gcc_cv_as != x; then
24120 $as_echo '.data
24121 .align 4
24122 .byte 0x31
24123 .uaword %r_disp32(foo)
24124 .byte 0x32, 0x33, 0x34
24125 .global foo
24126 .hidden foo
24127 foo:
24128 .skip 4' > conftest.s
24129 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24131 (eval $ac_try) 2>&5
24132 ac_status=$?
24133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24134 test $ac_status = 0; }; }
24135 then
24136 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24137 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24138 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24139 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24140 if $gcc_cv_objdump -R conftest 2> /dev/null \
24141 | grep 'DISP32' > /dev/null 2>&1; then
24142 :
24143 else
24144 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24145 fi
24146 fi
24147 rm -f conftest
24148 else
24149 echo "configure: failed program was" >&5
24150 cat conftest.s >&5
24151 fi
24152 rm -f conftest.o conftest.s
24153 fi
24154 fi
24155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24156 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24157 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24158
24159 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24160
24161 fi
24162
24163 fi # unaligned pcrel relocs
24164
24165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24166 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24167 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24168 $as_echo_n "(cached) " >&6
24169 else
24170 gcc_cv_as_sparc_offsetable_lo10=no
24171 if test x$gcc_cv_as != x; then
24172 $as_echo '.text
24173 or %g1, %lo(ab) + 12, %g1
24174 or %g1, %lo(ab + 12), %g1' > conftest.s
24175 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24177 (eval $ac_try) 2>&5
24178 ac_status=$?
24179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24180 test $ac_status = 0; }; }
24181 then
24182 if test x$gcc_cv_objdump != x \
24183 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24184 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24185 gcc_cv_as_sparc_offsetable_lo10=yes
24186 fi
24187 else
24188 echo "configure: failed program was" >&5
24189 cat conftest.s >&5
24190 fi
24191 rm -f conftest.o conftest.s
24192 fi
24193 fi
24194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24195 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24196 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24197
24198 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24199
24200 fi
24201
24202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24203 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24204 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24205 $as_echo_n "(cached) " >&6
24206 else
24207 gcc_cv_as_sparc_fmaf=no
24208 if test x$gcc_cv_as != x; then
24209 $as_echo '.text
24210 .register %g2, #scratch
24211 .register %g3, #scratch
24212 .align 4
24213 fmaddd %f0, %f2, %f4, %f6
24214 addxccc %g1, %g2, %g3
24215 fsrl32 %f2, %f4, %f8
24216 fnaddd %f10, %f12, %f14' > conftest.s
24217 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24219 (eval $ac_try) 2>&5
24220 ac_status=$?
24221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24222 test $ac_status = 0; }; }
24223 then
24224 gcc_cv_as_sparc_fmaf=yes
24225 else
24226 echo "configure: failed program was" >&5
24227 cat conftest.s >&5
24228 fi
24229 rm -f conftest.o conftest.s
24230 fi
24231 fi
24232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24233 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24234 if test $gcc_cv_as_sparc_fmaf = yes; then
24235
24236 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24237
24238 fi
24239 ;;
24240
24241 i[34567]86-*-* | x86_64-*-*)
24242 case $target_os in
24243 cygwin*)
24244 # Full C++ conformance when using a shared libstdc++-v3 requires some
24245 # support from the Cygwin DLL, which in more recent versions exports
24246 # wrappers to aid in interposing and redirecting operators new, delete,
24247 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24248 # are configuring for a version of Cygwin that exports the wrappers.
24249 if test x$host = x$target; then
24250 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24251 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24252 gcc_ac_cygwin_dll_wrappers=yes
24253 else
24254 gcc_ac_cygwin_dll_wrappers=no
24255 fi
24256
24257 else
24258 # Can't check presence of libc functions during cross-compile, so
24259 # we just have to assume we're building for an up-to-date target.
24260 gcc_ac_cygwin_dll_wrappers=yes
24261 fi
24262
24263 cat >>confdefs.h <<_ACEOF
24264 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24265 _ACEOF
24266
24267 esac
24268 case $target_os in
24269 cygwin* | pe | mingw32*)
24270 # Recent binutils allows the three-operand form of ".comm" on PE. This
24271 # definition is used unconditionally to initialise the default state of
24272 # the target option variable that governs usage of the feature.
24273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24274 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24275 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24276 $as_echo_n "(cached) " >&6
24277 else
24278 gcc_cv_as_comm_has_align=no
24279 if test $in_tree_gas = yes; then
24280 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24281 then gcc_cv_as_comm_has_align=yes
24282 fi
24283 elif test x$gcc_cv_as != x; then
24284 $as_echo '.comm foo,1,32' > conftest.s
24285 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24287 (eval $ac_try) 2>&5
24288 ac_status=$?
24289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24290 test $ac_status = 0; }; }
24291 then
24292 gcc_cv_as_comm_has_align=yes
24293 else
24294 echo "configure: failed program was" >&5
24295 cat conftest.s >&5
24296 fi
24297 rm -f conftest.o conftest.s
24298 fi
24299 fi
24300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24301 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24302
24303
24304 cat >>confdefs.h <<_ACEOF
24305 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24306 _ACEOF
24307
24308 # Used for DWARF 2 in PE
24309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24310 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24311 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24312 $as_echo_n "(cached) " >&6
24313 else
24314 gcc_cv_as_ix86_pe_secrel32=no
24315 if test $in_tree_gas = yes; then
24316 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24317 then gcc_cv_as_ix86_pe_secrel32=yes
24318 fi
24319 elif test x$gcc_cv_as != x; then
24320 $as_echo '.text
24321 foo: nop
24322 .data
24323 .secrel32 foo' > conftest.s
24324 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24326 (eval $ac_try) 2>&5
24327 ac_status=$?
24328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24329 test $ac_status = 0; }; }
24330 then
24331 if test x$gcc_cv_ld != x \
24332 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24333 gcc_cv_as_ix86_pe_secrel32=yes
24334 fi
24335 rm -f conftest
24336 else
24337 echo "configure: failed program was" >&5
24338 cat conftest.s >&5
24339 fi
24340 rm -f conftest.o conftest.s
24341 fi
24342 fi
24343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24344 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24345 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24346
24347 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24348
24349 fi
24350 # Test if the assembler supports the extended form of the .section
24351 # directive that specifies section alignment. LTO support uses this,
24352 # but normally only after installation, so we warn but don't fail the
24353 # configure if LTO is enabled but the assembler does not support it.
24354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24355 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24356 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24357 $as_echo_n "(cached) " >&6
24358 else
24359 gcc_cv_as_section_has_align=no
24360 if test $in_tree_gas = yes; then
24361 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24362 then gcc_cv_as_section_has_align=yes
24363 fi
24364 elif test x$gcc_cv_as != x; then
24365 $as_echo '.section lto_test,"dr0"' > conftest.s
24366 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24368 (eval $ac_try) 2>&5
24369 ac_status=$?
24370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24371 test $ac_status = 0; }; }
24372 then
24373 gcc_cv_as_section_has_align=yes
24374 else
24375 echo "configure: failed program was" >&5
24376 cat conftest.s >&5
24377 fi
24378 rm -f conftest.o conftest.s
24379 fi
24380 fi
24381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24382 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24383
24384 if test x$gcc_cv_as_section_has_align != xyes; then
24385 case ",$enable_languages," in
24386 *,lto,*)
24387 { $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
24388 $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;}
24389 ;;
24390 esac
24391 fi
24392 # Test if the assembler supports the section flag 'e' for specifying
24393 # an excluded section.
24394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24395 $as_echo_n "checking assembler for .section with e... " >&6; }
24396 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24397 $as_echo_n "(cached) " >&6
24398 else
24399 gcc_cv_as_section_has_e=no
24400 if test $in_tree_gas = yes; then
24401 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24402 then gcc_cv_as_section_has_e=yes
24403 fi
24404 elif test x$gcc_cv_as != x; then
24405 $as_echo '.section foo1,"e"
24406 .byte 0,0,0,0' > conftest.s
24407 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24409 (eval $ac_try) 2>&5
24410 ac_status=$?
24411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24412 test $ac_status = 0; }; }
24413 then
24414 gcc_cv_as_section_has_e=yes
24415 else
24416 echo "configure: failed program was" >&5
24417 cat conftest.s >&5
24418 fi
24419 rm -f conftest.o conftest.s
24420 fi
24421 fi
24422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24423 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24424
24425
24426 cat >>confdefs.h <<_ACEOF
24427 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24428 _ACEOF
24429
24430 ;;
24431 esac
24432
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24434 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24435 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24436 $as_echo_n "(cached) " >&6
24437 else
24438 gcc_cv_as_ix86_filds=no
24439 if test x$gcc_cv_as != x; then
24440 $as_echo 'filds mem; fists mem' > conftest.s
24441 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24443 (eval $ac_try) 2>&5
24444 ac_status=$?
24445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24446 test $ac_status = 0; }; }
24447 then
24448 gcc_cv_as_ix86_filds=yes
24449 else
24450 echo "configure: failed program was" >&5
24451 cat conftest.s >&5
24452 fi
24453 rm -f conftest.o conftest.s
24454 fi
24455 fi
24456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24457 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24458 if test $gcc_cv_as_ix86_filds = yes; then
24459
24460 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24461
24462 fi
24463
24464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24465 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24466 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24467 $as_echo_n "(cached) " >&6
24468 else
24469 gcc_cv_as_ix86_fildq=no
24470 if test x$gcc_cv_as != x; then
24471 $as_echo 'fildq mem; fistpq mem' > conftest.s
24472 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24474 (eval $ac_try) 2>&5
24475 ac_status=$?
24476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24477 test $ac_status = 0; }; }
24478 then
24479 gcc_cv_as_ix86_fildq=yes
24480 else
24481 echo "configure: failed program was" >&5
24482 cat conftest.s >&5
24483 fi
24484 rm -f conftest.o conftest.s
24485 fi
24486 fi
24487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24488 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24489 if test $gcc_cv_as_ix86_fildq = yes; then
24490
24491 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24492
24493 fi
24494
24495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24496 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24497 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24498 $as_echo_n "(cached) " >&6
24499 else
24500 gcc_cv_as_ix86_cmov_sun_syntax=no
24501 if test x$gcc_cv_as != x; then
24502 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24503 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24505 (eval $ac_try) 2>&5
24506 ac_status=$?
24507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24508 test $ac_status = 0; }; }
24509 then
24510 gcc_cv_as_ix86_cmov_sun_syntax=yes
24511 else
24512 echo "configure: failed program was" >&5
24513 cat conftest.s >&5
24514 fi
24515 rm -f conftest.o conftest.s
24516 fi
24517 fi
24518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24519 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24520 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24521
24522 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24523
24524 fi
24525
24526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24527 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24528 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24529 $as_echo_n "(cached) " >&6
24530 else
24531 gcc_cv_as_ix86_ffreep=no
24532 if test x$gcc_cv_as != x; then
24533 $as_echo 'ffreep %st(1)' > conftest.s
24534 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24536 (eval $ac_try) 2>&5
24537 ac_status=$?
24538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24539 test $ac_status = 0; }; }
24540 then
24541 gcc_cv_as_ix86_ffreep=yes
24542 else
24543 echo "configure: failed program was" >&5
24544 cat conftest.s >&5
24545 fi
24546 rm -f conftest.o conftest.s
24547 fi
24548 fi
24549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24550 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24551 if test $gcc_cv_as_ix86_ffreep = yes; then
24552
24553 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24554
24555 fi
24556
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24558 $as_echo_n "checking assembler for .quad directive... " >&6; }
24559 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24560 $as_echo_n "(cached) " >&6
24561 else
24562 gcc_cv_as_ix86_quad=no
24563 if test x$gcc_cv_as != x; then
24564 $as_echo '.quad 0' > conftest.s
24565 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24567 (eval $ac_try) 2>&5
24568 ac_status=$?
24569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24570 test $ac_status = 0; }; }
24571 then
24572 gcc_cv_as_ix86_quad=yes
24573 else
24574 echo "configure: failed program was" >&5
24575 cat conftest.s >&5
24576 fi
24577 rm -f conftest.o conftest.s
24578 fi
24579 fi
24580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24581 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24582 if test $gcc_cv_as_ix86_quad = yes; then
24583
24584 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24585
24586 fi
24587
24588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24589 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24590 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24591 $as_echo_n "(cached) " >&6
24592 else
24593 gcc_cv_as_ix86_sahf=no
24594 if test x$gcc_cv_as != x; then
24595 $as_echo '.code64
24596 sahf' > conftest.s
24597 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24599 (eval $ac_try) 2>&5
24600 ac_status=$?
24601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24602 test $ac_status = 0; }; }
24603 then
24604 gcc_cv_as_ix86_sahf=yes
24605 else
24606 echo "configure: failed program was" >&5
24607 cat conftest.s >&5
24608 fi
24609 rm -f conftest.o conftest.s
24610 fi
24611 fi
24612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24613 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24614 if test $gcc_cv_as_ix86_sahf = yes; then
24615
24616 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24617
24618 fi
24619
24620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24621 $as_echo_n "checking assembler for swap suffix... " >&6; }
24622 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24623 $as_echo_n "(cached) " >&6
24624 else
24625 gcc_cv_as_ix86_swap=no
24626 if test x$gcc_cv_as != x; then
24627 $as_echo 'movl.s %esp, %ebp' > conftest.s
24628 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24630 (eval $ac_try) 2>&5
24631 ac_status=$?
24632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24633 test $ac_status = 0; }; }
24634 then
24635 gcc_cv_as_ix86_swap=yes
24636 else
24637 echo "configure: failed program was" >&5
24638 cat conftest.s >&5
24639 fi
24640 rm -f conftest.o conftest.s
24641 fi
24642 fi
24643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24644 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24645 if test $gcc_cv_as_ix86_swap = yes; then
24646
24647 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24648
24649 fi
24650
24651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24652 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24653 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24654 $as_echo_n "(cached) " >&6
24655 else
24656 gcc_cv_as_ix86_diff_sect_delta=no
24657 if test x$gcc_cv_as != x; then
24658 $as_echo '.section .rodata
24659 .L1:
24660 .long .L2-.L1
24661 .long .L3-.L1
24662 .text
24663 .L3: nop
24664 .L2: nop' > conftest.s
24665 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24667 (eval $ac_try) 2>&5
24668 ac_status=$?
24669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24670 test $ac_status = 0; }; }
24671 then
24672 gcc_cv_as_ix86_diff_sect_delta=yes
24673 else
24674 echo "configure: failed program was" >&5
24675 cat conftest.s >&5
24676 fi
24677 rm -f conftest.o conftest.s
24678 fi
24679 fi
24680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24681 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24682 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24683
24684 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24685
24686 fi
24687
24688 # These two are used unconditionally by i386.[ch]; it is to be defined
24689 # to 1 if the feature is present, 0 otherwise.
24690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24691 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24692 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24693 $as_echo_n "(cached) " >&6
24694 else
24695 gcc_cv_as_ix86_gotoff_in_data=no
24696 if test $in_tree_gas = yes; then
24697 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24698 then gcc_cv_as_ix86_gotoff_in_data=yes
24699 fi
24700 elif test x$gcc_cv_as != x; then
24701 $as_echo ' .text
24702 .L0:
24703 nop
24704 .data
24705 .long .L0@GOTOFF' > conftest.s
24706 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24708 (eval $ac_try) 2>&5
24709 ac_status=$?
24710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24711 test $ac_status = 0; }; }
24712 then
24713 gcc_cv_as_ix86_gotoff_in_data=yes
24714 else
24715 echo "configure: failed program was" >&5
24716 cat conftest.s >&5
24717 fi
24718 rm -f conftest.o conftest.s
24719 fi
24720 fi
24721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24722 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24723
24724
24725 cat >>confdefs.h <<_ACEOF
24726 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24727 _ACEOF
24728
24729
24730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24731 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24732 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24733 $as_echo_n "(cached) " >&6
24734 else
24735 gcc_cv_as_ix86_rep_lock_prefix=no
24736 if test x$gcc_cv_as != x; then
24737 $as_echo 'rep movsl
24738 lock addl %edi, (%eax,%esi)
24739 lock orl $0, (%esp)' > conftest.s
24740 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24742 (eval $ac_try) 2>&5
24743 ac_status=$?
24744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24745 test $ac_status = 0; }; }
24746 then
24747 gcc_cv_as_ix86_rep_lock_prefix=yes
24748 else
24749 echo "configure: failed program was" >&5
24750 cat conftest.s >&5
24751 fi
24752 rm -f conftest.o conftest.s
24753 fi
24754 fi
24755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24756 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24757 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24758
24759 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24760
24761 fi
24762
24763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24764 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24765 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24766 $as_echo_n "(cached) " >&6
24767 else
24768 gcc_cv_as_ix86_tlsgdplt=no
24769 if test x$gcc_cv_as != x; then
24770 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24771 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24773 (eval $ac_try) 2>&5
24774 ac_status=$?
24775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24776 test $ac_status = 0; }; }
24777 then
24778 gcc_cv_as_ix86_tlsgdplt=yes
24779 else
24780 echo "configure: failed program was" >&5
24781 cat conftest.s >&5
24782 fi
24783 rm -f conftest.o conftest.s
24784 fi
24785 fi
24786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24787 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24788 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24789
24790 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24791
24792 fi
24793
24794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24795 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24796 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24797 $as_echo_n "(cached) " >&6
24798 else
24799 gcc_cv_as_ix86_tlsldmplt=no
24800 if test x$gcc_cv_as != x; then
24801 $as_echo 'call tls_ld@tlsldmplt' > conftest.s
24802 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24804 (eval $ac_try) 2>&5
24805 ac_status=$?
24806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24807 test $ac_status = 0; }; }
24808 then
24809 gcc_cv_as_ix86_tlsldmplt=yes
24810 else
24811 echo "configure: failed program was" >&5
24812 cat conftest.s >&5
24813 fi
24814 rm -f conftest.o conftest.s
24815 fi
24816 fi
24817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24818 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24819 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24820
24821 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24822
24823 fi
24824
24825 ;;
24826
24827 ia64*-*-*)
24828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24829 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24830 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24831 $as_echo_n "(cached) " >&6
24832 else
24833 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24834 if test $in_tree_gas = yes; then
24835 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24836 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24837 fi
24838 elif test x$gcc_cv_as != x; then
24839 $as_echo ' .text
24840 addl r15 = @ltoffx(x#), gp
24841 ;;
24842 ld8.mov r16 = [r15], x#' > conftest.s
24843 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24845 (eval $ac_try) 2>&5
24846 ac_status=$?
24847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24848 test $ac_status = 0; }; }
24849 then
24850 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24851 else
24852 echo "configure: failed program was" >&5
24853 cat conftest.s >&5
24854 fi
24855 rm -f conftest.o conftest.s
24856 fi
24857 fi
24858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24859 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24860 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24861
24862 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24863
24864 fi
24865
24866 ;;
24867
24868 powerpc*-*-*)
24869 case $target in
24870 *-*-aix*) conftest_s=' .machine "pwr5"
24871 .csect .text[PR]
24872 mfcr 3,128';;
24873 *-*-darwin*)
24874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24875 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24876 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24877 $as_echo_n "(cached) " >&6
24878 else
24879 gcc_cv_as_machine_directive=no
24880 if test x$gcc_cv_as != x; then
24881 $as_echo ' .machine ppc7400' > conftest.s
24882 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24884 (eval $ac_try) 2>&5
24885 ac_status=$?
24886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24887 test $ac_status = 0; }; }
24888 then
24889 gcc_cv_as_machine_directive=yes
24890 else
24891 echo "configure: failed program was" >&5
24892 cat conftest.s >&5
24893 fi
24894 rm -f conftest.o conftest.s
24895 fi
24896 fi
24897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24898 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24899
24900 if test x$gcc_cv_as_machine_directive != xyes; then
24901 echo "*** This target requires an assembler supporting \".machine\"" >&2
24902 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24903 test x$build = x$target && exit 1
24904 fi
24905 conftest_s=' .text
24906 mfcr r3,128';;
24907 *) conftest_s=' .machine power4
24908 .text
24909 mfcr 3,128';;
24910 esac
24911
24912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24913 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24914 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24915 $as_echo_n "(cached) " >&6
24916 else
24917 gcc_cv_as_powerpc_mfcrf=no
24918 if test $in_tree_gas = yes; then
24919 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24920 then gcc_cv_as_powerpc_mfcrf=yes
24921 fi
24922 elif test x$gcc_cv_as != x; then
24923 $as_echo "$conftest_s" > conftest.s
24924 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24926 (eval $ac_try) 2>&5
24927 ac_status=$?
24928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24929 test $ac_status = 0; }; }
24930 then
24931 gcc_cv_as_powerpc_mfcrf=yes
24932 else
24933 echo "configure: failed program was" >&5
24934 cat conftest.s >&5
24935 fi
24936 rm -f conftest.o conftest.s
24937 fi
24938 fi
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24940 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24941 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24942
24943 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24944
24945 fi
24946
24947 case $target in
24948 *-*-aix*) conftest_s=' .machine "pwr5"
24949 .csect .text[PR]
24950 popcntb 3,3';;
24951 *) conftest_s=' .machine power5
24952 .text
24953 popcntb 3,3';;
24954 esac
24955
24956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24957 $as_echo_n "checking assembler for popcntb support... " >&6; }
24958 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24959 $as_echo_n "(cached) " >&6
24960 else
24961 gcc_cv_as_powerpc_popcntb=no
24962 if test $in_tree_gas = yes; then
24963 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24964 then gcc_cv_as_powerpc_popcntb=yes
24965 fi
24966 elif test x$gcc_cv_as != x; then
24967 $as_echo "$conftest_s" > conftest.s
24968 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24970 (eval $ac_try) 2>&5
24971 ac_status=$?
24972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24973 test $ac_status = 0; }; }
24974 then
24975 gcc_cv_as_powerpc_popcntb=yes
24976 else
24977 echo "configure: failed program was" >&5
24978 cat conftest.s >&5
24979 fi
24980 rm -f conftest.o conftest.s
24981 fi
24982 fi
24983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24984 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24985 if test $gcc_cv_as_powerpc_popcntb = yes; then
24986
24987 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24988
24989 fi
24990
24991 case $target in
24992 *-*-aix*) conftest_s=' .machine "pwr5x"
24993 .csect .text[PR]
24994 frin 1,1';;
24995 *) conftest_s=' .machine power5
24996 .text
24997 frin 1,1';;
24998 esac
24999
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25001 $as_echo_n "checking assembler for fp round support... " >&6; }
25002 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25003 $as_echo_n "(cached) " >&6
25004 else
25005 gcc_cv_as_powerpc_fprnd=no
25006 if test $in_tree_gas = yes; then
25007 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25008 then gcc_cv_as_powerpc_fprnd=yes
25009 fi
25010 elif test x$gcc_cv_as != x; then
25011 $as_echo "$conftest_s" > conftest.s
25012 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25014 (eval $ac_try) 2>&5
25015 ac_status=$?
25016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25017 test $ac_status = 0; }; }
25018 then
25019 gcc_cv_as_powerpc_fprnd=yes
25020 else
25021 echo "configure: failed program was" >&5
25022 cat conftest.s >&5
25023 fi
25024 rm -f conftest.o conftest.s
25025 fi
25026 fi
25027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25028 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25029 if test $gcc_cv_as_powerpc_fprnd = yes; then
25030
25031 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25032
25033 fi
25034
25035 case $target in
25036 *-*-aix*) conftest_s=' .machine "pwr6"
25037 .csect .text[PR]
25038 mffgpr 1,3';;
25039 *) conftest_s=' .machine power6
25040 .text
25041 mffgpr 1,3';;
25042 esac
25043
25044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25045 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25046 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25047 $as_echo_n "(cached) " >&6
25048 else
25049 gcc_cv_as_powerpc_mfpgpr=no
25050 if test $in_tree_gas = yes; then
25051 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25052 then gcc_cv_as_powerpc_mfpgpr=yes
25053 fi
25054 elif test x$gcc_cv_as != x; then
25055 $as_echo "$conftest_s" > conftest.s
25056 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25058 (eval $ac_try) 2>&5
25059 ac_status=$?
25060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25061 test $ac_status = 0; }; }
25062 then
25063 gcc_cv_as_powerpc_mfpgpr=yes
25064 else
25065 echo "configure: failed program was" >&5
25066 cat conftest.s >&5
25067 fi
25068 rm -f conftest.o conftest.s
25069 fi
25070 fi
25071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25072 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25073 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25074
25075 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25076
25077 fi
25078
25079 case $target in
25080 *-*-aix*) conftest_s=' .csect .text[PR]
25081 LCF..0:
25082 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25083 *-*-darwin*)
25084 conftest_s=' .text
25085 LCF0:
25086 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25087 *) conftest_s=' .text
25088 .LCF0:
25089 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25090 esac
25091
25092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25093 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25094 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25095 $as_echo_n "(cached) " >&6
25096 else
25097 gcc_cv_as_powerpc_rel16=no
25098 if test $in_tree_gas = yes; then
25099 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25100 then gcc_cv_as_powerpc_rel16=yes
25101 fi
25102 elif test x$gcc_cv_as != x; then
25103 $as_echo "$conftest_s" > conftest.s
25104 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25106 (eval $ac_try) 2>&5
25107 ac_status=$?
25108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25109 test $ac_status = 0; }; }
25110 then
25111 gcc_cv_as_powerpc_rel16=yes
25112 else
25113 echo "configure: failed program was" >&5
25114 cat conftest.s >&5
25115 fi
25116 rm -f conftest.o conftest.s
25117 fi
25118 fi
25119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25120 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25121 if test $gcc_cv_as_powerpc_rel16 = yes; then
25122
25123 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25124
25125 fi
25126
25127 case $target in
25128 *-*-aix*) conftest_s=' .machine "pwr6"
25129 .csect .text[PR]
25130 cmpb 3,4,5';;
25131 *) conftest_s=' .machine power6
25132 .text
25133 cmpb 3,4,5';;
25134 esac
25135
25136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25137 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25138 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25139 $as_echo_n "(cached) " >&6
25140 else
25141 gcc_cv_as_powerpc_cmpb=no
25142 if test $in_tree_gas = yes; then
25143 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25144 then gcc_cv_as_powerpc_cmpb=yes
25145 fi
25146 elif test x$gcc_cv_as != x; then
25147 $as_echo "$conftest_s" > conftest.s
25148 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25150 (eval $ac_try) 2>&5
25151 ac_status=$?
25152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25153 test $ac_status = 0; }; }
25154 then
25155 gcc_cv_as_powerpc_cmpb=yes
25156 else
25157 echo "configure: failed program was" >&5
25158 cat conftest.s >&5
25159 fi
25160 rm -f conftest.o conftest.s
25161 fi
25162 fi
25163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25164 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25165 if test $gcc_cv_as_powerpc_cmpb = yes; then
25166
25167 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25168
25169 fi
25170
25171 case $target in
25172 *-*-aix*) conftest_s=' .machine "pwr6"
25173 .csect .text[PR]
25174 dadd 1,2,3';;
25175 *) conftest_s=' .machine power6
25176 .text
25177 dadd 1,2,3';;
25178 esac
25179
25180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25181 $as_echo_n "checking assembler for decimal float support... " >&6; }
25182 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25183 $as_echo_n "(cached) " >&6
25184 else
25185 gcc_cv_as_powerpc_dfp=no
25186 if test $in_tree_gas = yes; then
25187 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25188 then gcc_cv_as_powerpc_dfp=yes
25189 fi
25190 elif test x$gcc_cv_as != x; then
25191 $as_echo "$conftest_s" > conftest.s
25192 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -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_powerpc_dfp=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_powerpc_dfp" >&5
25208 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25209 if test $gcc_cv_as_powerpc_dfp = yes; then
25210
25211 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25212
25213 fi
25214
25215 case $target in
25216 *-*-aix*) conftest_s=' .machine "pwr7"
25217 .csect .text[PR]
25218 lxvd2x 1,2,3';;
25219 *) conftest_s=' .machine power7
25220 .text
25221 lxvd2x 1,2,3';;
25222 esac
25223
25224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25225 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25226 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25227 $as_echo_n "(cached) " >&6
25228 else
25229 gcc_cv_as_powerpc_vsx=no
25230 if test $in_tree_gas = yes; then
25231 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25232 then gcc_cv_as_powerpc_vsx=yes
25233 fi
25234 elif test x$gcc_cv_as != x; then
25235 $as_echo "$conftest_s" > conftest.s
25236 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25238 (eval $ac_try) 2>&5
25239 ac_status=$?
25240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25241 test $ac_status = 0; }; }
25242 then
25243 gcc_cv_as_powerpc_vsx=yes
25244 else
25245 echo "configure: failed program was" >&5
25246 cat conftest.s >&5
25247 fi
25248 rm -f conftest.o conftest.s
25249 fi
25250 fi
25251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25252 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25253 if test $gcc_cv_as_powerpc_vsx = yes; then
25254
25255 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25256
25257 fi
25258
25259 case $target in
25260 *-*-aix*) conftest_s=' .machine "pwr7"
25261 .csect .text[PR]
25262 popcntd 3,3';;
25263 *) conftest_s=' .machine power7
25264 .text
25265 popcntd 3,3';;
25266 esac
25267
25268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25269 $as_echo_n "checking assembler for popcntd support... " >&6; }
25270 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25271 $as_echo_n "(cached) " >&6
25272 else
25273 gcc_cv_as_powerpc_popcntd=no
25274 if test $in_tree_gas = yes; then
25275 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25276 then gcc_cv_as_powerpc_popcntd=yes
25277 fi
25278 elif test x$gcc_cv_as != x; then
25279 $as_echo "$conftest_s" > conftest.s
25280 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25282 (eval $ac_try) 2>&5
25283 ac_status=$?
25284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25285 test $ac_status = 0; }; }
25286 then
25287 gcc_cv_as_powerpc_popcntd=yes
25288 else
25289 echo "configure: failed program was" >&5
25290 cat conftest.s >&5
25291 fi
25292 rm -f conftest.o conftest.s
25293 fi
25294 fi
25295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25296 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25297 if test $gcc_cv_as_powerpc_popcntd = yes; then
25298
25299 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25300
25301 fi
25302
25303 case $target in
25304 *-*-aix*) conftest_s=' .csect .text[PR]
25305 lwsync';;
25306 *) conftest_s=' .text
25307 lwsync';;
25308 esac
25309
25310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25311 $as_echo_n "checking assembler for lwsync support... " >&6; }
25312 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25313 $as_echo_n "(cached) " >&6
25314 else
25315 gcc_cv_as_powerpc_lwsync=no
25316 if test $in_tree_gas = yes; then
25317 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25318 then gcc_cv_as_powerpc_lwsync=yes
25319 fi
25320 elif test x$gcc_cv_as != x; then
25321 $as_echo "$conftest_s" > conftest.s
25322 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25324 (eval $ac_try) 2>&5
25325 ac_status=$?
25326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25327 test $ac_status = 0; }; }
25328 then
25329 gcc_cv_as_powerpc_lwsync=yes
25330 else
25331 echo "configure: failed program was" >&5
25332 cat conftest.s >&5
25333 fi
25334 rm -f conftest.o conftest.s
25335 fi
25336 fi
25337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25338 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25339 if test $gcc_cv_as_powerpc_lwsync = yes; then
25340
25341 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25342
25343 fi
25344
25345 case $target in
25346 *-*-aix*) conftest_s=' .machine "476"
25347 .csect .text[PR]
25348 dci 0';;
25349 *) conftest_s=' .machine "476"
25350 .text
25351 dci 0';;
25352 esac
25353
25354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25355 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25356 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25357 $as_echo_n "(cached) " >&6
25358 else
25359 gcc_cv_as_powerpc_dci=no
25360 if test $in_tree_gas = yes; then
25361 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25362 then gcc_cv_as_powerpc_dci=yes
25363 fi
25364 elif test x$gcc_cv_as != x; then
25365 $as_echo "$conftest_s" > conftest.s
25366 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25368 (eval $ac_try) 2>&5
25369 ac_status=$?
25370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25371 test $ac_status = 0; }; }
25372 then
25373 gcc_cv_as_powerpc_dci=yes
25374 else
25375 echo "configure: failed program was" >&5
25376 cat conftest.s >&5
25377 fi
25378 rm -f conftest.o conftest.s
25379 fi
25380 fi
25381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25382 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25383 if test $gcc_cv_as_powerpc_dci = yes; then
25384
25385 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25386
25387 fi
25388
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25390 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25391 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25392 $as_echo_n "(cached) " >&6
25393 else
25394 gcc_cv_as_powerpc_gnu_attribute=no
25395 if test $in_tree_gas = yes; then
25396 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25397 then gcc_cv_as_powerpc_gnu_attribute=yes
25398 fi
25399 elif test x$gcc_cv_as != x; then
25400 $as_echo '.gnu_attribute 4,1' > conftest.s
25401 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25403 (eval $ac_try) 2>&5
25404 ac_status=$?
25405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25406 test $ac_status = 0; }; }
25407 then
25408 gcc_cv_as_powerpc_gnu_attribute=yes
25409 else
25410 echo "configure: failed program was" >&5
25411 cat conftest.s >&5
25412 fi
25413 rm -f conftest.o conftest.s
25414 fi
25415 fi
25416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25417 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25418 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25419
25420 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25421
25422 fi
25423
25424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25425 $as_echo_n "checking assembler for tls marker support... " >&6; }
25426 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25427 $as_echo_n "(cached) " >&6
25428 else
25429 gcc_cv_as_powerpc_tls_markers=no
25430 if test $in_tree_gas = yes; then
25431 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25432 then gcc_cv_as_powerpc_tls_markers=yes
25433 fi
25434 elif test x$gcc_cv_as != x; then
25435 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25436 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25438 (eval $ac_try) 2>&5
25439 ac_status=$?
25440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25441 test $ac_status = 0; }; }
25442 then
25443 gcc_cv_as_powerpc_tls_markers=yes
25444 else
25445 echo "configure: failed program was" >&5
25446 cat conftest.s >&5
25447 fi
25448 rm -f conftest.o conftest.s
25449 fi
25450 fi
25451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25452 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25453 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25454
25455 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25456
25457 fi
25458
25459 case $target in
25460 *-*-aix*)
25461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25462 $as_echo_n "checking assembler for .ref support... " >&6; }
25463 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25464 $as_echo_n "(cached) " >&6
25465 else
25466 gcc_cv_as_aix_ref=no
25467 if test $in_tree_gas = yes; then
25468 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25469 then :
25470 fi
25471 elif test x$gcc_cv_as != x; then
25472 $as_echo ' .csect stuff[rw]
25473 stuff:
25474 .long 1
25475 .extern sym
25476 .ref sym
25477 ' > conftest.s
25478 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25480 (eval $ac_try) 2>&5
25481 ac_status=$?
25482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25483 test $ac_status = 0; }; }
25484 then
25485 gcc_cv_as_aix_ref=yes
25486 else
25487 echo "configure: failed program was" >&5
25488 cat conftest.s >&5
25489 fi
25490 rm -f conftest.o conftest.s
25491 fi
25492 fi
25493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25494 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25495 if test $gcc_cv_as_aix_ref = yes; then
25496
25497 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25498
25499 fi
25500 ;;
25501 esac
25502 ;;
25503
25504 mips*-*-*)
25505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25506 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25507 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25508 $as_echo_n "(cached) " >&6
25509 else
25510 gcc_cv_as_mips_explicit_relocs=no
25511 if test $in_tree_gas = yes; then
25512 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25513 then gcc_cv_as_mips_explicit_relocs=yes
25514 fi
25515 elif test x$gcc_cv_as != x; then
25516 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25517 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25519 (eval $ac_try) 2>&5
25520 ac_status=$?
25521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25522 test $ac_status = 0; }; }
25523 then
25524 gcc_cv_as_mips_explicit_relocs=yes
25525 else
25526 echo "configure: failed program was" >&5
25527 cat conftest.s >&5
25528 fi
25529 rm -f conftest.o conftest.s
25530 fi
25531 fi
25532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25533 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25534 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25535 if test x$target_cpu_default = x
25536 then target_cpu_default=MASK_EXPLICIT_RELOCS
25537 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25538 fi
25539 fi
25540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25541 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25542 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25543 $as_echo_n "(cached) " >&6
25544 else
25545 gcc_cv_as_mips_no_shared=no
25546 if test $in_tree_gas = yes; then
25547 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25548 then gcc_cv_as_mips_no_shared=yes
25549 fi
25550 elif test x$gcc_cv_as != x; then
25551 $as_echo 'nop' > conftest.s
25552 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25554 (eval $ac_try) 2>&5
25555 ac_status=$?
25556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25557 test $ac_status = 0; }; }
25558 then
25559 gcc_cv_as_mips_no_shared=yes
25560 else
25561 echo "configure: failed program was" >&5
25562 cat conftest.s >&5
25563 fi
25564 rm -f conftest.o conftest.s
25565 fi
25566 fi
25567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25568 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25569 if test $gcc_cv_as_mips_no_shared = yes; then
25570
25571 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25572
25573 fi
25574
25575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25576 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25577 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25578 $as_echo_n "(cached) " >&6
25579 else
25580 gcc_cv_as_mips_gnu_attribute=no
25581 if test $in_tree_gas = yes; then
25582 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25583 then gcc_cv_as_mips_gnu_attribute=yes
25584 fi
25585 elif test x$gcc_cv_as != x; then
25586 $as_echo '.gnu_attribute 4,1' > conftest.s
25587 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25589 (eval $ac_try) 2>&5
25590 ac_status=$?
25591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25592 test $ac_status = 0; }; }
25593 then
25594 gcc_cv_as_mips_gnu_attribute=yes
25595 else
25596 echo "configure: failed program was" >&5
25597 cat conftest.s >&5
25598 fi
25599 rm -f conftest.o conftest.s
25600 fi
25601 fi
25602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25603 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25604 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25605
25606 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25607
25608 fi
25609
25610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25611 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25612 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25613 $as_echo_n "(cached) " >&6
25614 else
25615 gcc_cv_as_mips_dtprelword=no
25616 if test $in_tree_gas = yes; then
25617 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25618 then gcc_cv_as_mips_dtprelword=yes
25619 fi
25620 elif test x$gcc_cv_as != x; then
25621 $as_echo '.section .tdata,"awT",@progbits
25622 x:
25623 .word 2
25624 .text
25625 .dtprelword x+0x8000' > conftest.s
25626 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25628 (eval $ac_try) 2>&5
25629 ac_status=$?
25630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25631 test $ac_status = 0; }; }
25632 then
25633 gcc_cv_as_mips_dtprelword=yes
25634 else
25635 echo "configure: failed program was" >&5
25636 cat conftest.s >&5
25637 fi
25638 rm -f conftest.o conftest.s
25639 fi
25640 fi
25641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25642 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25643 if test $gcc_cv_as_mips_dtprelword = yes; then
25644
25645 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25646
25647 fi
25648
25649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25650 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25651 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25652 $as_echo_n "(cached) " >&6
25653 else
25654 gcc_cv_as_mips_dspr1_mult=no
25655 if test x$gcc_cv_as != x; then
25656 $as_echo ' .set mips32r2
25657 .set nodspr2
25658 .set dsp
25659 madd $ac3,$4,$5
25660 maddu $ac3,$4,$5
25661 msub $ac3,$4,$5
25662 msubu $ac3,$4,$5
25663 mult $ac3,$4,$5
25664 multu $ac3,$4,$5' > conftest.s
25665 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25667 (eval $ac_try) 2>&5
25668 ac_status=$?
25669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25670 test $ac_status = 0; }; }
25671 then
25672 gcc_cv_as_mips_dspr1_mult=yes
25673 else
25674 echo "configure: failed program was" >&5
25675 cat conftest.s >&5
25676 fi
25677 rm -f conftest.o conftest.s
25678 fi
25679 fi
25680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25681 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25682 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25683
25684 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25685
25686 fi
25687
25688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25689 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25690 gcc_cv_as_ld_jalr_reloc=no
25691 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25692 if test $in_tree_ld = yes ; then
25693 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 \
25694 && test $in_tree_ld_is_elf = yes; then
25695 gcc_cv_as_ld_jalr_reloc=yes
25696 fi
25697 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25698 echo ' .ent x' > conftest.s
25699 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25700 echo ' ld $25,%call16(y)($28)' >> conftest.s
25701 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25702 echo '1: jalr $25' >> conftest.s
25703 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25704 echo '1: jalr $25' >> conftest.s
25705 echo ' .end x' >> conftest.s
25706 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25707 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25708 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25709 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25710 gcc_cv_as_ld_jalr_reloc=yes
25711 fi
25712 fi
25713 rm -f conftest.*
25714 fi
25715 fi
25716 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25717 if test x$target_cpu_default = x; then
25718 target_cpu_default=MASK_RELAX_PIC_CALLS
25719 else
25720 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25721 fi
25722 fi
25723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25724 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25725
25726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25727 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25728 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25729 $as_echo_n "(cached) " >&6
25730 else
25731 gcc_cv_ld_mips_personality_relaxation=no
25732 if test $in_tree_ld = yes ; then
25733 if test "$gcc_cv_gld_major_version" -eq 2 \
25734 -a "$gcc_cv_gld_minor_version" -ge 21 \
25735 -o "$gcc_cv_gld_major_version" -gt 2; then
25736 gcc_cv_ld_mips_personality_relaxation=yes
25737 fi
25738 elif test x$gcc_cv_as != x \
25739 -a x$gcc_cv_ld != x \
25740 -a x$gcc_cv_readelf != x ; then
25741 cat > conftest.s <<EOF
25742 .cfi_startproc
25743 .cfi_personality 0x80,indirect_ptr
25744 .ent test
25745 test:
25746 nop
25747 .end test
25748 .cfi_endproc
25749
25750 .section .data,"aw",@progbits
25751 indirect_ptr:
25752 .dc.a personality
25753 EOF
25754 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25755 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25756 if $gcc_cv_readelf -d conftest 2>&1 \
25757 | grep TEXTREL > /dev/null 2>&1; then
25758 :
25759 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25760 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25761 :
25762 else
25763 gcc_cv_ld_mips_personality_relaxation=yes
25764 fi
25765 fi
25766 fi
25767 rm -f conftest.s conftest.o conftest
25768 fi
25769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25770 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25771 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25772
25773 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25774
25775 fi
25776 ;;
25777 esac
25778
25779 # Mips and HP-UX need the GNU assembler.
25780 # Linux on IA64 might be able to use the Intel assembler.
25781
25782 case "$target" in
25783 mips*-*-* | *-*-hpux* )
25784 if test x$gas_flag = xyes \
25785 || test x"$host" != x"$build" \
25786 || test ! -x "$gcc_cv_as" \
25787 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25788 :
25789 else
25790 echo "*** This configuration requires the GNU assembler" >&2
25791 exit 1
25792 fi
25793 ;;
25794 esac
25795
25796 # ??? Not all targets support dwarf2 debug_line, even within a version
25797 # of gas. Moreover, we need to emit a valid instruction to trigger any
25798 # info to the output file. So, as supported targets are added to gas 2.11,
25799 # add some instruction here to (also) show we expect this might work.
25800 # ??? Once 2.11 is released, probably need to add first known working
25801 # version to the per-target configury.
25802 case "$cpu_type" in
25803 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25804 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
25805 insn="nop"
25806 ;;
25807 ia64 | s390)
25808 insn="nop 0"
25809 ;;
25810 mmix)
25811 insn="swym 0"
25812 ;;
25813 esac
25814 if test x"$insn" != x; then
25815 conftest_s="\
25816 .file 1 \"conftest.s\"
25817 .loc 1 3 0
25818 $insn"
25819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25820 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25821 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25822 $as_echo_n "(cached) " >&6
25823 else
25824 gcc_cv_as_dwarf2_debug_line=no
25825 if test $in_tree_gas = yes; then
25826 if test $in_tree_gas_is_elf = yes \
25827 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25828 then gcc_cv_as_dwarf2_debug_line=yes
25829 fi
25830 elif test x$gcc_cv_as != x; then
25831 $as_echo "$conftest_s" > conftest.s
25832 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25834 (eval $ac_try) 2>&5
25835 ac_status=$?
25836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25837 test $ac_status = 0; }; }
25838 then
25839 if test x$gcc_cv_objdump != x \
25840 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25841 | grep debug_line > /dev/null 2>&1; then
25842 gcc_cv_as_dwarf2_debug_line=yes
25843 fi
25844 else
25845 echo "configure: failed program was" >&5
25846 cat conftest.s >&5
25847 fi
25848 rm -f conftest.o conftest.s
25849 fi
25850 fi
25851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25852 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25853
25854
25855 # The .debug_line file table must be in the exact order that
25856 # we specified the files, since these indices are also used
25857 # by DW_AT_decl_file. Approximate this test by testing if
25858 # the assembler bitches if the same index is assigned twice.
25859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25860 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25861 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25862 $as_echo_n "(cached) " >&6
25863 else
25864 gcc_cv_as_dwarf2_file_buggy=no
25865 if test x$gcc_cv_as != x; then
25866 $as_echo ' .file 1 "foo.s"
25867 .file 1 "bar.s"' > conftest.s
25868 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25870 (eval $ac_try) 2>&5
25871 ac_status=$?
25872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25873 test $ac_status = 0; }; }
25874 then
25875 gcc_cv_as_dwarf2_file_buggy=yes
25876 else
25877 echo "configure: failed program was" >&5
25878 cat conftest.s >&5
25879 fi
25880 rm -f conftest.o conftest.s
25881 fi
25882 fi
25883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25884 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25885
25886
25887 if test $gcc_cv_as_dwarf2_debug_line = yes \
25888 && test $gcc_cv_as_dwarf2_file_buggy = no; then
25889
25890 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25891
25892 fi
25893
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25895 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25896 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25897 $as_echo_n "(cached) " >&6
25898 else
25899 gcc_cv_as_gdwarf2_flag=no
25900 if test $in_tree_gas = yes; then
25901 if test $in_tree_gas_is_elf = yes \
25902 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25903 then gcc_cv_as_gdwarf2_flag=yes
25904 fi
25905 elif test x$gcc_cv_as != x; then
25906 $as_echo "$insn" > conftest.s
25907 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25909 (eval $ac_try) 2>&5
25910 ac_status=$?
25911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25912 test $ac_status = 0; }; }
25913 then
25914 gcc_cv_as_gdwarf2_flag=yes
25915 else
25916 echo "configure: failed program was" >&5
25917 cat conftest.s >&5
25918 fi
25919 rm -f conftest.o conftest.s
25920 fi
25921 fi
25922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25923 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25924 if test $gcc_cv_as_gdwarf2_flag = yes; then
25925
25926 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25927
25928 fi
25929
25930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25931 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25932 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25933 $as_echo_n "(cached) " >&6
25934 else
25935 gcc_cv_as_gstabs_flag=no
25936 if test $in_tree_gas = yes; then
25937 if test $in_tree_gas_is_elf = yes \
25938 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25939 then gcc_cv_as_gstabs_flag=yes
25940 fi
25941 elif test x$gcc_cv_as != x; then
25942 $as_echo "$insn" > conftest.s
25943 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25945 (eval $ac_try) 2>&5
25946 ac_status=$?
25947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25948 test $ac_status = 0; }; }
25949 then
25950 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25951 # and warns about it, but still exits successfully. So check for
25952 # this.
25953 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25955 (eval $ac_try) 2>&5
25956 ac_status=$?
25957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25958 test $ac_status = 0; }; }
25959 then :
25960 else gcc_cv_as_gstabs_flag=yes
25961 fi
25962 else
25963 echo "configure: failed program was" >&5
25964 cat conftest.s >&5
25965 fi
25966 rm -f conftest.o conftest.s
25967 fi
25968 fi
25969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25970 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25971 if test $gcc_cv_as_gstabs_flag = yes; then
25972
25973 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25974
25975 fi
25976
25977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25978 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25979 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25980 $as_echo_n "(cached) " >&6
25981 else
25982 gcc_cv_as_debug_prefix_map_flag=no
25983 if test $in_tree_gas = yes; then
25984 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25985 then gcc_cv_as_debug_prefix_map_flag=yes
25986 fi
25987 elif test x$gcc_cv_as != x; then
25988 $as_echo "$insn" > conftest.s
25989 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25991 (eval $ac_try) 2>&5
25992 ac_status=$?
25993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25994 test $ac_status = 0; }; }
25995 then
25996 gcc_cv_as_debug_prefix_map_flag=yes
25997 else
25998 echo "configure: failed program was" >&5
25999 cat conftest.s >&5
26000 fi
26001 rm -f conftest.o conftest.s
26002 fi
26003 fi
26004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26005 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26006 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26007
26008 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26009
26010 fi
26011 fi
26012
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26014 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26015 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26016 $as_echo_n "(cached) " >&6
26017 else
26018 gcc_cv_as_lcomm_with_alignment=no
26019 if test x$gcc_cv_as != x; then
26020 $as_echo '.lcomm bar,4,16' > conftest.s
26021 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26023 (eval $ac_try) 2>&5
26024 ac_status=$?
26025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26026 test $ac_status = 0; }; }
26027 then
26028 gcc_cv_as_lcomm_with_alignment=yes
26029 else
26030 echo "configure: failed program was" >&5
26031 cat conftest.s >&5
26032 fi
26033 rm -f conftest.o conftest.s
26034 fi
26035 fi
26036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26037 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26038 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26039
26040 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26041
26042 fi
26043
26044 # Check whether --enable-gnu-unique-object was given.
26045 if test "${enable_gnu_unique_object+set}" = set; then :
26046 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26047 yes | no) ;;
26048 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26049 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26050 esac
26051 else
26052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26053 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26054 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26055 $as_echo_n "(cached) " >&6
26056 else
26057 gcc_cv_as_gnu_unique_object=no
26058 if test $in_tree_gas = yes; then
26059 if test $in_tree_gas_is_elf = yes \
26060 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26061 then gcc_cv_as_gnu_unique_object=yes
26062 fi
26063 elif test x$gcc_cv_as != x; then
26064 $as_echo '.type foo, @gnu_unique_object' > conftest.s
26065 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26067 (eval $ac_try) 2>&5
26068 ac_status=$?
26069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26070 test $ac_status = 0; }; }
26071 then
26072 gcc_cv_as_gnu_unique_object=yes
26073 else
26074 echo "configure: failed program was" >&5
26075 cat conftest.s >&5
26076 fi
26077 rm -f conftest.o conftest.s
26078 fi
26079 fi
26080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26081 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26082 if test $gcc_cv_as_gnu_unique_object = yes; then
26083 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26084 if test x$host = x$build -a x$host = x$target &&
26085 ldd --version 2>/dev/null &&
26086 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26087 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26088 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26089 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26090 if test "$glibcnum" -ge 2011 ; then
26091 enable_gnu_unique_object=yes
26092 fi
26093 fi
26094 fi
26095 fi
26096
26097 if test x$enable_gnu_unique_object = xyes; then
26098
26099 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26100
26101 fi
26102
26103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26104 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26105 if test "${gcc_cv_as_line_zero+set}" = set; then :
26106 $as_echo_n "(cached) " >&6
26107 else
26108 gcc_cv_as_line_zero=no
26109 if test $in_tree_gas = yes; then
26110 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26111 then gcc_cv_as_line_zero=yes
26112 fi
26113 elif test "x$gcc_cv_as" != x; then
26114 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26115 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26117 (eval $ac_try) 2>&5
26118 ac_status=$?
26119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26120 test $ac_status = 0; }; } &&
26121 test "x`cat conftest.out`" = x
26122 then
26123 gcc_cv_as_line_zero=yes
26124 else
26125 echo "configure: failed program was" >&5
26126 cat conftest.s >&5
26127 echo "configure: error output was" >&5
26128 cat conftest.out >&5
26129 fi
26130 rm -f conftest.o conftest.s conftest.out
26131 fi
26132 fi
26133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26134 $as_echo "$gcc_cv_as_line_zero" >&6; }
26135 if test "x$gcc_cv_as_line_zero" = xyes; then
26136
26137 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26138
26139 fi
26140
26141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26142 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26143 gcc_cv_ld_eh_frame_hdr=no
26144 if test $in_tree_ld = yes ; then
26145 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 \
26146 && test $in_tree_ld_is_elf = yes; then
26147 gcc_cv_ld_eh_frame_hdr=yes
26148 fi
26149 elif test x$gcc_cv_ld != x; then
26150 if echo "$ld_ver" | grep GNU > /dev/null; then
26151 # Check if linker supports --eh-frame-hdr option
26152 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26153 gcc_cv_ld_eh_frame_hdr=yes
26154 fi
26155 else
26156 case "$target" in
26157 *-*-solaris2*)
26158 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26159 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26160 gcc_cv_ld_eh_frame_hdr=yes
26161 fi
26162 ;;
26163 esac
26164 fi
26165 fi
26166
26167 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26168
26169 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26170
26171 fi
26172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26173 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26174
26175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26176 $as_echo_n "checking linker position independent executable support... " >&6; }
26177 gcc_cv_ld_pie=no
26178 if test $in_tree_ld = yes ; then
26179 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 \
26180 && test $in_tree_ld_is_elf = yes; then
26181 gcc_cv_ld_pie=yes
26182 fi
26183 elif test x$gcc_cv_ld != x; then
26184 # Check if linker supports -pie option
26185 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26186 gcc_cv_ld_pie=yes
26187 fi
26188 fi
26189 if test x"$gcc_cv_ld_pie" = xyes; then
26190
26191 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26192
26193 fi
26194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26195 $as_echo "$gcc_cv_ld_pie" >&6; }
26196
26197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26198 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26199 gcc_cv_ld_eh_gc_sections=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 17 -o "$gcc_cv_gld_major_version" -gt 2 \
26202 && test $in_tree_ld_is_elf = yes; then
26203 gcc_cv_ld_eh_gc_sections=yes
26204 fi
26205 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26206 cat > conftest.s <<EOF
26207 .section .text
26208 .globl _start
26209 .type _start, @function
26210 _start:
26211 .long foo
26212 .size _start, .-_start
26213 .section .text.foo,"ax",@progbits
26214 .type foo, @function
26215 foo:
26216 .long 0
26217 .size foo, .-foo
26218 .section .gcc_except_table.foo,"a",@progbits
26219 .L0:
26220 .long 0
26221 .section .eh_frame,"a",@progbits
26222 .long .L0
26223 EOF
26224 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26225 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26226 | grep "gc-sections option ignored" > /dev/null; then
26227 gcc_cv_ld_eh_gc_sections=no
26228 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26229 | grep gcc_except_table > /dev/null; then
26230 gcc_cv_ld_eh_gc_sections=yes
26231 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26232 if test x$gcc_cv_as_comdat_group != xyes; then
26233 gcc_cv_ld_eh_gc_sections=no
26234 cat > conftest.s <<EOF
26235 .section .text
26236 .globl _start
26237 .type _start, @function
26238 _start:
26239 .long foo
26240 .size _start, .-_start
26241 .section .gnu.linkonce.t.foo,"ax",@progbits
26242 .type foo, @function
26243 foo:
26244 .long 0
26245 .size foo, .-foo
26246 .section .gcc_except_table.foo,"a",@progbits
26247 .L0:
26248 .long 0
26249 .section .eh_frame,"a",@progbits
26250 .long .L0
26251 EOF
26252 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26253 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26254 | grep "gc-sections option ignored" > /dev/null; then
26255 gcc_cv_ld_eh_gc_sections=no
26256 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26257 | grep gcc_except_table > /dev/null; then
26258 gcc_cv_ld_eh_gc_sections=yes
26259 fi
26260 fi
26261 fi
26262 fi
26263 fi
26264 rm -f conftest.s conftest.o conftest
26265 fi
26266 case "$target" in
26267 hppa*-*-linux*)
26268 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26269 gcc_cv_ld_eh_gc_sections=no
26270 ;;
26271 esac
26272 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26273
26274 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26275
26276 fi
26277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26278 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26279
26280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26281 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26282 gcc_cv_ld_eh_gc_sections_bug=no
26283 if test $in_tree_ld = yes ; then
26284 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 \
26285 && test $in_tree_ld_is_elf = yes; then
26286 gcc_cv_ld_eh_gc_sections_bug=yes
26287 fi
26288 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
26289 gcc_cv_ld_eh_gc_sections_bug=yes
26290 cat > conftest.s <<EOF
26291 .section .text
26292 .globl _start
26293 .type _start, @function
26294 _start:
26295 .long foo
26296 .size _start, .-_start
26297 .section .text.startup.foo,"ax",@progbits
26298 .type foo, @function
26299 foo:
26300 .long 0
26301 .size foo, .-foo
26302 .section .gcc_except_table.foo,"a",@progbits
26303 .L0:
26304 .long 0
26305 .section .eh_frame,"a",@progbits
26306 .long .L0
26307 EOF
26308 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26309 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26310 | grep "gc-sections option ignored" > /dev/null; then
26311 :
26312 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26313 | grep gcc_except_table > /dev/null; then
26314 gcc_cv_ld_eh_gc_sections_bug=no
26315 fi
26316 fi
26317 rm -f conftest.s conftest.o conftest
26318 fi
26319 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26320
26321 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26322
26323 fi
26324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26325 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26326
26327 # --------
26328 # UNSORTED
26329 # --------
26330
26331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26332 $as_echo_n "checking linker --as-needed support... " >&6; }
26333 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26334 $as_echo_n "(cached) " >&6
26335 else
26336 gcc_cv_ld_as_needed=no
26337 if test $in_tree_ld = yes ; then
26338 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 \
26339 && test $in_tree_ld_is_elf = yes; then
26340 gcc_cv_ld_as_needed=yes
26341 fi
26342 elif test x$gcc_cv_ld != x; then
26343 # Check if linker supports --as-needed and --no-as-needed options
26344 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26345 gcc_cv_ld_as_needed=yes
26346 fi
26347 fi
26348
26349 fi
26350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26351 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26352 if test x"$gcc_cv_ld_as_needed" = xyes; then
26353
26354 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26355
26356 fi
26357
26358 case "$target:$tm_file" in
26359 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26361 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26362 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26363 $as_echo_n "(cached) " >&6
26364 else
26365 gcc_cv_ld_no_dot_syms=no
26366 if test $in_tree_ld = yes ; then
26367 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
26368 gcc_cv_ld_no_dot_syms=yes
26369 fi
26370 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26371 cat > conftest1.s <<EOF
26372 .text
26373 bl .foo
26374 EOF
26375 cat > conftest2.s <<EOF
26376 .section ".opd","aw"
26377 .align 3
26378 .globl foo
26379 .type foo,@function
26380 foo:
26381 .quad .LEfoo,.TOC.@tocbase,0
26382 .text
26383 .LEfoo:
26384 blr
26385 .size foo,.-.LEfoo
26386 EOF
26387 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26388 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26389 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26390 gcc_cv_ld_no_dot_syms=yes
26391 fi
26392 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26393 fi
26394
26395 fi
26396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26397 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26398 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26399
26400 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26401
26402 fi
26403
26404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26405 $as_echo_n "checking linker large toc support... " >&6; }
26406 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26407 $as_echo_n "(cached) " >&6
26408 else
26409 gcc_cv_ld_large_toc=no
26410 if test $in_tree_ld = yes ; then
26411 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
26412 gcc_cv_ld_large_toc=yes
26413 fi
26414 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26415 cat > conftest.s <<EOF
26416 .section ".tbss","awT",@nobits
26417 .align 3
26418 ie0: .space 8
26419 .global _start
26420 .text
26421 _start:
26422 addis 9,13,ie0@got@tprel@ha
26423 ld 9,ie0@got@tprel@l(9)
26424 EOF
26425 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26426 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26427 gcc_cv_ld_large_toc=yes
26428 fi
26429 rm -f conftest conftest.o conftest.s
26430 fi
26431
26432 fi
26433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26434 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26435 if test x"$gcc_cv_ld_large_toc" = xyes; then
26436
26437 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26438
26439 fi
26440 ;;
26441 esac
26442
26443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26444 $as_echo_n "checking linker --build-id support... " >&6; }
26445 if test "${gcc_cv_ld_buildid+set}" = set; then :
26446 $as_echo_n "(cached) " >&6
26447 else
26448 gcc_cv_ld_buildid=no
26449 if test $in_tree_ld = yes ; then
26450 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26451 "$gcc_cv_gld_minor_version" -ge 18 -o \
26452 "$gcc_cv_gld_major_version" -gt 2 \
26453 && test $in_tree_ld_is_elf = yes; then
26454 gcc_cv_ld_buildid=yes
26455 fi
26456 elif test x$gcc_cv_ld != x; then
26457 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26458 gcc_cv_ld_buildid=yes
26459 fi
26460 fi
26461 fi
26462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26463 $as_echo "$gcc_cv_ld_buildid" >&6; }
26464 if test x"$gcc_cv_ld_buildid" = xyes; then
26465
26466 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26467
26468 fi
26469
26470 # Check whether --enable-linker-build-id was given.
26471 if test "${enable_linker_build_id+set}" = set; then :
26472 enableval=$enable_linker_build_id;
26473 else
26474 enable_linker_build_id=no
26475 fi
26476
26477
26478 if test x"$enable_linker_build_id" = xyes; then
26479 if test x"$gcc_cv_ld_buildid" = xyes; then
26480
26481 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26482
26483 else
26484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26485 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26486 fi
26487 fi
26488
26489 # In binutils 2.21, GNU ld gained support for new emulations fully
26490 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26492 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26493 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26494 $as_echo_n "(cached) " >&6
26495 else
26496 gcc_cv_ld_sol2_emulation=no
26497 if test $in_tree_ld = yes ; then
26498 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26499 "$gcc_cv_gld_minor_version" -ge 21 -o \
26500 "$gcc_cv_gld_major_version" -gt 2 \
26501 && test $in_tree_ld_is_elf = yes; then
26502 gcc_cv_ld_sol2_emulation=yes
26503 fi
26504 elif test x$gcc_cv_ld != x; then
26505 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26506 grep _sol2 > /dev/null; then
26507 gcc_cv_ld_sol2_emulation=yes
26508 fi
26509 fi
26510 fi
26511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26512 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26513 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26514
26515 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26516
26517 fi
26518
26519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26520 $as_echo_n "checking linker --sysroot support... " >&6; }
26521 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26522 $as_echo_n "(cached) " >&6
26523 else
26524 gcc_cv_ld_sysroot=no
26525 if test $in_tree_ld = yes ; then
26526 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
26527 gcc_cv_ld_sysroot=yes
26528 fi
26529 elif test x$gcc_cv_ld != x; then
26530 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26531 gcc_cv_ld_sysroot=yes
26532 fi
26533 fi
26534 fi
26535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26536 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26537 if test x"$gcc_cv_ld_sysroot" = xyes; then
26538
26539 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26540
26541 fi
26542
26543 if test x$with_sysroot = x && test x$host = x$target \
26544 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26545 && test "$prefix" != "NONE"; then
26546
26547 cat >>confdefs.h <<_ACEOF
26548 #define PREFIX_INCLUDE_DIR "$prefix/include"
26549 _ACEOF
26550
26551 fi
26552
26553 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26554 if test "x$with_headers" != x; then
26555 target_header_dir=$with_headers
26556 elif test "x$with_sysroot" = x; then
26557 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
26558 elif test "x$with_build_sysroot" != "x"; then
26559 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26560 elif test "x$with_sysroot" = xyes; then
26561 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26562 else
26563 target_header_dir="${with_sysroot}${native_system_header_dir}"
26564 fi
26565 else
26566 target_header_dir=${native_system_header_dir}
26567 fi
26568
26569 # Test for stack protector support in target C library.
26570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26571 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26572 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26573 $as_echo_n "(cached) " >&6
26574 else
26575 gcc_cv_libc_provides_ssp=no
26576 case "$target" in
26577 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26578 # glibc 2.4 and later provides __stack_chk_fail and
26579 # either __stack_chk_guard, or TLS access to stack guard canary.
26580 if test -f $target_header_dir/features.h \
26581 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26582 $target_header_dir/features.h > /dev/null; then
26583 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26584 $target_header_dir/features.h > /dev/null; then
26585 gcc_cv_libc_provides_ssp=yes
26586 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26587 $target_header_dir/features.h > /dev/null \
26588 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26589 $target_header_dir/features.h > /dev/null; then
26590 gcc_cv_libc_provides_ssp=yes
26591 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26592 $target_header_dir/features.h > /dev/null && \
26593 test -f $target_header_dir/bits/uClibc_config.h && \
26594 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26595 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26596 gcc_cv_libc_provides_ssp=yes
26597 fi
26598 fi
26599 ;;
26600 *-*-gnu*)
26601 # Avoid complicated tests (see
26602 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26603 # simply assert that glibc does provide this, which is true for all
26604 # realistically usable GNU/Hurd configurations.
26605 gcc_cv_libc_provides_ssp=yes;;
26606 *-*-darwin* | *-*-freebsd*)
26607 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26608 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26609 gcc_cv_libc_provides_ssp=yes
26610 else
26611 echo "no __stack_chk_fail on this target"
26612 fi
26613
26614 ;;
26615 *) gcc_cv_libc_provides_ssp=no ;;
26616 esac
26617 fi
26618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26619 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26620
26621 if test x$gcc_cv_libc_provides_ssp = xyes; then
26622
26623 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26624
26625 fi
26626
26627 # Test for <sys/sdt.h> on the target.
26628
26629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26630 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26631 have_sys_sdt_h=no
26632 if test -f $target_header_dir/sys/sdt.h; then
26633 have_sys_sdt_h=yes
26634
26635 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26636
26637 fi
26638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26639 $as_echo "$have_sys_sdt_h" >&6; }
26640
26641 # Check if TFmode long double should be used by default or not.
26642 # Some glibc targets used DFmode long double, but with glibc 2.4
26643 # and later they can use TFmode.
26644 case "$target" in
26645 powerpc*-*-linux* | \
26646 sparc*-*-linux* | \
26647 s390*-*-linux* | \
26648 alpha*-*-linux*)
26649
26650 # Check whether --with-long-double-128 was given.
26651 if test "${with_long_double_128+set}" = set; then :
26652 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26653 else
26654 gcc_cv_target_ldbl128=no
26655 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26656 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26657 && gcc_cv_target_ldbl128=yes
26658
26659 fi
26660
26661 ;;
26662 esac
26663 if test x$gcc_cv_target_ldbl128 = xyes; then
26664
26665 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26666
26667 fi
26668
26669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26670 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26671 gcc_cv_target_dl_iterate_phdr=unknown
26672 case "$target" in
26673 *-*-solaris2*)
26674 # <link.h> needs both a dl_iterate_phdr declaration and support for
26675 # compilation with largefile support.
26676 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26677 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26678 gcc_cv_target_dl_iterate_phdr=yes
26679 else
26680 gcc_cv_target_dl_iterate_phdr=no
26681 fi
26682 ;;
26683 esac
26684
26685 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26686
26687 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26688
26689 fi
26690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26691 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26692
26693 # Find out what GC implementation we want, or may, use.
26694
26695 # Check whether --with-gc was given.
26696 if test "${with_gc+set}" = set; then :
26697 withval=$with_gc; case "$withval" in
26698 page)
26699 GGC=ggc-$withval
26700 ;;
26701 zone)
26702 GGC=ggc-$withval
26703
26704 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26705
26706 ;;
26707 *)
26708 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26709 ;;
26710 esac
26711 else
26712 GGC=ggc-page
26713 fi
26714
26715
26716 echo "Using $GGC for garbage collection."
26717
26718 # Libraries to use on the host. This will normally be set by the top
26719 # level Makefile. Here we simply capture the value for our Makefile.
26720 if test -z "${HOST_LIBS+set}"; then
26721 HOST_LIBS=
26722 fi
26723
26724
26725 # Use the system's zlib library.
26726 zlibdir=-L../zlib
26727 zlibinc="-I\$(srcdir)/../zlib"
26728
26729 # Check whether --with-system-zlib was given.
26730 if test "${with_system_zlib+set}" = set; then :
26731 withval=$with_system_zlib; zlibdir=
26732 zlibinc=
26733
26734 fi
26735
26736
26737
26738
26739
26740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26741 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26742 # Check whether --enable-maintainer-mode was given.
26743 if test "${enable_maintainer_mode+set}" = set; then :
26744 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26745 else
26746 maintainer_mode=no
26747 fi
26748
26749
26750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26751 $as_echo "$maintainer_mode" >&6; }
26752
26753 if test "$maintainer_mode" = "yes"; then
26754 MAINT=''
26755 else
26756 MAINT='#'
26757 fi
26758
26759 # --------------
26760 # Language hooks
26761 # --------------
26762
26763 # Make empty files to contain the specs and options for each language.
26764 # Then add #include lines to for a compiler that has specs and/or options.
26765
26766 subdirs=
26767 lang_opt_files=
26768 lang_specs_files=
26769 lang_tree_files=
26770 # These (without "all_") are set in each config-lang.in.
26771 # `language' must be a single word so is spelled singularly.
26772 all_languages=
26773 all_compilers=
26774 all_outputs='Makefile'
26775 # List of language makefile fragments.
26776 all_lang_makefrags=
26777 # Additional files for gengtype
26778 all_gtfiles="$target_gtfiles"
26779
26780 # These are the languages that are set in --enable-languages,
26781 # and are available in the GCC tree.
26782 all_selected_languages=
26783
26784 # Add the language fragments.
26785 # Languages are added via two mechanisms. Some information must be
26786 # recorded in makefile variables, these are defined in config-lang.in.
26787 # We accumulate them and plug them into the main Makefile.
26788 # The other mechanism is a set of hooks for each of the main targets
26789 # like `clean', `install', etc.
26790
26791 language_hooks="Make-hooks"
26792
26793 for lang in ${srcdir}/*/config-lang.in
26794 do
26795 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26796
26797 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26798 if test "x$lang_alias" = x
26799 then
26800 echo "$lang doesn't set \$language." 1>&2
26801 exit 1
26802 fi
26803 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26804 subdirs="$subdirs $subdir"
26805
26806 # $gcc_subdir is where the gcc integration files are to be found
26807 # for a language, both for internal compiler purposes (compiler
26808 # sources implementing front-end to GCC tree converters), and for
26809 # build infrastructure purposes (Make-lang.in, etc.)
26810 #
26811 # This will be <subdir> (relative to $srcdir) if a line like
26812 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26813 # is found in <langdir>/config-lang.in, and will remain <langdir>
26814 # otherwise.
26815 #
26816 # Except for the language alias (fetched above), the regular
26817 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26818 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26819 # only this and the language alias.
26820
26821 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26822 if [ "$gcc_subdir" = "" ]; then
26823 gcc_subdir="$subdir"
26824 fi
26825
26826 case ",$enable_languages," in
26827 *,$lang_alias,*)
26828 all_selected_languages="$all_selected_languages $lang_alias"
26829 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26830 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26831 fi
26832 ;;
26833 esac
26834
26835 language=
26836 boot_language=
26837 compilers=
26838 outputs=
26839 gtfiles=
26840 subdir_requires=
26841 . ${srcdir}/$gcc_subdir/config-lang.in
26842 if test "x$language" = x
26843 then
26844 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26845 exit 1
26846 fi
26847
26848 ok=:
26849 case ",$enable_languages," in
26850 *,$lang_alias,*) ;;
26851 *)
26852 for i in $subdir_requires; do
26853 test -f "${srcdir}/$i/config-lang.in" && continue
26854 ok=false
26855 break
26856 done
26857 ;;
26858 esac
26859 $ok || continue
26860
26861 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26862 if test -f $srcdir/$gcc_subdir/lang.opt; then
26863 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26864 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26865 fi
26866 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26867 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26868 fi
26869 all_languages="$all_languages $language"
26870 all_compilers="$all_compilers $compilers"
26871 all_outputs="$all_outputs $outputs"
26872 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26873 case ",$enable_languages," in
26874 *,lto,*)
26875
26876 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26877
26878 enable_lto=yes
26879
26880 ;;
26881 *) ;;
26882 esac
26883 done
26884
26885 # Pick up gtfiles for c
26886 gtfiles=
26887 . ${srcdir}/c-config-lang.in
26888 all_gtfiles="$all_gtfiles [c] $gtfiles"
26889
26890 check_languages=
26891 for language in $all_selected_languages
26892 do
26893 check_languages="$check_languages check-$language"
26894 done
26895
26896 # We link each language in with a set of hooks, reached indirectly via
26897 # lang.${target}. Only do so for selected languages.
26898
26899 rm -f Make-hooks
26900 touch Make-hooks
26901 target_list="all.cross start.encap rest.encap tags \
26902 install-common install-man install-info install-pdf install-html dvi \
26903 pdf html uninstall info man srcextra srcman srcinfo \
26904 mostlyclean clean distclean maintainer-clean install-plugin"
26905
26906 for t in $target_list
26907 do
26908 x=
26909 for lang in $all_selected_languages
26910 do
26911 x="$x $lang.$t"
26912 done
26913 echo "lang.$t: $x" >> Make-hooks
26914 done
26915
26916 # --------
26917 # Option include files
26918 # --------
26919
26920 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26921 option_includes="option-includes.mk"
26922
26923
26924 # --------
26925 # UNSORTED
26926 # --------
26927
26928 # Create .gdbinit.
26929
26930 echo "dir ." > .gdbinit
26931 echo "dir ${srcdir}" >> .gdbinit
26932 if test x$gdb_needs_out_file_path = xyes
26933 then
26934 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26935 fi
26936 if test "x$subdirs" != x; then
26937 for s in $subdirs
26938 do
26939 echo "dir ${srcdir}/$s" >> .gdbinit
26940 done
26941 fi
26942 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26943
26944 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26945
26946
26947
26948 # Find a directory in which to install a shared libgcc.
26949
26950 # Check whether --enable-version-specific-runtime-libs was given.
26951 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26952 enableval=$enable_version_specific_runtime_libs;
26953 fi
26954
26955
26956 # Substitute configuration variables
26957
26958
26959
26960
26961
26962
26963
26964
26965
26966
26967
26968
26969
26970
26971
26972
26973
26974
26975
26976
26977
26978
26979
26980
26981
26982
26983
26984
26985
26986
26987
26988
26989
26990
26991
26992
26993
26994
26995
26996
26997
26998
26999
27000
27001
27002
27003
27004
27005
27006
27007
27008
27009
27010
27011
27012
27013
27014
27015
27016
27017
27018
27019
27020
27021
27022 # Echo link setup.
27023 if test x${build} = x${host} ; then
27024 if test x${host} = x${target} ; then
27025 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27026 else
27027 echo "Links are now set up to build a cross-compiler" 1>&2
27028 echo " from ${host} to ${target}." 1>&2
27029 fi
27030 else
27031 if test x${host} = x${target} ; then
27032 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27033 echo " for ${target}." 1>&2
27034 else
27035 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27036 echo " from ${host} to ${target}." 1>&2
27037 fi
27038 fi
27039
27040
27041
27042
27043
27044
27045
27046
27047
27048 if test "x${CLOOGLIBS}" != "x" ; then
27049
27050 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27051
27052 fi
27053
27054 # Check for plugin support
27055 # Check whether --enable-plugin was given.
27056 if test "${enable_plugin+set}" = set; then :
27057 enableval=$enable_plugin; enable_plugin=$enableval
27058 else
27059 enable_plugin=yes; default_plugin=yes
27060 fi
27061
27062
27063 pluginlibs=
27064
27065 case "${host}" in
27066 *-*-darwin*)
27067 if test x$build = x$host; then
27068 export_sym_check="nm${exeext} -g"
27069 elif test x$host = x$target; then
27070 export_sym_check="$gcc_cv_nm -g"
27071 else
27072 export_sym_check=
27073 fi
27074 ;;
27075 *)
27076 if test x$build = x$host; then
27077 export_sym_check="objdump${exeext} -T"
27078 elif test x$host = x$target; then
27079 export_sym_check="$gcc_cv_objdump -T"
27080 else
27081 export_sym_check=
27082 fi
27083 ;;
27084 esac
27085
27086 if test x"$enable_plugin" = x"yes"; then
27087
27088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27089 $as_echo_n "checking for exported symbols... " >&6; }
27090 if test "x$export_sym_check" != x; then
27091 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27092 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27093 if $export_sym_check conftest | grep foobar > /dev/null; then
27094 : # No need to use a flag
27095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27096 $as_echo "yes" >&6; }
27097 else
27098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27099 $as_echo "yes" >&6; }
27100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27101 $as_echo_n "checking for -rdynamic... " >&6; }
27102 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27103 if $export_sym_check conftest | grep foobar > /dev/null; then
27104 plugin_rdynamic=yes
27105 pluginlibs="-rdynamic"
27106 else
27107 plugin_rdynamic=no
27108 enable_plugin=no
27109 fi
27110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27111 $as_echo "$plugin_rdynamic" >&6; }
27112 fi
27113 else
27114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27115 $as_echo "unable to check" >&6; }
27116 fi
27117
27118 # Check -ldl
27119 saved_LIBS="$LIBS"
27120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27121 $as_echo_n "checking for library containing dlopen... " >&6; }
27122 if test "${ac_cv_search_dlopen+set}" = set; then :
27123 $as_echo_n "(cached) " >&6
27124 else
27125 ac_func_search_save_LIBS=$LIBS
27126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27127 /* end confdefs.h. */
27128
27129 /* Override any GCC internal prototype to avoid an error.
27130 Use char because int might match the return type of a GCC
27131 builtin and then its argument prototype would still apply. */
27132 #ifdef __cplusplus
27133 extern "C"
27134 #endif
27135 char dlopen ();
27136 int
27137 main ()
27138 {
27139 return dlopen ();
27140 ;
27141 return 0;
27142 }
27143 _ACEOF
27144 for ac_lib in '' dl; do
27145 if test -z "$ac_lib"; then
27146 ac_res="none required"
27147 else
27148 ac_res=-l$ac_lib
27149 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27150 fi
27151 if ac_fn_c_try_link "$LINENO"; then :
27152 ac_cv_search_dlopen=$ac_res
27153 fi
27154 rm -f core conftest.err conftest.$ac_objext \
27155 conftest$ac_exeext
27156 if test "${ac_cv_search_dlopen+set}" = set; then :
27157 break
27158 fi
27159 done
27160 if test "${ac_cv_search_dlopen+set}" = set; then :
27161
27162 else
27163 ac_cv_search_dlopen=no
27164 fi
27165 rm conftest.$ac_ext
27166 LIBS=$ac_func_search_save_LIBS
27167 fi
27168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27169 $as_echo "$ac_cv_search_dlopen" >&6; }
27170 ac_res=$ac_cv_search_dlopen
27171 if test "$ac_res" != no; then :
27172 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27173
27174 fi
27175
27176 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27177 pluginlibs="$pluginlibs -ldl"
27178 fi
27179 LIBS="$saved_LIBS"
27180
27181 # Check that we can build shared objects with -fPIC -shared
27182 saved_LDFLAGS="$LDFLAGS"
27183 saved_CFLAGS="$CFLAGS"
27184 case "${host}" in
27185 *-*-darwin*)
27186 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27187 CFLAGS="$CFLAGS -fPIC"
27188 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27189 ;;
27190 *)
27191 CFLAGS="$CFLAGS -fPIC"
27192 LDFLAGS="$LDFLAGS -fPIC -shared"
27193 ;;
27194 esac
27195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27196 $as_echo_n "checking for -fPIC -shared... " >&6; }
27197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27198 /* end confdefs.h. */
27199 extern int X;
27200 int
27201 main ()
27202 {
27203 return X == 0;
27204 ;
27205 return 0;
27206 }
27207 _ACEOF
27208 if ac_fn_c_try_link "$LINENO"; then :
27209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27210 $as_echo "yes" >&6; }; have_pic_shared=yes
27211 else
27212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27213 $as_echo "no" >&6; }; have_pic_shared=no
27214 fi
27215 rm -f core conftest.err conftest.$ac_objext \
27216 conftest$ac_exeext conftest.$ac_ext
27217 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27218 pluginlibs=
27219 enable_plugin=no
27220 fi
27221 LDFLAGS="$saved_LDFLAGS"
27222 CFLAGS="$saved_CFLAGS"
27223
27224 # If plugin support had been requested but not available, fail.
27225 if test x"$enable_plugin" = x"no" ; then
27226 if test x"$default_plugin" != x"yes"; then
27227 as_fn_error "
27228 Building GCC with plugin support requires a host that supports
27229 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27230 fi
27231 fi
27232 fi
27233
27234
27235
27236 if test x"$enable_plugin" = x"yes"; then
27237
27238 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27239
27240 fi
27241
27242
27243 # Check whether --enable-libquadmath-support was given.
27244 if test "${enable_libquadmath_support+set}" = set; then :
27245 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27246 else
27247 ENABLE_LIBQUADMATH_SUPPORT=yes
27248 fi
27249
27250 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27251
27252 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27253
27254 fi
27255
27256
27257 # Specify what hash style to use by default.
27258
27259 # Check whether --with-linker-hash-style was given.
27260 if test "${with_linker_hash_style+set}" = set; then :
27261 withval=$with_linker_hash_style; case x"$withval" in
27262 xsysv)
27263 LINKER_HASH_STYLE=sysv
27264 ;;
27265 xgnu)
27266 LINKER_HASH_STYLE=gnu
27267 ;;
27268 xboth)
27269 LINKER_HASH_STYLE=both
27270 ;;
27271 *)
27272 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27273 ;;
27274 esac
27275 else
27276 LINKER_HASH_STYLE=''
27277 fi
27278
27279 if test x"${LINKER_HASH_STYLE}" != x; then
27280
27281 cat >>confdefs.h <<_ACEOF
27282 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27283 _ACEOF
27284
27285 fi
27286
27287 # Configure the subdirectories
27288 # AC_CONFIG_SUBDIRS($subdirs)
27289
27290 # Create the Makefile
27291 # and configure language subdirectories
27292 ac_config_files="$ac_config_files $all_outputs"
27293
27294
27295 ac_config_commands="$ac_config_commands default"
27296
27297 cat >confcache <<\_ACEOF
27298 # This file is a shell script that caches the results of configure
27299 # tests run on this system so they can be shared between configure
27300 # scripts and configure runs, see configure's option --config-cache.
27301 # It is not useful on other systems. If it contains results you don't
27302 # want to keep, you may remove or edit it.
27303 #
27304 # config.status only pays attention to the cache file if you give it
27305 # the --recheck option to rerun configure.
27306 #
27307 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27308 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27309 # following values.
27310
27311 _ACEOF
27312
27313 # The following way of writing the cache mishandles newlines in values,
27314 # but we know of no workaround that is simple, portable, and efficient.
27315 # So, we kill variables containing newlines.
27316 # Ultrix sh set writes to stderr and can't be redirected directly,
27317 # and sets the high bit in the cache file unless we assign to the vars.
27318 (
27319 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27320 eval ac_val=\$$ac_var
27321 case $ac_val in #(
27322 *${as_nl}*)
27323 case $ac_var in #(
27324 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27325 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27326 esac
27327 case $ac_var in #(
27328 _ | IFS | as_nl) ;; #(
27329 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27330 *) { eval $ac_var=; unset $ac_var;} ;;
27331 esac ;;
27332 esac
27333 done
27334
27335 (set) 2>&1 |
27336 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27337 *${as_nl}ac_space=\ *)
27338 # `set' does not quote correctly, so add quotes: double-quote
27339 # substitution turns \\\\ into \\, and sed turns \\ into \.
27340 sed -n \
27341 "s/'/'\\\\''/g;
27342 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27343 ;; #(
27344 *)
27345 # `set' quotes correctly as required by POSIX, so do not add quotes.
27346 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27347 ;;
27348 esac |
27349 sort
27350 ) |
27351 sed '
27352 /^ac_cv_env_/b end
27353 t clear
27354 :clear
27355 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27356 t end
27357 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27358 :end' >>confcache
27359 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27360 if test -w "$cache_file"; then
27361 test "x$cache_file" != "x/dev/null" &&
27362 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27363 $as_echo "$as_me: updating cache $cache_file" >&6;}
27364 cat confcache >$cache_file
27365 else
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27367 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27368 fi
27369 fi
27370 rm -f confcache
27371
27372 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27373 # Let make expand exec_prefix.
27374 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27375
27376 DEFS=-DHAVE_CONFIG_H
27377
27378 ac_libobjs=
27379 ac_ltlibobjs=
27380 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27381 # 1. Remove the extension, and $U if already installed.
27382 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27383 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27384 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27385 # will be set to the directory where LIBOBJS objects are built.
27386 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27387 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27388 done
27389 LIBOBJS=$ac_libobjs
27390
27391 LTLIBOBJS=$ac_ltlibobjs
27392
27393
27394
27395
27396 : ${CONFIG_STATUS=./config.status}
27397 ac_write_fail=0
27398 ac_clean_files_save=$ac_clean_files
27399 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27400 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27401 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27402 as_write_fail=0
27403 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27404 #! $SHELL
27405 # Generated by $as_me.
27406 # Run this file to recreate the current configuration.
27407 # Compiler output produced by configure, useful for debugging
27408 # configure, is in config.log if it exists.
27409
27410 debug=false
27411 ac_cs_recheck=false
27412 ac_cs_silent=false
27413
27414 SHELL=\${CONFIG_SHELL-$SHELL}
27415 export SHELL
27416 _ASEOF
27417 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27418 ## -------------------- ##
27419 ## M4sh Initialization. ##
27420 ## -------------------- ##
27421
27422 # Be more Bourne compatible
27423 DUALCASE=1; export DUALCASE # for MKS sh
27424 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27425 emulate sh
27426 NULLCMD=:
27427 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27428 # is contrary to our usage. Disable this feature.
27429 alias -g '${1+"$@"}'='"$@"'
27430 setopt NO_GLOB_SUBST
27431 else
27432 case `(set -o) 2>/dev/null` in #(
27433 *posix*) :
27434 set -o posix ;; #(
27435 *) :
27436 ;;
27437 esac
27438 fi
27439
27440
27441 as_nl='
27442 '
27443 export as_nl
27444 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27445 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27446 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27447 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27448 # Prefer a ksh shell builtin over an external printf program on Solaris,
27449 # but without wasting forks for bash or zsh.
27450 if test -z "$BASH_VERSION$ZSH_VERSION" \
27451 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27452 as_echo='print -r --'
27453 as_echo_n='print -rn --'
27454 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27455 as_echo='printf %s\n'
27456 as_echo_n='printf %s'
27457 else
27458 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27459 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27460 as_echo_n='/usr/ucb/echo -n'
27461 else
27462 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27463 as_echo_n_body='eval
27464 arg=$1;
27465 case $arg in #(
27466 *"$as_nl"*)
27467 expr "X$arg" : "X\\(.*\\)$as_nl";
27468 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27469 esac;
27470 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27471 '
27472 export as_echo_n_body
27473 as_echo_n='sh -c $as_echo_n_body as_echo'
27474 fi
27475 export as_echo_body
27476 as_echo='sh -c $as_echo_body as_echo'
27477 fi
27478
27479 # The user is always right.
27480 if test "${PATH_SEPARATOR+set}" != set; then
27481 PATH_SEPARATOR=:
27482 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27483 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27484 PATH_SEPARATOR=';'
27485 }
27486 fi
27487
27488
27489 # IFS
27490 # We need space, tab and new line, in precisely that order. Quoting is
27491 # there to prevent editors from complaining about space-tab.
27492 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27493 # splitting by setting IFS to empty value.)
27494 IFS=" "" $as_nl"
27495
27496 # Find who we are. Look in the path if we contain no directory separator.
27497 case $0 in #((
27498 *[\\/]* ) as_myself=$0 ;;
27499 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27500 for as_dir in $PATH
27501 do
27502 IFS=$as_save_IFS
27503 test -z "$as_dir" && as_dir=.
27504 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27505 done
27506 IFS=$as_save_IFS
27507
27508 ;;
27509 esac
27510 # We did not find ourselves, most probably we were run as `sh COMMAND'
27511 # in which case we are not to be found in the path.
27512 if test "x$as_myself" = x; then
27513 as_myself=$0
27514 fi
27515 if test ! -f "$as_myself"; then
27516 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27517 exit 1
27518 fi
27519
27520 # Unset variables that we do not need and which cause bugs (e.g. in
27521 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27522 # suppresses any "Segmentation fault" message there. '((' could
27523 # trigger a bug in pdksh 5.2.14.
27524 for as_var in BASH_ENV ENV MAIL MAILPATH
27525 do eval test x\${$as_var+set} = xset \
27526 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27527 done
27528 PS1='$ '
27529 PS2='> '
27530 PS4='+ '
27531
27532 # NLS nuisances.
27533 LC_ALL=C
27534 export LC_ALL
27535 LANGUAGE=C
27536 export LANGUAGE
27537
27538 # CDPATH.
27539 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27540
27541
27542 # as_fn_error ERROR [LINENO LOG_FD]
27543 # ---------------------------------
27544 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27545 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27546 # script with status $?, using 1 if that was 0.
27547 as_fn_error ()
27548 {
27549 as_status=$?; test $as_status -eq 0 && as_status=1
27550 if test "$3"; then
27551 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27552 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27553 fi
27554 $as_echo "$as_me: error: $1" >&2
27555 as_fn_exit $as_status
27556 } # as_fn_error
27557
27558
27559 # as_fn_set_status STATUS
27560 # -----------------------
27561 # Set $? to STATUS, without forking.
27562 as_fn_set_status ()
27563 {
27564 return $1
27565 } # as_fn_set_status
27566
27567 # as_fn_exit STATUS
27568 # -----------------
27569 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27570 as_fn_exit ()
27571 {
27572 set +e
27573 as_fn_set_status $1
27574 exit $1
27575 } # as_fn_exit
27576
27577 # as_fn_unset VAR
27578 # ---------------
27579 # Portably unset VAR.
27580 as_fn_unset ()
27581 {
27582 { eval $1=; unset $1;}
27583 }
27584 as_unset=as_fn_unset
27585 # as_fn_append VAR VALUE
27586 # ----------------------
27587 # Append the text in VALUE to the end of the definition contained in VAR. Take
27588 # advantage of any shell optimizations that allow amortized linear growth over
27589 # repeated appends, instead of the typical quadratic growth present in naive
27590 # implementations.
27591 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27592 eval 'as_fn_append ()
27593 {
27594 eval $1+=\$2
27595 }'
27596 else
27597 as_fn_append ()
27598 {
27599 eval $1=\$$1\$2
27600 }
27601 fi # as_fn_append
27602
27603 # as_fn_arith ARG...
27604 # ------------------
27605 # Perform arithmetic evaluation on the ARGs, and store the result in the
27606 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27607 # must be portable across $(()) and expr.
27608 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27609 eval 'as_fn_arith ()
27610 {
27611 as_val=$(( $* ))
27612 }'
27613 else
27614 as_fn_arith ()
27615 {
27616 as_val=`expr "$@" || test $? -eq 1`
27617 }
27618 fi # as_fn_arith
27619
27620
27621 if expr a : '\(a\)' >/dev/null 2>&1 &&
27622 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27623 as_expr=expr
27624 else
27625 as_expr=false
27626 fi
27627
27628 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27629 as_basename=basename
27630 else
27631 as_basename=false
27632 fi
27633
27634 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27635 as_dirname=dirname
27636 else
27637 as_dirname=false
27638 fi
27639
27640 as_me=`$as_basename -- "$0" ||
27641 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27642 X"$0" : 'X\(//\)$' \| \
27643 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27644 $as_echo X/"$0" |
27645 sed '/^.*\/\([^/][^/]*\)\/*$/{
27646 s//\1/
27647 q
27648 }
27649 /^X\/\(\/\/\)$/{
27650 s//\1/
27651 q
27652 }
27653 /^X\/\(\/\).*/{
27654 s//\1/
27655 q
27656 }
27657 s/.*/./; q'`
27658
27659 # Avoid depending upon Character Ranges.
27660 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27661 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27662 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27663 as_cr_digits='0123456789'
27664 as_cr_alnum=$as_cr_Letters$as_cr_digits
27665
27666 ECHO_C= ECHO_N= ECHO_T=
27667 case `echo -n x` in #(((((
27668 -n*)
27669 case `echo 'xy\c'` in
27670 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27671 xy) ECHO_C='\c';;
27672 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27673 ECHO_T=' ';;
27674 esac;;
27675 *)
27676 ECHO_N='-n';;
27677 esac
27678
27679 rm -f conf$$ conf$$.exe conf$$.file
27680 if test -d conf$$.dir; then
27681 rm -f conf$$.dir/conf$$.file
27682 else
27683 rm -f conf$$.dir
27684 mkdir conf$$.dir 2>/dev/null
27685 fi
27686 if (echo >conf$$.file) 2>/dev/null; then
27687 if ln -s conf$$.file conf$$ 2>/dev/null; then
27688 as_ln_s='ln -s'
27689 # ... but there are two gotchas:
27690 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27691 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27692 # In both cases, we have to default to `cp -p'.
27693 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27694 as_ln_s='cp -p'
27695 elif ln conf$$.file conf$$ 2>/dev/null; then
27696 as_ln_s=ln
27697 else
27698 as_ln_s='cp -p'
27699 fi
27700 else
27701 as_ln_s='cp -p'
27702 fi
27703 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27704 rmdir conf$$.dir 2>/dev/null
27705
27706
27707 # as_fn_mkdir_p
27708 # -------------
27709 # Create "$as_dir" as a directory, including parents if necessary.
27710 as_fn_mkdir_p ()
27711 {
27712
27713 case $as_dir in #(
27714 -*) as_dir=./$as_dir;;
27715 esac
27716 test -d "$as_dir" || eval $as_mkdir_p || {
27717 as_dirs=
27718 while :; do
27719 case $as_dir in #(
27720 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27721 *) as_qdir=$as_dir;;
27722 esac
27723 as_dirs="'$as_qdir' $as_dirs"
27724 as_dir=`$as_dirname -- "$as_dir" ||
27725 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27726 X"$as_dir" : 'X\(//\)[^/]' \| \
27727 X"$as_dir" : 'X\(//\)$' \| \
27728 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27729 $as_echo X"$as_dir" |
27730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27731 s//\1/
27732 q
27733 }
27734 /^X\(\/\/\)[^/].*/{
27735 s//\1/
27736 q
27737 }
27738 /^X\(\/\/\)$/{
27739 s//\1/
27740 q
27741 }
27742 /^X\(\/\).*/{
27743 s//\1/
27744 q
27745 }
27746 s/.*/./; q'`
27747 test -d "$as_dir" && break
27748 done
27749 test -z "$as_dirs" || eval "mkdir $as_dirs"
27750 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27751
27752
27753 } # as_fn_mkdir_p
27754 if mkdir -p . 2>/dev/null; then
27755 as_mkdir_p='mkdir -p "$as_dir"'
27756 else
27757 test -d ./-p && rmdir ./-p
27758 as_mkdir_p=false
27759 fi
27760
27761 if test -x / >/dev/null 2>&1; then
27762 as_test_x='test -x'
27763 else
27764 if ls -dL / >/dev/null 2>&1; then
27765 as_ls_L_option=L
27766 else
27767 as_ls_L_option=
27768 fi
27769 as_test_x='
27770 eval sh -c '\''
27771 if test -d "$1"; then
27772 test -d "$1/.";
27773 else
27774 case $1 in #(
27775 -*)set "./$1";;
27776 esac;
27777 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27778 ???[sx]*):;;*)false;;esac;fi
27779 '\'' sh
27780 '
27781 fi
27782 as_executable_p=$as_test_x
27783
27784 # Sed expression to map a string onto a valid CPP name.
27785 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27786
27787 # Sed expression to map a string onto a valid variable name.
27788 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27789
27790
27791 exec 6>&1
27792 ## ----------------------------------- ##
27793 ## Main body of $CONFIG_STATUS script. ##
27794 ## ----------------------------------- ##
27795 _ASEOF
27796 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27797
27798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27799 # Save the log message, to keep $0 and so on meaningful, and to
27800 # report actual input values of CONFIG_FILES etc. instead of their
27801 # values after options handling.
27802 ac_log="
27803 This file was extended by $as_me, which was
27804 generated by GNU Autoconf 2.64. Invocation command line was
27805
27806 CONFIG_FILES = $CONFIG_FILES
27807 CONFIG_HEADERS = $CONFIG_HEADERS
27808 CONFIG_LINKS = $CONFIG_LINKS
27809 CONFIG_COMMANDS = $CONFIG_COMMANDS
27810 $ $0 $@
27811
27812 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27813 "
27814
27815 _ACEOF
27816
27817 case $ac_config_files in *"
27818 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27819 esac
27820
27821 case $ac_config_headers in *"
27822 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27823 esac
27824
27825
27826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27827 # Files that config.status was made for.
27828 config_files="$ac_config_files"
27829 config_headers="$ac_config_headers"
27830 config_commands="$ac_config_commands"
27831
27832 _ACEOF
27833
27834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27835 ac_cs_usage="\
27836 \`$as_me' instantiates files and other configuration actions
27837 from templates according to the current configuration. Unless the files
27838 and actions are specified as TAGs, all are instantiated by default.
27839
27840 Usage: $0 [OPTION]... [TAG]...
27841
27842 -h, --help print this help, then exit
27843 -V, --version print version number and configuration settings, then exit
27844 -q, --quiet, --silent
27845 do not print progress messages
27846 -d, --debug don't remove temporary files
27847 --recheck update $as_me by reconfiguring in the same conditions
27848 --file=FILE[:TEMPLATE]
27849 instantiate the configuration file FILE
27850 --header=FILE[:TEMPLATE]
27851 instantiate the configuration header FILE
27852
27853 Configuration files:
27854 $config_files
27855
27856 Configuration headers:
27857 $config_headers
27858
27859 Configuration commands:
27860 $config_commands
27861
27862 Report bugs to the package provider."
27863
27864 _ACEOF
27865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27866 ac_cs_version="\\
27867 config.status
27868 configured by $0, generated by GNU Autoconf 2.64,
27869 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27870
27871 Copyright (C) 2009 Free Software Foundation, Inc.
27872 This config.status script is free software; the Free Software Foundation
27873 gives unlimited permission to copy, distribute and modify it."
27874
27875 ac_pwd='$ac_pwd'
27876 srcdir='$srcdir'
27877 AWK='$AWK'
27878 test -n "\$AWK" || AWK=awk
27879 _ACEOF
27880
27881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27882 # The default lists apply if the user does not specify any file.
27883 ac_need_defaults=:
27884 while test $# != 0
27885 do
27886 case $1 in
27887 --*=*)
27888 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27889 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27890 ac_shift=:
27891 ;;
27892 *)
27893 ac_option=$1
27894 ac_optarg=$2
27895 ac_shift=shift
27896 ;;
27897 esac
27898
27899 case $ac_option in
27900 # Handling of the options.
27901 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27902 ac_cs_recheck=: ;;
27903 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27904 $as_echo "$ac_cs_version"; exit ;;
27905 --debug | --debu | --deb | --de | --d | -d )
27906 debug=: ;;
27907 --file | --fil | --fi | --f )
27908 $ac_shift
27909 case $ac_optarg in
27910 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27911 esac
27912 as_fn_append CONFIG_FILES " '$ac_optarg'"
27913 ac_need_defaults=false;;
27914 --header | --heade | --head | --hea )
27915 $ac_shift
27916 case $ac_optarg in
27917 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27918 esac
27919 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27920 ac_need_defaults=false;;
27921 --he | --h)
27922 # Conflict between --help and --header
27923 as_fn_error "ambiguous option: \`$1'
27924 Try \`$0 --help' for more information.";;
27925 --help | --hel | -h )
27926 $as_echo "$ac_cs_usage"; exit ;;
27927 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27928 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27929 ac_cs_silent=: ;;
27930
27931 # This is an error.
27932 -*) as_fn_error "unrecognized option: \`$1'
27933 Try \`$0 --help' for more information." ;;
27934
27935 *) as_fn_append ac_config_targets " $1"
27936 ac_need_defaults=false ;;
27937
27938 esac
27939 shift
27940 done
27941
27942 ac_configure_extra_args=
27943
27944 if $ac_cs_silent; then
27945 exec 6>/dev/null
27946 ac_configure_extra_args="$ac_configure_extra_args --silent"
27947 fi
27948
27949 _ACEOF
27950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27951 if \$ac_cs_recheck; then
27952 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27953 shift
27954 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27955 CONFIG_SHELL='$SHELL'
27956 export CONFIG_SHELL
27957 exec "\$@"
27958 fi
27959
27960 _ACEOF
27961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27962 exec 5>>config.log
27963 {
27964 echo
27965 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27966 ## Running $as_me. ##
27967 _ASBOX
27968 $as_echo "$ac_log"
27969 } >&5
27970
27971 _ACEOF
27972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27973 #
27974 # INIT-COMMANDS
27975 #
27976 subdirs='$subdirs'
27977
27978 _ACEOF
27979
27980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27981
27982 # Handling of arguments.
27983 for ac_config_target in $ac_config_targets
27984 do
27985 case $ac_config_target in
27986 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
27987 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
27988 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27989 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
27990 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
27991 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27992
27993 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27994 esac
27995 done
27996
27997
27998 # If the user did not use the arguments to specify the items to instantiate,
27999 # then the envvar interface is used. Set only those that are not.
28000 # We use the long form for the default assignment because of an extremely
28001 # bizarre bug on SunOS 4.1.3.
28002 if $ac_need_defaults; then
28003 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28004 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28005 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28006 fi
28007
28008 # Have a temporary directory for convenience. Make it in the build tree
28009 # simply because there is no reason against having it here, and in addition,
28010 # creating and moving files from /tmp can sometimes cause problems.
28011 # Hook for its removal unless debugging.
28012 # Note that there is a small window in which the directory will not be cleaned:
28013 # after its creation but before its name has been assigned to `$tmp'.
28014 $debug ||
28015 {
28016 tmp=
28017 trap 'exit_status=$?
28018 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28019 ' 0
28020 trap 'as_fn_exit 1' 1 2 13 15
28021 }
28022 # Create a (secure) tmp directory for tmp files.
28023
28024 {
28025 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28026 test -n "$tmp" && test -d "$tmp"
28027 } ||
28028 {
28029 tmp=./conf$$-$RANDOM
28030 (umask 077 && mkdir "$tmp")
28031 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28032
28033 # Set up the scripts for CONFIG_FILES section.
28034 # No need to generate them if there are no CONFIG_FILES.
28035 # This happens for instance with `./config.status config.h'.
28036 if test -n "$CONFIG_FILES"; then
28037
28038 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28039 ac_cs_awk_getline=:
28040 ac_cs_awk_pipe_init=
28041 ac_cs_awk_read_file='
28042 while ((getline aline < (F[key])) > 0)
28043 print(aline)
28044 close(F[key])'
28045 ac_cs_awk_pipe_fini=
28046 else
28047 ac_cs_awk_getline=false
28048 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28049 ac_cs_awk_read_file='
28050 print "|#_!!_#|"
28051 print "cat " F[key] " &&"
28052 '$ac_cs_awk_pipe_init
28053 # The final `:' finishes the AND list.
28054 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28055 fi
28056 ac_cr=`echo X | tr X '\015'`
28057 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28058 # But we know of no other shell where ac_cr would be empty at this
28059 # point, so we can use a bashism as a fallback.
28060 if test "x$ac_cr" = x; then
28061 eval ac_cr=\$\'\\r\'
28062 fi
28063 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28064 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28065 ac_cs_awk_cr='\r'
28066 else
28067 ac_cs_awk_cr=$ac_cr
28068 fi
28069
28070 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28071 _ACEOF
28072
28073 # Create commands to substitute file output variables.
28074 {
28075 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28076 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28077 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28078 echo "_ACAWK" &&
28079 echo "_ACEOF"
28080 } >conf$$files.sh &&
28081 . ./conf$$files.sh ||
28082 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28083 rm -f conf$$files.sh
28084
28085 {
28086 echo "cat >conf$$subs.awk <<_ACEOF" &&
28087 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28088 echo "_ACEOF"
28089 } >conf$$subs.sh ||
28090 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28091 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28092 ac_delim='%!_!# '
28093 for ac_last_try in false false false false false :; do
28094 . ./conf$$subs.sh ||
28095 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28096
28097 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28098 if test $ac_delim_n = $ac_delim_num; then
28099 break
28100 elif $ac_last_try; then
28101 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28102 else
28103 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28104 fi
28105 done
28106 rm -f conf$$subs.sh
28107
28108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28109 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28110 _ACEOF
28111 sed -n '
28112 h
28113 s/^/S["/; s/!.*/"]=/
28114 p
28115 g
28116 s/^[^!]*!//
28117 :repl
28118 t repl
28119 s/'"$ac_delim"'$//
28120 t delim
28121 :nl
28122 h
28123 s/\(.\{148\}\).*/\1/
28124 t more1
28125 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28126 p
28127 n
28128 b repl
28129 :more1
28130 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28131 p
28132 g
28133 s/.\{148\}//
28134 t nl
28135 :delim
28136 h
28137 s/\(.\{148\}\).*/\1/
28138 t more2
28139 s/["\\]/\\&/g; s/^/"/; s/$/"/
28140 p
28141 b
28142 :more2
28143 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28144 p
28145 g
28146 s/.\{148\}//
28147 t delim
28148 ' <conf$$subs.awk | sed '
28149 /^[^""]/{
28150 N
28151 s/\n//
28152 }
28153 ' >>$CONFIG_STATUS || ac_write_fail=1
28154 rm -f conf$$subs.awk
28155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28156 _ACAWK
28157 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28158 for (key in S) S_is_set[key] = 1
28159 FS = "\a"
28160 \$ac_cs_awk_pipe_init
28161 }
28162 {
28163 line = $ 0
28164 nfields = split(line, field, "@")
28165 substed = 0
28166 len = length(field[1])
28167 for (i = 2; i < nfields; i++) {
28168 key = field[i]
28169 keylen = length(key)
28170 if (S_is_set[key]) {
28171 value = S[key]
28172 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28173 len += length(value) + length(field[++i])
28174 substed = 1
28175 } else
28176 len += 1 + keylen
28177 }
28178 if (nfields == 3 && !substed) {
28179 key = field[2]
28180 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28181 \$ac_cs_awk_read_file
28182 next
28183 }
28184 }
28185 print line
28186 }
28187 \$ac_cs_awk_pipe_fini
28188 _ACAWK
28189 _ACEOF
28190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28191 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28192 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28193 else
28194 cat
28195 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28196 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28197 _ACEOF
28198
28199 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28200 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28201 # trailing colons and then remove the whole line if VPATH becomes empty
28202 # (actually we leave an empty line to preserve line numbers).
28203 if test "x$srcdir" = x.; then
28204 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28205 s/:*\$(srcdir):*/:/
28206 s/:*\${srcdir}:*/:/
28207 s/:*@srcdir@:*/:/
28208 s/^\([^=]*=[ ]*\):*/\1/
28209 s/:*$//
28210 s/^[^=]*=[ ]*$//
28211 }'
28212 fi
28213
28214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28215 fi # test -n "$CONFIG_FILES"
28216
28217 # Set up the scripts for CONFIG_HEADERS section.
28218 # No need to generate them if there are no CONFIG_HEADERS.
28219 # This happens for instance with `./config.status Makefile'.
28220 if test -n "$CONFIG_HEADERS"; then
28221 cat >"$tmp/defines.awk" <<\_ACAWK ||
28222 BEGIN {
28223 _ACEOF
28224
28225 # Transform confdefs.h into an awk script `defines.awk', embedded as
28226 # here-document in config.status, that substitutes the proper values into
28227 # config.h.in to produce config.h.
28228
28229 # Create a delimiter string that does not exist in confdefs.h, to ease
28230 # handling of long lines.
28231 ac_delim='%!_!# '
28232 for ac_last_try in false false :; do
28233 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28234 if test -z "$ac_t"; then
28235 break
28236 elif $ac_last_try; then
28237 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28238 else
28239 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28240 fi
28241 done
28242
28243 # For the awk script, D is an array of macro values keyed by name,
28244 # likewise P contains macro parameters if any. Preserve backslash
28245 # newline sequences.
28246
28247 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28248 sed -n '
28249 s/.\{148\}/&'"$ac_delim"'/g
28250 t rset
28251 :rset
28252 s/^[ ]*#[ ]*define[ ][ ]*/ /
28253 t def
28254 d
28255 :def
28256 s/\\$//
28257 t bsnl
28258 s/["\\]/\\&/g
28259 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28260 D["\1"]=" \3"/p
28261 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28262 d
28263 :bsnl
28264 s/["\\]/\\&/g
28265 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28266 D["\1"]=" \3\\\\\\n"\\/p
28267 t cont
28268 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28269 t cont
28270 d
28271 :cont
28272 n
28273 s/.\{148\}/&'"$ac_delim"'/g
28274 t clear
28275 :clear
28276 s/\\$//
28277 t bsnlc
28278 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28279 d
28280 :bsnlc
28281 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28282 b cont
28283 ' <confdefs.h | sed '
28284 s/'"$ac_delim"'/"\\\
28285 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28286
28287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28288 for (key in D) D_is_set[key] = 1
28289 FS = "\a"
28290 }
28291 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28292 line = \$ 0
28293 split(line, arg, " ")
28294 if (arg[1] == "#") {
28295 defundef = arg[2]
28296 mac1 = arg[3]
28297 } else {
28298 defundef = substr(arg[1], 2)
28299 mac1 = arg[2]
28300 }
28301 split(mac1, mac2, "(") #)
28302 macro = mac2[1]
28303 prefix = substr(line, 1, index(line, defundef) - 1)
28304 if (D_is_set[macro]) {
28305 # Preserve the white space surrounding the "#".
28306 print prefix "define", macro P[macro] D[macro]
28307 next
28308 } else {
28309 # Replace #undef with comments. This is necessary, for example,
28310 # in the case of _POSIX_SOURCE, which is predefined and required
28311 # on some systems where configure will not decide to define it.
28312 if (defundef == "undef") {
28313 print "/*", prefix defundef, macro, "*/"
28314 next
28315 }
28316 }
28317 }
28318 { print }
28319 _ACAWK
28320 _ACEOF
28321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28322 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28323 fi # test -n "$CONFIG_HEADERS"
28324
28325
28326 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28327 shift
28328 for ac_tag
28329 do
28330 case $ac_tag in
28331 :[FHLC]) ac_mode=$ac_tag; continue;;
28332 esac
28333 case $ac_mode$ac_tag in
28334 :[FHL]*:*);;
28335 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28336 :[FH]-) ac_tag=-:-;;
28337 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28338 esac
28339 ac_save_IFS=$IFS
28340 IFS=:
28341 set x $ac_tag
28342 IFS=$ac_save_IFS
28343 shift
28344 ac_file=$1
28345 shift
28346
28347 case $ac_mode in
28348 :L) ac_source=$1;;
28349 :[FH])
28350 ac_file_inputs=
28351 for ac_f
28352 do
28353 case $ac_f in
28354 -) ac_f="$tmp/stdin";;
28355 *) # Look for the file first in the build tree, then in the source tree
28356 # (if the path is not absolute). The absolute path cannot be DOS-style,
28357 # because $ac_f cannot contain `:'.
28358 test -f "$ac_f" ||
28359 case $ac_f in
28360 [\\/$]*) false;;
28361 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28362 esac ||
28363 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28364 esac
28365 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28366 as_fn_append ac_file_inputs " '$ac_f'"
28367 done
28368
28369 # Let's still pretend it is `configure' which instantiates (i.e., don't
28370 # use $as_me), people would be surprised to read:
28371 # /* config.h. Generated by config.status. */
28372 configure_input='Generated from '`
28373 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28374 `' by configure.'
28375 if test x"$ac_file" != x-; then
28376 configure_input="$ac_file. $configure_input"
28377 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28378 $as_echo "$as_me: creating $ac_file" >&6;}
28379 fi
28380 # Neutralize special characters interpreted by sed in replacement strings.
28381 case $configure_input in #(
28382 *\&* | *\|* | *\\* )
28383 ac_sed_conf_input=`$as_echo "$configure_input" |
28384 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28385 *) ac_sed_conf_input=$configure_input;;
28386 esac
28387
28388 case $ac_tag in
28389 *:-:* | *:-) cat >"$tmp/stdin" \
28390 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28391 esac
28392 ;;
28393 esac
28394
28395 ac_dir=`$as_dirname -- "$ac_file" ||
28396 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28397 X"$ac_file" : 'X\(//\)[^/]' \| \
28398 X"$ac_file" : 'X\(//\)$' \| \
28399 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28400 $as_echo X"$ac_file" |
28401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28402 s//\1/
28403 q
28404 }
28405 /^X\(\/\/\)[^/].*/{
28406 s//\1/
28407 q
28408 }
28409 /^X\(\/\/\)$/{
28410 s//\1/
28411 q
28412 }
28413 /^X\(\/\).*/{
28414 s//\1/
28415 q
28416 }
28417 s/.*/./; q'`
28418 as_dir="$ac_dir"; as_fn_mkdir_p
28419 ac_builddir=.
28420
28421 case "$ac_dir" in
28422 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28423 *)
28424 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28425 # A ".." for each directory in $ac_dir_suffix.
28426 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28427 case $ac_top_builddir_sub in
28428 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28429 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28430 esac ;;
28431 esac
28432 ac_abs_top_builddir=$ac_pwd
28433 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28434 # for backward compatibility:
28435 ac_top_builddir=$ac_top_build_prefix
28436
28437 case $srcdir in
28438 .) # We are building in place.
28439 ac_srcdir=.
28440 ac_top_srcdir=$ac_top_builddir_sub
28441 ac_abs_top_srcdir=$ac_pwd ;;
28442 [\\/]* | ?:[\\/]* ) # Absolute name.
28443 ac_srcdir=$srcdir$ac_dir_suffix;
28444 ac_top_srcdir=$srcdir
28445 ac_abs_top_srcdir=$srcdir ;;
28446 *) # Relative name.
28447 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28448 ac_top_srcdir=$ac_top_build_prefix$srcdir
28449 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28450 esac
28451 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28452
28453
28454 case $ac_mode in
28455 :F)
28456 #
28457 # CONFIG_FILE
28458 #
28459
28460 _ACEOF
28461
28462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28463 # If the template does not know about datarootdir, expand it.
28464 # FIXME: This hack should be removed a few years after 2.60.
28465 ac_datarootdir_hack=; ac_datarootdir_seen=
28466 ac_sed_dataroot='
28467 /datarootdir/ {
28468 p
28469 q
28470 }
28471 /@datadir@/p
28472 /@docdir@/p
28473 /@infodir@/p
28474 /@localedir@/p
28475 /@mandir@/p'
28476 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28477 *datarootdir*) ac_datarootdir_seen=yes;;
28478 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28480 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28481 _ACEOF
28482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28483 ac_datarootdir_hack='
28484 s&@datadir@&$datadir&g
28485 s&@docdir@&$docdir&g
28486 s&@infodir@&$infodir&g
28487 s&@localedir@&$localedir&g
28488 s&@mandir@&$mandir&g
28489 s&\\\${datarootdir}&$datarootdir&g' ;;
28490 esac
28491 _ACEOF
28492
28493 # Neutralize VPATH when `$srcdir' = `.'.
28494 # Shell code in configure.ac might set extrasub.
28495 # FIXME: do we really want to maintain this feature?
28496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28497 ac_sed_extra="$ac_vpsub
28498 $extrasub
28499 _ACEOF
28500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28501 :t
28502 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28503 s|@configure_input@|$ac_sed_conf_input|;t t
28504 s&@top_builddir@&$ac_top_builddir_sub&;t t
28505 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28506 s&@srcdir@&$ac_srcdir&;t t
28507 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28508 s&@top_srcdir@&$ac_top_srcdir&;t t
28509 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28510 s&@builddir@&$ac_builddir&;t t
28511 s&@abs_builddir@&$ac_abs_builddir&;t t
28512 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28513 $ac_datarootdir_hack
28514 "
28515 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28516 if $ac_cs_awk_getline; then
28517 $AWK -f "$tmp/subs.awk"
28518 else
28519 $AWK -f "$tmp/subs.awk" | $SHELL
28520 fi >$tmp/out \
28521 || as_fn_error "could not create $ac_file" "$LINENO" 5
28522
28523 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28524 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28525 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28527 which seems to be undefined. Please make sure it is defined." >&5
28528 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28529 which seems to be undefined. Please make sure it is defined." >&2;}
28530
28531 rm -f "$tmp/stdin"
28532 case $ac_file in
28533 -) cat "$tmp/out" && rm -f "$tmp/out";;
28534 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28535 esac \
28536 || as_fn_error "could not create $ac_file" "$LINENO" 5
28537 ;;
28538 :H)
28539 #
28540 # CONFIG_HEADER
28541 #
28542 if test x"$ac_file" != x-; then
28543 {
28544 $as_echo "/* $configure_input */" \
28545 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28546 } >"$tmp/config.h" \
28547 || as_fn_error "could not create $ac_file" "$LINENO" 5
28548 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28549 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28550 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28551 else
28552 rm -f "$ac_file"
28553 mv "$tmp/config.h" "$ac_file" \
28554 || as_fn_error "could not create $ac_file" "$LINENO" 5
28555 fi
28556 else
28557 $as_echo "/* $configure_input */" \
28558 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28559 || as_fn_error "could not create -" "$LINENO" 5
28560 fi
28561 ;;
28562
28563 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28564 $as_echo "$as_me: executing $ac_file commands" >&6;}
28565 ;;
28566 esac
28567
28568
28569 case $ac_file$ac_mode in
28570 "as":F) chmod +x as ;;
28571 "collect-ld":F) chmod +x collect-ld ;;
28572 "nm":F) chmod +x nm ;;
28573 "default":C)
28574 case ${CONFIG_HEADERS} in
28575 *auto-host.h:config.in*)
28576 echo > cstamp-h ;;
28577 esac
28578 # Make sure all the subdirs exist.
28579 for d in $subdirs doc build common c-family
28580 do
28581 test -d $d || mkdir $d
28582 done
28583 ;;
28584
28585 esac
28586 done # for ac_tag
28587
28588
28589 as_fn_exit 0
28590 _ACEOF
28591 ac_clean_files=$ac_clean_files_save
28592
28593 test $ac_write_fail = 0 ||
28594 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28595
28596
28597 # configure is writing to config.log, and then calls config.status.
28598 # config.status does its own redirection, appending to config.log.
28599 # Unfortunately, on DOS this fails, as config.log is still kept open
28600 # by configure, so config.status won't be able to write to it; its
28601 # output is simply discarded. So we exec the FD to /dev/null,
28602 # effectively closing config.log, so it can be properly (re)opened and
28603 # appended to by config.status. When coming back to configure, we
28604 # need to make the FD available again.
28605 if test "$no_create" != yes; then
28606 ac_cs_success=:
28607 ac_config_status_args=
28608 test "$silent" = yes &&
28609 ac_config_status_args="$ac_config_status_args --quiet"
28610 exec 5>/dev/null
28611 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28612 exec 5>>config.log
28613 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28614 # would make configure fail if this is the last instruction.
28615 $ac_cs_success || as_fn_exit $?
28616 fi
28617 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28619 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28620 fi
28621
28622