]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
Move gthr to toplevel libgcc
[thirdparty/gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 PPLINC
608 PPLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 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 # So, we only use -pedantic if we can disable those warnings.
6398
6399 loose_warn=
6400 save_CFLAGS="$CFLAGS"
6401 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6402 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6403
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6405 $as_echo_n "checking whether $CC supports $option... " >&6; }
6406 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6407 $as_echo_n "(cached) " >&6
6408 else
6409 CFLAGS="$option"
6410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6411 /* end confdefs.h. */
6412
6413 int
6414 main ()
6415 {
6416
6417 ;
6418 return 0;
6419 }
6420 _ACEOF
6421 if ac_fn_c_try_compile "$LINENO"; then :
6422 eval "$as_acx_Woption=yes"
6423 else
6424 eval "$as_acx_Woption=no"
6425 fi
6426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6427
6428 fi
6429 eval ac_res=\$$as_acx_Woption
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6431 $as_echo "$ac_res" >&6; }
6432 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6433 loose_warn="$loose_warn${loose_warn:+ }$option"
6434 fi
6435 done
6436 CFLAGS="$save_CFLAGS"
6437
6438 c_loose_warn=
6439 save_CFLAGS="$CFLAGS"
6440 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6441 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6442
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6444 $as_echo_n "checking whether $CC supports $option... " >&6; }
6445 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6446 $as_echo_n "(cached) " >&6
6447 else
6448 CFLAGS="$option"
6449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h. */
6451
6452 int
6453 main ()
6454 {
6455
6456 ;
6457 return 0;
6458 }
6459 _ACEOF
6460 if ac_fn_c_try_compile "$LINENO"; then :
6461 eval "$as_acx_Woption=yes"
6462 else
6463 eval "$as_acx_Woption=no"
6464 fi
6465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6466
6467 fi
6468 eval ac_res=\$$as_acx_Woption
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6470 $as_echo "$ac_res" >&6; }
6471 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6472 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6473 fi
6474 done
6475 CFLAGS="$save_CFLAGS"
6476
6477 strict_warn=
6478 save_CFLAGS="$CFLAGS"
6479 for option in -Wmissing-format-attribute; do
6480 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6481
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6483 $as_echo_n "checking whether $CC supports $option... " >&6; }
6484 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6485 $as_echo_n "(cached) " >&6
6486 else
6487 CFLAGS="$option"
6488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6489 /* end confdefs.h. */
6490
6491 int
6492 main ()
6493 {
6494
6495 ;
6496 return 0;
6497 }
6498 _ACEOF
6499 if ac_fn_c_try_compile "$LINENO"; then :
6500 eval "$as_acx_Woption=yes"
6501 else
6502 eval "$as_acx_Woption=no"
6503 fi
6504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6505
6506 fi
6507 eval ac_res=\$$as_acx_Woption
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6509 $as_echo "$ac_res" >&6; }
6510 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6511 strict_warn="$strict_warn${strict_warn:+ }$option"
6512 fi
6513 done
6514 CFLAGS="$save_CFLAGS"
6515
6516 c_strict_warn=
6517 save_CFLAGS="$CFLAGS"
6518 for option in -Wold-style-definition -Wc++-compat; do
6519 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6520
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6522 $as_echo_n "checking whether $CC supports $option... " >&6; }
6523 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6524 $as_echo_n "(cached) " >&6
6525 else
6526 CFLAGS="$option"
6527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528 /* end confdefs.h. */
6529
6530 int
6531 main ()
6532 {
6533
6534 ;
6535 return 0;
6536 }
6537 _ACEOF
6538 if ac_fn_c_try_compile "$LINENO"; then :
6539 eval "$as_acx_Woption=yes"
6540 else
6541 eval "$as_acx_Woption=no"
6542 fi
6543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6544
6545 fi
6546 eval ac_res=\$$as_acx_Woption
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6548 $as_echo "$ac_res" >&6; }
6549 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6550 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6551 fi
6552 done
6553 CFLAGS="$save_CFLAGS"
6554
6555 if test "$GCC" = yes; then :
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6557 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6558 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6559 $as_echo_n "(cached) " >&6
6560 else
6561 save_CFLAGS="$CFLAGS"
6562 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564 /* end confdefs.h. */
6565
6566 int
6567 main ()
6568 {
6569
6570 ;
6571 return 0;
6572 }
6573 _ACEOF
6574 if ac_fn_c_try_compile "$LINENO"; then :
6575 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6576 else
6577 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6578 fi
6579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6580 CFLAGS="$save_CFLAGS"
6581 fi
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6583 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6584 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6585 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6586 fi
6587
6588 fi
6589
6590 # Check whether --enable-werror-always was given.
6591 if test "${enable_werror_always+set}" = set; then :
6592 enableval=$enable_werror_always;
6593 else
6594 enable_werror_always=no
6595 fi
6596
6597 if test $enable_werror_always = yes; then :
6598 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6599 fi
6600
6601
6602
6603 # The above macros do nothing if the compiler is not GCC. However, the
6604 # Makefile has more goo to add other flags, so these variables are used
6605 # to enable warnings only for GCC.
6606 warn_cflags=
6607 warn_cxxflags=
6608 if test "x$GCC" = "xyes"; then
6609 warn_cflags='$(GCC_WARN_CFLAGS)'
6610 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6611 fi
6612
6613
6614
6615 # Enable expensive internal checks
6616 is_release=
6617 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6618 is_release=yes
6619 fi
6620
6621 # Check whether --enable-checking was given.
6622 if test "${enable_checking+set}" = set; then :
6623 enableval=$enable_checking; ac_checking_flags="${enableval}"
6624 else
6625
6626 # Determine the default checks.
6627 if test x$is_release = x ; then
6628 ac_checking_flags=yes
6629 else
6630 ac_checking_flags=release
6631 fi
6632 fi
6633
6634 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6635 for check in release $ac_checking_flags
6636 do
6637 case $check in
6638 # these set all the flags to specific states
6639 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6640 ac_fold_checking= ; ac_gc_checking=1 ;
6641 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6642 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6643 ac_tree_checking=1 ; ac_valgrind_checking= ;
6644 ac_types_checking=1 ;;
6645 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6646 ac_fold_checking= ; ac_gc_checking= ;
6647 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6648 ac_rtlflag_checking= ; ac_runtime_checking= ;
6649 ac_tree_checking= ; ac_valgrind_checking= ;
6650 ac_types_checking= ;;
6651 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6652 ac_fold_checking=1 ; ac_gc_checking=1 ;
6653 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6654 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6655 ac_tree_checking=1 ; ac_valgrind_checking= ;
6656 ac_types_checking=1 ;;
6657 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6658 ac_fold_checking= ; ac_gc_checking= ;
6659 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6660 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6661 ac_tree_checking= ; ac_valgrind_checking= ;
6662 ac_types_checking= ;;
6663 # these enable particular checks
6664 assert) ac_assert_checking=1 ;;
6665 df) ac_df_checking=1 ;;
6666 fold) ac_fold_checking=1 ;;
6667 gc) ac_gc_checking=1 ;;
6668 gcac) ac_gc_always_collect=1 ;;
6669 gimple) ac_gimple_checking=1 ;;
6670 misc) ac_checking=1 ;;
6671 rtl) ac_rtl_checking=1 ;;
6672 rtlflag) ac_rtlflag_checking=1 ;;
6673 runtime) ac_runtime_checking=1 ;;
6674 tree) ac_tree_checking=1 ;;
6675 types) ac_types_checking=1 ;;
6676 valgrind) ac_valgrind_checking=1 ;;
6677 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6678 esac
6679 done
6680 IFS="$ac_save_IFS"
6681
6682 nocommon_flag=""
6683 if test x$ac_checking != x ; then
6684
6685 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6686
6687 nocommon_flag=-fno-common
6688 fi
6689
6690 if test x$ac_df_checking != x ; then
6691
6692 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6693
6694 fi
6695 if test x$ac_assert_checking != x ; then
6696
6697 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6698
6699 fi
6700 if test x$ac_gimple_checking != x ; then
6701
6702 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6703
6704 fi
6705
6706 if test x$ac_runtime_checking != x ; then
6707
6708 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6709
6710 fi
6711 if test x$ac_tree_checking != x ; then
6712
6713 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6714
6715 TREEBROWSER=tree-browser.o
6716 fi
6717 if test x$ac_types_checking != x ; then
6718
6719 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6720
6721 fi
6722
6723 if test x$ac_rtl_checking != x ; then
6724
6725 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6726
6727 fi
6728 if test x$ac_rtlflag_checking != x ; then
6729
6730 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6731
6732 fi
6733 if test x$ac_gc_checking != x ; then
6734
6735 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6736
6737 fi
6738 if test x$ac_gc_always_collect != x ; then
6739
6740 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6741
6742 fi
6743 if test x$ac_fold_checking != x ; then
6744
6745 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6746
6747 fi
6748 valgrind_path_defines=
6749 valgrind_command=
6750
6751 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6752 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6753 have_valgrind_h=yes
6754 else
6755 have_valgrind_h=no
6756 fi
6757
6758
6759
6760 if test x$ac_valgrind_checking != x ; then
6761 # It is certainly possible that there's valgrind but no valgrind.h.
6762 # GCC relies on making annotations so we must have both.
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6764 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h. */
6767 #include <valgrind/memcheck.h>
6768 #ifndef VALGRIND_DISCARD
6769 #error VALGRIND_DISCARD not defined
6770 #endif
6771 _ACEOF
6772 if ac_fn_c_try_cpp "$LINENO"; then :
6773 gcc_cv_header_valgrind_memcheck_h=yes
6774 else
6775 gcc_cv_header_valgrind_memcheck_h=no
6776 fi
6777 rm -f conftest.err conftest.$ac_ext
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6779 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6781 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h. */
6784 #include <memcheck.h>
6785 #ifndef VALGRIND_DISCARD
6786 #error VALGRIND_DISCARD not defined
6787 #endif
6788 _ACEOF
6789 if ac_fn_c_try_cpp "$LINENO"; then :
6790 gcc_cv_header_memcheck_h=yes
6791 else
6792 gcc_cv_header_memcheck_h=no
6793 fi
6794 rm -f conftest.err conftest.$ac_ext
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6796 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6797
6798 # Prepare PATH_SEPARATOR.
6799 # The user is always right.
6800 if test "${PATH_SEPARATOR+set}" != set; then
6801 echo "#! /bin/sh" >conf$$.sh
6802 echo "exit 0" >>conf$$.sh
6803 chmod +x conf$$.sh
6804 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6805 PATH_SEPARATOR=';'
6806 else
6807 PATH_SEPARATOR=:
6808 fi
6809 rm -f conf$$.sh
6810 fi
6811
6812 # Find out how to test for executable files. Don't use a zero-byte file,
6813 # as systems may use methods other than mode bits to determine executability.
6814 cat >conf$$.file <<_ASEOF
6815 #! /bin/sh
6816 exit 0
6817 _ASEOF
6818 chmod +x conf$$.file
6819 if test -x conf$$.file >/dev/null 2>&1; then
6820 ac_executable_p="test -x"
6821 else
6822 ac_executable_p="test -f"
6823 fi
6824 rm -f conf$$.file
6825
6826 # Extract the first word of "valgrind", so it can be a program name with args.
6827 set dummy valgrind; ac_word=$2
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6829 $as_echo_n "checking for $ac_word... " >&6; }
6830 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6831 $as_echo_n "(cached) " >&6
6832 else
6833 case "$valgrind_path" in
6834 [\\/]* | ?:[\\/]*)
6835 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6836 ;;
6837 *)
6838 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6839 for ac_dir in $PATH; do
6840 IFS="$ac_save_IFS"
6841 test -z "$ac_dir" && ac_dir=.
6842 for ac_exec_ext in '' $ac_executable_extensions; do
6843 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6844 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6845 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6846 break 2
6847 fi
6848 fi
6849 done
6850 done
6851 IFS="$ac_save_IFS"
6852 ;;
6853 esac
6854 fi
6855 valgrind_path="$ac_cv_path_valgrind_path"
6856 if test -n "$valgrind_path"; then
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6858 $as_echo "$valgrind_path" >&6; }
6859 else
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6861 $as_echo "no" >&6; }
6862 fi
6863
6864 if test "x$valgrind_path" = "x" \
6865 || (test $have_valgrind_h = no \
6866 && test $gcc_cv_header_memcheck_h = no \
6867 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6868 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6869 fi
6870 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6871 valgrind_command="$valgrind_path -q"
6872
6873 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6874
6875 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6876
6877 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6878
6879 fi
6880 if test $gcc_cv_header_memcheck_h = yes; then
6881
6882 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6883
6884 fi
6885 fi
6886
6887
6888
6889 # Enable code coverage collection
6890 # Check whether --enable-coverage was given.
6891 if test "${enable_coverage+set}" = set; then :
6892 enableval=$enable_coverage; case "${enableval}" in
6893 yes|noopt)
6894 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6895 ;;
6896 opt)
6897 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6898 ;;
6899 no)
6900 # a.k.a. --disable-coverage
6901 coverage_flags=""
6902 ;;
6903 *)
6904 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6905 ;;
6906 esac
6907 else
6908 coverage_flags=""
6909 fi
6910
6911
6912
6913 # Check whether --enable-gather-detailed-mem-stats was given.
6914 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6915 enableval=$enable_gather_detailed_mem_stats;
6916 else
6917 enable_gather_detailed_mem_stats=no
6918 fi
6919
6920 if test x$enable_gather_detailed_mem_stats = xyes ; then
6921
6922 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6923
6924 fi
6925
6926 # -------------------------------
6927 # Miscenalleous configure options
6928 # -------------------------------
6929
6930 # See if we are building gcc with C++.
6931 # Check whether --enable-build-with-cxx was given.
6932 if test "${enable_build_with_cxx+set}" = set; then :
6933 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6934 else
6935 ENABLE_BUILD_WITH_CXX=no
6936 fi
6937
6938
6939 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6940
6941 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6942
6943 fi
6944
6945 # With stabs
6946
6947 # Check whether --with-stabs was given.
6948 if test "${with_stabs+set}" = set; then :
6949 withval=$with_stabs; stabs="$with_stabs"
6950 else
6951 stabs=no
6952 fi
6953
6954
6955 # Determine whether or not multilibs are enabled.
6956 # Check whether --enable-multilib was given.
6957 if test "${enable_multilib+set}" = set; then :
6958 enableval=$enable_multilib;
6959 else
6960 enable_multilib=yes
6961 fi
6962
6963
6964
6965 # Enable __cxa_atexit for C++.
6966 # Check whether --enable-__cxa_atexit was given.
6967 if test "${enable___cxa_atexit+set}" = set; then :
6968 enableval=$enable___cxa_atexit;
6969 fi
6970
6971
6972 # Enable C extension for decimal float if target supports it.
6973
6974 # Check whether --enable-decimal-float was given.
6975 if test "${enable_decimal_float+set}" = set; then :
6976 enableval=$enable_decimal_float;
6977 case $enable_decimal_float in
6978 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6979 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6980 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6981 esac
6982
6983 else
6984
6985 case $target in
6986 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6987 i?86*-*-mingw* | x86_64*-*-mingw* | \
6988 i?86*-*-cygwin*)
6989 enable_decimal_float=yes
6990 ;;
6991 *)
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6993 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6994 enable_decimal_float=no
6995 ;;
6996 esac
6997
6998 fi
6999
7000
7001 # x86's use BID format instead of DPD
7002 case x$enable_decimal_float in
7003 xyes)
7004 case $target in
7005 i?86*-*-* | x86_64*-*-*)
7006 enable_decimal_float=bid
7007 ;;
7008 *)
7009 enable_decimal_float=dpd
7010 ;;
7011 esac
7012 default_decimal_float=$enable_decimal_float
7013 ;;
7014 xno)
7015 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7016 # dependency on libdecnumber.
7017 default_decimal_float=dpd
7018 ;;
7019 esac
7020
7021
7022
7023
7024 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7025
7026 cat >>confdefs.h <<_ACEOF
7027 #define ENABLE_DECIMAL_FLOAT $dfp
7028 _ACEOF
7029
7030
7031 # Use default_decimal_float for dependency.
7032 enable_decimal_float=$default_decimal_float
7033
7034 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7035
7036 cat >>confdefs.h <<_ACEOF
7037 #define ENABLE_DECIMAL_BID_FORMAT $bid
7038 _ACEOF
7039
7040
7041 # Enable C extension for fixed-point arithmetic.
7042 # Check whether --enable-fixed-point was given.
7043 if test "${enable_fixed_point+set}" = set; then :
7044 enableval=$enable_fixed_point;
7045 else
7046
7047 case $target in
7048 arm*)
7049 enable_fixed_point=yes
7050 ;;
7051
7052 mips*-*-*)
7053 case $host in
7054 mips*-sgi-irix*)
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
7056 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
7057 enable_fixed_point=no
7058 ;;
7059 *)
7060 enable_fixed_point=yes
7061 ;;
7062 esac
7063 ;;
7064 *)
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7066 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7067 enable_fixed_point=no
7068 ;;
7069 esac
7070
7071 fi
7072
7073
7074
7075 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7076
7077 cat >>confdefs.h <<_ACEOF
7078 #define ENABLE_FIXED_POINT $fixedpoint
7079 _ACEOF
7080
7081
7082 # Enable threads
7083 # Pass with no value to take the default
7084 # Pass with a value to specify a thread package
7085 # Check whether --enable-threads was given.
7086 if test "${enable_threads+set}" = set; then :
7087 enableval=$enable_threads;
7088 else
7089 enable_threads=''
7090 fi
7091
7092
7093 # Check whether --enable-tls was given.
7094 if test "${enable_tls+set}" = set; then :
7095 enableval=$enable_tls;
7096 case $enable_tls in
7097 yes | no) ;;
7098 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7099 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7100 esac
7101
7102 else
7103 enable_tls=''
7104 fi
7105
7106
7107 # Check whether --enable-objc-gc was given.
7108 if test "${enable_objc_gc+set}" = set; then :
7109 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7110 objc_boehm_gc=''
7111 else
7112 objc_boehm_gc=1
7113 fi
7114 else
7115 objc_boehm_gc=''
7116 fi
7117
7118
7119
7120 # Check whether --with-dwarf2 was given.
7121 if test "${with_dwarf2+set}" = set; then :
7122 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7123 else
7124 dwarf2=no
7125 fi
7126
7127
7128 # Check whether --enable-shared was given.
7129 if test "${enable_shared+set}" = set; then :
7130 enableval=$enable_shared;
7131 case $enable_shared in
7132 yes | no) ;;
7133 *)
7134 enable_shared=no
7135 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7136 for pkg in $enableval; do
7137 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7138 enable_shared=yes
7139 fi
7140 done
7141 IFS="$ac_save_ifs"
7142 ;;
7143 esac
7144
7145 else
7146 enable_shared=yes
7147 fi
7148
7149
7150
7151
7152 # Check whether --with-native-system-header-dir was given.
7153 if test "${with_native_system_header_dir+set}" = set; then :
7154 withval=$with_native_system_header_dir;
7155 case ${with_native_system_header_dir} in
7156 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7157 /* | [A-Za-z]:[\\/]*) ;;
7158 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7159 esac
7160 configured_native_system_header_dir="${withval}"
7161
7162 else
7163 configured_native_system_header_dir=
7164 fi
7165
7166
7167
7168 # Check whether --with-build-sysroot was given.
7169 if test "${with_build_sysroot+set}" = set; then :
7170 withval=$with_build_sysroot; if test x"$withval" != x ; then
7171 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7172 fi
7173 else
7174 SYSROOT_CFLAGS_FOR_TARGET=
7175 fi
7176
7177
7178
7179
7180 # Check whether --with-sysroot was given.
7181 if test "${with_sysroot+set}" = set; then :
7182 withval=$with_sysroot;
7183 case ${with_sysroot} in
7184 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7185 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7186 esac
7187
7188 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7189 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7190
7191 if test "x$prefix" = xNONE; then
7192 test_prefix=/usr/local
7193 else
7194 test_prefix=$prefix
7195 fi
7196 if test "x$exec_prefix" = xNONE; then
7197 test_exec_prefix=$test_prefix
7198 else
7199 test_exec_prefix=$exec_prefix
7200 fi
7201 case ${TARGET_SYSTEM_ROOT} in
7202 "${test_prefix}"|"${test_prefix}/"*|\
7203 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7204 '${prefix}'|'${prefix}/'*|\
7205 '${exec_prefix}'|'${exec_prefix}/'*)
7206 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7207 TARGET_SYSTEM_ROOT_DEFINE="$t"
7208 ;;
7209 esac
7210
7211 else
7212
7213 TARGET_SYSTEM_ROOT=
7214 TARGET_SYSTEM_ROOT_DEFINE=
7215 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7216
7217 fi
7218
7219
7220
7221
7222
7223
7224 # Check whether --with-specs was given.
7225 if test "${with_specs+set}" = set; then :
7226 withval=$with_specs; CONFIGURE_SPECS=$withval
7227 else
7228 CONFIGURE_SPECS=
7229
7230 fi
7231
7232
7233
7234
7235
7236 # Check whether --with-pkgversion was given.
7237 if test "${with_pkgversion+set}" = set; then :
7238 withval=$with_pkgversion; case "$withval" in
7239 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7240 no) PKGVERSION= ;;
7241 *) PKGVERSION="($withval) " ;;
7242 esac
7243 else
7244 PKGVERSION="(GCC) "
7245
7246 fi
7247
7248
7249
7250
7251
7252 # Check whether --with-bugurl was given.
7253 if test "${with_bugurl+set}" = set; then :
7254 withval=$with_bugurl; case "$withval" in
7255 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7256 no) BUGURL=
7257 ;;
7258 *) BUGURL="$withval"
7259 ;;
7260 esac
7261 else
7262 BUGURL="http://gcc.gnu.org/bugs.html"
7263
7264 fi
7265
7266 case ${BUGURL} in
7267 "")
7268 REPORT_BUGS_TO=
7269 REPORT_BUGS_TEXI=
7270 ;;
7271 *)
7272 REPORT_BUGS_TO="<$BUGURL>"
7273 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7274 ;;
7275 esac;
7276
7277
7278
7279
7280 # Sanity check enable_languages in case someone does not run the toplevel
7281 # configure # script.
7282 # Check whether --enable-languages was given.
7283 if test "${enable_languages+set}" = set; then :
7284 enableval=$enable_languages; case ,${enable_languages}, in
7285 ,,|,yes,)
7286 # go safe -- we cannot be much sure without the toplevel
7287 # configure's
7288 # analysis of which target libs are present and usable
7289 enable_languages=c
7290 ;;
7291 *,all,*)
7292 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7293 ;;
7294 *,c,*)
7295 ;;
7296 *)
7297 enable_languages=c,${enable_languages}
7298 ;;
7299 esac
7300 else
7301 enable_languages=c
7302 fi
7303
7304
7305
7306 # Check whether --with-multilib-list was given.
7307 if test "${with_multilib_list+set}" = set; then :
7308 withval=$with_multilib_list; :
7309 else
7310 with_multilib_list=default
7311 fi
7312
7313
7314 # -------------------------
7315 # Checks for other programs
7316 # -------------------------
7317
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7319 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7320 set x ${MAKE-make}
7321 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7322 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7323 $as_echo_n "(cached) " >&6
7324 else
7325 cat >conftest.make <<\_ACEOF
7326 SHELL = /bin/sh
7327 all:
7328 @echo '@@@%%%=$(MAKE)=@@@%%%'
7329 _ACEOF
7330 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7331 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7332 *@@@%%%=?*=@@@%%%*)
7333 eval ac_cv_prog_make_${ac_make}_set=yes;;
7334 *)
7335 eval ac_cv_prog_make_${ac_make}_set=no;;
7336 esac
7337 rm -f conftest.make
7338 fi
7339 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7341 $as_echo "yes" >&6; }
7342 SET_MAKE=
7343 else
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345 $as_echo "no" >&6; }
7346 SET_MAKE="MAKE=${MAKE-make}"
7347 fi
7348
7349
7350 # Find some useful tools
7351 for ac_prog in gawk mawk nawk awk
7352 do
7353 # Extract the first word of "$ac_prog", so it can be a program name with args.
7354 set dummy $ac_prog; ac_word=$2
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7356 $as_echo_n "checking for $ac_word... " >&6; }
7357 if test "${ac_cv_prog_AWK+set}" = set; then :
7358 $as_echo_n "(cached) " >&6
7359 else
7360 if test -n "$AWK"; then
7361 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7362 else
7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 for as_dir in $PATH
7365 do
7366 IFS=$as_save_IFS
7367 test -z "$as_dir" && as_dir=.
7368 for ac_exec_ext in '' $ac_executable_extensions; do
7369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7370 ac_cv_prog_AWK="$ac_prog"
7371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 break 2
7373 fi
7374 done
7375 done
7376 IFS=$as_save_IFS
7377
7378 fi
7379 fi
7380 AWK=$ac_cv_prog_AWK
7381 if test -n "$AWK"; then
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7383 $as_echo "$AWK" >&6; }
7384 else
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386 $as_echo "no" >&6; }
7387 fi
7388
7389
7390 test -n "$AWK" && break
7391 done
7392
7393 # We need awk to create options.c and options.h.
7394 # Bail out if it's missing.
7395 case ${AWK} in
7396 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7397 esac
7398
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7400 $as_echo_n "checking whether ln -s works... " >&6; }
7401 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7402 $as_echo_n "(cached) " >&6
7403 else
7404 rm -f conftestdata_t
7405 echo >conftestdata_f
7406 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7407 then
7408 gcc_cv_prog_LN_S="ln -s"
7409 else
7410 if ln conftestdata_f conftestdata_t 2>/dev/null
7411 then
7412 gcc_cv_prog_LN_S=ln
7413 else
7414 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7415 then
7416 gcc_cv_prog_LN_S="cp -p"
7417 else
7418 gcc_cv_prog_LN_S=cp
7419 fi
7420 fi
7421 fi
7422 rm -f conftestdata_f conftestdata_t
7423
7424 fi
7425 LN_S="$gcc_cv_prog_LN_S"
7426 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7428 $as_echo "yes" >&6; }
7429 else
7430 if test "$gcc_cv_prog_LN_S" = "ln"; then
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7432 $as_echo "no, using ln" >&6; }
7433 else
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7435 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7436 fi
7437 fi
7438
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7440 $as_echo_n "checking whether ln works... " >&6; }
7441 if test "${acx_cv_prog_LN+set}" = set; then :
7442 $as_echo_n "(cached) " >&6
7443 else
7444 rm -f conftestdata_t
7445 echo >conftestdata_f
7446 if ln conftestdata_f conftestdata_t 2>/dev/null
7447 then
7448 acx_cv_prog_LN=ln
7449 else
7450 acx_cv_prog_LN=no
7451 fi
7452 rm -f conftestdata_f conftestdata_t
7453
7454 fi
7455 if test $acx_cv_prog_LN = no; then
7456 LN="$LN_S"
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7458 $as_echo "no, using $LN" >&6; }
7459 else
7460 LN="$acx_cv_prog_LN"
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7462 $as_echo "yes" >&6; }
7463 fi
7464
7465 if test -n "$ac_tool_prefix"; then
7466 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7467 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7469 $as_echo_n "checking for $ac_word... " >&6; }
7470 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7471 $as_echo_n "(cached) " >&6
7472 else
7473 if test -n "$RANLIB"; then
7474 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7475 else
7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477 for as_dir in $PATH
7478 do
7479 IFS=$as_save_IFS
7480 test -z "$as_dir" && as_dir=.
7481 for ac_exec_ext in '' $ac_executable_extensions; do
7482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7483 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 break 2
7486 fi
7487 done
7488 done
7489 IFS=$as_save_IFS
7490
7491 fi
7492 fi
7493 RANLIB=$ac_cv_prog_RANLIB
7494 if test -n "$RANLIB"; then
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7496 $as_echo "$RANLIB" >&6; }
7497 else
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7499 $as_echo "no" >&6; }
7500 fi
7501
7502
7503 fi
7504 if test -z "$ac_cv_prog_RANLIB"; then
7505 ac_ct_RANLIB=$RANLIB
7506 # Extract the first word of "ranlib", so it can be a program name with args.
7507 set dummy ranlib; ac_word=$2
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7509 $as_echo_n "checking for $ac_word... " >&6; }
7510 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7511 $as_echo_n "(cached) " >&6
7512 else
7513 if test -n "$ac_ct_RANLIB"; then
7514 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7515 else
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 for as_dir in $PATH
7518 do
7519 IFS=$as_save_IFS
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7523 ac_cv_prog_ac_ct_RANLIB="ranlib"
7524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 break 2
7526 fi
7527 done
7528 done
7529 IFS=$as_save_IFS
7530
7531 fi
7532 fi
7533 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7534 if test -n "$ac_ct_RANLIB"; then
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7536 $as_echo "$ac_ct_RANLIB" >&6; }
7537 else
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7539 $as_echo "no" >&6; }
7540 fi
7541
7542 if test "x$ac_ct_RANLIB" = x; then
7543 RANLIB=":"
7544 else
7545 case $cross_compiling:$ac_tool_warned in
7546 yes:)
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7549 ac_tool_warned=yes ;;
7550 esac
7551 RANLIB=$ac_ct_RANLIB
7552 fi
7553 else
7554 RANLIB="$ac_cv_prog_RANLIB"
7555 fi
7556
7557 case "${host}" in
7558 *-*-darwin*)
7559 # By default, the Darwin ranlib will not treat common symbols as
7560 # definitions when building the archive table of contents. Other
7561 # ranlibs do that; pass an option to the Darwin ranlib that makes
7562 # it behave similarly.
7563 ranlib_flags="-c"
7564 ;;
7565 *)
7566 ranlib_flags=""
7567 esac
7568
7569
7570 # Find a good install program. We prefer a C program (faster),
7571 # so one script is as good as another. But avoid the broken or
7572 # incompatible versions:
7573 # SysV /etc/install, /usr/sbin/install
7574 # SunOS /usr/etc/install
7575 # IRIX /sbin/install
7576 # AIX /bin/install
7577 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7578 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7579 # ./install, which can be erroneously created by make from ./install.sh.
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7581 $as_echo_n "checking for a BSD compatible install... " >&6; }
7582 if test -z "$INSTALL"; then
7583 if test "${ac_cv_path_install+set}" = set; then :
7584 $as_echo_n "(cached) " >&6
7585 else
7586 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7587 for ac_dir in $PATH; do
7588 # Account for people who put trailing slashes in PATH elements.
7589 case "$ac_dir/" in
7590 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7591 *)
7592 # OSF1 and SCO ODT 3.0 have their own names for install.
7593 for ac_prog in ginstall scoinst install; do
7594 if test -f $ac_dir/$ac_prog; then
7595 if test $ac_prog = install &&
7596 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7597 # AIX install. It has an incompatible calling convention.
7598 # OSF/1 installbsd also uses dspmsg, but is usable.
7599 :
7600 else
7601 ac_cv_path_install="$ac_dir/$ac_prog -c"
7602 break 2
7603 fi
7604 fi
7605 done
7606 ;;
7607 esac
7608 done
7609 IFS="$ac_save_IFS"
7610
7611 fi
7612 if test "${ac_cv_path_install+set}" = set; then
7613 INSTALL="$ac_cv_path_install"
7614 else
7615 # As a last resort, use the slow shell script. We don't cache a
7616 # path for INSTALL within a source directory, because that will
7617 # break other packages using the cache if that directory is
7618 # removed, or if the path is relative.
7619 INSTALL="$ac_install_sh"
7620 fi
7621 fi
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7623 $as_echo "$INSTALL" >&6; }
7624
7625 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7626 # It thinks the first close brace ends the variable substitution.
7627 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7628
7629 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7630
7631
7632 # See if cmp has --ignore-initial.
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7634 $as_echo_n "checking for cmp's capabilities... " >&6; }
7635 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7636 $as_echo_n "(cached) " >&6
7637 else
7638 echo abfoo >t1
7639 echo cdfoo >t2
7640 gcc_cv_prog_cmp_skip=slowcompare
7641 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7642 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7643 :
7644 else
7645 gcc_cv_prog_cmp_skip=gnucompare
7646 fi
7647 fi
7648 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7649 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7650 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7651 :
7652 else
7653 gcc_cv_prog_cmp_skip=fastcompare
7654 fi
7655 fi
7656 fi
7657 rm t1 t2
7658
7659 fi
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7661 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7662 make_compare_target=$gcc_cv_prog_cmp_skip
7663
7664
7665
7666 # See if we have the mktemp command.
7667 # Extract the first word of "mktemp", so it can be a program name with args.
7668 set dummy mktemp; ac_word=$2
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7670 $as_echo_n "checking for $ac_word... " >&6; }
7671 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7672 $as_echo_n "(cached) " >&6
7673 else
7674 if test -n "$have_mktemp_command"; then
7675 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7676 else
7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 for as_dir in $PATH
7679 do
7680 IFS=$as_save_IFS
7681 test -z "$as_dir" && as_dir=.
7682 for ac_exec_ext in '' $ac_executable_extensions; do
7683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7684 ac_cv_prog_have_mktemp_command="yes"
7685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7686 break 2
7687 fi
7688 done
7689 done
7690 IFS=$as_save_IFS
7691
7692 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7693 fi
7694 fi
7695 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7696 if test -n "$have_mktemp_command"; then
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7698 $as_echo "$have_mktemp_command" >&6; }
7699 else
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701 $as_echo "no" >&6; }
7702 fi
7703
7704
7705
7706 # See if makeinfo has been installed and is modern enough
7707 # that we can use it.
7708
7709 # Extract the first word of "makeinfo", so it can be a program name with args.
7710 set dummy makeinfo; ac_word=$2
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712 $as_echo_n "checking for $ac_word... " >&6; }
7713 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7714 $as_echo_n "(cached) " >&6
7715 else
7716 if test -n "$MAKEINFO"; then
7717 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7718 else
7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 for as_dir in $PATH
7721 do
7722 IFS=$as_save_IFS
7723 test -z "$as_dir" && as_dir=.
7724 for ac_exec_ext in '' $ac_executable_extensions; do
7725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7726 ac_cv_prog_MAKEINFO="makeinfo"
7727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7728 break 2
7729 fi
7730 done
7731 done
7732 IFS=$as_save_IFS
7733
7734 fi
7735 fi
7736 MAKEINFO=$ac_cv_prog_MAKEINFO
7737 if test -n "$MAKEINFO"; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7739 $as_echo "$MAKEINFO" >&6; }
7740 else
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 $as_echo "no" >&6; }
7743 fi
7744
7745
7746 if test -n "$MAKEINFO"; then
7747 # Found it, now check the version.
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7749 $as_echo_n "checking for modern makeinfo... " >&6; }
7750 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7751 $as_echo_n "(cached) " >&6
7752 else
7753 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7754 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7755
7756 case $ac_prog_version in
7757 '') gcc_cv_prog_makeinfo_modern=no;;
7758 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7759 *) gcc_cv_prog_makeinfo_modern=no;;
7760 esac
7761
7762 fi
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7764 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7765 else
7766 gcc_cv_prog_makeinfo_modern=no
7767 fi
7768 if test $gcc_cv_prog_makeinfo_modern = no; then
7769 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7770 fi
7771
7772 if test $gcc_cv_prog_makeinfo_modern = no; then
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7774 *** Makeinfo is missing or too old.
7775 *** Info documentation will not be built." >&5
7776 $as_echo "$as_me: WARNING:
7777 *** Makeinfo is missing or too old.
7778 *** Info documentation will not be built." >&2;}
7779 BUILD_INFO=
7780 else
7781 BUILD_INFO=info
7782 fi
7783
7784
7785 # Is pod2man recent enough to regenerate manpages?
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7787 $as_echo_n "checking for recent Pod::Man... " >&6; }
7788 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7790 $as_echo "yes" >&6; }
7791 GENERATED_MANPAGES=generated-manpages
7792 else
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794 $as_echo "no" >&6; }
7795 GENERATED_MANPAGES=
7796 fi
7797
7798
7799 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7800
7801 # How about lex?
7802 for ac_prog in flex
7803 do
7804 # Extract the first word of "$ac_prog", so it can be a program name with args.
7805 set dummy $ac_prog; ac_word=$2
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807 $as_echo_n "checking for $ac_word... " >&6; }
7808 if test "${ac_cv_prog_FLEX+set}" = set; then :
7809 $as_echo_n "(cached) " >&6
7810 else
7811 if test -n "$FLEX"; then
7812 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7813 else
7814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815 for as_dir in $PATH
7816 do
7817 IFS=$as_save_IFS
7818 test -z "$as_dir" && as_dir=.
7819 for ac_exec_ext in '' $ac_executable_extensions; do
7820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7821 ac_cv_prog_FLEX="$ac_prog"
7822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 break 2
7824 fi
7825 done
7826 done
7827 IFS=$as_save_IFS
7828
7829 fi
7830 fi
7831 FLEX=$ac_cv_prog_FLEX
7832 if test -n "$FLEX"; then
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7834 $as_echo "$FLEX" >&6; }
7835 else
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837 $as_echo "no" >&6; }
7838 fi
7839
7840
7841 test -n "$FLEX" && break
7842 done
7843 test -n "$FLEX" || FLEX="$MISSING flex"
7844
7845
7846 # Bison?
7847 for ac_prog in bison
7848 do
7849 # Extract the first word of "$ac_prog", so it can be a program name with args.
7850 set dummy $ac_prog; ac_word=$2
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852 $as_echo_n "checking for $ac_word... " >&6; }
7853 if test "${ac_cv_prog_BISON+set}" = set; then :
7854 $as_echo_n "(cached) " >&6
7855 else
7856 if test -n "$BISON"; then
7857 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7858 else
7859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860 for as_dir in $PATH
7861 do
7862 IFS=$as_save_IFS
7863 test -z "$as_dir" && as_dir=.
7864 for ac_exec_ext in '' $ac_executable_extensions; do
7865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7866 ac_cv_prog_BISON="$ac_prog"
7867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7868 break 2
7869 fi
7870 done
7871 done
7872 IFS=$as_save_IFS
7873
7874 fi
7875 fi
7876 BISON=$ac_cv_prog_BISON
7877 if test -n "$BISON"; then
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7879 $as_echo "$BISON" >&6; }
7880 else
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882 $as_echo "no" >&6; }
7883 fi
7884
7885
7886 test -n "$BISON" && break
7887 done
7888 test -n "$BISON" || BISON="$MISSING bison"
7889
7890
7891 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7892 # check for build == host before using them.
7893
7894 # NM
7895 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7896 && test -d ../binutils ; then
7897 NM='${objdir}/../binutils/nm-new'
7898 else
7899 # Extract the first word of "nm", so it can be a program name with args.
7900 set dummy nm; ac_word=$2
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7902 $as_echo_n "checking for $ac_word... " >&6; }
7903 if test "${ac_cv_prog_NM+set}" = set; then :
7904 $as_echo_n "(cached) " >&6
7905 else
7906 if test -n "$NM"; then
7907 ac_cv_prog_NM="$NM" # Let the user override the test.
7908 else
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910 for as_dir in $PATH
7911 do
7912 IFS=$as_save_IFS
7913 test -z "$as_dir" && as_dir=.
7914 for ac_exec_ext in '' $ac_executable_extensions; do
7915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7916 ac_cv_prog_NM="nm"
7917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7918 break 2
7919 fi
7920 done
7921 done
7922 IFS=$as_save_IFS
7923
7924 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7925 fi
7926 fi
7927 NM=$ac_cv_prog_NM
7928 if test -n "$NM"; then
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7930 $as_echo "$NM" >&6; }
7931 else
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933 $as_echo "no" >&6; }
7934 fi
7935
7936
7937 fi
7938
7939 # AR
7940 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7941 && test -d ../binutils ; then
7942 AR='${objdir}/../binutils/ar'
7943 else
7944 # Extract the first word of "ar", so it can be a program name with args.
7945 set dummy ar; ac_word=$2
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7947 $as_echo_n "checking for $ac_word... " >&6; }
7948 if test "${ac_cv_prog_AR+set}" = set; then :
7949 $as_echo_n "(cached) " >&6
7950 else
7951 if test -n "$AR"; then
7952 ac_cv_prog_AR="$AR" # Let the user override the test.
7953 else
7954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7955 for as_dir in $PATH
7956 do
7957 IFS=$as_save_IFS
7958 test -z "$as_dir" && as_dir=.
7959 for ac_exec_ext in '' $ac_executable_extensions; do
7960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7961 ac_cv_prog_AR="ar"
7962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7963 break 2
7964 fi
7965 done
7966 done
7967 IFS=$as_save_IFS
7968
7969 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7970 fi
7971 fi
7972 AR=$ac_cv_prog_AR
7973 if test -n "$AR"; then
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7975 $as_echo "$AR" >&6; }
7976 else
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7978 $as_echo "no" >&6; }
7979 fi
7980
7981
7982 fi
7983
7984
7985 # --------------------
7986 # Checks for C headers
7987 # --------------------
7988
7989 # Need to reject headers which give warnings, so that the -Werror bootstrap
7990 # works later. *sigh* This needs to come before all header checks.
7991
7992 ac_c_preproc_warn_flag=yes
7993
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7995 $as_echo_n "checking for ANSI C header files... " >&6; }
7996 if test "${ac_cv_header_stdc+set}" = set; then :
7997 $as_echo_n "(cached) " >&6
7998 else
7999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000 /* end confdefs.h. */
8001 #include <stdlib.h>
8002 #include <stdarg.h>
8003 #include <string.h>
8004 #include <float.h>
8005
8006 int
8007 main ()
8008 {
8009
8010 ;
8011 return 0;
8012 }
8013 _ACEOF
8014 if ac_fn_c_try_compile "$LINENO"; then :
8015 ac_cv_header_stdc=yes
8016 else
8017 ac_cv_header_stdc=no
8018 fi
8019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8020
8021 if test $ac_cv_header_stdc = yes; then
8022 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8024 /* end confdefs.h. */
8025 #include <string.h>
8026
8027 _ACEOF
8028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8029 $EGREP "memchr" >/dev/null 2>&1; then :
8030
8031 else
8032 ac_cv_header_stdc=no
8033 fi
8034 rm -f conftest*
8035
8036 fi
8037
8038 if test $ac_cv_header_stdc = yes; then
8039 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8041 /* end confdefs.h. */
8042 #include <stdlib.h>
8043
8044 _ACEOF
8045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8046 $EGREP "free" >/dev/null 2>&1; then :
8047
8048 else
8049 ac_cv_header_stdc=no
8050 fi
8051 rm -f conftest*
8052
8053 fi
8054
8055 if test $ac_cv_header_stdc = yes; then
8056 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8057 if test "$cross_compiling" = yes; then :
8058 :
8059 else
8060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061 /* end confdefs.h. */
8062 #include <ctype.h>
8063 #include <stdlib.h>
8064 #if ((' ' & 0x0FF) == 0x020)
8065 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8066 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8067 #else
8068 # define ISLOWER(c) \
8069 (('a' <= (c) && (c) <= 'i') \
8070 || ('j' <= (c) && (c) <= 'r') \
8071 || ('s' <= (c) && (c) <= 'z'))
8072 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8073 #endif
8074
8075 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8076 int
8077 main ()
8078 {
8079 int i;
8080 for (i = 0; i < 256; i++)
8081 if (XOR (islower (i), ISLOWER (i))
8082 || toupper (i) != TOUPPER (i))
8083 return 2;
8084 return 0;
8085 }
8086 _ACEOF
8087 if ac_fn_c_try_run "$LINENO"; then :
8088
8089 else
8090 ac_cv_header_stdc=no
8091 fi
8092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8093 conftest.$ac_objext conftest.beam conftest.$ac_ext
8094 fi
8095
8096 fi
8097 fi
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8099 $as_echo "$ac_cv_header_stdc" >&6; }
8100 if test $ac_cv_header_stdc = yes; then
8101
8102 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8103
8104 fi
8105
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8107 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8108 if test "${ac_cv_header_time+set}" = set; then :
8109 $as_echo_n "(cached) " >&6
8110 else
8111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8112 /* end confdefs.h. */
8113 #include <sys/types.h>
8114 #include <sys/time.h>
8115 #include <time.h>
8116
8117 int
8118 main ()
8119 {
8120 if ((struct tm *) 0)
8121 return 0;
8122 ;
8123 return 0;
8124 }
8125 _ACEOF
8126 if ac_fn_c_try_compile "$LINENO"; then :
8127 ac_cv_header_time=yes
8128 else
8129 ac_cv_header_time=no
8130 fi
8131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8132 fi
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8134 $as_echo "$ac_cv_header_time" >&6; }
8135 if test $ac_cv_header_time = yes; then
8136
8137 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8138
8139 fi
8140
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8142 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8143 if test "${gcc_cv_header_string+set}" = set; then :
8144 $as_echo_n "(cached) " >&6
8145 else
8146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8147 /* end confdefs.h. */
8148 #include <string.h>
8149 #include <strings.h>
8150 int
8151 main ()
8152 {
8153
8154 ;
8155 return 0;
8156 }
8157 _ACEOF
8158 if ac_fn_c_try_compile "$LINENO"; then :
8159 gcc_cv_header_string=yes
8160 else
8161 gcc_cv_header_string=no
8162 fi
8163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8164 fi
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8166 $as_echo "$gcc_cv_header_string" >&6; }
8167 if test $gcc_cv_header_string = yes; then
8168
8169 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8170
8171 fi
8172
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8174 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8175 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8176 $as_echo_n "(cached) " >&6
8177 else
8178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8179 /* end confdefs.h. */
8180 #include <sys/types.h>
8181 #include <sys/wait.h>
8182 #ifndef WEXITSTATUS
8183 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8184 #endif
8185 #ifndef WIFEXITED
8186 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8187 #endif
8188
8189 int
8190 main ()
8191 {
8192 int s;
8193 wait (&s);
8194 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8195 ;
8196 return 0;
8197 }
8198 _ACEOF
8199 if ac_fn_c_try_compile "$LINENO"; then :
8200 ac_cv_header_sys_wait_h=yes
8201 else
8202 ac_cv_header_sys_wait_h=no
8203 fi
8204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8205 fi
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8207 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8208 if test $ac_cv_header_sys_wait_h = yes; then
8209
8210 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8211
8212 fi
8213
8214 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8215 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8216 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8217 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8218 do :
8219 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8220 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8221 eval as_val=\$$as_ac_Header
8222 if test "x$as_val" = x""yes; then :
8223 cat >>confdefs.h <<_ACEOF
8224 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8225 _ACEOF
8226
8227 fi
8228 done
8229
8230
8231 # Check for thread headers.
8232 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8233 if test "x$ac_cv_header_thread_h" = x""yes; then :
8234 have_thread_h=yes
8235 else
8236 have_thread_h=
8237 fi
8238
8239 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8240 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8241 have_pthread_h=yes
8242 else
8243 have_pthread_h=
8244 fi
8245
8246
8247 # These tests can't be done till we know if we have limits.h.
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8249 $as_echo_n "checking for CHAR_BIT... " >&6; }
8250 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8251 $as_echo_n "(cached) " >&6
8252 else
8253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8254 /* end confdefs.h. */
8255 #ifdef HAVE_LIMITS_H
8256 #include <limits.h>
8257 #endif
8258 #ifdef CHAR_BIT
8259 found
8260 #endif
8261 _ACEOF
8262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8263 $EGREP "found" >/dev/null 2>&1; then :
8264 gcc_cv_decl_char_bit=yes
8265 else
8266 gcc_cv_decl_char_bit=no
8267 fi
8268 rm -f conftest*
8269
8270
8271 fi
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8273 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8274 if test $gcc_cv_decl_char_bit = no; then
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8276 $as_echo_n "checking number of bits in a byte... " >&6; }
8277 if test "${gcc_cv_c_nbby+set}" = set; then :
8278 $as_echo_n "(cached) " >&6
8279 else
8280 i=8
8281 gcc_cv_c_nbby=
8282 while test $i -lt 65; do
8283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8284 /* end confdefs.h. */
8285
8286 int
8287 main ()
8288 {
8289 switch(0) {
8290 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8291 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8292 ; }
8293 ;
8294 return 0;
8295 }
8296 _ACEOF
8297 if ac_fn_c_try_compile "$LINENO"; then :
8298 gcc_cv_c_nbby=$i; break
8299 fi
8300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8301 i=`expr $i + 1`
8302 done
8303 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8304
8305 fi
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8307 $as_echo "$gcc_cv_c_nbby" >&6; }
8308 if test $gcc_cv_c_nbby = failed; then
8309 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8310 else
8311
8312 cat >>confdefs.h <<_ACEOF
8313 #define CHAR_BIT $gcc_cv_c_nbby
8314 _ACEOF
8315
8316 fi
8317 fi
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8319 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8320 if test "${ac_cv_c_bigendian+set}" = set; then :
8321 $as_echo_n "(cached) " >&6
8322 else
8323 ac_cv_c_bigendian=unknown
8324 # See if we're dealing with a universal compiler.
8325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8326 /* end confdefs.h. */
8327 #ifndef __APPLE_CC__
8328 not a universal capable compiler
8329 #endif
8330 typedef int dummy;
8331
8332 _ACEOF
8333 if ac_fn_c_try_compile "$LINENO"; then :
8334
8335 # Check for potential -arch flags. It is not universal unless
8336 # there are at least two -arch flags with different values.
8337 ac_arch=
8338 ac_prev=
8339 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8340 if test -n "$ac_prev"; then
8341 case $ac_word in
8342 i?86 | x86_64 | ppc | ppc64)
8343 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8344 ac_arch=$ac_word
8345 else
8346 ac_cv_c_bigendian=universal
8347 break
8348 fi
8349 ;;
8350 esac
8351 ac_prev=
8352 elif test "x$ac_word" = "x-arch"; then
8353 ac_prev=arch
8354 fi
8355 done
8356 fi
8357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8358 if test $ac_cv_c_bigendian = unknown; then
8359 # See if sys/param.h defines the BYTE_ORDER macro.
8360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8361 /* end confdefs.h. */
8362 #include <sys/types.h>
8363 #include <sys/param.h>
8364
8365 int
8366 main ()
8367 {
8368 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8369 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8370 && LITTLE_ENDIAN)
8371 bogus endian macros
8372 #endif
8373
8374 ;
8375 return 0;
8376 }
8377 _ACEOF
8378 if ac_fn_c_try_compile "$LINENO"; then :
8379 # It does; now see whether it defined to BIG_ENDIAN or not.
8380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8381 /* end confdefs.h. */
8382 #include <sys/types.h>
8383 #include <sys/param.h>
8384
8385 int
8386 main ()
8387 {
8388 #if BYTE_ORDER != BIG_ENDIAN
8389 not big endian
8390 #endif
8391
8392 ;
8393 return 0;
8394 }
8395 _ACEOF
8396 if ac_fn_c_try_compile "$LINENO"; then :
8397 ac_cv_c_bigendian=yes
8398 else
8399 ac_cv_c_bigendian=no
8400 fi
8401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8402 fi
8403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8404 fi
8405 if test $ac_cv_c_bigendian = unknown; then
8406 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408 /* end confdefs.h. */
8409 #include <limits.h>
8410
8411 int
8412 main ()
8413 {
8414 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8415 bogus endian macros
8416 #endif
8417
8418 ;
8419 return 0;
8420 }
8421 _ACEOF
8422 if ac_fn_c_try_compile "$LINENO"; then :
8423 # It does; now see whether it defined to _BIG_ENDIAN or not.
8424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8425 /* end confdefs.h. */
8426 #include <limits.h>
8427
8428 int
8429 main ()
8430 {
8431 #ifndef _BIG_ENDIAN
8432 not big endian
8433 #endif
8434
8435 ;
8436 return 0;
8437 }
8438 _ACEOF
8439 if ac_fn_c_try_compile "$LINENO"; then :
8440 ac_cv_c_bigendian=yes
8441 else
8442 ac_cv_c_bigendian=no
8443 fi
8444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8445 fi
8446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8447 fi
8448 if test $ac_cv_c_bigendian = unknown; then
8449 # Compile a test program.
8450 if test "$cross_compiling" = yes; then :
8451 # Try to guess by grepping values from an object file.
8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453 /* end confdefs.h. */
8454 short int ascii_mm[] =
8455 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8456 short int ascii_ii[] =
8457 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8458 int use_ascii (int i) {
8459 return ascii_mm[i] + ascii_ii[i];
8460 }
8461 short int ebcdic_ii[] =
8462 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8463 short int ebcdic_mm[] =
8464 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8465 int use_ebcdic (int i) {
8466 return ebcdic_mm[i] + ebcdic_ii[i];
8467 }
8468 extern int foo;
8469
8470 int
8471 main ()
8472 {
8473 return use_ascii (foo) == use_ebcdic (foo);
8474 ;
8475 return 0;
8476 }
8477 _ACEOF
8478 if ac_fn_c_try_compile "$LINENO"; then :
8479 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8480 ac_cv_c_bigendian=yes
8481 fi
8482 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8483 if test "$ac_cv_c_bigendian" = unknown; then
8484 ac_cv_c_bigendian=no
8485 else
8486 # finding both strings is unlikely to happen, but who knows?
8487 ac_cv_c_bigendian=unknown
8488 fi
8489 fi
8490 fi
8491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8492 else
8493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8494 /* end confdefs.h. */
8495 $ac_includes_default
8496 int
8497 main ()
8498 {
8499
8500 /* Are we little or big endian? From Harbison&Steele. */
8501 union
8502 {
8503 long int l;
8504 char c[sizeof (long int)];
8505 } u;
8506 u.l = 1;
8507 return u.c[sizeof (long int) - 1] == 1;
8508
8509 ;
8510 return 0;
8511 }
8512 _ACEOF
8513 if ac_fn_c_try_run "$LINENO"; then :
8514 ac_cv_c_bigendian=no
8515 else
8516 ac_cv_c_bigendian=yes
8517 fi
8518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8519 conftest.$ac_objext conftest.beam conftest.$ac_ext
8520 fi
8521
8522 fi
8523 fi
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8525 $as_echo "$ac_cv_c_bigendian" >&6; }
8526 case $ac_cv_c_bigendian in #(
8527 yes)
8528 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8529 ;; #(
8530 no)
8531 ;; #(
8532 universal)
8533
8534 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8535
8536 ;; #(
8537 *)
8538 as_fn_error "unknown endianness
8539 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8540 esac
8541
8542
8543 # ----------------------
8544 # Checks for C++ headers
8545 # ----------------------
8546
8547 ac_ext=cpp
8548 ac_cpp='$CXXCPP $CPPFLAGS'
8549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8553 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8554 if test -z "$CXXCPP"; then
8555 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8556 $as_echo_n "(cached) " >&6
8557 else
8558 # Double quotes because CXXCPP needs to be expanded
8559 for CXXCPP in "$CXX -E" "/lib/cpp"
8560 do
8561 ac_preproc_ok=false
8562 for ac_cxx_preproc_warn_flag in '' yes
8563 do
8564 # Use a header file that comes with gcc, so configuring glibc
8565 # with a fresh cross-compiler works.
8566 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8567 # <limits.h> exists even on freestanding compilers.
8568 # On the NeXT, cc -E runs the code through the compiler's parser,
8569 # not just through cpp. "Syntax error" is here to catch this case.
8570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8571 /* end confdefs.h. */
8572 #ifdef __STDC__
8573 # include <limits.h>
8574 #else
8575 # include <assert.h>
8576 #endif
8577 Syntax error
8578 _ACEOF
8579 if ac_fn_cxx_try_cpp "$LINENO"; then :
8580
8581 else
8582 # Broken: fails on valid input.
8583 continue
8584 fi
8585 rm -f conftest.err conftest.$ac_ext
8586
8587 # OK, works on sane cases. Now check whether nonexistent headers
8588 # can be detected and how.
8589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8590 /* end confdefs.h. */
8591 #include <ac_nonexistent.h>
8592 _ACEOF
8593 if ac_fn_cxx_try_cpp "$LINENO"; then :
8594 # Broken: success on invalid input.
8595 continue
8596 else
8597 # Passes both tests.
8598 ac_preproc_ok=:
8599 break
8600 fi
8601 rm -f conftest.err conftest.$ac_ext
8602
8603 done
8604 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8605 rm -f conftest.err conftest.$ac_ext
8606 if $ac_preproc_ok; then :
8607 break
8608 fi
8609
8610 done
8611 ac_cv_prog_CXXCPP=$CXXCPP
8612
8613 fi
8614 CXXCPP=$ac_cv_prog_CXXCPP
8615 else
8616 ac_cv_prog_CXXCPP=$CXXCPP
8617 fi
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8619 $as_echo "$CXXCPP" >&6; }
8620 ac_preproc_ok=false
8621 for ac_cxx_preproc_warn_flag in '' yes
8622 do
8623 # Use a header file that comes with gcc, so configuring glibc
8624 # with a fresh cross-compiler works.
8625 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8626 # <limits.h> exists even on freestanding compilers.
8627 # On the NeXT, cc -E runs the code through the compiler's parser,
8628 # not just through cpp. "Syntax error" is here to catch this case.
8629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8630 /* end confdefs.h. */
8631 #ifdef __STDC__
8632 # include <limits.h>
8633 #else
8634 # include <assert.h>
8635 #endif
8636 Syntax error
8637 _ACEOF
8638 if ac_fn_cxx_try_cpp "$LINENO"; then :
8639
8640 else
8641 # Broken: fails on valid input.
8642 continue
8643 fi
8644 rm -f conftest.err conftest.$ac_ext
8645
8646 # OK, works on sane cases. Now check whether nonexistent headers
8647 # can be detected and how.
8648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8649 /* end confdefs.h. */
8650 #include <ac_nonexistent.h>
8651 _ACEOF
8652 if ac_fn_cxx_try_cpp "$LINENO"; then :
8653 # Broken: success on invalid input.
8654 continue
8655 else
8656 # Passes both tests.
8657 ac_preproc_ok=:
8658 break
8659 fi
8660 rm -f conftest.err conftest.$ac_ext
8661
8662 done
8663 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8664 rm -f conftest.err conftest.$ac_ext
8665 if $ac_preproc_ok; then :
8666
8667 else
8668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8671 See \`config.log' for more details." >&5
8672 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8673 See \`config.log' for more details." >&2;}; }
8674 fi
8675
8676 ac_ext=c
8677 ac_cpp='$CPP $CPPFLAGS'
8678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8681
8682
8683 ac_ext=cpp
8684 ac_cpp='$CXXCPP $CPPFLAGS'
8685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8686 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8688
8689
8690
8691
8692 for ac_header in unordered_map
8693 do :
8694 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8695 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8696 cat >>confdefs.h <<_ACEOF
8697 #define HAVE_UNORDERED_MAP 1
8698 _ACEOF
8699
8700 fi
8701 done
8702
8703 for ac_header in tr1/unordered_map
8704 do :
8705 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8706 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8707 cat >>confdefs.h <<_ACEOF
8708 #define HAVE_TR1_UNORDERED_MAP 1
8709 _ACEOF
8710
8711 fi
8712 done
8713
8714 for ac_header in ext/hash_map
8715 do :
8716 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8717 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8718 cat >>confdefs.h <<_ACEOF
8719 #define HAVE_EXT_HASH_MAP 1
8720 _ACEOF
8721
8722 fi
8723 done
8724
8725
8726 ac_ext=c
8727 ac_cpp='$CPP $CPPFLAGS'
8728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8731
8732
8733 # --------
8734 # UNSORTED
8735 # --------
8736
8737
8738 # These libraries may be used by collect2.
8739 # We may need a special search path to get them linked.
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8741 $as_echo_n "checking for collect2 libraries... " >&6; }
8742 if test "${gcc_cv_collect2_libs+set}" = set; then :
8743 $as_echo_n "(cached) " >&6
8744 else
8745 save_LIBS="$LIBS"
8746 for libs in '' -lld -lmld \
8747 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8748 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8749 do
8750 LIBS="$libs"
8751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8752 /* end confdefs.h. */
8753
8754 /* Override any GCC internal prototype to avoid an error.
8755 Use char because int might match the return type of a GCC
8756 builtin and then its argument prototype would still apply. */
8757 #ifdef __cplusplus
8758 extern "C"
8759 #endif
8760 char ldopen ();
8761 int
8762 main ()
8763 {
8764 return ldopen ();
8765 ;
8766 return 0;
8767 }
8768 _ACEOF
8769 if ac_fn_c_try_link "$LINENO"; then :
8770 gcc_cv_collect2_libs="$libs"; break
8771 fi
8772 rm -f core conftest.err conftest.$ac_objext \
8773 conftest$ac_exeext conftest.$ac_ext
8774 done
8775 LIBS="$save_LIBS"
8776 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8777 fi
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8779 $as_echo "$gcc_cv_collect2_libs" >&6; }
8780 case $gcc_cv_collect2_libs in
8781 "none required") ;;
8782 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8783 esac
8784
8785
8786 # When building Ada code on Alpha, we need exc_resume which is usually in
8787 # -lexc. So test for it.
8788 save_LIBS="$LIBS"
8789 LIBS=
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8791 $as_echo_n "checking for library containing exc_resume... " >&6; }
8792 if test "${ac_cv_search_exc_resume+set}" = set; then :
8793 $as_echo_n "(cached) " >&6
8794 else
8795 ac_func_search_save_LIBS=$LIBS
8796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8797 /* end confdefs.h. */
8798
8799 /* Override any GCC internal prototype to avoid an error.
8800 Use char because int might match the return type of a GCC
8801 builtin and then its argument prototype would still apply. */
8802 #ifdef __cplusplus
8803 extern "C"
8804 #endif
8805 char exc_resume ();
8806 int
8807 main ()
8808 {
8809 return exc_resume ();
8810 ;
8811 return 0;
8812 }
8813 _ACEOF
8814 for ac_lib in '' exc; do
8815 if test -z "$ac_lib"; then
8816 ac_res="none required"
8817 else
8818 ac_res=-l$ac_lib
8819 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8820 fi
8821 if ac_fn_c_try_link "$LINENO"; then :
8822 ac_cv_search_exc_resume=$ac_res
8823 fi
8824 rm -f core conftest.err conftest.$ac_objext \
8825 conftest$ac_exeext
8826 if test "${ac_cv_search_exc_resume+set}" = set; then :
8827 break
8828 fi
8829 done
8830 if test "${ac_cv_search_exc_resume+set}" = set; then :
8831
8832 else
8833 ac_cv_search_exc_resume=no
8834 fi
8835 rm conftest.$ac_ext
8836 LIBS=$ac_func_search_save_LIBS
8837 fi
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8839 $as_echo "$ac_cv_search_exc_resume" >&6; }
8840 ac_res=$ac_cv_search_exc_resume
8841 if test "$ac_res" != no; then :
8842 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8843
8844 fi
8845
8846 GNAT_LIBEXC="$LIBS"
8847 LIBS="$save_LIBS"
8848
8849
8850 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8851 save_LIBS="$LIBS"
8852 LIBS=
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8854 $as_echo_n "checking for library containing kstat_open... " >&6; }
8855 if test "${ac_cv_search_kstat_open+set}" = set; then :
8856 $as_echo_n "(cached) " >&6
8857 else
8858 ac_func_search_save_LIBS=$LIBS
8859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h. */
8861
8862 /* Override any GCC internal prototype to avoid an error.
8863 Use char because int might match the return type of a GCC
8864 builtin and then its argument prototype would still apply. */
8865 #ifdef __cplusplus
8866 extern "C"
8867 #endif
8868 char kstat_open ();
8869 int
8870 main ()
8871 {
8872 return kstat_open ();
8873 ;
8874 return 0;
8875 }
8876 _ACEOF
8877 for ac_lib in '' kstat; do
8878 if test -z "$ac_lib"; then
8879 ac_res="none required"
8880 else
8881 ac_res=-l$ac_lib
8882 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8883 fi
8884 if ac_fn_c_try_link "$LINENO"; then :
8885 ac_cv_search_kstat_open=$ac_res
8886 fi
8887 rm -f core conftest.err conftest.$ac_objext \
8888 conftest$ac_exeext
8889 if test "${ac_cv_search_kstat_open+set}" = set; then :
8890 break
8891 fi
8892 done
8893 if test "${ac_cv_search_kstat_open+set}" = set; then :
8894
8895 else
8896 ac_cv_search_kstat_open=no
8897 fi
8898 rm conftest.$ac_ext
8899 LIBS=$ac_func_search_save_LIBS
8900 fi
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8902 $as_echo "$ac_cv_search_kstat_open" >&6; }
8903 ac_res=$ac_cv_search_kstat_open
8904 if test "$ac_res" != no; then :
8905 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8906
8907 fi
8908
8909 EXTRA_GCC_LIBS="$LIBS"
8910 LIBS="$save_LIBS"
8911
8912
8913 # Some systems put ldexp and frexp in libm instead of libc; assume
8914 # they're both in the same place. jcf-dump needs them.
8915 save_LIBS="$LIBS"
8916 LIBS=
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8918 $as_echo_n "checking for library containing ldexp... " >&6; }
8919 if test "${ac_cv_search_ldexp+set}" = set; then :
8920 $as_echo_n "(cached) " >&6
8921 else
8922 ac_func_search_save_LIBS=$LIBS
8923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h. */
8925
8926 /* Override any GCC internal prototype to avoid an error.
8927 Use char because int might match the return type of a GCC
8928 builtin and then its argument prototype would still apply. */
8929 #ifdef __cplusplus
8930 extern "C"
8931 #endif
8932 char ldexp ();
8933 int
8934 main ()
8935 {
8936 return ldexp ();
8937 ;
8938 return 0;
8939 }
8940 _ACEOF
8941 for ac_lib in '' m; do
8942 if test -z "$ac_lib"; then
8943 ac_res="none required"
8944 else
8945 ac_res=-l$ac_lib
8946 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8947 fi
8948 if ac_fn_c_try_link "$LINENO"; then :
8949 ac_cv_search_ldexp=$ac_res
8950 fi
8951 rm -f core conftest.err conftest.$ac_objext \
8952 conftest$ac_exeext
8953 if test "${ac_cv_search_ldexp+set}" = set; then :
8954 break
8955 fi
8956 done
8957 if test "${ac_cv_search_ldexp+set}" = set; then :
8958
8959 else
8960 ac_cv_search_ldexp=no
8961 fi
8962 rm conftest.$ac_ext
8963 LIBS=$ac_func_search_save_LIBS
8964 fi
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8966 $as_echo "$ac_cv_search_ldexp" >&6; }
8967 ac_res=$ac_cv_search_ldexp
8968 if test "$ac_res" != no; then :
8969 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8970
8971 fi
8972
8973 LDEXP_LIB="$LIBS"
8974 LIBS="$save_LIBS"
8975
8976
8977 # Use <inttypes.h> only if it exists,
8978 # doesn't clash with <sys/types.h>, and declares intmax_t.
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8980 $as_echo_n "checking for inttypes.h... " >&6; }
8981 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8982 $as_echo_n "(cached) " >&6
8983 else
8984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8985 /* end confdefs.h. */
8986 #include <sys/types.h>
8987 #include <inttypes.h>
8988 int
8989 main ()
8990 {
8991 intmax_t i = -1;
8992 ;
8993 return 0;
8994 }
8995 _ACEOF
8996 if ac_fn_c_try_compile "$LINENO"; then :
8997 gcc_cv_header_inttypes_h=yes
8998 else
8999 gcc_cv_header_inttypes_h=no
9000 fi
9001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9002 fi
9003
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9005 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9006 if test $gcc_cv_header_inttypes_h = yes; then
9007
9008 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9009
9010 fi
9011
9012
9013
9014 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9015 sysconf strsignal getrusage nl_langinfo \
9016 gettimeofday mbstowcs wcswidth mmap setlocale \
9017 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
9018 do :
9019 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9020 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9021 eval as_val=\$$as_ac_var
9022 if test "x$as_val" = x""yes; then :
9023 cat >>confdefs.h <<_ACEOF
9024 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9025 _ACEOF
9026
9027 fi
9028 done
9029
9030
9031 if test x$ac_cv_func_mbstowcs = xyes; then
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9033 $as_echo_n "checking whether mbstowcs works... " >&6; }
9034 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9035 $as_echo_n "(cached) " >&6
9036 else
9037 if test "$cross_compiling" = yes; then :
9038 gcc_cv_func_mbstowcs_works=yes
9039 else
9040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9041 /* end confdefs.h. */
9042 #include <stdlib.h>
9043 int main()
9044 {
9045 mbstowcs(0, "", 0);
9046 return 0;
9047 }
9048 _ACEOF
9049 if ac_fn_c_try_run "$LINENO"; then :
9050 gcc_cv_func_mbstowcs_works=yes
9051 else
9052 gcc_cv_func_mbstowcs_works=no
9053 fi
9054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9055 conftest.$ac_objext conftest.beam conftest.$ac_ext
9056 fi
9057
9058 fi
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9060 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9061 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9062
9063 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9064
9065 fi
9066 fi
9067
9068 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9069 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9070
9071 else
9072
9073 cat >>confdefs.h <<_ACEOF
9074 #define ssize_t int
9075 _ACEOF
9076
9077 fi
9078
9079 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9080 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9081
9082 else
9083
9084 cat >>confdefs.h <<_ACEOF
9085 #define caddr_t char *
9086 _ACEOF
9087
9088 fi
9089
9090
9091
9092 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9093 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9094 gcc_header_sys_mman_h=yes
9095 else
9096 gcc_header_sys_mman_h=no
9097 fi
9098
9099 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9100 if test "x$ac_cv_func_mmap" = x""yes; then :
9101 gcc_func_mmap=yes
9102 else
9103 gcc_func_mmap=no
9104 fi
9105
9106 if test "$gcc_header_sys_mman_h" != yes \
9107 || test "$gcc_func_mmap" != yes; then
9108 gcc_cv_func_mmap_file=no
9109 gcc_cv_func_mmap_dev_zero=no
9110 gcc_cv_func_mmap_anon=no
9111 else
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9113 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9114 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9115 $as_echo_n "(cached) " >&6
9116 else
9117 # Add a system to this blacklist if
9118 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9119 # memory area containing the same data that you'd get if you applied
9120 # read() to the same fd. The only system known to have a problem here
9121 # is VMS, where text files have record structure.
9122 case "$host_os" in
9123 vms* | ultrix*)
9124 gcc_cv_func_mmap_file=no ;;
9125 *)
9126 gcc_cv_func_mmap_file=yes;;
9127 esac
9128 fi
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9130 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9132 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9133 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9134 $as_echo_n "(cached) " >&6
9135 else
9136 # Add a system to this blacklist if it has mmap() but /dev/zero
9137 # does not exist, or if mmapping /dev/zero does not give anonymous
9138 # zeroed pages with both the following properties:
9139 # 1. If you map N consecutive pages in with one call, and then
9140 # unmap any subset of those pages, the pages that were not
9141 # explicitly unmapped remain accessible.
9142 # 2. If you map two adjacent blocks of memory and then unmap them
9143 # both at once, they must both go away.
9144 # Systems known to be in this category are Windows (all variants),
9145 # VMS, and Darwin.
9146 case "$host_os" in
9147 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9148 gcc_cv_func_mmap_dev_zero=no ;;
9149 *)
9150 gcc_cv_func_mmap_dev_zero=yes;;
9151 esac
9152 fi
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9154 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9155
9156 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9158 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9159 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9160 $as_echo_n "(cached) " >&6
9161 else
9162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h. */
9164 #include <sys/types.h>
9165 #include <sys/mman.h>
9166 #include <unistd.h>
9167
9168 #ifndef MAP_ANONYMOUS
9169 #define MAP_ANONYMOUS MAP_ANON
9170 #endif
9171
9172 int
9173 main ()
9174 {
9175 int n = MAP_ANONYMOUS;
9176 ;
9177 return 0;
9178 }
9179 _ACEOF
9180 if ac_fn_c_try_compile "$LINENO"; then :
9181 gcc_cv_decl_map_anon=yes
9182 else
9183 gcc_cv_decl_map_anon=no
9184 fi
9185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9186 fi
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9188 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9189
9190 if test $gcc_cv_decl_map_anon = no; then
9191 gcc_cv_func_mmap_anon=no
9192 else
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9194 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9195 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9196 $as_echo_n "(cached) " >&6
9197 else
9198 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9199 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9200 # doesn't give anonymous zeroed pages with the same properties listed
9201 # above for use of /dev/zero.
9202 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9203 case "$host_os" in
9204 vms* | cygwin* | pe | mingw* | sco* | udk* )
9205 gcc_cv_func_mmap_anon=no ;;
9206 *)
9207 gcc_cv_func_mmap_anon=yes;;
9208 esac
9209 fi
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9211 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9212 fi
9213 fi
9214
9215 if test $gcc_cv_func_mmap_file = yes; then
9216
9217 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9218
9219 fi
9220 if test $gcc_cv_func_mmap_dev_zero = yes; then
9221
9222 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9223
9224 fi
9225 if test $gcc_cv_func_mmap_anon = yes; then
9226
9227 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9228
9229 fi
9230
9231
9232 case "${host}" in
9233 *-*-*vms*)
9234 # Under VMS, vfork works very differently than on Unix. The standard test
9235 # won't work, and it isn't easily adaptable. It makes more sense to
9236 # just force it.
9237 ac_cv_func_vfork_works=yes
9238 ;;
9239 esac
9240 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9241 if test "x$ac_cv_type_pid_t" = x""yes; then :
9242
9243 else
9244
9245 cat >>confdefs.h <<_ACEOF
9246 #define pid_t int
9247 _ACEOF
9248
9249 fi
9250
9251 for ac_header in vfork.h
9252 do :
9253 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9254 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9255 cat >>confdefs.h <<_ACEOF
9256 #define HAVE_VFORK_H 1
9257 _ACEOF
9258
9259 fi
9260 done
9261
9262 for ac_func in fork vfork
9263 do :
9264 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9265 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9266 eval as_val=\$$as_ac_var
9267 if test "x$as_val" = x""yes; then :
9268 cat >>confdefs.h <<_ACEOF
9269 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9270 _ACEOF
9271
9272 fi
9273 done
9274
9275 if test "x$ac_cv_func_fork" = xyes; then
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9277 $as_echo_n "checking for working fork... " >&6; }
9278 if test "${ac_cv_func_fork_works+set}" = set; then :
9279 $as_echo_n "(cached) " >&6
9280 else
9281 if test "$cross_compiling" = yes; then :
9282 ac_cv_func_fork_works=cross
9283 else
9284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9285 /* end confdefs.h. */
9286 $ac_includes_default
9287 int
9288 main ()
9289 {
9290
9291 /* By Ruediger Kuhlmann. */
9292 return fork () < 0;
9293
9294 ;
9295 return 0;
9296 }
9297 _ACEOF
9298 if ac_fn_c_try_run "$LINENO"; then :
9299 ac_cv_func_fork_works=yes
9300 else
9301 ac_cv_func_fork_works=no
9302 fi
9303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9304 conftest.$ac_objext conftest.beam conftest.$ac_ext
9305 fi
9306
9307 fi
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9309 $as_echo "$ac_cv_func_fork_works" >&6; }
9310
9311 else
9312 ac_cv_func_fork_works=$ac_cv_func_fork
9313 fi
9314 if test "x$ac_cv_func_fork_works" = xcross; then
9315 case $host in
9316 *-*-amigaos* | *-*-msdosdjgpp*)
9317 # Override, as these systems have only a dummy fork() stub
9318 ac_cv_func_fork_works=no
9319 ;;
9320 *)
9321 ac_cv_func_fork_works=yes
9322 ;;
9323 esac
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9325 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9326 fi
9327 ac_cv_func_vfork_works=$ac_cv_func_vfork
9328 if test "x$ac_cv_func_vfork" = xyes; then
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9330 $as_echo_n "checking for working vfork... " >&6; }
9331 if test "${ac_cv_func_vfork_works+set}" = set; then :
9332 $as_echo_n "(cached) " >&6
9333 else
9334 if test "$cross_compiling" = yes; then :
9335 ac_cv_func_vfork_works=cross
9336 else
9337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9338 /* end confdefs.h. */
9339 /* Thanks to Paul Eggert for this test. */
9340 $ac_includes_default
9341 #include <sys/wait.h>
9342 #ifdef HAVE_VFORK_H
9343 # include <vfork.h>
9344 #endif
9345 /* On some sparc systems, changes by the child to local and incoming
9346 argument registers are propagated back to the parent. The compiler
9347 is told about this with #include <vfork.h>, but some compilers
9348 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9349 static variable whose address is put into a register that is
9350 clobbered by the vfork. */
9351 static void
9352 #ifdef __cplusplus
9353 sparc_address_test (int arg)
9354 # else
9355 sparc_address_test (arg) int arg;
9356 #endif
9357 {
9358 static pid_t child;
9359 if (!child) {
9360 child = vfork ();
9361 if (child < 0) {
9362 perror ("vfork");
9363 _exit(2);
9364 }
9365 if (!child) {
9366 arg = getpid();
9367 write(-1, "", 0);
9368 _exit (arg);
9369 }
9370 }
9371 }
9372
9373 int
9374 main ()
9375 {
9376 pid_t parent = getpid ();
9377 pid_t child;
9378
9379 sparc_address_test (0);
9380
9381 child = vfork ();
9382
9383 if (child == 0) {
9384 /* Here is another test for sparc vfork register problems. This
9385 test uses lots of local variables, at least as many local
9386 variables as main has allocated so far including compiler
9387 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9388 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9389 reuse the register of parent for one of the local variables,
9390 since it will think that parent can't possibly be used any more
9391 in this routine. Assigning to the local variable will thus
9392 munge parent in the parent process. */
9393 pid_t
9394 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9395 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9396 /* Convince the compiler that p..p7 are live; otherwise, it might
9397 use the same hardware register for all 8 local variables. */
9398 if (p != p1 || p != p2 || p != p3 || p != p4
9399 || p != p5 || p != p6 || p != p7)
9400 _exit(1);
9401
9402 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9403 from child file descriptors. If the child closes a descriptor
9404 before it execs or exits, this munges the parent's descriptor
9405 as well. Test for this by closing stdout in the child. */
9406 _exit(close(fileno(stdout)) != 0);
9407 } else {
9408 int status;
9409 struct stat st;
9410
9411 while (wait(&status) != child)
9412 ;
9413 return (
9414 /* Was there some problem with vforking? */
9415 child < 0
9416
9417 /* Did the child fail? (This shouldn't happen.) */
9418 || status
9419
9420 /* Did the vfork/compiler bug occur? */
9421 || parent != getpid()
9422
9423 /* Did the file descriptor bug occur? */
9424 || fstat(fileno(stdout), &st) != 0
9425 );
9426 }
9427 }
9428 _ACEOF
9429 if ac_fn_c_try_run "$LINENO"; then :
9430 ac_cv_func_vfork_works=yes
9431 else
9432 ac_cv_func_vfork_works=no
9433 fi
9434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9435 conftest.$ac_objext conftest.beam conftest.$ac_ext
9436 fi
9437
9438 fi
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9440 $as_echo "$ac_cv_func_vfork_works" >&6; }
9441
9442 fi;
9443 if test "x$ac_cv_func_fork_works" = xcross; then
9444 ac_cv_func_vfork_works=$ac_cv_func_vfork
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9446 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9447 fi
9448
9449 if test "x$ac_cv_func_vfork_works" = xyes; then
9450
9451 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9452
9453 else
9454
9455 $as_echo "#define vfork fork" >>confdefs.h
9456
9457 fi
9458 if test "x$ac_cv_func_fork_works" = xyes; then
9459
9460 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9461
9462 fi
9463
9464
9465 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9466 # iconv() prototype.
9467
9468 if test "X$prefix" = "XNONE"; then
9469 acl_final_prefix="$ac_default_prefix"
9470 else
9471 acl_final_prefix="$prefix"
9472 fi
9473 if test "X$exec_prefix" = "XNONE"; then
9474 acl_final_exec_prefix='${prefix}'
9475 else
9476 acl_final_exec_prefix="$exec_prefix"
9477 fi
9478 acl_save_prefix="$prefix"
9479 prefix="$acl_final_prefix"
9480 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9481 prefix="$acl_save_prefix"
9482
9483
9484 # Check whether --with-gnu-ld was given.
9485 if test "${with_gnu_ld+set}" = set; then :
9486 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9487 else
9488 with_gnu_ld=no
9489 fi
9490
9491 # Prepare PATH_SEPARATOR.
9492 # The user is always right.
9493 if test "${PATH_SEPARATOR+set}" != set; then
9494 echo "#! /bin/sh" >conf$$.sh
9495 echo "exit 0" >>conf$$.sh
9496 chmod +x conf$$.sh
9497 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9498 PATH_SEPARATOR=';'
9499 else
9500 PATH_SEPARATOR=:
9501 fi
9502 rm -f conf$$.sh
9503 fi
9504 ac_prog=ld
9505 if test "$GCC" = yes; then
9506 # Check if gcc -print-prog-name=ld gives a path.
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9508 $as_echo_n "checking for ld used by GCC... " >&6; }
9509 case $host in
9510 *-*-mingw*)
9511 # gcc leaves a trailing carriage return which upsets mingw
9512 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9513 *)
9514 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9515 esac
9516 case $ac_prog in
9517 # Accept absolute paths.
9518 [\\/]* | [A-Za-z]:[\\/]*)
9519 re_direlt='/[^/][^/]*/\.\./'
9520 # Canonicalize the path of ld
9521 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9522 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9523 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9524 done
9525 test -z "$LD" && LD="$ac_prog"
9526 ;;
9527 "")
9528 # If it fails, then pretend we aren't using GCC.
9529 ac_prog=ld
9530 ;;
9531 *)
9532 # If it is relative, then search for the first ld in PATH.
9533 with_gnu_ld=unknown
9534 ;;
9535 esac
9536 elif test "$with_gnu_ld" = yes; then
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9538 $as_echo_n "checking for GNU ld... " >&6; }
9539 else
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9541 $as_echo_n "checking for non-GNU ld... " >&6; }
9542 fi
9543 if test "${acl_cv_path_LD+set}" = set; then :
9544 $as_echo_n "(cached) " >&6
9545 else
9546 if test -z "$LD"; then
9547 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9548 for ac_dir in $PATH; do
9549 test -z "$ac_dir" && ac_dir=.
9550 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9551 acl_cv_path_LD="$ac_dir/$ac_prog"
9552 # Check to see if the program is GNU ld. I'd rather use --version,
9553 # but apparently some GNU ld's only accept -v.
9554 # Break only if it was the GNU/non-GNU ld that we prefer.
9555 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9556 test "$with_gnu_ld" != no && break
9557 else
9558 test "$with_gnu_ld" != yes && break
9559 fi
9560 fi
9561 done
9562 IFS="$ac_save_ifs"
9563 else
9564 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9565 fi
9566 fi
9567
9568 LD="$acl_cv_path_LD"
9569 if test -n "$LD"; then
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9571 $as_echo "$LD" >&6; }
9572 else
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9574 $as_echo "no" >&6; }
9575 fi
9576 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9578 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9579 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9580 $as_echo_n "(cached) " >&6
9581 else
9582 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9583 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9584 acl_cv_prog_gnu_ld=yes
9585 else
9586 acl_cv_prog_gnu_ld=no
9587 fi
9588 fi
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9590 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9591 with_gnu_ld=$acl_cv_prog_gnu_ld
9592
9593
9594
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9596 $as_echo_n "checking for shared library run path origin... " >&6; }
9597 if test "${acl_cv_rpath+set}" = set; then :
9598 $as_echo_n "(cached) " >&6
9599 else
9600
9601 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9602 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9603 . ./conftest.sh
9604 rm -f ./conftest.sh
9605 acl_cv_rpath=done
9606
9607 fi
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9609 $as_echo "$acl_cv_rpath" >&6; }
9610 wl="$acl_cv_wl"
9611 libext="$acl_cv_libext"
9612 shlibext="$acl_cv_shlibext"
9613 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9614 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9615 hardcode_direct="$acl_cv_hardcode_direct"
9616 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9617 # Check whether --enable-rpath was given.
9618 if test "${enable_rpath+set}" = set; then :
9619 enableval=$enable_rpath; :
9620 else
9621 enable_rpath=yes
9622 fi
9623
9624
9625
9626
9627
9628
9629
9630
9631 use_additional=yes
9632
9633 acl_save_prefix="$prefix"
9634 prefix="$acl_final_prefix"
9635 acl_save_exec_prefix="$exec_prefix"
9636 exec_prefix="$acl_final_exec_prefix"
9637
9638 eval additional_includedir=\"$includedir\"
9639 eval additional_libdir=\"$libdir\"
9640
9641 exec_prefix="$acl_save_exec_prefix"
9642 prefix="$acl_save_prefix"
9643
9644
9645 # Check whether --with-libiconv-prefix was given.
9646 if test "${with_libiconv_prefix+set}" = set; then :
9647 withval=$with_libiconv_prefix;
9648 if test "X$withval" = "Xno"; then
9649 use_additional=no
9650 else
9651 if test "X$withval" = "X"; then
9652
9653 acl_save_prefix="$prefix"
9654 prefix="$acl_final_prefix"
9655 acl_save_exec_prefix="$exec_prefix"
9656 exec_prefix="$acl_final_exec_prefix"
9657
9658 eval additional_includedir=\"$includedir\"
9659 eval additional_libdir=\"$libdir\"
9660
9661 exec_prefix="$acl_save_exec_prefix"
9662 prefix="$acl_save_prefix"
9663
9664 else
9665 additional_includedir="$withval/include"
9666 additional_libdir="$withval/lib"
9667 fi
9668 fi
9669
9670 fi
9671
9672 LIBICONV=
9673 LTLIBICONV=
9674 INCICONV=
9675 rpathdirs=
9676 ltrpathdirs=
9677 names_already_handled=
9678 names_next_round='iconv '
9679 while test -n "$names_next_round"; do
9680 names_this_round="$names_next_round"
9681 names_next_round=
9682 for name in $names_this_round; do
9683 already_handled=
9684 for n in $names_already_handled; do
9685 if test "$n" = "$name"; then
9686 already_handled=yes
9687 break
9688 fi
9689 done
9690 if test -z "$already_handled"; then
9691 names_already_handled="$names_already_handled $name"
9692 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9693 eval value=\"\$HAVE_LIB$uppername\"
9694 if test -n "$value"; then
9695 if test "$value" = yes; then
9696 eval value=\"\$LIB$uppername\"
9697 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9698 eval value=\"\$LTLIB$uppername\"
9699 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9700 else
9701 :
9702 fi
9703 else
9704 found_dir=
9705 found_la=
9706 found_so=
9707 found_a=
9708 if test $use_additional = yes; then
9709 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9710 found_dir="$additional_libdir"
9711 found_so="$additional_libdir/lib$name.$shlibext"
9712 if test -f "$additional_libdir/lib$name.la"; then
9713 found_la="$additional_libdir/lib$name.la"
9714 fi
9715 else
9716 if test -f "$additional_libdir/lib$name.$libext"; then
9717 found_dir="$additional_libdir"
9718 found_a="$additional_libdir/lib$name.$libext"
9719 if test -f "$additional_libdir/lib$name.la"; then
9720 found_la="$additional_libdir/lib$name.la"
9721 fi
9722 fi
9723 fi
9724 fi
9725 if test "X$found_dir" = "X"; then
9726 for x in $LDFLAGS $LTLIBICONV; do
9727
9728 acl_save_prefix="$prefix"
9729 prefix="$acl_final_prefix"
9730 acl_save_exec_prefix="$exec_prefix"
9731 exec_prefix="$acl_final_exec_prefix"
9732 eval x=\"$x\"
9733 exec_prefix="$acl_save_exec_prefix"
9734 prefix="$acl_save_prefix"
9735
9736 case "$x" in
9737 -L*)
9738 dir=`echo "X$x" | sed -e 's/^X-L//'`
9739 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9740 found_dir="$dir"
9741 found_so="$dir/lib$name.$shlibext"
9742 if test -f "$dir/lib$name.la"; then
9743 found_la="$dir/lib$name.la"
9744 fi
9745 else
9746 if test -f "$dir/lib$name.$libext"; then
9747 found_dir="$dir"
9748 found_a="$dir/lib$name.$libext"
9749 if test -f "$dir/lib$name.la"; then
9750 found_la="$dir/lib$name.la"
9751 fi
9752 fi
9753 fi
9754 ;;
9755 esac
9756 if test "X$found_dir" != "X"; then
9757 break
9758 fi
9759 done
9760 fi
9761 if test "X$found_dir" != "X"; then
9762 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9763 if test "X$found_so" != "X"; then
9764 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9765 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9766 else
9767 haveit=
9768 for x in $ltrpathdirs; do
9769 if test "X$x" = "X$found_dir"; then
9770 haveit=yes
9771 break
9772 fi
9773 done
9774 if test -z "$haveit"; then
9775 ltrpathdirs="$ltrpathdirs $found_dir"
9776 fi
9777 if test "$hardcode_direct" = yes; then
9778 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9779 else
9780 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9781 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9782 haveit=
9783 for x in $rpathdirs; do
9784 if test "X$x" = "X$found_dir"; then
9785 haveit=yes
9786 break
9787 fi
9788 done
9789 if test -z "$haveit"; then
9790 rpathdirs="$rpathdirs $found_dir"
9791 fi
9792 else
9793 haveit=
9794 for x in $LDFLAGS $LIBICONV; do
9795
9796 acl_save_prefix="$prefix"
9797 prefix="$acl_final_prefix"
9798 acl_save_exec_prefix="$exec_prefix"
9799 exec_prefix="$acl_final_exec_prefix"
9800 eval x=\"$x\"
9801 exec_prefix="$acl_save_exec_prefix"
9802 prefix="$acl_save_prefix"
9803
9804 if test "X$x" = "X-L$found_dir"; then
9805 haveit=yes
9806 break
9807 fi
9808 done
9809 if test -z "$haveit"; then
9810 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9811 fi
9812 if test "$hardcode_minus_L" != no; then
9813 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9814 else
9815 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9816 fi
9817 fi
9818 fi
9819 fi
9820 else
9821 if test "X$found_a" != "X"; then
9822 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9823 else
9824 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9825 fi
9826 fi
9827 additional_includedir=
9828 case "$found_dir" in
9829 */lib | */lib/)
9830 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9831 additional_includedir="$basedir/include"
9832 ;;
9833 esac
9834 if test "X$additional_includedir" != "X"; then
9835 if test "X$additional_includedir" != "X/usr/include"; then
9836 haveit=
9837 if test "X$additional_includedir" = "X/usr/local/include"; then
9838 if test -n "$GCC"; then
9839 case $host_os in
9840 linux*) haveit=yes;;
9841 esac
9842 fi
9843 fi
9844 if test -z "$haveit"; then
9845 for x in $CPPFLAGS $INCICONV; do
9846
9847 acl_save_prefix="$prefix"
9848 prefix="$acl_final_prefix"
9849 acl_save_exec_prefix="$exec_prefix"
9850 exec_prefix="$acl_final_exec_prefix"
9851 eval x=\"$x\"
9852 exec_prefix="$acl_save_exec_prefix"
9853 prefix="$acl_save_prefix"
9854
9855 if test "X$x" = "X-I$additional_includedir"; then
9856 haveit=yes
9857 break
9858 fi
9859 done
9860 if test -z "$haveit"; then
9861 if test -d "$additional_includedir"; then
9862 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9863 fi
9864 fi
9865 fi
9866 fi
9867 fi
9868 if test -n "$found_la"; then
9869 save_libdir="$libdir"
9870 case "$found_la" in
9871 */* | *\\*) . "$found_la" ;;
9872 *) . "./$found_la" ;;
9873 esac
9874 libdir="$save_libdir"
9875 for dep in $dependency_libs; do
9876 case "$dep" in
9877 -L*)
9878 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9879 if test "X$additional_libdir" != "X/usr/lib"; then
9880 haveit=
9881 if test "X$additional_libdir" = "X/usr/local/lib"; then
9882 if test -n "$GCC"; then
9883 case $host_os in
9884 linux*) haveit=yes;;
9885 esac
9886 fi
9887 fi
9888 if test -z "$haveit"; then
9889 haveit=
9890 for x in $LDFLAGS $LIBICONV; do
9891
9892 acl_save_prefix="$prefix"
9893 prefix="$acl_final_prefix"
9894 acl_save_exec_prefix="$exec_prefix"
9895 exec_prefix="$acl_final_exec_prefix"
9896 eval x=\"$x\"
9897 exec_prefix="$acl_save_exec_prefix"
9898 prefix="$acl_save_prefix"
9899
9900 if test "X$x" = "X-L$additional_libdir"; then
9901 haveit=yes
9902 break
9903 fi
9904 done
9905 if test -z "$haveit"; then
9906 if test -d "$additional_libdir"; then
9907 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9908 fi
9909 fi
9910 haveit=
9911 for x in $LDFLAGS $LTLIBICONV; do
9912
9913 acl_save_prefix="$prefix"
9914 prefix="$acl_final_prefix"
9915 acl_save_exec_prefix="$exec_prefix"
9916 exec_prefix="$acl_final_exec_prefix"
9917 eval x=\"$x\"
9918 exec_prefix="$acl_save_exec_prefix"
9919 prefix="$acl_save_prefix"
9920
9921 if test "X$x" = "X-L$additional_libdir"; then
9922 haveit=yes
9923 break
9924 fi
9925 done
9926 if test -z "$haveit"; then
9927 if test -d "$additional_libdir"; then
9928 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9929 fi
9930 fi
9931 fi
9932 fi
9933 ;;
9934 -R*)
9935 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9936 if test "$enable_rpath" != no; then
9937 haveit=
9938 for x in $rpathdirs; do
9939 if test "X$x" = "X$dir"; then
9940 haveit=yes
9941 break
9942 fi
9943 done
9944 if test -z "$haveit"; then
9945 rpathdirs="$rpathdirs $dir"
9946 fi
9947 haveit=
9948 for x in $ltrpathdirs; do
9949 if test "X$x" = "X$dir"; then
9950 haveit=yes
9951 break
9952 fi
9953 done
9954 if test -z "$haveit"; then
9955 ltrpathdirs="$ltrpathdirs $dir"
9956 fi
9957 fi
9958 ;;
9959 -l*)
9960 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9961 ;;
9962 *.la)
9963 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9964 ;;
9965 *)
9966 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9967 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9968 ;;
9969 esac
9970 done
9971 fi
9972 else
9973 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9974 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9975 fi
9976 fi
9977 fi
9978 done
9979 done
9980 if test "X$rpathdirs" != "X"; then
9981 if test -n "$hardcode_libdir_separator"; then
9982 alldirs=
9983 for found_dir in $rpathdirs; do
9984 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9985 done
9986 acl_save_libdir="$libdir"
9987 libdir="$alldirs"
9988 eval flag=\"$hardcode_libdir_flag_spec\"
9989 libdir="$acl_save_libdir"
9990 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9991 else
9992 for found_dir in $rpathdirs; do
9993 acl_save_libdir="$libdir"
9994 libdir="$found_dir"
9995 eval flag=\"$hardcode_libdir_flag_spec\"
9996 libdir="$acl_save_libdir"
9997 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9998 done
9999 fi
10000 fi
10001 if test "X$ltrpathdirs" != "X"; then
10002 for found_dir in $ltrpathdirs; do
10003 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10004 done
10005 fi
10006
10007
10008 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10009 ac_ext=cpp
10010 ac_cpp='$CXXCPP $CPPFLAGS'
10011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10014
10015
10016
10017
10018
10019
10020 am_save_CPPFLAGS="$CPPFLAGS"
10021
10022 for element in $INCICONV; do
10023 haveit=
10024 for x in $CPPFLAGS; do
10025
10026 acl_save_prefix="$prefix"
10027 prefix="$acl_final_prefix"
10028 acl_save_exec_prefix="$exec_prefix"
10029 exec_prefix="$acl_final_exec_prefix"
10030 eval x=\"$x\"
10031 exec_prefix="$acl_save_exec_prefix"
10032 prefix="$acl_save_prefix"
10033
10034 if test "X$x" = "X$element"; then
10035 haveit=yes
10036 break
10037 fi
10038 done
10039 if test -z "$haveit"; then
10040 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10041 fi
10042 done
10043
10044
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10046 $as_echo_n "checking for iconv... " >&6; }
10047 if test "${am_cv_func_iconv+set}" = set; then :
10048 $as_echo_n "(cached) " >&6
10049 else
10050
10051 am_cv_func_iconv="no, consider installing GNU libiconv"
10052 am_cv_lib_iconv=no
10053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10054 /* end confdefs.h. */
10055 #include <stdlib.h>
10056 #include <iconv.h>
10057 int
10058 main ()
10059 {
10060 iconv_t cd = iconv_open("","");
10061 iconv(cd,NULL,NULL,NULL,NULL);
10062 iconv_close(cd);
10063 ;
10064 return 0;
10065 }
10066 _ACEOF
10067 if ac_fn_cxx_try_link "$LINENO"; then :
10068 am_cv_func_iconv=yes
10069 fi
10070 rm -f core conftest.err conftest.$ac_objext \
10071 conftest$ac_exeext conftest.$ac_ext
10072 if test "$am_cv_func_iconv" != yes; then
10073 am_save_LIBS="$LIBS"
10074 LIBS="$LIBS $LIBICONV"
10075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10076 /* end confdefs.h. */
10077 #include <stdlib.h>
10078 #include <iconv.h>
10079 int
10080 main ()
10081 {
10082 iconv_t cd = iconv_open("","");
10083 iconv(cd,NULL,NULL,NULL,NULL);
10084 iconv_close(cd);
10085 ;
10086 return 0;
10087 }
10088 _ACEOF
10089 if ac_fn_cxx_try_link "$LINENO"; then :
10090 am_cv_lib_iconv=yes
10091 am_cv_func_iconv=yes
10092 fi
10093 rm -f core conftest.err conftest.$ac_objext \
10094 conftest$ac_exeext conftest.$ac_ext
10095 LIBS="$am_save_LIBS"
10096 fi
10097
10098 fi
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10100 $as_echo "$am_cv_func_iconv" >&6; }
10101 if test "$am_cv_func_iconv" = yes; then
10102
10103 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10104
10105 fi
10106 if test "$am_cv_lib_iconv" = yes; then
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10108 $as_echo_n "checking how to link with libiconv... " >&6; }
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10110 $as_echo "$LIBICONV" >&6; }
10111 else
10112 CPPFLAGS="$am_save_CPPFLAGS"
10113 LIBICONV=
10114 LTLIBICONV=
10115 fi
10116
10117
10118
10119 if test "$am_cv_func_iconv" = yes; then
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10121 $as_echo_n "checking for iconv declaration... " >&6; }
10122 if test "${am_cv_proto_iconv+set}" = set; then :
10123 $as_echo_n "(cached) " >&6
10124 else
10125
10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10128
10129 #include <stdlib.h>
10130 #include <iconv.h>
10131 extern
10132 #ifdef __cplusplus
10133 "C"
10134 #endif
10135 #if defined(__STDC__) || defined(__cplusplus)
10136 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10137 #else
10138 size_t iconv();
10139 #endif
10140
10141 int
10142 main ()
10143 {
10144
10145 ;
10146 return 0;
10147 }
10148 _ACEOF
10149 if ac_fn_cxx_try_compile "$LINENO"; then :
10150 am_cv_proto_iconv_arg1=""
10151 else
10152 am_cv_proto_iconv_arg1="const"
10153 fi
10154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10155 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);"
10156 fi
10157
10158 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10160 }$am_cv_proto_iconv" >&5
10161 $as_echo "${ac_t:-
10162 }$am_cv_proto_iconv" >&6; }
10163
10164 cat >>confdefs.h <<_ACEOF
10165 #define ICONV_CONST $am_cv_proto_iconv_arg1
10166 _ACEOF
10167
10168 fi
10169
10170 ac_ext=c
10171 ac_cpp='$CPP $CPPFLAGS'
10172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10175
10176 else
10177
10178
10179
10180
10181
10182 am_save_CPPFLAGS="$CPPFLAGS"
10183
10184 for element in $INCICONV; do
10185 haveit=
10186 for x in $CPPFLAGS; do
10187
10188 acl_save_prefix="$prefix"
10189 prefix="$acl_final_prefix"
10190 acl_save_exec_prefix="$exec_prefix"
10191 exec_prefix="$acl_final_exec_prefix"
10192 eval x=\"$x\"
10193 exec_prefix="$acl_save_exec_prefix"
10194 prefix="$acl_save_prefix"
10195
10196 if test "X$x" = "X$element"; then
10197 haveit=yes
10198 break
10199 fi
10200 done
10201 if test -z "$haveit"; then
10202 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10203 fi
10204 done
10205
10206
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10208 $as_echo_n "checking for iconv... " >&6; }
10209 if test "${am_cv_func_iconv+set}" = set; then :
10210 $as_echo_n "(cached) " >&6
10211 else
10212
10213 am_cv_func_iconv="no, consider installing GNU libiconv"
10214 am_cv_lib_iconv=no
10215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10216 /* end confdefs.h. */
10217 #include <stdlib.h>
10218 #include <iconv.h>
10219 int
10220 main ()
10221 {
10222 iconv_t cd = iconv_open("","");
10223 iconv(cd,NULL,NULL,NULL,NULL);
10224 iconv_close(cd);
10225 ;
10226 return 0;
10227 }
10228 _ACEOF
10229 if ac_fn_c_try_link "$LINENO"; then :
10230 am_cv_func_iconv=yes
10231 fi
10232 rm -f core conftest.err conftest.$ac_objext \
10233 conftest$ac_exeext conftest.$ac_ext
10234 if test "$am_cv_func_iconv" != yes; then
10235 am_save_LIBS="$LIBS"
10236 LIBS="$LIBS $LIBICONV"
10237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238 /* end confdefs.h. */
10239 #include <stdlib.h>
10240 #include <iconv.h>
10241 int
10242 main ()
10243 {
10244 iconv_t cd = iconv_open("","");
10245 iconv(cd,NULL,NULL,NULL,NULL);
10246 iconv_close(cd);
10247 ;
10248 return 0;
10249 }
10250 _ACEOF
10251 if ac_fn_c_try_link "$LINENO"; then :
10252 am_cv_lib_iconv=yes
10253 am_cv_func_iconv=yes
10254 fi
10255 rm -f core conftest.err conftest.$ac_objext \
10256 conftest$ac_exeext conftest.$ac_ext
10257 LIBS="$am_save_LIBS"
10258 fi
10259
10260 fi
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10262 $as_echo "$am_cv_func_iconv" >&6; }
10263 if test "$am_cv_func_iconv" = yes; then
10264
10265 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10266
10267 fi
10268 if test "$am_cv_lib_iconv" = yes; then
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10270 $as_echo_n "checking how to link with libiconv... " >&6; }
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10272 $as_echo "$LIBICONV" >&6; }
10273 else
10274 CPPFLAGS="$am_save_CPPFLAGS"
10275 LIBICONV=
10276 LTLIBICONV=
10277 fi
10278
10279
10280
10281 if test "$am_cv_func_iconv" = yes; then
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10283 $as_echo_n "checking for iconv declaration... " >&6; }
10284 if test "${am_cv_proto_iconv+set}" = set; then :
10285 $as_echo_n "(cached) " >&6
10286 else
10287
10288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10289 /* end confdefs.h. */
10290
10291 #include <stdlib.h>
10292 #include <iconv.h>
10293 extern
10294 #ifdef __cplusplus
10295 "C"
10296 #endif
10297 #if defined(__STDC__) || defined(__cplusplus)
10298 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10299 #else
10300 size_t iconv();
10301 #endif
10302
10303 int
10304 main ()
10305 {
10306
10307 ;
10308 return 0;
10309 }
10310 _ACEOF
10311 if ac_fn_c_try_compile "$LINENO"; then :
10312 am_cv_proto_iconv_arg1=""
10313 else
10314 am_cv_proto_iconv_arg1="const"
10315 fi
10316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10317 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);"
10318 fi
10319
10320 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10322 }$am_cv_proto_iconv" >&5
10323 $as_echo "${ac_t:-
10324 }$am_cv_proto_iconv" >&6; }
10325
10326 cat >>confdefs.h <<_ACEOF
10327 #define ICONV_CONST $am_cv_proto_iconv_arg1
10328 _ACEOF
10329
10330 fi
10331
10332 fi
10333
10334 # Until we have in-tree GNU iconv:
10335 LIBICONV_DEP=
10336
10337
10338
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10340 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10341 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10342 $as_echo_n "(cached) " >&6
10343 else
10344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10345 /* end confdefs.h. */
10346 #include <locale.h>
10347 int
10348 main ()
10349 {
10350 return LC_MESSAGES
10351 ;
10352 return 0;
10353 }
10354 _ACEOF
10355 if ac_fn_c_try_link "$LINENO"; then :
10356 am_cv_val_LC_MESSAGES=yes
10357 else
10358 am_cv_val_LC_MESSAGES=no
10359 fi
10360 rm -f core conftest.err conftest.$ac_objext \
10361 conftest$ac_exeext conftest.$ac_ext
10362 fi
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10364 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10365 if test $am_cv_val_LC_MESSAGES = yes; then
10366
10367 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10368
10369 fi
10370
10371
10372
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10374 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10375 if test "${am_cv_langinfo_codeset+set}" = set; then :
10376 $as_echo_n "(cached) " >&6
10377 else
10378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10379 /* end confdefs.h. */
10380 #include <langinfo.h>
10381 int
10382 main ()
10383 {
10384 char* cs = nl_langinfo(CODESET);
10385 ;
10386 return 0;
10387 }
10388 _ACEOF
10389 if ac_fn_c_try_link "$LINENO"; then :
10390 am_cv_langinfo_codeset=yes
10391 else
10392 am_cv_langinfo_codeset=no
10393 fi
10394 rm -f core conftest.err conftest.$ac_objext \
10395 conftest$ac_exeext conftest.$ac_ext
10396
10397 fi
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10399 $as_echo "$am_cv_langinfo_codeset" >&6; }
10400 if test $am_cv_langinfo_codeset = yes; then
10401
10402 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10403
10404 fi
10405
10406
10407 # We will need to find libiberty.h and ansidecl.h
10408 saved_CFLAGS="$CFLAGS"
10409 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10410 saved_CXXFLAGS="$CXXFLAGS"
10411 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10412 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10413 strsignal strstr strverscmp \
10414 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10415 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
10416 do
10417 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10419 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10420 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10421 $as_echo_n "(cached) " >&6
10422 else
10423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10424 /* end confdefs.h. */
10425 #undef $ac_tr_decl
10426 #define $ac_tr_decl 1
10427
10428 #include "ansidecl.h"
10429 #include "system.h"
10430
10431 int
10432 main ()
10433 {
10434 #ifndef $ac_func
10435 char *(*pfn) = (char *(*)) $ac_func ;
10436 #endif
10437 ;
10438 return 0;
10439 }
10440 _ACEOF
10441 if ac_fn_c_try_compile "$LINENO"; then :
10442 eval "gcc_cv_have_decl_$ac_func=yes"
10443 else
10444 eval "gcc_cv_have_decl_$ac_func=no"
10445 fi
10446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10447 fi
10448
10449 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10451 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10452 #define $ac_tr_decl 1
10453 _ACEOF
10454
10455 else
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10457 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10458 #define $ac_tr_decl 0
10459 _ACEOF
10460
10461 fi
10462
10463 done
10464
10465
10466 for ac_func in getrlimit setrlimit getrusage
10467 do
10468 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10470 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10471 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10472 $as_echo_n "(cached) " >&6
10473 else
10474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10475 /* end confdefs.h. */
10476 #undef $ac_tr_decl
10477 #define $ac_tr_decl 1
10478
10479 #include "ansidecl.h"
10480 #include "system.h"
10481 #ifdef HAVE_SYS_RESOURCE_H
10482 #include <sys/resource.h>
10483 #endif
10484
10485
10486 int
10487 main ()
10488 {
10489 #ifndef $ac_func
10490 char *(*pfn) = (char *(*)) $ac_func ;
10491 #endif
10492 ;
10493 return 0;
10494 }
10495 _ACEOF
10496 if ac_fn_c_try_compile "$LINENO"; then :
10497 eval "gcc_cv_have_decl_$ac_func=yes"
10498 else
10499 eval "gcc_cv_have_decl_$ac_func=no"
10500 fi
10501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10502 fi
10503
10504 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10506 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10507 #define $ac_tr_decl 1
10508 _ACEOF
10509
10510 else
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10512 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10513 #define $ac_tr_decl 0
10514 _ACEOF
10515
10516 fi
10517
10518 done
10519
10520
10521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10522 /* end confdefs.h. */
10523
10524 #include "ansidecl.h"
10525 #include "system.h"
10526 #ifdef HAVE_SYS_RESOURCE_H
10527 #include <sys/resource.h>
10528 #endif
10529
10530 int
10531 main ()
10532 {
10533 rlim_t l = 0;
10534 ;
10535 return 0;
10536 }
10537 _ACEOF
10538 if ac_fn_c_try_compile "$LINENO"; then :
10539
10540 else
10541
10542 $as_echo "#define rlim_t long" >>confdefs.h
10543
10544 fi
10545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10546
10547 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10548 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10549 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10550 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10551 for ac_func in ldgetname
10552 do
10553 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10555 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10556 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10557 $as_echo_n "(cached) " >&6
10558 else
10559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10560 /* end confdefs.h. */
10561 #undef $ac_tr_decl
10562 #define $ac_tr_decl 1
10563
10564 #include "ansidecl.h"
10565 #include "system.h"
10566 #ifdef HAVE_LDFCN_H
10567 #undef FREAD
10568 #undef FWRITE
10569 #include <ldfcn.h>
10570 #endif
10571
10572
10573 int
10574 main ()
10575 {
10576 #ifndef $ac_func
10577 char *(*pfn) = (char *(*)) $ac_func ;
10578 #endif
10579 ;
10580 return 0;
10581 }
10582 _ACEOF
10583 if ac_fn_c_try_compile "$LINENO"; then :
10584 eval "gcc_cv_have_decl_$ac_func=yes"
10585 else
10586 eval "gcc_cv_have_decl_$ac_func=no"
10587 fi
10588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10589 fi
10590
10591 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10593 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10594 #define $ac_tr_decl 1
10595 _ACEOF
10596
10597 else
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10599 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10600 #define $ac_tr_decl 0
10601 _ACEOF
10602
10603 fi
10604
10605 done
10606
10607
10608 for ac_func in times
10609 do
10610 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10612 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10613 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10614 $as_echo_n "(cached) " >&6
10615 else
10616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10617 /* end confdefs.h. */
10618 #undef $ac_tr_decl
10619 #define $ac_tr_decl 1
10620
10621 #include "ansidecl.h"
10622 #include "system.h"
10623 #ifdef HAVE_SYS_TIMES_H
10624 #include <sys/times.h>
10625 #endif
10626
10627
10628 int
10629 main ()
10630 {
10631 #ifndef $ac_func
10632 char *(*pfn) = (char *(*)) $ac_func ;
10633 #endif
10634 ;
10635 return 0;
10636 }
10637 _ACEOF
10638 if ac_fn_c_try_compile "$LINENO"; then :
10639 eval "gcc_cv_have_decl_$ac_func=yes"
10640 else
10641 eval "gcc_cv_have_decl_$ac_func=no"
10642 fi
10643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10644 fi
10645
10646 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10648 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10649 #define $ac_tr_decl 1
10650 _ACEOF
10651
10652 else
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10654 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10655 #define $ac_tr_decl 0
10656 _ACEOF
10657
10658 fi
10659
10660 done
10661
10662
10663 for ac_func in sigaltstack
10664 do
10665 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10667 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10668 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10669 $as_echo_n "(cached) " >&6
10670 else
10671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10672 /* end confdefs.h. */
10673 #undef $ac_tr_decl
10674 #define $ac_tr_decl 1
10675
10676 #include "ansidecl.h"
10677 #include "system.h"
10678 #include <signal.h>
10679
10680
10681 int
10682 main ()
10683 {
10684 #ifndef $ac_func
10685 char *(*pfn) = (char *(*)) $ac_func ;
10686 #endif
10687 ;
10688 return 0;
10689 }
10690 _ACEOF
10691 if ac_fn_c_try_compile "$LINENO"; then :
10692 eval "gcc_cv_have_decl_$ac_func=yes"
10693 else
10694 eval "gcc_cv_have_decl_$ac_func=no"
10695 fi
10696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10697 fi
10698
10699 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10701 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10702 #define $ac_tr_decl 1
10703 _ACEOF
10704
10705 else
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10707 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10708 #define $ac_tr_decl 0
10709 _ACEOF
10710
10711 fi
10712
10713 done
10714
10715
10716 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10717 # prototype.
10718 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10719 ac_ext=cpp
10720 ac_cpp='$CXXCPP $CPPFLAGS'
10721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10724
10725 for ac_func in madvise
10726 do
10727 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10729 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10730 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10731 $as_echo_n "(cached) " >&6
10732 else
10733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h. */
10735 #undef $ac_tr_decl
10736 #define $ac_tr_decl 1
10737
10738 #include "ansidecl.h"
10739 #include "system.h"
10740
10741
10742 int
10743 main ()
10744 {
10745 #ifndef $ac_func
10746 char *(*pfn) = (char *(*)) $ac_func ;
10747 #endif
10748 ;
10749 return 0;
10750 }
10751 _ACEOF
10752 if ac_fn_cxx_try_compile "$LINENO"; then :
10753 eval "gcc_cv_have_decl_$ac_func=yes"
10754 else
10755 eval "gcc_cv_have_decl_$ac_func=no"
10756 fi
10757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10758 fi
10759
10760 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10762 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10763 #define $ac_tr_decl 1
10764 _ACEOF
10765
10766 else
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10768 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10769 #define $ac_tr_decl 0
10770 _ACEOF
10771
10772 fi
10773
10774 done
10775
10776 ac_ext=c
10777 ac_cpp='$CPP $CPPFLAGS'
10778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10781
10782 else
10783 for ac_func in madvise
10784 do
10785 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10787 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10788 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10789 $as_echo_n "(cached) " >&6
10790 else
10791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10792 /* end confdefs.h. */
10793 #undef $ac_tr_decl
10794 #define $ac_tr_decl 1
10795
10796 #include "ansidecl.h"
10797 #include "system.h"
10798
10799
10800 int
10801 main ()
10802 {
10803 #ifndef $ac_func
10804 char *(*pfn) = (char *(*)) $ac_func ;
10805 #endif
10806 ;
10807 return 0;
10808 }
10809 _ACEOF
10810 if ac_fn_c_try_compile "$LINENO"; then :
10811 eval "gcc_cv_have_decl_$ac_func=yes"
10812 else
10813 eval "gcc_cv_have_decl_$ac_func=no"
10814 fi
10815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10816 fi
10817
10818 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10820 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10821 #define $ac_tr_decl 1
10822 _ACEOF
10823
10824 else
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10826 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10827 #define $ac_tr_decl 0
10828 _ACEOF
10829
10830 fi
10831
10832 done
10833
10834
10835 fi
10836
10837 # More time-related stuff.
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10839 $as_echo_n "checking for struct tms... " >&6; }
10840 if test "${ac_cv_struct_tms+set}" = set; then :
10841 $as_echo_n "(cached) " >&6
10842 else
10843
10844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10845 /* end confdefs.h. */
10846
10847 #include "ansidecl.h"
10848 #include "system.h"
10849 #ifdef HAVE_SYS_TIMES_H
10850 #include <sys/times.h>
10851 #endif
10852
10853 int
10854 main ()
10855 {
10856 struct tms tms;
10857 ;
10858 return 0;
10859 }
10860 _ACEOF
10861 if ac_fn_c_try_compile "$LINENO"; then :
10862 ac_cv_struct_tms=yes
10863 else
10864 ac_cv_struct_tms=no
10865 fi
10866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10867 fi
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10869 $as_echo "$ac_cv_struct_tms" >&6; }
10870 if test $ac_cv_struct_tms = yes; then
10871
10872 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10873
10874 fi
10875
10876 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10877 # revisit after autoconf 2.50.
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10879 $as_echo_n "checking for clock_t... " >&6; }
10880 if test "${gcc_cv_type_clock_t+set}" = set; then :
10881 $as_echo_n "(cached) " >&6
10882 else
10883
10884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10885 /* end confdefs.h. */
10886
10887 #include "ansidecl.h"
10888 #include "system.h"
10889
10890 int
10891 main ()
10892 {
10893 clock_t x;
10894 ;
10895 return 0;
10896 }
10897 _ACEOF
10898 if ac_fn_c_try_compile "$LINENO"; then :
10899 gcc_cv_type_clock_t=yes
10900 else
10901 gcc_cv_type_clock_t=no
10902 fi
10903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10904 fi
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10906 $as_echo "$gcc_cv_type_clock_t" >&6; }
10907 if test $gcc_cv_type_clock_t = yes; then
10908
10909 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10910
10911 fi
10912
10913 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10914 CFLAGS="$saved_CFLAGS"
10915 CXXFLAGS="$saved_CXXFLAGS"
10916
10917 # Check whether --enable-initfini-array was given.
10918 if test "${enable_initfini_array+set}" = set; then :
10919 enableval=$enable_initfini_array;
10920 else
10921
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10923 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10924 if test "${gcc_cv_initfini_array+set}" = set; then :
10925 $as_echo_n "(cached) " >&6
10926 else
10927 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
10928 if test "$cross_compiling" = yes; then :
10929 gcc_cv_initfini_array=no
10930 else
10931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10932 /* end confdefs.h. */
10933
10934 #ifndef __ELF__
10935 #error Not an ELF OS
10936 #endif
10937 #ifdef __ia64__
10938 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
10939 if it can be used. */
10940 static int x = -1;
10941 int main (void) { return x; }
10942 int foo (void) { x = 0; }
10943 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10944 #else
10945 extern void abort ();
10946 static int count;
10947
10948 static void
10949 init1005 ()
10950 {
10951 if (count != 0)
10952 abort ();
10953 count = 1005;
10954 }
10955 void (*const init_array1005) ()
10956 __attribute__ ((section (".init_array.01005"), aligned (sizeof (void *))))
10957 = { init1005 };
10958 static void
10959 fini1005 ()
10960 {
10961 if (count != 1005)
10962 abort ();
10963 }
10964 void (*const fini_array1005) ()
10965 __attribute__ ((section (".fini_array.01005"), aligned (sizeof (void *))))
10966 = { fini1005 };
10967
10968 static void
10969 ctor1007 ()
10970 {
10971 if (count != 1005)
10972 abort ();
10973 count = 1007;
10974 }
10975 void (*const ctors1007) ()
10976 __attribute__ ((section (".ctors.64528"), aligned (sizeof (void *))))
10977 = { ctor1007 };
10978 static void
10979 dtor1007 ()
10980 {
10981 if (count != 1007)
10982 abort ();
10983 count = 1005;
10984 }
10985 void (*const dtors1007) ()
10986 __attribute__ ((section (".dtors.64528"), aligned (sizeof (void *))))
10987 = { dtor1007 };
10988
10989 static void
10990 init65530 ()
10991 {
10992 if (count != 1007)
10993 abort ();
10994 count = 65530;
10995 }
10996 void (*const init_array65530) ()
10997 __attribute__ ((section (".init_array.65530"), aligned (sizeof (void *))))
10998 = { init65530 };
10999 static void
11000 fini65530 ()
11001 {
11002 if (count != 65530)
11003 abort ();
11004 count = 1007;
11005 }
11006 void (*const fini_array65530) ()
11007 __attribute__ ((section (".fini_array.65530"), aligned (sizeof (void *))))
11008 = { fini65530 };
11009
11010 static void
11011 ctor65535 ()
11012 {
11013 if (count != 65530)
11014 abort ();
11015 count = 65535;
11016 }
11017 void (*const ctors65535) ()
11018 __attribute__ ((section (".ctors"), aligned (sizeof (void *))))
11019 = { ctor65535 };
11020 static void
11021 dtor65535 ()
11022 {
11023 if (count != 65535)
11024 abort ();
11025 count = 65530;
11026 }
11027 void (*const dtors65535) ()
11028 __attribute__ ((section (".dtors"), aligned (sizeof (void *))))
11029 = { dtor65535 };
11030
11031 int
11032 main ()
11033 {
11034 if (count != 65535)
11035 abort ();
11036 return 0;
11037 }
11038 #endif
11039
11040 _ACEOF
11041 if ac_fn_c_try_run "$LINENO"; then :
11042 gcc_cv_initfini_array=yes
11043 else
11044 gcc_cv_initfini_array=no
11045 fi
11046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11047 conftest.$ac_objext conftest.beam conftest.$ac_ext
11048 fi
11049
11050 else
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
11052 $as_echo_n "checking cross compile... guessing... " >&6; }
11053 gcc_cv_initfini_array=no
11054 fi
11055 fi
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
11057 $as_echo "$gcc_cv_initfini_array" >&6; }
11058 enable_initfini_array=$gcc_cv_initfini_array
11059
11060 fi
11061
11062 if test $enable_initfini_array = yes; then
11063
11064 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
11065
11066 fi
11067
11068 # mkdir takes a single argument on some systems.
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11070 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11071 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11072 $as_echo_n "(cached) " >&6
11073 else
11074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11075 /* end confdefs.h. */
11076
11077 #include <sys/types.h>
11078 #ifdef HAVE_SYS_STAT_H
11079 # include <sys/stat.h>
11080 #endif
11081 #ifdef HAVE_UNISTD_H
11082 # include <unistd.h>
11083 #endif
11084 #ifdef HAVE_DIRECT_H
11085 # include <direct.h>
11086 #endif
11087 int
11088 main ()
11089 {
11090 mkdir ("foo", 0);
11091 ;
11092 return 0;
11093 }
11094 _ACEOF
11095 if ac_fn_c_try_compile "$LINENO"; then :
11096 gcc_cv_mkdir_takes_one_arg=no
11097 else
11098 gcc_cv_mkdir_takes_one_arg=yes
11099 fi
11100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11101 fi
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11103 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11104 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11105
11106 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11107
11108 fi
11109
11110
11111 # File extensions
11112 manext='.1'
11113 objext='.o'
11114
11115
11116
11117 # With Setjmp/Longjmp based exception handling.
11118 # Check whether --enable-sjlj-exceptions was given.
11119 if test "${enable_sjlj_exceptions+set}" = set; then :
11120 enableval=$enable_sjlj_exceptions; case $target in
11121 *-*-hpux10*)
11122 if test $enableval != yes; then
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11124 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11125 enableval=yes
11126 fi
11127 ;;
11128 esac
11129 force_sjlj_exceptions=yes
11130 else
11131 case $target in
11132 *-*-hpux10*)
11133 force_sjlj_exceptions=yes
11134 enableval=yes
11135 ;;
11136 *)
11137 force_sjlj_exceptions=no
11138 ;;
11139 esac
11140 fi
11141
11142 if test $force_sjlj_exceptions = yes; then
11143 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11144
11145 cat >>confdefs.h <<_ACEOF
11146 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11147 _ACEOF
11148
11149 fi
11150
11151 # --------------------------------------------------------
11152 # Build, host, and target specific configuration fragments
11153 # --------------------------------------------------------
11154
11155 # Collect build-machine-specific information.
11156 . ${srcdir}/config.build
11157
11158 # Collect host-machine-specific information.
11159 . ${srcdir}/config.host
11160
11161 target_gtfiles=
11162
11163 # Collect target-machine-specific information.
11164 . ${srcdir}/config.gcc
11165
11166 extra_objs="${host_extra_objs} ${extra_objs}"
11167 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11168
11169 # Default the target-machine variables that were not explicitly set.
11170 if test x"$tm_file" = x
11171 then tm_file=$cpu_type/$cpu_type.h; fi
11172
11173 if test x"$extra_headers" = x
11174 then extra_headers=; fi
11175
11176 if test x$md_file = x
11177 then md_file=$cpu_type/$cpu_type.md; fi
11178
11179 if test x$out_file = x
11180 then out_file=$cpu_type/$cpu_type.c; fi
11181
11182 if test x"$tmake_file" = x
11183 then tmake_file=$cpu_type/t-$cpu_type
11184 fi
11185
11186 if test x"$dwarf2" = xyes
11187 then tm_file="$tm_file tm-dwarf2.h"
11188 fi
11189
11190 # Say what files are being used for the output code and MD file.
11191 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11192 echo "Using \`$srcdir/config/$md_file' as machine description file."
11193
11194 # If any of the xm_file variables contain nonexistent files, warn
11195 # about them and drop them.
11196
11197 bx=
11198 for x in $build_xm_file; do
11199 if test -f $srcdir/config/$x
11200 then bx="$bx $x"
11201 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11202 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11203 fi
11204 done
11205 build_xm_file="$bx"
11206
11207 hx=
11208 for x in $host_xm_file; do
11209 if test -f $srcdir/config/$x
11210 then hx="$hx $x"
11211 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11212 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11213 fi
11214 done
11215 host_xm_file="$hx"
11216
11217 tx=
11218 for x in $xm_file; do
11219 if test -f $srcdir/config/$x
11220 then tx="$tx $x"
11221 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11222 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11223 fi
11224 done
11225 xm_file="$tx"
11226
11227 count=a
11228 for f in $tm_file; do
11229 count=${count}x
11230 done
11231 if test $count = ax; then
11232 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11233 else
11234 echo "Using the following target machine macro files:"
11235 for f in $tm_file; do
11236 echo " $srcdir/config/$f"
11237 done
11238 fi
11239
11240 if test x$need_64bit_hwint = xyes; then
11241
11242 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11243
11244 fi
11245
11246 if test x$use_long_long_for_widest_fast_int = xyes; then
11247
11248 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11249
11250 fi
11251
11252 count=a
11253 for f in $host_xm_file; do
11254 count=${count}x
11255 done
11256 if test $count = a; then
11257 :
11258 elif test $count = ax; then
11259 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11260 else
11261 echo "Using the following host machine macro files:"
11262 for f in $host_xm_file; do
11263 echo " $srcdir/config/$f"
11264 done
11265 fi
11266 echo "Using ${out_host_hook_obj} for host machine hooks."
11267
11268 if test "$host_xm_file" != "$build_xm_file"; then
11269 count=a
11270 for f in $build_xm_file; do
11271 count=${count}x
11272 done
11273 if test $count = a; then
11274 :
11275 elif test $count = ax; then
11276 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11277 else
11278 echo "Using the following build machine macro files:"
11279 for f in $build_xm_file; do
11280 echo " $srcdir/config/$f"
11281 done
11282 fi
11283 fi
11284
11285 if test -n "$configured_native_system_header_dir"; then
11286 native_system_header_dir=$configured_native_system_header_dir
11287 fi
11288 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11289
11290
11291 case ${host} in
11292 powerpc*-*-darwin*)
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11294 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11295 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11296 $as_echo_n "(cached) " >&6
11297 else
11298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11299 /* end confdefs.h. */
11300
11301 #include <sys/cdefs.h>
11302 #include <sys/signal.h>
11303 #include <ucontext.h>
11304 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11305
11306 _ACEOF
11307 if ac_fn_c_try_compile "$LINENO"; then :
11308 gcc_cv_mcontext_underscores=no
11309 else
11310 gcc_cv_mcontext_underscores=yes
11311 fi
11312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11313 fi
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11315 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11316 if test $gcc_cv_mcontext_underscores = yes; then
11317
11318 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11319
11320 fi
11321 ;;
11322 esac
11323
11324 # ---------
11325 # Threading
11326 # ---------
11327
11328 # Check if a valid thread package
11329 case ${enable_threads} in
11330 "" | no)
11331 # No threads
11332 target_thread_file='single'
11333 ;;
11334 yes)
11335 # default
11336 target_thread_file='single'
11337 ;;
11338 aix | dce | lynx | mipssde | posix | rtems | \
11339 single | tpf | vxworks | win32)
11340 target_thread_file=${enable_threads}
11341 ;;
11342 *)
11343 echo "${enable_threads} is an unknown thread package" 1>&2
11344 exit 1
11345 ;;
11346 esac
11347
11348 if test x${thread_file} = x; then
11349 # No thread file set by target-specific clauses in config.gcc,
11350 # so use file chosen by default logic above
11351 thread_file=${target_thread_file}
11352 fi
11353
11354 # --------
11355 # UNSORTED
11356 # --------
11357
11358 use_cxa_atexit=no
11359 if test x$enable___cxa_atexit = xyes || \
11360 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11361 if test x$host = x$target; then
11362 case $host in
11363 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11364 # keyed to flag_use_cxa_atexit
11365 *-*-mingw32*)
11366 use_cxa_atexit=yes
11367 ;;
11368 *)
11369 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11370 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11371 use_cxa_atexit=yes
11372 else
11373 echo "__cxa_atexit can't be enabled on this target"
11374 fi
11375
11376 ;;
11377 esac
11378 else
11379 # We can't check for __cxa_atexit when building a cross, so assume
11380 # it is available
11381 use_cxa_atexit=yes
11382 fi
11383 if test x$use_cxa_atexit = xyes; then
11384
11385 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11386
11387 fi
11388 fi
11389
11390 # Look for a file containing extra machine modes.
11391 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11392 extra_modes_file='$(srcdir)'/config/${extra_modes}
11393
11394
11395 cat >>confdefs.h <<_ACEOF
11396 #define EXTRA_MODES_FILE "config/$extra_modes"
11397 _ACEOF
11398
11399 fi
11400
11401 # Convert extra_options into a form suitable for Makefile use.
11402 extra_opt_files=
11403 all_opt_files=
11404 for f in $extra_options; do
11405 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11406 all_opt_files="$all_opt_files $srcdir/config/$f"
11407 done
11408
11409
11410 # auto-host.h is the file containing items generated by autoconf and is
11411 # the first file included by config.h.
11412 # If host=build, it is correct to have bconfig include auto-host.h
11413 # as well. If host!=build, we are in error and need to do more
11414 # work to find out the build config parameters.
11415 if test x$host = x$build
11416 then
11417 build_auto=auto-host.h
11418 else
11419 # We create a subdir, then run autoconf in the subdir.
11420 # To prevent recursion we set host and build for the new
11421 # invocation of configure to the build for this invocation
11422 # of configure.
11423 tempdir=build.$$
11424 rm -rf $tempdir
11425 mkdir $tempdir
11426 cd $tempdir
11427 case ${srcdir} in
11428 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11429 *) realsrcdir=../${srcdir};;
11430 esac
11431 saved_CFLAGS="${CFLAGS}"
11432 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11433 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11434 ${realsrcdir}/configure \
11435 --enable-languages=${enable_languages-all} \
11436 --target=$target_alias --host=$build_alias --build=$build_alias
11437 CFLAGS="${saved_CFLAGS}"
11438
11439 # We just finished tests for the build machine, so rename
11440 # the file auto-build.h in the gcc directory.
11441 mv auto-host.h ../auto-build.h
11442 cd ..
11443 rm -rf $tempdir
11444 build_auto=auto-build.h
11445 fi
11446
11447
11448 tm_file="${tm_file} defaults.h"
11449 tm_p_file="${tm_p_file} tm-preds.h"
11450 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11451 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11452 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11453 # put this back in temporarily.
11454 xm_file="auto-host.h ansidecl.h ${xm_file}"
11455
11456 # --------
11457 # UNSORTED
11458 # --------
11459
11460 # Compile in configure arguments.
11461 if test -f configargs.h ; then
11462 # Being re-configured.
11463 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11464 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11465 else
11466 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11467 fi
11468
11469 # Double all backslashes and backslash all quotes to turn
11470 # gcc_config_arguments into a C string.
11471 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11472 $gcc_config_arguments
11473 EOF
11474 gcc_config_arguments_str=`cat conftest.out`
11475 rm -f conftest.out
11476
11477 cat > configargs.h <<EOF
11478 /* Generated automatically. */
11479 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11480 static const char thread_model[] = "$thread_file";
11481
11482 static const struct {
11483 const char *name, *value;
11484 } configure_default_options[] = $configure_default_options;
11485 EOF
11486
11487 gcc_BASEVER=`cat $srcdir/BASE-VER`
11488 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11489 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11490 if test -f $srcdir/REVISION ; then
11491 gcc_REVISION=`cat $srcdir/REVISION`
11492 else
11493 gcc_REVISION=""
11494 fi
11495 cat > plugin-version.h <<EOF
11496 #include "configargs.h"
11497
11498 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11499 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11500 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11501 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11502
11503 static char basever[] = "$gcc_BASEVER";
11504 static char datestamp[] = "$gcc_DATESTAMP";
11505 static char devphase[] = "$gcc_DEVPHASE";
11506 static char revision[] = "$gcc_REVISION";
11507
11508 /* FIXME plugins: We should make the version information more precise.
11509 One way to do is to add a checksum. */
11510
11511 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11512 devphase, revision,
11513 configuration_arguments};
11514 EOF
11515
11516 # Internationalization
11517 # If we haven't got the data from the intl directory,
11518 # assume NLS is disabled.
11519 USE_NLS=no
11520 LIBINTL=
11521 LIBINTL_DEP=
11522 INCINTL=
11523 XGETTEXT=
11524 GMSGFMT=
11525 POSUB=
11526
11527 if test -f ../intl/config.intl; then
11528 . ../intl/config.intl
11529 fi
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11531 $as_echo_n "checking whether NLS is requested... " >&6; }
11532 if test x"$USE_NLS" != xyes; then
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11534 $as_echo "no" >&6; }
11535 else
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11537 $as_echo "yes" >&6; }
11538
11539 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11540
11541
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11543 $as_echo_n "checking for catalogs to be installed... " >&6; }
11544 # Look for .po and .gmo files in the source directory.
11545 CATALOGS=
11546 XLINGUAS=
11547 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11548 # If there aren't any .gmo files the shell will give us the
11549 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11550 # weeded out.
11551 case "$cat" in *\**)
11552 continue;;
11553 esac
11554 # The quadruple backslash is collapsed to a double backslash
11555 # by the backticks, then collapsed again by the double quotes,
11556 # leaving us with one backslash in the sed expression (right
11557 # before the dot that mustn't act as a wildcard).
11558 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11559 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11560 # The user is allowed to set LINGUAS to a list of languages to
11561 # install catalogs for. If it's empty that means "all of them."
11562 if test "x$LINGUAS" = x; then
11563 CATALOGS="$CATALOGS $cat"
11564 XLINGUAS="$XLINGUAS $lang"
11565 else
11566 case "$LINGUAS" in *$lang*)
11567 CATALOGS="$CATALOGS $cat"
11568 XLINGUAS="$XLINGUAS $lang"
11569 ;;
11570 esac
11571 fi
11572 done
11573 LINGUAS="$XLINGUAS"
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11575 $as_echo "$LINGUAS" >&6; }
11576
11577
11578 DATADIRNAME=share
11579
11580 INSTOBJEXT=.mo
11581
11582 GENCAT=gencat
11583
11584 CATOBJEXT=.gmo
11585
11586 fi
11587
11588 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11589 # -liconv on the link line twice.
11590 case "$LIBINTL" in *$LIBICONV*)
11591 LIBICONV= ;;
11592 esac
11593
11594 # Check whether --enable-secureplt was given.
11595 if test "${enable_secureplt+set}" = set; then :
11596 enableval=$enable_secureplt;
11597 fi
11598
11599
11600 # Check whether --enable-leading-mingw64-underscores was given.
11601 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11602 enableval=$enable_leading_mingw64_underscores;
11603 fi
11604
11605 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11606
11607 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11608
11609 fi
11610
11611 # Check whether --enable-cld was given.
11612 if test "${enable_cld+set}" = set; then :
11613 enableval=$enable_cld;
11614 else
11615 enable_cld=no
11616 fi
11617
11618
11619 # Check whether --enable-frame-pointer was given.
11620 if test "${enable_frame_pointer+set}" = set; then :
11621 enableval=$enable_frame_pointer;
11622 else
11623
11624 case $target_os in
11625 linux* | darwin[8912]*)
11626 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11627 # DWARF2.
11628 enable_frame_pointer=no
11629 ;;
11630 *)
11631 enable_frame_pointer=yes
11632 ;;
11633 esac
11634
11635 fi
11636
11637
11638 # Windows32 Registry support for specifying GCC installation paths.
11639 # Check whether --enable-win32-registry was given.
11640 if test "${enable_win32_registry+set}" = set; then :
11641 enableval=$enable_win32_registry;
11642 fi
11643
11644
11645 case $host_os in
11646 win32 | pe | cygwin* | mingw32* | uwin*)
11647 if test "x$enable_win32_registry" != xno; then
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11649 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11650 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11651 $as_echo_n "(cached) " >&6
11652 else
11653 ac_func_search_save_LIBS=$LIBS
11654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11655 /* end confdefs.h. */
11656
11657 /* Override any GCC internal prototype to avoid an error.
11658 Use char because int might match the return type of a GCC
11659 builtin and then its argument prototype would still apply. */
11660 #ifdef __cplusplus
11661 extern "C"
11662 #endif
11663 char RegOpenKeyExA ();
11664 int
11665 main ()
11666 {
11667 return RegOpenKeyExA ();
11668 ;
11669 return 0;
11670 }
11671 _ACEOF
11672 for ac_lib in '' advapi32; do
11673 if test -z "$ac_lib"; then
11674 ac_res="none required"
11675 else
11676 ac_res=-l$ac_lib
11677 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11678 fi
11679 if ac_fn_c_try_link "$LINENO"; then :
11680 ac_cv_search_RegOpenKeyExA=$ac_res
11681 fi
11682 rm -f core conftest.err conftest.$ac_objext \
11683 conftest$ac_exeext
11684 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11685 break
11686 fi
11687 done
11688 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11689
11690 else
11691 ac_cv_search_RegOpenKeyExA=no
11692 fi
11693 rm conftest.$ac_ext
11694 LIBS=$ac_func_search_save_LIBS
11695 fi
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11697 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11698 ac_res=$ac_cv_search_RegOpenKeyExA
11699 if test "$ac_res" != no; then :
11700 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11701
11702 else
11703 enable_win32_registry=no
11704 fi
11705
11706 fi
11707
11708 if test "x$enable_win32_registry" != xno; then
11709
11710 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11711
11712
11713 if test "x$enable_win32_registry" != xyes \
11714 && test "x$enable_win32_registry" != x; then
11715
11716 cat >>confdefs.h <<_ACEOF
11717 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11718 _ACEOF
11719
11720 fi
11721 fi
11722 ;;
11723 esac
11724
11725 # Get an absolute path to the GCC top-level source directory
11726 holddir=`${PWDCMD-pwd}`
11727 cd $srcdir
11728 topdir=`${PWDCMD-pwd}`
11729 cd $holddir
11730
11731 # Conditionalize the makefile for this host machine.
11732 xmake_file=
11733 for f in ${host_xmake_file}
11734 do
11735 if test -f ${srcdir}/config/$f
11736 then
11737 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11738 fi
11739 done
11740
11741 # Conditionalize the makefile for this target machine.
11742 tmake_file_=
11743 for f in ${tmake_file}
11744 do
11745 if test -f ${srcdir}/config/$f
11746 then
11747 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11748 fi
11749 done
11750 tmake_file="${tmake_file_}"
11751
11752 out_object_file=`basename $out_file .c`.o
11753 common_out_object_file=`basename $common_out_file .c`.o
11754
11755 tm_file_list="options.h"
11756 tm_include_list="options.h insn-constants.h"
11757 for f in $tm_file; do
11758 case $f in
11759 ./* )
11760 f=`echo $f | sed 's/^..//'`
11761 tm_file_list="${tm_file_list} $f"
11762 tm_include_list="${tm_include_list} $f"
11763 ;;
11764 defaults.h )
11765 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11766 tm_include_list="${tm_include_list} $f"
11767 ;;
11768 * )
11769 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11770 tm_include_list="${tm_include_list} config/$f"
11771 ;;
11772 esac
11773 done
11774
11775 tm_p_file_list=
11776 tm_p_include_list=
11777 for f in $tm_p_file; do
11778 case $f in
11779 tm-preds.h )
11780 tm_p_file_list="${tm_p_file_list} $f"
11781 tm_p_include_list="${tm_p_include_list} $f"
11782 ;;
11783 * )
11784 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11785 tm_p_include_list="${tm_p_include_list} config/$f"
11786 esac
11787 done
11788
11789 xm_file_list=
11790 xm_include_list=
11791 for f in $xm_file; do
11792 case $f in
11793 ansidecl.h )
11794 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11795 xm_include_list="${xm_include_list} $f"
11796 ;;
11797 auto-host.h )
11798 xm_file_list="${xm_file_list} $f"
11799 xm_include_list="${xm_include_list} $f"
11800 ;;
11801 * )
11802 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11803 xm_include_list="${xm_include_list} config/$f"
11804 ;;
11805 esac
11806 done
11807
11808 host_xm_file_list=
11809 host_xm_include_list=
11810 for f in $host_xm_file; do
11811 case $f in
11812 ansidecl.h )
11813 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11814 host_xm_include_list="${host_xm_include_list} $f"
11815 ;;
11816 auto-host.h )
11817 host_xm_file_list="${host_xm_file_list} $f"
11818 host_xm_include_list="${host_xm_include_list} $f"
11819 ;;
11820 * )
11821 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11822 host_xm_include_list="${host_xm_include_list} config/$f"
11823 ;;
11824 esac
11825 done
11826
11827 build_xm_file_list=
11828 for f in $build_xm_file; do
11829 case $f in
11830 ansidecl.h )
11831 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11832 build_xm_include_list="${build_xm_include_list} $f"
11833 ;;
11834 auto-build.h | auto-host.h )
11835 build_xm_file_list="${build_xm_file_list} $f"
11836 build_xm_include_list="${build_xm_include_list} $f"
11837 ;;
11838 * )
11839 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11840 build_xm_include_list="${build_xm_include_list} config/$f"
11841 ;;
11842 esac
11843 done
11844
11845 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11846 # cross-compiler which does not use the native headers and libraries.
11847 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11848 CROSS=
11849 ALL=all.internal
11850 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11851
11852 if test "x$with_build_sysroot" != x; then
11853 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11854 else
11855 # This value is used, even on a native system, because
11856 # CROSS_SYSTEM_HEADER_DIR is just
11857 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11858 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11859 fi
11860
11861 if test x$host != x$target
11862 then
11863 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11864 ALL=all.cross
11865 SYSTEM_HEADER_DIR=$build_system_header_dir
11866 case "$host","$target" in
11867 # Darwin crosses can use the host system's libraries and headers,
11868 # because of the fat library support. Of course, it must be the
11869 # same version of Darwin on both sides. Allow the user to
11870 # just say --target=foo-darwin without a version number to mean
11871 # "the version on this system".
11872 *-*-darwin*,*-*-darwin*)
11873 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11874 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11875 if test $hostos = $targetos -o $targetos = darwin ; then
11876 CROSS=
11877 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11878 with_headers=yes
11879 fi
11880 ;;
11881
11882 i?86-*-*,x86_64-*-* \
11883 | powerpc*-*-*,powerpc64*-*-*)
11884 CROSS="$CROSS -DNATIVE_CROSS" ;;
11885 esac
11886
11887 case $target in
11888 *-*-mingw*)
11889 if test "x$with_headers" = x; then
11890 with_headers=yes
11891 fi
11892 ;;
11893 *)
11894 ;;
11895 esac
11896 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11897 SYSTEM_HEADER_DIR=$build_system_header_dir
11898 fi
11899
11900 # If this is a cross-compiler that does not
11901 # have its own set of headers then define
11902 # inhibit_libc
11903
11904 # If this is using newlib, without having the headers available now,
11905 # then define inhibit_libc in LIBGCC2_CFLAGS.
11906 # This prevents libgcc2 from containing any code which requires libc
11907 # support.
11908 : ${inhibit_libc=false}
11909 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11910 test x$with_newlib = xyes ; } &&
11911 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11912 inhibit_libc=true
11913 fi
11914
11915
11916 # When building gcc with a cross-compiler, we need to adjust things so
11917 # that the generator programs are still built with the native compiler.
11918 # Also, we cannot run fixincludes.
11919
11920 # These are the normal (build=host) settings:
11921 CC_FOR_BUILD='$(CC)'
11922 BUILD_CFLAGS='$(ALL_CFLAGS)'
11923 BUILD_LDFLAGS='$(LDFLAGS)'
11924 STMP_FIXINC=stmp-fixinc
11925
11926 # And these apply if build != host, or we are generating coverage data
11927 if test x$build != x$host || test "x$coverage_flags" != x
11928 then
11929 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11930 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11931 fi
11932
11933 # Expand extra_headers to include complete path.
11934 # This substitutes for lots of t-* files.
11935 extra_headers_list=
11936 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11937 for file in ${extra_headers} ; do
11938 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11939 done
11940
11941 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11942 if test x"$use_gcc_tgmath" = xyes
11943 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11944 fi
11945
11946 # Define collect2 in Makefile.
11947 case $host_can_use_collect2 in
11948 no) collect2= ;;
11949 *) collect2='collect2$(exeext)' ;;
11950 esac
11951
11952
11953 # Add a definition of USE_COLLECT2 if system wants one.
11954 case $use_collect2 in
11955 no) use_collect2= ;;
11956 "") ;;
11957 *)
11958 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11959 xm_defines="${xm_defines} USE_COLLECT2"
11960 case $host_can_use_collect2 in
11961 no)
11962 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11963 ;;
11964 esac
11965 ;;
11966 esac
11967
11968
11969 cat >>confdefs.h <<_ACEOF
11970 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11971 _ACEOF
11972
11973
11974 # ---------------------------
11975 # Assembler & linker features
11976 # ---------------------------
11977
11978 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11979 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11980 # However when ld-new is first executed from the build tree, libtool will
11981 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11982 # to the build tree. While doing this we need to use the previous-stage
11983 # linker, or we have an infinite loop. The presence of a shell script as
11984 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11985 # the gcc/collect-ld script. So we need to know how libtool works, or
11986 # exec-tool will fail.
11987
11988
11989 case `pwd` in
11990 *\ * | *\ *)
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11992 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11993 esac
11994
11995
11996
11997 macro_version='2.2.7a'
11998 macro_revision='1.3134'
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012 ltmain="$ac_aux_dir/ltmain.sh"
12013
12014 # Backslashify metacharacters that are still active within
12015 # double-quoted strings.
12016 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12017
12018 # Same as above, but do not quote variable references.
12019 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12020
12021 # Sed substitution to delay expansion of an escaped shell variable in a
12022 # double_quote_subst'ed string.
12023 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12024
12025 # Sed substitution to delay expansion of an escaped single quote.
12026 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12027
12028 # Sed substitution to avoid accidental globbing in evaled expressions
12029 no_glob_subst='s/\*/\\\*/g'
12030
12031 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12032 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12033 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12034
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12036 $as_echo_n "checking how to print strings... " >&6; }
12037 # Test print first, because it will be a builtin if present.
12038 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12039 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12040 ECHO='print -r --'
12041 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12042 ECHO='printf %s\n'
12043 else
12044 # Use this function as a fallback that always works.
12045 func_fallback_echo ()
12046 {
12047 eval 'cat <<_LTECHO_EOF
12048 $1
12049 _LTECHO_EOF'
12050 }
12051 ECHO='func_fallback_echo'
12052 fi
12053
12054 # func_echo_all arg...
12055 # Invoke $ECHO with all args, space-separated.
12056 func_echo_all ()
12057 {
12058 $ECHO ""
12059 }
12060
12061 case "$ECHO" in
12062 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12063 $as_echo "printf" >&6; } ;;
12064 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12065 $as_echo "print -r" >&6; } ;;
12066 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12067 $as_echo "cat" >&6; } ;;
12068 esac
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12084 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12085 if test "${ac_cv_path_SED+set}" = set; then :
12086 $as_echo_n "(cached) " >&6
12087 else
12088 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12089 for ac_i in 1 2 3 4 5 6 7; do
12090 ac_script="$ac_script$as_nl$ac_script"
12091 done
12092 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12093 { ac_script=; unset ac_script;}
12094 if test -z "$SED"; then
12095 ac_path_SED_found=false
12096 # Loop through the user's path and test for each of PROGNAME-LIST
12097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098 for as_dir in $PATH
12099 do
12100 IFS=$as_save_IFS
12101 test -z "$as_dir" && as_dir=.
12102 for ac_prog in sed gsed; do
12103 for ac_exec_ext in '' $ac_executable_extensions; do
12104 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12105 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12106 # Check for GNU ac_path_SED and select it if it is found.
12107 # Check for GNU $ac_path_SED
12108 case `"$ac_path_SED" --version 2>&1` in
12109 *GNU*)
12110 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12111 *)
12112 ac_count=0
12113 $as_echo_n 0123456789 >"conftest.in"
12114 while :
12115 do
12116 cat "conftest.in" "conftest.in" >"conftest.tmp"
12117 mv "conftest.tmp" "conftest.in"
12118 cp "conftest.in" "conftest.nl"
12119 $as_echo '' >> "conftest.nl"
12120 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12121 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12122 as_fn_arith $ac_count + 1 && ac_count=$as_val
12123 if test $ac_count -gt ${ac_path_SED_max-0}; then
12124 # Best one so far, save it but keep looking for a better one
12125 ac_cv_path_SED="$ac_path_SED"
12126 ac_path_SED_max=$ac_count
12127 fi
12128 # 10*(2^10) chars as input seems more than enough
12129 test $ac_count -gt 10 && break
12130 done
12131 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12132 esac
12133
12134 $ac_path_SED_found && break 3
12135 done
12136 done
12137 done
12138 IFS=$as_save_IFS
12139 if test -z "$ac_cv_path_SED"; then
12140 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12141 fi
12142 else
12143 ac_cv_path_SED=$SED
12144 fi
12145
12146 fi
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12148 $as_echo "$ac_cv_path_SED" >&6; }
12149 SED="$ac_cv_path_SED"
12150 rm -f conftest.sed
12151
12152 test -z "$SED" && SED=sed
12153 Xsed="$SED -e 1s/^X//"
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12166 $as_echo_n "checking for fgrep... " >&6; }
12167 if test "${ac_cv_path_FGREP+set}" = set; then :
12168 $as_echo_n "(cached) " >&6
12169 else
12170 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12171 then ac_cv_path_FGREP="$GREP -F"
12172 else
12173 if test -z "$FGREP"; then
12174 ac_path_FGREP_found=false
12175 # Loop through the user's path and test for each of PROGNAME-LIST
12176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12177 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12178 do
12179 IFS=$as_save_IFS
12180 test -z "$as_dir" && as_dir=.
12181 for ac_prog in fgrep; do
12182 for ac_exec_ext in '' $ac_executable_extensions; do
12183 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12184 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12185 # Check for GNU ac_path_FGREP and select it if it is found.
12186 # Check for GNU $ac_path_FGREP
12187 case `"$ac_path_FGREP" --version 2>&1` in
12188 *GNU*)
12189 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12190 *)
12191 ac_count=0
12192 $as_echo_n 0123456789 >"conftest.in"
12193 while :
12194 do
12195 cat "conftest.in" "conftest.in" >"conftest.tmp"
12196 mv "conftest.tmp" "conftest.in"
12197 cp "conftest.in" "conftest.nl"
12198 $as_echo 'FGREP' >> "conftest.nl"
12199 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12201 as_fn_arith $ac_count + 1 && ac_count=$as_val
12202 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12203 # Best one so far, save it but keep looking for a better one
12204 ac_cv_path_FGREP="$ac_path_FGREP"
12205 ac_path_FGREP_max=$ac_count
12206 fi
12207 # 10*(2^10) chars as input seems more than enough
12208 test $ac_count -gt 10 && break
12209 done
12210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12211 esac
12212
12213 $ac_path_FGREP_found && break 3
12214 done
12215 done
12216 done
12217 IFS=$as_save_IFS
12218 if test -z "$ac_cv_path_FGREP"; then
12219 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12220 fi
12221 else
12222 ac_cv_path_FGREP=$FGREP
12223 fi
12224
12225 fi
12226 fi
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12228 $as_echo "$ac_cv_path_FGREP" >&6; }
12229 FGREP="$ac_cv_path_FGREP"
12230
12231
12232 test -z "$GREP" && GREP=grep
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252 # Check whether --with-gnu-ld was given.
12253 if test "${with_gnu_ld+set}" = set; then :
12254 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12255 else
12256 with_gnu_ld=no
12257 fi
12258
12259 ac_prog=ld
12260 if test "$GCC" = yes; then
12261 # Check if gcc -print-prog-name=ld gives a path.
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12263 $as_echo_n "checking for ld used by $CC... " >&6; }
12264 case $host in
12265 *-*-mingw*)
12266 # gcc leaves a trailing carriage return which upsets mingw
12267 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12268 *)
12269 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12270 esac
12271 case $ac_prog in
12272 # Accept absolute paths.
12273 [\\/]* | ?:[\\/]*)
12274 re_direlt='/[^/][^/]*/\.\./'
12275 # Canonicalize the pathname of ld
12276 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12277 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12278 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12279 done
12280 test -z "$LD" && LD="$ac_prog"
12281 ;;
12282 "")
12283 # If it fails, then pretend we aren't using GCC.
12284 ac_prog=ld
12285 ;;
12286 *)
12287 # If it is relative, then search for the first ld in PATH.
12288 with_gnu_ld=unknown
12289 ;;
12290 esac
12291 elif test "$with_gnu_ld" = yes; then
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12293 $as_echo_n "checking for GNU ld... " >&6; }
12294 else
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12296 $as_echo_n "checking for non-GNU ld... " >&6; }
12297 fi
12298 if test "${lt_cv_path_LD+set}" = set; then :
12299 $as_echo_n "(cached) " >&6
12300 else
12301 if test -z "$LD"; then
12302 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12303 for ac_dir in $PATH; do
12304 IFS="$lt_save_ifs"
12305 test -z "$ac_dir" && ac_dir=.
12306 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12307 lt_cv_path_LD="$ac_dir/$ac_prog"
12308 # Check to see if the program is GNU ld. I'd rather use --version,
12309 # but apparently some variants of GNU ld only accept -v.
12310 # Break only if it was the GNU/non-GNU ld that we prefer.
12311 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12312 *GNU* | *'with BFD'*)
12313 test "$with_gnu_ld" != no && break
12314 ;;
12315 *)
12316 test "$with_gnu_ld" != yes && break
12317 ;;
12318 esac
12319 fi
12320 done
12321 IFS="$lt_save_ifs"
12322 else
12323 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12324 fi
12325 fi
12326
12327 LD="$lt_cv_path_LD"
12328 if test -n "$LD"; then
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12330 $as_echo "$LD" >&6; }
12331 else
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12333 $as_echo "no" >&6; }
12334 fi
12335 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12337 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12338 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12339 $as_echo_n "(cached) " >&6
12340 else
12341 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12342 case `$LD -v 2>&1 </dev/null` in
12343 *GNU* | *'with BFD'*)
12344 lt_cv_prog_gnu_ld=yes
12345 ;;
12346 *)
12347 lt_cv_prog_gnu_ld=no
12348 ;;
12349 esac
12350 fi
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12352 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12353 with_gnu_ld=$lt_cv_prog_gnu_ld
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12364 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12365 if test "${lt_cv_path_NM+set}" = set; then :
12366 $as_echo_n "(cached) " >&6
12367 else
12368 if test -n "$NM"; then
12369 # Let the user override the test.
12370 lt_cv_path_NM="$NM"
12371 else
12372 lt_nm_to_check="${ac_tool_prefix}nm"
12373 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12374 lt_nm_to_check="$lt_nm_to_check nm"
12375 fi
12376 for lt_tmp_nm in $lt_nm_to_check; do
12377 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12378 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12379 IFS="$lt_save_ifs"
12380 test -z "$ac_dir" && ac_dir=.
12381 tmp_nm="$ac_dir/$lt_tmp_nm"
12382 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12383 # Check to see if the nm accepts a BSD-compat flag.
12384 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12385 # nm: unknown option "B" ignored
12386 # Tru64's nm complains that /dev/null is an invalid object file
12387 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12388 */dev/null* | *'Invalid file or object type'*)
12389 lt_cv_path_NM="$tmp_nm -B"
12390 break
12391 ;;
12392 *)
12393 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12394 */dev/null*)
12395 lt_cv_path_NM="$tmp_nm -p"
12396 break
12397 ;;
12398 *)
12399 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12400 continue # so that we can try to find one that supports BSD flags
12401 ;;
12402 esac
12403 ;;
12404 esac
12405 fi
12406 done
12407 IFS="$lt_save_ifs"
12408 done
12409 : ${lt_cv_path_NM=no}
12410 fi
12411 fi
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12413 $as_echo "$lt_cv_path_NM" >&6; }
12414 if test "$lt_cv_path_NM" != "no"; then
12415 NM="$lt_cv_path_NM"
12416 else
12417 # Didn't find any BSD compatible name lister, look for dumpbin.
12418 if test -n "$DUMPBIN"; then :
12419 # Let the user override the test.
12420 else
12421 if test -n "$ac_tool_prefix"; then
12422 for ac_prog in dumpbin "link -dump"
12423 do
12424 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12425 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12427 $as_echo_n "checking for $ac_word... " >&6; }
12428 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12429 $as_echo_n "(cached) " >&6
12430 else
12431 if test -n "$DUMPBIN"; then
12432 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12433 else
12434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12435 for as_dir in $PATH
12436 do
12437 IFS=$as_save_IFS
12438 test -z "$as_dir" && as_dir=.
12439 for ac_exec_ext in '' $ac_executable_extensions; do
12440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12441 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12443 break 2
12444 fi
12445 done
12446 done
12447 IFS=$as_save_IFS
12448
12449 fi
12450 fi
12451 DUMPBIN=$ac_cv_prog_DUMPBIN
12452 if test -n "$DUMPBIN"; then
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12454 $as_echo "$DUMPBIN" >&6; }
12455 else
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12457 $as_echo "no" >&6; }
12458 fi
12459
12460
12461 test -n "$DUMPBIN" && break
12462 done
12463 fi
12464 if test -z "$DUMPBIN"; then
12465 ac_ct_DUMPBIN=$DUMPBIN
12466 for ac_prog in dumpbin "link -dump"
12467 do
12468 # Extract the first word of "$ac_prog", so it can be a program name with args.
12469 set dummy $ac_prog; ac_word=$2
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12471 $as_echo_n "checking for $ac_word... " >&6; }
12472 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12473 $as_echo_n "(cached) " >&6
12474 else
12475 if test -n "$ac_ct_DUMPBIN"; then
12476 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12477 else
12478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12479 for as_dir in $PATH
12480 do
12481 IFS=$as_save_IFS
12482 test -z "$as_dir" && as_dir=.
12483 for ac_exec_ext in '' $ac_executable_extensions; do
12484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12485 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12487 break 2
12488 fi
12489 done
12490 done
12491 IFS=$as_save_IFS
12492
12493 fi
12494 fi
12495 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12496 if test -n "$ac_ct_DUMPBIN"; then
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12498 $as_echo "$ac_ct_DUMPBIN" >&6; }
12499 else
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12501 $as_echo "no" >&6; }
12502 fi
12503
12504
12505 test -n "$ac_ct_DUMPBIN" && break
12506 done
12507
12508 if test "x$ac_ct_DUMPBIN" = x; then
12509 DUMPBIN=":"
12510 else
12511 case $cross_compiling:$ac_tool_warned in
12512 yes:)
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12515 ac_tool_warned=yes ;;
12516 esac
12517 DUMPBIN=$ac_ct_DUMPBIN
12518 fi
12519 fi
12520
12521 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12522 *COFF*)
12523 DUMPBIN="$DUMPBIN -symbols"
12524 ;;
12525 *)
12526 DUMPBIN=:
12527 ;;
12528 esac
12529 fi
12530
12531 if test "$DUMPBIN" != ":"; then
12532 NM="$DUMPBIN"
12533 fi
12534 fi
12535 test -z "$NM" && NM=nm
12536
12537
12538
12539
12540
12541
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12543 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12544 if test "${lt_cv_nm_interface+set}" = set; then :
12545 $as_echo_n "(cached) " >&6
12546 else
12547 lt_cv_nm_interface="BSD nm"
12548 echo "int some_variable = 0;" > conftest.$ac_ext
12549 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12550 (eval "$ac_compile" 2>conftest.err)
12551 cat conftest.err >&5
12552 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12553 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12554 cat conftest.err >&5
12555 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12556 cat conftest.out >&5
12557 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12558 lt_cv_nm_interface="MS dumpbin"
12559 fi
12560 rm -f conftest*
12561 fi
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12563 $as_echo "$lt_cv_nm_interface" >&6; }
12564
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12566 $as_echo_n "checking whether ln -s works... " >&6; }
12567 LN_S=$as_ln_s
12568 if test "$LN_S" = "ln -s"; then
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12570 $as_echo "yes" >&6; }
12571 else
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12573 $as_echo "no, using $LN_S" >&6; }
12574 fi
12575
12576 # find the maximum length of command line arguments
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12578 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12579 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12580 $as_echo_n "(cached) " >&6
12581 else
12582 i=0
12583 teststring="ABCD"
12584
12585 case $build_os in
12586 msdosdjgpp*)
12587 # On DJGPP, this test can blow up pretty badly due to problems in libc
12588 # (any single argument exceeding 2000 bytes causes a buffer overrun
12589 # during glob expansion). Even if it were fixed, the result of this
12590 # check would be larger than it should be.
12591 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12592 ;;
12593
12594 gnu*)
12595 # Under GNU Hurd, this test is not required because there is
12596 # no limit to the length of command line arguments.
12597 # Libtool will interpret -1 as no limit whatsoever
12598 lt_cv_sys_max_cmd_len=-1;
12599 ;;
12600
12601 cygwin* | mingw* | cegcc*)
12602 # On Win9x/ME, this test blows up -- it succeeds, but takes
12603 # about 5 minutes as the teststring grows exponentially.
12604 # Worse, since 9x/ME are not pre-emptively multitasking,
12605 # you end up with a "frozen" computer, even though with patience
12606 # the test eventually succeeds (with a max line length of 256k).
12607 # Instead, let's just punt: use the minimum linelength reported by
12608 # all of the supported platforms: 8192 (on NT/2K/XP).
12609 lt_cv_sys_max_cmd_len=8192;
12610 ;;
12611
12612 mint*)
12613 # On MiNT this can take a long time and run out of memory.
12614 lt_cv_sys_max_cmd_len=8192;
12615 ;;
12616
12617 amigaos*)
12618 # On AmigaOS with pdksh, this test takes hours, literally.
12619 # So we just punt and use a minimum line length of 8192.
12620 lt_cv_sys_max_cmd_len=8192;
12621 ;;
12622
12623 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12624 # This has been around since 386BSD, at least. Likely further.
12625 if test -x /sbin/sysctl; then
12626 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12627 elif test -x /usr/sbin/sysctl; then
12628 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12629 else
12630 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12631 fi
12632 # And add a safety zone
12633 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12634 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12635 ;;
12636
12637 interix*)
12638 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12639 lt_cv_sys_max_cmd_len=196608
12640 ;;
12641
12642 osf*)
12643 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12644 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12645 # nice to cause kernel panics so lets avoid the loop below.
12646 # First set a reasonable default.
12647 lt_cv_sys_max_cmd_len=16384
12648 #
12649 if test -x /sbin/sysconfig; then
12650 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12651 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12652 esac
12653 fi
12654 ;;
12655 sco3.2v5*)
12656 lt_cv_sys_max_cmd_len=102400
12657 ;;
12658 sysv5* | sco5v6* | sysv4.2uw2*)
12659 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12660 if test -n "$kargmax"; then
12661 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12662 else
12663 lt_cv_sys_max_cmd_len=32768
12664 fi
12665 ;;
12666 *)
12667 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12668 if test -n "$lt_cv_sys_max_cmd_len"; then
12669 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12670 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12671 else
12672 # Make teststring a little bigger before we do anything with it.
12673 # a 1K string should be a reasonable start.
12674 for i in 1 2 3 4 5 6 7 8 ; do
12675 teststring=$teststring$teststring
12676 done
12677 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12678 # If test is not a shell built-in, we'll probably end up computing a
12679 # maximum length that is only half of the actual maximum length, but
12680 # we can't tell.
12681 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12682 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12683 test $i != 17 # 1/2 MB should be enough
12684 do
12685 i=`expr $i + 1`
12686 teststring=$teststring$teststring
12687 done
12688 # Only check the string length outside the loop.
12689 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12690 teststring=
12691 # Add a significant safety factor because C++ compilers can tack on
12692 # massive amounts of additional arguments before passing them to the
12693 # linker. It appears as though 1/2 is a usable value.
12694 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12695 fi
12696 ;;
12697 esac
12698
12699 fi
12700
12701 if test -n $lt_cv_sys_max_cmd_len ; then
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12703 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12704 else
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12706 $as_echo "none" >&6; }
12707 fi
12708 max_cmd_len=$lt_cv_sys_max_cmd_len
12709
12710
12711
12712
12713
12714
12715 : ${CP="cp -f"}
12716 : ${MV="mv -f"}
12717 : ${RM="rm -f"}
12718
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12720 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12721 # Try some XSI features
12722 xsi_shell=no
12723 ( _lt_dummy="a/b/c"
12724 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12725 = c,a/b,, \
12726 && eval 'test $(( 1 + 1 )) -eq 2 \
12727 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12728 && xsi_shell=yes
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12730 $as_echo "$xsi_shell" >&6; }
12731
12732
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12734 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12735 lt_shell_append=no
12736 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12737 >/dev/null 2>&1 \
12738 && lt_shell_append=yes
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12740 $as_echo "$lt_shell_append" >&6; }
12741
12742
12743 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12744 lt_unset=unset
12745 else
12746 lt_unset=false
12747 fi
12748
12749
12750
12751
12752
12753 # test EBCDIC or ASCII
12754 case `echo X|tr X '\101'` in
12755 A) # ASCII based system
12756 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12757 lt_SP2NL='tr \040 \012'
12758 lt_NL2SP='tr \015\012 \040\040'
12759 ;;
12760 *) # EBCDIC based system
12761 lt_SP2NL='tr \100 \n'
12762 lt_NL2SP='tr \r\n \100\100'
12763 ;;
12764 esac
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12775 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12776 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12777 $as_echo_n "(cached) " >&6
12778 else
12779 lt_cv_ld_reload_flag='-r'
12780 fi
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12782 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12783 reload_flag=$lt_cv_ld_reload_flag
12784 case $reload_flag in
12785 "" | " "*) ;;
12786 *) reload_flag=" $reload_flag" ;;
12787 esac
12788 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12789 case $host_os in
12790 darwin*)
12791 if test "$GCC" = yes; then
12792 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12793 else
12794 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12795 fi
12796 ;;
12797 esac
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807 if test -n "$ac_tool_prefix"; then
12808 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12809 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12811 $as_echo_n "checking for $ac_word... " >&6; }
12812 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12813 $as_echo_n "(cached) " >&6
12814 else
12815 if test -n "$OBJDUMP"; then
12816 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12817 else
12818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12819 for as_dir in $PATH
12820 do
12821 IFS=$as_save_IFS
12822 test -z "$as_dir" && as_dir=.
12823 for ac_exec_ext in '' $ac_executable_extensions; do
12824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12825 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12827 break 2
12828 fi
12829 done
12830 done
12831 IFS=$as_save_IFS
12832
12833 fi
12834 fi
12835 OBJDUMP=$ac_cv_prog_OBJDUMP
12836 if test -n "$OBJDUMP"; then
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12838 $as_echo "$OBJDUMP" >&6; }
12839 else
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12841 $as_echo "no" >&6; }
12842 fi
12843
12844
12845 fi
12846 if test -z "$ac_cv_prog_OBJDUMP"; then
12847 ac_ct_OBJDUMP=$OBJDUMP
12848 # Extract the first word of "objdump", so it can be a program name with args.
12849 set dummy objdump; ac_word=$2
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12851 $as_echo_n "checking for $ac_word... " >&6; }
12852 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12853 $as_echo_n "(cached) " >&6
12854 else
12855 if test -n "$ac_ct_OBJDUMP"; then
12856 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12857 else
12858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12859 for as_dir in $PATH
12860 do
12861 IFS=$as_save_IFS
12862 test -z "$as_dir" && as_dir=.
12863 for ac_exec_ext in '' $ac_executable_extensions; do
12864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12865 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12867 break 2
12868 fi
12869 done
12870 done
12871 IFS=$as_save_IFS
12872
12873 fi
12874 fi
12875 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12876 if test -n "$ac_ct_OBJDUMP"; then
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12878 $as_echo "$ac_ct_OBJDUMP" >&6; }
12879 else
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12881 $as_echo "no" >&6; }
12882 fi
12883
12884 if test "x$ac_ct_OBJDUMP" = x; then
12885 OBJDUMP="false"
12886 else
12887 case $cross_compiling:$ac_tool_warned in
12888 yes:)
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12891 ac_tool_warned=yes ;;
12892 esac
12893 OBJDUMP=$ac_ct_OBJDUMP
12894 fi
12895 else
12896 OBJDUMP="$ac_cv_prog_OBJDUMP"
12897 fi
12898
12899 test -z "$OBJDUMP" && OBJDUMP=objdump
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12910 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12911 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12912 $as_echo_n "(cached) " >&6
12913 else
12914 lt_cv_file_magic_cmd='$MAGIC_CMD'
12915 lt_cv_file_magic_test_file=
12916 lt_cv_deplibs_check_method='unknown'
12917 # Need to set the preceding variable on all platforms that support
12918 # interlibrary dependencies.
12919 # 'none' -- dependencies not supported.
12920 # `unknown' -- same as none, but documents that we really don't know.
12921 # 'pass_all' -- all dependencies passed with no checks.
12922 # 'test_compile' -- check by making test program.
12923 # 'file_magic [[regex]]' -- check by looking for files in library path
12924 # which responds to the $file_magic_cmd with a given extended regex.
12925 # If you have `file' or equivalent on your system and you're not sure
12926 # whether `pass_all' will *always* work, you probably want this one.
12927
12928 case $host_os in
12929 aix[4-9]*)
12930 lt_cv_deplibs_check_method=pass_all
12931 ;;
12932
12933 beos*)
12934 lt_cv_deplibs_check_method=pass_all
12935 ;;
12936
12937 bsdi[45]*)
12938 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12939 lt_cv_file_magic_cmd='/usr/bin/file -L'
12940 lt_cv_file_magic_test_file=/shlib/libc.so
12941 ;;
12942
12943 cygwin*)
12944 # func_win32_libid is a shell function defined in ltmain.sh
12945 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12946 lt_cv_file_magic_cmd='func_win32_libid'
12947 ;;
12948
12949 mingw* | pw32*)
12950 # Base MSYS/MinGW do not provide the 'file' command needed by
12951 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12952 # unless we find 'file', for example because we are cross-compiling.
12953 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12954 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12955 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12956 lt_cv_file_magic_cmd='func_win32_libid'
12957 else
12958 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12959 lt_cv_file_magic_cmd='$OBJDUMP -f'
12960 fi
12961 ;;
12962
12963 cegcc*)
12964 # use the weaker test based on 'objdump'. See mingw*.
12965 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12966 lt_cv_file_magic_cmd='$OBJDUMP -f'
12967 ;;
12968
12969 darwin* | rhapsody*)
12970 lt_cv_deplibs_check_method=pass_all
12971 ;;
12972
12973 freebsd* | dragonfly*)
12974 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12975 case $host_cpu in
12976 i*86 )
12977 # Not sure whether the presence of OpenBSD here was a mistake.
12978 # Let's accept both of them until this is cleared up.
12979 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12980 lt_cv_file_magic_cmd=/usr/bin/file
12981 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12982 ;;
12983 esac
12984 else
12985 lt_cv_deplibs_check_method=pass_all
12986 fi
12987 ;;
12988
12989 gnu*)
12990 lt_cv_deplibs_check_method=pass_all
12991 ;;
12992
12993 haiku*)
12994 lt_cv_deplibs_check_method=pass_all
12995 ;;
12996
12997 hpux10.20* | hpux11*)
12998 lt_cv_file_magic_cmd=/usr/bin/file
12999 case $host_cpu in
13000 ia64*)
13001 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13002 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13003 ;;
13004 hppa*64*)
13005 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]'
13006 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13007 ;;
13008 *)
13009 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13010 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13011 ;;
13012 esac
13013 ;;
13014
13015 interix[3-9]*)
13016 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13017 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13018 ;;
13019
13020 irix5* | irix6* | nonstopux*)
13021 case $LD in
13022 *-32|*"-32 ") libmagic=32-bit;;
13023 *-n32|*"-n32 ") libmagic=N32;;
13024 *-64|*"-64 ") libmagic=64-bit;;
13025 *) libmagic=never-match;;
13026 esac
13027 lt_cv_deplibs_check_method=pass_all
13028 ;;
13029
13030 # This must be Linux ELF.
13031 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13032 lt_cv_deplibs_check_method=pass_all
13033 ;;
13034
13035 netbsd*)
13036 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13037 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13038 else
13039 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13040 fi
13041 ;;
13042
13043 newos6*)
13044 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13045 lt_cv_file_magic_cmd=/usr/bin/file
13046 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13047 ;;
13048
13049 *nto* | *qnx*)
13050 lt_cv_deplibs_check_method=pass_all
13051 ;;
13052
13053 openbsd*)
13054 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13055 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13056 else
13057 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13058 fi
13059 ;;
13060
13061 osf3* | osf4* | osf5*)
13062 lt_cv_deplibs_check_method=pass_all
13063 ;;
13064
13065 rdos*)
13066 lt_cv_deplibs_check_method=pass_all
13067 ;;
13068
13069 solaris*)
13070 lt_cv_deplibs_check_method=pass_all
13071 ;;
13072
13073 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13074 lt_cv_deplibs_check_method=pass_all
13075 ;;
13076
13077 sysv4 | sysv4.3*)
13078 case $host_vendor in
13079 motorola)
13080 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]'
13081 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13082 ;;
13083 ncr)
13084 lt_cv_deplibs_check_method=pass_all
13085 ;;
13086 sequent)
13087 lt_cv_file_magic_cmd='/bin/file'
13088 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13089 ;;
13090 sni)
13091 lt_cv_file_magic_cmd='/bin/file'
13092 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13093 lt_cv_file_magic_test_file=/lib/libc.so
13094 ;;
13095 siemens)
13096 lt_cv_deplibs_check_method=pass_all
13097 ;;
13098 pc)
13099 lt_cv_deplibs_check_method=pass_all
13100 ;;
13101 esac
13102 ;;
13103
13104 tpf*)
13105 lt_cv_deplibs_check_method=pass_all
13106 ;;
13107 esac
13108
13109 fi
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13111 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13112 file_magic_cmd=$lt_cv_file_magic_cmd
13113 deplibs_check_method=$lt_cv_deplibs_check_method
13114 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127 if test -n "$ac_tool_prefix"; then
13128 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13129 set dummy ${ac_tool_prefix}ar; ac_word=$2
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13131 $as_echo_n "checking for $ac_word... " >&6; }
13132 if test "${ac_cv_prog_AR+set}" = set; then :
13133 $as_echo_n "(cached) " >&6
13134 else
13135 if test -n "$AR"; then
13136 ac_cv_prog_AR="$AR" # Let the user override the test.
13137 else
13138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13139 for as_dir in $PATH
13140 do
13141 IFS=$as_save_IFS
13142 test -z "$as_dir" && as_dir=.
13143 for ac_exec_ext in '' $ac_executable_extensions; do
13144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13145 ac_cv_prog_AR="${ac_tool_prefix}ar"
13146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13147 break 2
13148 fi
13149 done
13150 done
13151 IFS=$as_save_IFS
13152
13153 fi
13154 fi
13155 AR=$ac_cv_prog_AR
13156 if test -n "$AR"; then
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13158 $as_echo "$AR" >&6; }
13159 else
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13161 $as_echo "no" >&6; }
13162 fi
13163
13164
13165 fi
13166 if test -z "$ac_cv_prog_AR"; then
13167 ac_ct_AR=$AR
13168 # Extract the first word of "ar", so it can be a program name with args.
13169 set dummy ar; ac_word=$2
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13171 $as_echo_n "checking for $ac_word... " >&6; }
13172 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13173 $as_echo_n "(cached) " >&6
13174 else
13175 if test -n "$ac_ct_AR"; then
13176 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13177 else
13178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13179 for as_dir in $PATH
13180 do
13181 IFS=$as_save_IFS
13182 test -z "$as_dir" && as_dir=.
13183 for ac_exec_ext in '' $ac_executable_extensions; do
13184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13185 ac_cv_prog_ac_ct_AR="ar"
13186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13187 break 2
13188 fi
13189 done
13190 done
13191 IFS=$as_save_IFS
13192
13193 fi
13194 fi
13195 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13196 if test -n "$ac_ct_AR"; then
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13198 $as_echo "$ac_ct_AR" >&6; }
13199 else
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13201 $as_echo "no" >&6; }
13202 fi
13203
13204 if test "x$ac_ct_AR" = x; then
13205 AR="false"
13206 else
13207 case $cross_compiling:$ac_tool_warned in
13208 yes:)
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13211 ac_tool_warned=yes ;;
13212 esac
13213 AR=$ac_ct_AR
13214 fi
13215 else
13216 AR="$ac_cv_prog_AR"
13217 fi
13218
13219 test -z "$AR" && AR=ar
13220 test -z "$AR_FLAGS" && AR_FLAGS=cru
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232 if test -n "$ac_tool_prefix"; then
13233 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13234 set dummy ${ac_tool_prefix}strip; ac_word=$2
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13236 $as_echo_n "checking for $ac_word... " >&6; }
13237 if test "${ac_cv_prog_STRIP+set}" = set; then :
13238 $as_echo_n "(cached) " >&6
13239 else
13240 if test -n "$STRIP"; then
13241 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13242 else
13243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13244 for as_dir in $PATH
13245 do
13246 IFS=$as_save_IFS
13247 test -z "$as_dir" && as_dir=.
13248 for ac_exec_ext in '' $ac_executable_extensions; do
13249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13250 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13252 break 2
13253 fi
13254 done
13255 done
13256 IFS=$as_save_IFS
13257
13258 fi
13259 fi
13260 STRIP=$ac_cv_prog_STRIP
13261 if test -n "$STRIP"; then
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13263 $as_echo "$STRIP" >&6; }
13264 else
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13266 $as_echo "no" >&6; }
13267 fi
13268
13269
13270 fi
13271 if test -z "$ac_cv_prog_STRIP"; then
13272 ac_ct_STRIP=$STRIP
13273 # Extract the first word of "strip", so it can be a program name with args.
13274 set dummy strip; ac_word=$2
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13276 $as_echo_n "checking for $ac_word... " >&6; }
13277 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13278 $as_echo_n "(cached) " >&6
13279 else
13280 if test -n "$ac_ct_STRIP"; then
13281 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13282 else
13283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13284 for as_dir in $PATH
13285 do
13286 IFS=$as_save_IFS
13287 test -z "$as_dir" && as_dir=.
13288 for ac_exec_ext in '' $ac_executable_extensions; do
13289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13290 ac_cv_prog_ac_ct_STRIP="strip"
13291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13292 break 2
13293 fi
13294 done
13295 done
13296 IFS=$as_save_IFS
13297
13298 fi
13299 fi
13300 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13301 if test -n "$ac_ct_STRIP"; then
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13303 $as_echo "$ac_ct_STRIP" >&6; }
13304 else
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13306 $as_echo "no" >&6; }
13307 fi
13308
13309 if test "x$ac_ct_STRIP" = x; then
13310 STRIP=":"
13311 else
13312 case $cross_compiling:$ac_tool_warned in
13313 yes:)
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13316 ac_tool_warned=yes ;;
13317 esac
13318 STRIP=$ac_ct_STRIP
13319 fi
13320 else
13321 STRIP="$ac_cv_prog_STRIP"
13322 fi
13323
13324 test -z "$STRIP" && STRIP=:
13325
13326
13327
13328
13329
13330
13331 if test -n "$ac_tool_prefix"; then
13332 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13333 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13335 $as_echo_n "checking for $ac_word... " >&6; }
13336 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13337 $as_echo_n "(cached) " >&6
13338 else
13339 if test -n "$RANLIB"; then
13340 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13341 else
13342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13343 for as_dir in $PATH
13344 do
13345 IFS=$as_save_IFS
13346 test -z "$as_dir" && as_dir=.
13347 for ac_exec_ext in '' $ac_executable_extensions; do
13348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13349 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13351 break 2
13352 fi
13353 done
13354 done
13355 IFS=$as_save_IFS
13356
13357 fi
13358 fi
13359 RANLIB=$ac_cv_prog_RANLIB
13360 if test -n "$RANLIB"; then
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13362 $as_echo "$RANLIB" >&6; }
13363 else
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13365 $as_echo "no" >&6; }
13366 fi
13367
13368
13369 fi
13370 if test -z "$ac_cv_prog_RANLIB"; then
13371 ac_ct_RANLIB=$RANLIB
13372 # Extract the first word of "ranlib", so it can be a program name with args.
13373 set dummy ranlib; ac_word=$2
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13375 $as_echo_n "checking for $ac_word... " >&6; }
13376 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13377 $as_echo_n "(cached) " >&6
13378 else
13379 if test -n "$ac_ct_RANLIB"; then
13380 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13381 else
13382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13383 for as_dir in $PATH
13384 do
13385 IFS=$as_save_IFS
13386 test -z "$as_dir" && as_dir=.
13387 for ac_exec_ext in '' $ac_executable_extensions; do
13388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13389 ac_cv_prog_ac_ct_RANLIB="ranlib"
13390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13391 break 2
13392 fi
13393 done
13394 done
13395 IFS=$as_save_IFS
13396
13397 fi
13398 fi
13399 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13400 if test -n "$ac_ct_RANLIB"; then
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13402 $as_echo "$ac_ct_RANLIB" >&6; }
13403 else
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13405 $as_echo "no" >&6; }
13406 fi
13407
13408 if test "x$ac_ct_RANLIB" = x; then
13409 RANLIB=":"
13410 else
13411 case $cross_compiling:$ac_tool_warned in
13412 yes:)
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13415 ac_tool_warned=yes ;;
13416 esac
13417 RANLIB=$ac_ct_RANLIB
13418 fi
13419 else
13420 RANLIB="$ac_cv_prog_RANLIB"
13421 fi
13422
13423 test -z "$RANLIB" && RANLIB=:
13424
13425
13426
13427
13428
13429
13430 # Determine commands to create old-style static archives.
13431 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13432 old_postinstall_cmds='chmod 644 $oldlib'
13433 old_postuninstall_cmds=
13434
13435 if test -n "$RANLIB"; then
13436 case $host_os in
13437 openbsd*)
13438 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13439 ;;
13440 *)
13441 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13442 ;;
13443 esac
13444 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13445 fi
13446
13447 case $host_os in
13448 darwin*)
13449 lock_old_archive_extraction=yes ;;
13450 *)
13451 lock_old_archive_extraction=no ;;
13452 esac
13453
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 # If no C compiler was specified, use CC.
13493 LTCC=${LTCC-"$CC"}
13494
13495 # If no C compiler flags were specified, use CFLAGS.
13496 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13497
13498 # Allow CC to be a program name with arguments.
13499 compiler=$CC
13500
13501
13502 # Check for command to grab the raw symbol name followed by C symbol from nm.
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13504 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13505 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13506 $as_echo_n "(cached) " >&6
13507 else
13508
13509 # These are sane defaults that work on at least a few old systems.
13510 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13511
13512 # Character class describing NM global symbol codes.
13513 symcode='[BCDEGRST]'
13514
13515 # Regexp to match symbols that can be accessed directly from C.
13516 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13517
13518 # Define system-specific variables.
13519 case $host_os in
13520 aix*)
13521 symcode='[BCDT]'
13522 ;;
13523 cygwin* | mingw* | pw32* | cegcc*)
13524 symcode='[ABCDGISTW]'
13525 ;;
13526 hpux*)
13527 if test "$host_cpu" = ia64; then
13528 symcode='[ABCDEGRST]'
13529 fi
13530 ;;
13531 irix* | nonstopux*)
13532 symcode='[BCDEGRST]'
13533 ;;
13534 osf*)
13535 symcode='[BCDEGQRST]'
13536 ;;
13537 solaris*)
13538 symcode='[BDRT]'
13539 ;;
13540 sco3.2v5*)
13541 symcode='[DT]'
13542 ;;
13543 sysv4.2uw2*)
13544 symcode='[DT]'
13545 ;;
13546 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13547 symcode='[ABDT]'
13548 ;;
13549 sysv4)
13550 symcode='[DFNSTU]'
13551 ;;
13552 esac
13553
13554 # If we're using GNU nm, then use its standard symbol codes.
13555 case `$NM -V 2>&1` in
13556 *GNU* | *'with BFD'*)
13557 symcode='[ABCDGIRSTW]' ;;
13558 esac
13559
13560 # Transform an extracted symbol line into a proper C declaration.
13561 # Some systems (esp. on ia64) link data and code symbols differently,
13562 # so use this general approach.
13563 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13564
13565 # Transform an extracted symbol line into symbol name and symbol address
13566 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13567 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'"
13568
13569 # Handle CRLF in mingw tool chain
13570 opt_cr=
13571 case $build_os in
13572 mingw*)
13573 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13574 ;;
13575 esac
13576
13577 # Try without a prefix underscore, then with it.
13578 for ac_symprfx in "" "_"; do
13579
13580 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13581 symxfrm="\\1 $ac_symprfx\\2 \\2"
13582
13583 # Write the raw and C identifiers.
13584 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13585 # Fake it for dumpbin and say T for any non-static function
13586 # and D for any global variable.
13587 # Also find C++ and __fastcall symbols from MSVC++,
13588 # which start with @ or ?.
13589 lt_cv_sys_global_symbol_pipe="$AWK '"\
13590 " {last_section=section; section=\$ 3};"\
13591 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13592 " \$ 0!~/External *\|/{next};"\
13593 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13594 " {if(hide[section]) next};"\
13595 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13596 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13597 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13598 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13599 " ' prfx=^$ac_symprfx"
13600 else
13601 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13602 fi
13603
13604 # Check to see that the pipe works correctly.
13605 pipe_works=no
13606
13607 rm -f conftest*
13608 cat > conftest.$ac_ext <<_LT_EOF
13609 #ifdef __cplusplus
13610 extern "C" {
13611 #endif
13612 char nm_test_var;
13613 void nm_test_func(void);
13614 void nm_test_func(void){}
13615 #ifdef __cplusplus
13616 }
13617 #endif
13618 int main(){nm_test_var='a';nm_test_func();return(0);}
13619 _LT_EOF
13620
13621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13622 (eval $ac_compile) 2>&5
13623 ac_status=$?
13624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13625 test $ac_status = 0; }; then
13626 # Now try to grab the symbols.
13627 nlist=conftest.nm
13628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13629 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13630 ac_status=$?
13631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13632 test $ac_status = 0; } && test -s "$nlist"; then
13633 # Try sorting and uniquifying the output.
13634 if sort "$nlist" | uniq > "$nlist"T; then
13635 mv -f "$nlist"T "$nlist"
13636 else
13637 rm -f "$nlist"T
13638 fi
13639
13640 # Make sure that we snagged all the symbols we need.
13641 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13642 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13643 cat <<_LT_EOF > conftest.$ac_ext
13644 #ifdef __cplusplus
13645 extern "C" {
13646 #endif
13647
13648 _LT_EOF
13649 # Now generate the symbol file.
13650 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13651
13652 cat <<_LT_EOF >> conftest.$ac_ext
13653
13654 /* The mapping between symbol names and symbols. */
13655 const struct {
13656 const char *name;
13657 void *address;
13658 }
13659 lt__PROGRAM__LTX_preloaded_symbols[] =
13660 {
13661 { "@PROGRAM@", (void *) 0 },
13662 _LT_EOF
13663 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13664 cat <<\_LT_EOF >> conftest.$ac_ext
13665 {0, (void *) 0}
13666 };
13667
13668 /* This works around a problem in FreeBSD linker */
13669 #ifdef FREEBSD_WORKAROUND
13670 static const void *lt_preloaded_setup() {
13671 return lt__PROGRAM__LTX_preloaded_symbols;
13672 }
13673 #endif
13674
13675 #ifdef __cplusplus
13676 }
13677 #endif
13678 _LT_EOF
13679 # Now try linking the two files.
13680 mv conftest.$ac_objext conftstm.$ac_objext
13681 lt_save_LIBS="$LIBS"
13682 lt_save_CFLAGS="$CFLAGS"
13683 LIBS="conftstm.$ac_objext"
13684 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13686 (eval $ac_link) 2>&5
13687 ac_status=$?
13688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13689 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13690 pipe_works=yes
13691 fi
13692 LIBS="$lt_save_LIBS"
13693 CFLAGS="$lt_save_CFLAGS"
13694 else
13695 echo "cannot find nm_test_func in $nlist" >&5
13696 fi
13697 else
13698 echo "cannot find nm_test_var in $nlist" >&5
13699 fi
13700 else
13701 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13702 fi
13703 else
13704 echo "$progname: failed program was:" >&5
13705 cat conftest.$ac_ext >&5
13706 fi
13707 rm -rf conftest* conftst*
13708
13709 # Do not use the global_symbol_pipe unless it works.
13710 if test "$pipe_works" = yes; then
13711 break
13712 else
13713 lt_cv_sys_global_symbol_pipe=
13714 fi
13715 done
13716
13717 fi
13718
13719 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13720 lt_cv_sys_global_symbol_to_cdecl=
13721 fi
13722 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13724 $as_echo "failed" >&6; }
13725 else
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13727 $as_echo "ok" >&6; }
13728 fi
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751 # Check whether --enable-libtool-lock was given.
13752 if test "${enable_libtool_lock+set}" = set; then :
13753 enableval=$enable_libtool_lock;
13754 fi
13755
13756 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13757
13758 # Some flags need to be propagated to the compiler or linker for good
13759 # libtool support.
13760 case $host in
13761 ia64-*-hpux*)
13762 # Find out which ABI we are using.
13763 echo 'int i;' > conftest.$ac_ext
13764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13765 (eval $ac_compile) 2>&5
13766 ac_status=$?
13767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13768 test $ac_status = 0; }; then
13769 case `/usr/bin/file conftest.$ac_objext` in
13770 *ELF-32*)
13771 HPUX_IA64_MODE="32"
13772 ;;
13773 *ELF-64*)
13774 HPUX_IA64_MODE="64"
13775 ;;
13776 esac
13777 fi
13778 rm -rf conftest*
13779 ;;
13780 *-*-irix6*)
13781 # Find out which ABI we are using.
13782 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13784 (eval $ac_compile) 2>&5
13785 ac_status=$?
13786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13787 test $ac_status = 0; }; then
13788 if test "$lt_cv_prog_gnu_ld" = yes; then
13789 case `/usr/bin/file conftest.$ac_objext` in
13790 *32-bit*)
13791 LD="${LD-ld} -melf32bsmip"
13792 ;;
13793 *N32*)
13794 LD="${LD-ld} -melf32bmipn32"
13795 ;;
13796 *64-bit*)
13797 LD="${LD-ld} -melf64bmip"
13798 ;;
13799 esac
13800 else
13801 case `/usr/bin/file conftest.$ac_objext` in
13802 *32-bit*)
13803 LD="${LD-ld} -32"
13804 ;;
13805 *N32*)
13806 LD="${LD-ld} -n32"
13807 ;;
13808 *64-bit*)
13809 LD="${LD-ld} -64"
13810 ;;
13811 esac
13812 fi
13813 fi
13814 rm -rf conftest*
13815 ;;
13816
13817 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13818 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13819 # Find out which ABI we are using.
13820 echo 'int i;' > conftest.$ac_ext
13821 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13822 (eval $ac_compile) 2>&5
13823 ac_status=$?
13824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13825 test $ac_status = 0; }; then
13826 case `/usr/bin/file conftest.o` in
13827 *32-bit*)
13828 case $host in
13829 x86_64-*kfreebsd*-gnu)
13830 LD="${LD-ld} -m elf_i386_fbsd"
13831 ;;
13832 x86_64-*linux*)
13833 LD="${LD-ld} -m elf_i386"
13834 ;;
13835 ppc64-*linux*|powerpc64-*linux*)
13836 LD="${LD-ld} -m elf32ppclinux"
13837 ;;
13838 s390x-*linux*)
13839 LD="${LD-ld} -m elf_s390"
13840 ;;
13841 sparc64-*linux*)
13842 LD="${LD-ld} -m elf32_sparc"
13843 ;;
13844 esac
13845 ;;
13846 *64-bit*)
13847 case $host in
13848 x86_64-*kfreebsd*-gnu)
13849 LD="${LD-ld} -m elf_x86_64_fbsd"
13850 ;;
13851 x86_64-*linux*)
13852 LD="${LD-ld} -m elf_x86_64"
13853 ;;
13854 ppc*-*linux*|powerpc*-*linux*)
13855 LD="${LD-ld} -m elf64ppc"
13856 ;;
13857 s390*-*linux*|s390*-*tpf*)
13858 LD="${LD-ld} -m elf64_s390"
13859 ;;
13860 sparc*-*linux*)
13861 LD="${LD-ld} -m elf64_sparc"
13862 ;;
13863 esac
13864 ;;
13865 esac
13866 fi
13867 rm -rf conftest*
13868 ;;
13869
13870 *-*-sco3.2v5*)
13871 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13872 SAVE_CFLAGS="$CFLAGS"
13873 CFLAGS="$CFLAGS -belf"
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13875 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13876 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13877 $as_echo_n "(cached) " >&6
13878 else
13879 ac_ext=c
13880 ac_cpp='$CPP $CPPFLAGS'
13881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13884
13885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13886 /* end confdefs.h. */
13887
13888 int
13889 main ()
13890 {
13891
13892 ;
13893 return 0;
13894 }
13895 _ACEOF
13896 if ac_fn_c_try_link "$LINENO"; then :
13897 lt_cv_cc_needs_belf=yes
13898 else
13899 lt_cv_cc_needs_belf=no
13900 fi
13901 rm -f core conftest.err conftest.$ac_objext \
13902 conftest$ac_exeext conftest.$ac_ext
13903 ac_ext=c
13904 ac_cpp='$CPP $CPPFLAGS'
13905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13908
13909 fi
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13911 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13912 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13913 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13914 CFLAGS="$SAVE_CFLAGS"
13915 fi
13916 ;;
13917 sparc*-*solaris*)
13918 # Find out which ABI we are using.
13919 echo 'int i;' > conftest.$ac_ext
13920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13921 (eval $ac_compile) 2>&5
13922 ac_status=$?
13923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13924 test $ac_status = 0; }; then
13925 case `/usr/bin/file conftest.o` in
13926 *64-bit*)
13927 case $lt_cv_prog_gnu_ld in
13928 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13929 *)
13930 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13931 LD="${LD-ld} -64"
13932 fi
13933 ;;
13934 esac
13935 ;;
13936 esac
13937 fi
13938 rm -rf conftest*
13939 ;;
13940 esac
13941
13942 need_locks="$enable_libtool_lock"
13943
13944
13945 case $host_os in
13946 rhapsody* | darwin*)
13947 if test -n "$ac_tool_prefix"; then
13948 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13949 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13951 $as_echo_n "checking for $ac_word... " >&6; }
13952 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13953 $as_echo_n "(cached) " >&6
13954 else
13955 if test -n "$DSYMUTIL"; then
13956 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13957 else
13958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13959 for as_dir in $PATH
13960 do
13961 IFS=$as_save_IFS
13962 test -z "$as_dir" && as_dir=.
13963 for ac_exec_ext in '' $ac_executable_extensions; do
13964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13965 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13967 break 2
13968 fi
13969 done
13970 done
13971 IFS=$as_save_IFS
13972
13973 fi
13974 fi
13975 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13976 if test -n "$DSYMUTIL"; then
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13978 $as_echo "$DSYMUTIL" >&6; }
13979 else
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13981 $as_echo "no" >&6; }
13982 fi
13983
13984
13985 fi
13986 if test -z "$ac_cv_prog_DSYMUTIL"; then
13987 ac_ct_DSYMUTIL=$DSYMUTIL
13988 # Extract the first word of "dsymutil", so it can be a program name with args.
13989 set dummy dsymutil; ac_word=$2
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13991 $as_echo_n "checking for $ac_word... " >&6; }
13992 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13993 $as_echo_n "(cached) " >&6
13994 else
13995 if test -n "$ac_ct_DSYMUTIL"; then
13996 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13997 else
13998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13999 for as_dir in $PATH
14000 do
14001 IFS=$as_save_IFS
14002 test -z "$as_dir" && as_dir=.
14003 for ac_exec_ext in '' $ac_executable_extensions; do
14004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14005 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14007 break 2
14008 fi
14009 done
14010 done
14011 IFS=$as_save_IFS
14012
14013 fi
14014 fi
14015 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14016 if test -n "$ac_ct_DSYMUTIL"; then
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14018 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14019 else
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14021 $as_echo "no" >&6; }
14022 fi
14023
14024 if test "x$ac_ct_DSYMUTIL" = x; then
14025 DSYMUTIL=":"
14026 else
14027 case $cross_compiling:$ac_tool_warned in
14028 yes:)
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14031 ac_tool_warned=yes ;;
14032 esac
14033 DSYMUTIL=$ac_ct_DSYMUTIL
14034 fi
14035 else
14036 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14037 fi
14038
14039 if test -n "$ac_tool_prefix"; then
14040 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14041 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14043 $as_echo_n "checking for $ac_word... " >&6; }
14044 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14045 $as_echo_n "(cached) " >&6
14046 else
14047 if test -n "$NMEDIT"; then
14048 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14049 else
14050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14051 for as_dir in $PATH
14052 do
14053 IFS=$as_save_IFS
14054 test -z "$as_dir" && as_dir=.
14055 for ac_exec_ext in '' $ac_executable_extensions; do
14056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14057 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14059 break 2
14060 fi
14061 done
14062 done
14063 IFS=$as_save_IFS
14064
14065 fi
14066 fi
14067 NMEDIT=$ac_cv_prog_NMEDIT
14068 if test -n "$NMEDIT"; then
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14070 $as_echo "$NMEDIT" >&6; }
14071 else
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14073 $as_echo "no" >&6; }
14074 fi
14075
14076
14077 fi
14078 if test -z "$ac_cv_prog_NMEDIT"; then
14079 ac_ct_NMEDIT=$NMEDIT
14080 # Extract the first word of "nmedit", so it can be a program name with args.
14081 set dummy nmedit; ac_word=$2
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14083 $as_echo_n "checking for $ac_word... " >&6; }
14084 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14085 $as_echo_n "(cached) " >&6
14086 else
14087 if test -n "$ac_ct_NMEDIT"; then
14088 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14089 else
14090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14091 for as_dir in $PATH
14092 do
14093 IFS=$as_save_IFS
14094 test -z "$as_dir" && as_dir=.
14095 for ac_exec_ext in '' $ac_executable_extensions; do
14096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14097 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14099 break 2
14100 fi
14101 done
14102 done
14103 IFS=$as_save_IFS
14104
14105 fi
14106 fi
14107 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14108 if test -n "$ac_ct_NMEDIT"; then
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14110 $as_echo "$ac_ct_NMEDIT" >&6; }
14111 else
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14113 $as_echo "no" >&6; }
14114 fi
14115
14116 if test "x$ac_ct_NMEDIT" = x; then
14117 NMEDIT=":"
14118 else
14119 case $cross_compiling:$ac_tool_warned in
14120 yes:)
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14123 ac_tool_warned=yes ;;
14124 esac
14125 NMEDIT=$ac_ct_NMEDIT
14126 fi
14127 else
14128 NMEDIT="$ac_cv_prog_NMEDIT"
14129 fi
14130
14131 if test -n "$ac_tool_prefix"; then
14132 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14133 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14135 $as_echo_n "checking for $ac_word... " >&6; }
14136 if test "${ac_cv_prog_LIPO+set}" = set; then :
14137 $as_echo_n "(cached) " >&6
14138 else
14139 if test -n "$LIPO"; then
14140 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14141 else
14142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14143 for as_dir in $PATH
14144 do
14145 IFS=$as_save_IFS
14146 test -z "$as_dir" && as_dir=.
14147 for ac_exec_ext in '' $ac_executable_extensions; do
14148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14149 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14151 break 2
14152 fi
14153 done
14154 done
14155 IFS=$as_save_IFS
14156
14157 fi
14158 fi
14159 LIPO=$ac_cv_prog_LIPO
14160 if test -n "$LIPO"; then
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14162 $as_echo "$LIPO" >&6; }
14163 else
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14165 $as_echo "no" >&6; }
14166 fi
14167
14168
14169 fi
14170 if test -z "$ac_cv_prog_LIPO"; then
14171 ac_ct_LIPO=$LIPO
14172 # Extract the first word of "lipo", so it can be a program name with args.
14173 set dummy lipo; ac_word=$2
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14175 $as_echo_n "checking for $ac_word... " >&6; }
14176 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14177 $as_echo_n "(cached) " >&6
14178 else
14179 if test -n "$ac_ct_LIPO"; then
14180 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14181 else
14182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14183 for as_dir in $PATH
14184 do
14185 IFS=$as_save_IFS
14186 test -z "$as_dir" && as_dir=.
14187 for ac_exec_ext in '' $ac_executable_extensions; do
14188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14189 ac_cv_prog_ac_ct_LIPO="lipo"
14190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14191 break 2
14192 fi
14193 done
14194 done
14195 IFS=$as_save_IFS
14196
14197 fi
14198 fi
14199 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14200 if test -n "$ac_ct_LIPO"; then
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14202 $as_echo "$ac_ct_LIPO" >&6; }
14203 else
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14205 $as_echo "no" >&6; }
14206 fi
14207
14208 if test "x$ac_ct_LIPO" = x; then
14209 LIPO=":"
14210 else
14211 case $cross_compiling:$ac_tool_warned in
14212 yes:)
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14215 ac_tool_warned=yes ;;
14216 esac
14217 LIPO=$ac_ct_LIPO
14218 fi
14219 else
14220 LIPO="$ac_cv_prog_LIPO"
14221 fi
14222
14223 if test -n "$ac_tool_prefix"; then
14224 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14225 set dummy ${ac_tool_prefix}otool; ac_word=$2
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14227 $as_echo_n "checking for $ac_word... " >&6; }
14228 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14229 $as_echo_n "(cached) " >&6
14230 else
14231 if test -n "$OTOOL"; then
14232 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14233 else
14234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14235 for as_dir in $PATH
14236 do
14237 IFS=$as_save_IFS
14238 test -z "$as_dir" && as_dir=.
14239 for ac_exec_ext in '' $ac_executable_extensions; do
14240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14241 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14243 break 2
14244 fi
14245 done
14246 done
14247 IFS=$as_save_IFS
14248
14249 fi
14250 fi
14251 OTOOL=$ac_cv_prog_OTOOL
14252 if test -n "$OTOOL"; then
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14254 $as_echo "$OTOOL" >&6; }
14255 else
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14257 $as_echo "no" >&6; }
14258 fi
14259
14260
14261 fi
14262 if test -z "$ac_cv_prog_OTOOL"; then
14263 ac_ct_OTOOL=$OTOOL
14264 # Extract the first word of "otool", so it can be a program name with args.
14265 set dummy otool; ac_word=$2
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14267 $as_echo_n "checking for $ac_word... " >&6; }
14268 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14269 $as_echo_n "(cached) " >&6
14270 else
14271 if test -n "$ac_ct_OTOOL"; then
14272 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14273 else
14274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14275 for as_dir in $PATH
14276 do
14277 IFS=$as_save_IFS
14278 test -z "$as_dir" && as_dir=.
14279 for ac_exec_ext in '' $ac_executable_extensions; do
14280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14281 ac_cv_prog_ac_ct_OTOOL="otool"
14282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14283 break 2
14284 fi
14285 done
14286 done
14287 IFS=$as_save_IFS
14288
14289 fi
14290 fi
14291 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14292 if test -n "$ac_ct_OTOOL"; then
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14294 $as_echo "$ac_ct_OTOOL" >&6; }
14295 else
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14297 $as_echo "no" >&6; }
14298 fi
14299
14300 if test "x$ac_ct_OTOOL" = x; then
14301 OTOOL=":"
14302 else
14303 case $cross_compiling:$ac_tool_warned in
14304 yes:)
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14307 ac_tool_warned=yes ;;
14308 esac
14309 OTOOL=$ac_ct_OTOOL
14310 fi
14311 else
14312 OTOOL="$ac_cv_prog_OTOOL"
14313 fi
14314
14315 if test -n "$ac_tool_prefix"; then
14316 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14317 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14319 $as_echo_n "checking for $ac_word... " >&6; }
14320 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14321 $as_echo_n "(cached) " >&6
14322 else
14323 if test -n "$OTOOL64"; then
14324 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14325 else
14326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14327 for as_dir in $PATH
14328 do
14329 IFS=$as_save_IFS
14330 test -z "$as_dir" && as_dir=.
14331 for ac_exec_ext in '' $ac_executable_extensions; do
14332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14333 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14335 break 2
14336 fi
14337 done
14338 done
14339 IFS=$as_save_IFS
14340
14341 fi
14342 fi
14343 OTOOL64=$ac_cv_prog_OTOOL64
14344 if test -n "$OTOOL64"; then
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14346 $as_echo "$OTOOL64" >&6; }
14347 else
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14349 $as_echo "no" >&6; }
14350 fi
14351
14352
14353 fi
14354 if test -z "$ac_cv_prog_OTOOL64"; then
14355 ac_ct_OTOOL64=$OTOOL64
14356 # Extract the first word of "otool64", so it can be a program name with args.
14357 set dummy otool64; ac_word=$2
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14359 $as_echo_n "checking for $ac_word... " >&6; }
14360 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14361 $as_echo_n "(cached) " >&6
14362 else
14363 if test -n "$ac_ct_OTOOL64"; then
14364 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14365 else
14366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14367 for as_dir in $PATH
14368 do
14369 IFS=$as_save_IFS
14370 test -z "$as_dir" && as_dir=.
14371 for ac_exec_ext in '' $ac_executable_extensions; do
14372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14373 ac_cv_prog_ac_ct_OTOOL64="otool64"
14374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14375 break 2
14376 fi
14377 done
14378 done
14379 IFS=$as_save_IFS
14380
14381 fi
14382 fi
14383 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14384 if test -n "$ac_ct_OTOOL64"; then
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14386 $as_echo "$ac_ct_OTOOL64" >&6; }
14387 else
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14389 $as_echo "no" >&6; }
14390 fi
14391
14392 if test "x$ac_ct_OTOOL64" = x; then
14393 OTOOL64=":"
14394 else
14395 case $cross_compiling:$ac_tool_warned in
14396 yes:)
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14399 ac_tool_warned=yes ;;
14400 esac
14401 OTOOL64=$ac_ct_OTOOL64
14402 fi
14403 else
14404 OTOOL64="$ac_cv_prog_OTOOL64"
14405 fi
14406
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14434 $as_echo_n "checking for -single_module linker flag... " >&6; }
14435 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14436 $as_echo_n "(cached) " >&6
14437 else
14438 lt_cv_apple_cc_single_mod=no
14439 if test -z "${LT_MULTI_MODULE}"; then
14440 # By default we will add the -single_module flag. You can override
14441 # by either setting the environment variable LT_MULTI_MODULE
14442 # non-empty at configure time, or by adding -multi_module to the
14443 # link flags.
14444 rm -rf libconftest.dylib*
14445 echo "int foo(void){return 1;}" > conftest.c
14446 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14447 -dynamiclib -Wl,-single_module conftest.c" >&5
14448 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14449 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14450 _lt_result=$?
14451 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14452 lt_cv_apple_cc_single_mod=yes
14453 else
14454 cat conftest.err >&5
14455 fi
14456 rm -rf libconftest.dylib*
14457 rm -f conftest.*
14458 fi
14459 fi
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14461 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14463 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14464 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14465 $as_echo_n "(cached) " >&6
14466 else
14467 lt_cv_ld_exported_symbols_list=no
14468 save_LDFLAGS=$LDFLAGS
14469 echo "_main" > conftest.sym
14470 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14472 /* end confdefs.h. */
14473
14474 int
14475 main ()
14476 {
14477
14478 ;
14479 return 0;
14480 }
14481 _ACEOF
14482 if ac_fn_c_try_link "$LINENO"; then :
14483 lt_cv_ld_exported_symbols_list=yes
14484 else
14485 lt_cv_ld_exported_symbols_list=no
14486 fi
14487 rm -f core conftest.err conftest.$ac_objext \
14488 conftest$ac_exeext conftest.$ac_ext
14489 LDFLAGS="$save_LDFLAGS"
14490
14491 fi
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14493 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14495 $as_echo_n "checking for -force_load linker flag... " >&6; }
14496 if test "${lt_cv_ld_force_load+set}" = set; then :
14497 $as_echo_n "(cached) " >&6
14498 else
14499 lt_cv_ld_force_load=no
14500 cat > conftest.c << _LT_EOF
14501 int forced_loaded() { return 2;}
14502 _LT_EOF
14503 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14504 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14505 echo "$AR cru libconftest.a conftest.o" >&5
14506 $AR cru libconftest.a conftest.o 2>&5
14507 cat > conftest.c << _LT_EOF
14508 int main() { return 0;}
14509 _LT_EOF
14510 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14511 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14512 _lt_result=$?
14513 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14514 lt_cv_ld_force_load=yes
14515 else
14516 cat conftest.err >&5
14517 fi
14518 rm -f conftest.err libconftest.a conftest conftest.c
14519 rm -rf conftest.dSYM
14520
14521 fi
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14523 $as_echo "$lt_cv_ld_force_load" >&6; }
14524 case $host_os in
14525 rhapsody* | darwin1.[012])
14526 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14527 darwin1.*)
14528 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14529 darwin*) # darwin 5.x on
14530 # if running on 10.5 or later, the deployment target defaults
14531 # to the OS version, if on x86, and 10.4, the deployment
14532 # target defaults to 10.4. Don't you love it?
14533 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14534 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14535 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14536 10.[012]*)
14537 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14538 10.*)
14539 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14540 esac
14541 ;;
14542 esac
14543 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14544 _lt_dar_single_mod='$single_module'
14545 fi
14546 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14547 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14548 else
14549 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14550 fi
14551 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14552 _lt_dsymutil='~$DSYMUTIL $lib || :'
14553 else
14554 _lt_dsymutil=
14555 fi
14556 ;;
14557 esac
14558
14559 for ac_header in dlfcn.h
14560 do :
14561 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14562 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14563 cat >>confdefs.h <<_ACEOF
14564 #define HAVE_DLFCN_H 1
14565 _ACEOF
14566
14567 fi
14568 done
14569
14570
14571
14572
14573
14574 # Set options
14575
14576
14577
14578 enable_dlopen=no
14579
14580
14581 enable_win32_dll=no
14582
14583
14584 # Check whether --enable-shared was given.
14585 if test "${enable_shared+set}" = set; then :
14586 enableval=$enable_shared; p=${PACKAGE-default}
14587 case $enableval in
14588 yes) enable_shared=yes ;;
14589 no) enable_shared=no ;;
14590 *)
14591 enable_shared=no
14592 # Look at the argument we got. We use all the common list separators.
14593 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14594 for pkg in $enableval; do
14595 IFS="$lt_save_ifs"
14596 if test "X$pkg" = "X$p"; then
14597 enable_shared=yes
14598 fi
14599 done
14600 IFS="$lt_save_ifs"
14601 ;;
14602 esac
14603 else
14604 enable_shared=yes
14605 fi
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615 # Check whether --enable-static was given.
14616 if test "${enable_static+set}" = set; then :
14617 enableval=$enable_static; p=${PACKAGE-default}
14618 case $enableval in
14619 yes) enable_static=yes ;;
14620 no) enable_static=no ;;
14621 *)
14622 enable_static=no
14623 # Look at the argument we got. We use all the common list separators.
14624 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14625 for pkg in $enableval; do
14626 IFS="$lt_save_ifs"
14627 if test "X$pkg" = "X$p"; then
14628 enable_static=yes
14629 fi
14630 done
14631 IFS="$lt_save_ifs"
14632 ;;
14633 esac
14634 else
14635 enable_static=yes
14636 fi
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647 # Check whether --with-pic was given.
14648 if test "${with_pic+set}" = set; then :
14649 withval=$with_pic; pic_mode="$withval"
14650 else
14651 pic_mode=default
14652 fi
14653
14654
14655 test -z "$pic_mode" && pic_mode=default
14656
14657
14658
14659
14660
14661
14662
14663 # Check whether --enable-fast-install was given.
14664 if test "${enable_fast_install+set}" = set; then :
14665 enableval=$enable_fast_install; p=${PACKAGE-default}
14666 case $enableval in
14667 yes) enable_fast_install=yes ;;
14668 no) enable_fast_install=no ;;
14669 *)
14670 enable_fast_install=no
14671 # Look at the argument we got. We use all the common list separators.
14672 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14673 for pkg in $enableval; do
14674 IFS="$lt_save_ifs"
14675 if test "X$pkg" = "X$p"; then
14676 enable_fast_install=yes
14677 fi
14678 done
14679 IFS="$lt_save_ifs"
14680 ;;
14681 esac
14682 else
14683 enable_fast_install=yes
14684 fi
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696 # This can be used to rebuild libtool when needed
14697 LIBTOOL_DEPS="$ltmain"
14698
14699 # Always use our own libtool.
14700 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14701
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 test -z "$LN_S" && LN_S="ln -s"
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742 if test -n "${ZSH_VERSION+set}" ; then
14743 setopt NO_GLOB_SUBST
14744 fi
14745
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14747 $as_echo_n "checking for objdir... " >&6; }
14748 if test "${lt_cv_objdir+set}" = set; then :
14749 $as_echo_n "(cached) " >&6
14750 else
14751 rm -f .libs 2>/dev/null
14752 mkdir .libs 2>/dev/null
14753 if test -d .libs; then
14754 lt_cv_objdir=.libs
14755 else
14756 # MS-DOS does not allow filenames that begin with a dot.
14757 lt_cv_objdir=_libs
14758 fi
14759 rmdir .libs 2>/dev/null
14760 fi
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14762 $as_echo "$lt_cv_objdir" >&6; }
14763 objdir=$lt_cv_objdir
14764
14765
14766
14767
14768
14769 cat >>confdefs.h <<_ACEOF
14770 #define LT_OBJDIR "$lt_cv_objdir/"
14771 _ACEOF
14772
14773
14774
14775
14776 case $host_os in
14777 aix3*)
14778 # AIX sometimes has problems with the GCC collect2 program. For some
14779 # reason, if we set the COLLECT_NAMES environment variable, the problems
14780 # vanish in a puff of smoke.
14781 if test "X${COLLECT_NAMES+set}" != Xset; then
14782 COLLECT_NAMES=
14783 export COLLECT_NAMES
14784 fi
14785 ;;
14786 esac
14787
14788 # Global variables:
14789 ofile=libtool
14790 can_build_shared=yes
14791
14792 # All known linkers require a `.a' archive for static linking (except MSVC,
14793 # which needs '.lib').
14794 libext=a
14795
14796 with_gnu_ld="$lt_cv_prog_gnu_ld"
14797
14798 old_CC="$CC"
14799 old_CFLAGS="$CFLAGS"
14800
14801 # Set sane defaults for various variables
14802 test -z "$CC" && CC=cc
14803 test -z "$LTCC" && LTCC=$CC
14804 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14805 test -z "$LD" && LD=ld
14806 test -z "$ac_objext" && ac_objext=o
14807
14808 for cc_temp in $compiler""; do
14809 case $cc_temp in
14810 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14811 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14812 \-*) ;;
14813 *) break;;
14814 esac
14815 done
14816 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14817
14818
14819 # Only perform the check for file, if the check method requires it
14820 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14821 case $deplibs_check_method in
14822 file_magic*)
14823 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14825 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14826 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14827 $as_echo_n "(cached) " >&6
14828 else
14829 case $MAGIC_CMD in
14830 [\\/*] | ?:[\\/]*)
14831 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14832 ;;
14833 *)
14834 lt_save_MAGIC_CMD="$MAGIC_CMD"
14835 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14836 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14837 for ac_dir in $ac_dummy; do
14838 IFS="$lt_save_ifs"
14839 test -z "$ac_dir" && ac_dir=.
14840 if test -f $ac_dir/${ac_tool_prefix}file; then
14841 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14842 if test -n "$file_magic_test_file"; then
14843 case $deplibs_check_method in
14844 "file_magic "*)
14845 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14846 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14847 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14848 $EGREP "$file_magic_regex" > /dev/null; then
14849 :
14850 else
14851 cat <<_LT_EOF 1>&2
14852
14853 *** Warning: the command libtool uses to detect shared libraries,
14854 *** $file_magic_cmd, produces output that libtool cannot recognize.
14855 *** The result is that libtool may fail to recognize shared libraries
14856 *** as such. This will affect the creation of libtool libraries that
14857 *** depend on shared libraries, but programs linked with such libtool
14858 *** libraries will work regardless of this problem. Nevertheless, you
14859 *** may want to report the problem to your system manager and/or to
14860 *** bug-libtool@gnu.org
14861
14862 _LT_EOF
14863 fi ;;
14864 esac
14865 fi
14866 break
14867 fi
14868 done
14869 IFS="$lt_save_ifs"
14870 MAGIC_CMD="$lt_save_MAGIC_CMD"
14871 ;;
14872 esac
14873 fi
14874
14875 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14876 if test -n "$MAGIC_CMD"; then
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14878 $as_echo "$MAGIC_CMD" >&6; }
14879 else
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14881 $as_echo "no" >&6; }
14882 fi
14883
14884
14885
14886
14887
14888 if test -z "$lt_cv_path_MAGIC_CMD"; then
14889 if test -n "$ac_tool_prefix"; then
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14891 $as_echo_n "checking for file... " >&6; }
14892 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14893 $as_echo_n "(cached) " >&6
14894 else
14895 case $MAGIC_CMD in
14896 [\\/*] | ?:[\\/]*)
14897 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14898 ;;
14899 *)
14900 lt_save_MAGIC_CMD="$MAGIC_CMD"
14901 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14902 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14903 for ac_dir in $ac_dummy; do
14904 IFS="$lt_save_ifs"
14905 test -z "$ac_dir" && ac_dir=.
14906 if test -f $ac_dir/file; then
14907 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14908 if test -n "$file_magic_test_file"; then
14909 case $deplibs_check_method in
14910 "file_magic "*)
14911 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14912 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14913 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14914 $EGREP "$file_magic_regex" > /dev/null; then
14915 :
14916 else
14917 cat <<_LT_EOF 1>&2
14918
14919 *** Warning: the command libtool uses to detect shared libraries,
14920 *** $file_magic_cmd, produces output that libtool cannot recognize.
14921 *** The result is that libtool may fail to recognize shared libraries
14922 *** as such. This will affect the creation of libtool libraries that
14923 *** depend on shared libraries, but programs linked with such libtool
14924 *** libraries will work regardless of this problem. Nevertheless, you
14925 *** may want to report the problem to your system manager and/or to
14926 *** bug-libtool@gnu.org
14927
14928 _LT_EOF
14929 fi ;;
14930 esac
14931 fi
14932 break
14933 fi
14934 done
14935 IFS="$lt_save_ifs"
14936 MAGIC_CMD="$lt_save_MAGIC_CMD"
14937 ;;
14938 esac
14939 fi
14940
14941 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14942 if test -n "$MAGIC_CMD"; then
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14944 $as_echo "$MAGIC_CMD" >&6; }
14945 else
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14947 $as_echo "no" >&6; }
14948 fi
14949
14950
14951 else
14952 MAGIC_CMD=:
14953 fi
14954 fi
14955
14956 fi
14957 ;;
14958 esac
14959
14960 # Use C for the default configuration in the libtool script
14961
14962 lt_save_CC="$CC"
14963 ac_ext=c
14964 ac_cpp='$CPP $CPPFLAGS'
14965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14968
14969
14970 # Source file extension for C test sources.
14971 ac_ext=c
14972
14973 # Object file extension for compiled C test sources.
14974 objext=o
14975 objext=$objext
14976
14977 # Code to be used in simple compile tests
14978 lt_simple_compile_test_code="int some_variable = 0;"
14979
14980 # Code to be used in simple link tests
14981 lt_simple_link_test_code='int main(){return(0);}'
14982
14983
14984
14985
14986
14987
14988
14989 # If no C compiler was specified, use CC.
14990 LTCC=${LTCC-"$CC"}
14991
14992 # If no C compiler flags were specified, use CFLAGS.
14993 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14994
14995 # Allow CC to be a program name with arguments.
14996 compiler=$CC
14997
14998 # Save the default compiler, since it gets overwritten when the other
14999 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15000 compiler_DEFAULT=$CC
15001
15002 # save warnings/boilerplate of simple test code
15003 ac_outfile=conftest.$ac_objext
15004 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15005 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15006 _lt_compiler_boilerplate=`cat conftest.err`
15007 $RM conftest*
15008
15009 ac_outfile=conftest.$ac_objext
15010 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15011 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15012 _lt_linker_boilerplate=`cat conftest.err`
15013 $RM -r conftest*
15014
15015
15016 ## CAVEAT EMPTOR:
15017 ## There is no encapsulation within the following macros, do not change
15018 ## the running order or otherwise move them around unless you know exactly
15019 ## what you are doing...
15020 if test -n "$compiler"; then
15021
15022 lt_prog_compiler_no_builtin_flag=
15023
15024 if test "$GCC" = yes; then
15025 case $cc_basename in
15026 nvcc*)
15027 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15028 *)
15029 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15030 esac
15031
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15033 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15034 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15035 $as_echo_n "(cached) " >&6
15036 else
15037 lt_cv_prog_compiler_rtti_exceptions=no
15038 ac_outfile=conftest.$ac_objext
15039 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15040 lt_compiler_flag="-fno-rtti -fno-exceptions"
15041 # Insert the option either (1) after the last *FLAGS variable, or
15042 # (2) before a word containing "conftest.", or (3) at the end.
15043 # Note that $ac_compile itself does not contain backslashes and begins
15044 # with a dollar sign (not a hyphen), so the echo should work correctly.
15045 # The option is referenced via a variable to avoid confusing sed.
15046 lt_compile=`echo "$ac_compile" | $SED \
15047 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15048 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15049 -e 's:$: $lt_compiler_flag:'`
15050 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15051 (eval "$lt_compile" 2>conftest.err)
15052 ac_status=$?
15053 cat conftest.err >&5
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 if (exit $ac_status) && test -s "$ac_outfile"; then
15056 # The compiler can only warn and ignore the option if not recognized
15057 # So say no if there are warnings other than the usual output.
15058 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15059 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15060 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15061 lt_cv_prog_compiler_rtti_exceptions=yes
15062 fi
15063 fi
15064 $RM conftest*
15065
15066 fi
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15068 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15069
15070 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15071 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15072 else
15073 :
15074 fi
15075
15076 fi
15077
15078
15079
15080
15081
15082
15083 lt_prog_compiler_wl=
15084 lt_prog_compiler_pic=
15085 lt_prog_compiler_static=
15086
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15088 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15089
15090 if test "$GCC" = yes; then
15091 lt_prog_compiler_wl='-Wl,'
15092 lt_prog_compiler_static='-static'
15093
15094 case $host_os in
15095 aix*)
15096 # All AIX code is PIC.
15097 if test "$host_cpu" = ia64; then
15098 # AIX 5 now supports IA64 processor
15099 lt_prog_compiler_static='-Bstatic'
15100 fi
15101 ;;
15102
15103 amigaos*)
15104 case $host_cpu in
15105 powerpc)
15106 # see comment about AmigaOS4 .so support
15107 lt_prog_compiler_pic='-fPIC'
15108 ;;
15109 m68k)
15110 # FIXME: we need at least 68020 code to build shared libraries, but
15111 # adding the `-m68020' flag to GCC prevents building anything better,
15112 # like `-m68040'.
15113 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15114 ;;
15115 esac
15116 ;;
15117
15118 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15119 # PIC is the default for these OSes.
15120 ;;
15121
15122 mingw* | cygwin* | pw32* | os2* | cegcc*)
15123 # This hack is so that the source file can tell whether it is being
15124 # built for inclusion in a dll (and should export symbols for example).
15125 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15126 # (--disable-auto-import) libraries
15127 lt_prog_compiler_pic='-DDLL_EXPORT'
15128 ;;
15129
15130 darwin* | rhapsody*)
15131 # PIC is the default on this platform
15132 # Common symbols not allowed in MH_DYLIB files
15133 lt_prog_compiler_pic='-fno-common'
15134 ;;
15135
15136 haiku*)
15137 # PIC is the default for Haiku.
15138 # The "-static" flag exists, but is broken.
15139 lt_prog_compiler_static=
15140 ;;
15141
15142 hpux*)
15143 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15144 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15145 # sets the default TLS model and affects inlining.
15146 case $host_cpu in
15147 hppa*64*)
15148 # +Z the default
15149 ;;
15150 *)
15151 lt_prog_compiler_pic='-fPIC'
15152 ;;
15153 esac
15154 ;;
15155
15156 interix[3-9]*)
15157 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15158 # Instead, we relocate shared libraries at runtime.
15159 ;;
15160
15161 msdosdjgpp*)
15162 # Just because we use GCC doesn't mean we suddenly get shared libraries
15163 # on systems that don't support them.
15164 lt_prog_compiler_can_build_shared=no
15165 enable_shared=no
15166 ;;
15167
15168 *nto* | *qnx*)
15169 # QNX uses GNU C++, but need to define -shared option too, otherwise
15170 # it will coredump.
15171 lt_prog_compiler_pic='-fPIC -shared'
15172 ;;
15173
15174 sysv4*MP*)
15175 if test -d /usr/nec; then
15176 lt_prog_compiler_pic=-Kconform_pic
15177 fi
15178 ;;
15179
15180 *)
15181 lt_prog_compiler_pic='-fPIC'
15182 ;;
15183 esac
15184
15185 case $cc_basename in
15186 nvcc*) # Cuda Compiler Driver 2.2
15187 lt_prog_compiler_wl='-Xlinker '
15188 lt_prog_compiler_pic='-Xcompiler -fPIC'
15189 ;;
15190 esac
15191 else
15192 # PORTME Check for flag to pass linker flags through the system compiler.
15193 case $host_os in
15194 aix*)
15195 lt_prog_compiler_wl='-Wl,'
15196 if test "$host_cpu" = ia64; then
15197 # AIX 5 now supports IA64 processor
15198 lt_prog_compiler_static='-Bstatic'
15199 else
15200 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15201 fi
15202 ;;
15203
15204 mingw* | cygwin* | pw32* | os2* | cegcc*)
15205 # This hack is so that the source file can tell whether it is being
15206 # built for inclusion in a dll (and should export symbols for example).
15207 lt_prog_compiler_pic='-DDLL_EXPORT'
15208 ;;
15209
15210 hpux9* | hpux10* | hpux11*)
15211 lt_prog_compiler_wl='-Wl,'
15212 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15213 # not for PA HP-UX.
15214 case $host_cpu in
15215 hppa*64*|ia64*)
15216 # +Z the default
15217 ;;
15218 *)
15219 lt_prog_compiler_pic='+Z'
15220 ;;
15221 esac
15222 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15223 lt_prog_compiler_static='${wl}-a ${wl}archive'
15224 ;;
15225
15226 irix5* | irix6* | nonstopux*)
15227 lt_prog_compiler_wl='-Wl,'
15228 # PIC (with -KPIC) is the default.
15229 lt_prog_compiler_static='-non_shared'
15230 ;;
15231
15232 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15233 case $cc_basename in
15234 # old Intel for x86_64 which still supported -KPIC.
15235 ecc*)
15236 lt_prog_compiler_wl='-Wl,'
15237 lt_prog_compiler_pic='-KPIC'
15238 lt_prog_compiler_static='-static'
15239 ;;
15240 # icc used to be incompatible with GCC.
15241 # ICC 10 doesn't accept -KPIC any more.
15242 icc* | ifort*)
15243 lt_prog_compiler_wl='-Wl,'
15244 lt_prog_compiler_pic='-fPIC'
15245 lt_prog_compiler_static='-static'
15246 ;;
15247 # Lahey Fortran 8.1.
15248 lf95*)
15249 lt_prog_compiler_wl='-Wl,'
15250 lt_prog_compiler_pic='--shared'
15251 lt_prog_compiler_static='--static'
15252 ;;
15253 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15254 # Portland Group compilers (*not* the Pentium gcc compiler,
15255 # which looks to be a dead project)
15256 lt_prog_compiler_wl='-Wl,'
15257 lt_prog_compiler_pic='-fpic'
15258 lt_prog_compiler_static='-Bstatic'
15259 ;;
15260 ccc*)
15261 lt_prog_compiler_wl='-Wl,'
15262 # All Alpha code is PIC.
15263 lt_prog_compiler_static='-non_shared'
15264 ;;
15265 xl* | bgxl* | bgf* | mpixl*)
15266 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15267 lt_prog_compiler_wl='-Wl,'
15268 lt_prog_compiler_pic='-qpic'
15269 lt_prog_compiler_static='-qstaticlink'
15270 ;;
15271 *)
15272 case `$CC -V 2>&1 | sed 5q` in
15273 *Sun\ F* | *Sun*Fortran*)
15274 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15275 lt_prog_compiler_pic='-KPIC'
15276 lt_prog_compiler_static='-Bstatic'
15277 lt_prog_compiler_wl=''
15278 ;;
15279 *Sun\ C*)
15280 # Sun C 5.9
15281 lt_prog_compiler_pic='-KPIC'
15282 lt_prog_compiler_static='-Bstatic'
15283 lt_prog_compiler_wl='-Wl,'
15284 ;;
15285 esac
15286 ;;
15287 esac
15288 ;;
15289
15290 newsos6)
15291 lt_prog_compiler_pic='-KPIC'
15292 lt_prog_compiler_static='-Bstatic'
15293 ;;
15294
15295 *nto* | *qnx*)
15296 # QNX uses GNU C++, but need to define -shared option too, otherwise
15297 # it will coredump.
15298 lt_prog_compiler_pic='-fPIC -shared'
15299 ;;
15300
15301 osf3* | osf4* | osf5*)
15302 lt_prog_compiler_wl='-Wl,'
15303 # All OSF/1 code is PIC.
15304 lt_prog_compiler_static='-non_shared'
15305 ;;
15306
15307 rdos*)
15308 lt_prog_compiler_static='-non_shared'
15309 ;;
15310
15311 solaris*)
15312 lt_prog_compiler_pic='-KPIC'
15313 lt_prog_compiler_static='-Bstatic'
15314 case $cc_basename in
15315 f77* | f90* | f95*)
15316 lt_prog_compiler_wl='-Qoption ld ';;
15317 *)
15318 lt_prog_compiler_wl='-Wl,';;
15319 esac
15320 ;;
15321
15322 sunos4*)
15323 lt_prog_compiler_wl='-Qoption ld '
15324 lt_prog_compiler_pic='-PIC'
15325 lt_prog_compiler_static='-Bstatic'
15326 ;;
15327
15328 sysv4 | sysv4.2uw2* | sysv4.3*)
15329 lt_prog_compiler_wl='-Wl,'
15330 lt_prog_compiler_pic='-KPIC'
15331 lt_prog_compiler_static='-Bstatic'
15332 ;;
15333
15334 sysv4*MP*)
15335 if test -d /usr/nec ;then
15336 lt_prog_compiler_pic='-Kconform_pic'
15337 lt_prog_compiler_static='-Bstatic'
15338 fi
15339 ;;
15340
15341 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15342 lt_prog_compiler_wl='-Wl,'
15343 lt_prog_compiler_pic='-KPIC'
15344 lt_prog_compiler_static='-Bstatic'
15345 ;;
15346
15347 unicos*)
15348 lt_prog_compiler_wl='-Wl,'
15349 lt_prog_compiler_can_build_shared=no
15350 ;;
15351
15352 uts4*)
15353 lt_prog_compiler_pic='-pic'
15354 lt_prog_compiler_static='-Bstatic'
15355 ;;
15356
15357 *)
15358 lt_prog_compiler_can_build_shared=no
15359 ;;
15360 esac
15361 fi
15362
15363 case $host_os in
15364 # For platforms which do not support PIC, -DPIC is meaningless:
15365 *djgpp*)
15366 lt_prog_compiler_pic=
15367 ;;
15368 *)
15369 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15370 ;;
15371 esac
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15373 $as_echo "$lt_prog_compiler_pic" >&6; }
15374
15375
15376
15377
15378
15379
15380 #
15381 # Check to make sure the PIC flag actually works.
15382 #
15383 if test -n "$lt_prog_compiler_pic"; then
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15385 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15386 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15387 $as_echo_n "(cached) " >&6
15388 else
15389 lt_cv_prog_compiler_pic_works=no
15390 ac_outfile=conftest.$ac_objext
15391 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15392 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15393 # Insert the option either (1) after the last *FLAGS variable, or
15394 # (2) before a word containing "conftest.", or (3) at the end.
15395 # Note that $ac_compile itself does not contain backslashes and begins
15396 # with a dollar sign (not a hyphen), so the echo should work correctly.
15397 # The option is referenced via a variable to avoid confusing sed.
15398 lt_compile=`echo "$ac_compile" | $SED \
15399 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15401 -e 's:$: $lt_compiler_flag:'`
15402 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15403 (eval "$lt_compile" 2>conftest.err)
15404 ac_status=$?
15405 cat conftest.err >&5
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 if (exit $ac_status) && test -s "$ac_outfile"; then
15408 # The compiler can only warn and ignore the option if not recognized
15409 # So say no if there are warnings other than the usual output.
15410 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15411 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15412 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15413 lt_cv_prog_compiler_pic_works=yes
15414 fi
15415 fi
15416 $RM conftest*
15417
15418 fi
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15420 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15421
15422 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15423 case $lt_prog_compiler_pic in
15424 "" | " "*) ;;
15425 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15426 esac
15427 else
15428 lt_prog_compiler_pic=
15429 lt_prog_compiler_can_build_shared=no
15430 fi
15431
15432 fi
15433
15434
15435
15436
15437
15438
15439 #
15440 # Check to make sure the static flag actually works.
15441 #
15442 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15444 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15445 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15446 $as_echo_n "(cached) " >&6
15447 else
15448 lt_cv_prog_compiler_static_works=no
15449 save_LDFLAGS="$LDFLAGS"
15450 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15451 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15452 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15453 # The linker can only warn and ignore the option if not recognized
15454 # So say no if there are warnings
15455 if test -s conftest.err; then
15456 # Append any errors to the config.log.
15457 cat conftest.err 1>&5
15458 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15459 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15460 if diff conftest.exp conftest.er2 >/dev/null; then
15461 lt_cv_prog_compiler_static_works=yes
15462 fi
15463 else
15464 lt_cv_prog_compiler_static_works=yes
15465 fi
15466 fi
15467 $RM -r conftest*
15468 LDFLAGS="$save_LDFLAGS"
15469
15470 fi
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15472 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15473
15474 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15475 :
15476 else
15477 lt_prog_compiler_static=
15478 fi
15479
15480
15481
15482
15483
15484
15485
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15487 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15488 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15489 $as_echo_n "(cached) " >&6
15490 else
15491 lt_cv_prog_compiler_c_o=no
15492 $RM -r conftest 2>/dev/null
15493 mkdir conftest
15494 cd conftest
15495 mkdir out
15496 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15497
15498 lt_compiler_flag="-o out/conftest2.$ac_objext"
15499 # Insert the option either (1) after the last *FLAGS variable, or
15500 # (2) before a word containing "conftest.", or (3) at the end.
15501 # Note that $ac_compile itself does not contain backslashes and begins
15502 # with a dollar sign (not a hyphen), so the echo should work correctly.
15503 lt_compile=`echo "$ac_compile" | $SED \
15504 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15505 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15506 -e 's:$: $lt_compiler_flag:'`
15507 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15508 (eval "$lt_compile" 2>out/conftest.err)
15509 ac_status=$?
15510 cat out/conftest.err >&5
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15513 then
15514 # The compiler can only warn and ignore the option if not recognized
15515 # So say no if there are warnings
15516 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15517 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15518 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15519 lt_cv_prog_compiler_c_o=yes
15520 fi
15521 fi
15522 chmod u+w . 2>&5
15523 $RM conftest*
15524 # SGI C++ compiler will create directory out/ii_files/ for
15525 # template instantiation
15526 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15527 $RM out/* && rmdir out
15528 cd ..
15529 $RM -r conftest
15530 $RM conftest*
15531
15532 fi
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15534 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15535
15536
15537
15538
15539
15540
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15542 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15543 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15544 $as_echo_n "(cached) " >&6
15545 else
15546 lt_cv_prog_compiler_c_o=no
15547 $RM -r conftest 2>/dev/null
15548 mkdir conftest
15549 cd conftest
15550 mkdir out
15551 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15552
15553 lt_compiler_flag="-o out/conftest2.$ac_objext"
15554 # Insert the option either (1) after the last *FLAGS variable, or
15555 # (2) before a word containing "conftest.", or (3) at the end.
15556 # Note that $ac_compile itself does not contain backslashes and begins
15557 # with a dollar sign (not a hyphen), so the echo should work correctly.
15558 lt_compile=`echo "$ac_compile" | $SED \
15559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15561 -e 's:$: $lt_compiler_flag:'`
15562 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15563 (eval "$lt_compile" 2>out/conftest.err)
15564 ac_status=$?
15565 cat out/conftest.err >&5
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15568 then
15569 # The compiler can only warn and ignore the option if not recognized
15570 # So say no if there are warnings
15571 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15572 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15573 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15574 lt_cv_prog_compiler_c_o=yes
15575 fi
15576 fi
15577 chmod u+w . 2>&5
15578 $RM conftest*
15579 # SGI C++ compiler will create directory out/ii_files/ for
15580 # template instantiation
15581 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15582 $RM out/* && rmdir out
15583 cd ..
15584 $RM -r conftest
15585 $RM conftest*
15586
15587 fi
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15589 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15590
15591
15592
15593
15594 hard_links="nottested"
15595 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15596 # do not overwrite the value of need_locks provided by the user
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15598 $as_echo_n "checking if we can lock with hard links... " >&6; }
15599 hard_links=yes
15600 $RM conftest*
15601 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15602 touch conftest.a
15603 ln conftest.a conftest.b 2>&5 || hard_links=no
15604 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15606 $as_echo "$hard_links" >&6; }
15607 if test "$hard_links" = no; then
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15609 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15610 need_locks=warn
15611 fi
15612 else
15613 need_locks=no
15614 fi
15615
15616
15617
15618
15619
15620
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15622 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15623
15624 runpath_var=
15625 allow_undefined_flag=
15626 always_export_symbols=no
15627 archive_cmds=
15628 archive_expsym_cmds=
15629 compiler_needs_object=no
15630 enable_shared_with_static_runtimes=no
15631 export_dynamic_flag_spec=
15632 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15633 hardcode_automatic=no
15634 hardcode_direct=no
15635 hardcode_direct_absolute=no
15636 hardcode_libdir_flag_spec=
15637 hardcode_libdir_flag_spec_ld=
15638 hardcode_libdir_separator=
15639 hardcode_minus_L=no
15640 hardcode_shlibpath_var=unsupported
15641 inherit_rpath=no
15642 link_all_deplibs=unknown
15643 module_cmds=
15644 module_expsym_cmds=
15645 old_archive_from_new_cmds=
15646 old_archive_from_expsyms_cmds=
15647 thread_safe_flag_spec=
15648 whole_archive_flag_spec=
15649 # include_expsyms should be a list of space-separated symbols to be *always*
15650 # included in the symbol list
15651 include_expsyms=
15652 # exclude_expsyms can be an extended regexp of symbols to exclude
15653 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15654 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15655 # as well as any symbol that contains `d'.
15656 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15657 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15658 # platforms (ab)use it in PIC code, but their linkers get confused if
15659 # the symbol is explicitly referenced. Since portable code cannot
15660 # rely on this symbol name, it's probably fine to never include it in
15661 # preloaded symbol tables.
15662 # Exclude shared library initialization/finalization symbols.
15663 extract_expsyms_cmds=
15664
15665 case $host_os in
15666 cygwin* | mingw* | pw32* | cegcc*)
15667 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15668 # When not using gcc, we currently assume that we are using
15669 # Microsoft Visual C++.
15670 if test "$GCC" != yes; then
15671 with_gnu_ld=no
15672 fi
15673 ;;
15674 interix*)
15675 # we just hope/assume this is gcc and not c89 (= MSVC++)
15676 with_gnu_ld=yes
15677 ;;
15678 openbsd*)
15679 with_gnu_ld=no
15680 ;;
15681 esac
15682
15683 ld_shlibs=yes
15684
15685 # On some targets, GNU ld is compatible enough with the native linker
15686 # that we're better off using the native interface for both.
15687 lt_use_gnu_ld_interface=no
15688 if test "$with_gnu_ld" = yes; then
15689 case $host_os in
15690 aix*)
15691 # The AIX port of GNU ld has always aspired to compatibility
15692 # with the native linker. However, as the warning in the GNU ld
15693 # block says, versions before 2.19.5* couldn't really create working
15694 # shared libraries, regardless of the interface used.
15695 case `$LD -v 2>&1` in
15696 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15697 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15698 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15699 *)
15700 lt_use_gnu_ld_interface=yes
15701 ;;
15702 esac
15703 ;;
15704 *)
15705 lt_use_gnu_ld_interface=yes
15706 ;;
15707 esac
15708 fi
15709
15710 if test "$lt_use_gnu_ld_interface" = yes; then
15711 # If archive_cmds runs LD, not CC, wlarc should be empty
15712 wlarc='${wl}'
15713
15714 # Set some defaults for GNU ld with shared library support. These
15715 # are reset later if shared libraries are not supported. Putting them
15716 # here allows them to be overridden if necessary.
15717 runpath_var=LD_RUN_PATH
15718 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15719 export_dynamic_flag_spec='${wl}--export-dynamic'
15720 # ancient GNU ld didn't support --whole-archive et. al.
15721 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15722 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15723 else
15724 whole_archive_flag_spec=
15725 fi
15726 supports_anon_versioning=no
15727 case `$LD -v 2>&1` in
15728 *GNU\ gold*) supports_anon_versioning=yes ;;
15729 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15730 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15731 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15732 *\ 2.11.*) ;; # other 2.11 versions
15733 *) supports_anon_versioning=yes ;;
15734 esac
15735
15736 # See if GNU ld supports shared libraries.
15737 case $host_os in
15738 aix[3-9]*)
15739 # On AIX/PPC, the GNU linker is very broken
15740 if test "$host_cpu" != ia64; then
15741 ld_shlibs=no
15742 cat <<_LT_EOF 1>&2
15743
15744 *** Warning: the GNU linker, at least up to release 2.19, is reported
15745 *** to be unable to reliably create shared libraries on AIX.
15746 *** Therefore, libtool is disabling shared libraries support. If you
15747 *** really care for shared libraries, you may want to install binutils
15748 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15749 *** You will then need to restart the configuration process.
15750
15751 _LT_EOF
15752 fi
15753 ;;
15754
15755 amigaos*)
15756 case $host_cpu in
15757 powerpc)
15758 # see comment about AmigaOS4 .so support
15759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15760 archive_expsym_cmds=''
15761 ;;
15762 m68k)
15763 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)'
15764 hardcode_libdir_flag_spec='-L$libdir'
15765 hardcode_minus_L=yes
15766 ;;
15767 esac
15768 ;;
15769
15770 beos*)
15771 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15772 allow_undefined_flag=unsupported
15773 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15774 # support --undefined. This deserves some investigation. FIXME
15775 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15776 else
15777 ld_shlibs=no
15778 fi
15779 ;;
15780
15781 cygwin* | mingw* | pw32* | cegcc*)
15782 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15783 # as there is no search path for DLLs.
15784 hardcode_libdir_flag_spec='-L$libdir'
15785 export_dynamic_flag_spec='${wl}--export-all-symbols'
15786 allow_undefined_flag=unsupported
15787 always_export_symbols=no
15788 enable_shared_with_static_runtimes=yes
15789 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15790
15791 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15792 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15793 # If the export-symbols file already is a .def file (1st line
15794 # is EXPORTS), use it as is; otherwise, prepend...
15795 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15796 cp $export_symbols $output_objdir/$soname.def;
15797 else
15798 echo EXPORTS > $output_objdir/$soname.def;
15799 cat $export_symbols >> $output_objdir/$soname.def;
15800 fi~
15801 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15802 else
15803 ld_shlibs=no
15804 fi
15805 ;;
15806
15807 haiku*)
15808 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15809 link_all_deplibs=yes
15810 ;;
15811
15812 interix[3-9]*)
15813 hardcode_direct=no
15814 hardcode_shlibpath_var=no
15815 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15816 export_dynamic_flag_spec='${wl}-E'
15817 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15818 # Instead, shared libraries are loaded at an image base (0x10000000 by
15819 # default) and relocated if they conflict, which is a slow very memory
15820 # consuming and fragmenting process. To avoid this, we pick a random,
15821 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15822 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15823 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15824 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'
15825 ;;
15826
15827 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15828 tmp_diet=no
15829 if test "$host_os" = linux-dietlibc; then
15830 case $cc_basename in
15831 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15832 esac
15833 fi
15834 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15835 && test "$tmp_diet" = no
15836 then
15837 tmp_addflag=
15838 tmp_sharedflag='-shared'
15839 case $cc_basename,$host_cpu in
15840 pgcc*) # Portland Group C compiler
15841 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'
15842 tmp_addflag=' $pic_flag'
15843 ;;
15844 pgf77* | pgf90* | pgf95* | pgfortran*)
15845 # Portland Group f77 and f90 compilers
15846 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'
15847 tmp_addflag=' $pic_flag -Mnomain' ;;
15848 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15849 tmp_addflag=' -i_dynamic' ;;
15850 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15851 tmp_addflag=' -i_dynamic -nofor_main' ;;
15852 ifc* | ifort*) # Intel Fortran compiler
15853 tmp_addflag=' -nofor_main' ;;
15854 lf95*) # Lahey Fortran 8.1
15855 whole_archive_flag_spec=
15856 tmp_sharedflag='--shared' ;;
15857 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15858 tmp_sharedflag='-qmkshrobj'
15859 tmp_addflag= ;;
15860 nvcc*) # Cuda Compiler Driver 2.2
15861 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'
15862 compiler_needs_object=yes
15863 ;;
15864 esac
15865 case `$CC -V 2>&1 | sed 5q` in
15866 *Sun\ C*) # Sun C 5.9
15867 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'
15868 compiler_needs_object=yes
15869 tmp_sharedflag='-G' ;;
15870 *Sun\ F*) # Sun Fortran 8.3
15871 tmp_sharedflag='-G' ;;
15872 esac
15873 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15874
15875 if test "x$supports_anon_versioning" = xyes; then
15876 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15877 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15878 echo "local: *; };" >> $output_objdir/$libname.ver~
15879 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15880 fi
15881
15882 case $cc_basename in
15883 xlf* | bgf* | bgxlf* | mpixlf*)
15884 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15885 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15886 hardcode_libdir_flag_spec=
15887 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15888 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15889 if test "x$supports_anon_versioning" = xyes; then
15890 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15891 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15892 echo "local: *; };" >> $output_objdir/$libname.ver~
15893 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15894 fi
15895 ;;
15896 esac
15897 else
15898 ld_shlibs=no
15899 fi
15900 ;;
15901
15902 netbsd*)
15903 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15904 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15905 wlarc=
15906 else
15907 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15908 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15909 fi
15910 ;;
15911
15912 solaris*)
15913 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15914 ld_shlibs=no
15915 cat <<_LT_EOF 1>&2
15916
15917 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15918 *** create shared libraries on Solaris systems. Therefore, libtool
15919 *** is disabling shared libraries support. We urge you to upgrade GNU
15920 *** binutils to release 2.9.1 or newer. Another option is to modify
15921 *** your PATH or compiler configuration so that the native linker is
15922 *** used, and then restart.
15923
15924 _LT_EOF
15925 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15926 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15927 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15928 else
15929 ld_shlibs=no
15930 fi
15931 ;;
15932
15933 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15934 case `$LD -v 2>&1` in
15935 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15936 ld_shlibs=no
15937 cat <<_LT_EOF 1>&2
15938
15939 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15940 *** reliably create shared libraries on SCO systems. Therefore, libtool
15941 *** is disabling shared libraries support. We urge you to upgrade GNU
15942 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15943 *** your PATH or compiler configuration so that the native linker is
15944 *** used, and then restart.
15945
15946 _LT_EOF
15947 ;;
15948 *)
15949 # For security reasons, it is highly recommended that you always
15950 # use absolute paths for naming shared libraries, and exclude the
15951 # DT_RUNPATH tag from executables and libraries. But doing so
15952 # requires that you compile everything twice, which is a pain.
15953 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15954 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15955 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15956 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15957 else
15958 ld_shlibs=no
15959 fi
15960 ;;
15961 esac
15962 ;;
15963
15964 sunos4*)
15965 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15966 wlarc=
15967 hardcode_direct=yes
15968 hardcode_shlibpath_var=no
15969 ;;
15970
15971 *)
15972 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15973 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15974 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15975 else
15976 ld_shlibs=no
15977 fi
15978 ;;
15979 esac
15980
15981 if test "$ld_shlibs" = no; then
15982 runpath_var=
15983 hardcode_libdir_flag_spec=
15984 export_dynamic_flag_spec=
15985 whole_archive_flag_spec=
15986 fi
15987 else
15988 # PORTME fill in a description of your system's linker (not GNU ld)
15989 case $host_os in
15990 aix3*)
15991 allow_undefined_flag=unsupported
15992 always_export_symbols=yes
15993 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'
15994 # Note: this linker hardcodes the directories in LIBPATH if there
15995 # are no directories specified by -L.
15996 hardcode_minus_L=yes
15997 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15998 # Neither direct hardcoding nor static linking is supported with a
15999 # broken collect2.
16000 hardcode_direct=unsupported
16001 fi
16002 ;;
16003
16004 aix[4-9]*)
16005 if test "$host_cpu" = ia64; then
16006 # On IA64, the linker does run time linking by default, so we don't
16007 # have to do anything special.
16008 aix_use_runtimelinking=no
16009 exp_sym_flag='-Bexport'
16010 no_entry_flag=""
16011 else
16012 # If we're using GNU nm, then we don't want the "-C" option.
16013 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16014 # Also, AIX nm treats weak defined symbols like other global
16015 # defined symbols, whereas GNU nm marks them as "W".
16016 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16017 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'
16018 else
16019 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'
16020 fi
16021 aix_use_runtimelinking=no
16022
16023 # Test if we are trying to use run time linking or normal
16024 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16025 # need to do runtime linking.
16026 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16027 for ld_flag in $LDFLAGS; do
16028 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16029 aix_use_runtimelinking=yes
16030 break
16031 fi
16032 done
16033 ;;
16034 esac
16035
16036 exp_sym_flag='-bexport'
16037 no_entry_flag='-bnoentry'
16038 fi
16039
16040 # When large executables or shared objects are built, AIX ld can
16041 # have problems creating the table of contents. If linking a library
16042 # or program results in "error TOC overflow" add -mminimal-toc to
16043 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16044 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16045
16046 archive_cmds=''
16047 hardcode_direct=yes
16048 hardcode_direct_absolute=yes
16049 hardcode_libdir_separator=':'
16050 link_all_deplibs=yes
16051 file_list_spec='${wl}-f,'
16052
16053 if test "$GCC" = yes; then
16054 case $host_os in aix4.[012]|aix4.[012].*)
16055 # We only want to do this on AIX 4.2 and lower, the check
16056 # below for broken collect2 doesn't work under 4.3+
16057 collect2name=`${CC} -print-prog-name=collect2`
16058 if test -f "$collect2name" &&
16059 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16060 then
16061 # We have reworked collect2
16062 :
16063 else
16064 # We have old collect2
16065 hardcode_direct=unsupported
16066 # It fails to find uninstalled libraries when the uninstalled
16067 # path is not listed in the libpath. Setting hardcode_minus_L
16068 # to unsupported forces relinking
16069 hardcode_minus_L=yes
16070 hardcode_libdir_flag_spec='-L$libdir'
16071 hardcode_libdir_separator=
16072 fi
16073 ;;
16074 esac
16075 shared_flag='-shared'
16076 if test "$aix_use_runtimelinking" = yes; then
16077 shared_flag="$shared_flag "'${wl}-G'
16078 fi
16079 else
16080 # not using gcc
16081 if test "$host_cpu" = ia64; then
16082 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16083 # chokes on -Wl,-G. The following line is correct:
16084 shared_flag='-G'
16085 else
16086 if test "$aix_use_runtimelinking" = yes; then
16087 shared_flag='${wl}-G'
16088 else
16089 shared_flag='${wl}-bM:SRE'
16090 fi
16091 fi
16092 fi
16093
16094 export_dynamic_flag_spec='${wl}-bexpall'
16095 # It seems that -bexpall does not export symbols beginning with
16096 # underscore (_), so it is better to generate a list of symbols to export.
16097 always_export_symbols=yes
16098 if test "$aix_use_runtimelinking" = yes; then
16099 # Warning - without using the other runtime loading flags (-brtl),
16100 # -berok will link without error, but may produce a broken library.
16101 allow_undefined_flag='-berok'
16102 # Determine the default libpath from the value encoded in an
16103 # empty executable.
16104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16105 /* end confdefs.h. */
16106
16107 int
16108 main ()
16109 {
16110
16111 ;
16112 return 0;
16113 }
16114 _ACEOF
16115 if ac_fn_c_try_link "$LINENO"; then :
16116
16117 lt_aix_libpath_sed='
16118 /Import File Strings/,/^$/ {
16119 /^0/ {
16120 s/^0 *\(.*\)$/\1/
16121 p
16122 }
16123 }'
16124 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16125 # Check for a 64-bit object if we didn't find anything.
16126 if test -z "$aix_libpath"; then
16127 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16128 fi
16129 fi
16130 rm -f core conftest.err conftest.$ac_objext \
16131 conftest$ac_exeext conftest.$ac_ext
16132 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16133
16134 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16135 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"
16136 else
16137 if test "$host_cpu" = ia64; then
16138 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16139 allow_undefined_flag="-z nodefs"
16140 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"
16141 else
16142 # Determine the default libpath from the value encoded in an
16143 # empty executable.
16144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16145 /* end confdefs.h. */
16146
16147 int
16148 main ()
16149 {
16150
16151 ;
16152 return 0;
16153 }
16154 _ACEOF
16155 if ac_fn_c_try_link "$LINENO"; then :
16156
16157 lt_aix_libpath_sed='
16158 /Import File Strings/,/^$/ {
16159 /^0/ {
16160 s/^0 *\(.*\)$/\1/
16161 p
16162 }
16163 }'
16164 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16165 # Check for a 64-bit object if we didn't find anything.
16166 if test -z "$aix_libpath"; then
16167 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16168 fi
16169 fi
16170 rm -f core conftest.err conftest.$ac_objext \
16171 conftest$ac_exeext conftest.$ac_ext
16172 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16173
16174 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16175 # Warning - without using the other run time loading flags,
16176 # -berok will link without error, but may produce a broken library.
16177 no_undefined_flag=' ${wl}-bernotok'
16178 allow_undefined_flag=' ${wl}-berok'
16179 if test "$with_gnu_ld" = yes; then
16180 # We only use this code for GNU lds that support --whole-archive.
16181 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16182 else
16183 # Exported symbols can be pulled into shared objects from archives
16184 whole_archive_flag_spec='$convenience'
16185 fi
16186 archive_cmds_need_lc=yes
16187 # This is similar to how AIX traditionally builds its shared libraries.
16188 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'
16189 fi
16190 fi
16191 ;;
16192
16193 amigaos*)
16194 case $host_cpu in
16195 powerpc)
16196 # see comment about AmigaOS4 .so support
16197 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16198 archive_expsym_cmds=''
16199 ;;
16200 m68k)
16201 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)'
16202 hardcode_libdir_flag_spec='-L$libdir'
16203 hardcode_minus_L=yes
16204 ;;
16205 esac
16206 ;;
16207
16208 bsdi[45]*)
16209 export_dynamic_flag_spec=-rdynamic
16210 ;;
16211
16212 cygwin* | mingw* | pw32* | cegcc*)
16213 # When not using gcc, we currently assume that we are using
16214 # Microsoft Visual C++.
16215 # hardcode_libdir_flag_spec is actually meaningless, as there is
16216 # no search path for DLLs.
16217 hardcode_libdir_flag_spec=' '
16218 allow_undefined_flag=unsupported
16219 # Tell ltmain to make .lib files, not .a files.
16220 libext=lib
16221 # Tell ltmain to make .dll files, not .so files.
16222 shrext_cmds=".dll"
16223 # FIXME: Setting linknames here is a bad hack.
16224 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16225 # The linker will automatically build a .lib file if we build a DLL.
16226 old_archive_from_new_cmds='true'
16227 # FIXME: Should let the user specify the lib program.
16228 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16229 fix_srcfile_path='`cygpath -w "$srcfile"`'
16230 enable_shared_with_static_runtimes=yes
16231 ;;
16232
16233 darwin* | rhapsody*)
16234
16235
16236 archive_cmds_need_lc=no
16237 hardcode_direct=no
16238 hardcode_automatic=yes
16239 hardcode_shlibpath_var=unsupported
16240 if test "$lt_cv_ld_force_load" = "yes"; then
16241 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\"`'
16242 else
16243 whole_archive_flag_spec=''
16244 fi
16245 link_all_deplibs=yes
16246 allow_undefined_flag="$_lt_dar_allow_undefined"
16247 case $cc_basename in
16248 ifort*) _lt_dar_can_shared=yes ;;
16249 *) _lt_dar_can_shared=$GCC ;;
16250 esac
16251 if test "$_lt_dar_can_shared" = "yes"; then
16252 output_verbose_link_cmd=func_echo_all
16253 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16254 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16255 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}"
16256 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}"
16257
16258 else
16259 ld_shlibs=no
16260 fi
16261
16262 ;;
16263
16264 dgux*)
16265 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16266 hardcode_libdir_flag_spec='-L$libdir'
16267 hardcode_shlibpath_var=no
16268 ;;
16269
16270 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16271 # support. Future versions do this automatically, but an explicit c++rt0.o
16272 # does not break anything, and helps significantly (at the cost of a little
16273 # extra space).
16274 freebsd2.2*)
16275 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16276 hardcode_libdir_flag_spec='-R$libdir'
16277 hardcode_direct=yes
16278 hardcode_shlibpath_var=no
16279 ;;
16280
16281 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16282 freebsd2*)
16283 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16284 hardcode_direct=yes
16285 hardcode_minus_L=yes
16286 hardcode_shlibpath_var=no
16287 ;;
16288
16289 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16290 freebsd* | dragonfly*)
16291 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16292 hardcode_libdir_flag_spec='-R$libdir'
16293 hardcode_direct=yes
16294 hardcode_shlibpath_var=no
16295 ;;
16296
16297 hpux9*)
16298 if test "$GCC" = yes; then
16299 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'
16300 else
16301 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'
16302 fi
16303 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16304 hardcode_libdir_separator=:
16305 hardcode_direct=yes
16306
16307 # hardcode_minus_L: Not really in the search PATH,
16308 # but as the default location of the library.
16309 hardcode_minus_L=yes
16310 export_dynamic_flag_spec='${wl}-E'
16311 ;;
16312
16313 hpux10*)
16314 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16315 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16316 else
16317 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16318 fi
16319 if test "$with_gnu_ld" = no; then
16320 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16321 hardcode_libdir_flag_spec_ld='+b $libdir'
16322 hardcode_libdir_separator=:
16323 hardcode_direct=yes
16324 hardcode_direct_absolute=yes
16325 export_dynamic_flag_spec='${wl}-E'
16326 # hardcode_minus_L: Not really in the search PATH,
16327 # but as the default location of the library.
16328 hardcode_minus_L=yes
16329 fi
16330 ;;
16331
16332 hpux11*)
16333 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16334 case $host_cpu in
16335 hppa*64*)
16336 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16337 ;;
16338 ia64*)
16339 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16340 ;;
16341 *)
16342 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16343 ;;
16344 esac
16345 else
16346 case $host_cpu in
16347 hppa*64*)
16348 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16349 ;;
16350 ia64*)
16351 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16352 ;;
16353 *)
16354
16355 # Older versions of the 11.00 compiler do not understand -b yet
16356 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16358 $as_echo_n "checking if $CC understands -b... " >&6; }
16359 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16360 $as_echo_n "(cached) " >&6
16361 else
16362 lt_cv_prog_compiler__b=no
16363 save_LDFLAGS="$LDFLAGS"
16364 LDFLAGS="$LDFLAGS -b"
16365 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16366 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16367 # The linker can only warn and ignore the option if not recognized
16368 # So say no if there are warnings
16369 if test -s conftest.err; then
16370 # Append any errors to the config.log.
16371 cat conftest.err 1>&5
16372 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16373 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16374 if diff conftest.exp conftest.er2 >/dev/null; then
16375 lt_cv_prog_compiler__b=yes
16376 fi
16377 else
16378 lt_cv_prog_compiler__b=yes
16379 fi
16380 fi
16381 $RM -r conftest*
16382 LDFLAGS="$save_LDFLAGS"
16383
16384 fi
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16386 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16387
16388 if test x"$lt_cv_prog_compiler__b" = xyes; then
16389 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16390 else
16391 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16392 fi
16393
16394 ;;
16395 esac
16396 fi
16397 if test "$with_gnu_ld" = no; then
16398 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16399 hardcode_libdir_separator=:
16400
16401 case $host_cpu in
16402 hppa*64*|ia64*)
16403 hardcode_direct=no
16404 hardcode_shlibpath_var=no
16405 ;;
16406 *)
16407 hardcode_direct=yes
16408 hardcode_direct_absolute=yes
16409 export_dynamic_flag_spec='${wl}-E'
16410
16411 # hardcode_minus_L: Not really in the search PATH,
16412 # but as the default location of the library.
16413 hardcode_minus_L=yes
16414 ;;
16415 esac
16416 fi
16417 ;;
16418
16419 irix5* | irix6* | nonstopux*)
16420 if test "$GCC" = yes; then
16421 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'
16422 # Try to use the -exported_symbol ld option, if it does not
16423 # work, assume that -exports_file does not work either and
16424 # implicitly export all symbols.
16425 save_LDFLAGS="$LDFLAGS"
16426 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16428 /* end confdefs.h. */
16429 int foo(void) {}
16430 _ACEOF
16431 if ac_fn_c_try_link "$LINENO"; then :
16432 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'
16433
16434 fi
16435 rm -f core conftest.err conftest.$ac_objext \
16436 conftest$ac_exeext conftest.$ac_ext
16437 LDFLAGS="$save_LDFLAGS"
16438 else
16439 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'
16440 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'
16441 fi
16442 archive_cmds_need_lc='no'
16443 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16444 hardcode_libdir_separator=:
16445 inherit_rpath=yes
16446 link_all_deplibs=yes
16447 ;;
16448
16449 netbsd*)
16450 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16451 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16452 else
16453 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16454 fi
16455 hardcode_libdir_flag_spec='-R$libdir'
16456 hardcode_direct=yes
16457 hardcode_shlibpath_var=no
16458 ;;
16459
16460 newsos6)
16461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16462 hardcode_direct=yes
16463 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16464 hardcode_libdir_separator=:
16465 hardcode_shlibpath_var=no
16466 ;;
16467
16468 *nto* | *qnx*)
16469 ;;
16470
16471 openbsd*)
16472 if test -f /usr/libexec/ld.so; then
16473 hardcode_direct=yes
16474 hardcode_shlibpath_var=no
16475 hardcode_direct_absolute=yes
16476 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16477 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16478 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16479 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16480 export_dynamic_flag_spec='${wl}-E'
16481 else
16482 case $host_os in
16483 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16484 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16485 hardcode_libdir_flag_spec='-R$libdir'
16486 ;;
16487 *)
16488 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16489 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16490 ;;
16491 esac
16492 fi
16493 else
16494 ld_shlibs=no
16495 fi
16496 ;;
16497
16498 os2*)
16499 hardcode_libdir_flag_spec='-L$libdir'
16500 hardcode_minus_L=yes
16501 allow_undefined_flag=unsupported
16502 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'
16503 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16504 ;;
16505
16506 osf3*)
16507 if test "$GCC" = yes; then
16508 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16509 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'
16510 else
16511 allow_undefined_flag=' -expect_unresolved \*'
16512 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'
16513 fi
16514 archive_cmds_need_lc='no'
16515 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16516 hardcode_libdir_separator=:
16517 ;;
16518
16519 osf4* | osf5*) # as osf3* with the addition of -msym flag
16520 if test "$GCC" = yes; then
16521 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16522 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'
16523 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16524 else
16525 allow_undefined_flag=' -expect_unresolved \*'
16526 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'
16527 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~
16528 $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'
16529
16530 # Both c and cxx compiler support -rpath directly
16531 hardcode_libdir_flag_spec='-rpath $libdir'
16532 fi
16533 archive_cmds_need_lc='no'
16534 hardcode_libdir_separator=:
16535 ;;
16536
16537 solaris*)
16538 no_undefined_flag=' -z defs'
16539 if test "$GCC" = yes; then
16540 wlarc='${wl}'
16541 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16542 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16543 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16544 else
16545 case `$CC -V 2>&1` in
16546 *"Compilers 5.0"*)
16547 wlarc=''
16548 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16549 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16550 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16551 ;;
16552 *)
16553 wlarc='${wl}'
16554 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16555 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16556 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16557 ;;
16558 esac
16559 fi
16560 hardcode_libdir_flag_spec='-R$libdir'
16561 hardcode_shlibpath_var=no
16562 case $host_os in
16563 solaris2.[0-5] | solaris2.[0-5].*) ;;
16564 *)
16565 # The compiler driver will combine and reorder linker options,
16566 # but understands `-z linker_flag'. GCC discards it without `$wl',
16567 # but is careful enough not to reorder.
16568 # Supported since Solaris 2.6 (maybe 2.5.1?)
16569 if test "$GCC" = yes; then
16570 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16571 else
16572 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16573 fi
16574 ;;
16575 esac
16576 link_all_deplibs=yes
16577 ;;
16578
16579 sunos4*)
16580 if test "x$host_vendor" = xsequent; then
16581 # Use $CC to link under sequent, because it throws in some extra .o
16582 # files that make .init and .fini sections work.
16583 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16584 else
16585 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16586 fi
16587 hardcode_libdir_flag_spec='-L$libdir'
16588 hardcode_direct=yes
16589 hardcode_minus_L=yes
16590 hardcode_shlibpath_var=no
16591 ;;
16592
16593 sysv4)
16594 case $host_vendor in
16595 sni)
16596 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16597 hardcode_direct=yes # is this really true???
16598 ;;
16599 siemens)
16600 ## LD is ld it makes a PLAMLIB
16601 ## CC just makes a GrossModule.
16602 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16603 reload_cmds='$CC -r -o $output$reload_objs'
16604 hardcode_direct=no
16605 ;;
16606 motorola)
16607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16608 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16609 ;;
16610 esac
16611 runpath_var='LD_RUN_PATH'
16612 hardcode_shlibpath_var=no
16613 ;;
16614
16615 sysv4.3*)
16616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16617 hardcode_shlibpath_var=no
16618 export_dynamic_flag_spec='-Bexport'
16619 ;;
16620
16621 sysv4*MP*)
16622 if test -d /usr/nec; then
16623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16624 hardcode_shlibpath_var=no
16625 runpath_var=LD_RUN_PATH
16626 hardcode_runpath_var=yes
16627 ld_shlibs=yes
16628 fi
16629 ;;
16630
16631 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16632 no_undefined_flag='${wl}-z,text'
16633 archive_cmds_need_lc=no
16634 hardcode_shlibpath_var=no
16635 runpath_var='LD_RUN_PATH'
16636
16637 if test "$GCC" = yes; then
16638 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16639 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16640 else
16641 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16642 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16643 fi
16644 ;;
16645
16646 sysv5* | sco3.2v5* | sco5v6*)
16647 # Note: We can NOT use -z defs as we might desire, because we do not
16648 # link with -lc, and that would cause any symbols used from libc to
16649 # always be unresolved, which means just about no library would
16650 # ever link correctly. If we're not using GNU ld we use -z text
16651 # though, which does catch some bad symbols but isn't as heavy-handed
16652 # as -z defs.
16653 no_undefined_flag='${wl}-z,text'
16654 allow_undefined_flag='${wl}-z,nodefs'
16655 archive_cmds_need_lc=no
16656 hardcode_shlibpath_var=no
16657 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16658 hardcode_libdir_separator=':'
16659 link_all_deplibs=yes
16660 export_dynamic_flag_spec='${wl}-Bexport'
16661 runpath_var='LD_RUN_PATH'
16662
16663 if test "$GCC" = yes; then
16664 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16665 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16666 else
16667 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16668 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16669 fi
16670 ;;
16671
16672 uts4*)
16673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16674 hardcode_libdir_flag_spec='-L$libdir'
16675 hardcode_shlibpath_var=no
16676 ;;
16677
16678 *)
16679 ld_shlibs=no
16680 ;;
16681 esac
16682
16683 if test x$host_vendor = xsni; then
16684 case $host in
16685 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16686 export_dynamic_flag_spec='${wl}-Blargedynsym'
16687 ;;
16688 esac
16689 fi
16690 fi
16691
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16693 $as_echo "$ld_shlibs" >&6; }
16694 test "$ld_shlibs" = no && can_build_shared=no
16695
16696 with_gnu_ld=$with_gnu_ld
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712 #
16713 # Do we need to explicitly link libc?
16714 #
16715 case "x$archive_cmds_need_lc" in
16716 x|xyes)
16717 # Assume -lc should be added
16718 archive_cmds_need_lc=yes
16719
16720 if test "$enable_shared" = yes && test "$GCC" = yes; then
16721 case $archive_cmds in
16722 *'~'*)
16723 # FIXME: we may have to deal with multi-command sequences.
16724 ;;
16725 '$CC '*)
16726 # Test whether the compiler implicitly links with -lc since on some
16727 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16728 # to ld, don't add -lc before -lgcc.
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16730 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16731 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16732 $as_echo_n "(cached) " >&6
16733 else
16734 $RM conftest*
16735 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16736
16737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16738 (eval $ac_compile) 2>&5
16739 ac_status=$?
16740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16741 test $ac_status = 0; } 2>conftest.err; then
16742 soname=conftest
16743 lib=conftest
16744 libobjs=conftest.$ac_objext
16745 deplibs=
16746 wl=$lt_prog_compiler_wl
16747 pic_flag=$lt_prog_compiler_pic
16748 compiler_flags=-v
16749 linker_flags=-v
16750 verstring=
16751 output_objdir=.
16752 libname=conftest
16753 lt_save_allow_undefined_flag=$allow_undefined_flag
16754 allow_undefined_flag=
16755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16756 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16757 ac_status=$?
16758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16759 test $ac_status = 0; }
16760 then
16761 lt_cv_archive_cmds_need_lc=no
16762 else
16763 lt_cv_archive_cmds_need_lc=yes
16764 fi
16765 allow_undefined_flag=$lt_save_allow_undefined_flag
16766 else
16767 cat conftest.err 1>&5
16768 fi
16769 $RM conftest*
16770
16771 fi
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16773 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16774 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16775 ;;
16776 esac
16777 fi
16778 ;;
16779 esac
16780
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16938 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16939
16940 if test "$GCC" = yes; then
16941 case $host_os in
16942 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16943 *) lt_awk_arg="/^libraries:/" ;;
16944 esac
16945 case $host_os in
16946 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16947 *) lt_sed_strip_eq="s,=/,/,g" ;;
16948 esac
16949 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16950 case $lt_search_path_spec in
16951 *\;*)
16952 # if the path contains ";" then we assume it to be the separator
16953 # otherwise default to the standard path separator (i.e. ":") - it is
16954 # assumed that no part of a normal pathname contains ";" but that should
16955 # okay in the real world where ";" in dirpaths is itself problematic.
16956 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16957 ;;
16958 *)
16959 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16960 ;;
16961 esac
16962 # Ok, now we have the path, separated by spaces, we can step through it
16963 # and add multilib dir if necessary.
16964 lt_tmp_lt_search_path_spec=
16965 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16966 for lt_sys_path in $lt_search_path_spec; do
16967 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16968 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16969 else
16970 test -d "$lt_sys_path" && \
16971 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16972 fi
16973 done
16974 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16975 BEGIN {RS=" "; FS="/|\n";} {
16976 lt_foo="";
16977 lt_count=0;
16978 for (lt_i = NF; lt_i > 0; lt_i--) {
16979 if ($lt_i != "" && $lt_i != ".") {
16980 if ($lt_i == "..") {
16981 lt_count++;
16982 } else {
16983 if (lt_count == 0) {
16984 lt_foo="/" $lt_i lt_foo;
16985 } else {
16986 lt_count--;
16987 }
16988 }
16989 }
16990 }
16991 if (lt_foo != "") { lt_freq[lt_foo]++; }
16992 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16993 }'`
16994 # AWK program above erroneously prepends '/' to C:/dos/paths
16995 # for these hosts.
16996 case $host_os in
16997 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16998 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16999 esac
17000 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17001 else
17002 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17003 fi
17004 library_names_spec=
17005 libname_spec='lib$name'
17006 soname_spec=
17007 shrext_cmds=".so"
17008 postinstall_cmds=
17009 postuninstall_cmds=
17010 finish_cmds=
17011 finish_eval=
17012 shlibpath_var=
17013 shlibpath_overrides_runpath=unknown
17014 version_type=none
17015 dynamic_linker="$host_os ld.so"
17016 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17017 need_lib_prefix=unknown
17018 hardcode_into_libs=no
17019
17020 # when you set need_version to no, make sure it does not cause -set_version
17021 # flags to be left without arguments
17022 need_version=unknown
17023
17024 case $host_os in
17025 aix3*)
17026 version_type=linux
17027 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17028 shlibpath_var=LIBPATH
17029
17030 # AIX 3 has no versioning support, so we append a major version to the name.
17031 soname_spec='${libname}${release}${shared_ext}$major'
17032 ;;
17033
17034 aix[4-9]*)
17035 version_type=linux
17036 need_lib_prefix=no
17037 need_version=no
17038 hardcode_into_libs=yes
17039 if test "$host_cpu" = ia64; then
17040 # AIX 5 supports IA64
17041 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17042 shlibpath_var=LD_LIBRARY_PATH
17043 else
17044 # With GCC up to 2.95.x, collect2 would create an import file
17045 # for dependence libraries. The import file would start with
17046 # the line `#! .'. This would cause the generated library to
17047 # depend on `.', always an invalid library. This was fixed in
17048 # development snapshots of GCC prior to 3.0.
17049 case $host_os in
17050 aix4 | aix4.[01] | aix4.[01].*)
17051 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17052 echo ' yes '
17053 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17054 :
17055 else
17056 can_build_shared=no
17057 fi
17058 ;;
17059 esac
17060 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17061 # soname into executable. Probably we can add versioning support to
17062 # collect2, so additional links can be useful in future.
17063 if test "$aix_use_runtimelinking" = yes; then
17064 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17065 # instead of lib<name>.a to let people know that these are not
17066 # typical AIX shared libraries.
17067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17068 else
17069 # We preserve .a as extension for shared libraries through AIX4.2
17070 # and later when we are not doing run time linking.
17071 library_names_spec='${libname}${release}.a $libname.a'
17072 soname_spec='${libname}${release}${shared_ext}$major'
17073 fi
17074 shlibpath_var=LIBPATH
17075 fi
17076 ;;
17077
17078 amigaos*)
17079 case $host_cpu in
17080 powerpc)
17081 # Since July 2007 AmigaOS4 officially supports .so libraries.
17082 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17084 ;;
17085 m68k)
17086 library_names_spec='$libname.ixlibrary $libname.a'
17087 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17088 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'
17089 ;;
17090 esac
17091 ;;
17092
17093 beos*)
17094 library_names_spec='${libname}${shared_ext}'
17095 dynamic_linker="$host_os ld.so"
17096 shlibpath_var=LIBRARY_PATH
17097 ;;
17098
17099 bsdi[45]*)
17100 version_type=linux
17101 need_version=no
17102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17103 soname_spec='${libname}${release}${shared_ext}$major'
17104 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17105 shlibpath_var=LD_LIBRARY_PATH
17106 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17107 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17108 # the default ld.so.conf also contains /usr/contrib/lib and
17109 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17110 # libtool to hard-code these into programs
17111 ;;
17112
17113 cygwin* | mingw* | pw32* | cegcc*)
17114 version_type=windows
17115 shrext_cmds=".dll"
17116 need_version=no
17117 need_lib_prefix=no
17118
17119 case $GCC,$host_os in
17120 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17121 library_names_spec='$libname.dll.a'
17122 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17123 postinstall_cmds='base_file=`basename \${file}`~
17124 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17125 dldir=$destdir/`dirname \$dlpath`~
17126 test -d \$dldir || mkdir -p \$dldir~
17127 $install_prog $dir/$dlname \$dldir/$dlname~
17128 chmod a+x \$dldir/$dlname~
17129 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17130 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17131 fi'
17132 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17133 dlpath=$dir/\$dldll~
17134 $RM \$dlpath'
17135 shlibpath_overrides_runpath=yes
17136
17137 case $host_os in
17138 cygwin*)
17139 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17140 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17141
17142 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17143 ;;
17144 mingw* | cegcc*)
17145 # MinGW DLLs use traditional 'lib' prefix
17146 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17147 ;;
17148 pw32*)
17149 # pw32 DLLs use 'pw' prefix rather than 'lib'
17150 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17151 ;;
17152 esac
17153 ;;
17154
17155 *)
17156 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17157 ;;
17158 esac
17159 dynamic_linker='Win32 ld.exe'
17160 # FIXME: first we should search . and the directory the executable is in
17161 shlibpath_var=PATH
17162 ;;
17163
17164 darwin* | rhapsody*)
17165 dynamic_linker="$host_os dyld"
17166 version_type=darwin
17167 need_lib_prefix=no
17168 need_version=no
17169 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17170 soname_spec='${libname}${release}${major}$shared_ext'
17171 shlibpath_overrides_runpath=yes
17172 shlibpath_var=DYLD_LIBRARY_PATH
17173 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17174
17175 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17176 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17177 ;;
17178
17179 dgux*)
17180 version_type=linux
17181 need_lib_prefix=no
17182 need_version=no
17183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17184 soname_spec='${libname}${release}${shared_ext}$major'
17185 shlibpath_var=LD_LIBRARY_PATH
17186 ;;
17187
17188 freebsd* | dragonfly*)
17189 # DragonFly does not have aout. When/if they implement a new
17190 # versioning mechanism, adjust this.
17191 if test -x /usr/bin/objformat; then
17192 objformat=`/usr/bin/objformat`
17193 else
17194 case $host_os in
17195 freebsd[123]*) objformat=aout ;;
17196 *) objformat=elf ;;
17197 esac
17198 fi
17199 version_type=freebsd-$objformat
17200 case $version_type in
17201 freebsd-elf*)
17202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17203 need_version=no
17204 need_lib_prefix=no
17205 ;;
17206 freebsd-*)
17207 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17208 need_version=yes
17209 ;;
17210 esac
17211 shlibpath_var=LD_LIBRARY_PATH
17212 case $host_os in
17213 freebsd2*)
17214 shlibpath_overrides_runpath=yes
17215 ;;
17216 freebsd3.[01]* | freebsdelf3.[01]*)
17217 shlibpath_overrides_runpath=yes
17218 hardcode_into_libs=yes
17219 ;;
17220 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17221 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17222 shlibpath_overrides_runpath=no
17223 hardcode_into_libs=yes
17224 ;;
17225 *) # from 4.6 on, and DragonFly
17226 shlibpath_overrides_runpath=yes
17227 hardcode_into_libs=yes
17228 ;;
17229 esac
17230 ;;
17231
17232 gnu*)
17233 version_type=linux
17234 need_lib_prefix=no
17235 need_version=no
17236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17237 soname_spec='${libname}${release}${shared_ext}$major'
17238 shlibpath_var=LD_LIBRARY_PATH
17239 hardcode_into_libs=yes
17240 ;;
17241
17242 haiku*)
17243 version_type=linux
17244 need_lib_prefix=no
17245 need_version=no
17246 dynamic_linker="$host_os runtime_loader"
17247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17248 soname_spec='${libname}${release}${shared_ext}$major'
17249 shlibpath_var=LIBRARY_PATH
17250 shlibpath_overrides_runpath=yes
17251 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17252 hardcode_into_libs=yes
17253 ;;
17254
17255 hpux9* | hpux10* | hpux11*)
17256 # Give a soname corresponding to the major version so that dld.sl refuses to
17257 # link against other versions.
17258 version_type=sunos
17259 need_lib_prefix=no
17260 need_version=no
17261 case $host_cpu in
17262 ia64*)
17263 shrext_cmds='.so'
17264 hardcode_into_libs=yes
17265 dynamic_linker="$host_os dld.so"
17266 shlibpath_var=LD_LIBRARY_PATH
17267 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17269 soname_spec='${libname}${release}${shared_ext}$major'
17270 if test "X$HPUX_IA64_MODE" = X32; then
17271 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17272 else
17273 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17274 fi
17275 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17276 ;;
17277 hppa*64*)
17278 shrext_cmds='.sl'
17279 hardcode_into_libs=yes
17280 dynamic_linker="$host_os dld.sl"
17281 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17282 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17284 soname_spec='${libname}${release}${shared_ext}$major'
17285 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17286 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17287 ;;
17288 *)
17289 shrext_cmds='.sl'
17290 dynamic_linker="$host_os dld.sl"
17291 shlibpath_var=SHLIB_PATH
17292 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17294 soname_spec='${libname}${release}${shared_ext}$major'
17295 ;;
17296 esac
17297 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17298 postinstall_cmds='chmod 555 $lib'
17299 # or fails outright, so override atomically:
17300 install_override_mode=555
17301 ;;
17302
17303 interix[3-9]*)
17304 version_type=linux
17305 need_lib_prefix=no
17306 need_version=no
17307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17308 soname_spec='${libname}${release}${shared_ext}$major'
17309 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17310 shlibpath_var=LD_LIBRARY_PATH
17311 shlibpath_overrides_runpath=no
17312 hardcode_into_libs=yes
17313 ;;
17314
17315 irix5* | irix6* | nonstopux*)
17316 case $host_os in
17317 nonstopux*) version_type=nonstopux ;;
17318 *)
17319 if test "$lt_cv_prog_gnu_ld" = yes; then
17320 version_type=linux
17321 else
17322 version_type=irix
17323 fi ;;
17324 esac
17325 need_lib_prefix=no
17326 need_version=no
17327 soname_spec='${libname}${release}${shared_ext}$major'
17328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17329 case $host_os in
17330 irix5* | nonstopux*)
17331 libsuff= shlibsuff=
17332 ;;
17333 *)
17334 case $LD in # libtool.m4 will add one of these switches to LD
17335 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17336 libsuff= shlibsuff= libmagic=32-bit;;
17337 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17338 libsuff=32 shlibsuff=N32 libmagic=N32;;
17339 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17340 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17341 *) libsuff= shlibsuff= libmagic=never-match;;
17342 esac
17343 ;;
17344 esac
17345 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17346 shlibpath_overrides_runpath=no
17347 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17348 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17349 hardcode_into_libs=yes
17350 ;;
17351
17352 # No shared lib support for Linux oldld, aout, or coff.
17353 linux*oldld* | linux*aout* | linux*coff*)
17354 dynamic_linker=no
17355 ;;
17356
17357 # This must be Linux ELF.
17358 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17359 version_type=linux
17360 need_lib_prefix=no
17361 need_version=no
17362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17363 soname_spec='${libname}${release}${shared_ext}$major'
17364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17365 shlibpath_var=LD_LIBRARY_PATH
17366 shlibpath_overrides_runpath=no
17367
17368 # Some binutils ld are patched to set DT_RUNPATH
17369 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17370 $as_echo_n "(cached) " >&6
17371 else
17372 lt_cv_shlibpath_overrides_runpath=no
17373 save_LDFLAGS=$LDFLAGS
17374 save_libdir=$libdir
17375 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17376 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17378 /* end confdefs.h. */
17379
17380 int
17381 main ()
17382 {
17383
17384 ;
17385 return 0;
17386 }
17387 _ACEOF
17388 if ac_fn_c_try_link "$LINENO"; then :
17389 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17390 lt_cv_shlibpath_overrides_runpath=yes
17391 fi
17392 fi
17393 rm -f core conftest.err conftest.$ac_objext \
17394 conftest$ac_exeext conftest.$ac_ext
17395 LDFLAGS=$save_LDFLAGS
17396 libdir=$save_libdir
17397
17398 fi
17399
17400 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17401
17402 # This implies no fast_install, which is unacceptable.
17403 # Some rework will be needed to allow for fast_install
17404 # before this can be enabled.
17405 hardcode_into_libs=yes
17406
17407 # Append ld.so.conf contents to the search path
17408 if test -f /etc/ld.so.conf; then
17409 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' ' '`
17410 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17411 fi
17412
17413 # We used to test for /lib/ld.so.1 and disable shared libraries on
17414 # powerpc, because MkLinux only supported shared libraries with the
17415 # GNU dynamic linker. Since this was broken with cross compilers,
17416 # most powerpc-linux boxes support dynamic linking these days and
17417 # people can always --disable-shared, the test was removed, and we
17418 # assume the GNU/Linux dynamic linker is in use.
17419 dynamic_linker='GNU/Linux ld.so'
17420 ;;
17421
17422 netbsd*)
17423 version_type=sunos
17424 need_lib_prefix=no
17425 need_version=no
17426 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17428 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17429 dynamic_linker='NetBSD (a.out) ld.so'
17430 else
17431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17432 soname_spec='${libname}${release}${shared_ext}$major'
17433 dynamic_linker='NetBSD ld.elf_so'
17434 fi
17435 shlibpath_var=LD_LIBRARY_PATH
17436 shlibpath_overrides_runpath=yes
17437 hardcode_into_libs=yes
17438 ;;
17439
17440 newsos6)
17441 version_type=linux
17442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17443 shlibpath_var=LD_LIBRARY_PATH
17444 shlibpath_overrides_runpath=yes
17445 ;;
17446
17447 *nto* | *qnx*)
17448 version_type=qnx
17449 need_lib_prefix=no
17450 need_version=no
17451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17452 soname_spec='${libname}${release}${shared_ext}$major'
17453 shlibpath_var=LD_LIBRARY_PATH
17454 shlibpath_overrides_runpath=no
17455 hardcode_into_libs=yes
17456 dynamic_linker='ldqnx.so'
17457 ;;
17458
17459 openbsd*)
17460 version_type=sunos
17461 sys_lib_dlsearch_path_spec="/usr/lib"
17462 need_lib_prefix=no
17463 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17464 case $host_os in
17465 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17466 *) need_version=no ;;
17467 esac
17468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17469 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17470 shlibpath_var=LD_LIBRARY_PATH
17471 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17472 case $host_os in
17473 openbsd2.[89] | openbsd2.[89].*)
17474 shlibpath_overrides_runpath=no
17475 ;;
17476 *)
17477 shlibpath_overrides_runpath=yes
17478 ;;
17479 esac
17480 else
17481 shlibpath_overrides_runpath=yes
17482 fi
17483 ;;
17484
17485 os2*)
17486 libname_spec='$name'
17487 shrext_cmds=".dll"
17488 need_lib_prefix=no
17489 library_names_spec='$libname${shared_ext} $libname.a'
17490 dynamic_linker='OS/2 ld.exe'
17491 shlibpath_var=LIBPATH
17492 ;;
17493
17494 osf3* | osf4* | osf5*)
17495 version_type=osf
17496 need_lib_prefix=no
17497 need_version=no
17498 soname_spec='${libname}${release}${shared_ext}$major'
17499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17500 shlibpath_var=LD_LIBRARY_PATH
17501 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17502 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17503 ;;
17504
17505 rdos*)
17506 dynamic_linker=no
17507 ;;
17508
17509 solaris*)
17510 version_type=linux
17511 need_lib_prefix=no
17512 need_version=no
17513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17514 soname_spec='${libname}${release}${shared_ext}$major'
17515 shlibpath_var=LD_LIBRARY_PATH
17516 shlibpath_overrides_runpath=yes
17517 hardcode_into_libs=yes
17518 # ldd complains unless libraries are executable
17519 postinstall_cmds='chmod +x $lib'
17520 ;;
17521
17522 sunos4*)
17523 version_type=sunos
17524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17525 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17526 shlibpath_var=LD_LIBRARY_PATH
17527 shlibpath_overrides_runpath=yes
17528 if test "$with_gnu_ld" = yes; then
17529 need_lib_prefix=no
17530 fi
17531 need_version=yes
17532 ;;
17533
17534 sysv4 | sysv4.3*)
17535 version_type=linux
17536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17537 soname_spec='${libname}${release}${shared_ext}$major'
17538 shlibpath_var=LD_LIBRARY_PATH
17539 case $host_vendor in
17540 sni)
17541 shlibpath_overrides_runpath=no
17542 need_lib_prefix=no
17543 runpath_var=LD_RUN_PATH
17544 ;;
17545 siemens)
17546 need_lib_prefix=no
17547 ;;
17548 motorola)
17549 need_lib_prefix=no
17550 need_version=no
17551 shlibpath_overrides_runpath=no
17552 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17553 ;;
17554 esac
17555 ;;
17556
17557 sysv4*MP*)
17558 if test -d /usr/nec ;then
17559 version_type=linux
17560 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17561 soname_spec='$libname${shared_ext}.$major'
17562 shlibpath_var=LD_LIBRARY_PATH
17563 fi
17564 ;;
17565
17566 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17567 version_type=freebsd-elf
17568 need_lib_prefix=no
17569 need_version=no
17570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17571 soname_spec='${libname}${release}${shared_ext}$major'
17572 shlibpath_var=LD_LIBRARY_PATH
17573 shlibpath_overrides_runpath=yes
17574 hardcode_into_libs=yes
17575 if test "$with_gnu_ld" = yes; then
17576 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17577 else
17578 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17579 case $host_os in
17580 sco3.2v5*)
17581 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17582 ;;
17583 esac
17584 fi
17585 sys_lib_dlsearch_path_spec='/usr/lib'
17586 ;;
17587
17588 tpf*)
17589 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17590 version_type=linux
17591 need_lib_prefix=no
17592 need_version=no
17593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17594 shlibpath_var=LD_LIBRARY_PATH
17595 shlibpath_overrides_runpath=no
17596 hardcode_into_libs=yes
17597 ;;
17598
17599 uts4*)
17600 version_type=linux
17601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17602 soname_spec='${libname}${release}${shared_ext}$major'
17603 shlibpath_var=LD_LIBRARY_PATH
17604 ;;
17605
17606 *)
17607 dynamic_linker=no
17608 ;;
17609 esac
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17611 $as_echo "$dynamic_linker" >&6; }
17612 test "$dynamic_linker" = no && can_build_shared=no
17613
17614 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17615 if test "$GCC" = yes; then
17616 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17617 fi
17618
17619 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17620 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17621 fi
17622 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17623 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17624 fi
17625
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17718 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17719 hardcode_action=
17720 if test -n "$hardcode_libdir_flag_spec" ||
17721 test -n "$runpath_var" ||
17722 test "X$hardcode_automatic" = "Xyes" ; then
17723
17724 # We can hardcode non-existent directories.
17725 if test "$hardcode_direct" != no &&
17726 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17727 # have to relink, otherwise we might link with an installed library
17728 # when we should be linking with a yet-to-be-installed one
17729 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17730 test "$hardcode_minus_L" != no; then
17731 # Linking always hardcodes the temporary library directory.
17732 hardcode_action=relink
17733 else
17734 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17735 hardcode_action=immediate
17736 fi
17737 else
17738 # We cannot hardcode anything, or else we can only hardcode existing
17739 # directories.
17740 hardcode_action=unsupported
17741 fi
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17743 $as_echo "$hardcode_action" >&6; }
17744
17745 if test "$hardcode_action" = relink ||
17746 test "$inherit_rpath" = yes; then
17747 # Fast installation is not supported
17748 enable_fast_install=no
17749 elif test "$shlibpath_overrides_runpath" = yes ||
17750 test "$enable_shared" = no; then
17751 # Fast installation is not necessary
17752 enable_fast_install=needless
17753 fi
17754
17755
17756
17757
17758
17759
17760 if test "x$enable_dlopen" != xyes; then
17761 enable_dlopen=unknown
17762 enable_dlopen_self=unknown
17763 enable_dlopen_self_static=unknown
17764 else
17765 lt_cv_dlopen=no
17766 lt_cv_dlopen_libs=
17767
17768 case $host_os in
17769 beos*)
17770 lt_cv_dlopen="load_add_on"
17771 lt_cv_dlopen_libs=
17772 lt_cv_dlopen_self=yes
17773 ;;
17774
17775 mingw* | pw32* | cegcc*)
17776 lt_cv_dlopen="LoadLibrary"
17777 lt_cv_dlopen_libs=
17778 ;;
17779
17780 cygwin*)
17781 lt_cv_dlopen="dlopen"
17782 lt_cv_dlopen_libs=
17783 ;;
17784
17785 darwin*)
17786 # if libdl is installed we need to link against it
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17788 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17789 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17790 $as_echo_n "(cached) " >&6
17791 else
17792 ac_check_lib_save_LIBS=$LIBS
17793 LIBS="-ldl $LIBS"
17794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17795 /* end confdefs.h. */
17796
17797 /* Override any GCC internal prototype to avoid an error.
17798 Use char because int might match the return type of a GCC
17799 builtin and then its argument prototype would still apply. */
17800 #ifdef __cplusplus
17801 extern "C"
17802 #endif
17803 char dlopen ();
17804 int
17805 main ()
17806 {
17807 return dlopen ();
17808 ;
17809 return 0;
17810 }
17811 _ACEOF
17812 if ac_fn_c_try_link "$LINENO"; then :
17813 ac_cv_lib_dl_dlopen=yes
17814 else
17815 ac_cv_lib_dl_dlopen=no
17816 fi
17817 rm -f core conftest.err conftest.$ac_objext \
17818 conftest$ac_exeext conftest.$ac_ext
17819 LIBS=$ac_check_lib_save_LIBS
17820 fi
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17822 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17823 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17824 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17825 else
17826
17827 lt_cv_dlopen="dyld"
17828 lt_cv_dlopen_libs=
17829 lt_cv_dlopen_self=yes
17830
17831 fi
17832
17833 ;;
17834
17835 *)
17836 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17837 if test "x$ac_cv_func_shl_load" = x""yes; then :
17838 lt_cv_dlopen="shl_load"
17839 else
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17841 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17842 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17843 $as_echo_n "(cached) " >&6
17844 else
17845 ac_check_lib_save_LIBS=$LIBS
17846 LIBS="-ldld $LIBS"
17847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17848 /* end confdefs.h. */
17849
17850 /* Override any GCC internal prototype to avoid an error.
17851 Use char because int might match the return type of a GCC
17852 builtin and then its argument prototype would still apply. */
17853 #ifdef __cplusplus
17854 extern "C"
17855 #endif
17856 char shl_load ();
17857 int
17858 main ()
17859 {
17860 return shl_load ();
17861 ;
17862 return 0;
17863 }
17864 _ACEOF
17865 if ac_fn_c_try_link "$LINENO"; then :
17866 ac_cv_lib_dld_shl_load=yes
17867 else
17868 ac_cv_lib_dld_shl_load=no
17869 fi
17870 rm -f core conftest.err conftest.$ac_objext \
17871 conftest$ac_exeext conftest.$ac_ext
17872 LIBS=$ac_check_lib_save_LIBS
17873 fi
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17875 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17876 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17877 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17878 else
17879 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17880 if test "x$ac_cv_func_dlopen" = x""yes; then :
17881 lt_cv_dlopen="dlopen"
17882 else
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17884 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17885 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17886 $as_echo_n "(cached) " >&6
17887 else
17888 ac_check_lib_save_LIBS=$LIBS
17889 LIBS="-ldl $LIBS"
17890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17891 /* end confdefs.h. */
17892
17893 /* Override any GCC internal prototype to avoid an error.
17894 Use char because int might match the return type of a GCC
17895 builtin and then its argument prototype would still apply. */
17896 #ifdef __cplusplus
17897 extern "C"
17898 #endif
17899 char dlopen ();
17900 int
17901 main ()
17902 {
17903 return dlopen ();
17904 ;
17905 return 0;
17906 }
17907 _ACEOF
17908 if ac_fn_c_try_link "$LINENO"; then :
17909 ac_cv_lib_dl_dlopen=yes
17910 else
17911 ac_cv_lib_dl_dlopen=no
17912 fi
17913 rm -f core conftest.err conftest.$ac_objext \
17914 conftest$ac_exeext conftest.$ac_ext
17915 LIBS=$ac_check_lib_save_LIBS
17916 fi
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17918 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17919 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17920 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17921 else
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17923 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17924 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17925 $as_echo_n "(cached) " >&6
17926 else
17927 ac_check_lib_save_LIBS=$LIBS
17928 LIBS="-lsvld $LIBS"
17929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17930 /* end confdefs.h. */
17931
17932 /* Override any GCC internal prototype to avoid an error.
17933 Use char because int might match the return type of a GCC
17934 builtin and then its argument prototype would still apply. */
17935 #ifdef __cplusplus
17936 extern "C"
17937 #endif
17938 char dlopen ();
17939 int
17940 main ()
17941 {
17942 return dlopen ();
17943 ;
17944 return 0;
17945 }
17946 _ACEOF
17947 if ac_fn_c_try_link "$LINENO"; then :
17948 ac_cv_lib_svld_dlopen=yes
17949 else
17950 ac_cv_lib_svld_dlopen=no
17951 fi
17952 rm -f core conftest.err conftest.$ac_objext \
17953 conftest$ac_exeext conftest.$ac_ext
17954 LIBS=$ac_check_lib_save_LIBS
17955 fi
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17957 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17958 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17959 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17960 else
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17962 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17963 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17964 $as_echo_n "(cached) " >&6
17965 else
17966 ac_check_lib_save_LIBS=$LIBS
17967 LIBS="-ldld $LIBS"
17968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17969 /* end confdefs.h. */
17970
17971 /* Override any GCC internal prototype to avoid an error.
17972 Use char because int might match the return type of a GCC
17973 builtin and then its argument prototype would still apply. */
17974 #ifdef __cplusplus
17975 extern "C"
17976 #endif
17977 char dld_link ();
17978 int
17979 main ()
17980 {
17981 return dld_link ();
17982 ;
17983 return 0;
17984 }
17985 _ACEOF
17986 if ac_fn_c_try_link "$LINENO"; then :
17987 ac_cv_lib_dld_dld_link=yes
17988 else
17989 ac_cv_lib_dld_dld_link=no
17990 fi
17991 rm -f core conftest.err conftest.$ac_objext \
17992 conftest$ac_exeext conftest.$ac_ext
17993 LIBS=$ac_check_lib_save_LIBS
17994 fi
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17996 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17997 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17998 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17999 fi
18000
18001
18002 fi
18003
18004
18005 fi
18006
18007
18008 fi
18009
18010
18011 fi
18012
18013
18014 fi
18015
18016 ;;
18017 esac
18018
18019 if test "x$lt_cv_dlopen" != xno; then
18020 enable_dlopen=yes
18021 else
18022 enable_dlopen=no
18023 fi
18024
18025 case $lt_cv_dlopen in
18026 dlopen)
18027 save_CPPFLAGS="$CPPFLAGS"
18028 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18029
18030 save_LDFLAGS="$LDFLAGS"
18031 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18032
18033 save_LIBS="$LIBS"
18034 LIBS="$lt_cv_dlopen_libs $LIBS"
18035
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18037 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18038 if test "${lt_cv_dlopen_self+set}" = set; then :
18039 $as_echo_n "(cached) " >&6
18040 else
18041 if test "$cross_compiling" = yes; then :
18042 lt_cv_dlopen_self=cross
18043 else
18044 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18045 lt_status=$lt_dlunknown
18046 cat > conftest.$ac_ext <<_LT_EOF
18047 #line 18047 "configure"
18048 #include "confdefs.h"
18049
18050 #if HAVE_DLFCN_H
18051 #include <dlfcn.h>
18052 #endif
18053
18054 #include <stdio.h>
18055
18056 #ifdef RTLD_GLOBAL
18057 # define LT_DLGLOBAL RTLD_GLOBAL
18058 #else
18059 # ifdef DL_GLOBAL
18060 # define LT_DLGLOBAL DL_GLOBAL
18061 # else
18062 # define LT_DLGLOBAL 0
18063 # endif
18064 #endif
18065
18066 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18067 find out it does not work in some platform. */
18068 #ifndef LT_DLLAZY_OR_NOW
18069 # ifdef RTLD_LAZY
18070 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18071 # else
18072 # ifdef DL_LAZY
18073 # define LT_DLLAZY_OR_NOW DL_LAZY
18074 # else
18075 # ifdef RTLD_NOW
18076 # define LT_DLLAZY_OR_NOW RTLD_NOW
18077 # else
18078 # ifdef DL_NOW
18079 # define LT_DLLAZY_OR_NOW DL_NOW
18080 # else
18081 # define LT_DLLAZY_OR_NOW 0
18082 # endif
18083 # endif
18084 # endif
18085 # endif
18086 #endif
18087
18088 /* When -fvisbility=hidden is used, assume the code has been annotated
18089 correspondingly for the symbols needed. */
18090 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18091 void fnord () __attribute__((visibility("default")));
18092 #endif
18093
18094 void fnord () { int i=42; }
18095 int main ()
18096 {
18097 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18098 int status = $lt_dlunknown;
18099
18100 if (self)
18101 {
18102 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18103 else
18104 {
18105 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18106 else puts (dlerror ());
18107 }
18108 /* dlclose (self); */
18109 }
18110 else
18111 puts (dlerror ());
18112
18113 return status;
18114 }
18115 _LT_EOF
18116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18117 (eval $ac_link) 2>&5
18118 ac_status=$?
18119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18120 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18121 (./conftest; exit; ) >&5 2>/dev/null
18122 lt_status=$?
18123 case x$lt_status in
18124 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18125 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18126 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18127 esac
18128 else :
18129 # compilation failed
18130 lt_cv_dlopen_self=no
18131 fi
18132 fi
18133 rm -fr conftest*
18134
18135
18136 fi
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18138 $as_echo "$lt_cv_dlopen_self" >&6; }
18139
18140 if test "x$lt_cv_dlopen_self" = xyes; then
18141 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18143 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18144 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18145 $as_echo_n "(cached) " >&6
18146 else
18147 if test "$cross_compiling" = yes; then :
18148 lt_cv_dlopen_self_static=cross
18149 else
18150 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18151 lt_status=$lt_dlunknown
18152 cat > conftest.$ac_ext <<_LT_EOF
18153 #line 18153 "configure"
18154 #include "confdefs.h"
18155
18156 #if HAVE_DLFCN_H
18157 #include <dlfcn.h>
18158 #endif
18159
18160 #include <stdio.h>
18161
18162 #ifdef RTLD_GLOBAL
18163 # define LT_DLGLOBAL RTLD_GLOBAL
18164 #else
18165 # ifdef DL_GLOBAL
18166 # define LT_DLGLOBAL DL_GLOBAL
18167 # else
18168 # define LT_DLGLOBAL 0
18169 # endif
18170 #endif
18171
18172 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18173 find out it does not work in some platform. */
18174 #ifndef LT_DLLAZY_OR_NOW
18175 # ifdef RTLD_LAZY
18176 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18177 # else
18178 # ifdef DL_LAZY
18179 # define LT_DLLAZY_OR_NOW DL_LAZY
18180 # else
18181 # ifdef RTLD_NOW
18182 # define LT_DLLAZY_OR_NOW RTLD_NOW
18183 # else
18184 # ifdef DL_NOW
18185 # define LT_DLLAZY_OR_NOW DL_NOW
18186 # else
18187 # define LT_DLLAZY_OR_NOW 0
18188 # endif
18189 # endif
18190 # endif
18191 # endif
18192 #endif
18193
18194 /* When -fvisbility=hidden is used, assume the code has been annotated
18195 correspondingly for the symbols needed. */
18196 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18197 void fnord () __attribute__((visibility("default")));
18198 #endif
18199
18200 void fnord () { int i=42; }
18201 int main ()
18202 {
18203 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18204 int status = $lt_dlunknown;
18205
18206 if (self)
18207 {
18208 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18209 else
18210 {
18211 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18212 else puts (dlerror ());
18213 }
18214 /* dlclose (self); */
18215 }
18216 else
18217 puts (dlerror ());
18218
18219 return status;
18220 }
18221 _LT_EOF
18222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18223 (eval $ac_link) 2>&5
18224 ac_status=$?
18225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18226 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18227 (./conftest; exit; ) >&5 2>/dev/null
18228 lt_status=$?
18229 case x$lt_status in
18230 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18231 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18232 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18233 esac
18234 else :
18235 # compilation failed
18236 lt_cv_dlopen_self_static=no
18237 fi
18238 fi
18239 rm -fr conftest*
18240
18241
18242 fi
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18244 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18245 fi
18246
18247 CPPFLAGS="$save_CPPFLAGS"
18248 LDFLAGS="$save_LDFLAGS"
18249 LIBS="$save_LIBS"
18250 ;;
18251 esac
18252
18253 case $lt_cv_dlopen_self in
18254 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18255 *) enable_dlopen_self=unknown ;;
18256 esac
18257
18258 case $lt_cv_dlopen_self_static in
18259 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18260 *) enable_dlopen_self_static=unknown ;;
18261 esac
18262 fi
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280 striplib=
18281 old_striplib=
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18283 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18284 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18285 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18286 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18288 $as_echo "yes" >&6; }
18289 else
18290 # FIXME - insert some real tests, host_os isn't really good enough
18291 case $host_os in
18292 darwin*)
18293 if test -n "$STRIP" ; then
18294 striplib="$STRIP -x"
18295 old_striplib="$STRIP -S"
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18297 $as_echo "yes" >&6; }
18298 else
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18300 $as_echo "no" >&6; }
18301 fi
18302 ;;
18303 *)
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18305 $as_echo "no" >&6; }
18306 ;;
18307 esac
18308 fi
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321 # Report which library types will actually be built
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18323 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18325 $as_echo "$can_build_shared" >&6; }
18326
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18328 $as_echo_n "checking whether to build shared libraries... " >&6; }
18329 test "$can_build_shared" = "no" && enable_shared=no
18330
18331 # On AIX, shared libraries and static libraries use the same namespace, and
18332 # are all built from PIC.
18333 case $host_os in
18334 aix3*)
18335 test "$enable_shared" = yes && enable_static=no
18336 if test -n "$RANLIB"; then
18337 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18338 postinstall_cmds='$RANLIB $lib'
18339 fi
18340 ;;
18341
18342 aix[4-9]*)
18343 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18344 test "$enable_shared" = yes && enable_static=no
18345 fi
18346 ;;
18347 esac
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18349 $as_echo "$enable_shared" >&6; }
18350
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18352 $as_echo_n "checking whether to build static libraries... " >&6; }
18353 # Make sure either enable_shared or enable_static is yes.
18354 test "$enable_shared" = yes || enable_static=yes
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18356 $as_echo "$enable_static" >&6; }
18357
18358
18359
18360
18361 fi
18362 ac_ext=c
18363 ac_cpp='$CPP $CPPFLAGS'
18364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18367
18368 CC="$lt_save_CC"
18369
18370 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18371 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18372 (test "X$CXX" != "Xg++"))) ; then
18373 ac_ext=cpp
18374 ac_cpp='$CXXCPP $CPPFLAGS'
18375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18379 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18380 if test -z "$CXXCPP"; then
18381 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18382 $as_echo_n "(cached) " >&6
18383 else
18384 # Double quotes because CXXCPP needs to be expanded
18385 for CXXCPP in "$CXX -E" "/lib/cpp"
18386 do
18387 ac_preproc_ok=false
18388 for ac_cxx_preproc_warn_flag in '' yes
18389 do
18390 # Use a header file that comes with gcc, so configuring glibc
18391 # with a fresh cross-compiler works.
18392 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18393 # <limits.h> exists even on freestanding compilers.
18394 # On the NeXT, cc -E runs the code through the compiler's parser,
18395 # not just through cpp. "Syntax error" is here to catch this case.
18396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18397 /* end confdefs.h. */
18398 #ifdef __STDC__
18399 # include <limits.h>
18400 #else
18401 # include <assert.h>
18402 #endif
18403 Syntax error
18404 _ACEOF
18405 if ac_fn_cxx_try_cpp "$LINENO"; then :
18406
18407 else
18408 # Broken: fails on valid input.
18409 continue
18410 fi
18411 rm -f conftest.err conftest.$ac_ext
18412
18413 # OK, works on sane cases. Now check whether nonexistent headers
18414 # can be detected and how.
18415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18416 /* end confdefs.h. */
18417 #include <ac_nonexistent.h>
18418 _ACEOF
18419 if ac_fn_cxx_try_cpp "$LINENO"; then :
18420 # Broken: success on invalid input.
18421 continue
18422 else
18423 # Passes both tests.
18424 ac_preproc_ok=:
18425 break
18426 fi
18427 rm -f conftest.err conftest.$ac_ext
18428
18429 done
18430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18431 rm -f conftest.err conftest.$ac_ext
18432 if $ac_preproc_ok; then :
18433 break
18434 fi
18435
18436 done
18437 ac_cv_prog_CXXCPP=$CXXCPP
18438
18439 fi
18440 CXXCPP=$ac_cv_prog_CXXCPP
18441 else
18442 ac_cv_prog_CXXCPP=$CXXCPP
18443 fi
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18445 $as_echo "$CXXCPP" >&6; }
18446 ac_preproc_ok=false
18447 for ac_cxx_preproc_warn_flag in '' yes
18448 do
18449 # Use a header file that comes with gcc, so configuring glibc
18450 # with a fresh cross-compiler works.
18451 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18452 # <limits.h> exists even on freestanding compilers.
18453 # On the NeXT, cc -E runs the code through the compiler's parser,
18454 # not just through cpp. "Syntax error" is here to catch this case.
18455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18456 /* end confdefs.h. */
18457 #ifdef __STDC__
18458 # include <limits.h>
18459 #else
18460 # include <assert.h>
18461 #endif
18462 Syntax error
18463 _ACEOF
18464 if ac_fn_cxx_try_cpp "$LINENO"; then :
18465
18466 else
18467 # Broken: fails on valid input.
18468 continue
18469 fi
18470 rm -f conftest.err conftest.$ac_ext
18471
18472 # OK, works on sane cases. Now check whether nonexistent headers
18473 # can be detected and how.
18474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18475 /* end confdefs.h. */
18476 #include <ac_nonexistent.h>
18477 _ACEOF
18478 if ac_fn_cxx_try_cpp "$LINENO"; then :
18479 # Broken: success on invalid input.
18480 continue
18481 else
18482 # Passes both tests.
18483 ac_preproc_ok=:
18484 break
18485 fi
18486 rm -f conftest.err conftest.$ac_ext
18487
18488 done
18489 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18490 rm -f conftest.err conftest.$ac_ext
18491 if $ac_preproc_ok; then :
18492
18493 else
18494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18496 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18497 See \`config.log' for more details." "$LINENO" 5; }
18498 fi
18499
18500 ac_ext=c
18501 ac_cpp='$CPP $CPPFLAGS'
18502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18505
18506 else
18507 _lt_caught_CXX_error=yes
18508 fi
18509
18510 ac_ext=cpp
18511 ac_cpp='$CXXCPP $CPPFLAGS'
18512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18515
18516 archive_cmds_need_lc_CXX=no
18517 allow_undefined_flag_CXX=
18518 always_export_symbols_CXX=no
18519 archive_expsym_cmds_CXX=
18520 compiler_needs_object_CXX=no
18521 export_dynamic_flag_spec_CXX=
18522 hardcode_direct_CXX=no
18523 hardcode_direct_absolute_CXX=no
18524 hardcode_libdir_flag_spec_CXX=
18525 hardcode_libdir_flag_spec_ld_CXX=
18526 hardcode_libdir_separator_CXX=
18527 hardcode_minus_L_CXX=no
18528 hardcode_shlibpath_var_CXX=unsupported
18529 hardcode_automatic_CXX=no
18530 inherit_rpath_CXX=no
18531 module_cmds_CXX=
18532 module_expsym_cmds_CXX=
18533 link_all_deplibs_CXX=unknown
18534 old_archive_cmds_CXX=$old_archive_cmds
18535 reload_flag_CXX=$reload_flag
18536 reload_cmds_CXX=$reload_cmds
18537 no_undefined_flag_CXX=
18538 whole_archive_flag_spec_CXX=
18539 enable_shared_with_static_runtimes_CXX=no
18540
18541 # Source file extension for C++ test sources.
18542 ac_ext=cpp
18543
18544 # Object file extension for compiled C++ test sources.
18545 objext=o
18546 objext_CXX=$objext
18547
18548 # No sense in running all these tests if we already determined that
18549 # the CXX compiler isn't working. Some variables (like enable_shared)
18550 # are currently assumed to apply to all compilers on this platform,
18551 # and will be corrupted by setting them based on a non-working compiler.
18552 if test "$_lt_caught_CXX_error" != yes; then
18553 # Code to be used in simple compile tests
18554 lt_simple_compile_test_code="int some_variable = 0;"
18555
18556 # Code to be used in simple link tests
18557 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18558
18559 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18560
18561
18562
18563
18564
18565
18566 # If no C compiler was specified, use CC.
18567 LTCC=${LTCC-"$CC"}
18568
18569 # If no C compiler flags were specified, use CFLAGS.
18570 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18571
18572 # Allow CC to be a program name with arguments.
18573 compiler=$CC
18574
18575
18576 # save warnings/boilerplate of simple test code
18577 ac_outfile=conftest.$ac_objext
18578 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18579 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18580 _lt_compiler_boilerplate=`cat conftest.err`
18581 $RM conftest*
18582
18583 ac_outfile=conftest.$ac_objext
18584 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18585 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18586 _lt_linker_boilerplate=`cat conftest.err`
18587 $RM -r conftest*
18588
18589
18590 # Allow CC to be a program name with arguments.
18591 lt_save_CC=$CC
18592 lt_save_LD=$LD
18593 lt_save_GCC=$GCC
18594 GCC=$GXX
18595 lt_save_with_gnu_ld=$with_gnu_ld
18596 lt_save_path_LD=$lt_cv_path_LD
18597 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18598 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18599 else
18600 $as_unset lt_cv_prog_gnu_ld
18601 fi
18602 if test -n "${lt_cv_path_LDCXX+set}"; then
18603 lt_cv_path_LD=$lt_cv_path_LDCXX
18604 else
18605 $as_unset lt_cv_path_LD
18606 fi
18607 test -z "${LDCXX+set}" || LD=$LDCXX
18608 CC=${CXX-"c++"}
18609 compiler=$CC
18610 compiler_CXX=$CC
18611 for cc_temp in $compiler""; do
18612 case $cc_temp in
18613 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18614 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18615 \-*) ;;
18616 *) break;;
18617 esac
18618 done
18619 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18620
18621
18622 if test -n "$compiler"; then
18623 # We don't want -fno-exception when compiling C++ code, so set the
18624 # no_builtin_flag separately
18625 if test "$GXX" = yes; then
18626 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18627 else
18628 lt_prog_compiler_no_builtin_flag_CXX=
18629 fi
18630
18631 if test "$GXX" = yes; then
18632 # Set up default GNU C++ configuration
18633
18634
18635
18636 # Check whether --with-gnu-ld was given.
18637 if test "${with_gnu_ld+set}" = set; then :
18638 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18639 else
18640 with_gnu_ld=no
18641 fi
18642
18643 ac_prog=ld
18644 if test "$GCC" = yes; then
18645 # Check if gcc -print-prog-name=ld gives a path.
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18647 $as_echo_n "checking for ld used by $CC... " >&6; }
18648 case $host in
18649 *-*-mingw*)
18650 # gcc leaves a trailing carriage return which upsets mingw
18651 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18652 *)
18653 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18654 esac
18655 case $ac_prog in
18656 # Accept absolute paths.
18657 [\\/]* | ?:[\\/]*)
18658 re_direlt='/[^/][^/]*/\.\./'
18659 # Canonicalize the pathname of ld
18660 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18661 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18662 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18663 done
18664 test -z "$LD" && LD="$ac_prog"
18665 ;;
18666 "")
18667 # If it fails, then pretend we aren't using GCC.
18668 ac_prog=ld
18669 ;;
18670 *)
18671 # If it is relative, then search for the first ld in PATH.
18672 with_gnu_ld=unknown
18673 ;;
18674 esac
18675 elif test "$with_gnu_ld" = yes; then
18676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18677 $as_echo_n "checking for GNU ld... " >&6; }
18678 else
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18680 $as_echo_n "checking for non-GNU ld... " >&6; }
18681 fi
18682 if test "${lt_cv_path_LD+set}" = set; then :
18683 $as_echo_n "(cached) " >&6
18684 else
18685 if test -z "$LD"; then
18686 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18687 for ac_dir in $PATH; do
18688 IFS="$lt_save_ifs"
18689 test -z "$ac_dir" && ac_dir=.
18690 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18691 lt_cv_path_LD="$ac_dir/$ac_prog"
18692 # Check to see if the program is GNU ld. I'd rather use --version,
18693 # but apparently some variants of GNU ld only accept -v.
18694 # Break only if it was the GNU/non-GNU ld that we prefer.
18695 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18696 *GNU* | *'with BFD'*)
18697 test "$with_gnu_ld" != no && break
18698 ;;
18699 *)
18700 test "$with_gnu_ld" != yes && break
18701 ;;
18702 esac
18703 fi
18704 done
18705 IFS="$lt_save_ifs"
18706 else
18707 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18708 fi
18709 fi
18710
18711 LD="$lt_cv_path_LD"
18712 if test -n "$LD"; then
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18714 $as_echo "$LD" >&6; }
18715 else
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18717 $as_echo "no" >&6; }
18718 fi
18719 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18721 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18722 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18723 $as_echo_n "(cached) " >&6
18724 else
18725 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18726 case `$LD -v 2>&1 </dev/null` in
18727 *GNU* | *'with BFD'*)
18728 lt_cv_prog_gnu_ld=yes
18729 ;;
18730 *)
18731 lt_cv_prog_gnu_ld=no
18732 ;;
18733 esac
18734 fi
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18736 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18737 with_gnu_ld=$lt_cv_prog_gnu_ld
18738
18739
18740
18741
18742
18743
18744
18745 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18746 # archiving commands below assume that GNU ld is being used.
18747 if test "$with_gnu_ld" = yes; then
18748 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18749 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'
18750
18751 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18752 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18753
18754 # If archive_cmds runs LD, not CC, wlarc should be empty
18755 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18756 # investigate it a little bit more. (MM)
18757 wlarc='${wl}'
18758
18759 # ancient GNU ld didn't support --whole-archive et. al.
18760 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18761 $GREP 'no-whole-archive' > /dev/null; then
18762 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18763 else
18764 whole_archive_flag_spec_CXX=
18765 fi
18766 else
18767 with_gnu_ld=no
18768 wlarc=
18769
18770 # A generic and very simple default shared library creation
18771 # command for GNU C++ for the case where it uses the native
18772 # linker, instead of GNU ld. If possible, this setting should
18773 # overridden to take advantage of the native linker features on
18774 # the platform it is being used on.
18775 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18776 fi
18777
18778 # Commands to make compiler produce verbose output that lists
18779 # what "hidden" libraries, object files and flags are used when
18780 # linking a shared library.
18781 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18782
18783 else
18784 GXX=no
18785 with_gnu_ld=no
18786 wlarc=
18787 fi
18788
18789 # PORTME: fill in a description of your system's C++ link characteristics
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18791 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18792 ld_shlibs_CXX=yes
18793 case $host_os in
18794 aix3*)
18795 # FIXME: insert proper C++ library support
18796 ld_shlibs_CXX=no
18797 ;;
18798 aix[4-9]*)
18799 if test "$host_cpu" = ia64; then
18800 # On IA64, the linker does run time linking by default, so we don't
18801 # have to do anything special.
18802 aix_use_runtimelinking=no
18803 exp_sym_flag='-Bexport'
18804 no_entry_flag=""
18805 else
18806 aix_use_runtimelinking=no
18807
18808 # Test if we are trying to use run time linking or normal
18809 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18810 # need to do runtime linking.
18811 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18812 for ld_flag in $LDFLAGS; do
18813 case $ld_flag in
18814 *-brtl*)
18815 aix_use_runtimelinking=yes
18816 break
18817 ;;
18818 esac
18819 done
18820 ;;
18821 esac
18822
18823 exp_sym_flag='-bexport'
18824 no_entry_flag='-bnoentry'
18825 fi
18826
18827 # When large executables or shared objects are built, AIX ld can
18828 # have problems creating the table of contents. If linking a library
18829 # or program results in "error TOC overflow" add -mminimal-toc to
18830 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18831 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18832
18833 archive_cmds_CXX=''
18834 hardcode_direct_CXX=yes
18835 hardcode_direct_absolute_CXX=yes
18836 hardcode_libdir_separator_CXX=':'
18837 link_all_deplibs_CXX=yes
18838 file_list_spec_CXX='${wl}-f,'
18839
18840 if test "$GXX" = yes; then
18841 case $host_os in aix4.[012]|aix4.[012].*)
18842 # We only want to do this on AIX 4.2 and lower, the check
18843 # below for broken collect2 doesn't work under 4.3+
18844 collect2name=`${CC} -print-prog-name=collect2`
18845 if test -f "$collect2name" &&
18846 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18847 then
18848 # We have reworked collect2
18849 :
18850 else
18851 # We have old collect2
18852 hardcode_direct_CXX=unsupported
18853 # It fails to find uninstalled libraries when the uninstalled
18854 # path is not listed in the libpath. Setting hardcode_minus_L
18855 # to unsupported forces relinking
18856 hardcode_minus_L_CXX=yes
18857 hardcode_libdir_flag_spec_CXX='-L$libdir'
18858 hardcode_libdir_separator_CXX=
18859 fi
18860 esac
18861 shared_flag='-shared'
18862 if test "$aix_use_runtimelinking" = yes; then
18863 shared_flag="$shared_flag "'${wl}-G'
18864 fi
18865 else
18866 # not using gcc
18867 if test "$host_cpu" = ia64; then
18868 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18869 # chokes on -Wl,-G. The following line is correct:
18870 shared_flag='-G'
18871 else
18872 if test "$aix_use_runtimelinking" = yes; then
18873 shared_flag='${wl}-G'
18874 else
18875 shared_flag='${wl}-bM:SRE'
18876 fi
18877 fi
18878 fi
18879
18880 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18881 # It seems that -bexpall does not export symbols beginning with
18882 # underscore (_), so it is better to generate a list of symbols to
18883 # export.
18884 always_export_symbols_CXX=yes
18885 if test "$aix_use_runtimelinking" = yes; then
18886 # Warning - without using the other runtime loading flags (-brtl),
18887 # -berok will link without error, but may produce a broken library.
18888 allow_undefined_flag_CXX='-berok'
18889 # Determine the default libpath from the value encoded in an empty
18890 # executable.
18891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18892 /* end confdefs.h. */
18893
18894 int
18895 main ()
18896 {
18897
18898 ;
18899 return 0;
18900 }
18901 _ACEOF
18902 if ac_fn_cxx_try_link "$LINENO"; then :
18903
18904 lt_aix_libpath_sed='
18905 /Import File Strings/,/^$/ {
18906 /^0/ {
18907 s/^0 *\(.*\)$/\1/
18908 p
18909 }
18910 }'
18911 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18912 # Check for a 64-bit object if we didn't find anything.
18913 if test -z "$aix_libpath"; then
18914 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18915 fi
18916 fi
18917 rm -f core conftest.err conftest.$ac_objext \
18918 conftest$ac_exeext conftest.$ac_ext
18919 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18920
18921 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18922
18923 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"
18924 else
18925 if test "$host_cpu" = ia64; then
18926 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18927 allow_undefined_flag_CXX="-z nodefs"
18928 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"
18929 else
18930 # Determine the default libpath from the value encoded in an
18931 # empty executable.
18932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18933 /* end confdefs.h. */
18934
18935 int
18936 main ()
18937 {
18938
18939 ;
18940 return 0;
18941 }
18942 _ACEOF
18943 if ac_fn_cxx_try_link "$LINENO"; then :
18944
18945 lt_aix_libpath_sed='
18946 /Import File Strings/,/^$/ {
18947 /^0/ {
18948 s/^0 *\(.*\)$/\1/
18949 p
18950 }
18951 }'
18952 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18953 # Check for a 64-bit object if we didn't find anything.
18954 if test -z "$aix_libpath"; then
18955 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18956 fi
18957 fi
18958 rm -f core conftest.err conftest.$ac_objext \
18959 conftest$ac_exeext conftest.$ac_ext
18960 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18961
18962 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18963 # Warning - without using the other run time loading flags,
18964 # -berok will link without error, but may produce a broken library.
18965 no_undefined_flag_CXX=' ${wl}-bernotok'
18966 allow_undefined_flag_CXX=' ${wl}-berok'
18967 if test "$with_gnu_ld" = yes; then
18968 # We only use this code for GNU lds that support --whole-archive.
18969 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18970 else
18971 # Exported symbols can be pulled into shared objects from archives
18972 whole_archive_flag_spec_CXX='$convenience'
18973 fi
18974 archive_cmds_need_lc_CXX=yes
18975 # This is similar to how AIX traditionally builds its shared
18976 # libraries.
18977 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'
18978 fi
18979 fi
18980 ;;
18981
18982 beos*)
18983 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18984 allow_undefined_flag_CXX=unsupported
18985 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18986 # support --undefined. This deserves some investigation. FIXME
18987 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18988 else
18989 ld_shlibs_CXX=no
18990 fi
18991 ;;
18992
18993 chorus*)
18994 case $cc_basename in
18995 *)
18996 # FIXME: insert proper C++ library support
18997 ld_shlibs_CXX=no
18998 ;;
18999 esac
19000 ;;
19001
19002 cygwin* | mingw* | pw32* | cegcc*)
19003 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19004 # as there is no search path for DLLs.
19005 hardcode_libdir_flag_spec_CXX='-L$libdir'
19006 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19007 allow_undefined_flag_CXX=unsupported
19008 always_export_symbols_CXX=no
19009 enable_shared_with_static_runtimes_CXX=yes
19010
19011 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19012 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'
19013 # If the export-symbols file already is a .def file (1st line
19014 # is EXPORTS), use it as is; otherwise, prepend...
19015 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19016 cp $export_symbols $output_objdir/$soname.def;
19017 else
19018 echo EXPORTS > $output_objdir/$soname.def;
19019 cat $export_symbols >> $output_objdir/$soname.def;
19020 fi~
19021 $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'
19022 else
19023 ld_shlibs_CXX=no
19024 fi
19025 ;;
19026 darwin* | rhapsody*)
19027
19028
19029 archive_cmds_need_lc_CXX=no
19030 hardcode_direct_CXX=no
19031 hardcode_automatic_CXX=yes
19032 hardcode_shlibpath_var_CXX=unsupported
19033 if test "$lt_cv_ld_force_load" = "yes"; then
19034 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\"`'
19035 else
19036 whole_archive_flag_spec_CXX=''
19037 fi
19038 link_all_deplibs_CXX=yes
19039 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19040 case $cc_basename in
19041 ifort*) _lt_dar_can_shared=yes ;;
19042 *) _lt_dar_can_shared=$GCC ;;
19043 esac
19044 if test "$_lt_dar_can_shared" = "yes"; then
19045 output_verbose_link_cmd=func_echo_all
19046 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}"
19047 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19048 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}"
19049 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}"
19050 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19051 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}"
19052 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}"
19053 fi
19054
19055 else
19056 ld_shlibs_CXX=no
19057 fi
19058
19059 ;;
19060
19061 dgux*)
19062 case $cc_basename in
19063 ec++*)
19064 # FIXME: insert proper C++ library support
19065 ld_shlibs_CXX=no
19066 ;;
19067 ghcx*)
19068 # Green Hills C++ Compiler
19069 # FIXME: insert proper C++ library support
19070 ld_shlibs_CXX=no
19071 ;;
19072 *)
19073 # FIXME: insert proper C++ library support
19074 ld_shlibs_CXX=no
19075 ;;
19076 esac
19077 ;;
19078
19079 freebsd[12]*)
19080 # C++ shared libraries reported to be fairly broken before
19081 # switch to ELF
19082 ld_shlibs_CXX=no
19083 ;;
19084
19085 freebsd-elf*)
19086 archive_cmds_need_lc_CXX=no
19087 ;;
19088
19089 freebsd* | dragonfly*)
19090 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19091 # conventions
19092 ld_shlibs_CXX=yes
19093 ;;
19094
19095 gnu*)
19096 ;;
19097
19098 haiku*)
19099 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19100 link_all_deplibs_CXX=yes
19101 ;;
19102
19103 hpux9*)
19104 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19105 hardcode_libdir_separator_CXX=:
19106 export_dynamic_flag_spec_CXX='${wl}-E'
19107 hardcode_direct_CXX=yes
19108 hardcode_minus_L_CXX=yes # Not in the search PATH,
19109 # but as the default
19110 # location of the library.
19111
19112 case $cc_basename in
19113 CC*)
19114 # FIXME: insert proper C++ library support
19115 ld_shlibs_CXX=no
19116 ;;
19117 aCC*)
19118 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'
19119 # Commands to make compiler produce verbose output that lists
19120 # what "hidden" libraries, object files and flags are used when
19121 # linking a shared library.
19122 #
19123 # There doesn't appear to be a way to prevent this compiler from
19124 # explicitly linking system object files so we need to strip them
19125 # from the output so that they don't get included in the library
19126 # dependencies.
19127 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"'
19128 ;;
19129 *)
19130 if test "$GXX" = yes; then
19131 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'
19132 else
19133 # FIXME: insert proper C++ library support
19134 ld_shlibs_CXX=no
19135 fi
19136 ;;
19137 esac
19138 ;;
19139
19140 hpux10*|hpux11*)
19141 if test $with_gnu_ld = no; then
19142 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19143 hardcode_libdir_separator_CXX=:
19144
19145 case $host_cpu in
19146 hppa*64*|ia64*)
19147 ;;
19148 *)
19149 export_dynamic_flag_spec_CXX='${wl}-E'
19150 ;;
19151 esac
19152 fi
19153 case $host_cpu in
19154 hppa*64*|ia64*)
19155 hardcode_direct_CXX=no
19156 hardcode_shlibpath_var_CXX=no
19157 ;;
19158 *)
19159 hardcode_direct_CXX=yes
19160 hardcode_direct_absolute_CXX=yes
19161 hardcode_minus_L_CXX=yes # Not in the search PATH,
19162 # but as the default
19163 # location of the library.
19164 ;;
19165 esac
19166
19167 case $cc_basename in
19168 CC*)
19169 # FIXME: insert proper C++ library support
19170 ld_shlibs_CXX=no
19171 ;;
19172 aCC*)
19173 case $host_cpu in
19174 hppa*64*)
19175 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19176 ;;
19177 ia64*)
19178 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19179 ;;
19180 *)
19181 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19182 ;;
19183 esac
19184 # Commands to make compiler produce verbose output that lists
19185 # what "hidden" libraries, object files and flags are used when
19186 # linking a shared library.
19187 #
19188 # There doesn't appear to be a way to prevent this compiler from
19189 # explicitly linking system object files so we need to strip them
19190 # from the output so that they don't get included in the library
19191 # dependencies.
19192 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"'
19193 ;;
19194 *)
19195 if test "$GXX" = yes; then
19196 if test $with_gnu_ld = no; then
19197 case $host_cpu in
19198 hppa*64*)
19199 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19200 ;;
19201 ia64*)
19202 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19203 ;;
19204 *)
19205 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'
19206 ;;
19207 esac
19208 fi
19209 else
19210 # FIXME: insert proper C++ library support
19211 ld_shlibs_CXX=no
19212 fi
19213 ;;
19214 esac
19215 ;;
19216
19217 interix[3-9]*)
19218 hardcode_direct_CXX=no
19219 hardcode_shlibpath_var_CXX=no
19220 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19221 export_dynamic_flag_spec_CXX='${wl}-E'
19222 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19223 # Instead, shared libraries are loaded at an image base (0x10000000 by
19224 # default) and relocated if they conflict, which is a slow very memory
19225 # consuming and fragmenting process. To avoid this, we pick a random,
19226 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19227 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19228 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'
19229 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'
19230 ;;
19231 irix5* | irix6*)
19232 case $cc_basename in
19233 CC*)
19234 # SGI C++
19235 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'
19236
19237 # Archives containing C++ object files must be created using
19238 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19239 # necessary to make sure instantiated templates are included
19240 # in the archive.
19241 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19242 ;;
19243 *)
19244 if test "$GXX" = yes; then
19245 if test "$with_gnu_ld" = no; then
19246 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'
19247 else
19248 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'
19249 fi
19250 fi
19251 link_all_deplibs_CXX=yes
19252 ;;
19253 esac
19254 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19255 hardcode_libdir_separator_CXX=:
19256 inherit_rpath_CXX=yes
19257 ;;
19258
19259 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19260 case $cc_basename in
19261 KCC*)
19262 # Kuck and Associates, Inc. (KAI) C++ Compiler
19263
19264 # KCC will only create a shared library if the output file
19265 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19266 # to its proper name (with version) after linking.
19267 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'
19268 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'
19269 # Commands to make compiler produce verbose output that lists
19270 # what "hidden" libraries, object files and flags are used when
19271 # linking a shared library.
19272 #
19273 # There doesn't appear to be a way to prevent this compiler from
19274 # explicitly linking system object files so we need to strip them
19275 # from the output so that they don't get included in the library
19276 # dependencies.
19277 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"'
19278
19279 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19280 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19281
19282 # Archives containing C++ object files must be created using
19283 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19284 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19285 ;;
19286 icpc* | ecpc* )
19287 # Intel C++
19288 with_gnu_ld=yes
19289 # version 8.0 and above of icpc choke on multiply defined symbols
19290 # if we add $predep_objects and $postdep_objects, however 7.1 and
19291 # earlier do not add the objects themselves.
19292 case `$CC -V 2>&1` in
19293 *"Version 7."*)
19294 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19295 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'
19296 ;;
19297 *) # Version 8.0 or newer
19298 tmp_idyn=
19299 case $host_cpu in
19300 ia64*) tmp_idyn=' -i_dynamic';;
19301 esac
19302 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19303 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'
19304 ;;
19305 esac
19306 archive_cmds_need_lc_CXX=no
19307 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19308 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19309 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19310 ;;
19311 pgCC* | pgcpp*)
19312 # Portland Group C++ compiler
19313 case `$CC -V` in
19314 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19315 prelink_cmds_CXX='tpldir=Template.dir~
19316 rm -rf $tpldir~
19317 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19318 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19319 old_archive_cmds_CXX='tpldir=Template.dir~
19320 rm -rf $tpldir~
19321 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19322 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19323 $RANLIB $oldlib'
19324 archive_cmds_CXX='tpldir=Template.dir~
19325 rm -rf $tpldir~
19326 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19327 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19328 archive_expsym_cmds_CXX='tpldir=Template.dir~
19329 rm -rf $tpldir~
19330 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19331 $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'
19332 ;;
19333 *) # Version 6 and above use weak symbols
19334 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19335 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'
19336 ;;
19337 esac
19338
19339 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19340 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19341 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'
19342 ;;
19343 cxx*)
19344 # Compaq C++
19345 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19346 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'
19347
19348 runpath_var=LD_RUN_PATH
19349 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19350 hardcode_libdir_separator_CXX=:
19351
19352 # Commands to make compiler produce verbose output that lists
19353 # what "hidden" libraries, object files and flags are used when
19354 # linking a shared library.
19355 #
19356 # There doesn't appear to be a way to prevent this compiler from
19357 # explicitly linking system object files so we need to strip them
19358 # from the output so that they don't get included in the library
19359 # dependencies.
19360 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'
19361 ;;
19362 xl* | mpixl* | bgxl*)
19363 # IBM XL 8.0 on PPC, with GNU ld
19364 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19365 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19366 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19367 if test "x$supports_anon_versioning" = xyes; then
19368 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19369 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19370 echo "local: *; };" >> $output_objdir/$libname.ver~
19371 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19372 fi
19373 ;;
19374 *)
19375 case `$CC -V 2>&1 | sed 5q` in
19376 *Sun\ C*)
19377 # Sun C++ 5.9
19378 no_undefined_flag_CXX=' -zdefs'
19379 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19380 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'
19381 hardcode_libdir_flag_spec_CXX='-R$libdir'
19382 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'
19383 compiler_needs_object_CXX=yes
19384
19385 # Not sure whether something based on
19386 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19387 # would be better.
19388 output_verbose_link_cmd='func_echo_all'
19389
19390 # Archives containing C++ object files must be created using
19391 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19392 # necessary to make sure instantiated templates are included
19393 # in the archive.
19394 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19395 ;;
19396 esac
19397 ;;
19398 esac
19399 ;;
19400
19401 lynxos*)
19402 # FIXME: insert proper C++ library support
19403 ld_shlibs_CXX=no
19404 ;;
19405
19406 m88k*)
19407 # FIXME: insert proper C++ library support
19408 ld_shlibs_CXX=no
19409 ;;
19410
19411 mvs*)
19412 case $cc_basename in
19413 cxx*)
19414 # FIXME: insert proper C++ library support
19415 ld_shlibs_CXX=no
19416 ;;
19417 *)
19418 # FIXME: insert proper C++ library support
19419 ld_shlibs_CXX=no
19420 ;;
19421 esac
19422 ;;
19423
19424 netbsd*)
19425 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19426 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19427 wlarc=
19428 hardcode_libdir_flag_spec_CXX='-R$libdir'
19429 hardcode_direct_CXX=yes
19430 hardcode_shlibpath_var_CXX=no
19431 fi
19432 # Workaround some broken pre-1.5 toolchains
19433 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19434 ;;
19435
19436 *nto* | *qnx*)
19437 ld_shlibs_CXX=yes
19438 ;;
19439
19440 openbsd2*)
19441 # C++ shared libraries are fairly broken
19442 ld_shlibs_CXX=no
19443 ;;
19444
19445 openbsd*)
19446 if test -f /usr/libexec/ld.so; then
19447 hardcode_direct_CXX=yes
19448 hardcode_shlibpath_var_CXX=no
19449 hardcode_direct_absolute_CXX=yes
19450 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19451 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19452 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19453 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19454 export_dynamic_flag_spec_CXX='${wl}-E'
19455 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19456 fi
19457 output_verbose_link_cmd=func_echo_all
19458 else
19459 ld_shlibs_CXX=no
19460 fi
19461 ;;
19462
19463 osf3* | osf4* | osf5*)
19464 case $cc_basename in
19465 KCC*)
19466 # Kuck and Associates, Inc. (KAI) C++ Compiler
19467
19468 # KCC will only create a shared library if the output file
19469 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19470 # to its proper name (with version) after linking.
19471 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'
19472
19473 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19474 hardcode_libdir_separator_CXX=:
19475
19476 # Archives containing C++ object files must be created using
19477 # the KAI C++ compiler.
19478 case $host in
19479 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19480 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19481 esac
19482 ;;
19483 RCC*)
19484 # Rational C++ 2.4.1
19485 # FIXME: insert proper C++ library support
19486 ld_shlibs_CXX=no
19487 ;;
19488 cxx*)
19489 case $host in
19490 osf3*)
19491 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19492 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'
19493 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19494 ;;
19495 *)
19496 allow_undefined_flag_CXX=' -expect_unresolved \*'
19497 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'
19498 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19499 echo "-hidden">> $lib.exp~
19500 $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~
19501 $RM $lib.exp'
19502 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19503 ;;
19504 esac
19505
19506 hardcode_libdir_separator_CXX=:
19507
19508 # Commands to make compiler produce verbose output that lists
19509 # what "hidden" libraries, object files and flags are used when
19510 # linking a shared library.
19511 #
19512 # There doesn't appear to be a way to prevent this compiler from
19513 # explicitly linking system object files so we need to strip them
19514 # from the output so that they don't get included in the library
19515 # dependencies.
19516 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"'
19517 ;;
19518 *)
19519 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19520 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19521 case $host in
19522 osf3*)
19523 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'
19524 ;;
19525 *)
19526 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'
19527 ;;
19528 esac
19529
19530 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19531 hardcode_libdir_separator_CXX=:
19532
19533 # Commands to make compiler produce verbose output that lists
19534 # what "hidden" libraries, object files and flags are used when
19535 # linking a shared library.
19536 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19537
19538 else
19539 # FIXME: insert proper C++ library support
19540 ld_shlibs_CXX=no
19541 fi
19542 ;;
19543 esac
19544 ;;
19545
19546 psos*)
19547 # FIXME: insert proper C++ library support
19548 ld_shlibs_CXX=no
19549 ;;
19550
19551 sunos4*)
19552 case $cc_basename in
19553 CC*)
19554 # Sun C++ 4.x
19555 # FIXME: insert proper C++ library support
19556 ld_shlibs_CXX=no
19557 ;;
19558 lcc*)
19559 # Lucid
19560 # FIXME: insert proper C++ library support
19561 ld_shlibs_CXX=no
19562 ;;
19563 *)
19564 # FIXME: insert proper C++ library support
19565 ld_shlibs_CXX=no
19566 ;;
19567 esac
19568 ;;
19569
19570 solaris*)
19571 case $cc_basename in
19572 CC*)
19573 # Sun C++ 4.2, 5.x and Centerline C++
19574 archive_cmds_need_lc_CXX=yes
19575 no_undefined_flag_CXX=' -zdefs'
19576 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19577 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19578 $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'
19579
19580 hardcode_libdir_flag_spec_CXX='-R$libdir'
19581 hardcode_shlibpath_var_CXX=no
19582 case $host_os in
19583 solaris2.[0-5] | solaris2.[0-5].*) ;;
19584 *)
19585 # The compiler driver will combine and reorder linker options,
19586 # but understands `-z linker_flag'.
19587 # Supported since Solaris 2.6 (maybe 2.5.1?)
19588 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19589 ;;
19590 esac
19591 link_all_deplibs_CXX=yes
19592
19593 output_verbose_link_cmd='func_echo_all'
19594
19595 # Archives containing C++ object files must be created using
19596 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19597 # necessary to make sure instantiated templates are included
19598 # in the archive.
19599 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19600 ;;
19601 gcx*)
19602 # Green Hills C++ Compiler
19603 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19604
19605 # The C++ compiler must be used to create the archive.
19606 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19607 ;;
19608 *)
19609 # GNU C++ compiler with Solaris linker
19610 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19611 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19612 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19613 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19614 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19615 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19616
19617 # Commands to make compiler produce verbose output that lists
19618 # what "hidden" libraries, object files and flags are used when
19619 # linking a shared library.
19620 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19621 else
19622 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19623 # platform.
19624 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19625 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19626 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19627
19628 # Commands to make compiler produce verbose output that lists
19629 # what "hidden" libraries, object files and flags are used when
19630 # linking a shared library.
19631 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19632 fi
19633
19634 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19635 case $host_os in
19636 solaris2.[0-5] | solaris2.[0-5].*) ;;
19637 *)
19638 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19639 ;;
19640 esac
19641 fi
19642 ;;
19643 esac
19644 ;;
19645
19646 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19647 no_undefined_flag_CXX='${wl}-z,text'
19648 archive_cmds_need_lc_CXX=no
19649 hardcode_shlibpath_var_CXX=no
19650 runpath_var='LD_RUN_PATH'
19651
19652 case $cc_basename in
19653 CC*)
19654 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19655 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19656 ;;
19657 *)
19658 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19659 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19660 ;;
19661 esac
19662 ;;
19663
19664 sysv5* | sco3.2v5* | sco5v6*)
19665 # Note: We can NOT use -z defs as we might desire, because we do not
19666 # link with -lc, and that would cause any symbols used from libc to
19667 # always be unresolved, which means just about no library would
19668 # ever link correctly. If we're not using GNU ld we use -z text
19669 # though, which does catch some bad symbols but isn't as heavy-handed
19670 # as -z defs.
19671 no_undefined_flag_CXX='${wl}-z,text'
19672 allow_undefined_flag_CXX='${wl}-z,nodefs'
19673 archive_cmds_need_lc_CXX=no
19674 hardcode_shlibpath_var_CXX=no
19675 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19676 hardcode_libdir_separator_CXX=':'
19677 link_all_deplibs_CXX=yes
19678 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19679 runpath_var='LD_RUN_PATH'
19680
19681 case $cc_basename in
19682 CC*)
19683 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19684 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19685 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19686 '"$old_archive_cmds_CXX"
19687 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19688 '"$reload_cmds_CXX"
19689 ;;
19690 *)
19691 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19692 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19693 ;;
19694 esac
19695 ;;
19696
19697 tandem*)
19698 case $cc_basename in
19699 NCC*)
19700 # NonStop-UX NCC 3.20
19701 # FIXME: insert proper C++ library support
19702 ld_shlibs_CXX=no
19703 ;;
19704 *)
19705 # FIXME: insert proper C++ library support
19706 ld_shlibs_CXX=no
19707 ;;
19708 esac
19709 ;;
19710
19711 vxworks*)
19712 # FIXME: insert proper C++ library support
19713 ld_shlibs_CXX=no
19714 ;;
19715
19716 *)
19717 # FIXME: insert proper C++ library support
19718 ld_shlibs_CXX=no
19719 ;;
19720 esac
19721
19722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19723 $as_echo "$ld_shlibs_CXX" >&6; }
19724 test "$ld_shlibs_CXX" = no && can_build_shared=no
19725
19726 GCC_CXX="$GXX"
19727 LD_CXX="$LD"
19728
19729 ## CAVEAT EMPTOR:
19730 ## There is no encapsulation within the following macros, do not change
19731 ## the running order or otherwise move them around unless you know exactly
19732 ## what you are doing...
19733 # Dependencies to place before and after the object being linked:
19734 predep_objects_CXX=
19735 postdep_objects_CXX=
19736 predeps_CXX=
19737 postdeps_CXX=
19738 compiler_lib_search_path_CXX=
19739
19740 cat > conftest.$ac_ext <<_LT_EOF
19741 class Foo
19742 {
19743 public:
19744 Foo (void) { a = 0; }
19745 private:
19746 int a;
19747 };
19748 _LT_EOF
19749
19750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19751 (eval $ac_compile) 2>&5
19752 ac_status=$?
19753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19754 test $ac_status = 0; }; then
19755 # Parse the compiler output and extract the necessary
19756 # objects, libraries and library flags.
19757
19758 # Sentinel used to keep track of whether or not we are before
19759 # the conftest object file.
19760 pre_test_object_deps_done=no
19761
19762 for p in `eval "$output_verbose_link_cmd"`; do
19763 case $p in
19764
19765 -L* | -R* | -l*)
19766 # Some compilers place space between "-{L,R}" and the path.
19767 # Remove the space.
19768 if test $p = "-L" ||
19769 test $p = "-R"; then
19770 prev=$p
19771 continue
19772 else
19773 prev=
19774 fi
19775
19776 if test "$pre_test_object_deps_done" = no; then
19777 case $p in
19778 -L* | -R*)
19779 # Internal compiler library paths should come after those
19780 # provided the user. The postdeps already come after the
19781 # user supplied libs so there is no need to process them.
19782 if test -z "$compiler_lib_search_path_CXX"; then
19783 compiler_lib_search_path_CXX="${prev}${p}"
19784 else
19785 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19786 fi
19787 ;;
19788 # The "-l" case would never come before the object being
19789 # linked, so don't bother handling this case.
19790 esac
19791 else
19792 if test -z "$postdeps_CXX"; then
19793 postdeps_CXX="${prev}${p}"
19794 else
19795 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19796 fi
19797 fi
19798 ;;
19799
19800 *.$objext)
19801 # This assumes that the test object file only shows up
19802 # once in the compiler output.
19803 if test "$p" = "conftest.$objext"; then
19804 pre_test_object_deps_done=yes
19805 continue
19806 fi
19807
19808 if test "$pre_test_object_deps_done" = no; then
19809 if test -z "$predep_objects_CXX"; then
19810 predep_objects_CXX="$p"
19811 else
19812 predep_objects_CXX="$predep_objects_CXX $p"
19813 fi
19814 else
19815 if test -z "$postdep_objects_CXX"; then
19816 postdep_objects_CXX="$p"
19817 else
19818 postdep_objects_CXX="$postdep_objects_CXX $p"
19819 fi
19820 fi
19821 ;;
19822
19823 *) ;; # Ignore the rest.
19824
19825 esac
19826 done
19827
19828 # Clean up.
19829 rm -f a.out a.exe
19830 else
19831 echo "libtool.m4: error: problem compiling CXX test program"
19832 fi
19833
19834 $RM -f confest.$objext
19835
19836 # PORTME: override above test on systems where it is broken
19837 case $host_os in
19838 interix[3-9]*)
19839 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19840 # hack all around it, let's just trust "g++" to DTRT.
19841 predep_objects_CXX=
19842 postdep_objects_CXX=
19843 postdeps_CXX=
19844 ;;
19845
19846 linux*)
19847 case `$CC -V 2>&1 | sed 5q` in
19848 *Sun\ C*)
19849 # Sun C++ 5.9
19850
19851 # The more standards-conforming stlport4 library is
19852 # incompatible with the Cstd library. Avoid specifying
19853 # it if it's in CXXFLAGS. Ignore libCrun as
19854 # -library=stlport4 depends on it.
19855 case " $CXX $CXXFLAGS " in
19856 *" -library=stlport4 "*)
19857 solaris_use_stlport4=yes
19858 ;;
19859 esac
19860
19861 if test "$solaris_use_stlport4" != yes; then
19862 postdeps_CXX='-library=Cstd -library=Crun'
19863 fi
19864 ;;
19865 esac
19866 ;;
19867
19868 solaris*)
19869 case $cc_basename in
19870 CC*)
19871 # The more standards-conforming stlport4 library is
19872 # incompatible with the Cstd library. Avoid specifying
19873 # it if it's in CXXFLAGS. Ignore libCrun as
19874 # -library=stlport4 depends on it.
19875 case " $CXX $CXXFLAGS " in
19876 *" -library=stlport4 "*)
19877 solaris_use_stlport4=yes
19878 ;;
19879 esac
19880
19881 # Adding this requires a known-good setup of shared libraries for
19882 # Sun compiler versions before 5.6, else PIC objects from an old
19883 # archive will be linked into the output, leading to subtle bugs.
19884 if test "$solaris_use_stlport4" != yes; then
19885 postdeps_CXX='-library=Cstd -library=Crun'
19886 fi
19887 ;;
19888 esac
19889 ;;
19890 esac
19891
19892
19893 case " $postdeps_CXX " in
19894 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19895 esac
19896 compiler_lib_search_dirs_CXX=
19897 if test -n "${compiler_lib_search_path_CXX}"; then
19898 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19899 fi
19900
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 lt_prog_compiler_wl_CXX=
19932 lt_prog_compiler_pic_CXX=
19933 lt_prog_compiler_static_CXX=
19934
19935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19936 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19937
19938 # C++ specific cases for pic, static, wl, etc.
19939 if test "$GXX" = yes; then
19940 lt_prog_compiler_wl_CXX='-Wl,'
19941 lt_prog_compiler_static_CXX='-static'
19942
19943 case $host_os in
19944 aix*)
19945 # All AIX code is PIC.
19946 if test "$host_cpu" = ia64; then
19947 # AIX 5 now supports IA64 processor
19948 lt_prog_compiler_static_CXX='-Bstatic'
19949 fi
19950 ;;
19951
19952 amigaos*)
19953 case $host_cpu in
19954 powerpc)
19955 # see comment about AmigaOS4 .so support
19956 lt_prog_compiler_pic_CXX='-fPIC'
19957 ;;
19958 m68k)
19959 # FIXME: we need at least 68020 code to build shared libraries, but
19960 # adding the `-m68020' flag to GCC prevents building anything better,
19961 # like `-m68040'.
19962 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19963 ;;
19964 esac
19965 ;;
19966
19967 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19968 # PIC is the default for these OSes.
19969 ;;
19970 mingw* | cygwin* | os2* | pw32* | cegcc*)
19971 # This hack is so that the source file can tell whether it is being
19972 # built for inclusion in a dll (and should export symbols for example).
19973 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19974 # (--disable-auto-import) libraries
19975 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19976 ;;
19977 darwin* | rhapsody*)
19978 # PIC is the default on this platform
19979 # Common symbols not allowed in MH_DYLIB files
19980 lt_prog_compiler_pic_CXX='-fno-common'
19981 ;;
19982 *djgpp*)
19983 # DJGPP does not support shared libraries at all
19984 lt_prog_compiler_pic_CXX=
19985 ;;
19986 haiku*)
19987 # PIC is the default for Haiku.
19988 # The "-static" flag exists, but is broken.
19989 lt_prog_compiler_static_CXX=
19990 ;;
19991 interix[3-9]*)
19992 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19993 # Instead, we relocate shared libraries at runtime.
19994 ;;
19995 sysv4*MP*)
19996 if test -d /usr/nec; then
19997 lt_prog_compiler_pic_CXX=-Kconform_pic
19998 fi
19999 ;;
20000 hpux*)
20001 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20002 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20003 # sets the default TLS model and affects inlining.
20004 case $host_cpu in
20005 hppa*64*)
20006 ;;
20007 *)
20008 lt_prog_compiler_pic_CXX='-fPIC'
20009 ;;
20010 esac
20011 ;;
20012 *qnx* | *nto*)
20013 # QNX uses GNU C++, but need to define -shared option too, otherwise
20014 # it will coredump.
20015 lt_prog_compiler_pic_CXX='-fPIC -shared'
20016 ;;
20017 *)
20018 lt_prog_compiler_pic_CXX='-fPIC'
20019 ;;
20020 esac
20021 else
20022 case $host_os in
20023 aix[4-9]*)
20024 # All AIX code is PIC.
20025 if test "$host_cpu" = ia64; then
20026 # AIX 5 now supports IA64 processor
20027 lt_prog_compiler_static_CXX='-Bstatic'
20028 else
20029 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20030 fi
20031 ;;
20032 chorus*)
20033 case $cc_basename in
20034 cxch68*)
20035 # Green Hills C++ Compiler
20036 # _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"
20037 ;;
20038 esac
20039 ;;
20040 dgux*)
20041 case $cc_basename in
20042 ec++*)
20043 lt_prog_compiler_pic_CXX='-KPIC'
20044 ;;
20045 ghcx*)
20046 # Green Hills C++ Compiler
20047 lt_prog_compiler_pic_CXX='-pic'
20048 ;;
20049 *)
20050 ;;
20051 esac
20052 ;;
20053 freebsd* | dragonfly*)
20054 # FreeBSD uses GNU C++
20055 ;;
20056 hpux9* | hpux10* | hpux11*)
20057 case $cc_basename in
20058 CC*)
20059 lt_prog_compiler_wl_CXX='-Wl,'
20060 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20061 if test "$host_cpu" != ia64; then
20062 lt_prog_compiler_pic_CXX='+Z'
20063 fi
20064 ;;
20065 aCC*)
20066 lt_prog_compiler_wl_CXX='-Wl,'
20067 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20068 case $host_cpu in
20069 hppa*64*|ia64*)
20070 # +Z the default
20071 ;;
20072 *)
20073 lt_prog_compiler_pic_CXX='+Z'
20074 ;;
20075 esac
20076 ;;
20077 *)
20078 ;;
20079 esac
20080 ;;
20081 interix*)
20082 # This is c89, which is MS Visual C++ (no shared libs)
20083 # Anyone wants to do a port?
20084 ;;
20085 irix5* | irix6* | nonstopux*)
20086 case $cc_basename in
20087 CC*)
20088 lt_prog_compiler_wl_CXX='-Wl,'
20089 lt_prog_compiler_static_CXX='-non_shared'
20090 # CC pic flag -KPIC is the default.
20091 ;;
20092 *)
20093 ;;
20094 esac
20095 ;;
20096 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20097 case $cc_basename in
20098 KCC*)
20099 # KAI C++ Compiler
20100 lt_prog_compiler_wl_CXX='--backend -Wl,'
20101 lt_prog_compiler_pic_CXX='-fPIC'
20102 ;;
20103 ecpc* )
20104 # old Intel C++ for x86_64 which still supported -KPIC.
20105 lt_prog_compiler_wl_CXX='-Wl,'
20106 lt_prog_compiler_pic_CXX='-KPIC'
20107 lt_prog_compiler_static_CXX='-static'
20108 ;;
20109 icpc* )
20110 # Intel C++, used to be incompatible with GCC.
20111 # ICC 10 doesn't accept -KPIC any more.
20112 lt_prog_compiler_wl_CXX='-Wl,'
20113 lt_prog_compiler_pic_CXX='-fPIC'
20114 lt_prog_compiler_static_CXX='-static'
20115 ;;
20116 pgCC* | pgcpp*)
20117 # Portland Group C++ compiler
20118 lt_prog_compiler_wl_CXX='-Wl,'
20119 lt_prog_compiler_pic_CXX='-fpic'
20120 lt_prog_compiler_static_CXX='-Bstatic'
20121 ;;
20122 cxx*)
20123 # Compaq C++
20124 # Make sure the PIC flag is empty. It appears that all Alpha
20125 # Linux and Compaq Tru64 Unix objects are PIC.
20126 lt_prog_compiler_pic_CXX=
20127 lt_prog_compiler_static_CXX='-non_shared'
20128 ;;
20129 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20130 # IBM XL 8.0, 9.0 on PPC and BlueGene
20131 lt_prog_compiler_wl_CXX='-Wl,'
20132 lt_prog_compiler_pic_CXX='-qpic'
20133 lt_prog_compiler_static_CXX='-qstaticlink'
20134 ;;
20135 *)
20136 case `$CC -V 2>&1 | sed 5q` in
20137 *Sun\ C*)
20138 # Sun C++ 5.9
20139 lt_prog_compiler_pic_CXX='-KPIC'
20140 lt_prog_compiler_static_CXX='-Bstatic'
20141 lt_prog_compiler_wl_CXX='-Qoption ld '
20142 ;;
20143 esac
20144 ;;
20145 esac
20146 ;;
20147 lynxos*)
20148 ;;
20149 m88k*)
20150 ;;
20151 mvs*)
20152 case $cc_basename in
20153 cxx*)
20154 lt_prog_compiler_pic_CXX='-W c,exportall'
20155 ;;
20156 *)
20157 ;;
20158 esac
20159 ;;
20160 netbsd*)
20161 ;;
20162 *qnx* | *nto*)
20163 # QNX uses GNU C++, but need to define -shared option too, otherwise
20164 # it will coredump.
20165 lt_prog_compiler_pic_CXX='-fPIC -shared'
20166 ;;
20167 osf3* | osf4* | osf5*)
20168 case $cc_basename in
20169 KCC*)
20170 lt_prog_compiler_wl_CXX='--backend -Wl,'
20171 ;;
20172 RCC*)
20173 # Rational C++ 2.4.1
20174 lt_prog_compiler_pic_CXX='-pic'
20175 ;;
20176 cxx*)
20177 # Digital/Compaq C++
20178 lt_prog_compiler_wl_CXX='-Wl,'
20179 # Make sure the PIC flag is empty. It appears that all Alpha
20180 # Linux and Compaq Tru64 Unix objects are PIC.
20181 lt_prog_compiler_pic_CXX=
20182 lt_prog_compiler_static_CXX='-non_shared'
20183 ;;
20184 *)
20185 ;;
20186 esac
20187 ;;
20188 psos*)
20189 ;;
20190 solaris*)
20191 case $cc_basename in
20192 CC*)
20193 # Sun C++ 4.2, 5.x and Centerline C++
20194 lt_prog_compiler_pic_CXX='-KPIC'
20195 lt_prog_compiler_static_CXX='-Bstatic'
20196 lt_prog_compiler_wl_CXX='-Qoption ld '
20197 ;;
20198 gcx*)
20199 # Green Hills C++ Compiler
20200 lt_prog_compiler_pic_CXX='-PIC'
20201 ;;
20202 *)
20203 ;;
20204 esac
20205 ;;
20206 sunos4*)
20207 case $cc_basename in
20208 CC*)
20209 # Sun C++ 4.x
20210 lt_prog_compiler_pic_CXX='-pic'
20211 lt_prog_compiler_static_CXX='-Bstatic'
20212 ;;
20213 lcc*)
20214 # Lucid
20215 lt_prog_compiler_pic_CXX='-pic'
20216 ;;
20217 *)
20218 ;;
20219 esac
20220 ;;
20221 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20222 case $cc_basename in
20223 CC*)
20224 lt_prog_compiler_wl_CXX='-Wl,'
20225 lt_prog_compiler_pic_CXX='-KPIC'
20226 lt_prog_compiler_static_CXX='-Bstatic'
20227 ;;
20228 esac
20229 ;;
20230 tandem*)
20231 case $cc_basename in
20232 NCC*)
20233 # NonStop-UX NCC 3.20
20234 lt_prog_compiler_pic_CXX='-KPIC'
20235 ;;
20236 *)
20237 ;;
20238 esac
20239 ;;
20240 vxworks*)
20241 ;;
20242 *)
20243 lt_prog_compiler_can_build_shared_CXX=no
20244 ;;
20245 esac
20246 fi
20247
20248 case $host_os in
20249 # For platforms which do not support PIC, -DPIC is meaningless:
20250 *djgpp*)
20251 lt_prog_compiler_pic_CXX=
20252 ;;
20253 *)
20254 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20255 ;;
20256 esac
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20258 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20259
20260
20261
20262 #
20263 # Check to make sure the PIC flag actually works.
20264 #
20265 if test -n "$lt_prog_compiler_pic_CXX"; then
20266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20267 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20268 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20269 $as_echo_n "(cached) " >&6
20270 else
20271 lt_cv_prog_compiler_pic_works_CXX=no
20272 ac_outfile=conftest.$ac_objext
20273 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20274 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20275 # Insert the option either (1) after the last *FLAGS variable, or
20276 # (2) before a word containing "conftest.", or (3) at the end.
20277 # Note that $ac_compile itself does not contain backslashes and begins
20278 # with a dollar sign (not a hyphen), so the echo should work correctly.
20279 # The option is referenced via a variable to avoid confusing sed.
20280 lt_compile=`echo "$ac_compile" | $SED \
20281 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20282 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20283 -e 's:$: $lt_compiler_flag:'`
20284 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20285 (eval "$lt_compile" 2>conftest.err)
20286 ac_status=$?
20287 cat conftest.err >&5
20288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289 if (exit $ac_status) && test -s "$ac_outfile"; then
20290 # The compiler can only warn and ignore the option if not recognized
20291 # So say no if there are warnings other than the usual output.
20292 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20293 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20294 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20295 lt_cv_prog_compiler_pic_works_CXX=yes
20296 fi
20297 fi
20298 $RM conftest*
20299
20300 fi
20301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20302 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20303
20304 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20305 case $lt_prog_compiler_pic_CXX in
20306 "" | " "*) ;;
20307 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20308 esac
20309 else
20310 lt_prog_compiler_pic_CXX=
20311 lt_prog_compiler_can_build_shared_CXX=no
20312 fi
20313
20314 fi
20315
20316
20317
20318 #
20319 # Check to make sure the static flag actually works.
20320 #
20321 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20323 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20324 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20325 $as_echo_n "(cached) " >&6
20326 else
20327 lt_cv_prog_compiler_static_works_CXX=no
20328 save_LDFLAGS="$LDFLAGS"
20329 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20330 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20331 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20332 # The linker can only warn and ignore the option if not recognized
20333 # So say no if there are warnings
20334 if test -s conftest.err; then
20335 # Append any errors to the config.log.
20336 cat conftest.err 1>&5
20337 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20339 if diff conftest.exp conftest.er2 >/dev/null; then
20340 lt_cv_prog_compiler_static_works_CXX=yes
20341 fi
20342 else
20343 lt_cv_prog_compiler_static_works_CXX=yes
20344 fi
20345 fi
20346 $RM -r conftest*
20347 LDFLAGS="$save_LDFLAGS"
20348
20349 fi
20350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20351 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20352
20353 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20354 :
20355 else
20356 lt_prog_compiler_static_CXX=
20357 fi
20358
20359
20360
20361
20362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20363 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20364 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20365 $as_echo_n "(cached) " >&6
20366 else
20367 lt_cv_prog_compiler_c_o_CXX=no
20368 $RM -r conftest 2>/dev/null
20369 mkdir conftest
20370 cd conftest
20371 mkdir out
20372 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20373
20374 lt_compiler_flag="-o out/conftest2.$ac_objext"
20375 # Insert the option either (1) after the last *FLAGS variable, or
20376 # (2) before a word containing "conftest.", or (3) at the end.
20377 # Note that $ac_compile itself does not contain backslashes and begins
20378 # with a dollar sign (not a hyphen), so the echo should work correctly.
20379 lt_compile=`echo "$ac_compile" | $SED \
20380 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20381 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20382 -e 's:$: $lt_compiler_flag:'`
20383 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20384 (eval "$lt_compile" 2>out/conftest.err)
20385 ac_status=$?
20386 cat out/conftest.err >&5
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20389 then
20390 # The compiler can only warn and ignore the option if not recognized
20391 # So say no if there are warnings
20392 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20393 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20394 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20395 lt_cv_prog_compiler_c_o_CXX=yes
20396 fi
20397 fi
20398 chmod u+w . 2>&5
20399 $RM conftest*
20400 # SGI C++ compiler will create directory out/ii_files/ for
20401 # template instantiation
20402 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20403 $RM out/* && rmdir out
20404 cd ..
20405 $RM -r conftest
20406 $RM conftest*
20407
20408 fi
20409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20410 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20411
20412
20413
20414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20415 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20416 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20417 $as_echo_n "(cached) " >&6
20418 else
20419 lt_cv_prog_compiler_c_o_CXX=no
20420 $RM -r conftest 2>/dev/null
20421 mkdir conftest
20422 cd conftest
20423 mkdir out
20424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20425
20426 lt_compiler_flag="-o out/conftest2.$ac_objext"
20427 # Insert the option either (1) after the last *FLAGS variable, or
20428 # (2) before a word containing "conftest.", or (3) at the end.
20429 # Note that $ac_compile itself does not contain backslashes and begins
20430 # with a dollar sign (not a hyphen), so the echo should work correctly.
20431 lt_compile=`echo "$ac_compile" | $SED \
20432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20434 -e 's:$: $lt_compiler_flag:'`
20435 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20436 (eval "$lt_compile" 2>out/conftest.err)
20437 ac_status=$?
20438 cat out/conftest.err >&5
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20441 then
20442 # The compiler can only warn and ignore the option if not recognized
20443 # So say no if there are warnings
20444 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20445 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20446 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20447 lt_cv_prog_compiler_c_o_CXX=yes
20448 fi
20449 fi
20450 chmod u+w . 2>&5
20451 $RM conftest*
20452 # SGI C++ compiler will create directory out/ii_files/ for
20453 # template instantiation
20454 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20455 $RM out/* && rmdir out
20456 cd ..
20457 $RM -r conftest
20458 $RM conftest*
20459
20460 fi
20461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20462 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20463
20464
20465
20466
20467 hard_links="nottested"
20468 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20469 # do not overwrite the value of need_locks provided by the user
20470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20471 $as_echo_n "checking if we can lock with hard links... " >&6; }
20472 hard_links=yes
20473 $RM conftest*
20474 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20475 touch conftest.a
20476 ln conftest.a conftest.b 2>&5 || hard_links=no
20477 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20479 $as_echo "$hard_links" >&6; }
20480 if test "$hard_links" = no; then
20481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20482 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20483 need_locks=warn
20484 fi
20485 else
20486 need_locks=no
20487 fi
20488
20489
20490
20491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20492 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20493
20494 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20495 case $host_os in
20496 aix[4-9]*)
20497 # If we're using GNU nm, then we don't want the "-C" option.
20498 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20499 # Also, AIX nm treats weak defined symbols like other global defined
20500 # symbols, whereas GNU nm marks them as "W".
20501 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20502 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'
20503 else
20504 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'
20505 fi
20506 ;;
20507 pw32*)
20508 export_symbols_cmds_CXX="$ltdll_cmds"
20509 ;;
20510 cygwin* | mingw* | cegcc*)
20511 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'
20512 ;;
20513 *)
20514 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20515 ;;
20516 esac
20517 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20518
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20520 $as_echo "$ld_shlibs_CXX" >&6; }
20521 test "$ld_shlibs_CXX" = no && can_build_shared=no
20522
20523 with_gnu_ld_CXX=$with_gnu_ld
20524
20525
20526
20527
20528
20529
20530 #
20531 # Do we need to explicitly link libc?
20532 #
20533 case "x$archive_cmds_need_lc_CXX" in
20534 x|xyes)
20535 # Assume -lc should be added
20536 archive_cmds_need_lc_CXX=yes
20537
20538 if test "$enable_shared" = yes && test "$GCC" = yes; then
20539 case $archive_cmds_CXX in
20540 *'~'*)
20541 # FIXME: we may have to deal with multi-command sequences.
20542 ;;
20543 '$CC '*)
20544 # Test whether the compiler implicitly links with -lc since on some
20545 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20546 # to ld, don't add -lc before -lgcc.
20547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20548 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20549 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20550 $as_echo_n "(cached) " >&6
20551 else
20552 $RM conftest*
20553 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20554
20555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20556 (eval $ac_compile) 2>&5
20557 ac_status=$?
20558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20559 test $ac_status = 0; } 2>conftest.err; then
20560 soname=conftest
20561 lib=conftest
20562 libobjs=conftest.$ac_objext
20563 deplibs=
20564 wl=$lt_prog_compiler_wl_CXX
20565 pic_flag=$lt_prog_compiler_pic_CXX
20566 compiler_flags=-v
20567 linker_flags=-v
20568 verstring=
20569 output_objdir=.
20570 libname=conftest
20571 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20572 allow_undefined_flag_CXX=
20573 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20574 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20575 ac_status=$?
20576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20577 test $ac_status = 0; }
20578 then
20579 lt_cv_archive_cmds_need_lc_CXX=no
20580 else
20581 lt_cv_archive_cmds_need_lc_CXX=yes
20582 fi
20583 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20584 else
20585 cat conftest.err 1>&5
20586 fi
20587 $RM conftest*
20588
20589 fi
20590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20591 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20592 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20593 ;;
20594 esac
20595 fi
20596 ;;
20597 esac
20598
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20663 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20664
20665 library_names_spec=
20666 libname_spec='lib$name'
20667 soname_spec=
20668 shrext_cmds=".so"
20669 postinstall_cmds=
20670 postuninstall_cmds=
20671 finish_cmds=
20672 finish_eval=
20673 shlibpath_var=
20674 shlibpath_overrides_runpath=unknown
20675 version_type=none
20676 dynamic_linker="$host_os ld.so"
20677 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20678 need_lib_prefix=unknown
20679 hardcode_into_libs=no
20680
20681 # when you set need_version to no, make sure it does not cause -set_version
20682 # flags to be left without arguments
20683 need_version=unknown
20684
20685 case $host_os in
20686 aix3*)
20687 version_type=linux
20688 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20689 shlibpath_var=LIBPATH
20690
20691 # AIX 3 has no versioning support, so we append a major version to the name.
20692 soname_spec='${libname}${release}${shared_ext}$major'
20693 ;;
20694
20695 aix[4-9]*)
20696 version_type=linux
20697 need_lib_prefix=no
20698 need_version=no
20699 hardcode_into_libs=yes
20700 if test "$host_cpu" = ia64; then
20701 # AIX 5 supports IA64
20702 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20703 shlibpath_var=LD_LIBRARY_PATH
20704 else
20705 # With GCC up to 2.95.x, collect2 would create an import file
20706 # for dependence libraries. The import file would start with
20707 # the line `#! .'. This would cause the generated library to
20708 # depend on `.', always an invalid library. This was fixed in
20709 # development snapshots of GCC prior to 3.0.
20710 case $host_os in
20711 aix4 | aix4.[01] | aix4.[01].*)
20712 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20713 echo ' yes '
20714 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20715 :
20716 else
20717 can_build_shared=no
20718 fi
20719 ;;
20720 esac
20721 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20722 # soname into executable. Probably we can add versioning support to
20723 # collect2, so additional links can be useful in future.
20724 if test "$aix_use_runtimelinking" = yes; then
20725 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20726 # instead of lib<name>.a to let people know that these are not
20727 # typical AIX shared libraries.
20728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20729 else
20730 # We preserve .a as extension for shared libraries through AIX4.2
20731 # and later when we are not doing run time linking.
20732 library_names_spec='${libname}${release}.a $libname.a'
20733 soname_spec='${libname}${release}${shared_ext}$major'
20734 fi
20735 shlibpath_var=LIBPATH
20736 fi
20737 ;;
20738
20739 amigaos*)
20740 case $host_cpu in
20741 powerpc)
20742 # Since July 2007 AmigaOS4 officially supports .so libraries.
20743 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20745 ;;
20746 m68k)
20747 library_names_spec='$libname.ixlibrary $libname.a'
20748 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20749 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'
20750 ;;
20751 esac
20752 ;;
20753
20754 beos*)
20755 library_names_spec='${libname}${shared_ext}'
20756 dynamic_linker="$host_os ld.so"
20757 shlibpath_var=LIBRARY_PATH
20758 ;;
20759
20760 bsdi[45]*)
20761 version_type=linux
20762 need_version=no
20763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20764 soname_spec='${libname}${release}${shared_ext}$major'
20765 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20766 shlibpath_var=LD_LIBRARY_PATH
20767 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20768 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20769 # the default ld.so.conf also contains /usr/contrib/lib and
20770 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20771 # libtool to hard-code these into programs
20772 ;;
20773
20774 cygwin* | mingw* | pw32* | cegcc*)
20775 version_type=windows
20776 shrext_cmds=".dll"
20777 need_version=no
20778 need_lib_prefix=no
20779
20780 case $GCC,$host_os in
20781 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20782 library_names_spec='$libname.dll.a'
20783 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20784 postinstall_cmds='base_file=`basename \${file}`~
20785 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20786 dldir=$destdir/`dirname \$dlpath`~
20787 test -d \$dldir || mkdir -p \$dldir~
20788 $install_prog $dir/$dlname \$dldir/$dlname~
20789 chmod a+x \$dldir/$dlname~
20790 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20791 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20792 fi'
20793 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20794 dlpath=$dir/\$dldll~
20795 $RM \$dlpath'
20796 shlibpath_overrides_runpath=yes
20797
20798 case $host_os in
20799 cygwin*)
20800 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20801 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20802
20803 ;;
20804 mingw* | cegcc*)
20805 # MinGW DLLs use traditional 'lib' prefix
20806 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20807 ;;
20808 pw32*)
20809 # pw32 DLLs use 'pw' prefix rather than 'lib'
20810 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20811 ;;
20812 esac
20813 ;;
20814
20815 *)
20816 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20817 ;;
20818 esac
20819 dynamic_linker='Win32 ld.exe'
20820 # FIXME: first we should search . and the directory the executable is in
20821 shlibpath_var=PATH
20822 ;;
20823
20824 darwin* | rhapsody*)
20825 dynamic_linker="$host_os dyld"
20826 version_type=darwin
20827 need_lib_prefix=no
20828 need_version=no
20829 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20830 soname_spec='${libname}${release}${major}$shared_ext'
20831 shlibpath_overrides_runpath=yes
20832 shlibpath_var=DYLD_LIBRARY_PATH
20833 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20834
20835 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20836 ;;
20837
20838 dgux*)
20839 version_type=linux
20840 need_lib_prefix=no
20841 need_version=no
20842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20843 soname_spec='${libname}${release}${shared_ext}$major'
20844 shlibpath_var=LD_LIBRARY_PATH
20845 ;;
20846
20847 freebsd* | dragonfly*)
20848 # DragonFly does not have aout. When/if they implement a new
20849 # versioning mechanism, adjust this.
20850 if test -x /usr/bin/objformat; then
20851 objformat=`/usr/bin/objformat`
20852 else
20853 case $host_os in
20854 freebsd[123]*) objformat=aout ;;
20855 *) objformat=elf ;;
20856 esac
20857 fi
20858 version_type=freebsd-$objformat
20859 case $version_type in
20860 freebsd-elf*)
20861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20862 need_version=no
20863 need_lib_prefix=no
20864 ;;
20865 freebsd-*)
20866 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20867 need_version=yes
20868 ;;
20869 esac
20870 shlibpath_var=LD_LIBRARY_PATH
20871 case $host_os in
20872 freebsd2*)
20873 shlibpath_overrides_runpath=yes
20874 ;;
20875 freebsd3.[01]* | freebsdelf3.[01]*)
20876 shlibpath_overrides_runpath=yes
20877 hardcode_into_libs=yes
20878 ;;
20879 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20880 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20881 shlibpath_overrides_runpath=no
20882 hardcode_into_libs=yes
20883 ;;
20884 *) # from 4.6 on, and DragonFly
20885 shlibpath_overrides_runpath=yes
20886 hardcode_into_libs=yes
20887 ;;
20888 esac
20889 ;;
20890
20891 gnu*)
20892 version_type=linux
20893 need_lib_prefix=no
20894 need_version=no
20895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20896 soname_spec='${libname}${release}${shared_ext}$major'
20897 shlibpath_var=LD_LIBRARY_PATH
20898 hardcode_into_libs=yes
20899 ;;
20900
20901 haiku*)
20902 version_type=linux
20903 need_lib_prefix=no
20904 need_version=no
20905 dynamic_linker="$host_os runtime_loader"
20906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20907 soname_spec='${libname}${release}${shared_ext}$major'
20908 shlibpath_var=LIBRARY_PATH
20909 shlibpath_overrides_runpath=yes
20910 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20911 hardcode_into_libs=yes
20912 ;;
20913
20914 hpux9* | hpux10* | hpux11*)
20915 # Give a soname corresponding to the major version so that dld.sl refuses to
20916 # link against other versions.
20917 version_type=sunos
20918 need_lib_prefix=no
20919 need_version=no
20920 case $host_cpu in
20921 ia64*)
20922 shrext_cmds='.so'
20923 hardcode_into_libs=yes
20924 dynamic_linker="$host_os dld.so"
20925 shlibpath_var=LD_LIBRARY_PATH
20926 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20928 soname_spec='${libname}${release}${shared_ext}$major'
20929 if test "X$HPUX_IA64_MODE" = X32; then
20930 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20931 else
20932 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20933 fi
20934 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20935 ;;
20936 hppa*64*)
20937 shrext_cmds='.sl'
20938 hardcode_into_libs=yes
20939 dynamic_linker="$host_os dld.sl"
20940 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20941 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20943 soname_spec='${libname}${release}${shared_ext}$major'
20944 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20945 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20946 ;;
20947 *)
20948 shrext_cmds='.sl'
20949 dynamic_linker="$host_os dld.sl"
20950 shlibpath_var=SHLIB_PATH
20951 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20953 soname_spec='${libname}${release}${shared_ext}$major'
20954 ;;
20955 esac
20956 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20957 postinstall_cmds='chmod 555 $lib'
20958 # or fails outright, so override atomically:
20959 install_override_mode=555
20960 ;;
20961
20962 interix[3-9]*)
20963 version_type=linux
20964 need_lib_prefix=no
20965 need_version=no
20966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20967 soname_spec='${libname}${release}${shared_ext}$major'
20968 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20969 shlibpath_var=LD_LIBRARY_PATH
20970 shlibpath_overrides_runpath=no
20971 hardcode_into_libs=yes
20972 ;;
20973
20974 irix5* | irix6* | nonstopux*)
20975 case $host_os in
20976 nonstopux*) version_type=nonstopux ;;
20977 *)
20978 if test "$lt_cv_prog_gnu_ld" = yes; then
20979 version_type=linux
20980 else
20981 version_type=irix
20982 fi ;;
20983 esac
20984 need_lib_prefix=no
20985 need_version=no
20986 soname_spec='${libname}${release}${shared_ext}$major'
20987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20988 case $host_os in
20989 irix5* | nonstopux*)
20990 libsuff= shlibsuff=
20991 ;;
20992 *)
20993 case $LD in # libtool.m4 will add one of these switches to LD
20994 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20995 libsuff= shlibsuff= libmagic=32-bit;;
20996 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20997 libsuff=32 shlibsuff=N32 libmagic=N32;;
20998 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20999 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21000 *) libsuff= shlibsuff= libmagic=never-match;;
21001 esac
21002 ;;
21003 esac
21004 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21005 shlibpath_overrides_runpath=no
21006 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21007 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21008 hardcode_into_libs=yes
21009 ;;
21010
21011 # No shared lib support for Linux oldld, aout, or coff.
21012 linux*oldld* | linux*aout* | linux*coff*)
21013 dynamic_linker=no
21014 ;;
21015
21016 # This must be Linux ELF.
21017 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21018 version_type=linux
21019 need_lib_prefix=no
21020 need_version=no
21021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21022 soname_spec='${libname}${release}${shared_ext}$major'
21023 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21024 shlibpath_var=LD_LIBRARY_PATH
21025 shlibpath_overrides_runpath=no
21026
21027 # Some binutils ld are patched to set DT_RUNPATH
21028 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21029 $as_echo_n "(cached) " >&6
21030 else
21031 lt_cv_shlibpath_overrides_runpath=no
21032 save_LDFLAGS=$LDFLAGS
21033 save_libdir=$libdir
21034 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21035 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21037 /* end confdefs.h. */
21038
21039 int
21040 main ()
21041 {
21042
21043 ;
21044 return 0;
21045 }
21046 _ACEOF
21047 if ac_fn_cxx_try_link "$LINENO"; then :
21048 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21049 lt_cv_shlibpath_overrides_runpath=yes
21050 fi
21051 fi
21052 rm -f core conftest.err conftest.$ac_objext \
21053 conftest$ac_exeext conftest.$ac_ext
21054 LDFLAGS=$save_LDFLAGS
21055 libdir=$save_libdir
21056
21057 fi
21058
21059 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21060
21061 # This implies no fast_install, which is unacceptable.
21062 # Some rework will be needed to allow for fast_install
21063 # before this can be enabled.
21064 hardcode_into_libs=yes
21065
21066 # Append ld.so.conf contents to the search path
21067 if test -f /etc/ld.so.conf; then
21068 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' ' '`
21069 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21070 fi
21071
21072 # We used to test for /lib/ld.so.1 and disable shared libraries on
21073 # powerpc, because MkLinux only supported shared libraries with the
21074 # GNU dynamic linker. Since this was broken with cross compilers,
21075 # most powerpc-linux boxes support dynamic linking these days and
21076 # people can always --disable-shared, the test was removed, and we
21077 # assume the GNU/Linux dynamic linker is in use.
21078 dynamic_linker='GNU/Linux ld.so'
21079 ;;
21080
21081 netbsd*)
21082 version_type=sunos
21083 need_lib_prefix=no
21084 need_version=no
21085 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21087 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21088 dynamic_linker='NetBSD (a.out) ld.so'
21089 else
21090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21091 soname_spec='${libname}${release}${shared_ext}$major'
21092 dynamic_linker='NetBSD ld.elf_so'
21093 fi
21094 shlibpath_var=LD_LIBRARY_PATH
21095 shlibpath_overrides_runpath=yes
21096 hardcode_into_libs=yes
21097 ;;
21098
21099 newsos6)
21100 version_type=linux
21101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21102 shlibpath_var=LD_LIBRARY_PATH
21103 shlibpath_overrides_runpath=yes
21104 ;;
21105
21106 *nto* | *qnx*)
21107 version_type=qnx
21108 need_lib_prefix=no
21109 need_version=no
21110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21111 soname_spec='${libname}${release}${shared_ext}$major'
21112 shlibpath_var=LD_LIBRARY_PATH
21113 shlibpath_overrides_runpath=no
21114 hardcode_into_libs=yes
21115 dynamic_linker='ldqnx.so'
21116 ;;
21117
21118 openbsd*)
21119 version_type=sunos
21120 sys_lib_dlsearch_path_spec="/usr/lib"
21121 need_lib_prefix=no
21122 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21123 case $host_os in
21124 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21125 *) need_version=no ;;
21126 esac
21127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21128 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21129 shlibpath_var=LD_LIBRARY_PATH
21130 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21131 case $host_os in
21132 openbsd2.[89] | openbsd2.[89].*)
21133 shlibpath_overrides_runpath=no
21134 ;;
21135 *)
21136 shlibpath_overrides_runpath=yes
21137 ;;
21138 esac
21139 else
21140 shlibpath_overrides_runpath=yes
21141 fi
21142 ;;
21143
21144 os2*)
21145 libname_spec='$name'
21146 shrext_cmds=".dll"
21147 need_lib_prefix=no
21148 library_names_spec='$libname${shared_ext} $libname.a'
21149 dynamic_linker='OS/2 ld.exe'
21150 shlibpath_var=LIBPATH
21151 ;;
21152
21153 osf3* | osf4* | osf5*)
21154 version_type=osf
21155 need_lib_prefix=no
21156 need_version=no
21157 soname_spec='${libname}${release}${shared_ext}$major'
21158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21159 shlibpath_var=LD_LIBRARY_PATH
21160 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21161 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21162 ;;
21163
21164 rdos*)
21165 dynamic_linker=no
21166 ;;
21167
21168 solaris*)
21169 version_type=linux
21170 need_lib_prefix=no
21171 need_version=no
21172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21173 soname_spec='${libname}${release}${shared_ext}$major'
21174 shlibpath_var=LD_LIBRARY_PATH
21175 shlibpath_overrides_runpath=yes
21176 hardcode_into_libs=yes
21177 # ldd complains unless libraries are executable
21178 postinstall_cmds='chmod +x $lib'
21179 ;;
21180
21181 sunos4*)
21182 version_type=sunos
21183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21184 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21185 shlibpath_var=LD_LIBRARY_PATH
21186 shlibpath_overrides_runpath=yes
21187 if test "$with_gnu_ld" = yes; then
21188 need_lib_prefix=no
21189 fi
21190 need_version=yes
21191 ;;
21192
21193 sysv4 | sysv4.3*)
21194 version_type=linux
21195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21196 soname_spec='${libname}${release}${shared_ext}$major'
21197 shlibpath_var=LD_LIBRARY_PATH
21198 case $host_vendor in
21199 sni)
21200 shlibpath_overrides_runpath=no
21201 need_lib_prefix=no
21202 runpath_var=LD_RUN_PATH
21203 ;;
21204 siemens)
21205 need_lib_prefix=no
21206 ;;
21207 motorola)
21208 need_lib_prefix=no
21209 need_version=no
21210 shlibpath_overrides_runpath=no
21211 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21212 ;;
21213 esac
21214 ;;
21215
21216 sysv4*MP*)
21217 if test -d /usr/nec ;then
21218 version_type=linux
21219 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21220 soname_spec='$libname${shared_ext}.$major'
21221 shlibpath_var=LD_LIBRARY_PATH
21222 fi
21223 ;;
21224
21225 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21226 version_type=freebsd-elf
21227 need_lib_prefix=no
21228 need_version=no
21229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21230 soname_spec='${libname}${release}${shared_ext}$major'
21231 shlibpath_var=LD_LIBRARY_PATH
21232 shlibpath_overrides_runpath=yes
21233 hardcode_into_libs=yes
21234 if test "$with_gnu_ld" = yes; then
21235 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21236 else
21237 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21238 case $host_os in
21239 sco3.2v5*)
21240 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21241 ;;
21242 esac
21243 fi
21244 sys_lib_dlsearch_path_spec='/usr/lib'
21245 ;;
21246
21247 tpf*)
21248 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21249 version_type=linux
21250 need_lib_prefix=no
21251 need_version=no
21252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21253 shlibpath_var=LD_LIBRARY_PATH
21254 shlibpath_overrides_runpath=no
21255 hardcode_into_libs=yes
21256 ;;
21257
21258 uts4*)
21259 version_type=linux
21260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21261 soname_spec='${libname}${release}${shared_ext}$major'
21262 shlibpath_var=LD_LIBRARY_PATH
21263 ;;
21264
21265 *)
21266 dynamic_linker=no
21267 ;;
21268 esac
21269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21270 $as_echo "$dynamic_linker" >&6; }
21271 test "$dynamic_linker" = no && can_build_shared=no
21272
21273 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21274 if test "$GCC" = yes; then
21275 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21276 fi
21277
21278 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21279 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21280 fi
21281 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21282 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21283 fi
21284
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21323 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21324 hardcode_action_CXX=
21325 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21326 test -n "$runpath_var_CXX" ||
21327 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21328
21329 # We can hardcode non-existent directories.
21330 if test "$hardcode_direct_CXX" != no &&
21331 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21332 # have to relink, otherwise we might link with an installed library
21333 # when we should be linking with a yet-to-be-installed one
21334 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21335 test "$hardcode_minus_L_CXX" != no; then
21336 # Linking always hardcodes the temporary library directory.
21337 hardcode_action_CXX=relink
21338 else
21339 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21340 hardcode_action_CXX=immediate
21341 fi
21342 else
21343 # We cannot hardcode anything, or else we can only hardcode existing
21344 # directories.
21345 hardcode_action_CXX=unsupported
21346 fi
21347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21348 $as_echo "$hardcode_action_CXX" >&6; }
21349
21350 if test "$hardcode_action_CXX" = relink ||
21351 test "$inherit_rpath_CXX" = yes; then
21352 # Fast installation is not supported
21353 enable_fast_install=no
21354 elif test "$shlibpath_overrides_runpath" = yes ||
21355 test "$enable_shared" = no; then
21356 # Fast installation is not necessary
21357 enable_fast_install=needless
21358 fi
21359
21360
21361
21362
21363
21364
21365
21366 fi # test -n "$compiler"
21367
21368 CC=$lt_save_CC
21369 LDCXX=$LD
21370 LD=$lt_save_LD
21371 GCC=$lt_save_GCC
21372 with_gnu_ld=$lt_save_with_gnu_ld
21373 lt_cv_path_LDCXX=$lt_cv_path_LD
21374 lt_cv_path_LD=$lt_save_path_LD
21375 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21376 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21377 fi # test "$_lt_caught_CXX_error" != yes
21378
21379 ac_ext=c
21380 ac_cpp='$CPP $CPPFLAGS'
21381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21384
21385
21386
21387
21388
21389
21390
21391
21392
21393
21394
21395
21396
21397
21398
21399
21400 # Only expand once:
21401
21402
21403
21404
21405
21406 # Identify the assembler which will work hand-in-glove with the newly
21407 # built GCC, so that we can examine its features. This is the assembler
21408 # which will be driven by the driver program.
21409 #
21410 # If build != host, and we aren't building gas in-tree, we identify a
21411 # build->target assembler and hope that it will have the same features
21412 # as the host->target assembler we'll be using.
21413 gcc_cv_gas_major_version=
21414 gcc_cv_gas_minor_version=
21415 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21416
21417 if test "${gcc_cv_as+set}" = set; then :
21418
21419 else
21420
21421 if test -x "$DEFAULT_ASSEMBLER"; then
21422 gcc_cv_as="$DEFAULT_ASSEMBLER"
21423 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21424 && test -f ../gas/Makefile \
21425 && test x$build = x$host; then
21426 gcc_cv_as=../gas/as-new$build_exeext
21427 elif test -x as$build_exeext; then
21428 # Build using assembler in the current directory.
21429 gcc_cv_as=./as$build_exeext
21430 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21431 gcc_cv_as="$AS_FOR_TARGET"
21432 else
21433 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21434 set dummy $AS_FOR_TARGET; ac_word=$2
21435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21436 $as_echo_n "checking for $ac_word... " >&6; }
21437 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21438 $as_echo_n "(cached) " >&6
21439 else
21440 case $gcc_cv_as in
21441 [\\/]* | ?:[\\/]*)
21442 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21443 ;;
21444 *)
21445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21446 for as_dir in $PATH
21447 do
21448 IFS=$as_save_IFS
21449 test -z "$as_dir" && as_dir=.
21450 for ac_exec_ext in '' $ac_executable_extensions; do
21451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21452 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21454 break 2
21455 fi
21456 done
21457 done
21458 IFS=$as_save_IFS
21459
21460 ;;
21461 esac
21462 fi
21463 gcc_cv_as=$ac_cv_path_gcc_cv_as
21464 if test -n "$gcc_cv_as"; then
21465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21466 $as_echo "$gcc_cv_as" >&6; }
21467 else
21468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21469 $as_echo "no" >&6; }
21470 fi
21471
21472
21473 fi
21474 fi
21475
21476 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21477
21478 case "$ORIGINAL_AS_FOR_TARGET" in
21479 ./as | ./as$build_exeext) ;;
21480 *) ac_config_files="$ac_config_files as:exec-tool.in"
21481 ;;
21482 esac
21483
21484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21485 $as_echo_n "checking what assembler to use... " >&6; }
21486 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21487 # Single tree build which includes gas. We want to prefer it
21488 # over whatever linker top-level may have detected, since
21489 # we'll use what we're building after installation anyway.
21490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21491 $as_echo "newly built gas" >&6; }
21492 in_tree_gas=yes
21493 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21494 for f in $gcc_cv_as_bfd_srcdir/configure \
21495 $gcc_cv_as_gas_srcdir/configure \
21496 $gcc_cv_as_gas_srcdir/configure.in \
21497 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21498 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21499 if test x$gcc_cv_gas_version != x; then
21500 break
21501 fi
21502 done
21503 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21504 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21505 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21506 case $gcc_cv_gas_patch_version in
21507 "") gcc_cv_gas_patch_version="0" ;;
21508 esac
21509 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21510 + $gcc_cv_gas_minor_version \) \* 1000 \
21511 + $gcc_cv_gas_patch_version`
21512
21513 in_tree_gas_is_elf=no
21514 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21515 || (grep 'obj_format = multi' ../gas/Makefile \
21516 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21517 then
21518 in_tree_gas_is_elf=yes
21519 fi
21520 else
21521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21522 $as_echo "$gcc_cv_as" >&6; }
21523 in_tree_gas=no
21524 fi
21525
21526 # Identify the linker which will work hand-in-glove with the newly
21527 # built GCC, so that we can examine its features. This is the linker
21528 # which will be driven by the driver program.
21529 #
21530 # If build != host, and we aren't building gas in-tree, we identify a
21531 # build->target linker and hope that it will have the same features
21532 # as the host->target linker we'll be using.
21533 gcc_cv_gld_major_version=
21534 gcc_cv_gld_minor_version=
21535 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21536 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21537
21538 if test "${gcc_cv_ld+set}" = set; then :
21539
21540 else
21541
21542 if test -x "$DEFAULT_LINKER"; then
21543 gcc_cv_ld="$DEFAULT_LINKER"
21544 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21545 && test -f ../ld/Makefile \
21546 && test x$build = x$host; then
21547 gcc_cv_ld=../ld/ld-new$build_exeext
21548 elif test -x collect-ld$build_exeext; then
21549 # Build using linker in the current directory.
21550 gcc_cv_ld=./collect-ld$build_exeext
21551 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21552 gcc_cv_ld="$LD_FOR_TARGET"
21553 else
21554 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21555 set dummy $LD_FOR_TARGET; ac_word=$2
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21557 $as_echo_n "checking for $ac_word... " >&6; }
21558 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21559 $as_echo_n "(cached) " >&6
21560 else
21561 case $gcc_cv_ld in
21562 [\\/]* | ?:[\\/]*)
21563 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21564 ;;
21565 *)
21566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21567 for as_dir in $PATH
21568 do
21569 IFS=$as_save_IFS
21570 test -z "$as_dir" && as_dir=.
21571 for ac_exec_ext in '' $ac_executable_extensions; do
21572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21573 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21575 break 2
21576 fi
21577 done
21578 done
21579 IFS=$as_save_IFS
21580
21581 ;;
21582 esac
21583 fi
21584 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21585 if test -n "$gcc_cv_ld"; then
21586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21587 $as_echo "$gcc_cv_ld" >&6; }
21588 else
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21590 $as_echo "no" >&6; }
21591 fi
21592
21593
21594 fi
21595 fi
21596
21597 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21598 PLUGIN_LD=`basename $gcc_cv_ld`
21599
21600 # Check whether --with-plugin-ld was given.
21601 if test "${with_plugin_ld+set}" = set; then :
21602 withval=$with_plugin_ld; if test x"$withval" != x; then
21603 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21604 PLUGIN_LD="$withval"
21605 fi
21606 fi
21607
21608
21609
21610 cat >>confdefs.h <<_ACEOF
21611 #define PLUGIN_LD "$PLUGIN_LD"
21612 _ACEOF
21613
21614
21615 # Check to see if we are using gold instead of ld
21616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21617 $as_echo_n "checking whether we are using gold... " >&6; }
21618 ld_is_gold=no
21619 if test x$gcc_cv_ld != x; then
21620 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21621 | grep "GNU gold" > /dev/null; then
21622 ld_is_gold=yes
21623 fi
21624 fi
21625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21626 $as_echo "$ld_is_gold" >&6; }
21627
21628 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21629
21630 case "$ORIGINAL_LD_FOR_TARGET" in
21631 ./collect-ld | ./collect-ld$build_exeext) ;;
21632 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21633 ;;
21634 esac
21635
21636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21637 $as_echo_n "checking what linker to use... " >&6; }
21638 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21639 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21640 # Single tree build which includes ld. We want to prefer it
21641 # over whatever linker top-level may have detected, since
21642 # we'll use what we're building after installation anyway.
21643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21644 $as_echo "newly built ld" >&6; }
21645 in_tree_ld=yes
21646 in_tree_ld_is_elf=no
21647 if (grep 'EMUL = .*elf' ../ld/Makefile \
21648 || grep 'EMUL = .*linux' ../ld/Makefile \
21649 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21650 in_tree_ld_is_elf=yes
21651 elif test "$ld_is_gold" = yes; then
21652 in_tree_ld_is_elf=yes
21653 fi
21654 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
21655 do
21656 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21657 if test x$gcc_cv_gld_version != x; then
21658 break
21659 fi
21660 done
21661 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21662 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21663 else
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21665 $as_echo "$gcc_cv_ld" >&6; }
21666 in_tree_ld=no
21667 fi
21668
21669 # Figure out what nm we will be using.
21670 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21671 if test "${gcc_cv_nm+set}" = set; then :
21672
21673 else
21674
21675 if test -f $gcc_cv_binutils_srcdir/configure.in \
21676 && test -f ../binutils/Makefile \
21677 && test x$build = x$host; then
21678 gcc_cv_nm=../binutils/nm-new$build_exeext
21679 elif test -x nm$build_exeext; then
21680 gcc_cv_nm=./nm$build_exeext
21681 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21682 gcc_cv_nm="$NM_FOR_TARGET"
21683 else
21684 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21685 set dummy $NM_FOR_TARGET; ac_word=$2
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21687 $as_echo_n "checking for $ac_word... " >&6; }
21688 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21689 $as_echo_n "(cached) " >&6
21690 else
21691 case $gcc_cv_nm in
21692 [\\/]* | ?:[\\/]*)
21693 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21694 ;;
21695 *)
21696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21697 for as_dir in $PATH
21698 do
21699 IFS=$as_save_IFS
21700 test -z "$as_dir" && as_dir=.
21701 for ac_exec_ext in '' $ac_executable_extensions; do
21702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21703 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21705 break 2
21706 fi
21707 done
21708 done
21709 IFS=$as_save_IFS
21710
21711 ;;
21712 esac
21713 fi
21714 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21715 if test -n "$gcc_cv_nm"; then
21716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21717 $as_echo "$gcc_cv_nm" >&6; }
21718 else
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21720 $as_echo "no" >&6; }
21721 fi
21722
21723
21724 fi
21725 fi
21726
21727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21728 $as_echo_n "checking what nm to use... " >&6; }
21729 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21730 # Single tree build which includes binutils.
21731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21732 $as_echo "newly built nm" >&6; }
21733 in_tree_nm=yes
21734 else
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21736 $as_echo "$gcc_cv_nm" >&6; }
21737 in_tree_nm=no
21738 fi
21739
21740 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21741
21742 case "$ORIGINAL_NM_FOR_TARGET" in
21743 ./nm | ./nm$build_exeext) ;;
21744 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21745 ;;
21746 esac
21747
21748
21749 # Figure out what objdump we will be using.
21750 if test "${gcc_cv_objdump+set}" = set; then :
21751
21752 else
21753
21754 if test -f $gcc_cv_binutils_srcdir/configure.in \
21755 && test -f ../binutils/Makefile \
21756 && test x$build = x$host; then
21757 # Single tree build which includes binutils.
21758 gcc_cv_objdump=../binutils/objdump$build_exeext
21759 elif test -x objdump$build_exeext; then
21760 gcc_cv_objdump=./objdump$build_exeext
21761 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21762 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21763 else
21764 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21765 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21767 $as_echo_n "checking for $ac_word... " >&6; }
21768 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21769 $as_echo_n "(cached) " >&6
21770 else
21771 case $gcc_cv_objdump in
21772 [\\/]* | ?:[\\/]*)
21773 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21774 ;;
21775 *)
21776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21777 for as_dir in $PATH
21778 do
21779 IFS=$as_save_IFS
21780 test -z "$as_dir" && as_dir=.
21781 for ac_exec_ext in '' $ac_executable_extensions; do
21782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21783 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21785 break 2
21786 fi
21787 done
21788 done
21789 IFS=$as_save_IFS
21790
21791 ;;
21792 esac
21793 fi
21794 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21795 if test -n "$gcc_cv_objdump"; then
21796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21797 $as_echo "$gcc_cv_objdump" >&6; }
21798 else
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21800 $as_echo "no" >&6; }
21801 fi
21802
21803
21804 fi
21805 fi
21806
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21808 $as_echo_n "checking what objdump to use... " >&6; }
21809 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21810 # Single tree build which includes binutils.
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21812 $as_echo "newly built objdump" >&6; }
21813 elif test x$gcc_cv_objdump = x; then
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21815 $as_echo "not found" >&6; }
21816 else
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21818 $as_echo "$gcc_cv_objdump" >&6; }
21819 fi
21820
21821 # Figure out what readelf we will be using.
21822 if test "${gcc_cv_readelf+set}" = set; then :
21823
21824 else
21825
21826 if test -f $gcc_cv_binutils_srcdir/configure.in \
21827 && test -f ../binutils/Makefile \
21828 && test x$build = x$host; then
21829 # Single tree build which includes binutils.
21830 gcc_cv_readelf=../binutils/readelf$build_exeext
21831 elif test -x readelf$build_exeext; then
21832 gcc_cv_readelf=./readelf$build_exeext
21833 else
21834 # Extract the first word of "readelf", so it can be a program name with args.
21835 set dummy readelf; ac_word=$2
21836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21837 $as_echo_n "checking for $ac_word... " >&6; }
21838 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21839 $as_echo_n "(cached) " >&6
21840 else
21841 case $gcc_cv_readelf in
21842 [\\/]* | ?:[\\/]*)
21843 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21844 ;;
21845 *)
21846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21847 for as_dir in $PATH
21848 do
21849 IFS=$as_save_IFS
21850 test -z "$as_dir" && as_dir=.
21851 for ac_exec_ext in '' $ac_executable_extensions; do
21852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21853 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21855 break 2
21856 fi
21857 done
21858 done
21859 IFS=$as_save_IFS
21860
21861 ;;
21862 esac
21863 fi
21864 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21865 if test -n "$gcc_cv_readelf"; then
21866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21867 $as_echo "$gcc_cv_readelf" >&6; }
21868 else
21869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21870 $as_echo "no" >&6; }
21871 fi
21872
21873
21874 fi
21875 fi
21876
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21878 $as_echo_n "checking what readelf to use... " >&6; }
21879 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21880 # Single tree build which includes binutils.
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21882 $as_echo "newly built readelf" >&6; }
21883 elif test x$gcc_cv_readelf = x; then
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21885 $as_echo "not found" >&6; }
21886 else
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21888 $as_echo "$gcc_cv_readelf" >&6; }
21889 fi
21890
21891 # Figure out what assembler alignment features are present.
21892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21893 $as_echo_n "checking assembler flags... " >&6; }
21894 if test "${gcc_cv_as_flags+set}" = set; then :
21895 $as_echo_n "(cached) " >&6
21896 else
21897 case "$target" in
21898 i[34567]86-*-linux*)
21899 gcc_cv_as_flags="--32"
21900 ;;
21901 powerpc*-*-darwin*)
21902 gcc_cv_as_flags="-arch ppc"
21903 ;;
21904 *)
21905 gcc_cv_as_flags=" "
21906 ;;
21907 esac
21908 fi
21909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21910 $as_echo "$gcc_cv_as_flags" >&6; }
21911
21912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21913 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21914 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21915 $as_echo_n "(cached) " >&6
21916 else
21917 gcc_cv_as_balign_and_p2align=no
21918 if test $in_tree_gas = yes; then
21919 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21920 then gcc_cv_as_balign_and_p2align=yes
21921 fi
21922 elif test x$gcc_cv_as != x; then
21923 $as_echo '.balign 4
21924 .p2align 2' > conftest.s
21925 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21927 (eval $ac_try) 2>&5
21928 ac_status=$?
21929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21930 test $ac_status = 0; }; }
21931 then
21932 gcc_cv_as_balign_and_p2align=yes
21933 else
21934 echo "configure: failed program was" >&5
21935 cat conftest.s >&5
21936 fi
21937 rm -f conftest.o conftest.s
21938 fi
21939 fi
21940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21941 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21942 if test $gcc_cv_as_balign_and_p2align = yes; then
21943
21944 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21945
21946 fi
21947
21948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21949 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21950 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21951 $as_echo_n "(cached) " >&6
21952 else
21953 gcc_cv_as_max_skip_p2align=no
21954 if test $in_tree_gas = yes; then
21955 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21956 then gcc_cv_as_max_skip_p2align=yes
21957 fi
21958 elif test x$gcc_cv_as != x; then
21959 $as_echo '.p2align 4,,7' > conftest.s
21960 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21962 (eval $ac_try) 2>&5
21963 ac_status=$?
21964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21965 test $ac_status = 0; }; }
21966 then
21967 gcc_cv_as_max_skip_p2align=yes
21968 else
21969 echo "configure: failed program was" >&5
21970 cat conftest.s >&5
21971 fi
21972 rm -f conftest.o conftest.s
21973 fi
21974 fi
21975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21976 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21977 if test $gcc_cv_as_max_skip_p2align = yes; then
21978
21979 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21980
21981 fi
21982
21983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21984 $as_echo_n "checking assembler for .literal16... " >&6; }
21985 if test "${gcc_cv_as_literal16+set}" = set; then :
21986 $as_echo_n "(cached) " >&6
21987 else
21988 gcc_cv_as_literal16=no
21989 if test $in_tree_gas = yes; then
21990 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21991 then gcc_cv_as_literal16=yes
21992 fi
21993 elif test x$gcc_cv_as != x; then
21994 $as_echo '.literal16' > conftest.s
21995 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21997 (eval $ac_try) 2>&5
21998 ac_status=$?
21999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22000 test $ac_status = 0; }; }
22001 then
22002 gcc_cv_as_literal16=yes
22003 else
22004 echo "configure: failed program was" >&5
22005 cat conftest.s >&5
22006 fi
22007 rm -f conftest.o conftest.s
22008 fi
22009 fi
22010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22011 $as_echo "$gcc_cv_as_literal16" >&6; }
22012 if test $gcc_cv_as_literal16 = yes; then
22013
22014 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22015
22016 fi
22017
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22019 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22020 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22021 $as_echo_n "(cached) " >&6
22022 else
22023 gcc_cv_as_subsection_m1=no
22024 if test $in_tree_gas = yes; then
22025 if test $in_tree_gas_is_elf = yes \
22026 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22027 then gcc_cv_as_subsection_m1=yes
22028 fi
22029 elif test x$gcc_cv_as != x; then
22030 $as_echo 'conftest_label1: .word 0
22031 .subsection -1
22032 conftest_label2: .word 0
22033 .previous' > conftest.s
22034 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22036 (eval $ac_try) 2>&5
22037 ac_status=$?
22038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22039 test $ac_status = 0; }; }
22040 then
22041 if test x$gcc_cv_nm != x; then
22042 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22043 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22044 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22045 then :
22046 else gcc_cv_as_subsection_m1=yes
22047 fi
22048 rm -f conftest.nm1 conftest.nm2
22049 fi
22050 else
22051 echo "configure: failed program was" >&5
22052 cat conftest.s >&5
22053 fi
22054 rm -f conftest.o conftest.s
22055 fi
22056 fi
22057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22058 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22059 if test $gcc_cv_as_subsection_m1 = yes; then
22060
22061 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22062
22063 fi
22064
22065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22066 $as_echo_n "checking assembler for .weak... " >&6; }
22067 if test "${gcc_cv_as_weak+set}" = set; then :
22068 $as_echo_n "(cached) " >&6
22069 else
22070 gcc_cv_as_weak=no
22071 if test $in_tree_gas = yes; then
22072 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22073 then gcc_cv_as_weak=yes
22074 fi
22075 elif test x$gcc_cv_as != x; then
22076 $as_echo ' .weak foobar' > conftest.s
22077 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22079 (eval $ac_try) 2>&5
22080 ac_status=$?
22081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22082 test $ac_status = 0; }; }
22083 then
22084 gcc_cv_as_weak=yes
22085 else
22086 echo "configure: failed program was" >&5
22087 cat conftest.s >&5
22088 fi
22089 rm -f conftest.o conftest.s
22090 fi
22091 fi
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22093 $as_echo "$gcc_cv_as_weak" >&6; }
22094 if test $gcc_cv_as_weak = yes; then
22095
22096 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22097
22098 fi
22099
22100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22101 $as_echo_n "checking assembler for .weakref... " >&6; }
22102 if test "${gcc_cv_as_weakref+set}" = set; then :
22103 $as_echo_n "(cached) " >&6
22104 else
22105 gcc_cv_as_weakref=no
22106 if test $in_tree_gas = yes; then
22107 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22108 then gcc_cv_as_weakref=yes
22109 fi
22110 elif test x$gcc_cv_as != x; then
22111 $as_echo ' .weakref foobar, barfnot' > conftest.s
22112 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22114 (eval $ac_try) 2>&5
22115 ac_status=$?
22116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22117 test $ac_status = 0; }; }
22118 then
22119 gcc_cv_as_weakref=yes
22120 else
22121 echo "configure: failed program was" >&5
22122 cat conftest.s >&5
22123 fi
22124 rm -f conftest.o conftest.s
22125 fi
22126 fi
22127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22128 $as_echo "$gcc_cv_as_weakref" >&6; }
22129 if test $gcc_cv_as_weakref = yes; then
22130
22131 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22132
22133 fi
22134
22135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22136 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22137 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22138 $as_echo_n "(cached) " >&6
22139 else
22140 gcc_cv_as_nsubspa_comdat=no
22141 if test $in_tree_gas = yes; then
22142 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22143 then gcc_cv_as_nsubspa_comdat=yes
22144 fi
22145 elif test x$gcc_cv_as != x; then
22146 $as_echo ' .SPACE $TEXT$
22147 .NSUBSPA $CODE$,COMDAT' > conftest.s
22148 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22150 (eval $ac_try) 2>&5
22151 ac_status=$?
22152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22153 test $ac_status = 0; }; }
22154 then
22155 gcc_cv_as_nsubspa_comdat=yes
22156 else
22157 echo "configure: failed program was" >&5
22158 cat conftest.s >&5
22159 fi
22160 rm -f conftest.o conftest.s
22161 fi
22162 fi
22163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22164 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22165 if test $gcc_cv_as_nsubspa_comdat = yes; then
22166
22167 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22168
22169 fi
22170
22171 # .hidden needs to be supported in both the assembler and the linker,
22172 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22173 # This is irritatingly difficult to feature test for; we have to check the
22174 # date string after the version number. If we've got an in-tree
22175 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22176 # to be safe.
22177 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22179 $as_echo_n "checking assembler for .hidden... " >&6; }
22180 if test "${gcc_cv_as_hidden+set}" = set; then :
22181 $as_echo_n "(cached) " >&6
22182 else
22183 gcc_cv_as_hidden=no
22184 if test $in_tree_gas = yes; then
22185 if test $in_tree_gas_is_elf = yes \
22186 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22187 then gcc_cv_as_hidden=yes
22188 fi
22189 elif test x$gcc_cv_as != x; then
22190 $as_echo ' .hidden foobar
22191 foobar:' > conftest.s
22192 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22194 (eval $ac_try) 2>&5
22195 ac_status=$?
22196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22197 test $ac_status = 0; }; }
22198 then
22199
22200 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22201 # STV_HIDDEN, so disable .hidden support if so.
22202 case "${target}" in
22203 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22204 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22205 cat > conftest.s <<EOF
22206 .globl hidden
22207 .hidden hidden
22208 hidden:
22209 .globl default
22210 .set default,hidden
22211 EOF
22212 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22213 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22214 grep '\.hidden default' > /dev/null; then
22215 gcc_cv_as_hidden=no
22216 else
22217 gcc_cv_as_hidden=yes
22218 fi
22219 else
22220 # Assume bug is present if objdump is missing.
22221 gcc_cv_as_hidden=no
22222 fi
22223 ;;
22224 *)
22225 gcc_cv_as_hidden=yes
22226 ;;
22227 esac
22228 else
22229 echo "configure: failed program was" >&5
22230 cat conftest.s >&5
22231 fi
22232 rm -f conftest.o conftest.s
22233 fi
22234 fi
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22236 $as_echo "$gcc_cv_as_hidden" >&6; }
22237
22238 case "${target}" in
22239 *-*-darwin*)
22240 # Darwin as has some visibility support, though with a different syntax.
22241 gcc_cv_as_hidden=yes
22242 ;;
22243 esac
22244
22245 # gnu_indirect_function type is an extension proposed at
22246 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22247 # selection of function implementation
22248 # Check whether --enable-gnu-indirect-function was given.
22249 if test "${enable_gnu_indirect_function+set}" = set; then :
22250 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22251 yes | no) ;;
22252 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22253 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22254 esac
22255 else
22256 enable_gnu_indirect_function="$default_gnu_indirect_function"
22257 fi
22258
22259 if test x$enable_gnu_indirect_function = xyes; then
22260
22261 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22262
22263 fi
22264
22265 if test $in_tree_ld != yes ; then
22266 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22267 if echo "$ld_ver" | grep GNU > /dev/null; then
22268 if test x"$ld_is_gold" = xyes; then
22269 # GNU gold --version looks like this:
22270 #
22271 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22272 #
22273 # We extract the binutils version which is more familiar and specific
22274 # than the gold version.
22275 ld_vers=`echo $ld_ver | sed -n \
22276 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22277 else
22278 # GNU ld --version looks like this:
22279 #
22280 # GNU ld (GNU Binutils) 2.21.51.20110225
22281 ld_vers=`echo $ld_ver | sed -n \
22282 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22283 fi
22284 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'`
22285 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22286 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22287 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22288 else
22289 case "${target}" in
22290 *-*-solaris2*)
22291 #
22292 # Solaris 2 ld -V output looks like this for a regular version:
22293 #
22294 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22295 #
22296 # but test versions add stuff at the end:
22297 #
22298 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22299 #
22300 ld_ver=`$gcc_cv_ld -V 2>&1`
22301 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22302 ld_vers=`echo $ld_ver | sed -n \
22303 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22304 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22305 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22306 fi
22307 ;;
22308 esac
22309 fi
22310 fi
22311
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22313 $as_echo_n "checking linker for .hidden support... " >&6; }
22314 if test "${gcc_cv_ld_hidden+set}" = set; then :
22315 $as_echo_n "(cached) " >&6
22316 else
22317 if test $in_tree_ld = yes ; then
22318 gcc_cv_ld_hidden=no
22319 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 \
22320 && test $in_tree_ld_is_elf = yes; then
22321 gcc_cv_ld_hidden=yes
22322 fi
22323 else
22324 gcc_cv_ld_hidden=yes
22325 if test x"$ld_is_gold" = xyes; then
22326 :
22327 elif echo "$ld_ver" | grep GNU > /dev/null; then
22328 if test 0"$ld_date" -lt 20020404; then
22329 if test -n "$ld_date"; then
22330 # If there was date string, but was earlier than 2002-04-04, fail
22331 gcc_cv_ld_hidden=no
22332 elif test -z "$ld_vers"; then
22333 # If there was no date string nor ld version number, something is wrong
22334 gcc_cv_ld_hidden=no
22335 else
22336 test -z "$ld_vers_patch" && ld_vers_patch=0
22337 if test "$ld_vers_major" -lt 2; then
22338 gcc_cv_ld_hidden=no
22339 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22340 gcc_cv_ld_hidden="no"
22341 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22342 gcc_cv_ld_hidden=no
22343 fi
22344 fi
22345 fi
22346 else
22347 case "${target}" in
22348 *-*-darwin*)
22349 # Darwin ld has some visibility support.
22350 gcc_cv_ld_hidden=yes
22351 ;;
22352 hppa64*-*-hpux* | ia64*-*-hpux*)
22353 gcc_cv_ld_hidden=yes
22354 ;;
22355 *-*-solaris2.8*)
22356 # .hidden support was backported to Solaris 8, starting with ld
22357 # version 1.276.
22358 if test "$ld_vers_minor" -ge 276; then
22359 gcc_cv_ld_hidden=yes
22360 else
22361 gcc_cv_ld_hidden=no
22362 fi
22363 ;;
22364 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22365 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22366 # .symbolic was only added in Solaris 9 12/02.
22367 gcc_cv_ld_hidden=yes
22368 ;;
22369 *)
22370 gcc_cv_ld_hidden=no
22371 ;;
22372 esac
22373 fi
22374 fi
22375 fi
22376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22377 $as_echo "$gcc_cv_ld_hidden" >&6; }
22378 libgcc_visibility=no
22379
22380
22381 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22382 libgcc_visibility=yes
22383
22384 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22385
22386 fi
22387
22388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22389 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22390 gcc_cv_ld_ro_rw_mix=unknown
22391 if test $in_tree_ld = yes ; then
22392 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 \
22393 && test $in_tree_ld_is_elf = yes; then
22394 gcc_cv_ld_ro_rw_mix=read-write
22395 fi
22396 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22397 echo '.section myfoosect, "a"' > conftest1.s
22398 echo '.section myfoosect, "aw"' > conftest2.s
22399 echo '.byte 1' >> conftest2.s
22400 echo '.section myfoosect, "a"' > conftest3.s
22401 echo '.byte 0' >> conftest3.s
22402 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22403 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22404 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22405 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22406 conftest2.o conftest3.o > /dev/null 2>&1; then
22407 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22408 | sed -e '/myfoosect/!d' -e N`
22409 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22410 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22411 gcc_cv_ld_ro_rw_mix=read-only
22412 else
22413 gcc_cv_ld_ro_rw_mix=read-write
22414 fi
22415 fi
22416 fi
22417 rm -f conftest.* conftest[123].*
22418 fi
22419 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22420
22421 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22422
22423 fi
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22425 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22426
22427 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22429 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22430 if test "${gcc_cv_as_leb128+set}" = set; then :
22431 $as_echo_n "(cached) " >&6
22432 else
22433 gcc_cv_as_leb128=no
22434 if test $in_tree_gas = yes; then
22435 if test $in_tree_gas_is_elf = yes \
22436 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22437 then gcc_cv_as_leb128=yes
22438 fi
22439 elif test x$gcc_cv_as != x; then
22440 $as_echo ' .data
22441 .uleb128 L2 - L1
22442 L1:
22443 .uleb128 1280
22444 .sleb128 -1010
22445 L2:' > conftest.s
22446 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22448 (eval $ac_try) 2>&5
22449 ac_status=$?
22450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22451 test $ac_status = 0; }; }
22452 then
22453 # GAS versions before 2.11 do not support uleb128,
22454 # despite appearing to.
22455 # ??? There exists an elf-specific test that will crash
22456 # the assembler. Perhaps it's better to figure out whether
22457 # arbitrary sections are supported and try the test.
22458 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22459 if echo "$as_ver" | grep GNU > /dev/null; then
22460 as_vers=`echo $as_ver | sed -n \
22461 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22462 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22463 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22464 if test $as_major -eq 2 && test $as_minor -lt 11
22465 then :
22466 else gcc_cv_as_leb128=yes
22467 fi
22468 fi
22469 else
22470 echo "configure: failed program was" >&5
22471 cat conftest.s >&5
22472 fi
22473 rm -f conftest.o conftest.s
22474 fi
22475 fi
22476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22477 $as_echo "$gcc_cv_as_leb128" >&6; }
22478 if test $gcc_cv_as_leb128 = yes; then
22479
22480 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22481
22482 fi
22483
22484 # Check if we have assembler support for unwind directives.
22485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22486 $as_echo_n "checking assembler for cfi directives... " >&6; }
22487 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22488 $as_echo_n "(cached) " >&6
22489 else
22490 gcc_cv_as_cfi_directive=no
22491 if test x$gcc_cv_as != x; then
22492 $as_echo ' .text
22493 .cfi_startproc
22494 .cfi_offset 0, 0
22495 .cfi_same_value 1
22496 .cfi_def_cfa 1, 2
22497 .cfi_escape 1, 2, 3, 4, 5
22498 .cfi_endproc' > conftest.s
22499 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22501 (eval $ac_try) 2>&5
22502 ac_status=$?
22503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22504 test $ac_status = 0; }; }
22505 then
22506 case "$target" in
22507 *-*-solaris*)
22508 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22509 # read-only and read-write sections, we need to make sure that the
22510 # assembler used emits read-write .eh_frame sections.
22511 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22512 if test "x$gcc_cv_objdump" != x; then
22513 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22514 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22515 gcc_cv_as_cfi_directive=no
22516 else
22517 case "$target" in
22518 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22519 # On Solaris/x86, make sure that GCC and gas agree on using
22520 # read-only .eh_frame sections for 64-bit.
22521 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22522 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22523 sed -e /.eh_frame/!d -e N | \
22524 grep READONLY > /dev/null; then
22525 gcc_cv_as_cfi_directive=yes
22526 else
22527 gcc_cv_as_cfi_directive=no
22528 fi
22529 ;;
22530 *)
22531 gcc_cv_as_cfi_directive=yes
22532 ;;
22533 esac
22534 fi
22535 else
22536 # no objdump, err on the side of caution
22537 gcc_cv_as_cfi_directive=no
22538 fi
22539 else
22540 gcc_cv_as_cfi_directive=yes
22541 fi
22542 ;;
22543 *-*-*)
22544 gcc_cv_as_cfi_directive=yes
22545 ;;
22546 esac
22547 else
22548 echo "configure: failed program was" >&5
22549 cat conftest.s >&5
22550 fi
22551 rm -f conftest.o conftest.s
22552 fi
22553 fi
22554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22555 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22556
22557 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22559 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22560 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22561 $as_echo_n "(cached) " >&6
22562 else
22563 gcc_cv_as_cfi_advance_working=no
22564 if test x$gcc_cv_as != x; then
22565 $as_echo ' .text
22566 .cfi_startproc
22567 .cfi_adjust_cfa_offset 64
22568 .skip 75040, 0
22569 .cfi_adjust_cfa_offset 128
22570 .cfi_endproc' > conftest.s
22571 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22573 (eval $ac_try) 2>&5
22574 ac_status=$?
22575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22576 test $ac_status = 0; }; }
22577 then
22578
22579 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22580 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22581 gcc_cv_as_cfi_advance_working=yes
22582 fi
22583
22584 else
22585 echo "configure: failed program was" >&5
22586 cat conftest.s >&5
22587 fi
22588 rm -f conftest.o conftest.s
22589 fi
22590 fi
22591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22592 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22593
22594 else
22595 # no objdump, err on the side of caution
22596 gcc_cv_as_cfi_advance_working=no
22597 fi
22598
22599
22600 cat >>confdefs.h <<_ACEOF
22601 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22602 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22603 _ACEOF
22604
22605
22606
22607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22608 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22609 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22610 $as_echo_n "(cached) " >&6
22611 else
22612 gcc_cv_as_cfi_personality_directive=no
22613 if test x$gcc_cv_as != x; then
22614 $as_echo ' .text
22615 .cfi_startproc
22616 .cfi_personality 0, symbol
22617 .cfi_endproc' > conftest.s
22618 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22620 (eval $ac_try) 2>&5
22621 ac_status=$?
22622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22623 test $ac_status = 0; }; }
22624 then
22625 gcc_cv_as_cfi_personality_directive=yes
22626 else
22627 echo "configure: failed program was" >&5
22628 cat conftest.s >&5
22629 fi
22630 rm -f conftest.o conftest.s
22631 fi
22632 fi
22633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22634 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22635
22636
22637 cat >>confdefs.h <<_ACEOF
22638 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22639 then echo 1; else echo 0; fi`
22640 _ACEOF
22641
22642
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22644 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22645 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22646 $as_echo_n "(cached) " >&6
22647 else
22648 gcc_cv_as_cfi_sections_directive=no
22649 if test x$gcc_cv_as != x; then
22650 $as_echo ' .text
22651 .cfi_sections .debug_frame, .eh_frame
22652 .cfi_startproc
22653 .cfi_endproc' > conftest.s
22654 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22656 (eval $ac_try) 2>&5
22657 ac_status=$?
22658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22659 test $ac_status = 0; }; }
22660 then
22661 case $target_os in
22662 win32 | pe | cygwin* | mingw32* | uwin*)
22663 # Need to check that we generated the correct relocation for the
22664 # .debug_frame section. This was fixed for binutils 2.21.
22665 gcc_cv_as_cfi_sections_directive=no
22666 if test "x$gcc_cv_objdump" != x; then
22667 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22668 grep secrel > /dev/null; then
22669 gcc_cv_as_cfi_sections_directive=yes
22670 fi
22671 fi
22672 ;;
22673 *)
22674 gcc_cv_as_cfi_sections_directive=yes
22675 ;;
22676 esac
22677 else
22678 echo "configure: failed program was" >&5
22679 cat conftest.s >&5
22680 fi
22681 rm -f conftest.o conftest.s
22682 fi
22683 fi
22684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22685 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22686
22687
22688
22689 cat >>confdefs.h <<_ACEOF
22690 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22691 then echo 1; else echo 0; fi`
22692 _ACEOF
22693
22694
22695 # GAS versions up to and including 2.11.0 may mis-optimize
22696 # .eh_frame data.
22697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22698 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22699 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22700 $as_echo_n "(cached) " >&6
22701 else
22702 gcc_cv_as_eh_frame=no
22703 if test $in_tree_gas = yes; then
22704 if test $in_tree_gas_is_elf = yes \
22705 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22706 then gcc_cv_as_eh_frame=yes
22707 fi
22708 elif test x$gcc_cv_as != x; then
22709 $as_echo ' .text
22710 .LFB1:
22711 .4byte 0
22712 .L1:
22713 .4byte 0
22714 .LFE1:
22715 .section .eh_frame,"aw",@progbits
22716 __FRAME_BEGIN__:
22717 .4byte .LECIE1-.LSCIE1
22718 .LSCIE1:
22719 .4byte 0x0
22720 .byte 0x1
22721 .ascii "z\0"
22722 .byte 0x1
22723 .byte 0x78
22724 .byte 0x1a
22725 .byte 0x0
22726 .byte 0x4
22727 .4byte 1
22728 .p2align 1
22729 .LECIE1:
22730 .LSFDE1:
22731 .4byte .LEFDE1-.LASFDE1
22732 .LASFDE1:
22733 .4byte .LASFDE1-__FRAME_BEGIN__
22734 .4byte .LFB1
22735 .4byte .LFE1-.LFB1
22736 .byte 0x4
22737 .4byte .LFE1-.LFB1
22738 .byte 0x4
22739 .4byte .L1-.LFB1
22740 .LEFDE1:' > conftest.s
22741 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22743 (eval $ac_try) 2>&5
22744 ac_status=$?
22745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22746 test $ac_status = 0; }; }
22747 then
22748 cat > conftest.lit <<EOF
22749 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22750 0010 01000000 12000000 18000000 00000000 ................
22751 0020 08000000 04080000 0044 .........D
22752 EOF
22753 cat > conftest.big <<EOF
22754 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22755 0010 00000001 00000012 00000018 00000000 ................
22756 0020 00000008 04000000 0844 .........D
22757 EOF
22758 # If the assembler didn't choke, and we can objdump,
22759 # and we got the correct data, then succeed.
22760 # The text in the here-document typically retains its unix-style line
22761 # endings, while the output of objdump will use host line endings.
22762 # Therefore, use diff -b for the comparisons.
22763 if test x$gcc_cv_objdump != x \
22764 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22765 | tail -3 > conftest.got \
22766 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22767 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22768 then
22769 gcc_cv_as_eh_frame=yes
22770 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22772 (eval $ac_try) 2>&5
22773 ac_status=$?
22774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22775 test $ac_status = 0; }; }; then
22776 gcc_cv_as_eh_frame=buggy
22777 else
22778 # Uh oh, what do we do now?
22779 gcc_cv_as_eh_frame=no
22780 fi
22781 else
22782 echo "configure: failed program was" >&5
22783 cat conftest.s >&5
22784 fi
22785 rm -f conftest.o conftest.s
22786 fi
22787 fi
22788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22789 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22790
22791
22792 if test $gcc_cv_as_eh_frame = buggy; then
22793
22794 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22795
22796 fi
22797
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22799 $as_echo_n "checking assembler for section merging support... " >&6; }
22800 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22801 $as_echo_n "(cached) " >&6
22802 else
22803 gcc_cv_as_shf_merge=no
22804 if test $in_tree_gas = yes; then
22805 if test $in_tree_gas_is_elf = yes \
22806 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22807 then gcc_cv_as_shf_merge=yes
22808 fi
22809 elif test x$gcc_cv_as != x; then
22810 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22811 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22813 (eval $ac_try) 2>&5
22814 ac_status=$?
22815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22816 test $ac_status = 0; }; }
22817 then
22818 gcc_cv_as_shf_merge=yes
22819 else
22820 echo "configure: failed program was" >&5
22821 cat conftest.s >&5
22822 fi
22823 rm -f conftest.o conftest.s
22824 fi
22825 fi
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22827 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22828
22829 if test $gcc_cv_as_shf_merge = no; then
22830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22831 $as_echo_n "checking assembler for section merging support... " >&6; }
22832 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22833 $as_echo_n "(cached) " >&6
22834 else
22835 gcc_cv_as_shf_merge=no
22836 if test $in_tree_gas = yes; then
22837 if test $in_tree_gas_is_elf = yes \
22838 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22839 then gcc_cv_as_shf_merge=yes
22840 fi
22841 elif test x$gcc_cv_as != x; then
22842 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22843 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22845 (eval $ac_try) 2>&5
22846 ac_status=$?
22847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22848 test $ac_status = 0; }; }
22849 then
22850 gcc_cv_as_shf_merge=yes
22851 else
22852 echo "configure: failed program was" >&5
22853 cat conftest.s >&5
22854 fi
22855 rm -f conftest.o conftest.s
22856 fi
22857 fi
22858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22859 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22860
22861 fi
22862
22863 cat >>confdefs.h <<_ACEOF
22864 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22865 _ACEOF
22866
22867
22868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22869 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22870 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22871 $as_echo_n "(cached) " >&6
22872 else
22873 gcc_cv_as_comdat_group=no
22874 if test $in_tree_gas = yes; then
22875 if test $in_tree_gas_is_elf = yes \
22876 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22877 then gcc_cv_as_comdat_group=yes
22878 fi
22879 elif test x$gcc_cv_as != x; then
22880 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22881 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22883 (eval $ac_try) 2>&5
22884 ac_status=$?
22885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22886 test $ac_status = 0; }; }
22887 then
22888 gcc_cv_as_comdat_group=yes
22889 else
22890 echo "configure: failed program was" >&5
22891 cat conftest.s >&5
22892 fi
22893 rm -f conftest.o conftest.s
22894 fi
22895 fi
22896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22897 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22898
22899 if test $gcc_cv_as_comdat_group = yes; then
22900 gcc_cv_as_comdat_group_percent=no
22901 gcc_cv_as_comdat_group_group=no
22902 else
22903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22904 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22905 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22906 $as_echo_n "(cached) " >&6
22907 else
22908 gcc_cv_as_comdat_group_percent=no
22909 if test $in_tree_gas = yes; then
22910 if test $in_tree_gas_is_elf = yes \
22911 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22912 then gcc_cv_as_comdat_group_percent=yes
22913 fi
22914 elif test x$gcc_cv_as != x; then
22915 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22916 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22918 (eval $ac_try) 2>&5
22919 ac_status=$?
22920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22921 test $ac_status = 0; }; }
22922 then
22923 gcc_cv_as_comdat_group_percent=yes
22924 else
22925 echo "configure: failed program was" >&5
22926 cat conftest.s >&5
22927 fi
22928 rm -f conftest.o conftest.s
22929 fi
22930 fi
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22932 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22933
22934 if test $gcc_cv_as_comdat_group_percent = yes; then
22935 gcc_cv_as_comdat_group_group=no
22936 else
22937 case "${target}" in
22938 # Sun as uses a completely different syntax.
22939 *-*-solaris2*)
22940 case "${target}" in
22941 sparc*-*-solaris2*)
22942 conftest_s='
22943 .group foo,".text%foo",#comdat
22944 .section ".text%foo", #alloc,#execinstr,#progbits
22945 .globl foo
22946 foo:
22947 '
22948 ;;
22949 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22950 conftest_s='
22951 .group foo,.text%foo,#comdat
22952 .section .text%foo, "ax", @progbits
22953 .globl foo
22954 foo:
22955 '
22956 ;;
22957 esac
22958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22959 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22960 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22961 $as_echo_n "(cached) " >&6
22962 else
22963 gcc_cv_as_comdat_group_group=no
22964 if test x$gcc_cv_as != x; then
22965 $as_echo "$conftest_s" > conftest.s
22966 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22968 (eval $ac_try) 2>&5
22969 ac_status=$?
22970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22971 test $ac_status = 0; }; }
22972 then
22973 gcc_cv_as_comdat_group_group=yes
22974 else
22975 echo "configure: failed program was" >&5
22976 cat conftest.s >&5
22977 fi
22978 rm -f conftest.o conftest.s
22979 fi
22980 fi
22981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22982 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22983
22984 ;;
22985 esac
22986 fi
22987 fi
22988 if test x"$ld_is_gold" = xyes; then
22989 comdat_group=yes
22990 elif test $in_tree_ld = yes ; then
22991 comdat_group=no
22992 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 \
22993 && test $in_tree_ld_is_elf = yes; then
22994 comdat_group=yes
22995 fi
22996 elif echo "$ld_ver" | grep GNU > /dev/null; then
22997 comdat_group=yes
22998 if test 0"$ld_date" -lt 20050308; then
22999 if test -n "$ld_date"; then
23000 # If there was date string, but was earlier than 2005-03-08, fail
23001 comdat_group=no
23002 elif test "$ld_vers_major" -lt 2; then
23003 comdat_group=no
23004 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23005 comdat_group=no
23006 fi
23007 fi
23008 else
23009 case "${target}" in
23010 *-*-solaris2.1[1-9]*)
23011 comdat_group=no
23012 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23013 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23014 # version 1.688.
23015 #
23016 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23017 # least ld version 1.2267.
23018 if test "$ld_vers_major" -gt 1; then
23019 comdat_group=yes
23020 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23021 comdat_group=yes
23022 elif test "$ld_vers_minor" -ge 2267; then
23023 comdat_group=yes
23024 fi
23025 ;;
23026 *)
23027 # Assume linkers other than GNU ld don't support COMDAT group.
23028 comdat_group=no
23029 ;;
23030 esac
23031 fi
23032 # Allow overriding the automatic COMDAT group tests above.
23033 # Check whether --enable-comdat was given.
23034 if test "${enable_comdat+set}" = set; then :
23035 enableval=$enable_comdat; comdat_group="$enable_comdat"
23036 fi
23037
23038 if test $comdat_group = no; then
23039 gcc_cv_as_comdat_group=no
23040 gcc_cv_as_comdat_group_percent=no
23041 gcc_cv_as_comdat_group_group=no
23042 fi
23043
23044 cat >>confdefs.h <<_ACEOF
23045 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23046 || test $gcc_cv_as_comdat_group_percent = yes \
23047 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23048 _ACEOF
23049
23050
23051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23052 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23053 if test "${gcc_cv_as_discriminator+set}" = set; then :
23054 $as_echo_n "(cached) " >&6
23055 else
23056 gcc_cv_as_discriminator=no
23057 if test $in_tree_gas = yes; then
23058 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23059 then gcc_cv_as_discriminator=yes
23060 fi
23061 elif test x$gcc_cv_as != x; then
23062 $as_echo ' .text
23063 .file 1 "conf.c"
23064 .loc 1 1 0 discriminator 1' > conftest.s
23065 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23067 (eval $ac_try) 2>&5
23068 ac_status=$?
23069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23070 test $ac_status = 0; }; }
23071 then
23072 gcc_cv_as_discriminator=yes
23073 else
23074 echo "configure: failed program was" >&5
23075 cat conftest.s >&5
23076 fi
23077 rm -f conftest.o conftest.s
23078 fi
23079 fi
23080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23081 $as_echo "$gcc_cv_as_discriminator" >&6; }
23082 if test $gcc_cv_as_discriminator = yes; then
23083
23084 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23085
23086 fi
23087
23088 # Thread-local storage - the check is heavily parameterized.
23089 conftest_s=
23090 tls_first_major=
23091 tls_first_minor=
23092 tls_as_opt=
23093 case "$target" in
23094 alpha*-*-*)
23095 conftest_s='
23096 .section ".tdata","awT",@progbits
23097 foo: .long 25
23098 .text
23099 ldq $27,__tls_get_addr($29) !literal!1
23100 lda $16,foo($29) !tlsgd!1
23101 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23102 ldq $27,__tls_get_addr($29) !literal!2
23103 lda $16,foo($29) !tlsldm!2
23104 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23105 ldq $1,foo($29) !gotdtprel
23106 ldah $2,foo($29) !dtprelhi
23107 lda $3,foo($2) !dtprello
23108 lda $4,foo($29) !dtprel
23109 ldq $1,foo($29) !gottprel
23110 ldah $2,foo($29) !tprelhi
23111 lda $3,foo($2) !tprello
23112 lda $4,foo($29) !tprel'
23113 tls_first_major=2
23114 tls_first_minor=13
23115 tls_as_opt=--fatal-warnings
23116 ;;
23117 cris-*-*|crisv32-*-*)
23118 conftest_s='
23119 .section ".tdata","awT",@progbits
23120 x: .long 25
23121 .text
23122 move.d x:IE,$r10
23123 nop'
23124 tls_first_major=2
23125 tls_first_minor=20
23126 tls_as_opt=--fatal-warnings
23127 ;;
23128 frv*-*-*)
23129 conftest_s='
23130 .section ".tdata","awT",@progbits
23131 x: .long 25
23132 .text
23133 call #gettlsoff(x)'
23134 tls_first_major=2
23135 tls_first_minor=14
23136 ;;
23137 hppa*-*-linux*)
23138 conftest_s='
23139 t1: .reg %r20
23140 t2: .reg %r21
23141 gp: .reg %r19
23142 .section ".tdata","awT",@progbits
23143 foo: .long 25
23144 .text
23145 .align 4
23146 addil LT%foo-$tls_gdidx$,gp
23147 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23148 b __tls_get_addr
23149 nop
23150 addil LT%foo-$tls_ldidx$,gp
23151 b __tls_get_addr
23152 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23153 addil LR%foo-$tls_dtpoff$,%ret0
23154 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23155 mfctl %cr27,%t1
23156 addil LT%foo-$tls_ieoff$,gp
23157 ldw RT%foo-$tls_ieoff$(%r1),%t2
23158 add %t1,%t2,%t3
23159 mfctl %cr27,%t1
23160 addil LR%foo-$tls_leoff$,%t1
23161 ldo RR%foo-$tls_leoff$(%r1),%t2'
23162 tls_first_major=2
23163 tls_first_minor=15
23164 tls_as_opt=--fatal-warnings
23165 ;;
23166 arm*-*-*)
23167 conftest_s='
23168 .section ".tdata","awT",%progbits
23169 foo: .long 25
23170 .text
23171 .word foo(gottpoff)
23172 .word foo(tpoff)
23173 .word foo(tlsgd)
23174 .word foo(tlsldm)
23175 .word foo(tlsldo)'
23176 tls_first_major=2
23177 tls_first_minor=17
23178 ;;
23179 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23180 case "$target" in
23181 i[34567]86-*-solaris2.*)
23182 on_solaris=yes
23183 tga_func=___tls_get_addr
23184 ;;
23185 x86_64-*-solaris2.1[0-9]*)
23186 on_solaris=yes
23187 tga_func=__tls_get_addr
23188 ;;
23189 *)
23190 on_solaris=no
23191 ;;
23192 esac
23193 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23194 conftest_s='
23195 .section .tdata,"awt",@progbits'
23196 tls_first_major=0
23197 tls_first_minor=0
23198
23199 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23200
23201 else
23202 conftest_s='
23203 .section ".tdata","awT",@progbits'
23204 tls_first_major=2
23205 tls_first_minor=14
23206 tls_as_opt="--fatal-warnings"
23207 fi
23208 conftest_s="$conftest_s
23209 foo: .long 25
23210 .text
23211 movl %gs:0, %eax
23212 leal foo@tlsgd(,%ebx,1), %eax
23213 leal foo@tlsldm(%ebx), %eax
23214 leal foo@dtpoff(%eax), %edx
23215 movl foo@gottpoff(%ebx), %eax
23216 subl foo@gottpoff(%ebx), %eax
23217 addl foo@gotntpoff(%ebx), %eax
23218 movl foo@indntpoff, %eax
23219 movl \$foo@tpoff, %eax
23220 subl \$foo@tpoff, %eax
23221 leal foo@ntpoff(%ecx), %eax"
23222 ;;
23223 x86_64-*-*)
23224 conftest_s='
23225 .section ".tdata","awT",@progbits
23226 foo: .long 25
23227 .text
23228 movq %fs:0, %rax
23229 leaq foo@TLSGD(%rip), %rdi
23230 leaq foo@TLSLD(%rip), %rdi
23231 leaq foo@DTPOFF(%rax), %rdx
23232 movq foo@GOTTPOFF(%rip), %rax
23233 movq $foo@TPOFF, %rax'
23234 tls_first_major=2
23235 tls_first_minor=14
23236 tls_as_opt=--fatal-warnings
23237 ;;
23238 ia64-*-*)
23239 conftest_s='
23240 .section ".tdata","awT",@progbits
23241 foo: data8 25
23242 .text
23243 addl r16 = @ltoff(@dtpmod(foo#)), gp
23244 addl r17 = @ltoff(@dtprel(foo#)), gp
23245 addl r18 = @ltoff(@tprel(foo#)), gp
23246 addl r19 = @dtprel(foo#), gp
23247 adds r21 = @dtprel(foo#), r13
23248 movl r23 = @dtprel(foo#)
23249 addl r20 = @tprel(foo#), gp
23250 adds r22 = @tprel(foo#), r13
23251 movl r24 = @tprel(foo#)'
23252 tls_first_major=2
23253 tls_first_minor=13
23254 tls_as_opt=--fatal-warnings
23255 ;;
23256 mips*-*-*)
23257 conftest_s='
23258 .section .tdata,"awT",@progbits
23259 x:
23260 .word 2
23261 .text
23262 addiu $4, $28, %tlsgd(x)
23263 addiu $4, $28, %tlsldm(x)
23264 lui $4, %dtprel_hi(x)
23265 addiu $4, $4, %dtprel_lo(x)
23266 lw $4, %gottprel(x)($28)
23267 lui $4, %tprel_hi(x)
23268 addiu $4, $4, %tprel_lo(x)'
23269 tls_first_major=2
23270 tls_first_minor=16
23271 tls_as_opt='-32 --fatal-warnings'
23272 ;;
23273 m68k-*-*)
23274 conftest_s='
23275 .section .tdata,"awT",@progbits
23276 x:
23277 .word 2
23278 .text
23279 foo:
23280 move.l x@TLSGD(%a5),%a0
23281 move.l x@TLSLDM(%a5),%a0
23282 move.l x@TLSLDO(%a5),%a0
23283 move.l x@TLSIE(%a5),%a0
23284 move.l x@TLSLE(%a5),%a0'
23285 tls_first_major=2
23286 tls_first_minor=19
23287 tls_as_opt='--fatal-warnings'
23288 ;;
23289 powerpc-*-*)
23290 conftest_s='
23291 .section ".tdata","awT",@progbits
23292 .align 2
23293 ld0: .space 4
23294 ld1: .space 4
23295 x1: .space 4
23296 x2: .space 4
23297 x3: .space 4
23298 .text
23299 addi 3,31,ld0@got@tlsgd
23300 bl __tls_get_addr
23301 addi 3,31,x1@got@tlsld
23302 bl __tls_get_addr
23303 addi 9,3,x1@dtprel
23304 addis 9,3,x2@dtprel@ha
23305 addi 9,9,x2@dtprel@l
23306 lwz 9,x3@got@tprel(31)
23307 add 9,9,x@tls
23308 addi 9,2,x1@tprel
23309 addis 9,2,x2@tprel@ha
23310 addi 9,9,x2@tprel@l'
23311 tls_first_major=2
23312 tls_first_minor=14
23313 tls_as_opt="-a32 --fatal-warnings"
23314 ;;
23315 powerpc64-*-*)
23316 conftest_s='
23317 .section ".tdata","awT",@progbits
23318 .align 3
23319 ld0: .space 8
23320 ld1: .space 8
23321 x1: .space 8
23322 x2: .space 8
23323 x3: .space 8
23324 .text
23325 addi 3,2,ld0@got@tlsgd
23326 bl .__tls_get_addr
23327 nop
23328 addi 3,2,ld1@toc
23329 bl .__tls_get_addr
23330 nop
23331 addi 3,2,x1@got@tlsld
23332 bl .__tls_get_addr
23333 nop
23334 addi 9,3,x1@dtprel
23335 bl .__tls_get_addr
23336 nop
23337 addis 9,3,x2@dtprel@ha
23338 addi 9,9,x2@dtprel@l
23339 bl .__tls_get_addr
23340 nop
23341 ld 9,x3@got@dtprel(2)
23342 add 9,9,3
23343 bl .__tls_get_addr
23344 nop'
23345 tls_first_major=2
23346 tls_first_minor=14
23347 tls_as_opt="-a64 --fatal-warnings"
23348 ;;
23349 s390-*-*)
23350 conftest_s='
23351 .section ".tdata","awT",@progbits
23352 foo: .long 25
23353 .text
23354 .long foo@TLSGD
23355 .long foo@TLSLDM
23356 .long foo@DTPOFF
23357 .long foo@NTPOFF
23358 .long foo@GOTNTPOFF
23359 .long foo@INDNTPOFF
23360 l %r1,foo@GOTNTPOFF(%r12)
23361 l %r1,0(%r1):tls_load:foo
23362 bas %r14,0(%r1,%r13):tls_gdcall:foo
23363 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23364 tls_first_major=2
23365 tls_first_minor=14
23366 tls_as_opt="-m31 --fatal-warnings"
23367 ;;
23368 s390x-*-*)
23369 conftest_s='
23370 .section ".tdata","awT",@progbits
23371 foo: .long 25
23372 .text
23373 .quad foo@TLSGD
23374 .quad foo@TLSLDM
23375 .quad foo@DTPOFF
23376 .quad foo@NTPOFF
23377 .quad foo@GOTNTPOFF
23378 lg %r1,foo@GOTNTPOFF(%r12)
23379 larl %r1,foo@INDNTPOFF
23380 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23381 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23382 tls_first_major=2
23383 tls_first_minor=14
23384 tls_as_opt="-m64 -Aesame --fatal-warnings"
23385 ;;
23386 sh-*-* | sh[34]-*-*)
23387 conftest_s='
23388 .section ".tdata","awT",@progbits
23389 foo: .long 25
23390 .text
23391 .long foo@TLSGD
23392 .long foo@TLSLDM
23393 .long foo@DTPOFF
23394 .long foo@GOTTPOFF
23395 .long foo@TPOFF'
23396 tls_first_major=2
23397 tls_first_minor=13
23398 tls_as_opt=--fatal-warnings
23399 ;;
23400 sparc*-*-*)
23401 case "$target" in
23402 sparc*-sun-solaris2.*)
23403 on_solaris=yes
23404 tga_func=__tls_get_addr
23405 ;;
23406 *)
23407 on_solaris=no
23408 ;;
23409 esac
23410 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23411 conftest_s='
23412 .section ".tdata",#alloc,#write,#tls'
23413 tls_first_major=0
23414 tls_first_minor=0
23415 else
23416 conftest_s='
23417 .section ".tdata","awT",@progbits'
23418 tls_first_major=2
23419 tls_first_minor=14
23420 tls_as_opt="-32 --fatal-warnings"
23421 fi
23422 conftest_s="$conftest_s
23423 foo: .long 25
23424 .text
23425 sethi %tgd_hi22(foo), %o0
23426 add %o0, %tgd_lo10(foo), %o1
23427 add %l7, %o1, %o0, %tgd_add(foo)
23428 call __tls_get_addr, %tgd_call(foo)
23429 sethi %tldm_hi22(foo), %l1
23430 add %l1, %tldm_lo10(foo), %l2
23431 add %l7, %l2, %o0, %tldm_add(foo)
23432 call __tls_get_addr, %tldm_call(foo)
23433 sethi %tldo_hix22(foo), %l3
23434 xor %l3, %tldo_lox10(foo), %l4
23435 add %o0, %l4, %l5, %tldo_add(foo)
23436 sethi %tie_hi22(foo), %o3
23437 add %o3, %tie_lo10(foo), %o3
23438 ld [%l7 + %o3], %o2, %tie_ld(foo)
23439 add %g7, %o2, %o4, %tie_add(foo)
23440 sethi %tle_hix22(foo), %l1
23441 xor %l1, %tle_lox10(foo), %o5
23442 ld [%g7 + %o5], %o1"
23443 ;;
23444 xtensa*-*-*)
23445 conftest_s='
23446 .section ".tdata","awT",@progbits
23447 foo: .long 25
23448 .text
23449 movi a8, foo@TLSFUNC
23450 movi a10, foo@TLSARG
23451 callx8.tls a8, foo@TLSCALL'
23452 tls_first_major=2
23453 tls_first_minor=19
23454 ;;
23455 esac
23456 set_have_as_tls=no
23457 if test "x$enable_tls" = xno ; then
23458 : # TLS explicitly disabled.
23459 elif test "x$enable_tls" = xyes ; then
23460 set_have_as_tls=yes # TLS explicitly enabled.
23461 elif test -z "$tls_first_major"; then
23462 : # If we don't have a check, assume no support.
23463 else
23464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23465 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23466 if test "${gcc_cv_as_tls+set}" = set; then :
23467 $as_echo_n "(cached) " >&6
23468 else
23469 gcc_cv_as_tls=no
23470 if test $in_tree_gas = yes; then
23471 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23472 then gcc_cv_as_tls=yes
23473 fi
23474 elif test x$gcc_cv_as != x; then
23475 $as_echo "$conftest_s" > conftest.s
23476 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23477 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23478 (eval $ac_try) 2>&5
23479 ac_status=$?
23480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23481 test $ac_status = 0; }; }
23482 then
23483 gcc_cv_as_tls=yes
23484 else
23485 echo "configure: failed program was" >&5
23486 cat conftest.s >&5
23487 fi
23488 rm -f conftest.o conftest.s
23489 fi
23490 fi
23491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23492 $as_echo "$gcc_cv_as_tls" >&6; }
23493 if test $gcc_cv_as_tls = yes; then
23494 set_have_as_tls=yes
23495 fi
23496 fi
23497 case "$target" in
23498 *-*-irix6*)
23499 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23500 # with TLS support are in use, native TLS cannot work.
23501 set_have_as_tls=no
23502 ;;
23503 *-*-osf*)
23504 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23505 # gld with TLS support are in use, native TLS cannot work.
23506 set_have_as_tls=no
23507 ;;
23508 # TLS was introduced in the Solaris 9 FCS release and backported to
23509 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
23510 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23511 # ld and GCC don't support any longer.
23512 *-*-solaris2.*)
23513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23514 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23515 ld_tls_support=no
23516 # Check ld and ld.so.1 TLS support.
23517 if echo "$ld_ver" | grep GNU > /dev/null; then
23518 # Assume all interesting versions of GNU ld have TLS support.
23519 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23520 ld_tls_support=yes
23521 else
23522 case "$target" in
23523 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23524 i?86-*-solaris2.8)
23525 min_tls_ld_vers_minor=280
23526 ;;
23527 # Solaris 8/SPARC ld has TLS support since version 1.272.
23528 sparc*-*-solaris2.8)
23529 min_tls_ld_vers_minor=272
23530 ;;
23531 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23532 i?86-*-solaris2.9)
23533 min_tls_ld_vers_minor=374
23534 ;;
23535 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23536 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23537 min_tls_ld_vers_minor=343
23538 ;;
23539 esac
23540 if test "$ld_vers_major" -gt 1 || \
23541 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23542 ld_tls_support=yes
23543 else
23544 set_have_as_tls=no
23545 fi
23546 fi
23547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23548 $as_echo "$ld_tls_support" >&6; }
23549
23550 save_LIBS="$LIBS"
23551 save_LDFLAGS="$LDFLAGS"
23552 LIBS=
23553 LDFLAGS=
23554
23555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23556 $as_echo_n "checking alternate thread library... " >&6; }
23557 case "$target" in
23558 # TLS support was backported to Solaris 8 patches, but only lives in
23559 # the alternate thread library which became the default in Solaris 9.
23560 # We want to always use that, irrespective of TLS support.
23561 *-*-solaris2.8)
23562 # Take multilib subdir into account. There's no spec to handle
23563 # this. The 64 symlink exists since Solaris 8.
23564 lwp_dir=/usr/lib/lwp
23565 lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23566 LDFLAGS="-L$lwp_dir -R$lwp_dir"
23567 ;;
23568 *-*-solaris2*)
23569 lwp_dir="none"
23570 lwp_spec=""
23571 ;;
23572 esac
23573 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23574
23575 cat >>confdefs.h <<_ACEOF
23576 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23577 _ACEOF
23578
23579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23580 $as_echo "$lwp_dir" >&6; }
23581
23582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23583 $as_echo_n "checking library containing $tga_func... " >&6; }
23584 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23585 # (32-bit x86) only lived in libthread, so check for that. Keep
23586 # set_have_as_tls if found, disable if not.
23587 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23589 $as_echo_n "checking for library containing $tga_func... " >&6; }
23590 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23591 $as_echo_n "(cached) " >&6
23592 else
23593 ac_func_search_save_LIBS=$LIBS
23594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23595 /* end confdefs.h. */
23596
23597 /* Override any GCC internal prototype to avoid an error.
23598 Use char because int might match the return type of a GCC
23599 builtin and then its argument prototype would still apply. */
23600 #ifdef __cplusplus
23601 extern "C"
23602 #endif
23603 char $tga_func ();
23604 int
23605 main ()
23606 {
23607 return $tga_func ();
23608 ;
23609 return 0;
23610 }
23611 _ACEOF
23612 for ac_lib in '' thread; do
23613 if test -z "$ac_lib"; then
23614 ac_res="none required"
23615 else
23616 ac_res=-l$ac_lib
23617 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23618 fi
23619 if ac_fn_c_try_link "$LINENO"; then :
23620 eval "$as_ac_Search=\$ac_res"
23621 fi
23622 rm -f core conftest.err conftest.$ac_objext \
23623 conftest$ac_exeext
23624 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23625 break
23626 fi
23627 done
23628 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23629
23630 else
23631 eval "$as_ac_Search=no"
23632 fi
23633 rm conftest.$ac_ext
23634 LIBS=$ac_func_search_save_LIBS
23635 fi
23636 eval ac_res=\$$as_ac_Search
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23638 $as_echo "$ac_res" >&6; }
23639 eval ac_res=\$$as_ac_Search
23640 if test "$ac_res" != no; then :
23641 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23642
23643 else
23644 set_have_as_tls=no
23645 fi
23646
23647 # Clear LIBS if we cannot support TLS.
23648 if test $set_have_as_tls = no; then
23649 LIBS=
23650 fi
23651 # Always define LIB_TLS_SPEC, even without TLS support.
23652
23653 cat >>confdefs.h <<_ACEOF
23654 #define LIB_TLS_SPEC "$LIBS"
23655 _ACEOF
23656
23657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23658 $as_echo "$LIBS" >&6; }
23659
23660 LIBS="$save_LIBS"
23661 LDFLAGS="$save_LDFLAGS"
23662 ;;
23663 esac
23664 if test $set_have_as_tls = yes ; then
23665
23666 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23667
23668 fi
23669
23670 # Target-specific assembler checks.
23671
23672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23673 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23674 gcc_cv_ld_static_dynamic=no
23675 gcc_cv_ld_static_option='-Bstatic'
23676 gcc_cv_ld_dynamic_option='-Bdynamic'
23677 if test $in_tree_ld = yes ; then
23678 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
23679 gcc_cv_ld_static_dynamic=yes
23680 fi
23681 elif test x$gcc_cv_ld != x; then
23682 # Check if linker supports -Bstatic/-Bdynamic option
23683 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23684 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23685 gcc_cv_ld_static_dynamic=yes
23686 else
23687 case "$target" in
23688 # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23689 alpha*-dec-osf*)
23690 gcc_cv_ld_static_dynamic=yes
23691 gcc_cv_ld_static_option="-noso"
23692 gcc_cv_ld_dynamic_option="-so_archive"
23693 ;;
23694 # HP-UX ld uses -a flags to select between shared and archive.
23695 *-*-hpux*)
23696 if test x"$gnu_ld" = xno; then
23697 gcc_cv_ld_static_dynamic=yes
23698 gcc_cv_ld_static_option="-aarchive_shared"
23699 gcc_cv_ld_dynamic_option="-adefault"
23700 fi
23701 ;;
23702 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23703 mips-sgi-irix6*)
23704 gcc_cv_ld_static_dynamic=yes
23705 ;;
23706 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23707 *-*-solaris2*)
23708 gcc_cv_ld_static_dynamic=yes
23709 ;;
23710 esac
23711 fi
23712 fi
23713 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23714
23715 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23716
23717
23718 cat >>confdefs.h <<_ACEOF
23719 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23720 _ACEOF
23721
23722
23723 cat >>confdefs.h <<_ACEOF
23724 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23725 _ACEOF
23726
23727 fi
23728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23729 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23730
23731 if test x"$demangler_in_ld" = xyes; then
23732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23733 $as_echo_n "checking linker --demangle support... " >&6; }
23734 gcc_cv_ld_demangle=no
23735 if test $in_tree_ld = yes; then
23736 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 \
23737 gcc_cv_ld_demangle=yes
23738 fi
23739 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23740 # Check if the GNU linker supports --demangle option
23741 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23742 gcc_cv_ld_demangle=yes
23743 fi
23744 fi
23745 if test x"$gcc_cv_ld_demangle" = xyes; then
23746
23747 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23748
23749 fi
23750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23751 $as_echo "$gcc_cv_ld_demangle" >&6; }
23752 fi
23753
23754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23755 $as_echo_n "checking linker plugin support... " >&6; }
23756 gcc_cv_lto_plugin=0
23757 if test -f liblto_plugin.la; then
23758 save_ld_ver="$ld_ver"
23759 save_ld_vers_major="$ld_vers_major"
23760 save_ld_vers_minor="$ld_vers_minor"
23761 save_ld_is_gold="$ld_is_gold"
23762
23763 ld_is_gold=no
23764
23765 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23766 ld_ver="GNU ld"
23767 # FIXME: ld_is_gold?
23768 ld_vers_major="$gcc_cv_gld_major_version"
23769 ld_vers_minor="$gcc_cv_gld_minor_version"
23770 else
23771 # Determine plugin linker version.
23772 # FIXME: Partial duplicate from above, generalize.
23773 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23774 if echo "$ld_ver" | grep GNU > /dev/null; then
23775 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23776 ld_is_gold=yes
23777 ld_vers=`echo $ld_ver | sed -n \
23778 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23779 else
23780 ld_vers=`echo $ld_ver | sed -n \
23781 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23782 fi
23783 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23784 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23785 fi
23786 fi
23787
23788 # Determine plugin support.
23789 if echo "$ld_ver" | grep GNU > /dev/null; then
23790 # Require GNU ld or gold 2.21+ for plugin support by default.
23791 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23792 gcc_cv_lto_plugin=2
23793 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23794 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23795 gcc_cv_lto_plugin=1
23796 fi
23797 fi
23798
23799 ld_ver="$save_ld_ver"
23800 ld_vers_major="$save_ld_vers_major"
23801 ld_vers_minor="$save_ld_vers_minor"
23802 ld_is_gold="$save_ld_is_gold"
23803 fi
23804
23805 cat >>confdefs.h <<_ACEOF
23806 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23807 _ACEOF
23808
23809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23810 $as_echo "$gcc_cv_lto_plugin" >&6; }
23811
23812 case "$target" in
23813 # All TARGET_ABI_OSF targets.
23814 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23816 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23817 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23818 $as_echo_n "(cached) " >&6
23819 else
23820 gcc_cv_as_alpha_explicit_relocs=no
23821 if test $in_tree_gas = yes; then
23822 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23823 then gcc_cv_as_alpha_explicit_relocs=yes
23824 fi
23825 elif test x$gcc_cv_as != x; then
23826 $as_echo ' .set nomacro
23827 .text
23828 extbl $3, $2, $3 !lituse_bytoff!1
23829 ldq $2, a($29) !literal!1
23830 ldq $4, b($29) !literal!2
23831 ldq_u $3, 0($2) !lituse_base!1
23832 ldq $27, f($29) !literal!5
23833 jsr $26, ($27), f !lituse_jsr!5
23834 ldah $29, 0($26) !gpdisp!3
23835 lda $0, c($29) !gprel
23836 ldah $1, d($29) !gprelhigh
23837 lda $1, d($1) !gprellow
23838 lda $29, 0($29) !gpdisp!3' > conftest.s
23839 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23841 (eval $ac_try) 2>&5
23842 ac_status=$?
23843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23844 test $ac_status = 0; }; }
23845 then
23846 gcc_cv_as_alpha_explicit_relocs=yes
23847 else
23848 echo "configure: failed program was" >&5
23849 cat conftest.s >&5
23850 fi
23851 rm -f conftest.o conftest.s
23852 fi
23853 fi
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23855 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23856 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23857
23858 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23859
23860 fi
23861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23862 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23863 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23864 $as_echo_n "(cached) " >&6
23865 else
23866 gcc_cv_as_alpha_jsrdirect_relocs=no
23867 if test $in_tree_gas = yes; then
23868 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23869 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23870 fi
23871 elif test x$gcc_cv_as != x; then
23872 $as_echo ' .set nomacro
23873 .text
23874 ldq $27, a($29) !literal!1
23875 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23876 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23878 (eval $ac_try) 2>&5
23879 ac_status=$?
23880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23881 test $ac_status = 0; }; }
23882 then
23883 gcc_cv_as_alpha_jsrdirect_relocs=yes
23884 else
23885 echo "configure: failed program was" >&5
23886 cat conftest.s >&5
23887 fi
23888 rm -f conftest.o conftest.s
23889 fi
23890 fi
23891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23892 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23893 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23894
23895 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23896
23897 fi
23898 ;;
23899
23900 cris-*-*)
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23902 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23903 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23904 $as_echo_n "(cached) " >&6
23905 else
23906 gcc_cv_as_cris_no_mul_bug=no
23907 if test $in_tree_gas = yes; then
23908 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23909 then gcc_cv_as_cris_no_mul_bug=yes
23910 fi
23911 elif test x$gcc_cv_as != x; then
23912 $as_echo '.text' > conftest.s
23913 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23915 (eval $ac_try) 2>&5
23916 ac_status=$?
23917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23918 test $ac_status = 0; }; }
23919 then
23920 gcc_cv_as_cris_no_mul_bug=yes
23921 else
23922 echo "configure: failed program was" >&5
23923 cat conftest.s >&5
23924 fi
23925 rm -f conftest.o conftest.s
23926 fi
23927 fi
23928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23929 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23930 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23931
23932 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23933
23934 fi
23935 ;;
23936
23937 sparc*-*-*)
23938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23939 $as_echo_n "checking assembler for .register... " >&6; }
23940 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23941 $as_echo_n "(cached) " >&6
23942 else
23943 gcc_cv_as_sparc_register_op=no
23944 if test x$gcc_cv_as != x; then
23945 $as_echo '.register %g2, #scratch' > conftest.s
23946 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23948 (eval $ac_try) 2>&5
23949 ac_status=$?
23950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23951 test $ac_status = 0; }; }
23952 then
23953 gcc_cv_as_sparc_register_op=yes
23954 else
23955 echo "configure: failed program was" >&5
23956 cat conftest.s >&5
23957 fi
23958 rm -f conftest.o conftest.s
23959 fi
23960 fi
23961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23962 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23963 if test $gcc_cv_as_sparc_register_op = yes; then
23964
23965 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23966
23967 fi
23968
23969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23970 $as_echo_n "checking assembler for -relax option... " >&6; }
23971 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23972 $as_echo_n "(cached) " >&6
23973 else
23974 gcc_cv_as_sparc_relax=no
23975 if test x$gcc_cv_as != x; then
23976 $as_echo '.text' > conftest.s
23977 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23979 (eval $ac_try) 2>&5
23980 ac_status=$?
23981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23982 test $ac_status = 0; }; }
23983 then
23984 gcc_cv_as_sparc_relax=yes
23985 else
23986 echo "configure: failed program was" >&5
23987 cat conftest.s >&5
23988 fi
23989 rm -f conftest.o conftest.s
23990 fi
23991 fi
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23993 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23994 if test $gcc_cv_as_sparc_relax = yes; then
23995
23996 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23997
23998 fi
23999
24000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24001 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24002 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24003 $as_echo_n "(cached) " >&6
24004 else
24005 gcc_cv_as_sparc_gotdata_op=no
24006 if test x$gcc_cv_as != x; then
24007 $as_echo '.text
24008 .align 4
24009 foo:
24010 nop
24011 bar:
24012 sethi %gdop_hix22(foo), %g1
24013 xor %g1, %gdop_lox10(foo), %g1
24014 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24015 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24017 (eval $ac_try) 2>&5
24018 ac_status=$?
24019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24020 test $ac_status = 0; }; }
24021 then
24022 if test x$gcc_cv_ld != x \
24023 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24024 if test x$gcc_cv_objdump != x; then
24025 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24026 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24027 gcc_cv_as_sparc_gotdata_op=no
24028 else
24029 gcc_cv_as_sparc_gotdata_op=yes
24030 fi
24031 fi
24032 fi
24033 rm -f conftest
24034 else
24035 echo "configure: failed program was" >&5
24036 cat conftest.s >&5
24037 fi
24038 rm -f conftest.o conftest.s
24039 fi
24040 fi
24041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24042 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24043 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24044
24045 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24046
24047 fi
24048
24049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24050 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24051 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24052 $as_echo_n "(cached) " >&6
24053 else
24054 gcc_cv_as_sparc_ua_pcrel=no
24055 if test x$gcc_cv_as != x; then
24056 $as_echo '.text
24057 foo:
24058 nop
24059 .data
24060 .align 4
24061 .byte 0
24062 .uaword %r_disp32(foo)' > conftest.s
24063 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24065 (eval $ac_try) 2>&5
24066 ac_status=$?
24067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24068 test $ac_status = 0; }; }
24069 then
24070 if test x$gcc_cv_ld != x \
24071 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24072 gcc_cv_as_sparc_ua_pcrel=yes
24073 fi
24074 rm -f conftest
24075 else
24076 echo "configure: failed program was" >&5
24077 cat conftest.s >&5
24078 fi
24079 rm -f conftest.o conftest.s
24080 fi
24081 fi
24082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24083 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24084 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24085
24086 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24087
24088
24089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24090 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24091 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24092 $as_echo_n "(cached) " >&6
24093 else
24094 gcc_cv_as_sparc_ua_pcrel_hidden=no
24095 if test x$gcc_cv_as != x; then
24096 $as_echo '.data
24097 .align 4
24098 .byte 0x31
24099 .uaword %r_disp32(foo)
24100 .byte 0x32, 0x33, 0x34
24101 .global foo
24102 .hidden foo
24103 foo:
24104 .skip 4' > conftest.s
24105 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24107 (eval $ac_try) 2>&5
24108 ac_status=$?
24109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24110 test $ac_status = 0; }; }
24111 then
24112 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24113 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24114 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24115 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24116 if $gcc_cv_objdump -R conftest 2> /dev/null \
24117 | grep 'DISP32' > /dev/null 2>&1; then
24118 :
24119 else
24120 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24121 fi
24122 fi
24123 rm -f conftest
24124 else
24125 echo "configure: failed program was" >&5
24126 cat conftest.s >&5
24127 fi
24128 rm -f conftest.o conftest.s
24129 fi
24130 fi
24131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24132 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24133 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24134
24135 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24136
24137 fi
24138
24139 fi # unaligned pcrel relocs
24140
24141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24142 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24143 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24144 $as_echo_n "(cached) " >&6
24145 else
24146 gcc_cv_as_sparc_offsetable_lo10=no
24147 if test x$gcc_cv_as != x; then
24148 $as_echo '.text
24149 or %g1, %lo(ab) + 12, %g1
24150 or %g1, %lo(ab + 12), %g1' > conftest.s
24151 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24153 (eval $ac_try) 2>&5
24154 ac_status=$?
24155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24156 test $ac_status = 0; }; }
24157 then
24158 if test x$gcc_cv_objdump != x \
24159 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24160 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24161 gcc_cv_as_sparc_offsetable_lo10=yes
24162 fi
24163 else
24164 echo "configure: failed program was" >&5
24165 cat conftest.s >&5
24166 fi
24167 rm -f conftest.o conftest.s
24168 fi
24169 fi
24170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24171 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24172 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24173
24174 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24175
24176 fi
24177
24178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24179 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24180 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24181 $as_echo_n "(cached) " >&6
24182 else
24183 gcc_cv_as_sparc_fmaf=no
24184 if test x$gcc_cv_as != x; then
24185 $as_echo '.text
24186 .register %g2, #scratch
24187 .register %g3, #scratch
24188 .align 4
24189 fmaddd %f0, %f2, %f4, %f6
24190 addxccc %g1, %g2, %g3
24191 fsrl32 %f2, %f4, %f8
24192 fnaddd %f10, %f12, %f14' > conftest.s
24193 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24195 (eval $ac_try) 2>&5
24196 ac_status=$?
24197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24198 test $ac_status = 0; }; }
24199 then
24200 gcc_cv_as_sparc_fmaf=yes
24201 else
24202 echo "configure: failed program was" >&5
24203 cat conftest.s >&5
24204 fi
24205 rm -f conftest.o conftest.s
24206 fi
24207 fi
24208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24209 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24210 if test $gcc_cv_as_sparc_fmaf = yes; then
24211
24212 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24213
24214 fi
24215 ;;
24216
24217 i[34567]86-*-* | x86_64-*-*)
24218 case $target_os in
24219 cygwin*)
24220 # Full C++ conformance when using a shared libstdc++-v3 requires some
24221 # support from the Cygwin DLL, which in more recent versions exports
24222 # wrappers to aid in interposing and redirecting operators new, delete,
24223 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24224 # are configuring for a version of Cygwin that exports the wrappers.
24225 if test x$host = x$target; then
24226 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24227 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24228 gcc_ac_cygwin_dll_wrappers=yes
24229 else
24230 gcc_ac_cygwin_dll_wrappers=no
24231 fi
24232
24233 else
24234 # Can't check presence of libc functions during cross-compile, so
24235 # we just have to assume we're building for an up-to-date target.
24236 gcc_ac_cygwin_dll_wrappers=yes
24237 fi
24238
24239 cat >>confdefs.h <<_ACEOF
24240 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24241 _ACEOF
24242
24243 esac
24244 case $target_os in
24245 cygwin* | pe | mingw32*)
24246 # Recent binutils allows the three-operand form of ".comm" on PE. This
24247 # definition is used unconditionally to initialise the default state of
24248 # the target option variable that governs usage of the feature.
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24250 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24251 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24252 $as_echo_n "(cached) " >&6
24253 else
24254 gcc_cv_as_comm_has_align=no
24255 if test $in_tree_gas = yes; then
24256 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24257 then gcc_cv_as_comm_has_align=yes
24258 fi
24259 elif test x$gcc_cv_as != x; then
24260 $as_echo '.comm foo,1,32' > conftest.s
24261 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24263 (eval $ac_try) 2>&5
24264 ac_status=$?
24265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24266 test $ac_status = 0; }; }
24267 then
24268 gcc_cv_as_comm_has_align=yes
24269 else
24270 echo "configure: failed program was" >&5
24271 cat conftest.s >&5
24272 fi
24273 rm -f conftest.o conftest.s
24274 fi
24275 fi
24276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24277 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24278
24279
24280 cat >>confdefs.h <<_ACEOF
24281 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24282 _ACEOF
24283
24284 # Used for DWARF 2 in PE
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24286 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24287 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24288 $as_echo_n "(cached) " >&6
24289 else
24290 gcc_cv_as_ix86_pe_secrel32=no
24291 if test $in_tree_gas = yes; then
24292 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24293 then gcc_cv_as_ix86_pe_secrel32=yes
24294 fi
24295 elif test x$gcc_cv_as != x; then
24296 $as_echo '.text
24297 foo: nop
24298 .data
24299 .secrel32 foo' > conftest.s
24300 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24302 (eval $ac_try) 2>&5
24303 ac_status=$?
24304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24305 test $ac_status = 0; }; }
24306 then
24307 if test x$gcc_cv_ld != x \
24308 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24309 gcc_cv_as_ix86_pe_secrel32=yes
24310 fi
24311 rm -f conftest
24312 else
24313 echo "configure: failed program was" >&5
24314 cat conftest.s >&5
24315 fi
24316 rm -f conftest.o conftest.s
24317 fi
24318 fi
24319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24320 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24321 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24322
24323 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24324
24325 fi
24326 # Test if the assembler supports the extended form of the .section
24327 # directive that specifies section alignment. LTO support uses this,
24328 # but normally only after installation, so we warn but don't fail the
24329 # configure if LTO is enabled but the assembler does not support it.
24330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24331 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24332 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24333 $as_echo_n "(cached) " >&6
24334 else
24335 gcc_cv_as_section_has_align=no
24336 if test $in_tree_gas = yes; then
24337 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24338 then gcc_cv_as_section_has_align=yes
24339 fi
24340 elif test x$gcc_cv_as != x; then
24341 $as_echo '.section lto_test,"dr0"' > conftest.s
24342 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24344 (eval $ac_try) 2>&5
24345 ac_status=$?
24346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24347 test $ac_status = 0; }; }
24348 then
24349 gcc_cv_as_section_has_align=yes
24350 else
24351 echo "configure: failed program was" >&5
24352 cat conftest.s >&5
24353 fi
24354 rm -f conftest.o conftest.s
24355 fi
24356 fi
24357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24358 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24359
24360 if test x$gcc_cv_as_section_has_align != xyes; then
24361 case ",$enable_languages," in
24362 *,lto,*)
24363 { $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
24364 $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;}
24365 ;;
24366 esac
24367 fi
24368 # Test if the assembler supports the section flag 'e' for specifying
24369 # an excluded section.
24370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24371 $as_echo_n "checking assembler for .section with e... " >&6; }
24372 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24373 $as_echo_n "(cached) " >&6
24374 else
24375 gcc_cv_as_section_has_e=no
24376 if test $in_tree_gas = yes; then
24377 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24378 then gcc_cv_as_section_has_e=yes
24379 fi
24380 elif test x$gcc_cv_as != x; then
24381 $as_echo '.section foo1,"e"
24382 .byte 0,0,0,0' > conftest.s
24383 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24385 (eval $ac_try) 2>&5
24386 ac_status=$?
24387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24388 test $ac_status = 0; }; }
24389 then
24390 gcc_cv_as_section_has_e=yes
24391 else
24392 echo "configure: failed program was" >&5
24393 cat conftest.s >&5
24394 fi
24395 rm -f conftest.o conftest.s
24396 fi
24397 fi
24398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24399 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24400
24401
24402 cat >>confdefs.h <<_ACEOF
24403 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24404 _ACEOF
24405
24406 ;;
24407 esac
24408
24409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24410 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24411 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24412 $as_echo_n "(cached) " >&6
24413 else
24414 gcc_cv_as_ix86_filds=no
24415 if test x$gcc_cv_as != x; then
24416 $as_echo 'filds mem; fists mem' > conftest.s
24417 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24419 (eval $ac_try) 2>&5
24420 ac_status=$?
24421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24422 test $ac_status = 0; }; }
24423 then
24424 gcc_cv_as_ix86_filds=yes
24425 else
24426 echo "configure: failed program was" >&5
24427 cat conftest.s >&5
24428 fi
24429 rm -f conftest.o conftest.s
24430 fi
24431 fi
24432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24433 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24434 if test $gcc_cv_as_ix86_filds = yes; then
24435
24436 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24437
24438 fi
24439
24440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24441 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24442 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24443 $as_echo_n "(cached) " >&6
24444 else
24445 gcc_cv_as_ix86_fildq=no
24446 if test x$gcc_cv_as != x; then
24447 $as_echo 'fildq mem; fistpq mem' > conftest.s
24448 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24450 (eval $ac_try) 2>&5
24451 ac_status=$?
24452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24453 test $ac_status = 0; }; }
24454 then
24455 gcc_cv_as_ix86_fildq=yes
24456 else
24457 echo "configure: failed program was" >&5
24458 cat conftest.s >&5
24459 fi
24460 rm -f conftest.o conftest.s
24461 fi
24462 fi
24463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24464 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24465 if test $gcc_cv_as_ix86_fildq = yes; then
24466
24467 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24468
24469 fi
24470
24471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24472 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24473 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24474 $as_echo_n "(cached) " >&6
24475 else
24476 gcc_cv_as_ix86_cmov_sun_syntax=no
24477 if test x$gcc_cv_as != x; then
24478 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24479 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24481 (eval $ac_try) 2>&5
24482 ac_status=$?
24483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24484 test $ac_status = 0; }; }
24485 then
24486 gcc_cv_as_ix86_cmov_sun_syntax=yes
24487 else
24488 echo "configure: failed program was" >&5
24489 cat conftest.s >&5
24490 fi
24491 rm -f conftest.o conftest.s
24492 fi
24493 fi
24494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24495 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24496 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24497
24498 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24499
24500 fi
24501
24502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24503 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24504 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24505 $as_echo_n "(cached) " >&6
24506 else
24507 gcc_cv_as_ix86_ffreep=no
24508 if test x$gcc_cv_as != x; then
24509 $as_echo 'ffreep %st(1)' > conftest.s
24510 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24511 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24512 (eval $ac_try) 2>&5
24513 ac_status=$?
24514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24515 test $ac_status = 0; }; }
24516 then
24517 gcc_cv_as_ix86_ffreep=yes
24518 else
24519 echo "configure: failed program was" >&5
24520 cat conftest.s >&5
24521 fi
24522 rm -f conftest.o conftest.s
24523 fi
24524 fi
24525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24526 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24527 if test $gcc_cv_as_ix86_ffreep = yes; then
24528
24529 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24530
24531 fi
24532
24533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24534 $as_echo_n "checking assembler for .quad directive... " >&6; }
24535 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24536 $as_echo_n "(cached) " >&6
24537 else
24538 gcc_cv_as_ix86_quad=no
24539 if test x$gcc_cv_as != x; then
24540 $as_echo '.quad 0' > conftest.s
24541 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24543 (eval $ac_try) 2>&5
24544 ac_status=$?
24545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24546 test $ac_status = 0; }; }
24547 then
24548 gcc_cv_as_ix86_quad=yes
24549 else
24550 echo "configure: failed program was" >&5
24551 cat conftest.s >&5
24552 fi
24553 rm -f conftest.o conftest.s
24554 fi
24555 fi
24556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24557 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24558 if test $gcc_cv_as_ix86_quad = yes; then
24559
24560 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24561
24562 fi
24563
24564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24565 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24566 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24567 $as_echo_n "(cached) " >&6
24568 else
24569 gcc_cv_as_ix86_sahf=no
24570 if test x$gcc_cv_as != x; then
24571 $as_echo '.code64
24572 sahf' > conftest.s
24573 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24575 (eval $ac_try) 2>&5
24576 ac_status=$?
24577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24578 test $ac_status = 0; }; }
24579 then
24580 gcc_cv_as_ix86_sahf=yes
24581 else
24582 echo "configure: failed program was" >&5
24583 cat conftest.s >&5
24584 fi
24585 rm -f conftest.o conftest.s
24586 fi
24587 fi
24588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24589 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24590 if test $gcc_cv_as_ix86_sahf = yes; then
24591
24592 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24593
24594 fi
24595
24596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24597 $as_echo_n "checking assembler for swap suffix... " >&6; }
24598 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24599 $as_echo_n "(cached) " >&6
24600 else
24601 gcc_cv_as_ix86_swap=no
24602 if test x$gcc_cv_as != x; then
24603 $as_echo 'movl.s %esp, %ebp' > conftest.s
24604 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24606 (eval $ac_try) 2>&5
24607 ac_status=$?
24608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24609 test $ac_status = 0; }; }
24610 then
24611 gcc_cv_as_ix86_swap=yes
24612 else
24613 echo "configure: failed program was" >&5
24614 cat conftest.s >&5
24615 fi
24616 rm -f conftest.o conftest.s
24617 fi
24618 fi
24619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24620 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24621 if test $gcc_cv_as_ix86_swap = yes; then
24622
24623 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24624
24625 fi
24626
24627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24628 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24629 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24630 $as_echo_n "(cached) " >&6
24631 else
24632 gcc_cv_as_ix86_diff_sect_delta=no
24633 if test x$gcc_cv_as != x; then
24634 $as_echo '.section .rodata
24635 .L1:
24636 .long .L2-.L1
24637 .long .L3-.L1
24638 .text
24639 .L3: nop
24640 .L2: nop' > conftest.s
24641 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24643 (eval $ac_try) 2>&5
24644 ac_status=$?
24645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24646 test $ac_status = 0; }; }
24647 then
24648 gcc_cv_as_ix86_diff_sect_delta=yes
24649 else
24650 echo "configure: failed program was" >&5
24651 cat conftest.s >&5
24652 fi
24653 rm -f conftest.o conftest.s
24654 fi
24655 fi
24656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24657 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24658 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24659
24660 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24661
24662 fi
24663
24664 # These two are used unconditionally by i386.[ch]; it is to be defined
24665 # to 1 if the feature is present, 0 otherwise.
24666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24667 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24668 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24669 $as_echo_n "(cached) " >&6
24670 else
24671 gcc_cv_as_ix86_gotoff_in_data=no
24672 if test $in_tree_gas = yes; then
24673 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24674 then gcc_cv_as_ix86_gotoff_in_data=yes
24675 fi
24676 elif test x$gcc_cv_as != x; then
24677 $as_echo ' .text
24678 .L0:
24679 nop
24680 .data
24681 .long .L0@GOTOFF' > conftest.s
24682 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24684 (eval $ac_try) 2>&5
24685 ac_status=$?
24686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24687 test $ac_status = 0; }; }
24688 then
24689 gcc_cv_as_ix86_gotoff_in_data=yes
24690 else
24691 echo "configure: failed program was" >&5
24692 cat conftest.s >&5
24693 fi
24694 rm -f conftest.o conftest.s
24695 fi
24696 fi
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24698 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24699
24700
24701 cat >>confdefs.h <<_ACEOF
24702 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24703 _ACEOF
24704
24705
24706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24707 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24708 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24709 $as_echo_n "(cached) " >&6
24710 else
24711 gcc_cv_as_ix86_rep_lock_prefix=no
24712 if test x$gcc_cv_as != x; then
24713 $as_echo 'rep movsl
24714 lock addl %edi, (%eax,%esi)
24715 lock orl $0, (%esp)' > conftest.s
24716 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24718 (eval $ac_try) 2>&5
24719 ac_status=$?
24720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24721 test $ac_status = 0; }; }
24722 then
24723 gcc_cv_as_ix86_rep_lock_prefix=yes
24724 else
24725 echo "configure: failed program was" >&5
24726 cat conftest.s >&5
24727 fi
24728 rm -f conftest.o conftest.s
24729 fi
24730 fi
24731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24732 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24733 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24734
24735 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24736
24737 fi
24738
24739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24740 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24741 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24742 $as_echo_n "(cached) " >&6
24743 else
24744 gcc_cv_as_ix86_tlsgdplt=no
24745 if test x$gcc_cv_as != x; then
24746 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24747 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24749 (eval $ac_try) 2>&5
24750 ac_status=$?
24751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24752 test $ac_status = 0; }; }
24753 then
24754 gcc_cv_as_ix86_tlsgdplt=yes
24755 else
24756 echo "configure: failed program was" >&5
24757 cat conftest.s >&5
24758 fi
24759 rm -f conftest.o conftest.s
24760 fi
24761 fi
24762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24763 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24764 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24765
24766 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24767
24768 fi
24769
24770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24771 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24772 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24773 $as_echo_n "(cached) " >&6
24774 else
24775 gcc_cv_as_ix86_tlsldmplt=no
24776 if test x$gcc_cv_as != x; then
24777 $as_echo 'call tls_ld@tlsldmplt' > conftest.s
24778 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24780 (eval $ac_try) 2>&5
24781 ac_status=$?
24782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24783 test $ac_status = 0; }; }
24784 then
24785 gcc_cv_as_ix86_tlsldmplt=yes
24786 else
24787 echo "configure: failed program was" >&5
24788 cat conftest.s >&5
24789 fi
24790 rm -f conftest.o conftest.s
24791 fi
24792 fi
24793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24794 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24795 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24796
24797 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24798
24799 fi
24800
24801 ;;
24802
24803 ia64*-*-*)
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24805 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24806 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24807 $as_echo_n "(cached) " >&6
24808 else
24809 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24810 if test $in_tree_gas = yes; then
24811 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24812 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24813 fi
24814 elif test x$gcc_cv_as != x; then
24815 $as_echo ' .text
24816 addl r15 = @ltoffx(x#), gp
24817 ;;
24818 ld8.mov r16 = [r15], x#' > conftest.s
24819 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24821 (eval $ac_try) 2>&5
24822 ac_status=$?
24823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24824 test $ac_status = 0; }; }
24825 then
24826 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24827 else
24828 echo "configure: failed program was" >&5
24829 cat conftest.s >&5
24830 fi
24831 rm -f conftest.o conftest.s
24832 fi
24833 fi
24834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24835 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24836 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24837
24838 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24839
24840 fi
24841
24842 ;;
24843
24844 powerpc*-*-*)
24845 case $target in
24846 *-*-aix*) conftest_s=' .machine "pwr5"
24847 .csect .text[PR]
24848 mfcr 3,128';;
24849 *-*-darwin*)
24850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24851 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24852 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24853 $as_echo_n "(cached) " >&6
24854 else
24855 gcc_cv_as_machine_directive=no
24856 if test x$gcc_cv_as != x; then
24857 $as_echo ' .machine ppc7400' > conftest.s
24858 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24860 (eval $ac_try) 2>&5
24861 ac_status=$?
24862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24863 test $ac_status = 0; }; }
24864 then
24865 gcc_cv_as_machine_directive=yes
24866 else
24867 echo "configure: failed program was" >&5
24868 cat conftest.s >&5
24869 fi
24870 rm -f conftest.o conftest.s
24871 fi
24872 fi
24873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24874 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24875
24876 if test x$gcc_cv_as_machine_directive != xyes; then
24877 echo "*** This target requires an assembler supporting \".machine\"" >&2
24878 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24879 test x$build = x$target && exit 1
24880 fi
24881 conftest_s=' .text
24882 mfcr r3,128';;
24883 *) conftest_s=' .machine power4
24884 .text
24885 mfcr 3,128';;
24886 esac
24887
24888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24889 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24890 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24891 $as_echo_n "(cached) " >&6
24892 else
24893 gcc_cv_as_powerpc_mfcrf=no
24894 if test $in_tree_gas = yes; then
24895 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24896 then gcc_cv_as_powerpc_mfcrf=yes
24897 fi
24898 elif test x$gcc_cv_as != x; then
24899 $as_echo "$conftest_s" > conftest.s
24900 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24902 (eval $ac_try) 2>&5
24903 ac_status=$?
24904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24905 test $ac_status = 0; }; }
24906 then
24907 gcc_cv_as_powerpc_mfcrf=yes
24908 else
24909 echo "configure: failed program was" >&5
24910 cat conftest.s >&5
24911 fi
24912 rm -f conftest.o conftest.s
24913 fi
24914 fi
24915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24916 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24917 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24918
24919 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24920
24921 fi
24922
24923 case $target in
24924 *-*-aix*) conftest_s=' .machine "pwr5"
24925 .csect .text[PR]
24926 popcntb 3,3';;
24927 *) conftest_s=' .machine power5
24928 .text
24929 popcntb 3,3';;
24930 esac
24931
24932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24933 $as_echo_n "checking assembler for popcntb support... " >&6; }
24934 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24935 $as_echo_n "(cached) " >&6
24936 else
24937 gcc_cv_as_powerpc_popcntb=no
24938 if test $in_tree_gas = yes; then
24939 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24940 then gcc_cv_as_powerpc_popcntb=yes
24941 fi
24942 elif test x$gcc_cv_as != x; then
24943 $as_echo "$conftest_s" > conftest.s
24944 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24946 (eval $ac_try) 2>&5
24947 ac_status=$?
24948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24949 test $ac_status = 0; }; }
24950 then
24951 gcc_cv_as_powerpc_popcntb=yes
24952 else
24953 echo "configure: failed program was" >&5
24954 cat conftest.s >&5
24955 fi
24956 rm -f conftest.o conftest.s
24957 fi
24958 fi
24959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24960 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24961 if test $gcc_cv_as_powerpc_popcntb = yes; then
24962
24963 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24964
24965 fi
24966
24967 case $target in
24968 *-*-aix*) conftest_s=' .machine "pwr5x"
24969 .csect .text[PR]
24970 frin 1,1';;
24971 *) conftest_s=' .machine power5
24972 .text
24973 frin 1,1';;
24974 esac
24975
24976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24977 $as_echo_n "checking assembler for fp round support... " >&6; }
24978 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24979 $as_echo_n "(cached) " >&6
24980 else
24981 gcc_cv_as_powerpc_fprnd=no
24982 if test $in_tree_gas = yes; then
24983 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24984 then gcc_cv_as_powerpc_fprnd=yes
24985 fi
24986 elif test x$gcc_cv_as != x; then
24987 $as_echo "$conftest_s" > conftest.s
24988 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24990 (eval $ac_try) 2>&5
24991 ac_status=$?
24992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24993 test $ac_status = 0; }; }
24994 then
24995 gcc_cv_as_powerpc_fprnd=yes
24996 else
24997 echo "configure: failed program was" >&5
24998 cat conftest.s >&5
24999 fi
25000 rm -f conftest.o conftest.s
25001 fi
25002 fi
25003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25004 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25005 if test $gcc_cv_as_powerpc_fprnd = yes; then
25006
25007 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25008
25009 fi
25010
25011 case $target in
25012 *-*-aix*) conftest_s=' .machine "pwr6"
25013 .csect .text[PR]
25014 mffgpr 1,3';;
25015 *) conftest_s=' .machine power6
25016 .text
25017 mffgpr 1,3';;
25018 esac
25019
25020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25021 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25022 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25023 $as_echo_n "(cached) " >&6
25024 else
25025 gcc_cv_as_powerpc_mfpgpr=no
25026 if test $in_tree_gas = yes; then
25027 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25028 then gcc_cv_as_powerpc_mfpgpr=yes
25029 fi
25030 elif test x$gcc_cv_as != x; then
25031 $as_echo "$conftest_s" > conftest.s
25032 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25034 (eval $ac_try) 2>&5
25035 ac_status=$?
25036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25037 test $ac_status = 0; }; }
25038 then
25039 gcc_cv_as_powerpc_mfpgpr=yes
25040 else
25041 echo "configure: failed program was" >&5
25042 cat conftest.s >&5
25043 fi
25044 rm -f conftest.o conftest.s
25045 fi
25046 fi
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25048 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25049 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25050
25051 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25052
25053 fi
25054
25055 case $target in
25056 *-*-aix*) conftest_s=' .csect .text[PR]
25057 LCF..0:
25058 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25059 *-*-darwin*)
25060 conftest_s=' .text
25061 LCF0:
25062 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25063 *) conftest_s=' .text
25064 .LCF0:
25065 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25066 esac
25067
25068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25069 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25070 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25071 $as_echo_n "(cached) " >&6
25072 else
25073 gcc_cv_as_powerpc_rel16=no
25074 if test $in_tree_gas = yes; then
25075 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25076 then gcc_cv_as_powerpc_rel16=yes
25077 fi
25078 elif test x$gcc_cv_as != x; then
25079 $as_echo "$conftest_s" > conftest.s
25080 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25082 (eval $ac_try) 2>&5
25083 ac_status=$?
25084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25085 test $ac_status = 0; }; }
25086 then
25087 gcc_cv_as_powerpc_rel16=yes
25088 else
25089 echo "configure: failed program was" >&5
25090 cat conftest.s >&5
25091 fi
25092 rm -f conftest.o conftest.s
25093 fi
25094 fi
25095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25096 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25097 if test $gcc_cv_as_powerpc_rel16 = yes; then
25098
25099 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25100
25101 fi
25102
25103 case $target in
25104 *-*-aix*) conftest_s=' .machine "pwr6"
25105 .csect .text[PR]
25106 cmpb 3,4,5';;
25107 *) conftest_s=' .machine power6
25108 .text
25109 cmpb 3,4,5';;
25110 esac
25111
25112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25113 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25114 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25115 $as_echo_n "(cached) " >&6
25116 else
25117 gcc_cv_as_powerpc_cmpb=no
25118 if test $in_tree_gas = yes; then
25119 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25120 then gcc_cv_as_powerpc_cmpb=yes
25121 fi
25122 elif test x$gcc_cv_as != x; then
25123 $as_echo "$conftest_s" > conftest.s
25124 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25126 (eval $ac_try) 2>&5
25127 ac_status=$?
25128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25129 test $ac_status = 0; }; }
25130 then
25131 gcc_cv_as_powerpc_cmpb=yes
25132 else
25133 echo "configure: failed program was" >&5
25134 cat conftest.s >&5
25135 fi
25136 rm -f conftest.o conftest.s
25137 fi
25138 fi
25139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25140 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25141 if test $gcc_cv_as_powerpc_cmpb = yes; then
25142
25143 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25144
25145 fi
25146
25147 case $target in
25148 *-*-aix*) conftest_s=' .machine "pwr6"
25149 .csect .text[PR]
25150 dadd 1,2,3';;
25151 *) conftest_s=' .machine power6
25152 .text
25153 dadd 1,2,3';;
25154 esac
25155
25156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25157 $as_echo_n "checking assembler for decimal float support... " >&6; }
25158 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25159 $as_echo_n "(cached) " >&6
25160 else
25161 gcc_cv_as_powerpc_dfp=no
25162 if test $in_tree_gas = yes; then
25163 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25164 then gcc_cv_as_powerpc_dfp=yes
25165 fi
25166 elif test x$gcc_cv_as != x; then
25167 $as_echo "$conftest_s" > conftest.s
25168 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25170 (eval $ac_try) 2>&5
25171 ac_status=$?
25172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25173 test $ac_status = 0; }; }
25174 then
25175 gcc_cv_as_powerpc_dfp=yes
25176 else
25177 echo "configure: failed program was" >&5
25178 cat conftest.s >&5
25179 fi
25180 rm -f conftest.o conftest.s
25181 fi
25182 fi
25183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25184 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25185 if test $gcc_cv_as_powerpc_dfp = yes; then
25186
25187 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25188
25189 fi
25190
25191 case $target in
25192 *-*-aix*) conftest_s=' .machine "pwr7"
25193 .csect .text[PR]
25194 lxvd2x 1,2,3';;
25195 *) conftest_s=' .machine power7
25196 .text
25197 lxvd2x 1,2,3';;
25198 esac
25199
25200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25201 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25202 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25203 $as_echo_n "(cached) " >&6
25204 else
25205 gcc_cv_as_powerpc_vsx=no
25206 if test $in_tree_gas = yes; then
25207 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25208 then gcc_cv_as_powerpc_vsx=yes
25209 fi
25210 elif test x$gcc_cv_as != x; then
25211 $as_echo "$conftest_s" > conftest.s
25212 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25214 (eval $ac_try) 2>&5
25215 ac_status=$?
25216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25217 test $ac_status = 0; }; }
25218 then
25219 gcc_cv_as_powerpc_vsx=yes
25220 else
25221 echo "configure: failed program was" >&5
25222 cat conftest.s >&5
25223 fi
25224 rm -f conftest.o conftest.s
25225 fi
25226 fi
25227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25228 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25229 if test $gcc_cv_as_powerpc_vsx = yes; then
25230
25231 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25232
25233 fi
25234
25235 case $target in
25236 *-*-aix*) conftest_s=' .machine "pwr7"
25237 .csect .text[PR]
25238 popcntd 3,3';;
25239 *) conftest_s=' .machine power7
25240 .text
25241 popcntd 3,3';;
25242 esac
25243
25244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25245 $as_echo_n "checking assembler for popcntd support... " >&6; }
25246 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25247 $as_echo_n "(cached) " >&6
25248 else
25249 gcc_cv_as_powerpc_popcntd=no
25250 if test $in_tree_gas = yes; then
25251 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25252 then gcc_cv_as_powerpc_popcntd=yes
25253 fi
25254 elif test x$gcc_cv_as != x; then
25255 $as_echo "$conftest_s" > conftest.s
25256 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25258 (eval $ac_try) 2>&5
25259 ac_status=$?
25260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25261 test $ac_status = 0; }; }
25262 then
25263 gcc_cv_as_powerpc_popcntd=yes
25264 else
25265 echo "configure: failed program was" >&5
25266 cat conftest.s >&5
25267 fi
25268 rm -f conftest.o conftest.s
25269 fi
25270 fi
25271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25272 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25273 if test $gcc_cv_as_powerpc_popcntd = yes; then
25274
25275 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25276
25277 fi
25278
25279 case $target in
25280 *-*-aix*) conftest_s=' .csect .text[PR]
25281 lwsync';;
25282 *) conftest_s=' .text
25283 lwsync';;
25284 esac
25285
25286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25287 $as_echo_n "checking assembler for lwsync support... " >&6; }
25288 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25289 $as_echo_n "(cached) " >&6
25290 else
25291 gcc_cv_as_powerpc_lwsync=no
25292 if test $in_tree_gas = yes; then
25293 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25294 then gcc_cv_as_powerpc_lwsync=yes
25295 fi
25296 elif test x$gcc_cv_as != x; then
25297 $as_echo "$conftest_s" > conftest.s
25298 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25300 (eval $ac_try) 2>&5
25301 ac_status=$?
25302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25303 test $ac_status = 0; }; }
25304 then
25305 gcc_cv_as_powerpc_lwsync=yes
25306 else
25307 echo "configure: failed program was" >&5
25308 cat conftest.s >&5
25309 fi
25310 rm -f conftest.o conftest.s
25311 fi
25312 fi
25313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25314 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25315 if test $gcc_cv_as_powerpc_lwsync = yes; then
25316
25317 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25318
25319 fi
25320
25321 case $target in
25322 *-*-aix*) conftest_s=' .machine "476"
25323 .csect .text[PR]
25324 dci 0';;
25325 *) conftest_s=' .machine "476"
25326 .text
25327 dci 0';;
25328 esac
25329
25330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25331 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25332 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25333 $as_echo_n "(cached) " >&6
25334 else
25335 gcc_cv_as_powerpc_dci=no
25336 if test $in_tree_gas = yes; then
25337 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25338 then gcc_cv_as_powerpc_dci=yes
25339 fi
25340 elif test x$gcc_cv_as != x; then
25341 $as_echo "$conftest_s" > conftest.s
25342 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25344 (eval $ac_try) 2>&5
25345 ac_status=$?
25346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25347 test $ac_status = 0; }; }
25348 then
25349 gcc_cv_as_powerpc_dci=yes
25350 else
25351 echo "configure: failed program was" >&5
25352 cat conftest.s >&5
25353 fi
25354 rm -f conftest.o conftest.s
25355 fi
25356 fi
25357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25358 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25359 if test $gcc_cv_as_powerpc_dci = yes; then
25360
25361 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25362
25363 fi
25364
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25366 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25367 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25368 $as_echo_n "(cached) " >&6
25369 else
25370 gcc_cv_as_powerpc_gnu_attribute=no
25371 if test $in_tree_gas = yes; then
25372 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25373 then gcc_cv_as_powerpc_gnu_attribute=yes
25374 fi
25375 elif test x$gcc_cv_as != x; then
25376 $as_echo '.gnu_attribute 4,1' > conftest.s
25377 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25379 (eval $ac_try) 2>&5
25380 ac_status=$?
25381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25382 test $ac_status = 0; }; }
25383 then
25384 gcc_cv_as_powerpc_gnu_attribute=yes
25385 else
25386 echo "configure: failed program was" >&5
25387 cat conftest.s >&5
25388 fi
25389 rm -f conftest.o conftest.s
25390 fi
25391 fi
25392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25393 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25394 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25395
25396 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25397
25398 fi
25399
25400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25401 $as_echo_n "checking assembler for tls marker support... " >&6; }
25402 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25403 $as_echo_n "(cached) " >&6
25404 else
25405 gcc_cv_as_powerpc_tls_markers=no
25406 if test $in_tree_gas = yes; then
25407 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25408 then gcc_cv_as_powerpc_tls_markers=yes
25409 fi
25410 elif test x$gcc_cv_as != x; then
25411 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25412 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25414 (eval $ac_try) 2>&5
25415 ac_status=$?
25416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25417 test $ac_status = 0; }; }
25418 then
25419 gcc_cv_as_powerpc_tls_markers=yes
25420 else
25421 echo "configure: failed program was" >&5
25422 cat conftest.s >&5
25423 fi
25424 rm -f conftest.o conftest.s
25425 fi
25426 fi
25427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25428 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25429 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25430
25431 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25432
25433 fi
25434
25435 case $target in
25436 *-*-aix*)
25437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25438 $as_echo_n "checking assembler for .ref support... " >&6; }
25439 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25440 $as_echo_n "(cached) " >&6
25441 else
25442 gcc_cv_as_aix_ref=no
25443 if test $in_tree_gas = yes; then
25444 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25445 then :
25446 fi
25447 elif test x$gcc_cv_as != x; then
25448 $as_echo ' .csect stuff[rw]
25449 stuff:
25450 .long 1
25451 .extern sym
25452 .ref sym
25453 ' > conftest.s
25454 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25456 (eval $ac_try) 2>&5
25457 ac_status=$?
25458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25459 test $ac_status = 0; }; }
25460 then
25461 gcc_cv_as_aix_ref=yes
25462 else
25463 echo "configure: failed program was" >&5
25464 cat conftest.s >&5
25465 fi
25466 rm -f conftest.o conftest.s
25467 fi
25468 fi
25469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25470 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25471 if test $gcc_cv_as_aix_ref = yes; then
25472
25473 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25474
25475 fi
25476 ;;
25477 esac
25478 ;;
25479
25480 mips*-*-*)
25481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25482 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25483 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25484 $as_echo_n "(cached) " >&6
25485 else
25486 gcc_cv_as_mips_explicit_relocs=no
25487 if test $in_tree_gas = yes; then
25488 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25489 then gcc_cv_as_mips_explicit_relocs=yes
25490 fi
25491 elif test x$gcc_cv_as != x; then
25492 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25493 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25495 (eval $ac_try) 2>&5
25496 ac_status=$?
25497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25498 test $ac_status = 0; }; }
25499 then
25500 gcc_cv_as_mips_explicit_relocs=yes
25501 else
25502 echo "configure: failed program was" >&5
25503 cat conftest.s >&5
25504 fi
25505 rm -f conftest.o conftest.s
25506 fi
25507 fi
25508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25509 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25510 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25511 if test x$target_cpu_default = x
25512 then target_cpu_default=MASK_EXPLICIT_RELOCS
25513 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25514 fi
25515 fi
25516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25517 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25518 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25519 $as_echo_n "(cached) " >&6
25520 else
25521 gcc_cv_as_mips_no_shared=no
25522 if test $in_tree_gas = yes; then
25523 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25524 then gcc_cv_as_mips_no_shared=yes
25525 fi
25526 elif test x$gcc_cv_as != x; then
25527 $as_echo 'nop' > conftest.s
25528 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25529 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25530 (eval $ac_try) 2>&5
25531 ac_status=$?
25532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25533 test $ac_status = 0; }; }
25534 then
25535 gcc_cv_as_mips_no_shared=yes
25536 else
25537 echo "configure: failed program was" >&5
25538 cat conftest.s >&5
25539 fi
25540 rm -f conftest.o conftest.s
25541 fi
25542 fi
25543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25544 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25545 if test $gcc_cv_as_mips_no_shared = yes; then
25546
25547 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25548
25549 fi
25550
25551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25552 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25553 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25554 $as_echo_n "(cached) " >&6
25555 else
25556 gcc_cv_as_mips_gnu_attribute=no
25557 if test $in_tree_gas = yes; then
25558 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25559 then gcc_cv_as_mips_gnu_attribute=yes
25560 fi
25561 elif test x$gcc_cv_as != x; then
25562 $as_echo '.gnu_attribute 4,1' > conftest.s
25563 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25565 (eval $ac_try) 2>&5
25566 ac_status=$?
25567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25568 test $ac_status = 0; }; }
25569 then
25570 gcc_cv_as_mips_gnu_attribute=yes
25571 else
25572 echo "configure: failed program was" >&5
25573 cat conftest.s >&5
25574 fi
25575 rm -f conftest.o conftest.s
25576 fi
25577 fi
25578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25579 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25580 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25581
25582 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25583
25584 fi
25585
25586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25587 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25588 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25589 $as_echo_n "(cached) " >&6
25590 else
25591 gcc_cv_as_mips_dtprelword=no
25592 if test $in_tree_gas = yes; then
25593 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25594 then gcc_cv_as_mips_dtprelword=yes
25595 fi
25596 elif test x$gcc_cv_as != x; then
25597 $as_echo '.section .tdata,"awT",@progbits
25598 x:
25599 .word 2
25600 .text
25601 .dtprelword x+0x8000' > conftest.s
25602 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25604 (eval $ac_try) 2>&5
25605 ac_status=$?
25606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25607 test $ac_status = 0; }; }
25608 then
25609 gcc_cv_as_mips_dtprelword=yes
25610 else
25611 echo "configure: failed program was" >&5
25612 cat conftest.s >&5
25613 fi
25614 rm -f conftest.o conftest.s
25615 fi
25616 fi
25617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25618 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25619 if test $gcc_cv_as_mips_dtprelword = yes; then
25620
25621 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25622
25623 fi
25624
25625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25626 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25627 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25628 $as_echo_n "(cached) " >&6
25629 else
25630 gcc_cv_as_mips_dspr1_mult=no
25631 if test x$gcc_cv_as != x; then
25632 $as_echo ' .set mips32r2
25633 .set nodspr2
25634 .set dsp
25635 madd $ac3,$4,$5
25636 maddu $ac3,$4,$5
25637 msub $ac3,$4,$5
25638 msubu $ac3,$4,$5
25639 mult $ac3,$4,$5
25640 multu $ac3,$4,$5' > conftest.s
25641 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25643 (eval $ac_try) 2>&5
25644 ac_status=$?
25645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25646 test $ac_status = 0; }; }
25647 then
25648 gcc_cv_as_mips_dspr1_mult=yes
25649 else
25650 echo "configure: failed program was" >&5
25651 cat conftest.s >&5
25652 fi
25653 rm -f conftest.o conftest.s
25654 fi
25655 fi
25656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25657 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25658 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25659
25660 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25661
25662 fi
25663
25664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25665 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25666 gcc_cv_as_ld_jalr_reloc=no
25667 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25668 if test $in_tree_ld = yes ; then
25669 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 \
25670 && test $in_tree_ld_is_elf = yes; then
25671 gcc_cv_as_ld_jalr_reloc=yes
25672 fi
25673 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25674 echo ' .ent x' > conftest.s
25675 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25676 echo ' ld $25,%call16(y)($28)' >> conftest.s
25677 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25678 echo '1: jalr $25' >> conftest.s
25679 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25680 echo '1: jalr $25' >> conftest.s
25681 echo ' .end x' >> conftest.s
25682 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25683 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25684 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25685 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25686 gcc_cv_as_ld_jalr_reloc=yes
25687 fi
25688 fi
25689 rm -f conftest.*
25690 fi
25691 fi
25692 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25693 if test x$target_cpu_default = x; then
25694 target_cpu_default=MASK_RELAX_PIC_CALLS
25695 else
25696 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25697 fi
25698 fi
25699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25700 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25701
25702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25703 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25704 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25705 $as_echo_n "(cached) " >&6
25706 else
25707 gcc_cv_ld_mips_personality_relaxation=no
25708 if test $in_tree_ld = yes ; then
25709 if test "$gcc_cv_gld_major_version" -eq 2 \
25710 -a "$gcc_cv_gld_minor_version" -ge 21 \
25711 -o "$gcc_cv_gld_major_version" -gt 2; then
25712 gcc_cv_ld_mips_personality_relaxation=yes
25713 fi
25714 elif test x$gcc_cv_as != x \
25715 -a x$gcc_cv_ld != x \
25716 -a x$gcc_cv_readelf != x ; then
25717 cat > conftest.s <<EOF
25718 .cfi_startproc
25719 .cfi_personality 0x80,indirect_ptr
25720 .ent test
25721 test:
25722 nop
25723 .end test
25724 .cfi_endproc
25725
25726 .section .data,"aw",@progbits
25727 indirect_ptr:
25728 .dc.a personality
25729 EOF
25730 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25731 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25732 if $gcc_cv_readelf -d conftest 2>&1 \
25733 | grep TEXTREL > /dev/null 2>&1; then
25734 :
25735 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25736 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25737 :
25738 else
25739 gcc_cv_ld_mips_personality_relaxation=yes
25740 fi
25741 fi
25742 fi
25743 rm -f conftest.s conftest.o conftest
25744 fi
25745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25746 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25747 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25748
25749 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25750
25751 fi
25752 ;;
25753 esac
25754
25755 # Mips and HP-UX need the GNU assembler.
25756 # Linux on IA64 might be able to use the Intel assembler.
25757
25758 case "$target" in
25759 mips*-*-* | *-*-hpux* )
25760 if test x$gas_flag = xyes \
25761 || test x"$host" != x"$build" \
25762 || test ! -x "$gcc_cv_as" \
25763 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25764 :
25765 else
25766 echo "*** This configuration requires the GNU assembler" >&2
25767 exit 1
25768 fi
25769 ;;
25770 esac
25771
25772 # ??? Not all targets support dwarf2 debug_line, even within a version
25773 # of gas. Moreover, we need to emit a valid instruction to trigger any
25774 # info to the output file. So, as supported targets are added to gas 2.11,
25775 # add some instruction here to (also) show we expect this might work.
25776 # ??? Once 2.11 is released, probably need to add first known working
25777 # version to the per-target configury.
25778 case "$cpu_type" in
25779 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25780 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
25781 insn="nop"
25782 ;;
25783 ia64 | s390)
25784 insn="nop 0"
25785 ;;
25786 mmix)
25787 insn="swym 0"
25788 ;;
25789 esac
25790 if test x"$insn" != x; then
25791 conftest_s="\
25792 .file 1 \"conftest.s\"
25793 .loc 1 3 0
25794 $insn"
25795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25796 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25797 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25798 $as_echo_n "(cached) " >&6
25799 else
25800 gcc_cv_as_dwarf2_debug_line=no
25801 if test $in_tree_gas = yes; then
25802 if test $in_tree_gas_is_elf = yes \
25803 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25804 then gcc_cv_as_dwarf2_debug_line=yes
25805 fi
25806 elif test x$gcc_cv_as != x; then
25807 $as_echo "$conftest_s" > conftest.s
25808 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25810 (eval $ac_try) 2>&5
25811 ac_status=$?
25812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25813 test $ac_status = 0; }; }
25814 then
25815 if test x$gcc_cv_objdump != x \
25816 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25817 | grep debug_line > /dev/null 2>&1; then
25818 gcc_cv_as_dwarf2_debug_line=yes
25819 fi
25820 else
25821 echo "configure: failed program was" >&5
25822 cat conftest.s >&5
25823 fi
25824 rm -f conftest.o conftest.s
25825 fi
25826 fi
25827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25828 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25829
25830
25831 # The .debug_line file table must be in the exact order that
25832 # we specified the files, since these indices are also used
25833 # by DW_AT_decl_file. Approximate this test by testing if
25834 # the assembler bitches if the same index is assigned twice.
25835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25836 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25837 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25838 $as_echo_n "(cached) " >&6
25839 else
25840 gcc_cv_as_dwarf2_file_buggy=no
25841 if test x$gcc_cv_as != x; then
25842 $as_echo ' .file 1 "foo.s"
25843 .file 1 "bar.s"' > conftest.s
25844 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25846 (eval $ac_try) 2>&5
25847 ac_status=$?
25848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25849 test $ac_status = 0; }; }
25850 then
25851 gcc_cv_as_dwarf2_file_buggy=yes
25852 else
25853 echo "configure: failed program was" >&5
25854 cat conftest.s >&5
25855 fi
25856 rm -f conftest.o conftest.s
25857 fi
25858 fi
25859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25860 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25861
25862
25863 if test $gcc_cv_as_dwarf2_debug_line = yes \
25864 && test $gcc_cv_as_dwarf2_file_buggy = no; then
25865
25866 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25867
25868 fi
25869
25870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25871 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25872 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25873 $as_echo_n "(cached) " >&6
25874 else
25875 gcc_cv_as_gdwarf2_flag=no
25876 if test $in_tree_gas = yes; then
25877 if test $in_tree_gas_is_elf = yes \
25878 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25879 then gcc_cv_as_gdwarf2_flag=yes
25880 fi
25881 elif test x$gcc_cv_as != x; then
25882 $as_echo "$insn" > conftest.s
25883 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25885 (eval $ac_try) 2>&5
25886 ac_status=$?
25887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25888 test $ac_status = 0; }; }
25889 then
25890 gcc_cv_as_gdwarf2_flag=yes
25891 else
25892 echo "configure: failed program was" >&5
25893 cat conftest.s >&5
25894 fi
25895 rm -f conftest.o conftest.s
25896 fi
25897 fi
25898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25899 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25900 if test $gcc_cv_as_gdwarf2_flag = yes; then
25901
25902 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25903
25904 fi
25905
25906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25907 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25908 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25909 $as_echo_n "(cached) " >&6
25910 else
25911 gcc_cv_as_gstabs_flag=no
25912 if test $in_tree_gas = yes; then
25913 if test $in_tree_gas_is_elf = yes \
25914 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25915 then gcc_cv_as_gstabs_flag=yes
25916 fi
25917 elif test x$gcc_cv_as != x; then
25918 $as_echo "$insn" > conftest.s
25919 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25921 (eval $ac_try) 2>&5
25922 ac_status=$?
25923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25924 test $ac_status = 0; }; }
25925 then
25926 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25927 # and warns about it, but still exits successfully. So check for
25928 # this.
25929 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25930 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25931 (eval $ac_try) 2>&5
25932 ac_status=$?
25933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25934 test $ac_status = 0; }; }
25935 then :
25936 else gcc_cv_as_gstabs_flag=yes
25937 fi
25938 else
25939 echo "configure: failed program was" >&5
25940 cat conftest.s >&5
25941 fi
25942 rm -f conftest.o conftest.s
25943 fi
25944 fi
25945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25946 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25947 if test $gcc_cv_as_gstabs_flag = yes; then
25948
25949 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25950
25951 fi
25952
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25954 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25955 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25956 $as_echo_n "(cached) " >&6
25957 else
25958 gcc_cv_as_debug_prefix_map_flag=no
25959 if test $in_tree_gas = yes; then
25960 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25961 then gcc_cv_as_debug_prefix_map_flag=yes
25962 fi
25963 elif test x$gcc_cv_as != x; then
25964 $as_echo "$insn" > conftest.s
25965 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25967 (eval $ac_try) 2>&5
25968 ac_status=$?
25969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25970 test $ac_status = 0; }; }
25971 then
25972 gcc_cv_as_debug_prefix_map_flag=yes
25973 else
25974 echo "configure: failed program was" >&5
25975 cat conftest.s >&5
25976 fi
25977 rm -f conftest.o conftest.s
25978 fi
25979 fi
25980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25981 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25982 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25983
25984 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25985
25986 fi
25987 fi
25988
25989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25990 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25991 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25992 $as_echo_n "(cached) " >&6
25993 else
25994 gcc_cv_as_lcomm_with_alignment=no
25995 if test x$gcc_cv_as != x; then
25996 $as_echo '.lcomm bar,4,16' > conftest.s
25997 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25999 (eval $ac_try) 2>&5
26000 ac_status=$?
26001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26002 test $ac_status = 0; }; }
26003 then
26004 gcc_cv_as_lcomm_with_alignment=yes
26005 else
26006 echo "configure: failed program was" >&5
26007 cat conftest.s >&5
26008 fi
26009 rm -f conftest.o conftest.s
26010 fi
26011 fi
26012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26013 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26014 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26015
26016 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26017
26018 fi
26019
26020 # Check whether --enable-gnu-unique-object was given.
26021 if test "${enable_gnu_unique_object+set}" = set; then :
26022 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26023 yes | no) ;;
26024 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26025 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26026 esac
26027 else
26028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26029 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26030 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26031 $as_echo_n "(cached) " >&6
26032 else
26033 gcc_cv_as_gnu_unique_object=no
26034 if test $in_tree_gas = yes; then
26035 if test $in_tree_gas_is_elf = yes \
26036 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26037 then gcc_cv_as_gnu_unique_object=yes
26038 fi
26039 elif test x$gcc_cv_as != x; then
26040 $as_echo '.type foo, @gnu_unique_object' > conftest.s
26041 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26043 (eval $ac_try) 2>&5
26044 ac_status=$?
26045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26046 test $ac_status = 0; }; }
26047 then
26048 gcc_cv_as_gnu_unique_object=yes
26049 else
26050 echo "configure: failed program was" >&5
26051 cat conftest.s >&5
26052 fi
26053 rm -f conftest.o conftest.s
26054 fi
26055 fi
26056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26057 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26058 if test $gcc_cv_as_gnu_unique_object = yes; then
26059 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26060 if test x$host = x$build -a x$host = x$target &&
26061 ldd --version 2>/dev/null &&
26062 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26063 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26064 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26065 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26066 if test "$glibcnum" -ge 2011 ; then
26067 enable_gnu_unique_object=yes
26068 fi
26069 fi
26070 fi
26071 fi
26072
26073 if test x$enable_gnu_unique_object = xyes; then
26074
26075 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26076
26077 fi
26078
26079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26080 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26081 if test "${gcc_cv_as_line_zero+set}" = set; then :
26082 $as_echo_n "(cached) " >&6
26083 else
26084 gcc_cv_as_line_zero=no
26085 if test $in_tree_gas = yes; then
26086 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26087 then gcc_cv_as_line_zero=yes
26088 fi
26089 elif test "x$gcc_cv_as" != x; then
26090 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26091 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26093 (eval $ac_try) 2>&5
26094 ac_status=$?
26095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26096 test $ac_status = 0; }; } &&
26097 test "x`cat conftest.out`" = x
26098 then
26099 gcc_cv_as_line_zero=yes
26100 else
26101 echo "configure: failed program was" >&5
26102 cat conftest.s >&5
26103 echo "configure: error output was" >&5
26104 cat conftest.out >&5
26105 fi
26106 rm -f conftest.o conftest.s conftest.out
26107 fi
26108 fi
26109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26110 $as_echo "$gcc_cv_as_line_zero" >&6; }
26111 if test "x$gcc_cv_as_line_zero" = xyes; then
26112
26113 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26114
26115 fi
26116
26117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26118 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26119 gcc_cv_ld_eh_frame_hdr=no
26120 if test $in_tree_ld = yes ; then
26121 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 \
26122 && test $in_tree_ld_is_elf = yes; then
26123 gcc_cv_ld_eh_frame_hdr=yes
26124 fi
26125 elif test x$gcc_cv_ld != x; then
26126 if echo "$ld_ver" | grep GNU > /dev/null; then
26127 # Check if linker supports --eh-frame-hdr option
26128 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26129 gcc_cv_ld_eh_frame_hdr=yes
26130 fi
26131 else
26132 case "$target" in
26133 *-*-solaris2*)
26134 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26135 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26136 gcc_cv_ld_eh_frame_hdr=yes
26137 fi
26138 ;;
26139 esac
26140 fi
26141 fi
26142
26143 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26144
26145 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26146
26147 fi
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26149 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26150
26151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26152 $as_echo_n "checking linker position independent executable support... " >&6; }
26153 gcc_cv_ld_pie=no
26154 if test $in_tree_ld = yes ; then
26155 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 \
26156 && test $in_tree_ld_is_elf = yes; then
26157 gcc_cv_ld_pie=yes
26158 fi
26159 elif test x$gcc_cv_ld != x; then
26160 # Check if linker supports -pie option
26161 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26162 gcc_cv_ld_pie=yes
26163 fi
26164 fi
26165 if test x"$gcc_cv_ld_pie" = xyes; then
26166
26167 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26168
26169 fi
26170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26171 $as_echo "$gcc_cv_ld_pie" >&6; }
26172
26173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26174 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26175 gcc_cv_ld_eh_gc_sections=no
26176 if test $in_tree_ld = yes ; then
26177 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 \
26178 && test $in_tree_ld_is_elf = yes; then
26179 gcc_cv_ld_eh_gc_sections=yes
26180 fi
26181 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26182 cat > conftest.s <<EOF
26183 .section .text
26184 .globl _start
26185 .type _start, @function
26186 _start:
26187 .long foo
26188 .size _start, .-_start
26189 .section .text.foo,"ax",@progbits
26190 .type foo, @function
26191 foo:
26192 .long 0
26193 .size foo, .-foo
26194 .section .gcc_except_table.foo,"a",@progbits
26195 .L0:
26196 .long 0
26197 .section .eh_frame,"a",@progbits
26198 .long .L0
26199 EOF
26200 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26201 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26202 | grep "gc-sections option ignored" > /dev/null; then
26203 gcc_cv_ld_eh_gc_sections=no
26204 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26205 | grep gcc_except_table > /dev/null; then
26206 gcc_cv_ld_eh_gc_sections=yes
26207 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26208 if test x$gcc_cv_as_comdat_group != xyes; then
26209 gcc_cv_ld_eh_gc_sections=no
26210 cat > conftest.s <<EOF
26211 .section .text
26212 .globl _start
26213 .type _start, @function
26214 _start:
26215 .long foo
26216 .size _start, .-_start
26217 .section .gnu.linkonce.t.foo,"ax",@progbits
26218 .type foo, @function
26219 foo:
26220 .long 0
26221 .size foo, .-foo
26222 .section .gcc_except_table.foo,"a",@progbits
26223 .L0:
26224 .long 0
26225 .section .eh_frame,"a",@progbits
26226 .long .L0
26227 EOF
26228 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26229 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26230 | grep "gc-sections option ignored" > /dev/null; then
26231 gcc_cv_ld_eh_gc_sections=no
26232 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26233 | grep gcc_except_table > /dev/null; then
26234 gcc_cv_ld_eh_gc_sections=yes
26235 fi
26236 fi
26237 fi
26238 fi
26239 fi
26240 rm -f conftest.s conftest.o conftest
26241 fi
26242 case "$target" in
26243 hppa*-*-linux*)
26244 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26245 gcc_cv_ld_eh_gc_sections=no
26246 ;;
26247 esac
26248 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26249
26250 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26251
26252 fi
26253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26254 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26255
26256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26257 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26258 gcc_cv_ld_eh_gc_sections_bug=no
26259 if test $in_tree_ld = yes ; then
26260 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 \
26261 && test $in_tree_ld_is_elf = yes; then
26262 gcc_cv_ld_eh_gc_sections_bug=yes
26263 fi
26264 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
26265 gcc_cv_ld_eh_gc_sections_bug=yes
26266 cat > conftest.s <<EOF
26267 .section .text
26268 .globl _start
26269 .type _start, @function
26270 _start:
26271 .long foo
26272 .size _start, .-_start
26273 .section .text.startup.foo,"ax",@progbits
26274 .type foo, @function
26275 foo:
26276 .long 0
26277 .size foo, .-foo
26278 .section .gcc_except_table.foo,"a",@progbits
26279 .L0:
26280 .long 0
26281 .section .eh_frame,"a",@progbits
26282 .long .L0
26283 EOF
26284 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26285 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26286 | grep "gc-sections option ignored" > /dev/null; then
26287 :
26288 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26289 | grep gcc_except_table > /dev/null; then
26290 gcc_cv_ld_eh_gc_sections_bug=no
26291 fi
26292 fi
26293 rm -f conftest.s conftest.o conftest
26294 fi
26295 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26296
26297 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26298
26299 fi
26300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26301 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26302
26303 # --------
26304 # UNSORTED
26305 # --------
26306
26307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26308 $as_echo_n "checking linker --as-needed support... " >&6; }
26309 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26310 $as_echo_n "(cached) " >&6
26311 else
26312 gcc_cv_ld_as_needed=no
26313 if test $in_tree_ld = yes ; then
26314 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 \
26315 && test $in_tree_ld_is_elf = yes; then
26316 gcc_cv_ld_as_needed=yes
26317 fi
26318 elif test x$gcc_cv_ld != x; then
26319 # Check if linker supports --as-needed and --no-as-needed options
26320 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26321 gcc_cv_ld_as_needed=yes
26322 fi
26323 fi
26324
26325 fi
26326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26327 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26328 if test x"$gcc_cv_ld_as_needed" = xyes; then
26329
26330 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26331
26332 fi
26333
26334 case "$target:$tm_file" in
26335 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26337 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26338 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26339 $as_echo_n "(cached) " >&6
26340 else
26341 gcc_cv_ld_no_dot_syms=no
26342 if test $in_tree_ld = yes ; then
26343 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
26344 gcc_cv_ld_no_dot_syms=yes
26345 fi
26346 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26347 cat > conftest1.s <<EOF
26348 .text
26349 bl .foo
26350 EOF
26351 cat > conftest2.s <<EOF
26352 .section ".opd","aw"
26353 .align 3
26354 .globl foo
26355 .type foo,@function
26356 foo:
26357 .quad .LEfoo,.TOC.@tocbase,0
26358 .text
26359 .LEfoo:
26360 blr
26361 .size foo,.-.LEfoo
26362 EOF
26363 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26364 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26365 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26366 gcc_cv_ld_no_dot_syms=yes
26367 fi
26368 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26369 fi
26370
26371 fi
26372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26373 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26374 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26375
26376 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26377
26378 fi
26379
26380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26381 $as_echo_n "checking linker large toc support... " >&6; }
26382 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26383 $as_echo_n "(cached) " >&6
26384 else
26385 gcc_cv_ld_large_toc=no
26386 if test $in_tree_ld = yes ; then
26387 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
26388 gcc_cv_ld_large_toc=yes
26389 fi
26390 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26391 cat > conftest.s <<EOF
26392 .section ".tbss","awT",@nobits
26393 .align 3
26394 ie0: .space 8
26395 .global _start
26396 .text
26397 _start:
26398 addis 9,13,ie0@got@tprel@ha
26399 ld 9,ie0@got@tprel@l(9)
26400 EOF
26401 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26402 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26403 gcc_cv_ld_large_toc=yes
26404 fi
26405 rm -f conftest conftest.o conftest.s
26406 fi
26407
26408 fi
26409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26410 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26411 if test x"$gcc_cv_ld_large_toc" = xyes; then
26412
26413 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26414
26415 fi
26416 ;;
26417 esac
26418
26419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26420 $as_echo_n "checking linker --build-id support... " >&6; }
26421 if test "${gcc_cv_ld_buildid+set}" = set; then :
26422 $as_echo_n "(cached) " >&6
26423 else
26424 gcc_cv_ld_buildid=no
26425 if test $in_tree_ld = yes ; then
26426 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26427 "$gcc_cv_gld_minor_version" -ge 18 -o \
26428 "$gcc_cv_gld_major_version" -gt 2 \
26429 && test $in_tree_ld_is_elf = yes; then
26430 gcc_cv_ld_buildid=yes
26431 fi
26432 elif test x$gcc_cv_ld != x; then
26433 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26434 gcc_cv_ld_buildid=yes
26435 fi
26436 fi
26437 fi
26438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26439 $as_echo "$gcc_cv_ld_buildid" >&6; }
26440 if test x"$gcc_cv_ld_buildid" = xyes; then
26441
26442 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26443
26444 fi
26445
26446 # Check whether --enable-linker-build-id was given.
26447 if test "${enable_linker_build_id+set}" = set; then :
26448 enableval=$enable_linker_build_id;
26449 else
26450 enable_linker_build_id=no
26451 fi
26452
26453
26454 if test x"$enable_linker_build_id" = xyes; then
26455 if test x"$gcc_cv_ld_buildid" = xyes; then
26456
26457 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26458
26459 else
26460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26461 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26462 fi
26463 fi
26464
26465 # In binutils 2.21, GNU ld gained support for new emulations fully
26466 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26468 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26469 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26470 $as_echo_n "(cached) " >&6
26471 else
26472 gcc_cv_ld_sol2_emulation=no
26473 if test $in_tree_ld = yes ; then
26474 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26475 "$gcc_cv_gld_minor_version" -ge 21 -o \
26476 "$gcc_cv_gld_major_version" -gt 2 \
26477 && test $in_tree_ld_is_elf = yes; then
26478 gcc_cv_ld_sol2_emulation=yes
26479 fi
26480 elif test x$gcc_cv_ld != x; then
26481 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26482 grep _sol2 > /dev/null; then
26483 gcc_cv_ld_sol2_emulation=yes
26484 fi
26485 fi
26486 fi
26487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26488 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26489 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26490
26491 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26492
26493 fi
26494
26495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26496 $as_echo_n "checking linker --sysroot support... " >&6; }
26497 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26498 $as_echo_n "(cached) " >&6
26499 else
26500 gcc_cv_ld_sysroot=no
26501 if test $in_tree_ld = yes ; then
26502 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
26503 gcc_cv_ld_sysroot=yes
26504 fi
26505 elif test x$gcc_cv_ld != x; then
26506 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26507 gcc_cv_ld_sysroot=yes
26508 fi
26509 fi
26510 fi
26511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26512 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26513 if test x"$gcc_cv_ld_sysroot" = xyes; then
26514
26515 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26516
26517 fi
26518
26519 if test x$with_sysroot = x && test x$host = x$target \
26520 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26521 && test "$prefix" != "NONE"; then
26522
26523 cat >>confdefs.h <<_ACEOF
26524 #define PREFIX_INCLUDE_DIR "$prefix/include"
26525 _ACEOF
26526
26527 fi
26528
26529 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26530 if test "x$with_headers" != x; then
26531 target_header_dir=$with_headers
26532 elif test "x$with_sysroot" = x; then
26533 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
26534 elif test "x$with_build_sysroot" != "x"; then
26535 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26536 elif test "x$with_sysroot" = xyes; then
26537 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26538 else
26539 target_header_dir="${with_sysroot}${native_system_header_dir}"
26540 fi
26541 else
26542 target_header_dir=${native_system_header_dir}
26543 fi
26544
26545 # Test for stack protector support in target C library.
26546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26547 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26548 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26549 $as_echo_n "(cached) " >&6
26550 else
26551 gcc_cv_libc_provides_ssp=no
26552 case "$target" in
26553 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26554 # glibc 2.4 and later provides __stack_chk_fail and
26555 # either __stack_chk_guard, or TLS access to stack guard canary.
26556 if test -f $target_header_dir/features.h \
26557 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26558 $target_header_dir/features.h > /dev/null; then
26559 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26560 $target_header_dir/features.h > /dev/null; then
26561 gcc_cv_libc_provides_ssp=yes
26562 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26563 $target_header_dir/features.h > /dev/null \
26564 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26565 $target_header_dir/features.h > /dev/null; then
26566 gcc_cv_libc_provides_ssp=yes
26567 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26568 $target_header_dir/features.h > /dev/null && \
26569 test -f $target_header_dir/bits/uClibc_config.h && \
26570 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26571 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26572 gcc_cv_libc_provides_ssp=yes
26573 fi
26574 fi
26575 ;;
26576 *-*-gnu*)
26577 # Avoid complicated tests (see
26578 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26579 # simply assert that glibc does provide this, which is true for all
26580 # realistically usable GNU/Hurd configurations.
26581 gcc_cv_libc_provides_ssp=yes;;
26582 *-*-darwin* | *-*-freebsd*)
26583 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26584 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26585 gcc_cv_libc_provides_ssp=yes
26586 else
26587 echo "no __stack_chk_fail on this target"
26588 fi
26589
26590 ;;
26591 *) gcc_cv_libc_provides_ssp=no ;;
26592 esac
26593 fi
26594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26595 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26596
26597 if test x$gcc_cv_libc_provides_ssp = xyes; then
26598
26599 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26600
26601 fi
26602
26603 # Test for <sys/sdt.h> on the target.
26604
26605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26606 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26607 have_sys_sdt_h=no
26608 if test -f $target_header_dir/sys/sdt.h; then
26609 have_sys_sdt_h=yes
26610
26611 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26612
26613 fi
26614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26615 $as_echo "$have_sys_sdt_h" >&6; }
26616
26617 # Check if TFmode long double should be used by default or not.
26618 # Some glibc targets used DFmode long double, but with glibc 2.4
26619 # and later they can use TFmode.
26620 case "$target" in
26621 powerpc*-*-linux* | \
26622 sparc*-*-linux* | \
26623 s390*-*-linux* | \
26624 alpha*-*-linux*)
26625
26626 # Check whether --with-long-double-128 was given.
26627 if test "${with_long_double_128+set}" = set; then :
26628 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26629 else
26630 gcc_cv_target_ldbl128=no
26631 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26632 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26633 && gcc_cv_target_ldbl128=yes
26634
26635 fi
26636
26637 ;;
26638 esac
26639 if test x$gcc_cv_target_ldbl128 = xyes; then
26640
26641 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26642
26643 fi
26644
26645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26646 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26647 gcc_cv_target_dl_iterate_phdr=unknown
26648 case "$target" in
26649 *-*-solaris2*)
26650 # <link.h> needs both a dl_iterate_phdr declaration and support for
26651 # compilation with largefile support.
26652 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26653 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26654 gcc_cv_target_dl_iterate_phdr=yes
26655 else
26656 gcc_cv_target_dl_iterate_phdr=no
26657 fi
26658 ;;
26659 esac
26660
26661 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26662
26663 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26664
26665 fi
26666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26667 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26668
26669 # Find out what GC implementation we want, or may, use.
26670
26671 # Check whether --with-gc was given.
26672 if test "${with_gc+set}" = set; then :
26673 withval=$with_gc; case "$withval" in
26674 page)
26675 GGC=ggc-$withval
26676 ;;
26677 zone)
26678 GGC=ggc-$withval
26679
26680 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26681
26682 ;;
26683 *)
26684 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26685 ;;
26686 esac
26687 else
26688 GGC=ggc-page
26689 fi
26690
26691
26692 echo "Using $GGC for garbage collection."
26693
26694 # Libraries to use on the host. This will normally be set by the top
26695 # level Makefile. Here we simply capture the value for our Makefile.
26696 if test -z "${HOST_LIBS+set}"; then
26697 HOST_LIBS=
26698 fi
26699
26700
26701 # Use the system's zlib library.
26702 zlibdir=-L../zlib
26703 zlibinc="-I\$(srcdir)/../zlib"
26704
26705 # Check whether --with-system-zlib was given.
26706 if test "${with_system_zlib+set}" = set; then :
26707 withval=$with_system_zlib; zlibdir=
26708 zlibinc=
26709
26710 fi
26711
26712
26713
26714
26715
26716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26717 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26718 # Check whether --enable-maintainer-mode was given.
26719 if test "${enable_maintainer_mode+set}" = set; then :
26720 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26721 else
26722 maintainer_mode=no
26723 fi
26724
26725
26726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26727 $as_echo "$maintainer_mode" >&6; }
26728
26729 if test "$maintainer_mode" = "yes"; then
26730 MAINT=''
26731 else
26732 MAINT='#'
26733 fi
26734
26735 # --------------
26736 # Language hooks
26737 # --------------
26738
26739 # Make empty files to contain the specs and options for each language.
26740 # Then add #include lines to for a compiler that has specs and/or options.
26741
26742 subdirs=
26743 lang_opt_files=
26744 lang_specs_files=
26745 lang_tree_files=
26746 # These (without "all_") are set in each config-lang.in.
26747 # `language' must be a single word so is spelled singularly.
26748 all_languages=
26749 all_compilers=
26750 all_outputs='Makefile'
26751 # List of language makefile fragments.
26752 all_lang_makefrags=
26753 # Additional files for gengtype
26754 all_gtfiles="$target_gtfiles"
26755
26756 # These are the languages that are set in --enable-languages,
26757 # and are available in the GCC tree.
26758 all_selected_languages=
26759
26760 # Add the language fragments.
26761 # Languages are added via two mechanisms. Some information must be
26762 # recorded in makefile variables, these are defined in config-lang.in.
26763 # We accumulate them and plug them into the main Makefile.
26764 # The other mechanism is a set of hooks for each of the main targets
26765 # like `clean', `install', etc.
26766
26767 language_hooks="Make-hooks"
26768
26769 for lang in ${srcdir}/*/config-lang.in
26770 do
26771 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26772
26773 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26774 if test "x$lang_alias" = x
26775 then
26776 echo "$lang doesn't set \$language." 1>&2
26777 exit 1
26778 fi
26779 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26780 subdirs="$subdirs $subdir"
26781
26782 # $gcc_subdir is where the gcc integration files are to be found
26783 # for a language, both for internal compiler purposes (compiler
26784 # sources implementing front-end to GCC tree converters), and for
26785 # build infrastructure purposes (Make-lang.in, etc.)
26786 #
26787 # This will be <subdir> (relative to $srcdir) if a line like
26788 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26789 # is found in <langdir>/config-lang.in, and will remain <langdir>
26790 # otherwise.
26791 #
26792 # Except for the language alias (fetched above), the regular
26793 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26794 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26795 # only this and the language alias.
26796
26797 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26798 if [ "$gcc_subdir" = "" ]; then
26799 gcc_subdir="$subdir"
26800 fi
26801
26802 case ",$enable_languages," in
26803 *,$lang_alias,*)
26804 all_selected_languages="$all_selected_languages $lang_alias"
26805 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26806 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26807 fi
26808 ;;
26809 esac
26810
26811 language=
26812 boot_language=
26813 compilers=
26814 outputs=
26815 gtfiles=
26816 subdir_requires=
26817 . ${srcdir}/$gcc_subdir/config-lang.in
26818 if test "x$language" = x
26819 then
26820 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26821 exit 1
26822 fi
26823
26824 ok=:
26825 case ",$enable_languages," in
26826 *,$lang_alias,*) ;;
26827 *)
26828 for i in $subdir_requires; do
26829 test -f "${srcdir}/$i/config-lang.in" && continue
26830 ok=false
26831 break
26832 done
26833 ;;
26834 esac
26835 $ok || continue
26836
26837 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26838 if test -f $srcdir/$gcc_subdir/lang.opt; then
26839 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26840 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26841 fi
26842 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26843 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26844 fi
26845 all_languages="$all_languages $language"
26846 all_compilers="$all_compilers $compilers"
26847 all_outputs="$all_outputs $outputs"
26848 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26849 case ",$enable_languages," in
26850 *,lto,*)
26851
26852 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26853
26854 enable_lto=yes
26855
26856 ;;
26857 *) ;;
26858 esac
26859 done
26860
26861 # Pick up gtfiles for c
26862 gtfiles=
26863 . ${srcdir}/c-config-lang.in
26864 all_gtfiles="$all_gtfiles [c] $gtfiles"
26865
26866 check_languages=
26867 for language in $all_selected_languages
26868 do
26869 check_languages="$check_languages check-$language"
26870 done
26871
26872 # We link each language in with a set of hooks, reached indirectly via
26873 # lang.${target}. Only do so for selected languages.
26874
26875 rm -f Make-hooks
26876 touch Make-hooks
26877 target_list="all.cross start.encap rest.encap tags \
26878 install-common install-man install-info install-pdf install-html dvi \
26879 pdf html uninstall info man srcextra srcman srcinfo \
26880 mostlyclean clean distclean maintainer-clean install-plugin"
26881
26882 for t in $target_list
26883 do
26884 x=
26885 for lang in $all_selected_languages
26886 do
26887 x="$x $lang.$t"
26888 done
26889 echo "lang.$t: $x" >> Make-hooks
26890 done
26891
26892 # --------
26893 # Option include files
26894 # --------
26895
26896 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26897 option_includes="option-includes.mk"
26898
26899
26900 # --------
26901 # UNSORTED
26902 # --------
26903
26904 # Create .gdbinit.
26905
26906 echo "dir ." > .gdbinit
26907 echo "dir ${srcdir}" >> .gdbinit
26908 if test x$gdb_needs_out_file_path = xyes
26909 then
26910 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26911 fi
26912 if test "x$subdirs" != x; then
26913 for s in $subdirs
26914 do
26915 echo "dir ${srcdir}/$s" >> .gdbinit
26916 done
26917 fi
26918 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26919
26920 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26921
26922
26923
26924 # Find a directory in which to install a shared libgcc.
26925
26926 # Check whether --enable-version-specific-runtime-libs was given.
26927 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26928 enableval=$enable_version_specific_runtime_libs;
26929 fi
26930
26931
26932 # Substitute configuration variables
26933
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 # Echo link setup.
26996 if test x${build} = x${host} ; then
26997 if test x${host} = x${target} ; then
26998 echo "Links are now set up to build a native compiler for ${target}." 1>&2
26999 else
27000 echo "Links are now set up to build a cross-compiler" 1>&2
27001 echo " from ${host} to ${target}." 1>&2
27002 fi
27003 else
27004 if test x${host} = x${target} ; then
27005 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27006 echo " for ${target}." 1>&2
27007 else
27008 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27009 echo " from ${host} to ${target}." 1>&2
27010 fi
27011 fi
27012
27013
27014
27015
27016
27017
27018
27019
27020
27021 if test "x${CLOOGLIBS}" != "x" ; then
27022
27023 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27024
27025 fi
27026
27027 # Check for plugin support
27028 # Check whether --enable-plugin was given.
27029 if test "${enable_plugin+set}" = set; then :
27030 enableval=$enable_plugin; enable_plugin=$enableval
27031 else
27032 enable_plugin=yes; default_plugin=yes
27033 fi
27034
27035
27036 pluginlibs=
27037
27038 case "${host}" in
27039 *-*-darwin*)
27040 if test x$build = x$host; then
27041 export_sym_check="nm${exeext} -g"
27042 elif test x$host = x$target; then
27043 export_sym_check="$gcc_cv_nm -g"
27044 else
27045 export_sym_check=
27046 fi
27047 ;;
27048 *)
27049 if test x$build = x$host; then
27050 export_sym_check="objdump${exeext} -T"
27051 elif test x$host = x$target; then
27052 export_sym_check="$gcc_cv_objdump -T"
27053 else
27054 export_sym_check=
27055 fi
27056 ;;
27057 esac
27058
27059 if test x"$enable_plugin" = x"yes"; then
27060
27061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27062 $as_echo_n "checking for exported symbols... " >&6; }
27063 if test "x$export_sym_check" != x; then
27064 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27065 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27066 if $export_sym_check conftest | grep foobar > /dev/null; then
27067 : # No need to use a flag
27068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27069 $as_echo "yes" >&6; }
27070 else
27071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27072 $as_echo "yes" >&6; }
27073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27074 $as_echo_n "checking for -rdynamic... " >&6; }
27075 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27076 if $export_sym_check conftest | grep foobar > /dev/null; then
27077 plugin_rdynamic=yes
27078 pluginlibs="-rdynamic"
27079 else
27080 plugin_rdynamic=no
27081 enable_plugin=no
27082 fi
27083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27084 $as_echo "$plugin_rdynamic" >&6; }
27085 fi
27086 else
27087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27088 $as_echo "unable to check" >&6; }
27089 fi
27090
27091 # Check -ldl
27092 saved_LIBS="$LIBS"
27093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27094 $as_echo_n "checking for library containing dlopen... " >&6; }
27095 if test "${ac_cv_search_dlopen+set}" = set; then :
27096 $as_echo_n "(cached) " >&6
27097 else
27098 ac_func_search_save_LIBS=$LIBS
27099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27100 /* end confdefs.h. */
27101
27102 /* Override any GCC internal prototype to avoid an error.
27103 Use char because int might match the return type of a GCC
27104 builtin and then its argument prototype would still apply. */
27105 #ifdef __cplusplus
27106 extern "C"
27107 #endif
27108 char dlopen ();
27109 int
27110 main ()
27111 {
27112 return dlopen ();
27113 ;
27114 return 0;
27115 }
27116 _ACEOF
27117 for ac_lib in '' dl; do
27118 if test -z "$ac_lib"; then
27119 ac_res="none required"
27120 else
27121 ac_res=-l$ac_lib
27122 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27123 fi
27124 if ac_fn_c_try_link "$LINENO"; then :
27125 ac_cv_search_dlopen=$ac_res
27126 fi
27127 rm -f core conftest.err conftest.$ac_objext \
27128 conftest$ac_exeext
27129 if test "${ac_cv_search_dlopen+set}" = set; then :
27130 break
27131 fi
27132 done
27133 if test "${ac_cv_search_dlopen+set}" = set; then :
27134
27135 else
27136 ac_cv_search_dlopen=no
27137 fi
27138 rm conftest.$ac_ext
27139 LIBS=$ac_func_search_save_LIBS
27140 fi
27141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27142 $as_echo "$ac_cv_search_dlopen" >&6; }
27143 ac_res=$ac_cv_search_dlopen
27144 if test "$ac_res" != no; then :
27145 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27146
27147 fi
27148
27149 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27150 pluginlibs="$pluginlibs -ldl"
27151 fi
27152 LIBS="$saved_LIBS"
27153
27154 # Check that we can build shared objects with -fPIC -shared
27155 saved_LDFLAGS="$LDFLAGS"
27156 saved_CFLAGS="$CFLAGS"
27157 case "${host}" in
27158 *-*-darwin*)
27159 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27160 CFLAGS="$CFLAGS -fPIC"
27161 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27162 ;;
27163 *)
27164 CFLAGS="$CFLAGS -fPIC"
27165 LDFLAGS="$LDFLAGS -fPIC -shared"
27166 ;;
27167 esac
27168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27169 $as_echo_n "checking for -fPIC -shared... " >&6; }
27170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27171 /* end confdefs.h. */
27172 extern int X;
27173 int
27174 main ()
27175 {
27176 return X == 0;
27177 ;
27178 return 0;
27179 }
27180 _ACEOF
27181 if ac_fn_c_try_link "$LINENO"; then :
27182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27183 $as_echo "yes" >&6; }; have_pic_shared=yes
27184 else
27185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27186 $as_echo "no" >&6; }; have_pic_shared=no
27187 fi
27188 rm -f core conftest.err conftest.$ac_objext \
27189 conftest$ac_exeext conftest.$ac_ext
27190 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27191 pluginlibs=
27192 enable_plugin=no
27193 fi
27194 LDFLAGS="$saved_LDFLAGS"
27195 CFLAGS="$saved_CFLAGS"
27196
27197 # If plugin support had been requested but not available, fail.
27198 if test x"$enable_plugin" = x"no" ; then
27199 if test x"$default_plugin" != x"yes"; then
27200 as_fn_error "
27201 Building GCC with plugin support requires a host that supports
27202 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27203 fi
27204 fi
27205 fi
27206
27207
27208
27209 if test x"$enable_plugin" = x"yes"; then
27210
27211 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27212
27213 fi
27214
27215
27216 # Check whether --enable-libquadmath-support was given.
27217 if test "${enable_libquadmath_support+set}" = set; then :
27218 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27219 else
27220 ENABLE_LIBQUADMATH_SUPPORT=yes
27221 fi
27222
27223 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27224
27225 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27226
27227 fi
27228
27229
27230 # Specify what hash style to use by default.
27231
27232 # Check whether --with-linker-hash-style was given.
27233 if test "${with_linker_hash_style+set}" = set; then :
27234 withval=$with_linker_hash_style; case x"$withval" in
27235 xsysv)
27236 LINKER_HASH_STYLE=sysv
27237 ;;
27238 xgnu)
27239 LINKER_HASH_STYLE=gnu
27240 ;;
27241 xboth)
27242 LINKER_HASH_STYLE=both
27243 ;;
27244 *)
27245 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27246 ;;
27247 esac
27248 else
27249 LINKER_HASH_STYLE=''
27250 fi
27251
27252 if test x"${LINKER_HASH_STYLE}" != x; then
27253
27254 cat >>confdefs.h <<_ACEOF
27255 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27256 _ACEOF
27257
27258 fi
27259
27260 # Configure the subdirectories
27261 # AC_CONFIG_SUBDIRS($subdirs)
27262
27263 # Create the Makefile
27264 # and configure language subdirectories
27265 ac_config_files="$ac_config_files $all_outputs"
27266
27267
27268 ac_config_commands="$ac_config_commands default"
27269
27270 cat >confcache <<\_ACEOF
27271 # This file is a shell script that caches the results of configure
27272 # tests run on this system so they can be shared between configure
27273 # scripts and configure runs, see configure's option --config-cache.
27274 # It is not useful on other systems. If it contains results you don't
27275 # want to keep, you may remove or edit it.
27276 #
27277 # config.status only pays attention to the cache file if you give it
27278 # the --recheck option to rerun configure.
27279 #
27280 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27281 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27282 # following values.
27283
27284 _ACEOF
27285
27286 # The following way of writing the cache mishandles newlines in values,
27287 # but we know of no workaround that is simple, portable, and efficient.
27288 # So, we kill variables containing newlines.
27289 # Ultrix sh set writes to stderr and can't be redirected directly,
27290 # and sets the high bit in the cache file unless we assign to the vars.
27291 (
27292 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27293 eval ac_val=\$$ac_var
27294 case $ac_val in #(
27295 *${as_nl}*)
27296 case $ac_var in #(
27297 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27298 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27299 esac
27300 case $ac_var in #(
27301 _ | IFS | as_nl) ;; #(
27302 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27303 *) { eval $ac_var=; unset $ac_var;} ;;
27304 esac ;;
27305 esac
27306 done
27307
27308 (set) 2>&1 |
27309 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27310 *${as_nl}ac_space=\ *)
27311 # `set' does not quote correctly, so add quotes: double-quote
27312 # substitution turns \\\\ into \\, and sed turns \\ into \.
27313 sed -n \
27314 "s/'/'\\\\''/g;
27315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27316 ;; #(
27317 *)
27318 # `set' quotes correctly as required by POSIX, so do not add quotes.
27319 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27320 ;;
27321 esac |
27322 sort
27323 ) |
27324 sed '
27325 /^ac_cv_env_/b end
27326 t clear
27327 :clear
27328 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27329 t end
27330 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27331 :end' >>confcache
27332 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27333 if test -w "$cache_file"; then
27334 test "x$cache_file" != "x/dev/null" &&
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27336 $as_echo "$as_me: updating cache $cache_file" >&6;}
27337 cat confcache >$cache_file
27338 else
27339 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27340 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27341 fi
27342 fi
27343 rm -f confcache
27344
27345 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27346 # Let make expand exec_prefix.
27347 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27348
27349 DEFS=-DHAVE_CONFIG_H
27350
27351 ac_libobjs=
27352 ac_ltlibobjs=
27353 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27354 # 1. Remove the extension, and $U if already installed.
27355 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27356 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27357 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27358 # will be set to the directory where LIBOBJS objects are built.
27359 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27360 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27361 done
27362 LIBOBJS=$ac_libobjs
27363
27364 LTLIBOBJS=$ac_ltlibobjs
27365
27366
27367
27368
27369 : ${CONFIG_STATUS=./config.status}
27370 ac_write_fail=0
27371 ac_clean_files_save=$ac_clean_files
27372 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27373 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27374 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27375 as_write_fail=0
27376 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27377 #! $SHELL
27378 # Generated by $as_me.
27379 # Run this file to recreate the current configuration.
27380 # Compiler output produced by configure, useful for debugging
27381 # configure, is in config.log if it exists.
27382
27383 debug=false
27384 ac_cs_recheck=false
27385 ac_cs_silent=false
27386
27387 SHELL=\${CONFIG_SHELL-$SHELL}
27388 export SHELL
27389 _ASEOF
27390 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27391 ## -------------------- ##
27392 ## M4sh Initialization. ##
27393 ## -------------------- ##
27394
27395 # Be more Bourne compatible
27396 DUALCASE=1; export DUALCASE # for MKS sh
27397 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27398 emulate sh
27399 NULLCMD=:
27400 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27401 # is contrary to our usage. Disable this feature.
27402 alias -g '${1+"$@"}'='"$@"'
27403 setopt NO_GLOB_SUBST
27404 else
27405 case `(set -o) 2>/dev/null` in #(
27406 *posix*) :
27407 set -o posix ;; #(
27408 *) :
27409 ;;
27410 esac
27411 fi
27412
27413
27414 as_nl='
27415 '
27416 export as_nl
27417 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27418 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27419 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27420 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27421 # Prefer a ksh shell builtin over an external printf program on Solaris,
27422 # but without wasting forks for bash or zsh.
27423 if test -z "$BASH_VERSION$ZSH_VERSION" \
27424 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27425 as_echo='print -r --'
27426 as_echo_n='print -rn --'
27427 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27428 as_echo='printf %s\n'
27429 as_echo_n='printf %s'
27430 else
27431 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27432 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27433 as_echo_n='/usr/ucb/echo -n'
27434 else
27435 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27436 as_echo_n_body='eval
27437 arg=$1;
27438 case $arg in #(
27439 *"$as_nl"*)
27440 expr "X$arg" : "X\\(.*\\)$as_nl";
27441 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27442 esac;
27443 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27444 '
27445 export as_echo_n_body
27446 as_echo_n='sh -c $as_echo_n_body as_echo'
27447 fi
27448 export as_echo_body
27449 as_echo='sh -c $as_echo_body as_echo'
27450 fi
27451
27452 # The user is always right.
27453 if test "${PATH_SEPARATOR+set}" != set; then
27454 PATH_SEPARATOR=:
27455 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27456 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27457 PATH_SEPARATOR=';'
27458 }
27459 fi
27460
27461
27462 # IFS
27463 # We need space, tab and new line, in precisely that order. Quoting is
27464 # there to prevent editors from complaining about space-tab.
27465 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27466 # splitting by setting IFS to empty value.)
27467 IFS=" "" $as_nl"
27468
27469 # Find who we are. Look in the path if we contain no directory separator.
27470 case $0 in #((
27471 *[\\/]* ) as_myself=$0 ;;
27472 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27473 for as_dir in $PATH
27474 do
27475 IFS=$as_save_IFS
27476 test -z "$as_dir" && as_dir=.
27477 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27478 done
27479 IFS=$as_save_IFS
27480
27481 ;;
27482 esac
27483 # We did not find ourselves, most probably we were run as `sh COMMAND'
27484 # in which case we are not to be found in the path.
27485 if test "x$as_myself" = x; then
27486 as_myself=$0
27487 fi
27488 if test ! -f "$as_myself"; then
27489 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27490 exit 1
27491 fi
27492
27493 # Unset variables that we do not need and which cause bugs (e.g. in
27494 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27495 # suppresses any "Segmentation fault" message there. '((' could
27496 # trigger a bug in pdksh 5.2.14.
27497 for as_var in BASH_ENV ENV MAIL MAILPATH
27498 do eval test x\${$as_var+set} = xset \
27499 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27500 done
27501 PS1='$ '
27502 PS2='> '
27503 PS4='+ '
27504
27505 # NLS nuisances.
27506 LC_ALL=C
27507 export LC_ALL
27508 LANGUAGE=C
27509 export LANGUAGE
27510
27511 # CDPATH.
27512 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27513
27514
27515 # as_fn_error ERROR [LINENO LOG_FD]
27516 # ---------------------------------
27517 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27518 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27519 # script with status $?, using 1 if that was 0.
27520 as_fn_error ()
27521 {
27522 as_status=$?; test $as_status -eq 0 && as_status=1
27523 if test "$3"; then
27524 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27525 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27526 fi
27527 $as_echo "$as_me: error: $1" >&2
27528 as_fn_exit $as_status
27529 } # as_fn_error
27530
27531
27532 # as_fn_set_status STATUS
27533 # -----------------------
27534 # Set $? to STATUS, without forking.
27535 as_fn_set_status ()
27536 {
27537 return $1
27538 } # as_fn_set_status
27539
27540 # as_fn_exit STATUS
27541 # -----------------
27542 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27543 as_fn_exit ()
27544 {
27545 set +e
27546 as_fn_set_status $1
27547 exit $1
27548 } # as_fn_exit
27549
27550 # as_fn_unset VAR
27551 # ---------------
27552 # Portably unset VAR.
27553 as_fn_unset ()
27554 {
27555 { eval $1=; unset $1;}
27556 }
27557 as_unset=as_fn_unset
27558 # as_fn_append VAR VALUE
27559 # ----------------------
27560 # Append the text in VALUE to the end of the definition contained in VAR. Take
27561 # advantage of any shell optimizations that allow amortized linear growth over
27562 # repeated appends, instead of the typical quadratic growth present in naive
27563 # implementations.
27564 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27565 eval 'as_fn_append ()
27566 {
27567 eval $1+=\$2
27568 }'
27569 else
27570 as_fn_append ()
27571 {
27572 eval $1=\$$1\$2
27573 }
27574 fi # as_fn_append
27575
27576 # as_fn_arith ARG...
27577 # ------------------
27578 # Perform arithmetic evaluation on the ARGs, and store the result in the
27579 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27580 # must be portable across $(()) and expr.
27581 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27582 eval 'as_fn_arith ()
27583 {
27584 as_val=$(( $* ))
27585 }'
27586 else
27587 as_fn_arith ()
27588 {
27589 as_val=`expr "$@" || test $? -eq 1`
27590 }
27591 fi # as_fn_arith
27592
27593
27594 if expr a : '\(a\)' >/dev/null 2>&1 &&
27595 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27596 as_expr=expr
27597 else
27598 as_expr=false
27599 fi
27600
27601 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27602 as_basename=basename
27603 else
27604 as_basename=false
27605 fi
27606
27607 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27608 as_dirname=dirname
27609 else
27610 as_dirname=false
27611 fi
27612
27613 as_me=`$as_basename -- "$0" ||
27614 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27615 X"$0" : 'X\(//\)$' \| \
27616 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27617 $as_echo X/"$0" |
27618 sed '/^.*\/\([^/][^/]*\)\/*$/{
27619 s//\1/
27620 q
27621 }
27622 /^X\/\(\/\/\)$/{
27623 s//\1/
27624 q
27625 }
27626 /^X\/\(\/\).*/{
27627 s//\1/
27628 q
27629 }
27630 s/.*/./; q'`
27631
27632 # Avoid depending upon Character Ranges.
27633 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27634 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27635 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27636 as_cr_digits='0123456789'
27637 as_cr_alnum=$as_cr_Letters$as_cr_digits
27638
27639 ECHO_C= ECHO_N= ECHO_T=
27640 case `echo -n x` in #(((((
27641 -n*)
27642 case `echo 'xy\c'` in
27643 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27644 xy) ECHO_C='\c';;
27645 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27646 ECHO_T=' ';;
27647 esac;;
27648 *)
27649 ECHO_N='-n';;
27650 esac
27651
27652 rm -f conf$$ conf$$.exe conf$$.file
27653 if test -d conf$$.dir; then
27654 rm -f conf$$.dir/conf$$.file
27655 else
27656 rm -f conf$$.dir
27657 mkdir conf$$.dir 2>/dev/null
27658 fi
27659 if (echo >conf$$.file) 2>/dev/null; then
27660 if ln -s conf$$.file conf$$ 2>/dev/null; then
27661 as_ln_s='ln -s'
27662 # ... but there are two gotchas:
27663 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27664 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27665 # In both cases, we have to default to `cp -p'.
27666 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27667 as_ln_s='cp -p'
27668 elif ln conf$$.file conf$$ 2>/dev/null; then
27669 as_ln_s=ln
27670 else
27671 as_ln_s='cp -p'
27672 fi
27673 else
27674 as_ln_s='cp -p'
27675 fi
27676 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27677 rmdir conf$$.dir 2>/dev/null
27678
27679
27680 # as_fn_mkdir_p
27681 # -------------
27682 # Create "$as_dir" as a directory, including parents if necessary.
27683 as_fn_mkdir_p ()
27684 {
27685
27686 case $as_dir in #(
27687 -*) as_dir=./$as_dir;;
27688 esac
27689 test -d "$as_dir" || eval $as_mkdir_p || {
27690 as_dirs=
27691 while :; do
27692 case $as_dir in #(
27693 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27694 *) as_qdir=$as_dir;;
27695 esac
27696 as_dirs="'$as_qdir' $as_dirs"
27697 as_dir=`$as_dirname -- "$as_dir" ||
27698 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27699 X"$as_dir" : 'X\(//\)[^/]' \| \
27700 X"$as_dir" : 'X\(//\)$' \| \
27701 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27702 $as_echo X"$as_dir" |
27703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27704 s//\1/
27705 q
27706 }
27707 /^X\(\/\/\)[^/].*/{
27708 s//\1/
27709 q
27710 }
27711 /^X\(\/\/\)$/{
27712 s//\1/
27713 q
27714 }
27715 /^X\(\/\).*/{
27716 s//\1/
27717 q
27718 }
27719 s/.*/./; q'`
27720 test -d "$as_dir" && break
27721 done
27722 test -z "$as_dirs" || eval "mkdir $as_dirs"
27723 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27724
27725
27726 } # as_fn_mkdir_p
27727 if mkdir -p . 2>/dev/null; then
27728 as_mkdir_p='mkdir -p "$as_dir"'
27729 else
27730 test -d ./-p && rmdir ./-p
27731 as_mkdir_p=false
27732 fi
27733
27734 if test -x / >/dev/null 2>&1; then
27735 as_test_x='test -x'
27736 else
27737 if ls -dL / >/dev/null 2>&1; then
27738 as_ls_L_option=L
27739 else
27740 as_ls_L_option=
27741 fi
27742 as_test_x='
27743 eval sh -c '\''
27744 if test -d "$1"; then
27745 test -d "$1/.";
27746 else
27747 case $1 in #(
27748 -*)set "./$1";;
27749 esac;
27750 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27751 ???[sx]*):;;*)false;;esac;fi
27752 '\'' sh
27753 '
27754 fi
27755 as_executable_p=$as_test_x
27756
27757 # Sed expression to map a string onto a valid CPP name.
27758 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27759
27760 # Sed expression to map a string onto a valid variable name.
27761 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27762
27763
27764 exec 6>&1
27765 ## ----------------------------------- ##
27766 ## Main body of $CONFIG_STATUS script. ##
27767 ## ----------------------------------- ##
27768 _ASEOF
27769 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27770
27771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27772 # Save the log message, to keep $0 and so on meaningful, and to
27773 # report actual input values of CONFIG_FILES etc. instead of their
27774 # values after options handling.
27775 ac_log="
27776 This file was extended by $as_me, which was
27777 generated by GNU Autoconf 2.64. Invocation command line was
27778
27779 CONFIG_FILES = $CONFIG_FILES
27780 CONFIG_HEADERS = $CONFIG_HEADERS
27781 CONFIG_LINKS = $CONFIG_LINKS
27782 CONFIG_COMMANDS = $CONFIG_COMMANDS
27783 $ $0 $@
27784
27785 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27786 "
27787
27788 _ACEOF
27789
27790 case $ac_config_files in *"
27791 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27792 esac
27793
27794 case $ac_config_headers in *"
27795 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27796 esac
27797
27798
27799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27800 # Files that config.status was made for.
27801 config_files="$ac_config_files"
27802 config_headers="$ac_config_headers"
27803 config_commands="$ac_config_commands"
27804
27805 _ACEOF
27806
27807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27808 ac_cs_usage="\
27809 \`$as_me' instantiates files and other configuration actions
27810 from templates according to the current configuration. Unless the files
27811 and actions are specified as TAGs, all are instantiated by default.
27812
27813 Usage: $0 [OPTION]... [TAG]...
27814
27815 -h, --help print this help, then exit
27816 -V, --version print version number and configuration settings, then exit
27817 -q, --quiet, --silent
27818 do not print progress messages
27819 -d, --debug don't remove temporary files
27820 --recheck update $as_me by reconfiguring in the same conditions
27821 --file=FILE[:TEMPLATE]
27822 instantiate the configuration file FILE
27823 --header=FILE[:TEMPLATE]
27824 instantiate the configuration header FILE
27825
27826 Configuration files:
27827 $config_files
27828
27829 Configuration headers:
27830 $config_headers
27831
27832 Configuration commands:
27833 $config_commands
27834
27835 Report bugs to the package provider."
27836
27837 _ACEOF
27838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27839 ac_cs_version="\\
27840 config.status
27841 configured by $0, generated by GNU Autoconf 2.64,
27842 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27843
27844 Copyright (C) 2009 Free Software Foundation, Inc.
27845 This config.status script is free software; the Free Software Foundation
27846 gives unlimited permission to copy, distribute and modify it."
27847
27848 ac_pwd='$ac_pwd'
27849 srcdir='$srcdir'
27850 AWK='$AWK'
27851 test -n "\$AWK" || AWK=awk
27852 _ACEOF
27853
27854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27855 # The default lists apply if the user does not specify any file.
27856 ac_need_defaults=:
27857 while test $# != 0
27858 do
27859 case $1 in
27860 --*=*)
27861 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27862 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27863 ac_shift=:
27864 ;;
27865 *)
27866 ac_option=$1
27867 ac_optarg=$2
27868 ac_shift=shift
27869 ;;
27870 esac
27871
27872 case $ac_option in
27873 # Handling of the options.
27874 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27875 ac_cs_recheck=: ;;
27876 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27877 $as_echo "$ac_cs_version"; exit ;;
27878 --debug | --debu | --deb | --de | --d | -d )
27879 debug=: ;;
27880 --file | --fil | --fi | --f )
27881 $ac_shift
27882 case $ac_optarg in
27883 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27884 esac
27885 as_fn_append CONFIG_FILES " '$ac_optarg'"
27886 ac_need_defaults=false;;
27887 --header | --heade | --head | --hea )
27888 $ac_shift
27889 case $ac_optarg in
27890 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27891 esac
27892 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27893 ac_need_defaults=false;;
27894 --he | --h)
27895 # Conflict between --help and --header
27896 as_fn_error "ambiguous option: \`$1'
27897 Try \`$0 --help' for more information.";;
27898 --help | --hel | -h )
27899 $as_echo "$ac_cs_usage"; exit ;;
27900 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27901 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27902 ac_cs_silent=: ;;
27903
27904 # This is an error.
27905 -*) as_fn_error "unrecognized option: \`$1'
27906 Try \`$0 --help' for more information." ;;
27907
27908 *) as_fn_append ac_config_targets " $1"
27909 ac_need_defaults=false ;;
27910
27911 esac
27912 shift
27913 done
27914
27915 ac_configure_extra_args=
27916
27917 if $ac_cs_silent; then
27918 exec 6>/dev/null
27919 ac_configure_extra_args="$ac_configure_extra_args --silent"
27920 fi
27921
27922 _ACEOF
27923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27924 if \$ac_cs_recheck; then
27925 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27926 shift
27927 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27928 CONFIG_SHELL='$SHELL'
27929 export CONFIG_SHELL
27930 exec "\$@"
27931 fi
27932
27933 _ACEOF
27934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27935 exec 5>>config.log
27936 {
27937 echo
27938 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27939 ## Running $as_me. ##
27940 _ASBOX
27941 $as_echo "$ac_log"
27942 } >&5
27943
27944 _ACEOF
27945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27946 #
27947 # INIT-COMMANDS
27948 #
27949 subdirs='$subdirs'
27950
27951 _ACEOF
27952
27953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27954
27955 # Handling of arguments.
27956 for ac_config_target in $ac_config_targets
27957 do
27958 case $ac_config_target in
27959 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
27960 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
27961 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27962 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
27963 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
27964 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27965
27966 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27967 esac
27968 done
27969
27970
27971 # If the user did not use the arguments to specify the items to instantiate,
27972 # then the envvar interface is used. Set only those that are not.
27973 # We use the long form for the default assignment because of an extremely
27974 # bizarre bug on SunOS 4.1.3.
27975 if $ac_need_defaults; then
27976 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27977 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27978 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27979 fi
27980
27981 # Have a temporary directory for convenience. Make it in the build tree
27982 # simply because there is no reason against having it here, and in addition,
27983 # creating and moving files from /tmp can sometimes cause problems.
27984 # Hook for its removal unless debugging.
27985 # Note that there is a small window in which the directory will not be cleaned:
27986 # after its creation but before its name has been assigned to `$tmp'.
27987 $debug ||
27988 {
27989 tmp=
27990 trap 'exit_status=$?
27991 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27992 ' 0
27993 trap 'as_fn_exit 1' 1 2 13 15
27994 }
27995 # Create a (secure) tmp directory for tmp files.
27996
27997 {
27998 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27999 test -n "$tmp" && test -d "$tmp"
28000 } ||
28001 {
28002 tmp=./conf$$-$RANDOM
28003 (umask 077 && mkdir "$tmp")
28004 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28005
28006 # Set up the scripts for CONFIG_FILES section.
28007 # No need to generate them if there are no CONFIG_FILES.
28008 # This happens for instance with `./config.status config.h'.
28009 if test -n "$CONFIG_FILES"; then
28010
28011 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28012 ac_cs_awk_getline=:
28013 ac_cs_awk_pipe_init=
28014 ac_cs_awk_read_file='
28015 while ((getline aline < (F[key])) > 0)
28016 print(aline)
28017 close(F[key])'
28018 ac_cs_awk_pipe_fini=
28019 else
28020 ac_cs_awk_getline=false
28021 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28022 ac_cs_awk_read_file='
28023 print "|#_!!_#|"
28024 print "cat " F[key] " &&"
28025 '$ac_cs_awk_pipe_init
28026 # The final `:' finishes the AND list.
28027 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28028 fi
28029 ac_cr=`echo X | tr X '\015'`
28030 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28031 # But we know of no other shell where ac_cr would be empty at this
28032 # point, so we can use a bashism as a fallback.
28033 if test "x$ac_cr" = x; then
28034 eval ac_cr=\$\'\\r\'
28035 fi
28036 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28037 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28038 ac_cs_awk_cr='\r'
28039 else
28040 ac_cs_awk_cr=$ac_cr
28041 fi
28042
28043 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28044 _ACEOF
28045
28046 # Create commands to substitute file output variables.
28047 {
28048 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28049 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28050 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28051 echo "_ACAWK" &&
28052 echo "_ACEOF"
28053 } >conf$$files.sh &&
28054 . ./conf$$files.sh ||
28055 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28056 rm -f conf$$files.sh
28057
28058 {
28059 echo "cat >conf$$subs.awk <<_ACEOF" &&
28060 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28061 echo "_ACEOF"
28062 } >conf$$subs.sh ||
28063 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28064 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28065 ac_delim='%!_!# '
28066 for ac_last_try in false false false false false :; do
28067 . ./conf$$subs.sh ||
28068 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28069
28070 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28071 if test $ac_delim_n = $ac_delim_num; then
28072 break
28073 elif $ac_last_try; then
28074 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28075 else
28076 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28077 fi
28078 done
28079 rm -f conf$$subs.sh
28080
28081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28082 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28083 _ACEOF
28084 sed -n '
28085 h
28086 s/^/S["/; s/!.*/"]=/
28087 p
28088 g
28089 s/^[^!]*!//
28090 :repl
28091 t repl
28092 s/'"$ac_delim"'$//
28093 t delim
28094 :nl
28095 h
28096 s/\(.\{148\}\).*/\1/
28097 t more1
28098 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28099 p
28100 n
28101 b repl
28102 :more1
28103 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28104 p
28105 g
28106 s/.\{148\}//
28107 t nl
28108 :delim
28109 h
28110 s/\(.\{148\}\).*/\1/
28111 t more2
28112 s/["\\]/\\&/g; s/^/"/; s/$/"/
28113 p
28114 b
28115 :more2
28116 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28117 p
28118 g
28119 s/.\{148\}//
28120 t delim
28121 ' <conf$$subs.awk | sed '
28122 /^[^""]/{
28123 N
28124 s/\n//
28125 }
28126 ' >>$CONFIG_STATUS || ac_write_fail=1
28127 rm -f conf$$subs.awk
28128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28129 _ACAWK
28130 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28131 for (key in S) S_is_set[key] = 1
28132 FS = "\a"
28133 \$ac_cs_awk_pipe_init
28134 }
28135 {
28136 line = $ 0
28137 nfields = split(line, field, "@")
28138 substed = 0
28139 len = length(field[1])
28140 for (i = 2; i < nfields; i++) {
28141 key = field[i]
28142 keylen = length(key)
28143 if (S_is_set[key]) {
28144 value = S[key]
28145 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28146 len += length(value) + length(field[++i])
28147 substed = 1
28148 } else
28149 len += 1 + keylen
28150 }
28151 if (nfields == 3 && !substed) {
28152 key = field[2]
28153 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28154 \$ac_cs_awk_read_file
28155 next
28156 }
28157 }
28158 print line
28159 }
28160 \$ac_cs_awk_pipe_fini
28161 _ACAWK
28162 _ACEOF
28163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28164 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28165 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28166 else
28167 cat
28168 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28169 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28170 _ACEOF
28171
28172 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28173 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28174 # trailing colons and then remove the whole line if VPATH becomes empty
28175 # (actually we leave an empty line to preserve line numbers).
28176 if test "x$srcdir" = x.; then
28177 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28178 s/:*\$(srcdir):*/:/
28179 s/:*\${srcdir}:*/:/
28180 s/:*@srcdir@:*/:/
28181 s/^\([^=]*=[ ]*\):*/\1/
28182 s/:*$//
28183 s/^[^=]*=[ ]*$//
28184 }'
28185 fi
28186
28187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28188 fi # test -n "$CONFIG_FILES"
28189
28190 # Set up the scripts for CONFIG_HEADERS section.
28191 # No need to generate them if there are no CONFIG_HEADERS.
28192 # This happens for instance with `./config.status Makefile'.
28193 if test -n "$CONFIG_HEADERS"; then
28194 cat >"$tmp/defines.awk" <<\_ACAWK ||
28195 BEGIN {
28196 _ACEOF
28197
28198 # Transform confdefs.h into an awk script `defines.awk', embedded as
28199 # here-document in config.status, that substitutes the proper values into
28200 # config.h.in to produce config.h.
28201
28202 # Create a delimiter string that does not exist in confdefs.h, to ease
28203 # handling of long lines.
28204 ac_delim='%!_!# '
28205 for ac_last_try in false false :; do
28206 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28207 if test -z "$ac_t"; then
28208 break
28209 elif $ac_last_try; then
28210 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28211 else
28212 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28213 fi
28214 done
28215
28216 # For the awk script, D is an array of macro values keyed by name,
28217 # likewise P contains macro parameters if any. Preserve backslash
28218 # newline sequences.
28219
28220 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28221 sed -n '
28222 s/.\{148\}/&'"$ac_delim"'/g
28223 t rset
28224 :rset
28225 s/^[ ]*#[ ]*define[ ][ ]*/ /
28226 t def
28227 d
28228 :def
28229 s/\\$//
28230 t bsnl
28231 s/["\\]/\\&/g
28232 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28233 D["\1"]=" \3"/p
28234 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28235 d
28236 :bsnl
28237 s/["\\]/\\&/g
28238 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28239 D["\1"]=" \3\\\\\\n"\\/p
28240 t cont
28241 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28242 t cont
28243 d
28244 :cont
28245 n
28246 s/.\{148\}/&'"$ac_delim"'/g
28247 t clear
28248 :clear
28249 s/\\$//
28250 t bsnlc
28251 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28252 d
28253 :bsnlc
28254 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28255 b cont
28256 ' <confdefs.h | sed '
28257 s/'"$ac_delim"'/"\\\
28258 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28259
28260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28261 for (key in D) D_is_set[key] = 1
28262 FS = "\a"
28263 }
28264 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28265 line = \$ 0
28266 split(line, arg, " ")
28267 if (arg[1] == "#") {
28268 defundef = arg[2]
28269 mac1 = arg[3]
28270 } else {
28271 defundef = substr(arg[1], 2)
28272 mac1 = arg[2]
28273 }
28274 split(mac1, mac2, "(") #)
28275 macro = mac2[1]
28276 prefix = substr(line, 1, index(line, defundef) - 1)
28277 if (D_is_set[macro]) {
28278 # Preserve the white space surrounding the "#".
28279 print prefix "define", macro P[macro] D[macro]
28280 next
28281 } else {
28282 # Replace #undef with comments. This is necessary, for example,
28283 # in the case of _POSIX_SOURCE, which is predefined and required
28284 # on some systems where configure will not decide to define it.
28285 if (defundef == "undef") {
28286 print "/*", prefix defundef, macro, "*/"
28287 next
28288 }
28289 }
28290 }
28291 { print }
28292 _ACAWK
28293 _ACEOF
28294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28295 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28296 fi # test -n "$CONFIG_HEADERS"
28297
28298
28299 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28300 shift
28301 for ac_tag
28302 do
28303 case $ac_tag in
28304 :[FHLC]) ac_mode=$ac_tag; continue;;
28305 esac
28306 case $ac_mode$ac_tag in
28307 :[FHL]*:*);;
28308 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28309 :[FH]-) ac_tag=-:-;;
28310 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28311 esac
28312 ac_save_IFS=$IFS
28313 IFS=:
28314 set x $ac_tag
28315 IFS=$ac_save_IFS
28316 shift
28317 ac_file=$1
28318 shift
28319
28320 case $ac_mode in
28321 :L) ac_source=$1;;
28322 :[FH])
28323 ac_file_inputs=
28324 for ac_f
28325 do
28326 case $ac_f in
28327 -) ac_f="$tmp/stdin";;
28328 *) # Look for the file first in the build tree, then in the source tree
28329 # (if the path is not absolute). The absolute path cannot be DOS-style,
28330 # because $ac_f cannot contain `:'.
28331 test -f "$ac_f" ||
28332 case $ac_f in
28333 [\\/$]*) false;;
28334 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28335 esac ||
28336 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28337 esac
28338 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28339 as_fn_append ac_file_inputs " '$ac_f'"
28340 done
28341
28342 # Let's still pretend it is `configure' which instantiates (i.e., don't
28343 # use $as_me), people would be surprised to read:
28344 # /* config.h. Generated by config.status. */
28345 configure_input='Generated from '`
28346 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28347 `' by configure.'
28348 if test x"$ac_file" != x-; then
28349 configure_input="$ac_file. $configure_input"
28350 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28351 $as_echo "$as_me: creating $ac_file" >&6;}
28352 fi
28353 # Neutralize special characters interpreted by sed in replacement strings.
28354 case $configure_input in #(
28355 *\&* | *\|* | *\\* )
28356 ac_sed_conf_input=`$as_echo "$configure_input" |
28357 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28358 *) ac_sed_conf_input=$configure_input;;
28359 esac
28360
28361 case $ac_tag in
28362 *:-:* | *:-) cat >"$tmp/stdin" \
28363 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28364 esac
28365 ;;
28366 esac
28367
28368 ac_dir=`$as_dirname -- "$ac_file" ||
28369 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28370 X"$ac_file" : 'X\(//\)[^/]' \| \
28371 X"$ac_file" : 'X\(//\)$' \| \
28372 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28373 $as_echo X"$ac_file" |
28374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28375 s//\1/
28376 q
28377 }
28378 /^X\(\/\/\)[^/].*/{
28379 s//\1/
28380 q
28381 }
28382 /^X\(\/\/\)$/{
28383 s//\1/
28384 q
28385 }
28386 /^X\(\/\).*/{
28387 s//\1/
28388 q
28389 }
28390 s/.*/./; q'`
28391 as_dir="$ac_dir"; as_fn_mkdir_p
28392 ac_builddir=.
28393
28394 case "$ac_dir" in
28395 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28396 *)
28397 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28398 # A ".." for each directory in $ac_dir_suffix.
28399 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28400 case $ac_top_builddir_sub in
28401 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28402 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28403 esac ;;
28404 esac
28405 ac_abs_top_builddir=$ac_pwd
28406 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28407 # for backward compatibility:
28408 ac_top_builddir=$ac_top_build_prefix
28409
28410 case $srcdir in
28411 .) # We are building in place.
28412 ac_srcdir=.
28413 ac_top_srcdir=$ac_top_builddir_sub
28414 ac_abs_top_srcdir=$ac_pwd ;;
28415 [\\/]* | ?:[\\/]* ) # Absolute name.
28416 ac_srcdir=$srcdir$ac_dir_suffix;
28417 ac_top_srcdir=$srcdir
28418 ac_abs_top_srcdir=$srcdir ;;
28419 *) # Relative name.
28420 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28421 ac_top_srcdir=$ac_top_build_prefix$srcdir
28422 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28423 esac
28424 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28425
28426
28427 case $ac_mode in
28428 :F)
28429 #
28430 # CONFIG_FILE
28431 #
28432
28433 _ACEOF
28434
28435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28436 # If the template does not know about datarootdir, expand it.
28437 # FIXME: This hack should be removed a few years after 2.60.
28438 ac_datarootdir_hack=; ac_datarootdir_seen=
28439 ac_sed_dataroot='
28440 /datarootdir/ {
28441 p
28442 q
28443 }
28444 /@datadir@/p
28445 /@docdir@/p
28446 /@infodir@/p
28447 /@localedir@/p
28448 /@mandir@/p'
28449 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28450 *datarootdir*) ac_datarootdir_seen=yes;;
28451 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28453 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28454 _ACEOF
28455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28456 ac_datarootdir_hack='
28457 s&@datadir@&$datadir&g
28458 s&@docdir@&$docdir&g
28459 s&@infodir@&$infodir&g
28460 s&@localedir@&$localedir&g
28461 s&@mandir@&$mandir&g
28462 s&\\\${datarootdir}&$datarootdir&g' ;;
28463 esac
28464 _ACEOF
28465
28466 # Neutralize VPATH when `$srcdir' = `.'.
28467 # Shell code in configure.ac might set extrasub.
28468 # FIXME: do we really want to maintain this feature?
28469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28470 ac_sed_extra="$ac_vpsub
28471 $extrasub
28472 _ACEOF
28473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28474 :t
28475 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28476 s|@configure_input@|$ac_sed_conf_input|;t t
28477 s&@top_builddir@&$ac_top_builddir_sub&;t t
28478 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28479 s&@srcdir@&$ac_srcdir&;t t
28480 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28481 s&@top_srcdir@&$ac_top_srcdir&;t t
28482 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28483 s&@builddir@&$ac_builddir&;t t
28484 s&@abs_builddir@&$ac_abs_builddir&;t t
28485 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28486 $ac_datarootdir_hack
28487 "
28488 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28489 if $ac_cs_awk_getline; then
28490 $AWK -f "$tmp/subs.awk"
28491 else
28492 $AWK -f "$tmp/subs.awk" | $SHELL
28493 fi >$tmp/out \
28494 || as_fn_error "could not create $ac_file" "$LINENO" 5
28495
28496 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28497 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28498 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28500 which seems to be undefined. Please make sure it is defined." >&5
28501 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28502 which seems to be undefined. Please make sure it is defined." >&2;}
28503
28504 rm -f "$tmp/stdin"
28505 case $ac_file in
28506 -) cat "$tmp/out" && rm -f "$tmp/out";;
28507 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28508 esac \
28509 || as_fn_error "could not create $ac_file" "$LINENO" 5
28510 ;;
28511 :H)
28512 #
28513 # CONFIG_HEADER
28514 #
28515 if test x"$ac_file" != x-; then
28516 {
28517 $as_echo "/* $configure_input */" \
28518 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28519 } >"$tmp/config.h" \
28520 || as_fn_error "could not create $ac_file" "$LINENO" 5
28521 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28522 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28523 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28524 else
28525 rm -f "$ac_file"
28526 mv "$tmp/config.h" "$ac_file" \
28527 || as_fn_error "could not create $ac_file" "$LINENO" 5
28528 fi
28529 else
28530 $as_echo "/* $configure_input */" \
28531 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28532 || as_fn_error "could not create -" "$LINENO" 5
28533 fi
28534 ;;
28535
28536 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28537 $as_echo "$as_me: executing $ac_file commands" >&6;}
28538 ;;
28539 esac
28540
28541
28542 case $ac_file$ac_mode in
28543 "as":F) chmod +x as ;;
28544 "collect-ld":F) chmod +x collect-ld ;;
28545 "nm":F) chmod +x nm ;;
28546 "default":C)
28547 case ${CONFIG_HEADERS} in
28548 *auto-host.h:config.in*)
28549 echo > cstamp-h ;;
28550 esac
28551 # Make sure all the subdirs exist.
28552 for d in $subdirs doc build common c-family
28553 do
28554 test -d $d || mkdir $d
28555 done
28556 ;;
28557
28558 esac
28559 done # for ac_tag
28560
28561
28562 as_fn_exit 0
28563 _ACEOF
28564 ac_clean_files=$ac_clean_files_save
28565
28566 test $ac_write_fail = 0 ||
28567 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28568
28569
28570 # configure is writing to config.log, and then calls config.status.
28571 # config.status does its own redirection, appending to config.log.
28572 # Unfortunately, on DOS this fails, as config.log is still kept open
28573 # by configure, so config.status won't be able to write to it; its
28574 # output is simply discarded. So we exec the FD to /dev/null,
28575 # effectively closing config.log, so it can be properly (re)opened and
28576 # appended to by config.status. When coming back to configure, we
28577 # need to make the FD available again.
28578 if test "$no_create" != yes; then
28579 ac_cs_success=:
28580 ac_config_status_args=
28581 test "$silent" = yes &&
28582 ac_config_status_args="$ac_config_status_args --quiet"
28583 exec 5>/dev/null
28584 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28585 exec 5>>config.log
28586 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28587 # would make configure fail if this is the last instruction.
28588 $ac_cs_success || as_fn_exit $?
28589 fi
28590 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28592 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28593 fi
28594
28595