]> gcc.gnu.org Git - gcc.git/blob - gcc/configure
re PR c++/50810 (c++0x-compat does not warn about narrowing conversions)
[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 tm_defines
622 tm_include_list
623 tm_file_list
624 common_out_object_file
625 common_out_file
626 out_object_file
627 out_file
628 objc_boehm_gc
629 md_file
630 local_prefix
631 lang_tree_files
632 lang_specs_files
633 lang_opt_files
634 install
635 out_host_hook_obj
636 host_xm_defines
637 host_xm_include_list
638 host_xm_file_list
639 host_exeext
640 gcc_gxx_include_dir
641 gcc_config_arguments
642 float_h_file
643 extra_programs
644 extra_passes
645 extra_objs
646 extra_headers_list
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefrags
666 all_gtfiles
667 all_compilers
668 srcdir
669 subdirs
670 dollar
671 gcc_tooldir
672 enable_lto
673 MAINT
674 zlibinc
675 zlibdir
676 HOST_LIBS
677 GGC
678 libgcc_visibility
679 gcc_cv_readelf
680 gcc_cv_objdump
681 ORIGINAL_NM_FOR_TARGET
682 gcc_cv_nm
683 ORIGINAL_LD_FOR_TARGET
684 ORIGINAL_PLUGIN_LD_FOR_TARGET
685 gcc_cv_ld
686 ORIGINAL_AS_FOR_TARGET
687 gcc_cv_as
688 enable_fast_install
689 objdir
690 OTOOL64
691 OTOOL
692 LIPO
693 NMEDIT
694 DSYMUTIL
695 STRIP
696 OBJDUMP
697 ac_ct_DUMPBIN
698 DUMPBIN
699 LD
700 FGREP
701 SED
702 LIBTOOL
703 collect2
704 STMP_FIXINC
705 BUILD_LDFLAGS
706 BUILD_CFLAGS
707 CC_FOR_BUILD
708 inhibit_libc
709 SYSTEM_HEADER_DIR
710 ALL
711 CROSS
712 CATOBJEXT
713 GENCAT
714 INSTOBJEXT
715 DATADIRNAME
716 CATALOGS
717 POSUB
718 GMSGFMT
719 XGETTEXT
720 INCINTL
721 LIBINTL_DEP
722 LIBINTL
723 USE_NLS
724 extra_opt_files
725 extra_modes_file
726 NATIVE_SYSTEM_HEADER_DIR
727 objext
728 manext
729 LIBICONV_DEP
730 LTLIBICONV
731 LIBICONV
732 LDEXP_LIB
733 EXTRA_GCC_LIBS
734 GNAT_LIBEXC
735 COLLECT2_LIBS
736 CXXCPP
737 AR
738 NM
739 BISON
740 FLEX
741 GENERATED_MANPAGES
742 BUILD_INFO
743 MAKEINFO
744 have_mktemp_command
745 make_compare_target
746 INSTALL_DATA
747 INSTALL_PROGRAM
748 INSTALL
749 ranlib_flags
750 RANLIB
751 LN
752 LN_S
753 AWK
754 SET_MAKE
755 REPORT_BUGS_TEXI
756 REPORT_BUGS_TO
757 PKGVERSION
758 CONFIGURE_SPECS
759 CROSS_SYSTEM_HEADER_DIR
760 TARGET_SYSTEM_ROOT_DEFINE
761 TARGET_SYSTEM_ROOT
762 SYSROOT_CFLAGS_FOR_TARGET
763 enable_shared
764 enable_fixed_point
765 enable_decimal_float
766 enable_multilib
767 ENABLE_BUILD_WITH_CXX
768 coverage_flags
769 valgrind_command
770 valgrind_path_defines
771 valgrind_path
772 TREEBROWSER
773 nocommon_flag
774 warn_cxxflags
775 warn_cflags
776 c_strict_warn
777 strict_warn
778 c_loose_warn
779 loose_warn
780 EGREP
781 GREP
782 CPP
783 PICFLAG_FOR_TARGET
784 OUTPUT_OPTION
785 NO_MINUS_C_MINUS_O
786 GNATMAKE
787 GNATBIND
788 ac_ct_CXX
789 CXXFLAGS
790 CXX
791 OBJEXT
792 EXEEXT
793 ac_ct_CC
794 CPPFLAGS
795 LDFLAGS
796 CFLAGS
797 CC
798 GENINSRC
799 target_subdir
800 host_subdir
801 build_subdir
802 build_libsubdir
803 target_noncanonical
804 target_os
805 target_vendor
806 target_cpu
807 target
808 host_os
809 host_vendor
810 host_cpu
811 host
812 build_os
813 build_vendor
814 build_cpu
815 build
816 target_alias
817 host_alias
818 build_alias
819 LIBS
820 ECHO_T
821 ECHO_N
822 ECHO_C
823 DEFS
824 mandir
825 localedir
826 libdir
827 psdir
828 pdfdir
829 dvidir
830 htmldir
831 infodir
832 docdir
833 oldincludedir
834 includedir
835 localstatedir
836 sharedstatedir
837 sysconfdir
838 datadir
839 datarootdir
840 libexecdir
841 sbindir
842 bindir
843 program_transform_name
844 prefix
845 exec_prefix
846 PACKAGE_URL
847 PACKAGE_BUGREPORT
848 PACKAGE_STRING
849 PACKAGE_VERSION
850 PACKAGE_TARNAME
851 PACKAGE_NAME
852 PATH_SEPARATOR
853 SHELL'
854 ac_subst_files='option_includes
855 language_hooks'
856 ac_user_opts='
857 enable_option_checking
858 with_build_libsubdir
859 with_local_prefix
860 with_gxx_include_dir
861 with_cpp_install_dir
862 enable_generated_files_in_srcdir
863 with_gnu_ld
864 with_ld
865 with_demangler_in_ld
866 with_gnu_as
867 with_as
868 enable_largefile
869 enable_werror_always
870 enable_checking
871 enable_coverage
872 enable_gather_detailed_mem_stats
873 enable_build_with_cxx
874 with_stabs
875 enable_multilib
876 enable___cxa_atexit
877 enable_decimal_float
878 enable_fixed_point
879 enable_threads
880 enable_tls
881 enable_objc_gc
882 with_dwarf2
883 enable_shared
884 with_native_system_header_dir
885 with_build_sysroot
886 with_sysroot
887 with_specs
888 with_pkgversion
889 with_bugurl
890 enable_languages
891 with_multilib_list
892 enable_rpath
893 with_libiconv_prefix
894 enable_initfini_array
895 enable_sjlj_exceptions
896 enable_secureplt
897 enable_leading_mingw64_underscores
898 enable_cld
899 enable_frame_pointer
900 enable_win32_registry
901 enable_static
902 with_pic
903 enable_fast_install
904 enable_libtool_lock
905 with_plugin_ld
906 enable_gnu_indirect_function
907 enable_comdat
908 enable_gnu_unique_object
909 enable_linker_build_id
910 with_long_double_128
911 with_gc
912 with_system_zlib
913 enable_maintainer_mode
914 enable_version_specific_runtime_libs
915 enable_plugin
916 enable_libquadmath_support
917 with_linker_hash_style
918 '
919 ac_precious_vars='build_alias
920 host_alias
921 target_alias
922 CC
923 CFLAGS
924 LDFLAGS
925 LIBS
926 CPPFLAGS
927 CXX
928 CXXFLAGS
929 CCC
930 CPP
931 CXXCPP
932 GMPLIBS
933 GMPINC
934 PPLLIBS
935 PPLINC
936 CLOOGLIBS
937 CLOOGINC'
938
939
940 # Initialize some variables set by options.
941 ac_init_help=
942 ac_init_version=false
943 ac_unrecognized_opts=
944 ac_unrecognized_sep=
945 # The variables have the same names as the options, with
946 # dashes changed to underlines.
947 cache_file=/dev/null
948 exec_prefix=NONE
949 no_create=
950 no_recursion=
951 prefix=NONE
952 program_prefix=NONE
953 program_suffix=NONE
954 program_transform_name=s,x,x,
955 silent=
956 site=
957 srcdir=
958 verbose=
959 x_includes=NONE
960 x_libraries=NONE
961
962 # Installation directory options.
963 # These are left unexpanded so users can "make install exec_prefix=/foo"
964 # and all the variables that are supposed to be based on exec_prefix
965 # by default will actually change.
966 # Use braces instead of parens because sh, perl, etc. also accept them.
967 # (The list follows the same order as the GNU Coding Standards.)
968 bindir='${exec_prefix}/bin'
969 sbindir='${exec_prefix}/sbin'
970 libexecdir='${exec_prefix}/libexec'
971 datarootdir='${prefix}/share'
972 datadir='${datarootdir}'
973 sysconfdir='${prefix}/etc'
974 sharedstatedir='${prefix}/com'
975 localstatedir='${prefix}/var'
976 includedir='${prefix}/include'
977 oldincludedir='/usr/include'
978 docdir='${datarootdir}/doc/${PACKAGE}'
979 infodir='${datarootdir}/info'
980 htmldir='${docdir}'
981 dvidir='${docdir}'
982 pdfdir='${docdir}'
983 psdir='${docdir}'
984 libdir='${exec_prefix}/lib'
985 localedir='${datarootdir}/locale'
986 mandir='${datarootdir}/man'
987
988 ac_prev=
989 ac_dashdash=
990 for ac_option
991 do
992 # If the previous option needs an argument, assign it.
993 if test -n "$ac_prev"; then
994 eval $ac_prev=\$ac_option
995 ac_prev=
996 continue
997 fi
998
999 case $ac_option in
1000 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1001 *) ac_optarg=yes ;;
1002 esac
1003
1004 # Accept the important Cygnus configure options, so we can diagnose typos.
1005
1006 case $ac_dashdash$ac_option in
1007 --)
1008 ac_dashdash=yes ;;
1009
1010 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1011 ac_prev=bindir ;;
1012 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1013 bindir=$ac_optarg ;;
1014
1015 -build | --build | --buil | --bui | --bu)
1016 ac_prev=build_alias ;;
1017 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1018 build_alias=$ac_optarg ;;
1019
1020 -cache-file | --cache-file | --cache-fil | --cache-fi \
1021 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1022 ac_prev=cache_file ;;
1023 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1024 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1025 cache_file=$ac_optarg ;;
1026
1027 --config-cache | -C)
1028 cache_file=config.cache ;;
1029
1030 -datadir | --datadir | --datadi | --datad)
1031 ac_prev=datadir ;;
1032 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1033 datadir=$ac_optarg ;;
1034
1035 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1036 | --dataroo | --dataro | --datar)
1037 ac_prev=datarootdir ;;
1038 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1039 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1040 datarootdir=$ac_optarg ;;
1041
1042 -disable-* | --disable-*)
1043 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1046 as_fn_error "invalid feature name: $ac_useropt"
1047 ac_useropt_orig=$ac_useropt
1048 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1049 case $ac_user_opts in
1050 *"
1051 "enable_$ac_useropt"
1052 "*) ;;
1053 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1054 ac_unrecognized_sep=', ';;
1055 esac
1056 eval enable_$ac_useropt=no ;;
1057
1058 -docdir | --docdir | --docdi | --doc | --do)
1059 ac_prev=docdir ;;
1060 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1061 docdir=$ac_optarg ;;
1062
1063 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1064 ac_prev=dvidir ;;
1065 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1066 dvidir=$ac_optarg ;;
1067
1068 -enable-* | --enable-*)
1069 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072 as_fn_error "invalid feature name: $ac_useropt"
1073 ac_useropt_orig=$ac_useropt
1074 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1076 *"
1077 "enable_$ac_useropt"
1078 "*) ;;
1079 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1080 ac_unrecognized_sep=', ';;
1081 esac
1082 eval enable_$ac_useropt=\$ac_optarg ;;
1083
1084 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1085 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1086 | --exec | --exe | --ex)
1087 ac_prev=exec_prefix ;;
1088 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1089 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1090 | --exec=* | --exe=* | --ex=*)
1091 exec_prefix=$ac_optarg ;;
1092
1093 -gas | --gas | --ga | --g)
1094 # Obsolete; use --with-gas.
1095 with_gas=yes ;;
1096
1097 -help | --help | --hel | --he | -h)
1098 ac_init_help=long ;;
1099 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1100 ac_init_help=recursive ;;
1101 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1102 ac_init_help=short ;;
1103
1104 -host | --host | --hos | --ho)
1105 ac_prev=host_alias ;;
1106 -host=* | --host=* | --hos=* | --ho=*)
1107 host_alias=$ac_optarg ;;
1108
1109 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1110 ac_prev=htmldir ;;
1111 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1112 | --ht=*)
1113 htmldir=$ac_optarg ;;
1114
1115 -includedir | --includedir | --includedi | --included | --include \
1116 | --includ | --inclu | --incl | --inc)
1117 ac_prev=includedir ;;
1118 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1119 | --includ=* | --inclu=* | --incl=* | --inc=*)
1120 includedir=$ac_optarg ;;
1121
1122 -infodir | --infodir | --infodi | --infod | --info | --inf)
1123 ac_prev=infodir ;;
1124 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1125 infodir=$ac_optarg ;;
1126
1127 -libdir | --libdir | --libdi | --libd)
1128 ac_prev=libdir ;;
1129 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1130 libdir=$ac_optarg ;;
1131
1132 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1133 | --libexe | --libex | --libe)
1134 ac_prev=libexecdir ;;
1135 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1136 | --libexe=* | --libex=* | --libe=*)
1137 libexecdir=$ac_optarg ;;
1138
1139 -localedir | --localedir | --localedi | --localed | --locale)
1140 ac_prev=localedir ;;
1141 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1142 localedir=$ac_optarg ;;
1143
1144 -localstatedir | --localstatedir | --localstatedi | --localstated \
1145 | --localstate | --localstat | --localsta | --localst | --locals)
1146 ac_prev=localstatedir ;;
1147 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1148 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1149 localstatedir=$ac_optarg ;;
1150
1151 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1152 ac_prev=mandir ;;
1153 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1154 mandir=$ac_optarg ;;
1155
1156 -nfp | --nfp | --nf)
1157 # Obsolete; use --without-fp.
1158 with_fp=no ;;
1159
1160 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1161 | --no-cr | --no-c | -n)
1162 no_create=yes ;;
1163
1164 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1165 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1166 no_recursion=yes ;;
1167
1168 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1169 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1170 | --oldin | --oldi | --old | --ol | --o)
1171 ac_prev=oldincludedir ;;
1172 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1173 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1174 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1175 oldincludedir=$ac_optarg ;;
1176
1177 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1178 ac_prev=prefix ;;
1179 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1180 prefix=$ac_optarg ;;
1181
1182 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1183 | --program-pre | --program-pr | --program-p)
1184 ac_prev=program_prefix ;;
1185 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1186 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1187 program_prefix=$ac_optarg ;;
1188
1189 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1190 | --program-suf | --program-su | --program-s)
1191 ac_prev=program_suffix ;;
1192 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1193 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1194 program_suffix=$ac_optarg ;;
1195
1196 -program-transform-name | --program-transform-name \
1197 | --program-transform-nam | --program-transform-na \
1198 | --program-transform-n | --program-transform- \
1199 | --program-transform | --program-transfor \
1200 | --program-transfo | --program-transf \
1201 | --program-trans | --program-tran \
1202 | --progr-tra | --program-tr | --program-t)
1203 ac_prev=program_transform_name ;;
1204 -program-transform-name=* | --program-transform-name=* \
1205 | --program-transform-nam=* | --program-transform-na=* \
1206 | --program-transform-n=* | --program-transform-=* \
1207 | --program-transform=* | --program-transfor=* \
1208 | --program-transfo=* | --program-transf=* \
1209 | --program-trans=* | --program-tran=* \
1210 | --progr-tra=* | --program-tr=* | --program-t=*)
1211 program_transform_name=$ac_optarg ;;
1212
1213 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1214 ac_prev=pdfdir ;;
1215 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1216 pdfdir=$ac_optarg ;;
1217
1218 -psdir | --psdir | --psdi | --psd | --ps)
1219 ac_prev=psdir ;;
1220 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1221 psdir=$ac_optarg ;;
1222
1223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224 | -silent | --silent | --silen | --sile | --sil)
1225 silent=yes ;;
1226
1227 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1228 ac_prev=sbindir ;;
1229 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1230 | --sbi=* | --sb=*)
1231 sbindir=$ac_optarg ;;
1232
1233 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1234 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1235 | --sharedst | --shareds | --shared | --share | --shar \
1236 | --sha | --sh)
1237 ac_prev=sharedstatedir ;;
1238 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1239 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1240 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1241 | --sha=* | --sh=*)
1242 sharedstatedir=$ac_optarg ;;
1243
1244 -site | --site | --sit)
1245 ac_prev=site ;;
1246 -site=* | --site=* | --sit=*)
1247 site=$ac_optarg ;;
1248
1249 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1250 ac_prev=srcdir ;;
1251 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1252 srcdir=$ac_optarg ;;
1253
1254 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1255 | --syscon | --sysco | --sysc | --sys | --sy)
1256 ac_prev=sysconfdir ;;
1257 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1258 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1259 sysconfdir=$ac_optarg ;;
1260
1261 -target | --target | --targe | --targ | --tar | --ta | --t)
1262 ac_prev=target_alias ;;
1263 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1264 target_alias=$ac_optarg ;;
1265
1266 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1267 verbose=yes ;;
1268
1269 -version | --version | --versio | --versi | --vers | -V)
1270 ac_init_version=: ;;
1271
1272 -with-* | --with-*)
1273 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1276 as_fn_error "invalid package name: $ac_useropt"
1277 ac_useropt_orig=$ac_useropt
1278 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279 case $ac_user_opts in
1280 *"
1281 "with_$ac_useropt"
1282 "*) ;;
1283 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1284 ac_unrecognized_sep=', ';;
1285 esac
1286 eval with_$ac_useropt=\$ac_optarg ;;
1287
1288 -without-* | --without-*)
1289 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1292 as_fn_error "invalid package name: $ac_useropt"
1293 ac_useropt_orig=$ac_useropt
1294 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295 case $ac_user_opts in
1296 *"
1297 "with_$ac_useropt"
1298 "*) ;;
1299 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1300 ac_unrecognized_sep=', ';;
1301 esac
1302 eval with_$ac_useropt=no ;;
1303
1304 --x)
1305 # Obsolete; use --with-x.
1306 with_x=yes ;;
1307
1308 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1309 | --x-incl | --x-inc | --x-in | --x-i)
1310 ac_prev=x_includes ;;
1311 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1312 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1313 x_includes=$ac_optarg ;;
1314
1315 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1316 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1317 ac_prev=x_libraries ;;
1318 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1319 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1320 x_libraries=$ac_optarg ;;
1321
1322 -*) as_fn_error "unrecognized option: \`$ac_option'
1323 Try \`$0 --help' for more information."
1324 ;;
1325
1326 *=*)
1327 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1328 # Reject names that are not valid shell variable names.
1329 case $ac_envvar in #(
1330 '' | [0-9]* | *[!_$as_cr_alnum]* )
1331 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1332 esac
1333 eval $ac_envvar=\$ac_optarg
1334 export $ac_envvar ;;
1335
1336 *)
1337 # FIXME: should be removed in autoconf 3.0.
1338 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1339 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1340 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1341 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1342 ;;
1343
1344 esac
1345 done
1346
1347 if test -n "$ac_prev"; then
1348 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1349 as_fn_error "missing argument to $ac_option"
1350 fi
1351
1352 if test -n "$ac_unrecognized_opts"; then
1353 case $enable_option_checking in
1354 no) ;;
1355 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1356 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1357 esac
1358 fi
1359
1360 # Check all directory arguments for consistency.
1361 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1362 datadir sysconfdir sharedstatedir localstatedir includedir \
1363 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1364 libdir localedir mandir
1365 do
1366 eval ac_val=\$$ac_var
1367 # Remove trailing slashes.
1368 case $ac_val in
1369 */ )
1370 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1371 eval $ac_var=\$ac_val;;
1372 esac
1373 # Be sure to have absolute directory names.
1374 case $ac_val in
1375 [\\/$]* | ?:[\\/]* ) continue;;
1376 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1377 esac
1378 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1379 done
1380
1381 # There might be people who depend on the old broken behavior: `$host'
1382 # used to hold the argument of --host etc.
1383 # FIXME: To remove some day.
1384 build=$build_alias
1385 host=$host_alias
1386 target=$target_alias
1387
1388 # FIXME: To remove some day.
1389 if test "x$host_alias" != x; then
1390 if test "x$build_alias" = x; then
1391 cross_compiling=maybe
1392 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1393 If a cross compiler is detected then cross compile mode will be used." >&2
1394 elif test "x$build_alias" != "x$host_alias"; then
1395 cross_compiling=yes
1396 fi
1397 fi
1398
1399 ac_tool_prefix=
1400 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1401
1402 test "$silent" = yes && exec 6>/dev/null
1403
1404
1405 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1406 ac_ls_di=`ls -di .` &&
1407 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1408 as_fn_error "working directory cannot be determined"
1409 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1410 as_fn_error "pwd does not report name of working directory"
1411
1412
1413 # Find the source files, if location was not specified.
1414 if test -z "$srcdir"; then
1415 ac_srcdir_defaulted=yes
1416 # Try the directory containing this script, then the parent directory.
1417 ac_confdir=`$as_dirname -- "$as_myself" ||
1418 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1419 X"$as_myself" : 'X\(//\)[^/]' \| \
1420 X"$as_myself" : 'X\(//\)$' \| \
1421 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1422 $as_echo X"$as_myself" |
1423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1424 s//\1/
1425 q
1426 }
1427 /^X\(\/\/\)[^/].*/{
1428 s//\1/
1429 q
1430 }
1431 /^X\(\/\/\)$/{
1432 s//\1/
1433 q
1434 }
1435 /^X\(\/\).*/{
1436 s//\1/
1437 q
1438 }
1439 s/.*/./; q'`
1440 srcdir=$ac_confdir
1441 if test ! -r "$srcdir/$ac_unique_file"; then
1442 srcdir=..
1443 fi
1444 else
1445 ac_srcdir_defaulted=no
1446 fi
1447 if test ! -r "$srcdir/$ac_unique_file"; then
1448 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1449 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1450 fi
1451 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1452 ac_abs_confdir=`(
1453 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1454 pwd)`
1455 # When building in place, set srcdir=.
1456 if test "$ac_abs_confdir" = "$ac_pwd"; then
1457 srcdir=.
1458 fi
1459 # Remove unnecessary trailing slashes from srcdir.
1460 # Double slashes in file names in object file debugging info
1461 # mess up M-x gdb in Emacs.
1462 case $srcdir in
1463 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1464 esac
1465 for ac_var in $ac_precious_vars; do
1466 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1467 eval ac_env_${ac_var}_value=\$${ac_var}
1468 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1469 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1470 done
1471
1472 #
1473 # Report the --help message.
1474 #
1475 if test "$ac_init_help" = "long"; then
1476 # Omit some internal or obsolete options to make the list less imposing.
1477 # This message is too long to be a string in the A/UX 3.1 sh.
1478 cat <<_ACEOF
1479 \`configure' configures this package to adapt to many kinds of systems.
1480
1481 Usage: $0 [OPTION]... [VAR=VALUE]...
1482
1483 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1484 VAR=VALUE. See below for descriptions of some of the useful variables.
1485
1486 Defaults for the options are specified in brackets.
1487
1488 Configuration:
1489 -h, --help display this help and exit
1490 --help=short display options specific to this package
1491 --help=recursive display the short help of all the included packages
1492 -V, --version display version information and exit
1493 -q, --quiet, --silent do not print \`checking...' messages
1494 --cache-file=FILE cache test results in FILE [disabled]
1495 -C, --config-cache alias for \`--cache-file=config.cache'
1496 -n, --no-create do not create output files
1497 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1498
1499 Installation directories:
1500 --prefix=PREFIX install architecture-independent files in PREFIX
1501 [$ac_default_prefix]
1502 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1503 [PREFIX]
1504
1505 By default, \`make install' will install all the files in
1506 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1507 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1508 for instance \`--prefix=\$HOME'.
1509
1510 For better control, use the options below.
1511
1512 Fine tuning of the installation directories:
1513 --bindir=DIR user executables [EPREFIX/bin]
1514 --sbindir=DIR system admin executables [EPREFIX/sbin]
1515 --libexecdir=DIR program executables [EPREFIX/libexec]
1516 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1517 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1518 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1519 --libdir=DIR object code libraries [EPREFIX/lib]
1520 --includedir=DIR C header files [PREFIX/include]
1521 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1522 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1523 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1524 --infodir=DIR info documentation [DATAROOTDIR/info]
1525 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1526 --mandir=DIR man documentation [DATAROOTDIR/man]
1527 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1528 --htmldir=DIR html documentation [DOCDIR]
1529 --dvidir=DIR dvi documentation [DOCDIR]
1530 --pdfdir=DIR pdf documentation [DOCDIR]
1531 --psdir=DIR ps documentation [DOCDIR]
1532 _ACEOF
1533
1534 cat <<\_ACEOF
1535
1536 Program names:
1537 --program-prefix=PREFIX prepend PREFIX to installed program names
1538 --program-suffix=SUFFIX append SUFFIX to installed program names
1539 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1540
1541 System types:
1542 --build=BUILD configure for building on BUILD [guessed]
1543 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1544 --target=TARGET configure for building compilers for TARGET [HOST]
1545 _ACEOF
1546 fi
1547
1548 if test -n "$ac_init_help"; then
1549
1550 cat <<\_ACEOF
1551
1552 Optional Features:
1553 --disable-option-checking ignore unrecognized --enable/--with options
1554 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1555 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1556 --enable-generated-files-in-srcdir
1557 put copies of generated files in source dir intended
1558 for creating source tarballs for users without
1559 texinfo bison or flex
1560 --disable-largefile omit support for large files
1561 --enable-werror-always enable -Werror despite compiler version
1562 --enable-checking[=LIST]
1563 enable expensive run-time checks. With LIST, enable
1564 only specific categories of checks. Categories are:
1565 yes,no,all,none,release. Flags are:
1566 assert,df,fold,gc,gcac,gimple,misc,
1567 rtlflag,rtl,runtime,tree,valgrind,types
1568 --enable-coverage[=LEVEL]
1569 enable compiler's code coverage collection. Use to
1570 measure compiler performance and locate unused parts
1571 of the compiler. With LEVEL, specify optimization.
1572 Values are opt, noopt, default is noopt
1573 --enable-gather-detailed-mem-stats
1574 enable detailed memory allocation stats gathering
1575 --enable-build-with-cxx build with C++ compiler instead of C compiler
1576 --enable-multilib enable library support for multiple ABIs
1577 --enable-__cxa_atexit enable __cxa_atexit for C++
1578 --enable-decimal-float={no,yes,bid,dpd}
1579 enable decimal float extension to C. Selecting 'bid'
1580 or 'dpd' choses which decimal floating point format
1581 to use
1582 --enable-fixed-point enable fixed-point arithmetic extension to C
1583 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1584 package
1585 --enable-tls enable or disable generation of tls code overriding
1586 the assembler check for tls support
1587 --enable-objc-gc enable the use of Boehm's garbage collector with the
1588 GNU Objective-C runtime
1589 --disable-shared don't provide a shared libgcc
1590 --enable-languages=LIST specify which front-ends to build
1591 --disable-rpath do not hardcode runtime library paths
1592 --enable-initfini-array use .init_array/.fini_array sections
1593 --enable-sjlj-exceptions
1594 arrange to use setjmp/longjmp exception handling
1595 --enable-secureplt enable -msecure-plt by default for PowerPC
1596 --enable-leading-mingw64-underscores
1597 enable leading underscores on 64 bit mingw targets
1598 --enable-cld enable -mcld by default for 32bit x86
1599 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1600 x86
1601 --disable-win32-registry
1602 disable lookup of installation paths in the Registry
1603 on Windows hosts
1604 --enable-win32-registry enable registry lookup (default)
1605 --enable-win32-registry=KEY
1606 use KEY instead of GCC version as the last portion
1607 of the registry key
1608 --enable-shared[=PKGS] build shared libraries [default=yes]
1609 --enable-static[=PKGS] build static libraries [default=yes]
1610 --enable-fast-install[=PKGS]
1611 optimize for fast installation [default=yes]
1612 --disable-libtool-lock avoid locking (might break parallel builds)
1613 --enable-gnu-indirect-function
1614 enable the use of the @gnu_indirect_function to
1615 glibc systems
1616 --enable-comdat enable COMDAT group support
1617 --enable-gnu-unique-object
1618 enable the use of the @gnu_unique_object ELF
1619 extension on glibc systems
1620 --enable-linker-build-id
1621 compiler will always pass --build-id to linker
1622 --enable-maintainer-mode
1623 enable make rules and dependencies not useful (and
1624 sometimes confusing) to the casual installer
1625 --enable-version-specific-runtime-libs
1626 specify that runtime libraries should be installed
1627 in a compiler-specific directory
1628 --enable-plugin enable plugin support
1629 --disable-libquadmath-support
1630 disable libquadmath support for Fortran
1631
1632 Optional Packages:
1633 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1634 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1635 --with-build-libsubdir=DIR Directory where to find libraries for build system
1636 --with-local-prefix=DIR specifies directory to put local include
1637 --with-gxx-include-dir=DIR
1638 specifies directory to put g++ header files
1639 --with-cpp-install-dir=DIR
1640 install the user visible C preprocessor in DIR
1641 (relative to PREFIX) as well as PREFIX/bin
1642 --with-gnu-ld arrange to work with GNU ld
1643 --with-ld arrange to use the specified ld (full pathname)
1644 --with-demangler-in-ld try to use demangler in GNU ld
1645 --with-gnu-as arrange to work with GNU as
1646 --with-as arrange to use the specified as (full pathname)
1647 --with-stabs arrange to use stabs instead of host debug format
1648 --with-dwarf2 force the default debug format to be DWARF 2
1649 --with-native-system-header-dir=dir
1650 use dir as the directory to look for standard
1651 system header files in. Defaults to /usr/include.
1652 --with-build-sysroot=sysroot
1653 use sysroot as the system root during the build
1654 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1655 --with-specs=SPECS add SPECS to driver command-line processing
1656 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1657 --with-bugurl=URL Direct users to URL to report a bug
1658 --with-multilib-list select multilibs (SH and x86-64 only)
1659 --with-gnu-ld assume the C compiler uses GNU ld default=no
1660 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1661 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1662 --with-pic try to use only PIC/non-PIC objects [default=use
1663 both]
1664 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1665 --with-plugin-ld=[ARG] specify the plugin linker
1666 --with-long-double-128 use 128-bit long double by default
1667 --with-gc={page,zone} choose the garbage collection mechanism to use with
1668 the compiler
1669 --with-system-zlib use installed libz
1670 --with-linker-hash-style={sysv,gnu,both}
1671 specify the linker hash style
1672
1673 Some influential environment variables:
1674 CC C compiler command
1675 CFLAGS C compiler flags
1676 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1677 nonstandard directory <lib dir>
1678 LIBS libraries to pass to the linker, e.g. -l<library>
1679 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1680 you have headers in a nonstandard directory <include dir>
1681 CXX C++ compiler command
1682 CXXFLAGS C++ compiler flags
1683 CPP C preprocessor
1684 CXXCPP C++ preprocessor
1685 GMPLIBS How to link GMP
1686 GMPINC How to find GMP include files
1687 PPLLIBS How to link PPL
1688 PPLINC How to find PPL include files
1689 CLOOGLIBS How to link CLOOG
1690 CLOOGINC How to find CLOOG include files
1691
1692 Use these variables to override the choices made by `configure' or to help
1693 it to find libraries and programs with nonstandard names/locations.
1694
1695 Report bugs to the package provider.
1696 _ACEOF
1697 ac_status=$?
1698 fi
1699
1700 if test "$ac_init_help" = "recursive"; then
1701 # If there are subdirs, report their specific --help.
1702 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1703 test -d "$ac_dir" ||
1704 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1705 continue
1706 ac_builddir=.
1707
1708 case "$ac_dir" in
1709 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1710 *)
1711 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1712 # A ".." for each directory in $ac_dir_suffix.
1713 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1714 case $ac_top_builddir_sub in
1715 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1716 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1717 esac ;;
1718 esac
1719 ac_abs_top_builddir=$ac_pwd
1720 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1721 # for backward compatibility:
1722 ac_top_builddir=$ac_top_build_prefix
1723
1724 case $srcdir in
1725 .) # We are building in place.
1726 ac_srcdir=.
1727 ac_top_srcdir=$ac_top_builddir_sub
1728 ac_abs_top_srcdir=$ac_pwd ;;
1729 [\\/]* | ?:[\\/]* ) # Absolute name.
1730 ac_srcdir=$srcdir$ac_dir_suffix;
1731 ac_top_srcdir=$srcdir
1732 ac_abs_top_srcdir=$srcdir ;;
1733 *) # Relative name.
1734 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1735 ac_top_srcdir=$ac_top_build_prefix$srcdir
1736 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1737 esac
1738 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1739
1740 cd "$ac_dir" || { ac_status=$?; continue; }
1741 # Check for guested configure.
1742 if test -f "$ac_srcdir/configure.gnu"; then
1743 echo &&
1744 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1745 elif test -f "$ac_srcdir/configure"; then
1746 echo &&
1747 $SHELL "$ac_srcdir/configure" --help=recursive
1748 else
1749 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1750 fi || ac_status=$?
1751 cd "$ac_pwd" || { ac_status=$?; break; }
1752 done
1753 fi
1754
1755 test -n "$ac_init_help" && exit $ac_status
1756 if $ac_init_version; then
1757 cat <<\_ACEOF
1758 configure
1759 generated by GNU Autoconf 2.64
1760
1761 Copyright (C) 2009 Free Software Foundation, Inc.
1762 This configure script is free software; the Free Software Foundation
1763 gives unlimited permission to copy, distribute and modify it.
1764 _ACEOF
1765 exit
1766 fi
1767
1768 ## ------------------------ ##
1769 ## Autoconf initialization. ##
1770 ## ------------------------ ##
1771
1772 # ac_fn_c_try_compile LINENO
1773 # --------------------------
1774 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1775 ac_fn_c_try_compile ()
1776 {
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 rm -f conftest.$ac_objext
1779 if { { ac_try="$ac_compile"
1780 case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1783 esac
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_compile") 2>conftest.err
1787 ac_status=$?
1788 if test -s conftest.err; then
1789 grep -v '^ *+' conftest.err >conftest.er1
1790 cat conftest.er1 >&5
1791 mv -f conftest.er1 conftest.err
1792 fi
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; } && {
1795 test -z "$ac_c_werror_flag" ||
1796 test ! -s conftest.err
1797 } && test -s conftest.$ac_objext; then :
1798 ac_retval=0
1799 else
1800 $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.$ac_ext >&5
1802
1803 ac_retval=1
1804 fi
1805 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806 return $ac_retval
1807
1808 } # ac_fn_c_try_compile
1809
1810 # ac_fn_cxx_try_compile LINENO
1811 # ----------------------------
1812 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1813 ac_fn_cxx_try_compile ()
1814 {
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 rm -f conftest.$ac_objext
1817 if { { ac_try="$ac_compile"
1818 case "(($ac_try" in
1819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1820 *) ac_try_echo=$ac_try;;
1821 esac
1822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823 $as_echo "$ac_try_echo"; } >&5
1824 (eval "$ac_compile") 2>conftest.err
1825 ac_status=$?
1826 if test -s conftest.err; then
1827 grep -v '^ *+' conftest.err >conftest.er1
1828 cat conftest.er1 >&5
1829 mv -f conftest.er1 conftest.err
1830 fi
1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; } && {
1833 test -z "$ac_cxx_werror_flag" ||
1834 test ! -s conftest.err
1835 } && test -s conftest.$ac_objext; then :
1836 ac_retval=0
1837 else
1838 $as_echo "$as_me: failed program was:" >&5
1839 sed 's/^/| /' conftest.$ac_ext >&5
1840
1841 ac_retval=1
1842 fi
1843 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1844 return $ac_retval
1845
1846 } # ac_fn_cxx_try_compile
1847
1848 # ac_fn_c_try_cpp LINENO
1849 # ----------------------
1850 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1851 ac_fn_c_try_cpp ()
1852 {
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 if { { ac_try="$ac_cpp conftest.$ac_ext"
1855 case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858 esac
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1862 ac_status=$?
1863 if test -s conftest.err; then
1864 grep -v '^ *+' conftest.err >conftest.er1
1865 cat conftest.er1 >&5
1866 mv -f conftest.er1 conftest.err
1867 fi
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } >/dev/null && {
1870 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1871 test ! -s conftest.err
1872 }; then :
1873 ac_retval=0
1874 else
1875 $as_echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.$ac_ext >&5
1877
1878 ac_retval=1
1879 fi
1880 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1881 return $ac_retval
1882
1883 } # ac_fn_c_try_cpp
1884
1885 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1886 # -------------------------------------------------------
1887 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1888 # the include files in INCLUDES and setting the cache variable VAR
1889 # accordingly.
1890 ac_fn_c_check_header_mongrel ()
1891 {
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895 $as_echo_n "checking for $2... " >&6; }
1896 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1897 $as_echo_n "(cached) " >&6
1898 fi
1899 eval ac_res=\$$3
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 $as_echo "$ac_res" >&6; }
1902 else
1903 # Is the header compilable?
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1905 $as_echo_n "checking $2 usability... " >&6; }
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1908 $4
1909 #include <$2>
1910 _ACEOF
1911 if ac_fn_c_try_compile "$LINENO"; then :
1912 ac_header_compiler=yes
1913 else
1914 ac_header_compiler=no
1915 fi
1916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1918 $as_echo "$ac_header_compiler" >&6; }
1919
1920 # Is the header present?
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1922 $as_echo_n "checking $2 presence... " >&6; }
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1925 #include <$2>
1926 _ACEOF
1927 if ac_fn_c_try_cpp "$LINENO"; then :
1928 ac_header_preproc=yes
1929 else
1930 ac_header_preproc=no
1931 fi
1932 rm -f conftest.err conftest.$ac_ext
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1934 $as_echo "$ac_header_preproc" >&6; }
1935
1936 # So? What about this header?
1937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1938 yes:no: )
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1940 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1942 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1943 ;;
1944 no:yes:* )
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1946 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1948 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1950 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1952 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1954 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1955 ;;
1956 esac
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958 $as_echo_n "checking for $2... " >&6; }
1959 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1960 $as_echo_n "(cached) " >&6
1961 else
1962 eval "$3=\$ac_header_compiler"
1963 fi
1964 eval ac_res=\$$3
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966 $as_echo "$ac_res" >&6; }
1967 fi
1968 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1969
1970 } # ac_fn_c_check_header_mongrel
1971
1972 # ac_fn_c_try_run LINENO
1973 # ----------------------
1974 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1975 # that executables *can* be run.
1976 ac_fn_c_try_run ()
1977 {
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 if { { ac_try="$ac_link"
1980 case "(($ac_try" in
1981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982 *) ac_try_echo=$ac_try;;
1983 esac
1984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985 $as_echo "$ac_try_echo"; } >&5
1986 (eval "$ac_link") 2>&5
1987 ac_status=$?
1988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1990 { { case "(($ac_try" in
1991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992 *) ac_try_echo=$ac_try;;
1993 esac
1994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995 $as_echo "$ac_try_echo"; } >&5
1996 (eval "$ac_try") 2>&5
1997 ac_status=$?
1998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999 test $ac_status = 0; }; }; then :
2000 ac_retval=0
2001 else
2002 $as_echo "$as_me: program exited with status $ac_status" >&5
2003 $as_echo "$as_me: failed program was:" >&5
2004 sed 's/^/| /' conftest.$ac_ext >&5
2005
2006 ac_retval=$ac_status
2007 fi
2008 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2009 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2010 return $ac_retval
2011
2012 } # ac_fn_c_try_run
2013
2014 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2015 # -------------------------------------------------------
2016 # Tests whether HEADER exists and can be compiled using the include files in
2017 # INCLUDES, setting the cache variable VAR accordingly.
2018 ac_fn_c_check_header_compile ()
2019 {
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2024 $as_echo_n "(cached) " >&6
2025 else
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2028 $4
2029 #include <$2>
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032 eval "$3=yes"
2033 else
2034 eval "$3=no"
2035 fi
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 fi
2038 eval ac_res=\$$3
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2041 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2042
2043 } # ac_fn_c_check_header_compile
2044
2045 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2046 # --------------------------------------------
2047 # Tries to find the compile-time value of EXPR in a program that includes
2048 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2049 # computed
2050 ac_fn_c_compute_int ()
2051 {
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 if test "$cross_compiling" = yes; then
2054 # Depending upon the size, compute the lo and hi bounds.
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2057 $4
2058 int
2059 main ()
2060 {
2061 static int test_array [1 - 2 * !(($2) >= 0)];
2062 test_array [0] = 0
2063
2064 ;
2065 return 0;
2066 }
2067 _ACEOF
2068 if ac_fn_c_try_compile "$LINENO"; then :
2069 ac_lo=0 ac_mid=0
2070 while :; do
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2073 $4
2074 int
2075 main ()
2076 {
2077 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2078 test_array [0] = 0
2079
2080 ;
2081 return 0;
2082 }
2083 _ACEOF
2084 if ac_fn_c_try_compile "$LINENO"; then :
2085 ac_hi=$ac_mid; break
2086 else
2087 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2088 if test $ac_lo -le $ac_mid; then
2089 ac_lo= ac_hi=
2090 break
2091 fi
2092 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2093 fi
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 done
2096 else
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2099 $4
2100 int
2101 main ()
2102 {
2103 static int test_array [1 - 2 * !(($2) < 0)];
2104 test_array [0] = 0
2105
2106 ;
2107 return 0;
2108 }
2109 _ACEOF
2110 if ac_fn_c_try_compile "$LINENO"; then :
2111 ac_hi=-1 ac_mid=-1
2112 while :; do
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2115 $4
2116 int
2117 main ()
2118 {
2119 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2120 test_array [0] = 0
2121
2122 ;
2123 return 0;
2124 }
2125 _ACEOF
2126 if ac_fn_c_try_compile "$LINENO"; then :
2127 ac_lo=$ac_mid; break
2128 else
2129 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2130 if test $ac_mid -le $ac_hi; then
2131 ac_lo= ac_hi=
2132 break
2133 fi
2134 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2135 fi
2136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2137 done
2138 else
2139 ac_lo= ac_hi=
2140 fi
2141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2142 fi
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 # Binary search between lo and hi bounds.
2145 while test "x$ac_lo" != "x$ac_hi"; do
2146 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2149 $4
2150 int
2151 main ()
2152 {
2153 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2154 test_array [0] = 0
2155
2156 ;
2157 return 0;
2158 }
2159 _ACEOF
2160 if ac_fn_c_try_compile "$LINENO"; then :
2161 ac_hi=$ac_mid
2162 else
2163 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2164 fi
2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 done
2167 case $ac_lo in #((
2168 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2169 '') ac_retval=1 ;;
2170 esac
2171 else
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2174 $4
2175 static long int longval () { return $2; }
2176 static unsigned long int ulongval () { return $2; }
2177 #include <stdio.h>
2178 #include <stdlib.h>
2179 int
2180 main ()
2181 {
2182
2183 FILE *f = fopen ("conftest.val", "w");
2184 if (! f)
2185 return 1;
2186 if (($2) < 0)
2187 {
2188 long int i = longval ();
2189 if (i != ($2))
2190 return 1;
2191 fprintf (f, "%ld", i);
2192 }
2193 else
2194 {
2195 unsigned long int i = ulongval ();
2196 if (i != ($2))
2197 return 1;
2198 fprintf (f, "%lu", i);
2199 }
2200 /* Do not output a trailing newline, as this causes \r\n confusion
2201 on some platforms. */
2202 return ferror (f) || fclose (f) != 0;
2203
2204 ;
2205 return 0;
2206 }
2207 _ACEOF
2208 if ac_fn_c_try_run "$LINENO"; then :
2209 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2210 else
2211 ac_retval=1
2212 fi
2213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2214 conftest.$ac_objext conftest.beam conftest.$ac_ext
2215 rm -f conftest.val
2216
2217 fi
2218 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2219 return $ac_retval
2220
2221 } # ac_fn_c_compute_int
2222
2223 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2224 # -------------------------------------------
2225 # Tests whether TYPE exists after having included INCLUDES, setting cache
2226 # variable VAR accordingly.
2227 ac_fn_c_check_type ()
2228 {
2229 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2231 $as_echo_n "checking for $2... " >&6; }
2232 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2233 $as_echo_n "(cached) " >&6
2234 else
2235 eval "$3=no"
2236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h. */
2238 $4
2239 int
2240 main ()
2241 {
2242 if (sizeof ($2))
2243 return 0;
2244 ;
2245 return 0;
2246 }
2247 _ACEOF
2248 if ac_fn_c_try_compile "$LINENO"; then :
2249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h. */
2251 $4
2252 int
2253 main ()
2254 {
2255 if (sizeof (($2)))
2256 return 0;
2257 ;
2258 return 0;
2259 }
2260 _ACEOF
2261 if ac_fn_c_try_compile "$LINENO"; then :
2262
2263 else
2264 eval "$3=yes"
2265 fi
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 fi
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269 fi
2270 eval ac_res=\$$3
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2272 $as_echo "$ac_res" >&6; }
2273 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2274
2275 } # ac_fn_c_check_type
2276
2277 # ac_fn_c_find_intX_t LINENO BITS VAR
2278 # -----------------------------------
2279 # Finds a signed integer type with width BITS, setting cache variable VAR
2280 # accordingly.
2281 ac_fn_c_find_intX_t ()
2282 {
2283 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2285 $as_echo_n "checking for int$2_t... " >&6; }
2286 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2287 $as_echo_n "(cached) " >&6
2288 else
2289 eval "$3=no"
2290 for ac_type in int$2_t 'int' 'long int' \
2291 'long long int' 'short int' 'signed char'; do
2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h. */
2294 $ac_includes_default
2295 int
2296 main ()
2297 {
2298 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2299 test_array [0] = 0
2300
2301 ;
2302 return 0;
2303 }
2304 _ACEOF
2305 if ac_fn_c_try_compile "$LINENO"; then :
2306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307 /* end confdefs.h. */
2308 $ac_includes_default
2309 int
2310 main ()
2311 {
2312 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2313 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2314 test_array [0] = 0
2315
2316 ;
2317 return 0;
2318 }
2319 _ACEOF
2320 if ac_fn_c_try_compile "$LINENO"; then :
2321
2322 else
2323 case $ac_type in #(
2324 int$2_t) :
2325 eval "$3=yes" ;; #(
2326 *) :
2327 eval "$3=\$ac_type" ;;
2328 esac
2329 fi
2330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2331 fi
2332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333 eval as_val=\$$3
2334 if test "x$as_val" = x""no; then :
2335
2336 else
2337 break
2338 fi
2339 done
2340 fi
2341 eval ac_res=\$$3
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2343 $as_echo "$ac_res" >&6; }
2344 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2345
2346 } # ac_fn_c_find_intX_t
2347
2348 # ac_fn_c_try_link LINENO
2349 # -----------------------
2350 # Try to link conftest.$ac_ext, and return whether this succeeded.
2351 ac_fn_c_try_link ()
2352 {
2353 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2354 rm -f conftest.$ac_objext conftest$ac_exeext
2355 if { { ac_try="$ac_link"
2356 case "(($ac_try" in
2357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2358 *) ac_try_echo=$ac_try;;
2359 esac
2360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2361 $as_echo "$ac_try_echo"; } >&5
2362 (eval "$ac_link") 2>conftest.err
2363 ac_status=$?
2364 if test -s conftest.err; then
2365 grep -v '^ *+' conftest.err >conftest.er1
2366 cat conftest.er1 >&5
2367 mv -f conftest.er1 conftest.err
2368 fi
2369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2370 test $ac_status = 0; } && {
2371 test -z "$ac_c_werror_flag" ||
2372 test ! -s conftest.err
2373 } && test -s conftest$ac_exeext && {
2374 test "$cross_compiling" = yes ||
2375 $as_test_x conftest$ac_exeext
2376 }; then :
2377 ac_retval=0
2378 else
2379 $as_echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2381
2382 ac_retval=1
2383 fi
2384 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2385 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2386 # interfere with the next link command; also delete a directory that is
2387 # left behind by Apple's compiler. We do this before executing the actions.
2388 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2389 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2390 return $ac_retval
2391
2392 } # ac_fn_c_try_link
2393
2394 # ac_fn_c_find_uintX_t LINENO BITS VAR
2395 # ------------------------------------
2396 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2397 # accordingly.
2398 ac_fn_c_find_uintX_t ()
2399 {
2400 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2402 $as_echo_n "checking for uint$2_t... " >&6; }
2403 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2404 $as_echo_n "(cached) " >&6
2405 else
2406 eval "$3=no"
2407 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2408 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2410 /* end confdefs.h. */
2411 $ac_includes_default
2412 int
2413 main ()
2414 {
2415 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2416 test_array [0] = 0
2417
2418 ;
2419 return 0;
2420 }
2421 _ACEOF
2422 if ac_fn_c_try_compile "$LINENO"; then :
2423 case $ac_type in #(
2424 uint$2_t) :
2425 eval "$3=yes" ;; #(
2426 *) :
2427 eval "$3=\$ac_type" ;;
2428 esac
2429 fi
2430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2431 eval as_val=\$$3
2432 if test "x$as_val" = x""no; then :
2433
2434 else
2435 break
2436 fi
2437 done
2438 fi
2439 eval ac_res=\$$3
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2441 $as_echo "$ac_res" >&6; }
2442 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2443
2444 } # ac_fn_c_find_uintX_t
2445
2446 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2447 # ----------------------------------------------
2448 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2449 ac_fn_c_check_header_preproc ()
2450 {
2451 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2453 $as_echo_n "checking for $2... " >&6; }
2454 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2455 $as_echo_n "(cached) " >&6
2456 else
2457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2458 /* end confdefs.h. */
2459 #include <$2>
2460 _ACEOF
2461 if ac_fn_c_try_cpp "$LINENO"; then :
2462 eval "$3=yes"
2463 else
2464 eval "$3=no"
2465 fi
2466 rm -f conftest.err conftest.$ac_ext
2467 fi
2468 eval ac_res=\$$3
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2470 $as_echo "$ac_res" >&6; }
2471 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2472
2473 } # ac_fn_c_check_header_preproc
2474
2475 # ac_fn_cxx_try_cpp LINENO
2476 # ------------------------
2477 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2478 ac_fn_cxx_try_cpp ()
2479 {
2480 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2481 if { { ac_try="$ac_cpp conftest.$ac_ext"
2482 case "(($ac_try" in
2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484 *) ac_try_echo=$ac_try;;
2485 esac
2486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2487 $as_echo "$ac_try_echo"; } >&5
2488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2489 ac_status=$?
2490 if test -s conftest.err; then
2491 grep -v '^ *+' conftest.err >conftest.er1
2492 cat conftest.er1 >&5
2493 mv -f conftest.er1 conftest.err
2494 fi
2495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2496 test $ac_status = 0; } >/dev/null && {
2497 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2498 test ! -s conftest.err
2499 }; then :
2500 ac_retval=0
2501 else
2502 $as_echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.$ac_ext >&5
2504
2505 ac_retval=1
2506 fi
2507 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2508 return $ac_retval
2509
2510 } # ac_fn_cxx_try_cpp
2511
2512 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2513 # ------------------------------------------------
2514 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2515 ac_fn_cxx_check_header_preproc ()
2516 {
2517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2519 $as_echo_n "checking for $2... " >&6; }
2520 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2521 $as_echo_n "(cached) " >&6
2522 else
2523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2524 /* end confdefs.h. */
2525 #include <$2>
2526 _ACEOF
2527 if ac_fn_cxx_try_cpp "$LINENO"; then :
2528 eval "$3=yes"
2529 else
2530 eval "$3=no"
2531 fi
2532 rm -f conftest.err conftest.$ac_ext
2533 fi
2534 eval ac_res=\$$3
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2536 $as_echo "$ac_res" >&6; }
2537 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2538
2539 } # ac_fn_cxx_check_header_preproc
2540
2541 # ac_fn_c_check_func LINENO FUNC VAR
2542 # ----------------------------------
2543 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2544 ac_fn_c_check_func ()
2545 {
2546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2548 $as_echo_n "checking for $2... " >&6; }
2549 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2550 $as_echo_n "(cached) " >&6
2551 else
2552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2553 /* end confdefs.h. */
2554 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2556 #define $2 innocuous_$2
2557
2558 /* System header to define __stub macros and hopefully few prototypes,
2559 which can conflict with char $2 (); below.
2560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2561 <limits.h> exists even on freestanding compilers. */
2562
2563 #ifdef __STDC__
2564 # include <limits.h>
2565 #else
2566 # include <assert.h>
2567 #endif
2568
2569 #undef $2
2570
2571 /* Override any GCC internal prototype to avoid an error.
2572 Use char because int might match the return type of a GCC
2573 builtin and then its argument prototype would still apply. */
2574 #ifdef __cplusplus
2575 extern "C"
2576 #endif
2577 char $2 ();
2578 /* The GNU C library defines this for functions which it implements
2579 to always fail with ENOSYS. Some functions are actually named
2580 something starting with __ and the normal name is an alias. */
2581 #if defined __stub_$2 || defined __stub___$2
2582 choke me
2583 #endif
2584
2585 int
2586 main ()
2587 {
2588 return $2 ();
2589 ;
2590 return 0;
2591 }
2592 _ACEOF
2593 if ac_fn_c_try_link "$LINENO"; then :
2594 eval "$3=yes"
2595 else
2596 eval "$3=no"
2597 fi
2598 rm -f core conftest.err conftest.$ac_objext \
2599 conftest$ac_exeext conftest.$ac_ext
2600 fi
2601 eval ac_res=\$$3
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2603 $as_echo "$ac_res" >&6; }
2604 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2605
2606 } # ac_fn_c_check_func
2607
2608 # ac_fn_cxx_try_link LINENO
2609 # -------------------------
2610 # Try to link conftest.$ac_ext, and return whether this succeeded.
2611 ac_fn_cxx_try_link ()
2612 {
2613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2614 rm -f conftest.$ac_objext conftest$ac_exeext
2615 if { { ac_try="$ac_link"
2616 case "(($ac_try" in
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2619 esac
2620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2621 $as_echo "$ac_try_echo"; } >&5
2622 (eval "$ac_link") 2>conftest.err
2623 ac_status=$?
2624 if test -s conftest.err; then
2625 grep -v '^ *+' conftest.err >conftest.er1
2626 cat conftest.er1 >&5
2627 mv -f conftest.er1 conftest.err
2628 fi
2629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2630 test $ac_status = 0; } && {
2631 test -z "$ac_cxx_werror_flag" ||
2632 test ! -s conftest.err
2633 } && test -s conftest$ac_exeext && {
2634 test "$cross_compiling" = yes ||
2635 $as_test_x conftest$ac_exeext
2636 }; then :
2637 ac_retval=0
2638 else
2639 $as_echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2641
2642 ac_retval=1
2643 fi
2644 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2645 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2646 # interfere with the next link command; also delete a directory that is
2647 # left behind by Apple's compiler. We do this before executing the actions.
2648 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2649 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2650 return $ac_retval
2651
2652 } # ac_fn_cxx_try_link
2653 cat >config.log <<_ACEOF
2654 This file contains any messages produced by compilers while
2655 running configure, to aid debugging if configure makes a mistake.
2656
2657 It was created by $as_me, which was
2658 generated by GNU Autoconf 2.64. Invocation command line was
2659
2660 $ $0 $@
2661
2662 _ACEOF
2663 exec 5>>config.log
2664 {
2665 cat <<_ASUNAME
2666 ## --------- ##
2667 ## Platform. ##
2668 ## --------- ##
2669
2670 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2671 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2672 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2673 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2674 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2675
2676 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2677 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2678
2679 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2680 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2681 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2682 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2683 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2684 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2685 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2686
2687 _ASUNAME
2688
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 for as_dir in $PATH
2691 do
2692 IFS=$as_save_IFS
2693 test -z "$as_dir" && as_dir=.
2694 $as_echo "PATH: $as_dir"
2695 done
2696 IFS=$as_save_IFS
2697
2698 } >&5
2699
2700 cat >&5 <<_ACEOF
2701
2702
2703 ## ----------- ##
2704 ## Core tests. ##
2705 ## ----------- ##
2706
2707 _ACEOF
2708
2709
2710 # Keep a trace of the command line.
2711 # Strip out --no-create and --no-recursion so they do not pile up.
2712 # Strip out --silent because we don't want to record it for future runs.
2713 # Also quote any args containing shell meta-characters.
2714 # Make two passes to allow for proper duplicate-argument suppression.
2715 ac_configure_args=
2716 ac_configure_args0=
2717 ac_configure_args1=
2718 ac_must_keep_next=false
2719 for ac_pass in 1 2
2720 do
2721 for ac_arg
2722 do
2723 case $ac_arg in
2724 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2725 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2726 | -silent | --silent | --silen | --sile | --sil)
2727 continue ;;
2728 *\'*)
2729 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2730 esac
2731 case $ac_pass in
2732 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2733 2)
2734 as_fn_append ac_configure_args1 " '$ac_arg'"
2735 if test $ac_must_keep_next = true; then
2736 ac_must_keep_next=false # Got value, back to normal.
2737 else
2738 case $ac_arg in
2739 *=* | --config-cache | -C | -disable-* | --disable-* \
2740 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2741 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2742 | -with-* | --with-* | -without-* | --without-* | --x)
2743 case "$ac_configure_args0 " in
2744 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2745 esac
2746 ;;
2747 -* ) ac_must_keep_next=true ;;
2748 esac
2749 fi
2750 as_fn_append ac_configure_args " '$ac_arg'"
2751 ;;
2752 esac
2753 done
2754 done
2755 { ac_configure_args0=; unset ac_configure_args0;}
2756 { ac_configure_args1=; unset ac_configure_args1;}
2757
2758 # When interrupted or exit'd, cleanup temporary files, and complete
2759 # config.log. We remove comments because anyway the quotes in there
2760 # would cause problems or look ugly.
2761 # WARNING: Use '\'' to represent an apostrophe within the trap.
2762 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2763 trap 'exit_status=$?
2764 # Save into config.log some information that might help in debugging.
2765 {
2766 echo
2767
2768 cat <<\_ASBOX
2769 ## ---------------- ##
2770 ## Cache variables. ##
2771 ## ---------------- ##
2772 _ASBOX
2773 echo
2774 # The following way of writing the cache mishandles newlines in values,
2775 (
2776 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2777 eval ac_val=\$$ac_var
2778 case $ac_val in #(
2779 *${as_nl}*)
2780 case $ac_var in #(
2781 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2782 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2783 esac
2784 case $ac_var in #(
2785 _ | IFS | as_nl) ;; #(
2786 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2787 *) { eval $ac_var=; unset $ac_var;} ;;
2788 esac ;;
2789 esac
2790 done
2791 (set) 2>&1 |
2792 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2793 *${as_nl}ac_space=\ *)
2794 sed -n \
2795 "s/'\''/'\''\\\\'\'''\''/g;
2796 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2797 ;; #(
2798 *)
2799 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2800 ;;
2801 esac |
2802 sort
2803 )
2804 echo
2805
2806 cat <<\_ASBOX
2807 ## ----------------- ##
2808 ## Output variables. ##
2809 ## ----------------- ##
2810 _ASBOX
2811 echo
2812 for ac_var in $ac_subst_vars
2813 do
2814 eval ac_val=\$$ac_var
2815 case $ac_val in
2816 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2817 esac
2818 $as_echo "$ac_var='\''$ac_val'\''"
2819 done | sort
2820 echo
2821
2822 if test -n "$ac_subst_files"; then
2823 cat <<\_ASBOX
2824 ## ------------------- ##
2825 ## File substitutions. ##
2826 ## ------------------- ##
2827 _ASBOX
2828 echo
2829 for ac_var in $ac_subst_files
2830 do
2831 eval ac_val=\$$ac_var
2832 case $ac_val in
2833 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2834 esac
2835 $as_echo "$ac_var='\''$ac_val'\''"
2836 done | sort
2837 echo
2838 fi
2839
2840 if test -s confdefs.h; then
2841 cat <<\_ASBOX
2842 ## ----------- ##
2843 ## confdefs.h. ##
2844 ## ----------- ##
2845 _ASBOX
2846 echo
2847 cat confdefs.h
2848 echo
2849 fi
2850 test "$ac_signal" != 0 &&
2851 $as_echo "$as_me: caught signal $ac_signal"
2852 $as_echo "$as_me: exit $exit_status"
2853 } >&5
2854 rm -f core *.core core.conftest.* &&
2855 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2856 exit $exit_status
2857 ' 0
2858 for ac_signal in 1 2 13 15; do
2859 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2860 done
2861 ac_signal=0
2862
2863 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2864 rm -f -r conftest* confdefs.h
2865
2866 $as_echo "/* confdefs.h */" > confdefs.h
2867
2868 # Predefined preprocessor variables.
2869
2870 cat >>confdefs.h <<_ACEOF
2871 #define PACKAGE_NAME "$PACKAGE_NAME"
2872 _ACEOF
2873
2874 cat >>confdefs.h <<_ACEOF
2875 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2876 _ACEOF
2877
2878 cat >>confdefs.h <<_ACEOF
2879 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2880 _ACEOF
2881
2882 cat >>confdefs.h <<_ACEOF
2883 #define PACKAGE_STRING "$PACKAGE_STRING"
2884 _ACEOF
2885
2886 cat >>confdefs.h <<_ACEOF
2887 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2888 _ACEOF
2889
2890 cat >>confdefs.h <<_ACEOF
2891 #define PACKAGE_URL "$PACKAGE_URL"
2892 _ACEOF
2893
2894
2895 # Let the site file select an alternate cache file if it wants to.
2896 # Prefer an explicitly selected file to automatically selected ones.
2897 ac_site_file1=NONE
2898 ac_site_file2=NONE
2899 if test -n "$CONFIG_SITE"; then
2900 ac_site_file1=$CONFIG_SITE
2901 elif test "x$prefix" != xNONE; then
2902 ac_site_file1=$prefix/share/config.site
2903 ac_site_file2=$prefix/etc/config.site
2904 else
2905 ac_site_file1=$ac_default_prefix/share/config.site
2906 ac_site_file2=$ac_default_prefix/etc/config.site
2907 fi
2908 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2909 do
2910 test "x$ac_site_file" = xNONE && continue
2911 if test -r "$ac_site_file"; then
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2913 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2914 sed 's/^/| /' "$ac_site_file" >&5
2915 . "$ac_site_file"
2916 fi
2917 done
2918
2919 if test -r "$cache_file"; then
2920 # Some versions of bash will fail to source /dev/null (special
2921 # files actually), so we avoid doing that.
2922 if test -f "$cache_file"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2924 $as_echo "$as_me: loading cache $cache_file" >&6;}
2925 case $cache_file in
2926 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2927 *) . "./$cache_file";;
2928 esac
2929 fi
2930 else
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2932 $as_echo "$as_me: creating cache $cache_file" >&6;}
2933 >$cache_file
2934 fi
2935
2936 # Check that the precious variables saved in the cache have kept the same
2937 # value.
2938 ac_cache_corrupted=false
2939 for ac_var in $ac_precious_vars; do
2940 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2941 eval ac_new_set=\$ac_env_${ac_var}_set
2942 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2943 eval ac_new_val=\$ac_env_${ac_var}_value
2944 case $ac_old_set,$ac_new_set in
2945 set,)
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2947 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2948 ac_cache_corrupted=: ;;
2949 ,set)
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2951 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2952 ac_cache_corrupted=: ;;
2953 ,);;
2954 *)
2955 if test "x$ac_old_val" != "x$ac_new_val"; then
2956 # differences in whitespace do not lead to failure.
2957 ac_old_val_w=`echo x $ac_old_val`
2958 ac_new_val_w=`echo x $ac_new_val`
2959 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2961 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2962 ac_cache_corrupted=:
2963 else
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2965 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2966 eval $ac_var=\$ac_old_val
2967 fi
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2969 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2971 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2972 fi;;
2973 esac
2974 # Pass precious variables to config.status.
2975 if test "$ac_new_set" = set; then
2976 case $ac_new_val in
2977 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2978 *) ac_arg=$ac_var=$ac_new_val ;;
2979 esac
2980 case " $ac_configure_args " in
2981 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2982 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2983 esac
2984 fi
2985 done
2986 if $ac_cache_corrupted; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2990 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2991 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2992 fi
2993 ## -------------------- ##
2994 ## Main body of script. ##
2995 ## -------------------- ##
2996
2997 ac_ext=c
2998 ac_cpp='$CPP $CPPFLAGS'
2999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3002
3003
3004
3005
3006
3007
3008 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3009
3010
3011 gcc_version=`cat $srcdir/BASE-VER`
3012
3013 # Determine the host, build, and target systems
3014 ac_aux_dir=
3015 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3016 for ac_t in install-sh install.sh shtool; do
3017 if test -f "$ac_dir/$ac_t"; then
3018 ac_aux_dir=$ac_dir
3019 ac_install_sh="$ac_aux_dir/$ac_t -c"
3020 break 2
3021 fi
3022 done
3023 done
3024 if test -z "$ac_aux_dir"; then
3025 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3026 fi
3027
3028 # These three variables are undocumented and unsupported,
3029 # and are intended to be withdrawn in a future Autoconf release.
3030 # They can cause serious problems if a builder's source tree is in a directory
3031 # whose full name contains unusual characters.
3032 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3033 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3034 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3035
3036
3037 # Make sure we can run config.sub.
3038 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3039 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3040
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3042 $as_echo_n "checking build system type... " >&6; }
3043 if test "${ac_cv_build+set}" = set; then :
3044 $as_echo_n "(cached) " >&6
3045 else
3046 ac_build_alias=$build_alias
3047 test "x$ac_build_alias" = x &&
3048 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3049 test "x$ac_build_alias" = x &&
3050 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3051 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3052 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3053
3054 fi
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3056 $as_echo "$ac_cv_build" >&6; }
3057 case $ac_cv_build in
3058 *-*-*) ;;
3059 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3060 esac
3061 build=$ac_cv_build
3062 ac_save_IFS=$IFS; IFS='-'
3063 set x $ac_cv_build
3064 shift
3065 build_cpu=$1
3066 build_vendor=$2
3067 shift; shift
3068 # Remember, the first character of IFS is used to create $*,
3069 # except with old shells:
3070 build_os=$*
3071 IFS=$ac_save_IFS
3072 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3073
3074
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3076 $as_echo_n "checking host system type... " >&6; }
3077 if test "${ac_cv_host+set}" = set; then :
3078 $as_echo_n "(cached) " >&6
3079 else
3080 if test "x$host_alias" = x; then
3081 ac_cv_host=$ac_cv_build
3082 else
3083 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3084 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3085 fi
3086
3087 fi
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3089 $as_echo "$ac_cv_host" >&6; }
3090 case $ac_cv_host in
3091 *-*-*) ;;
3092 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3093 esac
3094 host=$ac_cv_host
3095 ac_save_IFS=$IFS; IFS='-'
3096 set x $ac_cv_host
3097 shift
3098 host_cpu=$1
3099 host_vendor=$2
3100 shift; shift
3101 # Remember, the first character of IFS is used to create $*,
3102 # except with old shells:
3103 host_os=$*
3104 IFS=$ac_save_IFS
3105 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3106
3107
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3109 $as_echo_n "checking target system type... " >&6; }
3110 if test "${ac_cv_target+set}" = set; then :
3111 $as_echo_n "(cached) " >&6
3112 else
3113 if test "x$target_alias" = x; then
3114 ac_cv_target=$ac_cv_host
3115 else
3116 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3117 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3118 fi
3119
3120 fi
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3122 $as_echo "$ac_cv_target" >&6; }
3123 case $ac_cv_target in
3124 *-*-*) ;;
3125 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3126 esac
3127 target=$ac_cv_target
3128 ac_save_IFS=$IFS; IFS='-'
3129 set x $ac_cv_target
3130 shift
3131 target_cpu=$1
3132 target_vendor=$2
3133 shift; shift
3134 # Remember, the first character of IFS is used to create $*,
3135 # except with old shells:
3136 target_os=$*
3137 IFS=$ac_save_IFS
3138 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3139
3140
3141 # The aliases save the names the user supplied, while $host etc.
3142 # will get canonicalized.
3143 test -n "$target_alias" &&
3144 test "$program_prefix$program_suffix$program_transform_name" = \
3145 NONENONEs,x,x, &&
3146 program_prefix=${target_alias}-
3147
3148 # Determine the noncanonical target name, for directory use.
3149 case ${build_alias} in
3150 "") build_noncanonical=${build} ;;
3151 *) build_noncanonical=${build_alias} ;;
3152 esac
3153
3154 case ${host_alias} in
3155 "") host_noncanonical=${build_noncanonical} ;;
3156 *) host_noncanonical=${host_alias} ;;
3157 esac
3158
3159 case ${target_alias} in
3160 "") target_noncanonical=${host_noncanonical} ;;
3161 *) target_noncanonical=${target_alias} ;;
3162 esac
3163
3164
3165
3166
3167 # Determine the target- and build-specific subdirectories
3168
3169 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3170 # have matching libraries, they should use host libraries: Makefile.tpl
3171 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3172 # However, they still use the build modules, because the corresponding
3173 # host modules (e.g. bison) are only built for the host when bootstrap
3174 # finishes. So:
3175 # - build_subdir is where we find build modules, and never changes.
3176 # - build_libsubdir is where we find build libraries, and can be overridden.
3177
3178 # Prefix 'build-' so this never conflicts with target_subdir.
3179 build_subdir="build-${build_noncanonical}"
3180
3181 # Check whether --with-build-libsubdir was given.
3182 if test "${with_build_libsubdir+set}" = set; then :
3183 withval=$with_build_libsubdir; build_libsubdir="$withval"
3184 else
3185 build_libsubdir="$build_subdir"
3186 fi
3187
3188 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3189 if ( test $srcdir = . && test -d gcc ) \
3190 || test -d $srcdir/../host-${host_noncanonical}; then
3191 host_subdir="host-${host_noncanonical}"
3192 else
3193 host_subdir=.
3194 fi
3195 # No prefix.
3196 target_subdir=${target_noncanonical}
3197
3198
3199 # Set program_transform_name
3200 test "$program_prefix" != NONE &&
3201 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3202 # Use a double $ so make ignores it.
3203 test "$program_suffix" != NONE &&
3204 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3205 # Double any \ or $.
3206 # By default was `s,x,x', remove it if useless.
3207 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3208 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3209
3210
3211 # Check for bogus environment variables.
3212 # Test if LIBRARY_PATH contains the notation for the current directory
3213 # since this would lead to problems installing/building glibc.
3214 # LIBRARY_PATH contains the current directory if one of the following
3215 # is true:
3216 # - one of the terminals (":" and ";") is the first or last sign
3217 # - two terminals occur directly after each other
3218 # - the path contains an element with a dot in it
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3220 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3221 case ${LIBRARY_PATH} in
3222 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3223 library_path_setting="contains current directory"
3224 ;;
3225 *)
3226 library_path_setting="ok"
3227 ;;
3228 esac
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3230 $as_echo "$library_path_setting" >&6; }
3231 if test "$library_path_setting" != "ok"; then
3232 as_fn_error "
3233 *** LIBRARY_PATH shouldn't contain the current directory when
3234 *** building gcc. Please change the environment variable
3235 *** and run configure again." "$LINENO" 5
3236 fi
3237
3238 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3239 # since this would lead to problems installing/building glibc.
3240 # GCC_EXEC_PREFIX contains the current directory if one of the following
3241 # is true:
3242 # - one of the terminals (":" and ";") is the first or last sign
3243 # - two terminals occur directly after each other
3244 # - the path contains an element with a dot in it
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3246 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3247 case ${GCC_EXEC_PREFIX} in
3248 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3249 gcc_exec_prefix_setting="contains current directory"
3250 ;;
3251 *)
3252 gcc_exec_prefix_setting="ok"
3253 ;;
3254 esac
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3256 $as_echo "$gcc_exec_prefix_setting" >&6; }
3257 if test "$gcc_exec_prefix_setting" != "ok"; then
3258 as_fn_error "
3259 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3260 *** building gcc. Please change the environment variable
3261 *** and run configure again." "$LINENO" 5
3262 fi
3263
3264 # -----------
3265 # Directories
3266 # -----------
3267
3268 # Specify the local prefix
3269 local_prefix=
3270
3271 # Check whether --with-local-prefix was given.
3272 if test "${with_local_prefix+set}" = set; then :
3273 withval=$with_local_prefix; case "${withval}" in
3274 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3275 no) ;;
3276 *) local_prefix=$with_local_prefix ;;
3277 esac
3278 fi
3279
3280
3281 # Default local prefix if it is empty
3282 if test x$local_prefix = x; then
3283 local_prefix=/usr/local
3284 fi
3285
3286 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3287 # passed in by the toplevel make and thus we'd get different behavior
3288 # depending on where we built the sources.
3289 gcc_gxx_include_dir=
3290 # Specify the g++ header file directory
3291
3292 # Check whether --with-gxx-include-dir was given.
3293 if test "${with_gxx_include_dir+set}" = set; then :
3294 withval=$with_gxx_include_dir; case "${withval}" in
3295 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3296 no) ;;
3297 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3298 esac
3299 fi
3300
3301
3302 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3303 if test x${gcc_gxx_include_dir} = x; then
3304 if test x${enable_version_specific_runtime_libs} = xyes; then
3305 gcc_gxx_include_dir='${libsubdir}/include/c++'
3306 else
3307 libstdcxx_incdir='include/c++/$(version)'
3308 if test x$host != x$target; then
3309 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3310 fi
3311 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3312 fi
3313 fi
3314
3315
3316 # Check whether --with-cpp_install_dir was given.
3317 if test "${with_cpp_install_dir+set}" = set; then :
3318 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3319 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3320 elif test x$withval != xno; then
3321 cpp_install_dir=$withval
3322 fi
3323 fi
3324
3325
3326 # We would like to our source tree to be readonly. However when releases or
3327 # pre-releases are generated, the flex/bison generated files as well as the
3328 # various formats of manuals need to be included along with the rest of the
3329 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3330 # just that.
3331
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3333 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3334 # Check whether --enable-generated-files-in-srcdir was given.
3335 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3336 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3337 else
3338 generated_files_in_srcdir=no
3339 fi
3340
3341
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3343 $as_echo "$generated_files_in_srcdir" >&6; }
3344
3345 if test "$generated_files_in_srcdir" = "yes"; then
3346 GENINSRC=''
3347 else
3348 GENINSRC='#'
3349 fi
3350
3351
3352 # -------------------
3353 # Find default linker
3354 # -------------------
3355
3356 # With GNU ld
3357
3358 # Check whether --with-gnu-ld was given.
3359 if test "${with_gnu_ld+set}" = set; then :
3360 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3361 else
3362 gnu_ld_flag=no
3363 fi
3364
3365
3366 # With pre-defined ld
3367
3368 # Check whether --with-ld was given.
3369 if test "${with_ld+set}" = set; then :
3370 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3371 fi
3372
3373 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3374 if test ! -x "$DEFAULT_LINKER"; then
3375 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3376 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3377 gnu_ld_flag=yes
3378 fi
3379
3380 cat >>confdefs.h <<_ACEOF
3381 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3382 _ACEOF
3383
3384 fi
3385
3386 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3387
3388 cat >>confdefs.h <<_ACEOF
3389 #define HAVE_GNU_LD $gnu_ld
3390 _ACEOF
3391
3392
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3394 $as_echo_n "checking whether a default linker was specified... " >&6; }
3395 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3396 if test x"$gnu_ld_flag" = x"no"; then
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3398 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3399 else
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3401 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3402 fi
3403 else
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 $as_echo "no" >&6; }
3406 fi
3407
3408 # With demangler in GNU ld
3409
3410 # Check whether --with-demangler-in-ld was given.
3411 if test "${with_demangler_in_ld+set}" = set; then :
3412 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3413 else
3414 demangler_in_ld=yes
3415 fi
3416
3417
3418 # ----------------------
3419 # Find default assembler
3420 # ----------------------
3421
3422 # With GNU as
3423
3424 # Check whether --with-gnu-as was given.
3425 if test "${with_gnu_as+set}" = set; then :
3426 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3427 else
3428 gas_flag=no
3429 fi
3430
3431
3432
3433 # Check whether --with-as was given.
3434 if test "${with_as+set}" = set; then :
3435 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3436 fi
3437
3438 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3439 if test ! -x "$DEFAULT_ASSEMBLER"; then
3440 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3441 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3442 gas_flag=yes
3443 fi
3444
3445 cat >>confdefs.h <<_ACEOF
3446 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3447 _ACEOF
3448
3449 fi
3450
3451 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3452
3453 cat >>confdefs.h <<_ACEOF
3454 #define HAVE_GNU_AS $gnu_as
3455 _ACEOF
3456
3457
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3459 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3460 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3461 if test x"$gas_flag" = x"no"; then
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3463 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3464 else
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3466 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3467 fi
3468 else
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470 $as_echo "no" >&6; }
3471 fi
3472
3473 # ---------------
3474 # Find C compiler
3475 # ---------------
3476
3477 # If a non-executable a.out is present (e.g. created by GNU as above even if
3478 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3479 # file, even when creating an executable, so an execution test fails.
3480 # Remove possible default executable files to avoid this.
3481 #
3482 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3483 # Autoconf includes it.
3484 rm -f a.out a.exe b.out
3485
3486 # Find the native compiler
3487 ac_ext=c
3488 ac_cpp='$CPP $CPPFLAGS'
3489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3492 if test -n "$ac_tool_prefix"; then
3493 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3494 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496 $as_echo_n "checking for $ac_word... " >&6; }
3497 if test "${ac_cv_prog_CC+set}" = set; then :
3498 $as_echo_n "(cached) " >&6
3499 else
3500 if test -n "$CC"; then
3501 ac_cv_prog_CC="$CC" # Let the user override the test.
3502 else
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 for as_dir in $PATH
3505 do
3506 IFS=$as_save_IFS
3507 test -z "$as_dir" && as_dir=.
3508 for ac_exec_ext in '' $ac_executable_extensions; do
3509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3510 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3512 break 2
3513 fi
3514 done
3515 done
3516 IFS=$as_save_IFS
3517
3518 fi
3519 fi
3520 CC=$ac_cv_prog_CC
3521 if test -n "$CC"; then
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3523 $as_echo "$CC" >&6; }
3524 else
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3527 fi
3528
3529
3530 fi
3531 if test -z "$ac_cv_prog_CC"; then
3532 ac_ct_CC=$CC
3533 # Extract the first word of "gcc", so it can be a program name with args.
3534 set dummy gcc; ac_word=$2
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536 $as_echo_n "checking for $ac_word... " >&6; }
3537 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3538 $as_echo_n "(cached) " >&6
3539 else
3540 if test -n "$ac_ct_CC"; then
3541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3542 else
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 for as_dir in $PATH
3545 do
3546 IFS=$as_save_IFS
3547 test -z "$as_dir" && as_dir=.
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3550 ac_cv_prog_ac_ct_CC="gcc"
3551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3552 break 2
3553 fi
3554 done
3555 done
3556 IFS=$as_save_IFS
3557
3558 fi
3559 fi
3560 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3561 if test -n "$ac_ct_CC"; then
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3563 $as_echo "$ac_ct_CC" >&6; }
3564 else
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 $as_echo "no" >&6; }
3567 fi
3568
3569 if test "x$ac_ct_CC" = x; then
3570 CC=""
3571 else
3572 case $cross_compiling:$ac_tool_warned in
3573 yes:)
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3576 ac_tool_warned=yes ;;
3577 esac
3578 CC=$ac_ct_CC
3579 fi
3580 else
3581 CC="$ac_cv_prog_CC"
3582 fi
3583
3584 if test -z "$CC"; then
3585 if test -n "$ac_tool_prefix"; then
3586 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3587 set dummy ${ac_tool_prefix}cc; ac_word=$2
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589 $as_echo_n "checking for $ac_word... " >&6; }
3590 if test "${ac_cv_prog_CC+set}" = set; then :
3591 $as_echo_n "(cached) " >&6
3592 else
3593 if test -n "$CC"; then
3594 ac_cv_prog_CC="$CC" # Let the user override the test.
3595 else
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 for as_dir in $PATH
3598 do
3599 IFS=$as_save_IFS
3600 test -z "$as_dir" && as_dir=.
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3603 ac_cv_prog_CC="${ac_tool_prefix}cc"
3604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3605 break 2
3606 fi
3607 done
3608 done
3609 IFS=$as_save_IFS
3610
3611 fi
3612 fi
3613 CC=$ac_cv_prog_CC
3614 if test -n "$CC"; then
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3616 $as_echo "$CC" >&6; }
3617 else
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619 $as_echo "no" >&6; }
3620 fi
3621
3622
3623 fi
3624 fi
3625 if test -z "$CC"; then
3626 # Extract the first word of "cc", so it can be a program name with args.
3627 set dummy cc; ac_word=$2
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629 $as_echo_n "checking for $ac_word... " >&6; }
3630 if test "${ac_cv_prog_CC+set}" = set; then :
3631 $as_echo_n "(cached) " >&6
3632 else
3633 if test -n "$CC"; then
3634 ac_cv_prog_CC="$CC" # Let the user override the test.
3635 else
3636 ac_prog_rejected=no
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 for as_dir in $PATH
3639 do
3640 IFS=$as_save_IFS
3641 test -z "$as_dir" && as_dir=.
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3644 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3645 ac_prog_rejected=yes
3646 continue
3647 fi
3648 ac_cv_prog_CC="cc"
3649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3650 break 2
3651 fi
3652 done
3653 done
3654 IFS=$as_save_IFS
3655
3656 if test $ac_prog_rejected = yes; then
3657 # We found a bogon in the path, so make sure we never use it.
3658 set dummy $ac_cv_prog_CC
3659 shift
3660 if test $# != 0; then
3661 # We chose a different compiler from the bogus one.
3662 # However, it has the same basename, so the bogon will be chosen
3663 # first if we set CC to just the basename; use the full file name.
3664 shift
3665 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3666 fi
3667 fi
3668 fi
3669 fi
3670 CC=$ac_cv_prog_CC
3671 if test -n "$CC"; then
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3673 $as_echo "$CC" >&6; }
3674 else
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3676 $as_echo "no" >&6; }
3677 fi
3678
3679
3680 fi
3681 if test -z "$CC"; then
3682 if test -n "$ac_tool_prefix"; then
3683 for ac_prog in cl.exe
3684 do
3685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3686 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3688 $as_echo_n "checking for $ac_word... " >&6; }
3689 if test "${ac_cv_prog_CC+set}" = set; then :
3690 $as_echo_n "(cached) " >&6
3691 else
3692 if test -n "$CC"; then
3693 ac_cv_prog_CC="$CC" # Let the user override the test.
3694 else
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 for as_dir in $PATH
3697 do
3698 IFS=$as_save_IFS
3699 test -z "$as_dir" && as_dir=.
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3702 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3704 break 2
3705 fi
3706 done
3707 done
3708 IFS=$as_save_IFS
3709
3710 fi
3711 fi
3712 CC=$ac_cv_prog_CC
3713 if test -n "$CC"; then
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3715 $as_echo "$CC" >&6; }
3716 else
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718 $as_echo "no" >&6; }
3719 fi
3720
3721
3722 test -n "$CC" && break
3723 done
3724 fi
3725 if test -z "$CC"; then
3726 ac_ct_CC=$CC
3727 for ac_prog in cl.exe
3728 do
3729 # Extract the first word of "$ac_prog", so it can be a program name with args.
3730 set dummy $ac_prog; ac_word=$2
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3732 $as_echo_n "checking for $ac_word... " >&6; }
3733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3734 $as_echo_n "(cached) " >&6
3735 else
3736 if test -n "$ac_ct_CC"; then
3737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3738 else
3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740 for as_dir in $PATH
3741 do
3742 IFS=$as_save_IFS
3743 test -z "$as_dir" && as_dir=.
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3746 ac_cv_prog_ac_ct_CC="$ac_prog"
3747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3748 break 2
3749 fi
3750 done
3751 done
3752 IFS=$as_save_IFS
3753
3754 fi
3755 fi
3756 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3757 if test -n "$ac_ct_CC"; then
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3759 $as_echo "$ac_ct_CC" >&6; }
3760 else
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3762 $as_echo "no" >&6; }
3763 fi
3764
3765
3766 test -n "$ac_ct_CC" && break
3767 done
3768
3769 if test "x$ac_ct_CC" = x; then
3770 CC=""
3771 else
3772 case $cross_compiling:$ac_tool_warned in
3773 yes:)
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3776 ac_tool_warned=yes ;;
3777 esac
3778 CC=$ac_ct_CC
3779 fi
3780 fi
3781
3782 fi
3783
3784
3785 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3787 as_fn_error "no acceptable C compiler found in \$PATH
3788 See \`config.log' for more details." "$LINENO" 5; }
3789
3790 # Provide some information about the compiler.
3791 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3792 set X $ac_compile
3793 ac_compiler=$2
3794 for ac_option in --version -v -V -qversion; do
3795 { { ac_try="$ac_compiler $ac_option >&5"
3796 case "(($ac_try" in
3797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798 *) ac_try_echo=$ac_try;;
3799 esac
3800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3801 $as_echo "$ac_try_echo"; } >&5
3802 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3803 ac_status=$?
3804 if test -s conftest.err; then
3805 sed '10a\
3806 ... rest of stderr output deleted ...
3807 10q' conftest.err >conftest.er1
3808 cat conftest.er1 >&5
3809 rm -f conftest.er1 conftest.err
3810 fi
3811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3812 test $ac_status = 0; }
3813 done
3814
3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h. */
3817
3818 int
3819 main ()
3820 {
3821
3822 ;
3823 return 0;
3824 }
3825 _ACEOF
3826 ac_clean_files_save=$ac_clean_files
3827 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3828 # Try to create an executable without -o first, disregard a.out.
3829 # It will help us diagnose broken compilers, and finding out an intuition
3830 # of exeext.
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3832 $as_echo_n "checking for C compiler default output file name... " >&6; }
3833 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3834
3835 # The possible output files:
3836 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3837
3838 ac_rmfiles=
3839 for ac_file in $ac_files
3840 do
3841 case $ac_file in
3842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3843 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3844 esac
3845 done
3846 rm -f $ac_rmfiles
3847
3848 if { { ac_try="$ac_link_default"
3849 case "(($ac_try" in
3850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3851 *) ac_try_echo=$ac_try;;
3852 esac
3853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3854 $as_echo "$ac_try_echo"; } >&5
3855 (eval "$ac_link_default") 2>&5
3856 ac_status=$?
3857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3858 test $ac_status = 0; }; then :
3859 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3860 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3861 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3862 # so that the user can short-circuit this test for compilers unknown to
3863 # Autoconf.
3864 for ac_file in $ac_files ''
3865 do
3866 test -f "$ac_file" || continue
3867 case $ac_file in
3868 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3869 ;;
3870 [ab].out )
3871 # We found the default executable, but exeext='' is most
3872 # certainly right.
3873 break;;
3874 *.* )
3875 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3876 then :; else
3877 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3878 fi
3879 # We set ac_cv_exeext here because the later test for it is not
3880 # safe: cross compilers may not add the suffix if given an `-o'
3881 # argument, so we may need to know it at that point already.
3882 # Even if this section looks crufty: it has the advantage of
3883 # actually working.
3884 break;;
3885 * )
3886 break;;
3887 esac
3888 done
3889 test "$ac_cv_exeext" = no && ac_cv_exeext=
3890
3891 else
3892 ac_file=''
3893 fi
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3895 $as_echo "$ac_file" >&6; }
3896 if test -z "$ac_file"; then :
3897 $as_echo "$as_me: failed program was:" >&5
3898 sed 's/^/| /' conftest.$ac_ext >&5
3899
3900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3902 { as_fn_set_status 77
3903 as_fn_error "C compiler cannot create executables
3904 See \`config.log' for more details." "$LINENO" 5; }; }
3905 fi
3906 ac_exeext=$ac_cv_exeext
3907
3908 # Check that the compiler produces executables we can run. If not, either
3909 # the compiler is broken, or we cross compile.
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3911 $as_echo_n "checking whether the C compiler works... " >&6; }
3912 # If not cross compiling, check that we can run a simple program.
3913 if test "$cross_compiling" != yes; then
3914 if { ac_try='./$ac_file'
3915 { { case "(($ac_try" in
3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3918 esac
3919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3920 $as_echo "$ac_try_echo"; } >&5
3921 (eval "$ac_try") 2>&5
3922 ac_status=$?
3923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3924 test $ac_status = 0; }; }; then
3925 cross_compiling=no
3926 else
3927 if test "$cross_compiling" = maybe; then
3928 cross_compiling=yes
3929 else
3930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3932 as_fn_error "cannot run C compiled programs.
3933 If you meant to cross compile, use \`--host'.
3934 See \`config.log' for more details." "$LINENO" 5; }
3935 fi
3936 fi
3937 fi
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3939 $as_echo "yes" >&6; }
3940
3941 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3942 ac_clean_files=$ac_clean_files_save
3943 # Check that the compiler produces executables we can run. If not, either
3944 # the compiler is broken, or we cross compile.
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3946 $as_echo_n "checking whether we are cross compiling... " >&6; }
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3948 $as_echo "$cross_compiling" >&6; }
3949
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3951 $as_echo_n "checking for suffix of executables... " >&6; }
3952 if { { ac_try="$ac_link"
3953 case "(($ac_try" in
3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955 *) ac_try_echo=$ac_try;;
3956 esac
3957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3958 $as_echo "$ac_try_echo"; } >&5
3959 (eval "$ac_link") 2>&5
3960 ac_status=$?
3961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3962 test $ac_status = 0; }; then :
3963 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3964 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3965 # work properly (i.e., refer to `conftest.exe'), while it won't with
3966 # `rm'.
3967 for ac_file in conftest.exe conftest conftest.*; do
3968 test -f "$ac_file" || continue
3969 case $ac_file in
3970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3971 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3972 break;;
3973 * ) break;;
3974 esac
3975 done
3976 else
3977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3979 as_fn_error "cannot compute suffix of executables: cannot compile and link
3980 See \`config.log' for more details." "$LINENO" 5; }
3981 fi
3982 rm -f conftest$ac_cv_exeext
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3984 $as_echo "$ac_cv_exeext" >&6; }
3985
3986 rm -f conftest.$ac_ext
3987 EXEEXT=$ac_cv_exeext
3988 ac_exeext=$EXEEXT
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3990 $as_echo_n "checking for suffix of object files... " >&6; }
3991 if test "${ac_cv_objext+set}" = set; then :
3992 $as_echo_n "(cached) " >&6
3993 else
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
3996
3997 int
3998 main ()
3999 {
4000
4001 ;
4002 return 0;
4003 }
4004 _ACEOF
4005 rm -f conftest.o conftest.obj
4006 if { { ac_try="$ac_compile"
4007 case "(($ac_try" in
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4010 esac
4011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4012 $as_echo "$ac_try_echo"; } >&5
4013 (eval "$ac_compile") 2>&5
4014 ac_status=$?
4015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016 test $ac_status = 0; }; then :
4017 for ac_file in conftest.o conftest.obj conftest.*; do
4018 test -f "$ac_file" || continue;
4019 case $ac_file in
4020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4021 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4022 break;;
4023 esac
4024 done
4025 else
4026 $as_echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4028
4029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4031 as_fn_error "cannot compute suffix of object files: cannot compile
4032 See \`config.log' for more details." "$LINENO" 5; }
4033 fi
4034 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4035 fi
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4037 $as_echo "$ac_cv_objext" >&6; }
4038 OBJEXT=$ac_cv_objext
4039 ac_objext=$OBJEXT
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4041 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4042 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4043 $as_echo_n "(cached) " >&6
4044 else
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4047
4048 int
4049 main ()
4050 {
4051 #ifndef __GNUC__
4052 choke me
4053 #endif
4054
4055 ;
4056 return 0;
4057 }
4058 _ACEOF
4059 if ac_fn_c_try_compile "$LINENO"; then :
4060 ac_compiler_gnu=yes
4061 else
4062 ac_compiler_gnu=no
4063 fi
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4066
4067 fi
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4069 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4070 if test $ac_compiler_gnu = yes; then
4071 GCC=yes
4072 else
4073 GCC=
4074 fi
4075 ac_test_CFLAGS=${CFLAGS+set}
4076 ac_save_CFLAGS=$CFLAGS
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4078 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4079 if test "${ac_cv_prog_cc_g+set}" = set; then :
4080 $as_echo_n "(cached) " >&6
4081 else
4082 ac_save_c_werror_flag=$ac_c_werror_flag
4083 ac_c_werror_flag=yes
4084 ac_cv_prog_cc_g=no
4085 CFLAGS="-g"
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4088
4089 int
4090 main ()
4091 {
4092
4093 ;
4094 return 0;
4095 }
4096 _ACEOF
4097 if ac_fn_c_try_compile "$LINENO"; then :
4098 ac_cv_prog_cc_g=yes
4099 else
4100 CFLAGS=""
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4103
4104 int
4105 main ()
4106 {
4107
4108 ;
4109 return 0;
4110 }
4111 _ACEOF
4112 if ac_fn_c_try_compile "$LINENO"; then :
4113
4114 else
4115 ac_c_werror_flag=$ac_save_c_werror_flag
4116 CFLAGS="-g"
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4119
4120 int
4121 main ()
4122 {
4123
4124 ;
4125 return 0;
4126 }
4127 _ACEOF
4128 if ac_fn_c_try_compile "$LINENO"; then :
4129 ac_cv_prog_cc_g=yes
4130 fi
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132 fi
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 fi
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 ac_c_werror_flag=$ac_save_c_werror_flag
4137 fi
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4139 $as_echo "$ac_cv_prog_cc_g" >&6; }
4140 if test "$ac_test_CFLAGS" = set; then
4141 CFLAGS=$ac_save_CFLAGS
4142 elif test $ac_cv_prog_cc_g = yes; then
4143 if test "$GCC" = yes; then
4144 CFLAGS="-g -O2"
4145 else
4146 CFLAGS="-g"
4147 fi
4148 else
4149 if test "$GCC" = yes; then
4150 CFLAGS="-O2"
4151 else
4152 CFLAGS=
4153 fi
4154 fi
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4156 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4157 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4158 $as_echo_n "(cached) " >&6
4159 else
4160 ac_cv_prog_cc_c89=no
4161 ac_save_CC=$CC
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4164 #include <stdarg.h>
4165 #include <stdio.h>
4166 #include <sys/types.h>
4167 #include <sys/stat.h>
4168 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4169 struct buf { int x; };
4170 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4171 static char *e (p, i)
4172 char **p;
4173 int i;
4174 {
4175 return p[i];
4176 }
4177 static char *f (char * (*g) (char **, int), char **p, ...)
4178 {
4179 char *s;
4180 va_list v;
4181 va_start (v,p);
4182 s = g (p, va_arg (v,int));
4183 va_end (v);
4184 return s;
4185 }
4186
4187 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4188 function prototypes and stuff, but not '\xHH' hex character constants.
4189 These don't provoke an error unfortunately, instead are silently treated
4190 as 'x'. The following induces an error, until -std is added to get
4191 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4192 array size at least. It's necessary to write '\x00'==0 to get something
4193 that's true only with -std. */
4194 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4195
4196 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4197 inside strings and character constants. */
4198 #define FOO(x) 'x'
4199 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4200
4201 int test (int i, double x);
4202 struct s1 {int (*f) (int a);};
4203 struct s2 {int (*f) (double a);};
4204 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4205 int argc;
4206 char **argv;
4207 int
4208 main ()
4209 {
4210 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4211 ;
4212 return 0;
4213 }
4214 _ACEOF
4215 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4216 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4217 do
4218 CC="$ac_save_CC $ac_arg"
4219 if ac_fn_c_try_compile "$LINENO"; then :
4220 ac_cv_prog_cc_c89=$ac_arg
4221 fi
4222 rm -f core conftest.err conftest.$ac_objext
4223 test "x$ac_cv_prog_cc_c89" != "xno" && break
4224 done
4225 rm -f conftest.$ac_ext
4226 CC=$ac_save_CC
4227
4228 fi
4229 # AC_CACHE_VAL
4230 case "x$ac_cv_prog_cc_c89" in
4231 x)
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4233 $as_echo "none needed" >&6; } ;;
4234 xno)
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4236 $as_echo "unsupported" >&6; } ;;
4237 *)
4238 CC="$CC $ac_cv_prog_cc_c89"
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4240 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4241 esac
4242 if test "x$ac_cv_prog_cc_c89" != xno; then :
4243
4244 fi
4245
4246 ac_ext=c
4247 ac_cpp='$CPP $CPPFLAGS'
4248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4251
4252 if test "x$CC" != xcc; then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4254 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4255 else
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4257 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4258 fi
4259 set dummy $CC; ac_cc=`$as_echo "$2" |
4260 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4261 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4262 $as_echo_n "(cached) " >&6
4263 else
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h. */
4266
4267 int
4268 main ()
4269 {
4270
4271 ;
4272 return 0;
4273 }
4274 _ACEOF
4275 # Make sure it works both with $CC and with simple cc.
4276 # We do the test twice because some compilers refuse to overwrite an
4277 # existing .o file with -o, though they will create one.
4278 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4279 rm -f conftest2.*
4280 if { { case "(($ac_try" in
4281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282 *) ac_try_echo=$ac_try;;
4283 esac
4284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4285 $as_echo "$ac_try_echo"; } >&5
4286 (eval "$ac_try") 2>&5
4287 ac_status=$?
4288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4289 test $ac_status = 0; } &&
4290 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4293 esac
4294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4295 $as_echo "$ac_try_echo"; } >&5
4296 (eval "$ac_try") 2>&5
4297 ac_status=$?
4298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4299 test $ac_status = 0; };
4300 then
4301 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4302 if test "x$CC" != xcc; then
4303 # Test first that cc exists at all.
4304 if { ac_try='cc -c conftest.$ac_ext >&5'
4305 { { case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4308 esac
4309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4310 $as_echo "$ac_try_echo"; } >&5
4311 (eval "$ac_try") 2>&5
4312 ac_status=$?
4313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4314 test $ac_status = 0; }; }; then
4315 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4316 rm -f conftest2.*
4317 if { { case "(($ac_try" in
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4320 esac
4321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4322 $as_echo "$ac_try_echo"; } >&5
4323 (eval "$ac_try") 2>&5
4324 ac_status=$?
4325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4326 test $ac_status = 0; } &&
4327 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4330 esac
4331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4332 $as_echo "$ac_try_echo"; } >&5
4333 (eval "$ac_try") 2>&5
4334 ac_status=$?
4335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4336 test $ac_status = 0; };
4337 then
4338 # cc works too.
4339 :
4340 else
4341 # cc exists but doesn't like -o.
4342 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4343 fi
4344 fi
4345 fi
4346 else
4347 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4348 fi
4349 rm -f core conftest*
4350
4351 fi
4352 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4354 $as_echo "yes" >&6; }
4355 else
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357 $as_echo "no" >&6; }
4358
4359 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4360
4361 fi
4362
4363 # expand $ac_aux_dir to an absolute path
4364 am_aux_dir=`cd $ac_aux_dir && pwd`
4365
4366 # FIXME: we rely on the cache variable name because
4367 # there is no other way.
4368 set dummy $CC
4369 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4370 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4371 if test "$am_t" != yes; then
4372 # Losing compiler, so override with the script.
4373 # FIXME: It is wrong to rewrite CC.
4374 # But if we don't then we get into trouble of one sort or another.
4375 # A longer-term fix would be to have automake use am__CC in this case,
4376 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4377 CC="$am_aux_dir/compile $CC"
4378 fi
4379
4380
4381 ac_ext=cpp
4382 ac_cpp='$CXXCPP $CPPFLAGS'
4383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4386 if test -z "$CXX"; then
4387 if test -n "$CCC"; then
4388 CXX=$CCC
4389 else
4390 if test -n "$ac_tool_prefix"; then
4391 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4392 do
4393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4394 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396 $as_echo_n "checking for $ac_word... " >&6; }
4397 if test "${ac_cv_prog_CXX+set}" = set; then :
4398 $as_echo_n "(cached) " >&6
4399 else
4400 if test -n "$CXX"; then
4401 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4402 else
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4405 do
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 break 2
4413 fi
4414 done
4415 done
4416 IFS=$as_save_IFS
4417
4418 fi
4419 fi
4420 CXX=$ac_cv_prog_CXX
4421 if test -n "$CXX"; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4423 $as_echo "$CXX" >&6; }
4424 else
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426 $as_echo "no" >&6; }
4427 fi
4428
4429
4430 test -n "$CXX" && break
4431 done
4432 fi
4433 if test -z "$CXX"; then
4434 ac_ct_CXX=$CXX
4435 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4436 do
4437 # Extract the first word of "$ac_prog", so it can be a program name with args.
4438 set dummy $ac_prog; ac_word=$2
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4440 $as_echo_n "checking for $ac_word... " >&6; }
4441 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4442 $as_echo_n "(cached) " >&6
4443 else
4444 if test -n "$ac_ct_CXX"; then
4445 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4446 else
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 for as_dir in $PATH
4449 do
4450 IFS=$as_save_IFS
4451 test -z "$as_dir" && as_dir=.
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4454 ac_cv_prog_ac_ct_CXX="$ac_prog"
4455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4456 break 2
4457 fi
4458 done
4459 done
4460 IFS=$as_save_IFS
4461
4462 fi
4463 fi
4464 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4465 if test -n "$ac_ct_CXX"; then
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4467 $as_echo "$ac_ct_CXX" >&6; }
4468 else
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4470 $as_echo "no" >&6; }
4471 fi
4472
4473
4474 test -n "$ac_ct_CXX" && break
4475 done
4476
4477 if test "x$ac_ct_CXX" = x; then
4478 CXX="g++"
4479 else
4480 case $cross_compiling:$ac_tool_warned in
4481 yes:)
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4484 ac_tool_warned=yes ;;
4485 esac
4486 CXX=$ac_ct_CXX
4487 fi
4488 fi
4489
4490 fi
4491 fi
4492 # Provide some information about the compiler.
4493 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4494 set X $ac_compile
4495 ac_compiler=$2
4496 for ac_option in --version -v -V -qversion; do
4497 { { ac_try="$ac_compiler $ac_option >&5"
4498 case "(($ac_try" in
4499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4501 esac
4502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4503 $as_echo "$ac_try_echo"; } >&5
4504 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4505 ac_status=$?
4506 if test -s conftest.err; then
4507 sed '10a\
4508 ... rest of stderr output deleted ...
4509 10q' conftest.err >conftest.er1
4510 cat conftest.er1 >&5
4511 rm -f conftest.er1 conftest.err
4512 fi
4513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4514 test $ac_status = 0; }
4515 done
4516
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4518 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4519 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4520 $as_echo_n "(cached) " >&6
4521 else
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4524
4525 int
4526 main ()
4527 {
4528 #ifndef __GNUC__
4529 choke me
4530 #endif
4531
4532 ;
4533 return 0;
4534 }
4535 _ACEOF
4536 if ac_fn_cxx_try_compile "$LINENO"; then :
4537 ac_compiler_gnu=yes
4538 else
4539 ac_compiler_gnu=no
4540 fi
4541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4542 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4543
4544 fi
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4546 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4547 if test $ac_compiler_gnu = yes; then
4548 GXX=yes
4549 else
4550 GXX=
4551 fi
4552 ac_test_CXXFLAGS=${CXXFLAGS+set}
4553 ac_save_CXXFLAGS=$CXXFLAGS
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4555 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4556 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4557 $as_echo_n "(cached) " >&6
4558 else
4559 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4560 ac_cxx_werror_flag=yes
4561 ac_cv_prog_cxx_g=no
4562 CXXFLAGS="-g"
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h. */
4565
4566 int
4567 main ()
4568 {
4569
4570 ;
4571 return 0;
4572 }
4573 _ACEOF
4574 if ac_fn_cxx_try_compile "$LINENO"; then :
4575 ac_cv_prog_cxx_g=yes
4576 else
4577 CXXFLAGS=""
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4580
4581 int
4582 main ()
4583 {
4584
4585 ;
4586 return 0;
4587 }
4588 _ACEOF
4589 if ac_fn_cxx_try_compile "$LINENO"; then :
4590
4591 else
4592 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4593 CXXFLAGS="-g"
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4596
4597 int
4598 main ()
4599 {
4600
4601 ;
4602 return 0;
4603 }
4604 _ACEOF
4605 if ac_fn_cxx_try_compile "$LINENO"; then :
4606 ac_cv_prog_cxx_g=yes
4607 fi
4608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4609 fi
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611 fi
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4614 fi
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4616 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4617 if test "$ac_test_CXXFLAGS" = set; then
4618 CXXFLAGS=$ac_save_CXXFLAGS
4619 elif test $ac_cv_prog_cxx_g = yes; then
4620 if test "$GXX" = yes; then
4621 CXXFLAGS="-g -O2"
4622 else
4623 CXXFLAGS="-g"
4624 fi
4625 else
4626 if test "$GXX" = yes; then
4627 CXXFLAGS="-O2"
4628 else
4629 CXXFLAGS=
4630 fi
4631 fi
4632 ac_ext=c
4633 ac_cpp='$CPP $CPPFLAGS'
4634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4637
4638
4639
4640
4641 if test -n "$ac_tool_prefix"; then
4642 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4643 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 $as_echo_n "checking for $ac_word... " >&6; }
4646 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4647 $as_echo_n "(cached) " >&6
4648 else
4649 if test -n "$GNATBIND"; then
4650 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4651 else
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4654 do
4655 IFS=$as_save_IFS
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 break 2
4662 fi
4663 done
4664 done
4665 IFS=$as_save_IFS
4666
4667 fi
4668 fi
4669 GNATBIND=$ac_cv_prog_GNATBIND
4670 if test -n "$GNATBIND"; then
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4672 $as_echo "$GNATBIND" >&6; }
4673 else
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675 $as_echo "no" >&6; }
4676 fi
4677
4678
4679 fi
4680 if test -z "$ac_cv_prog_GNATBIND"; then
4681 ac_ct_GNATBIND=$GNATBIND
4682 # Extract the first word of "gnatbind", so it can be a program name with args.
4683 set dummy gnatbind; ac_word=$2
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4685 $as_echo_n "checking for $ac_word... " >&6; }
4686 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4687 $as_echo_n "(cached) " >&6
4688 else
4689 if test -n "$ac_ct_GNATBIND"; then
4690 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4691 else
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH
4694 do
4695 IFS=$as_save_IFS
4696 test -z "$as_dir" && as_dir=.
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4699 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 break 2
4702 fi
4703 done
4704 done
4705 IFS=$as_save_IFS
4706
4707 fi
4708 fi
4709 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4710 if test -n "$ac_ct_GNATBIND"; then
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4712 $as_echo "$ac_ct_GNATBIND" >&6; }
4713 else
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715 $as_echo "no" >&6; }
4716 fi
4717
4718 if test "x$ac_ct_GNATBIND" = x; then
4719 GNATBIND="no"
4720 else
4721 case $cross_compiling:$ac_tool_warned in
4722 yes:)
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4725 ac_tool_warned=yes ;;
4726 esac
4727 GNATBIND=$ac_ct_GNATBIND
4728 fi
4729 else
4730 GNATBIND="$ac_cv_prog_GNATBIND"
4731 fi
4732
4733 if test -n "$ac_tool_prefix"; then
4734 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4735 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737 $as_echo_n "checking for $ac_word... " >&6; }
4738 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4739 $as_echo_n "(cached) " >&6
4740 else
4741 if test -n "$GNATMAKE"; then
4742 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4743 else
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH
4746 do
4747 IFS=$as_save_IFS
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4751 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 break 2
4754 fi
4755 done
4756 done
4757 IFS=$as_save_IFS
4758
4759 fi
4760 fi
4761 GNATMAKE=$ac_cv_prog_GNATMAKE
4762 if test -n "$GNATMAKE"; then
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4764 $as_echo "$GNATMAKE" >&6; }
4765 else
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 $as_echo "no" >&6; }
4768 fi
4769
4770
4771 fi
4772 if test -z "$ac_cv_prog_GNATMAKE"; then
4773 ac_ct_GNATMAKE=$GNATMAKE
4774 # Extract the first word of "gnatmake", so it can be a program name with args.
4775 set dummy gnatmake; ac_word=$2
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 $as_echo_n "checking for $ac_word... " >&6; }
4778 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 if test -n "$ac_ct_GNATMAKE"; then
4782 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4783 else
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $PATH
4786 do
4787 IFS=$as_save_IFS
4788 test -z "$as_dir" && as_dir=.
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4791 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4793 break 2
4794 fi
4795 done
4796 done
4797 IFS=$as_save_IFS
4798
4799 fi
4800 fi
4801 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4802 if test -n "$ac_ct_GNATMAKE"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4804 $as_echo "$ac_ct_GNATMAKE" >&6; }
4805 else
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4808 fi
4809
4810 if test "x$ac_ct_GNATMAKE" = x; then
4811 GNATMAKE="no"
4812 else
4813 case $cross_compiling:$ac_tool_warned in
4814 yes:)
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4817 ac_tool_warned=yes ;;
4818 esac
4819 GNATMAKE=$ac_ct_GNATMAKE
4820 fi
4821 else
4822 GNATMAKE="$ac_cv_prog_GNATMAKE"
4823 fi
4824
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4826 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4827 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4828 $as_echo_n "(cached) " >&6
4829 else
4830 cat >conftest.adb <<EOF
4831 procedure conftest is begin null; end conftest;
4832 EOF
4833 acx_cv_cc_gcc_supports_ada=no
4834 # There is a bug in old released versions of GCC which causes the
4835 # driver to exit successfully when the appropriate language module
4836 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4837 # Therefore we must check for the error message as well as an
4838 # unsuccessful exit.
4839 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4840 # given a .adb file, but produce no object file. So we must check
4841 # if an object file was really produced to guard against this.
4842 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4843 if test x"$errors" = x && test -f conftest.$ac_objext; then
4844 acx_cv_cc_gcc_supports_ada=yes
4845 fi
4846 rm -f conftest.*
4847 fi
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4849 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4850
4851 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4852 have_gnat=yes
4853 else
4854 have_gnat=no
4855 fi
4856
4857
4858 # autoconf is lame and doesn't give us any substitution variable for this.
4859 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4860 NO_MINUS_C_MINUS_O=yes
4861 else
4862 OUTPUT_OPTION='-o $@'
4863 fi
4864
4865
4866
4867 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4868 # optimizations to be activated explicitly by the toplevel.
4869 case "$CC" in
4870 */prev-gcc/xgcc*) ;;
4871 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4872 esac
4873
4874
4875 # Determine PICFLAG for target gnatlib.
4876
4877
4878
4879
4880 case "${target}" in
4881 # PIC is the default on some targets or must not be used.
4882 *-*-darwin*)
4883 # PIC is the default on this platform
4884 # Common symbols not allowed in MH_DYLIB files
4885 PICFLAG_FOR_TARGET=-fno-common
4886 ;;
4887 alpha*-dec-osf5*)
4888 # PIC is the default.
4889 ;;
4890 hppa*64*-*-hpux*)
4891 # PIC is the default for 64-bit PA HP-UX.
4892 ;;
4893 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4894 ;;
4895 i[34567]86-*-interix3*)
4896 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4897 # Instead, we relocate shared libraries at runtime.
4898 ;;
4899 i[34567]86-*-nto-qnx*)
4900 # QNX uses GNU C++, but need to define -shared option too, otherwise
4901 # it will coredump.
4902 PICFLAG_FOR_TARGET='-fPIC -shared'
4903 ;;
4904 i[34567]86-pc-msdosdjgpp*)
4905 # DJGPP does not support shared libraries at all.
4906 ;;
4907 ia64*-*-hpux*)
4908 # On IA64 HP-UX, PIC is the default but the pic flag
4909 # sets the default TLS model and affects inlining.
4910 PICFLAG_FOR_TARGET=-fPIC
4911 ;;
4912 mips-sgi-irix6*)
4913 # PIC is the default.
4914 ;;
4915 rs6000-ibm-aix* | powerpc-ibm-aix*)
4916 # All AIX code is PIC.
4917 ;;
4918
4919 # Some targets support both -fPIC and -fpic, but prefer the latter.
4920 # FIXME: Why?
4921 i[34567]86-*-* | x86_64-*-*)
4922 PICFLAG_FOR_TARGET=-fpic
4923 ;;
4924 m68k-*-*)
4925 PICFLAG_FOR_TARGET=-fpic
4926 ;;
4927 s390*-*-*)
4928 PICFLAG_FOR_TARGET=-fpic
4929 ;;
4930 # FIXME: Override -fPIC default in libgcc only?
4931 sh-*-linux* | sh[2346lbe]*-*-linux*)
4932 PICFLAG_FOR_TARGET=-fpic
4933 ;;
4934 # FIXME: Simplify to sh*-*-netbsd*?
4935 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4936 sh64-*-netbsd* | sh64l*-*-netbsd*)
4937 PICFLAG_FOR_TARGET=-fpic
4938 ;;
4939 # Default to -fPIC unless specified otherwise.
4940 *)
4941 PICFLAG_FOR_TARGET=-fPIC
4942 ;;
4943 esac
4944
4945 # If the user explicitly uses -fpic/-fPIC, keep that.
4946 case "${CFLAGS_FOR_TARGET}" in
4947 *-fpic*)
4948 PICFLAG_FOR_TARGET=-fpic
4949 ;;
4950 *-fPIC*)
4951 PICFLAG_FOR_TARGET=-fPIC
4952 ;;
4953 esac
4954
4955
4956
4957 # -------------------------
4958 # Check C compiler features
4959 # -------------------------
4960
4961
4962 ac_ext=c
4963 ac_cpp='$CPP $CPPFLAGS'
4964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4968 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4969 # On Suns, sometimes $CPP names a directory.
4970 if test -n "$CPP" && test -d "$CPP"; then
4971 CPP=
4972 fi
4973 if test -z "$CPP"; then
4974 if test "${ac_cv_prog_CPP+set}" = set; then :
4975 $as_echo_n "(cached) " >&6
4976 else
4977 # Double quotes because CPP needs to be expanded
4978 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4979 do
4980 ac_preproc_ok=false
4981 for ac_c_preproc_warn_flag in '' yes
4982 do
4983 # Use a header file that comes with gcc, so configuring glibc
4984 # with a fresh cross-compiler works.
4985 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4986 # <limits.h> exists even on freestanding compilers.
4987 # On the NeXT, cc -E runs the code through the compiler's parser,
4988 # not just through cpp. "Syntax error" is here to catch this case.
4989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990 /* end confdefs.h. */
4991 #ifdef __STDC__
4992 # include <limits.h>
4993 #else
4994 # include <assert.h>
4995 #endif
4996 Syntax error
4997 _ACEOF
4998 if ac_fn_c_try_cpp "$LINENO"; then :
4999
5000 else
5001 # Broken: fails on valid input.
5002 continue
5003 fi
5004 rm -f conftest.err conftest.$ac_ext
5005
5006 # OK, works on sane cases. Now check whether nonexistent headers
5007 # can be detected and how.
5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h. */
5010 #include <ac_nonexistent.h>
5011 _ACEOF
5012 if ac_fn_c_try_cpp "$LINENO"; then :
5013 # Broken: success on invalid input.
5014 continue
5015 else
5016 # Passes both tests.
5017 ac_preproc_ok=:
5018 break
5019 fi
5020 rm -f conftest.err conftest.$ac_ext
5021
5022 done
5023 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5024 rm -f conftest.err conftest.$ac_ext
5025 if $ac_preproc_ok; then :
5026 break
5027 fi
5028
5029 done
5030 ac_cv_prog_CPP=$CPP
5031
5032 fi
5033 CPP=$ac_cv_prog_CPP
5034 else
5035 ac_cv_prog_CPP=$CPP
5036 fi
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5038 $as_echo "$CPP" >&6; }
5039 ac_preproc_ok=false
5040 for ac_c_preproc_warn_flag in '' yes
5041 do
5042 # Use a header file that comes with gcc, so configuring glibc
5043 # with a fresh cross-compiler works.
5044 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5045 # <limits.h> exists even on freestanding compilers.
5046 # On the NeXT, cc -E runs the code through the compiler's parser,
5047 # not just through cpp. "Syntax error" is here to catch this case.
5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h. */
5050 #ifdef __STDC__
5051 # include <limits.h>
5052 #else
5053 # include <assert.h>
5054 #endif
5055 Syntax error
5056 _ACEOF
5057 if ac_fn_c_try_cpp "$LINENO"; then :
5058
5059 else
5060 # Broken: fails on valid input.
5061 continue
5062 fi
5063 rm -f conftest.err conftest.$ac_ext
5064
5065 # OK, works on sane cases. Now check whether nonexistent headers
5066 # can be detected and how.
5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h. */
5069 #include <ac_nonexistent.h>
5070 _ACEOF
5071 if ac_fn_c_try_cpp "$LINENO"; then :
5072 # Broken: success on invalid input.
5073 continue
5074 else
5075 # Passes both tests.
5076 ac_preproc_ok=:
5077 break
5078 fi
5079 rm -f conftest.err conftest.$ac_ext
5080
5081 done
5082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5083 rm -f conftest.err conftest.$ac_ext
5084 if $ac_preproc_ok; then :
5085
5086 else
5087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5089 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5090 See \`config.log' for more details." "$LINENO" 5; }
5091 fi
5092
5093 ac_ext=c
5094 ac_cpp='$CPP $CPPFLAGS'
5095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5098
5099
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5101 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5102 if test "${ac_cv_path_GREP+set}" = set; then :
5103 $as_echo_n "(cached) " >&6
5104 else
5105 if test -z "$GREP"; then
5106 ac_path_GREP_found=false
5107 # Loop through the user's path and test for each of PROGNAME-LIST
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5110 do
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_prog in grep ggrep; do
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5116 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5117 # Check for GNU ac_path_GREP and select it if it is found.
5118 # Check for GNU $ac_path_GREP
5119 case `"$ac_path_GREP" --version 2>&1` in
5120 *GNU*)
5121 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5122 *)
5123 ac_count=0
5124 $as_echo_n 0123456789 >"conftest.in"
5125 while :
5126 do
5127 cat "conftest.in" "conftest.in" >"conftest.tmp"
5128 mv "conftest.tmp" "conftest.in"
5129 cp "conftest.in" "conftest.nl"
5130 $as_echo 'GREP' >> "conftest.nl"
5131 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5132 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5133 as_fn_arith $ac_count + 1 && ac_count=$as_val
5134 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5135 # Best one so far, save it but keep looking for a better one
5136 ac_cv_path_GREP="$ac_path_GREP"
5137 ac_path_GREP_max=$ac_count
5138 fi
5139 # 10*(2^10) chars as input seems more than enough
5140 test $ac_count -gt 10 && break
5141 done
5142 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5143 esac
5144
5145 $ac_path_GREP_found && break 3
5146 done
5147 done
5148 done
5149 IFS=$as_save_IFS
5150 if test -z "$ac_cv_path_GREP"; then
5151 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5152 fi
5153 else
5154 ac_cv_path_GREP=$GREP
5155 fi
5156
5157 fi
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5159 $as_echo "$ac_cv_path_GREP" >&6; }
5160 GREP="$ac_cv_path_GREP"
5161
5162
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5164 $as_echo_n "checking for egrep... " >&6; }
5165 if test "${ac_cv_path_EGREP+set}" = set; then :
5166 $as_echo_n "(cached) " >&6
5167 else
5168 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5169 then ac_cv_path_EGREP="$GREP -E"
5170 else
5171 if test -z "$EGREP"; then
5172 ac_path_EGREP_found=false
5173 # Loop through the user's path and test for each of PROGNAME-LIST
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5176 do
5177 IFS=$as_save_IFS
5178 test -z "$as_dir" && as_dir=.
5179 for ac_prog in egrep; do
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5182 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5183 # Check for GNU ac_path_EGREP and select it if it is found.
5184 # Check for GNU $ac_path_EGREP
5185 case `"$ac_path_EGREP" --version 2>&1` in
5186 *GNU*)
5187 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5188 *)
5189 ac_count=0
5190 $as_echo_n 0123456789 >"conftest.in"
5191 while :
5192 do
5193 cat "conftest.in" "conftest.in" >"conftest.tmp"
5194 mv "conftest.tmp" "conftest.in"
5195 cp "conftest.in" "conftest.nl"
5196 $as_echo 'EGREP' >> "conftest.nl"
5197 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5199 as_fn_arith $ac_count + 1 && ac_count=$as_val
5200 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5201 # Best one so far, save it but keep looking for a better one
5202 ac_cv_path_EGREP="$ac_path_EGREP"
5203 ac_path_EGREP_max=$ac_count
5204 fi
5205 # 10*(2^10) chars as input seems more than enough
5206 test $ac_count -gt 10 && break
5207 done
5208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5209 esac
5210
5211 $ac_path_EGREP_found && break 3
5212 done
5213 done
5214 done
5215 IFS=$as_save_IFS
5216 if test -z "$ac_cv_path_EGREP"; then
5217 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5218 fi
5219 else
5220 ac_cv_path_EGREP=$EGREP
5221 fi
5222
5223 fi
5224 fi
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5226 $as_echo "$ac_cv_path_EGREP" >&6; }
5227 EGREP="$ac_cv_path_EGREP"
5228
5229
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5231 $as_echo_n "checking for ANSI C header files... " >&6; }
5232 if test "${ac_cv_header_stdc+set}" = set; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h. */
5237 #include <stdlib.h>
5238 #include <stdarg.h>
5239 #include <string.h>
5240 #include <float.h>
5241
5242 int
5243 main ()
5244 {
5245
5246 ;
5247 return 0;
5248 }
5249 _ACEOF
5250 if ac_fn_c_try_compile "$LINENO"; then :
5251 ac_cv_header_stdc=yes
5252 else
5253 ac_cv_header_stdc=no
5254 fi
5255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5256
5257 if test $ac_cv_header_stdc = yes; then
5258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h. */
5261 #include <string.h>
5262
5263 _ACEOF
5264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5265 $EGREP "memchr" >/dev/null 2>&1; then :
5266
5267 else
5268 ac_cv_header_stdc=no
5269 fi
5270 rm -f conftest*
5271
5272 fi
5273
5274 if test $ac_cv_header_stdc = yes; then
5275 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5278 #include <stdlib.h>
5279
5280 _ACEOF
5281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5282 $EGREP "free" >/dev/null 2>&1; then :
5283
5284 else
5285 ac_cv_header_stdc=no
5286 fi
5287 rm -f conftest*
5288
5289 fi
5290
5291 if test $ac_cv_header_stdc = yes; then
5292 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5293 if test "$cross_compiling" = yes; then :
5294 :
5295 else
5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h. */
5298 #include <ctype.h>
5299 #include <stdlib.h>
5300 #if ((' ' & 0x0FF) == 0x020)
5301 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5302 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5303 #else
5304 # define ISLOWER(c) \
5305 (('a' <= (c) && (c) <= 'i') \
5306 || ('j' <= (c) && (c) <= 'r') \
5307 || ('s' <= (c) && (c) <= 'z'))
5308 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5309 #endif
5310
5311 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5312 int
5313 main ()
5314 {
5315 int i;
5316 for (i = 0; i < 256; i++)
5317 if (XOR (islower (i), ISLOWER (i))
5318 || toupper (i) != TOUPPER (i))
5319 return 2;
5320 return 0;
5321 }
5322 _ACEOF
5323 if ac_fn_c_try_run "$LINENO"; then :
5324
5325 else
5326 ac_cv_header_stdc=no
5327 fi
5328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5329 conftest.$ac_objext conftest.beam conftest.$ac_ext
5330 fi
5331
5332 fi
5333 fi
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5335 $as_echo "$ac_cv_header_stdc" >&6; }
5336 if test $ac_cv_header_stdc = yes; then
5337
5338 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5339
5340 fi
5341
5342 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5343 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5344 inttypes.h stdint.h unistd.h
5345 do :
5346 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5347 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5348 "
5349 eval as_val=\$$as_ac_Header
5350 if test "x$as_val" = x""yes; then :
5351 cat >>confdefs.h <<_ACEOF
5352 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5353 _ACEOF
5354
5355 fi
5356
5357 done
5358
5359
5360
5361 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5362 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5363 MINIX=yes
5364 else
5365 MINIX=
5366 fi
5367
5368
5369 if test "$MINIX" = yes; then
5370
5371 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5372
5373
5374 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5375
5376
5377 $as_echo "#define _MINIX 1" >>confdefs.h
5378
5379 fi
5380
5381
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5383 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5384 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5385 $as_echo_n "(cached) " >&6
5386 else
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5389
5390 # define __EXTENSIONS__ 1
5391 $ac_includes_default
5392 int
5393 main ()
5394 {
5395
5396 ;
5397 return 0;
5398 }
5399 _ACEOF
5400 if ac_fn_c_try_compile "$LINENO"; then :
5401 ac_cv_safe_to_define___extensions__=yes
5402 else
5403 ac_cv_safe_to_define___extensions__=no
5404 fi
5405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5406 fi
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5408 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5409 test $ac_cv_safe_to_define___extensions__ = yes &&
5410 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5411
5412 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5413
5414 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5415
5416 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5417
5418 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5419
5420
5421 ac_ext=c
5422 ac_cpp='$CPP $CPPFLAGS'
5423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5427 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5428 # On Suns, sometimes $CPP names a directory.
5429 if test -n "$CPP" && test -d "$CPP"; then
5430 CPP=
5431 fi
5432 if test -z "$CPP"; then
5433 if test "${ac_cv_prog_CPP+set}" = set; then :
5434 $as_echo_n "(cached) " >&6
5435 else
5436 # Double quotes because CPP needs to be expanded
5437 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5438 do
5439 ac_preproc_ok=false
5440 for ac_c_preproc_warn_flag in '' yes
5441 do
5442 # Use a header file that comes with gcc, so configuring glibc
5443 # with a fresh cross-compiler works.
5444 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5445 # <limits.h> exists even on freestanding compilers.
5446 # On the NeXT, cc -E runs the code through the compiler's parser,
5447 # not just through cpp. "Syntax error" is here to catch this case.
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h. */
5450 #ifdef __STDC__
5451 # include <limits.h>
5452 #else
5453 # include <assert.h>
5454 #endif
5455 Syntax error
5456 _ACEOF
5457 if ac_fn_c_try_cpp "$LINENO"; then :
5458
5459 else
5460 # Broken: fails on valid input.
5461 continue
5462 fi
5463 rm -f conftest.err conftest.$ac_ext
5464
5465 # OK, works on sane cases. Now check whether nonexistent headers
5466 # can be detected and how.
5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h. */
5469 #include <ac_nonexistent.h>
5470 _ACEOF
5471 if ac_fn_c_try_cpp "$LINENO"; then :
5472 # Broken: success on invalid input.
5473 continue
5474 else
5475 # Passes both tests.
5476 ac_preproc_ok=:
5477 break
5478 fi
5479 rm -f conftest.err conftest.$ac_ext
5480
5481 done
5482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5483 rm -f conftest.err conftest.$ac_ext
5484 if $ac_preproc_ok; then :
5485 break
5486 fi
5487
5488 done
5489 ac_cv_prog_CPP=$CPP
5490
5491 fi
5492 CPP=$ac_cv_prog_CPP
5493 else
5494 ac_cv_prog_CPP=$CPP
5495 fi
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5497 $as_echo "$CPP" >&6; }
5498 ac_preproc_ok=false
5499 for ac_c_preproc_warn_flag in '' yes
5500 do
5501 # Use a header file that comes with gcc, so configuring glibc
5502 # with a fresh cross-compiler works.
5503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5504 # <limits.h> exists even on freestanding compilers.
5505 # On the NeXT, cc -E runs the code through the compiler's parser,
5506 # not just through cpp. "Syntax error" is here to catch this case.
5507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h. */
5509 #ifdef __STDC__
5510 # include <limits.h>
5511 #else
5512 # include <assert.h>
5513 #endif
5514 Syntax error
5515 _ACEOF
5516 if ac_fn_c_try_cpp "$LINENO"; then :
5517
5518 else
5519 # Broken: fails on valid input.
5520 continue
5521 fi
5522 rm -f conftest.err conftest.$ac_ext
5523
5524 # OK, works on sane cases. Now check whether nonexistent headers
5525 # can be detected and how.
5526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527 /* end confdefs.h. */
5528 #include <ac_nonexistent.h>
5529 _ACEOF
5530 if ac_fn_c_try_cpp "$LINENO"; then :
5531 # Broken: success on invalid input.
5532 continue
5533 else
5534 # Passes both tests.
5535 ac_preproc_ok=:
5536 break
5537 fi
5538 rm -f conftest.err conftest.$ac_ext
5539
5540 done
5541 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5542 rm -f conftest.err conftest.$ac_ext
5543 if $ac_preproc_ok; then :
5544
5545 else
5546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5548 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5549 See \`config.log' for more details." "$LINENO" 5; }
5550 fi
5551
5552 ac_ext=c
5553 ac_cpp='$CPP $CPPFLAGS'
5554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5557
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5559 $as_echo_n "checking for inline... " >&6; }
5560 if test "${ac_cv_c_inline+set}" = set; then :
5561 $as_echo_n "(cached) " >&6
5562 else
5563 ac_cv_c_inline=no
5564 for ac_kw in inline __inline__ __inline; do
5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566 /* end confdefs.h. */
5567 #ifndef __cplusplus
5568 typedef int foo_t;
5569 static $ac_kw foo_t static_foo () {return 0; }
5570 $ac_kw foo_t foo () {return 0; }
5571 #endif
5572
5573 _ACEOF
5574 if ac_fn_c_try_compile "$LINENO"; then :
5575 ac_cv_c_inline=$ac_kw
5576 fi
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578 test "$ac_cv_c_inline" != no && break
5579 done
5580
5581 fi
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5583 $as_echo "$ac_cv_c_inline" >&6; }
5584
5585 case $ac_cv_c_inline in
5586 inline | yes) ;;
5587 *)
5588 case $ac_cv_c_inline in
5589 no) ac_val=;;
5590 *) ac_val=$ac_cv_c_inline;;
5591 esac
5592 cat >>confdefs.h <<_ACEOF
5593 #ifndef __cplusplus
5594 #define inline $ac_val
5595 #endif
5596 _ACEOF
5597 ;;
5598 esac
5599
5600
5601 # Check whether --enable-largefile was given.
5602 if test "${enable_largefile+set}" = set; then :
5603 enableval=$enable_largefile;
5604 fi
5605
5606 if test "$enable_largefile" != no; then
5607
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5609 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5610 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5611 $as_echo_n "(cached) " >&6
5612 else
5613 ac_cv_sys_largefile_CC=no
5614 if test "$GCC" != yes; then
5615 ac_save_CC=$CC
5616 while :; do
5617 # IRIX 6.2 and later do not support large files by default,
5618 # so use the C compiler's -n32 option if that helps.
5619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5620 /* end confdefs.h. */
5621 #include <sys/types.h>
5622 /* Check that off_t can represent 2**63 - 1 correctly.
5623 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5624 since some C++ compilers masquerading as C compilers
5625 incorrectly reject 9223372036854775807. */
5626 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5627 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5628 && LARGE_OFF_T % 2147483647 == 1)
5629 ? 1 : -1];
5630 int
5631 main ()
5632 {
5633
5634 ;
5635 return 0;
5636 }
5637 _ACEOF
5638 if ac_fn_c_try_compile "$LINENO"; then :
5639 break
5640 fi
5641 rm -f core conftest.err conftest.$ac_objext
5642 CC="$CC -n32"
5643 if ac_fn_c_try_compile "$LINENO"; then :
5644 ac_cv_sys_largefile_CC=' -n32'; break
5645 fi
5646 rm -f core conftest.err conftest.$ac_objext
5647 break
5648 done
5649 CC=$ac_save_CC
5650 rm -f conftest.$ac_ext
5651 fi
5652 fi
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5654 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5655 if test "$ac_cv_sys_largefile_CC" != no; then
5656 CC=$CC$ac_cv_sys_largefile_CC
5657 fi
5658
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5660 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5661 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5662 $as_echo_n "(cached) " >&6
5663 else
5664 while :; do
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5667 #include <sys/types.h>
5668 /* Check that off_t can represent 2**63 - 1 correctly.
5669 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5670 since some C++ compilers masquerading as C compilers
5671 incorrectly reject 9223372036854775807. */
5672 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5673 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5674 && LARGE_OFF_T % 2147483647 == 1)
5675 ? 1 : -1];
5676 int
5677 main ()
5678 {
5679
5680 ;
5681 return 0;
5682 }
5683 _ACEOF
5684 if ac_fn_c_try_compile "$LINENO"; then :
5685 ac_cv_sys_file_offset_bits=no; break
5686 fi
5687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h. */
5690 #define _FILE_OFFSET_BITS 64
5691 #include <sys/types.h>
5692 /* Check that off_t can represent 2**63 - 1 correctly.
5693 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5694 since some C++ compilers masquerading as C compilers
5695 incorrectly reject 9223372036854775807. */
5696 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5697 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5698 && LARGE_OFF_T % 2147483647 == 1)
5699 ? 1 : -1];
5700 int
5701 main ()
5702 {
5703
5704 ;
5705 return 0;
5706 }
5707 _ACEOF
5708 if ac_fn_c_try_compile "$LINENO"; then :
5709 ac_cv_sys_file_offset_bits=64; break
5710 fi
5711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5712 ac_cv_sys_file_offset_bits=unknown
5713 break
5714 done
5715 fi
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5717 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5718 case $ac_cv_sys_file_offset_bits in #(
5719 no | unknown) ;;
5720 *)
5721 cat >>confdefs.h <<_ACEOF
5722 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5723 _ACEOF
5724 ;;
5725 esac
5726 rm -rf conftest*
5727 if test $ac_cv_sys_file_offset_bits = unknown; then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5729 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5730 if test "${ac_cv_sys_large_files+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
5732 else
5733 while :; do
5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735 /* end confdefs.h. */
5736 #include <sys/types.h>
5737 /* Check that off_t can represent 2**63 - 1 correctly.
5738 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5739 since some C++ compilers masquerading as C compilers
5740 incorrectly reject 9223372036854775807. */
5741 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5742 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5743 && LARGE_OFF_T % 2147483647 == 1)
5744 ? 1 : -1];
5745 int
5746 main ()
5747 {
5748
5749 ;
5750 return 0;
5751 }
5752 _ACEOF
5753 if ac_fn_c_try_compile "$LINENO"; then :
5754 ac_cv_sys_large_files=no; break
5755 fi
5756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h. */
5759 #define _LARGE_FILES 1
5760 #include <sys/types.h>
5761 /* Check that off_t can represent 2**63 - 1 correctly.
5762 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5763 since some C++ compilers masquerading as C compilers
5764 incorrectly reject 9223372036854775807. */
5765 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5766 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5767 && LARGE_OFF_T % 2147483647 == 1)
5768 ? 1 : -1];
5769 int
5770 main ()
5771 {
5772
5773 ;
5774 return 0;
5775 }
5776 _ACEOF
5777 if ac_fn_c_try_compile "$LINENO"; then :
5778 ac_cv_sys_large_files=1; break
5779 fi
5780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5781 ac_cv_sys_large_files=unknown
5782 break
5783 done
5784 fi
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5786 $as_echo "$ac_cv_sys_large_files" >&6; }
5787 case $ac_cv_sys_large_files in #(
5788 no | unknown) ;;
5789 *)
5790 cat >>confdefs.h <<_ACEOF
5791 #define _LARGE_FILES $ac_cv_sys_large_files
5792 _ACEOF
5793 ;;
5794 esac
5795 rm -rf conftest*
5796 fi
5797 fi
5798
5799
5800 # sizeof(char) is 1 by definition.
5801 # The cast to long int works around a bug in the HP C Compiler
5802 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5803 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5804 # This bug is HP SR number 8606223364.
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5806 $as_echo_n "checking size of void *... " >&6; }
5807 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5808 $as_echo_n "(cached) " >&6
5809 else
5810 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5811
5812 else
5813 if test "$ac_cv_type_void_p" = yes; then
5814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5816 { as_fn_set_status 77
5817 as_fn_error "cannot compute sizeof (void *)
5818 See \`config.log' for more details." "$LINENO" 5; }; }
5819 else
5820 ac_cv_sizeof_void_p=0
5821 fi
5822 fi
5823
5824 fi
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5826 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5827
5828
5829
5830 cat >>confdefs.h <<_ACEOF
5831 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5832 _ACEOF
5833
5834
5835 # The cast to long int works around a bug in the HP C Compiler
5836 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5837 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5838 # This bug is HP SR number 8606223364.
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5840 $as_echo_n "checking size of short... " >&6; }
5841 if test "${ac_cv_sizeof_short+set}" = set; then :
5842 $as_echo_n "(cached) " >&6
5843 else
5844 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5845
5846 else
5847 if test "$ac_cv_type_short" = yes; then
5848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5850 { as_fn_set_status 77
5851 as_fn_error "cannot compute sizeof (short)
5852 See \`config.log' for more details." "$LINENO" 5; }; }
5853 else
5854 ac_cv_sizeof_short=0
5855 fi
5856 fi
5857
5858 fi
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5860 $as_echo "$ac_cv_sizeof_short" >&6; }
5861
5862
5863
5864 cat >>confdefs.h <<_ACEOF
5865 #define SIZEOF_SHORT $ac_cv_sizeof_short
5866 _ACEOF
5867
5868
5869 # The cast to long int works around a bug in the HP C Compiler
5870 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5871 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5872 # This bug is HP SR number 8606223364.
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5874 $as_echo_n "checking size of int... " >&6; }
5875 if test "${ac_cv_sizeof_int+set}" = set; then :
5876 $as_echo_n "(cached) " >&6
5877 else
5878 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5879
5880 else
5881 if test "$ac_cv_type_int" = yes; then
5882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5884 { as_fn_set_status 77
5885 as_fn_error "cannot compute sizeof (int)
5886 See \`config.log' for more details." "$LINENO" 5; }; }
5887 else
5888 ac_cv_sizeof_int=0
5889 fi
5890 fi
5891
5892 fi
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5894 $as_echo "$ac_cv_sizeof_int" >&6; }
5895
5896
5897
5898 cat >>confdefs.h <<_ACEOF
5899 #define SIZEOF_INT $ac_cv_sizeof_int
5900 _ACEOF
5901
5902
5903 # The cast to long int works around a bug in the HP C Compiler
5904 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5905 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5906 # This bug is HP SR number 8606223364.
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5908 $as_echo_n "checking size of long... " >&6; }
5909 if test "${ac_cv_sizeof_long+set}" = set; then :
5910 $as_echo_n "(cached) " >&6
5911 else
5912 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5913
5914 else
5915 if test "$ac_cv_type_long" = yes; then
5916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5918 { as_fn_set_status 77
5919 as_fn_error "cannot compute sizeof (long)
5920 See \`config.log' for more details." "$LINENO" 5; }; }
5921 else
5922 ac_cv_sizeof_long=0
5923 fi
5924 fi
5925
5926 fi
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5928 $as_echo "$ac_cv_sizeof_long" >&6; }
5929
5930
5931
5932 cat >>confdefs.h <<_ACEOF
5933 #define SIZEOF_LONG $ac_cv_sizeof_long
5934 _ACEOF
5935
5936
5937 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5938 if test "x$ac_cv_type_long_long" = x""yes; then :
5939
5940 cat >>confdefs.h <<_ACEOF
5941 #define HAVE_LONG_LONG 1
5942 _ACEOF
5943
5944 # The cast to long int works around a bug in the HP C Compiler
5945 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5946 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5947 # This bug is HP SR number 8606223364.
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5949 $as_echo_n "checking size of long long... " >&6; }
5950 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5951 $as_echo_n "(cached) " >&6
5952 else
5953 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5954
5955 else
5956 if test "$ac_cv_type_long_long" = yes; then
5957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5959 { as_fn_set_status 77
5960 as_fn_error "cannot compute sizeof (long long)
5961 See \`config.log' for more details." "$LINENO" 5; }; }
5962 else
5963 ac_cv_sizeof_long_long=0
5964 fi
5965 fi
5966
5967 fi
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5969 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5970
5971
5972
5973 cat >>confdefs.h <<_ACEOF
5974 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5975 _ACEOF
5976
5977
5978 fi
5979
5980 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5981 if test "x$ac_cv_type___int64" = x""yes; then :
5982
5983 cat >>confdefs.h <<_ACEOF
5984 #define HAVE___INT64 1
5985 _ACEOF
5986
5987 # The cast to long int works around a bug in the HP C Compiler
5988 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5989 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5990 # This bug is HP SR number 8606223364.
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5992 $as_echo_n "checking size of __int64... " >&6; }
5993 if test "${ac_cv_sizeof___int64+set}" = set; then :
5994 $as_echo_n "(cached) " >&6
5995 else
5996 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5997
5998 else
5999 if test "$ac_cv_type___int64" = yes; then
6000 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6002 { as_fn_set_status 77
6003 as_fn_error "cannot compute sizeof (__int64)
6004 See \`config.log' for more details." "$LINENO" 5; }; }
6005 else
6006 ac_cv_sizeof___int64=0
6007 fi
6008 fi
6009
6010 fi
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6012 $as_echo "$ac_cv_sizeof___int64" >&6; }
6013
6014
6015
6016 cat >>confdefs.h <<_ACEOF
6017 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6018 _ACEOF
6019
6020
6021 fi
6022
6023 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6024 case $ac_cv_c_int8_t in #(
6025 no|yes) ;; #(
6026 *)
6027
6028 cat >>confdefs.h <<_ACEOF
6029 #define int8_t $ac_cv_c_int8_t
6030 _ACEOF
6031 ;;
6032 esac
6033
6034 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6035 case $ac_cv_c_int16_t in #(
6036 no|yes) ;; #(
6037 *)
6038
6039 cat >>confdefs.h <<_ACEOF
6040 #define int16_t $ac_cv_c_int16_t
6041 _ACEOF
6042 ;;
6043 esac
6044
6045 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6046 case $ac_cv_c_int32_t in #(
6047 no|yes) ;; #(
6048 *)
6049
6050 cat >>confdefs.h <<_ACEOF
6051 #define int32_t $ac_cv_c_int32_t
6052 _ACEOF
6053 ;;
6054 esac
6055
6056 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6057 case $ac_cv_c_int64_t in #(
6058 no|yes) ;; #(
6059 *)
6060
6061 cat >>confdefs.h <<_ACEOF
6062 #define int64_t $ac_cv_c_int64_t
6063 _ACEOF
6064 ;;
6065 esac
6066
6067
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6069 $as_echo_n "checking for long long int... " >&6; }
6070 if test "${ac_cv_type_long_long_int+set}" = set; then :
6071 $as_echo_n "(cached) " >&6
6072 else
6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6075
6076 /* For now, do not test the preprocessor; as of 2007 there are too many
6077 implementations with broken preprocessors. Perhaps this can
6078 be revisited in 2012. In the meantime, code should not expect
6079 #if to work with literals wider than 32 bits. */
6080 /* Test literals. */
6081 long long int ll = 9223372036854775807ll;
6082 long long int nll = -9223372036854775807LL;
6083 unsigned long long int ull = 18446744073709551615ULL;
6084 /* Test constant expressions. */
6085 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6086 ? 1 : -1)];
6087 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6088 ? 1 : -1)];
6089 int i = 63;
6090 int
6091 main ()
6092 {
6093 /* Test availability of runtime routines for shift and division. */
6094 long long int llmax = 9223372036854775807ll;
6095 unsigned long long int ullmax = 18446744073709551615ull;
6096 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6097 | (llmax / ll) | (llmax % ll)
6098 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6099 | (ullmax / ull) | (ullmax % ull));
6100 ;
6101 return 0;
6102 }
6103
6104 _ACEOF
6105 if ac_fn_c_try_link "$LINENO"; then :
6106 if test "$cross_compiling" = yes; then :
6107 ac_cv_type_long_long_int=yes
6108 else
6109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6110 /* end confdefs.h. */
6111 #include <limits.h>
6112 #ifndef LLONG_MAX
6113 # define HALF \
6114 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6115 # define LLONG_MAX (HALF - 1 + HALF)
6116 #endif
6117 int
6118 main ()
6119 {
6120 long long int n = 1;
6121 int i;
6122 for (i = 0; ; i++)
6123 {
6124 long long int m = n << i;
6125 if (m >> i != n)
6126 return 1;
6127 if (LLONG_MAX / 2 < m)
6128 break;
6129 }
6130 return 0;
6131 ;
6132 return 0;
6133 }
6134 _ACEOF
6135 if ac_fn_c_try_run "$LINENO"; then :
6136 ac_cv_type_long_long_int=yes
6137 else
6138 ac_cv_type_long_long_int=no
6139 fi
6140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6141 conftest.$ac_objext conftest.beam conftest.$ac_ext
6142 fi
6143
6144 else
6145 ac_cv_type_long_long_int=no
6146 fi
6147 rm -f core conftest.err conftest.$ac_objext \
6148 conftest$ac_exeext conftest.$ac_ext
6149 fi
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6151 $as_echo "$ac_cv_type_long_long_int" >&6; }
6152 if test $ac_cv_type_long_long_int = yes; then
6153
6154 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6155
6156 fi
6157
6158
6159
6160 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6161 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6162
6163 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6164
6165 else
6166 test $ac_cv_type_long_long_int = yes \
6167 && ac_type='long long int' \
6168 || ac_type='long int'
6169
6170 cat >>confdefs.h <<_ACEOF
6171 #define intmax_t $ac_type
6172 _ACEOF
6173
6174 fi
6175
6176
6177
6178 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6179 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6180
6181 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6182
6183 else
6184 for ac_type in 'int' 'long int' 'long long int'; do
6185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186 /* end confdefs.h. */
6187 $ac_includes_default
6188 int
6189 main ()
6190 {
6191 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6192 test_array [0] = 0
6193
6194 ;
6195 return 0;
6196 }
6197 _ACEOF
6198 if ac_fn_c_try_compile "$LINENO"; then :
6199
6200 cat >>confdefs.h <<_ACEOF
6201 #define intptr_t $ac_type
6202 _ACEOF
6203
6204 ac_type=
6205 fi
6206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6207 test -z "$ac_type" && break
6208 done
6209 fi
6210
6211
6212 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6213 case $ac_cv_c_uint8_t in #(
6214 no|yes) ;; #(
6215 *)
6216
6217 $as_echo "#define _UINT8_T 1" >>confdefs.h
6218
6219
6220 cat >>confdefs.h <<_ACEOF
6221 #define uint8_t $ac_cv_c_uint8_t
6222 _ACEOF
6223 ;;
6224 esac
6225
6226 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6227 case $ac_cv_c_uint16_t in #(
6228 no|yes) ;; #(
6229 *)
6230
6231
6232 cat >>confdefs.h <<_ACEOF
6233 #define uint16_t $ac_cv_c_uint16_t
6234 _ACEOF
6235 ;;
6236 esac
6237
6238 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6239 case $ac_cv_c_uint32_t in #(
6240 no|yes) ;; #(
6241 *)
6242
6243 $as_echo "#define _UINT32_T 1" >>confdefs.h
6244
6245
6246 cat >>confdefs.h <<_ACEOF
6247 #define uint32_t $ac_cv_c_uint32_t
6248 _ACEOF
6249 ;;
6250 esac
6251
6252 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6253 case $ac_cv_c_uint64_t in #(
6254 no|yes) ;; #(
6255 *)
6256
6257 $as_echo "#define _UINT64_T 1" >>confdefs.h
6258
6259
6260 cat >>confdefs.h <<_ACEOF
6261 #define uint64_t $ac_cv_c_uint64_t
6262 _ACEOF
6263 ;;
6264 esac
6265
6266
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6268 $as_echo_n "checking for unsigned long long int... " >&6; }
6269 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6270 $as_echo_n "(cached) " >&6
6271 else
6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6274
6275 /* For now, do not test the preprocessor; as of 2007 there are too many
6276 implementations with broken preprocessors. Perhaps this can
6277 be revisited in 2012. In the meantime, code should not expect
6278 #if to work with literals wider than 32 bits. */
6279 /* Test literals. */
6280 long long int ll = 9223372036854775807ll;
6281 long long int nll = -9223372036854775807LL;
6282 unsigned long long int ull = 18446744073709551615ULL;
6283 /* Test constant expressions. */
6284 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6285 ? 1 : -1)];
6286 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6287 ? 1 : -1)];
6288 int i = 63;
6289 int
6290 main ()
6291 {
6292 /* Test availability of runtime routines for shift and division. */
6293 long long int llmax = 9223372036854775807ll;
6294 unsigned long long int ullmax = 18446744073709551615ull;
6295 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6296 | (llmax / ll) | (llmax % ll)
6297 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6298 | (ullmax / ull) | (ullmax % ull));
6299 ;
6300 return 0;
6301 }
6302
6303 _ACEOF
6304 if ac_fn_c_try_link "$LINENO"; then :
6305 ac_cv_type_unsigned_long_long_int=yes
6306 else
6307 ac_cv_type_unsigned_long_long_int=no
6308 fi
6309 rm -f core conftest.err conftest.$ac_objext \
6310 conftest$ac_exeext conftest.$ac_ext
6311 fi
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6313 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6314 if test $ac_cv_type_unsigned_long_long_int = yes; then
6315
6316 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6317
6318 fi
6319
6320
6321
6322 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6323 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6324
6325 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6326
6327 else
6328 test $ac_cv_type_unsigned_long_long_int = yes \
6329 && ac_type='unsigned long long int' \
6330 || ac_type='unsigned long int'
6331
6332 cat >>confdefs.h <<_ACEOF
6333 #define uintmax_t $ac_type
6334 _ACEOF
6335
6336 fi
6337
6338
6339
6340 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6341 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6342
6343 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6344
6345 else
6346 for ac_type in 'unsigned int' 'unsigned long int' \
6347 'unsigned long long int'; do
6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6350 $ac_includes_default
6351 int
6352 main ()
6353 {
6354 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6355 test_array [0] = 0
6356
6357 ;
6358 return 0;
6359 }
6360 _ACEOF
6361 if ac_fn_c_try_compile "$LINENO"; then :
6362
6363 cat >>confdefs.h <<_ACEOF
6364 #define uintptr_t $ac_type
6365 _ACEOF
6366
6367 ac_type=
6368 fi
6369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370 test -z "$ac_type" && break
6371 done
6372 fi
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388 # ---------------------
6389 # Warnings and checking
6390 # ---------------------
6391
6392 # Check $CC warning features (if it's GCC).
6393 # We want to use -pedantic, but we don't want warnings about
6394 # * 'long long'
6395 # * variadic macros
6396 # * overlong strings
6397 # * C++11 narrowing conversions in { }
6398 # So, we only use -pedantic if we can disable those warnings.
6399
6400 loose_warn=
6401 save_CFLAGS="$CFLAGS"
6402 for option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6403 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6404
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6406 $as_echo_n "checking whether $CC supports $option... " >&6; }
6407 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6408 $as_echo_n "(cached) " >&6
6409 else
6410 CFLAGS="$option"
6411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6412 /* end confdefs.h. */
6413
6414 int
6415 main ()
6416 {
6417
6418 ;
6419 return 0;
6420 }
6421 _ACEOF
6422 if ac_fn_c_try_compile "$LINENO"; then :
6423 eval "$as_acx_Woption=yes"
6424 else
6425 eval "$as_acx_Woption=no"
6426 fi
6427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6428
6429 fi
6430 eval ac_res=\$$as_acx_Woption
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6432 $as_echo "$ac_res" >&6; }
6433 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6434 loose_warn="$loose_warn${loose_warn:+ }$option"
6435 fi
6436 done
6437 CFLAGS="$save_CFLAGS"
6438
6439 c_loose_warn=
6440 save_CFLAGS="$CFLAGS"
6441 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6442 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6443
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6445 $as_echo_n "checking whether $CC supports $option... " >&6; }
6446 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6447 $as_echo_n "(cached) " >&6
6448 else
6449 CFLAGS="$option"
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6452
6453 int
6454 main ()
6455 {
6456
6457 ;
6458 return 0;
6459 }
6460 _ACEOF
6461 if ac_fn_c_try_compile "$LINENO"; then :
6462 eval "$as_acx_Woption=yes"
6463 else
6464 eval "$as_acx_Woption=no"
6465 fi
6466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6467
6468 fi
6469 eval ac_res=\$$as_acx_Woption
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6471 $as_echo "$ac_res" >&6; }
6472 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6473 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6474 fi
6475 done
6476 CFLAGS="$save_CFLAGS"
6477
6478 strict_warn=
6479 save_CFLAGS="$CFLAGS"
6480 for option in -Wmissing-format-attribute; do
6481 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6482
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6484 $as_echo_n "checking whether $CC supports $option... " >&6; }
6485 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6486 $as_echo_n "(cached) " >&6
6487 else
6488 CFLAGS="$option"
6489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490 /* end confdefs.h. */
6491
6492 int
6493 main ()
6494 {
6495
6496 ;
6497 return 0;
6498 }
6499 _ACEOF
6500 if ac_fn_c_try_compile "$LINENO"; then :
6501 eval "$as_acx_Woption=yes"
6502 else
6503 eval "$as_acx_Woption=no"
6504 fi
6505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6506
6507 fi
6508 eval ac_res=\$$as_acx_Woption
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6510 $as_echo "$ac_res" >&6; }
6511 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6512 strict_warn="$strict_warn${strict_warn:+ }$option"
6513 fi
6514 done
6515 CFLAGS="$save_CFLAGS"
6516
6517 c_strict_warn=
6518 save_CFLAGS="$CFLAGS"
6519 for option in -Wold-style-definition -Wc++-compat; do
6520 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6521
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6523 $as_echo_n "checking whether $CC supports $option... " >&6; }
6524 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6525 $as_echo_n "(cached) " >&6
6526 else
6527 CFLAGS="$option"
6528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6529 /* end confdefs.h. */
6530
6531 int
6532 main ()
6533 {
6534
6535 ;
6536 return 0;
6537 }
6538 _ACEOF
6539 if ac_fn_c_try_compile "$LINENO"; then :
6540 eval "$as_acx_Woption=yes"
6541 else
6542 eval "$as_acx_Woption=no"
6543 fi
6544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6545
6546 fi
6547 eval ac_res=\$$as_acx_Woption
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6549 $as_echo "$ac_res" >&6; }
6550 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6551 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6552 fi
6553 done
6554 CFLAGS="$save_CFLAGS"
6555
6556 if test "$GCC" = yes; then :
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6558 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6559 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6560 $as_echo_n "(cached) " >&6
6561 else
6562 save_CFLAGS="$CFLAGS"
6563 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565 /* end confdefs.h. */
6566
6567 int
6568 main ()
6569 {
6570
6571 ;
6572 return 0;
6573 }
6574 _ACEOF
6575 if ac_fn_c_try_compile "$LINENO"; then :
6576 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6577 else
6578 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6579 fi
6580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6581 CFLAGS="$save_CFLAGS"
6582 fi
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6584 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6585 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6586 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6587 fi
6588
6589 fi
6590
6591 # Check whether --enable-werror-always was given.
6592 if test "${enable_werror_always+set}" = set; then :
6593 enableval=$enable_werror_always;
6594 else
6595 enable_werror_always=no
6596 fi
6597
6598 if test $enable_werror_always = yes; then :
6599 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6600 fi
6601
6602
6603
6604 # The above macros do nothing if the compiler is not GCC. However, the
6605 # Makefile has more goo to add other flags, so these variables are used
6606 # to enable warnings only for GCC.
6607 warn_cflags=
6608 warn_cxxflags=
6609 if test "x$GCC" = "xyes"; then
6610 warn_cflags='$(GCC_WARN_CFLAGS)'
6611 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6612 fi
6613
6614
6615
6616 # Enable expensive internal checks
6617 is_release=
6618 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6619 is_release=yes
6620 fi
6621
6622 # Check whether --enable-checking was given.
6623 if test "${enable_checking+set}" = set; then :
6624 enableval=$enable_checking; ac_checking_flags="${enableval}"
6625 else
6626
6627 # Determine the default checks.
6628 if test x$is_release = x ; then
6629 ac_checking_flags=yes
6630 else
6631 ac_checking_flags=release
6632 fi
6633 fi
6634
6635 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6636 for check in release $ac_checking_flags
6637 do
6638 case $check in
6639 # these set all the flags to specific states
6640 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6641 ac_fold_checking= ; ac_gc_checking=1 ;
6642 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6643 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6644 ac_tree_checking=1 ; ac_valgrind_checking= ;
6645 ac_types_checking=1 ;;
6646 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6647 ac_fold_checking= ; ac_gc_checking= ;
6648 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6649 ac_rtlflag_checking= ; ac_runtime_checking= ;
6650 ac_tree_checking= ; ac_valgrind_checking= ;
6651 ac_types_checking= ;;
6652 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6653 ac_fold_checking=1 ; ac_gc_checking=1 ;
6654 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6655 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6656 ac_tree_checking=1 ; ac_valgrind_checking= ;
6657 ac_types_checking=1 ;;
6658 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6659 ac_fold_checking= ; ac_gc_checking= ;
6660 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6661 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6662 ac_tree_checking= ; ac_valgrind_checking= ;
6663 ac_types_checking= ;;
6664 # these enable particular checks
6665 assert) ac_assert_checking=1 ;;
6666 df) ac_df_checking=1 ;;
6667 fold) ac_fold_checking=1 ;;
6668 gc) ac_gc_checking=1 ;;
6669 gcac) ac_gc_always_collect=1 ;;
6670 gimple) ac_gimple_checking=1 ;;
6671 misc) ac_checking=1 ;;
6672 rtl) ac_rtl_checking=1 ;;
6673 rtlflag) ac_rtlflag_checking=1 ;;
6674 runtime) ac_runtime_checking=1 ;;
6675 tree) ac_tree_checking=1 ;;
6676 types) ac_types_checking=1 ;;
6677 valgrind) ac_valgrind_checking=1 ;;
6678 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6679 esac
6680 done
6681 IFS="$ac_save_IFS"
6682
6683 nocommon_flag=""
6684 if test x$ac_checking != x ; then
6685
6686 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6687
6688 nocommon_flag=-fno-common
6689 fi
6690
6691 if test x$ac_df_checking != x ; then
6692
6693 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6694
6695 fi
6696 if test x$ac_assert_checking != x ; then
6697
6698 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6699
6700 fi
6701 if test x$ac_gimple_checking != x ; then
6702
6703 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6704
6705 fi
6706
6707 if test x$ac_runtime_checking != x ; then
6708
6709 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6710
6711 fi
6712 if test x$ac_tree_checking != x ; then
6713
6714 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6715
6716 TREEBROWSER=tree-browser.o
6717 fi
6718 if test x$ac_types_checking != x ; then
6719
6720 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6721
6722 fi
6723
6724 if test x$ac_rtl_checking != x ; then
6725
6726 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6727
6728 fi
6729 if test x$ac_rtlflag_checking != x ; then
6730
6731 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6732
6733 fi
6734 if test x$ac_gc_checking != x ; then
6735
6736 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6737
6738 fi
6739 if test x$ac_gc_always_collect != x ; then
6740
6741 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6742
6743 fi
6744 if test x$ac_fold_checking != x ; then
6745
6746 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6747
6748 fi
6749 valgrind_path_defines=
6750 valgrind_command=
6751
6752 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6753 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6754 have_valgrind_h=yes
6755 else
6756 have_valgrind_h=no
6757 fi
6758
6759
6760
6761 if test x$ac_valgrind_checking != x ; then
6762 # It is certainly possible that there's valgrind but no valgrind.h.
6763 # GCC relies on making annotations so we must have both.
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6765 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767 /* end confdefs.h. */
6768 #include <valgrind/memcheck.h>
6769 #ifndef VALGRIND_DISCARD
6770 #error VALGRIND_DISCARD not defined
6771 #endif
6772 _ACEOF
6773 if ac_fn_c_try_cpp "$LINENO"; then :
6774 gcc_cv_header_valgrind_memcheck_h=yes
6775 else
6776 gcc_cv_header_valgrind_memcheck_h=no
6777 fi
6778 rm -f conftest.err conftest.$ac_ext
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6780 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6782 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6784 /* end confdefs.h. */
6785 #include <memcheck.h>
6786 #ifndef VALGRIND_DISCARD
6787 #error VALGRIND_DISCARD not defined
6788 #endif
6789 _ACEOF
6790 if ac_fn_c_try_cpp "$LINENO"; then :
6791 gcc_cv_header_memcheck_h=yes
6792 else
6793 gcc_cv_header_memcheck_h=no
6794 fi
6795 rm -f conftest.err conftest.$ac_ext
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6797 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6798
6799 # Prepare PATH_SEPARATOR.
6800 # The user is always right.
6801 if test "${PATH_SEPARATOR+set}" != set; then
6802 echo "#! /bin/sh" >conf$$.sh
6803 echo "exit 0" >>conf$$.sh
6804 chmod +x conf$$.sh
6805 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6806 PATH_SEPARATOR=';'
6807 else
6808 PATH_SEPARATOR=:
6809 fi
6810 rm -f conf$$.sh
6811 fi
6812
6813 # Find out how to test for executable files. Don't use a zero-byte file,
6814 # as systems may use methods other than mode bits to determine executability.
6815 cat >conf$$.file <<_ASEOF
6816 #! /bin/sh
6817 exit 0
6818 _ASEOF
6819 chmod +x conf$$.file
6820 if test -x conf$$.file >/dev/null 2>&1; then
6821 ac_executable_p="test -x"
6822 else
6823 ac_executable_p="test -f"
6824 fi
6825 rm -f conf$$.file
6826
6827 # Extract the first word of "valgrind", so it can be a program name with args.
6828 set dummy valgrind; ac_word=$2
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6830 $as_echo_n "checking for $ac_word... " >&6; }
6831 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6832 $as_echo_n "(cached) " >&6
6833 else
6834 case "$valgrind_path" in
6835 [\\/]* | ?:[\\/]*)
6836 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6837 ;;
6838 *)
6839 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6840 for ac_dir in $PATH; do
6841 IFS="$ac_save_IFS"
6842 test -z "$ac_dir" && ac_dir=.
6843 for ac_exec_ext in '' $ac_executable_extensions; do
6844 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6845 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6846 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6847 break 2
6848 fi
6849 fi
6850 done
6851 done
6852 IFS="$ac_save_IFS"
6853 ;;
6854 esac
6855 fi
6856 valgrind_path="$ac_cv_path_valgrind_path"
6857 if test -n "$valgrind_path"; then
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6859 $as_echo "$valgrind_path" >&6; }
6860 else
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6862 $as_echo "no" >&6; }
6863 fi
6864
6865 if test "x$valgrind_path" = "x" \
6866 || (test $have_valgrind_h = no \
6867 && test $gcc_cv_header_memcheck_h = no \
6868 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6869 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6870 fi
6871 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6872 valgrind_command="$valgrind_path -q"
6873
6874 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6875
6876 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6877
6878 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6879
6880 fi
6881 if test $gcc_cv_header_memcheck_h = yes; then
6882
6883 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6884
6885 fi
6886 fi
6887
6888
6889
6890 # Enable code coverage collection
6891 # Check whether --enable-coverage was given.
6892 if test "${enable_coverage+set}" = set; then :
6893 enableval=$enable_coverage; case "${enableval}" in
6894 yes|noopt)
6895 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6896 ;;
6897 opt)
6898 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6899 ;;
6900 no)
6901 # a.k.a. --disable-coverage
6902 coverage_flags=""
6903 ;;
6904 *)
6905 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6906 ;;
6907 esac
6908 else
6909 coverage_flags=""
6910 fi
6911
6912
6913
6914 # Check whether --enable-gather-detailed-mem-stats was given.
6915 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6916 enableval=$enable_gather_detailed_mem_stats;
6917 else
6918 enable_gather_detailed_mem_stats=no
6919 fi
6920
6921 if test x$enable_gather_detailed_mem_stats = xyes ; then
6922
6923 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6924
6925 fi
6926
6927 # -------------------------------
6928 # Miscenalleous configure options
6929 # -------------------------------
6930
6931 # See if we are building gcc with C++.
6932 # Check whether --enable-build-with-cxx was given.
6933 if test "${enable_build_with_cxx+set}" = set; then :
6934 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6935 else
6936 ENABLE_BUILD_WITH_CXX=no
6937 fi
6938
6939
6940 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6941
6942 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6943
6944 fi
6945
6946 # With stabs
6947
6948 # Check whether --with-stabs was given.
6949 if test "${with_stabs+set}" = set; then :
6950 withval=$with_stabs; stabs="$with_stabs"
6951 else
6952 stabs=no
6953 fi
6954
6955
6956 # Determine whether or not multilibs are enabled.
6957 # Check whether --enable-multilib was given.
6958 if test "${enable_multilib+set}" = set; then :
6959 enableval=$enable_multilib;
6960 else
6961 enable_multilib=yes
6962 fi
6963
6964
6965
6966 # Enable __cxa_atexit for C++.
6967 # Check whether --enable-__cxa_atexit was given.
6968 if test "${enable___cxa_atexit+set}" = set; then :
6969 enableval=$enable___cxa_atexit;
6970 fi
6971
6972
6973 # Enable C extension for decimal float if target supports it.
6974
6975 # Check whether --enable-decimal-float was given.
6976 if test "${enable_decimal_float+set}" = set; then :
6977 enableval=$enable_decimal_float;
6978 case $enable_decimal_float in
6979 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6980 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6981 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6982 esac
6983
6984 else
6985
6986 case $target in
6987 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6988 i?86*-*-mingw* | x86_64*-*-mingw* | \
6989 i?86*-*-cygwin*)
6990 enable_decimal_float=yes
6991 ;;
6992 *)
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6994 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6995 enable_decimal_float=no
6996 ;;
6997 esac
6998
6999 fi
7000
7001
7002 # x86's use BID format instead of DPD
7003 case x$enable_decimal_float in
7004 xyes)
7005 case $target in
7006 i?86*-*-* | x86_64*-*-*)
7007 enable_decimal_float=bid
7008 ;;
7009 *)
7010 enable_decimal_float=dpd
7011 ;;
7012 esac
7013 default_decimal_float=$enable_decimal_float
7014 ;;
7015 xno)
7016 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7017 # dependency on libdecnumber.
7018 default_decimal_float=dpd
7019 ;;
7020 esac
7021
7022
7023
7024
7025 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7026
7027 cat >>confdefs.h <<_ACEOF
7028 #define ENABLE_DECIMAL_FLOAT $dfp
7029 _ACEOF
7030
7031
7032 # Use default_decimal_float for dependency.
7033 enable_decimal_float=$default_decimal_float
7034
7035 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7036
7037 cat >>confdefs.h <<_ACEOF
7038 #define ENABLE_DECIMAL_BID_FORMAT $bid
7039 _ACEOF
7040
7041
7042 # Enable C extension for fixed-point arithmetic.
7043 # Check whether --enable-fixed-point was given.
7044 if test "${enable_fixed_point+set}" = set; then :
7045 enableval=$enable_fixed_point;
7046 else
7047
7048 case $target in
7049 arm*)
7050 enable_fixed_point=yes
7051 ;;
7052
7053 mips*-*-*)
7054 case $host in
7055 mips*-sgi-irix*)
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
7057 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
7058 enable_fixed_point=no
7059 ;;
7060 *)
7061 enable_fixed_point=yes
7062 ;;
7063 esac
7064 ;;
7065 *)
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7067 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7068 enable_fixed_point=no
7069 ;;
7070 esac
7071
7072 fi
7073
7074
7075
7076 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7077
7078 cat >>confdefs.h <<_ACEOF
7079 #define ENABLE_FIXED_POINT $fixedpoint
7080 _ACEOF
7081
7082
7083 # Enable threads
7084 # Pass with no value to take the default
7085 # Pass with a value to specify a thread package
7086 # Check whether --enable-threads was given.
7087 if test "${enable_threads+set}" = set; then :
7088 enableval=$enable_threads;
7089 else
7090 enable_threads=''
7091 fi
7092
7093
7094 # Check whether --enable-tls was given.
7095 if test "${enable_tls+set}" = set; then :
7096 enableval=$enable_tls;
7097 case $enable_tls in
7098 yes | no) ;;
7099 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7100 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7101 esac
7102
7103 else
7104 enable_tls=''
7105 fi
7106
7107
7108 # Check whether --enable-objc-gc was given.
7109 if test "${enable_objc_gc+set}" = set; then :
7110 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7111 objc_boehm_gc=''
7112 else
7113 objc_boehm_gc=1
7114 fi
7115 else
7116 objc_boehm_gc=''
7117 fi
7118
7119
7120
7121 # Check whether --with-dwarf2 was given.
7122 if test "${with_dwarf2+set}" = set; then :
7123 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7124 else
7125 dwarf2=no
7126 fi
7127
7128
7129 # Check whether --enable-shared was given.
7130 if test "${enable_shared+set}" = set; then :
7131 enableval=$enable_shared;
7132 case $enable_shared in
7133 yes | no) ;;
7134 *)
7135 enable_shared=no
7136 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7137 for pkg in $enableval; do
7138 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7139 enable_shared=yes
7140 fi
7141 done
7142 IFS="$ac_save_ifs"
7143 ;;
7144 esac
7145
7146 else
7147 enable_shared=yes
7148 fi
7149
7150
7151
7152
7153 # Check whether --with-native-system-header-dir was given.
7154 if test "${with_native_system_header_dir+set}" = set; then :
7155 withval=$with_native_system_header_dir;
7156 case ${with_native_system_header_dir} in
7157 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7158 /* | [A-Za-z]:[\\/]*) ;;
7159 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7160 esac
7161 configured_native_system_header_dir="${withval}"
7162
7163 else
7164 configured_native_system_header_dir=
7165 fi
7166
7167
7168
7169 # Check whether --with-build-sysroot was given.
7170 if test "${with_build_sysroot+set}" = set; then :
7171 withval=$with_build_sysroot; if test x"$withval" != x ; then
7172 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7173 fi
7174 else
7175 SYSROOT_CFLAGS_FOR_TARGET=
7176 fi
7177
7178
7179
7180
7181 # Check whether --with-sysroot was given.
7182 if test "${with_sysroot+set}" = set; then :
7183 withval=$with_sysroot;
7184 case ${with_sysroot} in
7185 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7186 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7187 esac
7188
7189 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7190 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7191
7192 if test "x$prefix" = xNONE; then
7193 test_prefix=/usr/local
7194 else
7195 test_prefix=$prefix
7196 fi
7197 if test "x$exec_prefix" = xNONE; then
7198 test_exec_prefix=$test_prefix
7199 else
7200 test_exec_prefix=$exec_prefix
7201 fi
7202 case ${TARGET_SYSTEM_ROOT} in
7203 "${test_prefix}"|"${test_prefix}/"*|\
7204 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7205 '${prefix}'|'${prefix}/'*|\
7206 '${exec_prefix}'|'${exec_prefix}/'*)
7207 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7208 TARGET_SYSTEM_ROOT_DEFINE="$t"
7209 ;;
7210 esac
7211
7212 else
7213
7214 TARGET_SYSTEM_ROOT=
7215 TARGET_SYSTEM_ROOT_DEFINE=
7216 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7217
7218 fi
7219
7220
7221
7222
7223
7224
7225 # Check whether --with-specs was given.
7226 if test "${with_specs+set}" = set; then :
7227 withval=$with_specs; CONFIGURE_SPECS=$withval
7228 else
7229 CONFIGURE_SPECS=
7230
7231 fi
7232
7233
7234
7235
7236
7237 # Check whether --with-pkgversion was given.
7238 if test "${with_pkgversion+set}" = set; then :
7239 withval=$with_pkgversion; case "$withval" in
7240 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7241 no) PKGVERSION= ;;
7242 *) PKGVERSION="($withval) " ;;
7243 esac
7244 else
7245 PKGVERSION="(GCC) "
7246
7247 fi
7248
7249
7250
7251
7252
7253 # Check whether --with-bugurl was given.
7254 if test "${with_bugurl+set}" = set; then :
7255 withval=$with_bugurl; case "$withval" in
7256 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7257 no) BUGURL=
7258 ;;
7259 *) BUGURL="$withval"
7260 ;;
7261 esac
7262 else
7263 BUGURL="http://gcc.gnu.org/bugs.html"
7264
7265 fi
7266
7267 case ${BUGURL} in
7268 "")
7269 REPORT_BUGS_TO=
7270 REPORT_BUGS_TEXI=
7271 ;;
7272 *)
7273 REPORT_BUGS_TO="<$BUGURL>"
7274 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7275 ;;
7276 esac;
7277
7278
7279
7280
7281 # Sanity check enable_languages in case someone does not run the toplevel
7282 # configure # script.
7283 # Check whether --enable-languages was given.
7284 if test "${enable_languages+set}" = set; then :
7285 enableval=$enable_languages; case ,${enable_languages}, in
7286 ,,|,yes,)
7287 # go safe -- we cannot be much sure without the toplevel
7288 # configure's
7289 # analysis of which target libs are present and usable
7290 enable_languages=c
7291 ;;
7292 *,all,*)
7293 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7294 ;;
7295 *,c,*)
7296 ;;
7297 *)
7298 enable_languages=c,${enable_languages}
7299 ;;
7300 esac
7301 else
7302 enable_languages=c
7303 fi
7304
7305
7306
7307 # Check whether --with-multilib-list was given.
7308 if test "${with_multilib_list+set}" = set; then :
7309 withval=$with_multilib_list; :
7310 else
7311 with_multilib_list=default
7312 fi
7313
7314
7315 # -------------------------
7316 # Checks for other programs
7317 # -------------------------
7318
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7320 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7321 set x ${MAKE-make}
7322 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7323 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7324 $as_echo_n "(cached) " >&6
7325 else
7326 cat >conftest.make <<\_ACEOF
7327 SHELL = /bin/sh
7328 all:
7329 @echo '@@@%%%=$(MAKE)=@@@%%%'
7330 _ACEOF
7331 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7332 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7333 *@@@%%%=?*=@@@%%%*)
7334 eval ac_cv_prog_make_${ac_make}_set=yes;;
7335 *)
7336 eval ac_cv_prog_make_${ac_make}_set=no;;
7337 esac
7338 rm -f conftest.make
7339 fi
7340 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7342 $as_echo "yes" >&6; }
7343 SET_MAKE=
7344 else
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7346 $as_echo "no" >&6; }
7347 SET_MAKE="MAKE=${MAKE-make}"
7348 fi
7349
7350
7351 # Find some useful tools
7352 for ac_prog in gawk mawk nawk awk
7353 do
7354 # Extract the first word of "$ac_prog", so it can be a program name with args.
7355 set dummy $ac_prog; ac_word=$2
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7357 $as_echo_n "checking for $ac_word... " >&6; }
7358 if test "${ac_cv_prog_AWK+set}" = set; then :
7359 $as_echo_n "(cached) " >&6
7360 else
7361 if test -n "$AWK"; then
7362 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7363 else
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 for as_dir in $PATH
7366 do
7367 IFS=$as_save_IFS
7368 test -z "$as_dir" && as_dir=.
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7371 ac_cv_prog_AWK="$ac_prog"
7372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7373 break 2
7374 fi
7375 done
7376 done
7377 IFS=$as_save_IFS
7378
7379 fi
7380 fi
7381 AWK=$ac_cv_prog_AWK
7382 if test -n "$AWK"; then
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7384 $as_echo "$AWK" >&6; }
7385 else
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7387 $as_echo "no" >&6; }
7388 fi
7389
7390
7391 test -n "$AWK" && break
7392 done
7393
7394 # We need awk to create options.c and options.h.
7395 # Bail out if it's missing.
7396 case ${AWK} in
7397 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7398 esac
7399
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7401 $as_echo_n "checking whether ln -s works... " >&6; }
7402 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7403 $as_echo_n "(cached) " >&6
7404 else
7405 rm -f conftestdata_t
7406 echo >conftestdata_f
7407 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7408 then
7409 gcc_cv_prog_LN_S="ln -s"
7410 else
7411 if ln conftestdata_f conftestdata_t 2>/dev/null
7412 then
7413 gcc_cv_prog_LN_S=ln
7414 else
7415 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7416 then
7417 gcc_cv_prog_LN_S="cp -p"
7418 else
7419 gcc_cv_prog_LN_S=cp
7420 fi
7421 fi
7422 fi
7423 rm -f conftestdata_f conftestdata_t
7424
7425 fi
7426 LN_S="$gcc_cv_prog_LN_S"
7427 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7429 $as_echo "yes" >&6; }
7430 else
7431 if test "$gcc_cv_prog_LN_S" = "ln"; then
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7433 $as_echo "no, using ln" >&6; }
7434 else
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7436 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7437 fi
7438 fi
7439
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7441 $as_echo_n "checking whether ln works... " >&6; }
7442 if test "${acx_cv_prog_LN+set}" = set; then :
7443 $as_echo_n "(cached) " >&6
7444 else
7445 rm -f conftestdata_t
7446 echo >conftestdata_f
7447 if ln conftestdata_f conftestdata_t 2>/dev/null
7448 then
7449 acx_cv_prog_LN=ln
7450 else
7451 acx_cv_prog_LN=no
7452 fi
7453 rm -f conftestdata_f conftestdata_t
7454
7455 fi
7456 if test $acx_cv_prog_LN = no; then
7457 LN="$LN_S"
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7459 $as_echo "no, using $LN" >&6; }
7460 else
7461 LN="$acx_cv_prog_LN"
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7463 $as_echo "yes" >&6; }
7464 fi
7465
7466 if test -n "$ac_tool_prefix"; then
7467 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7468 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7470 $as_echo_n "checking for $ac_word... " >&6; }
7471 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7472 $as_echo_n "(cached) " >&6
7473 else
7474 if test -n "$RANLIB"; then
7475 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7476 else
7477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478 for as_dir in $PATH
7479 do
7480 IFS=$as_save_IFS
7481 test -z "$as_dir" && as_dir=.
7482 for ac_exec_ext in '' $ac_executable_extensions; do
7483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7484 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7486 break 2
7487 fi
7488 done
7489 done
7490 IFS=$as_save_IFS
7491
7492 fi
7493 fi
7494 RANLIB=$ac_cv_prog_RANLIB
7495 if test -n "$RANLIB"; then
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7497 $as_echo "$RANLIB" >&6; }
7498 else
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7500 $as_echo "no" >&6; }
7501 fi
7502
7503
7504 fi
7505 if test -z "$ac_cv_prog_RANLIB"; then
7506 ac_ct_RANLIB=$RANLIB
7507 # Extract the first word of "ranlib", so it can be a program name with args.
7508 set dummy ranlib; ac_word=$2
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7510 $as_echo_n "checking for $ac_word... " >&6; }
7511 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7512 $as_echo_n "(cached) " >&6
7513 else
7514 if test -n "$ac_ct_RANLIB"; then
7515 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7516 else
7517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518 for as_dir in $PATH
7519 do
7520 IFS=$as_save_IFS
7521 test -z "$as_dir" && as_dir=.
7522 for ac_exec_ext in '' $ac_executable_extensions; do
7523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7524 ac_cv_prog_ac_ct_RANLIB="ranlib"
7525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7526 break 2
7527 fi
7528 done
7529 done
7530 IFS=$as_save_IFS
7531
7532 fi
7533 fi
7534 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7535 if test -n "$ac_ct_RANLIB"; then
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7537 $as_echo "$ac_ct_RANLIB" >&6; }
7538 else
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7540 $as_echo "no" >&6; }
7541 fi
7542
7543 if test "x$ac_ct_RANLIB" = x; then
7544 RANLIB=":"
7545 else
7546 case $cross_compiling:$ac_tool_warned in
7547 yes:)
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7550 ac_tool_warned=yes ;;
7551 esac
7552 RANLIB=$ac_ct_RANLIB
7553 fi
7554 else
7555 RANLIB="$ac_cv_prog_RANLIB"
7556 fi
7557
7558 case "${host}" in
7559 *-*-darwin*)
7560 # By default, the Darwin ranlib will not treat common symbols as
7561 # definitions when building the archive table of contents. Other
7562 # ranlibs do that; pass an option to the Darwin ranlib that makes
7563 # it behave similarly.
7564 ranlib_flags="-c"
7565 ;;
7566 *)
7567 ranlib_flags=""
7568 esac
7569
7570
7571 # Find a good install program. We prefer a C program (faster),
7572 # so one script is as good as another. But avoid the broken or
7573 # incompatible versions:
7574 # SysV /etc/install, /usr/sbin/install
7575 # SunOS /usr/etc/install
7576 # IRIX /sbin/install
7577 # AIX /bin/install
7578 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7579 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7580 # ./install, which can be erroneously created by make from ./install.sh.
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7582 $as_echo_n "checking for a BSD compatible install... " >&6; }
7583 if test -z "$INSTALL"; then
7584 if test "${ac_cv_path_install+set}" = set; then :
7585 $as_echo_n "(cached) " >&6
7586 else
7587 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7588 for ac_dir in $PATH; do
7589 # Account for people who put trailing slashes in PATH elements.
7590 case "$ac_dir/" in
7591 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7592 *)
7593 # OSF1 and SCO ODT 3.0 have their own names for install.
7594 for ac_prog in ginstall scoinst install; do
7595 if test -f $ac_dir/$ac_prog; then
7596 if test $ac_prog = install &&
7597 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7598 # AIX install. It has an incompatible calling convention.
7599 # OSF/1 installbsd also uses dspmsg, but is usable.
7600 :
7601 else
7602 ac_cv_path_install="$ac_dir/$ac_prog -c"
7603 break 2
7604 fi
7605 fi
7606 done
7607 ;;
7608 esac
7609 done
7610 IFS="$ac_save_IFS"
7611
7612 fi
7613 if test "${ac_cv_path_install+set}" = set; then
7614 INSTALL="$ac_cv_path_install"
7615 else
7616 # As a last resort, use the slow shell script. We don't cache a
7617 # path for INSTALL within a source directory, because that will
7618 # break other packages using the cache if that directory is
7619 # removed, or if the path is relative.
7620 INSTALL="$ac_install_sh"
7621 fi
7622 fi
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7624 $as_echo "$INSTALL" >&6; }
7625
7626 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7627 # It thinks the first close brace ends the variable substitution.
7628 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7629
7630 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7631
7632
7633 # See if cmp has --ignore-initial.
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7635 $as_echo_n "checking for cmp's capabilities... " >&6; }
7636 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7637 $as_echo_n "(cached) " >&6
7638 else
7639 echo abfoo >t1
7640 echo cdfoo >t2
7641 gcc_cv_prog_cmp_skip=slowcompare
7642 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7643 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7644 :
7645 else
7646 gcc_cv_prog_cmp_skip=gnucompare
7647 fi
7648 fi
7649 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7650 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7651 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7652 :
7653 else
7654 gcc_cv_prog_cmp_skip=fastcompare
7655 fi
7656 fi
7657 fi
7658 rm t1 t2
7659
7660 fi
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7662 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7663 make_compare_target=$gcc_cv_prog_cmp_skip
7664
7665
7666
7667 # See if we have the mktemp command.
7668 # Extract the first word of "mktemp", so it can be a program name with args.
7669 set dummy mktemp; ac_word=$2
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7671 $as_echo_n "checking for $ac_word... " >&6; }
7672 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7673 $as_echo_n "(cached) " >&6
7674 else
7675 if test -n "$have_mktemp_command"; then
7676 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7677 else
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 for as_dir in $PATH
7680 do
7681 IFS=$as_save_IFS
7682 test -z "$as_dir" && as_dir=.
7683 for ac_exec_ext in '' $ac_executable_extensions; do
7684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7685 ac_cv_prog_have_mktemp_command="yes"
7686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7687 break 2
7688 fi
7689 done
7690 done
7691 IFS=$as_save_IFS
7692
7693 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7694 fi
7695 fi
7696 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7697 if test -n "$have_mktemp_command"; then
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7699 $as_echo "$have_mktemp_command" >&6; }
7700 else
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 $as_echo "no" >&6; }
7703 fi
7704
7705
7706
7707 # See if makeinfo has been installed and is modern enough
7708 # that we can use it.
7709
7710 # Extract the first word of "makeinfo", so it can be a program name with args.
7711 set dummy makeinfo; ac_word=$2
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7713 $as_echo_n "checking for $ac_word... " >&6; }
7714 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7715 $as_echo_n "(cached) " >&6
7716 else
7717 if test -n "$MAKEINFO"; then
7718 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7719 else
7720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721 for as_dir in $PATH
7722 do
7723 IFS=$as_save_IFS
7724 test -z "$as_dir" && as_dir=.
7725 for ac_exec_ext in '' $ac_executable_extensions; do
7726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7727 ac_cv_prog_MAKEINFO="makeinfo"
7728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7729 break 2
7730 fi
7731 done
7732 done
7733 IFS=$as_save_IFS
7734
7735 fi
7736 fi
7737 MAKEINFO=$ac_cv_prog_MAKEINFO
7738 if test -n "$MAKEINFO"; then
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7740 $as_echo "$MAKEINFO" >&6; }
7741 else
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743 $as_echo "no" >&6; }
7744 fi
7745
7746
7747 if test -n "$MAKEINFO"; then
7748 # Found it, now check the version.
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7750 $as_echo_n "checking for modern makeinfo... " >&6; }
7751 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7752 $as_echo_n "(cached) " >&6
7753 else
7754 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7755 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7756
7757 case $ac_prog_version in
7758 '') gcc_cv_prog_makeinfo_modern=no;;
7759 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7760 *) gcc_cv_prog_makeinfo_modern=no;;
7761 esac
7762
7763 fi
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7765 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7766 else
7767 gcc_cv_prog_makeinfo_modern=no
7768 fi
7769 if test $gcc_cv_prog_makeinfo_modern = no; then
7770 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7771 fi
7772
7773 if test $gcc_cv_prog_makeinfo_modern = no; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7775 *** Makeinfo is missing or too old.
7776 *** Info documentation will not be built." >&5
7777 $as_echo "$as_me: WARNING:
7778 *** Makeinfo is missing or too old.
7779 *** Info documentation will not be built." >&2;}
7780 BUILD_INFO=
7781 else
7782 BUILD_INFO=info
7783 fi
7784
7785
7786 # Is pod2man recent enough to regenerate manpages?
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7788 $as_echo_n "checking for recent Pod::Man... " >&6; }
7789 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7791 $as_echo "yes" >&6; }
7792 GENERATED_MANPAGES=generated-manpages
7793 else
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795 $as_echo "no" >&6; }
7796 GENERATED_MANPAGES=
7797 fi
7798
7799
7800 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7801
7802 # How about lex?
7803 for ac_prog in flex
7804 do
7805 # Extract the first word of "$ac_prog", so it can be a program name with args.
7806 set dummy $ac_prog; ac_word=$2
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808 $as_echo_n "checking for $ac_word... " >&6; }
7809 if test "${ac_cv_prog_FLEX+set}" = set; then :
7810 $as_echo_n "(cached) " >&6
7811 else
7812 if test -n "$FLEX"; then
7813 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7814 else
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816 for as_dir in $PATH
7817 do
7818 IFS=$as_save_IFS
7819 test -z "$as_dir" && as_dir=.
7820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7822 ac_cv_prog_FLEX="$ac_prog"
7823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7824 break 2
7825 fi
7826 done
7827 done
7828 IFS=$as_save_IFS
7829
7830 fi
7831 fi
7832 FLEX=$ac_cv_prog_FLEX
7833 if test -n "$FLEX"; then
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7835 $as_echo "$FLEX" >&6; }
7836 else
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838 $as_echo "no" >&6; }
7839 fi
7840
7841
7842 test -n "$FLEX" && break
7843 done
7844 test -n "$FLEX" || FLEX="$MISSING flex"
7845
7846
7847 # Bison?
7848 for ac_prog in bison
7849 do
7850 # Extract the first word of "$ac_prog", so it can be a program name with args.
7851 set dummy $ac_prog; ac_word=$2
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7853 $as_echo_n "checking for $ac_word... " >&6; }
7854 if test "${ac_cv_prog_BISON+set}" = set; then :
7855 $as_echo_n "(cached) " >&6
7856 else
7857 if test -n "$BISON"; then
7858 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7859 else
7860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7861 for as_dir in $PATH
7862 do
7863 IFS=$as_save_IFS
7864 test -z "$as_dir" && as_dir=.
7865 for ac_exec_ext in '' $ac_executable_extensions; do
7866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7867 ac_cv_prog_BISON="$ac_prog"
7868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7869 break 2
7870 fi
7871 done
7872 done
7873 IFS=$as_save_IFS
7874
7875 fi
7876 fi
7877 BISON=$ac_cv_prog_BISON
7878 if test -n "$BISON"; then
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7880 $as_echo "$BISON" >&6; }
7881 else
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7883 $as_echo "no" >&6; }
7884 fi
7885
7886
7887 test -n "$BISON" && break
7888 done
7889 test -n "$BISON" || BISON="$MISSING bison"
7890
7891
7892 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7893 # check for build == host before using them.
7894
7895 # NM
7896 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7897 && test -d ../binutils ; then
7898 NM='${objdir}/../binutils/nm-new'
7899 else
7900 # Extract the first word of "nm", so it can be a program name with args.
7901 set dummy nm; ac_word=$2
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7903 $as_echo_n "checking for $ac_word... " >&6; }
7904 if test "${ac_cv_prog_NM+set}" = set; then :
7905 $as_echo_n "(cached) " >&6
7906 else
7907 if test -n "$NM"; then
7908 ac_cv_prog_NM="$NM" # Let the user override the test.
7909 else
7910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 for as_dir in $PATH
7912 do
7913 IFS=$as_save_IFS
7914 test -z "$as_dir" && as_dir=.
7915 for ac_exec_ext in '' $ac_executable_extensions; do
7916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7917 ac_cv_prog_NM="nm"
7918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7919 break 2
7920 fi
7921 done
7922 done
7923 IFS=$as_save_IFS
7924
7925 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7926 fi
7927 fi
7928 NM=$ac_cv_prog_NM
7929 if test -n "$NM"; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7931 $as_echo "$NM" >&6; }
7932 else
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7934 $as_echo "no" >&6; }
7935 fi
7936
7937
7938 fi
7939
7940 # AR
7941 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7942 && test -d ../binutils ; then
7943 AR='${objdir}/../binutils/ar'
7944 else
7945 # Extract the first word of "ar", so it can be a program name with args.
7946 set dummy ar; ac_word=$2
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7948 $as_echo_n "checking for $ac_word... " >&6; }
7949 if test "${ac_cv_prog_AR+set}" = set; then :
7950 $as_echo_n "(cached) " >&6
7951 else
7952 if test -n "$AR"; then
7953 ac_cv_prog_AR="$AR" # Let the user override the test.
7954 else
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956 for as_dir in $PATH
7957 do
7958 IFS=$as_save_IFS
7959 test -z "$as_dir" && as_dir=.
7960 for ac_exec_ext in '' $ac_executable_extensions; do
7961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7962 ac_cv_prog_AR="ar"
7963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7964 break 2
7965 fi
7966 done
7967 done
7968 IFS=$as_save_IFS
7969
7970 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7971 fi
7972 fi
7973 AR=$ac_cv_prog_AR
7974 if test -n "$AR"; then
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7976 $as_echo "$AR" >&6; }
7977 else
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979 $as_echo "no" >&6; }
7980 fi
7981
7982
7983 fi
7984
7985
7986 # --------------------
7987 # Checks for C headers
7988 # --------------------
7989
7990 # Need to reject headers which give warnings, so that the -Werror bootstrap
7991 # works later. *sigh* This needs to come before all header checks.
7992
7993 ac_c_preproc_warn_flag=yes
7994
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7996 $as_echo_n "checking for ANSI C header files... " >&6; }
7997 if test "${ac_cv_header_stdc+set}" = set; then :
7998 $as_echo_n "(cached) " >&6
7999 else
8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h. */
8002 #include <stdlib.h>
8003 #include <stdarg.h>
8004 #include <string.h>
8005 #include <float.h>
8006
8007 int
8008 main ()
8009 {
8010
8011 ;
8012 return 0;
8013 }
8014 _ACEOF
8015 if ac_fn_c_try_compile "$LINENO"; then :
8016 ac_cv_header_stdc=yes
8017 else
8018 ac_cv_header_stdc=no
8019 fi
8020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8021
8022 if test $ac_cv_header_stdc = yes; then
8023 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025 /* end confdefs.h. */
8026 #include <string.h>
8027
8028 _ACEOF
8029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8030 $EGREP "memchr" >/dev/null 2>&1; then :
8031
8032 else
8033 ac_cv_header_stdc=no
8034 fi
8035 rm -f conftest*
8036
8037 fi
8038
8039 if test $ac_cv_header_stdc = yes; then
8040 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042 /* end confdefs.h. */
8043 #include <stdlib.h>
8044
8045 _ACEOF
8046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8047 $EGREP "free" >/dev/null 2>&1; then :
8048
8049 else
8050 ac_cv_header_stdc=no
8051 fi
8052 rm -f conftest*
8053
8054 fi
8055
8056 if test $ac_cv_header_stdc = yes; then
8057 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8058 if test "$cross_compiling" = yes; then :
8059 :
8060 else
8061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8062 /* end confdefs.h. */
8063 #include <ctype.h>
8064 #include <stdlib.h>
8065 #if ((' ' & 0x0FF) == 0x020)
8066 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8067 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8068 #else
8069 # define ISLOWER(c) \
8070 (('a' <= (c) && (c) <= 'i') \
8071 || ('j' <= (c) && (c) <= 'r') \
8072 || ('s' <= (c) && (c) <= 'z'))
8073 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8074 #endif
8075
8076 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8077 int
8078 main ()
8079 {
8080 int i;
8081 for (i = 0; i < 256; i++)
8082 if (XOR (islower (i), ISLOWER (i))
8083 || toupper (i) != TOUPPER (i))
8084 return 2;
8085 return 0;
8086 }
8087 _ACEOF
8088 if ac_fn_c_try_run "$LINENO"; then :
8089
8090 else
8091 ac_cv_header_stdc=no
8092 fi
8093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8094 conftest.$ac_objext conftest.beam conftest.$ac_ext
8095 fi
8096
8097 fi
8098 fi
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8100 $as_echo "$ac_cv_header_stdc" >&6; }
8101 if test $ac_cv_header_stdc = yes; then
8102
8103 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8104
8105 fi
8106
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8108 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8109 if test "${ac_cv_header_time+set}" = set; then :
8110 $as_echo_n "(cached) " >&6
8111 else
8112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8113 /* end confdefs.h. */
8114 #include <sys/types.h>
8115 #include <sys/time.h>
8116 #include <time.h>
8117
8118 int
8119 main ()
8120 {
8121 if ((struct tm *) 0)
8122 return 0;
8123 ;
8124 return 0;
8125 }
8126 _ACEOF
8127 if ac_fn_c_try_compile "$LINENO"; then :
8128 ac_cv_header_time=yes
8129 else
8130 ac_cv_header_time=no
8131 fi
8132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8133 fi
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8135 $as_echo "$ac_cv_header_time" >&6; }
8136 if test $ac_cv_header_time = yes; then
8137
8138 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8139
8140 fi
8141
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8143 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8144 if test "${gcc_cv_header_string+set}" = set; then :
8145 $as_echo_n "(cached) " >&6
8146 else
8147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8148 /* end confdefs.h. */
8149 #include <string.h>
8150 #include <strings.h>
8151 int
8152 main ()
8153 {
8154
8155 ;
8156 return 0;
8157 }
8158 _ACEOF
8159 if ac_fn_c_try_compile "$LINENO"; then :
8160 gcc_cv_header_string=yes
8161 else
8162 gcc_cv_header_string=no
8163 fi
8164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8165 fi
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8167 $as_echo "$gcc_cv_header_string" >&6; }
8168 if test $gcc_cv_header_string = yes; then
8169
8170 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8171
8172 fi
8173
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8175 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8176 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8177 $as_echo_n "(cached) " >&6
8178 else
8179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180 /* end confdefs.h. */
8181 #include <sys/types.h>
8182 #include <sys/wait.h>
8183 #ifndef WEXITSTATUS
8184 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8185 #endif
8186 #ifndef WIFEXITED
8187 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8188 #endif
8189
8190 int
8191 main ()
8192 {
8193 int s;
8194 wait (&s);
8195 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8196 ;
8197 return 0;
8198 }
8199 _ACEOF
8200 if ac_fn_c_try_compile "$LINENO"; then :
8201 ac_cv_header_sys_wait_h=yes
8202 else
8203 ac_cv_header_sys_wait_h=no
8204 fi
8205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8206 fi
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8208 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8209 if test $ac_cv_header_sys_wait_h = yes; then
8210
8211 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8212
8213 fi
8214
8215 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8216 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8217 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8218 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8219 do :
8220 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8221 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8222 eval as_val=\$$as_ac_Header
8223 if test "x$as_val" = x""yes; then :
8224 cat >>confdefs.h <<_ACEOF
8225 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8226 _ACEOF
8227
8228 fi
8229 done
8230
8231
8232 # Check for thread headers.
8233 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8234 if test "x$ac_cv_header_thread_h" = x""yes; then :
8235 have_thread_h=yes
8236 else
8237 have_thread_h=
8238 fi
8239
8240 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8241 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8242 have_pthread_h=yes
8243 else
8244 have_pthread_h=
8245 fi
8246
8247
8248 # These tests can't be done till we know if we have limits.h.
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8250 $as_echo_n "checking for CHAR_BIT... " >&6; }
8251 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8252 $as_echo_n "(cached) " >&6
8253 else
8254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8255 /* end confdefs.h. */
8256 #ifdef HAVE_LIMITS_H
8257 #include <limits.h>
8258 #endif
8259 #ifdef CHAR_BIT
8260 found
8261 #endif
8262 _ACEOF
8263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8264 $EGREP "found" >/dev/null 2>&1; then :
8265 gcc_cv_decl_char_bit=yes
8266 else
8267 gcc_cv_decl_char_bit=no
8268 fi
8269 rm -f conftest*
8270
8271
8272 fi
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8274 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8275 if test $gcc_cv_decl_char_bit = no; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8277 $as_echo_n "checking number of bits in a byte... " >&6; }
8278 if test "${gcc_cv_c_nbby+set}" = set; then :
8279 $as_echo_n "(cached) " >&6
8280 else
8281 i=8
8282 gcc_cv_c_nbby=
8283 while test $i -lt 65; do
8284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8285 /* end confdefs.h. */
8286
8287 int
8288 main ()
8289 {
8290 switch(0) {
8291 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8292 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8293 ; }
8294 ;
8295 return 0;
8296 }
8297 _ACEOF
8298 if ac_fn_c_try_compile "$LINENO"; then :
8299 gcc_cv_c_nbby=$i; break
8300 fi
8301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8302 i=`expr $i + 1`
8303 done
8304 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8305
8306 fi
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8308 $as_echo "$gcc_cv_c_nbby" >&6; }
8309 if test $gcc_cv_c_nbby = failed; then
8310 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8311 else
8312
8313 cat >>confdefs.h <<_ACEOF
8314 #define CHAR_BIT $gcc_cv_c_nbby
8315 _ACEOF
8316
8317 fi
8318 fi
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8320 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8321 if test "${ac_cv_c_bigendian+set}" = set; then :
8322 $as_echo_n "(cached) " >&6
8323 else
8324 ac_cv_c_bigendian=unknown
8325 # See if we're dealing with a universal compiler.
8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h. */
8328 #ifndef __APPLE_CC__
8329 not a universal capable compiler
8330 #endif
8331 typedef int dummy;
8332
8333 _ACEOF
8334 if ac_fn_c_try_compile "$LINENO"; then :
8335
8336 # Check for potential -arch flags. It is not universal unless
8337 # there are at least two -arch flags with different values.
8338 ac_arch=
8339 ac_prev=
8340 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8341 if test -n "$ac_prev"; then
8342 case $ac_word in
8343 i?86 | x86_64 | ppc | ppc64)
8344 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8345 ac_arch=$ac_word
8346 else
8347 ac_cv_c_bigendian=universal
8348 break
8349 fi
8350 ;;
8351 esac
8352 ac_prev=
8353 elif test "x$ac_word" = "x-arch"; then
8354 ac_prev=arch
8355 fi
8356 done
8357 fi
8358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8359 if test $ac_cv_c_bigendian = unknown; then
8360 # See if sys/param.h defines the BYTE_ORDER macro.
8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h. */
8363 #include <sys/types.h>
8364 #include <sys/param.h>
8365
8366 int
8367 main ()
8368 {
8369 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8370 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8371 && LITTLE_ENDIAN)
8372 bogus endian macros
8373 #endif
8374
8375 ;
8376 return 0;
8377 }
8378 _ACEOF
8379 if ac_fn_c_try_compile "$LINENO"; then :
8380 # It does; now see whether it defined to BIG_ENDIAN or not.
8381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382 /* end confdefs.h. */
8383 #include <sys/types.h>
8384 #include <sys/param.h>
8385
8386 int
8387 main ()
8388 {
8389 #if BYTE_ORDER != BIG_ENDIAN
8390 not big endian
8391 #endif
8392
8393 ;
8394 return 0;
8395 }
8396 _ACEOF
8397 if ac_fn_c_try_compile "$LINENO"; then :
8398 ac_cv_c_bigendian=yes
8399 else
8400 ac_cv_c_bigendian=no
8401 fi
8402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8403 fi
8404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8405 fi
8406 if test $ac_cv_c_bigendian = unknown; then
8407 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8409 /* end confdefs.h. */
8410 #include <limits.h>
8411
8412 int
8413 main ()
8414 {
8415 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8416 bogus endian macros
8417 #endif
8418
8419 ;
8420 return 0;
8421 }
8422 _ACEOF
8423 if ac_fn_c_try_compile "$LINENO"; then :
8424 # It does; now see whether it defined to _BIG_ENDIAN or not.
8425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8426 /* end confdefs.h. */
8427 #include <limits.h>
8428
8429 int
8430 main ()
8431 {
8432 #ifndef _BIG_ENDIAN
8433 not big endian
8434 #endif
8435
8436 ;
8437 return 0;
8438 }
8439 _ACEOF
8440 if ac_fn_c_try_compile "$LINENO"; then :
8441 ac_cv_c_bigendian=yes
8442 else
8443 ac_cv_c_bigendian=no
8444 fi
8445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8446 fi
8447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8448 fi
8449 if test $ac_cv_c_bigendian = unknown; then
8450 # Compile a test program.
8451 if test "$cross_compiling" = yes; then :
8452 # Try to guess by grepping values from an object file.
8453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454 /* end confdefs.h. */
8455 short int ascii_mm[] =
8456 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8457 short int ascii_ii[] =
8458 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8459 int use_ascii (int i) {
8460 return ascii_mm[i] + ascii_ii[i];
8461 }
8462 short int ebcdic_ii[] =
8463 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8464 short int ebcdic_mm[] =
8465 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8466 int use_ebcdic (int i) {
8467 return ebcdic_mm[i] + ebcdic_ii[i];
8468 }
8469 extern int foo;
8470
8471 int
8472 main ()
8473 {
8474 return use_ascii (foo) == use_ebcdic (foo);
8475 ;
8476 return 0;
8477 }
8478 _ACEOF
8479 if ac_fn_c_try_compile "$LINENO"; then :
8480 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8481 ac_cv_c_bigendian=yes
8482 fi
8483 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8484 if test "$ac_cv_c_bigendian" = unknown; then
8485 ac_cv_c_bigendian=no
8486 else
8487 # finding both strings is unlikely to happen, but who knows?
8488 ac_cv_c_bigendian=unknown
8489 fi
8490 fi
8491 fi
8492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8493 else
8494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8495 /* end confdefs.h. */
8496 $ac_includes_default
8497 int
8498 main ()
8499 {
8500
8501 /* Are we little or big endian? From Harbison&Steele. */
8502 union
8503 {
8504 long int l;
8505 char c[sizeof (long int)];
8506 } u;
8507 u.l = 1;
8508 return u.c[sizeof (long int) - 1] == 1;
8509
8510 ;
8511 return 0;
8512 }
8513 _ACEOF
8514 if ac_fn_c_try_run "$LINENO"; then :
8515 ac_cv_c_bigendian=no
8516 else
8517 ac_cv_c_bigendian=yes
8518 fi
8519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8520 conftest.$ac_objext conftest.beam conftest.$ac_ext
8521 fi
8522
8523 fi
8524 fi
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8526 $as_echo "$ac_cv_c_bigendian" >&6; }
8527 case $ac_cv_c_bigendian in #(
8528 yes)
8529 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8530 ;; #(
8531 no)
8532 ;; #(
8533 universal)
8534
8535 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8536
8537 ;; #(
8538 *)
8539 as_fn_error "unknown endianness
8540 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8541 esac
8542
8543
8544 # ----------------------
8545 # Checks for C++ headers
8546 # ----------------------
8547
8548 ac_ext=cpp
8549 ac_cpp='$CXXCPP $CPPFLAGS'
8550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8554 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8555 if test -z "$CXXCPP"; then
8556 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8557 $as_echo_n "(cached) " >&6
8558 else
8559 # Double quotes because CXXCPP needs to be expanded
8560 for CXXCPP in "$CXX -E" "/lib/cpp"
8561 do
8562 ac_preproc_ok=false
8563 for ac_cxx_preproc_warn_flag in '' yes
8564 do
8565 # Use a header file that comes with gcc, so configuring glibc
8566 # with a fresh cross-compiler works.
8567 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8568 # <limits.h> exists even on freestanding compilers.
8569 # On the NeXT, cc -E runs the code through the compiler's parser,
8570 # not just through cpp. "Syntax error" is here to catch this case.
8571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8572 /* end confdefs.h. */
8573 #ifdef __STDC__
8574 # include <limits.h>
8575 #else
8576 # include <assert.h>
8577 #endif
8578 Syntax error
8579 _ACEOF
8580 if ac_fn_cxx_try_cpp "$LINENO"; then :
8581
8582 else
8583 # Broken: fails on valid input.
8584 continue
8585 fi
8586 rm -f conftest.err conftest.$ac_ext
8587
8588 # OK, works on sane cases. Now check whether nonexistent headers
8589 # can be detected and how.
8590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8591 /* end confdefs.h. */
8592 #include <ac_nonexistent.h>
8593 _ACEOF
8594 if ac_fn_cxx_try_cpp "$LINENO"; then :
8595 # Broken: success on invalid input.
8596 continue
8597 else
8598 # Passes both tests.
8599 ac_preproc_ok=:
8600 break
8601 fi
8602 rm -f conftest.err conftest.$ac_ext
8603
8604 done
8605 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8606 rm -f conftest.err conftest.$ac_ext
8607 if $ac_preproc_ok; then :
8608 break
8609 fi
8610
8611 done
8612 ac_cv_prog_CXXCPP=$CXXCPP
8613
8614 fi
8615 CXXCPP=$ac_cv_prog_CXXCPP
8616 else
8617 ac_cv_prog_CXXCPP=$CXXCPP
8618 fi
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8620 $as_echo "$CXXCPP" >&6; }
8621 ac_preproc_ok=false
8622 for ac_cxx_preproc_warn_flag in '' yes
8623 do
8624 # Use a header file that comes with gcc, so configuring glibc
8625 # with a fresh cross-compiler works.
8626 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8627 # <limits.h> exists even on freestanding compilers.
8628 # On the NeXT, cc -E runs the code through the compiler's parser,
8629 # not just through cpp. "Syntax error" is here to catch this case.
8630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631 /* end confdefs.h. */
8632 #ifdef __STDC__
8633 # include <limits.h>
8634 #else
8635 # include <assert.h>
8636 #endif
8637 Syntax error
8638 _ACEOF
8639 if ac_fn_cxx_try_cpp "$LINENO"; then :
8640
8641 else
8642 # Broken: fails on valid input.
8643 continue
8644 fi
8645 rm -f conftest.err conftest.$ac_ext
8646
8647 # OK, works on sane cases. Now check whether nonexistent headers
8648 # can be detected and how.
8649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8650 /* end confdefs.h. */
8651 #include <ac_nonexistent.h>
8652 _ACEOF
8653 if ac_fn_cxx_try_cpp "$LINENO"; then :
8654 # Broken: success on invalid input.
8655 continue
8656 else
8657 # Passes both tests.
8658 ac_preproc_ok=:
8659 break
8660 fi
8661 rm -f conftest.err conftest.$ac_ext
8662
8663 done
8664 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8665 rm -f conftest.err conftest.$ac_ext
8666 if $ac_preproc_ok; then :
8667
8668 else
8669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8672 See \`config.log' for more details." >&5
8673 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8674 See \`config.log' for more details." >&2;}; }
8675 fi
8676
8677 ac_ext=c
8678 ac_cpp='$CPP $CPPFLAGS'
8679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8682
8683
8684 ac_ext=cpp
8685 ac_cpp='$CXXCPP $CPPFLAGS'
8686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8689
8690
8691
8692
8693 for ac_header in unordered_map
8694 do :
8695 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8696 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8697 cat >>confdefs.h <<_ACEOF
8698 #define HAVE_UNORDERED_MAP 1
8699 _ACEOF
8700
8701 fi
8702 done
8703
8704 for ac_header in tr1/unordered_map
8705 do :
8706 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8707 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8708 cat >>confdefs.h <<_ACEOF
8709 #define HAVE_TR1_UNORDERED_MAP 1
8710 _ACEOF
8711
8712 fi
8713 done
8714
8715 for ac_header in ext/hash_map
8716 do :
8717 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8718 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8719 cat >>confdefs.h <<_ACEOF
8720 #define HAVE_EXT_HASH_MAP 1
8721 _ACEOF
8722
8723 fi
8724 done
8725
8726
8727 ac_ext=c
8728 ac_cpp='$CPP $CPPFLAGS'
8729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8732
8733
8734 # --------
8735 # UNSORTED
8736 # --------
8737
8738
8739 # These libraries may be used by collect2.
8740 # We may need a special search path to get them linked.
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8742 $as_echo_n "checking for collect2 libraries... " >&6; }
8743 if test "${gcc_cv_collect2_libs+set}" = set; then :
8744 $as_echo_n "(cached) " >&6
8745 else
8746 save_LIBS="$LIBS"
8747 for libs in '' -lld -lmld \
8748 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8749 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8750 do
8751 LIBS="$libs"
8752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8753 /* end confdefs.h. */
8754
8755 /* Override any GCC internal prototype to avoid an error.
8756 Use char because int might match the return type of a GCC
8757 builtin and then its argument prototype would still apply. */
8758 #ifdef __cplusplus
8759 extern "C"
8760 #endif
8761 char ldopen ();
8762 int
8763 main ()
8764 {
8765 return ldopen ();
8766 ;
8767 return 0;
8768 }
8769 _ACEOF
8770 if ac_fn_c_try_link "$LINENO"; then :
8771 gcc_cv_collect2_libs="$libs"; break
8772 fi
8773 rm -f core conftest.err conftest.$ac_objext \
8774 conftest$ac_exeext conftest.$ac_ext
8775 done
8776 LIBS="$save_LIBS"
8777 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8778 fi
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8780 $as_echo "$gcc_cv_collect2_libs" >&6; }
8781 case $gcc_cv_collect2_libs in
8782 "none required") ;;
8783 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8784 esac
8785
8786
8787 # When building Ada code on Alpha, we need exc_resume which is usually in
8788 # -lexc. So test for it.
8789 save_LIBS="$LIBS"
8790 LIBS=
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8792 $as_echo_n "checking for library containing exc_resume... " >&6; }
8793 if test "${ac_cv_search_exc_resume+set}" = set; then :
8794 $as_echo_n "(cached) " >&6
8795 else
8796 ac_func_search_save_LIBS=$LIBS
8797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8798 /* end confdefs.h. */
8799
8800 /* Override any GCC internal prototype to avoid an error.
8801 Use char because int might match the return type of a GCC
8802 builtin and then its argument prototype would still apply. */
8803 #ifdef __cplusplus
8804 extern "C"
8805 #endif
8806 char exc_resume ();
8807 int
8808 main ()
8809 {
8810 return exc_resume ();
8811 ;
8812 return 0;
8813 }
8814 _ACEOF
8815 for ac_lib in '' exc; do
8816 if test -z "$ac_lib"; then
8817 ac_res="none required"
8818 else
8819 ac_res=-l$ac_lib
8820 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8821 fi
8822 if ac_fn_c_try_link "$LINENO"; then :
8823 ac_cv_search_exc_resume=$ac_res
8824 fi
8825 rm -f core conftest.err conftest.$ac_objext \
8826 conftest$ac_exeext
8827 if test "${ac_cv_search_exc_resume+set}" = set; then :
8828 break
8829 fi
8830 done
8831 if test "${ac_cv_search_exc_resume+set}" = set; then :
8832
8833 else
8834 ac_cv_search_exc_resume=no
8835 fi
8836 rm conftest.$ac_ext
8837 LIBS=$ac_func_search_save_LIBS
8838 fi
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8840 $as_echo "$ac_cv_search_exc_resume" >&6; }
8841 ac_res=$ac_cv_search_exc_resume
8842 if test "$ac_res" != no; then :
8843 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8844
8845 fi
8846
8847 GNAT_LIBEXC="$LIBS"
8848 LIBS="$save_LIBS"
8849
8850
8851 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8852 save_LIBS="$LIBS"
8853 LIBS=
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8855 $as_echo_n "checking for library containing kstat_open... " >&6; }
8856 if test "${ac_cv_search_kstat_open+set}" = set; then :
8857 $as_echo_n "(cached) " >&6
8858 else
8859 ac_func_search_save_LIBS=$LIBS
8860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861 /* end confdefs.h. */
8862
8863 /* Override any GCC internal prototype to avoid an error.
8864 Use char because int might match the return type of a GCC
8865 builtin and then its argument prototype would still apply. */
8866 #ifdef __cplusplus
8867 extern "C"
8868 #endif
8869 char kstat_open ();
8870 int
8871 main ()
8872 {
8873 return kstat_open ();
8874 ;
8875 return 0;
8876 }
8877 _ACEOF
8878 for ac_lib in '' kstat; do
8879 if test -z "$ac_lib"; then
8880 ac_res="none required"
8881 else
8882 ac_res=-l$ac_lib
8883 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8884 fi
8885 if ac_fn_c_try_link "$LINENO"; then :
8886 ac_cv_search_kstat_open=$ac_res
8887 fi
8888 rm -f core conftest.err conftest.$ac_objext \
8889 conftest$ac_exeext
8890 if test "${ac_cv_search_kstat_open+set}" = set; then :
8891 break
8892 fi
8893 done
8894 if test "${ac_cv_search_kstat_open+set}" = set; then :
8895
8896 else
8897 ac_cv_search_kstat_open=no
8898 fi
8899 rm conftest.$ac_ext
8900 LIBS=$ac_func_search_save_LIBS
8901 fi
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8903 $as_echo "$ac_cv_search_kstat_open" >&6; }
8904 ac_res=$ac_cv_search_kstat_open
8905 if test "$ac_res" != no; then :
8906 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8907
8908 fi
8909
8910 EXTRA_GCC_LIBS="$LIBS"
8911 LIBS="$save_LIBS"
8912
8913
8914 # Some systems put ldexp and frexp in libm instead of libc; assume
8915 # they're both in the same place. jcf-dump needs them.
8916 save_LIBS="$LIBS"
8917 LIBS=
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8919 $as_echo_n "checking for library containing ldexp... " >&6; }
8920 if test "${ac_cv_search_ldexp+set}" = set; then :
8921 $as_echo_n "(cached) " >&6
8922 else
8923 ac_func_search_save_LIBS=$LIBS
8924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8925 /* end confdefs.h. */
8926
8927 /* Override any GCC internal prototype to avoid an error.
8928 Use char because int might match the return type of a GCC
8929 builtin and then its argument prototype would still apply. */
8930 #ifdef __cplusplus
8931 extern "C"
8932 #endif
8933 char ldexp ();
8934 int
8935 main ()
8936 {
8937 return ldexp ();
8938 ;
8939 return 0;
8940 }
8941 _ACEOF
8942 for ac_lib in '' m; do
8943 if test -z "$ac_lib"; then
8944 ac_res="none required"
8945 else
8946 ac_res=-l$ac_lib
8947 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8948 fi
8949 if ac_fn_c_try_link "$LINENO"; then :
8950 ac_cv_search_ldexp=$ac_res
8951 fi
8952 rm -f core conftest.err conftest.$ac_objext \
8953 conftest$ac_exeext
8954 if test "${ac_cv_search_ldexp+set}" = set; then :
8955 break
8956 fi
8957 done
8958 if test "${ac_cv_search_ldexp+set}" = set; then :
8959
8960 else
8961 ac_cv_search_ldexp=no
8962 fi
8963 rm conftest.$ac_ext
8964 LIBS=$ac_func_search_save_LIBS
8965 fi
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8967 $as_echo "$ac_cv_search_ldexp" >&6; }
8968 ac_res=$ac_cv_search_ldexp
8969 if test "$ac_res" != no; then :
8970 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8971
8972 fi
8973
8974 LDEXP_LIB="$LIBS"
8975 LIBS="$save_LIBS"
8976
8977
8978 # Use <inttypes.h> only if it exists,
8979 # doesn't clash with <sys/types.h>, and declares intmax_t.
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8981 $as_echo_n "checking for inttypes.h... " >&6; }
8982 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8983 $as_echo_n "(cached) " >&6
8984 else
8985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8986 /* end confdefs.h. */
8987 #include <sys/types.h>
8988 #include <inttypes.h>
8989 int
8990 main ()
8991 {
8992 intmax_t i = -1;
8993 ;
8994 return 0;
8995 }
8996 _ACEOF
8997 if ac_fn_c_try_compile "$LINENO"; then :
8998 gcc_cv_header_inttypes_h=yes
8999 else
9000 gcc_cv_header_inttypes_h=no
9001 fi
9002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9003 fi
9004
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9006 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9007 if test $gcc_cv_header_inttypes_h = yes; then
9008
9009 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9010
9011 fi
9012
9013
9014
9015 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9016 sysconf strsignal getrusage nl_langinfo \
9017 gettimeofday mbstowcs wcswidth mmap setlocale \
9018 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
9019 do :
9020 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9021 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9022 eval as_val=\$$as_ac_var
9023 if test "x$as_val" = x""yes; then :
9024 cat >>confdefs.h <<_ACEOF
9025 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9026 _ACEOF
9027
9028 fi
9029 done
9030
9031
9032 if test x$ac_cv_func_mbstowcs = xyes; then
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9034 $as_echo_n "checking whether mbstowcs works... " >&6; }
9035 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9036 $as_echo_n "(cached) " >&6
9037 else
9038 if test "$cross_compiling" = yes; then :
9039 gcc_cv_func_mbstowcs_works=yes
9040 else
9041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9042 /* end confdefs.h. */
9043 #include <stdlib.h>
9044 int main()
9045 {
9046 mbstowcs(0, "", 0);
9047 return 0;
9048 }
9049 _ACEOF
9050 if ac_fn_c_try_run "$LINENO"; then :
9051 gcc_cv_func_mbstowcs_works=yes
9052 else
9053 gcc_cv_func_mbstowcs_works=no
9054 fi
9055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9056 conftest.$ac_objext conftest.beam conftest.$ac_ext
9057 fi
9058
9059 fi
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9061 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9062 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9063
9064 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9065
9066 fi
9067 fi
9068
9069 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9070 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9071
9072 else
9073
9074 cat >>confdefs.h <<_ACEOF
9075 #define ssize_t int
9076 _ACEOF
9077
9078 fi
9079
9080 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9081 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9082
9083 else
9084
9085 cat >>confdefs.h <<_ACEOF
9086 #define caddr_t char *
9087 _ACEOF
9088
9089 fi
9090
9091
9092
9093 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9094 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9095 gcc_header_sys_mman_h=yes
9096 else
9097 gcc_header_sys_mman_h=no
9098 fi
9099
9100 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9101 if test "x$ac_cv_func_mmap" = x""yes; then :
9102 gcc_func_mmap=yes
9103 else
9104 gcc_func_mmap=no
9105 fi
9106
9107 if test "$gcc_header_sys_mman_h" != yes \
9108 || test "$gcc_func_mmap" != yes; then
9109 gcc_cv_func_mmap_file=no
9110 gcc_cv_func_mmap_dev_zero=no
9111 gcc_cv_func_mmap_anon=no
9112 else
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9114 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9115 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9116 $as_echo_n "(cached) " >&6
9117 else
9118 # Add a system to this blacklist if
9119 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9120 # memory area containing the same data that you'd get if you applied
9121 # read() to the same fd. The only system known to have a problem here
9122 # is VMS, where text files have record structure.
9123 case "$host_os" in
9124 vms* | ultrix*)
9125 gcc_cv_func_mmap_file=no ;;
9126 *)
9127 gcc_cv_func_mmap_file=yes;;
9128 esac
9129 fi
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9131 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9133 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9134 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9135 $as_echo_n "(cached) " >&6
9136 else
9137 # Add a system to this blacklist if it has mmap() but /dev/zero
9138 # does not exist, or if mmapping /dev/zero does not give anonymous
9139 # zeroed pages with both the following properties:
9140 # 1. If you map N consecutive pages in with one call, and then
9141 # unmap any subset of those pages, the pages that were not
9142 # explicitly unmapped remain accessible.
9143 # 2. If you map two adjacent blocks of memory and then unmap them
9144 # both at once, they must both go away.
9145 # Systems known to be in this category are Windows (all variants),
9146 # VMS, and Darwin.
9147 case "$host_os" in
9148 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9149 gcc_cv_func_mmap_dev_zero=no ;;
9150 *)
9151 gcc_cv_func_mmap_dev_zero=yes;;
9152 esac
9153 fi
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9155 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9156
9157 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9159 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9160 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9161 $as_echo_n "(cached) " >&6
9162 else
9163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9164 /* end confdefs.h. */
9165 #include <sys/types.h>
9166 #include <sys/mman.h>
9167 #include <unistd.h>
9168
9169 #ifndef MAP_ANONYMOUS
9170 #define MAP_ANONYMOUS MAP_ANON
9171 #endif
9172
9173 int
9174 main ()
9175 {
9176 int n = MAP_ANONYMOUS;
9177 ;
9178 return 0;
9179 }
9180 _ACEOF
9181 if ac_fn_c_try_compile "$LINENO"; then :
9182 gcc_cv_decl_map_anon=yes
9183 else
9184 gcc_cv_decl_map_anon=no
9185 fi
9186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9187 fi
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9189 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9190
9191 if test $gcc_cv_decl_map_anon = no; then
9192 gcc_cv_func_mmap_anon=no
9193 else
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9195 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9196 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9197 $as_echo_n "(cached) " >&6
9198 else
9199 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9200 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9201 # doesn't give anonymous zeroed pages with the same properties listed
9202 # above for use of /dev/zero.
9203 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9204 case "$host_os" in
9205 vms* | cygwin* | pe | mingw* | sco* | udk* )
9206 gcc_cv_func_mmap_anon=no ;;
9207 *)
9208 gcc_cv_func_mmap_anon=yes;;
9209 esac
9210 fi
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9212 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9213 fi
9214 fi
9215
9216 if test $gcc_cv_func_mmap_file = yes; then
9217
9218 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9219
9220 fi
9221 if test $gcc_cv_func_mmap_dev_zero = yes; then
9222
9223 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9224
9225 fi
9226 if test $gcc_cv_func_mmap_anon = yes; then
9227
9228 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9229
9230 fi
9231
9232
9233 case "${host}" in
9234 *-*-*vms*)
9235 # Under VMS, vfork works very differently than on Unix. The standard test
9236 # won't work, and it isn't easily adaptable. It makes more sense to
9237 # just force it.
9238 ac_cv_func_vfork_works=yes
9239 ;;
9240 esac
9241 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9242 if test "x$ac_cv_type_pid_t" = x""yes; then :
9243
9244 else
9245
9246 cat >>confdefs.h <<_ACEOF
9247 #define pid_t int
9248 _ACEOF
9249
9250 fi
9251
9252 for ac_header in vfork.h
9253 do :
9254 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9255 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9256 cat >>confdefs.h <<_ACEOF
9257 #define HAVE_VFORK_H 1
9258 _ACEOF
9259
9260 fi
9261 done
9262
9263 for ac_func in fork vfork
9264 do :
9265 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9266 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9267 eval as_val=\$$as_ac_var
9268 if test "x$as_val" = x""yes; then :
9269 cat >>confdefs.h <<_ACEOF
9270 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9271 _ACEOF
9272
9273 fi
9274 done
9275
9276 if test "x$ac_cv_func_fork" = xyes; then
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9278 $as_echo_n "checking for working fork... " >&6; }
9279 if test "${ac_cv_func_fork_works+set}" = set; then :
9280 $as_echo_n "(cached) " >&6
9281 else
9282 if test "$cross_compiling" = yes; then :
9283 ac_cv_func_fork_works=cross
9284 else
9285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9286 /* end confdefs.h. */
9287 $ac_includes_default
9288 int
9289 main ()
9290 {
9291
9292 /* By Ruediger Kuhlmann. */
9293 return fork () < 0;
9294
9295 ;
9296 return 0;
9297 }
9298 _ACEOF
9299 if ac_fn_c_try_run "$LINENO"; then :
9300 ac_cv_func_fork_works=yes
9301 else
9302 ac_cv_func_fork_works=no
9303 fi
9304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9305 conftest.$ac_objext conftest.beam conftest.$ac_ext
9306 fi
9307
9308 fi
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9310 $as_echo "$ac_cv_func_fork_works" >&6; }
9311
9312 else
9313 ac_cv_func_fork_works=$ac_cv_func_fork
9314 fi
9315 if test "x$ac_cv_func_fork_works" = xcross; then
9316 case $host in
9317 *-*-amigaos* | *-*-msdosdjgpp*)
9318 # Override, as these systems have only a dummy fork() stub
9319 ac_cv_func_fork_works=no
9320 ;;
9321 *)
9322 ac_cv_func_fork_works=yes
9323 ;;
9324 esac
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9326 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9327 fi
9328 ac_cv_func_vfork_works=$ac_cv_func_vfork
9329 if test "x$ac_cv_func_vfork" = xyes; then
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9331 $as_echo_n "checking for working vfork... " >&6; }
9332 if test "${ac_cv_func_vfork_works+set}" = set; then :
9333 $as_echo_n "(cached) " >&6
9334 else
9335 if test "$cross_compiling" = yes; then :
9336 ac_cv_func_vfork_works=cross
9337 else
9338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9339 /* end confdefs.h. */
9340 /* Thanks to Paul Eggert for this test. */
9341 $ac_includes_default
9342 #include <sys/wait.h>
9343 #ifdef HAVE_VFORK_H
9344 # include <vfork.h>
9345 #endif
9346 /* On some sparc systems, changes by the child to local and incoming
9347 argument registers are propagated back to the parent. The compiler
9348 is told about this with #include <vfork.h>, but some compilers
9349 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9350 static variable whose address is put into a register that is
9351 clobbered by the vfork. */
9352 static void
9353 #ifdef __cplusplus
9354 sparc_address_test (int arg)
9355 # else
9356 sparc_address_test (arg) int arg;
9357 #endif
9358 {
9359 static pid_t child;
9360 if (!child) {
9361 child = vfork ();
9362 if (child < 0) {
9363 perror ("vfork");
9364 _exit(2);
9365 }
9366 if (!child) {
9367 arg = getpid();
9368 write(-1, "", 0);
9369 _exit (arg);
9370 }
9371 }
9372 }
9373
9374 int
9375 main ()
9376 {
9377 pid_t parent = getpid ();
9378 pid_t child;
9379
9380 sparc_address_test (0);
9381
9382 child = vfork ();
9383
9384 if (child == 0) {
9385 /* Here is another test for sparc vfork register problems. This
9386 test uses lots of local variables, at least as many local
9387 variables as main has allocated so far including compiler
9388 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9389 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9390 reuse the register of parent for one of the local variables,
9391 since it will think that parent can't possibly be used any more
9392 in this routine. Assigning to the local variable will thus
9393 munge parent in the parent process. */
9394 pid_t
9395 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9396 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9397 /* Convince the compiler that p..p7 are live; otherwise, it might
9398 use the same hardware register for all 8 local variables. */
9399 if (p != p1 || p != p2 || p != p3 || p != p4
9400 || p != p5 || p != p6 || p != p7)
9401 _exit(1);
9402
9403 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9404 from child file descriptors. If the child closes a descriptor
9405 before it execs or exits, this munges the parent's descriptor
9406 as well. Test for this by closing stdout in the child. */
9407 _exit(close(fileno(stdout)) != 0);
9408 } else {
9409 int status;
9410 struct stat st;
9411
9412 while (wait(&status) != child)
9413 ;
9414 return (
9415 /* Was there some problem with vforking? */
9416 child < 0
9417
9418 /* Did the child fail? (This shouldn't happen.) */
9419 || status
9420
9421 /* Did the vfork/compiler bug occur? */
9422 || parent != getpid()
9423
9424 /* Did the file descriptor bug occur? */
9425 || fstat(fileno(stdout), &st) != 0
9426 );
9427 }
9428 }
9429 _ACEOF
9430 if ac_fn_c_try_run "$LINENO"; then :
9431 ac_cv_func_vfork_works=yes
9432 else
9433 ac_cv_func_vfork_works=no
9434 fi
9435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9436 conftest.$ac_objext conftest.beam conftest.$ac_ext
9437 fi
9438
9439 fi
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9441 $as_echo "$ac_cv_func_vfork_works" >&6; }
9442
9443 fi;
9444 if test "x$ac_cv_func_fork_works" = xcross; then
9445 ac_cv_func_vfork_works=$ac_cv_func_vfork
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9447 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9448 fi
9449
9450 if test "x$ac_cv_func_vfork_works" = xyes; then
9451
9452 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9453
9454 else
9455
9456 $as_echo "#define vfork fork" >>confdefs.h
9457
9458 fi
9459 if test "x$ac_cv_func_fork_works" = xyes; then
9460
9461 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9462
9463 fi
9464
9465
9466 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9467 # iconv() prototype.
9468
9469 if test "X$prefix" = "XNONE"; then
9470 acl_final_prefix="$ac_default_prefix"
9471 else
9472 acl_final_prefix="$prefix"
9473 fi
9474 if test "X$exec_prefix" = "XNONE"; then
9475 acl_final_exec_prefix='${prefix}'
9476 else
9477 acl_final_exec_prefix="$exec_prefix"
9478 fi
9479 acl_save_prefix="$prefix"
9480 prefix="$acl_final_prefix"
9481 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9482 prefix="$acl_save_prefix"
9483
9484
9485 # Check whether --with-gnu-ld was given.
9486 if test "${with_gnu_ld+set}" = set; then :
9487 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9488 else
9489 with_gnu_ld=no
9490 fi
9491
9492 # Prepare PATH_SEPARATOR.
9493 # The user is always right.
9494 if test "${PATH_SEPARATOR+set}" != set; then
9495 echo "#! /bin/sh" >conf$$.sh
9496 echo "exit 0" >>conf$$.sh
9497 chmod +x conf$$.sh
9498 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9499 PATH_SEPARATOR=';'
9500 else
9501 PATH_SEPARATOR=:
9502 fi
9503 rm -f conf$$.sh
9504 fi
9505 ac_prog=ld
9506 if test "$GCC" = yes; then
9507 # Check if gcc -print-prog-name=ld gives a path.
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9509 $as_echo_n "checking for ld used by GCC... " >&6; }
9510 case $host in
9511 *-*-mingw*)
9512 # gcc leaves a trailing carriage return which upsets mingw
9513 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9514 *)
9515 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9516 esac
9517 case $ac_prog in
9518 # Accept absolute paths.
9519 [\\/]* | [A-Za-z]:[\\/]*)
9520 re_direlt='/[^/][^/]*/\.\./'
9521 # Canonicalize the path of ld
9522 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9523 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9524 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9525 done
9526 test -z "$LD" && LD="$ac_prog"
9527 ;;
9528 "")
9529 # If it fails, then pretend we aren't using GCC.
9530 ac_prog=ld
9531 ;;
9532 *)
9533 # If it is relative, then search for the first ld in PATH.
9534 with_gnu_ld=unknown
9535 ;;
9536 esac
9537 elif test "$with_gnu_ld" = yes; then
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9539 $as_echo_n "checking for GNU ld... " >&6; }
9540 else
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9542 $as_echo_n "checking for non-GNU ld... " >&6; }
9543 fi
9544 if test "${acl_cv_path_LD+set}" = set; then :
9545 $as_echo_n "(cached) " >&6
9546 else
9547 if test -z "$LD"; then
9548 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9549 for ac_dir in $PATH; do
9550 test -z "$ac_dir" && ac_dir=.
9551 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9552 acl_cv_path_LD="$ac_dir/$ac_prog"
9553 # Check to see if the program is GNU ld. I'd rather use --version,
9554 # but apparently some GNU ld's only accept -v.
9555 # Break only if it was the GNU/non-GNU ld that we prefer.
9556 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9557 test "$with_gnu_ld" != no && break
9558 else
9559 test "$with_gnu_ld" != yes && break
9560 fi
9561 fi
9562 done
9563 IFS="$ac_save_ifs"
9564 else
9565 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9566 fi
9567 fi
9568
9569 LD="$acl_cv_path_LD"
9570 if test -n "$LD"; then
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9572 $as_echo "$LD" >&6; }
9573 else
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9575 $as_echo "no" >&6; }
9576 fi
9577 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9579 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9580 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9581 $as_echo_n "(cached) " >&6
9582 else
9583 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9584 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9585 acl_cv_prog_gnu_ld=yes
9586 else
9587 acl_cv_prog_gnu_ld=no
9588 fi
9589 fi
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9591 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9592 with_gnu_ld=$acl_cv_prog_gnu_ld
9593
9594
9595
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9597 $as_echo_n "checking for shared library run path origin... " >&6; }
9598 if test "${acl_cv_rpath+set}" = set; then :
9599 $as_echo_n "(cached) " >&6
9600 else
9601
9602 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9603 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9604 . ./conftest.sh
9605 rm -f ./conftest.sh
9606 acl_cv_rpath=done
9607
9608 fi
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9610 $as_echo "$acl_cv_rpath" >&6; }
9611 wl="$acl_cv_wl"
9612 libext="$acl_cv_libext"
9613 shlibext="$acl_cv_shlibext"
9614 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9615 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9616 hardcode_direct="$acl_cv_hardcode_direct"
9617 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9618 # Check whether --enable-rpath was given.
9619 if test "${enable_rpath+set}" = set; then :
9620 enableval=$enable_rpath; :
9621 else
9622 enable_rpath=yes
9623 fi
9624
9625
9626
9627
9628
9629
9630
9631
9632 use_additional=yes
9633
9634 acl_save_prefix="$prefix"
9635 prefix="$acl_final_prefix"
9636 acl_save_exec_prefix="$exec_prefix"
9637 exec_prefix="$acl_final_exec_prefix"
9638
9639 eval additional_includedir=\"$includedir\"
9640 eval additional_libdir=\"$libdir\"
9641
9642 exec_prefix="$acl_save_exec_prefix"
9643 prefix="$acl_save_prefix"
9644
9645
9646 # Check whether --with-libiconv-prefix was given.
9647 if test "${with_libiconv_prefix+set}" = set; then :
9648 withval=$with_libiconv_prefix;
9649 if test "X$withval" = "Xno"; then
9650 use_additional=no
9651 else
9652 if test "X$withval" = "X"; then
9653
9654 acl_save_prefix="$prefix"
9655 prefix="$acl_final_prefix"
9656 acl_save_exec_prefix="$exec_prefix"
9657 exec_prefix="$acl_final_exec_prefix"
9658
9659 eval additional_includedir=\"$includedir\"
9660 eval additional_libdir=\"$libdir\"
9661
9662 exec_prefix="$acl_save_exec_prefix"
9663 prefix="$acl_save_prefix"
9664
9665 else
9666 additional_includedir="$withval/include"
9667 additional_libdir="$withval/lib"
9668 fi
9669 fi
9670
9671 fi
9672
9673 LIBICONV=
9674 LTLIBICONV=
9675 INCICONV=
9676 rpathdirs=
9677 ltrpathdirs=
9678 names_already_handled=
9679 names_next_round='iconv '
9680 while test -n "$names_next_round"; do
9681 names_this_round="$names_next_round"
9682 names_next_round=
9683 for name in $names_this_round; do
9684 already_handled=
9685 for n in $names_already_handled; do
9686 if test "$n" = "$name"; then
9687 already_handled=yes
9688 break
9689 fi
9690 done
9691 if test -z "$already_handled"; then
9692 names_already_handled="$names_already_handled $name"
9693 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9694 eval value=\"\$HAVE_LIB$uppername\"
9695 if test -n "$value"; then
9696 if test "$value" = yes; then
9697 eval value=\"\$LIB$uppername\"
9698 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9699 eval value=\"\$LTLIB$uppername\"
9700 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9701 else
9702 :
9703 fi
9704 else
9705 found_dir=
9706 found_la=
9707 found_so=
9708 found_a=
9709 if test $use_additional = yes; then
9710 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9711 found_dir="$additional_libdir"
9712 found_so="$additional_libdir/lib$name.$shlibext"
9713 if test -f "$additional_libdir/lib$name.la"; then
9714 found_la="$additional_libdir/lib$name.la"
9715 fi
9716 else
9717 if test -f "$additional_libdir/lib$name.$libext"; then
9718 found_dir="$additional_libdir"
9719 found_a="$additional_libdir/lib$name.$libext"
9720 if test -f "$additional_libdir/lib$name.la"; then
9721 found_la="$additional_libdir/lib$name.la"
9722 fi
9723 fi
9724 fi
9725 fi
9726 if test "X$found_dir" = "X"; then
9727 for x in $LDFLAGS $LTLIBICONV; do
9728
9729 acl_save_prefix="$prefix"
9730 prefix="$acl_final_prefix"
9731 acl_save_exec_prefix="$exec_prefix"
9732 exec_prefix="$acl_final_exec_prefix"
9733 eval x=\"$x\"
9734 exec_prefix="$acl_save_exec_prefix"
9735 prefix="$acl_save_prefix"
9736
9737 case "$x" in
9738 -L*)
9739 dir=`echo "X$x" | sed -e 's/^X-L//'`
9740 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9741 found_dir="$dir"
9742 found_so="$dir/lib$name.$shlibext"
9743 if test -f "$dir/lib$name.la"; then
9744 found_la="$dir/lib$name.la"
9745 fi
9746 else
9747 if test -f "$dir/lib$name.$libext"; then
9748 found_dir="$dir"
9749 found_a="$dir/lib$name.$libext"
9750 if test -f "$dir/lib$name.la"; then
9751 found_la="$dir/lib$name.la"
9752 fi
9753 fi
9754 fi
9755 ;;
9756 esac
9757 if test "X$found_dir" != "X"; then
9758 break
9759 fi
9760 done
9761 fi
9762 if test "X$found_dir" != "X"; then
9763 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9764 if test "X$found_so" != "X"; then
9765 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9766 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9767 else
9768 haveit=
9769 for x in $ltrpathdirs; do
9770 if test "X$x" = "X$found_dir"; then
9771 haveit=yes
9772 break
9773 fi
9774 done
9775 if test -z "$haveit"; then
9776 ltrpathdirs="$ltrpathdirs $found_dir"
9777 fi
9778 if test "$hardcode_direct" = yes; then
9779 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9780 else
9781 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9782 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9783 haveit=
9784 for x in $rpathdirs; do
9785 if test "X$x" = "X$found_dir"; then
9786 haveit=yes
9787 break
9788 fi
9789 done
9790 if test -z "$haveit"; then
9791 rpathdirs="$rpathdirs $found_dir"
9792 fi
9793 else
9794 haveit=
9795 for x in $LDFLAGS $LIBICONV; do
9796
9797 acl_save_prefix="$prefix"
9798 prefix="$acl_final_prefix"
9799 acl_save_exec_prefix="$exec_prefix"
9800 exec_prefix="$acl_final_exec_prefix"
9801 eval x=\"$x\"
9802 exec_prefix="$acl_save_exec_prefix"
9803 prefix="$acl_save_prefix"
9804
9805 if test "X$x" = "X-L$found_dir"; then
9806 haveit=yes
9807 break
9808 fi
9809 done
9810 if test -z "$haveit"; then
9811 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9812 fi
9813 if test "$hardcode_minus_L" != no; then
9814 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9815 else
9816 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9817 fi
9818 fi
9819 fi
9820 fi
9821 else
9822 if test "X$found_a" != "X"; then
9823 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9824 else
9825 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9826 fi
9827 fi
9828 additional_includedir=
9829 case "$found_dir" in
9830 */lib | */lib/)
9831 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9832 additional_includedir="$basedir/include"
9833 ;;
9834 esac
9835 if test "X$additional_includedir" != "X"; then
9836 if test "X$additional_includedir" != "X/usr/include"; then
9837 haveit=
9838 if test "X$additional_includedir" = "X/usr/local/include"; then
9839 if test -n "$GCC"; then
9840 case $host_os in
9841 linux*) haveit=yes;;
9842 esac
9843 fi
9844 fi
9845 if test -z "$haveit"; then
9846 for x in $CPPFLAGS $INCICONV; do
9847
9848 acl_save_prefix="$prefix"
9849 prefix="$acl_final_prefix"
9850 acl_save_exec_prefix="$exec_prefix"
9851 exec_prefix="$acl_final_exec_prefix"
9852 eval x=\"$x\"
9853 exec_prefix="$acl_save_exec_prefix"
9854 prefix="$acl_save_prefix"
9855
9856 if test "X$x" = "X-I$additional_includedir"; then
9857 haveit=yes
9858 break
9859 fi
9860 done
9861 if test -z "$haveit"; then
9862 if test -d "$additional_includedir"; then
9863 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9864 fi
9865 fi
9866 fi
9867 fi
9868 fi
9869 if test -n "$found_la"; then
9870 save_libdir="$libdir"
9871 case "$found_la" in
9872 */* | *\\*) . "$found_la" ;;
9873 *) . "./$found_la" ;;
9874 esac
9875 libdir="$save_libdir"
9876 for dep in $dependency_libs; do
9877 case "$dep" in
9878 -L*)
9879 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9880 if test "X$additional_libdir" != "X/usr/lib"; then
9881 haveit=
9882 if test "X$additional_libdir" = "X/usr/local/lib"; then
9883 if test -n "$GCC"; then
9884 case $host_os in
9885 linux*) haveit=yes;;
9886 esac
9887 fi
9888 fi
9889 if test -z "$haveit"; then
9890 haveit=
9891 for x in $LDFLAGS $LIBICONV; do
9892
9893 acl_save_prefix="$prefix"
9894 prefix="$acl_final_prefix"
9895 acl_save_exec_prefix="$exec_prefix"
9896 exec_prefix="$acl_final_exec_prefix"
9897 eval x=\"$x\"
9898 exec_prefix="$acl_save_exec_prefix"
9899 prefix="$acl_save_prefix"
9900
9901 if test "X$x" = "X-L$additional_libdir"; then
9902 haveit=yes
9903 break
9904 fi
9905 done
9906 if test -z "$haveit"; then
9907 if test -d "$additional_libdir"; then
9908 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9909 fi
9910 fi
9911 haveit=
9912 for x in $LDFLAGS $LTLIBICONV; do
9913
9914 acl_save_prefix="$prefix"
9915 prefix="$acl_final_prefix"
9916 acl_save_exec_prefix="$exec_prefix"
9917 exec_prefix="$acl_final_exec_prefix"
9918 eval x=\"$x\"
9919 exec_prefix="$acl_save_exec_prefix"
9920 prefix="$acl_save_prefix"
9921
9922 if test "X$x" = "X-L$additional_libdir"; then
9923 haveit=yes
9924 break
9925 fi
9926 done
9927 if test -z "$haveit"; then
9928 if test -d "$additional_libdir"; then
9929 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9930 fi
9931 fi
9932 fi
9933 fi
9934 ;;
9935 -R*)
9936 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9937 if test "$enable_rpath" != no; then
9938 haveit=
9939 for x in $rpathdirs; do
9940 if test "X$x" = "X$dir"; then
9941 haveit=yes
9942 break
9943 fi
9944 done
9945 if test -z "$haveit"; then
9946 rpathdirs="$rpathdirs $dir"
9947 fi
9948 haveit=
9949 for x in $ltrpathdirs; do
9950 if test "X$x" = "X$dir"; then
9951 haveit=yes
9952 break
9953 fi
9954 done
9955 if test -z "$haveit"; then
9956 ltrpathdirs="$ltrpathdirs $dir"
9957 fi
9958 fi
9959 ;;
9960 -l*)
9961 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9962 ;;
9963 *.la)
9964 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9965 ;;
9966 *)
9967 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9968 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9969 ;;
9970 esac
9971 done
9972 fi
9973 else
9974 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9975 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9976 fi
9977 fi
9978 fi
9979 done
9980 done
9981 if test "X$rpathdirs" != "X"; then
9982 if test -n "$hardcode_libdir_separator"; then
9983 alldirs=
9984 for found_dir in $rpathdirs; do
9985 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9986 done
9987 acl_save_libdir="$libdir"
9988 libdir="$alldirs"
9989 eval flag=\"$hardcode_libdir_flag_spec\"
9990 libdir="$acl_save_libdir"
9991 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9992 else
9993 for found_dir in $rpathdirs; do
9994 acl_save_libdir="$libdir"
9995 libdir="$found_dir"
9996 eval flag=\"$hardcode_libdir_flag_spec\"
9997 libdir="$acl_save_libdir"
9998 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9999 done
10000 fi
10001 fi
10002 if test "X$ltrpathdirs" != "X"; then
10003 for found_dir in $ltrpathdirs; do
10004 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10005 done
10006 fi
10007
10008
10009 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10010 ac_ext=cpp
10011 ac_cpp='$CXXCPP $CPPFLAGS'
10012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10015
10016
10017
10018
10019
10020
10021 am_save_CPPFLAGS="$CPPFLAGS"
10022
10023 for element in $INCICONV; do
10024 haveit=
10025 for x in $CPPFLAGS; do
10026
10027 acl_save_prefix="$prefix"
10028 prefix="$acl_final_prefix"
10029 acl_save_exec_prefix="$exec_prefix"
10030 exec_prefix="$acl_final_exec_prefix"
10031 eval x=\"$x\"
10032 exec_prefix="$acl_save_exec_prefix"
10033 prefix="$acl_save_prefix"
10034
10035 if test "X$x" = "X$element"; then
10036 haveit=yes
10037 break
10038 fi
10039 done
10040 if test -z "$haveit"; then
10041 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10042 fi
10043 done
10044
10045
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10047 $as_echo_n "checking for iconv... " >&6; }
10048 if test "${am_cv_func_iconv+set}" = set; then :
10049 $as_echo_n "(cached) " >&6
10050 else
10051
10052 am_cv_func_iconv="no, consider installing GNU libiconv"
10053 am_cv_lib_iconv=no
10054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10055 /* end confdefs.h. */
10056 #include <stdlib.h>
10057 #include <iconv.h>
10058 int
10059 main ()
10060 {
10061 iconv_t cd = iconv_open("","");
10062 iconv(cd,NULL,NULL,NULL,NULL);
10063 iconv_close(cd);
10064 ;
10065 return 0;
10066 }
10067 _ACEOF
10068 if ac_fn_cxx_try_link "$LINENO"; then :
10069 am_cv_func_iconv=yes
10070 fi
10071 rm -f core conftest.err conftest.$ac_objext \
10072 conftest$ac_exeext conftest.$ac_ext
10073 if test "$am_cv_func_iconv" != yes; then
10074 am_save_LIBS="$LIBS"
10075 LIBS="$LIBS $LIBICONV"
10076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10077 /* end confdefs.h. */
10078 #include <stdlib.h>
10079 #include <iconv.h>
10080 int
10081 main ()
10082 {
10083 iconv_t cd = iconv_open("","");
10084 iconv(cd,NULL,NULL,NULL,NULL);
10085 iconv_close(cd);
10086 ;
10087 return 0;
10088 }
10089 _ACEOF
10090 if ac_fn_cxx_try_link "$LINENO"; then :
10091 am_cv_lib_iconv=yes
10092 am_cv_func_iconv=yes
10093 fi
10094 rm -f core conftest.err conftest.$ac_objext \
10095 conftest$ac_exeext conftest.$ac_ext
10096 LIBS="$am_save_LIBS"
10097 fi
10098
10099 fi
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10101 $as_echo "$am_cv_func_iconv" >&6; }
10102 if test "$am_cv_func_iconv" = yes; then
10103
10104 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10105
10106 fi
10107 if test "$am_cv_lib_iconv" = yes; then
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10109 $as_echo_n "checking how to link with libiconv... " >&6; }
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10111 $as_echo "$LIBICONV" >&6; }
10112 else
10113 CPPFLAGS="$am_save_CPPFLAGS"
10114 LIBICONV=
10115 LTLIBICONV=
10116 fi
10117
10118
10119
10120 if test "$am_cv_func_iconv" = yes; then
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10122 $as_echo_n "checking for iconv declaration... " >&6; }
10123 if test "${am_cv_proto_iconv+set}" = set; then :
10124 $as_echo_n "(cached) " >&6
10125 else
10126
10127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10128 /* end confdefs.h. */
10129
10130 #include <stdlib.h>
10131 #include <iconv.h>
10132 extern
10133 #ifdef __cplusplus
10134 "C"
10135 #endif
10136 #if defined(__STDC__) || defined(__cplusplus)
10137 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10138 #else
10139 size_t iconv();
10140 #endif
10141
10142 int
10143 main ()
10144 {
10145
10146 ;
10147 return 0;
10148 }
10149 _ACEOF
10150 if ac_fn_cxx_try_compile "$LINENO"; then :
10151 am_cv_proto_iconv_arg1=""
10152 else
10153 am_cv_proto_iconv_arg1="const"
10154 fi
10155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10156 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);"
10157 fi
10158
10159 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10161 }$am_cv_proto_iconv" >&5
10162 $as_echo "${ac_t:-
10163 }$am_cv_proto_iconv" >&6; }
10164
10165 cat >>confdefs.h <<_ACEOF
10166 #define ICONV_CONST $am_cv_proto_iconv_arg1
10167 _ACEOF
10168
10169 fi
10170
10171 ac_ext=c
10172 ac_cpp='$CPP $CPPFLAGS'
10173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10176
10177 else
10178
10179
10180
10181
10182
10183 am_save_CPPFLAGS="$CPPFLAGS"
10184
10185 for element in $INCICONV; do
10186 haveit=
10187 for x in $CPPFLAGS; do
10188
10189 acl_save_prefix="$prefix"
10190 prefix="$acl_final_prefix"
10191 acl_save_exec_prefix="$exec_prefix"
10192 exec_prefix="$acl_final_exec_prefix"
10193 eval x=\"$x\"
10194 exec_prefix="$acl_save_exec_prefix"
10195 prefix="$acl_save_prefix"
10196
10197 if test "X$x" = "X$element"; then
10198 haveit=yes
10199 break
10200 fi
10201 done
10202 if test -z "$haveit"; then
10203 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10204 fi
10205 done
10206
10207
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10209 $as_echo_n "checking for iconv... " >&6; }
10210 if test "${am_cv_func_iconv+set}" = set; then :
10211 $as_echo_n "(cached) " >&6
10212 else
10213
10214 am_cv_func_iconv="no, consider installing GNU libiconv"
10215 am_cv_lib_iconv=no
10216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217 /* end confdefs.h. */
10218 #include <stdlib.h>
10219 #include <iconv.h>
10220 int
10221 main ()
10222 {
10223 iconv_t cd = iconv_open("","");
10224 iconv(cd,NULL,NULL,NULL,NULL);
10225 iconv_close(cd);
10226 ;
10227 return 0;
10228 }
10229 _ACEOF
10230 if ac_fn_c_try_link "$LINENO"; then :
10231 am_cv_func_iconv=yes
10232 fi
10233 rm -f core conftest.err conftest.$ac_objext \
10234 conftest$ac_exeext conftest.$ac_ext
10235 if test "$am_cv_func_iconv" != yes; then
10236 am_save_LIBS="$LIBS"
10237 LIBS="$LIBS $LIBICONV"
10238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10239 /* end confdefs.h. */
10240 #include <stdlib.h>
10241 #include <iconv.h>
10242 int
10243 main ()
10244 {
10245 iconv_t cd = iconv_open("","");
10246 iconv(cd,NULL,NULL,NULL,NULL);
10247 iconv_close(cd);
10248 ;
10249 return 0;
10250 }
10251 _ACEOF
10252 if ac_fn_c_try_link "$LINENO"; then :
10253 am_cv_lib_iconv=yes
10254 am_cv_func_iconv=yes
10255 fi
10256 rm -f core conftest.err conftest.$ac_objext \
10257 conftest$ac_exeext conftest.$ac_ext
10258 LIBS="$am_save_LIBS"
10259 fi
10260
10261 fi
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10263 $as_echo "$am_cv_func_iconv" >&6; }
10264 if test "$am_cv_func_iconv" = yes; then
10265
10266 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10267
10268 fi
10269 if test "$am_cv_lib_iconv" = yes; then
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10271 $as_echo_n "checking how to link with libiconv... " >&6; }
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10273 $as_echo "$LIBICONV" >&6; }
10274 else
10275 CPPFLAGS="$am_save_CPPFLAGS"
10276 LIBICONV=
10277 LTLIBICONV=
10278 fi
10279
10280
10281
10282 if test "$am_cv_func_iconv" = yes; then
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10284 $as_echo_n "checking for iconv declaration... " >&6; }
10285 if test "${am_cv_proto_iconv+set}" = set; then :
10286 $as_echo_n "(cached) " >&6
10287 else
10288
10289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10290 /* end confdefs.h. */
10291
10292 #include <stdlib.h>
10293 #include <iconv.h>
10294 extern
10295 #ifdef __cplusplus
10296 "C"
10297 #endif
10298 #if defined(__STDC__) || defined(__cplusplus)
10299 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10300 #else
10301 size_t iconv();
10302 #endif
10303
10304 int
10305 main ()
10306 {
10307
10308 ;
10309 return 0;
10310 }
10311 _ACEOF
10312 if ac_fn_c_try_compile "$LINENO"; then :
10313 am_cv_proto_iconv_arg1=""
10314 else
10315 am_cv_proto_iconv_arg1="const"
10316 fi
10317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10318 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);"
10319 fi
10320
10321 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10323 }$am_cv_proto_iconv" >&5
10324 $as_echo "${ac_t:-
10325 }$am_cv_proto_iconv" >&6; }
10326
10327 cat >>confdefs.h <<_ACEOF
10328 #define ICONV_CONST $am_cv_proto_iconv_arg1
10329 _ACEOF
10330
10331 fi
10332
10333 fi
10334
10335 # Until we have in-tree GNU iconv:
10336 LIBICONV_DEP=
10337
10338
10339
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10341 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10342 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10343 $as_echo_n "(cached) " >&6
10344 else
10345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10346 /* end confdefs.h. */
10347 #include <locale.h>
10348 int
10349 main ()
10350 {
10351 return LC_MESSAGES
10352 ;
10353 return 0;
10354 }
10355 _ACEOF
10356 if ac_fn_c_try_link "$LINENO"; then :
10357 am_cv_val_LC_MESSAGES=yes
10358 else
10359 am_cv_val_LC_MESSAGES=no
10360 fi
10361 rm -f core conftest.err conftest.$ac_objext \
10362 conftest$ac_exeext conftest.$ac_ext
10363 fi
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10365 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10366 if test $am_cv_val_LC_MESSAGES = yes; then
10367
10368 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10369
10370 fi
10371
10372
10373
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10375 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10376 if test "${am_cv_langinfo_codeset+set}" = set; then :
10377 $as_echo_n "(cached) " >&6
10378 else
10379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10380 /* end confdefs.h. */
10381 #include <langinfo.h>
10382 int
10383 main ()
10384 {
10385 char* cs = nl_langinfo(CODESET);
10386 ;
10387 return 0;
10388 }
10389 _ACEOF
10390 if ac_fn_c_try_link "$LINENO"; then :
10391 am_cv_langinfo_codeset=yes
10392 else
10393 am_cv_langinfo_codeset=no
10394 fi
10395 rm -f core conftest.err conftest.$ac_objext \
10396 conftest$ac_exeext conftest.$ac_ext
10397
10398 fi
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10400 $as_echo "$am_cv_langinfo_codeset" >&6; }
10401 if test $am_cv_langinfo_codeset = yes; then
10402
10403 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10404
10405 fi
10406
10407
10408 # We will need to find libiberty.h and ansidecl.h
10409 saved_CFLAGS="$CFLAGS"
10410 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10411 saved_CXXFLAGS="$CXXFLAGS"
10412 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10413 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10414 strsignal strstr strverscmp \
10415 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10416 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
10417 do
10418 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10420 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10421 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10422 $as_echo_n "(cached) " >&6
10423 else
10424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10425 /* end confdefs.h. */
10426 #undef $ac_tr_decl
10427 #define $ac_tr_decl 1
10428
10429 #include "ansidecl.h"
10430 #include "system.h"
10431
10432 int
10433 main ()
10434 {
10435 #ifndef $ac_func
10436 char *(*pfn) = (char *(*)) $ac_func ;
10437 #endif
10438 ;
10439 return 0;
10440 }
10441 _ACEOF
10442 if ac_fn_c_try_compile "$LINENO"; then :
10443 eval "gcc_cv_have_decl_$ac_func=yes"
10444 else
10445 eval "gcc_cv_have_decl_$ac_func=no"
10446 fi
10447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10448 fi
10449
10450 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10452 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10453 #define $ac_tr_decl 1
10454 _ACEOF
10455
10456 else
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10458 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10459 #define $ac_tr_decl 0
10460 _ACEOF
10461
10462 fi
10463
10464 done
10465
10466
10467 for ac_func in getrlimit setrlimit getrusage
10468 do
10469 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10471 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10472 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10473 $as_echo_n "(cached) " >&6
10474 else
10475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10476 /* end confdefs.h. */
10477 #undef $ac_tr_decl
10478 #define $ac_tr_decl 1
10479
10480 #include "ansidecl.h"
10481 #include "system.h"
10482 #ifdef HAVE_SYS_RESOURCE_H
10483 #include <sys/resource.h>
10484 #endif
10485
10486
10487 int
10488 main ()
10489 {
10490 #ifndef $ac_func
10491 char *(*pfn) = (char *(*)) $ac_func ;
10492 #endif
10493 ;
10494 return 0;
10495 }
10496 _ACEOF
10497 if ac_fn_c_try_compile "$LINENO"; then :
10498 eval "gcc_cv_have_decl_$ac_func=yes"
10499 else
10500 eval "gcc_cv_have_decl_$ac_func=no"
10501 fi
10502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10503 fi
10504
10505 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10507 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10508 #define $ac_tr_decl 1
10509 _ACEOF
10510
10511 else
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10513 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10514 #define $ac_tr_decl 0
10515 _ACEOF
10516
10517 fi
10518
10519 done
10520
10521
10522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10523 /* end confdefs.h. */
10524
10525 #include "ansidecl.h"
10526 #include "system.h"
10527 #ifdef HAVE_SYS_RESOURCE_H
10528 #include <sys/resource.h>
10529 #endif
10530
10531 int
10532 main ()
10533 {
10534 rlim_t l = 0;
10535 ;
10536 return 0;
10537 }
10538 _ACEOF
10539 if ac_fn_c_try_compile "$LINENO"; then :
10540
10541 else
10542
10543 $as_echo "#define rlim_t long" >>confdefs.h
10544
10545 fi
10546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10547
10548 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10549 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10550 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10551 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10552 for ac_func in ldgetname
10553 do
10554 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10556 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10557 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10558 $as_echo_n "(cached) " >&6
10559 else
10560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10561 /* end confdefs.h. */
10562 #undef $ac_tr_decl
10563 #define $ac_tr_decl 1
10564
10565 #include "ansidecl.h"
10566 #include "system.h"
10567 #ifdef HAVE_LDFCN_H
10568 #undef FREAD
10569 #undef FWRITE
10570 #include <ldfcn.h>
10571 #endif
10572
10573
10574 int
10575 main ()
10576 {
10577 #ifndef $ac_func
10578 char *(*pfn) = (char *(*)) $ac_func ;
10579 #endif
10580 ;
10581 return 0;
10582 }
10583 _ACEOF
10584 if ac_fn_c_try_compile "$LINENO"; then :
10585 eval "gcc_cv_have_decl_$ac_func=yes"
10586 else
10587 eval "gcc_cv_have_decl_$ac_func=no"
10588 fi
10589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10590 fi
10591
10592 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10594 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10595 #define $ac_tr_decl 1
10596 _ACEOF
10597
10598 else
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10600 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10601 #define $ac_tr_decl 0
10602 _ACEOF
10603
10604 fi
10605
10606 done
10607
10608
10609 for ac_func in times
10610 do
10611 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10613 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10614 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10615 $as_echo_n "(cached) " >&6
10616 else
10617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10618 /* end confdefs.h. */
10619 #undef $ac_tr_decl
10620 #define $ac_tr_decl 1
10621
10622 #include "ansidecl.h"
10623 #include "system.h"
10624 #ifdef HAVE_SYS_TIMES_H
10625 #include <sys/times.h>
10626 #endif
10627
10628
10629 int
10630 main ()
10631 {
10632 #ifndef $ac_func
10633 char *(*pfn) = (char *(*)) $ac_func ;
10634 #endif
10635 ;
10636 return 0;
10637 }
10638 _ACEOF
10639 if ac_fn_c_try_compile "$LINENO"; then :
10640 eval "gcc_cv_have_decl_$ac_func=yes"
10641 else
10642 eval "gcc_cv_have_decl_$ac_func=no"
10643 fi
10644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10645 fi
10646
10647 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10649 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10650 #define $ac_tr_decl 1
10651 _ACEOF
10652
10653 else
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10655 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10656 #define $ac_tr_decl 0
10657 _ACEOF
10658
10659 fi
10660
10661 done
10662
10663
10664 for ac_func in sigaltstack
10665 do
10666 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10668 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10669 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10670 $as_echo_n "(cached) " >&6
10671 else
10672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10673 /* end confdefs.h. */
10674 #undef $ac_tr_decl
10675 #define $ac_tr_decl 1
10676
10677 #include "ansidecl.h"
10678 #include "system.h"
10679 #include <signal.h>
10680
10681
10682 int
10683 main ()
10684 {
10685 #ifndef $ac_func
10686 char *(*pfn) = (char *(*)) $ac_func ;
10687 #endif
10688 ;
10689 return 0;
10690 }
10691 _ACEOF
10692 if ac_fn_c_try_compile "$LINENO"; then :
10693 eval "gcc_cv_have_decl_$ac_func=yes"
10694 else
10695 eval "gcc_cv_have_decl_$ac_func=no"
10696 fi
10697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10698 fi
10699
10700 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10702 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10703 #define $ac_tr_decl 1
10704 _ACEOF
10705
10706 else
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10708 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10709 #define $ac_tr_decl 0
10710 _ACEOF
10711
10712 fi
10713
10714 done
10715
10716
10717 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10718 # prototype.
10719 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10720 ac_ext=cpp
10721 ac_cpp='$CXXCPP $CPPFLAGS'
10722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10725
10726 for ac_func in madvise
10727 do
10728 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10730 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10731 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10732 $as_echo_n "(cached) " >&6
10733 else
10734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10735 /* end confdefs.h. */
10736 #undef $ac_tr_decl
10737 #define $ac_tr_decl 1
10738
10739 #include "ansidecl.h"
10740 #include "system.h"
10741
10742
10743 int
10744 main ()
10745 {
10746 #ifndef $ac_func
10747 char *(*pfn) = (char *(*)) $ac_func ;
10748 #endif
10749 ;
10750 return 0;
10751 }
10752 _ACEOF
10753 if ac_fn_cxx_try_compile "$LINENO"; then :
10754 eval "gcc_cv_have_decl_$ac_func=yes"
10755 else
10756 eval "gcc_cv_have_decl_$ac_func=no"
10757 fi
10758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10759 fi
10760
10761 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10763 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10764 #define $ac_tr_decl 1
10765 _ACEOF
10766
10767 else
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10769 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10770 #define $ac_tr_decl 0
10771 _ACEOF
10772
10773 fi
10774
10775 done
10776
10777 ac_ext=c
10778 ac_cpp='$CPP $CPPFLAGS'
10779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10782
10783 else
10784 for ac_func in madvise
10785 do
10786 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10788 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10789 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10790 $as_echo_n "(cached) " >&6
10791 else
10792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10793 /* end confdefs.h. */
10794 #undef $ac_tr_decl
10795 #define $ac_tr_decl 1
10796
10797 #include "ansidecl.h"
10798 #include "system.h"
10799
10800
10801 int
10802 main ()
10803 {
10804 #ifndef $ac_func
10805 char *(*pfn) = (char *(*)) $ac_func ;
10806 #endif
10807 ;
10808 return 0;
10809 }
10810 _ACEOF
10811 if ac_fn_c_try_compile "$LINENO"; then :
10812 eval "gcc_cv_have_decl_$ac_func=yes"
10813 else
10814 eval "gcc_cv_have_decl_$ac_func=no"
10815 fi
10816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10817 fi
10818
10819 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10821 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10822 #define $ac_tr_decl 1
10823 _ACEOF
10824
10825 else
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10827 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10828 #define $ac_tr_decl 0
10829 _ACEOF
10830
10831 fi
10832
10833 done
10834
10835
10836 fi
10837
10838 # More time-related stuff.
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10840 $as_echo_n "checking for struct tms... " >&6; }
10841 if test "${ac_cv_struct_tms+set}" = set; then :
10842 $as_echo_n "(cached) " >&6
10843 else
10844
10845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10846 /* end confdefs.h. */
10847
10848 #include "ansidecl.h"
10849 #include "system.h"
10850 #ifdef HAVE_SYS_TIMES_H
10851 #include <sys/times.h>
10852 #endif
10853
10854 int
10855 main ()
10856 {
10857 struct tms tms;
10858 ;
10859 return 0;
10860 }
10861 _ACEOF
10862 if ac_fn_c_try_compile "$LINENO"; then :
10863 ac_cv_struct_tms=yes
10864 else
10865 ac_cv_struct_tms=no
10866 fi
10867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10868 fi
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10870 $as_echo "$ac_cv_struct_tms" >&6; }
10871 if test $ac_cv_struct_tms = yes; then
10872
10873 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10874
10875 fi
10876
10877 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10878 # revisit after autoconf 2.50.
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10880 $as_echo_n "checking for clock_t... " >&6; }
10881 if test "${gcc_cv_type_clock_t+set}" = set; then :
10882 $as_echo_n "(cached) " >&6
10883 else
10884
10885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10886 /* end confdefs.h. */
10887
10888 #include "ansidecl.h"
10889 #include "system.h"
10890
10891 int
10892 main ()
10893 {
10894 clock_t x;
10895 ;
10896 return 0;
10897 }
10898 _ACEOF
10899 if ac_fn_c_try_compile "$LINENO"; then :
10900 gcc_cv_type_clock_t=yes
10901 else
10902 gcc_cv_type_clock_t=no
10903 fi
10904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10905 fi
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10907 $as_echo "$gcc_cv_type_clock_t" >&6; }
10908 if test $gcc_cv_type_clock_t = yes; then
10909
10910 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10911
10912 fi
10913
10914 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10915 CFLAGS="$saved_CFLAGS"
10916 CXXFLAGS="$saved_CXXFLAGS"
10917
10918 # Check whether --enable-initfini-array was given.
10919 if test "${enable_initfini_array+set}" = set; then :
10920 enableval=$enable_initfini_array;
10921 else
10922
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10924 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10925 if test "${gcc_cv_initfini_array+set}" = set; then :
10926 $as_echo_n "(cached) " >&6
10927 else
10928 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
10929 if test "$cross_compiling" = yes; then :
10930 gcc_cv_initfini_array=no
10931 else
10932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10933 /* end confdefs.h. */
10934
10935 #ifndef __ELF__
10936 #error Not an ELF OS
10937 #endif
10938 #ifdef __ia64__
10939 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
10940 if it can be used. */
10941 static int x = -1;
10942 int main (void) { return x; }
10943 int foo (void) { x = 0; }
10944 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10945 #else
10946 extern void abort ();
10947 static int count;
10948
10949 static void
10950 init1005 ()
10951 {
10952 if (count != 0)
10953 abort ();
10954 count = 1005;
10955 }
10956 void (*const init_array1005) ()
10957 __attribute__ ((section (".init_array.01005"), aligned (sizeof (void *))))
10958 = { init1005 };
10959 static void
10960 fini1005 ()
10961 {
10962 if (count != 1005)
10963 abort ();
10964 }
10965 void (*const fini_array1005) ()
10966 __attribute__ ((section (".fini_array.01005"), aligned (sizeof (void *))))
10967 = { fini1005 };
10968
10969 static void
10970 ctor1007 ()
10971 {
10972 if (count != 1005)
10973 abort ();
10974 count = 1007;
10975 }
10976 void (*const ctors1007) ()
10977 __attribute__ ((section (".ctors.64528"), aligned (sizeof (void *))))
10978 = { ctor1007 };
10979 static void
10980 dtor1007 ()
10981 {
10982 if (count != 1007)
10983 abort ();
10984 count = 1005;
10985 }
10986 void (*const dtors1007) ()
10987 __attribute__ ((section (".dtors.64528"), aligned (sizeof (void *))))
10988 = { dtor1007 };
10989
10990 static void
10991 init65530 ()
10992 {
10993 if (count != 1007)
10994 abort ();
10995 count = 65530;
10996 }
10997 void (*const init_array65530) ()
10998 __attribute__ ((section (".init_array.65530"), aligned (sizeof (void *))))
10999 = { init65530 };
11000 static void
11001 fini65530 ()
11002 {
11003 if (count != 65530)
11004 abort ();
11005 count = 1007;
11006 }
11007 void (*const fini_array65530) ()
11008 __attribute__ ((section (".fini_array.65530"), aligned (sizeof (void *))))
11009 = { fini65530 };
11010
11011 static void
11012 ctor65535 ()
11013 {
11014 if (count != 65530)
11015 abort ();
11016 count = 65535;
11017 }
11018 void (*const ctors65535) ()
11019 __attribute__ ((section (".ctors"), aligned (sizeof (void *))))
11020 = { ctor65535 };
11021 static void
11022 dtor65535 ()
11023 {
11024 if (count != 65535)
11025 abort ();
11026 count = 65530;
11027 }
11028 void (*const dtors65535) ()
11029 __attribute__ ((section (".dtors"), aligned (sizeof (void *))))
11030 = { dtor65535 };
11031
11032 int
11033 main ()
11034 {
11035 if (count != 65535)
11036 abort ();
11037 return 0;
11038 }
11039 #endif
11040
11041 _ACEOF
11042 if ac_fn_c_try_run "$LINENO"; then :
11043 gcc_cv_initfini_array=yes
11044 else
11045 gcc_cv_initfini_array=no
11046 fi
11047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11048 conftest.$ac_objext conftest.beam conftest.$ac_ext
11049 fi
11050
11051 else
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
11053 $as_echo_n "checking cross compile... guessing... " >&6; }
11054 gcc_cv_initfini_array=no
11055 fi
11056 fi
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
11058 $as_echo "$gcc_cv_initfini_array" >&6; }
11059 enable_initfini_array=$gcc_cv_initfini_array
11060
11061 fi
11062
11063 if test $enable_initfini_array = yes; then
11064
11065 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
11066
11067 fi
11068
11069 # mkdir takes a single argument on some systems.
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11071 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11072 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11073 $as_echo_n "(cached) " >&6
11074 else
11075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11076 /* end confdefs.h. */
11077
11078 #include <sys/types.h>
11079 #ifdef HAVE_SYS_STAT_H
11080 # include <sys/stat.h>
11081 #endif
11082 #ifdef HAVE_UNISTD_H
11083 # include <unistd.h>
11084 #endif
11085 #ifdef HAVE_DIRECT_H
11086 # include <direct.h>
11087 #endif
11088 int
11089 main ()
11090 {
11091 mkdir ("foo", 0);
11092 ;
11093 return 0;
11094 }
11095 _ACEOF
11096 if ac_fn_c_try_compile "$LINENO"; then :
11097 gcc_cv_mkdir_takes_one_arg=no
11098 else
11099 gcc_cv_mkdir_takes_one_arg=yes
11100 fi
11101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11102 fi
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11104 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11105 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11106
11107 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11108
11109 fi
11110
11111
11112 # File extensions
11113 manext='.1'
11114 objext='.o'
11115
11116
11117
11118 # With Setjmp/Longjmp based exception handling.
11119 # Check whether --enable-sjlj-exceptions was given.
11120 if test "${enable_sjlj_exceptions+set}" = set; then :
11121 enableval=$enable_sjlj_exceptions; case $target in
11122 *-*-hpux10*)
11123 if test $enableval != yes; then
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11125 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11126 enableval=yes
11127 fi
11128 ;;
11129 esac
11130 force_sjlj_exceptions=yes
11131 else
11132 case $target in
11133 *-*-hpux10*)
11134 force_sjlj_exceptions=yes
11135 enableval=yes
11136 ;;
11137 *)
11138 force_sjlj_exceptions=no
11139 ;;
11140 esac
11141 fi
11142
11143 if test $force_sjlj_exceptions = yes; then
11144 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11145
11146 cat >>confdefs.h <<_ACEOF
11147 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11148 _ACEOF
11149
11150 fi
11151
11152 # --------------------------------------------------------
11153 # Build, host, and target specific configuration fragments
11154 # --------------------------------------------------------
11155
11156 # Collect build-machine-specific information.
11157 . ${srcdir}/config.build
11158
11159 # Collect host-machine-specific information.
11160 . ${srcdir}/config.host
11161
11162 target_gtfiles=
11163
11164 # Collect target-machine-specific information.
11165 . ${srcdir}/config.gcc
11166
11167 extra_objs="${host_extra_objs} ${extra_objs}"
11168 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11169
11170 # Default the target-machine variables that were not explicitly set.
11171 if test x"$tm_file" = x
11172 then tm_file=$cpu_type/$cpu_type.h; fi
11173
11174 if test x"$extra_headers" = x
11175 then extra_headers=; fi
11176
11177 if test x$md_file = x
11178 then md_file=$cpu_type/$cpu_type.md; fi
11179
11180 if test x$out_file = x
11181 then out_file=$cpu_type/$cpu_type.c; fi
11182
11183 if test x"$tmake_file" = x
11184 then tmake_file=$cpu_type/t-$cpu_type
11185 fi
11186
11187 if test x"$dwarf2" = xyes
11188 then tm_file="$tm_file tm-dwarf2.h"
11189 fi
11190
11191 # Say what files are being used for the output code and MD file.
11192 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11193 echo "Using \`$srcdir/config/$md_file' as machine description file."
11194
11195 # If any of the xm_file variables contain nonexistent files, warn
11196 # about them and drop them.
11197
11198 bx=
11199 for x in $build_xm_file; do
11200 if test -f $srcdir/config/$x
11201 then bx="$bx $x"
11202 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11203 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11204 fi
11205 done
11206 build_xm_file="$bx"
11207
11208 hx=
11209 for x in $host_xm_file; do
11210 if test -f $srcdir/config/$x
11211 then hx="$hx $x"
11212 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11213 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11214 fi
11215 done
11216 host_xm_file="$hx"
11217
11218 tx=
11219 for x in $xm_file; do
11220 if test -f $srcdir/config/$x
11221 then tx="$tx $x"
11222 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11223 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11224 fi
11225 done
11226 xm_file="$tx"
11227
11228 count=a
11229 for f in $tm_file; do
11230 count=${count}x
11231 done
11232 if test $count = ax; then
11233 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11234 else
11235 echo "Using the following target machine macro files:"
11236 for f in $tm_file; do
11237 echo " $srcdir/config/$f"
11238 done
11239 fi
11240
11241 if test x$need_64bit_hwint = xyes; then
11242
11243 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11244
11245 fi
11246
11247 if test x$use_long_long_for_widest_fast_int = xyes; then
11248
11249 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11250
11251 fi
11252
11253 count=a
11254 for f in $host_xm_file; do
11255 count=${count}x
11256 done
11257 if test $count = a; then
11258 :
11259 elif test $count = ax; then
11260 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11261 else
11262 echo "Using the following host machine macro files:"
11263 for f in $host_xm_file; do
11264 echo " $srcdir/config/$f"
11265 done
11266 fi
11267 echo "Using ${out_host_hook_obj} for host machine hooks."
11268
11269 if test "$host_xm_file" != "$build_xm_file"; then
11270 count=a
11271 for f in $build_xm_file; do
11272 count=${count}x
11273 done
11274 if test $count = a; then
11275 :
11276 elif test $count = ax; then
11277 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11278 else
11279 echo "Using the following build machine macro files:"
11280 for f in $build_xm_file; do
11281 echo " $srcdir/config/$f"
11282 done
11283 fi
11284 fi
11285
11286 if test -n "$configured_native_system_header_dir"; then
11287 native_system_header_dir=$configured_native_system_header_dir
11288 fi
11289 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11290
11291
11292 case ${host} in
11293 powerpc*-*-darwin*)
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11295 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11296 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11297 $as_echo_n "(cached) " >&6
11298 else
11299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11300 /* end confdefs.h. */
11301
11302 #include <sys/cdefs.h>
11303 #include <sys/signal.h>
11304 #include <ucontext.h>
11305 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11306
11307 _ACEOF
11308 if ac_fn_c_try_compile "$LINENO"; then :
11309 gcc_cv_mcontext_underscores=no
11310 else
11311 gcc_cv_mcontext_underscores=yes
11312 fi
11313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11314 fi
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11316 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11317 if test $gcc_cv_mcontext_underscores = yes; then
11318
11319 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11320
11321 fi
11322 ;;
11323 esac
11324
11325 # ---------
11326 # Threading
11327 # ---------
11328
11329 # Check if a valid thread package
11330 case ${enable_threads} in
11331 "" | no)
11332 # No threads
11333 target_thread_file='single'
11334 ;;
11335 yes)
11336 # default
11337 target_thread_file='single'
11338 ;;
11339 aix | dce | lynx | mipssde | posix | rtems | \
11340 single | tpf | vxworks | win32)
11341 target_thread_file=${enable_threads}
11342 ;;
11343 *)
11344 echo "${enable_threads} is an unknown thread package" 1>&2
11345 exit 1
11346 ;;
11347 esac
11348
11349 if test x${thread_file} = x; then
11350 # No thread file set by target-specific clauses in config.gcc,
11351 # so use file chosen by default logic above
11352 thread_file=${target_thread_file}
11353 fi
11354
11355 # --------
11356 # UNSORTED
11357 # --------
11358
11359 use_cxa_atexit=no
11360 if test x$enable___cxa_atexit = xyes || \
11361 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11362 if test x$host = x$target; then
11363 case $host in
11364 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11365 # keyed to flag_use_cxa_atexit
11366 *-*-mingw32*)
11367 use_cxa_atexit=yes
11368 ;;
11369 *)
11370 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11371 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11372 use_cxa_atexit=yes
11373 else
11374 echo "__cxa_atexit can't be enabled on this target"
11375 fi
11376
11377 ;;
11378 esac
11379 else
11380 # We can't check for __cxa_atexit when building a cross, so assume
11381 # it is available
11382 use_cxa_atexit=yes
11383 fi
11384 if test x$use_cxa_atexit = xyes; then
11385
11386 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11387
11388 fi
11389 fi
11390
11391 # Look for a file containing extra machine modes.
11392 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11393 extra_modes_file='$(srcdir)'/config/${extra_modes}
11394
11395
11396 cat >>confdefs.h <<_ACEOF
11397 #define EXTRA_MODES_FILE "config/$extra_modes"
11398 _ACEOF
11399
11400 fi
11401
11402 # Convert extra_options into a form suitable for Makefile use.
11403 extra_opt_files=
11404 all_opt_files=
11405 for f in $extra_options; do
11406 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11407 all_opt_files="$all_opt_files $srcdir/config/$f"
11408 done
11409
11410
11411 # auto-host.h is the file containing items generated by autoconf and is
11412 # the first file included by config.h.
11413 # If host=build, it is correct to have bconfig include auto-host.h
11414 # as well. If host!=build, we are in error and need to do more
11415 # work to find out the build config parameters.
11416 if test x$host = x$build
11417 then
11418 build_auto=auto-host.h
11419 else
11420 # We create a subdir, then run autoconf in the subdir.
11421 # To prevent recursion we set host and build for the new
11422 # invocation of configure to the build for this invocation
11423 # of configure.
11424 tempdir=build.$$
11425 rm -rf $tempdir
11426 mkdir $tempdir
11427 cd $tempdir
11428 case ${srcdir} in
11429 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11430 *) realsrcdir=../${srcdir};;
11431 esac
11432 saved_CFLAGS="${CFLAGS}"
11433 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11434 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11435 ${realsrcdir}/configure \
11436 --enable-languages=${enable_languages-all} \
11437 --target=$target_alias --host=$build_alias --build=$build_alias
11438 CFLAGS="${saved_CFLAGS}"
11439
11440 # We just finished tests for the build machine, so rename
11441 # the file auto-build.h in the gcc directory.
11442 mv auto-host.h ../auto-build.h
11443 cd ..
11444 rm -rf $tempdir
11445 build_auto=auto-build.h
11446 fi
11447
11448
11449 tm_file="${tm_file} defaults.h"
11450 tm_p_file="${tm_p_file} tm-preds.h"
11451 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11452 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11453 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11454 # put this back in temporarily.
11455 xm_file="auto-host.h ansidecl.h ${xm_file}"
11456
11457 # --------
11458 # UNSORTED
11459 # --------
11460
11461 # Compile in configure arguments.
11462 if test -f configargs.h ; then
11463 # Being re-configured.
11464 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11465 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11466 else
11467 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11468 fi
11469
11470 # Double all backslashes and backslash all quotes to turn
11471 # gcc_config_arguments into a C string.
11472 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11473 $gcc_config_arguments
11474 EOF
11475 gcc_config_arguments_str=`cat conftest.out`
11476 rm -f conftest.out
11477
11478 cat > configargs.h <<EOF
11479 /* Generated automatically. */
11480 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11481 static const char thread_model[] = "$thread_file";
11482
11483 static const struct {
11484 const char *name, *value;
11485 } configure_default_options[] = $configure_default_options;
11486 EOF
11487
11488 gcc_BASEVER=`cat $srcdir/BASE-VER`
11489 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11490 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11491 if test -f $srcdir/REVISION ; then
11492 gcc_REVISION=`cat $srcdir/REVISION`
11493 else
11494 gcc_REVISION=""
11495 fi
11496 cat > plugin-version.h <<EOF
11497 #include "configargs.h"
11498
11499 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11500 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11501 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11502 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11503
11504 static char basever[] = "$gcc_BASEVER";
11505 static char datestamp[] = "$gcc_DATESTAMP";
11506 static char devphase[] = "$gcc_DEVPHASE";
11507 static char revision[] = "$gcc_REVISION";
11508
11509 /* FIXME plugins: We should make the version information more precise.
11510 One way to do is to add a checksum. */
11511
11512 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11513 devphase, revision,
11514 configuration_arguments};
11515 EOF
11516
11517 # Internationalization
11518 # If we haven't got the data from the intl directory,
11519 # assume NLS is disabled.
11520 USE_NLS=no
11521 LIBINTL=
11522 LIBINTL_DEP=
11523 INCINTL=
11524 XGETTEXT=
11525 GMSGFMT=
11526 POSUB=
11527
11528 if test -f ../intl/config.intl; then
11529 . ../intl/config.intl
11530 fi
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11532 $as_echo_n "checking whether NLS is requested... " >&6; }
11533 if test x"$USE_NLS" != xyes; then
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11535 $as_echo "no" >&6; }
11536 else
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11538 $as_echo "yes" >&6; }
11539
11540 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11541
11542
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11544 $as_echo_n "checking for catalogs to be installed... " >&6; }
11545 # Look for .po and .gmo files in the source directory.
11546 CATALOGS=
11547 XLINGUAS=
11548 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11549 # If there aren't any .gmo files the shell will give us the
11550 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11551 # weeded out.
11552 case "$cat" in *\**)
11553 continue;;
11554 esac
11555 # The quadruple backslash is collapsed to a double backslash
11556 # by the backticks, then collapsed again by the double quotes,
11557 # leaving us with one backslash in the sed expression (right
11558 # before the dot that mustn't act as a wildcard).
11559 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11560 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11561 # The user is allowed to set LINGUAS to a list of languages to
11562 # install catalogs for. If it's empty that means "all of them."
11563 if test "x$LINGUAS" = x; then
11564 CATALOGS="$CATALOGS $cat"
11565 XLINGUAS="$XLINGUAS $lang"
11566 else
11567 case "$LINGUAS" in *$lang*)
11568 CATALOGS="$CATALOGS $cat"
11569 XLINGUAS="$XLINGUAS $lang"
11570 ;;
11571 esac
11572 fi
11573 done
11574 LINGUAS="$XLINGUAS"
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11576 $as_echo "$LINGUAS" >&6; }
11577
11578
11579 DATADIRNAME=share
11580
11581 INSTOBJEXT=.mo
11582
11583 GENCAT=gencat
11584
11585 CATOBJEXT=.gmo
11586
11587 fi
11588
11589 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11590 # -liconv on the link line twice.
11591 case "$LIBINTL" in *$LIBICONV*)
11592 LIBICONV= ;;
11593 esac
11594
11595 # Check whether --enable-secureplt was given.
11596 if test "${enable_secureplt+set}" = set; then :
11597 enableval=$enable_secureplt;
11598 fi
11599
11600
11601 # Check whether --enable-leading-mingw64-underscores was given.
11602 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11603 enableval=$enable_leading_mingw64_underscores;
11604 fi
11605
11606 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11607
11608 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11609
11610 fi
11611
11612 # Check whether --enable-cld was given.
11613 if test "${enable_cld+set}" = set; then :
11614 enableval=$enable_cld;
11615 else
11616 enable_cld=no
11617 fi
11618
11619
11620 # Check whether --enable-frame-pointer was given.
11621 if test "${enable_frame_pointer+set}" = set; then :
11622 enableval=$enable_frame_pointer;
11623 else
11624
11625 case $target_os in
11626 linux* | darwin[8912]*)
11627 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11628 # DWARF2.
11629 enable_frame_pointer=no
11630 ;;
11631 *)
11632 enable_frame_pointer=yes
11633 ;;
11634 esac
11635
11636 fi
11637
11638
11639 # Windows32 Registry support for specifying GCC installation paths.
11640 # Check whether --enable-win32-registry was given.
11641 if test "${enable_win32_registry+set}" = set; then :
11642 enableval=$enable_win32_registry;
11643 fi
11644
11645
11646 case $host_os in
11647 win32 | pe | cygwin* | mingw32* | uwin*)
11648 if test "x$enable_win32_registry" != xno; then
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11650 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11651 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11652 $as_echo_n "(cached) " >&6
11653 else
11654 ac_func_search_save_LIBS=$LIBS
11655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11656 /* end confdefs.h. */
11657
11658 /* Override any GCC internal prototype to avoid an error.
11659 Use char because int might match the return type of a GCC
11660 builtin and then its argument prototype would still apply. */
11661 #ifdef __cplusplus
11662 extern "C"
11663 #endif
11664 char RegOpenKeyExA ();
11665 int
11666 main ()
11667 {
11668 return RegOpenKeyExA ();
11669 ;
11670 return 0;
11671 }
11672 _ACEOF
11673 for ac_lib in '' advapi32; do
11674 if test -z "$ac_lib"; then
11675 ac_res="none required"
11676 else
11677 ac_res=-l$ac_lib
11678 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11679 fi
11680 if ac_fn_c_try_link "$LINENO"; then :
11681 ac_cv_search_RegOpenKeyExA=$ac_res
11682 fi
11683 rm -f core conftest.err conftest.$ac_objext \
11684 conftest$ac_exeext
11685 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11686 break
11687 fi
11688 done
11689 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11690
11691 else
11692 ac_cv_search_RegOpenKeyExA=no
11693 fi
11694 rm conftest.$ac_ext
11695 LIBS=$ac_func_search_save_LIBS
11696 fi
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11698 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11699 ac_res=$ac_cv_search_RegOpenKeyExA
11700 if test "$ac_res" != no; then :
11701 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11702
11703 else
11704 enable_win32_registry=no
11705 fi
11706
11707 fi
11708
11709 if test "x$enable_win32_registry" != xno; then
11710
11711 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11712
11713
11714 if test "x$enable_win32_registry" != xyes \
11715 && test "x$enable_win32_registry" != x; then
11716
11717 cat >>confdefs.h <<_ACEOF
11718 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11719 _ACEOF
11720
11721 fi
11722 fi
11723 ;;
11724 esac
11725
11726 # Get an absolute path to the GCC top-level source directory
11727 holddir=`${PWDCMD-pwd}`
11728 cd $srcdir
11729 topdir=`${PWDCMD-pwd}`
11730 cd $holddir
11731
11732 # Conditionalize the makefile for this host machine.
11733 xmake_file=
11734 for f in ${host_xmake_file}
11735 do
11736 if test -f ${srcdir}/config/$f
11737 then
11738 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11739 fi
11740 done
11741
11742 # Conditionalize the makefile for this target machine.
11743 tmake_file_=
11744 for f in ${tmake_file}
11745 do
11746 if test -f ${srcdir}/config/$f
11747 then
11748 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11749 fi
11750 done
11751 tmake_file="${tmake_file_}"
11752
11753 out_object_file=`basename $out_file .c`.o
11754 common_out_object_file=`basename $common_out_file .c`.o
11755
11756 tm_file_list="options.h"
11757 tm_include_list="options.h insn-constants.h"
11758 for f in $tm_file; do
11759 case $f in
11760 ./* )
11761 f=`echo $f | sed 's/^..//'`
11762 tm_file_list="${tm_file_list} $f"
11763 tm_include_list="${tm_include_list} $f"
11764 ;;
11765 defaults.h )
11766 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11767 tm_include_list="${tm_include_list} $f"
11768 ;;
11769 * )
11770 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11771 tm_include_list="${tm_include_list} config/$f"
11772 ;;
11773 esac
11774 done
11775
11776 tm_p_file_list=
11777 tm_p_include_list=
11778 for f in $tm_p_file; do
11779 case $f in
11780 tm-preds.h )
11781 tm_p_file_list="${tm_p_file_list} $f"
11782 tm_p_include_list="${tm_p_include_list} $f"
11783 ;;
11784 * )
11785 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11786 tm_p_include_list="${tm_p_include_list} config/$f"
11787 esac
11788 done
11789
11790 xm_file_list=
11791 xm_include_list=
11792 for f in $xm_file; do
11793 case $f in
11794 ansidecl.h )
11795 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11796 xm_include_list="${xm_include_list} $f"
11797 ;;
11798 auto-host.h )
11799 xm_file_list="${xm_file_list} $f"
11800 xm_include_list="${xm_include_list} $f"
11801 ;;
11802 * )
11803 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11804 xm_include_list="${xm_include_list} config/$f"
11805 ;;
11806 esac
11807 done
11808
11809 host_xm_file_list=
11810 host_xm_include_list=
11811 for f in $host_xm_file; do
11812 case $f in
11813 ansidecl.h )
11814 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11815 host_xm_include_list="${host_xm_include_list} $f"
11816 ;;
11817 auto-host.h )
11818 host_xm_file_list="${host_xm_file_list} $f"
11819 host_xm_include_list="${host_xm_include_list} $f"
11820 ;;
11821 * )
11822 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11823 host_xm_include_list="${host_xm_include_list} config/$f"
11824 ;;
11825 esac
11826 done
11827
11828 build_xm_file_list=
11829 for f in $build_xm_file; do
11830 case $f in
11831 ansidecl.h )
11832 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11833 build_xm_include_list="${build_xm_include_list} $f"
11834 ;;
11835 auto-build.h | auto-host.h )
11836 build_xm_file_list="${build_xm_file_list} $f"
11837 build_xm_include_list="${build_xm_include_list} $f"
11838 ;;
11839 * )
11840 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11841 build_xm_include_list="${build_xm_include_list} config/$f"
11842 ;;
11843 esac
11844 done
11845
11846 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11847 # cross-compiler which does not use the native headers and libraries.
11848 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11849 CROSS=
11850 ALL=all.internal
11851 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11852
11853 if test "x$with_build_sysroot" != x; then
11854 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11855 else
11856 # This value is used, even on a native system, because
11857 # CROSS_SYSTEM_HEADER_DIR is just
11858 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11859 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11860 fi
11861
11862 if test x$host != x$target
11863 then
11864 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11865 ALL=all.cross
11866 SYSTEM_HEADER_DIR=$build_system_header_dir
11867 case "$host","$target" in
11868 # Darwin crosses can use the host system's libraries and headers,
11869 # because of the fat library support. Of course, it must be the
11870 # same version of Darwin on both sides. Allow the user to
11871 # just say --target=foo-darwin without a version number to mean
11872 # "the version on this system".
11873 *-*-darwin*,*-*-darwin*)
11874 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11875 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11876 if test $hostos = $targetos -o $targetos = darwin ; then
11877 CROSS=
11878 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11879 with_headers=yes
11880 fi
11881 ;;
11882
11883 i?86-*-*,x86_64-*-* \
11884 | powerpc*-*-*,powerpc64*-*-*)
11885 CROSS="$CROSS -DNATIVE_CROSS" ;;
11886 esac
11887
11888 case $target in
11889 *-*-mingw*)
11890 if test "x$with_headers" = x; then
11891 with_headers=yes
11892 fi
11893 ;;
11894 *)
11895 ;;
11896 esac
11897 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11898 SYSTEM_HEADER_DIR=$build_system_header_dir
11899 fi
11900
11901 # If this is a cross-compiler that does not
11902 # have its own set of headers then define
11903 # inhibit_libc
11904
11905 # If this is using newlib, without having the headers available now,
11906 # then define inhibit_libc in LIBGCC2_CFLAGS.
11907 # This prevents libgcc2 from containing any code which requires libc
11908 # support.
11909 : ${inhibit_libc=false}
11910 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11911 test x$with_newlib = xyes ; } &&
11912 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11913 inhibit_libc=true
11914 fi
11915
11916
11917 # When building gcc with a cross-compiler, we need to adjust things so
11918 # that the generator programs are still built with the native compiler.
11919 # Also, we cannot run fixincludes.
11920
11921 # These are the normal (build=host) settings:
11922 CC_FOR_BUILD='$(CC)'
11923 BUILD_CFLAGS='$(ALL_CFLAGS)'
11924 BUILD_LDFLAGS='$(LDFLAGS)'
11925 STMP_FIXINC=stmp-fixinc
11926
11927 # And these apply if build != host, or we are generating coverage data
11928 if test x$build != x$host || test "x$coverage_flags" != x
11929 then
11930 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11931 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11932 fi
11933
11934 # Expand extra_headers to include complete path.
11935 # This substitutes for lots of t-* files.
11936 extra_headers_list=
11937 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11938 for file in ${extra_headers} ; do
11939 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11940 done
11941
11942 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11943 if test x"$use_gcc_tgmath" = xyes
11944 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11945 fi
11946
11947 # Define collect2 in Makefile.
11948 case $host_can_use_collect2 in
11949 no) collect2= ;;
11950 *) collect2='collect2$(exeext)' ;;
11951 esac
11952
11953
11954 # Add a definition of USE_COLLECT2 if system wants one.
11955 case $use_collect2 in
11956 no) use_collect2= ;;
11957 "") ;;
11958 *)
11959 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11960 xm_defines="${xm_defines} USE_COLLECT2"
11961 case $host_can_use_collect2 in
11962 no)
11963 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11964 ;;
11965 esac
11966 ;;
11967 esac
11968
11969
11970 cat >>confdefs.h <<_ACEOF
11971 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11972 _ACEOF
11973
11974
11975 # ---------------------------
11976 # Assembler & linker features
11977 # ---------------------------
11978
11979 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11980 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11981 # However when ld-new is first executed from the build tree, libtool will
11982 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11983 # to the build tree. While doing this we need to use the previous-stage
11984 # linker, or we have an infinite loop. The presence of a shell script as
11985 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11986 # the gcc/collect-ld script. So we need to know how libtool works, or
11987 # exec-tool will fail.
11988
11989
11990 case `pwd` in
11991 *\ * | *\ *)
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11993 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11994 esac
11995
11996
11997
11998 macro_version='2.2.7a'
11999 macro_revision='1.3134'
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013 ltmain="$ac_aux_dir/ltmain.sh"
12014
12015 # Backslashify metacharacters that are still active within
12016 # double-quoted strings.
12017 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12018
12019 # Same as above, but do not quote variable references.
12020 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12021
12022 # Sed substitution to delay expansion of an escaped shell variable in a
12023 # double_quote_subst'ed string.
12024 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12025
12026 # Sed substitution to delay expansion of an escaped single quote.
12027 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12028
12029 # Sed substitution to avoid accidental globbing in evaled expressions
12030 no_glob_subst='s/\*/\\\*/g'
12031
12032 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12033 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12034 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12035
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12037 $as_echo_n "checking how to print strings... " >&6; }
12038 # Test print first, because it will be a builtin if present.
12039 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12040 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12041 ECHO='print -r --'
12042 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12043 ECHO='printf %s\n'
12044 else
12045 # Use this function as a fallback that always works.
12046 func_fallback_echo ()
12047 {
12048 eval 'cat <<_LTECHO_EOF
12049 $1
12050 _LTECHO_EOF'
12051 }
12052 ECHO='func_fallback_echo'
12053 fi
12054
12055 # func_echo_all arg...
12056 # Invoke $ECHO with all args, space-separated.
12057 func_echo_all ()
12058 {
12059 $ECHO ""
12060 }
12061
12062 case "$ECHO" in
12063 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12064 $as_echo "printf" >&6; } ;;
12065 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12066 $as_echo "print -r" >&6; } ;;
12067 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12068 $as_echo "cat" >&6; } ;;
12069 esac
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12085 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12086 if test "${ac_cv_path_SED+set}" = set; then :
12087 $as_echo_n "(cached) " >&6
12088 else
12089 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12090 for ac_i in 1 2 3 4 5 6 7; do
12091 ac_script="$ac_script$as_nl$ac_script"
12092 done
12093 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12094 { ac_script=; unset ac_script;}
12095 if test -z "$SED"; then
12096 ac_path_SED_found=false
12097 # Loop through the user's path and test for each of PROGNAME-LIST
12098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12099 for as_dir in $PATH
12100 do
12101 IFS=$as_save_IFS
12102 test -z "$as_dir" && as_dir=.
12103 for ac_prog in sed gsed; do
12104 for ac_exec_ext in '' $ac_executable_extensions; do
12105 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12106 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12107 # Check for GNU ac_path_SED and select it if it is found.
12108 # Check for GNU $ac_path_SED
12109 case `"$ac_path_SED" --version 2>&1` in
12110 *GNU*)
12111 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12112 *)
12113 ac_count=0
12114 $as_echo_n 0123456789 >"conftest.in"
12115 while :
12116 do
12117 cat "conftest.in" "conftest.in" >"conftest.tmp"
12118 mv "conftest.tmp" "conftest.in"
12119 cp "conftest.in" "conftest.nl"
12120 $as_echo '' >> "conftest.nl"
12121 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12122 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12123 as_fn_arith $ac_count + 1 && ac_count=$as_val
12124 if test $ac_count -gt ${ac_path_SED_max-0}; then
12125 # Best one so far, save it but keep looking for a better one
12126 ac_cv_path_SED="$ac_path_SED"
12127 ac_path_SED_max=$ac_count
12128 fi
12129 # 10*(2^10) chars as input seems more than enough
12130 test $ac_count -gt 10 && break
12131 done
12132 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12133 esac
12134
12135 $ac_path_SED_found && break 3
12136 done
12137 done
12138 done
12139 IFS=$as_save_IFS
12140 if test -z "$ac_cv_path_SED"; then
12141 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12142 fi
12143 else
12144 ac_cv_path_SED=$SED
12145 fi
12146
12147 fi
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12149 $as_echo "$ac_cv_path_SED" >&6; }
12150 SED="$ac_cv_path_SED"
12151 rm -f conftest.sed
12152
12153 test -z "$SED" && SED=sed
12154 Xsed="$SED -e 1s/^X//"
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12167 $as_echo_n "checking for fgrep... " >&6; }
12168 if test "${ac_cv_path_FGREP+set}" = set; then :
12169 $as_echo_n "(cached) " >&6
12170 else
12171 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12172 then ac_cv_path_FGREP="$GREP -F"
12173 else
12174 if test -z "$FGREP"; then
12175 ac_path_FGREP_found=false
12176 # Loop through the user's path and test for each of PROGNAME-LIST
12177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12178 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12179 do
12180 IFS=$as_save_IFS
12181 test -z "$as_dir" && as_dir=.
12182 for ac_prog in fgrep; do
12183 for ac_exec_ext in '' $ac_executable_extensions; do
12184 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12185 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12186 # Check for GNU ac_path_FGREP and select it if it is found.
12187 # Check for GNU $ac_path_FGREP
12188 case `"$ac_path_FGREP" --version 2>&1` in
12189 *GNU*)
12190 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12191 *)
12192 ac_count=0
12193 $as_echo_n 0123456789 >"conftest.in"
12194 while :
12195 do
12196 cat "conftest.in" "conftest.in" >"conftest.tmp"
12197 mv "conftest.tmp" "conftest.in"
12198 cp "conftest.in" "conftest.nl"
12199 $as_echo 'FGREP' >> "conftest.nl"
12200 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12201 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12202 as_fn_arith $ac_count + 1 && ac_count=$as_val
12203 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12204 # Best one so far, save it but keep looking for a better one
12205 ac_cv_path_FGREP="$ac_path_FGREP"
12206 ac_path_FGREP_max=$ac_count
12207 fi
12208 # 10*(2^10) chars as input seems more than enough
12209 test $ac_count -gt 10 && break
12210 done
12211 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12212 esac
12213
12214 $ac_path_FGREP_found && break 3
12215 done
12216 done
12217 done
12218 IFS=$as_save_IFS
12219 if test -z "$ac_cv_path_FGREP"; then
12220 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12221 fi
12222 else
12223 ac_cv_path_FGREP=$FGREP
12224 fi
12225
12226 fi
12227 fi
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12229 $as_echo "$ac_cv_path_FGREP" >&6; }
12230 FGREP="$ac_cv_path_FGREP"
12231
12232
12233 test -z "$GREP" && GREP=grep
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253 # Check whether --with-gnu-ld was given.
12254 if test "${with_gnu_ld+set}" = set; then :
12255 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12256 else
12257 with_gnu_ld=no
12258 fi
12259
12260 ac_prog=ld
12261 if test "$GCC" = yes; then
12262 # Check if gcc -print-prog-name=ld gives a path.
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12264 $as_echo_n "checking for ld used by $CC... " >&6; }
12265 case $host in
12266 *-*-mingw*)
12267 # gcc leaves a trailing carriage return which upsets mingw
12268 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12269 *)
12270 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12271 esac
12272 case $ac_prog in
12273 # Accept absolute paths.
12274 [\\/]* | ?:[\\/]*)
12275 re_direlt='/[^/][^/]*/\.\./'
12276 # Canonicalize the pathname of ld
12277 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12278 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12279 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12280 done
12281 test -z "$LD" && LD="$ac_prog"
12282 ;;
12283 "")
12284 # If it fails, then pretend we aren't using GCC.
12285 ac_prog=ld
12286 ;;
12287 *)
12288 # If it is relative, then search for the first ld in PATH.
12289 with_gnu_ld=unknown
12290 ;;
12291 esac
12292 elif test "$with_gnu_ld" = yes; then
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12294 $as_echo_n "checking for GNU ld... " >&6; }
12295 else
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12297 $as_echo_n "checking for non-GNU ld... " >&6; }
12298 fi
12299 if test "${lt_cv_path_LD+set}" = set; then :
12300 $as_echo_n "(cached) " >&6
12301 else
12302 if test -z "$LD"; then
12303 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12304 for ac_dir in $PATH; do
12305 IFS="$lt_save_ifs"
12306 test -z "$ac_dir" && ac_dir=.
12307 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12308 lt_cv_path_LD="$ac_dir/$ac_prog"
12309 # Check to see if the program is GNU ld. I'd rather use --version,
12310 # but apparently some variants of GNU ld only accept -v.
12311 # Break only if it was the GNU/non-GNU ld that we prefer.
12312 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12313 *GNU* | *'with BFD'*)
12314 test "$with_gnu_ld" != no && break
12315 ;;
12316 *)
12317 test "$with_gnu_ld" != yes && break
12318 ;;
12319 esac
12320 fi
12321 done
12322 IFS="$lt_save_ifs"
12323 else
12324 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12325 fi
12326 fi
12327
12328 LD="$lt_cv_path_LD"
12329 if test -n "$LD"; then
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12331 $as_echo "$LD" >&6; }
12332 else
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12334 $as_echo "no" >&6; }
12335 fi
12336 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12338 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12339 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12340 $as_echo_n "(cached) " >&6
12341 else
12342 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12343 case `$LD -v 2>&1 </dev/null` in
12344 *GNU* | *'with BFD'*)
12345 lt_cv_prog_gnu_ld=yes
12346 ;;
12347 *)
12348 lt_cv_prog_gnu_ld=no
12349 ;;
12350 esac
12351 fi
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12353 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12354 with_gnu_ld=$lt_cv_prog_gnu_ld
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12365 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12366 if test "${lt_cv_path_NM+set}" = set; then :
12367 $as_echo_n "(cached) " >&6
12368 else
12369 if test -n "$NM"; then
12370 # Let the user override the test.
12371 lt_cv_path_NM="$NM"
12372 else
12373 lt_nm_to_check="${ac_tool_prefix}nm"
12374 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12375 lt_nm_to_check="$lt_nm_to_check nm"
12376 fi
12377 for lt_tmp_nm in $lt_nm_to_check; do
12378 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12379 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12380 IFS="$lt_save_ifs"
12381 test -z "$ac_dir" && ac_dir=.
12382 tmp_nm="$ac_dir/$lt_tmp_nm"
12383 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12384 # Check to see if the nm accepts a BSD-compat flag.
12385 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12386 # nm: unknown option "B" ignored
12387 # Tru64's nm complains that /dev/null is an invalid object file
12388 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12389 */dev/null* | *'Invalid file or object type'*)
12390 lt_cv_path_NM="$tmp_nm -B"
12391 break
12392 ;;
12393 *)
12394 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12395 */dev/null*)
12396 lt_cv_path_NM="$tmp_nm -p"
12397 break
12398 ;;
12399 *)
12400 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12401 continue # so that we can try to find one that supports BSD flags
12402 ;;
12403 esac
12404 ;;
12405 esac
12406 fi
12407 done
12408 IFS="$lt_save_ifs"
12409 done
12410 : ${lt_cv_path_NM=no}
12411 fi
12412 fi
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12414 $as_echo "$lt_cv_path_NM" >&6; }
12415 if test "$lt_cv_path_NM" != "no"; then
12416 NM="$lt_cv_path_NM"
12417 else
12418 # Didn't find any BSD compatible name lister, look for dumpbin.
12419 if test -n "$DUMPBIN"; then :
12420 # Let the user override the test.
12421 else
12422 if test -n "$ac_tool_prefix"; then
12423 for ac_prog in dumpbin "link -dump"
12424 do
12425 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12426 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12428 $as_echo_n "checking for $ac_word... " >&6; }
12429 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12430 $as_echo_n "(cached) " >&6
12431 else
12432 if test -n "$DUMPBIN"; then
12433 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12434 else
12435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12436 for as_dir in $PATH
12437 do
12438 IFS=$as_save_IFS
12439 test -z "$as_dir" && as_dir=.
12440 for ac_exec_ext in '' $ac_executable_extensions; do
12441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12442 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12444 break 2
12445 fi
12446 done
12447 done
12448 IFS=$as_save_IFS
12449
12450 fi
12451 fi
12452 DUMPBIN=$ac_cv_prog_DUMPBIN
12453 if test -n "$DUMPBIN"; then
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12455 $as_echo "$DUMPBIN" >&6; }
12456 else
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12458 $as_echo "no" >&6; }
12459 fi
12460
12461
12462 test -n "$DUMPBIN" && break
12463 done
12464 fi
12465 if test -z "$DUMPBIN"; then
12466 ac_ct_DUMPBIN=$DUMPBIN
12467 for ac_prog in dumpbin "link -dump"
12468 do
12469 # Extract the first word of "$ac_prog", so it can be a program name with args.
12470 set dummy $ac_prog; ac_word=$2
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12472 $as_echo_n "checking for $ac_word... " >&6; }
12473 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12474 $as_echo_n "(cached) " >&6
12475 else
12476 if test -n "$ac_ct_DUMPBIN"; then
12477 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12478 else
12479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12480 for as_dir in $PATH
12481 do
12482 IFS=$as_save_IFS
12483 test -z "$as_dir" && as_dir=.
12484 for ac_exec_ext in '' $ac_executable_extensions; do
12485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12486 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12488 break 2
12489 fi
12490 done
12491 done
12492 IFS=$as_save_IFS
12493
12494 fi
12495 fi
12496 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12497 if test -n "$ac_ct_DUMPBIN"; then
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12499 $as_echo "$ac_ct_DUMPBIN" >&6; }
12500 else
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12502 $as_echo "no" >&6; }
12503 fi
12504
12505
12506 test -n "$ac_ct_DUMPBIN" && break
12507 done
12508
12509 if test "x$ac_ct_DUMPBIN" = x; then
12510 DUMPBIN=":"
12511 else
12512 case $cross_compiling:$ac_tool_warned in
12513 yes:)
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12516 ac_tool_warned=yes ;;
12517 esac
12518 DUMPBIN=$ac_ct_DUMPBIN
12519 fi
12520 fi
12521
12522 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12523 *COFF*)
12524 DUMPBIN="$DUMPBIN -symbols"
12525 ;;
12526 *)
12527 DUMPBIN=:
12528 ;;
12529 esac
12530 fi
12531
12532 if test "$DUMPBIN" != ":"; then
12533 NM="$DUMPBIN"
12534 fi
12535 fi
12536 test -z "$NM" && NM=nm
12537
12538
12539
12540
12541
12542
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12544 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12545 if test "${lt_cv_nm_interface+set}" = set; then :
12546 $as_echo_n "(cached) " >&6
12547 else
12548 lt_cv_nm_interface="BSD nm"
12549 echo "int some_variable = 0;" > conftest.$ac_ext
12550 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12551 (eval "$ac_compile" 2>conftest.err)
12552 cat conftest.err >&5
12553 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12554 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12555 cat conftest.err >&5
12556 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12557 cat conftest.out >&5
12558 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12559 lt_cv_nm_interface="MS dumpbin"
12560 fi
12561 rm -f conftest*
12562 fi
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12564 $as_echo "$lt_cv_nm_interface" >&6; }
12565
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12567 $as_echo_n "checking whether ln -s works... " >&6; }
12568 LN_S=$as_ln_s
12569 if test "$LN_S" = "ln -s"; then
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12571 $as_echo "yes" >&6; }
12572 else
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12574 $as_echo "no, using $LN_S" >&6; }
12575 fi
12576
12577 # find the maximum length of command line arguments
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12579 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12580 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12581 $as_echo_n "(cached) " >&6
12582 else
12583 i=0
12584 teststring="ABCD"
12585
12586 case $build_os in
12587 msdosdjgpp*)
12588 # On DJGPP, this test can blow up pretty badly due to problems in libc
12589 # (any single argument exceeding 2000 bytes causes a buffer overrun
12590 # during glob expansion). Even if it were fixed, the result of this
12591 # check would be larger than it should be.
12592 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12593 ;;
12594
12595 gnu*)
12596 # Under GNU Hurd, this test is not required because there is
12597 # no limit to the length of command line arguments.
12598 # Libtool will interpret -1 as no limit whatsoever
12599 lt_cv_sys_max_cmd_len=-1;
12600 ;;
12601
12602 cygwin* | mingw* | cegcc*)
12603 # On Win9x/ME, this test blows up -- it succeeds, but takes
12604 # about 5 minutes as the teststring grows exponentially.
12605 # Worse, since 9x/ME are not pre-emptively multitasking,
12606 # you end up with a "frozen" computer, even though with patience
12607 # the test eventually succeeds (with a max line length of 256k).
12608 # Instead, let's just punt: use the minimum linelength reported by
12609 # all of the supported platforms: 8192 (on NT/2K/XP).
12610 lt_cv_sys_max_cmd_len=8192;
12611 ;;
12612
12613 mint*)
12614 # On MiNT this can take a long time and run out of memory.
12615 lt_cv_sys_max_cmd_len=8192;
12616 ;;
12617
12618 amigaos*)
12619 # On AmigaOS with pdksh, this test takes hours, literally.
12620 # So we just punt and use a minimum line length of 8192.
12621 lt_cv_sys_max_cmd_len=8192;
12622 ;;
12623
12624 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12625 # This has been around since 386BSD, at least. Likely further.
12626 if test -x /sbin/sysctl; then
12627 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12628 elif test -x /usr/sbin/sysctl; then
12629 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12630 else
12631 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12632 fi
12633 # And add a safety zone
12634 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12635 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12636 ;;
12637
12638 interix*)
12639 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12640 lt_cv_sys_max_cmd_len=196608
12641 ;;
12642
12643 osf*)
12644 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12645 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12646 # nice to cause kernel panics so lets avoid the loop below.
12647 # First set a reasonable default.
12648 lt_cv_sys_max_cmd_len=16384
12649 #
12650 if test -x /sbin/sysconfig; then
12651 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12652 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12653 esac
12654 fi
12655 ;;
12656 sco3.2v5*)
12657 lt_cv_sys_max_cmd_len=102400
12658 ;;
12659 sysv5* | sco5v6* | sysv4.2uw2*)
12660 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12661 if test -n "$kargmax"; then
12662 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12663 else
12664 lt_cv_sys_max_cmd_len=32768
12665 fi
12666 ;;
12667 *)
12668 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12669 if test -n "$lt_cv_sys_max_cmd_len"; then
12670 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12671 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12672 else
12673 # Make teststring a little bigger before we do anything with it.
12674 # a 1K string should be a reasonable start.
12675 for i in 1 2 3 4 5 6 7 8 ; do
12676 teststring=$teststring$teststring
12677 done
12678 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12679 # If test is not a shell built-in, we'll probably end up computing a
12680 # maximum length that is only half of the actual maximum length, but
12681 # we can't tell.
12682 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12683 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12684 test $i != 17 # 1/2 MB should be enough
12685 do
12686 i=`expr $i + 1`
12687 teststring=$teststring$teststring
12688 done
12689 # Only check the string length outside the loop.
12690 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12691 teststring=
12692 # Add a significant safety factor because C++ compilers can tack on
12693 # massive amounts of additional arguments before passing them to the
12694 # linker. It appears as though 1/2 is a usable value.
12695 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12696 fi
12697 ;;
12698 esac
12699
12700 fi
12701
12702 if test -n $lt_cv_sys_max_cmd_len ; then
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12704 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12705 else
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12707 $as_echo "none" >&6; }
12708 fi
12709 max_cmd_len=$lt_cv_sys_max_cmd_len
12710
12711
12712
12713
12714
12715
12716 : ${CP="cp -f"}
12717 : ${MV="mv -f"}
12718 : ${RM="rm -f"}
12719
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12721 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12722 # Try some XSI features
12723 xsi_shell=no
12724 ( _lt_dummy="a/b/c"
12725 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12726 = c,a/b,, \
12727 && eval 'test $(( 1 + 1 )) -eq 2 \
12728 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12729 && xsi_shell=yes
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12731 $as_echo "$xsi_shell" >&6; }
12732
12733
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12735 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12736 lt_shell_append=no
12737 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12738 >/dev/null 2>&1 \
12739 && lt_shell_append=yes
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12741 $as_echo "$lt_shell_append" >&6; }
12742
12743
12744 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12745 lt_unset=unset
12746 else
12747 lt_unset=false
12748 fi
12749
12750
12751
12752
12753
12754 # test EBCDIC or ASCII
12755 case `echo X|tr X '\101'` in
12756 A) # ASCII based system
12757 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12758 lt_SP2NL='tr \040 \012'
12759 lt_NL2SP='tr \015\012 \040\040'
12760 ;;
12761 *) # EBCDIC based system
12762 lt_SP2NL='tr \100 \n'
12763 lt_NL2SP='tr \r\n \100\100'
12764 ;;
12765 esac
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12776 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12777 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12778 $as_echo_n "(cached) " >&6
12779 else
12780 lt_cv_ld_reload_flag='-r'
12781 fi
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12783 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12784 reload_flag=$lt_cv_ld_reload_flag
12785 case $reload_flag in
12786 "" | " "*) ;;
12787 *) reload_flag=" $reload_flag" ;;
12788 esac
12789 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12790 case $host_os in
12791 darwin*)
12792 if test "$GCC" = yes; then
12793 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12794 else
12795 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12796 fi
12797 ;;
12798 esac
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808 if test -n "$ac_tool_prefix"; then
12809 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12810 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12812 $as_echo_n "checking for $ac_word... " >&6; }
12813 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12814 $as_echo_n "(cached) " >&6
12815 else
12816 if test -n "$OBJDUMP"; then
12817 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12818 else
12819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12820 for as_dir in $PATH
12821 do
12822 IFS=$as_save_IFS
12823 test -z "$as_dir" && as_dir=.
12824 for ac_exec_ext in '' $ac_executable_extensions; do
12825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12826 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12828 break 2
12829 fi
12830 done
12831 done
12832 IFS=$as_save_IFS
12833
12834 fi
12835 fi
12836 OBJDUMP=$ac_cv_prog_OBJDUMP
12837 if test -n "$OBJDUMP"; then
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12839 $as_echo "$OBJDUMP" >&6; }
12840 else
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12842 $as_echo "no" >&6; }
12843 fi
12844
12845
12846 fi
12847 if test -z "$ac_cv_prog_OBJDUMP"; then
12848 ac_ct_OBJDUMP=$OBJDUMP
12849 # Extract the first word of "objdump", so it can be a program name with args.
12850 set dummy objdump; ac_word=$2
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12852 $as_echo_n "checking for $ac_word... " >&6; }
12853 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12854 $as_echo_n "(cached) " >&6
12855 else
12856 if test -n "$ac_ct_OBJDUMP"; then
12857 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12858 else
12859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12860 for as_dir in $PATH
12861 do
12862 IFS=$as_save_IFS
12863 test -z "$as_dir" && as_dir=.
12864 for ac_exec_ext in '' $ac_executable_extensions; do
12865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12866 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12868 break 2
12869 fi
12870 done
12871 done
12872 IFS=$as_save_IFS
12873
12874 fi
12875 fi
12876 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12877 if test -n "$ac_ct_OBJDUMP"; then
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12879 $as_echo "$ac_ct_OBJDUMP" >&6; }
12880 else
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12882 $as_echo "no" >&6; }
12883 fi
12884
12885 if test "x$ac_ct_OBJDUMP" = x; then
12886 OBJDUMP="false"
12887 else
12888 case $cross_compiling:$ac_tool_warned in
12889 yes:)
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12892 ac_tool_warned=yes ;;
12893 esac
12894 OBJDUMP=$ac_ct_OBJDUMP
12895 fi
12896 else
12897 OBJDUMP="$ac_cv_prog_OBJDUMP"
12898 fi
12899
12900 test -z "$OBJDUMP" && OBJDUMP=objdump
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12911 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12912 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12913 $as_echo_n "(cached) " >&6
12914 else
12915 lt_cv_file_magic_cmd='$MAGIC_CMD'
12916 lt_cv_file_magic_test_file=
12917 lt_cv_deplibs_check_method='unknown'
12918 # Need to set the preceding variable on all platforms that support
12919 # interlibrary dependencies.
12920 # 'none' -- dependencies not supported.
12921 # `unknown' -- same as none, but documents that we really don't know.
12922 # 'pass_all' -- all dependencies passed with no checks.
12923 # 'test_compile' -- check by making test program.
12924 # 'file_magic [[regex]]' -- check by looking for files in library path
12925 # which responds to the $file_magic_cmd with a given extended regex.
12926 # If you have `file' or equivalent on your system and you're not sure
12927 # whether `pass_all' will *always* work, you probably want this one.
12928
12929 case $host_os in
12930 aix[4-9]*)
12931 lt_cv_deplibs_check_method=pass_all
12932 ;;
12933
12934 beos*)
12935 lt_cv_deplibs_check_method=pass_all
12936 ;;
12937
12938 bsdi[45]*)
12939 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12940 lt_cv_file_magic_cmd='/usr/bin/file -L'
12941 lt_cv_file_magic_test_file=/shlib/libc.so
12942 ;;
12943
12944 cygwin*)
12945 # func_win32_libid is a shell function defined in ltmain.sh
12946 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12947 lt_cv_file_magic_cmd='func_win32_libid'
12948 ;;
12949
12950 mingw* | pw32*)
12951 # Base MSYS/MinGW do not provide the 'file' command needed by
12952 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12953 # unless we find 'file', for example because we are cross-compiling.
12954 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12955 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12956 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12957 lt_cv_file_magic_cmd='func_win32_libid'
12958 else
12959 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12960 lt_cv_file_magic_cmd='$OBJDUMP -f'
12961 fi
12962 ;;
12963
12964 cegcc*)
12965 # use the weaker test based on 'objdump'. See mingw*.
12966 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12967 lt_cv_file_magic_cmd='$OBJDUMP -f'
12968 ;;
12969
12970 darwin* | rhapsody*)
12971 lt_cv_deplibs_check_method=pass_all
12972 ;;
12973
12974 freebsd* | dragonfly*)
12975 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12976 case $host_cpu in
12977 i*86 )
12978 # Not sure whether the presence of OpenBSD here was a mistake.
12979 # Let's accept both of them until this is cleared up.
12980 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12981 lt_cv_file_magic_cmd=/usr/bin/file
12982 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12983 ;;
12984 esac
12985 else
12986 lt_cv_deplibs_check_method=pass_all
12987 fi
12988 ;;
12989
12990 gnu*)
12991 lt_cv_deplibs_check_method=pass_all
12992 ;;
12993
12994 haiku*)
12995 lt_cv_deplibs_check_method=pass_all
12996 ;;
12997
12998 hpux10.20* | hpux11*)
12999 lt_cv_file_magic_cmd=/usr/bin/file
13000 case $host_cpu in
13001 ia64*)
13002 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13003 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13004 ;;
13005 hppa*64*)
13006 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]'
13007 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13008 ;;
13009 *)
13010 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13011 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13012 ;;
13013 esac
13014 ;;
13015
13016 interix[3-9]*)
13017 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13018 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13019 ;;
13020
13021 irix5* | irix6* | nonstopux*)
13022 case $LD in
13023 *-32|*"-32 ") libmagic=32-bit;;
13024 *-n32|*"-n32 ") libmagic=N32;;
13025 *-64|*"-64 ") libmagic=64-bit;;
13026 *) libmagic=never-match;;
13027 esac
13028 lt_cv_deplibs_check_method=pass_all
13029 ;;
13030
13031 # This must be Linux ELF.
13032 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13033 lt_cv_deplibs_check_method=pass_all
13034 ;;
13035
13036 netbsd*)
13037 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13039 else
13040 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13041 fi
13042 ;;
13043
13044 newos6*)
13045 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13046 lt_cv_file_magic_cmd=/usr/bin/file
13047 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13048 ;;
13049
13050 *nto* | *qnx*)
13051 lt_cv_deplibs_check_method=pass_all
13052 ;;
13053
13054 openbsd*)
13055 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13056 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13057 else
13058 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13059 fi
13060 ;;
13061
13062 osf3* | osf4* | osf5*)
13063 lt_cv_deplibs_check_method=pass_all
13064 ;;
13065
13066 rdos*)
13067 lt_cv_deplibs_check_method=pass_all
13068 ;;
13069
13070 solaris*)
13071 lt_cv_deplibs_check_method=pass_all
13072 ;;
13073
13074 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13075 lt_cv_deplibs_check_method=pass_all
13076 ;;
13077
13078 sysv4 | sysv4.3*)
13079 case $host_vendor in
13080 motorola)
13081 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]'
13082 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13083 ;;
13084 ncr)
13085 lt_cv_deplibs_check_method=pass_all
13086 ;;
13087 sequent)
13088 lt_cv_file_magic_cmd='/bin/file'
13089 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13090 ;;
13091 sni)
13092 lt_cv_file_magic_cmd='/bin/file'
13093 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13094 lt_cv_file_magic_test_file=/lib/libc.so
13095 ;;
13096 siemens)
13097 lt_cv_deplibs_check_method=pass_all
13098 ;;
13099 pc)
13100 lt_cv_deplibs_check_method=pass_all
13101 ;;
13102 esac
13103 ;;
13104
13105 tpf*)
13106 lt_cv_deplibs_check_method=pass_all
13107 ;;
13108 esac
13109
13110 fi
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13112 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13113 file_magic_cmd=$lt_cv_file_magic_cmd
13114 deplibs_check_method=$lt_cv_deplibs_check_method
13115 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128 if test -n "$ac_tool_prefix"; then
13129 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13130 set dummy ${ac_tool_prefix}ar; ac_word=$2
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13132 $as_echo_n "checking for $ac_word... " >&6; }
13133 if test "${ac_cv_prog_AR+set}" = set; then :
13134 $as_echo_n "(cached) " >&6
13135 else
13136 if test -n "$AR"; then
13137 ac_cv_prog_AR="$AR" # Let the user override the test.
13138 else
13139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13140 for as_dir in $PATH
13141 do
13142 IFS=$as_save_IFS
13143 test -z "$as_dir" && as_dir=.
13144 for ac_exec_ext in '' $ac_executable_extensions; do
13145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13146 ac_cv_prog_AR="${ac_tool_prefix}ar"
13147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13148 break 2
13149 fi
13150 done
13151 done
13152 IFS=$as_save_IFS
13153
13154 fi
13155 fi
13156 AR=$ac_cv_prog_AR
13157 if test -n "$AR"; then
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13159 $as_echo "$AR" >&6; }
13160 else
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13162 $as_echo "no" >&6; }
13163 fi
13164
13165
13166 fi
13167 if test -z "$ac_cv_prog_AR"; then
13168 ac_ct_AR=$AR
13169 # Extract the first word of "ar", so it can be a program name with args.
13170 set dummy ar; ac_word=$2
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13172 $as_echo_n "checking for $ac_word... " >&6; }
13173 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13174 $as_echo_n "(cached) " >&6
13175 else
13176 if test -n "$ac_ct_AR"; then
13177 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13178 else
13179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13180 for as_dir in $PATH
13181 do
13182 IFS=$as_save_IFS
13183 test -z "$as_dir" && as_dir=.
13184 for ac_exec_ext in '' $ac_executable_extensions; do
13185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13186 ac_cv_prog_ac_ct_AR="ar"
13187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13188 break 2
13189 fi
13190 done
13191 done
13192 IFS=$as_save_IFS
13193
13194 fi
13195 fi
13196 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13197 if test -n "$ac_ct_AR"; then
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13199 $as_echo "$ac_ct_AR" >&6; }
13200 else
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13202 $as_echo "no" >&6; }
13203 fi
13204
13205 if test "x$ac_ct_AR" = x; then
13206 AR="false"
13207 else
13208 case $cross_compiling:$ac_tool_warned in
13209 yes:)
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13212 ac_tool_warned=yes ;;
13213 esac
13214 AR=$ac_ct_AR
13215 fi
13216 else
13217 AR="$ac_cv_prog_AR"
13218 fi
13219
13220 test -z "$AR" && AR=ar
13221 test -z "$AR_FLAGS" && AR_FLAGS=cru
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233 if test -n "$ac_tool_prefix"; then
13234 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13235 set dummy ${ac_tool_prefix}strip; ac_word=$2
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13237 $as_echo_n "checking for $ac_word... " >&6; }
13238 if test "${ac_cv_prog_STRIP+set}" = set; then :
13239 $as_echo_n "(cached) " >&6
13240 else
13241 if test -n "$STRIP"; then
13242 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13243 else
13244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13245 for as_dir in $PATH
13246 do
13247 IFS=$as_save_IFS
13248 test -z "$as_dir" && as_dir=.
13249 for ac_exec_ext in '' $ac_executable_extensions; do
13250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13251 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13253 break 2
13254 fi
13255 done
13256 done
13257 IFS=$as_save_IFS
13258
13259 fi
13260 fi
13261 STRIP=$ac_cv_prog_STRIP
13262 if test -n "$STRIP"; then
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13264 $as_echo "$STRIP" >&6; }
13265 else
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13267 $as_echo "no" >&6; }
13268 fi
13269
13270
13271 fi
13272 if test -z "$ac_cv_prog_STRIP"; then
13273 ac_ct_STRIP=$STRIP
13274 # Extract the first word of "strip", so it can be a program name with args.
13275 set dummy strip; ac_word=$2
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13277 $as_echo_n "checking for $ac_word... " >&6; }
13278 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13279 $as_echo_n "(cached) " >&6
13280 else
13281 if test -n "$ac_ct_STRIP"; then
13282 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13283 else
13284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13285 for as_dir in $PATH
13286 do
13287 IFS=$as_save_IFS
13288 test -z "$as_dir" && as_dir=.
13289 for ac_exec_ext in '' $ac_executable_extensions; do
13290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13291 ac_cv_prog_ac_ct_STRIP="strip"
13292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13293 break 2
13294 fi
13295 done
13296 done
13297 IFS=$as_save_IFS
13298
13299 fi
13300 fi
13301 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13302 if test -n "$ac_ct_STRIP"; then
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13304 $as_echo "$ac_ct_STRIP" >&6; }
13305 else
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13307 $as_echo "no" >&6; }
13308 fi
13309
13310 if test "x$ac_ct_STRIP" = x; then
13311 STRIP=":"
13312 else
13313 case $cross_compiling:$ac_tool_warned in
13314 yes:)
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13317 ac_tool_warned=yes ;;
13318 esac
13319 STRIP=$ac_ct_STRIP
13320 fi
13321 else
13322 STRIP="$ac_cv_prog_STRIP"
13323 fi
13324
13325 test -z "$STRIP" && STRIP=:
13326
13327
13328
13329
13330
13331
13332 if test -n "$ac_tool_prefix"; then
13333 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13334 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13336 $as_echo_n "checking for $ac_word... " >&6; }
13337 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13338 $as_echo_n "(cached) " >&6
13339 else
13340 if test -n "$RANLIB"; then
13341 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13342 else
13343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13344 for as_dir in $PATH
13345 do
13346 IFS=$as_save_IFS
13347 test -z "$as_dir" && as_dir=.
13348 for ac_exec_ext in '' $ac_executable_extensions; do
13349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13350 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13352 break 2
13353 fi
13354 done
13355 done
13356 IFS=$as_save_IFS
13357
13358 fi
13359 fi
13360 RANLIB=$ac_cv_prog_RANLIB
13361 if test -n "$RANLIB"; then
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13363 $as_echo "$RANLIB" >&6; }
13364 else
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13366 $as_echo "no" >&6; }
13367 fi
13368
13369
13370 fi
13371 if test -z "$ac_cv_prog_RANLIB"; then
13372 ac_ct_RANLIB=$RANLIB
13373 # Extract the first word of "ranlib", so it can be a program name with args.
13374 set dummy ranlib; ac_word=$2
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13376 $as_echo_n "checking for $ac_word... " >&6; }
13377 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13378 $as_echo_n "(cached) " >&6
13379 else
13380 if test -n "$ac_ct_RANLIB"; then
13381 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13382 else
13383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13384 for as_dir in $PATH
13385 do
13386 IFS=$as_save_IFS
13387 test -z "$as_dir" && as_dir=.
13388 for ac_exec_ext in '' $ac_executable_extensions; do
13389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13390 ac_cv_prog_ac_ct_RANLIB="ranlib"
13391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13392 break 2
13393 fi
13394 done
13395 done
13396 IFS=$as_save_IFS
13397
13398 fi
13399 fi
13400 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13401 if test -n "$ac_ct_RANLIB"; then
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13403 $as_echo "$ac_ct_RANLIB" >&6; }
13404 else
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13406 $as_echo "no" >&6; }
13407 fi
13408
13409 if test "x$ac_ct_RANLIB" = x; then
13410 RANLIB=":"
13411 else
13412 case $cross_compiling:$ac_tool_warned in
13413 yes:)
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13416 ac_tool_warned=yes ;;
13417 esac
13418 RANLIB=$ac_ct_RANLIB
13419 fi
13420 else
13421 RANLIB="$ac_cv_prog_RANLIB"
13422 fi
13423
13424 test -z "$RANLIB" && RANLIB=:
13425
13426
13427
13428
13429
13430
13431 # Determine commands to create old-style static archives.
13432 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13433 old_postinstall_cmds='chmod 644 $oldlib'
13434 old_postuninstall_cmds=
13435
13436 if test -n "$RANLIB"; then
13437 case $host_os in
13438 openbsd*)
13439 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13440 ;;
13441 *)
13442 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13443 ;;
13444 esac
13445 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13446 fi
13447
13448 case $host_os in
13449 darwin*)
13450 lock_old_archive_extraction=yes ;;
13451 *)
13452 lock_old_archive_extraction=no ;;
13453 esac
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493 # If no C compiler was specified, use CC.
13494 LTCC=${LTCC-"$CC"}
13495
13496 # If no C compiler flags were specified, use CFLAGS.
13497 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13498
13499 # Allow CC to be a program name with arguments.
13500 compiler=$CC
13501
13502
13503 # Check for command to grab the raw symbol name followed by C symbol from nm.
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13505 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13506 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13507 $as_echo_n "(cached) " >&6
13508 else
13509
13510 # These are sane defaults that work on at least a few old systems.
13511 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13512
13513 # Character class describing NM global symbol codes.
13514 symcode='[BCDEGRST]'
13515
13516 # Regexp to match symbols that can be accessed directly from C.
13517 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13518
13519 # Define system-specific variables.
13520 case $host_os in
13521 aix*)
13522 symcode='[BCDT]'
13523 ;;
13524 cygwin* | mingw* | pw32* | cegcc*)
13525 symcode='[ABCDGISTW]'
13526 ;;
13527 hpux*)
13528 if test "$host_cpu" = ia64; then
13529 symcode='[ABCDEGRST]'
13530 fi
13531 ;;
13532 irix* | nonstopux*)
13533 symcode='[BCDEGRST]'
13534 ;;
13535 osf*)
13536 symcode='[BCDEGQRST]'
13537 ;;
13538 solaris*)
13539 symcode='[BDRT]'
13540 ;;
13541 sco3.2v5*)
13542 symcode='[DT]'
13543 ;;
13544 sysv4.2uw2*)
13545 symcode='[DT]'
13546 ;;
13547 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13548 symcode='[ABDT]'
13549 ;;
13550 sysv4)
13551 symcode='[DFNSTU]'
13552 ;;
13553 esac
13554
13555 # If we're using GNU nm, then use its standard symbol codes.
13556 case `$NM -V 2>&1` in
13557 *GNU* | *'with BFD'*)
13558 symcode='[ABCDGIRSTW]' ;;
13559 esac
13560
13561 # Transform an extracted symbol line into a proper C declaration.
13562 # Some systems (esp. on ia64) link data and code symbols differently,
13563 # so use this general approach.
13564 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13565
13566 # Transform an extracted symbol line into symbol name and symbol address
13567 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13568 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'"
13569
13570 # Handle CRLF in mingw tool chain
13571 opt_cr=
13572 case $build_os in
13573 mingw*)
13574 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13575 ;;
13576 esac
13577
13578 # Try without a prefix underscore, then with it.
13579 for ac_symprfx in "" "_"; do
13580
13581 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13582 symxfrm="\\1 $ac_symprfx\\2 \\2"
13583
13584 # Write the raw and C identifiers.
13585 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13586 # Fake it for dumpbin and say T for any non-static function
13587 # and D for any global variable.
13588 # Also find C++ and __fastcall symbols from MSVC++,
13589 # which start with @ or ?.
13590 lt_cv_sys_global_symbol_pipe="$AWK '"\
13591 " {last_section=section; section=\$ 3};"\
13592 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13593 " \$ 0!~/External *\|/{next};"\
13594 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13595 " {if(hide[section]) next};"\
13596 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13597 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13598 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13599 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13600 " ' prfx=^$ac_symprfx"
13601 else
13602 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13603 fi
13604
13605 # Check to see that the pipe works correctly.
13606 pipe_works=no
13607
13608 rm -f conftest*
13609 cat > conftest.$ac_ext <<_LT_EOF
13610 #ifdef __cplusplus
13611 extern "C" {
13612 #endif
13613 char nm_test_var;
13614 void nm_test_func(void);
13615 void nm_test_func(void){}
13616 #ifdef __cplusplus
13617 }
13618 #endif
13619 int main(){nm_test_var='a';nm_test_func();return(0);}
13620 _LT_EOF
13621
13622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13623 (eval $ac_compile) 2>&5
13624 ac_status=$?
13625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13626 test $ac_status = 0; }; then
13627 # Now try to grab the symbols.
13628 nlist=conftest.nm
13629 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13630 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13631 ac_status=$?
13632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13633 test $ac_status = 0; } && test -s "$nlist"; then
13634 # Try sorting and uniquifying the output.
13635 if sort "$nlist" | uniq > "$nlist"T; then
13636 mv -f "$nlist"T "$nlist"
13637 else
13638 rm -f "$nlist"T
13639 fi
13640
13641 # Make sure that we snagged all the symbols we need.
13642 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13643 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13644 cat <<_LT_EOF > conftest.$ac_ext
13645 #ifdef __cplusplus
13646 extern "C" {
13647 #endif
13648
13649 _LT_EOF
13650 # Now generate the symbol file.
13651 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13652
13653 cat <<_LT_EOF >> conftest.$ac_ext
13654
13655 /* The mapping between symbol names and symbols. */
13656 const struct {
13657 const char *name;
13658 void *address;
13659 }
13660 lt__PROGRAM__LTX_preloaded_symbols[] =
13661 {
13662 { "@PROGRAM@", (void *) 0 },
13663 _LT_EOF
13664 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13665 cat <<\_LT_EOF >> conftest.$ac_ext
13666 {0, (void *) 0}
13667 };
13668
13669 /* This works around a problem in FreeBSD linker */
13670 #ifdef FREEBSD_WORKAROUND
13671 static const void *lt_preloaded_setup() {
13672 return lt__PROGRAM__LTX_preloaded_symbols;
13673 }
13674 #endif
13675
13676 #ifdef __cplusplus
13677 }
13678 #endif
13679 _LT_EOF
13680 # Now try linking the two files.
13681 mv conftest.$ac_objext conftstm.$ac_objext
13682 lt_save_LIBS="$LIBS"
13683 lt_save_CFLAGS="$CFLAGS"
13684 LIBS="conftstm.$ac_objext"
13685 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13687 (eval $ac_link) 2>&5
13688 ac_status=$?
13689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13690 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13691 pipe_works=yes
13692 fi
13693 LIBS="$lt_save_LIBS"
13694 CFLAGS="$lt_save_CFLAGS"
13695 else
13696 echo "cannot find nm_test_func in $nlist" >&5
13697 fi
13698 else
13699 echo "cannot find nm_test_var in $nlist" >&5
13700 fi
13701 else
13702 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13703 fi
13704 else
13705 echo "$progname: failed program was:" >&5
13706 cat conftest.$ac_ext >&5
13707 fi
13708 rm -rf conftest* conftst*
13709
13710 # Do not use the global_symbol_pipe unless it works.
13711 if test "$pipe_works" = yes; then
13712 break
13713 else
13714 lt_cv_sys_global_symbol_pipe=
13715 fi
13716 done
13717
13718 fi
13719
13720 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13721 lt_cv_sys_global_symbol_to_cdecl=
13722 fi
13723 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13725 $as_echo "failed" >&6; }
13726 else
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13728 $as_echo "ok" >&6; }
13729 fi
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752 # Check whether --enable-libtool-lock was given.
13753 if test "${enable_libtool_lock+set}" = set; then :
13754 enableval=$enable_libtool_lock;
13755 fi
13756
13757 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13758
13759 # Some flags need to be propagated to the compiler or linker for good
13760 # libtool support.
13761 case $host in
13762 ia64-*-hpux*)
13763 # Find out which ABI we are using.
13764 echo 'int i;' > conftest.$ac_ext
13765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13766 (eval $ac_compile) 2>&5
13767 ac_status=$?
13768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13769 test $ac_status = 0; }; then
13770 case `/usr/bin/file conftest.$ac_objext` in
13771 *ELF-32*)
13772 HPUX_IA64_MODE="32"
13773 ;;
13774 *ELF-64*)
13775 HPUX_IA64_MODE="64"
13776 ;;
13777 esac
13778 fi
13779 rm -rf conftest*
13780 ;;
13781 *-*-irix6*)
13782 # Find out which ABI we are using.
13783 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13785 (eval $ac_compile) 2>&5
13786 ac_status=$?
13787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13788 test $ac_status = 0; }; then
13789 if test "$lt_cv_prog_gnu_ld" = yes; then
13790 case `/usr/bin/file conftest.$ac_objext` in
13791 *32-bit*)
13792 LD="${LD-ld} -melf32bsmip"
13793 ;;
13794 *N32*)
13795 LD="${LD-ld} -melf32bmipn32"
13796 ;;
13797 *64-bit*)
13798 LD="${LD-ld} -melf64bmip"
13799 ;;
13800 esac
13801 else
13802 case `/usr/bin/file conftest.$ac_objext` in
13803 *32-bit*)
13804 LD="${LD-ld} -32"
13805 ;;
13806 *N32*)
13807 LD="${LD-ld} -n32"
13808 ;;
13809 *64-bit*)
13810 LD="${LD-ld} -64"
13811 ;;
13812 esac
13813 fi
13814 fi
13815 rm -rf conftest*
13816 ;;
13817
13818 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13819 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13820 # Find out which ABI we are using.
13821 echo 'int i;' > conftest.$ac_ext
13822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13823 (eval $ac_compile) 2>&5
13824 ac_status=$?
13825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13826 test $ac_status = 0; }; then
13827 case `/usr/bin/file conftest.o` in
13828 *32-bit*)
13829 case $host in
13830 x86_64-*kfreebsd*-gnu)
13831 LD="${LD-ld} -m elf_i386_fbsd"
13832 ;;
13833 x86_64-*linux*)
13834 LD="${LD-ld} -m elf_i386"
13835 ;;
13836 ppc64-*linux*|powerpc64-*linux*)
13837 LD="${LD-ld} -m elf32ppclinux"
13838 ;;
13839 s390x-*linux*)
13840 LD="${LD-ld} -m elf_s390"
13841 ;;
13842 sparc64-*linux*)
13843 LD="${LD-ld} -m elf32_sparc"
13844 ;;
13845 esac
13846 ;;
13847 *64-bit*)
13848 case $host in
13849 x86_64-*kfreebsd*-gnu)
13850 LD="${LD-ld} -m elf_x86_64_fbsd"
13851 ;;
13852 x86_64-*linux*)
13853 LD="${LD-ld} -m elf_x86_64"
13854 ;;
13855 ppc*-*linux*|powerpc*-*linux*)
13856 LD="${LD-ld} -m elf64ppc"
13857 ;;
13858 s390*-*linux*|s390*-*tpf*)
13859 LD="${LD-ld} -m elf64_s390"
13860 ;;
13861 sparc*-*linux*)
13862 LD="${LD-ld} -m elf64_sparc"
13863 ;;
13864 esac
13865 ;;
13866 esac
13867 fi
13868 rm -rf conftest*
13869 ;;
13870
13871 *-*-sco3.2v5*)
13872 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13873 SAVE_CFLAGS="$CFLAGS"
13874 CFLAGS="$CFLAGS -belf"
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13876 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13877 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13878 $as_echo_n "(cached) " >&6
13879 else
13880 ac_ext=c
13881 ac_cpp='$CPP $CPPFLAGS'
13882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13885
13886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13887 /* end confdefs.h. */
13888
13889 int
13890 main ()
13891 {
13892
13893 ;
13894 return 0;
13895 }
13896 _ACEOF
13897 if ac_fn_c_try_link "$LINENO"; then :
13898 lt_cv_cc_needs_belf=yes
13899 else
13900 lt_cv_cc_needs_belf=no
13901 fi
13902 rm -f core conftest.err conftest.$ac_objext \
13903 conftest$ac_exeext conftest.$ac_ext
13904 ac_ext=c
13905 ac_cpp='$CPP $CPPFLAGS'
13906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13909
13910 fi
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13912 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13913 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13914 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13915 CFLAGS="$SAVE_CFLAGS"
13916 fi
13917 ;;
13918 sparc*-*solaris*)
13919 # Find out which ABI we are using.
13920 echo 'int i;' > conftest.$ac_ext
13921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13922 (eval $ac_compile) 2>&5
13923 ac_status=$?
13924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13925 test $ac_status = 0; }; then
13926 case `/usr/bin/file conftest.o` in
13927 *64-bit*)
13928 case $lt_cv_prog_gnu_ld in
13929 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13930 *)
13931 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13932 LD="${LD-ld} -64"
13933 fi
13934 ;;
13935 esac
13936 ;;
13937 esac
13938 fi
13939 rm -rf conftest*
13940 ;;
13941 esac
13942
13943 need_locks="$enable_libtool_lock"
13944
13945
13946 case $host_os in
13947 rhapsody* | darwin*)
13948 if test -n "$ac_tool_prefix"; then
13949 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13950 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13952 $as_echo_n "checking for $ac_word... " >&6; }
13953 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13954 $as_echo_n "(cached) " >&6
13955 else
13956 if test -n "$DSYMUTIL"; then
13957 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13958 else
13959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13960 for as_dir in $PATH
13961 do
13962 IFS=$as_save_IFS
13963 test -z "$as_dir" && as_dir=.
13964 for ac_exec_ext in '' $ac_executable_extensions; do
13965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13966 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13968 break 2
13969 fi
13970 done
13971 done
13972 IFS=$as_save_IFS
13973
13974 fi
13975 fi
13976 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13977 if test -n "$DSYMUTIL"; then
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13979 $as_echo "$DSYMUTIL" >&6; }
13980 else
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13982 $as_echo "no" >&6; }
13983 fi
13984
13985
13986 fi
13987 if test -z "$ac_cv_prog_DSYMUTIL"; then
13988 ac_ct_DSYMUTIL=$DSYMUTIL
13989 # Extract the first word of "dsymutil", so it can be a program name with args.
13990 set dummy dsymutil; ac_word=$2
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13992 $as_echo_n "checking for $ac_word... " >&6; }
13993 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13994 $as_echo_n "(cached) " >&6
13995 else
13996 if test -n "$ac_ct_DSYMUTIL"; then
13997 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13998 else
13999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14000 for as_dir in $PATH
14001 do
14002 IFS=$as_save_IFS
14003 test -z "$as_dir" && as_dir=.
14004 for ac_exec_ext in '' $ac_executable_extensions; do
14005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14006 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14008 break 2
14009 fi
14010 done
14011 done
14012 IFS=$as_save_IFS
14013
14014 fi
14015 fi
14016 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14017 if test -n "$ac_ct_DSYMUTIL"; then
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14019 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14020 else
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14022 $as_echo "no" >&6; }
14023 fi
14024
14025 if test "x$ac_ct_DSYMUTIL" = x; then
14026 DSYMUTIL=":"
14027 else
14028 case $cross_compiling:$ac_tool_warned in
14029 yes:)
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14032 ac_tool_warned=yes ;;
14033 esac
14034 DSYMUTIL=$ac_ct_DSYMUTIL
14035 fi
14036 else
14037 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14038 fi
14039
14040 if test -n "$ac_tool_prefix"; then
14041 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14042 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14044 $as_echo_n "checking for $ac_word... " >&6; }
14045 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14046 $as_echo_n "(cached) " >&6
14047 else
14048 if test -n "$NMEDIT"; then
14049 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14050 else
14051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14052 for as_dir in $PATH
14053 do
14054 IFS=$as_save_IFS
14055 test -z "$as_dir" && as_dir=.
14056 for ac_exec_ext in '' $ac_executable_extensions; do
14057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14058 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14060 break 2
14061 fi
14062 done
14063 done
14064 IFS=$as_save_IFS
14065
14066 fi
14067 fi
14068 NMEDIT=$ac_cv_prog_NMEDIT
14069 if test -n "$NMEDIT"; then
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14071 $as_echo "$NMEDIT" >&6; }
14072 else
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14074 $as_echo "no" >&6; }
14075 fi
14076
14077
14078 fi
14079 if test -z "$ac_cv_prog_NMEDIT"; then
14080 ac_ct_NMEDIT=$NMEDIT
14081 # Extract the first word of "nmedit", so it can be a program name with args.
14082 set dummy nmedit; ac_word=$2
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14084 $as_echo_n "checking for $ac_word... " >&6; }
14085 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14086 $as_echo_n "(cached) " >&6
14087 else
14088 if test -n "$ac_ct_NMEDIT"; then
14089 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14090 else
14091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14092 for as_dir in $PATH
14093 do
14094 IFS=$as_save_IFS
14095 test -z "$as_dir" && as_dir=.
14096 for ac_exec_ext in '' $ac_executable_extensions; do
14097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14098 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14100 break 2
14101 fi
14102 done
14103 done
14104 IFS=$as_save_IFS
14105
14106 fi
14107 fi
14108 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14109 if test -n "$ac_ct_NMEDIT"; then
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14111 $as_echo "$ac_ct_NMEDIT" >&6; }
14112 else
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14114 $as_echo "no" >&6; }
14115 fi
14116
14117 if test "x$ac_ct_NMEDIT" = x; then
14118 NMEDIT=":"
14119 else
14120 case $cross_compiling:$ac_tool_warned in
14121 yes:)
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14124 ac_tool_warned=yes ;;
14125 esac
14126 NMEDIT=$ac_ct_NMEDIT
14127 fi
14128 else
14129 NMEDIT="$ac_cv_prog_NMEDIT"
14130 fi
14131
14132 if test -n "$ac_tool_prefix"; then
14133 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14134 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14136 $as_echo_n "checking for $ac_word... " >&6; }
14137 if test "${ac_cv_prog_LIPO+set}" = set; then :
14138 $as_echo_n "(cached) " >&6
14139 else
14140 if test -n "$LIPO"; then
14141 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14142 else
14143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14144 for as_dir in $PATH
14145 do
14146 IFS=$as_save_IFS
14147 test -z "$as_dir" && as_dir=.
14148 for ac_exec_ext in '' $ac_executable_extensions; do
14149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14150 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14152 break 2
14153 fi
14154 done
14155 done
14156 IFS=$as_save_IFS
14157
14158 fi
14159 fi
14160 LIPO=$ac_cv_prog_LIPO
14161 if test -n "$LIPO"; then
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14163 $as_echo "$LIPO" >&6; }
14164 else
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14166 $as_echo "no" >&6; }
14167 fi
14168
14169
14170 fi
14171 if test -z "$ac_cv_prog_LIPO"; then
14172 ac_ct_LIPO=$LIPO
14173 # Extract the first word of "lipo", so it can be a program name with args.
14174 set dummy lipo; ac_word=$2
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14176 $as_echo_n "checking for $ac_word... " >&6; }
14177 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14178 $as_echo_n "(cached) " >&6
14179 else
14180 if test -n "$ac_ct_LIPO"; then
14181 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14182 else
14183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14184 for as_dir in $PATH
14185 do
14186 IFS=$as_save_IFS
14187 test -z "$as_dir" && as_dir=.
14188 for ac_exec_ext in '' $ac_executable_extensions; do
14189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14190 ac_cv_prog_ac_ct_LIPO="lipo"
14191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14192 break 2
14193 fi
14194 done
14195 done
14196 IFS=$as_save_IFS
14197
14198 fi
14199 fi
14200 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14201 if test -n "$ac_ct_LIPO"; then
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14203 $as_echo "$ac_ct_LIPO" >&6; }
14204 else
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14206 $as_echo "no" >&6; }
14207 fi
14208
14209 if test "x$ac_ct_LIPO" = x; then
14210 LIPO=":"
14211 else
14212 case $cross_compiling:$ac_tool_warned in
14213 yes:)
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14216 ac_tool_warned=yes ;;
14217 esac
14218 LIPO=$ac_ct_LIPO
14219 fi
14220 else
14221 LIPO="$ac_cv_prog_LIPO"
14222 fi
14223
14224 if test -n "$ac_tool_prefix"; then
14225 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14226 set dummy ${ac_tool_prefix}otool; ac_word=$2
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14228 $as_echo_n "checking for $ac_word... " >&6; }
14229 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14230 $as_echo_n "(cached) " >&6
14231 else
14232 if test -n "$OTOOL"; then
14233 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14234 else
14235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14236 for as_dir in $PATH
14237 do
14238 IFS=$as_save_IFS
14239 test -z "$as_dir" && as_dir=.
14240 for ac_exec_ext in '' $ac_executable_extensions; do
14241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14242 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14244 break 2
14245 fi
14246 done
14247 done
14248 IFS=$as_save_IFS
14249
14250 fi
14251 fi
14252 OTOOL=$ac_cv_prog_OTOOL
14253 if test -n "$OTOOL"; then
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14255 $as_echo "$OTOOL" >&6; }
14256 else
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14258 $as_echo "no" >&6; }
14259 fi
14260
14261
14262 fi
14263 if test -z "$ac_cv_prog_OTOOL"; then
14264 ac_ct_OTOOL=$OTOOL
14265 # Extract the first word of "otool", so it can be a program name with args.
14266 set dummy otool; ac_word=$2
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14268 $as_echo_n "checking for $ac_word... " >&6; }
14269 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14270 $as_echo_n "(cached) " >&6
14271 else
14272 if test -n "$ac_ct_OTOOL"; then
14273 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14274 else
14275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14276 for as_dir in $PATH
14277 do
14278 IFS=$as_save_IFS
14279 test -z "$as_dir" && as_dir=.
14280 for ac_exec_ext in '' $ac_executable_extensions; do
14281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14282 ac_cv_prog_ac_ct_OTOOL="otool"
14283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14284 break 2
14285 fi
14286 done
14287 done
14288 IFS=$as_save_IFS
14289
14290 fi
14291 fi
14292 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14293 if test -n "$ac_ct_OTOOL"; then
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14295 $as_echo "$ac_ct_OTOOL" >&6; }
14296 else
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14298 $as_echo "no" >&6; }
14299 fi
14300
14301 if test "x$ac_ct_OTOOL" = x; then
14302 OTOOL=":"
14303 else
14304 case $cross_compiling:$ac_tool_warned in
14305 yes:)
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14308 ac_tool_warned=yes ;;
14309 esac
14310 OTOOL=$ac_ct_OTOOL
14311 fi
14312 else
14313 OTOOL="$ac_cv_prog_OTOOL"
14314 fi
14315
14316 if test -n "$ac_tool_prefix"; then
14317 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14318 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14320 $as_echo_n "checking for $ac_word... " >&6; }
14321 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14322 $as_echo_n "(cached) " >&6
14323 else
14324 if test -n "$OTOOL64"; then
14325 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14326 else
14327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14328 for as_dir in $PATH
14329 do
14330 IFS=$as_save_IFS
14331 test -z "$as_dir" && as_dir=.
14332 for ac_exec_ext in '' $ac_executable_extensions; do
14333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14334 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14336 break 2
14337 fi
14338 done
14339 done
14340 IFS=$as_save_IFS
14341
14342 fi
14343 fi
14344 OTOOL64=$ac_cv_prog_OTOOL64
14345 if test -n "$OTOOL64"; then
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14347 $as_echo "$OTOOL64" >&6; }
14348 else
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14350 $as_echo "no" >&6; }
14351 fi
14352
14353
14354 fi
14355 if test -z "$ac_cv_prog_OTOOL64"; then
14356 ac_ct_OTOOL64=$OTOOL64
14357 # Extract the first word of "otool64", so it can be a program name with args.
14358 set dummy otool64; ac_word=$2
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14360 $as_echo_n "checking for $ac_word... " >&6; }
14361 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14362 $as_echo_n "(cached) " >&6
14363 else
14364 if test -n "$ac_ct_OTOOL64"; then
14365 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14366 else
14367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14368 for as_dir in $PATH
14369 do
14370 IFS=$as_save_IFS
14371 test -z "$as_dir" && as_dir=.
14372 for ac_exec_ext in '' $ac_executable_extensions; do
14373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14374 ac_cv_prog_ac_ct_OTOOL64="otool64"
14375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14376 break 2
14377 fi
14378 done
14379 done
14380 IFS=$as_save_IFS
14381
14382 fi
14383 fi
14384 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14385 if test -n "$ac_ct_OTOOL64"; then
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14387 $as_echo "$ac_ct_OTOOL64" >&6; }
14388 else
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14390 $as_echo "no" >&6; }
14391 fi
14392
14393 if test "x$ac_ct_OTOOL64" = x; then
14394 OTOOL64=":"
14395 else
14396 case $cross_compiling:$ac_tool_warned in
14397 yes:)
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14400 ac_tool_warned=yes ;;
14401 esac
14402 OTOOL64=$ac_ct_OTOOL64
14403 fi
14404 else
14405 OTOOL64="$ac_cv_prog_OTOOL64"
14406 fi
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14435 $as_echo_n "checking for -single_module linker flag... " >&6; }
14436 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14437 $as_echo_n "(cached) " >&6
14438 else
14439 lt_cv_apple_cc_single_mod=no
14440 if test -z "${LT_MULTI_MODULE}"; then
14441 # By default we will add the -single_module flag. You can override
14442 # by either setting the environment variable LT_MULTI_MODULE
14443 # non-empty at configure time, or by adding -multi_module to the
14444 # link flags.
14445 rm -rf libconftest.dylib*
14446 echo "int foo(void){return 1;}" > conftest.c
14447 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14448 -dynamiclib -Wl,-single_module conftest.c" >&5
14449 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14450 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14451 _lt_result=$?
14452 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14453 lt_cv_apple_cc_single_mod=yes
14454 else
14455 cat conftest.err >&5
14456 fi
14457 rm -rf libconftest.dylib*
14458 rm -f conftest.*
14459 fi
14460 fi
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14462 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14464 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14465 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14466 $as_echo_n "(cached) " >&6
14467 else
14468 lt_cv_ld_exported_symbols_list=no
14469 save_LDFLAGS=$LDFLAGS
14470 echo "_main" > conftest.sym
14471 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14473 /* end confdefs.h. */
14474
14475 int
14476 main ()
14477 {
14478
14479 ;
14480 return 0;
14481 }
14482 _ACEOF
14483 if ac_fn_c_try_link "$LINENO"; then :
14484 lt_cv_ld_exported_symbols_list=yes
14485 else
14486 lt_cv_ld_exported_symbols_list=no
14487 fi
14488 rm -f core conftest.err conftest.$ac_objext \
14489 conftest$ac_exeext conftest.$ac_ext
14490 LDFLAGS="$save_LDFLAGS"
14491
14492 fi
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14494 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14496 $as_echo_n "checking for -force_load linker flag... " >&6; }
14497 if test "${lt_cv_ld_force_load+set}" = set; then :
14498 $as_echo_n "(cached) " >&6
14499 else
14500 lt_cv_ld_force_load=no
14501 cat > conftest.c << _LT_EOF
14502 int forced_loaded() { return 2;}
14503 _LT_EOF
14504 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14505 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14506 echo "$AR cru libconftest.a conftest.o" >&5
14507 $AR cru libconftest.a conftest.o 2>&5
14508 cat > conftest.c << _LT_EOF
14509 int main() { return 0;}
14510 _LT_EOF
14511 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14512 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14513 _lt_result=$?
14514 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14515 lt_cv_ld_force_load=yes
14516 else
14517 cat conftest.err >&5
14518 fi
14519 rm -f conftest.err libconftest.a conftest conftest.c
14520 rm -rf conftest.dSYM
14521
14522 fi
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14524 $as_echo "$lt_cv_ld_force_load" >&6; }
14525 case $host_os in
14526 rhapsody* | darwin1.[012])
14527 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14528 darwin1.*)
14529 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14530 darwin*) # darwin 5.x on
14531 # if running on 10.5 or later, the deployment target defaults
14532 # to the OS version, if on x86, and 10.4, the deployment
14533 # target defaults to 10.4. Don't you love it?
14534 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14535 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14536 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14537 10.[012]*)
14538 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14539 10.*)
14540 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14541 esac
14542 ;;
14543 esac
14544 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14545 _lt_dar_single_mod='$single_module'
14546 fi
14547 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14548 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14549 else
14550 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14551 fi
14552 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14553 _lt_dsymutil='~$DSYMUTIL $lib || :'
14554 else
14555 _lt_dsymutil=
14556 fi
14557 ;;
14558 esac
14559
14560 for ac_header in dlfcn.h
14561 do :
14562 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14563 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14564 cat >>confdefs.h <<_ACEOF
14565 #define HAVE_DLFCN_H 1
14566 _ACEOF
14567
14568 fi
14569 done
14570
14571
14572
14573
14574
14575 # Set options
14576
14577
14578
14579 enable_dlopen=no
14580
14581
14582 enable_win32_dll=no
14583
14584
14585 # Check whether --enable-shared was given.
14586 if test "${enable_shared+set}" = set; then :
14587 enableval=$enable_shared; p=${PACKAGE-default}
14588 case $enableval in
14589 yes) enable_shared=yes ;;
14590 no) enable_shared=no ;;
14591 *)
14592 enable_shared=no
14593 # Look at the argument we got. We use all the common list separators.
14594 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14595 for pkg in $enableval; do
14596 IFS="$lt_save_ifs"
14597 if test "X$pkg" = "X$p"; then
14598 enable_shared=yes
14599 fi
14600 done
14601 IFS="$lt_save_ifs"
14602 ;;
14603 esac
14604 else
14605 enable_shared=yes
14606 fi
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616 # Check whether --enable-static was given.
14617 if test "${enable_static+set}" = set; then :
14618 enableval=$enable_static; p=${PACKAGE-default}
14619 case $enableval in
14620 yes) enable_static=yes ;;
14621 no) enable_static=no ;;
14622 *)
14623 enable_static=no
14624 # Look at the argument we got. We use all the common list separators.
14625 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14626 for pkg in $enableval; do
14627 IFS="$lt_save_ifs"
14628 if test "X$pkg" = "X$p"; then
14629 enable_static=yes
14630 fi
14631 done
14632 IFS="$lt_save_ifs"
14633 ;;
14634 esac
14635 else
14636 enable_static=yes
14637 fi
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648 # Check whether --with-pic was given.
14649 if test "${with_pic+set}" = set; then :
14650 withval=$with_pic; pic_mode="$withval"
14651 else
14652 pic_mode=default
14653 fi
14654
14655
14656 test -z "$pic_mode" && pic_mode=default
14657
14658
14659
14660
14661
14662
14663
14664 # Check whether --enable-fast-install was given.
14665 if test "${enable_fast_install+set}" = set; then :
14666 enableval=$enable_fast_install; p=${PACKAGE-default}
14667 case $enableval in
14668 yes) enable_fast_install=yes ;;
14669 no) enable_fast_install=no ;;
14670 *)
14671 enable_fast_install=no
14672 # Look at the argument we got. We use all the common list separators.
14673 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14674 for pkg in $enableval; do
14675 IFS="$lt_save_ifs"
14676 if test "X$pkg" = "X$p"; then
14677 enable_fast_install=yes
14678 fi
14679 done
14680 IFS="$lt_save_ifs"
14681 ;;
14682 esac
14683 else
14684 enable_fast_install=yes
14685 fi
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697 # This can be used to rebuild libtool when needed
14698 LIBTOOL_DEPS="$ltmain"
14699
14700 # Always use our own libtool.
14701 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728 test -z "$LN_S" && LN_S="ln -s"
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743 if test -n "${ZSH_VERSION+set}" ; then
14744 setopt NO_GLOB_SUBST
14745 fi
14746
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14748 $as_echo_n "checking for objdir... " >&6; }
14749 if test "${lt_cv_objdir+set}" = set; then :
14750 $as_echo_n "(cached) " >&6
14751 else
14752 rm -f .libs 2>/dev/null
14753 mkdir .libs 2>/dev/null
14754 if test -d .libs; then
14755 lt_cv_objdir=.libs
14756 else
14757 # MS-DOS does not allow filenames that begin with a dot.
14758 lt_cv_objdir=_libs
14759 fi
14760 rmdir .libs 2>/dev/null
14761 fi
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14763 $as_echo "$lt_cv_objdir" >&6; }
14764 objdir=$lt_cv_objdir
14765
14766
14767
14768
14769
14770 cat >>confdefs.h <<_ACEOF
14771 #define LT_OBJDIR "$lt_cv_objdir/"
14772 _ACEOF
14773
14774
14775
14776
14777 case $host_os in
14778 aix3*)
14779 # AIX sometimes has problems with the GCC collect2 program. For some
14780 # reason, if we set the COLLECT_NAMES environment variable, the problems
14781 # vanish in a puff of smoke.
14782 if test "X${COLLECT_NAMES+set}" != Xset; then
14783 COLLECT_NAMES=
14784 export COLLECT_NAMES
14785 fi
14786 ;;
14787 esac
14788
14789 # Global variables:
14790 ofile=libtool
14791 can_build_shared=yes
14792
14793 # All known linkers require a `.a' archive for static linking (except MSVC,
14794 # which needs '.lib').
14795 libext=a
14796
14797 with_gnu_ld="$lt_cv_prog_gnu_ld"
14798
14799 old_CC="$CC"
14800 old_CFLAGS="$CFLAGS"
14801
14802 # Set sane defaults for various variables
14803 test -z "$CC" && CC=cc
14804 test -z "$LTCC" && LTCC=$CC
14805 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14806 test -z "$LD" && LD=ld
14807 test -z "$ac_objext" && ac_objext=o
14808
14809 for cc_temp in $compiler""; do
14810 case $cc_temp in
14811 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14812 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14813 \-*) ;;
14814 *) break;;
14815 esac
14816 done
14817 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14818
14819
14820 # Only perform the check for file, if the check method requires it
14821 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14822 case $deplibs_check_method in
14823 file_magic*)
14824 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14826 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14827 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14828 $as_echo_n "(cached) " >&6
14829 else
14830 case $MAGIC_CMD in
14831 [\\/*] | ?:[\\/]*)
14832 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14833 ;;
14834 *)
14835 lt_save_MAGIC_CMD="$MAGIC_CMD"
14836 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14837 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14838 for ac_dir in $ac_dummy; do
14839 IFS="$lt_save_ifs"
14840 test -z "$ac_dir" && ac_dir=.
14841 if test -f $ac_dir/${ac_tool_prefix}file; then
14842 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14843 if test -n "$file_magic_test_file"; then
14844 case $deplibs_check_method in
14845 "file_magic "*)
14846 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14847 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14848 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14849 $EGREP "$file_magic_regex" > /dev/null; then
14850 :
14851 else
14852 cat <<_LT_EOF 1>&2
14853
14854 *** Warning: the command libtool uses to detect shared libraries,
14855 *** $file_magic_cmd, produces output that libtool cannot recognize.
14856 *** The result is that libtool may fail to recognize shared libraries
14857 *** as such. This will affect the creation of libtool libraries that
14858 *** depend on shared libraries, but programs linked with such libtool
14859 *** libraries will work regardless of this problem. Nevertheless, you
14860 *** may want to report the problem to your system manager and/or to
14861 *** bug-libtool@gnu.org
14862
14863 _LT_EOF
14864 fi ;;
14865 esac
14866 fi
14867 break
14868 fi
14869 done
14870 IFS="$lt_save_ifs"
14871 MAGIC_CMD="$lt_save_MAGIC_CMD"
14872 ;;
14873 esac
14874 fi
14875
14876 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14877 if test -n "$MAGIC_CMD"; then
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14879 $as_echo "$MAGIC_CMD" >&6; }
14880 else
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14882 $as_echo "no" >&6; }
14883 fi
14884
14885
14886
14887
14888
14889 if test -z "$lt_cv_path_MAGIC_CMD"; then
14890 if test -n "$ac_tool_prefix"; then
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14892 $as_echo_n "checking for file... " >&6; }
14893 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14894 $as_echo_n "(cached) " >&6
14895 else
14896 case $MAGIC_CMD in
14897 [\\/*] | ?:[\\/]*)
14898 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14899 ;;
14900 *)
14901 lt_save_MAGIC_CMD="$MAGIC_CMD"
14902 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14903 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14904 for ac_dir in $ac_dummy; do
14905 IFS="$lt_save_ifs"
14906 test -z "$ac_dir" && ac_dir=.
14907 if test -f $ac_dir/file; then
14908 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14909 if test -n "$file_magic_test_file"; then
14910 case $deplibs_check_method in
14911 "file_magic "*)
14912 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14913 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14914 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14915 $EGREP "$file_magic_regex" > /dev/null; then
14916 :
14917 else
14918 cat <<_LT_EOF 1>&2
14919
14920 *** Warning: the command libtool uses to detect shared libraries,
14921 *** $file_magic_cmd, produces output that libtool cannot recognize.
14922 *** The result is that libtool may fail to recognize shared libraries
14923 *** as such. This will affect the creation of libtool libraries that
14924 *** depend on shared libraries, but programs linked with such libtool
14925 *** libraries will work regardless of this problem. Nevertheless, you
14926 *** may want to report the problem to your system manager and/or to
14927 *** bug-libtool@gnu.org
14928
14929 _LT_EOF
14930 fi ;;
14931 esac
14932 fi
14933 break
14934 fi
14935 done
14936 IFS="$lt_save_ifs"
14937 MAGIC_CMD="$lt_save_MAGIC_CMD"
14938 ;;
14939 esac
14940 fi
14941
14942 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14943 if test -n "$MAGIC_CMD"; then
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14945 $as_echo "$MAGIC_CMD" >&6; }
14946 else
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14948 $as_echo "no" >&6; }
14949 fi
14950
14951
14952 else
14953 MAGIC_CMD=:
14954 fi
14955 fi
14956
14957 fi
14958 ;;
14959 esac
14960
14961 # Use C for the default configuration in the libtool script
14962
14963 lt_save_CC="$CC"
14964 ac_ext=c
14965 ac_cpp='$CPP $CPPFLAGS'
14966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14969
14970
14971 # Source file extension for C test sources.
14972 ac_ext=c
14973
14974 # Object file extension for compiled C test sources.
14975 objext=o
14976 objext=$objext
14977
14978 # Code to be used in simple compile tests
14979 lt_simple_compile_test_code="int some_variable = 0;"
14980
14981 # Code to be used in simple link tests
14982 lt_simple_link_test_code='int main(){return(0);}'
14983
14984
14985
14986
14987
14988
14989
14990 # If no C compiler was specified, use CC.
14991 LTCC=${LTCC-"$CC"}
14992
14993 # If no C compiler flags were specified, use CFLAGS.
14994 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14995
14996 # Allow CC to be a program name with arguments.
14997 compiler=$CC
14998
14999 # Save the default compiler, since it gets overwritten when the other
15000 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15001 compiler_DEFAULT=$CC
15002
15003 # save warnings/boilerplate of simple test code
15004 ac_outfile=conftest.$ac_objext
15005 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15006 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15007 _lt_compiler_boilerplate=`cat conftest.err`
15008 $RM conftest*
15009
15010 ac_outfile=conftest.$ac_objext
15011 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15012 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15013 _lt_linker_boilerplate=`cat conftest.err`
15014 $RM -r conftest*
15015
15016
15017 ## CAVEAT EMPTOR:
15018 ## There is no encapsulation within the following macros, do not change
15019 ## the running order or otherwise move them around unless you know exactly
15020 ## what you are doing...
15021 if test -n "$compiler"; then
15022
15023 lt_prog_compiler_no_builtin_flag=
15024
15025 if test "$GCC" = yes; then
15026 case $cc_basename in
15027 nvcc*)
15028 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15029 *)
15030 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15031 esac
15032
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15034 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15035 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15036 $as_echo_n "(cached) " >&6
15037 else
15038 lt_cv_prog_compiler_rtti_exceptions=no
15039 ac_outfile=conftest.$ac_objext
15040 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15041 lt_compiler_flag="-fno-rtti -fno-exceptions"
15042 # Insert the option either (1) after the last *FLAGS variable, or
15043 # (2) before a word containing "conftest.", or (3) at the end.
15044 # Note that $ac_compile itself does not contain backslashes and begins
15045 # with a dollar sign (not a hyphen), so the echo should work correctly.
15046 # The option is referenced via a variable to avoid confusing sed.
15047 lt_compile=`echo "$ac_compile" | $SED \
15048 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15049 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15050 -e 's:$: $lt_compiler_flag:'`
15051 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15052 (eval "$lt_compile" 2>conftest.err)
15053 ac_status=$?
15054 cat conftest.err >&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 if (exit $ac_status) && test -s "$ac_outfile"; then
15057 # The compiler can only warn and ignore the option if not recognized
15058 # So say no if there are warnings other than the usual output.
15059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15060 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15061 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15062 lt_cv_prog_compiler_rtti_exceptions=yes
15063 fi
15064 fi
15065 $RM conftest*
15066
15067 fi
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15069 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15070
15071 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15072 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15073 else
15074 :
15075 fi
15076
15077 fi
15078
15079
15080
15081
15082
15083
15084 lt_prog_compiler_wl=
15085 lt_prog_compiler_pic=
15086 lt_prog_compiler_static=
15087
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15089 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15090
15091 if test "$GCC" = yes; then
15092 lt_prog_compiler_wl='-Wl,'
15093 lt_prog_compiler_static='-static'
15094
15095 case $host_os in
15096 aix*)
15097 # All AIX code is PIC.
15098 if test "$host_cpu" = ia64; then
15099 # AIX 5 now supports IA64 processor
15100 lt_prog_compiler_static='-Bstatic'
15101 fi
15102 ;;
15103
15104 amigaos*)
15105 case $host_cpu in
15106 powerpc)
15107 # see comment about AmigaOS4 .so support
15108 lt_prog_compiler_pic='-fPIC'
15109 ;;
15110 m68k)
15111 # FIXME: we need at least 68020 code to build shared libraries, but
15112 # adding the `-m68020' flag to GCC prevents building anything better,
15113 # like `-m68040'.
15114 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15115 ;;
15116 esac
15117 ;;
15118
15119 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15120 # PIC is the default for these OSes.
15121 ;;
15122
15123 mingw* | cygwin* | pw32* | os2* | cegcc*)
15124 # This hack is so that the source file can tell whether it is being
15125 # built for inclusion in a dll (and should export symbols for example).
15126 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15127 # (--disable-auto-import) libraries
15128 lt_prog_compiler_pic='-DDLL_EXPORT'
15129 ;;
15130
15131 darwin* | rhapsody*)
15132 # PIC is the default on this platform
15133 # Common symbols not allowed in MH_DYLIB files
15134 lt_prog_compiler_pic='-fno-common'
15135 ;;
15136
15137 haiku*)
15138 # PIC is the default for Haiku.
15139 # The "-static" flag exists, but is broken.
15140 lt_prog_compiler_static=
15141 ;;
15142
15143 hpux*)
15144 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15145 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15146 # sets the default TLS model and affects inlining.
15147 case $host_cpu in
15148 hppa*64*)
15149 # +Z the default
15150 ;;
15151 *)
15152 lt_prog_compiler_pic='-fPIC'
15153 ;;
15154 esac
15155 ;;
15156
15157 interix[3-9]*)
15158 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15159 # Instead, we relocate shared libraries at runtime.
15160 ;;
15161
15162 msdosdjgpp*)
15163 # Just because we use GCC doesn't mean we suddenly get shared libraries
15164 # on systems that don't support them.
15165 lt_prog_compiler_can_build_shared=no
15166 enable_shared=no
15167 ;;
15168
15169 *nto* | *qnx*)
15170 # QNX uses GNU C++, but need to define -shared option too, otherwise
15171 # it will coredump.
15172 lt_prog_compiler_pic='-fPIC -shared'
15173 ;;
15174
15175 sysv4*MP*)
15176 if test -d /usr/nec; then
15177 lt_prog_compiler_pic=-Kconform_pic
15178 fi
15179 ;;
15180
15181 *)
15182 lt_prog_compiler_pic='-fPIC'
15183 ;;
15184 esac
15185
15186 case $cc_basename in
15187 nvcc*) # Cuda Compiler Driver 2.2
15188 lt_prog_compiler_wl='-Xlinker '
15189 lt_prog_compiler_pic='-Xcompiler -fPIC'
15190 ;;
15191 esac
15192 else
15193 # PORTME Check for flag to pass linker flags through the system compiler.
15194 case $host_os in
15195 aix*)
15196 lt_prog_compiler_wl='-Wl,'
15197 if test "$host_cpu" = ia64; then
15198 # AIX 5 now supports IA64 processor
15199 lt_prog_compiler_static='-Bstatic'
15200 else
15201 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15202 fi
15203 ;;
15204
15205 mingw* | cygwin* | pw32* | os2* | cegcc*)
15206 # This hack is so that the source file can tell whether it is being
15207 # built for inclusion in a dll (and should export symbols for example).
15208 lt_prog_compiler_pic='-DDLL_EXPORT'
15209 ;;
15210
15211 hpux9* | hpux10* | hpux11*)
15212 lt_prog_compiler_wl='-Wl,'
15213 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15214 # not for PA HP-UX.
15215 case $host_cpu in
15216 hppa*64*|ia64*)
15217 # +Z the default
15218 ;;
15219 *)
15220 lt_prog_compiler_pic='+Z'
15221 ;;
15222 esac
15223 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15224 lt_prog_compiler_static='${wl}-a ${wl}archive'
15225 ;;
15226
15227 irix5* | irix6* | nonstopux*)
15228 lt_prog_compiler_wl='-Wl,'
15229 # PIC (with -KPIC) is the default.
15230 lt_prog_compiler_static='-non_shared'
15231 ;;
15232
15233 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15234 case $cc_basename in
15235 # old Intel for x86_64 which still supported -KPIC.
15236 ecc*)
15237 lt_prog_compiler_wl='-Wl,'
15238 lt_prog_compiler_pic='-KPIC'
15239 lt_prog_compiler_static='-static'
15240 ;;
15241 # icc used to be incompatible with GCC.
15242 # ICC 10 doesn't accept -KPIC any more.
15243 icc* | ifort*)
15244 lt_prog_compiler_wl='-Wl,'
15245 lt_prog_compiler_pic='-fPIC'
15246 lt_prog_compiler_static='-static'
15247 ;;
15248 # Lahey Fortran 8.1.
15249 lf95*)
15250 lt_prog_compiler_wl='-Wl,'
15251 lt_prog_compiler_pic='--shared'
15252 lt_prog_compiler_static='--static'
15253 ;;
15254 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15255 # Portland Group compilers (*not* the Pentium gcc compiler,
15256 # which looks to be a dead project)
15257 lt_prog_compiler_wl='-Wl,'
15258 lt_prog_compiler_pic='-fpic'
15259 lt_prog_compiler_static='-Bstatic'
15260 ;;
15261 ccc*)
15262 lt_prog_compiler_wl='-Wl,'
15263 # All Alpha code is PIC.
15264 lt_prog_compiler_static='-non_shared'
15265 ;;
15266 xl* | bgxl* | bgf* | mpixl*)
15267 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15268 lt_prog_compiler_wl='-Wl,'
15269 lt_prog_compiler_pic='-qpic'
15270 lt_prog_compiler_static='-qstaticlink'
15271 ;;
15272 *)
15273 case `$CC -V 2>&1 | sed 5q` in
15274 *Sun\ F* | *Sun*Fortran*)
15275 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15276 lt_prog_compiler_pic='-KPIC'
15277 lt_prog_compiler_static='-Bstatic'
15278 lt_prog_compiler_wl=''
15279 ;;
15280 *Sun\ C*)
15281 # Sun C 5.9
15282 lt_prog_compiler_pic='-KPIC'
15283 lt_prog_compiler_static='-Bstatic'
15284 lt_prog_compiler_wl='-Wl,'
15285 ;;
15286 esac
15287 ;;
15288 esac
15289 ;;
15290
15291 newsos6)
15292 lt_prog_compiler_pic='-KPIC'
15293 lt_prog_compiler_static='-Bstatic'
15294 ;;
15295
15296 *nto* | *qnx*)
15297 # QNX uses GNU C++, but need to define -shared option too, otherwise
15298 # it will coredump.
15299 lt_prog_compiler_pic='-fPIC -shared'
15300 ;;
15301
15302 osf3* | osf4* | osf5*)
15303 lt_prog_compiler_wl='-Wl,'
15304 # All OSF/1 code is PIC.
15305 lt_prog_compiler_static='-non_shared'
15306 ;;
15307
15308 rdos*)
15309 lt_prog_compiler_static='-non_shared'
15310 ;;
15311
15312 solaris*)
15313 lt_prog_compiler_pic='-KPIC'
15314 lt_prog_compiler_static='-Bstatic'
15315 case $cc_basename in
15316 f77* | f90* | f95*)
15317 lt_prog_compiler_wl='-Qoption ld ';;
15318 *)
15319 lt_prog_compiler_wl='-Wl,';;
15320 esac
15321 ;;
15322
15323 sunos4*)
15324 lt_prog_compiler_wl='-Qoption ld '
15325 lt_prog_compiler_pic='-PIC'
15326 lt_prog_compiler_static='-Bstatic'
15327 ;;
15328
15329 sysv4 | sysv4.2uw2* | sysv4.3*)
15330 lt_prog_compiler_wl='-Wl,'
15331 lt_prog_compiler_pic='-KPIC'
15332 lt_prog_compiler_static='-Bstatic'
15333 ;;
15334
15335 sysv4*MP*)
15336 if test -d /usr/nec ;then
15337 lt_prog_compiler_pic='-Kconform_pic'
15338 lt_prog_compiler_static='-Bstatic'
15339 fi
15340 ;;
15341
15342 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15343 lt_prog_compiler_wl='-Wl,'
15344 lt_prog_compiler_pic='-KPIC'
15345 lt_prog_compiler_static='-Bstatic'
15346 ;;
15347
15348 unicos*)
15349 lt_prog_compiler_wl='-Wl,'
15350 lt_prog_compiler_can_build_shared=no
15351 ;;
15352
15353 uts4*)
15354 lt_prog_compiler_pic='-pic'
15355 lt_prog_compiler_static='-Bstatic'
15356 ;;
15357
15358 *)
15359 lt_prog_compiler_can_build_shared=no
15360 ;;
15361 esac
15362 fi
15363
15364 case $host_os in
15365 # For platforms which do not support PIC, -DPIC is meaningless:
15366 *djgpp*)
15367 lt_prog_compiler_pic=
15368 ;;
15369 *)
15370 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15371 ;;
15372 esac
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15374 $as_echo "$lt_prog_compiler_pic" >&6; }
15375
15376
15377
15378
15379
15380
15381 #
15382 # Check to make sure the PIC flag actually works.
15383 #
15384 if test -n "$lt_prog_compiler_pic"; then
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15386 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15387 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15388 $as_echo_n "(cached) " >&6
15389 else
15390 lt_cv_prog_compiler_pic_works=no
15391 ac_outfile=conftest.$ac_objext
15392 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15393 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15394 # Insert the option either (1) after the last *FLAGS variable, or
15395 # (2) before a word containing "conftest.", or (3) at the end.
15396 # Note that $ac_compile itself does not contain backslashes and begins
15397 # with a dollar sign (not a hyphen), so the echo should work correctly.
15398 # The option is referenced via a variable to avoid confusing sed.
15399 lt_compile=`echo "$ac_compile" | $SED \
15400 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15401 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15402 -e 's:$: $lt_compiler_flag:'`
15403 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15404 (eval "$lt_compile" 2>conftest.err)
15405 ac_status=$?
15406 cat conftest.err >&5
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 if (exit $ac_status) && test -s "$ac_outfile"; then
15409 # The compiler can only warn and ignore the option if not recognized
15410 # So say no if there are warnings other than the usual output.
15411 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15412 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15413 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15414 lt_cv_prog_compiler_pic_works=yes
15415 fi
15416 fi
15417 $RM conftest*
15418
15419 fi
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15421 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15422
15423 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15424 case $lt_prog_compiler_pic in
15425 "" | " "*) ;;
15426 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15427 esac
15428 else
15429 lt_prog_compiler_pic=
15430 lt_prog_compiler_can_build_shared=no
15431 fi
15432
15433 fi
15434
15435
15436
15437
15438
15439
15440 #
15441 # Check to make sure the static flag actually works.
15442 #
15443 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15445 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15446 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15447 $as_echo_n "(cached) " >&6
15448 else
15449 lt_cv_prog_compiler_static_works=no
15450 save_LDFLAGS="$LDFLAGS"
15451 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15452 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15453 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15454 # The linker can only warn and ignore the option if not recognized
15455 # So say no if there are warnings
15456 if test -s conftest.err; then
15457 # Append any errors to the config.log.
15458 cat conftest.err 1>&5
15459 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15460 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15461 if diff conftest.exp conftest.er2 >/dev/null; then
15462 lt_cv_prog_compiler_static_works=yes
15463 fi
15464 else
15465 lt_cv_prog_compiler_static_works=yes
15466 fi
15467 fi
15468 $RM -r conftest*
15469 LDFLAGS="$save_LDFLAGS"
15470
15471 fi
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15473 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15474
15475 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15476 :
15477 else
15478 lt_prog_compiler_static=
15479 fi
15480
15481
15482
15483
15484
15485
15486
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15488 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15489 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15490 $as_echo_n "(cached) " >&6
15491 else
15492 lt_cv_prog_compiler_c_o=no
15493 $RM -r conftest 2>/dev/null
15494 mkdir conftest
15495 cd conftest
15496 mkdir out
15497 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15498
15499 lt_compiler_flag="-o out/conftest2.$ac_objext"
15500 # Insert the option either (1) after the last *FLAGS variable, or
15501 # (2) before a word containing "conftest.", or (3) at the end.
15502 # Note that $ac_compile itself does not contain backslashes and begins
15503 # with a dollar sign (not a hyphen), so the echo should work correctly.
15504 lt_compile=`echo "$ac_compile" | $SED \
15505 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15507 -e 's:$: $lt_compiler_flag:'`
15508 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15509 (eval "$lt_compile" 2>out/conftest.err)
15510 ac_status=$?
15511 cat out/conftest.err >&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15514 then
15515 # The compiler can only warn and ignore the option if not recognized
15516 # So say no if there are warnings
15517 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15518 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15519 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15520 lt_cv_prog_compiler_c_o=yes
15521 fi
15522 fi
15523 chmod u+w . 2>&5
15524 $RM conftest*
15525 # SGI C++ compiler will create directory out/ii_files/ for
15526 # template instantiation
15527 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15528 $RM out/* && rmdir out
15529 cd ..
15530 $RM -r conftest
15531 $RM conftest*
15532
15533 fi
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15535 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15536
15537
15538
15539
15540
15541
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15543 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15544 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15545 $as_echo_n "(cached) " >&6
15546 else
15547 lt_cv_prog_compiler_c_o=no
15548 $RM -r conftest 2>/dev/null
15549 mkdir conftest
15550 cd conftest
15551 mkdir out
15552 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15553
15554 lt_compiler_flag="-o out/conftest2.$ac_objext"
15555 # Insert the option either (1) after the last *FLAGS variable, or
15556 # (2) before a word containing "conftest.", or (3) at the end.
15557 # Note that $ac_compile itself does not contain backslashes and begins
15558 # with a dollar sign (not a hyphen), so the echo should work correctly.
15559 lt_compile=`echo "$ac_compile" | $SED \
15560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15562 -e 's:$: $lt_compiler_flag:'`
15563 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15564 (eval "$lt_compile" 2>out/conftest.err)
15565 ac_status=$?
15566 cat out/conftest.err >&5
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15569 then
15570 # The compiler can only warn and ignore the option if not recognized
15571 # So say no if there are warnings
15572 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15573 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15574 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15575 lt_cv_prog_compiler_c_o=yes
15576 fi
15577 fi
15578 chmod u+w . 2>&5
15579 $RM conftest*
15580 # SGI C++ compiler will create directory out/ii_files/ for
15581 # template instantiation
15582 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15583 $RM out/* && rmdir out
15584 cd ..
15585 $RM -r conftest
15586 $RM conftest*
15587
15588 fi
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15590 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15591
15592
15593
15594
15595 hard_links="nottested"
15596 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15597 # do not overwrite the value of need_locks provided by the user
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15599 $as_echo_n "checking if we can lock with hard links... " >&6; }
15600 hard_links=yes
15601 $RM conftest*
15602 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15603 touch conftest.a
15604 ln conftest.a conftest.b 2>&5 || hard_links=no
15605 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15607 $as_echo "$hard_links" >&6; }
15608 if test "$hard_links" = no; then
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15610 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15611 need_locks=warn
15612 fi
15613 else
15614 need_locks=no
15615 fi
15616
15617
15618
15619
15620
15621
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15623 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15624
15625 runpath_var=
15626 allow_undefined_flag=
15627 always_export_symbols=no
15628 archive_cmds=
15629 archive_expsym_cmds=
15630 compiler_needs_object=no
15631 enable_shared_with_static_runtimes=no
15632 export_dynamic_flag_spec=
15633 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15634 hardcode_automatic=no
15635 hardcode_direct=no
15636 hardcode_direct_absolute=no
15637 hardcode_libdir_flag_spec=
15638 hardcode_libdir_flag_spec_ld=
15639 hardcode_libdir_separator=
15640 hardcode_minus_L=no
15641 hardcode_shlibpath_var=unsupported
15642 inherit_rpath=no
15643 link_all_deplibs=unknown
15644 module_cmds=
15645 module_expsym_cmds=
15646 old_archive_from_new_cmds=
15647 old_archive_from_expsyms_cmds=
15648 thread_safe_flag_spec=
15649 whole_archive_flag_spec=
15650 # include_expsyms should be a list of space-separated symbols to be *always*
15651 # included in the symbol list
15652 include_expsyms=
15653 # exclude_expsyms can be an extended regexp of symbols to exclude
15654 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15655 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15656 # as well as any symbol that contains `d'.
15657 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15658 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15659 # platforms (ab)use it in PIC code, but their linkers get confused if
15660 # the symbol is explicitly referenced. Since portable code cannot
15661 # rely on this symbol name, it's probably fine to never include it in
15662 # preloaded symbol tables.
15663 # Exclude shared library initialization/finalization symbols.
15664 extract_expsyms_cmds=
15665
15666 case $host_os in
15667 cygwin* | mingw* | pw32* | cegcc*)
15668 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15669 # When not using gcc, we currently assume that we are using
15670 # Microsoft Visual C++.
15671 if test "$GCC" != yes; then
15672 with_gnu_ld=no
15673 fi
15674 ;;
15675 interix*)
15676 # we just hope/assume this is gcc and not c89 (= MSVC++)
15677 with_gnu_ld=yes
15678 ;;
15679 openbsd*)
15680 with_gnu_ld=no
15681 ;;
15682 esac
15683
15684 ld_shlibs=yes
15685
15686 # On some targets, GNU ld is compatible enough with the native linker
15687 # that we're better off using the native interface for both.
15688 lt_use_gnu_ld_interface=no
15689 if test "$with_gnu_ld" = yes; then
15690 case $host_os in
15691 aix*)
15692 # The AIX port of GNU ld has always aspired to compatibility
15693 # with the native linker. However, as the warning in the GNU ld
15694 # block says, versions before 2.19.5* couldn't really create working
15695 # shared libraries, regardless of the interface used.
15696 case `$LD -v 2>&1` in
15697 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15698 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15699 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15700 *)
15701 lt_use_gnu_ld_interface=yes
15702 ;;
15703 esac
15704 ;;
15705 *)
15706 lt_use_gnu_ld_interface=yes
15707 ;;
15708 esac
15709 fi
15710
15711 if test "$lt_use_gnu_ld_interface" = yes; then
15712 # If archive_cmds runs LD, not CC, wlarc should be empty
15713 wlarc='${wl}'
15714
15715 # Set some defaults for GNU ld with shared library support. These
15716 # are reset later if shared libraries are not supported. Putting them
15717 # here allows them to be overridden if necessary.
15718 runpath_var=LD_RUN_PATH
15719 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15720 export_dynamic_flag_spec='${wl}--export-dynamic'
15721 # ancient GNU ld didn't support --whole-archive et. al.
15722 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15723 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15724 else
15725 whole_archive_flag_spec=
15726 fi
15727 supports_anon_versioning=no
15728 case `$LD -v 2>&1` in
15729 *GNU\ gold*) supports_anon_versioning=yes ;;
15730 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15731 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15732 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15733 *\ 2.11.*) ;; # other 2.11 versions
15734 *) supports_anon_versioning=yes ;;
15735 esac
15736
15737 # See if GNU ld supports shared libraries.
15738 case $host_os in
15739 aix[3-9]*)
15740 # On AIX/PPC, the GNU linker is very broken
15741 if test "$host_cpu" != ia64; then
15742 ld_shlibs=no
15743 cat <<_LT_EOF 1>&2
15744
15745 *** Warning: the GNU linker, at least up to release 2.19, is reported
15746 *** to be unable to reliably create shared libraries on AIX.
15747 *** Therefore, libtool is disabling shared libraries support. If you
15748 *** really care for shared libraries, you may want to install binutils
15749 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15750 *** You will then need to restart the configuration process.
15751
15752 _LT_EOF
15753 fi
15754 ;;
15755
15756 amigaos*)
15757 case $host_cpu in
15758 powerpc)
15759 # see comment about AmigaOS4 .so support
15760 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15761 archive_expsym_cmds=''
15762 ;;
15763 m68k)
15764 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)'
15765 hardcode_libdir_flag_spec='-L$libdir'
15766 hardcode_minus_L=yes
15767 ;;
15768 esac
15769 ;;
15770
15771 beos*)
15772 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15773 allow_undefined_flag=unsupported
15774 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15775 # support --undefined. This deserves some investigation. FIXME
15776 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15777 else
15778 ld_shlibs=no
15779 fi
15780 ;;
15781
15782 cygwin* | mingw* | pw32* | cegcc*)
15783 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15784 # as there is no search path for DLLs.
15785 hardcode_libdir_flag_spec='-L$libdir'
15786 export_dynamic_flag_spec='${wl}--export-all-symbols'
15787 allow_undefined_flag=unsupported
15788 always_export_symbols=no
15789 enable_shared_with_static_runtimes=yes
15790 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15791
15792 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15793 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15794 # If the export-symbols file already is a .def file (1st line
15795 # is EXPORTS), use it as is; otherwise, prepend...
15796 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15797 cp $export_symbols $output_objdir/$soname.def;
15798 else
15799 echo EXPORTS > $output_objdir/$soname.def;
15800 cat $export_symbols >> $output_objdir/$soname.def;
15801 fi~
15802 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15803 else
15804 ld_shlibs=no
15805 fi
15806 ;;
15807
15808 haiku*)
15809 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15810 link_all_deplibs=yes
15811 ;;
15812
15813 interix[3-9]*)
15814 hardcode_direct=no
15815 hardcode_shlibpath_var=no
15816 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15817 export_dynamic_flag_spec='${wl}-E'
15818 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15819 # Instead, shared libraries are loaded at an image base (0x10000000 by
15820 # default) and relocated if they conflict, which is a slow very memory
15821 # consuming and fragmenting process. To avoid this, we pick a random,
15822 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15823 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15824 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15825 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'
15826 ;;
15827
15828 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15829 tmp_diet=no
15830 if test "$host_os" = linux-dietlibc; then
15831 case $cc_basename in
15832 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15833 esac
15834 fi
15835 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15836 && test "$tmp_diet" = no
15837 then
15838 tmp_addflag=
15839 tmp_sharedflag='-shared'
15840 case $cc_basename,$host_cpu in
15841 pgcc*) # Portland Group C compiler
15842 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'
15843 tmp_addflag=' $pic_flag'
15844 ;;
15845 pgf77* | pgf90* | pgf95* | pgfortran*)
15846 # Portland Group f77 and f90 compilers
15847 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'
15848 tmp_addflag=' $pic_flag -Mnomain' ;;
15849 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15850 tmp_addflag=' -i_dynamic' ;;
15851 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15852 tmp_addflag=' -i_dynamic -nofor_main' ;;
15853 ifc* | ifort*) # Intel Fortran compiler
15854 tmp_addflag=' -nofor_main' ;;
15855 lf95*) # Lahey Fortran 8.1
15856 whole_archive_flag_spec=
15857 tmp_sharedflag='--shared' ;;
15858 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15859 tmp_sharedflag='-qmkshrobj'
15860 tmp_addflag= ;;
15861 nvcc*) # Cuda Compiler Driver 2.2
15862 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'
15863 compiler_needs_object=yes
15864 ;;
15865 esac
15866 case `$CC -V 2>&1 | sed 5q` in
15867 *Sun\ C*) # Sun C 5.9
15868 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'
15869 compiler_needs_object=yes
15870 tmp_sharedflag='-G' ;;
15871 *Sun\ F*) # Sun Fortran 8.3
15872 tmp_sharedflag='-G' ;;
15873 esac
15874 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15875
15876 if test "x$supports_anon_versioning" = xyes; then
15877 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15878 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15879 echo "local: *; };" >> $output_objdir/$libname.ver~
15880 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15881 fi
15882
15883 case $cc_basename in
15884 xlf* | bgf* | bgxlf* | mpixlf*)
15885 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15886 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15887 hardcode_libdir_flag_spec=
15888 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15889 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15890 if test "x$supports_anon_versioning" = xyes; then
15891 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15892 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15893 echo "local: *; };" >> $output_objdir/$libname.ver~
15894 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15895 fi
15896 ;;
15897 esac
15898 else
15899 ld_shlibs=no
15900 fi
15901 ;;
15902
15903 netbsd*)
15904 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15905 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15906 wlarc=
15907 else
15908 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15909 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15910 fi
15911 ;;
15912
15913 solaris*)
15914 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15915 ld_shlibs=no
15916 cat <<_LT_EOF 1>&2
15917
15918 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15919 *** create shared libraries on Solaris systems. Therefore, libtool
15920 *** is disabling shared libraries support. We urge you to upgrade GNU
15921 *** binutils to release 2.9.1 or newer. Another option is to modify
15922 *** your PATH or compiler configuration so that the native linker is
15923 *** used, and then restart.
15924
15925 _LT_EOF
15926 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15927 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15928 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15929 else
15930 ld_shlibs=no
15931 fi
15932 ;;
15933
15934 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15935 case `$LD -v 2>&1` in
15936 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15937 ld_shlibs=no
15938 cat <<_LT_EOF 1>&2
15939
15940 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15941 *** reliably create shared libraries on SCO systems. Therefore, libtool
15942 *** is disabling shared libraries support. We urge you to upgrade GNU
15943 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15944 *** your PATH or compiler configuration so that the native linker is
15945 *** used, and then restart.
15946
15947 _LT_EOF
15948 ;;
15949 *)
15950 # For security reasons, it is highly recommended that you always
15951 # use absolute paths for naming shared libraries, and exclude the
15952 # DT_RUNPATH tag from executables and libraries. But doing so
15953 # requires that you compile everything twice, which is a pain.
15954 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15955 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15956 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15957 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15958 else
15959 ld_shlibs=no
15960 fi
15961 ;;
15962 esac
15963 ;;
15964
15965 sunos4*)
15966 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15967 wlarc=
15968 hardcode_direct=yes
15969 hardcode_shlibpath_var=no
15970 ;;
15971
15972 *)
15973 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15974 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15975 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15976 else
15977 ld_shlibs=no
15978 fi
15979 ;;
15980 esac
15981
15982 if test "$ld_shlibs" = no; then
15983 runpath_var=
15984 hardcode_libdir_flag_spec=
15985 export_dynamic_flag_spec=
15986 whole_archive_flag_spec=
15987 fi
15988 else
15989 # PORTME fill in a description of your system's linker (not GNU ld)
15990 case $host_os in
15991 aix3*)
15992 allow_undefined_flag=unsupported
15993 always_export_symbols=yes
15994 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'
15995 # Note: this linker hardcodes the directories in LIBPATH if there
15996 # are no directories specified by -L.
15997 hardcode_minus_L=yes
15998 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15999 # Neither direct hardcoding nor static linking is supported with a
16000 # broken collect2.
16001 hardcode_direct=unsupported
16002 fi
16003 ;;
16004
16005 aix[4-9]*)
16006 if test "$host_cpu" = ia64; then
16007 # On IA64, the linker does run time linking by default, so we don't
16008 # have to do anything special.
16009 aix_use_runtimelinking=no
16010 exp_sym_flag='-Bexport'
16011 no_entry_flag=""
16012 else
16013 # If we're using GNU nm, then we don't want the "-C" option.
16014 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16015 # Also, AIX nm treats weak defined symbols like other global
16016 # defined symbols, whereas GNU nm marks them as "W".
16017 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16018 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'
16019 else
16020 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'
16021 fi
16022 aix_use_runtimelinking=no
16023
16024 # Test if we are trying to use run time linking or normal
16025 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16026 # need to do runtime linking.
16027 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16028 for ld_flag in $LDFLAGS; do
16029 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16030 aix_use_runtimelinking=yes
16031 break
16032 fi
16033 done
16034 ;;
16035 esac
16036
16037 exp_sym_flag='-bexport'
16038 no_entry_flag='-bnoentry'
16039 fi
16040
16041 # When large executables or shared objects are built, AIX ld can
16042 # have problems creating the table of contents. If linking a library
16043 # or program results in "error TOC overflow" add -mminimal-toc to
16044 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16045 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16046
16047 archive_cmds=''
16048 hardcode_direct=yes
16049 hardcode_direct_absolute=yes
16050 hardcode_libdir_separator=':'
16051 link_all_deplibs=yes
16052 file_list_spec='${wl}-f,'
16053
16054 if test "$GCC" = yes; then
16055 case $host_os in aix4.[012]|aix4.[012].*)
16056 # We only want to do this on AIX 4.2 and lower, the check
16057 # below for broken collect2 doesn't work under 4.3+
16058 collect2name=`${CC} -print-prog-name=collect2`
16059 if test -f "$collect2name" &&
16060 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16061 then
16062 # We have reworked collect2
16063 :
16064 else
16065 # We have old collect2
16066 hardcode_direct=unsupported
16067 # It fails to find uninstalled libraries when the uninstalled
16068 # path is not listed in the libpath. Setting hardcode_minus_L
16069 # to unsupported forces relinking
16070 hardcode_minus_L=yes
16071 hardcode_libdir_flag_spec='-L$libdir'
16072 hardcode_libdir_separator=
16073 fi
16074 ;;
16075 esac
16076 shared_flag='-shared'
16077 if test "$aix_use_runtimelinking" = yes; then
16078 shared_flag="$shared_flag "'${wl}-G'
16079 fi
16080 else
16081 # not using gcc
16082 if test "$host_cpu" = ia64; then
16083 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16084 # chokes on -Wl,-G. The following line is correct:
16085 shared_flag='-G'
16086 else
16087 if test "$aix_use_runtimelinking" = yes; then
16088 shared_flag='${wl}-G'
16089 else
16090 shared_flag='${wl}-bM:SRE'
16091 fi
16092 fi
16093 fi
16094
16095 export_dynamic_flag_spec='${wl}-bexpall'
16096 # It seems that -bexpall does not export symbols beginning with
16097 # underscore (_), so it is better to generate a list of symbols to export.
16098 always_export_symbols=yes
16099 if test "$aix_use_runtimelinking" = yes; then
16100 # Warning - without using the other runtime loading flags (-brtl),
16101 # -berok will link without error, but may produce a broken library.
16102 allow_undefined_flag='-berok'
16103 # Determine the default libpath from the value encoded in an
16104 # empty executable.
16105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16106 /* end confdefs.h. */
16107
16108 int
16109 main ()
16110 {
16111
16112 ;
16113 return 0;
16114 }
16115 _ACEOF
16116 if ac_fn_c_try_link "$LINENO"; then :
16117
16118 lt_aix_libpath_sed='
16119 /Import File Strings/,/^$/ {
16120 /^0/ {
16121 s/^0 *\(.*\)$/\1/
16122 p
16123 }
16124 }'
16125 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16126 # Check for a 64-bit object if we didn't find anything.
16127 if test -z "$aix_libpath"; then
16128 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16129 fi
16130 fi
16131 rm -f core conftest.err conftest.$ac_objext \
16132 conftest$ac_exeext conftest.$ac_ext
16133 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16134
16135 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16136 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"
16137 else
16138 if test "$host_cpu" = ia64; then
16139 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16140 allow_undefined_flag="-z nodefs"
16141 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"
16142 else
16143 # Determine the default libpath from the value encoded in an
16144 # empty executable.
16145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16146 /* end confdefs.h. */
16147
16148 int
16149 main ()
16150 {
16151
16152 ;
16153 return 0;
16154 }
16155 _ACEOF
16156 if ac_fn_c_try_link "$LINENO"; then :
16157
16158 lt_aix_libpath_sed='
16159 /Import File Strings/,/^$/ {
16160 /^0/ {
16161 s/^0 *\(.*\)$/\1/
16162 p
16163 }
16164 }'
16165 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16166 # Check for a 64-bit object if we didn't find anything.
16167 if test -z "$aix_libpath"; then
16168 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16169 fi
16170 fi
16171 rm -f core conftest.err conftest.$ac_objext \
16172 conftest$ac_exeext conftest.$ac_ext
16173 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16174
16175 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16176 # Warning - without using the other run time loading flags,
16177 # -berok will link without error, but may produce a broken library.
16178 no_undefined_flag=' ${wl}-bernotok'
16179 allow_undefined_flag=' ${wl}-berok'
16180 if test "$with_gnu_ld" = yes; then
16181 # We only use this code for GNU lds that support --whole-archive.
16182 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16183 else
16184 # Exported symbols can be pulled into shared objects from archives
16185 whole_archive_flag_spec='$convenience'
16186 fi
16187 archive_cmds_need_lc=yes
16188 # This is similar to how AIX traditionally builds its shared libraries.
16189 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'
16190 fi
16191 fi
16192 ;;
16193
16194 amigaos*)
16195 case $host_cpu in
16196 powerpc)
16197 # see comment about AmigaOS4 .so support
16198 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16199 archive_expsym_cmds=''
16200 ;;
16201 m68k)
16202 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)'
16203 hardcode_libdir_flag_spec='-L$libdir'
16204 hardcode_minus_L=yes
16205 ;;
16206 esac
16207 ;;
16208
16209 bsdi[45]*)
16210 export_dynamic_flag_spec=-rdynamic
16211 ;;
16212
16213 cygwin* | mingw* | pw32* | cegcc*)
16214 # When not using gcc, we currently assume that we are using
16215 # Microsoft Visual C++.
16216 # hardcode_libdir_flag_spec is actually meaningless, as there is
16217 # no search path for DLLs.
16218 hardcode_libdir_flag_spec=' '
16219 allow_undefined_flag=unsupported
16220 # Tell ltmain to make .lib files, not .a files.
16221 libext=lib
16222 # Tell ltmain to make .dll files, not .so files.
16223 shrext_cmds=".dll"
16224 # FIXME: Setting linknames here is a bad hack.
16225 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16226 # The linker will automatically build a .lib file if we build a DLL.
16227 old_archive_from_new_cmds='true'
16228 # FIXME: Should let the user specify the lib program.
16229 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16230 fix_srcfile_path='`cygpath -w "$srcfile"`'
16231 enable_shared_with_static_runtimes=yes
16232 ;;
16233
16234 darwin* | rhapsody*)
16235
16236
16237 archive_cmds_need_lc=no
16238 hardcode_direct=no
16239 hardcode_automatic=yes
16240 hardcode_shlibpath_var=unsupported
16241 if test "$lt_cv_ld_force_load" = "yes"; then
16242 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\"`'
16243 else
16244 whole_archive_flag_spec=''
16245 fi
16246 link_all_deplibs=yes
16247 allow_undefined_flag="$_lt_dar_allow_undefined"
16248 case $cc_basename in
16249 ifort*) _lt_dar_can_shared=yes ;;
16250 *) _lt_dar_can_shared=$GCC ;;
16251 esac
16252 if test "$_lt_dar_can_shared" = "yes"; then
16253 output_verbose_link_cmd=func_echo_all
16254 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16255 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16256 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}"
16257 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}"
16258
16259 else
16260 ld_shlibs=no
16261 fi
16262
16263 ;;
16264
16265 dgux*)
16266 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16267 hardcode_libdir_flag_spec='-L$libdir'
16268 hardcode_shlibpath_var=no
16269 ;;
16270
16271 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16272 # support. Future versions do this automatically, but an explicit c++rt0.o
16273 # does not break anything, and helps significantly (at the cost of a little
16274 # extra space).
16275 freebsd2.2*)
16276 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16277 hardcode_libdir_flag_spec='-R$libdir'
16278 hardcode_direct=yes
16279 hardcode_shlibpath_var=no
16280 ;;
16281
16282 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16283 freebsd2*)
16284 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16285 hardcode_direct=yes
16286 hardcode_minus_L=yes
16287 hardcode_shlibpath_var=no
16288 ;;
16289
16290 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16291 freebsd* | dragonfly*)
16292 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16293 hardcode_libdir_flag_spec='-R$libdir'
16294 hardcode_direct=yes
16295 hardcode_shlibpath_var=no
16296 ;;
16297
16298 hpux9*)
16299 if test "$GCC" = yes; then
16300 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'
16301 else
16302 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'
16303 fi
16304 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16305 hardcode_libdir_separator=:
16306 hardcode_direct=yes
16307
16308 # hardcode_minus_L: Not really in the search PATH,
16309 # but as the default location of the library.
16310 hardcode_minus_L=yes
16311 export_dynamic_flag_spec='${wl}-E'
16312 ;;
16313
16314 hpux10*)
16315 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16316 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16317 else
16318 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16319 fi
16320 if test "$with_gnu_ld" = no; then
16321 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16322 hardcode_libdir_flag_spec_ld='+b $libdir'
16323 hardcode_libdir_separator=:
16324 hardcode_direct=yes
16325 hardcode_direct_absolute=yes
16326 export_dynamic_flag_spec='${wl}-E'
16327 # hardcode_minus_L: Not really in the search PATH,
16328 # but as the default location of the library.
16329 hardcode_minus_L=yes
16330 fi
16331 ;;
16332
16333 hpux11*)
16334 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16335 case $host_cpu in
16336 hppa*64*)
16337 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16338 ;;
16339 ia64*)
16340 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16341 ;;
16342 *)
16343 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16344 ;;
16345 esac
16346 else
16347 case $host_cpu in
16348 hppa*64*)
16349 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16350 ;;
16351 ia64*)
16352 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16353 ;;
16354 *)
16355
16356 # Older versions of the 11.00 compiler do not understand -b yet
16357 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16359 $as_echo_n "checking if $CC understands -b... " >&6; }
16360 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16361 $as_echo_n "(cached) " >&6
16362 else
16363 lt_cv_prog_compiler__b=no
16364 save_LDFLAGS="$LDFLAGS"
16365 LDFLAGS="$LDFLAGS -b"
16366 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16367 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16368 # The linker can only warn and ignore the option if not recognized
16369 # So say no if there are warnings
16370 if test -s conftest.err; then
16371 # Append any errors to the config.log.
16372 cat conftest.err 1>&5
16373 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16374 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16375 if diff conftest.exp conftest.er2 >/dev/null; then
16376 lt_cv_prog_compiler__b=yes
16377 fi
16378 else
16379 lt_cv_prog_compiler__b=yes
16380 fi
16381 fi
16382 $RM -r conftest*
16383 LDFLAGS="$save_LDFLAGS"
16384
16385 fi
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16387 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16388
16389 if test x"$lt_cv_prog_compiler__b" = xyes; then
16390 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16391 else
16392 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16393 fi
16394
16395 ;;
16396 esac
16397 fi
16398 if test "$with_gnu_ld" = no; then
16399 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16400 hardcode_libdir_separator=:
16401
16402 case $host_cpu in
16403 hppa*64*|ia64*)
16404 hardcode_direct=no
16405 hardcode_shlibpath_var=no
16406 ;;
16407 *)
16408 hardcode_direct=yes
16409 hardcode_direct_absolute=yes
16410 export_dynamic_flag_spec='${wl}-E'
16411
16412 # hardcode_minus_L: Not really in the search PATH,
16413 # but as the default location of the library.
16414 hardcode_minus_L=yes
16415 ;;
16416 esac
16417 fi
16418 ;;
16419
16420 irix5* | irix6* | nonstopux*)
16421 if test "$GCC" = yes; then
16422 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'
16423 # Try to use the -exported_symbol ld option, if it does not
16424 # work, assume that -exports_file does not work either and
16425 # implicitly export all symbols.
16426 save_LDFLAGS="$LDFLAGS"
16427 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16429 /* end confdefs.h. */
16430 int foo(void) {}
16431 _ACEOF
16432 if ac_fn_c_try_link "$LINENO"; then :
16433 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'
16434
16435 fi
16436 rm -f core conftest.err conftest.$ac_objext \
16437 conftest$ac_exeext conftest.$ac_ext
16438 LDFLAGS="$save_LDFLAGS"
16439 else
16440 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'
16441 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'
16442 fi
16443 archive_cmds_need_lc='no'
16444 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16445 hardcode_libdir_separator=:
16446 inherit_rpath=yes
16447 link_all_deplibs=yes
16448 ;;
16449
16450 netbsd*)
16451 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16452 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16453 else
16454 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16455 fi
16456 hardcode_libdir_flag_spec='-R$libdir'
16457 hardcode_direct=yes
16458 hardcode_shlibpath_var=no
16459 ;;
16460
16461 newsos6)
16462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16463 hardcode_direct=yes
16464 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16465 hardcode_libdir_separator=:
16466 hardcode_shlibpath_var=no
16467 ;;
16468
16469 *nto* | *qnx*)
16470 ;;
16471
16472 openbsd*)
16473 if test -f /usr/libexec/ld.so; then
16474 hardcode_direct=yes
16475 hardcode_shlibpath_var=no
16476 hardcode_direct_absolute=yes
16477 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16478 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16479 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16480 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16481 export_dynamic_flag_spec='${wl}-E'
16482 else
16483 case $host_os in
16484 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16485 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16486 hardcode_libdir_flag_spec='-R$libdir'
16487 ;;
16488 *)
16489 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16490 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16491 ;;
16492 esac
16493 fi
16494 else
16495 ld_shlibs=no
16496 fi
16497 ;;
16498
16499 os2*)
16500 hardcode_libdir_flag_spec='-L$libdir'
16501 hardcode_minus_L=yes
16502 allow_undefined_flag=unsupported
16503 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'
16504 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16505 ;;
16506
16507 osf3*)
16508 if test "$GCC" = yes; then
16509 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16510 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'
16511 else
16512 allow_undefined_flag=' -expect_unresolved \*'
16513 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'
16514 fi
16515 archive_cmds_need_lc='no'
16516 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16517 hardcode_libdir_separator=:
16518 ;;
16519
16520 osf4* | osf5*) # as osf3* with the addition of -msym flag
16521 if test "$GCC" = yes; then
16522 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16523 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'
16524 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16525 else
16526 allow_undefined_flag=' -expect_unresolved \*'
16527 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'
16528 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~
16529 $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'
16530
16531 # Both c and cxx compiler support -rpath directly
16532 hardcode_libdir_flag_spec='-rpath $libdir'
16533 fi
16534 archive_cmds_need_lc='no'
16535 hardcode_libdir_separator=:
16536 ;;
16537
16538 solaris*)
16539 no_undefined_flag=' -z defs'
16540 if test "$GCC" = yes; then
16541 wlarc='${wl}'
16542 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16543 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16544 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16545 else
16546 case `$CC -V 2>&1` in
16547 *"Compilers 5.0"*)
16548 wlarc=''
16549 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16550 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16551 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16552 ;;
16553 *)
16554 wlarc='${wl}'
16555 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16556 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16557 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16558 ;;
16559 esac
16560 fi
16561 hardcode_libdir_flag_spec='-R$libdir'
16562 hardcode_shlibpath_var=no
16563 case $host_os in
16564 solaris2.[0-5] | solaris2.[0-5].*) ;;
16565 *)
16566 # The compiler driver will combine and reorder linker options,
16567 # but understands `-z linker_flag'. GCC discards it without `$wl',
16568 # but is careful enough not to reorder.
16569 # Supported since Solaris 2.6 (maybe 2.5.1?)
16570 if test "$GCC" = yes; then
16571 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16572 else
16573 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16574 fi
16575 ;;
16576 esac
16577 link_all_deplibs=yes
16578 ;;
16579
16580 sunos4*)
16581 if test "x$host_vendor" = xsequent; then
16582 # Use $CC to link under sequent, because it throws in some extra .o
16583 # files that make .init and .fini sections work.
16584 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16585 else
16586 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16587 fi
16588 hardcode_libdir_flag_spec='-L$libdir'
16589 hardcode_direct=yes
16590 hardcode_minus_L=yes
16591 hardcode_shlibpath_var=no
16592 ;;
16593
16594 sysv4)
16595 case $host_vendor in
16596 sni)
16597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16598 hardcode_direct=yes # is this really true???
16599 ;;
16600 siemens)
16601 ## LD is ld it makes a PLAMLIB
16602 ## CC just makes a GrossModule.
16603 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16604 reload_cmds='$CC -r -o $output$reload_objs'
16605 hardcode_direct=no
16606 ;;
16607 motorola)
16608 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16609 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16610 ;;
16611 esac
16612 runpath_var='LD_RUN_PATH'
16613 hardcode_shlibpath_var=no
16614 ;;
16615
16616 sysv4.3*)
16617 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16618 hardcode_shlibpath_var=no
16619 export_dynamic_flag_spec='-Bexport'
16620 ;;
16621
16622 sysv4*MP*)
16623 if test -d /usr/nec; then
16624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16625 hardcode_shlibpath_var=no
16626 runpath_var=LD_RUN_PATH
16627 hardcode_runpath_var=yes
16628 ld_shlibs=yes
16629 fi
16630 ;;
16631
16632 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16633 no_undefined_flag='${wl}-z,text'
16634 archive_cmds_need_lc=no
16635 hardcode_shlibpath_var=no
16636 runpath_var='LD_RUN_PATH'
16637
16638 if test "$GCC" = yes; then
16639 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16640 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16641 else
16642 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16643 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16644 fi
16645 ;;
16646
16647 sysv5* | sco3.2v5* | sco5v6*)
16648 # Note: We can NOT use -z defs as we might desire, because we do not
16649 # link with -lc, and that would cause any symbols used from libc to
16650 # always be unresolved, which means just about no library would
16651 # ever link correctly. If we're not using GNU ld we use -z text
16652 # though, which does catch some bad symbols but isn't as heavy-handed
16653 # as -z defs.
16654 no_undefined_flag='${wl}-z,text'
16655 allow_undefined_flag='${wl}-z,nodefs'
16656 archive_cmds_need_lc=no
16657 hardcode_shlibpath_var=no
16658 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16659 hardcode_libdir_separator=':'
16660 link_all_deplibs=yes
16661 export_dynamic_flag_spec='${wl}-Bexport'
16662 runpath_var='LD_RUN_PATH'
16663
16664 if test "$GCC" = yes; then
16665 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16666 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16667 else
16668 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16669 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16670 fi
16671 ;;
16672
16673 uts4*)
16674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16675 hardcode_libdir_flag_spec='-L$libdir'
16676 hardcode_shlibpath_var=no
16677 ;;
16678
16679 *)
16680 ld_shlibs=no
16681 ;;
16682 esac
16683
16684 if test x$host_vendor = xsni; then
16685 case $host in
16686 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16687 export_dynamic_flag_spec='${wl}-Blargedynsym'
16688 ;;
16689 esac
16690 fi
16691 fi
16692
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16694 $as_echo "$ld_shlibs" >&6; }
16695 test "$ld_shlibs" = no && can_build_shared=no
16696
16697 with_gnu_ld=$with_gnu_ld
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713 #
16714 # Do we need to explicitly link libc?
16715 #
16716 case "x$archive_cmds_need_lc" in
16717 x|xyes)
16718 # Assume -lc should be added
16719 archive_cmds_need_lc=yes
16720
16721 if test "$enable_shared" = yes && test "$GCC" = yes; then
16722 case $archive_cmds in
16723 *'~'*)
16724 # FIXME: we may have to deal with multi-command sequences.
16725 ;;
16726 '$CC '*)
16727 # Test whether the compiler implicitly links with -lc since on some
16728 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16729 # to ld, don't add -lc before -lgcc.
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16731 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16732 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16733 $as_echo_n "(cached) " >&6
16734 else
16735 $RM conftest*
16736 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16737
16738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16739 (eval $ac_compile) 2>&5
16740 ac_status=$?
16741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16742 test $ac_status = 0; } 2>conftest.err; then
16743 soname=conftest
16744 lib=conftest
16745 libobjs=conftest.$ac_objext
16746 deplibs=
16747 wl=$lt_prog_compiler_wl
16748 pic_flag=$lt_prog_compiler_pic
16749 compiler_flags=-v
16750 linker_flags=-v
16751 verstring=
16752 output_objdir=.
16753 libname=conftest
16754 lt_save_allow_undefined_flag=$allow_undefined_flag
16755 allow_undefined_flag=
16756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16757 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16758 ac_status=$?
16759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16760 test $ac_status = 0; }
16761 then
16762 lt_cv_archive_cmds_need_lc=no
16763 else
16764 lt_cv_archive_cmds_need_lc=yes
16765 fi
16766 allow_undefined_flag=$lt_save_allow_undefined_flag
16767 else
16768 cat conftest.err 1>&5
16769 fi
16770 $RM conftest*
16771
16772 fi
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16774 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16775 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16776 ;;
16777 esac
16778 fi
16779 ;;
16780 esac
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16939 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16940
16941 if test "$GCC" = yes; then
16942 case $host_os in
16943 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16944 *) lt_awk_arg="/^libraries:/" ;;
16945 esac
16946 case $host_os in
16947 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16948 *) lt_sed_strip_eq="s,=/,/,g" ;;
16949 esac
16950 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16951 case $lt_search_path_spec in
16952 *\;*)
16953 # if the path contains ";" then we assume it to be the separator
16954 # otherwise default to the standard path separator (i.e. ":") - it is
16955 # assumed that no part of a normal pathname contains ";" but that should
16956 # okay in the real world where ";" in dirpaths is itself problematic.
16957 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16958 ;;
16959 *)
16960 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16961 ;;
16962 esac
16963 # Ok, now we have the path, separated by spaces, we can step through it
16964 # and add multilib dir if necessary.
16965 lt_tmp_lt_search_path_spec=
16966 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16967 for lt_sys_path in $lt_search_path_spec; do
16968 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16969 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16970 else
16971 test -d "$lt_sys_path" && \
16972 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16973 fi
16974 done
16975 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16976 BEGIN {RS=" "; FS="/|\n";} {
16977 lt_foo="";
16978 lt_count=0;
16979 for (lt_i = NF; lt_i > 0; lt_i--) {
16980 if ($lt_i != "" && $lt_i != ".") {
16981 if ($lt_i == "..") {
16982 lt_count++;
16983 } else {
16984 if (lt_count == 0) {
16985 lt_foo="/" $lt_i lt_foo;
16986 } else {
16987 lt_count--;
16988 }
16989 }
16990 }
16991 }
16992 if (lt_foo != "") { lt_freq[lt_foo]++; }
16993 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16994 }'`
16995 # AWK program above erroneously prepends '/' to C:/dos/paths
16996 # for these hosts.
16997 case $host_os in
16998 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16999 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17000 esac
17001 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17002 else
17003 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17004 fi
17005 library_names_spec=
17006 libname_spec='lib$name'
17007 soname_spec=
17008 shrext_cmds=".so"
17009 postinstall_cmds=
17010 postuninstall_cmds=
17011 finish_cmds=
17012 finish_eval=
17013 shlibpath_var=
17014 shlibpath_overrides_runpath=unknown
17015 version_type=none
17016 dynamic_linker="$host_os ld.so"
17017 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17018 need_lib_prefix=unknown
17019 hardcode_into_libs=no
17020
17021 # when you set need_version to no, make sure it does not cause -set_version
17022 # flags to be left without arguments
17023 need_version=unknown
17024
17025 case $host_os in
17026 aix3*)
17027 version_type=linux
17028 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17029 shlibpath_var=LIBPATH
17030
17031 # AIX 3 has no versioning support, so we append a major version to the name.
17032 soname_spec='${libname}${release}${shared_ext}$major'
17033 ;;
17034
17035 aix[4-9]*)
17036 version_type=linux
17037 need_lib_prefix=no
17038 need_version=no
17039 hardcode_into_libs=yes
17040 if test "$host_cpu" = ia64; then
17041 # AIX 5 supports IA64
17042 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17043 shlibpath_var=LD_LIBRARY_PATH
17044 else
17045 # With GCC up to 2.95.x, collect2 would create an import file
17046 # for dependence libraries. The import file would start with
17047 # the line `#! .'. This would cause the generated library to
17048 # depend on `.', always an invalid library. This was fixed in
17049 # development snapshots of GCC prior to 3.0.
17050 case $host_os in
17051 aix4 | aix4.[01] | aix4.[01].*)
17052 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17053 echo ' yes '
17054 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17055 :
17056 else
17057 can_build_shared=no
17058 fi
17059 ;;
17060 esac
17061 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17062 # soname into executable. Probably we can add versioning support to
17063 # collect2, so additional links can be useful in future.
17064 if test "$aix_use_runtimelinking" = yes; then
17065 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17066 # instead of lib<name>.a to let people know that these are not
17067 # typical AIX shared libraries.
17068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17069 else
17070 # We preserve .a as extension for shared libraries through AIX4.2
17071 # and later when we are not doing run time linking.
17072 library_names_spec='${libname}${release}.a $libname.a'
17073 soname_spec='${libname}${release}${shared_ext}$major'
17074 fi
17075 shlibpath_var=LIBPATH
17076 fi
17077 ;;
17078
17079 amigaos*)
17080 case $host_cpu in
17081 powerpc)
17082 # Since July 2007 AmigaOS4 officially supports .so libraries.
17083 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17085 ;;
17086 m68k)
17087 library_names_spec='$libname.ixlibrary $libname.a'
17088 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17089 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'
17090 ;;
17091 esac
17092 ;;
17093
17094 beos*)
17095 library_names_spec='${libname}${shared_ext}'
17096 dynamic_linker="$host_os ld.so"
17097 shlibpath_var=LIBRARY_PATH
17098 ;;
17099
17100 bsdi[45]*)
17101 version_type=linux
17102 need_version=no
17103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17104 soname_spec='${libname}${release}${shared_ext}$major'
17105 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17106 shlibpath_var=LD_LIBRARY_PATH
17107 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17108 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17109 # the default ld.so.conf also contains /usr/contrib/lib and
17110 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17111 # libtool to hard-code these into programs
17112 ;;
17113
17114 cygwin* | mingw* | pw32* | cegcc*)
17115 version_type=windows
17116 shrext_cmds=".dll"
17117 need_version=no
17118 need_lib_prefix=no
17119
17120 case $GCC,$host_os in
17121 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17122 library_names_spec='$libname.dll.a'
17123 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17124 postinstall_cmds='base_file=`basename \${file}`~
17125 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17126 dldir=$destdir/`dirname \$dlpath`~
17127 test -d \$dldir || mkdir -p \$dldir~
17128 $install_prog $dir/$dlname \$dldir/$dlname~
17129 chmod a+x \$dldir/$dlname~
17130 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17131 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17132 fi'
17133 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17134 dlpath=$dir/\$dldll~
17135 $RM \$dlpath'
17136 shlibpath_overrides_runpath=yes
17137
17138 case $host_os in
17139 cygwin*)
17140 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17141 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17142
17143 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17144 ;;
17145 mingw* | cegcc*)
17146 # MinGW DLLs use traditional 'lib' prefix
17147 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17148 ;;
17149 pw32*)
17150 # pw32 DLLs use 'pw' prefix rather than 'lib'
17151 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17152 ;;
17153 esac
17154 ;;
17155
17156 *)
17157 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17158 ;;
17159 esac
17160 dynamic_linker='Win32 ld.exe'
17161 # FIXME: first we should search . and the directory the executable is in
17162 shlibpath_var=PATH
17163 ;;
17164
17165 darwin* | rhapsody*)
17166 dynamic_linker="$host_os dyld"
17167 version_type=darwin
17168 need_lib_prefix=no
17169 need_version=no
17170 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17171 soname_spec='${libname}${release}${major}$shared_ext'
17172 shlibpath_overrides_runpath=yes
17173 shlibpath_var=DYLD_LIBRARY_PATH
17174 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17175
17176 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17177 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17178 ;;
17179
17180 dgux*)
17181 version_type=linux
17182 need_lib_prefix=no
17183 need_version=no
17184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17185 soname_spec='${libname}${release}${shared_ext}$major'
17186 shlibpath_var=LD_LIBRARY_PATH
17187 ;;
17188
17189 freebsd* | dragonfly*)
17190 # DragonFly does not have aout. When/if they implement a new
17191 # versioning mechanism, adjust this.
17192 if test -x /usr/bin/objformat; then
17193 objformat=`/usr/bin/objformat`
17194 else
17195 case $host_os in
17196 freebsd[123]*) objformat=aout ;;
17197 *) objformat=elf ;;
17198 esac
17199 fi
17200 version_type=freebsd-$objformat
17201 case $version_type in
17202 freebsd-elf*)
17203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17204 need_version=no
17205 need_lib_prefix=no
17206 ;;
17207 freebsd-*)
17208 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17209 need_version=yes
17210 ;;
17211 esac
17212 shlibpath_var=LD_LIBRARY_PATH
17213 case $host_os in
17214 freebsd2*)
17215 shlibpath_overrides_runpath=yes
17216 ;;
17217 freebsd3.[01]* | freebsdelf3.[01]*)
17218 shlibpath_overrides_runpath=yes
17219 hardcode_into_libs=yes
17220 ;;
17221 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17222 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17223 shlibpath_overrides_runpath=no
17224 hardcode_into_libs=yes
17225 ;;
17226 *) # from 4.6 on, and DragonFly
17227 shlibpath_overrides_runpath=yes
17228 hardcode_into_libs=yes
17229 ;;
17230 esac
17231 ;;
17232
17233 gnu*)
17234 version_type=linux
17235 need_lib_prefix=no
17236 need_version=no
17237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17238 soname_spec='${libname}${release}${shared_ext}$major'
17239 shlibpath_var=LD_LIBRARY_PATH
17240 hardcode_into_libs=yes
17241 ;;
17242
17243 haiku*)
17244 version_type=linux
17245 need_lib_prefix=no
17246 need_version=no
17247 dynamic_linker="$host_os runtime_loader"
17248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17249 soname_spec='${libname}${release}${shared_ext}$major'
17250 shlibpath_var=LIBRARY_PATH
17251 shlibpath_overrides_runpath=yes
17252 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17253 hardcode_into_libs=yes
17254 ;;
17255
17256 hpux9* | hpux10* | hpux11*)
17257 # Give a soname corresponding to the major version so that dld.sl refuses to
17258 # link against other versions.
17259 version_type=sunos
17260 need_lib_prefix=no
17261 need_version=no
17262 case $host_cpu in
17263 ia64*)
17264 shrext_cmds='.so'
17265 hardcode_into_libs=yes
17266 dynamic_linker="$host_os dld.so"
17267 shlibpath_var=LD_LIBRARY_PATH
17268 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17270 soname_spec='${libname}${release}${shared_ext}$major'
17271 if test "X$HPUX_IA64_MODE" = X32; then
17272 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17273 else
17274 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17275 fi
17276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17277 ;;
17278 hppa*64*)
17279 shrext_cmds='.sl'
17280 hardcode_into_libs=yes
17281 dynamic_linker="$host_os dld.sl"
17282 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17283 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17285 soname_spec='${libname}${release}${shared_ext}$major'
17286 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17287 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17288 ;;
17289 *)
17290 shrext_cmds='.sl'
17291 dynamic_linker="$host_os dld.sl"
17292 shlibpath_var=SHLIB_PATH
17293 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17295 soname_spec='${libname}${release}${shared_ext}$major'
17296 ;;
17297 esac
17298 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17299 postinstall_cmds='chmod 555 $lib'
17300 # or fails outright, so override atomically:
17301 install_override_mode=555
17302 ;;
17303
17304 interix[3-9]*)
17305 version_type=linux
17306 need_lib_prefix=no
17307 need_version=no
17308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17309 soname_spec='${libname}${release}${shared_ext}$major'
17310 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17311 shlibpath_var=LD_LIBRARY_PATH
17312 shlibpath_overrides_runpath=no
17313 hardcode_into_libs=yes
17314 ;;
17315
17316 irix5* | irix6* | nonstopux*)
17317 case $host_os in
17318 nonstopux*) version_type=nonstopux ;;
17319 *)
17320 if test "$lt_cv_prog_gnu_ld" = yes; then
17321 version_type=linux
17322 else
17323 version_type=irix
17324 fi ;;
17325 esac
17326 need_lib_prefix=no
17327 need_version=no
17328 soname_spec='${libname}${release}${shared_ext}$major'
17329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17330 case $host_os in
17331 irix5* | nonstopux*)
17332 libsuff= shlibsuff=
17333 ;;
17334 *)
17335 case $LD in # libtool.m4 will add one of these switches to LD
17336 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17337 libsuff= shlibsuff= libmagic=32-bit;;
17338 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17339 libsuff=32 shlibsuff=N32 libmagic=N32;;
17340 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17341 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17342 *) libsuff= shlibsuff= libmagic=never-match;;
17343 esac
17344 ;;
17345 esac
17346 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17347 shlibpath_overrides_runpath=no
17348 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17349 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17350 hardcode_into_libs=yes
17351 ;;
17352
17353 # No shared lib support for Linux oldld, aout, or coff.
17354 linux*oldld* | linux*aout* | linux*coff*)
17355 dynamic_linker=no
17356 ;;
17357
17358 # This must be Linux ELF.
17359 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17360 version_type=linux
17361 need_lib_prefix=no
17362 need_version=no
17363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17364 soname_spec='${libname}${release}${shared_ext}$major'
17365 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17366 shlibpath_var=LD_LIBRARY_PATH
17367 shlibpath_overrides_runpath=no
17368
17369 # Some binutils ld are patched to set DT_RUNPATH
17370 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17371 $as_echo_n "(cached) " >&6
17372 else
17373 lt_cv_shlibpath_overrides_runpath=no
17374 save_LDFLAGS=$LDFLAGS
17375 save_libdir=$libdir
17376 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17377 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17379 /* end confdefs.h. */
17380
17381 int
17382 main ()
17383 {
17384
17385 ;
17386 return 0;
17387 }
17388 _ACEOF
17389 if ac_fn_c_try_link "$LINENO"; then :
17390 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17391 lt_cv_shlibpath_overrides_runpath=yes
17392 fi
17393 fi
17394 rm -f core conftest.err conftest.$ac_objext \
17395 conftest$ac_exeext conftest.$ac_ext
17396 LDFLAGS=$save_LDFLAGS
17397 libdir=$save_libdir
17398
17399 fi
17400
17401 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17402
17403 # This implies no fast_install, which is unacceptable.
17404 # Some rework will be needed to allow for fast_install
17405 # before this can be enabled.
17406 hardcode_into_libs=yes
17407
17408 # Append ld.so.conf contents to the search path
17409 if test -f /etc/ld.so.conf; then
17410 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' ' '`
17411 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17412 fi
17413
17414 # We used to test for /lib/ld.so.1 and disable shared libraries on
17415 # powerpc, because MkLinux only supported shared libraries with the
17416 # GNU dynamic linker. Since this was broken with cross compilers,
17417 # most powerpc-linux boxes support dynamic linking these days and
17418 # people can always --disable-shared, the test was removed, and we
17419 # assume the GNU/Linux dynamic linker is in use.
17420 dynamic_linker='GNU/Linux ld.so'
17421 ;;
17422
17423 netbsd*)
17424 version_type=sunos
17425 need_lib_prefix=no
17426 need_version=no
17427 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17429 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17430 dynamic_linker='NetBSD (a.out) ld.so'
17431 else
17432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17433 soname_spec='${libname}${release}${shared_ext}$major'
17434 dynamic_linker='NetBSD ld.elf_so'
17435 fi
17436 shlibpath_var=LD_LIBRARY_PATH
17437 shlibpath_overrides_runpath=yes
17438 hardcode_into_libs=yes
17439 ;;
17440
17441 newsos6)
17442 version_type=linux
17443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17444 shlibpath_var=LD_LIBRARY_PATH
17445 shlibpath_overrides_runpath=yes
17446 ;;
17447
17448 *nto* | *qnx*)
17449 version_type=qnx
17450 need_lib_prefix=no
17451 need_version=no
17452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17453 soname_spec='${libname}${release}${shared_ext}$major'
17454 shlibpath_var=LD_LIBRARY_PATH
17455 shlibpath_overrides_runpath=no
17456 hardcode_into_libs=yes
17457 dynamic_linker='ldqnx.so'
17458 ;;
17459
17460 openbsd*)
17461 version_type=sunos
17462 sys_lib_dlsearch_path_spec="/usr/lib"
17463 need_lib_prefix=no
17464 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17465 case $host_os in
17466 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17467 *) need_version=no ;;
17468 esac
17469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17470 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17471 shlibpath_var=LD_LIBRARY_PATH
17472 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17473 case $host_os in
17474 openbsd2.[89] | openbsd2.[89].*)
17475 shlibpath_overrides_runpath=no
17476 ;;
17477 *)
17478 shlibpath_overrides_runpath=yes
17479 ;;
17480 esac
17481 else
17482 shlibpath_overrides_runpath=yes
17483 fi
17484 ;;
17485
17486 os2*)
17487 libname_spec='$name'
17488 shrext_cmds=".dll"
17489 need_lib_prefix=no
17490 library_names_spec='$libname${shared_ext} $libname.a'
17491 dynamic_linker='OS/2 ld.exe'
17492 shlibpath_var=LIBPATH
17493 ;;
17494
17495 osf3* | osf4* | osf5*)
17496 version_type=osf
17497 need_lib_prefix=no
17498 need_version=no
17499 soname_spec='${libname}${release}${shared_ext}$major'
17500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17501 shlibpath_var=LD_LIBRARY_PATH
17502 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17503 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17504 ;;
17505
17506 rdos*)
17507 dynamic_linker=no
17508 ;;
17509
17510 solaris*)
17511 version_type=linux
17512 need_lib_prefix=no
17513 need_version=no
17514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17515 soname_spec='${libname}${release}${shared_ext}$major'
17516 shlibpath_var=LD_LIBRARY_PATH
17517 shlibpath_overrides_runpath=yes
17518 hardcode_into_libs=yes
17519 # ldd complains unless libraries are executable
17520 postinstall_cmds='chmod +x $lib'
17521 ;;
17522
17523 sunos4*)
17524 version_type=sunos
17525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17526 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17527 shlibpath_var=LD_LIBRARY_PATH
17528 shlibpath_overrides_runpath=yes
17529 if test "$with_gnu_ld" = yes; then
17530 need_lib_prefix=no
17531 fi
17532 need_version=yes
17533 ;;
17534
17535 sysv4 | sysv4.3*)
17536 version_type=linux
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 case $host_vendor in
17541 sni)
17542 shlibpath_overrides_runpath=no
17543 need_lib_prefix=no
17544 runpath_var=LD_RUN_PATH
17545 ;;
17546 siemens)
17547 need_lib_prefix=no
17548 ;;
17549 motorola)
17550 need_lib_prefix=no
17551 need_version=no
17552 shlibpath_overrides_runpath=no
17553 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17554 ;;
17555 esac
17556 ;;
17557
17558 sysv4*MP*)
17559 if test -d /usr/nec ;then
17560 version_type=linux
17561 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17562 soname_spec='$libname${shared_ext}.$major'
17563 shlibpath_var=LD_LIBRARY_PATH
17564 fi
17565 ;;
17566
17567 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17568 version_type=freebsd-elf
17569 need_lib_prefix=no
17570 need_version=no
17571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17572 soname_spec='${libname}${release}${shared_ext}$major'
17573 shlibpath_var=LD_LIBRARY_PATH
17574 shlibpath_overrides_runpath=yes
17575 hardcode_into_libs=yes
17576 if test "$with_gnu_ld" = yes; then
17577 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17578 else
17579 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17580 case $host_os in
17581 sco3.2v5*)
17582 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17583 ;;
17584 esac
17585 fi
17586 sys_lib_dlsearch_path_spec='/usr/lib'
17587 ;;
17588
17589 tpf*)
17590 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17591 version_type=linux
17592 need_lib_prefix=no
17593 need_version=no
17594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17595 shlibpath_var=LD_LIBRARY_PATH
17596 shlibpath_overrides_runpath=no
17597 hardcode_into_libs=yes
17598 ;;
17599
17600 uts4*)
17601 version_type=linux
17602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17603 soname_spec='${libname}${release}${shared_ext}$major'
17604 shlibpath_var=LD_LIBRARY_PATH
17605 ;;
17606
17607 *)
17608 dynamic_linker=no
17609 ;;
17610 esac
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17612 $as_echo "$dynamic_linker" >&6; }
17613 test "$dynamic_linker" = no && can_build_shared=no
17614
17615 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17616 if test "$GCC" = yes; then
17617 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17618 fi
17619
17620 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17621 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17622 fi
17623 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17624 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17625 fi
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17719 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17720 hardcode_action=
17721 if test -n "$hardcode_libdir_flag_spec" ||
17722 test -n "$runpath_var" ||
17723 test "X$hardcode_automatic" = "Xyes" ; then
17724
17725 # We can hardcode non-existent directories.
17726 if test "$hardcode_direct" != no &&
17727 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17728 # have to relink, otherwise we might link with an installed library
17729 # when we should be linking with a yet-to-be-installed one
17730 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17731 test "$hardcode_minus_L" != no; then
17732 # Linking always hardcodes the temporary library directory.
17733 hardcode_action=relink
17734 else
17735 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17736 hardcode_action=immediate
17737 fi
17738 else
17739 # We cannot hardcode anything, or else we can only hardcode existing
17740 # directories.
17741 hardcode_action=unsupported
17742 fi
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17744 $as_echo "$hardcode_action" >&6; }
17745
17746 if test "$hardcode_action" = relink ||
17747 test "$inherit_rpath" = yes; then
17748 # Fast installation is not supported
17749 enable_fast_install=no
17750 elif test "$shlibpath_overrides_runpath" = yes ||
17751 test "$enable_shared" = no; then
17752 # Fast installation is not necessary
17753 enable_fast_install=needless
17754 fi
17755
17756
17757
17758
17759
17760
17761 if test "x$enable_dlopen" != xyes; then
17762 enable_dlopen=unknown
17763 enable_dlopen_self=unknown
17764 enable_dlopen_self_static=unknown
17765 else
17766 lt_cv_dlopen=no
17767 lt_cv_dlopen_libs=
17768
17769 case $host_os in
17770 beos*)
17771 lt_cv_dlopen="load_add_on"
17772 lt_cv_dlopen_libs=
17773 lt_cv_dlopen_self=yes
17774 ;;
17775
17776 mingw* | pw32* | cegcc*)
17777 lt_cv_dlopen="LoadLibrary"
17778 lt_cv_dlopen_libs=
17779 ;;
17780
17781 cygwin*)
17782 lt_cv_dlopen="dlopen"
17783 lt_cv_dlopen_libs=
17784 ;;
17785
17786 darwin*)
17787 # if libdl is installed we need to link against it
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17789 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17790 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17791 $as_echo_n "(cached) " >&6
17792 else
17793 ac_check_lib_save_LIBS=$LIBS
17794 LIBS="-ldl $LIBS"
17795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17796 /* end confdefs.h. */
17797
17798 /* Override any GCC internal prototype to avoid an error.
17799 Use char because int might match the return type of a GCC
17800 builtin and then its argument prototype would still apply. */
17801 #ifdef __cplusplus
17802 extern "C"
17803 #endif
17804 char dlopen ();
17805 int
17806 main ()
17807 {
17808 return dlopen ();
17809 ;
17810 return 0;
17811 }
17812 _ACEOF
17813 if ac_fn_c_try_link "$LINENO"; then :
17814 ac_cv_lib_dl_dlopen=yes
17815 else
17816 ac_cv_lib_dl_dlopen=no
17817 fi
17818 rm -f core conftest.err conftest.$ac_objext \
17819 conftest$ac_exeext conftest.$ac_ext
17820 LIBS=$ac_check_lib_save_LIBS
17821 fi
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17823 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17824 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17825 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17826 else
17827
17828 lt_cv_dlopen="dyld"
17829 lt_cv_dlopen_libs=
17830 lt_cv_dlopen_self=yes
17831
17832 fi
17833
17834 ;;
17835
17836 *)
17837 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17838 if test "x$ac_cv_func_shl_load" = x""yes; then :
17839 lt_cv_dlopen="shl_load"
17840 else
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17842 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17843 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17844 $as_echo_n "(cached) " >&6
17845 else
17846 ac_check_lib_save_LIBS=$LIBS
17847 LIBS="-ldld $LIBS"
17848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17849 /* end confdefs.h. */
17850
17851 /* Override any GCC internal prototype to avoid an error.
17852 Use char because int might match the return type of a GCC
17853 builtin and then its argument prototype would still apply. */
17854 #ifdef __cplusplus
17855 extern "C"
17856 #endif
17857 char shl_load ();
17858 int
17859 main ()
17860 {
17861 return shl_load ();
17862 ;
17863 return 0;
17864 }
17865 _ACEOF
17866 if ac_fn_c_try_link "$LINENO"; then :
17867 ac_cv_lib_dld_shl_load=yes
17868 else
17869 ac_cv_lib_dld_shl_load=no
17870 fi
17871 rm -f core conftest.err conftest.$ac_objext \
17872 conftest$ac_exeext conftest.$ac_ext
17873 LIBS=$ac_check_lib_save_LIBS
17874 fi
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17876 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17877 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17878 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17879 else
17880 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17881 if test "x$ac_cv_func_dlopen" = x""yes; then :
17882 lt_cv_dlopen="dlopen"
17883 else
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17885 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17886 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17887 $as_echo_n "(cached) " >&6
17888 else
17889 ac_check_lib_save_LIBS=$LIBS
17890 LIBS="-ldl $LIBS"
17891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17892 /* end confdefs.h. */
17893
17894 /* Override any GCC internal prototype to avoid an error.
17895 Use char because int might match the return type of a GCC
17896 builtin and then its argument prototype would still apply. */
17897 #ifdef __cplusplus
17898 extern "C"
17899 #endif
17900 char dlopen ();
17901 int
17902 main ()
17903 {
17904 return dlopen ();
17905 ;
17906 return 0;
17907 }
17908 _ACEOF
17909 if ac_fn_c_try_link "$LINENO"; then :
17910 ac_cv_lib_dl_dlopen=yes
17911 else
17912 ac_cv_lib_dl_dlopen=no
17913 fi
17914 rm -f core conftest.err conftest.$ac_objext \
17915 conftest$ac_exeext conftest.$ac_ext
17916 LIBS=$ac_check_lib_save_LIBS
17917 fi
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17919 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17920 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17921 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17922 else
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17924 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17925 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17926 $as_echo_n "(cached) " >&6
17927 else
17928 ac_check_lib_save_LIBS=$LIBS
17929 LIBS="-lsvld $LIBS"
17930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17931 /* end confdefs.h. */
17932
17933 /* Override any GCC internal prototype to avoid an error.
17934 Use char because int might match the return type of a GCC
17935 builtin and then its argument prototype would still apply. */
17936 #ifdef __cplusplus
17937 extern "C"
17938 #endif
17939 char dlopen ();
17940 int
17941 main ()
17942 {
17943 return dlopen ();
17944 ;
17945 return 0;
17946 }
17947 _ACEOF
17948 if ac_fn_c_try_link "$LINENO"; then :
17949 ac_cv_lib_svld_dlopen=yes
17950 else
17951 ac_cv_lib_svld_dlopen=no
17952 fi
17953 rm -f core conftest.err conftest.$ac_objext \
17954 conftest$ac_exeext conftest.$ac_ext
17955 LIBS=$ac_check_lib_save_LIBS
17956 fi
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17958 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17959 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17960 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17961 else
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17963 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17964 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17965 $as_echo_n "(cached) " >&6
17966 else
17967 ac_check_lib_save_LIBS=$LIBS
17968 LIBS="-ldld $LIBS"
17969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17970 /* end confdefs.h. */
17971
17972 /* Override any GCC internal prototype to avoid an error.
17973 Use char because int might match the return type of a GCC
17974 builtin and then its argument prototype would still apply. */
17975 #ifdef __cplusplus
17976 extern "C"
17977 #endif
17978 char dld_link ();
17979 int
17980 main ()
17981 {
17982 return dld_link ();
17983 ;
17984 return 0;
17985 }
17986 _ACEOF
17987 if ac_fn_c_try_link "$LINENO"; then :
17988 ac_cv_lib_dld_dld_link=yes
17989 else
17990 ac_cv_lib_dld_dld_link=no
17991 fi
17992 rm -f core conftest.err conftest.$ac_objext \
17993 conftest$ac_exeext conftest.$ac_ext
17994 LIBS=$ac_check_lib_save_LIBS
17995 fi
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17997 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17998 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17999 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18000 fi
18001
18002
18003 fi
18004
18005
18006 fi
18007
18008
18009 fi
18010
18011
18012 fi
18013
18014
18015 fi
18016
18017 ;;
18018 esac
18019
18020 if test "x$lt_cv_dlopen" != xno; then
18021 enable_dlopen=yes
18022 else
18023 enable_dlopen=no
18024 fi
18025
18026 case $lt_cv_dlopen in
18027 dlopen)
18028 save_CPPFLAGS="$CPPFLAGS"
18029 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18030
18031 save_LDFLAGS="$LDFLAGS"
18032 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18033
18034 save_LIBS="$LIBS"
18035 LIBS="$lt_cv_dlopen_libs $LIBS"
18036
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18038 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18039 if test "${lt_cv_dlopen_self+set}" = set; then :
18040 $as_echo_n "(cached) " >&6
18041 else
18042 if test "$cross_compiling" = yes; then :
18043 lt_cv_dlopen_self=cross
18044 else
18045 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18046 lt_status=$lt_dlunknown
18047 cat > conftest.$ac_ext <<_LT_EOF
18048 #line 18047 "configure"
18049 #include "confdefs.h"
18050
18051 #if HAVE_DLFCN_H
18052 #include <dlfcn.h>
18053 #endif
18054
18055 #include <stdio.h>
18056
18057 #ifdef RTLD_GLOBAL
18058 # define LT_DLGLOBAL RTLD_GLOBAL
18059 #else
18060 # ifdef DL_GLOBAL
18061 # define LT_DLGLOBAL DL_GLOBAL
18062 # else
18063 # define LT_DLGLOBAL 0
18064 # endif
18065 #endif
18066
18067 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18068 find out it does not work in some platform. */
18069 #ifndef LT_DLLAZY_OR_NOW
18070 # ifdef RTLD_LAZY
18071 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18072 # else
18073 # ifdef DL_LAZY
18074 # define LT_DLLAZY_OR_NOW DL_LAZY
18075 # else
18076 # ifdef RTLD_NOW
18077 # define LT_DLLAZY_OR_NOW RTLD_NOW
18078 # else
18079 # ifdef DL_NOW
18080 # define LT_DLLAZY_OR_NOW DL_NOW
18081 # else
18082 # define LT_DLLAZY_OR_NOW 0
18083 # endif
18084 # endif
18085 # endif
18086 # endif
18087 #endif
18088
18089 /* When -fvisbility=hidden is used, assume the code has been annotated
18090 correspondingly for the symbols needed. */
18091 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18092 void fnord () __attribute__((visibility("default")));
18093 #endif
18094
18095 void fnord () { int i=42; }
18096 int main ()
18097 {
18098 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18099 int status = $lt_dlunknown;
18100
18101 if (self)
18102 {
18103 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18104 else
18105 {
18106 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18107 else puts (dlerror ());
18108 }
18109 /* dlclose (self); */
18110 }
18111 else
18112 puts (dlerror ());
18113
18114 return status;
18115 }
18116 _LT_EOF
18117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18118 (eval $ac_link) 2>&5
18119 ac_status=$?
18120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18121 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18122 (./conftest; exit; ) >&5 2>/dev/null
18123 lt_status=$?
18124 case x$lt_status in
18125 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18126 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18127 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18128 esac
18129 else :
18130 # compilation failed
18131 lt_cv_dlopen_self=no
18132 fi
18133 fi
18134 rm -fr conftest*
18135
18136
18137 fi
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18139 $as_echo "$lt_cv_dlopen_self" >&6; }
18140
18141 if test "x$lt_cv_dlopen_self" = xyes; then
18142 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18144 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18145 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18146 $as_echo_n "(cached) " >&6
18147 else
18148 if test "$cross_compiling" = yes; then :
18149 lt_cv_dlopen_self_static=cross
18150 else
18151 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18152 lt_status=$lt_dlunknown
18153 cat > conftest.$ac_ext <<_LT_EOF
18154 #line 18153 "configure"
18155 #include "confdefs.h"
18156
18157 #if HAVE_DLFCN_H
18158 #include <dlfcn.h>
18159 #endif
18160
18161 #include <stdio.h>
18162
18163 #ifdef RTLD_GLOBAL
18164 # define LT_DLGLOBAL RTLD_GLOBAL
18165 #else
18166 # ifdef DL_GLOBAL
18167 # define LT_DLGLOBAL DL_GLOBAL
18168 # else
18169 # define LT_DLGLOBAL 0
18170 # endif
18171 #endif
18172
18173 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18174 find out it does not work in some platform. */
18175 #ifndef LT_DLLAZY_OR_NOW
18176 # ifdef RTLD_LAZY
18177 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18178 # else
18179 # ifdef DL_LAZY
18180 # define LT_DLLAZY_OR_NOW DL_LAZY
18181 # else
18182 # ifdef RTLD_NOW
18183 # define LT_DLLAZY_OR_NOW RTLD_NOW
18184 # else
18185 # ifdef DL_NOW
18186 # define LT_DLLAZY_OR_NOW DL_NOW
18187 # else
18188 # define LT_DLLAZY_OR_NOW 0
18189 # endif
18190 # endif
18191 # endif
18192 # endif
18193 #endif
18194
18195 /* When -fvisbility=hidden is used, assume the code has been annotated
18196 correspondingly for the symbols needed. */
18197 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18198 void fnord () __attribute__((visibility("default")));
18199 #endif
18200
18201 void fnord () { int i=42; }
18202 int main ()
18203 {
18204 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18205 int status = $lt_dlunknown;
18206
18207 if (self)
18208 {
18209 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18210 else
18211 {
18212 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18213 else puts (dlerror ());
18214 }
18215 /* dlclose (self); */
18216 }
18217 else
18218 puts (dlerror ());
18219
18220 return status;
18221 }
18222 _LT_EOF
18223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18224 (eval $ac_link) 2>&5
18225 ac_status=$?
18226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18227 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18228 (./conftest; exit; ) >&5 2>/dev/null
18229 lt_status=$?
18230 case x$lt_status in
18231 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18232 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18233 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18234 esac
18235 else :
18236 # compilation failed
18237 lt_cv_dlopen_self_static=no
18238 fi
18239 fi
18240 rm -fr conftest*
18241
18242
18243 fi
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18245 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18246 fi
18247
18248 CPPFLAGS="$save_CPPFLAGS"
18249 LDFLAGS="$save_LDFLAGS"
18250 LIBS="$save_LIBS"
18251 ;;
18252 esac
18253
18254 case $lt_cv_dlopen_self in
18255 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18256 *) enable_dlopen_self=unknown ;;
18257 esac
18258
18259 case $lt_cv_dlopen_self_static in
18260 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18261 *) enable_dlopen_self_static=unknown ;;
18262 esac
18263 fi
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281 striplib=
18282 old_striplib=
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18284 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18285 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18286 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18287 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18289 $as_echo "yes" >&6; }
18290 else
18291 # FIXME - insert some real tests, host_os isn't really good enough
18292 case $host_os in
18293 darwin*)
18294 if test -n "$STRIP" ; then
18295 striplib="$STRIP -x"
18296 old_striplib="$STRIP -S"
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18298 $as_echo "yes" >&6; }
18299 else
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18301 $as_echo "no" >&6; }
18302 fi
18303 ;;
18304 *)
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18306 $as_echo "no" >&6; }
18307 ;;
18308 esac
18309 fi
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322 # Report which library types will actually be built
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18324 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18326 $as_echo "$can_build_shared" >&6; }
18327
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18329 $as_echo_n "checking whether to build shared libraries... " >&6; }
18330 test "$can_build_shared" = "no" && enable_shared=no
18331
18332 # On AIX, shared libraries and static libraries use the same namespace, and
18333 # are all built from PIC.
18334 case $host_os in
18335 aix3*)
18336 test "$enable_shared" = yes && enable_static=no
18337 if test -n "$RANLIB"; then
18338 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18339 postinstall_cmds='$RANLIB $lib'
18340 fi
18341 ;;
18342
18343 aix[4-9]*)
18344 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18345 test "$enable_shared" = yes && enable_static=no
18346 fi
18347 ;;
18348 esac
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18350 $as_echo "$enable_shared" >&6; }
18351
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18353 $as_echo_n "checking whether to build static libraries... " >&6; }
18354 # Make sure either enable_shared or enable_static is yes.
18355 test "$enable_shared" = yes || enable_static=yes
18356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18357 $as_echo "$enable_static" >&6; }
18358
18359
18360
18361
18362 fi
18363 ac_ext=c
18364 ac_cpp='$CPP $CPPFLAGS'
18365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18368
18369 CC="$lt_save_CC"
18370
18371 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18372 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18373 (test "X$CXX" != "Xg++"))) ; then
18374 ac_ext=cpp
18375 ac_cpp='$CXXCPP $CPPFLAGS'
18376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18380 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18381 if test -z "$CXXCPP"; then
18382 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18383 $as_echo_n "(cached) " >&6
18384 else
18385 # Double quotes because CXXCPP needs to be expanded
18386 for CXXCPP in "$CXX -E" "/lib/cpp"
18387 do
18388 ac_preproc_ok=false
18389 for ac_cxx_preproc_warn_flag in '' yes
18390 do
18391 # Use a header file that comes with gcc, so configuring glibc
18392 # with a fresh cross-compiler works.
18393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18394 # <limits.h> exists even on freestanding compilers.
18395 # On the NeXT, cc -E runs the code through the compiler's parser,
18396 # not just through cpp. "Syntax error" is here to catch this case.
18397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18398 /* end confdefs.h. */
18399 #ifdef __STDC__
18400 # include <limits.h>
18401 #else
18402 # include <assert.h>
18403 #endif
18404 Syntax error
18405 _ACEOF
18406 if ac_fn_cxx_try_cpp "$LINENO"; then :
18407
18408 else
18409 # Broken: fails on valid input.
18410 continue
18411 fi
18412 rm -f conftest.err conftest.$ac_ext
18413
18414 # OK, works on sane cases. Now check whether nonexistent headers
18415 # can be detected and how.
18416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18417 /* end confdefs.h. */
18418 #include <ac_nonexistent.h>
18419 _ACEOF
18420 if ac_fn_cxx_try_cpp "$LINENO"; then :
18421 # Broken: success on invalid input.
18422 continue
18423 else
18424 # Passes both tests.
18425 ac_preproc_ok=:
18426 break
18427 fi
18428 rm -f conftest.err conftest.$ac_ext
18429
18430 done
18431 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18432 rm -f conftest.err conftest.$ac_ext
18433 if $ac_preproc_ok; then :
18434 break
18435 fi
18436
18437 done
18438 ac_cv_prog_CXXCPP=$CXXCPP
18439
18440 fi
18441 CXXCPP=$ac_cv_prog_CXXCPP
18442 else
18443 ac_cv_prog_CXXCPP=$CXXCPP
18444 fi
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18446 $as_echo "$CXXCPP" >&6; }
18447 ac_preproc_ok=false
18448 for ac_cxx_preproc_warn_flag in '' yes
18449 do
18450 # Use a header file that comes with gcc, so configuring glibc
18451 # with a fresh cross-compiler works.
18452 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18453 # <limits.h> exists even on freestanding compilers.
18454 # On the NeXT, cc -E runs the code through the compiler's parser,
18455 # not just through cpp. "Syntax error" is here to catch this case.
18456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18457 /* end confdefs.h. */
18458 #ifdef __STDC__
18459 # include <limits.h>
18460 #else
18461 # include <assert.h>
18462 #endif
18463 Syntax error
18464 _ACEOF
18465 if ac_fn_cxx_try_cpp "$LINENO"; then :
18466
18467 else
18468 # Broken: fails on valid input.
18469 continue
18470 fi
18471 rm -f conftest.err conftest.$ac_ext
18472
18473 # OK, works on sane cases. Now check whether nonexistent headers
18474 # can be detected and how.
18475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18476 /* end confdefs.h. */
18477 #include <ac_nonexistent.h>
18478 _ACEOF
18479 if ac_fn_cxx_try_cpp "$LINENO"; then :
18480 # Broken: success on invalid input.
18481 continue
18482 else
18483 # Passes both tests.
18484 ac_preproc_ok=:
18485 break
18486 fi
18487 rm -f conftest.err conftest.$ac_ext
18488
18489 done
18490 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18491 rm -f conftest.err conftest.$ac_ext
18492 if $ac_preproc_ok; then :
18493
18494 else
18495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18497 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18498 See \`config.log' for more details." "$LINENO" 5; }
18499 fi
18500
18501 ac_ext=c
18502 ac_cpp='$CPP $CPPFLAGS'
18503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18506
18507 else
18508 _lt_caught_CXX_error=yes
18509 fi
18510
18511 ac_ext=cpp
18512 ac_cpp='$CXXCPP $CPPFLAGS'
18513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18516
18517 archive_cmds_need_lc_CXX=no
18518 allow_undefined_flag_CXX=
18519 always_export_symbols_CXX=no
18520 archive_expsym_cmds_CXX=
18521 compiler_needs_object_CXX=no
18522 export_dynamic_flag_spec_CXX=
18523 hardcode_direct_CXX=no
18524 hardcode_direct_absolute_CXX=no
18525 hardcode_libdir_flag_spec_CXX=
18526 hardcode_libdir_flag_spec_ld_CXX=
18527 hardcode_libdir_separator_CXX=
18528 hardcode_minus_L_CXX=no
18529 hardcode_shlibpath_var_CXX=unsupported
18530 hardcode_automatic_CXX=no
18531 inherit_rpath_CXX=no
18532 module_cmds_CXX=
18533 module_expsym_cmds_CXX=
18534 link_all_deplibs_CXX=unknown
18535 old_archive_cmds_CXX=$old_archive_cmds
18536 reload_flag_CXX=$reload_flag
18537 reload_cmds_CXX=$reload_cmds
18538 no_undefined_flag_CXX=
18539 whole_archive_flag_spec_CXX=
18540 enable_shared_with_static_runtimes_CXX=no
18541
18542 # Source file extension for C++ test sources.
18543 ac_ext=cpp
18544
18545 # Object file extension for compiled C++ test sources.
18546 objext=o
18547 objext_CXX=$objext
18548
18549 # No sense in running all these tests if we already determined that
18550 # the CXX compiler isn't working. Some variables (like enable_shared)
18551 # are currently assumed to apply to all compilers on this platform,
18552 # and will be corrupted by setting them based on a non-working compiler.
18553 if test "$_lt_caught_CXX_error" != yes; then
18554 # Code to be used in simple compile tests
18555 lt_simple_compile_test_code="int some_variable = 0;"
18556
18557 # Code to be used in simple link tests
18558 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18559
18560 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18561
18562
18563
18564
18565
18566
18567 # If no C compiler was specified, use CC.
18568 LTCC=${LTCC-"$CC"}
18569
18570 # If no C compiler flags were specified, use CFLAGS.
18571 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18572
18573 # Allow CC to be a program name with arguments.
18574 compiler=$CC
18575
18576
18577 # save warnings/boilerplate of simple test code
18578 ac_outfile=conftest.$ac_objext
18579 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18580 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18581 _lt_compiler_boilerplate=`cat conftest.err`
18582 $RM conftest*
18583
18584 ac_outfile=conftest.$ac_objext
18585 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18586 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18587 _lt_linker_boilerplate=`cat conftest.err`
18588 $RM -r conftest*
18589
18590
18591 # Allow CC to be a program name with arguments.
18592 lt_save_CC=$CC
18593 lt_save_LD=$LD
18594 lt_save_GCC=$GCC
18595 GCC=$GXX
18596 lt_save_with_gnu_ld=$with_gnu_ld
18597 lt_save_path_LD=$lt_cv_path_LD
18598 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18599 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18600 else
18601 $as_unset lt_cv_prog_gnu_ld
18602 fi
18603 if test -n "${lt_cv_path_LDCXX+set}"; then
18604 lt_cv_path_LD=$lt_cv_path_LDCXX
18605 else
18606 $as_unset lt_cv_path_LD
18607 fi
18608 test -z "${LDCXX+set}" || LD=$LDCXX
18609 CC=${CXX-"c++"}
18610 compiler=$CC
18611 compiler_CXX=$CC
18612 for cc_temp in $compiler""; do
18613 case $cc_temp in
18614 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18615 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18616 \-*) ;;
18617 *) break;;
18618 esac
18619 done
18620 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18621
18622
18623 if test -n "$compiler"; then
18624 # We don't want -fno-exception when compiling C++ code, so set the
18625 # no_builtin_flag separately
18626 if test "$GXX" = yes; then
18627 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18628 else
18629 lt_prog_compiler_no_builtin_flag_CXX=
18630 fi
18631
18632 if test "$GXX" = yes; then
18633 # Set up default GNU C++ configuration
18634
18635
18636
18637 # Check whether --with-gnu-ld was given.
18638 if test "${with_gnu_ld+set}" = set; then :
18639 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18640 else
18641 with_gnu_ld=no
18642 fi
18643
18644 ac_prog=ld
18645 if test "$GCC" = yes; then
18646 # Check if gcc -print-prog-name=ld gives a path.
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18648 $as_echo_n "checking for ld used by $CC... " >&6; }
18649 case $host in
18650 *-*-mingw*)
18651 # gcc leaves a trailing carriage return which upsets mingw
18652 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18653 *)
18654 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18655 esac
18656 case $ac_prog in
18657 # Accept absolute paths.
18658 [\\/]* | ?:[\\/]*)
18659 re_direlt='/[^/][^/]*/\.\./'
18660 # Canonicalize the pathname of ld
18661 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18662 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18663 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18664 done
18665 test -z "$LD" && LD="$ac_prog"
18666 ;;
18667 "")
18668 # If it fails, then pretend we aren't using GCC.
18669 ac_prog=ld
18670 ;;
18671 *)
18672 # If it is relative, then search for the first ld in PATH.
18673 with_gnu_ld=unknown
18674 ;;
18675 esac
18676 elif test "$with_gnu_ld" = yes; then
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18678 $as_echo_n "checking for GNU ld... " >&6; }
18679 else
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18681 $as_echo_n "checking for non-GNU ld... " >&6; }
18682 fi
18683 if test "${lt_cv_path_LD+set}" = set; then :
18684 $as_echo_n "(cached) " >&6
18685 else
18686 if test -z "$LD"; then
18687 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18688 for ac_dir in $PATH; do
18689 IFS="$lt_save_ifs"
18690 test -z "$ac_dir" && ac_dir=.
18691 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18692 lt_cv_path_LD="$ac_dir/$ac_prog"
18693 # Check to see if the program is GNU ld. I'd rather use --version,
18694 # but apparently some variants of GNU ld only accept -v.
18695 # Break only if it was the GNU/non-GNU ld that we prefer.
18696 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18697 *GNU* | *'with BFD'*)
18698 test "$with_gnu_ld" != no && break
18699 ;;
18700 *)
18701 test "$with_gnu_ld" != yes && break
18702 ;;
18703 esac
18704 fi
18705 done
18706 IFS="$lt_save_ifs"
18707 else
18708 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18709 fi
18710 fi
18711
18712 LD="$lt_cv_path_LD"
18713 if test -n "$LD"; then
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18715 $as_echo "$LD" >&6; }
18716 else
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18718 $as_echo "no" >&6; }
18719 fi
18720 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18722 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18723 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18724 $as_echo_n "(cached) " >&6
18725 else
18726 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18727 case `$LD -v 2>&1 </dev/null` in
18728 *GNU* | *'with BFD'*)
18729 lt_cv_prog_gnu_ld=yes
18730 ;;
18731 *)
18732 lt_cv_prog_gnu_ld=no
18733 ;;
18734 esac
18735 fi
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18737 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18738 with_gnu_ld=$lt_cv_prog_gnu_ld
18739
18740
18741
18742
18743
18744
18745
18746 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18747 # archiving commands below assume that GNU ld is being used.
18748 if test "$with_gnu_ld" = yes; then
18749 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18750 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'
18751
18752 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18753 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18754
18755 # If archive_cmds runs LD, not CC, wlarc should be empty
18756 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18757 # investigate it a little bit more. (MM)
18758 wlarc='${wl}'
18759
18760 # ancient GNU ld didn't support --whole-archive et. al.
18761 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18762 $GREP 'no-whole-archive' > /dev/null; then
18763 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18764 else
18765 whole_archive_flag_spec_CXX=
18766 fi
18767 else
18768 with_gnu_ld=no
18769 wlarc=
18770
18771 # A generic and very simple default shared library creation
18772 # command for GNU C++ for the case where it uses the native
18773 # linker, instead of GNU ld. If possible, this setting should
18774 # overridden to take advantage of the native linker features on
18775 # the platform it is being used on.
18776 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18777 fi
18778
18779 # Commands to make compiler produce verbose output that lists
18780 # what "hidden" libraries, object files and flags are used when
18781 # linking a shared library.
18782 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18783
18784 else
18785 GXX=no
18786 with_gnu_ld=no
18787 wlarc=
18788 fi
18789
18790 # PORTME: fill in a description of your system's C++ link characteristics
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18792 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18793 ld_shlibs_CXX=yes
18794 case $host_os in
18795 aix3*)
18796 # FIXME: insert proper C++ library support
18797 ld_shlibs_CXX=no
18798 ;;
18799 aix[4-9]*)
18800 if test "$host_cpu" = ia64; then
18801 # On IA64, the linker does run time linking by default, so we don't
18802 # have to do anything special.
18803 aix_use_runtimelinking=no
18804 exp_sym_flag='-Bexport'
18805 no_entry_flag=""
18806 else
18807 aix_use_runtimelinking=no
18808
18809 # Test if we are trying to use run time linking or normal
18810 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18811 # need to do runtime linking.
18812 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18813 for ld_flag in $LDFLAGS; do
18814 case $ld_flag in
18815 *-brtl*)
18816 aix_use_runtimelinking=yes
18817 break
18818 ;;
18819 esac
18820 done
18821 ;;
18822 esac
18823
18824 exp_sym_flag='-bexport'
18825 no_entry_flag='-bnoentry'
18826 fi
18827
18828 # When large executables or shared objects are built, AIX ld can
18829 # have problems creating the table of contents. If linking a library
18830 # or program results in "error TOC overflow" add -mminimal-toc to
18831 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18832 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18833
18834 archive_cmds_CXX=''
18835 hardcode_direct_CXX=yes
18836 hardcode_direct_absolute_CXX=yes
18837 hardcode_libdir_separator_CXX=':'
18838 link_all_deplibs_CXX=yes
18839 file_list_spec_CXX='${wl}-f,'
18840
18841 if test "$GXX" = yes; then
18842 case $host_os in aix4.[012]|aix4.[012].*)
18843 # We only want to do this on AIX 4.2 and lower, the check
18844 # below for broken collect2 doesn't work under 4.3+
18845 collect2name=`${CC} -print-prog-name=collect2`
18846 if test -f "$collect2name" &&
18847 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18848 then
18849 # We have reworked collect2
18850 :
18851 else
18852 # We have old collect2
18853 hardcode_direct_CXX=unsupported
18854 # It fails to find uninstalled libraries when the uninstalled
18855 # path is not listed in the libpath. Setting hardcode_minus_L
18856 # to unsupported forces relinking
18857 hardcode_minus_L_CXX=yes
18858 hardcode_libdir_flag_spec_CXX='-L$libdir'
18859 hardcode_libdir_separator_CXX=
18860 fi
18861 esac
18862 shared_flag='-shared'
18863 if test "$aix_use_runtimelinking" = yes; then
18864 shared_flag="$shared_flag "'${wl}-G'
18865 fi
18866 else
18867 # not using gcc
18868 if test "$host_cpu" = ia64; then
18869 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18870 # chokes on -Wl,-G. The following line is correct:
18871 shared_flag='-G'
18872 else
18873 if test "$aix_use_runtimelinking" = yes; then
18874 shared_flag='${wl}-G'
18875 else
18876 shared_flag='${wl}-bM:SRE'
18877 fi
18878 fi
18879 fi
18880
18881 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18882 # It seems that -bexpall does not export symbols beginning with
18883 # underscore (_), so it is better to generate a list of symbols to
18884 # export.
18885 always_export_symbols_CXX=yes
18886 if test "$aix_use_runtimelinking" = yes; then
18887 # Warning - without using the other runtime loading flags (-brtl),
18888 # -berok will link without error, but may produce a broken library.
18889 allow_undefined_flag_CXX='-berok'
18890 # Determine the default libpath from the value encoded in an empty
18891 # executable.
18892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18893 /* end confdefs.h. */
18894
18895 int
18896 main ()
18897 {
18898
18899 ;
18900 return 0;
18901 }
18902 _ACEOF
18903 if ac_fn_cxx_try_link "$LINENO"; then :
18904
18905 lt_aix_libpath_sed='
18906 /Import File Strings/,/^$/ {
18907 /^0/ {
18908 s/^0 *\(.*\)$/\1/
18909 p
18910 }
18911 }'
18912 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18913 # Check for a 64-bit object if we didn't find anything.
18914 if test -z "$aix_libpath"; then
18915 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18916 fi
18917 fi
18918 rm -f core conftest.err conftest.$ac_objext \
18919 conftest$ac_exeext conftest.$ac_ext
18920 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18921
18922 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18923
18924 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"
18925 else
18926 if test "$host_cpu" = ia64; then
18927 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18928 allow_undefined_flag_CXX="-z nodefs"
18929 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"
18930 else
18931 # Determine the default libpath from the value encoded in an
18932 # empty executable.
18933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18934 /* end confdefs.h. */
18935
18936 int
18937 main ()
18938 {
18939
18940 ;
18941 return 0;
18942 }
18943 _ACEOF
18944 if ac_fn_cxx_try_link "$LINENO"; then :
18945
18946 lt_aix_libpath_sed='
18947 /Import File Strings/,/^$/ {
18948 /^0/ {
18949 s/^0 *\(.*\)$/\1/
18950 p
18951 }
18952 }'
18953 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18954 # Check for a 64-bit object if we didn't find anything.
18955 if test -z "$aix_libpath"; then
18956 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18957 fi
18958 fi
18959 rm -f core conftest.err conftest.$ac_objext \
18960 conftest$ac_exeext conftest.$ac_ext
18961 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18962
18963 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18964 # Warning - without using the other run time loading flags,
18965 # -berok will link without error, but may produce a broken library.
18966 no_undefined_flag_CXX=' ${wl}-bernotok'
18967 allow_undefined_flag_CXX=' ${wl}-berok'
18968 if test "$with_gnu_ld" = yes; then
18969 # We only use this code for GNU lds that support --whole-archive.
18970 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18971 else
18972 # Exported symbols can be pulled into shared objects from archives
18973 whole_archive_flag_spec_CXX='$convenience'
18974 fi
18975 archive_cmds_need_lc_CXX=yes
18976 # This is similar to how AIX traditionally builds its shared
18977 # libraries.
18978 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'
18979 fi
18980 fi
18981 ;;
18982
18983 beos*)
18984 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18985 allow_undefined_flag_CXX=unsupported
18986 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18987 # support --undefined. This deserves some investigation. FIXME
18988 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18989 else
18990 ld_shlibs_CXX=no
18991 fi
18992 ;;
18993
18994 chorus*)
18995 case $cc_basename in
18996 *)
18997 # FIXME: insert proper C++ library support
18998 ld_shlibs_CXX=no
18999 ;;
19000 esac
19001 ;;
19002
19003 cygwin* | mingw* | pw32* | cegcc*)
19004 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19005 # as there is no search path for DLLs.
19006 hardcode_libdir_flag_spec_CXX='-L$libdir'
19007 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19008 allow_undefined_flag_CXX=unsupported
19009 always_export_symbols_CXX=no
19010 enable_shared_with_static_runtimes_CXX=yes
19011
19012 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19013 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'
19014 # If the export-symbols file already is a .def file (1st line
19015 # is EXPORTS), use it as is; otherwise, prepend...
19016 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19017 cp $export_symbols $output_objdir/$soname.def;
19018 else
19019 echo EXPORTS > $output_objdir/$soname.def;
19020 cat $export_symbols >> $output_objdir/$soname.def;
19021 fi~
19022 $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'
19023 else
19024 ld_shlibs_CXX=no
19025 fi
19026 ;;
19027 darwin* | rhapsody*)
19028
19029
19030 archive_cmds_need_lc_CXX=no
19031 hardcode_direct_CXX=no
19032 hardcode_automatic_CXX=yes
19033 hardcode_shlibpath_var_CXX=unsupported
19034 if test "$lt_cv_ld_force_load" = "yes"; then
19035 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\"`'
19036 else
19037 whole_archive_flag_spec_CXX=''
19038 fi
19039 link_all_deplibs_CXX=yes
19040 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19041 case $cc_basename in
19042 ifort*) _lt_dar_can_shared=yes ;;
19043 *) _lt_dar_can_shared=$GCC ;;
19044 esac
19045 if test "$_lt_dar_can_shared" = "yes"; then
19046 output_verbose_link_cmd=func_echo_all
19047 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}"
19048 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19049 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}"
19050 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}"
19051 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19052 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}"
19053 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}"
19054 fi
19055
19056 else
19057 ld_shlibs_CXX=no
19058 fi
19059
19060 ;;
19061
19062 dgux*)
19063 case $cc_basename in
19064 ec++*)
19065 # FIXME: insert proper C++ library support
19066 ld_shlibs_CXX=no
19067 ;;
19068 ghcx*)
19069 # Green Hills C++ Compiler
19070 # FIXME: insert proper C++ library support
19071 ld_shlibs_CXX=no
19072 ;;
19073 *)
19074 # FIXME: insert proper C++ library support
19075 ld_shlibs_CXX=no
19076 ;;
19077 esac
19078 ;;
19079
19080 freebsd[12]*)
19081 # C++ shared libraries reported to be fairly broken before
19082 # switch to ELF
19083 ld_shlibs_CXX=no
19084 ;;
19085
19086 freebsd-elf*)
19087 archive_cmds_need_lc_CXX=no
19088 ;;
19089
19090 freebsd* | dragonfly*)
19091 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19092 # conventions
19093 ld_shlibs_CXX=yes
19094 ;;
19095
19096 gnu*)
19097 ;;
19098
19099 haiku*)
19100 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19101 link_all_deplibs_CXX=yes
19102 ;;
19103
19104 hpux9*)
19105 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19106 hardcode_libdir_separator_CXX=:
19107 export_dynamic_flag_spec_CXX='${wl}-E'
19108 hardcode_direct_CXX=yes
19109 hardcode_minus_L_CXX=yes # Not in the search PATH,
19110 # but as the default
19111 # location of the library.
19112
19113 case $cc_basename in
19114 CC*)
19115 # FIXME: insert proper C++ library support
19116 ld_shlibs_CXX=no
19117 ;;
19118 aCC*)
19119 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'
19120 # Commands to make compiler produce verbose output that lists
19121 # what "hidden" libraries, object files and flags are used when
19122 # linking a shared library.
19123 #
19124 # There doesn't appear to be a way to prevent this compiler from
19125 # explicitly linking system object files so we need to strip them
19126 # from the output so that they don't get included in the library
19127 # dependencies.
19128 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"'
19129 ;;
19130 *)
19131 if test "$GXX" = yes; then
19132 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'
19133 else
19134 # FIXME: insert proper C++ library support
19135 ld_shlibs_CXX=no
19136 fi
19137 ;;
19138 esac
19139 ;;
19140
19141 hpux10*|hpux11*)
19142 if test $with_gnu_ld = no; then
19143 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19144 hardcode_libdir_separator_CXX=:
19145
19146 case $host_cpu in
19147 hppa*64*|ia64*)
19148 ;;
19149 *)
19150 export_dynamic_flag_spec_CXX='${wl}-E'
19151 ;;
19152 esac
19153 fi
19154 case $host_cpu in
19155 hppa*64*|ia64*)
19156 hardcode_direct_CXX=no
19157 hardcode_shlibpath_var_CXX=no
19158 ;;
19159 *)
19160 hardcode_direct_CXX=yes
19161 hardcode_direct_absolute_CXX=yes
19162 hardcode_minus_L_CXX=yes # Not in the search PATH,
19163 # but as the default
19164 # location of the library.
19165 ;;
19166 esac
19167
19168 case $cc_basename in
19169 CC*)
19170 # FIXME: insert proper C++ library support
19171 ld_shlibs_CXX=no
19172 ;;
19173 aCC*)
19174 case $host_cpu in
19175 hppa*64*)
19176 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19177 ;;
19178 ia64*)
19179 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19180 ;;
19181 *)
19182 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19183 ;;
19184 esac
19185 # Commands to make compiler produce verbose output that lists
19186 # what "hidden" libraries, object files and flags are used when
19187 # linking a shared library.
19188 #
19189 # There doesn't appear to be a way to prevent this compiler from
19190 # explicitly linking system object files so we need to strip them
19191 # from the output so that they don't get included in the library
19192 # dependencies.
19193 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"'
19194 ;;
19195 *)
19196 if test "$GXX" = yes; then
19197 if test $with_gnu_ld = no; then
19198 case $host_cpu in
19199 hppa*64*)
19200 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19201 ;;
19202 ia64*)
19203 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19204 ;;
19205 *)
19206 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'
19207 ;;
19208 esac
19209 fi
19210 else
19211 # FIXME: insert proper C++ library support
19212 ld_shlibs_CXX=no
19213 fi
19214 ;;
19215 esac
19216 ;;
19217
19218 interix[3-9]*)
19219 hardcode_direct_CXX=no
19220 hardcode_shlibpath_var_CXX=no
19221 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19222 export_dynamic_flag_spec_CXX='${wl}-E'
19223 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19224 # Instead, shared libraries are loaded at an image base (0x10000000 by
19225 # default) and relocated if they conflict, which is a slow very memory
19226 # consuming and fragmenting process. To avoid this, we pick a random,
19227 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19228 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19229 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'
19230 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'
19231 ;;
19232 irix5* | irix6*)
19233 case $cc_basename in
19234 CC*)
19235 # SGI C++
19236 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'
19237
19238 # Archives containing C++ object files must be created using
19239 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19240 # necessary to make sure instantiated templates are included
19241 # in the archive.
19242 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19243 ;;
19244 *)
19245 if test "$GXX" = yes; then
19246 if test "$with_gnu_ld" = no; then
19247 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'
19248 else
19249 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'
19250 fi
19251 fi
19252 link_all_deplibs_CXX=yes
19253 ;;
19254 esac
19255 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19256 hardcode_libdir_separator_CXX=:
19257 inherit_rpath_CXX=yes
19258 ;;
19259
19260 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19261 case $cc_basename in
19262 KCC*)
19263 # Kuck and Associates, Inc. (KAI) C++ Compiler
19264
19265 # KCC will only create a shared library if the output file
19266 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19267 # to its proper name (with version) after linking.
19268 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'
19269 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'
19270 # Commands to make compiler produce verbose output that lists
19271 # what "hidden" libraries, object files and flags are used when
19272 # linking a shared library.
19273 #
19274 # There doesn't appear to be a way to prevent this compiler from
19275 # explicitly linking system object files so we need to strip them
19276 # from the output so that they don't get included in the library
19277 # dependencies.
19278 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"'
19279
19280 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19281 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19282
19283 # Archives containing C++ object files must be created using
19284 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19285 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19286 ;;
19287 icpc* | ecpc* )
19288 # Intel C++
19289 with_gnu_ld=yes
19290 # version 8.0 and above of icpc choke on multiply defined symbols
19291 # if we add $predep_objects and $postdep_objects, however 7.1 and
19292 # earlier do not add the objects themselves.
19293 case `$CC -V 2>&1` in
19294 *"Version 7."*)
19295 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19296 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'
19297 ;;
19298 *) # Version 8.0 or newer
19299 tmp_idyn=
19300 case $host_cpu in
19301 ia64*) tmp_idyn=' -i_dynamic';;
19302 esac
19303 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19304 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'
19305 ;;
19306 esac
19307 archive_cmds_need_lc_CXX=no
19308 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19309 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19310 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19311 ;;
19312 pgCC* | pgcpp*)
19313 # Portland Group C++ compiler
19314 case `$CC -V` in
19315 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19316 prelink_cmds_CXX='tpldir=Template.dir~
19317 rm -rf $tpldir~
19318 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19319 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19320 old_archive_cmds_CXX='tpldir=Template.dir~
19321 rm -rf $tpldir~
19322 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19323 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19324 $RANLIB $oldlib'
19325 archive_cmds_CXX='tpldir=Template.dir~
19326 rm -rf $tpldir~
19327 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19328 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19329 archive_expsym_cmds_CXX='tpldir=Template.dir~
19330 rm -rf $tpldir~
19331 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19332 $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'
19333 ;;
19334 *) # Version 6 and above use weak symbols
19335 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19336 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'
19337 ;;
19338 esac
19339
19340 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19341 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19342 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'
19343 ;;
19344 cxx*)
19345 # Compaq C++
19346 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19347 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'
19348
19349 runpath_var=LD_RUN_PATH
19350 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19351 hardcode_libdir_separator_CXX=:
19352
19353 # Commands to make compiler produce verbose output that lists
19354 # what "hidden" libraries, object files and flags are used when
19355 # linking a shared library.
19356 #
19357 # There doesn't appear to be a way to prevent this compiler from
19358 # explicitly linking system object files so we need to strip them
19359 # from the output so that they don't get included in the library
19360 # dependencies.
19361 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'
19362 ;;
19363 xl* | mpixl* | bgxl*)
19364 # IBM XL 8.0 on PPC, with GNU ld
19365 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19366 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19367 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19368 if test "x$supports_anon_versioning" = xyes; then
19369 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19370 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19371 echo "local: *; };" >> $output_objdir/$libname.ver~
19372 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19373 fi
19374 ;;
19375 *)
19376 case `$CC -V 2>&1 | sed 5q` in
19377 *Sun\ C*)
19378 # Sun C++ 5.9
19379 no_undefined_flag_CXX=' -zdefs'
19380 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19381 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'
19382 hardcode_libdir_flag_spec_CXX='-R$libdir'
19383 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'
19384 compiler_needs_object_CXX=yes
19385
19386 # Not sure whether something based on
19387 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19388 # would be better.
19389 output_verbose_link_cmd='func_echo_all'
19390
19391 # Archives containing C++ object files must be created using
19392 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19393 # necessary to make sure instantiated templates are included
19394 # in the archive.
19395 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19396 ;;
19397 esac
19398 ;;
19399 esac
19400 ;;
19401
19402 lynxos*)
19403 # FIXME: insert proper C++ library support
19404 ld_shlibs_CXX=no
19405 ;;
19406
19407 m88k*)
19408 # FIXME: insert proper C++ library support
19409 ld_shlibs_CXX=no
19410 ;;
19411
19412 mvs*)
19413 case $cc_basename in
19414 cxx*)
19415 # FIXME: insert proper C++ library support
19416 ld_shlibs_CXX=no
19417 ;;
19418 *)
19419 # FIXME: insert proper C++ library support
19420 ld_shlibs_CXX=no
19421 ;;
19422 esac
19423 ;;
19424
19425 netbsd*)
19426 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19427 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19428 wlarc=
19429 hardcode_libdir_flag_spec_CXX='-R$libdir'
19430 hardcode_direct_CXX=yes
19431 hardcode_shlibpath_var_CXX=no
19432 fi
19433 # Workaround some broken pre-1.5 toolchains
19434 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19435 ;;
19436
19437 *nto* | *qnx*)
19438 ld_shlibs_CXX=yes
19439 ;;
19440
19441 openbsd2*)
19442 # C++ shared libraries are fairly broken
19443 ld_shlibs_CXX=no
19444 ;;
19445
19446 openbsd*)
19447 if test -f /usr/libexec/ld.so; then
19448 hardcode_direct_CXX=yes
19449 hardcode_shlibpath_var_CXX=no
19450 hardcode_direct_absolute_CXX=yes
19451 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19452 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19453 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19454 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19455 export_dynamic_flag_spec_CXX='${wl}-E'
19456 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19457 fi
19458 output_verbose_link_cmd=func_echo_all
19459 else
19460 ld_shlibs_CXX=no
19461 fi
19462 ;;
19463
19464 osf3* | osf4* | osf5*)
19465 case $cc_basename in
19466 KCC*)
19467 # Kuck and Associates, Inc. (KAI) C++ Compiler
19468
19469 # KCC will only create a shared library if the output file
19470 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19471 # to its proper name (with version) after linking.
19472 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'
19473
19474 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19475 hardcode_libdir_separator_CXX=:
19476
19477 # Archives containing C++ object files must be created using
19478 # the KAI C++ compiler.
19479 case $host in
19480 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19481 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19482 esac
19483 ;;
19484 RCC*)
19485 # Rational C++ 2.4.1
19486 # FIXME: insert proper C++ library support
19487 ld_shlibs_CXX=no
19488 ;;
19489 cxx*)
19490 case $host in
19491 osf3*)
19492 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19493 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'
19494 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19495 ;;
19496 *)
19497 allow_undefined_flag_CXX=' -expect_unresolved \*'
19498 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'
19499 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19500 echo "-hidden">> $lib.exp~
19501 $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~
19502 $RM $lib.exp'
19503 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19504 ;;
19505 esac
19506
19507 hardcode_libdir_separator_CXX=:
19508
19509 # Commands to make compiler produce verbose output that lists
19510 # what "hidden" libraries, object files and flags are used when
19511 # linking a shared library.
19512 #
19513 # There doesn't appear to be a way to prevent this compiler from
19514 # explicitly linking system object files so we need to strip them
19515 # from the output so that they don't get included in the library
19516 # dependencies.
19517 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"'
19518 ;;
19519 *)
19520 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19521 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19522 case $host in
19523 osf3*)
19524 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'
19525 ;;
19526 *)
19527 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'
19528 ;;
19529 esac
19530
19531 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19532 hardcode_libdir_separator_CXX=:
19533
19534 # Commands to make compiler produce verbose output that lists
19535 # what "hidden" libraries, object files and flags are used when
19536 # linking a shared library.
19537 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19538
19539 else
19540 # FIXME: insert proper C++ library support
19541 ld_shlibs_CXX=no
19542 fi
19543 ;;
19544 esac
19545 ;;
19546
19547 psos*)
19548 # FIXME: insert proper C++ library support
19549 ld_shlibs_CXX=no
19550 ;;
19551
19552 sunos4*)
19553 case $cc_basename in
19554 CC*)
19555 # Sun C++ 4.x
19556 # FIXME: insert proper C++ library support
19557 ld_shlibs_CXX=no
19558 ;;
19559 lcc*)
19560 # Lucid
19561 # FIXME: insert proper C++ library support
19562 ld_shlibs_CXX=no
19563 ;;
19564 *)
19565 # FIXME: insert proper C++ library support
19566 ld_shlibs_CXX=no
19567 ;;
19568 esac
19569 ;;
19570
19571 solaris*)
19572 case $cc_basename in
19573 CC*)
19574 # Sun C++ 4.2, 5.x and Centerline C++
19575 archive_cmds_need_lc_CXX=yes
19576 no_undefined_flag_CXX=' -zdefs'
19577 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19578 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19579 $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'
19580
19581 hardcode_libdir_flag_spec_CXX='-R$libdir'
19582 hardcode_shlibpath_var_CXX=no
19583 case $host_os in
19584 solaris2.[0-5] | solaris2.[0-5].*) ;;
19585 *)
19586 # The compiler driver will combine and reorder linker options,
19587 # but understands `-z linker_flag'.
19588 # Supported since Solaris 2.6 (maybe 2.5.1?)
19589 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19590 ;;
19591 esac
19592 link_all_deplibs_CXX=yes
19593
19594 output_verbose_link_cmd='func_echo_all'
19595
19596 # Archives containing C++ object files must be created using
19597 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19598 # necessary to make sure instantiated templates are included
19599 # in the archive.
19600 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19601 ;;
19602 gcx*)
19603 # Green Hills C++ Compiler
19604 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19605
19606 # The C++ compiler must be used to create the archive.
19607 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19608 ;;
19609 *)
19610 # GNU C++ compiler with Solaris linker
19611 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19612 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19613 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19614 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19615 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19616 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19617
19618 # Commands to make compiler produce verbose output that lists
19619 # what "hidden" libraries, object files and flags are used when
19620 # linking a shared library.
19621 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19622 else
19623 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19624 # platform.
19625 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19626 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19627 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19628
19629 # Commands to make compiler produce verbose output that lists
19630 # what "hidden" libraries, object files and flags are used when
19631 # linking a shared library.
19632 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19633 fi
19634
19635 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19636 case $host_os in
19637 solaris2.[0-5] | solaris2.[0-5].*) ;;
19638 *)
19639 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19640 ;;
19641 esac
19642 fi
19643 ;;
19644 esac
19645 ;;
19646
19647 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19648 no_undefined_flag_CXX='${wl}-z,text'
19649 archive_cmds_need_lc_CXX=no
19650 hardcode_shlibpath_var_CXX=no
19651 runpath_var='LD_RUN_PATH'
19652
19653 case $cc_basename in
19654 CC*)
19655 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19656 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19657 ;;
19658 *)
19659 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19660 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19661 ;;
19662 esac
19663 ;;
19664
19665 sysv5* | sco3.2v5* | sco5v6*)
19666 # Note: We can NOT use -z defs as we might desire, because we do not
19667 # link with -lc, and that would cause any symbols used from libc to
19668 # always be unresolved, which means just about no library would
19669 # ever link correctly. If we're not using GNU ld we use -z text
19670 # though, which does catch some bad symbols but isn't as heavy-handed
19671 # as -z defs.
19672 no_undefined_flag_CXX='${wl}-z,text'
19673 allow_undefined_flag_CXX='${wl}-z,nodefs'
19674 archive_cmds_need_lc_CXX=no
19675 hardcode_shlibpath_var_CXX=no
19676 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19677 hardcode_libdir_separator_CXX=':'
19678 link_all_deplibs_CXX=yes
19679 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19680 runpath_var='LD_RUN_PATH'
19681
19682 case $cc_basename in
19683 CC*)
19684 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19685 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19686 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19687 '"$old_archive_cmds_CXX"
19688 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19689 '"$reload_cmds_CXX"
19690 ;;
19691 *)
19692 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19693 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19694 ;;
19695 esac
19696 ;;
19697
19698 tandem*)
19699 case $cc_basename in
19700 NCC*)
19701 # NonStop-UX NCC 3.20
19702 # FIXME: insert proper C++ library support
19703 ld_shlibs_CXX=no
19704 ;;
19705 *)
19706 # FIXME: insert proper C++ library support
19707 ld_shlibs_CXX=no
19708 ;;
19709 esac
19710 ;;
19711
19712 vxworks*)
19713 # FIXME: insert proper C++ library support
19714 ld_shlibs_CXX=no
19715 ;;
19716
19717 *)
19718 # FIXME: insert proper C++ library support
19719 ld_shlibs_CXX=no
19720 ;;
19721 esac
19722
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19724 $as_echo "$ld_shlibs_CXX" >&6; }
19725 test "$ld_shlibs_CXX" = no && can_build_shared=no
19726
19727 GCC_CXX="$GXX"
19728 LD_CXX="$LD"
19729
19730 ## CAVEAT EMPTOR:
19731 ## There is no encapsulation within the following macros, do not change
19732 ## the running order or otherwise move them around unless you know exactly
19733 ## what you are doing...
19734 # Dependencies to place before and after the object being linked:
19735 predep_objects_CXX=
19736 postdep_objects_CXX=
19737 predeps_CXX=
19738 postdeps_CXX=
19739 compiler_lib_search_path_CXX=
19740
19741 cat > conftest.$ac_ext <<_LT_EOF
19742 class Foo
19743 {
19744 public:
19745 Foo (void) { a = 0; }
19746 private:
19747 int a;
19748 };
19749 _LT_EOF
19750
19751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19752 (eval $ac_compile) 2>&5
19753 ac_status=$?
19754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19755 test $ac_status = 0; }; then
19756 # Parse the compiler output and extract the necessary
19757 # objects, libraries and library flags.
19758
19759 # Sentinel used to keep track of whether or not we are before
19760 # the conftest object file.
19761 pre_test_object_deps_done=no
19762
19763 for p in `eval "$output_verbose_link_cmd"`; do
19764 case $p in
19765
19766 -L* | -R* | -l*)
19767 # Some compilers place space between "-{L,R}" and the path.
19768 # Remove the space.
19769 if test $p = "-L" ||
19770 test $p = "-R"; then
19771 prev=$p
19772 continue
19773 else
19774 prev=
19775 fi
19776
19777 if test "$pre_test_object_deps_done" = no; then
19778 case $p in
19779 -L* | -R*)
19780 # Internal compiler library paths should come after those
19781 # provided the user. The postdeps already come after the
19782 # user supplied libs so there is no need to process them.
19783 if test -z "$compiler_lib_search_path_CXX"; then
19784 compiler_lib_search_path_CXX="${prev}${p}"
19785 else
19786 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19787 fi
19788 ;;
19789 # The "-l" case would never come before the object being
19790 # linked, so don't bother handling this case.
19791 esac
19792 else
19793 if test -z "$postdeps_CXX"; then
19794 postdeps_CXX="${prev}${p}"
19795 else
19796 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19797 fi
19798 fi
19799 ;;
19800
19801 *.$objext)
19802 # This assumes that the test object file only shows up
19803 # once in the compiler output.
19804 if test "$p" = "conftest.$objext"; then
19805 pre_test_object_deps_done=yes
19806 continue
19807 fi
19808
19809 if test "$pre_test_object_deps_done" = no; then
19810 if test -z "$predep_objects_CXX"; then
19811 predep_objects_CXX="$p"
19812 else
19813 predep_objects_CXX="$predep_objects_CXX $p"
19814 fi
19815 else
19816 if test -z "$postdep_objects_CXX"; then
19817 postdep_objects_CXX="$p"
19818 else
19819 postdep_objects_CXX="$postdep_objects_CXX $p"
19820 fi
19821 fi
19822 ;;
19823
19824 *) ;; # Ignore the rest.
19825
19826 esac
19827 done
19828
19829 # Clean up.
19830 rm -f a.out a.exe
19831 else
19832 echo "libtool.m4: error: problem compiling CXX test program"
19833 fi
19834
19835 $RM -f confest.$objext
19836
19837 # PORTME: override above test on systems where it is broken
19838 case $host_os in
19839 interix[3-9]*)
19840 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19841 # hack all around it, let's just trust "g++" to DTRT.
19842 predep_objects_CXX=
19843 postdep_objects_CXX=
19844 postdeps_CXX=
19845 ;;
19846
19847 linux*)
19848 case `$CC -V 2>&1 | sed 5q` in
19849 *Sun\ C*)
19850 # Sun C++ 5.9
19851
19852 # The more standards-conforming stlport4 library is
19853 # incompatible with the Cstd library. Avoid specifying
19854 # it if it's in CXXFLAGS. Ignore libCrun as
19855 # -library=stlport4 depends on it.
19856 case " $CXX $CXXFLAGS " in
19857 *" -library=stlport4 "*)
19858 solaris_use_stlport4=yes
19859 ;;
19860 esac
19861
19862 if test "$solaris_use_stlport4" != yes; then
19863 postdeps_CXX='-library=Cstd -library=Crun'
19864 fi
19865 ;;
19866 esac
19867 ;;
19868
19869 solaris*)
19870 case $cc_basename in
19871 CC*)
19872 # The more standards-conforming stlport4 library is
19873 # incompatible with the Cstd library. Avoid specifying
19874 # it if it's in CXXFLAGS. Ignore libCrun as
19875 # -library=stlport4 depends on it.
19876 case " $CXX $CXXFLAGS " in
19877 *" -library=stlport4 "*)
19878 solaris_use_stlport4=yes
19879 ;;
19880 esac
19881
19882 # Adding this requires a known-good setup of shared libraries for
19883 # Sun compiler versions before 5.6, else PIC objects from an old
19884 # archive will be linked into the output, leading to subtle bugs.
19885 if test "$solaris_use_stlport4" != yes; then
19886 postdeps_CXX='-library=Cstd -library=Crun'
19887 fi
19888 ;;
19889 esac
19890 ;;
19891 esac
19892
19893
19894 case " $postdeps_CXX " in
19895 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19896 esac
19897 compiler_lib_search_dirs_CXX=
19898 if test -n "${compiler_lib_search_path_CXX}"; then
19899 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19900 fi
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932 lt_prog_compiler_wl_CXX=
19933 lt_prog_compiler_pic_CXX=
19934 lt_prog_compiler_static_CXX=
19935
19936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19937 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19938
19939 # C++ specific cases for pic, static, wl, etc.
19940 if test "$GXX" = yes; then
19941 lt_prog_compiler_wl_CXX='-Wl,'
19942 lt_prog_compiler_static_CXX='-static'
19943
19944 case $host_os in
19945 aix*)
19946 # All AIX code is PIC.
19947 if test "$host_cpu" = ia64; then
19948 # AIX 5 now supports IA64 processor
19949 lt_prog_compiler_static_CXX='-Bstatic'
19950 fi
19951 ;;
19952
19953 amigaos*)
19954 case $host_cpu in
19955 powerpc)
19956 # see comment about AmigaOS4 .so support
19957 lt_prog_compiler_pic_CXX='-fPIC'
19958 ;;
19959 m68k)
19960 # FIXME: we need at least 68020 code to build shared libraries, but
19961 # adding the `-m68020' flag to GCC prevents building anything better,
19962 # like `-m68040'.
19963 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19964 ;;
19965 esac
19966 ;;
19967
19968 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19969 # PIC is the default for these OSes.
19970 ;;
19971 mingw* | cygwin* | os2* | pw32* | cegcc*)
19972 # This hack is so that the source file can tell whether it is being
19973 # built for inclusion in a dll (and should export symbols for example).
19974 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19975 # (--disable-auto-import) libraries
19976 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19977 ;;
19978 darwin* | rhapsody*)
19979 # PIC is the default on this platform
19980 # Common symbols not allowed in MH_DYLIB files
19981 lt_prog_compiler_pic_CXX='-fno-common'
19982 ;;
19983 *djgpp*)
19984 # DJGPP does not support shared libraries at all
19985 lt_prog_compiler_pic_CXX=
19986 ;;
19987 haiku*)
19988 # PIC is the default for Haiku.
19989 # The "-static" flag exists, but is broken.
19990 lt_prog_compiler_static_CXX=
19991 ;;
19992 interix[3-9]*)
19993 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19994 # Instead, we relocate shared libraries at runtime.
19995 ;;
19996 sysv4*MP*)
19997 if test -d /usr/nec; then
19998 lt_prog_compiler_pic_CXX=-Kconform_pic
19999 fi
20000 ;;
20001 hpux*)
20002 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20003 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20004 # sets the default TLS model and affects inlining.
20005 case $host_cpu in
20006 hppa*64*)
20007 ;;
20008 *)
20009 lt_prog_compiler_pic_CXX='-fPIC'
20010 ;;
20011 esac
20012 ;;
20013 *qnx* | *nto*)
20014 # QNX uses GNU C++, but need to define -shared option too, otherwise
20015 # it will coredump.
20016 lt_prog_compiler_pic_CXX='-fPIC -shared'
20017 ;;
20018 *)
20019 lt_prog_compiler_pic_CXX='-fPIC'
20020 ;;
20021 esac
20022 else
20023 case $host_os in
20024 aix[4-9]*)
20025 # All AIX code is PIC.
20026 if test "$host_cpu" = ia64; then
20027 # AIX 5 now supports IA64 processor
20028 lt_prog_compiler_static_CXX='-Bstatic'
20029 else
20030 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20031 fi
20032 ;;
20033 chorus*)
20034 case $cc_basename in
20035 cxch68*)
20036 # Green Hills C++ Compiler
20037 # _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"
20038 ;;
20039 esac
20040 ;;
20041 dgux*)
20042 case $cc_basename in
20043 ec++*)
20044 lt_prog_compiler_pic_CXX='-KPIC'
20045 ;;
20046 ghcx*)
20047 # Green Hills C++ Compiler
20048 lt_prog_compiler_pic_CXX='-pic'
20049 ;;
20050 *)
20051 ;;
20052 esac
20053 ;;
20054 freebsd* | dragonfly*)
20055 # FreeBSD uses GNU C++
20056 ;;
20057 hpux9* | hpux10* | hpux11*)
20058 case $cc_basename in
20059 CC*)
20060 lt_prog_compiler_wl_CXX='-Wl,'
20061 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20062 if test "$host_cpu" != ia64; then
20063 lt_prog_compiler_pic_CXX='+Z'
20064 fi
20065 ;;
20066 aCC*)
20067 lt_prog_compiler_wl_CXX='-Wl,'
20068 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20069 case $host_cpu in
20070 hppa*64*|ia64*)
20071 # +Z the default
20072 ;;
20073 *)
20074 lt_prog_compiler_pic_CXX='+Z'
20075 ;;
20076 esac
20077 ;;
20078 *)
20079 ;;
20080 esac
20081 ;;
20082 interix*)
20083 # This is c89, which is MS Visual C++ (no shared libs)
20084 # Anyone wants to do a port?
20085 ;;
20086 irix5* | irix6* | nonstopux*)
20087 case $cc_basename in
20088 CC*)
20089 lt_prog_compiler_wl_CXX='-Wl,'
20090 lt_prog_compiler_static_CXX='-non_shared'
20091 # CC pic flag -KPIC is the default.
20092 ;;
20093 *)
20094 ;;
20095 esac
20096 ;;
20097 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20098 case $cc_basename in
20099 KCC*)
20100 # KAI C++ Compiler
20101 lt_prog_compiler_wl_CXX='--backend -Wl,'
20102 lt_prog_compiler_pic_CXX='-fPIC'
20103 ;;
20104 ecpc* )
20105 # old Intel C++ for x86_64 which still supported -KPIC.
20106 lt_prog_compiler_wl_CXX='-Wl,'
20107 lt_prog_compiler_pic_CXX='-KPIC'
20108 lt_prog_compiler_static_CXX='-static'
20109 ;;
20110 icpc* )
20111 # Intel C++, used to be incompatible with GCC.
20112 # ICC 10 doesn't accept -KPIC any more.
20113 lt_prog_compiler_wl_CXX='-Wl,'
20114 lt_prog_compiler_pic_CXX='-fPIC'
20115 lt_prog_compiler_static_CXX='-static'
20116 ;;
20117 pgCC* | pgcpp*)
20118 # Portland Group C++ compiler
20119 lt_prog_compiler_wl_CXX='-Wl,'
20120 lt_prog_compiler_pic_CXX='-fpic'
20121 lt_prog_compiler_static_CXX='-Bstatic'
20122 ;;
20123 cxx*)
20124 # Compaq C++
20125 # Make sure the PIC flag is empty. It appears that all Alpha
20126 # Linux and Compaq Tru64 Unix objects are PIC.
20127 lt_prog_compiler_pic_CXX=
20128 lt_prog_compiler_static_CXX='-non_shared'
20129 ;;
20130 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20131 # IBM XL 8.0, 9.0 on PPC and BlueGene
20132 lt_prog_compiler_wl_CXX='-Wl,'
20133 lt_prog_compiler_pic_CXX='-qpic'
20134 lt_prog_compiler_static_CXX='-qstaticlink'
20135 ;;
20136 *)
20137 case `$CC -V 2>&1 | sed 5q` in
20138 *Sun\ C*)
20139 # Sun C++ 5.9
20140 lt_prog_compiler_pic_CXX='-KPIC'
20141 lt_prog_compiler_static_CXX='-Bstatic'
20142 lt_prog_compiler_wl_CXX='-Qoption ld '
20143 ;;
20144 esac
20145 ;;
20146 esac
20147 ;;
20148 lynxos*)
20149 ;;
20150 m88k*)
20151 ;;
20152 mvs*)
20153 case $cc_basename in
20154 cxx*)
20155 lt_prog_compiler_pic_CXX='-W c,exportall'
20156 ;;
20157 *)
20158 ;;
20159 esac
20160 ;;
20161 netbsd*)
20162 ;;
20163 *qnx* | *nto*)
20164 # QNX uses GNU C++, but need to define -shared option too, otherwise
20165 # it will coredump.
20166 lt_prog_compiler_pic_CXX='-fPIC -shared'
20167 ;;
20168 osf3* | osf4* | osf5*)
20169 case $cc_basename in
20170 KCC*)
20171 lt_prog_compiler_wl_CXX='--backend -Wl,'
20172 ;;
20173 RCC*)
20174 # Rational C++ 2.4.1
20175 lt_prog_compiler_pic_CXX='-pic'
20176 ;;
20177 cxx*)
20178 # Digital/Compaq C++
20179 lt_prog_compiler_wl_CXX='-Wl,'
20180 # Make sure the PIC flag is empty. It appears that all Alpha
20181 # Linux and Compaq Tru64 Unix objects are PIC.
20182 lt_prog_compiler_pic_CXX=
20183 lt_prog_compiler_static_CXX='-non_shared'
20184 ;;
20185 *)
20186 ;;
20187 esac
20188 ;;
20189 psos*)
20190 ;;
20191 solaris*)
20192 case $cc_basename in
20193 CC*)
20194 # Sun C++ 4.2, 5.x and Centerline C++
20195 lt_prog_compiler_pic_CXX='-KPIC'
20196 lt_prog_compiler_static_CXX='-Bstatic'
20197 lt_prog_compiler_wl_CXX='-Qoption ld '
20198 ;;
20199 gcx*)
20200 # Green Hills C++ Compiler
20201 lt_prog_compiler_pic_CXX='-PIC'
20202 ;;
20203 *)
20204 ;;
20205 esac
20206 ;;
20207 sunos4*)
20208 case $cc_basename in
20209 CC*)
20210 # Sun C++ 4.x
20211 lt_prog_compiler_pic_CXX='-pic'
20212 lt_prog_compiler_static_CXX='-Bstatic'
20213 ;;
20214 lcc*)
20215 # Lucid
20216 lt_prog_compiler_pic_CXX='-pic'
20217 ;;
20218 *)
20219 ;;
20220 esac
20221 ;;
20222 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20223 case $cc_basename in
20224 CC*)
20225 lt_prog_compiler_wl_CXX='-Wl,'
20226 lt_prog_compiler_pic_CXX='-KPIC'
20227 lt_prog_compiler_static_CXX='-Bstatic'
20228 ;;
20229 esac
20230 ;;
20231 tandem*)
20232 case $cc_basename in
20233 NCC*)
20234 # NonStop-UX NCC 3.20
20235 lt_prog_compiler_pic_CXX='-KPIC'
20236 ;;
20237 *)
20238 ;;
20239 esac
20240 ;;
20241 vxworks*)
20242 ;;
20243 *)
20244 lt_prog_compiler_can_build_shared_CXX=no
20245 ;;
20246 esac
20247 fi
20248
20249 case $host_os in
20250 # For platforms which do not support PIC, -DPIC is meaningless:
20251 *djgpp*)
20252 lt_prog_compiler_pic_CXX=
20253 ;;
20254 *)
20255 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20256 ;;
20257 esac
20258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20259 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20260
20261
20262
20263 #
20264 # Check to make sure the PIC flag actually works.
20265 #
20266 if test -n "$lt_prog_compiler_pic_CXX"; then
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20268 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20269 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20270 $as_echo_n "(cached) " >&6
20271 else
20272 lt_cv_prog_compiler_pic_works_CXX=no
20273 ac_outfile=conftest.$ac_objext
20274 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20275 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20276 # Insert the option either (1) after the last *FLAGS variable, or
20277 # (2) before a word containing "conftest.", or (3) at the end.
20278 # Note that $ac_compile itself does not contain backslashes and begins
20279 # with a dollar sign (not a hyphen), so the echo should work correctly.
20280 # The option is referenced via a variable to avoid confusing sed.
20281 lt_compile=`echo "$ac_compile" | $SED \
20282 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20283 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20284 -e 's:$: $lt_compiler_flag:'`
20285 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20286 (eval "$lt_compile" 2>conftest.err)
20287 ac_status=$?
20288 cat conftest.err >&5
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 if (exit $ac_status) && test -s "$ac_outfile"; then
20291 # The compiler can only warn and ignore the option if not recognized
20292 # So say no if there are warnings other than the usual output.
20293 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20294 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20295 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20296 lt_cv_prog_compiler_pic_works_CXX=yes
20297 fi
20298 fi
20299 $RM conftest*
20300
20301 fi
20302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20303 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20304
20305 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20306 case $lt_prog_compiler_pic_CXX in
20307 "" | " "*) ;;
20308 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20309 esac
20310 else
20311 lt_prog_compiler_pic_CXX=
20312 lt_prog_compiler_can_build_shared_CXX=no
20313 fi
20314
20315 fi
20316
20317
20318
20319 #
20320 # Check to make sure the static flag actually works.
20321 #
20322 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20324 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20325 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20326 $as_echo_n "(cached) " >&6
20327 else
20328 lt_cv_prog_compiler_static_works_CXX=no
20329 save_LDFLAGS="$LDFLAGS"
20330 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20331 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20332 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20333 # The linker can only warn and ignore the option if not recognized
20334 # So say no if there are warnings
20335 if test -s conftest.err; then
20336 # Append any errors to the config.log.
20337 cat conftest.err 1>&5
20338 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20339 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20340 if diff conftest.exp conftest.er2 >/dev/null; then
20341 lt_cv_prog_compiler_static_works_CXX=yes
20342 fi
20343 else
20344 lt_cv_prog_compiler_static_works_CXX=yes
20345 fi
20346 fi
20347 $RM -r conftest*
20348 LDFLAGS="$save_LDFLAGS"
20349
20350 fi
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20352 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20353
20354 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20355 :
20356 else
20357 lt_prog_compiler_static_CXX=
20358 fi
20359
20360
20361
20362
20363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20364 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20365 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20366 $as_echo_n "(cached) " >&6
20367 else
20368 lt_cv_prog_compiler_c_o_CXX=no
20369 $RM -r conftest 2>/dev/null
20370 mkdir conftest
20371 cd conftest
20372 mkdir out
20373 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20374
20375 lt_compiler_flag="-o out/conftest2.$ac_objext"
20376 # Insert the option either (1) after the last *FLAGS variable, or
20377 # (2) before a word containing "conftest.", or (3) at the end.
20378 # Note that $ac_compile itself does not contain backslashes and begins
20379 # with a dollar sign (not a hyphen), so the echo should work correctly.
20380 lt_compile=`echo "$ac_compile" | $SED \
20381 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20382 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20383 -e 's:$: $lt_compiler_flag:'`
20384 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20385 (eval "$lt_compile" 2>out/conftest.err)
20386 ac_status=$?
20387 cat out/conftest.err >&5
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20390 then
20391 # The compiler can only warn and ignore the option if not recognized
20392 # So say no if there are warnings
20393 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20394 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20395 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20396 lt_cv_prog_compiler_c_o_CXX=yes
20397 fi
20398 fi
20399 chmod u+w . 2>&5
20400 $RM conftest*
20401 # SGI C++ compiler will create directory out/ii_files/ for
20402 # template instantiation
20403 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20404 $RM out/* && rmdir out
20405 cd ..
20406 $RM -r conftest
20407 $RM conftest*
20408
20409 fi
20410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20411 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20412
20413
20414
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20416 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20417 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20418 $as_echo_n "(cached) " >&6
20419 else
20420 lt_cv_prog_compiler_c_o_CXX=no
20421 $RM -r conftest 2>/dev/null
20422 mkdir conftest
20423 cd conftest
20424 mkdir out
20425 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20426
20427 lt_compiler_flag="-o out/conftest2.$ac_objext"
20428 # Insert the option either (1) after the last *FLAGS variable, or
20429 # (2) before a word containing "conftest.", or (3) at the end.
20430 # Note that $ac_compile itself does not contain backslashes and begins
20431 # with a dollar sign (not a hyphen), so the echo should work correctly.
20432 lt_compile=`echo "$ac_compile" | $SED \
20433 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20434 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20435 -e 's:$: $lt_compiler_flag:'`
20436 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20437 (eval "$lt_compile" 2>out/conftest.err)
20438 ac_status=$?
20439 cat out/conftest.err >&5
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20442 then
20443 # The compiler can only warn and ignore the option if not recognized
20444 # So say no if there are warnings
20445 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20446 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20447 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20448 lt_cv_prog_compiler_c_o_CXX=yes
20449 fi
20450 fi
20451 chmod u+w . 2>&5
20452 $RM conftest*
20453 # SGI C++ compiler will create directory out/ii_files/ for
20454 # template instantiation
20455 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20456 $RM out/* && rmdir out
20457 cd ..
20458 $RM -r conftest
20459 $RM conftest*
20460
20461 fi
20462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20463 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20464
20465
20466
20467
20468 hard_links="nottested"
20469 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20470 # do not overwrite the value of need_locks provided by the user
20471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20472 $as_echo_n "checking if we can lock with hard links... " >&6; }
20473 hard_links=yes
20474 $RM conftest*
20475 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20476 touch conftest.a
20477 ln conftest.a conftest.b 2>&5 || hard_links=no
20478 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20480 $as_echo "$hard_links" >&6; }
20481 if test "$hard_links" = no; then
20482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20483 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20484 need_locks=warn
20485 fi
20486 else
20487 need_locks=no
20488 fi
20489
20490
20491
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20493 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20494
20495 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20496 case $host_os in
20497 aix[4-9]*)
20498 # If we're using GNU nm, then we don't want the "-C" option.
20499 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20500 # Also, AIX nm treats weak defined symbols like other global defined
20501 # symbols, whereas GNU nm marks them as "W".
20502 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20503 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'
20504 else
20505 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'
20506 fi
20507 ;;
20508 pw32*)
20509 export_symbols_cmds_CXX="$ltdll_cmds"
20510 ;;
20511 cygwin* | mingw* | cegcc*)
20512 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'
20513 ;;
20514 *)
20515 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20516 ;;
20517 esac
20518 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20519
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20521 $as_echo "$ld_shlibs_CXX" >&6; }
20522 test "$ld_shlibs_CXX" = no && can_build_shared=no
20523
20524 with_gnu_ld_CXX=$with_gnu_ld
20525
20526
20527
20528
20529
20530
20531 #
20532 # Do we need to explicitly link libc?
20533 #
20534 case "x$archive_cmds_need_lc_CXX" in
20535 x|xyes)
20536 # Assume -lc should be added
20537 archive_cmds_need_lc_CXX=yes
20538
20539 if test "$enable_shared" = yes && test "$GCC" = yes; then
20540 case $archive_cmds_CXX in
20541 *'~'*)
20542 # FIXME: we may have to deal with multi-command sequences.
20543 ;;
20544 '$CC '*)
20545 # Test whether the compiler implicitly links with -lc since on some
20546 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20547 # to ld, don't add -lc before -lgcc.
20548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20549 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20550 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20551 $as_echo_n "(cached) " >&6
20552 else
20553 $RM conftest*
20554 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20555
20556 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20557 (eval $ac_compile) 2>&5
20558 ac_status=$?
20559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20560 test $ac_status = 0; } 2>conftest.err; then
20561 soname=conftest
20562 lib=conftest
20563 libobjs=conftest.$ac_objext
20564 deplibs=
20565 wl=$lt_prog_compiler_wl_CXX
20566 pic_flag=$lt_prog_compiler_pic_CXX
20567 compiler_flags=-v
20568 linker_flags=-v
20569 verstring=
20570 output_objdir=.
20571 libname=conftest
20572 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20573 allow_undefined_flag_CXX=
20574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20575 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20576 ac_status=$?
20577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20578 test $ac_status = 0; }
20579 then
20580 lt_cv_archive_cmds_need_lc_CXX=no
20581 else
20582 lt_cv_archive_cmds_need_lc_CXX=yes
20583 fi
20584 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20585 else
20586 cat conftest.err 1>&5
20587 fi
20588 $RM conftest*
20589
20590 fi
20591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20592 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20593 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20594 ;;
20595 esac
20596 fi
20597 ;;
20598 esac
20599
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20664 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20665
20666 library_names_spec=
20667 libname_spec='lib$name'
20668 soname_spec=
20669 shrext_cmds=".so"
20670 postinstall_cmds=
20671 postuninstall_cmds=
20672 finish_cmds=
20673 finish_eval=
20674 shlibpath_var=
20675 shlibpath_overrides_runpath=unknown
20676 version_type=none
20677 dynamic_linker="$host_os ld.so"
20678 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20679 need_lib_prefix=unknown
20680 hardcode_into_libs=no
20681
20682 # when you set need_version to no, make sure it does not cause -set_version
20683 # flags to be left without arguments
20684 need_version=unknown
20685
20686 case $host_os in
20687 aix3*)
20688 version_type=linux
20689 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20690 shlibpath_var=LIBPATH
20691
20692 # AIX 3 has no versioning support, so we append a major version to the name.
20693 soname_spec='${libname}${release}${shared_ext}$major'
20694 ;;
20695
20696 aix[4-9]*)
20697 version_type=linux
20698 need_lib_prefix=no
20699 need_version=no
20700 hardcode_into_libs=yes
20701 if test "$host_cpu" = ia64; then
20702 # AIX 5 supports IA64
20703 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20704 shlibpath_var=LD_LIBRARY_PATH
20705 else
20706 # With GCC up to 2.95.x, collect2 would create an import file
20707 # for dependence libraries. The import file would start with
20708 # the line `#! .'. This would cause the generated library to
20709 # depend on `.', always an invalid library. This was fixed in
20710 # development snapshots of GCC prior to 3.0.
20711 case $host_os in
20712 aix4 | aix4.[01] | aix4.[01].*)
20713 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20714 echo ' yes '
20715 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20716 :
20717 else
20718 can_build_shared=no
20719 fi
20720 ;;
20721 esac
20722 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20723 # soname into executable. Probably we can add versioning support to
20724 # collect2, so additional links can be useful in future.
20725 if test "$aix_use_runtimelinking" = yes; then
20726 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20727 # instead of lib<name>.a to let people know that these are not
20728 # typical AIX shared libraries.
20729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20730 else
20731 # We preserve .a as extension for shared libraries through AIX4.2
20732 # and later when we are not doing run time linking.
20733 library_names_spec='${libname}${release}.a $libname.a'
20734 soname_spec='${libname}${release}${shared_ext}$major'
20735 fi
20736 shlibpath_var=LIBPATH
20737 fi
20738 ;;
20739
20740 amigaos*)
20741 case $host_cpu in
20742 powerpc)
20743 # Since July 2007 AmigaOS4 officially supports .so libraries.
20744 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20746 ;;
20747 m68k)
20748 library_names_spec='$libname.ixlibrary $libname.a'
20749 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20750 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'
20751 ;;
20752 esac
20753 ;;
20754
20755 beos*)
20756 library_names_spec='${libname}${shared_ext}'
20757 dynamic_linker="$host_os ld.so"
20758 shlibpath_var=LIBRARY_PATH
20759 ;;
20760
20761 bsdi[45]*)
20762 version_type=linux
20763 need_version=no
20764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20765 soname_spec='${libname}${release}${shared_ext}$major'
20766 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20767 shlibpath_var=LD_LIBRARY_PATH
20768 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20769 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20770 # the default ld.so.conf also contains /usr/contrib/lib and
20771 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20772 # libtool to hard-code these into programs
20773 ;;
20774
20775 cygwin* | mingw* | pw32* | cegcc*)
20776 version_type=windows
20777 shrext_cmds=".dll"
20778 need_version=no
20779 need_lib_prefix=no
20780
20781 case $GCC,$host_os in
20782 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20783 library_names_spec='$libname.dll.a'
20784 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20785 postinstall_cmds='base_file=`basename \${file}`~
20786 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20787 dldir=$destdir/`dirname \$dlpath`~
20788 test -d \$dldir || mkdir -p \$dldir~
20789 $install_prog $dir/$dlname \$dldir/$dlname~
20790 chmod a+x \$dldir/$dlname~
20791 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20792 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20793 fi'
20794 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20795 dlpath=$dir/\$dldll~
20796 $RM \$dlpath'
20797 shlibpath_overrides_runpath=yes
20798
20799 case $host_os in
20800 cygwin*)
20801 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20802 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20803
20804 ;;
20805 mingw* | cegcc*)
20806 # MinGW DLLs use traditional 'lib' prefix
20807 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20808 ;;
20809 pw32*)
20810 # pw32 DLLs use 'pw' prefix rather than 'lib'
20811 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20812 ;;
20813 esac
20814 ;;
20815
20816 *)
20817 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20818 ;;
20819 esac
20820 dynamic_linker='Win32 ld.exe'
20821 # FIXME: first we should search . and the directory the executable is in
20822 shlibpath_var=PATH
20823 ;;
20824
20825 darwin* | rhapsody*)
20826 dynamic_linker="$host_os dyld"
20827 version_type=darwin
20828 need_lib_prefix=no
20829 need_version=no
20830 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20831 soname_spec='${libname}${release}${major}$shared_ext'
20832 shlibpath_overrides_runpath=yes
20833 shlibpath_var=DYLD_LIBRARY_PATH
20834 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20835
20836 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20837 ;;
20838
20839 dgux*)
20840 version_type=linux
20841 need_lib_prefix=no
20842 need_version=no
20843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20844 soname_spec='${libname}${release}${shared_ext}$major'
20845 shlibpath_var=LD_LIBRARY_PATH
20846 ;;
20847
20848 freebsd* | dragonfly*)
20849 # DragonFly does not have aout. When/if they implement a new
20850 # versioning mechanism, adjust this.
20851 if test -x /usr/bin/objformat; then
20852 objformat=`/usr/bin/objformat`
20853 else
20854 case $host_os in
20855 freebsd[123]*) objformat=aout ;;
20856 *) objformat=elf ;;
20857 esac
20858 fi
20859 version_type=freebsd-$objformat
20860 case $version_type in
20861 freebsd-elf*)
20862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20863 need_version=no
20864 need_lib_prefix=no
20865 ;;
20866 freebsd-*)
20867 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20868 need_version=yes
20869 ;;
20870 esac
20871 shlibpath_var=LD_LIBRARY_PATH
20872 case $host_os in
20873 freebsd2*)
20874 shlibpath_overrides_runpath=yes
20875 ;;
20876 freebsd3.[01]* | freebsdelf3.[01]*)
20877 shlibpath_overrides_runpath=yes
20878 hardcode_into_libs=yes
20879 ;;
20880 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20881 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20882 shlibpath_overrides_runpath=no
20883 hardcode_into_libs=yes
20884 ;;
20885 *) # from 4.6 on, and DragonFly
20886 shlibpath_overrides_runpath=yes
20887 hardcode_into_libs=yes
20888 ;;
20889 esac
20890 ;;
20891
20892 gnu*)
20893 version_type=linux
20894 need_lib_prefix=no
20895 need_version=no
20896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20897 soname_spec='${libname}${release}${shared_ext}$major'
20898 shlibpath_var=LD_LIBRARY_PATH
20899 hardcode_into_libs=yes
20900 ;;
20901
20902 haiku*)
20903 version_type=linux
20904 need_lib_prefix=no
20905 need_version=no
20906 dynamic_linker="$host_os runtime_loader"
20907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20908 soname_spec='${libname}${release}${shared_ext}$major'
20909 shlibpath_var=LIBRARY_PATH
20910 shlibpath_overrides_runpath=yes
20911 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20912 hardcode_into_libs=yes
20913 ;;
20914
20915 hpux9* | hpux10* | hpux11*)
20916 # Give a soname corresponding to the major version so that dld.sl refuses to
20917 # link against other versions.
20918 version_type=sunos
20919 need_lib_prefix=no
20920 need_version=no
20921 case $host_cpu in
20922 ia64*)
20923 shrext_cmds='.so'
20924 hardcode_into_libs=yes
20925 dynamic_linker="$host_os dld.so"
20926 shlibpath_var=LD_LIBRARY_PATH
20927 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20929 soname_spec='${libname}${release}${shared_ext}$major'
20930 if test "X$HPUX_IA64_MODE" = X32; then
20931 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20932 else
20933 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20934 fi
20935 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20936 ;;
20937 hppa*64*)
20938 shrext_cmds='.sl'
20939 hardcode_into_libs=yes
20940 dynamic_linker="$host_os dld.sl"
20941 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20942 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20944 soname_spec='${libname}${release}${shared_ext}$major'
20945 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20946 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20947 ;;
20948 *)
20949 shrext_cmds='.sl'
20950 dynamic_linker="$host_os dld.sl"
20951 shlibpath_var=SHLIB_PATH
20952 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20954 soname_spec='${libname}${release}${shared_ext}$major'
20955 ;;
20956 esac
20957 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20958 postinstall_cmds='chmod 555 $lib'
20959 # or fails outright, so override atomically:
20960 install_override_mode=555
20961 ;;
20962
20963 interix[3-9]*)
20964 version_type=linux
20965 need_lib_prefix=no
20966 need_version=no
20967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20968 soname_spec='${libname}${release}${shared_ext}$major'
20969 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20970 shlibpath_var=LD_LIBRARY_PATH
20971 shlibpath_overrides_runpath=no
20972 hardcode_into_libs=yes
20973 ;;
20974
20975 irix5* | irix6* | nonstopux*)
20976 case $host_os in
20977 nonstopux*) version_type=nonstopux ;;
20978 *)
20979 if test "$lt_cv_prog_gnu_ld" = yes; then
20980 version_type=linux
20981 else
20982 version_type=irix
20983 fi ;;
20984 esac
20985 need_lib_prefix=no
20986 need_version=no
20987 soname_spec='${libname}${release}${shared_ext}$major'
20988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20989 case $host_os in
20990 irix5* | nonstopux*)
20991 libsuff= shlibsuff=
20992 ;;
20993 *)
20994 case $LD in # libtool.m4 will add one of these switches to LD
20995 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20996 libsuff= shlibsuff= libmagic=32-bit;;
20997 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20998 libsuff=32 shlibsuff=N32 libmagic=N32;;
20999 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21000 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21001 *) libsuff= shlibsuff= libmagic=never-match;;
21002 esac
21003 ;;
21004 esac
21005 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21006 shlibpath_overrides_runpath=no
21007 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21008 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21009 hardcode_into_libs=yes
21010 ;;
21011
21012 # No shared lib support for Linux oldld, aout, or coff.
21013 linux*oldld* | linux*aout* | linux*coff*)
21014 dynamic_linker=no
21015 ;;
21016
21017 # This must be Linux ELF.
21018 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21019 version_type=linux
21020 need_lib_prefix=no
21021 need_version=no
21022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21023 soname_spec='${libname}${release}${shared_ext}$major'
21024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21025 shlibpath_var=LD_LIBRARY_PATH
21026 shlibpath_overrides_runpath=no
21027
21028 # Some binutils ld are patched to set DT_RUNPATH
21029 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21030 $as_echo_n "(cached) " >&6
21031 else
21032 lt_cv_shlibpath_overrides_runpath=no
21033 save_LDFLAGS=$LDFLAGS
21034 save_libdir=$libdir
21035 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21036 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21038 /* end confdefs.h. */
21039
21040 int
21041 main ()
21042 {
21043
21044 ;
21045 return 0;
21046 }
21047 _ACEOF
21048 if ac_fn_cxx_try_link "$LINENO"; then :
21049 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21050 lt_cv_shlibpath_overrides_runpath=yes
21051 fi
21052 fi
21053 rm -f core conftest.err conftest.$ac_objext \
21054 conftest$ac_exeext conftest.$ac_ext
21055 LDFLAGS=$save_LDFLAGS
21056 libdir=$save_libdir
21057
21058 fi
21059
21060 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21061
21062 # This implies no fast_install, which is unacceptable.
21063 # Some rework will be needed to allow for fast_install
21064 # before this can be enabled.
21065 hardcode_into_libs=yes
21066
21067 # Append ld.so.conf contents to the search path
21068 if test -f /etc/ld.so.conf; then
21069 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' ' '`
21070 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21071 fi
21072
21073 # We used to test for /lib/ld.so.1 and disable shared libraries on
21074 # powerpc, because MkLinux only supported shared libraries with the
21075 # GNU dynamic linker. Since this was broken with cross compilers,
21076 # most powerpc-linux boxes support dynamic linking these days and
21077 # people can always --disable-shared, the test was removed, and we
21078 # assume the GNU/Linux dynamic linker is in use.
21079 dynamic_linker='GNU/Linux ld.so'
21080 ;;
21081
21082 netbsd*)
21083 version_type=sunos
21084 need_lib_prefix=no
21085 need_version=no
21086 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21088 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21089 dynamic_linker='NetBSD (a.out) ld.so'
21090 else
21091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21092 soname_spec='${libname}${release}${shared_ext}$major'
21093 dynamic_linker='NetBSD ld.elf_so'
21094 fi
21095 shlibpath_var=LD_LIBRARY_PATH
21096 shlibpath_overrides_runpath=yes
21097 hardcode_into_libs=yes
21098 ;;
21099
21100 newsos6)
21101 version_type=linux
21102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21103 shlibpath_var=LD_LIBRARY_PATH
21104 shlibpath_overrides_runpath=yes
21105 ;;
21106
21107 *nto* | *qnx*)
21108 version_type=qnx
21109 need_lib_prefix=no
21110 need_version=no
21111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21112 soname_spec='${libname}${release}${shared_ext}$major'
21113 shlibpath_var=LD_LIBRARY_PATH
21114 shlibpath_overrides_runpath=no
21115 hardcode_into_libs=yes
21116 dynamic_linker='ldqnx.so'
21117 ;;
21118
21119 openbsd*)
21120 version_type=sunos
21121 sys_lib_dlsearch_path_spec="/usr/lib"
21122 need_lib_prefix=no
21123 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21124 case $host_os in
21125 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21126 *) need_version=no ;;
21127 esac
21128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21129 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21130 shlibpath_var=LD_LIBRARY_PATH
21131 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21132 case $host_os in
21133 openbsd2.[89] | openbsd2.[89].*)
21134 shlibpath_overrides_runpath=no
21135 ;;
21136 *)
21137 shlibpath_overrides_runpath=yes
21138 ;;
21139 esac
21140 else
21141 shlibpath_overrides_runpath=yes
21142 fi
21143 ;;
21144
21145 os2*)
21146 libname_spec='$name'
21147 shrext_cmds=".dll"
21148 need_lib_prefix=no
21149 library_names_spec='$libname${shared_ext} $libname.a'
21150 dynamic_linker='OS/2 ld.exe'
21151 shlibpath_var=LIBPATH
21152 ;;
21153
21154 osf3* | osf4* | osf5*)
21155 version_type=osf
21156 need_lib_prefix=no
21157 need_version=no
21158 soname_spec='${libname}${release}${shared_ext}$major'
21159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21160 shlibpath_var=LD_LIBRARY_PATH
21161 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21162 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21163 ;;
21164
21165 rdos*)
21166 dynamic_linker=no
21167 ;;
21168
21169 solaris*)
21170 version_type=linux
21171 need_lib_prefix=no
21172 need_version=no
21173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21174 soname_spec='${libname}${release}${shared_ext}$major'
21175 shlibpath_var=LD_LIBRARY_PATH
21176 shlibpath_overrides_runpath=yes
21177 hardcode_into_libs=yes
21178 # ldd complains unless libraries are executable
21179 postinstall_cmds='chmod +x $lib'
21180 ;;
21181
21182 sunos4*)
21183 version_type=sunos
21184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21185 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21186 shlibpath_var=LD_LIBRARY_PATH
21187 shlibpath_overrides_runpath=yes
21188 if test "$with_gnu_ld" = yes; then
21189 need_lib_prefix=no
21190 fi
21191 need_version=yes
21192 ;;
21193
21194 sysv4 | sysv4.3*)
21195 version_type=linux
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 case $host_vendor in
21200 sni)
21201 shlibpath_overrides_runpath=no
21202 need_lib_prefix=no
21203 runpath_var=LD_RUN_PATH
21204 ;;
21205 siemens)
21206 need_lib_prefix=no
21207 ;;
21208 motorola)
21209 need_lib_prefix=no
21210 need_version=no
21211 shlibpath_overrides_runpath=no
21212 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21213 ;;
21214 esac
21215 ;;
21216
21217 sysv4*MP*)
21218 if test -d /usr/nec ;then
21219 version_type=linux
21220 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21221 soname_spec='$libname${shared_ext}.$major'
21222 shlibpath_var=LD_LIBRARY_PATH
21223 fi
21224 ;;
21225
21226 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21227 version_type=freebsd-elf
21228 need_lib_prefix=no
21229 need_version=no
21230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21231 soname_spec='${libname}${release}${shared_ext}$major'
21232 shlibpath_var=LD_LIBRARY_PATH
21233 shlibpath_overrides_runpath=yes
21234 hardcode_into_libs=yes
21235 if test "$with_gnu_ld" = yes; then
21236 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21237 else
21238 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21239 case $host_os in
21240 sco3.2v5*)
21241 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21242 ;;
21243 esac
21244 fi
21245 sys_lib_dlsearch_path_spec='/usr/lib'
21246 ;;
21247
21248 tpf*)
21249 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21250 version_type=linux
21251 need_lib_prefix=no
21252 need_version=no
21253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21254 shlibpath_var=LD_LIBRARY_PATH
21255 shlibpath_overrides_runpath=no
21256 hardcode_into_libs=yes
21257 ;;
21258
21259 uts4*)
21260 version_type=linux
21261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21262 soname_spec='${libname}${release}${shared_ext}$major'
21263 shlibpath_var=LD_LIBRARY_PATH
21264 ;;
21265
21266 *)
21267 dynamic_linker=no
21268 ;;
21269 esac
21270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21271 $as_echo "$dynamic_linker" >&6; }
21272 test "$dynamic_linker" = no && can_build_shared=no
21273
21274 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21275 if test "$GCC" = yes; then
21276 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21277 fi
21278
21279 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21280 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21281 fi
21282 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21283 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21284 fi
21285
21286
21287
21288
21289
21290
21291
21292
21293
21294
21295
21296
21297
21298
21299
21300
21301
21302
21303
21304
21305
21306
21307
21308
21309
21310
21311
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322
21323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21324 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21325 hardcode_action_CXX=
21326 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21327 test -n "$runpath_var_CXX" ||
21328 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21329
21330 # We can hardcode non-existent directories.
21331 if test "$hardcode_direct_CXX" != no &&
21332 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21333 # have to relink, otherwise we might link with an installed library
21334 # when we should be linking with a yet-to-be-installed one
21335 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21336 test "$hardcode_minus_L_CXX" != no; then
21337 # Linking always hardcodes the temporary library directory.
21338 hardcode_action_CXX=relink
21339 else
21340 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21341 hardcode_action_CXX=immediate
21342 fi
21343 else
21344 # We cannot hardcode anything, or else we can only hardcode existing
21345 # directories.
21346 hardcode_action_CXX=unsupported
21347 fi
21348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21349 $as_echo "$hardcode_action_CXX" >&6; }
21350
21351 if test "$hardcode_action_CXX" = relink ||
21352 test "$inherit_rpath_CXX" = yes; then
21353 # Fast installation is not supported
21354 enable_fast_install=no
21355 elif test "$shlibpath_overrides_runpath" = yes ||
21356 test "$enable_shared" = no; then
21357 # Fast installation is not necessary
21358 enable_fast_install=needless
21359 fi
21360
21361
21362
21363
21364
21365
21366
21367 fi # test -n "$compiler"
21368
21369 CC=$lt_save_CC
21370 LDCXX=$LD
21371 LD=$lt_save_LD
21372 GCC=$lt_save_GCC
21373 with_gnu_ld=$lt_save_with_gnu_ld
21374 lt_cv_path_LDCXX=$lt_cv_path_LD
21375 lt_cv_path_LD=$lt_save_path_LD
21376 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21377 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21378 fi # test "$_lt_caught_CXX_error" != yes
21379
21380 ac_ext=c
21381 ac_cpp='$CPP $CPPFLAGS'
21382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21385
21386
21387
21388
21389
21390
21391
21392
21393
21394
21395
21396
21397
21398
21399
21400
21401 # Only expand once:
21402
21403
21404
21405
21406
21407 # Identify the assembler which will work hand-in-glove with the newly
21408 # built GCC, so that we can examine its features. This is the assembler
21409 # which will be driven by the driver program.
21410 #
21411 # If build != host, and we aren't building gas in-tree, we identify a
21412 # build->target assembler and hope that it will have the same features
21413 # as the host->target assembler we'll be using.
21414 gcc_cv_gas_major_version=
21415 gcc_cv_gas_minor_version=
21416 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21417
21418 if test "${gcc_cv_as+set}" = set; then :
21419
21420 else
21421
21422 if test -x "$DEFAULT_ASSEMBLER"; then
21423 gcc_cv_as="$DEFAULT_ASSEMBLER"
21424 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21425 && test -f ../gas/Makefile \
21426 && test x$build = x$host; then
21427 gcc_cv_as=../gas/as-new$build_exeext
21428 elif test -x as$build_exeext; then
21429 # Build using assembler in the current directory.
21430 gcc_cv_as=./as$build_exeext
21431 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21432 gcc_cv_as="$AS_FOR_TARGET"
21433 else
21434 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21435 set dummy $AS_FOR_TARGET; ac_word=$2
21436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21437 $as_echo_n "checking for $ac_word... " >&6; }
21438 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21439 $as_echo_n "(cached) " >&6
21440 else
21441 case $gcc_cv_as in
21442 [\\/]* | ?:[\\/]*)
21443 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21444 ;;
21445 *)
21446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21447 for as_dir in $PATH
21448 do
21449 IFS=$as_save_IFS
21450 test -z "$as_dir" && as_dir=.
21451 for ac_exec_ext in '' $ac_executable_extensions; do
21452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21453 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21455 break 2
21456 fi
21457 done
21458 done
21459 IFS=$as_save_IFS
21460
21461 ;;
21462 esac
21463 fi
21464 gcc_cv_as=$ac_cv_path_gcc_cv_as
21465 if test -n "$gcc_cv_as"; then
21466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21467 $as_echo "$gcc_cv_as" >&6; }
21468 else
21469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21470 $as_echo "no" >&6; }
21471 fi
21472
21473
21474 fi
21475 fi
21476
21477 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21478
21479 case "$ORIGINAL_AS_FOR_TARGET" in
21480 ./as | ./as$build_exeext) ;;
21481 *) ac_config_files="$ac_config_files as:exec-tool.in"
21482 ;;
21483 esac
21484
21485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21486 $as_echo_n "checking what assembler to use... " >&6; }
21487 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21488 # Single tree build which includes gas. We want to prefer it
21489 # over whatever linker top-level may have detected, since
21490 # we'll use what we're building after installation anyway.
21491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21492 $as_echo "newly built gas" >&6; }
21493 in_tree_gas=yes
21494 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21495 for f in $gcc_cv_as_bfd_srcdir/configure \
21496 $gcc_cv_as_gas_srcdir/configure \
21497 $gcc_cv_as_gas_srcdir/configure.in \
21498 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21499 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21500 if test x$gcc_cv_gas_version != x; then
21501 break
21502 fi
21503 done
21504 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21505 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21506 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21507 case $gcc_cv_gas_patch_version in
21508 "") gcc_cv_gas_patch_version="0" ;;
21509 esac
21510 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21511 + $gcc_cv_gas_minor_version \) \* 1000 \
21512 + $gcc_cv_gas_patch_version`
21513
21514 in_tree_gas_is_elf=no
21515 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21516 || (grep 'obj_format = multi' ../gas/Makefile \
21517 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21518 then
21519 in_tree_gas_is_elf=yes
21520 fi
21521 else
21522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21523 $as_echo "$gcc_cv_as" >&6; }
21524 in_tree_gas=no
21525 fi
21526
21527 # Identify the linker which will work hand-in-glove with the newly
21528 # built GCC, so that we can examine its features. This is the linker
21529 # which will be driven by the driver program.
21530 #
21531 # If build != host, and we aren't building gas in-tree, we identify a
21532 # build->target linker and hope that it will have the same features
21533 # as the host->target linker we'll be using.
21534 gcc_cv_gld_major_version=
21535 gcc_cv_gld_minor_version=
21536 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21537 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21538
21539 if test "${gcc_cv_ld+set}" = set; then :
21540
21541 else
21542
21543 if test -x "$DEFAULT_LINKER"; then
21544 gcc_cv_ld="$DEFAULT_LINKER"
21545 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21546 && test -f ../ld/Makefile \
21547 && test x$build = x$host; then
21548 gcc_cv_ld=../ld/ld-new$build_exeext
21549 elif test -x collect-ld$build_exeext; then
21550 # Build using linker in the current directory.
21551 gcc_cv_ld=./collect-ld$build_exeext
21552 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21553 gcc_cv_ld="$LD_FOR_TARGET"
21554 else
21555 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21556 set dummy $LD_FOR_TARGET; ac_word=$2
21557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21558 $as_echo_n "checking for $ac_word... " >&6; }
21559 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21560 $as_echo_n "(cached) " >&6
21561 else
21562 case $gcc_cv_ld in
21563 [\\/]* | ?:[\\/]*)
21564 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21565 ;;
21566 *)
21567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21568 for as_dir in $PATH
21569 do
21570 IFS=$as_save_IFS
21571 test -z "$as_dir" && as_dir=.
21572 for ac_exec_ext in '' $ac_executable_extensions; do
21573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21574 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21576 break 2
21577 fi
21578 done
21579 done
21580 IFS=$as_save_IFS
21581
21582 ;;
21583 esac
21584 fi
21585 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21586 if test -n "$gcc_cv_ld"; then
21587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21588 $as_echo "$gcc_cv_ld" >&6; }
21589 else
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21591 $as_echo "no" >&6; }
21592 fi
21593
21594
21595 fi
21596 fi
21597
21598 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21599 PLUGIN_LD=`basename $gcc_cv_ld`
21600
21601 # Check whether --with-plugin-ld was given.
21602 if test "${with_plugin_ld+set}" = set; then :
21603 withval=$with_plugin_ld; if test x"$withval" != x; then
21604 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21605 PLUGIN_LD="$withval"
21606 fi
21607 fi
21608
21609
21610
21611 cat >>confdefs.h <<_ACEOF
21612 #define PLUGIN_LD "$PLUGIN_LD"
21613 _ACEOF
21614
21615
21616 # Check to see if we are using gold instead of ld
21617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21618 $as_echo_n "checking whether we are using gold... " >&6; }
21619 ld_is_gold=no
21620 if test x$gcc_cv_ld != x; then
21621 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21622 | grep "GNU gold" > /dev/null; then
21623 ld_is_gold=yes
21624 fi
21625 fi
21626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21627 $as_echo "$ld_is_gold" >&6; }
21628
21629 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21630
21631 case "$ORIGINAL_LD_FOR_TARGET" in
21632 ./collect-ld | ./collect-ld$build_exeext) ;;
21633 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21634 ;;
21635 esac
21636
21637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21638 $as_echo_n "checking what linker to use... " >&6; }
21639 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21640 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21641 # Single tree build which includes ld. We want to prefer it
21642 # over whatever linker top-level may have detected, since
21643 # we'll use what we're building after installation anyway.
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21645 $as_echo "newly built ld" >&6; }
21646 in_tree_ld=yes
21647 in_tree_ld_is_elf=no
21648 if (grep 'EMUL = .*elf' ../ld/Makefile \
21649 || grep 'EMUL = .*linux' ../ld/Makefile \
21650 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21651 in_tree_ld_is_elf=yes
21652 elif test "$ld_is_gold" = yes; then
21653 in_tree_ld_is_elf=yes
21654 fi
21655 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
21656 do
21657 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21658 if test x$gcc_cv_gld_version != x; then
21659 break
21660 fi
21661 done
21662 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21663 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21664 else
21665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21666 $as_echo "$gcc_cv_ld" >&6; }
21667 in_tree_ld=no
21668 fi
21669
21670 # Figure out what nm we will be using.
21671 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21672 if test "${gcc_cv_nm+set}" = set; then :
21673
21674 else
21675
21676 if test -f $gcc_cv_binutils_srcdir/configure.in \
21677 && test -f ../binutils/Makefile \
21678 && test x$build = x$host; then
21679 gcc_cv_nm=../binutils/nm-new$build_exeext
21680 elif test -x nm$build_exeext; then
21681 gcc_cv_nm=./nm$build_exeext
21682 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21683 gcc_cv_nm="$NM_FOR_TARGET"
21684 else
21685 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21686 set dummy $NM_FOR_TARGET; ac_word=$2
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21688 $as_echo_n "checking for $ac_word... " >&6; }
21689 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21690 $as_echo_n "(cached) " >&6
21691 else
21692 case $gcc_cv_nm in
21693 [\\/]* | ?:[\\/]*)
21694 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21695 ;;
21696 *)
21697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21698 for as_dir in $PATH
21699 do
21700 IFS=$as_save_IFS
21701 test -z "$as_dir" && as_dir=.
21702 for ac_exec_ext in '' $ac_executable_extensions; do
21703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21704 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21706 break 2
21707 fi
21708 done
21709 done
21710 IFS=$as_save_IFS
21711
21712 ;;
21713 esac
21714 fi
21715 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21716 if test -n "$gcc_cv_nm"; then
21717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21718 $as_echo "$gcc_cv_nm" >&6; }
21719 else
21720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21721 $as_echo "no" >&6; }
21722 fi
21723
21724
21725 fi
21726 fi
21727
21728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21729 $as_echo_n "checking what nm to use... " >&6; }
21730 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21731 # Single tree build which includes binutils.
21732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21733 $as_echo "newly built nm" >&6; }
21734 in_tree_nm=yes
21735 else
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21737 $as_echo "$gcc_cv_nm" >&6; }
21738 in_tree_nm=no
21739 fi
21740
21741 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21742
21743 case "$ORIGINAL_NM_FOR_TARGET" in
21744 ./nm | ./nm$build_exeext) ;;
21745 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21746 ;;
21747 esac
21748
21749
21750 # Figure out what objdump we will be using.
21751 if test "${gcc_cv_objdump+set}" = set; then :
21752
21753 else
21754
21755 if test -f $gcc_cv_binutils_srcdir/configure.in \
21756 && test -f ../binutils/Makefile \
21757 && test x$build = x$host; then
21758 # Single tree build which includes binutils.
21759 gcc_cv_objdump=../binutils/objdump$build_exeext
21760 elif test -x objdump$build_exeext; then
21761 gcc_cv_objdump=./objdump$build_exeext
21762 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21763 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21764 else
21765 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21766 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21768 $as_echo_n "checking for $ac_word... " >&6; }
21769 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21770 $as_echo_n "(cached) " >&6
21771 else
21772 case $gcc_cv_objdump in
21773 [\\/]* | ?:[\\/]*)
21774 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21775 ;;
21776 *)
21777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21778 for as_dir in $PATH
21779 do
21780 IFS=$as_save_IFS
21781 test -z "$as_dir" && as_dir=.
21782 for ac_exec_ext in '' $ac_executable_extensions; do
21783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21784 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21786 break 2
21787 fi
21788 done
21789 done
21790 IFS=$as_save_IFS
21791
21792 ;;
21793 esac
21794 fi
21795 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21796 if test -n "$gcc_cv_objdump"; then
21797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21798 $as_echo "$gcc_cv_objdump" >&6; }
21799 else
21800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21801 $as_echo "no" >&6; }
21802 fi
21803
21804
21805 fi
21806 fi
21807
21808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21809 $as_echo_n "checking what objdump to use... " >&6; }
21810 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21811 # Single tree build which includes binutils.
21812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21813 $as_echo "newly built objdump" >&6; }
21814 elif test x$gcc_cv_objdump = x; then
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21816 $as_echo "not found" >&6; }
21817 else
21818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21819 $as_echo "$gcc_cv_objdump" >&6; }
21820 fi
21821
21822 # Figure out what readelf we will be using.
21823 if test "${gcc_cv_readelf+set}" = set; then :
21824
21825 else
21826
21827 if test -f $gcc_cv_binutils_srcdir/configure.in \
21828 && test -f ../binutils/Makefile \
21829 && test x$build = x$host; then
21830 # Single tree build which includes binutils.
21831 gcc_cv_readelf=../binutils/readelf$build_exeext
21832 elif test -x readelf$build_exeext; then
21833 gcc_cv_readelf=./readelf$build_exeext
21834 else
21835 # Extract the first word of "readelf", so it can be a program name with args.
21836 set dummy readelf; ac_word=$2
21837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21838 $as_echo_n "checking for $ac_word... " >&6; }
21839 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21840 $as_echo_n "(cached) " >&6
21841 else
21842 case $gcc_cv_readelf in
21843 [\\/]* | ?:[\\/]*)
21844 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21845 ;;
21846 *)
21847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21848 for as_dir in $PATH
21849 do
21850 IFS=$as_save_IFS
21851 test -z "$as_dir" && as_dir=.
21852 for ac_exec_ext in '' $ac_executable_extensions; do
21853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21854 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21856 break 2
21857 fi
21858 done
21859 done
21860 IFS=$as_save_IFS
21861
21862 ;;
21863 esac
21864 fi
21865 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21866 if test -n "$gcc_cv_readelf"; then
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21868 $as_echo "$gcc_cv_readelf" >&6; }
21869 else
21870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21871 $as_echo "no" >&6; }
21872 fi
21873
21874
21875 fi
21876 fi
21877
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21879 $as_echo_n "checking what readelf to use... " >&6; }
21880 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21881 # Single tree build which includes binutils.
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21883 $as_echo "newly built readelf" >&6; }
21884 elif test x$gcc_cv_readelf = x; then
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21886 $as_echo "not found" >&6; }
21887 else
21888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21889 $as_echo "$gcc_cv_readelf" >&6; }
21890 fi
21891
21892 # Figure out what assembler alignment features are present.
21893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21894 $as_echo_n "checking assembler flags... " >&6; }
21895 if test "${gcc_cv_as_flags+set}" = set; then :
21896 $as_echo_n "(cached) " >&6
21897 else
21898 case "$target" in
21899 i[34567]86-*-linux*)
21900 gcc_cv_as_flags="--32"
21901 ;;
21902 powerpc*-*-darwin*)
21903 gcc_cv_as_flags="-arch ppc"
21904 ;;
21905 *)
21906 gcc_cv_as_flags=" "
21907 ;;
21908 esac
21909 fi
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21911 $as_echo "$gcc_cv_as_flags" >&6; }
21912
21913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21914 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21915 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21916 $as_echo_n "(cached) " >&6
21917 else
21918 gcc_cv_as_balign_and_p2align=no
21919 if test $in_tree_gas = yes; then
21920 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21921 then gcc_cv_as_balign_and_p2align=yes
21922 fi
21923 elif test x$gcc_cv_as != x; then
21924 $as_echo '.balign 4
21925 .p2align 2' > conftest.s
21926 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21928 (eval $ac_try) 2>&5
21929 ac_status=$?
21930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21931 test $ac_status = 0; }; }
21932 then
21933 gcc_cv_as_balign_and_p2align=yes
21934 else
21935 echo "configure: failed program was" >&5
21936 cat conftest.s >&5
21937 fi
21938 rm -f conftest.o conftest.s
21939 fi
21940 fi
21941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21942 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21943 if test $gcc_cv_as_balign_and_p2align = yes; then
21944
21945 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21946
21947 fi
21948
21949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21950 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21951 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21952 $as_echo_n "(cached) " >&6
21953 else
21954 gcc_cv_as_max_skip_p2align=no
21955 if test $in_tree_gas = yes; then
21956 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21957 then gcc_cv_as_max_skip_p2align=yes
21958 fi
21959 elif test x$gcc_cv_as != x; then
21960 $as_echo '.p2align 4,,7' > conftest.s
21961 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21963 (eval $ac_try) 2>&5
21964 ac_status=$?
21965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21966 test $ac_status = 0; }; }
21967 then
21968 gcc_cv_as_max_skip_p2align=yes
21969 else
21970 echo "configure: failed program was" >&5
21971 cat conftest.s >&5
21972 fi
21973 rm -f conftest.o conftest.s
21974 fi
21975 fi
21976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21977 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21978 if test $gcc_cv_as_max_skip_p2align = yes; then
21979
21980 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21981
21982 fi
21983
21984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21985 $as_echo_n "checking assembler for .literal16... " >&6; }
21986 if test "${gcc_cv_as_literal16+set}" = set; then :
21987 $as_echo_n "(cached) " >&6
21988 else
21989 gcc_cv_as_literal16=no
21990 if test $in_tree_gas = yes; then
21991 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21992 then gcc_cv_as_literal16=yes
21993 fi
21994 elif test x$gcc_cv_as != x; then
21995 $as_echo '.literal16' > conftest.s
21996 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21998 (eval $ac_try) 2>&5
21999 ac_status=$?
22000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22001 test $ac_status = 0; }; }
22002 then
22003 gcc_cv_as_literal16=yes
22004 else
22005 echo "configure: failed program was" >&5
22006 cat conftest.s >&5
22007 fi
22008 rm -f conftest.o conftest.s
22009 fi
22010 fi
22011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22012 $as_echo "$gcc_cv_as_literal16" >&6; }
22013 if test $gcc_cv_as_literal16 = yes; then
22014
22015 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22016
22017 fi
22018
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22020 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22021 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22022 $as_echo_n "(cached) " >&6
22023 else
22024 gcc_cv_as_subsection_m1=no
22025 if test $in_tree_gas = yes; then
22026 if test $in_tree_gas_is_elf = yes \
22027 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22028 then gcc_cv_as_subsection_m1=yes
22029 fi
22030 elif test x$gcc_cv_as != x; then
22031 $as_echo 'conftest_label1: .word 0
22032 .subsection -1
22033 conftest_label2: .word 0
22034 .previous' > conftest.s
22035 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22037 (eval $ac_try) 2>&5
22038 ac_status=$?
22039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22040 test $ac_status = 0; }; }
22041 then
22042 if test x$gcc_cv_nm != x; then
22043 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22044 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22045 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22046 then :
22047 else gcc_cv_as_subsection_m1=yes
22048 fi
22049 rm -f conftest.nm1 conftest.nm2
22050 fi
22051 else
22052 echo "configure: failed program was" >&5
22053 cat conftest.s >&5
22054 fi
22055 rm -f conftest.o conftest.s
22056 fi
22057 fi
22058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22059 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22060 if test $gcc_cv_as_subsection_m1 = yes; then
22061
22062 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22063
22064 fi
22065
22066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22067 $as_echo_n "checking assembler for .weak... " >&6; }
22068 if test "${gcc_cv_as_weak+set}" = set; then :
22069 $as_echo_n "(cached) " >&6
22070 else
22071 gcc_cv_as_weak=no
22072 if test $in_tree_gas = yes; then
22073 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22074 then gcc_cv_as_weak=yes
22075 fi
22076 elif test x$gcc_cv_as != x; then
22077 $as_echo ' .weak foobar' > conftest.s
22078 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22080 (eval $ac_try) 2>&5
22081 ac_status=$?
22082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22083 test $ac_status = 0; }; }
22084 then
22085 gcc_cv_as_weak=yes
22086 else
22087 echo "configure: failed program was" >&5
22088 cat conftest.s >&5
22089 fi
22090 rm -f conftest.o conftest.s
22091 fi
22092 fi
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22094 $as_echo "$gcc_cv_as_weak" >&6; }
22095 if test $gcc_cv_as_weak = yes; then
22096
22097 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22098
22099 fi
22100
22101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22102 $as_echo_n "checking assembler for .weakref... " >&6; }
22103 if test "${gcc_cv_as_weakref+set}" = set; then :
22104 $as_echo_n "(cached) " >&6
22105 else
22106 gcc_cv_as_weakref=no
22107 if test $in_tree_gas = yes; then
22108 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22109 then gcc_cv_as_weakref=yes
22110 fi
22111 elif test x$gcc_cv_as != x; then
22112 $as_echo ' .weakref foobar, barfnot' > conftest.s
22113 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22115 (eval $ac_try) 2>&5
22116 ac_status=$?
22117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22118 test $ac_status = 0; }; }
22119 then
22120 gcc_cv_as_weakref=yes
22121 else
22122 echo "configure: failed program was" >&5
22123 cat conftest.s >&5
22124 fi
22125 rm -f conftest.o conftest.s
22126 fi
22127 fi
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22129 $as_echo "$gcc_cv_as_weakref" >&6; }
22130 if test $gcc_cv_as_weakref = yes; then
22131
22132 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22133
22134 fi
22135
22136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22137 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22138 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22139 $as_echo_n "(cached) " >&6
22140 else
22141 gcc_cv_as_nsubspa_comdat=no
22142 if test $in_tree_gas = yes; then
22143 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22144 then gcc_cv_as_nsubspa_comdat=yes
22145 fi
22146 elif test x$gcc_cv_as != x; then
22147 $as_echo ' .SPACE $TEXT$
22148 .NSUBSPA $CODE$,COMDAT' > conftest.s
22149 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22151 (eval $ac_try) 2>&5
22152 ac_status=$?
22153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22154 test $ac_status = 0; }; }
22155 then
22156 gcc_cv_as_nsubspa_comdat=yes
22157 else
22158 echo "configure: failed program was" >&5
22159 cat conftest.s >&5
22160 fi
22161 rm -f conftest.o conftest.s
22162 fi
22163 fi
22164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22165 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22166 if test $gcc_cv_as_nsubspa_comdat = yes; then
22167
22168 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22169
22170 fi
22171
22172 # .hidden needs to be supported in both the assembler and the linker,
22173 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22174 # This is irritatingly difficult to feature test for; we have to check the
22175 # date string after the version number. If we've got an in-tree
22176 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22177 # to be safe.
22178 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22180 $as_echo_n "checking assembler for .hidden... " >&6; }
22181 if test "${gcc_cv_as_hidden+set}" = set; then :
22182 $as_echo_n "(cached) " >&6
22183 else
22184 gcc_cv_as_hidden=no
22185 if test $in_tree_gas = yes; then
22186 if test $in_tree_gas_is_elf = yes \
22187 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22188 then gcc_cv_as_hidden=yes
22189 fi
22190 elif test x$gcc_cv_as != x; then
22191 $as_echo ' .hidden foobar
22192 foobar:' > conftest.s
22193 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22195 (eval $ac_try) 2>&5
22196 ac_status=$?
22197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22198 test $ac_status = 0; }; }
22199 then
22200
22201 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22202 # STV_HIDDEN, so disable .hidden support if so.
22203 case "${target}" in
22204 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22205 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22206 cat > conftest.s <<EOF
22207 .globl hidden
22208 .hidden hidden
22209 hidden:
22210 .globl default
22211 .set default,hidden
22212 EOF
22213 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22214 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22215 grep '\.hidden default' > /dev/null; then
22216 gcc_cv_as_hidden=no
22217 else
22218 gcc_cv_as_hidden=yes
22219 fi
22220 else
22221 # Assume bug is present if objdump is missing.
22222 gcc_cv_as_hidden=no
22223 fi
22224 ;;
22225 *)
22226 gcc_cv_as_hidden=yes
22227 ;;
22228 esac
22229 else
22230 echo "configure: failed program was" >&5
22231 cat conftest.s >&5
22232 fi
22233 rm -f conftest.o conftest.s
22234 fi
22235 fi
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22237 $as_echo "$gcc_cv_as_hidden" >&6; }
22238
22239 case "${target}" in
22240 *-*-darwin*)
22241 # Darwin as has some visibility support, though with a different syntax.
22242 gcc_cv_as_hidden=yes
22243 ;;
22244 esac
22245
22246 # gnu_indirect_function type is an extension proposed at
22247 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22248 # selection of function implementation
22249 # Check whether --enable-gnu-indirect-function was given.
22250 if test "${enable_gnu_indirect_function+set}" = set; then :
22251 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22252 yes | no) ;;
22253 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22254 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22255 esac
22256 else
22257 enable_gnu_indirect_function="$default_gnu_indirect_function"
22258 fi
22259
22260 if test x$enable_gnu_indirect_function = xyes; then
22261
22262 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22263
22264 fi
22265
22266 if test $in_tree_ld != yes ; then
22267 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22268 if echo "$ld_ver" | grep GNU > /dev/null; then
22269 if test x"$ld_is_gold" = xyes; then
22270 # GNU gold --version looks like this:
22271 #
22272 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22273 #
22274 # We extract the binutils version which is more familiar and specific
22275 # than the gold version.
22276 ld_vers=`echo $ld_ver | sed -n \
22277 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22278 else
22279 # GNU ld --version looks like this:
22280 #
22281 # GNU ld (GNU Binutils) 2.21.51.20110225
22282 ld_vers=`echo $ld_ver | sed -n \
22283 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22284 fi
22285 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'`
22286 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22287 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22288 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22289 else
22290 case "${target}" in
22291 *-*-solaris2*)
22292 #
22293 # Solaris 2 ld -V output looks like this for a regular version:
22294 #
22295 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22296 #
22297 # but test versions add stuff at the end:
22298 #
22299 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22300 #
22301 ld_ver=`$gcc_cv_ld -V 2>&1`
22302 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22303 ld_vers=`echo $ld_ver | sed -n \
22304 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22305 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22306 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22307 fi
22308 ;;
22309 esac
22310 fi
22311 fi
22312
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22314 $as_echo_n "checking linker for .hidden support... " >&6; }
22315 if test "${gcc_cv_ld_hidden+set}" = set; then :
22316 $as_echo_n "(cached) " >&6
22317 else
22318 if test $in_tree_ld = yes ; then
22319 gcc_cv_ld_hidden=no
22320 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 \
22321 && test $in_tree_ld_is_elf = yes; then
22322 gcc_cv_ld_hidden=yes
22323 fi
22324 else
22325 gcc_cv_ld_hidden=yes
22326 if test x"$ld_is_gold" = xyes; then
22327 :
22328 elif echo "$ld_ver" | grep GNU > /dev/null; then
22329 if test 0"$ld_date" -lt 20020404; then
22330 if test -n "$ld_date"; then
22331 # If there was date string, but was earlier than 2002-04-04, fail
22332 gcc_cv_ld_hidden=no
22333 elif test -z "$ld_vers"; then
22334 # If there was no date string nor ld version number, something is wrong
22335 gcc_cv_ld_hidden=no
22336 else
22337 test -z "$ld_vers_patch" && ld_vers_patch=0
22338 if test "$ld_vers_major" -lt 2; then
22339 gcc_cv_ld_hidden=no
22340 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22341 gcc_cv_ld_hidden="no"
22342 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22343 gcc_cv_ld_hidden=no
22344 fi
22345 fi
22346 fi
22347 else
22348 case "${target}" in
22349 *-*-darwin*)
22350 # Darwin ld has some visibility support.
22351 gcc_cv_ld_hidden=yes
22352 ;;
22353 hppa64*-*-hpux* | ia64*-*-hpux*)
22354 gcc_cv_ld_hidden=yes
22355 ;;
22356 *-*-solaris2.8*)
22357 # .hidden support was backported to Solaris 8, starting with ld
22358 # version 1.276.
22359 if test "$ld_vers_minor" -ge 276; then
22360 gcc_cv_ld_hidden=yes
22361 else
22362 gcc_cv_ld_hidden=no
22363 fi
22364 ;;
22365 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22366 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22367 # .symbolic was only added in Solaris 9 12/02.
22368 gcc_cv_ld_hidden=yes
22369 ;;
22370 *)
22371 gcc_cv_ld_hidden=no
22372 ;;
22373 esac
22374 fi
22375 fi
22376 fi
22377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22378 $as_echo "$gcc_cv_ld_hidden" >&6; }
22379 libgcc_visibility=no
22380
22381
22382 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22383 libgcc_visibility=yes
22384
22385 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22386
22387 fi
22388
22389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22390 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22391 gcc_cv_ld_ro_rw_mix=unknown
22392 if test $in_tree_ld = yes ; then
22393 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 \
22394 && test $in_tree_ld_is_elf = yes; then
22395 gcc_cv_ld_ro_rw_mix=read-write
22396 fi
22397 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22398 echo '.section myfoosect, "a"' > conftest1.s
22399 echo '.section myfoosect, "aw"' > conftest2.s
22400 echo '.byte 1' >> conftest2.s
22401 echo '.section myfoosect, "a"' > conftest3.s
22402 echo '.byte 0' >> conftest3.s
22403 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22404 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22405 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22406 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22407 conftest2.o conftest3.o > /dev/null 2>&1; then
22408 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22409 | sed -e '/myfoosect/!d' -e N`
22410 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22411 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22412 gcc_cv_ld_ro_rw_mix=read-only
22413 else
22414 gcc_cv_ld_ro_rw_mix=read-write
22415 fi
22416 fi
22417 fi
22418 rm -f conftest.* conftest[123].*
22419 fi
22420 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22421
22422 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22423
22424 fi
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22426 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22427
22428 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22430 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22431 if test "${gcc_cv_as_leb128+set}" = set; then :
22432 $as_echo_n "(cached) " >&6
22433 else
22434 gcc_cv_as_leb128=no
22435 if test $in_tree_gas = yes; then
22436 if test $in_tree_gas_is_elf = yes \
22437 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22438 then gcc_cv_as_leb128=yes
22439 fi
22440 elif test x$gcc_cv_as != x; then
22441 $as_echo ' .data
22442 .uleb128 L2 - L1
22443 L1:
22444 .uleb128 1280
22445 .sleb128 -1010
22446 L2:' > conftest.s
22447 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22449 (eval $ac_try) 2>&5
22450 ac_status=$?
22451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22452 test $ac_status = 0; }; }
22453 then
22454 # GAS versions before 2.11 do not support uleb128,
22455 # despite appearing to.
22456 # ??? There exists an elf-specific test that will crash
22457 # the assembler. Perhaps it's better to figure out whether
22458 # arbitrary sections are supported and try the test.
22459 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22460 if echo "$as_ver" | grep GNU > /dev/null; then
22461 as_vers=`echo $as_ver | sed -n \
22462 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22463 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22464 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22465 if test $as_major -eq 2 && test $as_minor -lt 11
22466 then :
22467 else gcc_cv_as_leb128=yes
22468 fi
22469 fi
22470 else
22471 echo "configure: failed program was" >&5
22472 cat conftest.s >&5
22473 fi
22474 rm -f conftest.o conftest.s
22475 fi
22476 fi
22477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22478 $as_echo "$gcc_cv_as_leb128" >&6; }
22479 if test $gcc_cv_as_leb128 = yes; then
22480
22481 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22482
22483 fi
22484
22485 # Check if we have assembler support for unwind directives.
22486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22487 $as_echo_n "checking assembler for cfi directives... " >&6; }
22488 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22489 $as_echo_n "(cached) " >&6
22490 else
22491 gcc_cv_as_cfi_directive=no
22492 if test x$gcc_cv_as != x; then
22493 $as_echo ' .text
22494 .cfi_startproc
22495 .cfi_offset 0, 0
22496 .cfi_same_value 1
22497 .cfi_def_cfa 1, 2
22498 .cfi_escape 1, 2, 3, 4, 5
22499 .cfi_endproc' > conftest.s
22500 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22502 (eval $ac_try) 2>&5
22503 ac_status=$?
22504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22505 test $ac_status = 0; }; }
22506 then
22507 case "$target" in
22508 *-*-solaris*)
22509 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22510 # read-only and read-write sections, we need to make sure that the
22511 # assembler used emits read-write .eh_frame sections.
22512 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22513 if test "x$gcc_cv_objdump" != x; then
22514 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22515 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22516 gcc_cv_as_cfi_directive=no
22517 else
22518 case "$target" in
22519 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22520 # On Solaris/x86, make sure that GCC and gas agree on using
22521 # read-only .eh_frame sections for 64-bit.
22522 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22523 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22524 sed -e /.eh_frame/!d -e N | \
22525 grep READONLY > /dev/null; then
22526 gcc_cv_as_cfi_directive=yes
22527 else
22528 gcc_cv_as_cfi_directive=no
22529 fi
22530 ;;
22531 *)
22532 gcc_cv_as_cfi_directive=yes
22533 ;;
22534 esac
22535 fi
22536 else
22537 # no objdump, err on the side of caution
22538 gcc_cv_as_cfi_directive=no
22539 fi
22540 else
22541 gcc_cv_as_cfi_directive=yes
22542 fi
22543 ;;
22544 *-*-*)
22545 gcc_cv_as_cfi_directive=yes
22546 ;;
22547 esac
22548 else
22549 echo "configure: failed program was" >&5
22550 cat conftest.s >&5
22551 fi
22552 rm -f conftest.o conftest.s
22553 fi
22554 fi
22555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22556 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22557
22558 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22560 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22561 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22562 $as_echo_n "(cached) " >&6
22563 else
22564 gcc_cv_as_cfi_advance_working=no
22565 if test x$gcc_cv_as != x; then
22566 $as_echo ' .text
22567 .cfi_startproc
22568 .cfi_adjust_cfa_offset 64
22569 .skip 75040, 0
22570 .cfi_adjust_cfa_offset 128
22571 .cfi_endproc' > conftest.s
22572 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22574 (eval $ac_try) 2>&5
22575 ac_status=$?
22576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22577 test $ac_status = 0; }; }
22578 then
22579
22580 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22581 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22582 gcc_cv_as_cfi_advance_working=yes
22583 fi
22584
22585 else
22586 echo "configure: failed program was" >&5
22587 cat conftest.s >&5
22588 fi
22589 rm -f conftest.o conftest.s
22590 fi
22591 fi
22592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22593 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22594
22595 else
22596 # no objdump, err on the side of caution
22597 gcc_cv_as_cfi_advance_working=no
22598 fi
22599
22600
22601 cat >>confdefs.h <<_ACEOF
22602 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22603 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22604 _ACEOF
22605
22606
22607
22608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22609 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22610 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22611 $as_echo_n "(cached) " >&6
22612 else
22613 gcc_cv_as_cfi_personality_directive=no
22614 if test x$gcc_cv_as != x; then
22615 $as_echo ' .text
22616 .cfi_startproc
22617 .cfi_personality 0, symbol
22618 .cfi_endproc' > conftest.s
22619 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22621 (eval $ac_try) 2>&5
22622 ac_status=$?
22623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22624 test $ac_status = 0; }; }
22625 then
22626 gcc_cv_as_cfi_personality_directive=yes
22627 else
22628 echo "configure: failed program was" >&5
22629 cat conftest.s >&5
22630 fi
22631 rm -f conftest.o conftest.s
22632 fi
22633 fi
22634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22635 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22636
22637
22638 cat >>confdefs.h <<_ACEOF
22639 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22640 then echo 1; else echo 0; fi`
22641 _ACEOF
22642
22643
22644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22645 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22646 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22647 $as_echo_n "(cached) " >&6
22648 else
22649 gcc_cv_as_cfi_sections_directive=no
22650 if test x$gcc_cv_as != x; then
22651 $as_echo ' .text
22652 .cfi_sections .debug_frame, .eh_frame
22653 .cfi_startproc
22654 .cfi_endproc' > conftest.s
22655 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22657 (eval $ac_try) 2>&5
22658 ac_status=$?
22659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22660 test $ac_status = 0; }; }
22661 then
22662 case $target_os in
22663 win32 | pe | cygwin* | mingw32* | uwin*)
22664 # Need to check that we generated the correct relocation for the
22665 # .debug_frame section. This was fixed for binutils 2.21.
22666 gcc_cv_as_cfi_sections_directive=no
22667 if test "x$gcc_cv_objdump" != x; then
22668 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22669 grep secrel > /dev/null; then
22670 gcc_cv_as_cfi_sections_directive=yes
22671 fi
22672 fi
22673 ;;
22674 *)
22675 gcc_cv_as_cfi_sections_directive=yes
22676 ;;
22677 esac
22678 else
22679 echo "configure: failed program was" >&5
22680 cat conftest.s >&5
22681 fi
22682 rm -f conftest.o conftest.s
22683 fi
22684 fi
22685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22686 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22687
22688
22689
22690 cat >>confdefs.h <<_ACEOF
22691 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22692 then echo 1; else echo 0; fi`
22693 _ACEOF
22694
22695
22696 # GAS versions up to and including 2.11.0 may mis-optimize
22697 # .eh_frame data.
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22699 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22700 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22701 $as_echo_n "(cached) " >&6
22702 else
22703 gcc_cv_as_eh_frame=no
22704 if test $in_tree_gas = yes; then
22705 if test $in_tree_gas_is_elf = yes \
22706 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22707 then gcc_cv_as_eh_frame=yes
22708 fi
22709 elif test x$gcc_cv_as != x; then
22710 $as_echo ' .text
22711 .LFB1:
22712 .4byte 0
22713 .L1:
22714 .4byte 0
22715 .LFE1:
22716 .section .eh_frame,"aw",@progbits
22717 __FRAME_BEGIN__:
22718 .4byte .LECIE1-.LSCIE1
22719 .LSCIE1:
22720 .4byte 0x0
22721 .byte 0x1
22722 .ascii "z\0"
22723 .byte 0x1
22724 .byte 0x78
22725 .byte 0x1a
22726 .byte 0x0
22727 .byte 0x4
22728 .4byte 1
22729 .p2align 1
22730 .LECIE1:
22731 .LSFDE1:
22732 .4byte .LEFDE1-.LASFDE1
22733 .LASFDE1:
22734 .4byte .LASFDE1-__FRAME_BEGIN__
22735 .4byte .LFB1
22736 .4byte .LFE1-.LFB1
22737 .byte 0x4
22738 .4byte .LFE1-.LFB1
22739 .byte 0x4
22740 .4byte .L1-.LFB1
22741 .LEFDE1:' > conftest.s
22742 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22744 (eval $ac_try) 2>&5
22745 ac_status=$?
22746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22747 test $ac_status = 0; }; }
22748 then
22749 cat > conftest.lit <<EOF
22750 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22751 0010 01000000 12000000 18000000 00000000 ................
22752 0020 08000000 04080000 0044 .........D
22753 EOF
22754 cat > conftest.big <<EOF
22755 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22756 0010 00000001 00000012 00000018 00000000 ................
22757 0020 00000008 04000000 0844 .........D
22758 EOF
22759 # If the assembler didn't choke, and we can objdump,
22760 # and we got the correct data, then succeed.
22761 # The text in the here-document typically retains its unix-style line
22762 # endings, while the output of objdump will use host line endings.
22763 # Therefore, use diff -b for the comparisons.
22764 if test x$gcc_cv_objdump != x \
22765 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22766 | tail -3 > conftest.got \
22767 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22768 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22769 then
22770 gcc_cv_as_eh_frame=yes
22771 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22773 (eval $ac_try) 2>&5
22774 ac_status=$?
22775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22776 test $ac_status = 0; }; }; then
22777 gcc_cv_as_eh_frame=buggy
22778 else
22779 # Uh oh, what do we do now?
22780 gcc_cv_as_eh_frame=no
22781 fi
22782 else
22783 echo "configure: failed program was" >&5
22784 cat conftest.s >&5
22785 fi
22786 rm -f conftest.o conftest.s
22787 fi
22788 fi
22789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22790 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22791
22792
22793 if test $gcc_cv_as_eh_frame = buggy; then
22794
22795 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22796
22797 fi
22798
22799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22800 $as_echo_n "checking assembler for section merging support... " >&6; }
22801 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22802 $as_echo_n "(cached) " >&6
22803 else
22804 gcc_cv_as_shf_merge=no
22805 if test $in_tree_gas = yes; then
22806 if test $in_tree_gas_is_elf = yes \
22807 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22808 then gcc_cv_as_shf_merge=yes
22809 fi
22810 elif test x$gcc_cv_as != x; then
22811 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22812 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22814 (eval $ac_try) 2>&5
22815 ac_status=$?
22816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22817 test $ac_status = 0; }; }
22818 then
22819 gcc_cv_as_shf_merge=yes
22820 else
22821 echo "configure: failed program was" >&5
22822 cat conftest.s >&5
22823 fi
22824 rm -f conftest.o conftest.s
22825 fi
22826 fi
22827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22828 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22829
22830 if test $gcc_cv_as_shf_merge = no; then
22831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22832 $as_echo_n "checking assembler for section merging support... " >&6; }
22833 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22834 $as_echo_n "(cached) " >&6
22835 else
22836 gcc_cv_as_shf_merge=no
22837 if test $in_tree_gas = yes; then
22838 if test $in_tree_gas_is_elf = yes \
22839 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22840 then gcc_cv_as_shf_merge=yes
22841 fi
22842 elif test x$gcc_cv_as != x; then
22843 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22844 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22846 (eval $ac_try) 2>&5
22847 ac_status=$?
22848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22849 test $ac_status = 0; }; }
22850 then
22851 gcc_cv_as_shf_merge=yes
22852 else
22853 echo "configure: failed program was" >&5
22854 cat conftest.s >&5
22855 fi
22856 rm -f conftest.o conftest.s
22857 fi
22858 fi
22859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22860 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22861
22862 fi
22863
22864 cat >>confdefs.h <<_ACEOF
22865 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22866 _ACEOF
22867
22868
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22870 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22871 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22872 $as_echo_n "(cached) " >&6
22873 else
22874 gcc_cv_as_comdat_group=no
22875 if test $in_tree_gas = yes; then
22876 if test $in_tree_gas_is_elf = yes \
22877 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22878 then gcc_cv_as_comdat_group=yes
22879 fi
22880 elif test x$gcc_cv_as != x; then
22881 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22882 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22884 (eval $ac_try) 2>&5
22885 ac_status=$?
22886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22887 test $ac_status = 0; }; }
22888 then
22889 gcc_cv_as_comdat_group=yes
22890 else
22891 echo "configure: failed program was" >&5
22892 cat conftest.s >&5
22893 fi
22894 rm -f conftest.o conftest.s
22895 fi
22896 fi
22897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22898 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22899
22900 if test $gcc_cv_as_comdat_group = yes; then
22901 gcc_cv_as_comdat_group_percent=no
22902 gcc_cv_as_comdat_group_group=no
22903 else
22904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22905 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22906 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22907 $as_echo_n "(cached) " >&6
22908 else
22909 gcc_cv_as_comdat_group_percent=no
22910 if test $in_tree_gas = yes; then
22911 if test $in_tree_gas_is_elf = yes \
22912 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22913 then gcc_cv_as_comdat_group_percent=yes
22914 fi
22915 elif test x$gcc_cv_as != x; then
22916 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22917 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22919 (eval $ac_try) 2>&5
22920 ac_status=$?
22921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22922 test $ac_status = 0; }; }
22923 then
22924 gcc_cv_as_comdat_group_percent=yes
22925 else
22926 echo "configure: failed program was" >&5
22927 cat conftest.s >&5
22928 fi
22929 rm -f conftest.o conftest.s
22930 fi
22931 fi
22932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22933 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22934
22935 if test $gcc_cv_as_comdat_group_percent = yes; then
22936 gcc_cv_as_comdat_group_group=no
22937 else
22938 case "${target}" in
22939 # Sun as uses a completely different syntax.
22940 *-*-solaris2*)
22941 case "${target}" in
22942 sparc*-*-solaris2*)
22943 conftest_s='
22944 .group foo,".text%foo",#comdat
22945 .section ".text%foo", #alloc,#execinstr,#progbits
22946 .globl foo
22947 foo:
22948 '
22949 ;;
22950 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22951 conftest_s='
22952 .group foo,.text%foo,#comdat
22953 .section .text%foo, "ax", @progbits
22954 .globl foo
22955 foo:
22956 '
22957 ;;
22958 esac
22959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22960 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22961 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22962 $as_echo_n "(cached) " >&6
22963 else
22964 gcc_cv_as_comdat_group_group=no
22965 if test x$gcc_cv_as != x; then
22966 $as_echo "$conftest_s" > conftest.s
22967 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22969 (eval $ac_try) 2>&5
22970 ac_status=$?
22971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22972 test $ac_status = 0; }; }
22973 then
22974 gcc_cv_as_comdat_group_group=yes
22975 else
22976 echo "configure: failed program was" >&5
22977 cat conftest.s >&5
22978 fi
22979 rm -f conftest.o conftest.s
22980 fi
22981 fi
22982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22983 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22984
22985 ;;
22986 esac
22987 fi
22988 fi
22989 if test x"$ld_is_gold" = xyes; then
22990 comdat_group=yes
22991 elif test $in_tree_ld = yes ; then
22992 comdat_group=no
22993 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 \
22994 && test $in_tree_ld_is_elf = yes; then
22995 comdat_group=yes
22996 fi
22997 elif echo "$ld_ver" | grep GNU > /dev/null; then
22998 comdat_group=yes
22999 if test 0"$ld_date" -lt 20050308; then
23000 if test -n "$ld_date"; then
23001 # If there was date string, but was earlier than 2005-03-08, fail
23002 comdat_group=no
23003 elif test "$ld_vers_major" -lt 2; then
23004 comdat_group=no
23005 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23006 comdat_group=no
23007 fi
23008 fi
23009 else
23010 case "${target}" in
23011 *-*-solaris2.1[1-9]*)
23012 comdat_group=no
23013 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23014 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23015 # version 1.688.
23016 #
23017 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23018 # least ld version 1.2267.
23019 if test "$ld_vers_major" -gt 1; then
23020 comdat_group=yes
23021 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23022 comdat_group=yes
23023 elif test "$ld_vers_minor" -ge 2267; then
23024 comdat_group=yes
23025 fi
23026 ;;
23027 *)
23028 # Assume linkers other than GNU ld don't support COMDAT group.
23029 comdat_group=no
23030 ;;
23031 esac
23032 fi
23033 # Allow overriding the automatic COMDAT group tests above.
23034 # Check whether --enable-comdat was given.
23035 if test "${enable_comdat+set}" = set; then :
23036 enableval=$enable_comdat; comdat_group="$enable_comdat"
23037 fi
23038
23039 if test $comdat_group = no; then
23040 gcc_cv_as_comdat_group=no
23041 gcc_cv_as_comdat_group_percent=no
23042 gcc_cv_as_comdat_group_group=no
23043 fi
23044
23045 cat >>confdefs.h <<_ACEOF
23046 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23047 || test $gcc_cv_as_comdat_group_percent = yes \
23048 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23049 _ACEOF
23050
23051
23052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23053 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23054 if test "${gcc_cv_as_discriminator+set}" = set; then :
23055 $as_echo_n "(cached) " >&6
23056 else
23057 gcc_cv_as_discriminator=no
23058 if test $in_tree_gas = yes; then
23059 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23060 then gcc_cv_as_discriminator=yes
23061 fi
23062 elif test x$gcc_cv_as != x; then
23063 $as_echo ' .text
23064 .file 1 "conf.c"
23065 .loc 1 1 0 discriminator 1' > conftest.s
23066 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23068 (eval $ac_try) 2>&5
23069 ac_status=$?
23070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23071 test $ac_status = 0; }; }
23072 then
23073 gcc_cv_as_discriminator=yes
23074 else
23075 echo "configure: failed program was" >&5
23076 cat conftest.s >&5
23077 fi
23078 rm -f conftest.o conftest.s
23079 fi
23080 fi
23081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23082 $as_echo "$gcc_cv_as_discriminator" >&6; }
23083 if test $gcc_cv_as_discriminator = yes; then
23084
23085 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23086
23087 fi
23088
23089 # Thread-local storage - the check is heavily parameterized.
23090 conftest_s=
23091 tls_first_major=
23092 tls_first_minor=
23093 tls_as_opt=
23094 case "$target" in
23095 alpha*-*-*)
23096 conftest_s='
23097 .section ".tdata","awT",@progbits
23098 foo: .long 25
23099 .text
23100 ldq $27,__tls_get_addr($29) !literal!1
23101 lda $16,foo($29) !tlsgd!1
23102 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23103 ldq $27,__tls_get_addr($29) !literal!2
23104 lda $16,foo($29) !tlsldm!2
23105 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23106 ldq $1,foo($29) !gotdtprel
23107 ldah $2,foo($29) !dtprelhi
23108 lda $3,foo($2) !dtprello
23109 lda $4,foo($29) !dtprel
23110 ldq $1,foo($29) !gottprel
23111 ldah $2,foo($29) !tprelhi
23112 lda $3,foo($2) !tprello
23113 lda $4,foo($29) !tprel'
23114 tls_first_major=2
23115 tls_first_minor=13
23116 tls_as_opt=--fatal-warnings
23117 ;;
23118 cris-*-*|crisv32-*-*)
23119 conftest_s='
23120 .section ".tdata","awT",@progbits
23121 x: .long 25
23122 .text
23123 move.d x:IE,$r10
23124 nop'
23125 tls_first_major=2
23126 tls_first_minor=20
23127 tls_as_opt=--fatal-warnings
23128 ;;
23129 frv*-*-*)
23130 conftest_s='
23131 .section ".tdata","awT",@progbits
23132 x: .long 25
23133 .text
23134 call #gettlsoff(x)'
23135 tls_first_major=2
23136 tls_first_minor=14
23137 ;;
23138 hppa*-*-linux*)
23139 conftest_s='
23140 t1: .reg %r20
23141 t2: .reg %r21
23142 gp: .reg %r19
23143 .section ".tdata","awT",@progbits
23144 foo: .long 25
23145 .text
23146 .align 4
23147 addil LT%foo-$tls_gdidx$,gp
23148 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23149 b __tls_get_addr
23150 nop
23151 addil LT%foo-$tls_ldidx$,gp
23152 b __tls_get_addr
23153 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23154 addil LR%foo-$tls_dtpoff$,%ret0
23155 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23156 mfctl %cr27,%t1
23157 addil LT%foo-$tls_ieoff$,gp
23158 ldw RT%foo-$tls_ieoff$(%r1),%t2
23159 add %t1,%t2,%t3
23160 mfctl %cr27,%t1
23161 addil LR%foo-$tls_leoff$,%t1
23162 ldo RR%foo-$tls_leoff$(%r1),%t2'
23163 tls_first_major=2
23164 tls_first_minor=15
23165 tls_as_opt=--fatal-warnings
23166 ;;
23167 arm*-*-*)
23168 conftest_s='
23169 .section ".tdata","awT",%progbits
23170 foo: .long 25
23171 .text
23172 .word foo(gottpoff)
23173 .word foo(tpoff)
23174 .word foo(tlsgd)
23175 .word foo(tlsldm)
23176 .word foo(tlsldo)'
23177 tls_first_major=2
23178 tls_first_minor=17
23179 ;;
23180 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23181 case "$target" in
23182 i[34567]86-*-solaris2.*)
23183 on_solaris=yes
23184 tga_func=___tls_get_addr
23185 ;;
23186 x86_64-*-solaris2.1[0-9]*)
23187 on_solaris=yes
23188 tga_func=__tls_get_addr
23189 ;;
23190 *)
23191 on_solaris=no
23192 ;;
23193 esac
23194 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23195 conftest_s='
23196 .section .tdata,"awt",@progbits'
23197 tls_first_major=0
23198 tls_first_minor=0
23199
23200 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23201
23202 else
23203 conftest_s='
23204 .section ".tdata","awT",@progbits'
23205 tls_first_major=2
23206 tls_first_minor=14
23207 tls_as_opt="--fatal-warnings"
23208 fi
23209 conftest_s="$conftest_s
23210 foo: .long 25
23211 .text
23212 movl %gs:0, %eax
23213 leal foo@tlsgd(,%ebx,1), %eax
23214 leal foo@tlsldm(%ebx), %eax
23215 leal foo@dtpoff(%eax), %edx
23216 movl foo@gottpoff(%ebx), %eax
23217 subl foo@gottpoff(%ebx), %eax
23218 addl foo@gotntpoff(%ebx), %eax
23219 movl foo@indntpoff, %eax
23220 movl \$foo@tpoff, %eax
23221 subl \$foo@tpoff, %eax
23222 leal foo@ntpoff(%ecx), %eax"
23223 ;;
23224 x86_64-*-*)
23225 conftest_s='
23226 .section ".tdata","awT",@progbits
23227 foo: .long 25
23228 .text
23229 movq %fs:0, %rax
23230 leaq foo@TLSGD(%rip), %rdi
23231 leaq foo@TLSLD(%rip), %rdi
23232 leaq foo@DTPOFF(%rax), %rdx
23233 movq foo@GOTTPOFF(%rip), %rax
23234 movq $foo@TPOFF, %rax'
23235 tls_first_major=2
23236 tls_first_minor=14
23237 tls_as_opt=--fatal-warnings
23238 ;;
23239 ia64-*-*)
23240 conftest_s='
23241 .section ".tdata","awT",@progbits
23242 foo: data8 25
23243 .text
23244 addl r16 = @ltoff(@dtpmod(foo#)), gp
23245 addl r17 = @ltoff(@dtprel(foo#)), gp
23246 addl r18 = @ltoff(@tprel(foo#)), gp
23247 addl r19 = @dtprel(foo#), gp
23248 adds r21 = @dtprel(foo#), r13
23249 movl r23 = @dtprel(foo#)
23250 addl r20 = @tprel(foo#), gp
23251 adds r22 = @tprel(foo#), r13
23252 movl r24 = @tprel(foo#)'
23253 tls_first_major=2
23254 tls_first_minor=13
23255 tls_as_opt=--fatal-warnings
23256 ;;
23257 mips*-*-*)
23258 conftest_s='
23259 .section .tdata,"awT",@progbits
23260 x:
23261 .word 2
23262 .text
23263 addiu $4, $28, %tlsgd(x)
23264 addiu $4, $28, %tlsldm(x)
23265 lui $4, %dtprel_hi(x)
23266 addiu $4, $4, %dtprel_lo(x)
23267 lw $4, %gottprel(x)($28)
23268 lui $4, %tprel_hi(x)
23269 addiu $4, $4, %tprel_lo(x)'
23270 tls_first_major=2
23271 tls_first_minor=16
23272 tls_as_opt='-32 --fatal-warnings'
23273 ;;
23274 m68k-*-*)
23275 conftest_s='
23276 .section .tdata,"awT",@progbits
23277 x:
23278 .word 2
23279 .text
23280 foo:
23281 move.l x@TLSGD(%a5),%a0
23282 move.l x@TLSLDM(%a5),%a0
23283 move.l x@TLSLDO(%a5),%a0
23284 move.l x@TLSIE(%a5),%a0
23285 move.l x@TLSLE(%a5),%a0'
23286 tls_first_major=2
23287 tls_first_minor=19
23288 tls_as_opt='--fatal-warnings'
23289 ;;
23290 powerpc-*-*)
23291 conftest_s='
23292 .section ".tdata","awT",@progbits
23293 .align 2
23294 ld0: .space 4
23295 ld1: .space 4
23296 x1: .space 4
23297 x2: .space 4
23298 x3: .space 4
23299 .text
23300 addi 3,31,ld0@got@tlsgd
23301 bl __tls_get_addr
23302 addi 3,31,x1@got@tlsld
23303 bl __tls_get_addr
23304 addi 9,3,x1@dtprel
23305 addis 9,3,x2@dtprel@ha
23306 addi 9,9,x2@dtprel@l
23307 lwz 9,x3@got@tprel(31)
23308 add 9,9,x@tls
23309 addi 9,2,x1@tprel
23310 addis 9,2,x2@tprel@ha
23311 addi 9,9,x2@tprel@l'
23312 tls_first_major=2
23313 tls_first_minor=14
23314 tls_as_opt="-a32 --fatal-warnings"
23315 ;;
23316 powerpc64-*-*)
23317 conftest_s='
23318 .section ".tdata","awT",@progbits
23319 .align 3
23320 ld0: .space 8
23321 ld1: .space 8
23322 x1: .space 8
23323 x2: .space 8
23324 x3: .space 8
23325 .text
23326 addi 3,2,ld0@got@tlsgd
23327 bl .__tls_get_addr
23328 nop
23329 addi 3,2,ld1@toc
23330 bl .__tls_get_addr
23331 nop
23332 addi 3,2,x1@got@tlsld
23333 bl .__tls_get_addr
23334 nop
23335 addi 9,3,x1@dtprel
23336 bl .__tls_get_addr
23337 nop
23338 addis 9,3,x2@dtprel@ha
23339 addi 9,9,x2@dtprel@l
23340 bl .__tls_get_addr
23341 nop
23342 ld 9,x3@got@dtprel(2)
23343 add 9,9,3
23344 bl .__tls_get_addr
23345 nop'
23346 tls_first_major=2
23347 tls_first_minor=14
23348 tls_as_opt="-a64 --fatal-warnings"
23349 ;;
23350 s390-*-*)
23351 conftest_s='
23352 .section ".tdata","awT",@progbits
23353 foo: .long 25
23354 .text
23355 .long foo@TLSGD
23356 .long foo@TLSLDM
23357 .long foo@DTPOFF
23358 .long foo@NTPOFF
23359 .long foo@GOTNTPOFF
23360 .long foo@INDNTPOFF
23361 l %r1,foo@GOTNTPOFF(%r12)
23362 l %r1,0(%r1):tls_load:foo
23363 bas %r14,0(%r1,%r13):tls_gdcall:foo
23364 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23365 tls_first_major=2
23366 tls_first_minor=14
23367 tls_as_opt="-m31 --fatal-warnings"
23368 ;;
23369 s390x-*-*)
23370 conftest_s='
23371 .section ".tdata","awT",@progbits
23372 foo: .long 25
23373 .text
23374 .quad foo@TLSGD
23375 .quad foo@TLSLDM
23376 .quad foo@DTPOFF
23377 .quad foo@NTPOFF
23378 .quad foo@GOTNTPOFF
23379 lg %r1,foo@GOTNTPOFF(%r12)
23380 larl %r1,foo@INDNTPOFF
23381 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23382 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23383 tls_first_major=2
23384 tls_first_minor=14
23385 tls_as_opt="-m64 -Aesame --fatal-warnings"
23386 ;;
23387 sh-*-* | sh[34]-*-*)
23388 conftest_s='
23389 .section ".tdata","awT",@progbits
23390 foo: .long 25
23391 .text
23392 .long foo@TLSGD
23393 .long foo@TLSLDM
23394 .long foo@DTPOFF
23395 .long foo@GOTTPOFF
23396 .long foo@TPOFF'
23397 tls_first_major=2
23398 tls_first_minor=13
23399 tls_as_opt=--fatal-warnings
23400 ;;
23401 sparc*-*-*)
23402 case "$target" in
23403 sparc*-sun-solaris2.*)
23404 on_solaris=yes
23405 tga_func=__tls_get_addr
23406 ;;
23407 *)
23408 on_solaris=no
23409 ;;
23410 esac
23411 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23412 conftest_s='
23413 .section ".tdata",#alloc,#write,#tls'
23414 tls_first_major=0
23415 tls_first_minor=0
23416 else
23417 conftest_s='
23418 .section ".tdata","awT",@progbits'
23419 tls_first_major=2
23420 tls_first_minor=14
23421 tls_as_opt="-32 --fatal-warnings"
23422 fi
23423 conftest_s="$conftest_s
23424 foo: .long 25
23425 .text
23426 sethi %tgd_hi22(foo), %o0
23427 add %o0, %tgd_lo10(foo), %o1
23428 add %l7, %o1, %o0, %tgd_add(foo)
23429 call __tls_get_addr, %tgd_call(foo)
23430 sethi %tldm_hi22(foo), %l1
23431 add %l1, %tldm_lo10(foo), %l2
23432 add %l7, %l2, %o0, %tldm_add(foo)
23433 call __tls_get_addr, %tldm_call(foo)
23434 sethi %tldo_hix22(foo), %l3
23435 xor %l3, %tldo_lox10(foo), %l4
23436 add %o0, %l4, %l5, %tldo_add(foo)
23437 sethi %tie_hi22(foo), %o3
23438 add %o3, %tie_lo10(foo), %o3
23439 ld [%l7 + %o3], %o2, %tie_ld(foo)
23440 add %g7, %o2, %o4, %tie_add(foo)
23441 sethi %tle_hix22(foo), %l1
23442 xor %l1, %tle_lox10(foo), %o5
23443 ld [%g7 + %o5], %o1"
23444 ;;
23445 xtensa*-*-*)
23446 conftest_s='
23447 .section ".tdata","awT",@progbits
23448 foo: .long 25
23449 .text
23450 movi a8, foo@TLSFUNC
23451 movi a10, foo@TLSARG
23452 callx8.tls a8, foo@TLSCALL'
23453 tls_first_major=2
23454 tls_first_minor=19
23455 ;;
23456 esac
23457 set_have_as_tls=no
23458 if test "x$enable_tls" = xno ; then
23459 : # TLS explicitly disabled.
23460 elif test "x$enable_tls" = xyes ; then
23461 set_have_as_tls=yes # TLS explicitly enabled.
23462 elif test -z "$tls_first_major"; then
23463 : # If we don't have a check, assume no support.
23464 else
23465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23466 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23467 if test "${gcc_cv_as_tls+set}" = set; then :
23468 $as_echo_n "(cached) " >&6
23469 else
23470 gcc_cv_as_tls=no
23471 if test $in_tree_gas = yes; then
23472 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23473 then gcc_cv_as_tls=yes
23474 fi
23475 elif test x$gcc_cv_as != x; then
23476 $as_echo "$conftest_s" > conftest.s
23477 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23479 (eval $ac_try) 2>&5
23480 ac_status=$?
23481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23482 test $ac_status = 0; }; }
23483 then
23484 gcc_cv_as_tls=yes
23485 else
23486 echo "configure: failed program was" >&5
23487 cat conftest.s >&5
23488 fi
23489 rm -f conftest.o conftest.s
23490 fi
23491 fi
23492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23493 $as_echo "$gcc_cv_as_tls" >&6; }
23494 if test $gcc_cv_as_tls = yes; then
23495 set_have_as_tls=yes
23496 fi
23497 fi
23498 case "$target" in
23499 *-*-irix6*)
23500 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23501 # with TLS support are in use, native TLS cannot work.
23502 set_have_as_tls=no
23503 ;;
23504 *-*-osf*)
23505 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23506 # gld with TLS support are in use, native TLS cannot work.
23507 set_have_as_tls=no
23508 ;;
23509 # TLS was introduced in the Solaris 9 FCS release and backported to
23510 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
23511 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23512 # ld and GCC don't support any longer.
23513 *-*-solaris2.*)
23514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23515 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23516 ld_tls_support=no
23517 # Check ld and ld.so.1 TLS support.
23518 if echo "$ld_ver" | grep GNU > /dev/null; then
23519 # Assume all interesting versions of GNU ld have TLS support.
23520 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23521 ld_tls_support=yes
23522 else
23523 case "$target" in
23524 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23525 i?86-*-solaris2.8)
23526 min_tls_ld_vers_minor=280
23527 ;;
23528 # Solaris 8/SPARC ld has TLS support since version 1.272.
23529 sparc*-*-solaris2.8)
23530 min_tls_ld_vers_minor=272
23531 ;;
23532 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23533 i?86-*-solaris2.9)
23534 min_tls_ld_vers_minor=374
23535 ;;
23536 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23537 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23538 min_tls_ld_vers_minor=343
23539 ;;
23540 esac
23541 if test "$ld_vers_major" -gt 1 || \
23542 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23543 ld_tls_support=yes
23544 else
23545 set_have_as_tls=no
23546 fi
23547 fi
23548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23549 $as_echo "$ld_tls_support" >&6; }
23550
23551 save_LIBS="$LIBS"
23552 save_LDFLAGS="$LDFLAGS"
23553 LIBS=
23554 LDFLAGS=
23555
23556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23557 $as_echo_n "checking alternate thread library... " >&6; }
23558 case "$target" in
23559 # TLS support was backported to Solaris 8 patches, but only lives in
23560 # the alternate thread library which became the default in Solaris 9.
23561 # We want to always use that, irrespective of TLS support.
23562 *-*-solaris2.8)
23563 # Take multilib subdir into account. There's no spec to handle
23564 # this. The 64 symlink exists since Solaris 8.
23565 lwp_dir=/usr/lib/lwp
23566 lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23567 LDFLAGS="-L$lwp_dir -R$lwp_dir"
23568 ;;
23569 *-*-solaris2*)
23570 lwp_dir="none"
23571 lwp_spec=""
23572 ;;
23573 esac
23574 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23575
23576 cat >>confdefs.h <<_ACEOF
23577 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23578 _ACEOF
23579
23580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23581 $as_echo "$lwp_dir" >&6; }
23582
23583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23584 $as_echo_n "checking library containing $tga_func... " >&6; }
23585 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23586 # (32-bit x86) only lived in libthread, so check for that. Keep
23587 # set_have_as_tls if found, disable if not.
23588 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23590 $as_echo_n "checking for library containing $tga_func... " >&6; }
23591 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23592 $as_echo_n "(cached) " >&6
23593 else
23594 ac_func_search_save_LIBS=$LIBS
23595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23596 /* end confdefs.h. */
23597
23598 /* Override any GCC internal prototype to avoid an error.
23599 Use char because int might match the return type of a GCC
23600 builtin and then its argument prototype would still apply. */
23601 #ifdef __cplusplus
23602 extern "C"
23603 #endif
23604 char $tga_func ();
23605 int
23606 main ()
23607 {
23608 return $tga_func ();
23609 ;
23610 return 0;
23611 }
23612 _ACEOF
23613 for ac_lib in '' thread; do
23614 if test -z "$ac_lib"; then
23615 ac_res="none required"
23616 else
23617 ac_res=-l$ac_lib
23618 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23619 fi
23620 if ac_fn_c_try_link "$LINENO"; then :
23621 eval "$as_ac_Search=\$ac_res"
23622 fi
23623 rm -f core conftest.err conftest.$ac_objext \
23624 conftest$ac_exeext
23625 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23626 break
23627 fi
23628 done
23629 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23630
23631 else
23632 eval "$as_ac_Search=no"
23633 fi
23634 rm conftest.$ac_ext
23635 LIBS=$ac_func_search_save_LIBS
23636 fi
23637 eval ac_res=\$$as_ac_Search
23638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23639 $as_echo "$ac_res" >&6; }
23640 eval ac_res=\$$as_ac_Search
23641 if test "$ac_res" != no; then :
23642 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23643
23644 else
23645 set_have_as_tls=no
23646 fi
23647
23648 # Clear LIBS if we cannot support TLS.
23649 if test $set_have_as_tls = no; then
23650 LIBS=
23651 fi
23652 # Always define LIB_TLS_SPEC, even without TLS support.
23653
23654 cat >>confdefs.h <<_ACEOF
23655 #define LIB_TLS_SPEC "$LIBS"
23656 _ACEOF
23657
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23659 $as_echo "$LIBS" >&6; }
23660
23661 LIBS="$save_LIBS"
23662 LDFLAGS="$save_LDFLAGS"
23663 ;;
23664 esac
23665 if test $set_have_as_tls = yes ; then
23666
23667 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23668
23669 fi
23670
23671 # Target-specific assembler checks.
23672
23673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23674 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23675 gcc_cv_ld_static_dynamic=no
23676 gcc_cv_ld_static_option='-Bstatic'
23677 gcc_cv_ld_dynamic_option='-Bdynamic'
23678 if test $in_tree_ld = yes ; then
23679 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
23680 gcc_cv_ld_static_dynamic=yes
23681 fi
23682 elif test x$gcc_cv_ld != x; then
23683 # Check if linker supports -Bstatic/-Bdynamic option
23684 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23685 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23686 gcc_cv_ld_static_dynamic=yes
23687 else
23688 case "$target" in
23689 # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23690 alpha*-dec-osf*)
23691 gcc_cv_ld_static_dynamic=yes
23692 gcc_cv_ld_static_option="-noso"
23693 gcc_cv_ld_dynamic_option="-so_archive"
23694 ;;
23695 # HP-UX ld uses -a flags to select between shared and archive.
23696 *-*-hpux*)
23697 if test x"$gnu_ld" = xno; then
23698 gcc_cv_ld_static_dynamic=yes
23699 gcc_cv_ld_static_option="-aarchive_shared"
23700 gcc_cv_ld_dynamic_option="-adefault"
23701 fi
23702 ;;
23703 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23704 mips-sgi-irix6*)
23705 gcc_cv_ld_static_dynamic=yes
23706 ;;
23707 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23708 *-*-solaris2*)
23709 gcc_cv_ld_static_dynamic=yes
23710 ;;
23711 esac
23712 fi
23713 fi
23714 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23715
23716 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23717
23718
23719 cat >>confdefs.h <<_ACEOF
23720 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23721 _ACEOF
23722
23723
23724 cat >>confdefs.h <<_ACEOF
23725 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23726 _ACEOF
23727
23728 fi
23729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23730 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23731
23732 if test x"$demangler_in_ld" = xyes; then
23733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23734 $as_echo_n "checking linker --demangle support... " >&6; }
23735 gcc_cv_ld_demangle=no
23736 if test $in_tree_ld = yes; then
23737 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 \
23738 gcc_cv_ld_demangle=yes
23739 fi
23740 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23741 # Check if the GNU linker supports --demangle option
23742 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23743 gcc_cv_ld_demangle=yes
23744 fi
23745 fi
23746 if test x"$gcc_cv_ld_demangle" = xyes; then
23747
23748 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23749
23750 fi
23751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23752 $as_echo "$gcc_cv_ld_demangle" >&6; }
23753 fi
23754
23755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23756 $as_echo_n "checking linker plugin support... " >&6; }
23757 gcc_cv_lto_plugin=0
23758 if test -f liblto_plugin.la; then
23759 save_ld_ver="$ld_ver"
23760 save_ld_vers_major="$ld_vers_major"
23761 save_ld_vers_minor="$ld_vers_minor"
23762 save_ld_is_gold="$ld_is_gold"
23763
23764 ld_is_gold=no
23765
23766 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23767 ld_ver="GNU ld"
23768 # FIXME: ld_is_gold?
23769 ld_vers_major="$gcc_cv_gld_major_version"
23770 ld_vers_minor="$gcc_cv_gld_minor_version"
23771 else
23772 # Determine plugin linker version.
23773 # FIXME: Partial duplicate from above, generalize.
23774 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23775 if echo "$ld_ver" | grep GNU > /dev/null; then
23776 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23777 ld_is_gold=yes
23778 ld_vers=`echo $ld_ver | sed -n \
23779 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23780 else
23781 ld_vers=`echo $ld_ver | sed -n \
23782 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23783 fi
23784 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23785 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23786 fi
23787 fi
23788
23789 # Determine plugin support.
23790 if echo "$ld_ver" | grep GNU > /dev/null; then
23791 # Require GNU ld or gold 2.21+ for plugin support by default.
23792 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23793 gcc_cv_lto_plugin=2
23794 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23795 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23796 gcc_cv_lto_plugin=1
23797 fi
23798 fi
23799
23800 ld_ver="$save_ld_ver"
23801 ld_vers_major="$save_ld_vers_major"
23802 ld_vers_minor="$save_ld_vers_minor"
23803 ld_is_gold="$save_ld_is_gold"
23804 fi
23805
23806 cat >>confdefs.h <<_ACEOF
23807 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23808 _ACEOF
23809
23810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23811 $as_echo "$gcc_cv_lto_plugin" >&6; }
23812
23813 case "$target" in
23814 # All TARGET_ABI_OSF targets.
23815 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23817 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23818 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23819 $as_echo_n "(cached) " >&6
23820 else
23821 gcc_cv_as_alpha_explicit_relocs=no
23822 if test $in_tree_gas = yes; then
23823 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23824 then gcc_cv_as_alpha_explicit_relocs=yes
23825 fi
23826 elif test x$gcc_cv_as != x; then
23827 $as_echo ' .set nomacro
23828 .text
23829 extbl $3, $2, $3 !lituse_bytoff!1
23830 ldq $2, a($29) !literal!1
23831 ldq $4, b($29) !literal!2
23832 ldq_u $3, 0($2) !lituse_base!1
23833 ldq $27, f($29) !literal!5
23834 jsr $26, ($27), f !lituse_jsr!5
23835 ldah $29, 0($26) !gpdisp!3
23836 lda $0, c($29) !gprel
23837 ldah $1, d($29) !gprelhigh
23838 lda $1, d($1) !gprellow
23839 lda $29, 0($29) !gpdisp!3' > conftest.s
23840 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23842 (eval $ac_try) 2>&5
23843 ac_status=$?
23844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23845 test $ac_status = 0; }; }
23846 then
23847 gcc_cv_as_alpha_explicit_relocs=yes
23848 else
23849 echo "configure: failed program was" >&5
23850 cat conftest.s >&5
23851 fi
23852 rm -f conftest.o conftest.s
23853 fi
23854 fi
23855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23856 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23857 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23858
23859 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23860
23861 fi
23862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23863 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23864 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23865 $as_echo_n "(cached) " >&6
23866 else
23867 gcc_cv_as_alpha_jsrdirect_relocs=no
23868 if test $in_tree_gas = yes; then
23869 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23870 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23871 fi
23872 elif test x$gcc_cv_as != x; then
23873 $as_echo ' .set nomacro
23874 .text
23875 ldq $27, a($29) !literal!1
23876 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23877 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23879 (eval $ac_try) 2>&5
23880 ac_status=$?
23881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23882 test $ac_status = 0; }; }
23883 then
23884 gcc_cv_as_alpha_jsrdirect_relocs=yes
23885 else
23886 echo "configure: failed program was" >&5
23887 cat conftest.s >&5
23888 fi
23889 rm -f conftest.o conftest.s
23890 fi
23891 fi
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23893 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23894 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23895
23896 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23897
23898 fi
23899 ;;
23900
23901 cris-*-*)
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23903 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23904 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23905 $as_echo_n "(cached) " >&6
23906 else
23907 gcc_cv_as_cris_no_mul_bug=no
23908 if test $in_tree_gas = yes; then
23909 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23910 then gcc_cv_as_cris_no_mul_bug=yes
23911 fi
23912 elif test x$gcc_cv_as != x; then
23913 $as_echo '.text' > conftest.s
23914 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23916 (eval $ac_try) 2>&5
23917 ac_status=$?
23918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23919 test $ac_status = 0; }; }
23920 then
23921 gcc_cv_as_cris_no_mul_bug=yes
23922 else
23923 echo "configure: failed program was" >&5
23924 cat conftest.s >&5
23925 fi
23926 rm -f conftest.o conftest.s
23927 fi
23928 fi
23929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23930 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23931 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23932
23933 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23934
23935 fi
23936 ;;
23937
23938 sparc*-*-*)
23939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23940 $as_echo_n "checking assembler for .register... " >&6; }
23941 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23942 $as_echo_n "(cached) " >&6
23943 else
23944 gcc_cv_as_sparc_register_op=no
23945 if test x$gcc_cv_as != x; then
23946 $as_echo '.register %g2, #scratch' > conftest.s
23947 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23949 (eval $ac_try) 2>&5
23950 ac_status=$?
23951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23952 test $ac_status = 0; }; }
23953 then
23954 gcc_cv_as_sparc_register_op=yes
23955 else
23956 echo "configure: failed program was" >&5
23957 cat conftest.s >&5
23958 fi
23959 rm -f conftest.o conftest.s
23960 fi
23961 fi
23962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23963 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23964 if test $gcc_cv_as_sparc_register_op = yes; then
23965
23966 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23967
23968 fi
23969
23970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23971 $as_echo_n "checking assembler for -relax option... " >&6; }
23972 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23973 $as_echo_n "(cached) " >&6
23974 else
23975 gcc_cv_as_sparc_relax=no
23976 if test x$gcc_cv_as != x; then
23977 $as_echo '.text' > conftest.s
23978 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23980 (eval $ac_try) 2>&5
23981 ac_status=$?
23982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23983 test $ac_status = 0; }; }
23984 then
23985 gcc_cv_as_sparc_relax=yes
23986 else
23987 echo "configure: failed program was" >&5
23988 cat conftest.s >&5
23989 fi
23990 rm -f conftest.o conftest.s
23991 fi
23992 fi
23993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23994 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23995 if test $gcc_cv_as_sparc_relax = yes; then
23996
23997 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23998
23999 fi
24000
24001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24002 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24003 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24004 $as_echo_n "(cached) " >&6
24005 else
24006 gcc_cv_as_sparc_gotdata_op=no
24007 if test x$gcc_cv_as != x; then
24008 $as_echo '.text
24009 .align 4
24010 foo:
24011 nop
24012 bar:
24013 sethi %gdop_hix22(foo), %g1
24014 xor %g1, %gdop_lox10(foo), %g1
24015 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24016 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24018 (eval $ac_try) 2>&5
24019 ac_status=$?
24020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24021 test $ac_status = 0; }; }
24022 then
24023 if test x$gcc_cv_ld != x \
24024 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24025 if test x$gcc_cv_objdump != x; then
24026 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24027 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24028 gcc_cv_as_sparc_gotdata_op=no
24029 else
24030 gcc_cv_as_sparc_gotdata_op=yes
24031 fi
24032 fi
24033 fi
24034 rm -f conftest
24035 else
24036 echo "configure: failed program was" >&5
24037 cat conftest.s >&5
24038 fi
24039 rm -f conftest.o conftest.s
24040 fi
24041 fi
24042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24043 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24044 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24045
24046 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24047
24048 fi
24049
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24051 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24052 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24053 $as_echo_n "(cached) " >&6
24054 else
24055 gcc_cv_as_sparc_ua_pcrel=no
24056 if test x$gcc_cv_as != x; then
24057 $as_echo '.text
24058 foo:
24059 nop
24060 .data
24061 .align 4
24062 .byte 0
24063 .uaword %r_disp32(foo)' > conftest.s
24064 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24066 (eval $ac_try) 2>&5
24067 ac_status=$?
24068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24069 test $ac_status = 0; }; }
24070 then
24071 if test x$gcc_cv_ld != x \
24072 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24073 gcc_cv_as_sparc_ua_pcrel=yes
24074 fi
24075 rm -f conftest
24076 else
24077 echo "configure: failed program was" >&5
24078 cat conftest.s >&5
24079 fi
24080 rm -f conftest.o conftest.s
24081 fi
24082 fi
24083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24084 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24085 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24086
24087 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24088
24089
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24091 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24092 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24093 $as_echo_n "(cached) " >&6
24094 else
24095 gcc_cv_as_sparc_ua_pcrel_hidden=no
24096 if test x$gcc_cv_as != x; then
24097 $as_echo '.data
24098 .align 4
24099 .byte 0x31
24100 .uaword %r_disp32(foo)
24101 .byte 0x32, 0x33, 0x34
24102 .global foo
24103 .hidden foo
24104 foo:
24105 .skip 4' > conftest.s
24106 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24108 (eval $ac_try) 2>&5
24109 ac_status=$?
24110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24111 test $ac_status = 0; }; }
24112 then
24113 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24114 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24115 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24116 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24117 if $gcc_cv_objdump -R conftest 2> /dev/null \
24118 | grep 'DISP32' > /dev/null 2>&1; then
24119 :
24120 else
24121 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24122 fi
24123 fi
24124 rm -f conftest
24125 else
24126 echo "configure: failed program was" >&5
24127 cat conftest.s >&5
24128 fi
24129 rm -f conftest.o conftest.s
24130 fi
24131 fi
24132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24133 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24134 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24135
24136 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24137
24138 fi
24139
24140 fi # unaligned pcrel relocs
24141
24142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24143 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24144 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24145 $as_echo_n "(cached) " >&6
24146 else
24147 gcc_cv_as_sparc_offsetable_lo10=no
24148 if test x$gcc_cv_as != x; then
24149 $as_echo '.text
24150 or %g1, %lo(ab) + 12, %g1
24151 or %g1, %lo(ab + 12), %g1' > conftest.s
24152 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24154 (eval $ac_try) 2>&5
24155 ac_status=$?
24156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24157 test $ac_status = 0; }; }
24158 then
24159 if test x$gcc_cv_objdump != x \
24160 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24161 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24162 gcc_cv_as_sparc_offsetable_lo10=yes
24163 fi
24164 else
24165 echo "configure: failed program was" >&5
24166 cat conftest.s >&5
24167 fi
24168 rm -f conftest.o conftest.s
24169 fi
24170 fi
24171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24172 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24173 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24174
24175 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24176
24177 fi
24178
24179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24180 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24181 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24182 $as_echo_n "(cached) " >&6
24183 else
24184 gcc_cv_as_sparc_fmaf=no
24185 if test x$gcc_cv_as != x; then
24186 $as_echo '.text
24187 .register %g2, #scratch
24188 .register %g3, #scratch
24189 .align 4
24190 fmaddd %f0, %f2, %f4, %f6
24191 addxccc %g1, %g2, %g3
24192 fsrl32 %f2, %f4, %f8
24193 fnaddd %f10, %f12, %f14' > conftest.s
24194 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24196 (eval $ac_try) 2>&5
24197 ac_status=$?
24198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24199 test $ac_status = 0; }; }
24200 then
24201 gcc_cv_as_sparc_fmaf=yes
24202 else
24203 echo "configure: failed program was" >&5
24204 cat conftest.s >&5
24205 fi
24206 rm -f conftest.o conftest.s
24207 fi
24208 fi
24209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24210 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24211 if test $gcc_cv_as_sparc_fmaf = yes; then
24212
24213 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24214
24215 fi
24216 ;;
24217
24218 i[34567]86-*-* | x86_64-*-*)
24219 case $target_os in
24220 cygwin*)
24221 # Full C++ conformance when using a shared libstdc++-v3 requires some
24222 # support from the Cygwin DLL, which in more recent versions exports
24223 # wrappers to aid in interposing and redirecting operators new, delete,
24224 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24225 # are configuring for a version of Cygwin that exports the wrappers.
24226 if test x$host = x$target; then
24227 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24228 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24229 gcc_ac_cygwin_dll_wrappers=yes
24230 else
24231 gcc_ac_cygwin_dll_wrappers=no
24232 fi
24233
24234 else
24235 # Can't check presence of libc functions during cross-compile, so
24236 # we just have to assume we're building for an up-to-date target.
24237 gcc_ac_cygwin_dll_wrappers=yes
24238 fi
24239
24240 cat >>confdefs.h <<_ACEOF
24241 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24242 _ACEOF
24243
24244 esac
24245 case $target_os in
24246 cygwin* | pe | mingw32*)
24247 # Recent binutils allows the three-operand form of ".comm" on PE. This
24248 # definition is used unconditionally to initialise the default state of
24249 # the target option variable that governs usage of the feature.
24250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24251 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24252 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24253 $as_echo_n "(cached) " >&6
24254 else
24255 gcc_cv_as_comm_has_align=no
24256 if test $in_tree_gas = yes; then
24257 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24258 then gcc_cv_as_comm_has_align=yes
24259 fi
24260 elif test x$gcc_cv_as != x; then
24261 $as_echo '.comm foo,1,32' > conftest.s
24262 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24264 (eval $ac_try) 2>&5
24265 ac_status=$?
24266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24267 test $ac_status = 0; }; }
24268 then
24269 gcc_cv_as_comm_has_align=yes
24270 else
24271 echo "configure: failed program was" >&5
24272 cat conftest.s >&5
24273 fi
24274 rm -f conftest.o conftest.s
24275 fi
24276 fi
24277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24278 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24279
24280
24281 cat >>confdefs.h <<_ACEOF
24282 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24283 _ACEOF
24284
24285 # Used for DWARF 2 in PE
24286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24287 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24288 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24289 $as_echo_n "(cached) " >&6
24290 else
24291 gcc_cv_as_ix86_pe_secrel32=no
24292 if test $in_tree_gas = yes; then
24293 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24294 then gcc_cv_as_ix86_pe_secrel32=yes
24295 fi
24296 elif test x$gcc_cv_as != x; then
24297 $as_echo '.text
24298 foo: nop
24299 .data
24300 .secrel32 foo' > conftest.s
24301 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24303 (eval $ac_try) 2>&5
24304 ac_status=$?
24305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24306 test $ac_status = 0; }; }
24307 then
24308 if test x$gcc_cv_ld != x \
24309 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24310 gcc_cv_as_ix86_pe_secrel32=yes
24311 fi
24312 rm -f conftest
24313 else
24314 echo "configure: failed program was" >&5
24315 cat conftest.s >&5
24316 fi
24317 rm -f conftest.o conftest.s
24318 fi
24319 fi
24320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24321 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24322 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24323
24324 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24325
24326 fi
24327 # Test if the assembler supports the extended form of the .section
24328 # directive that specifies section alignment. LTO support uses this,
24329 # but normally only after installation, so we warn but don't fail the
24330 # configure if LTO is enabled but the assembler does not support it.
24331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24332 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24333 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24334 $as_echo_n "(cached) " >&6
24335 else
24336 gcc_cv_as_section_has_align=no
24337 if test $in_tree_gas = yes; then
24338 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24339 then gcc_cv_as_section_has_align=yes
24340 fi
24341 elif test x$gcc_cv_as != x; then
24342 $as_echo '.section lto_test,"dr0"' > conftest.s
24343 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24345 (eval $ac_try) 2>&5
24346 ac_status=$?
24347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24348 test $ac_status = 0; }; }
24349 then
24350 gcc_cv_as_section_has_align=yes
24351 else
24352 echo "configure: failed program was" >&5
24353 cat conftest.s >&5
24354 fi
24355 rm -f conftest.o conftest.s
24356 fi
24357 fi
24358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24359 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24360
24361 if test x$gcc_cv_as_section_has_align != xyes; then
24362 case ",$enable_languages," in
24363 *,lto,*)
24364 { $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
24365 $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;}
24366 ;;
24367 esac
24368 fi
24369 # Test if the assembler supports the section flag 'e' for specifying
24370 # an excluded section.
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24372 $as_echo_n "checking assembler for .section with e... " >&6; }
24373 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24374 $as_echo_n "(cached) " >&6
24375 else
24376 gcc_cv_as_section_has_e=no
24377 if test $in_tree_gas = yes; then
24378 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24379 then gcc_cv_as_section_has_e=yes
24380 fi
24381 elif test x$gcc_cv_as != x; then
24382 $as_echo '.section foo1,"e"
24383 .byte 0,0,0,0' > conftest.s
24384 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24386 (eval $ac_try) 2>&5
24387 ac_status=$?
24388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24389 test $ac_status = 0; }; }
24390 then
24391 gcc_cv_as_section_has_e=yes
24392 else
24393 echo "configure: failed program was" >&5
24394 cat conftest.s >&5
24395 fi
24396 rm -f conftest.o conftest.s
24397 fi
24398 fi
24399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24400 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24401
24402
24403 cat >>confdefs.h <<_ACEOF
24404 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24405 _ACEOF
24406
24407 ;;
24408 esac
24409
24410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24411 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24412 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24413 $as_echo_n "(cached) " >&6
24414 else
24415 gcc_cv_as_ix86_filds=no
24416 if test x$gcc_cv_as != x; then
24417 $as_echo 'filds mem; fists mem' > conftest.s
24418 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24420 (eval $ac_try) 2>&5
24421 ac_status=$?
24422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24423 test $ac_status = 0; }; }
24424 then
24425 gcc_cv_as_ix86_filds=yes
24426 else
24427 echo "configure: failed program was" >&5
24428 cat conftest.s >&5
24429 fi
24430 rm -f conftest.o conftest.s
24431 fi
24432 fi
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24434 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24435 if test $gcc_cv_as_ix86_filds = yes; then
24436
24437 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24438
24439 fi
24440
24441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24442 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24443 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24444 $as_echo_n "(cached) " >&6
24445 else
24446 gcc_cv_as_ix86_fildq=no
24447 if test x$gcc_cv_as != x; then
24448 $as_echo 'fildq mem; fistpq mem' > conftest.s
24449 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24451 (eval $ac_try) 2>&5
24452 ac_status=$?
24453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24454 test $ac_status = 0; }; }
24455 then
24456 gcc_cv_as_ix86_fildq=yes
24457 else
24458 echo "configure: failed program was" >&5
24459 cat conftest.s >&5
24460 fi
24461 rm -f conftest.o conftest.s
24462 fi
24463 fi
24464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24465 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24466 if test $gcc_cv_as_ix86_fildq = yes; then
24467
24468 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24469
24470 fi
24471
24472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24473 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24474 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24475 $as_echo_n "(cached) " >&6
24476 else
24477 gcc_cv_as_ix86_cmov_sun_syntax=no
24478 if test x$gcc_cv_as != x; then
24479 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24480 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24482 (eval $ac_try) 2>&5
24483 ac_status=$?
24484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24485 test $ac_status = 0; }; }
24486 then
24487 gcc_cv_as_ix86_cmov_sun_syntax=yes
24488 else
24489 echo "configure: failed program was" >&5
24490 cat conftest.s >&5
24491 fi
24492 rm -f conftest.o conftest.s
24493 fi
24494 fi
24495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24496 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24497 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24498
24499 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24500
24501 fi
24502
24503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24504 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24505 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24506 $as_echo_n "(cached) " >&6
24507 else
24508 gcc_cv_as_ix86_ffreep=no
24509 if test x$gcc_cv_as != x; then
24510 $as_echo 'ffreep %st(1)' > conftest.s
24511 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24513 (eval $ac_try) 2>&5
24514 ac_status=$?
24515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24516 test $ac_status = 0; }; }
24517 then
24518 gcc_cv_as_ix86_ffreep=yes
24519 else
24520 echo "configure: failed program was" >&5
24521 cat conftest.s >&5
24522 fi
24523 rm -f conftest.o conftest.s
24524 fi
24525 fi
24526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24527 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24528 if test $gcc_cv_as_ix86_ffreep = yes; then
24529
24530 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24531
24532 fi
24533
24534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24535 $as_echo_n "checking assembler for .quad directive... " >&6; }
24536 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24537 $as_echo_n "(cached) " >&6
24538 else
24539 gcc_cv_as_ix86_quad=no
24540 if test x$gcc_cv_as != x; then
24541 $as_echo '.quad 0' > conftest.s
24542 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24544 (eval $ac_try) 2>&5
24545 ac_status=$?
24546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24547 test $ac_status = 0; }; }
24548 then
24549 gcc_cv_as_ix86_quad=yes
24550 else
24551 echo "configure: failed program was" >&5
24552 cat conftest.s >&5
24553 fi
24554 rm -f conftest.o conftest.s
24555 fi
24556 fi
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24558 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24559 if test $gcc_cv_as_ix86_quad = yes; then
24560
24561 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24562
24563 fi
24564
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24566 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24567 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24568 $as_echo_n "(cached) " >&6
24569 else
24570 gcc_cv_as_ix86_sahf=no
24571 if test x$gcc_cv_as != x; then
24572 $as_echo '.code64
24573 sahf' > conftest.s
24574 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24575 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24576 (eval $ac_try) 2>&5
24577 ac_status=$?
24578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24579 test $ac_status = 0; }; }
24580 then
24581 gcc_cv_as_ix86_sahf=yes
24582 else
24583 echo "configure: failed program was" >&5
24584 cat conftest.s >&5
24585 fi
24586 rm -f conftest.o conftest.s
24587 fi
24588 fi
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24590 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24591 if test $gcc_cv_as_ix86_sahf = yes; then
24592
24593 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24594
24595 fi
24596
24597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24598 $as_echo_n "checking assembler for swap suffix... " >&6; }
24599 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24600 $as_echo_n "(cached) " >&6
24601 else
24602 gcc_cv_as_ix86_swap=no
24603 if test x$gcc_cv_as != x; then
24604 $as_echo 'movl.s %esp, %ebp' > conftest.s
24605 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24607 (eval $ac_try) 2>&5
24608 ac_status=$?
24609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24610 test $ac_status = 0; }; }
24611 then
24612 gcc_cv_as_ix86_swap=yes
24613 else
24614 echo "configure: failed program was" >&5
24615 cat conftest.s >&5
24616 fi
24617 rm -f conftest.o conftest.s
24618 fi
24619 fi
24620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24621 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24622 if test $gcc_cv_as_ix86_swap = yes; then
24623
24624 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24625
24626 fi
24627
24628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24629 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24630 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24631 $as_echo_n "(cached) " >&6
24632 else
24633 gcc_cv_as_ix86_diff_sect_delta=no
24634 if test x$gcc_cv_as != x; then
24635 $as_echo '.section .rodata
24636 .L1:
24637 .long .L2-.L1
24638 .long .L3-.L1
24639 .text
24640 .L3: nop
24641 .L2: nop' > conftest.s
24642 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24644 (eval $ac_try) 2>&5
24645 ac_status=$?
24646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24647 test $ac_status = 0; }; }
24648 then
24649 gcc_cv_as_ix86_diff_sect_delta=yes
24650 else
24651 echo "configure: failed program was" >&5
24652 cat conftest.s >&5
24653 fi
24654 rm -f conftest.o conftest.s
24655 fi
24656 fi
24657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24658 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24659 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24660
24661 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24662
24663 fi
24664
24665 # These two are used unconditionally by i386.[ch]; it is to be defined
24666 # to 1 if the feature is present, 0 otherwise.
24667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24668 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24669 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24670 $as_echo_n "(cached) " >&6
24671 else
24672 gcc_cv_as_ix86_gotoff_in_data=no
24673 if test $in_tree_gas = yes; then
24674 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24675 then gcc_cv_as_ix86_gotoff_in_data=yes
24676 fi
24677 elif test x$gcc_cv_as != x; then
24678 $as_echo ' .text
24679 .L0:
24680 nop
24681 .data
24682 .long .L0@GOTOFF' > conftest.s
24683 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24685 (eval $ac_try) 2>&5
24686 ac_status=$?
24687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24688 test $ac_status = 0; }; }
24689 then
24690 gcc_cv_as_ix86_gotoff_in_data=yes
24691 else
24692 echo "configure: failed program was" >&5
24693 cat conftest.s >&5
24694 fi
24695 rm -f conftest.o conftest.s
24696 fi
24697 fi
24698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24699 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24700
24701
24702 cat >>confdefs.h <<_ACEOF
24703 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24704 _ACEOF
24705
24706
24707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24708 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24709 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24710 $as_echo_n "(cached) " >&6
24711 else
24712 gcc_cv_as_ix86_rep_lock_prefix=no
24713 if test x$gcc_cv_as != x; then
24714 $as_echo 'rep movsl
24715 lock addl %edi, (%eax,%esi)
24716 lock orl $0, (%esp)' > conftest.s
24717 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24719 (eval $ac_try) 2>&5
24720 ac_status=$?
24721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24722 test $ac_status = 0; }; }
24723 then
24724 gcc_cv_as_ix86_rep_lock_prefix=yes
24725 else
24726 echo "configure: failed program was" >&5
24727 cat conftest.s >&5
24728 fi
24729 rm -f conftest.o conftest.s
24730 fi
24731 fi
24732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24733 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24734 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24735
24736 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24737
24738 fi
24739
24740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24741 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24742 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24743 $as_echo_n "(cached) " >&6
24744 else
24745 gcc_cv_as_ix86_tlsgdplt=no
24746 if test x$gcc_cv_as != x; then
24747 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24748 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24750 (eval $ac_try) 2>&5
24751 ac_status=$?
24752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24753 test $ac_status = 0; }; }
24754 then
24755 gcc_cv_as_ix86_tlsgdplt=yes
24756 else
24757 echo "configure: failed program was" >&5
24758 cat conftest.s >&5
24759 fi
24760 rm -f conftest.o conftest.s
24761 fi
24762 fi
24763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24764 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24765 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24766
24767 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24768
24769 fi
24770
24771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24772 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24773 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24774 $as_echo_n "(cached) " >&6
24775 else
24776 gcc_cv_as_ix86_tlsldmplt=no
24777 if test x$gcc_cv_as != x; then
24778 $as_echo 'call tls_ld@tlsldmplt' > conftest.s
24779 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24781 (eval $ac_try) 2>&5
24782 ac_status=$?
24783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24784 test $ac_status = 0; }; }
24785 then
24786 gcc_cv_as_ix86_tlsldmplt=yes
24787 else
24788 echo "configure: failed program was" >&5
24789 cat conftest.s >&5
24790 fi
24791 rm -f conftest.o conftest.s
24792 fi
24793 fi
24794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24795 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24796 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24797
24798 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24799
24800 fi
24801
24802 ;;
24803
24804 ia64*-*-*)
24805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24806 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24807 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24808 $as_echo_n "(cached) " >&6
24809 else
24810 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24811 if test $in_tree_gas = yes; then
24812 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24813 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24814 fi
24815 elif test x$gcc_cv_as != x; then
24816 $as_echo ' .text
24817 addl r15 = @ltoffx(x#), gp
24818 ;;
24819 ld8.mov r16 = [r15], x#' > conftest.s
24820 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24822 (eval $ac_try) 2>&5
24823 ac_status=$?
24824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24825 test $ac_status = 0; }; }
24826 then
24827 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24828 else
24829 echo "configure: failed program was" >&5
24830 cat conftest.s >&5
24831 fi
24832 rm -f conftest.o conftest.s
24833 fi
24834 fi
24835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24836 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24837 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24838
24839 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24840
24841 fi
24842
24843 ;;
24844
24845 powerpc*-*-*)
24846 case $target in
24847 *-*-aix*) conftest_s=' .machine "pwr5"
24848 .csect .text[PR]
24849 mfcr 3,128';;
24850 *-*-darwin*)
24851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24852 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24853 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24854 $as_echo_n "(cached) " >&6
24855 else
24856 gcc_cv_as_machine_directive=no
24857 if test x$gcc_cv_as != x; then
24858 $as_echo ' .machine ppc7400' > conftest.s
24859 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24861 (eval $ac_try) 2>&5
24862 ac_status=$?
24863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24864 test $ac_status = 0; }; }
24865 then
24866 gcc_cv_as_machine_directive=yes
24867 else
24868 echo "configure: failed program was" >&5
24869 cat conftest.s >&5
24870 fi
24871 rm -f conftest.o conftest.s
24872 fi
24873 fi
24874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24875 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24876
24877 if test x$gcc_cv_as_machine_directive != xyes; then
24878 echo "*** This target requires an assembler supporting \".machine\"" >&2
24879 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24880 test x$build = x$target && exit 1
24881 fi
24882 conftest_s=' .text
24883 mfcr r3,128';;
24884 *) conftest_s=' .machine power4
24885 .text
24886 mfcr 3,128';;
24887 esac
24888
24889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24890 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24891 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24892 $as_echo_n "(cached) " >&6
24893 else
24894 gcc_cv_as_powerpc_mfcrf=no
24895 if test $in_tree_gas = yes; then
24896 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24897 then gcc_cv_as_powerpc_mfcrf=yes
24898 fi
24899 elif test x$gcc_cv_as != x; then
24900 $as_echo "$conftest_s" > conftest.s
24901 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24903 (eval $ac_try) 2>&5
24904 ac_status=$?
24905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24906 test $ac_status = 0; }; }
24907 then
24908 gcc_cv_as_powerpc_mfcrf=yes
24909 else
24910 echo "configure: failed program was" >&5
24911 cat conftest.s >&5
24912 fi
24913 rm -f conftest.o conftest.s
24914 fi
24915 fi
24916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24917 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24918 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24919
24920 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24921
24922 fi
24923
24924 case $target in
24925 *-*-aix*) conftest_s=' .machine "pwr5"
24926 .csect .text[PR]
24927 popcntb 3,3';;
24928 *) conftest_s=' .machine power5
24929 .text
24930 popcntb 3,3';;
24931 esac
24932
24933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24934 $as_echo_n "checking assembler for popcntb support... " >&6; }
24935 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24936 $as_echo_n "(cached) " >&6
24937 else
24938 gcc_cv_as_powerpc_popcntb=no
24939 if test $in_tree_gas = yes; then
24940 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24941 then gcc_cv_as_powerpc_popcntb=yes
24942 fi
24943 elif test x$gcc_cv_as != x; then
24944 $as_echo "$conftest_s" > conftest.s
24945 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24947 (eval $ac_try) 2>&5
24948 ac_status=$?
24949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24950 test $ac_status = 0; }; }
24951 then
24952 gcc_cv_as_powerpc_popcntb=yes
24953 else
24954 echo "configure: failed program was" >&5
24955 cat conftest.s >&5
24956 fi
24957 rm -f conftest.o conftest.s
24958 fi
24959 fi
24960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24961 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24962 if test $gcc_cv_as_powerpc_popcntb = yes; then
24963
24964 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24965
24966 fi
24967
24968 case $target in
24969 *-*-aix*) conftest_s=' .machine "pwr5x"
24970 .csect .text[PR]
24971 frin 1,1';;
24972 *) conftest_s=' .machine power5
24973 .text
24974 frin 1,1';;
24975 esac
24976
24977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24978 $as_echo_n "checking assembler for fp round support... " >&6; }
24979 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24980 $as_echo_n "(cached) " >&6
24981 else
24982 gcc_cv_as_powerpc_fprnd=no
24983 if test $in_tree_gas = yes; then
24984 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24985 then gcc_cv_as_powerpc_fprnd=yes
24986 fi
24987 elif test x$gcc_cv_as != x; then
24988 $as_echo "$conftest_s" > conftest.s
24989 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24991 (eval $ac_try) 2>&5
24992 ac_status=$?
24993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24994 test $ac_status = 0; }; }
24995 then
24996 gcc_cv_as_powerpc_fprnd=yes
24997 else
24998 echo "configure: failed program was" >&5
24999 cat conftest.s >&5
25000 fi
25001 rm -f conftest.o conftest.s
25002 fi
25003 fi
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25005 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25006 if test $gcc_cv_as_powerpc_fprnd = yes; then
25007
25008 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25009
25010 fi
25011
25012 case $target in
25013 *-*-aix*) conftest_s=' .machine "pwr6"
25014 .csect .text[PR]
25015 mffgpr 1,3';;
25016 *) conftest_s=' .machine power6
25017 .text
25018 mffgpr 1,3';;
25019 esac
25020
25021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25022 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25023 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25024 $as_echo_n "(cached) " >&6
25025 else
25026 gcc_cv_as_powerpc_mfpgpr=no
25027 if test $in_tree_gas = yes; then
25028 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25029 then gcc_cv_as_powerpc_mfpgpr=yes
25030 fi
25031 elif test x$gcc_cv_as != x; then
25032 $as_echo "$conftest_s" > conftest.s
25033 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25035 (eval $ac_try) 2>&5
25036 ac_status=$?
25037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25038 test $ac_status = 0; }; }
25039 then
25040 gcc_cv_as_powerpc_mfpgpr=yes
25041 else
25042 echo "configure: failed program was" >&5
25043 cat conftest.s >&5
25044 fi
25045 rm -f conftest.o conftest.s
25046 fi
25047 fi
25048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25049 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25050 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25051
25052 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25053
25054 fi
25055
25056 case $target in
25057 *-*-aix*) conftest_s=' .csect .text[PR]
25058 LCF..0:
25059 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25060 *-*-darwin*)
25061 conftest_s=' .text
25062 LCF0:
25063 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25064 *) conftest_s=' .text
25065 .LCF0:
25066 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25067 esac
25068
25069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25070 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25071 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25072 $as_echo_n "(cached) " >&6
25073 else
25074 gcc_cv_as_powerpc_rel16=no
25075 if test $in_tree_gas = yes; then
25076 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25077 then gcc_cv_as_powerpc_rel16=yes
25078 fi
25079 elif test x$gcc_cv_as != x; then
25080 $as_echo "$conftest_s" > conftest.s
25081 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25083 (eval $ac_try) 2>&5
25084 ac_status=$?
25085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25086 test $ac_status = 0; }; }
25087 then
25088 gcc_cv_as_powerpc_rel16=yes
25089 else
25090 echo "configure: failed program was" >&5
25091 cat conftest.s >&5
25092 fi
25093 rm -f conftest.o conftest.s
25094 fi
25095 fi
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25097 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25098 if test $gcc_cv_as_powerpc_rel16 = yes; then
25099
25100 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25101
25102 fi
25103
25104 case $target in
25105 *-*-aix*) conftest_s=' .machine "pwr6"
25106 .csect .text[PR]
25107 cmpb 3,4,5';;
25108 *) conftest_s=' .machine power6
25109 .text
25110 cmpb 3,4,5';;
25111 esac
25112
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25114 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25115 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25116 $as_echo_n "(cached) " >&6
25117 else
25118 gcc_cv_as_powerpc_cmpb=no
25119 if test $in_tree_gas = yes; then
25120 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25121 then gcc_cv_as_powerpc_cmpb=yes
25122 fi
25123 elif test x$gcc_cv_as != x; then
25124 $as_echo "$conftest_s" > conftest.s
25125 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25127 (eval $ac_try) 2>&5
25128 ac_status=$?
25129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25130 test $ac_status = 0; }; }
25131 then
25132 gcc_cv_as_powerpc_cmpb=yes
25133 else
25134 echo "configure: failed program was" >&5
25135 cat conftest.s >&5
25136 fi
25137 rm -f conftest.o conftest.s
25138 fi
25139 fi
25140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25141 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25142 if test $gcc_cv_as_powerpc_cmpb = yes; then
25143
25144 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25145
25146 fi
25147
25148 case $target in
25149 *-*-aix*) conftest_s=' .machine "pwr6"
25150 .csect .text[PR]
25151 dadd 1,2,3';;
25152 *) conftest_s=' .machine power6
25153 .text
25154 dadd 1,2,3';;
25155 esac
25156
25157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25158 $as_echo_n "checking assembler for decimal float support... " >&6; }
25159 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25160 $as_echo_n "(cached) " >&6
25161 else
25162 gcc_cv_as_powerpc_dfp=no
25163 if test $in_tree_gas = yes; then
25164 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25165 then gcc_cv_as_powerpc_dfp=yes
25166 fi
25167 elif test x$gcc_cv_as != x; then
25168 $as_echo "$conftest_s" > conftest.s
25169 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25171 (eval $ac_try) 2>&5
25172 ac_status=$?
25173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25174 test $ac_status = 0; }; }
25175 then
25176 gcc_cv_as_powerpc_dfp=yes
25177 else
25178 echo "configure: failed program was" >&5
25179 cat conftest.s >&5
25180 fi
25181 rm -f conftest.o conftest.s
25182 fi
25183 fi
25184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25185 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25186 if test $gcc_cv_as_powerpc_dfp = yes; then
25187
25188 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25189
25190 fi
25191
25192 case $target in
25193 *-*-aix*) conftest_s=' .machine "pwr7"
25194 .csect .text[PR]
25195 lxvd2x 1,2,3';;
25196 *) conftest_s=' .machine power7
25197 .text
25198 lxvd2x 1,2,3';;
25199 esac
25200
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25202 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25203 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25204 $as_echo_n "(cached) " >&6
25205 else
25206 gcc_cv_as_powerpc_vsx=no
25207 if test $in_tree_gas = yes; then
25208 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25209 then gcc_cv_as_powerpc_vsx=yes
25210 fi
25211 elif test x$gcc_cv_as != x; then
25212 $as_echo "$conftest_s" > conftest.s
25213 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25215 (eval $ac_try) 2>&5
25216 ac_status=$?
25217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25218 test $ac_status = 0; }; }
25219 then
25220 gcc_cv_as_powerpc_vsx=yes
25221 else
25222 echo "configure: failed program was" >&5
25223 cat conftest.s >&5
25224 fi
25225 rm -f conftest.o conftest.s
25226 fi
25227 fi
25228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25229 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25230 if test $gcc_cv_as_powerpc_vsx = yes; then
25231
25232 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25233
25234 fi
25235
25236 case $target in
25237 *-*-aix*) conftest_s=' .machine "pwr7"
25238 .csect .text[PR]
25239 popcntd 3,3';;
25240 *) conftest_s=' .machine power7
25241 .text
25242 popcntd 3,3';;
25243 esac
25244
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25246 $as_echo_n "checking assembler for popcntd support... " >&6; }
25247 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25248 $as_echo_n "(cached) " >&6
25249 else
25250 gcc_cv_as_powerpc_popcntd=no
25251 if test $in_tree_gas = yes; then
25252 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25253 then gcc_cv_as_powerpc_popcntd=yes
25254 fi
25255 elif test x$gcc_cv_as != x; then
25256 $as_echo "$conftest_s" > conftest.s
25257 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25259 (eval $ac_try) 2>&5
25260 ac_status=$?
25261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25262 test $ac_status = 0; }; }
25263 then
25264 gcc_cv_as_powerpc_popcntd=yes
25265 else
25266 echo "configure: failed program was" >&5
25267 cat conftest.s >&5
25268 fi
25269 rm -f conftest.o conftest.s
25270 fi
25271 fi
25272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25273 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25274 if test $gcc_cv_as_powerpc_popcntd = yes; then
25275
25276 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25277
25278 fi
25279
25280 case $target in
25281 *-*-aix*) conftest_s=' .csect .text[PR]
25282 lwsync';;
25283 *) conftest_s=' .text
25284 lwsync';;
25285 esac
25286
25287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25288 $as_echo_n "checking assembler for lwsync support... " >&6; }
25289 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25290 $as_echo_n "(cached) " >&6
25291 else
25292 gcc_cv_as_powerpc_lwsync=no
25293 if test $in_tree_gas = yes; then
25294 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25295 then gcc_cv_as_powerpc_lwsync=yes
25296 fi
25297 elif test x$gcc_cv_as != x; then
25298 $as_echo "$conftest_s" > conftest.s
25299 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25301 (eval $ac_try) 2>&5
25302 ac_status=$?
25303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25304 test $ac_status = 0; }; }
25305 then
25306 gcc_cv_as_powerpc_lwsync=yes
25307 else
25308 echo "configure: failed program was" >&5
25309 cat conftest.s >&5
25310 fi
25311 rm -f conftest.o conftest.s
25312 fi
25313 fi
25314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25315 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25316 if test $gcc_cv_as_powerpc_lwsync = yes; then
25317
25318 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25319
25320 fi
25321
25322 case $target in
25323 *-*-aix*) conftest_s=' .machine "476"
25324 .csect .text[PR]
25325 dci 0';;
25326 *) conftest_s=' .machine "476"
25327 .text
25328 dci 0';;
25329 esac
25330
25331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25332 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25333 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25334 $as_echo_n "(cached) " >&6
25335 else
25336 gcc_cv_as_powerpc_dci=no
25337 if test $in_tree_gas = yes; then
25338 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25339 then gcc_cv_as_powerpc_dci=yes
25340 fi
25341 elif test x$gcc_cv_as != x; then
25342 $as_echo "$conftest_s" > conftest.s
25343 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25345 (eval $ac_try) 2>&5
25346 ac_status=$?
25347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25348 test $ac_status = 0; }; }
25349 then
25350 gcc_cv_as_powerpc_dci=yes
25351 else
25352 echo "configure: failed program was" >&5
25353 cat conftest.s >&5
25354 fi
25355 rm -f conftest.o conftest.s
25356 fi
25357 fi
25358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25359 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25360 if test $gcc_cv_as_powerpc_dci = yes; then
25361
25362 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25363
25364 fi
25365
25366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25367 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25368 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25369 $as_echo_n "(cached) " >&6
25370 else
25371 gcc_cv_as_powerpc_gnu_attribute=no
25372 if test $in_tree_gas = yes; then
25373 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25374 then gcc_cv_as_powerpc_gnu_attribute=yes
25375 fi
25376 elif test x$gcc_cv_as != x; then
25377 $as_echo '.gnu_attribute 4,1' > conftest.s
25378 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25380 (eval $ac_try) 2>&5
25381 ac_status=$?
25382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25383 test $ac_status = 0; }; }
25384 then
25385 gcc_cv_as_powerpc_gnu_attribute=yes
25386 else
25387 echo "configure: failed program was" >&5
25388 cat conftest.s >&5
25389 fi
25390 rm -f conftest.o conftest.s
25391 fi
25392 fi
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25394 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25395 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25396
25397 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25398
25399 fi
25400
25401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25402 $as_echo_n "checking assembler for tls marker support... " >&6; }
25403 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25404 $as_echo_n "(cached) " >&6
25405 else
25406 gcc_cv_as_powerpc_tls_markers=no
25407 if test $in_tree_gas = yes; then
25408 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25409 then gcc_cv_as_powerpc_tls_markers=yes
25410 fi
25411 elif test x$gcc_cv_as != x; then
25412 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25413 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25415 (eval $ac_try) 2>&5
25416 ac_status=$?
25417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25418 test $ac_status = 0; }; }
25419 then
25420 gcc_cv_as_powerpc_tls_markers=yes
25421 else
25422 echo "configure: failed program was" >&5
25423 cat conftest.s >&5
25424 fi
25425 rm -f conftest.o conftest.s
25426 fi
25427 fi
25428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25429 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25430 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25431
25432 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25433
25434 fi
25435
25436 case $target in
25437 *-*-aix*)
25438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25439 $as_echo_n "checking assembler for .ref support... " >&6; }
25440 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25441 $as_echo_n "(cached) " >&6
25442 else
25443 gcc_cv_as_aix_ref=no
25444 if test $in_tree_gas = yes; then
25445 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25446 then :
25447 fi
25448 elif test x$gcc_cv_as != x; then
25449 $as_echo ' .csect stuff[rw]
25450 stuff:
25451 .long 1
25452 .extern sym
25453 .ref sym
25454 ' > conftest.s
25455 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25457 (eval $ac_try) 2>&5
25458 ac_status=$?
25459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25460 test $ac_status = 0; }; }
25461 then
25462 gcc_cv_as_aix_ref=yes
25463 else
25464 echo "configure: failed program was" >&5
25465 cat conftest.s >&5
25466 fi
25467 rm -f conftest.o conftest.s
25468 fi
25469 fi
25470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25471 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25472 if test $gcc_cv_as_aix_ref = yes; then
25473
25474 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25475
25476 fi
25477 ;;
25478 esac
25479 ;;
25480
25481 mips*-*-*)
25482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25483 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25484 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25485 $as_echo_n "(cached) " >&6
25486 else
25487 gcc_cv_as_mips_explicit_relocs=no
25488 if test $in_tree_gas = yes; then
25489 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25490 then gcc_cv_as_mips_explicit_relocs=yes
25491 fi
25492 elif test x$gcc_cv_as != x; then
25493 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25494 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25496 (eval $ac_try) 2>&5
25497 ac_status=$?
25498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25499 test $ac_status = 0; }; }
25500 then
25501 gcc_cv_as_mips_explicit_relocs=yes
25502 else
25503 echo "configure: failed program was" >&5
25504 cat conftest.s >&5
25505 fi
25506 rm -f conftest.o conftest.s
25507 fi
25508 fi
25509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25510 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25511 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25512 if test x$target_cpu_default = x
25513 then target_cpu_default=MASK_EXPLICIT_RELOCS
25514 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25515 fi
25516 fi
25517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25518 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25519 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25520 $as_echo_n "(cached) " >&6
25521 else
25522 gcc_cv_as_mips_no_shared=no
25523 if test $in_tree_gas = yes; then
25524 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25525 then gcc_cv_as_mips_no_shared=yes
25526 fi
25527 elif test x$gcc_cv_as != x; then
25528 $as_echo 'nop' > conftest.s
25529 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25531 (eval $ac_try) 2>&5
25532 ac_status=$?
25533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25534 test $ac_status = 0; }; }
25535 then
25536 gcc_cv_as_mips_no_shared=yes
25537 else
25538 echo "configure: failed program was" >&5
25539 cat conftest.s >&5
25540 fi
25541 rm -f conftest.o conftest.s
25542 fi
25543 fi
25544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25545 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25546 if test $gcc_cv_as_mips_no_shared = yes; then
25547
25548 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25549
25550 fi
25551
25552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25553 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25554 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25555 $as_echo_n "(cached) " >&6
25556 else
25557 gcc_cv_as_mips_gnu_attribute=no
25558 if test $in_tree_gas = yes; then
25559 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25560 then gcc_cv_as_mips_gnu_attribute=yes
25561 fi
25562 elif test x$gcc_cv_as != x; then
25563 $as_echo '.gnu_attribute 4,1' > conftest.s
25564 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25566 (eval $ac_try) 2>&5
25567 ac_status=$?
25568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25569 test $ac_status = 0; }; }
25570 then
25571 gcc_cv_as_mips_gnu_attribute=yes
25572 else
25573 echo "configure: failed program was" >&5
25574 cat conftest.s >&5
25575 fi
25576 rm -f conftest.o conftest.s
25577 fi
25578 fi
25579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25580 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25581 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25582
25583 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25584
25585 fi
25586
25587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25588 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25589 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25590 $as_echo_n "(cached) " >&6
25591 else
25592 gcc_cv_as_mips_dtprelword=no
25593 if test $in_tree_gas = yes; then
25594 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25595 then gcc_cv_as_mips_dtprelword=yes
25596 fi
25597 elif test x$gcc_cv_as != x; then
25598 $as_echo '.section .tdata,"awT",@progbits
25599 x:
25600 .word 2
25601 .text
25602 .dtprelword x+0x8000' > conftest.s
25603 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25605 (eval $ac_try) 2>&5
25606 ac_status=$?
25607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25608 test $ac_status = 0; }; }
25609 then
25610 gcc_cv_as_mips_dtprelword=yes
25611 else
25612 echo "configure: failed program was" >&5
25613 cat conftest.s >&5
25614 fi
25615 rm -f conftest.o conftest.s
25616 fi
25617 fi
25618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25619 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25620 if test $gcc_cv_as_mips_dtprelword = yes; then
25621
25622 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25623
25624 fi
25625
25626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25627 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25628 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25629 $as_echo_n "(cached) " >&6
25630 else
25631 gcc_cv_as_mips_dspr1_mult=no
25632 if test x$gcc_cv_as != x; then
25633 $as_echo ' .set mips32r2
25634 .set nodspr2
25635 .set dsp
25636 madd $ac3,$4,$5
25637 maddu $ac3,$4,$5
25638 msub $ac3,$4,$5
25639 msubu $ac3,$4,$5
25640 mult $ac3,$4,$5
25641 multu $ac3,$4,$5' > conftest.s
25642 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25644 (eval $ac_try) 2>&5
25645 ac_status=$?
25646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25647 test $ac_status = 0; }; }
25648 then
25649 gcc_cv_as_mips_dspr1_mult=yes
25650 else
25651 echo "configure: failed program was" >&5
25652 cat conftest.s >&5
25653 fi
25654 rm -f conftest.o conftest.s
25655 fi
25656 fi
25657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25658 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25659 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25660
25661 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25662
25663 fi
25664
25665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25666 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25667 gcc_cv_as_ld_jalr_reloc=no
25668 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25669 if test $in_tree_ld = yes ; then
25670 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 \
25671 && test $in_tree_ld_is_elf = yes; then
25672 gcc_cv_as_ld_jalr_reloc=yes
25673 fi
25674 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25675 echo ' .ent x' > conftest.s
25676 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25677 echo ' ld $25,%call16(y)($28)' >> conftest.s
25678 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25679 echo '1: jalr $25' >> conftest.s
25680 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25681 echo '1: jalr $25' >> conftest.s
25682 echo ' .end x' >> conftest.s
25683 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25684 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25685 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25686 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25687 gcc_cv_as_ld_jalr_reloc=yes
25688 fi
25689 fi
25690 rm -f conftest.*
25691 fi
25692 fi
25693 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25694 if test x$target_cpu_default = x; then
25695 target_cpu_default=MASK_RELAX_PIC_CALLS
25696 else
25697 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25698 fi
25699 fi
25700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25701 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25702
25703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25704 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25705 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25706 $as_echo_n "(cached) " >&6
25707 else
25708 gcc_cv_ld_mips_personality_relaxation=no
25709 if test $in_tree_ld = yes ; then
25710 if test "$gcc_cv_gld_major_version" -eq 2 \
25711 -a "$gcc_cv_gld_minor_version" -ge 21 \
25712 -o "$gcc_cv_gld_major_version" -gt 2; then
25713 gcc_cv_ld_mips_personality_relaxation=yes
25714 fi
25715 elif test x$gcc_cv_as != x \
25716 -a x$gcc_cv_ld != x \
25717 -a x$gcc_cv_readelf != x ; then
25718 cat > conftest.s <<EOF
25719 .cfi_startproc
25720 .cfi_personality 0x80,indirect_ptr
25721 .ent test
25722 test:
25723 nop
25724 .end test
25725 .cfi_endproc
25726
25727 .section .data,"aw",@progbits
25728 indirect_ptr:
25729 .dc.a personality
25730 EOF
25731 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25732 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25733 if $gcc_cv_readelf -d conftest 2>&1 \
25734 | grep TEXTREL > /dev/null 2>&1; then
25735 :
25736 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25737 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25738 :
25739 else
25740 gcc_cv_ld_mips_personality_relaxation=yes
25741 fi
25742 fi
25743 fi
25744 rm -f conftest.s conftest.o conftest
25745 fi
25746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25747 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25748 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25749
25750 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25751
25752 fi
25753 ;;
25754 esac
25755
25756 # Mips and HP-UX need the GNU assembler.
25757 # Linux on IA64 might be able to use the Intel assembler.
25758
25759 case "$target" in
25760 mips*-*-* | *-*-hpux* )
25761 if test x$gas_flag = xyes \
25762 || test x"$host" != x"$build" \
25763 || test ! -x "$gcc_cv_as" \
25764 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25765 :
25766 else
25767 echo "*** This configuration requires the GNU assembler" >&2
25768 exit 1
25769 fi
25770 ;;
25771 esac
25772
25773 # ??? Not all targets support dwarf2 debug_line, even within a version
25774 # of gas. Moreover, we need to emit a valid instruction to trigger any
25775 # info to the output file. So, as supported targets are added to gas 2.11,
25776 # add some instruction here to (also) show we expect this might work.
25777 # ??? Once 2.11 is released, probably need to add first known working
25778 # version to the per-target configury.
25779 case "$cpu_type" in
25780 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25781 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
25782 insn="nop"
25783 ;;
25784 ia64 | s390)
25785 insn="nop 0"
25786 ;;
25787 mmix)
25788 insn="swym 0"
25789 ;;
25790 esac
25791 if test x"$insn" != x; then
25792 conftest_s="\
25793 .file 1 \"conftest.s\"
25794 .loc 1 3 0
25795 $insn"
25796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25797 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25798 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25799 $as_echo_n "(cached) " >&6
25800 else
25801 gcc_cv_as_dwarf2_debug_line=no
25802 if test $in_tree_gas = yes; then
25803 if test $in_tree_gas_is_elf = yes \
25804 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25805 then gcc_cv_as_dwarf2_debug_line=yes
25806 fi
25807 elif test x$gcc_cv_as != x; then
25808 $as_echo "$conftest_s" > conftest.s
25809 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25811 (eval $ac_try) 2>&5
25812 ac_status=$?
25813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25814 test $ac_status = 0; }; }
25815 then
25816 if test x$gcc_cv_objdump != x \
25817 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25818 | grep debug_line > /dev/null 2>&1; then
25819 gcc_cv_as_dwarf2_debug_line=yes
25820 fi
25821 else
25822 echo "configure: failed program was" >&5
25823 cat conftest.s >&5
25824 fi
25825 rm -f conftest.o conftest.s
25826 fi
25827 fi
25828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25829 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25830
25831
25832 # The .debug_line file table must be in the exact order that
25833 # we specified the files, since these indices are also used
25834 # by DW_AT_decl_file. Approximate this test by testing if
25835 # the assembler bitches if the same index is assigned twice.
25836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25837 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25838 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25839 $as_echo_n "(cached) " >&6
25840 else
25841 gcc_cv_as_dwarf2_file_buggy=no
25842 if test x$gcc_cv_as != x; then
25843 $as_echo ' .file 1 "foo.s"
25844 .file 1 "bar.s"' > conftest.s
25845 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25847 (eval $ac_try) 2>&5
25848 ac_status=$?
25849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25850 test $ac_status = 0; }; }
25851 then
25852 gcc_cv_as_dwarf2_file_buggy=yes
25853 else
25854 echo "configure: failed program was" >&5
25855 cat conftest.s >&5
25856 fi
25857 rm -f conftest.o conftest.s
25858 fi
25859 fi
25860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25861 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25862
25863
25864 if test $gcc_cv_as_dwarf2_debug_line = yes \
25865 && test $gcc_cv_as_dwarf2_file_buggy = no; then
25866
25867 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25868
25869 fi
25870
25871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25872 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25873 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25874 $as_echo_n "(cached) " >&6
25875 else
25876 gcc_cv_as_gdwarf2_flag=no
25877 if test $in_tree_gas = yes; then
25878 if test $in_tree_gas_is_elf = yes \
25879 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25880 then gcc_cv_as_gdwarf2_flag=yes
25881 fi
25882 elif test x$gcc_cv_as != x; then
25883 $as_echo "$insn" > conftest.s
25884 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25886 (eval $ac_try) 2>&5
25887 ac_status=$?
25888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25889 test $ac_status = 0; }; }
25890 then
25891 gcc_cv_as_gdwarf2_flag=yes
25892 else
25893 echo "configure: failed program was" >&5
25894 cat conftest.s >&5
25895 fi
25896 rm -f conftest.o conftest.s
25897 fi
25898 fi
25899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25900 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25901 if test $gcc_cv_as_gdwarf2_flag = yes; then
25902
25903 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25904
25905 fi
25906
25907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25908 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25909 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25910 $as_echo_n "(cached) " >&6
25911 else
25912 gcc_cv_as_gstabs_flag=no
25913 if test $in_tree_gas = yes; then
25914 if test $in_tree_gas_is_elf = yes \
25915 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25916 then gcc_cv_as_gstabs_flag=yes
25917 fi
25918 elif test x$gcc_cv_as != x; then
25919 $as_echo "$insn" > conftest.s
25920 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25922 (eval $ac_try) 2>&5
25923 ac_status=$?
25924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25925 test $ac_status = 0; }; }
25926 then
25927 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25928 # and warns about it, but still exits successfully. So check for
25929 # this.
25930 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25932 (eval $ac_try) 2>&5
25933 ac_status=$?
25934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25935 test $ac_status = 0; }; }
25936 then :
25937 else gcc_cv_as_gstabs_flag=yes
25938 fi
25939 else
25940 echo "configure: failed program was" >&5
25941 cat conftest.s >&5
25942 fi
25943 rm -f conftest.o conftest.s
25944 fi
25945 fi
25946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25947 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25948 if test $gcc_cv_as_gstabs_flag = yes; then
25949
25950 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25951
25952 fi
25953
25954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25955 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25956 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25957 $as_echo_n "(cached) " >&6
25958 else
25959 gcc_cv_as_debug_prefix_map_flag=no
25960 if test $in_tree_gas = yes; then
25961 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25962 then gcc_cv_as_debug_prefix_map_flag=yes
25963 fi
25964 elif test x$gcc_cv_as != x; then
25965 $as_echo "$insn" > conftest.s
25966 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25968 (eval $ac_try) 2>&5
25969 ac_status=$?
25970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25971 test $ac_status = 0; }; }
25972 then
25973 gcc_cv_as_debug_prefix_map_flag=yes
25974 else
25975 echo "configure: failed program was" >&5
25976 cat conftest.s >&5
25977 fi
25978 rm -f conftest.o conftest.s
25979 fi
25980 fi
25981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25982 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25983 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25984
25985 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25986
25987 fi
25988 fi
25989
25990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25991 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25992 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25993 $as_echo_n "(cached) " >&6
25994 else
25995 gcc_cv_as_lcomm_with_alignment=no
25996 if test x$gcc_cv_as != x; then
25997 $as_echo '.lcomm bar,4,16' > conftest.s
25998 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26000 (eval $ac_try) 2>&5
26001 ac_status=$?
26002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26003 test $ac_status = 0; }; }
26004 then
26005 gcc_cv_as_lcomm_with_alignment=yes
26006 else
26007 echo "configure: failed program was" >&5
26008 cat conftest.s >&5
26009 fi
26010 rm -f conftest.o conftest.s
26011 fi
26012 fi
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26014 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26015 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26016
26017 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26018
26019 fi
26020
26021 # Check whether --enable-gnu-unique-object was given.
26022 if test "${enable_gnu_unique_object+set}" = set; then :
26023 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26024 yes | no) ;;
26025 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26026 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26027 esac
26028 else
26029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26030 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26031 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26032 $as_echo_n "(cached) " >&6
26033 else
26034 gcc_cv_as_gnu_unique_object=no
26035 if test $in_tree_gas = yes; then
26036 if test $in_tree_gas_is_elf = yes \
26037 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26038 then gcc_cv_as_gnu_unique_object=yes
26039 fi
26040 elif test x$gcc_cv_as != x; then
26041 $as_echo '.type foo, @gnu_unique_object' > conftest.s
26042 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26044 (eval $ac_try) 2>&5
26045 ac_status=$?
26046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26047 test $ac_status = 0; }; }
26048 then
26049 gcc_cv_as_gnu_unique_object=yes
26050 else
26051 echo "configure: failed program was" >&5
26052 cat conftest.s >&5
26053 fi
26054 rm -f conftest.o conftest.s
26055 fi
26056 fi
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26058 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26059 if test $gcc_cv_as_gnu_unique_object = yes; then
26060 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26061 if test x$host = x$build -a x$host = x$target &&
26062 ldd --version 2>/dev/null &&
26063 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26064 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26065 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26066 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26067 if test "$glibcnum" -ge 2011 ; then
26068 enable_gnu_unique_object=yes
26069 fi
26070 fi
26071 fi
26072 fi
26073
26074 if test x$enable_gnu_unique_object = xyes; then
26075
26076 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26077
26078 fi
26079
26080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26081 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26082 if test "${gcc_cv_as_line_zero+set}" = set; then :
26083 $as_echo_n "(cached) " >&6
26084 else
26085 gcc_cv_as_line_zero=no
26086 if test $in_tree_gas = yes; then
26087 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26088 then gcc_cv_as_line_zero=yes
26089 fi
26090 elif test "x$gcc_cv_as" != x; then
26091 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26092 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26094 (eval $ac_try) 2>&5
26095 ac_status=$?
26096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26097 test $ac_status = 0; }; } &&
26098 test "x`cat conftest.out`" = x
26099 then
26100 gcc_cv_as_line_zero=yes
26101 else
26102 echo "configure: failed program was" >&5
26103 cat conftest.s >&5
26104 echo "configure: error output was" >&5
26105 cat conftest.out >&5
26106 fi
26107 rm -f conftest.o conftest.s conftest.out
26108 fi
26109 fi
26110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26111 $as_echo "$gcc_cv_as_line_zero" >&6; }
26112 if test "x$gcc_cv_as_line_zero" = xyes; then
26113
26114 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26115
26116 fi
26117
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26119 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26120 gcc_cv_ld_eh_frame_hdr=no
26121 if test $in_tree_ld = yes ; then
26122 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 \
26123 && test $in_tree_ld_is_elf = yes; then
26124 gcc_cv_ld_eh_frame_hdr=yes
26125 fi
26126 elif test x$gcc_cv_ld != x; then
26127 if echo "$ld_ver" | grep GNU > /dev/null; then
26128 # Check if linker supports --eh-frame-hdr option
26129 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26130 gcc_cv_ld_eh_frame_hdr=yes
26131 fi
26132 else
26133 case "$target" in
26134 *-*-solaris2*)
26135 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26136 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26137 gcc_cv_ld_eh_frame_hdr=yes
26138 fi
26139 ;;
26140 esac
26141 fi
26142 fi
26143
26144 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26145
26146 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26147
26148 fi
26149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26150 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26151
26152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26153 $as_echo_n "checking linker position independent executable support... " >&6; }
26154 gcc_cv_ld_pie=no
26155 if test $in_tree_ld = yes ; then
26156 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 \
26157 && test $in_tree_ld_is_elf = yes; then
26158 gcc_cv_ld_pie=yes
26159 fi
26160 elif test x$gcc_cv_ld != x; then
26161 # Check if linker supports -pie option
26162 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26163 gcc_cv_ld_pie=yes
26164 fi
26165 fi
26166 if test x"$gcc_cv_ld_pie" = xyes; then
26167
26168 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26169
26170 fi
26171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26172 $as_echo "$gcc_cv_ld_pie" >&6; }
26173
26174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26175 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26176 gcc_cv_ld_eh_gc_sections=no
26177 if test $in_tree_ld = yes ; then
26178 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 \
26179 && test $in_tree_ld_is_elf = yes; then
26180 gcc_cv_ld_eh_gc_sections=yes
26181 fi
26182 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26183 cat > conftest.s <<EOF
26184 .section .text
26185 .globl _start
26186 .type _start, @function
26187 _start:
26188 .long foo
26189 .size _start, .-_start
26190 .section .text.foo,"ax",@progbits
26191 .type foo, @function
26192 foo:
26193 .long 0
26194 .size foo, .-foo
26195 .section .gcc_except_table.foo,"a",@progbits
26196 .L0:
26197 .long 0
26198 .section .eh_frame,"a",@progbits
26199 .long .L0
26200 EOF
26201 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26202 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26203 | grep "gc-sections option ignored" > /dev/null; then
26204 gcc_cv_ld_eh_gc_sections=no
26205 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26206 | grep gcc_except_table > /dev/null; then
26207 gcc_cv_ld_eh_gc_sections=yes
26208 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26209 if test x$gcc_cv_as_comdat_group != xyes; then
26210 gcc_cv_ld_eh_gc_sections=no
26211 cat > conftest.s <<EOF
26212 .section .text
26213 .globl _start
26214 .type _start, @function
26215 _start:
26216 .long foo
26217 .size _start, .-_start
26218 .section .gnu.linkonce.t.foo,"ax",@progbits
26219 .type foo, @function
26220 foo:
26221 .long 0
26222 .size foo, .-foo
26223 .section .gcc_except_table.foo,"a",@progbits
26224 .L0:
26225 .long 0
26226 .section .eh_frame,"a",@progbits
26227 .long .L0
26228 EOF
26229 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26230 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26231 | grep "gc-sections option ignored" > /dev/null; then
26232 gcc_cv_ld_eh_gc_sections=no
26233 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26234 | grep gcc_except_table > /dev/null; then
26235 gcc_cv_ld_eh_gc_sections=yes
26236 fi
26237 fi
26238 fi
26239 fi
26240 fi
26241 rm -f conftest.s conftest.o conftest
26242 fi
26243 case "$target" in
26244 hppa*-*-linux*)
26245 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26246 gcc_cv_ld_eh_gc_sections=no
26247 ;;
26248 esac
26249 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26250
26251 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26252
26253 fi
26254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26255 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26256
26257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26258 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26259 gcc_cv_ld_eh_gc_sections_bug=no
26260 if test $in_tree_ld = yes ; then
26261 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 \
26262 && test $in_tree_ld_is_elf = yes; then
26263 gcc_cv_ld_eh_gc_sections_bug=yes
26264 fi
26265 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
26266 gcc_cv_ld_eh_gc_sections_bug=yes
26267 cat > conftest.s <<EOF
26268 .section .text
26269 .globl _start
26270 .type _start, @function
26271 _start:
26272 .long foo
26273 .size _start, .-_start
26274 .section .text.startup.foo,"ax",@progbits
26275 .type foo, @function
26276 foo:
26277 .long 0
26278 .size foo, .-foo
26279 .section .gcc_except_table.foo,"a",@progbits
26280 .L0:
26281 .long 0
26282 .section .eh_frame,"a",@progbits
26283 .long .L0
26284 EOF
26285 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26286 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26287 | grep "gc-sections option ignored" > /dev/null; then
26288 :
26289 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26290 | grep gcc_except_table > /dev/null; then
26291 gcc_cv_ld_eh_gc_sections_bug=no
26292 fi
26293 fi
26294 rm -f conftest.s conftest.o conftest
26295 fi
26296 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26297
26298 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26299
26300 fi
26301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26302 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26303
26304 # --------
26305 # UNSORTED
26306 # --------
26307
26308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26309 $as_echo_n "checking linker --as-needed support... " >&6; }
26310 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26311 $as_echo_n "(cached) " >&6
26312 else
26313 gcc_cv_ld_as_needed=no
26314 if test $in_tree_ld = yes ; then
26315 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 \
26316 && test $in_tree_ld_is_elf = yes; then
26317 gcc_cv_ld_as_needed=yes
26318 fi
26319 elif test x$gcc_cv_ld != x; then
26320 # Check if linker supports --as-needed and --no-as-needed options
26321 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26322 gcc_cv_ld_as_needed=yes
26323 fi
26324 fi
26325
26326 fi
26327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26328 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26329 if test x"$gcc_cv_ld_as_needed" = xyes; then
26330
26331 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26332
26333 fi
26334
26335 case "$target:$tm_file" in
26336 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26338 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26339 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26340 $as_echo_n "(cached) " >&6
26341 else
26342 gcc_cv_ld_no_dot_syms=no
26343 if test $in_tree_ld = yes ; then
26344 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
26345 gcc_cv_ld_no_dot_syms=yes
26346 fi
26347 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26348 cat > conftest1.s <<EOF
26349 .text
26350 bl .foo
26351 EOF
26352 cat > conftest2.s <<EOF
26353 .section ".opd","aw"
26354 .align 3
26355 .globl foo
26356 .type foo,@function
26357 foo:
26358 .quad .LEfoo,.TOC.@tocbase,0
26359 .text
26360 .LEfoo:
26361 blr
26362 .size foo,.-.LEfoo
26363 EOF
26364 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26365 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26366 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26367 gcc_cv_ld_no_dot_syms=yes
26368 fi
26369 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26370 fi
26371
26372 fi
26373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26374 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26375 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26376
26377 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26378
26379 fi
26380
26381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26382 $as_echo_n "checking linker large toc support... " >&6; }
26383 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26384 $as_echo_n "(cached) " >&6
26385 else
26386 gcc_cv_ld_large_toc=no
26387 if test $in_tree_ld = yes ; then
26388 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
26389 gcc_cv_ld_large_toc=yes
26390 fi
26391 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26392 cat > conftest.s <<EOF
26393 .section ".tbss","awT",@nobits
26394 .align 3
26395 ie0: .space 8
26396 .global _start
26397 .text
26398 _start:
26399 addis 9,13,ie0@got@tprel@ha
26400 ld 9,ie0@got@tprel@l(9)
26401 EOF
26402 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26403 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26404 gcc_cv_ld_large_toc=yes
26405 fi
26406 rm -f conftest conftest.o conftest.s
26407 fi
26408
26409 fi
26410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26411 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26412 if test x"$gcc_cv_ld_large_toc" = xyes; then
26413
26414 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26415
26416 fi
26417 ;;
26418 esac
26419
26420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26421 $as_echo_n "checking linker --build-id support... " >&6; }
26422 if test "${gcc_cv_ld_buildid+set}" = set; then :
26423 $as_echo_n "(cached) " >&6
26424 else
26425 gcc_cv_ld_buildid=no
26426 if test $in_tree_ld = yes ; then
26427 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26428 "$gcc_cv_gld_minor_version" -ge 18 -o \
26429 "$gcc_cv_gld_major_version" -gt 2 \
26430 && test $in_tree_ld_is_elf = yes; then
26431 gcc_cv_ld_buildid=yes
26432 fi
26433 elif test x$gcc_cv_ld != x; then
26434 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26435 gcc_cv_ld_buildid=yes
26436 fi
26437 fi
26438 fi
26439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26440 $as_echo "$gcc_cv_ld_buildid" >&6; }
26441 if test x"$gcc_cv_ld_buildid" = xyes; then
26442
26443 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26444
26445 fi
26446
26447 # Check whether --enable-linker-build-id was given.
26448 if test "${enable_linker_build_id+set}" = set; then :
26449 enableval=$enable_linker_build_id;
26450 else
26451 enable_linker_build_id=no
26452 fi
26453
26454
26455 if test x"$enable_linker_build_id" = xyes; then
26456 if test x"$gcc_cv_ld_buildid" = xyes; then
26457
26458 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26459
26460 else
26461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26462 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26463 fi
26464 fi
26465
26466 # In binutils 2.21, GNU ld gained support for new emulations fully
26467 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26469 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26470 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26471 $as_echo_n "(cached) " >&6
26472 else
26473 gcc_cv_ld_sol2_emulation=no
26474 if test $in_tree_ld = yes ; then
26475 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26476 "$gcc_cv_gld_minor_version" -ge 21 -o \
26477 "$gcc_cv_gld_major_version" -gt 2 \
26478 && test $in_tree_ld_is_elf = yes; then
26479 gcc_cv_ld_sol2_emulation=yes
26480 fi
26481 elif test x$gcc_cv_ld != x; then
26482 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26483 grep _sol2 > /dev/null; then
26484 gcc_cv_ld_sol2_emulation=yes
26485 fi
26486 fi
26487 fi
26488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26489 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26490 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26491
26492 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26493
26494 fi
26495
26496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26497 $as_echo_n "checking linker --sysroot support... " >&6; }
26498 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26499 $as_echo_n "(cached) " >&6
26500 else
26501 gcc_cv_ld_sysroot=no
26502 if test $in_tree_ld = yes ; then
26503 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
26504 gcc_cv_ld_sysroot=yes
26505 fi
26506 elif test x$gcc_cv_ld != x; then
26507 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26508 gcc_cv_ld_sysroot=yes
26509 fi
26510 fi
26511 fi
26512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26513 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26514 if test x"$gcc_cv_ld_sysroot" = xyes; then
26515
26516 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26517
26518 fi
26519
26520 if test x$with_sysroot = x && test x$host = x$target \
26521 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26522 && test "$prefix" != "NONE"; then
26523
26524 cat >>confdefs.h <<_ACEOF
26525 #define PREFIX_INCLUDE_DIR "$prefix/include"
26526 _ACEOF
26527
26528 fi
26529
26530 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26531 if test "x$with_headers" != x; then
26532 target_header_dir=$with_headers
26533 elif test "x$with_sysroot" = x; then
26534 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
26535 elif test "x$with_build_sysroot" != "x"; then
26536 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26537 elif test "x$with_sysroot" = xyes; then
26538 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26539 else
26540 target_header_dir="${with_sysroot}${native_system_header_dir}"
26541 fi
26542 else
26543 target_header_dir=${native_system_header_dir}
26544 fi
26545
26546 # Test for stack protector support in target C library.
26547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26548 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26549 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26550 $as_echo_n "(cached) " >&6
26551 else
26552 gcc_cv_libc_provides_ssp=no
26553 case "$target" in
26554 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26555 # glibc 2.4 and later provides __stack_chk_fail and
26556 # either __stack_chk_guard, or TLS access to stack guard canary.
26557 if test -f $target_header_dir/features.h \
26558 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26559 $target_header_dir/features.h > /dev/null; then
26560 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26561 $target_header_dir/features.h > /dev/null; then
26562 gcc_cv_libc_provides_ssp=yes
26563 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26564 $target_header_dir/features.h > /dev/null \
26565 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26566 $target_header_dir/features.h > /dev/null; then
26567 gcc_cv_libc_provides_ssp=yes
26568 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26569 $target_header_dir/features.h > /dev/null && \
26570 test -f $target_header_dir/bits/uClibc_config.h && \
26571 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26572 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26573 gcc_cv_libc_provides_ssp=yes
26574 fi
26575 fi
26576 ;;
26577 *-*-gnu*)
26578 # Avoid complicated tests (see
26579 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26580 # simply assert that glibc does provide this, which is true for all
26581 # realistically usable GNU/Hurd configurations.
26582 gcc_cv_libc_provides_ssp=yes;;
26583 *-*-darwin* | *-*-freebsd*)
26584 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26585 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26586 gcc_cv_libc_provides_ssp=yes
26587 else
26588 echo "no __stack_chk_fail on this target"
26589 fi
26590
26591 ;;
26592 *) gcc_cv_libc_provides_ssp=no ;;
26593 esac
26594 fi
26595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26596 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26597
26598 if test x$gcc_cv_libc_provides_ssp = xyes; then
26599
26600 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26601
26602 fi
26603
26604 # Test for <sys/sdt.h> on the target.
26605
26606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26607 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26608 have_sys_sdt_h=no
26609 if test -f $target_header_dir/sys/sdt.h; then
26610 have_sys_sdt_h=yes
26611
26612 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26613
26614 fi
26615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26616 $as_echo "$have_sys_sdt_h" >&6; }
26617
26618 # Check if TFmode long double should be used by default or not.
26619 # Some glibc targets used DFmode long double, but with glibc 2.4
26620 # and later they can use TFmode.
26621 case "$target" in
26622 powerpc*-*-linux* | \
26623 sparc*-*-linux* | \
26624 s390*-*-linux* | \
26625 alpha*-*-linux*)
26626
26627 # Check whether --with-long-double-128 was given.
26628 if test "${with_long_double_128+set}" = set; then :
26629 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26630 else
26631 gcc_cv_target_ldbl128=no
26632 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26633 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26634 && gcc_cv_target_ldbl128=yes
26635
26636 fi
26637
26638 ;;
26639 esac
26640 if test x$gcc_cv_target_ldbl128 = xyes; then
26641
26642 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26643
26644 fi
26645
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26647 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26648 gcc_cv_target_dl_iterate_phdr=unknown
26649 case "$target" in
26650 *-*-solaris2*)
26651 # <link.h> needs both a dl_iterate_phdr declaration and support for
26652 # compilation with largefile support.
26653 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26654 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26655 gcc_cv_target_dl_iterate_phdr=yes
26656 else
26657 gcc_cv_target_dl_iterate_phdr=no
26658 fi
26659 ;;
26660 esac
26661
26662 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26663
26664 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26665
26666 fi
26667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26668 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26669
26670 # Find out what GC implementation we want, or may, use.
26671
26672 # Check whether --with-gc was given.
26673 if test "${with_gc+set}" = set; then :
26674 withval=$with_gc; case "$withval" in
26675 page)
26676 GGC=ggc-$withval
26677 ;;
26678 zone)
26679 GGC=ggc-$withval
26680
26681 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26682
26683 ;;
26684 *)
26685 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26686 ;;
26687 esac
26688 else
26689 GGC=ggc-page
26690 fi
26691
26692
26693 echo "Using $GGC for garbage collection."
26694
26695 # Libraries to use on the host. This will normally be set by the top
26696 # level Makefile. Here we simply capture the value for our Makefile.
26697 if test -z "${HOST_LIBS+set}"; then
26698 HOST_LIBS=
26699 fi
26700
26701
26702 # Use the system's zlib library.
26703 zlibdir=-L../zlib
26704 zlibinc="-I\$(srcdir)/../zlib"
26705
26706 # Check whether --with-system-zlib was given.
26707 if test "${with_system_zlib+set}" = set; then :
26708 withval=$with_system_zlib; zlibdir=
26709 zlibinc=
26710
26711 fi
26712
26713
26714
26715
26716
26717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26718 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26719 # Check whether --enable-maintainer-mode was given.
26720 if test "${enable_maintainer_mode+set}" = set; then :
26721 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26722 else
26723 maintainer_mode=no
26724 fi
26725
26726
26727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26728 $as_echo "$maintainer_mode" >&6; }
26729
26730 if test "$maintainer_mode" = "yes"; then
26731 MAINT=''
26732 else
26733 MAINT='#'
26734 fi
26735
26736 # --------------
26737 # Language hooks
26738 # --------------
26739
26740 # Make empty files to contain the specs and options for each language.
26741 # Then add #include lines to for a compiler that has specs and/or options.
26742
26743 subdirs=
26744 lang_opt_files=
26745 lang_specs_files=
26746 lang_tree_files=
26747 # These (without "all_") are set in each config-lang.in.
26748 # `language' must be a single word so is spelled singularly.
26749 all_languages=
26750 all_compilers=
26751 all_outputs='Makefile'
26752 # List of language makefile fragments.
26753 all_lang_makefrags=
26754 # Additional files for gengtype
26755 all_gtfiles="$target_gtfiles"
26756
26757 # These are the languages that are set in --enable-languages,
26758 # and are available in the GCC tree.
26759 all_selected_languages=
26760
26761 # Add the language fragments.
26762 # Languages are added via two mechanisms. Some information must be
26763 # recorded in makefile variables, these are defined in config-lang.in.
26764 # We accumulate them and plug them into the main Makefile.
26765 # The other mechanism is a set of hooks for each of the main targets
26766 # like `clean', `install', etc.
26767
26768 language_hooks="Make-hooks"
26769
26770 for lang in ${srcdir}/*/config-lang.in
26771 do
26772 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26773
26774 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26775 if test "x$lang_alias" = x
26776 then
26777 echo "$lang doesn't set \$language." 1>&2
26778 exit 1
26779 fi
26780 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26781 subdirs="$subdirs $subdir"
26782
26783 # $gcc_subdir is where the gcc integration files are to be found
26784 # for a language, both for internal compiler purposes (compiler
26785 # sources implementing front-end to GCC tree converters), and for
26786 # build infrastructure purposes (Make-lang.in, etc.)
26787 #
26788 # This will be <subdir> (relative to $srcdir) if a line like
26789 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26790 # is found in <langdir>/config-lang.in, and will remain <langdir>
26791 # otherwise.
26792 #
26793 # Except for the language alias (fetched above), the regular
26794 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26795 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26796 # only this and the language alias.
26797
26798 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26799 if [ "$gcc_subdir" = "" ]; then
26800 gcc_subdir="$subdir"
26801 fi
26802
26803 case ",$enable_languages," in
26804 *,$lang_alias,*)
26805 all_selected_languages="$all_selected_languages $lang_alias"
26806 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26807 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26808 fi
26809 ;;
26810 esac
26811
26812 language=
26813 boot_language=
26814 compilers=
26815 outputs=
26816 gtfiles=
26817 subdir_requires=
26818 . ${srcdir}/$gcc_subdir/config-lang.in
26819 if test "x$language" = x
26820 then
26821 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26822 exit 1
26823 fi
26824
26825 ok=:
26826 case ",$enable_languages," in
26827 *,$lang_alias,*) ;;
26828 *)
26829 for i in $subdir_requires; do
26830 test -f "${srcdir}/$i/config-lang.in" && continue
26831 ok=false
26832 break
26833 done
26834 ;;
26835 esac
26836 $ok || continue
26837
26838 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26839 if test -f $srcdir/$gcc_subdir/lang.opt; then
26840 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26841 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26842 fi
26843 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26844 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26845 fi
26846 all_languages="$all_languages $language"
26847 all_compilers="$all_compilers $compilers"
26848 all_outputs="$all_outputs $outputs"
26849 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26850 case ",$enable_languages," in
26851 *,lto,*)
26852
26853 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26854
26855 enable_lto=yes
26856
26857 ;;
26858 *) ;;
26859 esac
26860 done
26861
26862 # Pick up gtfiles for c
26863 gtfiles=
26864 . ${srcdir}/c-config-lang.in
26865 all_gtfiles="$all_gtfiles [c] $gtfiles"
26866
26867 check_languages=
26868 for language in $all_selected_languages
26869 do
26870 check_languages="$check_languages check-$language"
26871 done
26872
26873 # We link each language in with a set of hooks, reached indirectly via
26874 # lang.${target}. Only do so for selected languages.
26875
26876 rm -f Make-hooks
26877 touch Make-hooks
26878 target_list="all.cross start.encap rest.encap tags \
26879 install-common install-man install-info install-pdf install-html dvi \
26880 pdf html uninstall info man srcextra srcman srcinfo \
26881 mostlyclean clean distclean maintainer-clean install-plugin"
26882
26883 for t in $target_list
26884 do
26885 x=
26886 for lang in $all_selected_languages
26887 do
26888 x="$x $lang.$t"
26889 done
26890 echo "lang.$t: $x" >> Make-hooks
26891 done
26892
26893 # --------
26894 # Option include files
26895 # --------
26896
26897 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26898 option_includes="option-includes.mk"
26899
26900
26901 # --------
26902 # UNSORTED
26903 # --------
26904
26905 # Create .gdbinit.
26906
26907 echo "dir ." > .gdbinit
26908 echo "dir ${srcdir}" >> .gdbinit
26909 if test x$gdb_needs_out_file_path = xyes
26910 then
26911 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26912 fi
26913 if test "x$subdirs" != x; then
26914 for s in $subdirs
26915 do
26916 echo "dir ${srcdir}/$s" >> .gdbinit
26917 done
26918 fi
26919 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26920
26921 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26922
26923
26924
26925 # Find a directory in which to install a shared libgcc.
26926
26927 # Check whether --enable-version-specific-runtime-libs was given.
26928 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26929 enableval=$enable_version_specific_runtime_libs;
26930 fi
26931
26932
26933 # Substitute configuration variables
26934
26935
26936
26937
26938
26939
26940
26941
26942
26943
26944
26945
26946
26947
26948
26949
26950
26951
26952
26953
26954
26955
26956
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 # Echo link setup.
26997 if test x${build} = x${host} ; then
26998 if test x${host} = x${target} ; then
26999 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27000 else
27001 echo "Links are now set up to build a cross-compiler" 1>&2
27002 echo " from ${host} to ${target}." 1>&2
27003 fi
27004 else
27005 if test x${host} = x${target} ; then
27006 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27007 echo " for ${target}." 1>&2
27008 else
27009 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27010 echo " from ${host} to ${target}." 1>&2
27011 fi
27012 fi
27013
27014
27015
27016
27017
27018
27019
27020
27021
27022 if test "x${CLOOGLIBS}" != "x" ; then
27023
27024 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27025
27026 fi
27027
27028 # Check for plugin support
27029 # Check whether --enable-plugin was given.
27030 if test "${enable_plugin+set}" = set; then :
27031 enableval=$enable_plugin; enable_plugin=$enableval
27032 else
27033 enable_plugin=yes; default_plugin=yes
27034 fi
27035
27036
27037 pluginlibs=
27038
27039 case "${host}" in
27040 *-*-darwin*)
27041 if test x$build = x$host; then
27042 export_sym_check="nm${exeext} -g"
27043 elif test x$host = x$target; then
27044 export_sym_check="$gcc_cv_nm -g"
27045 else
27046 export_sym_check=
27047 fi
27048 ;;
27049 *)
27050 if test x$build = x$host; then
27051 export_sym_check="objdump${exeext} -T"
27052 elif test x$host = x$target; then
27053 export_sym_check="$gcc_cv_objdump -T"
27054 else
27055 export_sym_check=
27056 fi
27057 ;;
27058 esac
27059
27060 if test x"$enable_plugin" = x"yes"; then
27061
27062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27063 $as_echo_n "checking for exported symbols... " >&6; }
27064 if test "x$export_sym_check" != x; then
27065 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27066 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27067 if $export_sym_check conftest | grep foobar > /dev/null; then
27068 : # No need to use a flag
27069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27070 $as_echo "yes" >&6; }
27071 else
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27073 $as_echo "yes" >&6; }
27074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27075 $as_echo_n "checking for -rdynamic... " >&6; }
27076 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27077 if $export_sym_check conftest | grep foobar > /dev/null; then
27078 plugin_rdynamic=yes
27079 pluginlibs="-rdynamic"
27080 else
27081 plugin_rdynamic=no
27082 enable_plugin=no
27083 fi
27084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27085 $as_echo "$plugin_rdynamic" >&6; }
27086 fi
27087 else
27088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27089 $as_echo "unable to check" >&6; }
27090 fi
27091
27092 # Check -ldl
27093 saved_LIBS="$LIBS"
27094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27095 $as_echo_n "checking for library containing dlopen... " >&6; }
27096 if test "${ac_cv_search_dlopen+set}" = set; then :
27097 $as_echo_n "(cached) " >&6
27098 else
27099 ac_func_search_save_LIBS=$LIBS
27100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27101 /* end confdefs.h. */
27102
27103 /* Override any GCC internal prototype to avoid an error.
27104 Use char because int might match the return type of a GCC
27105 builtin and then its argument prototype would still apply. */
27106 #ifdef __cplusplus
27107 extern "C"
27108 #endif
27109 char dlopen ();
27110 int
27111 main ()
27112 {
27113 return dlopen ();
27114 ;
27115 return 0;
27116 }
27117 _ACEOF
27118 for ac_lib in '' dl; do
27119 if test -z "$ac_lib"; then
27120 ac_res="none required"
27121 else
27122 ac_res=-l$ac_lib
27123 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27124 fi
27125 if ac_fn_c_try_link "$LINENO"; then :
27126 ac_cv_search_dlopen=$ac_res
27127 fi
27128 rm -f core conftest.err conftest.$ac_objext \
27129 conftest$ac_exeext
27130 if test "${ac_cv_search_dlopen+set}" = set; then :
27131 break
27132 fi
27133 done
27134 if test "${ac_cv_search_dlopen+set}" = set; then :
27135
27136 else
27137 ac_cv_search_dlopen=no
27138 fi
27139 rm conftest.$ac_ext
27140 LIBS=$ac_func_search_save_LIBS
27141 fi
27142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27143 $as_echo "$ac_cv_search_dlopen" >&6; }
27144 ac_res=$ac_cv_search_dlopen
27145 if test "$ac_res" != no; then :
27146 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27147
27148 fi
27149
27150 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27151 pluginlibs="$pluginlibs -ldl"
27152 fi
27153 LIBS="$saved_LIBS"
27154
27155 # Check that we can build shared objects with -fPIC -shared
27156 saved_LDFLAGS="$LDFLAGS"
27157 saved_CFLAGS="$CFLAGS"
27158 case "${host}" in
27159 *-*-darwin*)
27160 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27161 CFLAGS="$CFLAGS -fPIC"
27162 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27163 ;;
27164 *)
27165 CFLAGS="$CFLAGS -fPIC"
27166 LDFLAGS="$LDFLAGS -fPIC -shared"
27167 ;;
27168 esac
27169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27170 $as_echo_n "checking for -fPIC -shared... " >&6; }
27171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27172 /* end confdefs.h. */
27173 extern int X;
27174 int
27175 main ()
27176 {
27177 return X == 0;
27178 ;
27179 return 0;
27180 }
27181 _ACEOF
27182 if ac_fn_c_try_link "$LINENO"; then :
27183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27184 $as_echo "yes" >&6; }; have_pic_shared=yes
27185 else
27186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27187 $as_echo "no" >&6; }; have_pic_shared=no
27188 fi
27189 rm -f core conftest.err conftest.$ac_objext \
27190 conftest$ac_exeext conftest.$ac_ext
27191 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27192 pluginlibs=
27193 enable_plugin=no
27194 fi
27195 LDFLAGS="$saved_LDFLAGS"
27196 CFLAGS="$saved_CFLAGS"
27197
27198 # If plugin support had been requested but not available, fail.
27199 if test x"$enable_plugin" = x"no" ; then
27200 if test x"$default_plugin" != x"yes"; then
27201 as_fn_error "
27202 Building GCC with plugin support requires a host that supports
27203 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27204 fi
27205 fi
27206 fi
27207
27208
27209
27210 if test x"$enable_plugin" = x"yes"; then
27211
27212 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27213
27214 fi
27215
27216
27217 # Check whether --enable-libquadmath-support was given.
27218 if test "${enable_libquadmath_support+set}" = set; then :
27219 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27220 else
27221 ENABLE_LIBQUADMATH_SUPPORT=yes
27222 fi
27223
27224 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27225
27226 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27227
27228 fi
27229
27230
27231 # Specify what hash style to use by default.
27232
27233 # Check whether --with-linker-hash-style was given.
27234 if test "${with_linker_hash_style+set}" = set; then :
27235 withval=$with_linker_hash_style; case x"$withval" in
27236 xsysv)
27237 LINKER_HASH_STYLE=sysv
27238 ;;
27239 xgnu)
27240 LINKER_HASH_STYLE=gnu
27241 ;;
27242 xboth)
27243 LINKER_HASH_STYLE=both
27244 ;;
27245 *)
27246 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27247 ;;
27248 esac
27249 else
27250 LINKER_HASH_STYLE=''
27251 fi
27252
27253 if test x"${LINKER_HASH_STYLE}" != x; then
27254
27255 cat >>confdefs.h <<_ACEOF
27256 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27257 _ACEOF
27258
27259 fi
27260
27261 # Configure the subdirectories
27262 # AC_CONFIG_SUBDIRS($subdirs)
27263
27264 # Create the Makefile
27265 # and configure language subdirectories
27266 ac_config_files="$ac_config_files $all_outputs"
27267
27268
27269 ac_config_commands="$ac_config_commands default"
27270
27271 cat >confcache <<\_ACEOF
27272 # This file is a shell script that caches the results of configure
27273 # tests run on this system so they can be shared between configure
27274 # scripts and configure runs, see configure's option --config-cache.
27275 # It is not useful on other systems. If it contains results you don't
27276 # want to keep, you may remove or edit it.
27277 #
27278 # config.status only pays attention to the cache file if you give it
27279 # the --recheck option to rerun configure.
27280 #
27281 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27282 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27283 # following values.
27284
27285 _ACEOF
27286
27287 # The following way of writing the cache mishandles newlines in values,
27288 # but we know of no workaround that is simple, portable, and efficient.
27289 # So, we kill variables containing newlines.
27290 # Ultrix sh set writes to stderr and can't be redirected directly,
27291 # and sets the high bit in the cache file unless we assign to the vars.
27292 (
27293 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27294 eval ac_val=\$$ac_var
27295 case $ac_val in #(
27296 *${as_nl}*)
27297 case $ac_var in #(
27298 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27299 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27300 esac
27301 case $ac_var in #(
27302 _ | IFS | as_nl) ;; #(
27303 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27304 *) { eval $ac_var=; unset $ac_var;} ;;
27305 esac ;;
27306 esac
27307 done
27308
27309 (set) 2>&1 |
27310 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27311 *${as_nl}ac_space=\ *)
27312 # `set' does not quote correctly, so add quotes: double-quote
27313 # substitution turns \\\\ into \\, and sed turns \\ into \.
27314 sed -n \
27315 "s/'/'\\\\''/g;
27316 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27317 ;; #(
27318 *)
27319 # `set' quotes correctly as required by POSIX, so do not add quotes.
27320 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27321 ;;
27322 esac |
27323 sort
27324 ) |
27325 sed '
27326 /^ac_cv_env_/b end
27327 t clear
27328 :clear
27329 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27330 t end
27331 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27332 :end' >>confcache
27333 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27334 if test -w "$cache_file"; then
27335 test "x$cache_file" != "x/dev/null" &&
27336 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27337 $as_echo "$as_me: updating cache $cache_file" >&6;}
27338 cat confcache >$cache_file
27339 else
27340 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27341 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27342 fi
27343 fi
27344 rm -f confcache
27345
27346 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27347 # Let make expand exec_prefix.
27348 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27349
27350 DEFS=-DHAVE_CONFIG_H
27351
27352 ac_libobjs=
27353 ac_ltlibobjs=
27354 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27355 # 1. Remove the extension, and $U if already installed.
27356 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27357 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27358 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27359 # will be set to the directory where LIBOBJS objects are built.
27360 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27361 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27362 done
27363 LIBOBJS=$ac_libobjs
27364
27365 LTLIBOBJS=$ac_ltlibobjs
27366
27367
27368
27369
27370 : ${CONFIG_STATUS=./config.status}
27371 ac_write_fail=0
27372 ac_clean_files_save=$ac_clean_files
27373 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27374 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27375 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27376 as_write_fail=0
27377 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27378 #! $SHELL
27379 # Generated by $as_me.
27380 # Run this file to recreate the current configuration.
27381 # Compiler output produced by configure, useful for debugging
27382 # configure, is in config.log if it exists.
27383
27384 debug=false
27385 ac_cs_recheck=false
27386 ac_cs_silent=false
27387
27388 SHELL=\${CONFIG_SHELL-$SHELL}
27389 export SHELL
27390 _ASEOF
27391 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27392 ## -------------------- ##
27393 ## M4sh Initialization. ##
27394 ## -------------------- ##
27395
27396 # Be more Bourne compatible
27397 DUALCASE=1; export DUALCASE # for MKS sh
27398 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27399 emulate sh
27400 NULLCMD=:
27401 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27402 # is contrary to our usage. Disable this feature.
27403 alias -g '${1+"$@"}'='"$@"'
27404 setopt NO_GLOB_SUBST
27405 else
27406 case `(set -o) 2>/dev/null` in #(
27407 *posix*) :
27408 set -o posix ;; #(
27409 *) :
27410 ;;
27411 esac
27412 fi
27413
27414
27415 as_nl='
27416 '
27417 export as_nl
27418 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27419 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27420 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27421 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27422 # Prefer a ksh shell builtin over an external printf program on Solaris,
27423 # but without wasting forks for bash or zsh.
27424 if test -z "$BASH_VERSION$ZSH_VERSION" \
27425 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27426 as_echo='print -r --'
27427 as_echo_n='print -rn --'
27428 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27429 as_echo='printf %s\n'
27430 as_echo_n='printf %s'
27431 else
27432 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27433 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27434 as_echo_n='/usr/ucb/echo -n'
27435 else
27436 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27437 as_echo_n_body='eval
27438 arg=$1;
27439 case $arg in #(
27440 *"$as_nl"*)
27441 expr "X$arg" : "X\\(.*\\)$as_nl";
27442 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27443 esac;
27444 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27445 '
27446 export as_echo_n_body
27447 as_echo_n='sh -c $as_echo_n_body as_echo'
27448 fi
27449 export as_echo_body
27450 as_echo='sh -c $as_echo_body as_echo'
27451 fi
27452
27453 # The user is always right.
27454 if test "${PATH_SEPARATOR+set}" != set; then
27455 PATH_SEPARATOR=:
27456 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27457 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27458 PATH_SEPARATOR=';'
27459 }
27460 fi
27461
27462
27463 # IFS
27464 # We need space, tab and new line, in precisely that order. Quoting is
27465 # there to prevent editors from complaining about space-tab.
27466 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27467 # splitting by setting IFS to empty value.)
27468 IFS=" "" $as_nl"
27469
27470 # Find who we are. Look in the path if we contain no directory separator.
27471 case $0 in #((
27472 *[\\/]* ) as_myself=$0 ;;
27473 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27474 for as_dir in $PATH
27475 do
27476 IFS=$as_save_IFS
27477 test -z "$as_dir" && as_dir=.
27478 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27479 done
27480 IFS=$as_save_IFS
27481
27482 ;;
27483 esac
27484 # We did not find ourselves, most probably we were run as `sh COMMAND'
27485 # in which case we are not to be found in the path.
27486 if test "x$as_myself" = x; then
27487 as_myself=$0
27488 fi
27489 if test ! -f "$as_myself"; then
27490 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27491 exit 1
27492 fi
27493
27494 # Unset variables that we do not need and which cause bugs (e.g. in
27495 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27496 # suppresses any "Segmentation fault" message there. '((' could
27497 # trigger a bug in pdksh 5.2.14.
27498 for as_var in BASH_ENV ENV MAIL MAILPATH
27499 do eval test x\${$as_var+set} = xset \
27500 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27501 done
27502 PS1='$ '
27503 PS2='> '
27504 PS4='+ '
27505
27506 # NLS nuisances.
27507 LC_ALL=C
27508 export LC_ALL
27509 LANGUAGE=C
27510 export LANGUAGE
27511
27512 # CDPATH.
27513 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27514
27515
27516 # as_fn_error ERROR [LINENO LOG_FD]
27517 # ---------------------------------
27518 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27519 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27520 # script with status $?, using 1 if that was 0.
27521 as_fn_error ()
27522 {
27523 as_status=$?; test $as_status -eq 0 && as_status=1
27524 if test "$3"; then
27525 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27526 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27527 fi
27528 $as_echo "$as_me: error: $1" >&2
27529 as_fn_exit $as_status
27530 } # as_fn_error
27531
27532
27533 # as_fn_set_status STATUS
27534 # -----------------------
27535 # Set $? to STATUS, without forking.
27536 as_fn_set_status ()
27537 {
27538 return $1
27539 } # as_fn_set_status
27540
27541 # as_fn_exit STATUS
27542 # -----------------
27543 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27544 as_fn_exit ()
27545 {
27546 set +e
27547 as_fn_set_status $1
27548 exit $1
27549 } # as_fn_exit
27550
27551 # as_fn_unset VAR
27552 # ---------------
27553 # Portably unset VAR.
27554 as_fn_unset ()
27555 {
27556 { eval $1=; unset $1;}
27557 }
27558 as_unset=as_fn_unset
27559 # as_fn_append VAR VALUE
27560 # ----------------------
27561 # Append the text in VALUE to the end of the definition contained in VAR. Take
27562 # advantage of any shell optimizations that allow amortized linear growth over
27563 # repeated appends, instead of the typical quadratic growth present in naive
27564 # implementations.
27565 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27566 eval 'as_fn_append ()
27567 {
27568 eval $1+=\$2
27569 }'
27570 else
27571 as_fn_append ()
27572 {
27573 eval $1=\$$1\$2
27574 }
27575 fi # as_fn_append
27576
27577 # as_fn_arith ARG...
27578 # ------------------
27579 # Perform arithmetic evaluation on the ARGs, and store the result in the
27580 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27581 # must be portable across $(()) and expr.
27582 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27583 eval 'as_fn_arith ()
27584 {
27585 as_val=$(( $* ))
27586 }'
27587 else
27588 as_fn_arith ()
27589 {
27590 as_val=`expr "$@" || test $? -eq 1`
27591 }
27592 fi # as_fn_arith
27593
27594
27595 if expr a : '\(a\)' >/dev/null 2>&1 &&
27596 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27597 as_expr=expr
27598 else
27599 as_expr=false
27600 fi
27601
27602 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27603 as_basename=basename
27604 else
27605 as_basename=false
27606 fi
27607
27608 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27609 as_dirname=dirname
27610 else
27611 as_dirname=false
27612 fi
27613
27614 as_me=`$as_basename -- "$0" ||
27615 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27616 X"$0" : 'X\(//\)$' \| \
27617 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27618 $as_echo X/"$0" |
27619 sed '/^.*\/\([^/][^/]*\)\/*$/{
27620 s//\1/
27621 q
27622 }
27623 /^X\/\(\/\/\)$/{
27624 s//\1/
27625 q
27626 }
27627 /^X\/\(\/\).*/{
27628 s//\1/
27629 q
27630 }
27631 s/.*/./; q'`
27632
27633 # Avoid depending upon Character Ranges.
27634 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27635 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27636 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27637 as_cr_digits='0123456789'
27638 as_cr_alnum=$as_cr_Letters$as_cr_digits
27639
27640 ECHO_C= ECHO_N= ECHO_T=
27641 case `echo -n x` in #(((((
27642 -n*)
27643 case `echo 'xy\c'` in
27644 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27645 xy) ECHO_C='\c';;
27646 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27647 ECHO_T=' ';;
27648 esac;;
27649 *)
27650 ECHO_N='-n';;
27651 esac
27652
27653 rm -f conf$$ conf$$.exe conf$$.file
27654 if test -d conf$$.dir; then
27655 rm -f conf$$.dir/conf$$.file
27656 else
27657 rm -f conf$$.dir
27658 mkdir conf$$.dir 2>/dev/null
27659 fi
27660 if (echo >conf$$.file) 2>/dev/null; then
27661 if ln -s conf$$.file conf$$ 2>/dev/null; then
27662 as_ln_s='ln -s'
27663 # ... but there are two gotchas:
27664 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27665 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27666 # In both cases, we have to default to `cp -p'.
27667 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27668 as_ln_s='cp -p'
27669 elif ln conf$$.file conf$$ 2>/dev/null; then
27670 as_ln_s=ln
27671 else
27672 as_ln_s='cp -p'
27673 fi
27674 else
27675 as_ln_s='cp -p'
27676 fi
27677 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27678 rmdir conf$$.dir 2>/dev/null
27679
27680
27681 # as_fn_mkdir_p
27682 # -------------
27683 # Create "$as_dir" as a directory, including parents if necessary.
27684 as_fn_mkdir_p ()
27685 {
27686
27687 case $as_dir in #(
27688 -*) as_dir=./$as_dir;;
27689 esac
27690 test -d "$as_dir" || eval $as_mkdir_p || {
27691 as_dirs=
27692 while :; do
27693 case $as_dir in #(
27694 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27695 *) as_qdir=$as_dir;;
27696 esac
27697 as_dirs="'$as_qdir' $as_dirs"
27698 as_dir=`$as_dirname -- "$as_dir" ||
27699 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27700 X"$as_dir" : 'X\(//\)[^/]' \| \
27701 X"$as_dir" : 'X\(//\)$' \| \
27702 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27703 $as_echo X"$as_dir" |
27704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27705 s//\1/
27706 q
27707 }
27708 /^X\(\/\/\)[^/].*/{
27709 s//\1/
27710 q
27711 }
27712 /^X\(\/\/\)$/{
27713 s//\1/
27714 q
27715 }
27716 /^X\(\/\).*/{
27717 s//\1/
27718 q
27719 }
27720 s/.*/./; q'`
27721 test -d "$as_dir" && break
27722 done
27723 test -z "$as_dirs" || eval "mkdir $as_dirs"
27724 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27725
27726
27727 } # as_fn_mkdir_p
27728 if mkdir -p . 2>/dev/null; then
27729 as_mkdir_p='mkdir -p "$as_dir"'
27730 else
27731 test -d ./-p && rmdir ./-p
27732 as_mkdir_p=false
27733 fi
27734
27735 if test -x / >/dev/null 2>&1; then
27736 as_test_x='test -x'
27737 else
27738 if ls -dL / >/dev/null 2>&1; then
27739 as_ls_L_option=L
27740 else
27741 as_ls_L_option=
27742 fi
27743 as_test_x='
27744 eval sh -c '\''
27745 if test -d "$1"; then
27746 test -d "$1/.";
27747 else
27748 case $1 in #(
27749 -*)set "./$1";;
27750 esac;
27751 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27752 ???[sx]*):;;*)false;;esac;fi
27753 '\'' sh
27754 '
27755 fi
27756 as_executable_p=$as_test_x
27757
27758 # Sed expression to map a string onto a valid CPP name.
27759 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27760
27761 # Sed expression to map a string onto a valid variable name.
27762 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27763
27764
27765 exec 6>&1
27766 ## ----------------------------------- ##
27767 ## Main body of $CONFIG_STATUS script. ##
27768 ## ----------------------------------- ##
27769 _ASEOF
27770 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27771
27772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27773 # Save the log message, to keep $0 and so on meaningful, and to
27774 # report actual input values of CONFIG_FILES etc. instead of their
27775 # values after options handling.
27776 ac_log="
27777 This file was extended by $as_me, which was
27778 generated by GNU Autoconf 2.64. Invocation command line was
27779
27780 CONFIG_FILES = $CONFIG_FILES
27781 CONFIG_HEADERS = $CONFIG_HEADERS
27782 CONFIG_LINKS = $CONFIG_LINKS
27783 CONFIG_COMMANDS = $CONFIG_COMMANDS
27784 $ $0 $@
27785
27786 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27787 "
27788
27789 _ACEOF
27790
27791 case $ac_config_files in *"
27792 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27793 esac
27794
27795 case $ac_config_headers in *"
27796 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27797 esac
27798
27799
27800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27801 # Files that config.status was made for.
27802 config_files="$ac_config_files"
27803 config_headers="$ac_config_headers"
27804 config_commands="$ac_config_commands"
27805
27806 _ACEOF
27807
27808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27809 ac_cs_usage="\
27810 \`$as_me' instantiates files and other configuration actions
27811 from templates according to the current configuration. Unless the files
27812 and actions are specified as TAGs, all are instantiated by default.
27813
27814 Usage: $0 [OPTION]... [TAG]...
27815
27816 -h, --help print this help, then exit
27817 -V, --version print version number and configuration settings, then exit
27818 -q, --quiet, --silent
27819 do not print progress messages
27820 -d, --debug don't remove temporary files
27821 --recheck update $as_me by reconfiguring in the same conditions
27822 --file=FILE[:TEMPLATE]
27823 instantiate the configuration file FILE
27824 --header=FILE[:TEMPLATE]
27825 instantiate the configuration header FILE
27826
27827 Configuration files:
27828 $config_files
27829
27830 Configuration headers:
27831 $config_headers
27832
27833 Configuration commands:
27834 $config_commands
27835
27836 Report bugs to the package provider."
27837
27838 _ACEOF
27839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27840 ac_cs_version="\\
27841 config.status
27842 configured by $0, generated by GNU Autoconf 2.64,
27843 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27844
27845 Copyright (C) 2009 Free Software Foundation, Inc.
27846 This config.status script is free software; the Free Software Foundation
27847 gives unlimited permission to copy, distribute and modify it."
27848
27849 ac_pwd='$ac_pwd'
27850 srcdir='$srcdir'
27851 AWK='$AWK'
27852 test -n "\$AWK" || AWK=awk
27853 _ACEOF
27854
27855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27856 # The default lists apply if the user does not specify any file.
27857 ac_need_defaults=:
27858 while test $# != 0
27859 do
27860 case $1 in
27861 --*=*)
27862 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27863 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27864 ac_shift=:
27865 ;;
27866 *)
27867 ac_option=$1
27868 ac_optarg=$2
27869 ac_shift=shift
27870 ;;
27871 esac
27872
27873 case $ac_option in
27874 # Handling of the options.
27875 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27876 ac_cs_recheck=: ;;
27877 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27878 $as_echo "$ac_cs_version"; exit ;;
27879 --debug | --debu | --deb | --de | --d | -d )
27880 debug=: ;;
27881 --file | --fil | --fi | --f )
27882 $ac_shift
27883 case $ac_optarg in
27884 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27885 esac
27886 as_fn_append CONFIG_FILES " '$ac_optarg'"
27887 ac_need_defaults=false;;
27888 --header | --heade | --head | --hea )
27889 $ac_shift
27890 case $ac_optarg in
27891 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27892 esac
27893 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27894 ac_need_defaults=false;;
27895 --he | --h)
27896 # Conflict between --help and --header
27897 as_fn_error "ambiguous option: \`$1'
27898 Try \`$0 --help' for more information.";;
27899 --help | --hel | -h )
27900 $as_echo "$ac_cs_usage"; exit ;;
27901 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27902 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27903 ac_cs_silent=: ;;
27904
27905 # This is an error.
27906 -*) as_fn_error "unrecognized option: \`$1'
27907 Try \`$0 --help' for more information." ;;
27908
27909 *) as_fn_append ac_config_targets " $1"
27910 ac_need_defaults=false ;;
27911
27912 esac
27913 shift
27914 done
27915
27916 ac_configure_extra_args=
27917
27918 if $ac_cs_silent; then
27919 exec 6>/dev/null
27920 ac_configure_extra_args="$ac_configure_extra_args --silent"
27921 fi
27922
27923 _ACEOF
27924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27925 if \$ac_cs_recheck; then
27926 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27927 shift
27928 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27929 CONFIG_SHELL='$SHELL'
27930 export CONFIG_SHELL
27931 exec "\$@"
27932 fi
27933
27934 _ACEOF
27935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27936 exec 5>>config.log
27937 {
27938 echo
27939 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27940 ## Running $as_me. ##
27941 _ASBOX
27942 $as_echo "$ac_log"
27943 } >&5
27944
27945 _ACEOF
27946 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27947 #
27948 # INIT-COMMANDS
27949 #
27950 subdirs='$subdirs'
27951
27952 _ACEOF
27953
27954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27955
27956 # Handling of arguments.
27957 for ac_config_target in $ac_config_targets
27958 do
27959 case $ac_config_target in
27960 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
27961 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
27962 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27963 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
27964 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
27965 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27966
27967 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27968 esac
27969 done
27970
27971
27972 # If the user did not use the arguments to specify the items to instantiate,
27973 # then the envvar interface is used. Set only those that are not.
27974 # We use the long form for the default assignment because of an extremely
27975 # bizarre bug on SunOS 4.1.3.
27976 if $ac_need_defaults; then
27977 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27978 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27979 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27980 fi
27981
27982 # Have a temporary directory for convenience. Make it in the build tree
27983 # simply because there is no reason against having it here, and in addition,
27984 # creating and moving files from /tmp can sometimes cause problems.
27985 # Hook for its removal unless debugging.
27986 # Note that there is a small window in which the directory will not be cleaned:
27987 # after its creation but before its name has been assigned to `$tmp'.
27988 $debug ||
27989 {
27990 tmp=
27991 trap 'exit_status=$?
27992 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27993 ' 0
27994 trap 'as_fn_exit 1' 1 2 13 15
27995 }
27996 # Create a (secure) tmp directory for tmp files.
27997
27998 {
27999 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28000 test -n "$tmp" && test -d "$tmp"
28001 } ||
28002 {
28003 tmp=./conf$$-$RANDOM
28004 (umask 077 && mkdir "$tmp")
28005 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28006
28007 # Set up the scripts for CONFIG_FILES section.
28008 # No need to generate them if there are no CONFIG_FILES.
28009 # This happens for instance with `./config.status config.h'.
28010 if test -n "$CONFIG_FILES"; then
28011
28012 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28013 ac_cs_awk_getline=:
28014 ac_cs_awk_pipe_init=
28015 ac_cs_awk_read_file='
28016 while ((getline aline < (F[key])) > 0)
28017 print(aline)
28018 close(F[key])'
28019 ac_cs_awk_pipe_fini=
28020 else
28021 ac_cs_awk_getline=false
28022 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28023 ac_cs_awk_read_file='
28024 print "|#_!!_#|"
28025 print "cat " F[key] " &&"
28026 '$ac_cs_awk_pipe_init
28027 # The final `:' finishes the AND list.
28028 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28029 fi
28030 ac_cr=`echo X | tr X '\015'`
28031 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28032 # But we know of no other shell where ac_cr would be empty at this
28033 # point, so we can use a bashism as a fallback.
28034 if test "x$ac_cr" = x; then
28035 eval ac_cr=\$\'\\r\'
28036 fi
28037 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28038 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28039 ac_cs_awk_cr='\r'
28040 else
28041 ac_cs_awk_cr=$ac_cr
28042 fi
28043
28044 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28045 _ACEOF
28046
28047 # Create commands to substitute file output variables.
28048 {
28049 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28050 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28051 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28052 echo "_ACAWK" &&
28053 echo "_ACEOF"
28054 } >conf$$files.sh &&
28055 . ./conf$$files.sh ||
28056 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28057 rm -f conf$$files.sh
28058
28059 {
28060 echo "cat >conf$$subs.awk <<_ACEOF" &&
28061 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28062 echo "_ACEOF"
28063 } >conf$$subs.sh ||
28064 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28065 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28066 ac_delim='%!_!# '
28067 for ac_last_try in false false false false false :; do
28068 . ./conf$$subs.sh ||
28069 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28070
28071 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28072 if test $ac_delim_n = $ac_delim_num; then
28073 break
28074 elif $ac_last_try; then
28075 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28076 else
28077 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28078 fi
28079 done
28080 rm -f conf$$subs.sh
28081
28082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28083 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28084 _ACEOF
28085 sed -n '
28086 h
28087 s/^/S["/; s/!.*/"]=/
28088 p
28089 g
28090 s/^[^!]*!//
28091 :repl
28092 t repl
28093 s/'"$ac_delim"'$//
28094 t delim
28095 :nl
28096 h
28097 s/\(.\{148\}\).*/\1/
28098 t more1
28099 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28100 p
28101 n
28102 b repl
28103 :more1
28104 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28105 p
28106 g
28107 s/.\{148\}//
28108 t nl
28109 :delim
28110 h
28111 s/\(.\{148\}\).*/\1/
28112 t more2
28113 s/["\\]/\\&/g; s/^/"/; s/$/"/
28114 p
28115 b
28116 :more2
28117 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28118 p
28119 g
28120 s/.\{148\}//
28121 t delim
28122 ' <conf$$subs.awk | sed '
28123 /^[^""]/{
28124 N
28125 s/\n//
28126 }
28127 ' >>$CONFIG_STATUS || ac_write_fail=1
28128 rm -f conf$$subs.awk
28129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28130 _ACAWK
28131 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28132 for (key in S) S_is_set[key] = 1
28133 FS = "\a"
28134 \$ac_cs_awk_pipe_init
28135 }
28136 {
28137 line = $ 0
28138 nfields = split(line, field, "@")
28139 substed = 0
28140 len = length(field[1])
28141 for (i = 2; i < nfields; i++) {
28142 key = field[i]
28143 keylen = length(key)
28144 if (S_is_set[key]) {
28145 value = S[key]
28146 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28147 len += length(value) + length(field[++i])
28148 substed = 1
28149 } else
28150 len += 1 + keylen
28151 }
28152 if (nfields == 3 && !substed) {
28153 key = field[2]
28154 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28155 \$ac_cs_awk_read_file
28156 next
28157 }
28158 }
28159 print line
28160 }
28161 \$ac_cs_awk_pipe_fini
28162 _ACAWK
28163 _ACEOF
28164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28165 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28166 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28167 else
28168 cat
28169 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28170 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28171 _ACEOF
28172
28173 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28174 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28175 # trailing colons and then remove the whole line if VPATH becomes empty
28176 # (actually we leave an empty line to preserve line numbers).
28177 if test "x$srcdir" = x.; then
28178 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28179 s/:*\$(srcdir):*/:/
28180 s/:*\${srcdir}:*/:/
28181 s/:*@srcdir@:*/:/
28182 s/^\([^=]*=[ ]*\):*/\1/
28183 s/:*$//
28184 s/^[^=]*=[ ]*$//
28185 }'
28186 fi
28187
28188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28189 fi # test -n "$CONFIG_FILES"
28190
28191 # Set up the scripts for CONFIG_HEADERS section.
28192 # No need to generate them if there are no CONFIG_HEADERS.
28193 # This happens for instance with `./config.status Makefile'.
28194 if test -n "$CONFIG_HEADERS"; then
28195 cat >"$tmp/defines.awk" <<\_ACAWK ||
28196 BEGIN {
28197 _ACEOF
28198
28199 # Transform confdefs.h into an awk script `defines.awk', embedded as
28200 # here-document in config.status, that substitutes the proper values into
28201 # config.h.in to produce config.h.
28202
28203 # Create a delimiter string that does not exist in confdefs.h, to ease
28204 # handling of long lines.
28205 ac_delim='%!_!# '
28206 for ac_last_try in false false :; do
28207 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28208 if test -z "$ac_t"; then
28209 break
28210 elif $ac_last_try; then
28211 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28212 else
28213 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28214 fi
28215 done
28216
28217 # For the awk script, D is an array of macro values keyed by name,
28218 # likewise P contains macro parameters if any. Preserve backslash
28219 # newline sequences.
28220
28221 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28222 sed -n '
28223 s/.\{148\}/&'"$ac_delim"'/g
28224 t rset
28225 :rset
28226 s/^[ ]*#[ ]*define[ ][ ]*/ /
28227 t def
28228 d
28229 :def
28230 s/\\$//
28231 t bsnl
28232 s/["\\]/\\&/g
28233 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28234 D["\1"]=" \3"/p
28235 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28236 d
28237 :bsnl
28238 s/["\\]/\\&/g
28239 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28240 D["\1"]=" \3\\\\\\n"\\/p
28241 t cont
28242 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28243 t cont
28244 d
28245 :cont
28246 n
28247 s/.\{148\}/&'"$ac_delim"'/g
28248 t clear
28249 :clear
28250 s/\\$//
28251 t bsnlc
28252 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28253 d
28254 :bsnlc
28255 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28256 b cont
28257 ' <confdefs.h | sed '
28258 s/'"$ac_delim"'/"\\\
28259 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28260
28261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28262 for (key in D) D_is_set[key] = 1
28263 FS = "\a"
28264 }
28265 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28266 line = \$ 0
28267 split(line, arg, " ")
28268 if (arg[1] == "#") {
28269 defundef = arg[2]
28270 mac1 = arg[3]
28271 } else {
28272 defundef = substr(arg[1], 2)
28273 mac1 = arg[2]
28274 }
28275 split(mac1, mac2, "(") #)
28276 macro = mac2[1]
28277 prefix = substr(line, 1, index(line, defundef) - 1)
28278 if (D_is_set[macro]) {
28279 # Preserve the white space surrounding the "#".
28280 print prefix "define", macro P[macro] D[macro]
28281 next
28282 } else {
28283 # Replace #undef with comments. This is necessary, for example,
28284 # in the case of _POSIX_SOURCE, which is predefined and required
28285 # on some systems where configure will not decide to define it.
28286 if (defundef == "undef") {
28287 print "/*", prefix defundef, macro, "*/"
28288 next
28289 }
28290 }
28291 }
28292 { print }
28293 _ACAWK
28294 _ACEOF
28295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28296 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28297 fi # test -n "$CONFIG_HEADERS"
28298
28299
28300 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28301 shift
28302 for ac_tag
28303 do
28304 case $ac_tag in
28305 :[FHLC]) ac_mode=$ac_tag; continue;;
28306 esac
28307 case $ac_mode$ac_tag in
28308 :[FHL]*:*);;
28309 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28310 :[FH]-) ac_tag=-:-;;
28311 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28312 esac
28313 ac_save_IFS=$IFS
28314 IFS=:
28315 set x $ac_tag
28316 IFS=$ac_save_IFS
28317 shift
28318 ac_file=$1
28319 shift
28320
28321 case $ac_mode in
28322 :L) ac_source=$1;;
28323 :[FH])
28324 ac_file_inputs=
28325 for ac_f
28326 do
28327 case $ac_f in
28328 -) ac_f="$tmp/stdin";;
28329 *) # Look for the file first in the build tree, then in the source tree
28330 # (if the path is not absolute). The absolute path cannot be DOS-style,
28331 # because $ac_f cannot contain `:'.
28332 test -f "$ac_f" ||
28333 case $ac_f in
28334 [\\/$]*) false;;
28335 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28336 esac ||
28337 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28338 esac
28339 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28340 as_fn_append ac_file_inputs " '$ac_f'"
28341 done
28342
28343 # Let's still pretend it is `configure' which instantiates (i.e., don't
28344 # use $as_me), people would be surprised to read:
28345 # /* config.h. Generated by config.status. */
28346 configure_input='Generated from '`
28347 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28348 `' by configure.'
28349 if test x"$ac_file" != x-; then
28350 configure_input="$ac_file. $configure_input"
28351 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28352 $as_echo "$as_me: creating $ac_file" >&6;}
28353 fi
28354 # Neutralize special characters interpreted by sed in replacement strings.
28355 case $configure_input in #(
28356 *\&* | *\|* | *\\* )
28357 ac_sed_conf_input=`$as_echo "$configure_input" |
28358 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28359 *) ac_sed_conf_input=$configure_input;;
28360 esac
28361
28362 case $ac_tag in
28363 *:-:* | *:-) cat >"$tmp/stdin" \
28364 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28365 esac
28366 ;;
28367 esac
28368
28369 ac_dir=`$as_dirname -- "$ac_file" ||
28370 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28371 X"$ac_file" : 'X\(//\)[^/]' \| \
28372 X"$ac_file" : 'X\(//\)$' \| \
28373 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28374 $as_echo X"$ac_file" |
28375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28376 s//\1/
28377 q
28378 }
28379 /^X\(\/\/\)[^/].*/{
28380 s//\1/
28381 q
28382 }
28383 /^X\(\/\/\)$/{
28384 s//\1/
28385 q
28386 }
28387 /^X\(\/\).*/{
28388 s//\1/
28389 q
28390 }
28391 s/.*/./; q'`
28392 as_dir="$ac_dir"; as_fn_mkdir_p
28393 ac_builddir=.
28394
28395 case "$ac_dir" in
28396 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28397 *)
28398 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28399 # A ".." for each directory in $ac_dir_suffix.
28400 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28401 case $ac_top_builddir_sub in
28402 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28403 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28404 esac ;;
28405 esac
28406 ac_abs_top_builddir=$ac_pwd
28407 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28408 # for backward compatibility:
28409 ac_top_builddir=$ac_top_build_prefix
28410
28411 case $srcdir in
28412 .) # We are building in place.
28413 ac_srcdir=.
28414 ac_top_srcdir=$ac_top_builddir_sub
28415 ac_abs_top_srcdir=$ac_pwd ;;
28416 [\\/]* | ?:[\\/]* ) # Absolute name.
28417 ac_srcdir=$srcdir$ac_dir_suffix;
28418 ac_top_srcdir=$srcdir
28419 ac_abs_top_srcdir=$srcdir ;;
28420 *) # Relative name.
28421 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28422 ac_top_srcdir=$ac_top_build_prefix$srcdir
28423 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28424 esac
28425 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28426
28427
28428 case $ac_mode in
28429 :F)
28430 #
28431 # CONFIG_FILE
28432 #
28433
28434 _ACEOF
28435
28436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28437 # If the template does not know about datarootdir, expand it.
28438 # FIXME: This hack should be removed a few years after 2.60.
28439 ac_datarootdir_hack=; ac_datarootdir_seen=
28440 ac_sed_dataroot='
28441 /datarootdir/ {
28442 p
28443 q
28444 }
28445 /@datadir@/p
28446 /@docdir@/p
28447 /@infodir@/p
28448 /@localedir@/p
28449 /@mandir@/p'
28450 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28451 *datarootdir*) ac_datarootdir_seen=yes;;
28452 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28454 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28455 _ACEOF
28456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28457 ac_datarootdir_hack='
28458 s&@datadir@&$datadir&g
28459 s&@docdir@&$docdir&g
28460 s&@infodir@&$infodir&g
28461 s&@localedir@&$localedir&g
28462 s&@mandir@&$mandir&g
28463 s&\\\${datarootdir}&$datarootdir&g' ;;
28464 esac
28465 _ACEOF
28466
28467 # Neutralize VPATH when `$srcdir' = `.'.
28468 # Shell code in configure.ac might set extrasub.
28469 # FIXME: do we really want to maintain this feature?
28470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28471 ac_sed_extra="$ac_vpsub
28472 $extrasub
28473 _ACEOF
28474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28475 :t
28476 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28477 s|@configure_input@|$ac_sed_conf_input|;t t
28478 s&@top_builddir@&$ac_top_builddir_sub&;t t
28479 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28480 s&@srcdir@&$ac_srcdir&;t t
28481 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28482 s&@top_srcdir@&$ac_top_srcdir&;t t
28483 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28484 s&@builddir@&$ac_builddir&;t t
28485 s&@abs_builddir@&$ac_abs_builddir&;t t
28486 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28487 $ac_datarootdir_hack
28488 "
28489 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28490 if $ac_cs_awk_getline; then
28491 $AWK -f "$tmp/subs.awk"
28492 else
28493 $AWK -f "$tmp/subs.awk" | $SHELL
28494 fi >$tmp/out \
28495 || as_fn_error "could not create $ac_file" "$LINENO" 5
28496
28497 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28498 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28499 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28501 which seems to be undefined. Please make sure it is defined." >&5
28502 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28503 which seems to be undefined. Please make sure it is defined." >&2;}
28504
28505 rm -f "$tmp/stdin"
28506 case $ac_file in
28507 -) cat "$tmp/out" && rm -f "$tmp/out";;
28508 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28509 esac \
28510 || as_fn_error "could not create $ac_file" "$LINENO" 5
28511 ;;
28512 :H)
28513 #
28514 # CONFIG_HEADER
28515 #
28516 if test x"$ac_file" != x-; then
28517 {
28518 $as_echo "/* $configure_input */" \
28519 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28520 } >"$tmp/config.h" \
28521 || as_fn_error "could not create $ac_file" "$LINENO" 5
28522 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28523 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28524 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28525 else
28526 rm -f "$ac_file"
28527 mv "$tmp/config.h" "$ac_file" \
28528 || as_fn_error "could not create $ac_file" "$LINENO" 5
28529 fi
28530 else
28531 $as_echo "/* $configure_input */" \
28532 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28533 || as_fn_error "could not create -" "$LINENO" 5
28534 fi
28535 ;;
28536
28537 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28538 $as_echo "$as_me: executing $ac_file commands" >&6;}
28539 ;;
28540 esac
28541
28542
28543 case $ac_file$ac_mode in
28544 "as":F) chmod +x as ;;
28545 "collect-ld":F) chmod +x collect-ld ;;
28546 "nm":F) chmod +x nm ;;
28547 "default":C)
28548 case ${CONFIG_HEADERS} in
28549 *auto-host.h:config.in*)
28550 echo > cstamp-h ;;
28551 esac
28552 # Make sure all the subdirs exist.
28553 for d in $subdirs doc build common c-family
28554 do
28555 test -d $d || mkdir $d
28556 done
28557 ;;
28558
28559 esac
28560 done # for ac_tag
28561
28562
28563 as_fn_exit 0
28564 _ACEOF
28565 ac_clean_files=$ac_clean_files_save
28566
28567 test $ac_write_fail = 0 ||
28568 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28569
28570
28571 # configure is writing to config.log, and then calls config.status.
28572 # config.status does its own redirection, appending to config.log.
28573 # Unfortunately, on DOS this fails, as config.log is still kept open
28574 # by configure, so config.status won't be able to write to it; its
28575 # output is simply discarded. So we exec the FD to /dev/null,
28576 # effectively closing config.log, so it can be properly (re)opened and
28577 # appended to by config.status. When coming back to configure, we
28578 # need to make the FD available again.
28579 if test "$no_create" != yes; then
28580 ac_cs_success=:
28581 ac_config_status_args=
28582 test "$silent" = yes &&
28583 ac_config_status_args="$ac_config_status_args --quiet"
28584 exec 5>/dev/null
28585 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28586 exec 5>>config.log
28587 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28588 # would make configure fail if this is the last instruction.
28589 $ac_cs_success || as_fn_exit $?
28590 fi
28591 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28593 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28594 fi
28595
28596
This page took 1.424403 seconds and 5 git commands to generate.