]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
This fixes PR gcov-profile/54487 where the gcda files were not locked by the profile...
[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 ISLINC
608 ISLLIBS
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_add_sysroot
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
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_CXXFLAGS
707 BUILD_CFLAGS
708 CXX_FOR_BUILD
709 CC_FOR_BUILD
710 inhibit_libc
711 SYSTEM_HEADER_DIR
712 ALL
713 CROSS
714 CATOBJEXT
715 GENCAT
716 INSTOBJEXT
717 DATADIRNAME
718 CATALOGS
719 POSUB
720 GMSGFMT
721 XGETTEXT
722 INCINTL
723 LIBINTL_DEP
724 LIBINTL
725 USE_NLS
726 extra_opt_files
727 extra_modes_file
728 NATIVE_SYSTEM_HEADER_DIR
729 objext
730 manext
731 LIBICONV_DEP
732 LTLIBICONV
733 LIBICONV
734 LDEXP_LIB
735 EXTRA_GCC_LIBS
736 GNAT_LIBEXC
737 COLLECT2_LIBS
738 CXXCPP
739 AR
740 NM
741 BISON
742 FLEX
743 GENERATED_MANPAGES
744 BUILD_INFO
745 MAKEINFO
746 have_mktemp_command
747 make_compare_target
748 INSTALL_DATA
749 INSTALL_PROGRAM
750 INSTALL
751 ranlib_flags
752 RANLIB
753 LN
754 LN_S
755 AWK
756 SET_MAKE
757 REPORT_BUGS_TEXI
758 REPORT_BUGS_TO
759 PKGVERSION
760 CONFIGURE_SPECS
761 CROSS_SYSTEM_HEADER_DIR
762 TARGET_SYSTEM_ROOT_DEFINE
763 TARGET_SYSTEM_ROOT
764 SYSROOT_CFLAGS_FOR_TARGET
765 enable_shared
766 enable_fixed_point
767 enable_decimal_float
768 enable_multilib
769 coverage_flags
770 valgrind_command
771 valgrind_path_defines
772 valgrind_path
773 TREEBROWSER
774 nocommon_flag
775 noexception_flags
776 warn_cxxflags
777 warn_cflags
778 c_strict_warn
779 strict_warn
780 c_loose_warn
781 loose_warn
782 EGREP
783 GREP
784 CPP
785 PICFLAG_FOR_TARGET
786 OUTPUT_OPTION
787 NO_MINUS_C_MINUS_O
788 GNATMAKE
789 GNATBIND
790 ac_ct_CXX
791 CXXFLAGS
792 CXX
793 OBJEXT
794 EXEEXT
795 ac_ct_CC
796 CPPFLAGS
797 LDFLAGS
798 CFLAGS
799 CC
800 GENINSRC
801 target_subdir
802 host_subdir
803 build_subdir
804 build_libsubdir
805 target_noncanonical
806 target_os
807 target_vendor
808 target_cpu
809 target
810 host_os
811 host_vendor
812 host_cpu
813 host
814 build_os
815 build_vendor
816 build_cpu
817 build
818 target_alias
819 host_alias
820 build_alias
821 LIBS
822 ECHO_T
823 ECHO_N
824 ECHO_C
825 DEFS
826 mandir
827 localedir
828 libdir
829 psdir
830 pdfdir
831 dvidir
832 htmldir
833 infodir
834 docdir
835 oldincludedir
836 includedir
837 localstatedir
838 sharedstatedir
839 sysconfdir
840 datadir
841 datarootdir
842 libexecdir
843 sbindir
844 bindir
845 program_transform_name
846 prefix
847 exec_prefix
848 PACKAGE_URL
849 PACKAGE_BUGREPORT
850 PACKAGE_STRING
851 PACKAGE_VERSION
852 PACKAGE_TARNAME
853 PACKAGE_NAME
854 PATH_SEPARATOR
855 SHELL'
856 ac_subst_files='option_includes
857 language_hooks'
858 ac_user_opts='
859 enable_option_checking
860 with_build_libsubdir
861 with_local_prefix
862 with_gxx_include_dir
863 with_cpp_install_dir
864 enable_generated_files_in_srcdir
865 with_gnu_ld
866 with_ld
867 with_demangler_in_ld
868 with_gnu_as
869 with_as
870 enable_largefile
871 enable_werror_always
872 enable_checking
873 enable_coverage
874 enable_gather_detailed_mem_stats
875 with_stabs
876 enable_multilib
877 enable___cxa_atexit
878 enable_decimal_float
879 enable_fixed_point
880 enable_threads
881 enable_tls
882 enable_objc_gc
883 with_dwarf2
884 enable_shared
885 with_native_system_header_dir
886 with_build_sysroot
887 with_sysroot
888 with_specs
889 with_pkgversion
890 with_bugurl
891 enable_languages
892 with_multilib_list
893 enable_rpath
894 with_libiconv_prefix
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_initfini_array
908 enable_comdat
909 enable_gnu_unique_object
910 enable_linker_build_id
911 with_long_double_128
912 with_gc
913 with_system_zlib
914 enable_maintainer_mode
915 enable_version_specific_runtime_libs
916 enable_plugin
917 enable_libquadmath_support
918 with_linker_hash_style
919 '
920 ac_precious_vars='build_alias
921 host_alias
922 target_alias
923 CC
924 CFLAGS
925 LDFLAGS
926 LIBS
927 CPPFLAGS
928 CXX
929 CXXFLAGS
930 CCC
931 CPP
932 CXXCPP
933 GMPLIBS
934 GMPINC
935 ISLLIBS
936 ISLINC
937 CLOOGLIBS
938 CLOOGINC'
939
940
941 # Initialize some variables set by options.
942 ac_init_help=
943 ac_init_version=false
944 ac_unrecognized_opts=
945 ac_unrecognized_sep=
946 # The variables have the same names as the options, with
947 # dashes changed to underlines.
948 cache_file=/dev/null
949 exec_prefix=NONE
950 no_create=
951 no_recursion=
952 prefix=NONE
953 program_prefix=NONE
954 program_suffix=NONE
955 program_transform_name=s,x,x,
956 silent=
957 site=
958 srcdir=
959 verbose=
960 x_includes=NONE
961 x_libraries=NONE
962
963 # Installation directory options.
964 # These are left unexpanded so users can "make install exec_prefix=/foo"
965 # and all the variables that are supposed to be based on exec_prefix
966 # by default will actually change.
967 # Use braces instead of parens because sh, perl, etc. also accept them.
968 # (The list follows the same order as the GNU Coding Standards.)
969 bindir='${exec_prefix}/bin'
970 sbindir='${exec_prefix}/sbin'
971 libexecdir='${exec_prefix}/libexec'
972 datarootdir='${prefix}/share'
973 datadir='${datarootdir}'
974 sysconfdir='${prefix}/etc'
975 sharedstatedir='${prefix}/com'
976 localstatedir='${prefix}/var'
977 includedir='${prefix}/include'
978 oldincludedir='/usr/include'
979 docdir='${datarootdir}/doc/${PACKAGE}'
980 infodir='${datarootdir}/info'
981 htmldir='${docdir}'
982 dvidir='${docdir}'
983 pdfdir='${docdir}'
984 psdir='${docdir}'
985 libdir='${exec_prefix}/lib'
986 localedir='${datarootdir}/locale'
987 mandir='${datarootdir}/man'
988
989 ac_prev=
990 ac_dashdash=
991 for ac_option
992 do
993 # If the previous option needs an argument, assign it.
994 if test -n "$ac_prev"; then
995 eval $ac_prev=\$ac_option
996 ac_prev=
997 continue
998 fi
999
1000 case $ac_option in
1001 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1002 *) ac_optarg=yes ;;
1003 esac
1004
1005 # Accept the important Cygnus configure options, so we can diagnose typos.
1006
1007 case $ac_dashdash$ac_option in
1008 --)
1009 ac_dashdash=yes ;;
1010
1011 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1012 ac_prev=bindir ;;
1013 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1014 bindir=$ac_optarg ;;
1015
1016 -build | --build | --buil | --bui | --bu)
1017 ac_prev=build_alias ;;
1018 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1019 build_alias=$ac_optarg ;;
1020
1021 -cache-file | --cache-file | --cache-fil | --cache-fi \
1022 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023 ac_prev=cache_file ;;
1024 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1026 cache_file=$ac_optarg ;;
1027
1028 --config-cache | -C)
1029 cache_file=config.cache ;;
1030
1031 -datadir | --datadir | --datadi | --datad)
1032 ac_prev=datadir ;;
1033 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1034 datadir=$ac_optarg ;;
1035
1036 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037 | --dataroo | --dataro | --datar)
1038 ac_prev=datarootdir ;;
1039 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041 datarootdir=$ac_optarg ;;
1042
1043 -disable-* | --disable-*)
1044 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047 as_fn_error "invalid feature name: $ac_useropt"
1048 ac_useropt_orig=$ac_useropt
1049 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1051 *"
1052 "enable_$ac_useropt"
1053 "*) ;;
1054 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055 ac_unrecognized_sep=', ';;
1056 esac
1057 eval enable_$ac_useropt=no ;;
1058
1059 -docdir | --docdir | --docdi | --doc | --do)
1060 ac_prev=docdir ;;
1061 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062 docdir=$ac_optarg ;;
1063
1064 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065 ac_prev=dvidir ;;
1066 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067 dvidir=$ac_optarg ;;
1068
1069 -enable-* | --enable-*)
1070 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073 as_fn_error "invalid feature name: $ac_useropt"
1074 ac_useropt_orig=$ac_useropt
1075 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1077 *"
1078 "enable_$ac_useropt"
1079 "*) ;;
1080 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1081 ac_unrecognized_sep=', ';;
1082 esac
1083 eval enable_$ac_useropt=\$ac_optarg ;;
1084
1085 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1086 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1087 | --exec | --exe | --ex)
1088 ac_prev=exec_prefix ;;
1089 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1090 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1091 | --exec=* | --exe=* | --ex=*)
1092 exec_prefix=$ac_optarg ;;
1093
1094 -gas | --gas | --ga | --g)
1095 # Obsolete; use --with-gas.
1096 with_gas=yes ;;
1097
1098 -help | --help | --hel | --he | -h)
1099 ac_init_help=long ;;
1100 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1101 ac_init_help=recursive ;;
1102 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1103 ac_init_help=short ;;
1104
1105 -host | --host | --hos | --ho)
1106 ac_prev=host_alias ;;
1107 -host=* | --host=* | --hos=* | --ho=*)
1108 host_alias=$ac_optarg ;;
1109
1110 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1111 ac_prev=htmldir ;;
1112 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1113 | --ht=*)
1114 htmldir=$ac_optarg ;;
1115
1116 -includedir | --includedir | --includedi | --included | --include \
1117 | --includ | --inclu | --incl | --inc)
1118 ac_prev=includedir ;;
1119 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1120 | --includ=* | --inclu=* | --incl=* | --inc=*)
1121 includedir=$ac_optarg ;;
1122
1123 -infodir | --infodir | --infodi | --infod | --info | --inf)
1124 ac_prev=infodir ;;
1125 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1126 infodir=$ac_optarg ;;
1127
1128 -libdir | --libdir | --libdi | --libd)
1129 ac_prev=libdir ;;
1130 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1131 libdir=$ac_optarg ;;
1132
1133 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1134 | --libexe | --libex | --libe)
1135 ac_prev=libexecdir ;;
1136 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1137 | --libexe=* | --libex=* | --libe=*)
1138 libexecdir=$ac_optarg ;;
1139
1140 -localedir | --localedir | --localedi | --localed | --locale)
1141 ac_prev=localedir ;;
1142 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1143 localedir=$ac_optarg ;;
1144
1145 -localstatedir | --localstatedir | --localstatedi | --localstated \
1146 | --localstate | --localstat | --localsta | --localst | --locals)
1147 ac_prev=localstatedir ;;
1148 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1149 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1150 localstatedir=$ac_optarg ;;
1151
1152 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1153 ac_prev=mandir ;;
1154 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1155 mandir=$ac_optarg ;;
1156
1157 -nfp | --nfp | --nf)
1158 # Obsolete; use --without-fp.
1159 with_fp=no ;;
1160
1161 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1162 | --no-cr | --no-c | -n)
1163 no_create=yes ;;
1164
1165 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1166 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1167 no_recursion=yes ;;
1168
1169 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1170 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1171 | --oldin | --oldi | --old | --ol | --o)
1172 ac_prev=oldincludedir ;;
1173 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1174 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1175 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1176 oldincludedir=$ac_optarg ;;
1177
1178 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1179 ac_prev=prefix ;;
1180 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1181 prefix=$ac_optarg ;;
1182
1183 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1184 | --program-pre | --program-pr | --program-p)
1185 ac_prev=program_prefix ;;
1186 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1187 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1188 program_prefix=$ac_optarg ;;
1189
1190 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1191 | --program-suf | --program-su | --program-s)
1192 ac_prev=program_suffix ;;
1193 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1194 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1195 program_suffix=$ac_optarg ;;
1196
1197 -program-transform-name | --program-transform-name \
1198 | --program-transform-nam | --program-transform-na \
1199 | --program-transform-n | --program-transform- \
1200 | --program-transform | --program-transfor \
1201 | --program-transfo | --program-transf \
1202 | --program-trans | --program-tran \
1203 | --progr-tra | --program-tr | --program-t)
1204 ac_prev=program_transform_name ;;
1205 -program-transform-name=* | --program-transform-name=* \
1206 | --program-transform-nam=* | --program-transform-na=* \
1207 | --program-transform-n=* | --program-transform-=* \
1208 | --program-transform=* | --program-transfor=* \
1209 | --program-transfo=* | --program-transf=* \
1210 | --program-trans=* | --program-tran=* \
1211 | --progr-tra=* | --program-tr=* | --program-t=*)
1212 program_transform_name=$ac_optarg ;;
1213
1214 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1215 ac_prev=pdfdir ;;
1216 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1217 pdfdir=$ac_optarg ;;
1218
1219 -psdir | --psdir | --psdi | --psd | --ps)
1220 ac_prev=psdir ;;
1221 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1222 psdir=$ac_optarg ;;
1223
1224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225 | -silent | --silent | --silen | --sile | --sil)
1226 silent=yes ;;
1227
1228 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1229 ac_prev=sbindir ;;
1230 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1231 | --sbi=* | --sb=*)
1232 sbindir=$ac_optarg ;;
1233
1234 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1235 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1236 | --sharedst | --shareds | --shared | --share | --shar \
1237 | --sha | --sh)
1238 ac_prev=sharedstatedir ;;
1239 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1240 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1241 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1242 | --sha=* | --sh=*)
1243 sharedstatedir=$ac_optarg ;;
1244
1245 -site | --site | --sit)
1246 ac_prev=site ;;
1247 -site=* | --site=* | --sit=*)
1248 site=$ac_optarg ;;
1249
1250 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1251 ac_prev=srcdir ;;
1252 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1253 srcdir=$ac_optarg ;;
1254
1255 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1256 | --syscon | --sysco | --sysc | --sys | --sy)
1257 ac_prev=sysconfdir ;;
1258 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1259 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1260 sysconfdir=$ac_optarg ;;
1261
1262 -target | --target | --targe | --targ | --tar | --ta | --t)
1263 ac_prev=target_alias ;;
1264 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1265 target_alias=$ac_optarg ;;
1266
1267 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1268 verbose=yes ;;
1269
1270 -version | --version | --versio | --versi | --vers | -V)
1271 ac_init_version=: ;;
1272
1273 -with-* | --with-*)
1274 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277 as_fn_error "invalid package name: $ac_useropt"
1278 ac_useropt_orig=$ac_useropt
1279 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280 case $ac_user_opts in
1281 *"
1282 "with_$ac_useropt"
1283 "*) ;;
1284 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1285 ac_unrecognized_sep=', ';;
1286 esac
1287 eval with_$ac_useropt=\$ac_optarg ;;
1288
1289 -without-* | --without-*)
1290 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293 as_fn_error "invalid package name: $ac_useropt"
1294 ac_useropt_orig=$ac_useropt
1295 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1297 *"
1298 "with_$ac_useropt"
1299 "*) ;;
1300 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1301 ac_unrecognized_sep=', ';;
1302 esac
1303 eval with_$ac_useropt=no ;;
1304
1305 --x)
1306 # Obsolete; use --with-x.
1307 with_x=yes ;;
1308
1309 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1310 | --x-incl | --x-inc | --x-in | --x-i)
1311 ac_prev=x_includes ;;
1312 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1313 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1314 x_includes=$ac_optarg ;;
1315
1316 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1317 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1318 ac_prev=x_libraries ;;
1319 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1320 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1321 x_libraries=$ac_optarg ;;
1322
1323 -*) as_fn_error "unrecognized option: \`$ac_option'
1324 Try \`$0 --help' for more information."
1325 ;;
1326
1327 *=*)
1328 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1329 # Reject names that are not valid shell variable names.
1330 case $ac_envvar in #(
1331 '' | [0-9]* | *[!_$as_cr_alnum]* )
1332 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1333 esac
1334 eval $ac_envvar=\$ac_optarg
1335 export $ac_envvar ;;
1336
1337 *)
1338 # FIXME: should be removed in autoconf 3.0.
1339 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1341 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1343 ;;
1344
1345 esac
1346 done
1347
1348 if test -n "$ac_prev"; then
1349 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1350 as_fn_error "missing argument to $ac_option"
1351 fi
1352
1353 if test -n "$ac_unrecognized_opts"; then
1354 case $enable_option_checking in
1355 no) ;;
1356 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1357 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1358 esac
1359 fi
1360
1361 # Check all directory arguments for consistency.
1362 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1363 datadir sysconfdir sharedstatedir localstatedir includedir \
1364 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1365 libdir localedir mandir
1366 do
1367 eval ac_val=\$$ac_var
1368 # Remove trailing slashes.
1369 case $ac_val in
1370 */ )
1371 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1372 eval $ac_var=\$ac_val;;
1373 esac
1374 # Be sure to have absolute directory names.
1375 case $ac_val in
1376 [\\/$]* | ?:[\\/]* ) continue;;
1377 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1378 esac
1379 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1380 done
1381
1382 # There might be people who depend on the old broken behavior: `$host'
1383 # used to hold the argument of --host etc.
1384 # FIXME: To remove some day.
1385 build=$build_alias
1386 host=$host_alias
1387 target=$target_alias
1388
1389 # FIXME: To remove some day.
1390 if test "x$host_alias" != x; then
1391 if test "x$build_alias" = x; then
1392 cross_compiling=maybe
1393 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1394 If a cross compiler is detected then cross compile mode will be used." >&2
1395 elif test "x$build_alias" != "x$host_alias"; then
1396 cross_compiling=yes
1397 fi
1398 fi
1399
1400 ac_tool_prefix=
1401 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1402
1403 test "$silent" = yes && exec 6>/dev/null
1404
1405
1406 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1407 ac_ls_di=`ls -di .` &&
1408 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1409 as_fn_error "working directory cannot be determined"
1410 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1411 as_fn_error "pwd does not report name of working directory"
1412
1413
1414 # Find the source files, if location was not specified.
1415 if test -z "$srcdir"; then
1416 ac_srcdir_defaulted=yes
1417 # Try the directory containing this script, then the parent directory.
1418 ac_confdir=`$as_dirname -- "$as_myself" ||
1419 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420 X"$as_myself" : 'X\(//\)[^/]' \| \
1421 X"$as_myself" : 'X\(//\)$' \| \
1422 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1423 $as_echo X"$as_myself" |
1424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1425 s//\1/
1426 q
1427 }
1428 /^X\(\/\/\)[^/].*/{
1429 s//\1/
1430 q
1431 }
1432 /^X\(\/\/\)$/{
1433 s//\1/
1434 q
1435 }
1436 /^X\(\/\).*/{
1437 s//\1/
1438 q
1439 }
1440 s/.*/./; q'`
1441 srcdir=$ac_confdir
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1443 srcdir=..
1444 fi
1445 else
1446 ac_srcdir_defaulted=no
1447 fi
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1450 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1451 fi
1452 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1453 ac_abs_confdir=`(
1454 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1455 pwd)`
1456 # When building in place, set srcdir=.
1457 if test "$ac_abs_confdir" = "$ac_pwd"; then
1458 srcdir=.
1459 fi
1460 # Remove unnecessary trailing slashes from srcdir.
1461 # Double slashes in file names in object file debugging info
1462 # mess up M-x gdb in Emacs.
1463 case $srcdir in
1464 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465 esac
1466 for ac_var in $ac_precious_vars; do
1467 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1468 eval ac_env_${ac_var}_value=\$${ac_var}
1469 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1470 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1471 done
1472
1473 #
1474 # Report the --help message.
1475 #
1476 if test "$ac_init_help" = "long"; then
1477 # Omit some internal or obsolete options to make the list less imposing.
1478 # This message is too long to be a string in the A/UX 3.1 sh.
1479 cat <<_ACEOF
1480 \`configure' configures this package to adapt to many kinds of systems.
1481
1482 Usage: $0 [OPTION]... [VAR=VALUE]...
1483
1484 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485 VAR=VALUE. See below for descriptions of some of the useful variables.
1486
1487 Defaults for the options are specified in brackets.
1488
1489 Configuration:
1490 -h, --help display this help and exit
1491 --help=short display options specific to this package
1492 --help=recursive display the short help of all the included packages
1493 -V, --version display version information and exit
1494 -q, --quiet, --silent do not print \`checking...' messages
1495 --cache-file=FILE cache test results in FILE [disabled]
1496 -C, --config-cache alias for \`--cache-file=config.cache'
1497 -n, --no-create do not create output files
1498 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1499
1500 Installation directories:
1501 --prefix=PREFIX install architecture-independent files in PREFIX
1502 [$ac_default_prefix]
1503 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1504 [PREFIX]
1505
1506 By default, \`make install' will install all the files in
1507 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1508 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509 for instance \`--prefix=\$HOME'.
1510
1511 For better control, use the options below.
1512
1513 Fine tuning of the installation directories:
1514 --bindir=DIR user executables [EPREFIX/bin]
1515 --sbindir=DIR system admin executables [EPREFIX/sbin]
1516 --libexecdir=DIR program executables [EPREFIX/libexec]
1517 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1518 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1519 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1520 --libdir=DIR object code libraries [EPREFIX/lib]
1521 --includedir=DIR C header files [PREFIX/include]
1522 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1523 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1524 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1525 --infodir=DIR info documentation [DATAROOTDIR/info]
1526 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1527 --mandir=DIR man documentation [DATAROOTDIR/man]
1528 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1529 --htmldir=DIR html documentation [DOCDIR]
1530 --dvidir=DIR dvi documentation [DOCDIR]
1531 --pdfdir=DIR pdf documentation [DOCDIR]
1532 --psdir=DIR ps documentation [DOCDIR]
1533 _ACEOF
1534
1535 cat <<\_ACEOF
1536
1537 Program names:
1538 --program-prefix=PREFIX prepend PREFIX to installed program names
1539 --program-suffix=SUFFIX append SUFFIX to installed program names
1540 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1541
1542 System types:
1543 --build=BUILD configure for building on BUILD [guessed]
1544 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1545 --target=TARGET configure for building compilers for TARGET [HOST]
1546 _ACEOF
1547 fi
1548
1549 if test -n "$ac_init_help"; then
1550
1551 cat <<\_ACEOF
1552
1553 Optional Features:
1554 --disable-option-checking ignore unrecognized --enable/--with options
1555 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1556 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1557 --enable-generated-files-in-srcdir
1558 put copies of generated files in source dir intended
1559 for creating source tarballs for users without
1560 texinfo bison or flex
1561 --disable-largefile omit support for large files
1562 --enable-werror-always enable -Werror despite compiler version
1563 --enable-checking[=LIST]
1564 enable expensive run-time checks. With LIST, enable
1565 only specific categories of checks. Categories are:
1566 yes,no,all,none,release. Flags are:
1567 assert,df,fold,gc,gcac,gimple,misc,
1568 rtlflag,rtl,runtime,tree,valgrind,types
1569 --enable-coverage[=LEVEL]
1570 enable compiler's code coverage collection. Use to
1571 measure compiler performance and locate unused parts
1572 of the compiler. With LEVEL, specify optimization.
1573 Values are opt, noopt, default is noopt
1574 --enable-gather-detailed-mem-stats
1575 enable detailed memory allocation stats gathering
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-sjlj-exceptions
1593 arrange to use setjmp/longjmp exception handling
1594 --enable-secureplt enable -msecure-plt by default for PowerPC
1595 --enable-leading-mingw64-underscores
1596 enable leading underscores on 64 bit mingw targets
1597 --enable-cld enable -mcld by default for 32bit x86
1598 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1599 x86
1600 --disable-win32-registry
1601 disable lookup of installation paths in the Registry
1602 on Windows hosts
1603 --enable-win32-registry enable registry lookup (default)
1604 --enable-win32-registry=KEY
1605 use KEY instead of GCC version as the last portion
1606 of the registry key
1607 --enable-shared[=PKGS] build shared libraries [default=yes]
1608 --enable-static[=PKGS] build static libraries [default=yes]
1609 --enable-fast-install[=PKGS]
1610 optimize for fast installation [default=yes]
1611 --disable-libtool-lock avoid locking (might break parallel builds)
1612 --enable-gnu-indirect-function
1613 enable the use of the @gnu_indirect_function to
1614 glibc systems
1615 --enable-initfini-array use .init_array/.fini_array sections
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 ISLLIBS How to link ISL
1688 ISLINC How to find ISL 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 gcc_gxx_include_dir_add_sysroot=0
3316 if test "${with_sysroot+set}" = set; then
3317 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3318 if test "${gcc_gxx_without_sysroot}"; then
3319 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3320 gcc_gxx_include_dir_add_sysroot=1
3321 fi
3322 fi
3323
3324
3325 # Check whether --with-cpp_install_dir was given.
3326 if test "${with_cpp_install_dir+set}" = set; then :
3327 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3328 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3329 elif test x$withval != xno; then
3330 cpp_install_dir=$withval
3331 fi
3332 fi
3333
3334
3335 # We would like to our source tree to be readonly. However when releases or
3336 # pre-releases are generated, the flex/bison generated files as well as the
3337 # various formats of manuals need to be included along with the rest of the
3338 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3339 # just that.
3340
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3342 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3343 # Check whether --enable-generated-files-in-srcdir was given.
3344 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3345 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3346 else
3347 generated_files_in_srcdir=no
3348 fi
3349
3350
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3352 $as_echo "$generated_files_in_srcdir" >&6; }
3353
3354 if test "$generated_files_in_srcdir" = "yes"; then
3355 GENINSRC=''
3356 else
3357 GENINSRC='#'
3358 fi
3359
3360
3361 # -------------------
3362 # Find default linker
3363 # -------------------
3364
3365 # With GNU ld
3366
3367 # Check whether --with-gnu-ld was given.
3368 if test "${with_gnu_ld+set}" = set; then :
3369 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3370 else
3371 gnu_ld_flag=no
3372 fi
3373
3374
3375 # With pre-defined ld
3376
3377 # Check whether --with-ld was given.
3378 if test "${with_ld+set}" = set; then :
3379 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3380 fi
3381
3382 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3383 if test ! -x "$DEFAULT_LINKER"; then
3384 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3385 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3386 gnu_ld_flag=yes
3387 fi
3388
3389 cat >>confdefs.h <<_ACEOF
3390 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3391 _ACEOF
3392
3393 fi
3394
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3396 $as_echo_n "checking whether a default linker was specified... " >&6; }
3397 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3398 if test x"$gnu_ld_flag" = x"no"; then
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3400 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3401 else
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3403 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3404 fi
3405 else
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3408 fi
3409
3410 # With demangler in GNU ld
3411
3412 # Check whether --with-demangler-in-ld was given.
3413 if test "${with_demangler_in_ld+set}" = set; then :
3414 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3415 else
3416 demangler_in_ld=yes
3417 fi
3418
3419
3420 # ----------------------
3421 # Find default assembler
3422 # ----------------------
3423
3424 # With GNU as
3425
3426 # Check whether --with-gnu-as was given.
3427 if test "${with_gnu_as+set}" = set; then :
3428 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3429 else
3430 gas_flag=no
3431 fi
3432
3433
3434
3435 # Check whether --with-as was given.
3436 if test "${with_as+set}" = set; then :
3437 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3438 fi
3439
3440 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3441 if test ! -x "$DEFAULT_ASSEMBLER"; then
3442 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3443 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3444 gas_flag=yes
3445 fi
3446
3447 cat >>confdefs.h <<_ACEOF
3448 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3449 _ACEOF
3450
3451 fi
3452
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3454 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3455 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3456 if test x"$gas_flag" = x"no"; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3458 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3459 else
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3461 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3462 fi
3463 else
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465 $as_echo "no" >&6; }
3466 fi
3467
3468 # ---------------
3469 # Find C compiler
3470 # ---------------
3471
3472 # If a non-executable a.out is present (e.g. created by GNU as above even if
3473 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3474 # file, even when creating an executable, so an execution test fails.
3475 # Remove possible default executable files to avoid this.
3476 #
3477 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3478 # Autoconf includes it.
3479 rm -f a.out a.exe b.out
3480
3481 # Find the native compiler
3482 ac_ext=c
3483 ac_cpp='$CPP $CPPFLAGS'
3484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3487 if test -n "$ac_tool_prefix"; then
3488 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3489 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3491 $as_echo_n "checking for $ac_word... " >&6; }
3492 if test "${ac_cv_prog_CC+set}" = set; then :
3493 $as_echo_n "(cached) " >&6
3494 else
3495 if test -n "$CC"; then
3496 ac_cv_prog_CC="$CC" # Let the user override the test.
3497 else
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 for as_dir in $PATH
3500 do
3501 IFS=$as_save_IFS
3502 test -z "$as_dir" && as_dir=.
3503 for ac_exec_ext in '' $ac_executable_extensions; do
3504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3505 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3507 break 2
3508 fi
3509 done
3510 done
3511 IFS=$as_save_IFS
3512
3513 fi
3514 fi
3515 CC=$ac_cv_prog_CC
3516 if test -n "$CC"; then
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3518 $as_echo "$CC" >&6; }
3519 else
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521 $as_echo "no" >&6; }
3522 fi
3523
3524
3525 fi
3526 if test -z "$ac_cv_prog_CC"; then
3527 ac_ct_CC=$CC
3528 # Extract the first word of "gcc", so it can be a program name with args.
3529 set dummy gcc; ac_word=$2
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531 $as_echo_n "checking for $ac_word... " >&6; }
3532 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3533 $as_echo_n "(cached) " >&6
3534 else
3535 if test -n "$ac_ct_CC"; then
3536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3537 else
3538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539 for as_dir in $PATH
3540 do
3541 IFS=$as_save_IFS
3542 test -z "$as_dir" && as_dir=.
3543 for ac_exec_ext in '' $ac_executable_extensions; do
3544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3545 ac_cv_prog_ac_ct_CC="gcc"
3546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3547 break 2
3548 fi
3549 done
3550 done
3551 IFS=$as_save_IFS
3552
3553 fi
3554 fi
3555 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3556 if test -n "$ac_ct_CC"; then
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3558 $as_echo "$ac_ct_CC" >&6; }
3559 else
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 $as_echo "no" >&6; }
3562 fi
3563
3564 if test "x$ac_ct_CC" = x; then
3565 CC=""
3566 else
3567 case $cross_compiling:$ac_tool_warned in
3568 yes:)
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3571 ac_tool_warned=yes ;;
3572 esac
3573 CC=$ac_ct_CC
3574 fi
3575 else
3576 CC="$ac_cv_prog_CC"
3577 fi
3578
3579 if test -z "$CC"; then
3580 if test -n "$ac_tool_prefix"; then
3581 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3582 set dummy ${ac_tool_prefix}cc; ac_word=$2
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3584 $as_echo_n "checking for $ac_word... " >&6; }
3585 if test "${ac_cv_prog_CC+set}" = set; then :
3586 $as_echo_n "(cached) " >&6
3587 else
3588 if test -n "$CC"; then
3589 ac_cv_prog_CC="$CC" # Let the user override the test.
3590 else
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 for as_dir in $PATH
3593 do
3594 IFS=$as_save_IFS
3595 test -z "$as_dir" && as_dir=.
3596 for ac_exec_ext in '' $ac_executable_extensions; do
3597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3598 ac_cv_prog_CC="${ac_tool_prefix}cc"
3599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 break 2
3601 fi
3602 done
3603 done
3604 IFS=$as_save_IFS
3605
3606 fi
3607 fi
3608 CC=$ac_cv_prog_CC
3609 if test -n "$CC"; then
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3611 $as_echo "$CC" >&6; }
3612 else
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614 $as_echo "no" >&6; }
3615 fi
3616
3617
3618 fi
3619 fi
3620 if test -z "$CC"; then
3621 # Extract the first word of "cc", so it can be a program name with args.
3622 set dummy cc; ac_word=$2
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3624 $as_echo_n "checking for $ac_word... " >&6; }
3625 if test "${ac_cv_prog_CC+set}" = set; then :
3626 $as_echo_n "(cached) " >&6
3627 else
3628 if test -n "$CC"; then
3629 ac_cv_prog_CC="$CC" # Let the user override the test.
3630 else
3631 ac_prog_rejected=no
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 for as_dir in $PATH
3634 do
3635 IFS=$as_save_IFS
3636 test -z "$as_dir" && as_dir=.
3637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3639 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3640 ac_prog_rejected=yes
3641 continue
3642 fi
3643 ac_cv_prog_CC="cc"
3644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3645 break 2
3646 fi
3647 done
3648 done
3649 IFS=$as_save_IFS
3650
3651 if test $ac_prog_rejected = yes; then
3652 # We found a bogon in the path, so make sure we never use it.
3653 set dummy $ac_cv_prog_CC
3654 shift
3655 if test $# != 0; then
3656 # We chose a different compiler from the bogus one.
3657 # However, it has the same basename, so the bogon will be chosen
3658 # first if we set CC to just the basename; use the full file name.
3659 shift
3660 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3661 fi
3662 fi
3663 fi
3664 fi
3665 CC=$ac_cv_prog_CC
3666 if test -n "$CC"; then
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3668 $as_echo "$CC" >&6; }
3669 else
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3671 $as_echo "no" >&6; }
3672 fi
3673
3674
3675 fi
3676 if test -z "$CC"; then
3677 if test -n "$ac_tool_prefix"; then
3678 for ac_prog in cl.exe
3679 do
3680 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3681 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3683 $as_echo_n "checking for $ac_word... " >&6; }
3684 if test "${ac_cv_prog_CC+set}" = set; then :
3685 $as_echo_n "(cached) " >&6
3686 else
3687 if test -n "$CC"; then
3688 ac_cv_prog_CC="$CC" # Let the user override the test.
3689 else
3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691 for as_dir in $PATH
3692 do
3693 IFS=$as_save_IFS
3694 test -z "$as_dir" && as_dir=.
3695 for ac_exec_ext in '' $ac_executable_extensions; do
3696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3697 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3699 break 2
3700 fi
3701 done
3702 done
3703 IFS=$as_save_IFS
3704
3705 fi
3706 fi
3707 CC=$ac_cv_prog_CC
3708 if test -n "$CC"; then
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3710 $as_echo "$CC" >&6; }
3711 else
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3713 $as_echo "no" >&6; }
3714 fi
3715
3716
3717 test -n "$CC" && break
3718 done
3719 fi
3720 if test -z "$CC"; then
3721 ac_ct_CC=$CC
3722 for ac_prog in cl.exe
3723 do
3724 # Extract the first word of "$ac_prog", so it can be a program name with args.
3725 set dummy $ac_prog; ac_word=$2
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3727 $as_echo_n "checking for $ac_word... " >&6; }
3728 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3729 $as_echo_n "(cached) " >&6
3730 else
3731 if test -n "$ac_ct_CC"; then
3732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3733 else
3734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735 for as_dir in $PATH
3736 do
3737 IFS=$as_save_IFS
3738 test -z "$as_dir" && as_dir=.
3739 for ac_exec_ext in '' $ac_executable_extensions; do
3740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3741 ac_cv_prog_ac_ct_CC="$ac_prog"
3742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3743 break 2
3744 fi
3745 done
3746 done
3747 IFS=$as_save_IFS
3748
3749 fi
3750 fi
3751 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3752 if test -n "$ac_ct_CC"; then
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3754 $as_echo "$ac_ct_CC" >&6; }
3755 else
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757 $as_echo "no" >&6; }
3758 fi
3759
3760
3761 test -n "$ac_ct_CC" && break
3762 done
3763
3764 if test "x$ac_ct_CC" = x; then
3765 CC=""
3766 else
3767 case $cross_compiling:$ac_tool_warned in
3768 yes:)
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3771 ac_tool_warned=yes ;;
3772 esac
3773 CC=$ac_ct_CC
3774 fi
3775 fi
3776
3777 fi
3778
3779
3780 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3782 as_fn_error "no acceptable C compiler found in \$PATH
3783 See \`config.log' for more details." "$LINENO" 5; }
3784
3785 # Provide some information about the compiler.
3786 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3787 set X $ac_compile
3788 ac_compiler=$2
3789 for ac_option in --version -v -V -qversion; do
3790 { { ac_try="$ac_compiler $ac_option >&5"
3791 case "(($ac_try" in
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3794 esac
3795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3796 $as_echo "$ac_try_echo"; } >&5
3797 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3798 ac_status=$?
3799 if test -s conftest.err; then
3800 sed '10a\
3801 ... rest of stderr output deleted ...
3802 10q' conftest.err >conftest.er1
3803 cat conftest.er1 >&5
3804 rm -f conftest.er1 conftest.err
3805 fi
3806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3807 test $ac_status = 0; }
3808 done
3809
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3812
3813 int
3814 main ()
3815 {
3816
3817 ;
3818 return 0;
3819 }
3820 _ACEOF
3821 ac_clean_files_save=$ac_clean_files
3822 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3823 # Try to create an executable without -o first, disregard a.out.
3824 # It will help us diagnose broken compilers, and finding out an intuition
3825 # of exeext.
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3827 $as_echo_n "checking for C compiler default output file name... " >&6; }
3828 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3829
3830 # The possible output files:
3831 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3832
3833 ac_rmfiles=
3834 for ac_file in $ac_files
3835 do
3836 case $ac_file in
3837 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3838 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3839 esac
3840 done
3841 rm -f $ac_rmfiles
3842
3843 if { { ac_try="$ac_link_default"
3844 case "(($ac_try" in
3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846 *) ac_try_echo=$ac_try;;
3847 esac
3848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3849 $as_echo "$ac_try_echo"; } >&5
3850 (eval "$ac_link_default") 2>&5
3851 ac_status=$?
3852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3853 test $ac_status = 0; }; then :
3854 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3855 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3856 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3857 # so that the user can short-circuit this test for compilers unknown to
3858 # Autoconf.
3859 for ac_file in $ac_files ''
3860 do
3861 test -f "$ac_file" || continue
3862 case $ac_file in
3863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3864 ;;
3865 [ab].out )
3866 # We found the default executable, but exeext='' is most
3867 # certainly right.
3868 break;;
3869 *.* )
3870 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3871 then :; else
3872 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3873 fi
3874 # We set ac_cv_exeext here because the later test for it is not
3875 # safe: cross compilers may not add the suffix if given an `-o'
3876 # argument, so we may need to know it at that point already.
3877 # Even if this section looks crufty: it has the advantage of
3878 # actually working.
3879 break;;
3880 * )
3881 break;;
3882 esac
3883 done
3884 test "$ac_cv_exeext" = no && ac_cv_exeext=
3885
3886 else
3887 ac_file=''
3888 fi
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3890 $as_echo "$ac_file" >&6; }
3891 if test -z "$ac_file"; then :
3892 $as_echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.$ac_ext >&5
3894
3895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3897 { as_fn_set_status 77
3898 as_fn_error "C compiler cannot create executables
3899 See \`config.log' for more details." "$LINENO" 5; }; }
3900 fi
3901 ac_exeext=$ac_cv_exeext
3902
3903 # Check that the compiler produces executables we can run. If not, either
3904 # the compiler is broken, or we cross compile.
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3906 $as_echo_n "checking whether the C compiler works... " >&6; }
3907 # If not cross compiling, check that we can run a simple program.
3908 if test "$cross_compiling" != yes; then
3909 if { ac_try='./$ac_file'
3910 { { case "(($ac_try" in
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3913 esac
3914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3915 $as_echo "$ac_try_echo"; } >&5
3916 (eval "$ac_try") 2>&5
3917 ac_status=$?
3918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3919 test $ac_status = 0; }; }; then
3920 cross_compiling=no
3921 else
3922 if test "$cross_compiling" = maybe; then
3923 cross_compiling=yes
3924 else
3925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3927 as_fn_error "cannot run C compiled programs.
3928 If you meant to cross compile, use \`--host'.
3929 See \`config.log' for more details." "$LINENO" 5; }
3930 fi
3931 fi
3932 fi
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3934 $as_echo "yes" >&6; }
3935
3936 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3937 ac_clean_files=$ac_clean_files_save
3938 # Check that the compiler produces executables we can run. If not, either
3939 # the compiler is broken, or we cross compile.
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3941 $as_echo_n "checking whether we are cross compiling... " >&6; }
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3943 $as_echo "$cross_compiling" >&6; }
3944
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3946 $as_echo_n "checking for suffix of executables... " >&6; }
3947 if { { ac_try="$ac_link"
3948 case "(($ac_try" in
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3951 esac
3952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3953 $as_echo "$ac_try_echo"; } >&5
3954 (eval "$ac_link") 2>&5
3955 ac_status=$?
3956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3957 test $ac_status = 0; }; then :
3958 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3959 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3960 # work properly (i.e., refer to `conftest.exe'), while it won't with
3961 # `rm'.
3962 for ac_file in conftest.exe conftest conftest.*; do
3963 test -f "$ac_file" || continue
3964 case $ac_file in
3965 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3966 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3967 break;;
3968 * ) break;;
3969 esac
3970 done
3971 else
3972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3974 as_fn_error "cannot compute suffix of executables: cannot compile and link
3975 See \`config.log' for more details." "$LINENO" 5; }
3976 fi
3977 rm -f conftest$ac_cv_exeext
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3979 $as_echo "$ac_cv_exeext" >&6; }
3980
3981 rm -f conftest.$ac_ext
3982 EXEEXT=$ac_cv_exeext
3983 ac_exeext=$EXEEXT
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3985 $as_echo_n "checking for suffix of object files... " >&6; }
3986 if test "${ac_cv_objext+set}" = set; then :
3987 $as_echo_n "(cached) " >&6
3988 else
3989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990 /* end confdefs.h. */
3991
3992 int
3993 main ()
3994 {
3995
3996 ;
3997 return 0;
3998 }
3999 _ACEOF
4000 rm -f conftest.o conftest.obj
4001 if { { ac_try="$ac_compile"
4002 case "(($ac_try" in
4003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004 *) ac_try_echo=$ac_try;;
4005 esac
4006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4007 $as_echo "$ac_try_echo"; } >&5
4008 (eval "$ac_compile") 2>&5
4009 ac_status=$?
4010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4011 test $ac_status = 0; }; then :
4012 for ac_file in conftest.o conftest.obj conftest.*; do
4013 test -f "$ac_file" || continue;
4014 case $ac_file in
4015 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4016 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4017 break;;
4018 esac
4019 done
4020 else
4021 $as_echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4023
4024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4026 as_fn_error "cannot compute suffix of object files: cannot compile
4027 See \`config.log' for more details." "$LINENO" 5; }
4028 fi
4029 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4030 fi
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4032 $as_echo "$ac_cv_objext" >&6; }
4033 OBJEXT=$ac_cv_objext
4034 ac_objext=$OBJEXT
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4036 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4037 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4038 $as_echo_n "(cached) " >&6
4039 else
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4042
4043 int
4044 main ()
4045 {
4046 #ifndef __GNUC__
4047 choke me
4048 #endif
4049
4050 ;
4051 return 0;
4052 }
4053 _ACEOF
4054 if ac_fn_c_try_compile "$LINENO"; then :
4055 ac_compiler_gnu=yes
4056 else
4057 ac_compiler_gnu=no
4058 fi
4059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4061
4062 fi
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4064 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4065 if test $ac_compiler_gnu = yes; then
4066 GCC=yes
4067 else
4068 GCC=
4069 fi
4070 ac_test_CFLAGS=${CFLAGS+set}
4071 ac_save_CFLAGS=$CFLAGS
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4073 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4074 if test "${ac_cv_prog_cc_g+set}" = set; then :
4075 $as_echo_n "(cached) " >&6
4076 else
4077 ac_save_c_werror_flag=$ac_c_werror_flag
4078 ac_c_werror_flag=yes
4079 ac_cv_prog_cc_g=no
4080 CFLAGS="-g"
4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h. */
4083
4084 int
4085 main ()
4086 {
4087
4088 ;
4089 return 0;
4090 }
4091 _ACEOF
4092 if ac_fn_c_try_compile "$LINENO"; then :
4093 ac_cv_prog_cc_g=yes
4094 else
4095 CFLAGS=""
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4098
4099 int
4100 main ()
4101 {
4102
4103 ;
4104 return 0;
4105 }
4106 _ACEOF
4107 if ac_fn_c_try_compile "$LINENO"; then :
4108
4109 else
4110 ac_c_werror_flag=$ac_save_c_werror_flag
4111 CFLAGS="-g"
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h. */
4114
4115 int
4116 main ()
4117 {
4118
4119 ;
4120 return 0;
4121 }
4122 _ACEOF
4123 if ac_fn_c_try_compile "$LINENO"; then :
4124 ac_cv_prog_cc_g=yes
4125 fi
4126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127 fi
4128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4129 fi
4130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131 ac_c_werror_flag=$ac_save_c_werror_flag
4132 fi
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4134 $as_echo "$ac_cv_prog_cc_g" >&6; }
4135 if test "$ac_test_CFLAGS" = set; then
4136 CFLAGS=$ac_save_CFLAGS
4137 elif test $ac_cv_prog_cc_g = yes; then
4138 if test "$GCC" = yes; then
4139 CFLAGS="-g -O2"
4140 else
4141 CFLAGS="-g"
4142 fi
4143 else
4144 if test "$GCC" = yes; then
4145 CFLAGS="-O2"
4146 else
4147 CFLAGS=
4148 fi
4149 fi
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4151 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4152 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4153 $as_echo_n "(cached) " >&6
4154 else
4155 ac_cv_prog_cc_c89=no
4156 ac_save_CC=$CC
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4159 #include <stdarg.h>
4160 #include <stdio.h>
4161 #include <sys/types.h>
4162 #include <sys/stat.h>
4163 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4164 struct buf { int x; };
4165 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4166 static char *e (p, i)
4167 char **p;
4168 int i;
4169 {
4170 return p[i];
4171 }
4172 static char *f (char * (*g) (char **, int), char **p, ...)
4173 {
4174 char *s;
4175 va_list v;
4176 va_start (v,p);
4177 s = g (p, va_arg (v,int));
4178 va_end (v);
4179 return s;
4180 }
4181
4182 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4183 function prototypes and stuff, but not '\xHH' hex character constants.
4184 These don't provoke an error unfortunately, instead are silently treated
4185 as 'x'. The following induces an error, until -std is added to get
4186 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4187 array size at least. It's necessary to write '\x00'==0 to get something
4188 that's true only with -std. */
4189 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4190
4191 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4192 inside strings and character constants. */
4193 #define FOO(x) 'x'
4194 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4195
4196 int test (int i, double x);
4197 struct s1 {int (*f) (int a);};
4198 struct s2 {int (*f) (double a);};
4199 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4200 int argc;
4201 char **argv;
4202 int
4203 main ()
4204 {
4205 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4206 ;
4207 return 0;
4208 }
4209 _ACEOF
4210 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4211 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4212 do
4213 CC="$ac_save_CC $ac_arg"
4214 if ac_fn_c_try_compile "$LINENO"; then :
4215 ac_cv_prog_cc_c89=$ac_arg
4216 fi
4217 rm -f core conftest.err conftest.$ac_objext
4218 test "x$ac_cv_prog_cc_c89" != "xno" && break
4219 done
4220 rm -f conftest.$ac_ext
4221 CC=$ac_save_CC
4222
4223 fi
4224 # AC_CACHE_VAL
4225 case "x$ac_cv_prog_cc_c89" in
4226 x)
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4228 $as_echo "none needed" >&6; } ;;
4229 xno)
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4231 $as_echo "unsupported" >&6; } ;;
4232 *)
4233 CC="$CC $ac_cv_prog_cc_c89"
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4235 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4236 esac
4237 if test "x$ac_cv_prog_cc_c89" != xno; then :
4238
4239 fi
4240
4241 ac_ext=c
4242 ac_cpp='$CPP $CPPFLAGS'
4243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4246
4247 if test "x$CC" != xcc; then
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4249 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4250 else
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4252 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4253 fi
4254 set dummy $CC; ac_cc=`$as_echo "$2" |
4255 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4256 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4257 $as_echo_n "(cached) " >&6
4258 else
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4261
4262 int
4263 main ()
4264 {
4265
4266 ;
4267 return 0;
4268 }
4269 _ACEOF
4270 # Make sure it works both with $CC and with simple cc.
4271 # We do the test twice because some compilers refuse to overwrite an
4272 # existing .o file with -o, though they will create one.
4273 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4274 rm -f conftest2.*
4275 if { { case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4278 esac
4279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4280 $as_echo "$ac_try_echo"; } >&5
4281 (eval "$ac_try") 2>&5
4282 ac_status=$?
4283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4284 test $ac_status = 0; } &&
4285 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4288 esac
4289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4290 $as_echo "$ac_try_echo"; } >&5
4291 (eval "$ac_try") 2>&5
4292 ac_status=$?
4293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4294 test $ac_status = 0; };
4295 then
4296 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4297 if test "x$CC" != xcc; then
4298 # Test first that cc exists at all.
4299 if { ac_try='cc -c conftest.$ac_ext >&5'
4300 { { case "(($ac_try" in
4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4303 esac
4304 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4305 $as_echo "$ac_try_echo"; } >&5
4306 (eval "$ac_try") 2>&5
4307 ac_status=$?
4308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4309 test $ac_status = 0; }; }; then
4310 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4311 rm -f conftest2.*
4312 if { { case "(($ac_try" in
4313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314 *) ac_try_echo=$ac_try;;
4315 esac
4316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4317 $as_echo "$ac_try_echo"; } >&5
4318 (eval "$ac_try") 2>&5
4319 ac_status=$?
4320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4321 test $ac_status = 0; } &&
4322 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4325 esac
4326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4327 $as_echo "$ac_try_echo"; } >&5
4328 (eval "$ac_try") 2>&5
4329 ac_status=$?
4330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4331 test $ac_status = 0; };
4332 then
4333 # cc works too.
4334 :
4335 else
4336 # cc exists but doesn't like -o.
4337 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4338 fi
4339 fi
4340 fi
4341 else
4342 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4343 fi
4344 rm -f core conftest*
4345
4346 fi
4347 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4349 $as_echo "yes" >&6; }
4350 else
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352 $as_echo "no" >&6; }
4353
4354 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4355
4356 fi
4357
4358 # expand $ac_aux_dir to an absolute path
4359 am_aux_dir=`cd $ac_aux_dir && pwd`
4360
4361 # FIXME: we rely on the cache variable name because
4362 # there is no other way.
4363 set dummy $CC
4364 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4365 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4366 if test "$am_t" != yes; then
4367 # Losing compiler, so override with the script.
4368 # FIXME: It is wrong to rewrite CC.
4369 # But if we don't then we get into trouble of one sort or another.
4370 # A longer-term fix would be to have automake use am__CC in this case,
4371 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4372 CC="$am_aux_dir/compile $CC"
4373 fi
4374
4375
4376 ac_ext=cpp
4377 ac_cpp='$CXXCPP $CPPFLAGS'
4378 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4379 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4380 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4381 if test -z "$CXX"; then
4382 if test -n "$CCC"; then
4383 CXX=$CCC
4384 else
4385 if test -n "$ac_tool_prefix"; then
4386 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4387 do
4388 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4389 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4391 $as_echo_n "checking for $ac_word... " >&6; }
4392 if test "${ac_cv_prog_CXX+set}" = set; then :
4393 $as_echo_n "(cached) " >&6
4394 else
4395 if test -n "$CXX"; then
4396 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4397 else
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 for as_dir in $PATH
4400 do
4401 IFS=$as_save_IFS
4402 test -z "$as_dir" && as_dir=.
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4405 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4407 break 2
4408 fi
4409 done
4410 done
4411 IFS=$as_save_IFS
4412
4413 fi
4414 fi
4415 CXX=$ac_cv_prog_CXX
4416 if test -n "$CXX"; then
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4418 $as_echo "$CXX" >&6; }
4419 else
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4421 $as_echo "no" >&6; }
4422 fi
4423
4424
4425 test -n "$CXX" && break
4426 done
4427 fi
4428 if test -z "$CXX"; then
4429 ac_ct_CXX=$CXX
4430 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4431 do
4432 # Extract the first word of "$ac_prog", so it can be a program name with args.
4433 set dummy $ac_prog; ac_word=$2
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4435 $as_echo_n "checking for $ac_word... " >&6; }
4436 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4437 $as_echo_n "(cached) " >&6
4438 else
4439 if test -n "$ac_ct_CXX"; then
4440 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4441 else
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH
4444 do
4445 IFS=$as_save_IFS
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4449 ac_cv_prog_ac_ct_CXX="$ac_prog"
4450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 break 2
4452 fi
4453 done
4454 done
4455 IFS=$as_save_IFS
4456
4457 fi
4458 fi
4459 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4460 if test -n "$ac_ct_CXX"; then
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4462 $as_echo "$ac_ct_CXX" >&6; }
4463 else
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4465 $as_echo "no" >&6; }
4466 fi
4467
4468
4469 test -n "$ac_ct_CXX" && break
4470 done
4471
4472 if test "x$ac_ct_CXX" = x; then
4473 CXX="g++"
4474 else
4475 case $cross_compiling:$ac_tool_warned in
4476 yes:)
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4479 ac_tool_warned=yes ;;
4480 esac
4481 CXX=$ac_ct_CXX
4482 fi
4483 fi
4484
4485 fi
4486 fi
4487 # Provide some information about the compiler.
4488 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4489 set X $ac_compile
4490 ac_compiler=$2
4491 for ac_option in --version -v -V -qversion; do
4492 { { ac_try="$ac_compiler $ac_option >&5"
4493 case "(($ac_try" in
4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495 *) ac_try_echo=$ac_try;;
4496 esac
4497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4498 $as_echo "$ac_try_echo"; } >&5
4499 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4500 ac_status=$?
4501 if test -s conftest.err; then
4502 sed '10a\
4503 ... rest of stderr output deleted ...
4504 10q' conftest.err >conftest.er1
4505 cat conftest.er1 >&5
4506 rm -f conftest.er1 conftest.err
4507 fi
4508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4509 test $ac_status = 0; }
4510 done
4511
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4513 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4514 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4515 $as_echo_n "(cached) " >&6
4516 else
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4519
4520 int
4521 main ()
4522 {
4523 #ifndef __GNUC__
4524 choke me
4525 #endif
4526
4527 ;
4528 return 0;
4529 }
4530 _ACEOF
4531 if ac_fn_cxx_try_compile "$LINENO"; then :
4532 ac_compiler_gnu=yes
4533 else
4534 ac_compiler_gnu=no
4535 fi
4536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4537 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4538
4539 fi
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4541 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4542 if test $ac_compiler_gnu = yes; then
4543 GXX=yes
4544 else
4545 GXX=
4546 fi
4547 ac_test_CXXFLAGS=${CXXFLAGS+set}
4548 ac_save_CXXFLAGS=$CXXFLAGS
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4550 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4551 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4552 $as_echo_n "(cached) " >&6
4553 else
4554 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4555 ac_cxx_werror_flag=yes
4556 ac_cv_prog_cxx_g=no
4557 CXXFLAGS="-g"
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4560
4561 int
4562 main ()
4563 {
4564
4565 ;
4566 return 0;
4567 }
4568 _ACEOF
4569 if ac_fn_cxx_try_compile "$LINENO"; then :
4570 ac_cv_prog_cxx_g=yes
4571 else
4572 CXXFLAGS=""
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4575
4576 int
4577 main ()
4578 {
4579
4580 ;
4581 return 0;
4582 }
4583 _ACEOF
4584 if ac_fn_cxx_try_compile "$LINENO"; then :
4585
4586 else
4587 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4588 CXXFLAGS="-g"
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4591
4592 int
4593 main ()
4594 {
4595
4596 ;
4597 return 0;
4598 }
4599 _ACEOF
4600 if ac_fn_cxx_try_compile "$LINENO"; then :
4601 ac_cv_prog_cxx_g=yes
4602 fi
4603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4604 fi
4605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606 fi
4607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4609 fi
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4611 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4612 if test "$ac_test_CXXFLAGS" = set; then
4613 CXXFLAGS=$ac_save_CXXFLAGS
4614 elif test $ac_cv_prog_cxx_g = yes; then
4615 if test "$GXX" = yes; then
4616 CXXFLAGS="-g -O2"
4617 else
4618 CXXFLAGS="-g"
4619 fi
4620 else
4621 if test "$GXX" = yes; then
4622 CXXFLAGS="-O2"
4623 else
4624 CXXFLAGS=
4625 fi
4626 fi
4627 ac_ext=c
4628 ac_cpp='$CPP $CPPFLAGS'
4629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4632
4633
4634
4635
4636 if test -n "$ac_tool_prefix"; then
4637 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4638 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640 $as_echo_n "checking for $ac_word... " >&6; }
4641 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4642 $as_echo_n "(cached) " >&6
4643 else
4644 if test -n "$GNATBIND"; then
4645 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4646 else
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH
4649 do
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4654 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 break 2
4657 fi
4658 done
4659 done
4660 IFS=$as_save_IFS
4661
4662 fi
4663 fi
4664 GNATBIND=$ac_cv_prog_GNATBIND
4665 if test -n "$GNATBIND"; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4667 $as_echo "$GNATBIND" >&6; }
4668 else
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670 $as_echo "no" >&6; }
4671 fi
4672
4673
4674 fi
4675 if test -z "$ac_cv_prog_GNATBIND"; then
4676 ac_ct_GNATBIND=$GNATBIND
4677 # Extract the first word of "gnatbind", so it can be a program name with args.
4678 set dummy gnatbind; ac_word=$2
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4680 $as_echo_n "checking for $ac_word... " >&6; }
4681 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4682 $as_echo_n "(cached) " >&6
4683 else
4684 if test -n "$ac_ct_GNATBIND"; then
4685 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4686 else
4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 for as_dir in $PATH
4689 do
4690 IFS=$as_save_IFS
4691 test -z "$as_dir" && as_dir=.
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4694 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4696 break 2
4697 fi
4698 done
4699 done
4700 IFS=$as_save_IFS
4701
4702 fi
4703 fi
4704 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4705 if test -n "$ac_ct_GNATBIND"; then
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4707 $as_echo "$ac_ct_GNATBIND" >&6; }
4708 else
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710 $as_echo "no" >&6; }
4711 fi
4712
4713 if test "x$ac_ct_GNATBIND" = x; then
4714 GNATBIND="no"
4715 else
4716 case $cross_compiling:$ac_tool_warned in
4717 yes:)
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4720 ac_tool_warned=yes ;;
4721 esac
4722 GNATBIND=$ac_ct_GNATBIND
4723 fi
4724 else
4725 GNATBIND="$ac_cv_prog_GNATBIND"
4726 fi
4727
4728 if test -n "$ac_tool_prefix"; then
4729 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4730 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4732 $as_echo_n "checking for $ac_word... " >&6; }
4733 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4734 $as_echo_n "(cached) " >&6
4735 else
4736 if test -n "$GNATMAKE"; then
4737 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4738 else
4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740 for as_dir in $PATH
4741 do
4742 IFS=$as_save_IFS
4743 test -z "$as_dir" && as_dir=.
4744 for ac_exec_ext in '' $ac_executable_extensions; do
4745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4746 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4748 break 2
4749 fi
4750 done
4751 done
4752 IFS=$as_save_IFS
4753
4754 fi
4755 fi
4756 GNATMAKE=$ac_cv_prog_GNATMAKE
4757 if test -n "$GNATMAKE"; then
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4759 $as_echo "$GNATMAKE" >&6; }
4760 else
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4762 $as_echo "no" >&6; }
4763 fi
4764
4765
4766 fi
4767 if test -z "$ac_cv_prog_GNATMAKE"; then
4768 ac_ct_GNATMAKE=$GNATMAKE
4769 # Extract the first word of "gnatmake", so it can be a program name with args.
4770 set dummy gnatmake; ac_word=$2
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4772 $as_echo_n "checking for $ac_word... " >&6; }
4773 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4774 $as_echo_n "(cached) " >&6
4775 else
4776 if test -n "$ac_ct_GNATMAKE"; then
4777 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4778 else
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 for as_dir in $PATH
4781 do
4782 IFS=$as_save_IFS
4783 test -z "$as_dir" && as_dir=.
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4786 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4788 break 2
4789 fi
4790 done
4791 done
4792 IFS=$as_save_IFS
4793
4794 fi
4795 fi
4796 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4797 if test -n "$ac_ct_GNATMAKE"; then
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4799 $as_echo "$ac_ct_GNATMAKE" >&6; }
4800 else
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 $as_echo "no" >&6; }
4803 fi
4804
4805 if test "x$ac_ct_GNATMAKE" = x; then
4806 GNATMAKE="no"
4807 else
4808 case $cross_compiling:$ac_tool_warned in
4809 yes:)
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4812 ac_tool_warned=yes ;;
4813 esac
4814 GNATMAKE=$ac_ct_GNATMAKE
4815 fi
4816 else
4817 GNATMAKE="$ac_cv_prog_GNATMAKE"
4818 fi
4819
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4821 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4822 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4823 $as_echo_n "(cached) " >&6
4824 else
4825 cat >conftest.adb <<EOF
4826 procedure conftest is begin null; end conftest;
4827 EOF
4828 acx_cv_cc_gcc_supports_ada=no
4829 # There is a bug in old released versions of GCC which causes the
4830 # driver to exit successfully when the appropriate language module
4831 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4832 # Therefore we must check for the error message as well as an
4833 # unsuccessful exit.
4834 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4835 # given a .adb file, but produce no object file. So we must check
4836 # if an object file was really produced to guard against this.
4837 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4838 if test x"$errors" = x && test -f conftest.$ac_objext; then
4839 acx_cv_cc_gcc_supports_ada=yes
4840 fi
4841 rm -f conftest.*
4842 fi
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4844 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4845
4846 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4847 have_gnat=yes
4848 else
4849 have_gnat=no
4850 fi
4851
4852
4853 # autoconf is lame and doesn't give us any substitution variable for this.
4854 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4855 NO_MINUS_C_MINUS_O=yes
4856 else
4857 OUTPUT_OPTION='-o $@'
4858 fi
4859
4860
4861
4862 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4863 # optimizations to be activated explicitly by the toplevel.
4864 case "$CC" in
4865 */prev-gcc/xgcc*) ;;
4866 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4867 esac
4868
4869
4870 # Determine PICFLAG for target gnatlib.
4871
4872
4873
4874
4875 case "${target}" in
4876 # PIC is the default on some targets or must not be used.
4877 *-*-darwin*)
4878 # PIC is the default on this platform
4879 # Common symbols not allowed in MH_DYLIB files
4880 PICFLAG_FOR_TARGET=-fno-common
4881 ;;
4882 alpha*-dec-osf5*)
4883 # PIC is the default.
4884 ;;
4885 hppa*64*-*-hpux*)
4886 # PIC is the default for 64-bit PA HP-UX.
4887 ;;
4888 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4889 ;;
4890 i[34567]86-*-interix[3-9]*)
4891 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4892 # Instead, we relocate shared libraries at runtime.
4893 ;;
4894 i[34567]86-*-nto-qnx*)
4895 # QNX uses GNU C++, but need to define -shared option too, otherwise
4896 # it will coredump.
4897 PICFLAG_FOR_TARGET='-fPIC -shared'
4898 ;;
4899 i[34567]86-pc-msdosdjgpp*)
4900 # DJGPP does not support shared libraries at all.
4901 ;;
4902 ia64*-*-hpux*)
4903 # On IA64 HP-UX, PIC is the default but the pic flag
4904 # sets the default TLS model and affects inlining.
4905 PICFLAG_FOR_TARGET=-fPIC
4906 ;;
4907 mips-sgi-irix6*)
4908 # PIC is the default.
4909 ;;
4910 rs6000-ibm-aix* | powerpc-ibm-aix*)
4911 # All AIX code is PIC.
4912 ;;
4913
4914 # Some targets support both -fPIC and -fpic, but prefer the latter.
4915 # FIXME: Why?
4916 i[34567]86-*-* | x86_64-*-*)
4917 PICFLAG_FOR_TARGET=-fpic
4918 ;;
4919 m68k-*-*)
4920 PICFLAG_FOR_TARGET=-fpic
4921 ;;
4922 # FIXME: Override -fPIC default in libgcc only?
4923 sh-*-linux* | sh[2346lbe]*-*-linux*)
4924 PICFLAG_FOR_TARGET=-fpic
4925 ;;
4926 # FIXME: Simplify to sh*-*-netbsd*?
4927 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4928 sh64-*-netbsd* | sh64l*-*-netbsd*)
4929 PICFLAG_FOR_TARGET=-fpic
4930 ;;
4931 # Default to -fPIC unless specified otherwise.
4932 *)
4933 PICFLAG_FOR_TARGET=-fPIC
4934 ;;
4935 esac
4936
4937 # If the user explicitly uses -fpic/-fPIC, keep that.
4938 case "${CFLAGS_FOR_TARGET}" in
4939 *-fpic*)
4940 PICFLAG_FOR_TARGET=-fpic
4941 ;;
4942 *-fPIC*)
4943 PICFLAG_FOR_TARGET=-fPIC
4944 ;;
4945 esac
4946
4947
4948
4949 # -------------------------
4950 # Check C compiler features
4951 # -------------------------
4952
4953
4954 ac_ext=c
4955 ac_cpp='$CPP $CPPFLAGS'
4956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4960 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4961 # On Suns, sometimes $CPP names a directory.
4962 if test -n "$CPP" && test -d "$CPP"; then
4963 CPP=
4964 fi
4965 if test -z "$CPP"; then
4966 if test "${ac_cv_prog_CPP+set}" = set; then :
4967 $as_echo_n "(cached) " >&6
4968 else
4969 # Double quotes because CPP needs to be expanded
4970 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4971 do
4972 ac_preproc_ok=false
4973 for ac_c_preproc_warn_flag in '' yes
4974 do
4975 # Use a header file that comes with gcc, so configuring glibc
4976 # with a fresh cross-compiler works.
4977 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4978 # <limits.h> exists even on freestanding compilers.
4979 # On the NeXT, cc -E runs the code through the compiler's parser,
4980 # not just through cpp. "Syntax error" is here to catch this case.
4981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982 /* end confdefs.h. */
4983 #ifdef __STDC__
4984 # include <limits.h>
4985 #else
4986 # include <assert.h>
4987 #endif
4988 Syntax error
4989 _ACEOF
4990 if ac_fn_c_try_cpp "$LINENO"; then :
4991
4992 else
4993 # Broken: fails on valid input.
4994 continue
4995 fi
4996 rm -f conftest.err conftest.$ac_ext
4997
4998 # OK, works on sane cases. Now check whether nonexistent headers
4999 # can be detected and how.
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5002 #include <ac_nonexistent.h>
5003 _ACEOF
5004 if ac_fn_c_try_cpp "$LINENO"; then :
5005 # Broken: success on invalid input.
5006 continue
5007 else
5008 # Passes both tests.
5009 ac_preproc_ok=:
5010 break
5011 fi
5012 rm -f conftest.err conftest.$ac_ext
5013
5014 done
5015 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5016 rm -f conftest.err conftest.$ac_ext
5017 if $ac_preproc_ok; then :
5018 break
5019 fi
5020
5021 done
5022 ac_cv_prog_CPP=$CPP
5023
5024 fi
5025 CPP=$ac_cv_prog_CPP
5026 else
5027 ac_cv_prog_CPP=$CPP
5028 fi
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5030 $as_echo "$CPP" >&6; }
5031 ac_preproc_ok=false
5032 for ac_c_preproc_warn_flag in '' yes
5033 do
5034 # Use a header file that comes with gcc, so configuring glibc
5035 # with a fresh cross-compiler works.
5036 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5037 # <limits.h> exists even on freestanding compilers.
5038 # On the NeXT, cc -E runs the code through the compiler's parser,
5039 # not just through cpp. "Syntax error" is here to catch this case.
5040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5041 /* end confdefs.h. */
5042 #ifdef __STDC__
5043 # include <limits.h>
5044 #else
5045 # include <assert.h>
5046 #endif
5047 Syntax error
5048 _ACEOF
5049 if ac_fn_c_try_cpp "$LINENO"; then :
5050
5051 else
5052 # Broken: fails on valid input.
5053 continue
5054 fi
5055 rm -f conftest.err conftest.$ac_ext
5056
5057 # OK, works on sane cases. Now check whether nonexistent headers
5058 # can be detected and how.
5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h. */
5061 #include <ac_nonexistent.h>
5062 _ACEOF
5063 if ac_fn_c_try_cpp "$LINENO"; then :
5064 # Broken: success on invalid input.
5065 continue
5066 else
5067 # Passes both tests.
5068 ac_preproc_ok=:
5069 break
5070 fi
5071 rm -f conftest.err conftest.$ac_ext
5072
5073 done
5074 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5075 rm -f conftest.err conftest.$ac_ext
5076 if $ac_preproc_ok; then :
5077
5078 else
5079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5081 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5082 See \`config.log' for more details." "$LINENO" 5; }
5083 fi
5084
5085 ac_ext=c
5086 ac_cpp='$CPP $CPPFLAGS'
5087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5090
5091
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5093 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5094 if test "${ac_cv_path_GREP+set}" = set; then :
5095 $as_echo_n "(cached) " >&6
5096 else
5097 if test -z "$GREP"; then
5098 ac_path_GREP_found=false
5099 # Loop through the user's path and test for each of PROGNAME-LIST
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5102 do
5103 IFS=$as_save_IFS
5104 test -z "$as_dir" && as_dir=.
5105 for ac_prog in grep ggrep; do
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5108 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5109 # Check for GNU ac_path_GREP and select it if it is found.
5110 # Check for GNU $ac_path_GREP
5111 case `"$ac_path_GREP" --version 2>&1` in
5112 *GNU*)
5113 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5114 *)
5115 ac_count=0
5116 $as_echo_n 0123456789 >"conftest.in"
5117 while :
5118 do
5119 cat "conftest.in" "conftest.in" >"conftest.tmp"
5120 mv "conftest.tmp" "conftest.in"
5121 cp "conftest.in" "conftest.nl"
5122 $as_echo 'GREP' >> "conftest.nl"
5123 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5124 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5125 as_fn_arith $ac_count + 1 && ac_count=$as_val
5126 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5127 # Best one so far, save it but keep looking for a better one
5128 ac_cv_path_GREP="$ac_path_GREP"
5129 ac_path_GREP_max=$ac_count
5130 fi
5131 # 10*(2^10) chars as input seems more than enough
5132 test $ac_count -gt 10 && break
5133 done
5134 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5135 esac
5136
5137 $ac_path_GREP_found && break 3
5138 done
5139 done
5140 done
5141 IFS=$as_save_IFS
5142 if test -z "$ac_cv_path_GREP"; then
5143 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5144 fi
5145 else
5146 ac_cv_path_GREP=$GREP
5147 fi
5148
5149 fi
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5151 $as_echo "$ac_cv_path_GREP" >&6; }
5152 GREP="$ac_cv_path_GREP"
5153
5154
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5156 $as_echo_n "checking for egrep... " >&6; }
5157 if test "${ac_cv_path_EGREP+set}" = set; then :
5158 $as_echo_n "(cached) " >&6
5159 else
5160 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5161 then ac_cv_path_EGREP="$GREP -E"
5162 else
5163 if test -z "$EGREP"; then
5164 ac_path_EGREP_found=false
5165 # Loop through the user's path and test for each of PROGNAME-LIST
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5168 do
5169 IFS=$as_save_IFS
5170 test -z "$as_dir" && as_dir=.
5171 for ac_prog in egrep; do
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5174 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5175 # Check for GNU ac_path_EGREP and select it if it is found.
5176 # Check for GNU $ac_path_EGREP
5177 case `"$ac_path_EGREP" --version 2>&1` in
5178 *GNU*)
5179 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5180 *)
5181 ac_count=0
5182 $as_echo_n 0123456789 >"conftest.in"
5183 while :
5184 do
5185 cat "conftest.in" "conftest.in" >"conftest.tmp"
5186 mv "conftest.tmp" "conftest.in"
5187 cp "conftest.in" "conftest.nl"
5188 $as_echo 'EGREP' >> "conftest.nl"
5189 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5190 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5191 as_fn_arith $ac_count + 1 && ac_count=$as_val
5192 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5193 # Best one so far, save it but keep looking for a better one
5194 ac_cv_path_EGREP="$ac_path_EGREP"
5195 ac_path_EGREP_max=$ac_count
5196 fi
5197 # 10*(2^10) chars as input seems more than enough
5198 test $ac_count -gt 10 && break
5199 done
5200 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5201 esac
5202
5203 $ac_path_EGREP_found && break 3
5204 done
5205 done
5206 done
5207 IFS=$as_save_IFS
5208 if test -z "$ac_cv_path_EGREP"; then
5209 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5210 fi
5211 else
5212 ac_cv_path_EGREP=$EGREP
5213 fi
5214
5215 fi
5216 fi
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5218 $as_echo "$ac_cv_path_EGREP" >&6; }
5219 EGREP="$ac_cv_path_EGREP"
5220
5221
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5223 $as_echo_n "checking for ANSI C header files... " >&6; }
5224 if test "${ac_cv_header_stdc+set}" = set; then :
5225 $as_echo_n "(cached) " >&6
5226 else
5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228 /* end confdefs.h. */
5229 #include <stdlib.h>
5230 #include <stdarg.h>
5231 #include <string.h>
5232 #include <float.h>
5233
5234 int
5235 main ()
5236 {
5237
5238 ;
5239 return 0;
5240 }
5241 _ACEOF
5242 if ac_fn_c_try_compile "$LINENO"; then :
5243 ac_cv_header_stdc=yes
5244 else
5245 ac_cv_header_stdc=no
5246 fi
5247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5248
5249 if test $ac_cv_header_stdc = yes; then
5250 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252 /* end confdefs.h. */
5253 #include <string.h>
5254
5255 _ACEOF
5256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5257 $EGREP "memchr" >/dev/null 2>&1; then :
5258
5259 else
5260 ac_cv_header_stdc=no
5261 fi
5262 rm -f conftest*
5263
5264 fi
5265
5266 if test $ac_cv_header_stdc = yes; then
5267 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5270 #include <stdlib.h>
5271
5272 _ACEOF
5273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5274 $EGREP "free" >/dev/null 2>&1; then :
5275
5276 else
5277 ac_cv_header_stdc=no
5278 fi
5279 rm -f conftest*
5280
5281 fi
5282
5283 if test $ac_cv_header_stdc = yes; then
5284 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5285 if test "$cross_compiling" = yes; then :
5286 :
5287 else
5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h. */
5290 #include <ctype.h>
5291 #include <stdlib.h>
5292 #if ((' ' & 0x0FF) == 0x020)
5293 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5294 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5295 #else
5296 # define ISLOWER(c) \
5297 (('a' <= (c) && (c) <= 'i') \
5298 || ('j' <= (c) && (c) <= 'r') \
5299 || ('s' <= (c) && (c) <= 'z'))
5300 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5301 #endif
5302
5303 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5304 int
5305 main ()
5306 {
5307 int i;
5308 for (i = 0; i < 256; i++)
5309 if (XOR (islower (i), ISLOWER (i))
5310 || toupper (i) != TOUPPER (i))
5311 return 2;
5312 return 0;
5313 }
5314 _ACEOF
5315 if ac_fn_c_try_run "$LINENO"; then :
5316
5317 else
5318 ac_cv_header_stdc=no
5319 fi
5320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5321 conftest.$ac_objext conftest.beam conftest.$ac_ext
5322 fi
5323
5324 fi
5325 fi
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5327 $as_echo "$ac_cv_header_stdc" >&6; }
5328 if test $ac_cv_header_stdc = yes; then
5329
5330 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5331
5332 fi
5333
5334 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5335 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5336 inttypes.h stdint.h unistd.h
5337 do :
5338 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5339 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5340 "
5341 eval as_val=\$$as_ac_Header
5342 if test "x$as_val" = x""yes; then :
5343 cat >>confdefs.h <<_ACEOF
5344 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5345 _ACEOF
5346
5347 fi
5348
5349 done
5350
5351
5352
5353 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5354 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5355 MINIX=yes
5356 else
5357 MINIX=
5358 fi
5359
5360
5361 if test "$MINIX" = yes; then
5362
5363 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5364
5365
5366 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5367
5368
5369 $as_echo "#define _MINIX 1" >>confdefs.h
5370
5371 fi
5372
5373
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5375 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5376 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5377 $as_echo_n "(cached) " >&6
5378 else
5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h. */
5381
5382 # define __EXTENSIONS__ 1
5383 $ac_includes_default
5384 int
5385 main ()
5386 {
5387
5388 ;
5389 return 0;
5390 }
5391 _ACEOF
5392 if ac_fn_c_try_compile "$LINENO"; then :
5393 ac_cv_safe_to_define___extensions__=yes
5394 else
5395 ac_cv_safe_to_define___extensions__=no
5396 fi
5397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5398 fi
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5400 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5401 test $ac_cv_safe_to_define___extensions__ = yes &&
5402 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5403
5404 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5405
5406 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5407
5408 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5409
5410 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5411
5412
5413 ac_ext=c
5414 ac_cpp='$CPP $CPPFLAGS'
5415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5419 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5420 # On Suns, sometimes $CPP names a directory.
5421 if test -n "$CPP" && test -d "$CPP"; then
5422 CPP=
5423 fi
5424 if test -z "$CPP"; then
5425 if test "${ac_cv_prog_CPP+set}" = set; then :
5426 $as_echo_n "(cached) " >&6
5427 else
5428 # Double quotes because CPP needs to be expanded
5429 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5430 do
5431 ac_preproc_ok=false
5432 for ac_c_preproc_warn_flag in '' yes
5433 do
5434 # Use a header file that comes with gcc, so configuring glibc
5435 # with a fresh cross-compiler works.
5436 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5437 # <limits.h> exists even on freestanding compilers.
5438 # On the NeXT, cc -E runs the code through the compiler's parser,
5439 # not just through cpp. "Syntax error" is here to catch this case.
5440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5442 #ifdef __STDC__
5443 # include <limits.h>
5444 #else
5445 # include <assert.h>
5446 #endif
5447 Syntax error
5448 _ACEOF
5449 if ac_fn_c_try_cpp "$LINENO"; then :
5450
5451 else
5452 # Broken: fails on valid input.
5453 continue
5454 fi
5455 rm -f conftest.err conftest.$ac_ext
5456
5457 # OK, works on sane cases. Now check whether nonexistent headers
5458 # can be detected and how.
5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h. */
5461 #include <ac_nonexistent.h>
5462 _ACEOF
5463 if ac_fn_c_try_cpp "$LINENO"; then :
5464 # Broken: success on invalid input.
5465 continue
5466 else
5467 # Passes both tests.
5468 ac_preproc_ok=:
5469 break
5470 fi
5471 rm -f conftest.err conftest.$ac_ext
5472
5473 done
5474 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5475 rm -f conftest.err conftest.$ac_ext
5476 if $ac_preproc_ok; then :
5477 break
5478 fi
5479
5480 done
5481 ac_cv_prog_CPP=$CPP
5482
5483 fi
5484 CPP=$ac_cv_prog_CPP
5485 else
5486 ac_cv_prog_CPP=$CPP
5487 fi
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5489 $as_echo "$CPP" >&6; }
5490 ac_preproc_ok=false
5491 for ac_c_preproc_warn_flag in '' yes
5492 do
5493 # Use a header file that comes with gcc, so configuring glibc
5494 # with a fresh cross-compiler works.
5495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5496 # <limits.h> exists even on freestanding compilers.
5497 # On the NeXT, cc -E runs the code through the compiler's parser,
5498 # not just through cpp. "Syntax error" is here to catch this case.
5499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5500 /* end confdefs.h. */
5501 #ifdef __STDC__
5502 # include <limits.h>
5503 #else
5504 # include <assert.h>
5505 #endif
5506 Syntax error
5507 _ACEOF
5508 if ac_fn_c_try_cpp "$LINENO"; then :
5509
5510 else
5511 # Broken: fails on valid input.
5512 continue
5513 fi
5514 rm -f conftest.err conftest.$ac_ext
5515
5516 # OK, works on sane cases. Now check whether nonexistent headers
5517 # can be detected and how.
5518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519 /* end confdefs.h. */
5520 #include <ac_nonexistent.h>
5521 _ACEOF
5522 if ac_fn_c_try_cpp "$LINENO"; then :
5523 # Broken: success on invalid input.
5524 continue
5525 else
5526 # Passes both tests.
5527 ac_preproc_ok=:
5528 break
5529 fi
5530 rm -f conftest.err conftest.$ac_ext
5531
5532 done
5533 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5534 rm -f conftest.err conftest.$ac_ext
5535 if $ac_preproc_ok; then :
5536
5537 else
5538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5540 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5541 See \`config.log' for more details." "$LINENO" 5; }
5542 fi
5543
5544 ac_ext=c
5545 ac_cpp='$CPP $CPPFLAGS'
5546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5549
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5551 $as_echo_n "checking for inline... " >&6; }
5552 if test "${ac_cv_c_inline+set}" = set; then :
5553 $as_echo_n "(cached) " >&6
5554 else
5555 ac_cv_c_inline=no
5556 for ac_kw in inline __inline__ __inline; do
5557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558 /* end confdefs.h. */
5559 #ifndef __cplusplus
5560 typedef int foo_t;
5561 static $ac_kw foo_t static_foo () {return 0; }
5562 $ac_kw foo_t foo () {return 0; }
5563 #endif
5564
5565 _ACEOF
5566 if ac_fn_c_try_compile "$LINENO"; then :
5567 ac_cv_c_inline=$ac_kw
5568 fi
5569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 test "$ac_cv_c_inline" != no && break
5571 done
5572
5573 fi
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5575 $as_echo "$ac_cv_c_inline" >&6; }
5576
5577 case $ac_cv_c_inline in
5578 inline | yes) ;;
5579 *)
5580 case $ac_cv_c_inline in
5581 no) ac_val=;;
5582 *) ac_val=$ac_cv_c_inline;;
5583 esac
5584 cat >>confdefs.h <<_ACEOF
5585 #ifndef __cplusplus
5586 #define inline $ac_val
5587 #endif
5588 _ACEOF
5589 ;;
5590 esac
5591
5592
5593 # Check whether --enable-largefile was given.
5594 if test "${enable_largefile+set}" = set; then :
5595 enableval=$enable_largefile;
5596 fi
5597
5598 if test "$enable_largefile" != no; then
5599
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5601 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5602 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5603 $as_echo_n "(cached) " >&6
5604 else
5605 ac_cv_sys_largefile_CC=no
5606 if test "$GCC" != yes; then
5607 ac_save_CC=$CC
5608 while :; do
5609 # IRIX 6.2 and later do not support large files by default,
5610 # so use the C compiler's -n32 option if that helps.
5611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612 /* end confdefs.h. */
5613 #include <sys/types.h>
5614 /* Check that off_t can represent 2**63 - 1 correctly.
5615 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5616 since some C++ compilers masquerading as C compilers
5617 incorrectly reject 9223372036854775807. */
5618 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5619 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5620 && LARGE_OFF_T % 2147483647 == 1)
5621 ? 1 : -1];
5622 int
5623 main ()
5624 {
5625
5626 ;
5627 return 0;
5628 }
5629 _ACEOF
5630 if ac_fn_c_try_compile "$LINENO"; then :
5631 break
5632 fi
5633 rm -f core conftest.err conftest.$ac_objext
5634 CC="$CC -n32"
5635 if ac_fn_c_try_compile "$LINENO"; then :
5636 ac_cv_sys_largefile_CC=' -n32'; break
5637 fi
5638 rm -f core conftest.err conftest.$ac_objext
5639 break
5640 done
5641 CC=$ac_save_CC
5642 rm -f conftest.$ac_ext
5643 fi
5644 fi
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5646 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5647 if test "$ac_cv_sys_largefile_CC" != no; then
5648 CC=$CC$ac_cv_sys_largefile_CC
5649 fi
5650
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5652 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5653 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5654 $as_echo_n "(cached) " >&6
5655 else
5656 while :; do
5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h. */
5659 #include <sys/types.h>
5660 /* Check that off_t can represent 2**63 - 1 correctly.
5661 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5662 since some C++ compilers masquerading as C compilers
5663 incorrectly reject 9223372036854775807. */
5664 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5665 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5666 && LARGE_OFF_T % 2147483647 == 1)
5667 ? 1 : -1];
5668 int
5669 main ()
5670 {
5671
5672 ;
5673 return 0;
5674 }
5675 _ACEOF
5676 if ac_fn_c_try_compile "$LINENO"; then :
5677 ac_cv_sys_file_offset_bits=no; break
5678 fi
5679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681 /* end confdefs.h. */
5682 #define _FILE_OFFSET_BITS 64
5683 #include <sys/types.h>
5684 /* Check that off_t can represent 2**63 - 1 correctly.
5685 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5686 since some C++ compilers masquerading as C compilers
5687 incorrectly reject 9223372036854775807. */
5688 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5689 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5690 && LARGE_OFF_T % 2147483647 == 1)
5691 ? 1 : -1];
5692 int
5693 main ()
5694 {
5695
5696 ;
5697 return 0;
5698 }
5699 _ACEOF
5700 if ac_fn_c_try_compile "$LINENO"; then :
5701 ac_cv_sys_file_offset_bits=64; break
5702 fi
5703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5704 ac_cv_sys_file_offset_bits=unknown
5705 break
5706 done
5707 fi
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5709 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5710 case $ac_cv_sys_file_offset_bits in #(
5711 no | unknown) ;;
5712 *)
5713 cat >>confdefs.h <<_ACEOF
5714 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5715 _ACEOF
5716 ;;
5717 esac
5718 rm -rf conftest*
5719 if test $ac_cv_sys_file_offset_bits = unknown; then
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5721 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5722 if test "${ac_cv_sys_large_files+set}" = set; then :
5723 $as_echo_n "(cached) " >&6
5724 else
5725 while :; do
5726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5727 /* end confdefs.h. */
5728 #include <sys/types.h>
5729 /* Check that off_t can represent 2**63 - 1 correctly.
5730 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5731 since some C++ compilers masquerading as C compilers
5732 incorrectly reject 9223372036854775807. */
5733 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5734 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5735 && LARGE_OFF_T % 2147483647 == 1)
5736 ? 1 : -1];
5737 int
5738 main ()
5739 {
5740
5741 ;
5742 return 0;
5743 }
5744 _ACEOF
5745 if ac_fn_c_try_compile "$LINENO"; then :
5746 ac_cv_sys_large_files=no; break
5747 fi
5748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5751 #define _LARGE_FILES 1
5752 #include <sys/types.h>
5753 /* Check that off_t can represent 2**63 - 1 correctly.
5754 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5755 since some C++ compilers masquerading as C compilers
5756 incorrectly reject 9223372036854775807. */
5757 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5758 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5759 && LARGE_OFF_T % 2147483647 == 1)
5760 ? 1 : -1];
5761 int
5762 main ()
5763 {
5764
5765 ;
5766 return 0;
5767 }
5768 _ACEOF
5769 if ac_fn_c_try_compile "$LINENO"; then :
5770 ac_cv_sys_large_files=1; break
5771 fi
5772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773 ac_cv_sys_large_files=unknown
5774 break
5775 done
5776 fi
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5778 $as_echo "$ac_cv_sys_large_files" >&6; }
5779 case $ac_cv_sys_large_files in #(
5780 no | unknown) ;;
5781 *)
5782 cat >>confdefs.h <<_ACEOF
5783 #define _LARGE_FILES $ac_cv_sys_large_files
5784 _ACEOF
5785 ;;
5786 esac
5787 rm -rf conftest*
5788 fi
5789 fi
5790
5791
5792 # sizeof(char) is 1 by definition.
5793 # The cast to long int works around a bug in the HP C Compiler
5794 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5795 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5796 # This bug is HP SR number 8606223364.
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5798 $as_echo_n "checking size of void *... " >&6; }
5799 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5800 $as_echo_n "(cached) " >&6
5801 else
5802 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5803
5804 else
5805 if test "$ac_cv_type_void_p" = yes; then
5806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5808 { as_fn_set_status 77
5809 as_fn_error "cannot compute sizeof (void *)
5810 See \`config.log' for more details." "$LINENO" 5; }; }
5811 else
5812 ac_cv_sizeof_void_p=0
5813 fi
5814 fi
5815
5816 fi
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5818 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5819
5820
5821
5822 cat >>confdefs.h <<_ACEOF
5823 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5824 _ACEOF
5825
5826
5827 # The cast to long int works around a bug in the HP C Compiler
5828 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5829 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5830 # This bug is HP SR number 8606223364.
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5832 $as_echo_n "checking size of short... " >&6; }
5833 if test "${ac_cv_sizeof_short+set}" = set; then :
5834 $as_echo_n "(cached) " >&6
5835 else
5836 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5837
5838 else
5839 if test "$ac_cv_type_short" = yes; then
5840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5842 { as_fn_set_status 77
5843 as_fn_error "cannot compute sizeof (short)
5844 See \`config.log' for more details." "$LINENO" 5; }; }
5845 else
5846 ac_cv_sizeof_short=0
5847 fi
5848 fi
5849
5850 fi
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5852 $as_echo "$ac_cv_sizeof_short" >&6; }
5853
5854
5855
5856 cat >>confdefs.h <<_ACEOF
5857 #define SIZEOF_SHORT $ac_cv_sizeof_short
5858 _ACEOF
5859
5860
5861 # The cast to long int works around a bug in the HP C Compiler
5862 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5863 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5864 # This bug is HP SR number 8606223364.
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5866 $as_echo_n "checking size of int... " >&6; }
5867 if test "${ac_cv_sizeof_int+set}" = set; then :
5868 $as_echo_n "(cached) " >&6
5869 else
5870 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5871
5872 else
5873 if test "$ac_cv_type_int" = yes; then
5874 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5876 { as_fn_set_status 77
5877 as_fn_error "cannot compute sizeof (int)
5878 See \`config.log' for more details." "$LINENO" 5; }; }
5879 else
5880 ac_cv_sizeof_int=0
5881 fi
5882 fi
5883
5884 fi
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5886 $as_echo "$ac_cv_sizeof_int" >&6; }
5887
5888
5889
5890 cat >>confdefs.h <<_ACEOF
5891 #define SIZEOF_INT $ac_cv_sizeof_int
5892 _ACEOF
5893
5894
5895 # The cast to long int works around a bug in the HP C Compiler
5896 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5897 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5898 # This bug is HP SR number 8606223364.
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5900 $as_echo_n "checking size of long... " >&6; }
5901 if test "${ac_cv_sizeof_long+set}" = set; then :
5902 $as_echo_n "(cached) " >&6
5903 else
5904 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5905
5906 else
5907 if test "$ac_cv_type_long" = yes; then
5908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5910 { as_fn_set_status 77
5911 as_fn_error "cannot compute sizeof (long)
5912 See \`config.log' for more details." "$LINENO" 5; }; }
5913 else
5914 ac_cv_sizeof_long=0
5915 fi
5916 fi
5917
5918 fi
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5920 $as_echo "$ac_cv_sizeof_long" >&6; }
5921
5922
5923
5924 cat >>confdefs.h <<_ACEOF
5925 #define SIZEOF_LONG $ac_cv_sizeof_long
5926 _ACEOF
5927
5928
5929 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5930 if test "x$ac_cv_type_long_long" = x""yes; then :
5931
5932 cat >>confdefs.h <<_ACEOF
5933 #define HAVE_LONG_LONG 1
5934 _ACEOF
5935
5936 # The cast to long int works around a bug in the HP C Compiler
5937 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5938 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5939 # This bug is HP SR number 8606223364.
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5941 $as_echo_n "checking size of long long... " >&6; }
5942 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5943 $as_echo_n "(cached) " >&6
5944 else
5945 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5946
5947 else
5948 if test "$ac_cv_type_long_long" = yes; then
5949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5951 { as_fn_set_status 77
5952 as_fn_error "cannot compute sizeof (long long)
5953 See \`config.log' for more details." "$LINENO" 5; }; }
5954 else
5955 ac_cv_sizeof_long_long=0
5956 fi
5957 fi
5958
5959 fi
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5961 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5962
5963
5964
5965 cat >>confdefs.h <<_ACEOF
5966 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5967 _ACEOF
5968
5969
5970 fi
5971
5972 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5973 if test "x$ac_cv_type___int64" = x""yes; then :
5974
5975 cat >>confdefs.h <<_ACEOF
5976 #define HAVE___INT64 1
5977 _ACEOF
5978
5979 # The cast to long int works around a bug in the HP C Compiler
5980 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5981 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5982 # This bug is HP SR number 8606223364.
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5984 $as_echo_n "checking size of __int64... " >&6; }
5985 if test "${ac_cv_sizeof___int64+set}" = set; then :
5986 $as_echo_n "(cached) " >&6
5987 else
5988 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5989
5990 else
5991 if test "$ac_cv_type___int64" = yes; then
5992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5994 { as_fn_set_status 77
5995 as_fn_error "cannot compute sizeof (__int64)
5996 See \`config.log' for more details." "$LINENO" 5; }; }
5997 else
5998 ac_cv_sizeof___int64=0
5999 fi
6000 fi
6001
6002 fi
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6004 $as_echo "$ac_cv_sizeof___int64" >&6; }
6005
6006
6007
6008 cat >>confdefs.h <<_ACEOF
6009 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6010 _ACEOF
6011
6012
6013 fi
6014
6015 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6016 case $ac_cv_c_int8_t in #(
6017 no|yes) ;; #(
6018 *)
6019
6020 cat >>confdefs.h <<_ACEOF
6021 #define int8_t $ac_cv_c_int8_t
6022 _ACEOF
6023 ;;
6024 esac
6025
6026 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6027 case $ac_cv_c_int16_t in #(
6028 no|yes) ;; #(
6029 *)
6030
6031 cat >>confdefs.h <<_ACEOF
6032 #define int16_t $ac_cv_c_int16_t
6033 _ACEOF
6034 ;;
6035 esac
6036
6037 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6038 case $ac_cv_c_int32_t in #(
6039 no|yes) ;; #(
6040 *)
6041
6042 cat >>confdefs.h <<_ACEOF
6043 #define int32_t $ac_cv_c_int32_t
6044 _ACEOF
6045 ;;
6046 esac
6047
6048 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6049 case $ac_cv_c_int64_t in #(
6050 no|yes) ;; #(
6051 *)
6052
6053 cat >>confdefs.h <<_ACEOF
6054 #define int64_t $ac_cv_c_int64_t
6055 _ACEOF
6056 ;;
6057 esac
6058
6059
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6061 $as_echo_n "checking for long long int... " >&6; }
6062 if test "${ac_cv_type_long_long_int+set}" = set; then :
6063 $as_echo_n "(cached) " >&6
6064 else
6065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066 /* end confdefs.h. */
6067
6068 /* For now, do not test the preprocessor; as of 2007 there are too many
6069 implementations with broken preprocessors. Perhaps this can
6070 be revisited in 2012. In the meantime, code should not expect
6071 #if to work with literals wider than 32 bits. */
6072 /* Test literals. */
6073 long long int ll = 9223372036854775807ll;
6074 long long int nll = -9223372036854775807LL;
6075 unsigned long long int ull = 18446744073709551615ULL;
6076 /* Test constant expressions. */
6077 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6078 ? 1 : -1)];
6079 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6080 ? 1 : -1)];
6081 int i = 63;
6082 int
6083 main ()
6084 {
6085 /* Test availability of runtime routines for shift and division. */
6086 long long int llmax = 9223372036854775807ll;
6087 unsigned long long int ullmax = 18446744073709551615ull;
6088 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6089 | (llmax / ll) | (llmax % ll)
6090 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6091 | (ullmax / ull) | (ullmax % ull));
6092 ;
6093 return 0;
6094 }
6095
6096 _ACEOF
6097 if ac_fn_c_try_link "$LINENO"; then :
6098 if test "$cross_compiling" = yes; then :
6099 ac_cv_type_long_long_int=yes
6100 else
6101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6102 /* end confdefs.h. */
6103 #include <limits.h>
6104 #ifndef LLONG_MAX
6105 # define HALF \
6106 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6107 # define LLONG_MAX (HALF - 1 + HALF)
6108 #endif
6109 int
6110 main ()
6111 {
6112 long long int n = 1;
6113 int i;
6114 for (i = 0; ; i++)
6115 {
6116 long long int m = n << i;
6117 if (m >> i != n)
6118 return 1;
6119 if (LLONG_MAX / 2 < m)
6120 break;
6121 }
6122 return 0;
6123 ;
6124 return 0;
6125 }
6126 _ACEOF
6127 if ac_fn_c_try_run "$LINENO"; then :
6128 ac_cv_type_long_long_int=yes
6129 else
6130 ac_cv_type_long_long_int=no
6131 fi
6132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6133 conftest.$ac_objext conftest.beam conftest.$ac_ext
6134 fi
6135
6136 else
6137 ac_cv_type_long_long_int=no
6138 fi
6139 rm -f core conftest.err conftest.$ac_objext \
6140 conftest$ac_exeext conftest.$ac_ext
6141 fi
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6143 $as_echo "$ac_cv_type_long_long_int" >&6; }
6144 if test $ac_cv_type_long_long_int = yes; then
6145
6146 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6147
6148 fi
6149
6150
6151
6152 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6153 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6154
6155 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6156
6157 else
6158 test $ac_cv_type_long_long_int = yes \
6159 && ac_type='long long int' \
6160 || ac_type='long int'
6161
6162 cat >>confdefs.h <<_ACEOF
6163 #define intmax_t $ac_type
6164 _ACEOF
6165
6166 fi
6167
6168
6169
6170 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6171 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6172
6173 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6174
6175 else
6176 for ac_type in 'int' 'long int' 'long long int'; do
6177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6178 /* end confdefs.h. */
6179 $ac_includes_default
6180 int
6181 main ()
6182 {
6183 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6184 test_array [0] = 0
6185
6186 ;
6187 return 0;
6188 }
6189 _ACEOF
6190 if ac_fn_c_try_compile "$LINENO"; then :
6191
6192 cat >>confdefs.h <<_ACEOF
6193 #define intptr_t $ac_type
6194 _ACEOF
6195
6196 ac_type=
6197 fi
6198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6199 test -z "$ac_type" && break
6200 done
6201 fi
6202
6203
6204 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6205 case $ac_cv_c_uint8_t in #(
6206 no|yes) ;; #(
6207 *)
6208
6209 $as_echo "#define _UINT8_T 1" >>confdefs.h
6210
6211
6212 cat >>confdefs.h <<_ACEOF
6213 #define uint8_t $ac_cv_c_uint8_t
6214 _ACEOF
6215 ;;
6216 esac
6217
6218 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6219 case $ac_cv_c_uint16_t in #(
6220 no|yes) ;; #(
6221 *)
6222
6223
6224 cat >>confdefs.h <<_ACEOF
6225 #define uint16_t $ac_cv_c_uint16_t
6226 _ACEOF
6227 ;;
6228 esac
6229
6230 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6231 case $ac_cv_c_uint32_t in #(
6232 no|yes) ;; #(
6233 *)
6234
6235 $as_echo "#define _UINT32_T 1" >>confdefs.h
6236
6237
6238 cat >>confdefs.h <<_ACEOF
6239 #define uint32_t $ac_cv_c_uint32_t
6240 _ACEOF
6241 ;;
6242 esac
6243
6244 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6245 case $ac_cv_c_uint64_t in #(
6246 no|yes) ;; #(
6247 *)
6248
6249 $as_echo "#define _UINT64_T 1" >>confdefs.h
6250
6251
6252 cat >>confdefs.h <<_ACEOF
6253 #define uint64_t $ac_cv_c_uint64_t
6254 _ACEOF
6255 ;;
6256 esac
6257
6258
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6260 $as_echo_n "checking for unsigned long long int... " >&6; }
6261 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6262 $as_echo_n "(cached) " >&6
6263 else
6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265 /* end confdefs.h. */
6266
6267 /* For now, do not test the preprocessor; as of 2007 there are too many
6268 implementations with broken preprocessors. Perhaps this can
6269 be revisited in 2012. In the meantime, code should not expect
6270 #if to work with literals wider than 32 bits. */
6271 /* Test literals. */
6272 long long int ll = 9223372036854775807ll;
6273 long long int nll = -9223372036854775807LL;
6274 unsigned long long int ull = 18446744073709551615ULL;
6275 /* Test constant expressions. */
6276 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6277 ? 1 : -1)];
6278 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6279 ? 1 : -1)];
6280 int i = 63;
6281 int
6282 main ()
6283 {
6284 /* Test availability of runtime routines for shift and division. */
6285 long long int llmax = 9223372036854775807ll;
6286 unsigned long long int ullmax = 18446744073709551615ull;
6287 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6288 | (llmax / ll) | (llmax % ll)
6289 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6290 | (ullmax / ull) | (ullmax % ull));
6291 ;
6292 return 0;
6293 }
6294
6295 _ACEOF
6296 if ac_fn_c_try_link "$LINENO"; then :
6297 ac_cv_type_unsigned_long_long_int=yes
6298 else
6299 ac_cv_type_unsigned_long_long_int=no
6300 fi
6301 rm -f core conftest.err conftest.$ac_objext \
6302 conftest$ac_exeext conftest.$ac_ext
6303 fi
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6305 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6306 if test $ac_cv_type_unsigned_long_long_int = yes; then
6307
6308 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6309
6310 fi
6311
6312
6313
6314 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6315 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6316
6317 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6318
6319 else
6320 test $ac_cv_type_unsigned_long_long_int = yes \
6321 && ac_type='unsigned long long int' \
6322 || ac_type='unsigned long int'
6323
6324 cat >>confdefs.h <<_ACEOF
6325 #define uintmax_t $ac_type
6326 _ACEOF
6327
6328 fi
6329
6330
6331
6332 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6333 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6334
6335 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6336
6337 else
6338 for ac_type in 'unsigned int' 'unsigned long int' \
6339 'unsigned long long int'; do
6340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6341 /* end confdefs.h. */
6342 $ac_includes_default
6343 int
6344 main ()
6345 {
6346 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6347 test_array [0] = 0
6348
6349 ;
6350 return 0;
6351 }
6352 _ACEOF
6353 if ac_fn_c_try_compile "$LINENO"; then :
6354
6355 cat >>confdefs.h <<_ACEOF
6356 #define uintptr_t $ac_type
6357 _ACEOF
6358
6359 ac_type=
6360 fi
6361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6362 test -z "$ac_type" && break
6363 done
6364 fi
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380 # ---------------------
6381 # Warnings and checking
6382 # ---------------------
6383
6384 # Check $CC warning features (if it's GCC).
6385 # We want to use -pedantic, but we don't want warnings about
6386 # * 'long long'
6387 # * variadic macros
6388 # * overlong strings
6389 # * C++11 narrowing conversions in { }
6390 # So, we only use -pedantic if we can disable those warnings.
6391
6392 loose_warn=
6393 save_CFLAGS="$CFLAGS"
6394 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6395 # Do the check with the no- prefix removed since gcc silently
6396 # accepts any -Wno-* option on purpose
6397 case $real_option in
6398 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6399 *) option=$real_option ;;
6400 esac
6401 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6402
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6404 $as_echo_n "checking whether $CC supports $option... " >&6; }
6405 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6406 $as_echo_n "(cached) " >&6
6407 else
6408 CFLAGS="$option"
6409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410 /* end confdefs.h. */
6411
6412 int
6413 main ()
6414 {
6415
6416 ;
6417 return 0;
6418 }
6419 _ACEOF
6420 if ac_fn_c_try_compile "$LINENO"; then :
6421 eval "$as_acx_Woption=yes"
6422 else
6423 eval "$as_acx_Woption=no"
6424 fi
6425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6426
6427 fi
6428 eval ac_res=\$$as_acx_Woption
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6430 $as_echo "$ac_res" >&6; }
6431 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6432 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6433 fi
6434 done
6435 CFLAGS="$save_CFLAGS"
6436
6437 c_loose_warn=
6438 save_CFLAGS="$CFLAGS"
6439 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6440 # Do the check with the no- prefix removed since gcc silently
6441 # accepts any -Wno-* option on purpose
6442 case $real_option in
6443 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6444 *) option=$real_option ;;
6445 esac
6446 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6447
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6449 $as_echo_n "checking whether $CC supports $option... " >&6; }
6450 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6451 $as_echo_n "(cached) " >&6
6452 else
6453 CFLAGS="$option"
6454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455 /* end confdefs.h. */
6456
6457 int
6458 main ()
6459 {
6460
6461 ;
6462 return 0;
6463 }
6464 _ACEOF
6465 if ac_fn_c_try_compile "$LINENO"; then :
6466 eval "$as_acx_Woption=yes"
6467 else
6468 eval "$as_acx_Woption=no"
6469 fi
6470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6471
6472 fi
6473 eval ac_res=\$$as_acx_Woption
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6475 $as_echo "$ac_res" >&6; }
6476 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6477 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6478 fi
6479 done
6480 CFLAGS="$save_CFLAGS"
6481
6482 strict_warn=
6483 save_CFLAGS="$CFLAGS"
6484 for real_option in -Wmissing-format-attribute; do
6485 # Do the check with the no- prefix removed since gcc silently
6486 # accepts any -Wno-* option on purpose
6487 case $real_option in
6488 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6489 *) option=$real_option ;;
6490 esac
6491 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6492
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6494 $as_echo_n "checking whether $CC supports $option... " >&6; }
6495 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6496 $as_echo_n "(cached) " >&6
6497 else
6498 CFLAGS="$option"
6499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500 /* end confdefs.h. */
6501
6502 int
6503 main ()
6504 {
6505
6506 ;
6507 return 0;
6508 }
6509 _ACEOF
6510 if ac_fn_c_try_compile "$LINENO"; then :
6511 eval "$as_acx_Woption=yes"
6512 else
6513 eval "$as_acx_Woption=no"
6514 fi
6515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6516
6517 fi
6518 eval ac_res=\$$as_acx_Woption
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6520 $as_echo "$ac_res" >&6; }
6521 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6522 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6523 fi
6524 done
6525 CFLAGS="$save_CFLAGS"
6526
6527 c_strict_warn=
6528 save_CFLAGS="$CFLAGS"
6529 for real_option in -Wold-style-definition -Wc++-compat; do
6530 # Do the check with the no- prefix removed since gcc silently
6531 # accepts any -Wno-* option on purpose
6532 case $real_option in
6533 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6534 *) option=$real_option ;;
6535 esac
6536 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6537
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6539 $as_echo_n "checking whether $CC supports $option... " >&6; }
6540 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6541 $as_echo_n "(cached) " >&6
6542 else
6543 CFLAGS="$option"
6544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6545 /* end confdefs.h. */
6546
6547 int
6548 main ()
6549 {
6550
6551 ;
6552 return 0;
6553 }
6554 _ACEOF
6555 if ac_fn_c_try_compile "$LINENO"; then :
6556 eval "$as_acx_Woption=yes"
6557 else
6558 eval "$as_acx_Woption=no"
6559 fi
6560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6561
6562 fi
6563 eval ac_res=\$$as_acx_Woption
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6565 $as_echo "$ac_res" >&6; }
6566 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6567 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6568 fi
6569 done
6570 CFLAGS="$save_CFLAGS"
6571
6572 # Do the check with the no- prefix removed from the warning options
6573 # since gcc silently accepts any -Wno-* option on purpose
6574 if test "$GCC" = yes; then :
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6576 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6577 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580 save_CFLAGS="$CFLAGS"
6581 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583 /* end confdefs.h. */
6584
6585 int
6586 main ()
6587 {
6588
6589 ;
6590 return 0;
6591 }
6592 _ACEOF
6593 if ac_fn_c_try_compile "$LINENO"; then :
6594 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6595 else
6596 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6597 fi
6598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6599 CFLAGS="$save_CFLAGS"
6600 fi
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6602 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6603 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6604 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6605 fi
6606
6607 fi
6608
6609 # Check whether --enable-werror-always was given.
6610 if test "${enable_werror_always+set}" = set; then :
6611 enableval=$enable_werror_always;
6612 else
6613 enable_werror_always=no
6614 fi
6615
6616 if test $enable_werror_always = yes; then :
6617 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6618 fi
6619
6620
6621
6622 # The above macros do nothing if the compiler is not GCC. However, the
6623 # Makefile has more goo to add other flags, so these variables are used
6624 # to enable warnings only for GCC.
6625 warn_cflags=
6626 warn_cxxflags=
6627 if test "x$GCC" = "xyes"; then
6628 warn_cflags='$(GCC_WARN_CFLAGS)'
6629 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6630 fi
6631
6632
6633
6634 # Disable exceptions and RTTI if building with g++
6635 noexception_flags=
6636 save_CFLAGS="$CFLAGS"
6637 for real_option in -fno-exceptions -fno-rtti; do
6638 # Do the check with the no- prefix removed since gcc silently
6639 # accepts any -Wno-* option on purpose
6640 case $real_option in
6641 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6642 *) option=$real_option ;;
6643 esac
6644 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6645
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6647 $as_echo_n "checking whether $CC supports $option... " >&6; }
6648 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6649 $as_echo_n "(cached) " >&6
6650 else
6651 CFLAGS="$option"
6652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6653 /* end confdefs.h. */
6654
6655 int
6656 main ()
6657 {
6658
6659 ;
6660 return 0;
6661 }
6662 _ACEOF
6663 if ac_fn_c_try_compile "$LINENO"; then :
6664 eval "$as_acx_Woption=yes"
6665 else
6666 eval "$as_acx_Woption=no"
6667 fi
6668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6669
6670 fi
6671 eval ac_res=\$$as_acx_Woption
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6673 $as_echo "$ac_res" >&6; }
6674 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6675 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6676 fi
6677 done
6678 CFLAGS="$save_CFLAGS"
6679
6680
6681 # Enable expensive internal checks
6682 is_release=
6683 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6684 is_release=yes
6685 fi
6686
6687 # Check whether --enable-checking was given.
6688 if test "${enable_checking+set}" = set; then :
6689 enableval=$enable_checking; ac_checking_flags="${enableval}"
6690 else
6691
6692 # Determine the default checks.
6693 if test x$is_release = x ; then
6694 ac_checking_flags=yes
6695 else
6696 ac_checking_flags=release
6697 fi
6698 fi
6699
6700 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6701 for check in release $ac_checking_flags
6702 do
6703 case $check in
6704 # these set all the flags to specific states
6705 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6706 ac_fold_checking= ; ac_gc_checking=1 ;
6707 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6708 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6709 ac_tree_checking=1 ; ac_valgrind_checking= ;
6710 ac_types_checking=1 ;;
6711 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6712 ac_fold_checking= ; ac_gc_checking= ;
6713 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6714 ac_rtlflag_checking= ; ac_runtime_checking= ;
6715 ac_tree_checking= ; ac_valgrind_checking= ;
6716 ac_types_checking= ;;
6717 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6718 ac_fold_checking=1 ; ac_gc_checking=1 ;
6719 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6720 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6721 ac_tree_checking=1 ; ac_valgrind_checking= ;
6722 ac_types_checking=1 ;;
6723 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6724 ac_fold_checking= ; ac_gc_checking= ;
6725 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6726 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6727 ac_tree_checking= ; ac_valgrind_checking= ;
6728 ac_types_checking= ;;
6729 # these enable particular checks
6730 assert) ac_assert_checking=1 ;;
6731 df) ac_df_checking=1 ;;
6732 fold) ac_fold_checking=1 ;;
6733 gc) ac_gc_checking=1 ;;
6734 gcac) ac_gc_always_collect=1 ;;
6735 gimple) ac_gimple_checking=1 ;;
6736 misc) ac_checking=1 ;;
6737 rtl) ac_rtl_checking=1 ;;
6738 rtlflag) ac_rtlflag_checking=1 ;;
6739 runtime) ac_runtime_checking=1 ;;
6740 tree) ac_tree_checking=1 ;;
6741 types) ac_types_checking=1 ;;
6742 valgrind) ac_valgrind_checking=1 ;;
6743 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6744 esac
6745 done
6746 IFS="$ac_save_IFS"
6747
6748 nocommon_flag=""
6749 if test x$ac_checking != x ; then
6750
6751 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6752
6753 nocommon_flag=-fno-common
6754 fi
6755
6756 if test x$ac_df_checking != x ; then
6757
6758 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6759
6760 fi
6761 if test x$ac_assert_checking != x ; then
6762
6763 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6764
6765 fi
6766 if test x$ac_gimple_checking != x ; then
6767
6768 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6769
6770 fi
6771
6772 if test x$ac_runtime_checking != x ; then
6773
6774 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6775
6776 fi
6777 if test x$ac_tree_checking != x ; then
6778
6779 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6780
6781 TREEBROWSER=tree-browser.o
6782 fi
6783 if test x$ac_types_checking != x ; then
6784
6785 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6786
6787 fi
6788
6789 if test x$ac_rtl_checking != x ; then
6790
6791 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6792
6793 fi
6794 if test x$ac_rtlflag_checking != x ; then
6795
6796 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6797
6798 fi
6799 if test x$ac_gc_checking != x ; then
6800
6801 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6802
6803 fi
6804 if test x$ac_gc_always_collect != x ; then
6805
6806 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6807
6808 fi
6809 if test x$ac_fold_checking != x ; then
6810
6811 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6812
6813 fi
6814 valgrind_path_defines=
6815 valgrind_command=
6816
6817 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6818 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6819 have_valgrind_h=yes
6820 else
6821 have_valgrind_h=no
6822 fi
6823
6824
6825
6826 if test x$ac_valgrind_checking != x ; then
6827 # It is certainly possible that there's valgrind but no valgrind.h.
6828 # GCC relies on making annotations so we must have both.
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6830 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832 /* end confdefs.h. */
6833 #include <valgrind/memcheck.h>
6834 #ifndef VALGRIND_DISCARD
6835 #error VALGRIND_DISCARD not defined
6836 #endif
6837 _ACEOF
6838 if ac_fn_c_try_cpp "$LINENO"; then :
6839 gcc_cv_header_valgrind_memcheck_h=yes
6840 else
6841 gcc_cv_header_valgrind_memcheck_h=no
6842 fi
6843 rm -f conftest.err conftest.$ac_ext
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6845 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6847 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6850 #include <memcheck.h>
6851 #ifndef VALGRIND_DISCARD
6852 #error VALGRIND_DISCARD not defined
6853 #endif
6854 _ACEOF
6855 if ac_fn_c_try_cpp "$LINENO"; then :
6856 gcc_cv_header_memcheck_h=yes
6857 else
6858 gcc_cv_header_memcheck_h=no
6859 fi
6860 rm -f conftest.err conftest.$ac_ext
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6862 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6863
6864 # Prepare PATH_SEPARATOR.
6865 # The user is always right.
6866 if test "${PATH_SEPARATOR+set}" != set; then
6867 echo "#! /bin/sh" >conf$$.sh
6868 echo "exit 0" >>conf$$.sh
6869 chmod +x conf$$.sh
6870 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6871 PATH_SEPARATOR=';'
6872 else
6873 PATH_SEPARATOR=:
6874 fi
6875 rm -f conf$$.sh
6876 fi
6877
6878 # Find out how to test for executable files. Don't use a zero-byte file,
6879 # as systems may use methods other than mode bits to determine executability.
6880 cat >conf$$.file <<_ASEOF
6881 #! /bin/sh
6882 exit 0
6883 _ASEOF
6884 chmod +x conf$$.file
6885 if test -x conf$$.file >/dev/null 2>&1; then
6886 ac_executable_p="test -x"
6887 else
6888 ac_executable_p="test -f"
6889 fi
6890 rm -f conf$$.file
6891
6892 # Extract the first word of "valgrind", so it can be a program name with args.
6893 set dummy valgrind; ac_word=$2
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895 $as_echo_n "checking for $ac_word... " >&6; }
6896 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6897 $as_echo_n "(cached) " >&6
6898 else
6899 case "$valgrind_path" in
6900 [\\/]* | ?:[\\/]*)
6901 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6902 ;;
6903 *)
6904 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6905 for ac_dir in $PATH; do
6906 IFS="$ac_save_IFS"
6907 test -z "$ac_dir" && ac_dir=.
6908 for ac_exec_ext in '' $ac_executable_extensions; do
6909 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6910 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6911 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6912 break 2
6913 fi
6914 fi
6915 done
6916 done
6917 IFS="$ac_save_IFS"
6918 ;;
6919 esac
6920 fi
6921 valgrind_path="$ac_cv_path_valgrind_path"
6922 if test -n "$valgrind_path"; then
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6924 $as_echo "$valgrind_path" >&6; }
6925 else
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6927 $as_echo "no" >&6; }
6928 fi
6929
6930 if test "x$valgrind_path" = "x" \
6931 || (test $have_valgrind_h = no \
6932 && test $gcc_cv_header_memcheck_h = no \
6933 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6934 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6935 fi
6936 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6937 valgrind_command="$valgrind_path -q"
6938
6939 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6940
6941 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6942
6943 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6944
6945 fi
6946 if test $gcc_cv_header_memcheck_h = yes; then
6947
6948 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6949
6950 fi
6951 fi
6952
6953
6954
6955 # Enable code coverage collection
6956 # Check whether --enable-coverage was given.
6957 if test "${enable_coverage+set}" = set; then :
6958 enableval=$enable_coverage; case "${enableval}" in
6959 yes|noopt)
6960 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6961 ;;
6962 opt)
6963 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6964 ;;
6965 no)
6966 # a.k.a. --disable-coverage
6967 coverage_flags=""
6968 ;;
6969 *)
6970 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6971 ;;
6972 esac
6973 else
6974 coverage_flags=""
6975 fi
6976
6977
6978
6979 # Check whether --enable-gather-detailed-mem-stats was given.
6980 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6981 enableval=$enable_gather_detailed_mem_stats;
6982 else
6983 enable_gather_detailed_mem_stats=no
6984 fi
6985
6986 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6987
6988 cat >>confdefs.h <<_ACEOF
6989 #define GATHER_STATISTICS $gather_stats
6990 _ACEOF
6991
6992
6993 # -------------------------------
6994 # Miscenalleous configure options
6995 # -------------------------------
6996
6997 # With stabs
6998
6999 # Check whether --with-stabs was given.
7000 if test "${with_stabs+set}" = set; then :
7001 withval=$with_stabs; stabs="$with_stabs"
7002 else
7003 stabs=no
7004 fi
7005
7006
7007 # Determine whether or not multilibs are enabled.
7008 # Check whether --enable-multilib was given.
7009 if test "${enable_multilib+set}" = set; then :
7010 enableval=$enable_multilib;
7011 else
7012 enable_multilib=yes
7013 fi
7014
7015
7016
7017 # Enable __cxa_atexit for C++.
7018 # Check whether --enable-__cxa_atexit was given.
7019 if test "${enable___cxa_atexit+set}" = set; then :
7020 enableval=$enable___cxa_atexit;
7021 fi
7022
7023
7024 # Enable C extension for decimal float if target supports it.
7025
7026 # Check whether --enable-decimal-float was given.
7027 if test "${enable_decimal_float+set}" = set; then :
7028 enableval=$enable_decimal_float;
7029 case $enable_decimal_float in
7030 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7031 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7032 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7033 esac
7034
7035 else
7036
7037 case $target in
7038 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7039 i?86*-*-mingw* | x86_64*-*-mingw* | \
7040 i?86*-*-cygwin*)
7041 enable_decimal_float=yes
7042 ;;
7043 *)
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7045 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7046 enable_decimal_float=no
7047 ;;
7048 esac
7049
7050 fi
7051
7052
7053 # x86's use BID format instead of DPD
7054 case x$enable_decimal_float in
7055 xyes)
7056 case $target in
7057 i?86*-*-* | x86_64*-*-*)
7058 enable_decimal_float=bid
7059 ;;
7060 *)
7061 enable_decimal_float=dpd
7062 ;;
7063 esac
7064 default_decimal_float=$enable_decimal_float
7065 ;;
7066 xno)
7067 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7068 # dependency on libdecnumber.
7069 default_decimal_float=dpd
7070 ;;
7071 esac
7072
7073
7074
7075
7076 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7077
7078 cat >>confdefs.h <<_ACEOF
7079 #define ENABLE_DECIMAL_FLOAT $dfp
7080 _ACEOF
7081
7082
7083 # Use default_decimal_float for dependency.
7084 enable_decimal_float=$default_decimal_float
7085
7086 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7087
7088 cat >>confdefs.h <<_ACEOF
7089 #define ENABLE_DECIMAL_BID_FORMAT $bid
7090 _ACEOF
7091
7092
7093 # Enable C extension for fixed-point arithmetic.
7094 # Check whether --enable-fixed-point was given.
7095 if test "${enable_fixed_point+set}" = set; then :
7096 enableval=$enable_fixed_point;
7097 else
7098
7099 case $target in
7100 arm*)
7101 enable_fixed_point=yes
7102 ;;
7103
7104 mips*-*-*)
7105 enable_fixed_point=yes
7106 ;;
7107 *)
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7109 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7110 enable_fixed_point=no
7111 ;;
7112 esac
7113
7114 fi
7115
7116
7117
7118 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7119
7120 cat >>confdefs.h <<_ACEOF
7121 #define ENABLE_FIXED_POINT $fixedpoint
7122 _ACEOF
7123
7124
7125 # Enable threads
7126 # Pass with no value to take the default
7127 # Pass with a value to specify a thread package
7128 # Check whether --enable-threads was given.
7129 if test "${enable_threads+set}" = set; then :
7130 enableval=$enable_threads;
7131 else
7132 enable_threads=''
7133 fi
7134
7135
7136 # Check whether --enable-tls was given.
7137 if test "${enable_tls+set}" = set; then :
7138 enableval=$enable_tls;
7139 case $enable_tls in
7140 yes | no) ;;
7141 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7142 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7143 esac
7144
7145 else
7146 enable_tls=''
7147 fi
7148
7149
7150 # Check whether --enable-objc-gc was given.
7151 if test "${enable_objc_gc+set}" = set; then :
7152 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7153 objc_boehm_gc=''
7154 else
7155 objc_boehm_gc=1
7156 fi
7157 else
7158 objc_boehm_gc=''
7159 fi
7160
7161
7162
7163 # Check whether --with-dwarf2 was given.
7164 if test "${with_dwarf2+set}" = set; then :
7165 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7166 else
7167 dwarf2=no
7168 fi
7169
7170
7171 # Check whether --enable-shared was given.
7172 if test "${enable_shared+set}" = set; then :
7173 enableval=$enable_shared;
7174 case $enable_shared in
7175 yes | no) ;;
7176 *)
7177 enable_shared=no
7178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7179 for pkg in $enableval; do
7180 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7181 enable_shared=yes
7182 fi
7183 done
7184 IFS="$ac_save_ifs"
7185 ;;
7186 esac
7187
7188 else
7189 enable_shared=yes
7190 fi
7191
7192
7193
7194
7195 # Check whether --with-native-system-header-dir was given.
7196 if test "${with_native_system_header_dir+set}" = set; then :
7197 withval=$with_native_system_header_dir;
7198 case ${with_native_system_header_dir} in
7199 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7200 /* | [A-Za-z]:[\\/]*) ;;
7201 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7202 esac
7203 configured_native_system_header_dir="${withval}"
7204
7205 else
7206 configured_native_system_header_dir=
7207 fi
7208
7209
7210
7211 # Check whether --with-build-sysroot was given.
7212 if test "${with_build_sysroot+set}" = set; then :
7213 withval=$with_build_sysroot; if test x"$withval" != x ; then
7214 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7215 fi
7216 else
7217 SYSROOT_CFLAGS_FOR_TARGET=
7218 fi
7219
7220
7221
7222 if test "x$prefix" = xNONE; then
7223 test_prefix=/usr/local
7224 else
7225 test_prefix=$prefix
7226 fi
7227 if test "x$exec_prefix" = xNONE; then
7228 test_exec_prefix=$test_prefix
7229 else
7230 test_exec_prefix=$exec_prefix
7231 fi
7232
7233
7234 # Check whether --with-sysroot was given.
7235 if test "${with_sysroot+set}" = set; then :
7236 withval=$with_sysroot;
7237 case ${with_sysroot} in
7238 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7239 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7240 esac
7241
7242 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7243 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7244
7245 case ${TARGET_SYSTEM_ROOT} in
7246 "${test_prefix}"|"${test_prefix}/"*|\
7247 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7248 '${prefix}'|'${prefix}/'*|\
7249 '${exec_prefix}'|'${exec_prefix}/'*)
7250 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7251 TARGET_SYSTEM_ROOT_DEFINE="$t"
7252 ;;
7253 esac
7254
7255 else
7256
7257 TARGET_SYSTEM_ROOT=
7258 TARGET_SYSTEM_ROOT_DEFINE=
7259 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7260
7261 fi
7262
7263
7264
7265
7266
7267
7268 # Check whether --with-specs was given.
7269 if test "${with_specs+set}" = set; then :
7270 withval=$with_specs; CONFIGURE_SPECS=$withval
7271 else
7272 CONFIGURE_SPECS=
7273
7274 fi
7275
7276
7277
7278
7279
7280 # Check whether --with-pkgversion was given.
7281 if test "${with_pkgversion+set}" = set; then :
7282 withval=$with_pkgversion; case "$withval" in
7283 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7284 no) PKGVERSION= ;;
7285 *) PKGVERSION="($withval) " ;;
7286 esac
7287 else
7288 PKGVERSION="(GCC) "
7289
7290 fi
7291
7292
7293
7294
7295
7296 # Check whether --with-bugurl was given.
7297 if test "${with_bugurl+set}" = set; then :
7298 withval=$with_bugurl; case "$withval" in
7299 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7300 no) BUGURL=
7301 ;;
7302 *) BUGURL="$withval"
7303 ;;
7304 esac
7305 else
7306 BUGURL="http://gcc.gnu.org/bugs.html"
7307
7308 fi
7309
7310 case ${BUGURL} in
7311 "")
7312 REPORT_BUGS_TO=
7313 REPORT_BUGS_TEXI=
7314 ;;
7315 *)
7316 REPORT_BUGS_TO="<$BUGURL>"
7317 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7318 ;;
7319 esac;
7320
7321
7322
7323
7324 # Sanity check enable_languages in case someone does not run the toplevel
7325 # configure # script.
7326 # Check whether --enable-languages was given.
7327 if test "${enable_languages+set}" = set; then :
7328 enableval=$enable_languages; case ,${enable_languages}, in
7329 ,,|,yes,)
7330 # go safe -- we cannot be much sure without the toplevel
7331 # configure's
7332 # analysis of which target libs are present and usable
7333 enable_languages=c
7334 ;;
7335 *,all,*)
7336 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7337 ;;
7338 *,c,*)
7339 ;;
7340 *)
7341 enable_languages=c,${enable_languages}
7342 ;;
7343 esac
7344 else
7345 enable_languages=c
7346 fi
7347
7348
7349
7350 # Check whether --with-multilib-list was given.
7351 if test "${with_multilib_list+set}" = set; then :
7352 withval=$with_multilib_list; :
7353 else
7354 with_multilib_list=default
7355 fi
7356
7357
7358 # -------------------------
7359 # Checks for other programs
7360 # -------------------------
7361
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7363 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7364 set x ${MAKE-make}
7365 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7366 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7367 $as_echo_n "(cached) " >&6
7368 else
7369 cat >conftest.make <<\_ACEOF
7370 SHELL = /bin/sh
7371 all:
7372 @echo '@@@%%%=$(MAKE)=@@@%%%'
7373 _ACEOF
7374 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7375 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7376 *@@@%%%=?*=@@@%%%*)
7377 eval ac_cv_prog_make_${ac_make}_set=yes;;
7378 *)
7379 eval ac_cv_prog_make_${ac_make}_set=no;;
7380 esac
7381 rm -f conftest.make
7382 fi
7383 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7385 $as_echo "yes" >&6; }
7386 SET_MAKE=
7387 else
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7389 $as_echo "no" >&6; }
7390 SET_MAKE="MAKE=${MAKE-make}"
7391 fi
7392
7393
7394 # Find some useful tools
7395 for ac_prog in gawk mawk nawk awk
7396 do
7397 # Extract the first word of "$ac_prog", so it can be a program name with args.
7398 set dummy $ac_prog; ac_word=$2
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7400 $as_echo_n "checking for $ac_word... " >&6; }
7401 if test "${ac_cv_prog_AWK+set}" = set; then :
7402 $as_echo_n "(cached) " >&6
7403 else
7404 if test -n "$AWK"; then
7405 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7406 else
7407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408 for as_dir in $PATH
7409 do
7410 IFS=$as_save_IFS
7411 test -z "$as_dir" && as_dir=.
7412 for ac_exec_ext in '' $ac_executable_extensions; do
7413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7414 ac_cv_prog_AWK="$ac_prog"
7415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7416 break 2
7417 fi
7418 done
7419 done
7420 IFS=$as_save_IFS
7421
7422 fi
7423 fi
7424 AWK=$ac_cv_prog_AWK
7425 if test -n "$AWK"; then
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7427 $as_echo "$AWK" >&6; }
7428 else
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7430 $as_echo "no" >&6; }
7431 fi
7432
7433
7434 test -n "$AWK" && break
7435 done
7436
7437 # We need awk to create options.c and options.h.
7438 # Bail out if it's missing.
7439 case ${AWK} in
7440 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7441 esac
7442
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7444 $as_echo_n "checking whether ln -s works... " >&6; }
7445 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7446 $as_echo_n "(cached) " >&6
7447 else
7448 rm -f conftestdata_t
7449 echo >conftestdata_f
7450 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7451 then
7452 gcc_cv_prog_LN_S="ln -s"
7453 else
7454 if ln conftestdata_f conftestdata_t 2>/dev/null
7455 then
7456 gcc_cv_prog_LN_S=ln
7457 else
7458 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7459 then
7460 gcc_cv_prog_LN_S="cp -p"
7461 else
7462 gcc_cv_prog_LN_S=cp
7463 fi
7464 fi
7465 fi
7466 rm -f conftestdata_f conftestdata_t
7467
7468 fi
7469 LN_S="$gcc_cv_prog_LN_S"
7470 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7472 $as_echo "yes" >&6; }
7473 else
7474 if test "$gcc_cv_prog_LN_S" = "ln"; then
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7476 $as_echo "no, using ln" >&6; }
7477 else
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7479 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7480 fi
7481 fi
7482
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7484 $as_echo_n "checking whether ln works... " >&6; }
7485 if test "${acx_cv_prog_LN+set}" = set; then :
7486 $as_echo_n "(cached) " >&6
7487 else
7488 rm -f conftestdata_t
7489 echo >conftestdata_f
7490 if ln conftestdata_f conftestdata_t 2>/dev/null
7491 then
7492 acx_cv_prog_LN=ln
7493 else
7494 acx_cv_prog_LN=no
7495 fi
7496 rm -f conftestdata_f conftestdata_t
7497
7498 fi
7499 if test $acx_cv_prog_LN = no; then
7500 LN="$LN_S"
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7502 $as_echo "no, using $LN" >&6; }
7503 else
7504 LN="$acx_cv_prog_LN"
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7506 $as_echo "yes" >&6; }
7507 fi
7508
7509 if test -n "$ac_tool_prefix"; then
7510 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7511 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7513 $as_echo_n "checking for $ac_word... " >&6; }
7514 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7515 $as_echo_n "(cached) " >&6
7516 else
7517 if test -n "$RANLIB"; then
7518 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7519 else
7520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521 for as_dir in $PATH
7522 do
7523 IFS=$as_save_IFS
7524 test -z "$as_dir" && as_dir=.
7525 for ac_exec_ext in '' $ac_executable_extensions; do
7526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7527 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7529 break 2
7530 fi
7531 done
7532 done
7533 IFS=$as_save_IFS
7534
7535 fi
7536 fi
7537 RANLIB=$ac_cv_prog_RANLIB
7538 if test -n "$RANLIB"; then
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7540 $as_echo "$RANLIB" >&6; }
7541 else
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7543 $as_echo "no" >&6; }
7544 fi
7545
7546
7547 fi
7548 if test -z "$ac_cv_prog_RANLIB"; then
7549 ac_ct_RANLIB=$RANLIB
7550 # Extract the first word of "ranlib", so it can be a program name with args.
7551 set dummy ranlib; ac_word=$2
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7553 $as_echo_n "checking for $ac_word... " >&6; }
7554 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7555 $as_echo_n "(cached) " >&6
7556 else
7557 if test -n "$ac_ct_RANLIB"; then
7558 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7559 else
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 for as_dir in $PATH
7562 do
7563 IFS=$as_save_IFS
7564 test -z "$as_dir" && as_dir=.
7565 for ac_exec_ext in '' $ac_executable_extensions; do
7566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7567 ac_cv_prog_ac_ct_RANLIB="ranlib"
7568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7569 break 2
7570 fi
7571 done
7572 done
7573 IFS=$as_save_IFS
7574
7575 fi
7576 fi
7577 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7578 if test -n "$ac_ct_RANLIB"; then
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7580 $as_echo "$ac_ct_RANLIB" >&6; }
7581 else
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7583 $as_echo "no" >&6; }
7584 fi
7585
7586 if test "x$ac_ct_RANLIB" = x; then
7587 RANLIB=":"
7588 else
7589 case $cross_compiling:$ac_tool_warned in
7590 yes:)
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7593 ac_tool_warned=yes ;;
7594 esac
7595 RANLIB=$ac_ct_RANLIB
7596 fi
7597 else
7598 RANLIB="$ac_cv_prog_RANLIB"
7599 fi
7600
7601 ranlib_flags=""
7602
7603
7604 # Find a good install program. We prefer a C program (faster),
7605 # so one script is as good as another. But avoid the broken or
7606 # incompatible versions:
7607 # SysV /etc/install, /usr/sbin/install
7608 # SunOS /usr/etc/install
7609 # IRIX /sbin/install
7610 # AIX /bin/install
7611 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7612 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7613 # ./install, which can be erroneously created by make from ./install.sh.
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7615 $as_echo_n "checking for a BSD compatible install... " >&6; }
7616 if test -z "$INSTALL"; then
7617 if test "${ac_cv_path_install+set}" = set; then :
7618 $as_echo_n "(cached) " >&6
7619 else
7620 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7621 for ac_dir in $PATH; do
7622 # Account for people who put trailing slashes in PATH elements.
7623 case "$ac_dir/" in
7624 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7625 *)
7626 # OSF1 and SCO ODT 3.0 have their own names for install.
7627 for ac_prog in ginstall scoinst install; do
7628 if test -f $ac_dir/$ac_prog; then
7629 if test $ac_prog = install &&
7630 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7631 # AIX install. It has an incompatible calling convention.
7632 # OSF/1 installbsd also uses dspmsg, but is usable.
7633 :
7634 else
7635 ac_cv_path_install="$ac_dir/$ac_prog -c"
7636 break 2
7637 fi
7638 fi
7639 done
7640 ;;
7641 esac
7642 done
7643 IFS="$ac_save_IFS"
7644
7645 fi
7646 if test "${ac_cv_path_install+set}" = set; then
7647 INSTALL="$ac_cv_path_install"
7648 else
7649 # As a last resort, use the slow shell script. We don't cache a
7650 # path for INSTALL within a source directory, because that will
7651 # break other packages using the cache if that directory is
7652 # removed, or if the path is relative.
7653 INSTALL="$ac_install_sh"
7654 fi
7655 fi
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7657 $as_echo "$INSTALL" >&6; }
7658
7659 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7660 # It thinks the first close brace ends the variable substitution.
7661 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7662
7663 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7664
7665
7666 # See if cmp has --ignore-initial.
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7668 $as_echo_n "checking for cmp's capabilities... " >&6; }
7669 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7670 $as_echo_n "(cached) " >&6
7671 else
7672 echo abfoo >t1
7673 echo cdfoo >t2
7674 gcc_cv_prog_cmp_skip=slowcompare
7675 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7676 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7677 :
7678 else
7679 gcc_cv_prog_cmp_skip=gnucompare
7680 fi
7681 fi
7682 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7683 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7684 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7685 :
7686 else
7687 gcc_cv_prog_cmp_skip=fastcompare
7688 fi
7689 fi
7690 fi
7691 rm t1 t2
7692
7693 fi
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7695 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7696 make_compare_target=$gcc_cv_prog_cmp_skip
7697
7698
7699
7700 # See if we have the mktemp command.
7701 # Extract the first word of "mktemp", so it can be a program name with args.
7702 set dummy mktemp; ac_word=$2
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7704 $as_echo_n "checking for $ac_word... " >&6; }
7705 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7706 $as_echo_n "(cached) " >&6
7707 else
7708 if test -n "$have_mktemp_command"; then
7709 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7710 else
7711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712 for as_dir in $PATH
7713 do
7714 IFS=$as_save_IFS
7715 test -z "$as_dir" && as_dir=.
7716 for ac_exec_ext in '' $ac_executable_extensions; do
7717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7718 ac_cv_prog_have_mktemp_command="yes"
7719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7720 break 2
7721 fi
7722 done
7723 done
7724 IFS=$as_save_IFS
7725
7726 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7727 fi
7728 fi
7729 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7730 if test -n "$have_mktemp_command"; then
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7732 $as_echo "$have_mktemp_command" >&6; }
7733 else
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7735 $as_echo "no" >&6; }
7736 fi
7737
7738
7739
7740 # See if makeinfo has been installed and is modern enough
7741 # that we can use it.
7742
7743 # Extract the first word of "makeinfo", so it can be a program name with args.
7744 set dummy makeinfo; ac_word=$2
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7746 $as_echo_n "checking for $ac_word... " >&6; }
7747 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7748 $as_echo_n "(cached) " >&6
7749 else
7750 if test -n "$MAKEINFO"; then
7751 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7752 else
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 for as_dir in $PATH
7755 do
7756 IFS=$as_save_IFS
7757 test -z "$as_dir" && as_dir=.
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7760 ac_cv_prog_MAKEINFO="makeinfo"
7761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 break 2
7763 fi
7764 done
7765 done
7766 IFS=$as_save_IFS
7767
7768 fi
7769 fi
7770 MAKEINFO=$ac_cv_prog_MAKEINFO
7771 if test -n "$MAKEINFO"; then
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7773 $as_echo "$MAKEINFO" >&6; }
7774 else
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7776 $as_echo "no" >&6; }
7777 fi
7778
7779
7780 if test -n "$MAKEINFO"; then
7781 # Found it, now check the version.
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7783 $as_echo_n "checking for modern makeinfo... " >&6; }
7784 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7785 $as_echo_n "(cached) " >&6
7786 else
7787 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7788 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7789
7790 case $ac_prog_version in
7791 '') gcc_cv_prog_makeinfo_modern=no;;
7792 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7793 *) gcc_cv_prog_makeinfo_modern=no;;
7794 esac
7795
7796 fi
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7798 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7799 else
7800 gcc_cv_prog_makeinfo_modern=no
7801 fi
7802 if test $gcc_cv_prog_makeinfo_modern = no; then
7803 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7804 fi
7805
7806 if test $gcc_cv_prog_makeinfo_modern = no; then
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7808 *** Makeinfo is missing or too old.
7809 *** Info documentation will not be built." >&5
7810 $as_echo "$as_me: WARNING:
7811 *** Makeinfo is missing or too old.
7812 *** Info documentation will not be built." >&2;}
7813 BUILD_INFO=
7814 else
7815 BUILD_INFO=info
7816 fi
7817
7818
7819 # Is pod2man recent enough to regenerate manpages?
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7821 $as_echo_n "checking for recent Pod::Man... " >&6; }
7822 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7824 $as_echo "yes" >&6; }
7825 GENERATED_MANPAGES=generated-manpages
7826 else
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828 $as_echo "no" >&6; }
7829 GENERATED_MANPAGES=
7830 fi
7831
7832
7833 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7834
7835 # How about lex?
7836 for ac_prog in flex
7837 do
7838 # Extract the first word of "$ac_prog", so it can be a program name with args.
7839 set dummy $ac_prog; ac_word=$2
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7841 $as_echo_n "checking for $ac_word... " >&6; }
7842 if test "${ac_cv_prog_FLEX+set}" = set; then :
7843 $as_echo_n "(cached) " >&6
7844 else
7845 if test -n "$FLEX"; then
7846 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7847 else
7848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849 for as_dir in $PATH
7850 do
7851 IFS=$as_save_IFS
7852 test -z "$as_dir" && as_dir=.
7853 for ac_exec_ext in '' $ac_executable_extensions; do
7854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7855 ac_cv_prog_FLEX="$ac_prog"
7856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7857 break 2
7858 fi
7859 done
7860 done
7861 IFS=$as_save_IFS
7862
7863 fi
7864 fi
7865 FLEX=$ac_cv_prog_FLEX
7866 if test -n "$FLEX"; then
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7868 $as_echo "$FLEX" >&6; }
7869 else
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871 $as_echo "no" >&6; }
7872 fi
7873
7874
7875 test -n "$FLEX" && break
7876 done
7877 test -n "$FLEX" || FLEX="$MISSING flex"
7878
7879
7880 # Bison?
7881 for ac_prog in bison
7882 do
7883 # Extract the first word of "$ac_prog", so it can be a program name with args.
7884 set dummy $ac_prog; ac_word=$2
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7886 $as_echo_n "checking for $ac_word... " >&6; }
7887 if test "${ac_cv_prog_BISON+set}" = set; then :
7888 $as_echo_n "(cached) " >&6
7889 else
7890 if test -n "$BISON"; then
7891 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7892 else
7893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894 for as_dir in $PATH
7895 do
7896 IFS=$as_save_IFS
7897 test -z "$as_dir" && as_dir=.
7898 for ac_exec_ext in '' $ac_executable_extensions; do
7899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7900 ac_cv_prog_BISON="$ac_prog"
7901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7902 break 2
7903 fi
7904 done
7905 done
7906 IFS=$as_save_IFS
7907
7908 fi
7909 fi
7910 BISON=$ac_cv_prog_BISON
7911 if test -n "$BISON"; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7913 $as_echo "$BISON" >&6; }
7914 else
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916 $as_echo "no" >&6; }
7917 fi
7918
7919
7920 test -n "$BISON" && break
7921 done
7922 test -n "$BISON" || BISON="$MISSING bison"
7923
7924
7925 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7926 # check for build == host before using them.
7927
7928 # NM
7929 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7930 && test -d ../binutils ; then
7931 NM='${objdir}/../binutils/nm-new'
7932 else
7933 # Extract the first word of "nm", so it can be a program name with args.
7934 set dummy nm; ac_word=$2
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936 $as_echo_n "checking for $ac_word... " >&6; }
7937 if test "${ac_cv_prog_NM+set}" = set; then :
7938 $as_echo_n "(cached) " >&6
7939 else
7940 if test -n "$NM"; then
7941 ac_cv_prog_NM="$NM" # Let the user override the test.
7942 else
7943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944 for as_dir in $PATH
7945 do
7946 IFS=$as_save_IFS
7947 test -z "$as_dir" && as_dir=.
7948 for ac_exec_ext in '' $ac_executable_extensions; do
7949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7950 ac_cv_prog_NM="nm"
7951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7952 break 2
7953 fi
7954 done
7955 done
7956 IFS=$as_save_IFS
7957
7958 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7959 fi
7960 fi
7961 NM=$ac_cv_prog_NM
7962 if test -n "$NM"; then
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7964 $as_echo "$NM" >&6; }
7965 else
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7967 $as_echo "no" >&6; }
7968 fi
7969
7970
7971 fi
7972
7973 # AR
7974 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7975 && test -d ../binutils ; then
7976 AR='${objdir}/../binutils/ar'
7977 else
7978 # Extract the first word of "ar", so it can be a program name with args.
7979 set dummy ar; ac_word=$2
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7981 $as_echo_n "checking for $ac_word... " >&6; }
7982 if test "${ac_cv_prog_AR+set}" = set; then :
7983 $as_echo_n "(cached) " >&6
7984 else
7985 if test -n "$AR"; then
7986 ac_cv_prog_AR="$AR" # Let the user override the test.
7987 else
7988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989 for as_dir in $PATH
7990 do
7991 IFS=$as_save_IFS
7992 test -z "$as_dir" && as_dir=.
7993 for ac_exec_ext in '' $ac_executable_extensions; do
7994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7995 ac_cv_prog_AR="ar"
7996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7997 break 2
7998 fi
7999 done
8000 done
8001 IFS=$as_save_IFS
8002
8003 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8004 fi
8005 fi
8006 AR=$ac_cv_prog_AR
8007 if test -n "$AR"; then
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8009 $as_echo "$AR" >&6; }
8010 else
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012 $as_echo "no" >&6; }
8013 fi
8014
8015
8016 fi
8017
8018
8019 # --------------------
8020 # Checks for C headers
8021 # --------------------
8022
8023 # Need to reject headers which give warnings, so that the -Werror bootstrap
8024 # works later. *sigh* This needs to come before all header checks.
8025
8026 ac_c_preproc_warn_flag=yes
8027
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8029 $as_echo_n "checking for ANSI C header files... " >&6; }
8030 if test "${ac_cv_header_stdc+set}" = set; then :
8031 $as_echo_n "(cached) " >&6
8032 else
8033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8034 /* end confdefs.h. */
8035 #include <stdlib.h>
8036 #include <stdarg.h>
8037 #include <string.h>
8038 #include <float.h>
8039
8040 int
8041 main ()
8042 {
8043
8044 ;
8045 return 0;
8046 }
8047 _ACEOF
8048 if ac_fn_c_try_compile "$LINENO"; then :
8049 ac_cv_header_stdc=yes
8050 else
8051 ac_cv_header_stdc=no
8052 fi
8053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8054
8055 if test $ac_cv_header_stdc = yes; then
8056 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8058 /* end confdefs.h. */
8059 #include <string.h>
8060
8061 _ACEOF
8062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8063 $EGREP "memchr" >/dev/null 2>&1; then :
8064
8065 else
8066 ac_cv_header_stdc=no
8067 fi
8068 rm -f conftest*
8069
8070 fi
8071
8072 if test $ac_cv_header_stdc = yes; then
8073 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075 /* end confdefs.h. */
8076 #include <stdlib.h>
8077
8078 _ACEOF
8079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8080 $EGREP "free" >/dev/null 2>&1; then :
8081
8082 else
8083 ac_cv_header_stdc=no
8084 fi
8085 rm -f conftest*
8086
8087 fi
8088
8089 if test $ac_cv_header_stdc = yes; then
8090 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8091 if test "$cross_compiling" = yes; then :
8092 :
8093 else
8094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8095 /* end confdefs.h. */
8096 #include <ctype.h>
8097 #include <stdlib.h>
8098 #if ((' ' & 0x0FF) == 0x020)
8099 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8100 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8101 #else
8102 # define ISLOWER(c) \
8103 (('a' <= (c) && (c) <= 'i') \
8104 || ('j' <= (c) && (c) <= 'r') \
8105 || ('s' <= (c) && (c) <= 'z'))
8106 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8107 #endif
8108
8109 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8110 int
8111 main ()
8112 {
8113 int i;
8114 for (i = 0; i < 256; i++)
8115 if (XOR (islower (i), ISLOWER (i))
8116 || toupper (i) != TOUPPER (i))
8117 return 2;
8118 return 0;
8119 }
8120 _ACEOF
8121 if ac_fn_c_try_run "$LINENO"; then :
8122
8123 else
8124 ac_cv_header_stdc=no
8125 fi
8126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8127 conftest.$ac_objext conftest.beam conftest.$ac_ext
8128 fi
8129
8130 fi
8131 fi
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8133 $as_echo "$ac_cv_header_stdc" >&6; }
8134 if test $ac_cv_header_stdc = yes; then
8135
8136 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8137
8138 fi
8139
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8141 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8142 if test "${ac_cv_header_time+set}" = set; then :
8143 $as_echo_n "(cached) " >&6
8144 else
8145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146 /* end confdefs.h. */
8147 #include <sys/types.h>
8148 #include <sys/time.h>
8149 #include <time.h>
8150
8151 int
8152 main ()
8153 {
8154 if ((struct tm *) 0)
8155 return 0;
8156 ;
8157 return 0;
8158 }
8159 _ACEOF
8160 if ac_fn_c_try_compile "$LINENO"; then :
8161 ac_cv_header_time=yes
8162 else
8163 ac_cv_header_time=no
8164 fi
8165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8166 fi
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8168 $as_echo "$ac_cv_header_time" >&6; }
8169 if test $ac_cv_header_time = yes; then
8170
8171 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8172
8173 fi
8174
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8176 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8177 if test "${gcc_cv_header_string+set}" = set; then :
8178 $as_echo_n "(cached) " >&6
8179 else
8180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8181 /* end confdefs.h. */
8182 #include <string.h>
8183 #include <strings.h>
8184 int
8185 main ()
8186 {
8187
8188 ;
8189 return 0;
8190 }
8191 _ACEOF
8192 if ac_fn_c_try_compile "$LINENO"; then :
8193 gcc_cv_header_string=yes
8194 else
8195 gcc_cv_header_string=no
8196 fi
8197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8198 fi
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8200 $as_echo "$gcc_cv_header_string" >&6; }
8201 if test $gcc_cv_header_string = yes; then
8202
8203 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8204
8205 fi
8206
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8208 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8209 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8210 $as_echo_n "(cached) " >&6
8211 else
8212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8213 /* end confdefs.h. */
8214 #include <sys/types.h>
8215 #include <sys/wait.h>
8216 #ifndef WEXITSTATUS
8217 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8218 #endif
8219 #ifndef WIFEXITED
8220 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8221 #endif
8222
8223 int
8224 main ()
8225 {
8226 int s;
8227 wait (&s);
8228 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8229 ;
8230 return 0;
8231 }
8232 _ACEOF
8233 if ac_fn_c_try_compile "$LINENO"; then :
8234 ac_cv_header_sys_wait_h=yes
8235 else
8236 ac_cv_header_sys_wait_h=no
8237 fi
8238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8239 fi
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8241 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8242 if test $ac_cv_header_sys_wait_h = yes; then
8243
8244 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8245
8246 fi
8247
8248 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8249 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8250 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8251 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h libintl.h
8252 do :
8253 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8254 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8255 eval as_val=\$$as_ac_Header
8256 if test "x$as_val" = x""yes; then :
8257 cat >>confdefs.h <<_ACEOF
8258 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8259 _ACEOF
8260
8261 fi
8262 done
8263
8264
8265 # Check for thread headers.
8266 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8267 if test "x$ac_cv_header_thread_h" = x""yes; then :
8268 have_thread_h=yes
8269 else
8270 have_thread_h=
8271 fi
8272
8273 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8274 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8275 have_pthread_h=yes
8276 else
8277 have_pthread_h=
8278 fi
8279
8280
8281 # These tests can't be done till we know if we have limits.h.
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8283 $as_echo_n "checking for CHAR_BIT... " >&6; }
8284 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8285 $as_echo_n "(cached) " >&6
8286 else
8287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288 /* end confdefs.h. */
8289 #ifdef HAVE_LIMITS_H
8290 #include <limits.h>
8291 #endif
8292 #ifdef CHAR_BIT
8293 found
8294 #endif
8295 _ACEOF
8296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8297 $EGREP "found" >/dev/null 2>&1; then :
8298 gcc_cv_decl_char_bit=yes
8299 else
8300 gcc_cv_decl_char_bit=no
8301 fi
8302 rm -f conftest*
8303
8304
8305 fi
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8307 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8308 if test $gcc_cv_decl_char_bit = no; then
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8310 $as_echo_n "checking number of bits in a byte... " >&6; }
8311 if test "${gcc_cv_c_nbby+set}" = set; then :
8312 $as_echo_n "(cached) " >&6
8313 else
8314 i=8
8315 gcc_cv_c_nbby=
8316 while test $i -lt 65; do
8317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318 /* end confdefs.h. */
8319
8320 int
8321 main ()
8322 {
8323 switch(0) {
8324 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8325 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8326 ; }
8327 ;
8328 return 0;
8329 }
8330 _ACEOF
8331 if ac_fn_c_try_compile "$LINENO"; then :
8332 gcc_cv_c_nbby=$i; break
8333 fi
8334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8335 i=`expr $i + 1`
8336 done
8337 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8338
8339 fi
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8341 $as_echo "$gcc_cv_c_nbby" >&6; }
8342 if test $gcc_cv_c_nbby = failed; then
8343 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8344 else
8345
8346 cat >>confdefs.h <<_ACEOF
8347 #define CHAR_BIT $gcc_cv_c_nbby
8348 _ACEOF
8349
8350 fi
8351 fi
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8353 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8354 if test "${ac_cv_c_bigendian+set}" = set; then :
8355 $as_echo_n "(cached) " >&6
8356 else
8357 ac_cv_c_bigendian=unknown
8358 # See if we're dealing with a universal compiler.
8359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8360 /* end confdefs.h. */
8361 #ifndef __APPLE_CC__
8362 not a universal capable compiler
8363 #endif
8364 typedef int dummy;
8365
8366 _ACEOF
8367 if ac_fn_c_try_compile "$LINENO"; then :
8368
8369 # Check for potential -arch flags. It is not universal unless
8370 # there are at least two -arch flags with different values.
8371 ac_arch=
8372 ac_prev=
8373 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8374 if test -n "$ac_prev"; then
8375 case $ac_word in
8376 i?86 | x86_64 | ppc | ppc64)
8377 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8378 ac_arch=$ac_word
8379 else
8380 ac_cv_c_bigendian=universal
8381 break
8382 fi
8383 ;;
8384 esac
8385 ac_prev=
8386 elif test "x$ac_word" = "x-arch"; then
8387 ac_prev=arch
8388 fi
8389 done
8390 fi
8391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8392 if test $ac_cv_c_bigendian = unknown; then
8393 # See if sys/param.h defines the BYTE_ORDER macro.
8394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8395 /* end confdefs.h. */
8396 #include <sys/types.h>
8397 #include <sys/param.h>
8398
8399 int
8400 main ()
8401 {
8402 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8403 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8404 && LITTLE_ENDIAN)
8405 bogus endian macros
8406 #endif
8407
8408 ;
8409 return 0;
8410 }
8411 _ACEOF
8412 if ac_fn_c_try_compile "$LINENO"; then :
8413 # It does; now see whether it defined to BIG_ENDIAN or not.
8414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8415 /* end confdefs.h. */
8416 #include <sys/types.h>
8417 #include <sys/param.h>
8418
8419 int
8420 main ()
8421 {
8422 #if BYTE_ORDER != BIG_ENDIAN
8423 not big endian
8424 #endif
8425
8426 ;
8427 return 0;
8428 }
8429 _ACEOF
8430 if ac_fn_c_try_compile "$LINENO"; then :
8431 ac_cv_c_bigendian=yes
8432 else
8433 ac_cv_c_bigendian=no
8434 fi
8435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8436 fi
8437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8438 fi
8439 if test $ac_cv_c_bigendian = unknown; then
8440 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8442 /* end confdefs.h. */
8443 #include <limits.h>
8444
8445 int
8446 main ()
8447 {
8448 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8449 bogus endian macros
8450 #endif
8451
8452 ;
8453 return 0;
8454 }
8455 _ACEOF
8456 if ac_fn_c_try_compile "$LINENO"; then :
8457 # It does; now see whether it defined to _BIG_ENDIAN or not.
8458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459 /* end confdefs.h. */
8460 #include <limits.h>
8461
8462 int
8463 main ()
8464 {
8465 #ifndef _BIG_ENDIAN
8466 not big endian
8467 #endif
8468
8469 ;
8470 return 0;
8471 }
8472 _ACEOF
8473 if ac_fn_c_try_compile "$LINENO"; then :
8474 ac_cv_c_bigendian=yes
8475 else
8476 ac_cv_c_bigendian=no
8477 fi
8478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8479 fi
8480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8481 fi
8482 if test $ac_cv_c_bigendian = unknown; then
8483 # Compile a test program.
8484 if test "$cross_compiling" = yes; then :
8485 # Try to guess by grepping values from an object file.
8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8488 short int ascii_mm[] =
8489 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8490 short int ascii_ii[] =
8491 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8492 int use_ascii (int i) {
8493 return ascii_mm[i] + ascii_ii[i];
8494 }
8495 short int ebcdic_ii[] =
8496 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8497 short int ebcdic_mm[] =
8498 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8499 int use_ebcdic (int i) {
8500 return ebcdic_mm[i] + ebcdic_ii[i];
8501 }
8502 extern int foo;
8503
8504 int
8505 main ()
8506 {
8507 return use_ascii (foo) == use_ebcdic (foo);
8508 ;
8509 return 0;
8510 }
8511 _ACEOF
8512 if ac_fn_c_try_compile "$LINENO"; then :
8513 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8514 ac_cv_c_bigendian=yes
8515 fi
8516 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8517 if test "$ac_cv_c_bigendian" = unknown; then
8518 ac_cv_c_bigendian=no
8519 else
8520 # finding both strings is unlikely to happen, but who knows?
8521 ac_cv_c_bigendian=unknown
8522 fi
8523 fi
8524 fi
8525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8526 else
8527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8528 /* end confdefs.h. */
8529 $ac_includes_default
8530 int
8531 main ()
8532 {
8533
8534 /* Are we little or big endian? From Harbison&Steele. */
8535 union
8536 {
8537 long int l;
8538 char c[sizeof (long int)];
8539 } u;
8540 u.l = 1;
8541 return u.c[sizeof (long int) - 1] == 1;
8542
8543 ;
8544 return 0;
8545 }
8546 _ACEOF
8547 if ac_fn_c_try_run "$LINENO"; then :
8548 ac_cv_c_bigendian=no
8549 else
8550 ac_cv_c_bigendian=yes
8551 fi
8552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8553 conftest.$ac_objext conftest.beam conftest.$ac_ext
8554 fi
8555
8556 fi
8557 fi
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8559 $as_echo "$ac_cv_c_bigendian" >&6; }
8560 case $ac_cv_c_bigendian in #(
8561 yes)
8562 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8563 ;; #(
8564 no)
8565 ;; #(
8566 universal)
8567
8568 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8569
8570 ;; #(
8571 *)
8572 as_fn_error "unknown endianness
8573 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8574 esac
8575
8576
8577 # ----------------------
8578 # Checks for C++ headers
8579 # ----------------------
8580
8581 ac_ext=cpp
8582 ac_cpp='$CXXCPP $CPPFLAGS'
8583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8587 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8588 if test -z "$CXXCPP"; then
8589 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8590 $as_echo_n "(cached) " >&6
8591 else
8592 # Double quotes because CXXCPP needs to be expanded
8593 for CXXCPP in "$CXX -E" "/lib/cpp"
8594 do
8595 ac_preproc_ok=false
8596 for ac_cxx_preproc_warn_flag in '' yes
8597 do
8598 # Use a header file that comes with gcc, so configuring glibc
8599 # with a fresh cross-compiler works.
8600 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8601 # <limits.h> exists even on freestanding compilers.
8602 # On the NeXT, cc -E runs the code through the compiler's parser,
8603 # not just through cpp. "Syntax error" is here to catch this case.
8604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8606 #ifdef __STDC__
8607 # include <limits.h>
8608 #else
8609 # include <assert.h>
8610 #endif
8611 Syntax error
8612 _ACEOF
8613 if ac_fn_cxx_try_cpp "$LINENO"; then :
8614
8615 else
8616 # Broken: fails on valid input.
8617 continue
8618 fi
8619 rm -f conftest.err conftest.$ac_ext
8620
8621 # OK, works on sane cases. Now check whether nonexistent headers
8622 # can be detected and how.
8623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8624 /* end confdefs.h. */
8625 #include <ac_nonexistent.h>
8626 _ACEOF
8627 if ac_fn_cxx_try_cpp "$LINENO"; then :
8628 # Broken: success on invalid input.
8629 continue
8630 else
8631 # Passes both tests.
8632 ac_preproc_ok=:
8633 break
8634 fi
8635 rm -f conftest.err conftest.$ac_ext
8636
8637 done
8638 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8639 rm -f conftest.err conftest.$ac_ext
8640 if $ac_preproc_ok; then :
8641 break
8642 fi
8643
8644 done
8645 ac_cv_prog_CXXCPP=$CXXCPP
8646
8647 fi
8648 CXXCPP=$ac_cv_prog_CXXCPP
8649 else
8650 ac_cv_prog_CXXCPP=$CXXCPP
8651 fi
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8653 $as_echo "$CXXCPP" >&6; }
8654 ac_preproc_ok=false
8655 for ac_cxx_preproc_warn_flag in '' yes
8656 do
8657 # Use a header file that comes with gcc, so configuring glibc
8658 # with a fresh cross-compiler works.
8659 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8660 # <limits.h> exists even on freestanding compilers.
8661 # On the NeXT, cc -E runs the code through the compiler's parser,
8662 # not just through cpp. "Syntax error" is here to catch this case.
8663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8664 /* end confdefs.h. */
8665 #ifdef __STDC__
8666 # include <limits.h>
8667 #else
8668 # include <assert.h>
8669 #endif
8670 Syntax error
8671 _ACEOF
8672 if ac_fn_cxx_try_cpp "$LINENO"; then :
8673
8674 else
8675 # Broken: fails on valid input.
8676 continue
8677 fi
8678 rm -f conftest.err conftest.$ac_ext
8679
8680 # OK, works on sane cases. Now check whether nonexistent headers
8681 # can be detected and how.
8682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8683 /* end confdefs.h. */
8684 #include <ac_nonexistent.h>
8685 _ACEOF
8686 if ac_fn_cxx_try_cpp "$LINENO"; then :
8687 # Broken: success on invalid input.
8688 continue
8689 else
8690 # Passes both tests.
8691 ac_preproc_ok=:
8692 break
8693 fi
8694 rm -f conftest.err conftest.$ac_ext
8695
8696 done
8697 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8698 rm -f conftest.err conftest.$ac_ext
8699 if $ac_preproc_ok; then :
8700
8701 else
8702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8705 See \`config.log' for more details." >&5
8706 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8707 See \`config.log' for more details." >&2;}; }
8708 fi
8709
8710 ac_ext=c
8711 ac_cpp='$CPP $CPPFLAGS'
8712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8715
8716
8717 ac_ext=cpp
8718 ac_cpp='$CXXCPP $CPPFLAGS'
8719 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8720 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8721 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8722
8723
8724
8725
8726 for ac_header in unordered_map
8727 do :
8728 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8729 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8730 cat >>confdefs.h <<_ACEOF
8731 #define HAVE_UNORDERED_MAP 1
8732 _ACEOF
8733
8734 fi
8735 done
8736
8737 for ac_header in tr1/unordered_map
8738 do :
8739 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8740 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8741 cat >>confdefs.h <<_ACEOF
8742 #define HAVE_TR1_UNORDERED_MAP 1
8743 _ACEOF
8744
8745 fi
8746 done
8747
8748 for ac_header in ext/hash_map
8749 do :
8750 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8751 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8752 cat >>confdefs.h <<_ACEOF
8753 #define HAVE_EXT_HASH_MAP 1
8754 _ACEOF
8755
8756 fi
8757 done
8758
8759
8760 ac_ext=c
8761 ac_cpp='$CPP $CPPFLAGS'
8762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8765
8766
8767 # --------
8768 # UNSORTED
8769 # --------
8770
8771
8772 # These libraries may be used by collect2.
8773 # We may need a special search path to get them linked.
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8775 $as_echo_n "checking for collect2 libraries... " >&6; }
8776 if test "${gcc_cv_collect2_libs+set}" = set; then :
8777 $as_echo_n "(cached) " >&6
8778 else
8779 save_LIBS="$LIBS"
8780 for libs in '' -lld -lmld \
8781 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8782 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8783 do
8784 LIBS="$libs"
8785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8786 /* end confdefs.h. */
8787
8788 /* Override any GCC internal prototype to avoid an error.
8789 Use char because int might match the return type of a GCC
8790 builtin and then its argument prototype would still apply. */
8791 #ifdef __cplusplus
8792 extern "C"
8793 #endif
8794 char ldopen ();
8795 int
8796 main ()
8797 {
8798 return ldopen ();
8799 ;
8800 return 0;
8801 }
8802 _ACEOF
8803 if ac_fn_c_try_link "$LINENO"; then :
8804 gcc_cv_collect2_libs="$libs"; break
8805 fi
8806 rm -f core conftest.err conftest.$ac_objext \
8807 conftest$ac_exeext conftest.$ac_ext
8808 done
8809 LIBS="$save_LIBS"
8810 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8811 fi
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8813 $as_echo "$gcc_cv_collect2_libs" >&6; }
8814 case $gcc_cv_collect2_libs in
8815 "none required") ;;
8816 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8817 esac
8818
8819
8820 # When building Ada code on Alpha, we need exc_resume which is usually in
8821 # -lexc. So test for it.
8822 save_LIBS="$LIBS"
8823 LIBS=
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8825 $as_echo_n "checking for library containing exc_resume... " >&6; }
8826 if test "${ac_cv_search_exc_resume+set}" = set; then :
8827 $as_echo_n "(cached) " >&6
8828 else
8829 ac_func_search_save_LIBS=$LIBS
8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h. */
8832
8833 /* Override any GCC internal prototype to avoid an error.
8834 Use char because int might match the return type of a GCC
8835 builtin and then its argument prototype would still apply. */
8836 #ifdef __cplusplus
8837 extern "C"
8838 #endif
8839 char exc_resume ();
8840 int
8841 main ()
8842 {
8843 return exc_resume ();
8844 ;
8845 return 0;
8846 }
8847 _ACEOF
8848 for ac_lib in '' exc; do
8849 if test -z "$ac_lib"; then
8850 ac_res="none required"
8851 else
8852 ac_res=-l$ac_lib
8853 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8854 fi
8855 if ac_fn_c_try_link "$LINENO"; then :
8856 ac_cv_search_exc_resume=$ac_res
8857 fi
8858 rm -f core conftest.err conftest.$ac_objext \
8859 conftest$ac_exeext
8860 if test "${ac_cv_search_exc_resume+set}" = set; then :
8861 break
8862 fi
8863 done
8864 if test "${ac_cv_search_exc_resume+set}" = set; then :
8865
8866 else
8867 ac_cv_search_exc_resume=no
8868 fi
8869 rm conftest.$ac_ext
8870 LIBS=$ac_func_search_save_LIBS
8871 fi
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8873 $as_echo "$ac_cv_search_exc_resume" >&6; }
8874 ac_res=$ac_cv_search_exc_resume
8875 if test "$ac_res" != no; then :
8876 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8877
8878 fi
8879
8880 GNAT_LIBEXC="$LIBS"
8881 LIBS="$save_LIBS"
8882
8883
8884 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8885 save_LIBS="$LIBS"
8886 LIBS=
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8888 $as_echo_n "checking for library containing kstat_open... " >&6; }
8889 if test "${ac_cv_search_kstat_open+set}" = set; then :
8890 $as_echo_n "(cached) " >&6
8891 else
8892 ac_func_search_save_LIBS=$LIBS
8893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8894 /* end confdefs.h. */
8895
8896 /* Override any GCC internal prototype to avoid an error.
8897 Use char because int might match the return type of a GCC
8898 builtin and then its argument prototype would still apply. */
8899 #ifdef __cplusplus
8900 extern "C"
8901 #endif
8902 char kstat_open ();
8903 int
8904 main ()
8905 {
8906 return kstat_open ();
8907 ;
8908 return 0;
8909 }
8910 _ACEOF
8911 for ac_lib in '' kstat; do
8912 if test -z "$ac_lib"; then
8913 ac_res="none required"
8914 else
8915 ac_res=-l$ac_lib
8916 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8917 fi
8918 if ac_fn_c_try_link "$LINENO"; then :
8919 ac_cv_search_kstat_open=$ac_res
8920 fi
8921 rm -f core conftest.err conftest.$ac_objext \
8922 conftest$ac_exeext
8923 if test "${ac_cv_search_kstat_open+set}" = set; then :
8924 break
8925 fi
8926 done
8927 if test "${ac_cv_search_kstat_open+set}" = set; then :
8928
8929 else
8930 ac_cv_search_kstat_open=no
8931 fi
8932 rm conftest.$ac_ext
8933 LIBS=$ac_func_search_save_LIBS
8934 fi
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8936 $as_echo "$ac_cv_search_kstat_open" >&6; }
8937 ac_res=$ac_cv_search_kstat_open
8938 if test "$ac_res" != no; then :
8939 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8940
8941 fi
8942
8943 EXTRA_GCC_LIBS="$LIBS"
8944 LIBS="$save_LIBS"
8945
8946
8947 # Some systems put ldexp and frexp in libm instead of libc; assume
8948 # they're both in the same place. jcf-dump needs them.
8949 save_LIBS="$LIBS"
8950 LIBS=
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8952 $as_echo_n "checking for library containing ldexp... " >&6; }
8953 if test "${ac_cv_search_ldexp+set}" = set; then :
8954 $as_echo_n "(cached) " >&6
8955 else
8956 ac_func_search_save_LIBS=$LIBS
8957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8958 /* end confdefs.h. */
8959
8960 /* Override any GCC internal prototype to avoid an error.
8961 Use char because int might match the return type of a GCC
8962 builtin and then its argument prototype would still apply. */
8963 #ifdef __cplusplus
8964 extern "C"
8965 #endif
8966 char ldexp ();
8967 int
8968 main ()
8969 {
8970 return ldexp ();
8971 ;
8972 return 0;
8973 }
8974 _ACEOF
8975 for ac_lib in '' m; do
8976 if test -z "$ac_lib"; then
8977 ac_res="none required"
8978 else
8979 ac_res=-l$ac_lib
8980 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8981 fi
8982 if ac_fn_c_try_link "$LINENO"; then :
8983 ac_cv_search_ldexp=$ac_res
8984 fi
8985 rm -f core conftest.err conftest.$ac_objext \
8986 conftest$ac_exeext
8987 if test "${ac_cv_search_ldexp+set}" = set; then :
8988 break
8989 fi
8990 done
8991 if test "${ac_cv_search_ldexp+set}" = set; then :
8992
8993 else
8994 ac_cv_search_ldexp=no
8995 fi
8996 rm conftest.$ac_ext
8997 LIBS=$ac_func_search_save_LIBS
8998 fi
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9000 $as_echo "$ac_cv_search_ldexp" >&6; }
9001 ac_res=$ac_cv_search_ldexp
9002 if test "$ac_res" != no; then :
9003 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9004
9005 fi
9006
9007 LDEXP_LIB="$LIBS"
9008 LIBS="$save_LIBS"
9009
9010
9011 # Use <inttypes.h> only if it exists,
9012 # doesn't clash with <sys/types.h>, and declares intmax_t.
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9014 $as_echo_n "checking for inttypes.h... " >&6; }
9015 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9016 $as_echo_n "(cached) " >&6
9017 else
9018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9019 /* end confdefs.h. */
9020 #include <sys/types.h>
9021 #include <inttypes.h>
9022 int
9023 main ()
9024 {
9025 intmax_t i = -1;
9026 ;
9027 return 0;
9028 }
9029 _ACEOF
9030 if ac_fn_c_try_compile "$LINENO"; then :
9031 gcc_cv_header_inttypes_h=yes
9032 else
9033 gcc_cv_header_inttypes_h=no
9034 fi
9035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9036 fi
9037
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9039 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9040 if test $gcc_cv_header_inttypes_h = yes; then
9041
9042 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9043
9044 fi
9045
9046
9047
9048 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9049 sysconf strsignal getrusage nl_langinfo \
9050 gettimeofday mbstowcs wcswidth mmap setlocale \
9051 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
9052 do :
9053 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9054 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9055 eval as_val=\$$as_ac_var
9056 if test "x$as_val" = x""yes; then :
9057 cat >>confdefs.h <<_ACEOF
9058 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9059 _ACEOF
9060
9061 fi
9062 done
9063
9064
9065 if test x$ac_cv_func_mbstowcs = xyes; then
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9067 $as_echo_n "checking whether mbstowcs works... " >&6; }
9068 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9069 $as_echo_n "(cached) " >&6
9070 else
9071 if test "$cross_compiling" = yes; then :
9072 gcc_cv_func_mbstowcs_works=yes
9073 else
9074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9075 /* end confdefs.h. */
9076 #include <stdlib.h>
9077 int main()
9078 {
9079 mbstowcs(0, "", 0);
9080 return 0;
9081 }
9082 _ACEOF
9083 if ac_fn_c_try_run "$LINENO"; then :
9084 gcc_cv_func_mbstowcs_works=yes
9085 else
9086 gcc_cv_func_mbstowcs_works=no
9087 fi
9088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9089 conftest.$ac_objext conftest.beam conftest.$ac_ext
9090 fi
9091
9092 fi
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9094 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9095 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9096
9097 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9098
9099 fi
9100 fi
9101
9102 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9103 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9104
9105 else
9106
9107 cat >>confdefs.h <<_ACEOF
9108 #define ssize_t int
9109 _ACEOF
9110
9111 fi
9112
9113 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9114 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9115
9116 else
9117
9118 cat >>confdefs.h <<_ACEOF
9119 #define caddr_t char *
9120 _ACEOF
9121
9122 fi
9123
9124
9125
9126 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9127 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9128 gcc_header_sys_mman_h=yes
9129 else
9130 gcc_header_sys_mman_h=no
9131 fi
9132
9133 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9134 if test "x$ac_cv_func_mmap" = x""yes; then :
9135 gcc_func_mmap=yes
9136 else
9137 gcc_func_mmap=no
9138 fi
9139
9140 if test "$gcc_header_sys_mman_h" != yes \
9141 || test "$gcc_func_mmap" != yes; then
9142 gcc_cv_func_mmap_file=no
9143 gcc_cv_func_mmap_dev_zero=no
9144 gcc_cv_func_mmap_anon=no
9145 else
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9147 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9148 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9149 $as_echo_n "(cached) " >&6
9150 else
9151 # Add a system to this blacklist if
9152 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9153 # memory area containing the same data that you'd get if you applied
9154 # read() to the same fd. The only system known to have a problem here
9155 # is VMS, where text files have record structure.
9156 case "$host_os" in
9157 *vms* | ultrix*)
9158 gcc_cv_func_mmap_file=no ;;
9159 *)
9160 gcc_cv_func_mmap_file=yes;;
9161 esac
9162 fi
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9164 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9166 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9167 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9168 $as_echo_n "(cached) " >&6
9169 else
9170 # Add a system to this blacklist if it has mmap() but /dev/zero
9171 # does not exist, or if mmapping /dev/zero does not give anonymous
9172 # zeroed pages with both the following properties:
9173 # 1. If you map N consecutive pages in with one call, and then
9174 # unmap any subset of those pages, the pages that were not
9175 # explicitly unmapped remain accessible.
9176 # 2. If you map two adjacent blocks of memory and then unmap them
9177 # both at once, they must both go away.
9178 # Systems known to be in this category are Windows (all variants),
9179 # VMS, and Darwin.
9180 case "$host_os" in
9181 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9182 gcc_cv_func_mmap_dev_zero=no ;;
9183 *)
9184 gcc_cv_func_mmap_dev_zero=yes;;
9185 esac
9186 fi
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9188 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9189
9190 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9192 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9193 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9194 $as_echo_n "(cached) " >&6
9195 else
9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h. */
9198 #include <sys/types.h>
9199 #include <sys/mman.h>
9200 #include <unistd.h>
9201
9202 #ifndef MAP_ANONYMOUS
9203 #define MAP_ANONYMOUS MAP_ANON
9204 #endif
9205
9206 int
9207 main ()
9208 {
9209 int n = MAP_ANONYMOUS;
9210 ;
9211 return 0;
9212 }
9213 _ACEOF
9214 if ac_fn_c_try_compile "$LINENO"; then :
9215 gcc_cv_decl_map_anon=yes
9216 else
9217 gcc_cv_decl_map_anon=no
9218 fi
9219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9220 fi
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9222 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9223
9224 if test $gcc_cv_decl_map_anon = no; then
9225 gcc_cv_func_mmap_anon=no
9226 else
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9228 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9229 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9230 $as_echo_n "(cached) " >&6
9231 else
9232 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9233 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9234 # doesn't give anonymous zeroed pages with the same properties listed
9235 # above for use of /dev/zero.
9236 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9237 case "$host_os" in
9238 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9239 gcc_cv_func_mmap_anon=no ;;
9240 *)
9241 gcc_cv_func_mmap_anon=yes;;
9242 esac
9243 fi
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9245 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9246 fi
9247 fi
9248
9249 if test $gcc_cv_func_mmap_file = yes; then
9250
9251 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9252
9253 fi
9254 if test $gcc_cv_func_mmap_dev_zero = yes; then
9255
9256 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9257
9258 fi
9259 if test $gcc_cv_func_mmap_anon = yes; then
9260
9261 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9262
9263 fi
9264
9265
9266 case "${host}" in
9267 *-*-*vms*)
9268 # Under VMS, vfork works very differently than on Unix. The standard test
9269 # won't work, and it isn't easily adaptable. It makes more sense to
9270 # just force it.
9271 ac_cv_func_vfork_works=yes
9272 ;;
9273 esac
9274 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9275 if test "x$ac_cv_type_pid_t" = x""yes; then :
9276
9277 else
9278
9279 cat >>confdefs.h <<_ACEOF
9280 #define pid_t int
9281 _ACEOF
9282
9283 fi
9284
9285 for ac_header in vfork.h
9286 do :
9287 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9288 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9289 cat >>confdefs.h <<_ACEOF
9290 #define HAVE_VFORK_H 1
9291 _ACEOF
9292
9293 fi
9294 done
9295
9296 for ac_func in fork vfork
9297 do :
9298 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9299 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9300 eval as_val=\$$as_ac_var
9301 if test "x$as_val" = x""yes; then :
9302 cat >>confdefs.h <<_ACEOF
9303 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9304 _ACEOF
9305
9306 fi
9307 done
9308
9309 if test "x$ac_cv_func_fork" = xyes; then
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9311 $as_echo_n "checking for working fork... " >&6; }
9312 if test "${ac_cv_func_fork_works+set}" = set; then :
9313 $as_echo_n "(cached) " >&6
9314 else
9315 if test "$cross_compiling" = yes; then :
9316 ac_cv_func_fork_works=cross
9317 else
9318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9319 /* end confdefs.h. */
9320 $ac_includes_default
9321 int
9322 main ()
9323 {
9324
9325 /* By Ruediger Kuhlmann. */
9326 return fork () < 0;
9327
9328 ;
9329 return 0;
9330 }
9331 _ACEOF
9332 if ac_fn_c_try_run "$LINENO"; then :
9333 ac_cv_func_fork_works=yes
9334 else
9335 ac_cv_func_fork_works=no
9336 fi
9337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9338 conftest.$ac_objext conftest.beam conftest.$ac_ext
9339 fi
9340
9341 fi
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9343 $as_echo "$ac_cv_func_fork_works" >&6; }
9344
9345 else
9346 ac_cv_func_fork_works=$ac_cv_func_fork
9347 fi
9348 if test "x$ac_cv_func_fork_works" = xcross; then
9349 case $host in
9350 *-*-amigaos* | *-*-msdosdjgpp*)
9351 # Override, as these systems have only a dummy fork() stub
9352 ac_cv_func_fork_works=no
9353 ;;
9354 *)
9355 ac_cv_func_fork_works=yes
9356 ;;
9357 esac
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9359 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9360 fi
9361 ac_cv_func_vfork_works=$ac_cv_func_vfork
9362 if test "x$ac_cv_func_vfork" = xyes; then
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9364 $as_echo_n "checking for working vfork... " >&6; }
9365 if test "${ac_cv_func_vfork_works+set}" = set; then :
9366 $as_echo_n "(cached) " >&6
9367 else
9368 if test "$cross_compiling" = yes; then :
9369 ac_cv_func_vfork_works=cross
9370 else
9371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9372 /* end confdefs.h. */
9373 /* Thanks to Paul Eggert for this test. */
9374 $ac_includes_default
9375 #include <sys/wait.h>
9376 #ifdef HAVE_VFORK_H
9377 # include <vfork.h>
9378 #endif
9379 /* On some sparc systems, changes by the child to local and incoming
9380 argument registers are propagated back to the parent. The compiler
9381 is told about this with #include <vfork.h>, but some compilers
9382 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9383 static variable whose address is put into a register that is
9384 clobbered by the vfork. */
9385 static void
9386 #ifdef __cplusplus
9387 sparc_address_test (int arg)
9388 # else
9389 sparc_address_test (arg) int arg;
9390 #endif
9391 {
9392 static pid_t child;
9393 if (!child) {
9394 child = vfork ();
9395 if (child < 0) {
9396 perror ("vfork");
9397 _exit(2);
9398 }
9399 if (!child) {
9400 arg = getpid();
9401 write(-1, "", 0);
9402 _exit (arg);
9403 }
9404 }
9405 }
9406
9407 int
9408 main ()
9409 {
9410 pid_t parent = getpid ();
9411 pid_t child;
9412
9413 sparc_address_test (0);
9414
9415 child = vfork ();
9416
9417 if (child == 0) {
9418 /* Here is another test for sparc vfork register problems. This
9419 test uses lots of local variables, at least as many local
9420 variables as main has allocated so far including compiler
9421 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9422 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9423 reuse the register of parent for one of the local variables,
9424 since it will think that parent can't possibly be used any more
9425 in this routine. Assigning to the local variable will thus
9426 munge parent in the parent process. */
9427 pid_t
9428 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9429 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9430 /* Convince the compiler that p..p7 are live; otherwise, it might
9431 use the same hardware register for all 8 local variables. */
9432 if (p != p1 || p != p2 || p != p3 || p != p4
9433 || p != p5 || p != p6 || p != p7)
9434 _exit(1);
9435
9436 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9437 from child file descriptors. If the child closes a descriptor
9438 before it execs or exits, this munges the parent's descriptor
9439 as well. Test for this by closing stdout in the child. */
9440 _exit(close(fileno(stdout)) != 0);
9441 } else {
9442 int status;
9443 struct stat st;
9444
9445 while (wait(&status) != child)
9446 ;
9447 return (
9448 /* Was there some problem with vforking? */
9449 child < 0
9450
9451 /* Did the child fail? (This shouldn't happen.) */
9452 || status
9453
9454 /* Did the vfork/compiler bug occur? */
9455 || parent != getpid()
9456
9457 /* Did the file descriptor bug occur? */
9458 || fstat(fileno(stdout), &st) != 0
9459 );
9460 }
9461 }
9462 _ACEOF
9463 if ac_fn_c_try_run "$LINENO"; then :
9464 ac_cv_func_vfork_works=yes
9465 else
9466 ac_cv_func_vfork_works=no
9467 fi
9468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9469 conftest.$ac_objext conftest.beam conftest.$ac_ext
9470 fi
9471
9472 fi
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9474 $as_echo "$ac_cv_func_vfork_works" >&6; }
9475
9476 fi;
9477 if test "x$ac_cv_func_fork_works" = xcross; then
9478 ac_cv_func_vfork_works=$ac_cv_func_vfork
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9480 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9481 fi
9482
9483 if test "x$ac_cv_func_vfork_works" = xyes; then
9484
9485 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9486
9487 else
9488
9489 $as_echo "#define vfork fork" >>confdefs.h
9490
9491 fi
9492 if test "x$ac_cv_func_fork_works" = xyes; then
9493
9494 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9495
9496 fi
9497
9498
9499 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9500 # iconv() prototype.
9501 ac_ext=cpp
9502 ac_cpp='$CXXCPP $CPPFLAGS'
9503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9506
9507
9508 if test "X$prefix" = "XNONE"; then
9509 acl_final_prefix="$ac_default_prefix"
9510 else
9511 acl_final_prefix="$prefix"
9512 fi
9513 if test "X$exec_prefix" = "XNONE"; then
9514 acl_final_exec_prefix='${prefix}'
9515 else
9516 acl_final_exec_prefix="$exec_prefix"
9517 fi
9518 acl_save_prefix="$prefix"
9519 prefix="$acl_final_prefix"
9520 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9521 prefix="$acl_save_prefix"
9522
9523
9524 # Check whether --with-gnu-ld was given.
9525 if test "${with_gnu_ld+set}" = set; then :
9526 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9527 else
9528 with_gnu_ld=no
9529 fi
9530
9531 # Prepare PATH_SEPARATOR.
9532 # The user is always right.
9533 if test "${PATH_SEPARATOR+set}" != set; then
9534 echo "#! /bin/sh" >conf$$.sh
9535 echo "exit 0" >>conf$$.sh
9536 chmod +x conf$$.sh
9537 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9538 PATH_SEPARATOR=';'
9539 else
9540 PATH_SEPARATOR=:
9541 fi
9542 rm -f conf$$.sh
9543 fi
9544 ac_prog=ld
9545 if test "$GCC" = yes; then
9546 # Check if gcc -print-prog-name=ld gives a path.
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9548 $as_echo_n "checking for ld used by GCC... " >&6; }
9549 case $host in
9550 *-*-mingw*)
9551 # gcc leaves a trailing carriage return which upsets mingw
9552 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9553 *)
9554 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9555 esac
9556 case $ac_prog in
9557 # Accept absolute paths.
9558 [\\/]* | [A-Za-z]:[\\/]*)
9559 re_direlt='/[^/][^/]*/\.\./'
9560 # Canonicalize the path of ld
9561 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9562 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9563 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9564 done
9565 test -z "$LD" && LD="$ac_prog"
9566 ;;
9567 "")
9568 # If it fails, then pretend we aren't using GCC.
9569 ac_prog=ld
9570 ;;
9571 *)
9572 # If it is relative, then search for the first ld in PATH.
9573 with_gnu_ld=unknown
9574 ;;
9575 esac
9576 elif test "$with_gnu_ld" = yes; then
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9578 $as_echo_n "checking for GNU ld... " >&6; }
9579 else
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9581 $as_echo_n "checking for non-GNU ld... " >&6; }
9582 fi
9583 if test "${acl_cv_path_LD+set}" = set; then :
9584 $as_echo_n "(cached) " >&6
9585 else
9586 if test -z "$LD"; then
9587 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9588 for ac_dir in $PATH; do
9589 test -z "$ac_dir" && ac_dir=.
9590 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9591 acl_cv_path_LD="$ac_dir/$ac_prog"
9592 # Check to see if the program is GNU ld. I'd rather use --version,
9593 # but apparently some GNU ld's only accept -v.
9594 # Break only if it was the GNU/non-GNU ld that we prefer.
9595 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9596 test "$with_gnu_ld" != no && break
9597 else
9598 test "$with_gnu_ld" != yes && break
9599 fi
9600 fi
9601 done
9602 IFS="$ac_save_ifs"
9603 else
9604 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9605 fi
9606 fi
9607
9608 LD="$acl_cv_path_LD"
9609 if test -n "$LD"; then
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9611 $as_echo "$LD" >&6; }
9612 else
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9614 $as_echo "no" >&6; }
9615 fi
9616 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9618 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9619 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9620 $as_echo_n "(cached) " >&6
9621 else
9622 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9623 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9624 acl_cv_prog_gnu_ld=yes
9625 else
9626 acl_cv_prog_gnu_ld=no
9627 fi
9628 fi
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9630 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9631 with_gnu_ld=$acl_cv_prog_gnu_ld
9632
9633
9634
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9636 $as_echo_n "checking for shared library run path origin... " >&6; }
9637 if test "${acl_cv_rpath+set}" = set; then :
9638 $as_echo_n "(cached) " >&6
9639 else
9640
9641 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9642 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9643 . ./conftest.sh
9644 rm -f ./conftest.sh
9645 acl_cv_rpath=done
9646
9647 fi
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9649 $as_echo "$acl_cv_rpath" >&6; }
9650 wl="$acl_cv_wl"
9651 libext="$acl_cv_libext"
9652 shlibext="$acl_cv_shlibext"
9653 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9654 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9655 hardcode_direct="$acl_cv_hardcode_direct"
9656 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9657 # Check whether --enable-rpath was given.
9658 if test "${enable_rpath+set}" = set; then :
9659 enableval=$enable_rpath; :
9660 else
9661 enable_rpath=yes
9662 fi
9663
9664
9665
9666
9667
9668
9669
9670
9671 use_additional=yes
9672
9673 acl_save_prefix="$prefix"
9674 prefix="$acl_final_prefix"
9675 acl_save_exec_prefix="$exec_prefix"
9676 exec_prefix="$acl_final_exec_prefix"
9677
9678 eval additional_includedir=\"$includedir\"
9679 eval additional_libdir=\"$libdir\"
9680
9681 exec_prefix="$acl_save_exec_prefix"
9682 prefix="$acl_save_prefix"
9683
9684
9685 # Check whether --with-libiconv-prefix was given.
9686 if test "${with_libiconv_prefix+set}" = set; then :
9687 withval=$with_libiconv_prefix;
9688 if test "X$withval" = "Xno"; then
9689 use_additional=no
9690 else
9691 if test "X$withval" = "X"; then
9692
9693 acl_save_prefix="$prefix"
9694 prefix="$acl_final_prefix"
9695 acl_save_exec_prefix="$exec_prefix"
9696 exec_prefix="$acl_final_exec_prefix"
9697
9698 eval additional_includedir=\"$includedir\"
9699 eval additional_libdir=\"$libdir\"
9700
9701 exec_prefix="$acl_save_exec_prefix"
9702 prefix="$acl_save_prefix"
9703
9704 else
9705 additional_includedir="$withval/include"
9706 additional_libdir="$withval/lib"
9707 fi
9708 fi
9709
9710 fi
9711
9712 LIBICONV=
9713 LTLIBICONV=
9714 INCICONV=
9715 rpathdirs=
9716 ltrpathdirs=
9717 names_already_handled=
9718 names_next_round='iconv '
9719 while test -n "$names_next_round"; do
9720 names_this_round="$names_next_round"
9721 names_next_round=
9722 for name in $names_this_round; do
9723 already_handled=
9724 for n in $names_already_handled; do
9725 if test "$n" = "$name"; then
9726 already_handled=yes
9727 break
9728 fi
9729 done
9730 if test -z "$already_handled"; then
9731 names_already_handled="$names_already_handled $name"
9732 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9733 eval value=\"\$HAVE_LIB$uppername\"
9734 if test -n "$value"; then
9735 if test "$value" = yes; then
9736 eval value=\"\$LIB$uppername\"
9737 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9738 eval value=\"\$LTLIB$uppername\"
9739 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9740 else
9741 :
9742 fi
9743 else
9744 found_dir=
9745 found_la=
9746 found_so=
9747 found_a=
9748 if test $use_additional = yes; then
9749 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9750 found_dir="$additional_libdir"
9751 found_so="$additional_libdir/lib$name.$shlibext"
9752 if test -f "$additional_libdir/lib$name.la"; then
9753 found_la="$additional_libdir/lib$name.la"
9754 fi
9755 else
9756 if test -f "$additional_libdir/lib$name.$libext"; then
9757 found_dir="$additional_libdir"
9758 found_a="$additional_libdir/lib$name.$libext"
9759 if test -f "$additional_libdir/lib$name.la"; then
9760 found_la="$additional_libdir/lib$name.la"
9761 fi
9762 fi
9763 fi
9764 fi
9765 if test "X$found_dir" = "X"; then
9766 for x in $LDFLAGS $LTLIBICONV; do
9767
9768 acl_save_prefix="$prefix"
9769 prefix="$acl_final_prefix"
9770 acl_save_exec_prefix="$exec_prefix"
9771 exec_prefix="$acl_final_exec_prefix"
9772 eval x=\"$x\"
9773 exec_prefix="$acl_save_exec_prefix"
9774 prefix="$acl_save_prefix"
9775
9776 case "$x" in
9777 -L*)
9778 dir=`echo "X$x" | sed -e 's/^X-L//'`
9779 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9780 found_dir="$dir"
9781 found_so="$dir/lib$name.$shlibext"
9782 if test -f "$dir/lib$name.la"; then
9783 found_la="$dir/lib$name.la"
9784 fi
9785 else
9786 if test -f "$dir/lib$name.$libext"; then
9787 found_dir="$dir"
9788 found_a="$dir/lib$name.$libext"
9789 if test -f "$dir/lib$name.la"; then
9790 found_la="$dir/lib$name.la"
9791 fi
9792 fi
9793 fi
9794 ;;
9795 esac
9796 if test "X$found_dir" != "X"; then
9797 break
9798 fi
9799 done
9800 fi
9801 if test "X$found_dir" != "X"; then
9802 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9803 if test "X$found_so" != "X"; then
9804 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9805 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9806 else
9807 haveit=
9808 for x in $ltrpathdirs; do
9809 if test "X$x" = "X$found_dir"; then
9810 haveit=yes
9811 break
9812 fi
9813 done
9814 if test -z "$haveit"; then
9815 ltrpathdirs="$ltrpathdirs $found_dir"
9816 fi
9817 if test "$hardcode_direct" = yes; then
9818 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9819 else
9820 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9821 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9822 haveit=
9823 for x in $rpathdirs; do
9824 if test "X$x" = "X$found_dir"; then
9825 haveit=yes
9826 break
9827 fi
9828 done
9829 if test -z "$haveit"; then
9830 rpathdirs="$rpathdirs $found_dir"
9831 fi
9832 else
9833 haveit=
9834 for x in $LDFLAGS $LIBICONV; do
9835
9836 acl_save_prefix="$prefix"
9837 prefix="$acl_final_prefix"
9838 acl_save_exec_prefix="$exec_prefix"
9839 exec_prefix="$acl_final_exec_prefix"
9840 eval x=\"$x\"
9841 exec_prefix="$acl_save_exec_prefix"
9842 prefix="$acl_save_prefix"
9843
9844 if test "X$x" = "X-L$found_dir"; then
9845 haveit=yes
9846 break
9847 fi
9848 done
9849 if test -z "$haveit"; then
9850 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9851 fi
9852 if test "$hardcode_minus_L" != no; then
9853 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9854 else
9855 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9856 fi
9857 fi
9858 fi
9859 fi
9860 else
9861 if test "X$found_a" != "X"; then
9862 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9863 else
9864 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9865 fi
9866 fi
9867 additional_includedir=
9868 case "$found_dir" in
9869 */lib | */lib/)
9870 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9871 additional_includedir="$basedir/include"
9872 ;;
9873 esac
9874 if test "X$additional_includedir" != "X"; then
9875 if test "X$additional_includedir" != "X/usr/include"; then
9876 haveit=
9877 if test "X$additional_includedir" = "X/usr/local/include"; then
9878 if test -n "$GCC"; then
9879 case $host_os in
9880 linux*) haveit=yes;;
9881 esac
9882 fi
9883 fi
9884 if test -z "$haveit"; then
9885 for x in $CPPFLAGS $INCICONV; do
9886
9887 acl_save_prefix="$prefix"
9888 prefix="$acl_final_prefix"
9889 acl_save_exec_prefix="$exec_prefix"
9890 exec_prefix="$acl_final_exec_prefix"
9891 eval x=\"$x\"
9892 exec_prefix="$acl_save_exec_prefix"
9893 prefix="$acl_save_prefix"
9894
9895 if test "X$x" = "X-I$additional_includedir"; then
9896 haveit=yes
9897 break
9898 fi
9899 done
9900 if test -z "$haveit"; then
9901 if test -d "$additional_includedir"; then
9902 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9903 fi
9904 fi
9905 fi
9906 fi
9907 fi
9908 if test -n "$found_la"; then
9909 save_libdir="$libdir"
9910 case "$found_la" in
9911 */* | *\\*) . "$found_la" ;;
9912 *) . "./$found_la" ;;
9913 esac
9914 libdir="$save_libdir"
9915 for dep in $dependency_libs; do
9916 case "$dep" in
9917 -L*)
9918 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9919 if test "X$additional_libdir" != "X/usr/lib"; then
9920 haveit=
9921 if test "X$additional_libdir" = "X/usr/local/lib"; then
9922 if test -n "$GCC"; then
9923 case $host_os in
9924 linux*) haveit=yes;;
9925 esac
9926 fi
9927 fi
9928 if test -z "$haveit"; then
9929 haveit=
9930 for x in $LDFLAGS $LIBICONV; do
9931
9932 acl_save_prefix="$prefix"
9933 prefix="$acl_final_prefix"
9934 acl_save_exec_prefix="$exec_prefix"
9935 exec_prefix="$acl_final_exec_prefix"
9936 eval x=\"$x\"
9937 exec_prefix="$acl_save_exec_prefix"
9938 prefix="$acl_save_prefix"
9939
9940 if test "X$x" = "X-L$additional_libdir"; then
9941 haveit=yes
9942 break
9943 fi
9944 done
9945 if test -z "$haveit"; then
9946 if test -d "$additional_libdir"; then
9947 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9948 fi
9949 fi
9950 haveit=
9951 for x in $LDFLAGS $LTLIBICONV; do
9952
9953 acl_save_prefix="$prefix"
9954 prefix="$acl_final_prefix"
9955 acl_save_exec_prefix="$exec_prefix"
9956 exec_prefix="$acl_final_exec_prefix"
9957 eval x=\"$x\"
9958 exec_prefix="$acl_save_exec_prefix"
9959 prefix="$acl_save_prefix"
9960
9961 if test "X$x" = "X-L$additional_libdir"; then
9962 haveit=yes
9963 break
9964 fi
9965 done
9966 if test -z "$haveit"; then
9967 if test -d "$additional_libdir"; then
9968 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9969 fi
9970 fi
9971 fi
9972 fi
9973 ;;
9974 -R*)
9975 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9976 if test "$enable_rpath" != no; then
9977 haveit=
9978 for x in $rpathdirs; do
9979 if test "X$x" = "X$dir"; then
9980 haveit=yes
9981 break
9982 fi
9983 done
9984 if test -z "$haveit"; then
9985 rpathdirs="$rpathdirs $dir"
9986 fi
9987 haveit=
9988 for x in $ltrpathdirs; do
9989 if test "X$x" = "X$dir"; then
9990 haveit=yes
9991 break
9992 fi
9993 done
9994 if test -z "$haveit"; then
9995 ltrpathdirs="$ltrpathdirs $dir"
9996 fi
9997 fi
9998 ;;
9999 -l*)
10000 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10001 ;;
10002 *.la)
10003 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10004 ;;
10005 *)
10006 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10007 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10008 ;;
10009 esac
10010 done
10011 fi
10012 else
10013 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10014 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10015 fi
10016 fi
10017 fi
10018 done
10019 done
10020 if test "X$rpathdirs" != "X"; then
10021 if test -n "$hardcode_libdir_separator"; then
10022 alldirs=
10023 for found_dir in $rpathdirs; do
10024 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10025 done
10026 acl_save_libdir="$libdir"
10027 libdir="$alldirs"
10028 eval flag=\"$hardcode_libdir_flag_spec\"
10029 libdir="$acl_save_libdir"
10030 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10031 else
10032 for found_dir in $rpathdirs; do
10033 acl_save_libdir="$libdir"
10034 libdir="$found_dir"
10035 eval flag=\"$hardcode_libdir_flag_spec\"
10036 libdir="$acl_save_libdir"
10037 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10038 done
10039 fi
10040 fi
10041 if test "X$ltrpathdirs" != "X"; then
10042 for found_dir in $ltrpathdirs; do
10043 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10044 done
10045 fi
10046
10047
10048
10049
10050
10051
10052
10053 am_save_CPPFLAGS="$CPPFLAGS"
10054
10055 for element in $INCICONV; do
10056 haveit=
10057 for x in $CPPFLAGS; do
10058
10059 acl_save_prefix="$prefix"
10060 prefix="$acl_final_prefix"
10061 acl_save_exec_prefix="$exec_prefix"
10062 exec_prefix="$acl_final_exec_prefix"
10063 eval x=\"$x\"
10064 exec_prefix="$acl_save_exec_prefix"
10065 prefix="$acl_save_prefix"
10066
10067 if test "X$x" = "X$element"; then
10068 haveit=yes
10069 break
10070 fi
10071 done
10072 if test -z "$haveit"; then
10073 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10074 fi
10075 done
10076
10077
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10079 $as_echo_n "checking for iconv... " >&6; }
10080 if test "${am_cv_func_iconv+set}" = set; then :
10081 $as_echo_n "(cached) " >&6
10082 else
10083
10084 am_cv_func_iconv="no, consider installing GNU libiconv"
10085 am_cv_lib_iconv=no
10086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10087 /* end confdefs.h. */
10088 #include <stdlib.h>
10089 #include <iconv.h>
10090 int
10091 main ()
10092 {
10093 iconv_t cd = iconv_open("","");
10094 iconv(cd,NULL,NULL,NULL,NULL);
10095 iconv_close(cd);
10096 ;
10097 return 0;
10098 }
10099 _ACEOF
10100 if ac_fn_cxx_try_link "$LINENO"; then :
10101 am_cv_func_iconv=yes
10102 fi
10103 rm -f core conftest.err conftest.$ac_objext \
10104 conftest$ac_exeext conftest.$ac_ext
10105 if test "$am_cv_func_iconv" != yes; then
10106 am_save_LIBS="$LIBS"
10107 LIBS="$LIBS $LIBICONV"
10108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10109 /* end confdefs.h. */
10110 #include <stdlib.h>
10111 #include <iconv.h>
10112 int
10113 main ()
10114 {
10115 iconv_t cd = iconv_open("","");
10116 iconv(cd,NULL,NULL,NULL,NULL);
10117 iconv_close(cd);
10118 ;
10119 return 0;
10120 }
10121 _ACEOF
10122 if ac_fn_cxx_try_link "$LINENO"; then :
10123 am_cv_lib_iconv=yes
10124 am_cv_func_iconv=yes
10125 fi
10126 rm -f core conftest.err conftest.$ac_objext \
10127 conftest$ac_exeext conftest.$ac_ext
10128 LIBS="$am_save_LIBS"
10129 fi
10130
10131 fi
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10133 $as_echo "$am_cv_func_iconv" >&6; }
10134 if test "$am_cv_func_iconv" = yes; then
10135
10136 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10137
10138 fi
10139 if test "$am_cv_lib_iconv" = yes; then
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10141 $as_echo_n "checking how to link with libiconv... " >&6; }
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10143 $as_echo "$LIBICONV" >&6; }
10144 else
10145 CPPFLAGS="$am_save_CPPFLAGS"
10146 LIBICONV=
10147 LTLIBICONV=
10148 fi
10149
10150
10151
10152 if test "$am_cv_func_iconv" = yes; then
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10154 $as_echo_n "checking for iconv declaration... " >&6; }
10155 if test "${am_cv_proto_iconv+set}" = set; then :
10156 $as_echo_n "(cached) " >&6
10157 else
10158
10159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10160 /* end confdefs.h. */
10161
10162 #include <stdlib.h>
10163 #include <iconv.h>
10164 extern
10165 #ifdef __cplusplus
10166 "C"
10167 #endif
10168 #if defined(__STDC__) || defined(__cplusplus)
10169 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10170 #else
10171 size_t iconv();
10172 #endif
10173
10174 int
10175 main ()
10176 {
10177
10178 ;
10179 return 0;
10180 }
10181 _ACEOF
10182 if ac_fn_cxx_try_compile "$LINENO"; then :
10183 am_cv_proto_iconv_arg1=""
10184 else
10185 am_cv_proto_iconv_arg1="const"
10186 fi
10187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10188 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);"
10189 fi
10190
10191 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10193 }$am_cv_proto_iconv" >&5
10194 $as_echo "${ac_t:-
10195 }$am_cv_proto_iconv" >&6; }
10196
10197 cat >>confdefs.h <<_ACEOF
10198 #define ICONV_CONST $am_cv_proto_iconv_arg1
10199 _ACEOF
10200
10201 fi
10202
10203 ac_ext=c
10204 ac_cpp='$CPP $CPPFLAGS'
10205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10208
10209
10210 # Until we have in-tree GNU iconv:
10211 LIBICONV_DEP=
10212
10213
10214
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10216 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10217 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10218 $as_echo_n "(cached) " >&6
10219 else
10220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10221 /* end confdefs.h. */
10222 #include <locale.h>
10223 int
10224 main ()
10225 {
10226 return LC_MESSAGES
10227 ;
10228 return 0;
10229 }
10230 _ACEOF
10231 if ac_fn_c_try_link "$LINENO"; then :
10232 am_cv_val_LC_MESSAGES=yes
10233 else
10234 am_cv_val_LC_MESSAGES=no
10235 fi
10236 rm -f core conftest.err conftest.$ac_objext \
10237 conftest$ac_exeext conftest.$ac_ext
10238 fi
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10240 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10241 if test $am_cv_val_LC_MESSAGES = yes; then
10242
10243 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10244
10245 fi
10246
10247
10248
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10250 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10251 if test "${am_cv_langinfo_codeset+set}" = set; then :
10252 $as_echo_n "(cached) " >&6
10253 else
10254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10255 /* end confdefs.h. */
10256 #include <langinfo.h>
10257 int
10258 main ()
10259 {
10260 char* cs = nl_langinfo(CODESET);
10261 ;
10262 return 0;
10263 }
10264 _ACEOF
10265 if ac_fn_c_try_link "$LINENO"; then :
10266 am_cv_langinfo_codeset=yes
10267 else
10268 am_cv_langinfo_codeset=no
10269 fi
10270 rm -f core conftest.err conftest.$ac_objext \
10271 conftest$ac_exeext conftest.$ac_ext
10272
10273 fi
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10275 $as_echo "$am_cv_langinfo_codeset" >&6; }
10276 if test $am_cv_langinfo_codeset = yes; then
10277
10278 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10279
10280 fi
10281
10282
10283 # We will need to find libiberty.h and ansidecl.h
10284 saved_CFLAGS="$CFLAGS"
10285 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10286 saved_CXXFLAGS="$CXXFLAGS"
10287 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10288 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10289 strsignal strstr stpcpy strverscmp \
10290 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10291 free basename getopt clock getpagesize ffs clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
10292 do
10293 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10295 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10296 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10297 $as_echo_n "(cached) " >&6
10298 else
10299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10300 /* end confdefs.h. */
10301 #undef $ac_tr_decl
10302 #define $ac_tr_decl 1
10303
10304 #include "ansidecl.h"
10305 #include "system.h"
10306
10307 int
10308 main ()
10309 {
10310 #ifndef $ac_func
10311 char *(*pfn) = (char *(*)) $ac_func ;
10312 #endif
10313 ;
10314 return 0;
10315 }
10316 _ACEOF
10317 if ac_fn_c_try_compile "$LINENO"; then :
10318 eval "gcc_cv_have_decl_$ac_func=yes"
10319 else
10320 eval "gcc_cv_have_decl_$ac_func=no"
10321 fi
10322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10323 fi
10324
10325 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10327 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10328 #define $ac_tr_decl 1
10329 _ACEOF
10330
10331 else
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10333 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10334 #define $ac_tr_decl 0
10335 _ACEOF
10336
10337 fi
10338
10339 done
10340
10341
10342 for ac_func in getrlimit setrlimit getrusage
10343 do
10344 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10346 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10347 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10348 $as_echo_n "(cached) " >&6
10349 else
10350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10351 /* end confdefs.h. */
10352 #undef $ac_tr_decl
10353 #define $ac_tr_decl 1
10354
10355 #include "ansidecl.h"
10356 #include "system.h"
10357 #ifdef HAVE_SYS_RESOURCE_H
10358 #include <sys/resource.h>
10359 #endif
10360
10361
10362 int
10363 main ()
10364 {
10365 #ifndef $ac_func
10366 char *(*pfn) = (char *(*)) $ac_func ;
10367 #endif
10368 ;
10369 return 0;
10370 }
10371 _ACEOF
10372 if ac_fn_c_try_compile "$LINENO"; then :
10373 eval "gcc_cv_have_decl_$ac_func=yes"
10374 else
10375 eval "gcc_cv_have_decl_$ac_func=no"
10376 fi
10377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10378 fi
10379
10380 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10382 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10383 #define $ac_tr_decl 1
10384 _ACEOF
10385
10386 else
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10388 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10389 #define $ac_tr_decl 0
10390 _ACEOF
10391
10392 fi
10393
10394 done
10395
10396
10397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10398 /* end confdefs.h. */
10399
10400 #include "ansidecl.h"
10401 #include "system.h"
10402 #ifdef HAVE_SYS_RESOURCE_H
10403 #include <sys/resource.h>
10404 #endif
10405
10406 int
10407 main ()
10408 {
10409 rlim_t l = 0;
10410 ;
10411 return 0;
10412 }
10413 _ACEOF
10414 if ac_fn_c_try_compile "$LINENO"; then :
10415
10416 else
10417
10418 $as_echo "#define rlim_t long" >>confdefs.h
10419
10420 fi
10421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10422
10423 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10424 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10425 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10426 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10427 for ac_func in ldgetname
10428 do
10429 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10431 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10432 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10433 $as_echo_n "(cached) " >&6
10434 else
10435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10436 /* end confdefs.h. */
10437 #undef $ac_tr_decl
10438 #define $ac_tr_decl 1
10439
10440 #include "ansidecl.h"
10441 #include "system.h"
10442 #ifdef HAVE_LDFCN_H
10443 #undef FREAD
10444 #undef FWRITE
10445 #include <ldfcn.h>
10446 #endif
10447
10448
10449 int
10450 main ()
10451 {
10452 #ifndef $ac_func
10453 char *(*pfn) = (char *(*)) $ac_func ;
10454 #endif
10455 ;
10456 return 0;
10457 }
10458 _ACEOF
10459 if ac_fn_c_try_compile "$LINENO"; then :
10460 eval "gcc_cv_have_decl_$ac_func=yes"
10461 else
10462 eval "gcc_cv_have_decl_$ac_func=no"
10463 fi
10464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10465 fi
10466
10467 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10469 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10470 #define $ac_tr_decl 1
10471 _ACEOF
10472
10473 else
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10475 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10476 #define $ac_tr_decl 0
10477 _ACEOF
10478
10479 fi
10480
10481 done
10482
10483
10484 for ac_func in times
10485 do
10486 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10488 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10489 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10490 $as_echo_n "(cached) " >&6
10491 else
10492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10493 /* end confdefs.h. */
10494 #undef $ac_tr_decl
10495 #define $ac_tr_decl 1
10496
10497 #include "ansidecl.h"
10498 #include "system.h"
10499 #ifdef HAVE_SYS_TIMES_H
10500 #include <sys/times.h>
10501 #endif
10502
10503
10504 int
10505 main ()
10506 {
10507 #ifndef $ac_func
10508 char *(*pfn) = (char *(*)) $ac_func ;
10509 #endif
10510 ;
10511 return 0;
10512 }
10513 _ACEOF
10514 if ac_fn_c_try_compile "$LINENO"; then :
10515 eval "gcc_cv_have_decl_$ac_func=yes"
10516 else
10517 eval "gcc_cv_have_decl_$ac_func=no"
10518 fi
10519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10520 fi
10521
10522 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10524 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10525 #define $ac_tr_decl 1
10526 _ACEOF
10527
10528 else
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10530 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10531 #define $ac_tr_decl 0
10532 _ACEOF
10533
10534 fi
10535
10536 done
10537
10538
10539 for ac_func in sigaltstack
10540 do
10541 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10543 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10544 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10545 $as_echo_n "(cached) " >&6
10546 else
10547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10548 /* end confdefs.h. */
10549 #undef $ac_tr_decl
10550 #define $ac_tr_decl 1
10551
10552 #include "ansidecl.h"
10553 #include "system.h"
10554 #include <signal.h>
10555
10556
10557 int
10558 main ()
10559 {
10560 #ifndef $ac_func
10561 char *(*pfn) = (char *(*)) $ac_func ;
10562 #endif
10563 ;
10564 return 0;
10565 }
10566 _ACEOF
10567 if ac_fn_c_try_compile "$LINENO"; then :
10568 eval "gcc_cv_have_decl_$ac_func=yes"
10569 else
10570 eval "gcc_cv_have_decl_$ac_func=no"
10571 fi
10572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10573 fi
10574
10575 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10577 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10578 #define $ac_tr_decl 1
10579 _ACEOF
10580
10581 else
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10583 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10584 #define $ac_tr_decl 0
10585 _ACEOF
10586
10587 fi
10588
10589 done
10590
10591
10592 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10593 # prototype.
10594 ac_ext=cpp
10595 ac_cpp='$CXXCPP $CPPFLAGS'
10596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10599
10600 for ac_func in madvise
10601 do
10602 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10604 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10605 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10606 $as_echo_n "(cached) " >&6
10607 else
10608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10609 /* end confdefs.h. */
10610 #undef $ac_tr_decl
10611 #define $ac_tr_decl 1
10612
10613 #include "ansidecl.h"
10614 #include "system.h"
10615
10616
10617 int
10618 main ()
10619 {
10620 #ifndef $ac_func
10621 char *(*pfn) = (char *(*)) $ac_func ;
10622 #endif
10623 ;
10624 return 0;
10625 }
10626 _ACEOF
10627 if ac_fn_cxx_try_compile "$LINENO"; then :
10628 eval "gcc_cv_have_decl_$ac_func=yes"
10629 else
10630 eval "gcc_cv_have_decl_$ac_func=no"
10631 fi
10632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10633 fi
10634
10635 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10637 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10638 #define $ac_tr_decl 1
10639 _ACEOF
10640
10641 else
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10643 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10644 #define $ac_tr_decl 0
10645 _ACEOF
10646
10647 fi
10648
10649 done
10650
10651 ac_ext=c
10652 ac_cpp='$CPP $CPPFLAGS'
10653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10656
10657
10658 # More time-related stuff.
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10660 $as_echo_n "checking for struct tms... " >&6; }
10661 if test "${ac_cv_struct_tms+set}" = set; then :
10662 $as_echo_n "(cached) " >&6
10663 else
10664
10665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10666 /* end confdefs.h. */
10667
10668 #include "ansidecl.h"
10669 #include "system.h"
10670 #ifdef HAVE_SYS_TIMES_H
10671 #include <sys/times.h>
10672 #endif
10673
10674 int
10675 main ()
10676 {
10677 struct tms tms;
10678 ;
10679 return 0;
10680 }
10681 _ACEOF
10682 if ac_fn_c_try_compile "$LINENO"; then :
10683 ac_cv_struct_tms=yes
10684 else
10685 ac_cv_struct_tms=no
10686 fi
10687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10688 fi
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10690 $as_echo "$ac_cv_struct_tms" >&6; }
10691 if test $ac_cv_struct_tms = yes; then
10692
10693 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10694
10695 fi
10696
10697 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10698 # revisit after autoconf 2.50.
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10700 $as_echo_n "checking for clock_t... " >&6; }
10701 if test "${gcc_cv_type_clock_t+set}" = set; then :
10702 $as_echo_n "(cached) " >&6
10703 else
10704
10705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10706 /* end confdefs.h. */
10707
10708 #include "ansidecl.h"
10709 #include "system.h"
10710
10711 int
10712 main ()
10713 {
10714 clock_t x;
10715 ;
10716 return 0;
10717 }
10718 _ACEOF
10719 if ac_fn_c_try_compile "$LINENO"; then :
10720 gcc_cv_type_clock_t=yes
10721 else
10722 gcc_cv_type_clock_t=no
10723 fi
10724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10725 fi
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10727 $as_echo "$gcc_cv_type_clock_t" >&6; }
10728 if test $gcc_cv_type_clock_t = yes; then
10729
10730 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10731
10732 fi
10733
10734 # Check if F_SETLKW is supported by fcntl.
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10736 $as_echo_n "checking for F_SETLKW... " >&6; }
10737 if test "${ac_cv_f_setlkw+set}" = set; then :
10738 $as_echo_n "(cached) " >&6
10739 else
10740
10741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10742 /* end confdefs.h. */
10743
10744 #include <fcntl.h>
10745 int
10746 main ()
10747 {
10748
10749 struct flock fl;
10750 fl.l_whence = 0;
10751 fl.l_start = 0;
10752 fl.l_len = 0;
10753 fl.l_pid = 0;
10754 return fcntl (1, F_SETLKW, &fl);
10755 ;
10756 return 0;
10757 }
10758 _ACEOF
10759 if ac_fn_c_try_compile "$LINENO"; then :
10760 ac_cv_f_setlkw=yes
10761 else
10762 ac_cv_f_setlkw=no
10763 fi
10764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10765 fi
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10767 $as_echo "$ac_cv_f_setlkw" >&6; }
10768 if test $ac_cv_f_setlkw = yes; then
10769
10770 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10771
10772 fi
10773
10774 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10775 CFLAGS="$saved_CFLAGS"
10776 CXXFLAGS="$saved_CXXFLAGS"
10777
10778 # mkdir takes a single argument on some systems.
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10780 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10781 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10782 $as_echo_n "(cached) " >&6
10783 else
10784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10785 /* end confdefs.h. */
10786
10787 #include <sys/types.h>
10788 #ifdef HAVE_SYS_STAT_H
10789 # include <sys/stat.h>
10790 #endif
10791 #ifdef HAVE_UNISTD_H
10792 # include <unistd.h>
10793 #endif
10794 #ifdef HAVE_DIRECT_H
10795 # include <direct.h>
10796 #endif
10797 int
10798 main ()
10799 {
10800 mkdir ("foo", 0);
10801 ;
10802 return 0;
10803 }
10804 _ACEOF
10805 if ac_fn_c_try_compile "$LINENO"; then :
10806 gcc_cv_mkdir_takes_one_arg=no
10807 else
10808 gcc_cv_mkdir_takes_one_arg=yes
10809 fi
10810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10811 fi
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10813 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10814 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10815
10816 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10817
10818 fi
10819
10820
10821 # File extensions
10822 manext='.1'
10823 objext='.o'
10824
10825
10826
10827 # With Setjmp/Longjmp based exception handling.
10828 # Check whether --enable-sjlj-exceptions was given.
10829 if test "${enable_sjlj_exceptions+set}" = set; then :
10830 enableval=$enable_sjlj_exceptions; case $target in
10831 *-*-hpux10*)
10832 if test $enableval != yes; then
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10834 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10835 enableval=yes
10836 fi
10837 ;;
10838 esac
10839 force_sjlj_exceptions=yes
10840 else
10841 case $target in
10842 *-*-hpux10*)
10843 force_sjlj_exceptions=yes
10844 enableval=yes
10845 ;;
10846 *)
10847 force_sjlj_exceptions=no
10848 ;;
10849 esac
10850 fi
10851
10852 if test $force_sjlj_exceptions = yes; then
10853 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10854
10855 cat >>confdefs.h <<_ACEOF
10856 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10857 _ACEOF
10858
10859 fi
10860
10861 # --------------------------------------------------------
10862 # Build, host, and target specific configuration fragments
10863 # --------------------------------------------------------
10864
10865 # Collect build-machine-specific information.
10866 . ${srcdir}/config.build
10867
10868 # Collect host-machine-specific information.
10869 . ${srcdir}/config.host
10870
10871 target_gtfiles=
10872
10873 # Collect target-machine-specific information.
10874 . ${srcdir}/config.gcc
10875
10876 extra_objs="${host_extra_objs} ${extra_objs}"
10877 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10878
10879 # Default the target-machine variables that were not explicitly set.
10880 if test x"$tm_file" = x
10881 then tm_file=$cpu_type/$cpu_type.h; fi
10882
10883 if test x"$extra_headers" = x
10884 then extra_headers=; fi
10885
10886 if test x$md_file = x
10887 then md_file=$cpu_type/$cpu_type.md; fi
10888
10889 if test x$out_file = x
10890 then out_file=$cpu_type/$cpu_type.c; fi
10891
10892 if test x"$tmake_file" = x
10893 then tmake_file=$cpu_type/t-$cpu_type
10894 fi
10895
10896 # Support --enable-initfini-array.
10897 if test x$enable_initfini_array != xno; then
10898 tm_file="${tm_file} initfini-array.h"
10899 fi
10900
10901 if test x"$dwarf2" = xyes
10902 then tm_file="$tm_file tm-dwarf2.h"
10903 fi
10904
10905 # Say what files are being used for the output code and MD file.
10906 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10907 echo "Using \`$srcdir/config/$md_file' as machine description file."
10908
10909 # If any of the xm_file variables contain nonexistent files, warn
10910 # about them and drop them.
10911
10912 bx=
10913 for x in $build_xm_file; do
10914 if test -f $srcdir/config/$x
10915 then bx="$bx $x"
10916 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10917 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10918 fi
10919 done
10920 build_xm_file="$bx"
10921
10922 hx=
10923 for x in $host_xm_file; do
10924 if test -f $srcdir/config/$x
10925 then hx="$hx $x"
10926 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10927 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10928 fi
10929 done
10930 host_xm_file="$hx"
10931
10932 tx=
10933 for x in $xm_file; do
10934 if test -f $srcdir/config/$x
10935 then tx="$tx $x"
10936 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10937 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10938 fi
10939 done
10940 xm_file="$tx"
10941
10942 count=a
10943 for f in $tm_file; do
10944 count=${count}x
10945 done
10946 if test $count = ax; then
10947 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10948 else
10949 echo "Using the following target machine macro files:"
10950 for f in $tm_file; do
10951 echo " $srcdir/config/$f"
10952 done
10953 fi
10954
10955 if test x$need_64bit_hwint = xyes; then
10956
10957 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10958
10959 fi
10960
10961 if test x$use_long_long_for_widest_fast_int = xyes; then
10962
10963 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10964
10965 fi
10966
10967 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
10968
10969 cat >>confdefs.h <<_ACEOF
10970 #define HAVE_GNU_LD $gnu_ld_bool
10971 _ACEOF
10972
10973
10974 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
10975
10976 cat >>confdefs.h <<_ACEOF
10977 #define HAVE_GNU_AS $gnu_as_bool
10978 _ACEOF
10979
10980
10981 count=a
10982 for f in $host_xm_file; do
10983 count=${count}x
10984 done
10985 if test $count = a; then
10986 :
10987 elif test $count = ax; then
10988 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10989 else
10990 echo "Using the following host machine macro files:"
10991 for f in $host_xm_file; do
10992 echo " $srcdir/config/$f"
10993 done
10994 fi
10995 echo "Using ${out_host_hook_obj} for host machine hooks."
10996
10997 if test "$host_xm_file" != "$build_xm_file"; then
10998 count=a
10999 for f in $build_xm_file; do
11000 count=${count}x
11001 done
11002 if test $count = a; then
11003 :
11004 elif test $count = ax; then
11005 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11006 else
11007 echo "Using the following build machine macro files:"
11008 for f in $build_xm_file; do
11009 echo " $srcdir/config/$f"
11010 done
11011 fi
11012 fi
11013
11014 if test -n "$configured_native_system_header_dir"; then
11015 native_system_header_dir=$configured_native_system_header_dir
11016 fi
11017 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11018
11019
11020 case ${host} in
11021 powerpc*-*-darwin*)
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11023 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11024 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11025 $as_echo_n "(cached) " >&6
11026 else
11027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11028 /* end confdefs.h. */
11029
11030 #include <sys/cdefs.h>
11031 #include <sys/signal.h>
11032 #include <ucontext.h>
11033 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11034
11035 _ACEOF
11036 if ac_fn_c_try_compile "$LINENO"; then :
11037 gcc_cv_mcontext_underscores=no
11038 else
11039 gcc_cv_mcontext_underscores=yes
11040 fi
11041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11042 fi
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11044 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11045 if test $gcc_cv_mcontext_underscores = yes; then
11046
11047 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11048
11049 fi
11050 ;;
11051 esac
11052
11053 # ---------
11054 # Threading
11055 # ---------
11056
11057 # Check if a valid thread package
11058 case ${enable_threads} in
11059 "" | no)
11060 # No threads
11061 target_thread_file='single'
11062 ;;
11063 yes)
11064 # default
11065 target_thread_file='single'
11066 ;;
11067 aix | dce | lynx | mipssde | posix | rtems | \
11068 single | tpf | vxworks | win32)
11069 target_thread_file=${enable_threads}
11070 ;;
11071 *)
11072 echo "${enable_threads} is an unknown thread package" 1>&2
11073 exit 1
11074 ;;
11075 esac
11076
11077 if test x${thread_file} = x; then
11078 # No thread file set by target-specific clauses in config.gcc,
11079 # so use file chosen by default logic above
11080 thread_file=${target_thread_file}
11081 fi
11082
11083 # --------
11084 # UNSORTED
11085 # --------
11086
11087 use_cxa_atexit=no
11088 if test x$enable___cxa_atexit = xyes || \
11089 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11090 if test x$host = x$target; then
11091 case $host in
11092 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11093 # keyed to flag_use_cxa_atexit
11094 *-*-mingw32*)
11095 use_cxa_atexit=yes
11096 ;;
11097 *)
11098 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11099 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11100 use_cxa_atexit=yes
11101 else
11102 echo "__cxa_atexit can't be enabled on this target"
11103 fi
11104
11105 ;;
11106 esac
11107 else
11108 # We can't check for __cxa_atexit when building a cross, so assume
11109 # it is available
11110 use_cxa_atexit=yes
11111 fi
11112 if test x$use_cxa_atexit = xyes; then
11113
11114 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11115
11116 fi
11117 fi
11118
11119 # Look for a file containing extra machine modes.
11120 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11121 extra_modes_file='$(srcdir)'/config/${extra_modes}
11122
11123
11124 cat >>confdefs.h <<_ACEOF
11125 #define EXTRA_MODES_FILE "config/$extra_modes"
11126 _ACEOF
11127
11128 fi
11129
11130 # Convert extra_options into a form suitable for Makefile use.
11131 extra_opt_files=
11132 all_opt_files=
11133 for f in $extra_options; do
11134 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11135 all_opt_files="$all_opt_files $srcdir/config/$f"
11136 done
11137
11138
11139 # auto-host.h is the file containing items generated by autoconf and is
11140 # the first file included by config.h.
11141 # If host=build, it is correct to have bconfig include auto-host.h
11142 # as well. If host!=build, we are in error and need to do more
11143 # work to find out the build config parameters.
11144 if test x$host = x$build
11145 then
11146 build_auto=auto-host.h
11147 else
11148 # We create a subdir, then run autoconf in the subdir.
11149 # To prevent recursion we set host and build for the new
11150 # invocation of configure to the build for this invocation
11151 # of configure.
11152 tempdir=build.$$
11153 rm -rf $tempdir
11154 mkdir $tempdir
11155 cd $tempdir
11156 case ${srcdir} in
11157 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11158 *) realsrcdir=../${srcdir};;
11159 esac
11160 saved_CFLAGS="${CFLAGS}"
11161 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11162 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11163 ${realsrcdir}/configure \
11164 --enable-languages=${enable_languages-all} \
11165 --target=$target_alias --host=$build_alias --build=$build_alias
11166 CFLAGS="${saved_CFLAGS}"
11167
11168 # We just finished tests for the build machine, so rename
11169 # the file auto-build.h in the gcc directory.
11170 mv auto-host.h ../auto-build.h
11171 cd ..
11172 rm -rf $tempdir
11173 build_auto=auto-build.h
11174 fi
11175
11176
11177 tm_file="${tm_file} defaults.h"
11178 tm_p_file="${tm_p_file} tm-preds.h"
11179 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11180 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11181 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11182 # put this back in temporarily.
11183 xm_file="auto-host.h ansidecl.h ${xm_file}"
11184
11185 # --------
11186 # UNSORTED
11187 # --------
11188
11189 # Compile in configure arguments.
11190 if test -f configargs.h ; then
11191 # Being re-configured.
11192 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11193 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11194 else
11195 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11196 fi
11197
11198 # Double all backslashes and backslash all quotes to turn
11199 # gcc_config_arguments into a C string.
11200 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11201 $gcc_config_arguments
11202 EOF
11203 gcc_config_arguments_str=`cat conftest.out`
11204 rm -f conftest.out
11205
11206 cat > configargs.h <<EOF
11207 /* Generated automatically. */
11208 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11209 static const char thread_model[] = "$thread_file";
11210
11211 static const struct {
11212 const char *name, *value;
11213 } configure_default_options[] = $configure_default_options;
11214 EOF
11215
11216 gcc_BASEVER=`cat $srcdir/BASE-VER`
11217 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11218 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11219 if test -f $srcdir/REVISION ; then
11220 gcc_REVISION=`cat $srcdir/REVISION`
11221 else
11222 gcc_REVISION=""
11223 fi
11224 cat > plugin-version.h <<EOF
11225 #include "configargs.h"
11226
11227 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11228 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11229 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11230 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11231
11232 static char basever[] = "$gcc_BASEVER";
11233 static char datestamp[] = "$gcc_DATESTAMP";
11234 static char devphase[] = "$gcc_DEVPHASE";
11235 static char revision[] = "$gcc_REVISION";
11236
11237 /* FIXME plugins: We should make the version information more precise.
11238 One way to do is to add a checksum. */
11239
11240 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11241 devphase, revision,
11242 configuration_arguments};
11243 EOF
11244
11245 # Internationalization
11246 # If we haven't got the data from the intl directory,
11247 # assume NLS is disabled.
11248 USE_NLS=no
11249 LIBINTL=
11250 LIBINTL_DEP=
11251 INCINTL=
11252 XGETTEXT=
11253 GMSGFMT=
11254 POSUB=
11255
11256 if test -f ../intl/config.intl; then
11257 . ../intl/config.intl
11258 fi
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11260 $as_echo_n "checking whether NLS is requested... " >&6; }
11261 if test x"$USE_NLS" != xyes; then
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11263 $as_echo "no" >&6; }
11264 else
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11266 $as_echo "yes" >&6; }
11267
11268 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11269
11270
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11272 $as_echo_n "checking for catalogs to be installed... " >&6; }
11273 # Look for .po and .gmo files in the source directory.
11274 CATALOGS=
11275 XLINGUAS=
11276 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11277 # If there aren't any .gmo files the shell will give us the
11278 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11279 # weeded out.
11280 case "$cat" in *\**)
11281 continue;;
11282 esac
11283 # The quadruple backslash is collapsed to a double backslash
11284 # by the backticks, then collapsed again by the double quotes,
11285 # leaving us with one backslash in the sed expression (right
11286 # before the dot that mustn't act as a wildcard).
11287 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11288 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11289 # The user is allowed to set LINGUAS to a list of languages to
11290 # install catalogs for. If it's empty that means "all of them."
11291 if test "x$LINGUAS" = x; then
11292 CATALOGS="$CATALOGS $cat"
11293 XLINGUAS="$XLINGUAS $lang"
11294 else
11295 case "$LINGUAS" in *$lang*)
11296 CATALOGS="$CATALOGS $cat"
11297 XLINGUAS="$XLINGUAS $lang"
11298 ;;
11299 esac
11300 fi
11301 done
11302 LINGUAS="$XLINGUAS"
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11304 $as_echo "$LINGUAS" >&6; }
11305
11306
11307 DATADIRNAME=share
11308
11309 INSTOBJEXT=.mo
11310
11311 GENCAT=gencat
11312
11313 CATOBJEXT=.gmo
11314
11315 fi
11316
11317 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11318 # -liconv on the link line twice.
11319 case "$LIBINTL" in *$LIBICONV*)
11320 LIBICONV= ;;
11321 esac
11322
11323 # Check whether --enable-secureplt was given.
11324 if test "${enable_secureplt+set}" = set; then :
11325 enableval=$enable_secureplt;
11326 fi
11327
11328
11329 # Check whether --enable-leading-mingw64-underscores was given.
11330 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11331 enableval=$enable_leading_mingw64_underscores;
11332 fi
11333
11334 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11335
11336 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11337
11338 fi
11339
11340 # Check whether --enable-cld was given.
11341 if test "${enable_cld+set}" = set; then :
11342 enableval=$enable_cld;
11343 else
11344 enable_cld=no
11345 fi
11346
11347
11348 # Check whether --enable-frame-pointer was given.
11349 if test "${enable_frame_pointer+set}" = set; then :
11350 enableval=$enable_frame_pointer;
11351 else
11352
11353 case $target_os in
11354 linux* | darwin[8912]*)
11355 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11356 # DWARF2.
11357 enable_frame_pointer=no
11358 ;;
11359 *)
11360 enable_frame_pointer=yes
11361 ;;
11362 esac
11363
11364 fi
11365
11366
11367 # Windows32 Registry support for specifying GCC installation paths.
11368 # Check whether --enable-win32-registry was given.
11369 if test "${enable_win32_registry+set}" = set; then :
11370 enableval=$enable_win32_registry;
11371 fi
11372
11373
11374 case $host_os in
11375 win32 | pe | cygwin* | mingw32* | uwin*)
11376 if test "x$enable_win32_registry" != xno; then
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11378 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11379 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11380 $as_echo_n "(cached) " >&6
11381 else
11382 ac_func_search_save_LIBS=$LIBS
11383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11384 /* end confdefs.h. */
11385
11386 /* Override any GCC internal prototype to avoid an error.
11387 Use char because int might match the return type of a GCC
11388 builtin and then its argument prototype would still apply. */
11389 #ifdef __cplusplus
11390 extern "C"
11391 #endif
11392 char RegOpenKeyExA ();
11393 int
11394 main ()
11395 {
11396 return RegOpenKeyExA ();
11397 ;
11398 return 0;
11399 }
11400 _ACEOF
11401 for ac_lib in '' advapi32; do
11402 if test -z "$ac_lib"; then
11403 ac_res="none required"
11404 else
11405 ac_res=-l$ac_lib
11406 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11407 fi
11408 if ac_fn_c_try_link "$LINENO"; then :
11409 ac_cv_search_RegOpenKeyExA=$ac_res
11410 fi
11411 rm -f core conftest.err conftest.$ac_objext \
11412 conftest$ac_exeext
11413 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11414 break
11415 fi
11416 done
11417 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11418
11419 else
11420 ac_cv_search_RegOpenKeyExA=no
11421 fi
11422 rm conftest.$ac_ext
11423 LIBS=$ac_func_search_save_LIBS
11424 fi
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11426 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11427 ac_res=$ac_cv_search_RegOpenKeyExA
11428 if test "$ac_res" != no; then :
11429 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11430
11431 else
11432 enable_win32_registry=no
11433 fi
11434
11435 fi
11436
11437 if test "x$enable_win32_registry" != xno; then
11438
11439 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11440
11441
11442 if test "x$enable_win32_registry" != xyes \
11443 && test "x$enable_win32_registry" != x; then
11444
11445 cat >>confdefs.h <<_ACEOF
11446 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11447 _ACEOF
11448
11449 fi
11450 fi
11451 ;;
11452 esac
11453
11454 # Get an absolute path to the GCC top-level source directory
11455 holddir=`${PWDCMD-pwd}`
11456 cd $srcdir
11457 topdir=`${PWDCMD-pwd}`
11458 cd $holddir
11459
11460 # Conditionalize the makefile for this host machine.
11461 xmake_file=
11462 for f in ${host_xmake_file}
11463 do
11464 if test -f ${srcdir}/config/$f
11465 then
11466 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11467 fi
11468 done
11469
11470 # Conditionalize the makefile for this target machine.
11471 tmake_file_=
11472 for f in ${tmake_file}
11473 do
11474 if test -f ${srcdir}/config/$f
11475 then
11476 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11477 fi
11478 done
11479 tmake_file="${tmake_file_}"
11480
11481 out_object_file=`basename $out_file .c`.o
11482 common_out_object_file=`basename $common_out_file .c`.o
11483
11484 tm_file_list="options.h"
11485 tm_include_list="options.h insn-constants.h"
11486 for f in $tm_file; do
11487 case $f in
11488 ./* )
11489 f=`echo $f | sed 's/^..//'`
11490 tm_file_list="${tm_file_list} $f"
11491 tm_include_list="${tm_include_list} $f"
11492 ;;
11493 defaults.h )
11494 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11495 tm_include_list="${tm_include_list} $f"
11496 ;;
11497 * )
11498 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11499 tm_include_list="${tm_include_list} config/$f"
11500 ;;
11501 esac
11502 done
11503
11504 tm_p_file_list=
11505 tm_p_include_list=
11506 for f in $tm_p_file; do
11507 case $f in
11508 tm-preds.h )
11509 tm_p_file_list="${tm_p_file_list} $f"
11510 tm_p_include_list="${tm_p_include_list} $f"
11511 ;;
11512 * )
11513 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11514 tm_p_include_list="${tm_p_include_list} config/$f"
11515 esac
11516 done
11517
11518 xm_file_list=
11519 xm_include_list=
11520 for f in $xm_file; do
11521 case $f in
11522 ansidecl.h )
11523 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11524 xm_include_list="${xm_include_list} $f"
11525 ;;
11526 auto-host.h )
11527 xm_file_list="${xm_file_list} $f"
11528 xm_include_list="${xm_include_list} $f"
11529 ;;
11530 * )
11531 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11532 xm_include_list="${xm_include_list} config/$f"
11533 ;;
11534 esac
11535 done
11536
11537 host_xm_file_list=
11538 host_xm_include_list=
11539 for f in $host_xm_file; do
11540 case $f in
11541 ansidecl.h )
11542 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11543 host_xm_include_list="${host_xm_include_list} $f"
11544 ;;
11545 auto-host.h )
11546 host_xm_file_list="${host_xm_file_list} $f"
11547 host_xm_include_list="${host_xm_include_list} $f"
11548 ;;
11549 * )
11550 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11551 host_xm_include_list="${host_xm_include_list} config/$f"
11552 ;;
11553 esac
11554 done
11555
11556 build_xm_file_list=
11557 for f in $build_xm_file; do
11558 case $f in
11559 ansidecl.h )
11560 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11561 build_xm_include_list="${build_xm_include_list} $f"
11562 ;;
11563 auto-build.h | auto-host.h )
11564 build_xm_file_list="${build_xm_file_list} $f"
11565 build_xm_include_list="${build_xm_include_list} $f"
11566 ;;
11567 * )
11568 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11569 build_xm_include_list="${build_xm_include_list} config/$f"
11570 ;;
11571 esac
11572 done
11573
11574 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11575 # cross-compiler which does not use the native headers and libraries.
11576 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11577 CROSS=
11578 ALL=all.internal
11579 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11580
11581 if test "x$with_build_sysroot" != x; then
11582 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11583 else
11584 # This value is used, even on a native system, because
11585 # CROSS_SYSTEM_HEADER_DIR is just
11586 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11587 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11588 fi
11589
11590 if test x$host != x$target
11591 then
11592 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11593 ALL=all.cross
11594 SYSTEM_HEADER_DIR=$build_system_header_dir
11595 case "$host","$target" in
11596 # Darwin crosses can use the host system's libraries and headers,
11597 # because of the fat library support. Of course, it must be the
11598 # same version of Darwin on both sides. Allow the user to
11599 # just say --target=foo-darwin without a version number to mean
11600 # "the version on this system".
11601 *-*-darwin*,*-*-darwin*)
11602 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11603 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11604 if test $hostos = $targetos -o $targetos = darwin ; then
11605 CROSS=
11606 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11607 with_headers=yes
11608 fi
11609 ;;
11610
11611 i?86-*-*,x86_64-*-* \
11612 | powerpc*-*-*,powerpc64*-*-*)
11613 CROSS="$CROSS -DNATIVE_CROSS" ;;
11614 esac
11615
11616 case $target in
11617 *-*-mingw*)
11618 if test "x$with_headers" = x; then
11619 with_headers=yes
11620 fi
11621 ;;
11622 *)
11623 ;;
11624 esac
11625 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11626 SYSTEM_HEADER_DIR=$build_system_header_dir
11627 fi
11628
11629 # If this is a cross-compiler that does not
11630 # have its own set of headers then define
11631 # inhibit_libc
11632
11633 # If this is using newlib, without having the headers available now,
11634 # then define inhibit_libc in LIBGCC2_CFLAGS.
11635 # This prevents libgcc2 from containing any code which requires libc
11636 # support.
11637 : ${inhibit_libc=false}
11638 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11639 test x$with_newlib = xyes ; } &&
11640 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11641 inhibit_libc=true
11642 fi
11643
11644
11645 # When building gcc with a cross-compiler, we need to adjust things so
11646 # that the generator programs are still built with the native compiler.
11647 # Also, we cannot run fixincludes.
11648
11649 # These are the normal (build=host) settings:
11650 CC_FOR_BUILD='$(CC)'
11651 CXX_FOR_BUILD='$(CXX)'
11652 BUILD_CFLAGS='$(ALL_CFLAGS)'
11653 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11654 BUILD_LDFLAGS='$(LDFLAGS)'
11655 STMP_FIXINC=stmp-fixinc
11656
11657 # And these apply if build != host, or we are generating coverage data
11658 if test x$build != x$host || test "x$coverage_flags" != x
11659 then
11660 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11661 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11662 fi
11663
11664 # Expand extra_headers to include complete path.
11665 # This substitutes for lots of t-* files.
11666 extra_headers_list=
11667 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11668 for file in ${extra_headers} ; do
11669 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11670 done
11671
11672 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11673 if test x"$use_gcc_tgmath" = xyes
11674 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11675 fi
11676
11677 # Define collect2 in Makefile.
11678 case $host_can_use_collect2 in
11679 no) collect2= ;;
11680 *) collect2='collect2$(exeext)' ;;
11681 esac
11682
11683
11684 # Add a definition of USE_COLLECT2 if system wants one.
11685 case $use_collect2 in
11686 no) use_collect2= ;;
11687 "") ;;
11688 *)
11689 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11690 xm_defines="${xm_defines} USE_COLLECT2"
11691 case $host_can_use_collect2 in
11692 no)
11693 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11694 ;;
11695 esac
11696 ;;
11697 esac
11698
11699
11700 cat >>confdefs.h <<_ACEOF
11701 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11702 _ACEOF
11703
11704
11705 # ---------------------------
11706 # Assembler & linker features
11707 # ---------------------------
11708
11709 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11710 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11711 # However when ld-new is first executed from the build tree, libtool will
11712 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11713 # to the build tree. While doing this we need to use the previous-stage
11714 # linker, or we have an infinite loop. The presence of a shell script as
11715 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11716 # the gcc/collect-ld script. So we need to know how libtool works, or
11717 # exec-tool will fail.
11718
11719
11720 case `pwd` in
11721 *\ * | *\ *)
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11723 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11724 esac
11725
11726
11727
11728 macro_version='2.2.7a'
11729 macro_revision='1.3134'
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743 ltmain="$ac_aux_dir/ltmain.sh"
11744
11745 # Backslashify metacharacters that are still active within
11746 # double-quoted strings.
11747 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11748
11749 # Same as above, but do not quote variable references.
11750 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11751
11752 # Sed substitution to delay expansion of an escaped shell variable in a
11753 # double_quote_subst'ed string.
11754 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11755
11756 # Sed substitution to delay expansion of an escaped single quote.
11757 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11758
11759 # Sed substitution to avoid accidental globbing in evaled expressions
11760 no_glob_subst='s/\*/\\\*/g'
11761
11762 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11763 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11764 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11765
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11767 $as_echo_n "checking how to print strings... " >&6; }
11768 # Test print first, because it will be a builtin if present.
11769 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11770 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11771 ECHO='print -r --'
11772 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11773 ECHO='printf %s\n'
11774 else
11775 # Use this function as a fallback that always works.
11776 func_fallback_echo ()
11777 {
11778 eval 'cat <<_LTECHO_EOF
11779 $1
11780 _LTECHO_EOF'
11781 }
11782 ECHO='func_fallback_echo'
11783 fi
11784
11785 # func_echo_all arg...
11786 # Invoke $ECHO with all args, space-separated.
11787 func_echo_all ()
11788 {
11789 $ECHO ""
11790 }
11791
11792 case "$ECHO" in
11793 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11794 $as_echo "printf" >&6; } ;;
11795 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11796 $as_echo "print -r" >&6; } ;;
11797 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11798 $as_echo "cat" >&6; } ;;
11799 esac
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11815 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11816 if test "${ac_cv_path_SED+set}" = set; then :
11817 $as_echo_n "(cached) " >&6
11818 else
11819 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11820 for ac_i in 1 2 3 4 5 6 7; do
11821 ac_script="$ac_script$as_nl$ac_script"
11822 done
11823 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11824 { ac_script=; unset ac_script;}
11825 if test -z "$SED"; then
11826 ac_path_SED_found=false
11827 # Loop through the user's path and test for each of PROGNAME-LIST
11828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11829 for as_dir in $PATH
11830 do
11831 IFS=$as_save_IFS
11832 test -z "$as_dir" && as_dir=.
11833 for ac_prog in sed gsed; do
11834 for ac_exec_ext in '' $ac_executable_extensions; do
11835 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11836 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11837 # Check for GNU ac_path_SED and select it if it is found.
11838 # Check for GNU $ac_path_SED
11839 case `"$ac_path_SED" --version 2>&1` in
11840 *GNU*)
11841 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11842 *)
11843 ac_count=0
11844 $as_echo_n 0123456789 >"conftest.in"
11845 while :
11846 do
11847 cat "conftest.in" "conftest.in" >"conftest.tmp"
11848 mv "conftest.tmp" "conftest.in"
11849 cp "conftest.in" "conftest.nl"
11850 $as_echo '' >> "conftest.nl"
11851 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11852 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11853 as_fn_arith $ac_count + 1 && ac_count=$as_val
11854 if test $ac_count -gt ${ac_path_SED_max-0}; then
11855 # Best one so far, save it but keep looking for a better one
11856 ac_cv_path_SED="$ac_path_SED"
11857 ac_path_SED_max=$ac_count
11858 fi
11859 # 10*(2^10) chars as input seems more than enough
11860 test $ac_count -gt 10 && break
11861 done
11862 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11863 esac
11864
11865 $ac_path_SED_found && break 3
11866 done
11867 done
11868 done
11869 IFS=$as_save_IFS
11870 if test -z "$ac_cv_path_SED"; then
11871 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11872 fi
11873 else
11874 ac_cv_path_SED=$SED
11875 fi
11876
11877 fi
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11879 $as_echo "$ac_cv_path_SED" >&6; }
11880 SED="$ac_cv_path_SED"
11881 rm -f conftest.sed
11882
11883 test -z "$SED" && SED=sed
11884 Xsed="$SED -e 1s/^X//"
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11897 $as_echo_n "checking for fgrep... " >&6; }
11898 if test "${ac_cv_path_FGREP+set}" = set; then :
11899 $as_echo_n "(cached) " >&6
11900 else
11901 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11902 then ac_cv_path_FGREP="$GREP -F"
11903 else
11904 if test -z "$FGREP"; then
11905 ac_path_FGREP_found=false
11906 # Loop through the user's path and test for each of PROGNAME-LIST
11907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11908 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11909 do
11910 IFS=$as_save_IFS
11911 test -z "$as_dir" && as_dir=.
11912 for ac_prog in fgrep; do
11913 for ac_exec_ext in '' $ac_executable_extensions; do
11914 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11915 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11916 # Check for GNU ac_path_FGREP and select it if it is found.
11917 # Check for GNU $ac_path_FGREP
11918 case `"$ac_path_FGREP" --version 2>&1` in
11919 *GNU*)
11920 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11921 *)
11922 ac_count=0
11923 $as_echo_n 0123456789 >"conftest.in"
11924 while :
11925 do
11926 cat "conftest.in" "conftest.in" >"conftest.tmp"
11927 mv "conftest.tmp" "conftest.in"
11928 cp "conftest.in" "conftest.nl"
11929 $as_echo 'FGREP' >> "conftest.nl"
11930 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11931 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11932 as_fn_arith $ac_count + 1 && ac_count=$as_val
11933 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11934 # Best one so far, save it but keep looking for a better one
11935 ac_cv_path_FGREP="$ac_path_FGREP"
11936 ac_path_FGREP_max=$ac_count
11937 fi
11938 # 10*(2^10) chars as input seems more than enough
11939 test $ac_count -gt 10 && break
11940 done
11941 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11942 esac
11943
11944 $ac_path_FGREP_found && break 3
11945 done
11946 done
11947 done
11948 IFS=$as_save_IFS
11949 if test -z "$ac_cv_path_FGREP"; then
11950 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11951 fi
11952 else
11953 ac_cv_path_FGREP=$FGREP
11954 fi
11955
11956 fi
11957 fi
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11959 $as_echo "$ac_cv_path_FGREP" >&6; }
11960 FGREP="$ac_cv_path_FGREP"
11961
11962
11963 test -z "$GREP" && GREP=grep
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983 # Check whether --with-gnu-ld was given.
11984 if test "${with_gnu_ld+set}" = set; then :
11985 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11986 else
11987 with_gnu_ld=no
11988 fi
11989
11990 ac_prog=ld
11991 if test "$GCC" = yes; then
11992 # Check if gcc -print-prog-name=ld gives a path.
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11994 $as_echo_n "checking for ld used by $CC... " >&6; }
11995 case $host in
11996 *-*-mingw*)
11997 # gcc leaves a trailing carriage return which upsets mingw
11998 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11999 *)
12000 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12001 esac
12002 case $ac_prog in
12003 # Accept absolute paths.
12004 [\\/]* | ?:[\\/]*)
12005 re_direlt='/[^/][^/]*/\.\./'
12006 # Canonicalize the pathname of ld
12007 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12008 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12009 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12010 done
12011 test -z "$LD" && LD="$ac_prog"
12012 ;;
12013 "")
12014 # If it fails, then pretend we aren't using GCC.
12015 ac_prog=ld
12016 ;;
12017 *)
12018 # If it is relative, then search for the first ld in PATH.
12019 with_gnu_ld=unknown
12020 ;;
12021 esac
12022 elif test "$with_gnu_ld" = yes; then
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12024 $as_echo_n "checking for GNU ld... " >&6; }
12025 else
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12027 $as_echo_n "checking for non-GNU ld... " >&6; }
12028 fi
12029 if test "${lt_cv_path_LD+set}" = set; then :
12030 $as_echo_n "(cached) " >&6
12031 else
12032 if test -z "$LD"; then
12033 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12034 for ac_dir in $PATH; do
12035 IFS="$lt_save_ifs"
12036 test -z "$ac_dir" && ac_dir=.
12037 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12038 lt_cv_path_LD="$ac_dir/$ac_prog"
12039 # Check to see if the program is GNU ld. I'd rather use --version,
12040 # but apparently some variants of GNU ld only accept -v.
12041 # Break only if it was the GNU/non-GNU ld that we prefer.
12042 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12043 *GNU* | *'with BFD'*)
12044 test "$with_gnu_ld" != no && break
12045 ;;
12046 *)
12047 test "$with_gnu_ld" != yes && break
12048 ;;
12049 esac
12050 fi
12051 done
12052 IFS="$lt_save_ifs"
12053 else
12054 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12055 fi
12056 fi
12057
12058 LD="$lt_cv_path_LD"
12059 if test -n "$LD"; then
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12061 $as_echo "$LD" >&6; }
12062 else
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12064 $as_echo "no" >&6; }
12065 fi
12066 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12068 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12069 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12070 $as_echo_n "(cached) " >&6
12071 else
12072 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12073 case `$LD -v 2>&1 </dev/null` in
12074 *GNU* | *'with BFD'*)
12075 lt_cv_prog_gnu_ld=yes
12076 ;;
12077 *)
12078 lt_cv_prog_gnu_ld=no
12079 ;;
12080 esac
12081 fi
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12083 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12084 with_gnu_ld=$lt_cv_prog_gnu_ld
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12095 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12096 if test "${lt_cv_path_NM+set}" = set; then :
12097 $as_echo_n "(cached) " >&6
12098 else
12099 if test -n "$NM"; then
12100 # Let the user override the test.
12101 lt_cv_path_NM="$NM"
12102 else
12103 lt_nm_to_check="${ac_tool_prefix}nm"
12104 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12105 lt_nm_to_check="$lt_nm_to_check nm"
12106 fi
12107 for lt_tmp_nm in $lt_nm_to_check; do
12108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12109 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12110 IFS="$lt_save_ifs"
12111 test -z "$ac_dir" && ac_dir=.
12112 tmp_nm="$ac_dir/$lt_tmp_nm"
12113 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12114 # Check to see if the nm accepts a BSD-compat flag.
12115 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12116 # nm: unknown option "B" ignored
12117 # Tru64's nm complains that /dev/null is an invalid object file
12118 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12119 */dev/null* | *'Invalid file or object type'*)
12120 lt_cv_path_NM="$tmp_nm -B"
12121 break
12122 ;;
12123 *)
12124 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12125 */dev/null*)
12126 lt_cv_path_NM="$tmp_nm -p"
12127 break
12128 ;;
12129 *)
12130 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12131 continue # so that we can try to find one that supports BSD flags
12132 ;;
12133 esac
12134 ;;
12135 esac
12136 fi
12137 done
12138 IFS="$lt_save_ifs"
12139 done
12140 : ${lt_cv_path_NM=no}
12141 fi
12142 fi
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12144 $as_echo "$lt_cv_path_NM" >&6; }
12145 if test "$lt_cv_path_NM" != "no"; then
12146 NM="$lt_cv_path_NM"
12147 else
12148 # Didn't find any BSD compatible name lister, look for dumpbin.
12149 if test -n "$DUMPBIN"; then :
12150 # Let the user override the test.
12151 else
12152 if test -n "$ac_tool_prefix"; then
12153 for ac_prog in dumpbin "link -dump"
12154 do
12155 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12156 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12158 $as_echo_n "checking for $ac_word... " >&6; }
12159 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12160 $as_echo_n "(cached) " >&6
12161 else
12162 if test -n "$DUMPBIN"; then
12163 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12164 else
12165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12166 for as_dir in $PATH
12167 do
12168 IFS=$as_save_IFS
12169 test -z "$as_dir" && as_dir=.
12170 for ac_exec_ext in '' $ac_executable_extensions; do
12171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12172 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12174 break 2
12175 fi
12176 done
12177 done
12178 IFS=$as_save_IFS
12179
12180 fi
12181 fi
12182 DUMPBIN=$ac_cv_prog_DUMPBIN
12183 if test -n "$DUMPBIN"; then
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12185 $as_echo "$DUMPBIN" >&6; }
12186 else
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12188 $as_echo "no" >&6; }
12189 fi
12190
12191
12192 test -n "$DUMPBIN" && break
12193 done
12194 fi
12195 if test -z "$DUMPBIN"; then
12196 ac_ct_DUMPBIN=$DUMPBIN
12197 for ac_prog in dumpbin "link -dump"
12198 do
12199 # Extract the first word of "$ac_prog", so it can be a program name with args.
12200 set dummy $ac_prog; ac_word=$2
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12202 $as_echo_n "checking for $ac_word... " >&6; }
12203 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12204 $as_echo_n "(cached) " >&6
12205 else
12206 if test -n "$ac_ct_DUMPBIN"; then
12207 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12208 else
12209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12210 for as_dir in $PATH
12211 do
12212 IFS=$as_save_IFS
12213 test -z "$as_dir" && as_dir=.
12214 for ac_exec_ext in '' $ac_executable_extensions; do
12215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12216 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12218 break 2
12219 fi
12220 done
12221 done
12222 IFS=$as_save_IFS
12223
12224 fi
12225 fi
12226 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12227 if test -n "$ac_ct_DUMPBIN"; then
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12229 $as_echo "$ac_ct_DUMPBIN" >&6; }
12230 else
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12232 $as_echo "no" >&6; }
12233 fi
12234
12235
12236 test -n "$ac_ct_DUMPBIN" && break
12237 done
12238
12239 if test "x$ac_ct_DUMPBIN" = x; then
12240 DUMPBIN=":"
12241 else
12242 case $cross_compiling:$ac_tool_warned in
12243 yes:)
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12246 ac_tool_warned=yes ;;
12247 esac
12248 DUMPBIN=$ac_ct_DUMPBIN
12249 fi
12250 fi
12251
12252 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12253 *COFF*)
12254 DUMPBIN="$DUMPBIN -symbols"
12255 ;;
12256 *)
12257 DUMPBIN=:
12258 ;;
12259 esac
12260 fi
12261
12262 if test "$DUMPBIN" != ":"; then
12263 NM="$DUMPBIN"
12264 fi
12265 fi
12266 test -z "$NM" && NM=nm
12267
12268
12269
12270
12271
12272
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12274 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12275 if test "${lt_cv_nm_interface+set}" = set; then :
12276 $as_echo_n "(cached) " >&6
12277 else
12278 lt_cv_nm_interface="BSD nm"
12279 echo "int some_variable = 0;" > conftest.$ac_ext
12280 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12281 (eval "$ac_compile" 2>conftest.err)
12282 cat conftest.err >&5
12283 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12284 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12285 cat conftest.err >&5
12286 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12287 cat conftest.out >&5
12288 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12289 lt_cv_nm_interface="MS dumpbin"
12290 fi
12291 rm -f conftest*
12292 fi
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12294 $as_echo "$lt_cv_nm_interface" >&6; }
12295
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12297 $as_echo_n "checking whether ln -s works... " >&6; }
12298 LN_S=$as_ln_s
12299 if test "$LN_S" = "ln -s"; then
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12301 $as_echo "yes" >&6; }
12302 else
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12304 $as_echo "no, using $LN_S" >&6; }
12305 fi
12306
12307 # find the maximum length of command line arguments
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12309 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12310 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12311 $as_echo_n "(cached) " >&6
12312 else
12313 i=0
12314 teststring="ABCD"
12315
12316 case $build_os in
12317 msdosdjgpp*)
12318 # On DJGPP, this test can blow up pretty badly due to problems in libc
12319 # (any single argument exceeding 2000 bytes causes a buffer overrun
12320 # during glob expansion). Even if it were fixed, the result of this
12321 # check would be larger than it should be.
12322 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12323 ;;
12324
12325 gnu*)
12326 # Under GNU Hurd, this test is not required because there is
12327 # no limit to the length of command line arguments.
12328 # Libtool will interpret -1 as no limit whatsoever
12329 lt_cv_sys_max_cmd_len=-1;
12330 ;;
12331
12332 cygwin* | mingw* | cegcc*)
12333 # On Win9x/ME, this test blows up -- it succeeds, but takes
12334 # about 5 minutes as the teststring grows exponentially.
12335 # Worse, since 9x/ME are not pre-emptively multitasking,
12336 # you end up with a "frozen" computer, even though with patience
12337 # the test eventually succeeds (with a max line length of 256k).
12338 # Instead, let's just punt: use the minimum linelength reported by
12339 # all of the supported platforms: 8192 (on NT/2K/XP).
12340 lt_cv_sys_max_cmd_len=8192;
12341 ;;
12342
12343 mint*)
12344 # On MiNT this can take a long time and run out of memory.
12345 lt_cv_sys_max_cmd_len=8192;
12346 ;;
12347
12348 amigaos*)
12349 # On AmigaOS with pdksh, this test takes hours, literally.
12350 # So we just punt and use a minimum line length of 8192.
12351 lt_cv_sys_max_cmd_len=8192;
12352 ;;
12353
12354 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12355 # This has been around since 386BSD, at least. Likely further.
12356 if test -x /sbin/sysctl; then
12357 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12358 elif test -x /usr/sbin/sysctl; then
12359 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12360 else
12361 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12362 fi
12363 # And add a safety zone
12364 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12365 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12366 ;;
12367
12368 interix*)
12369 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12370 lt_cv_sys_max_cmd_len=196608
12371 ;;
12372
12373 osf*)
12374 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12375 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12376 # nice to cause kernel panics so lets avoid the loop below.
12377 # First set a reasonable default.
12378 lt_cv_sys_max_cmd_len=16384
12379 #
12380 if test -x /sbin/sysconfig; then
12381 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12382 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12383 esac
12384 fi
12385 ;;
12386 sco3.2v5*)
12387 lt_cv_sys_max_cmd_len=102400
12388 ;;
12389 sysv5* | sco5v6* | sysv4.2uw2*)
12390 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12391 if test -n "$kargmax"; then
12392 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12393 else
12394 lt_cv_sys_max_cmd_len=32768
12395 fi
12396 ;;
12397 *)
12398 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12399 if test -n "$lt_cv_sys_max_cmd_len"; then
12400 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12401 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12402 else
12403 # Make teststring a little bigger before we do anything with it.
12404 # a 1K string should be a reasonable start.
12405 for i in 1 2 3 4 5 6 7 8 ; do
12406 teststring=$teststring$teststring
12407 done
12408 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12409 # If test is not a shell built-in, we'll probably end up computing a
12410 # maximum length that is only half of the actual maximum length, but
12411 # we can't tell.
12412 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12413 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12414 test $i != 17 # 1/2 MB should be enough
12415 do
12416 i=`expr $i + 1`
12417 teststring=$teststring$teststring
12418 done
12419 # Only check the string length outside the loop.
12420 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12421 teststring=
12422 # Add a significant safety factor because C++ compilers can tack on
12423 # massive amounts of additional arguments before passing them to the
12424 # linker. It appears as though 1/2 is a usable value.
12425 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12426 fi
12427 ;;
12428 esac
12429
12430 fi
12431
12432 if test -n $lt_cv_sys_max_cmd_len ; then
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12434 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12435 else
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12437 $as_echo "none" >&6; }
12438 fi
12439 max_cmd_len=$lt_cv_sys_max_cmd_len
12440
12441
12442
12443
12444
12445
12446 : ${CP="cp -f"}
12447 : ${MV="mv -f"}
12448 : ${RM="rm -f"}
12449
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12451 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12452 # Try some XSI features
12453 xsi_shell=no
12454 ( _lt_dummy="a/b/c"
12455 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12456 = c,a/b,, \
12457 && eval 'test $(( 1 + 1 )) -eq 2 \
12458 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12459 && xsi_shell=yes
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12461 $as_echo "$xsi_shell" >&6; }
12462
12463
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12465 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12466 lt_shell_append=no
12467 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12468 >/dev/null 2>&1 \
12469 && lt_shell_append=yes
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12471 $as_echo "$lt_shell_append" >&6; }
12472
12473
12474 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12475 lt_unset=unset
12476 else
12477 lt_unset=false
12478 fi
12479
12480
12481
12482
12483
12484 # test EBCDIC or ASCII
12485 case `echo X|tr X '\101'` in
12486 A) # ASCII based system
12487 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12488 lt_SP2NL='tr \040 \012'
12489 lt_NL2SP='tr \015\012 \040\040'
12490 ;;
12491 *) # EBCDIC based system
12492 lt_SP2NL='tr \100 \n'
12493 lt_NL2SP='tr \r\n \100\100'
12494 ;;
12495 esac
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12506 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12507 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12508 $as_echo_n "(cached) " >&6
12509 else
12510 lt_cv_ld_reload_flag='-r'
12511 fi
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12513 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12514 reload_flag=$lt_cv_ld_reload_flag
12515 case $reload_flag in
12516 "" | " "*) ;;
12517 *) reload_flag=" $reload_flag" ;;
12518 esac
12519 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12520 case $host_os in
12521 darwin*)
12522 if test "$GCC" = yes; then
12523 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12524 else
12525 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12526 fi
12527 ;;
12528 esac
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538 if test -n "$ac_tool_prefix"; then
12539 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12540 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12542 $as_echo_n "checking for $ac_word... " >&6; }
12543 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12544 $as_echo_n "(cached) " >&6
12545 else
12546 if test -n "$OBJDUMP"; then
12547 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12548 else
12549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12550 for as_dir in $PATH
12551 do
12552 IFS=$as_save_IFS
12553 test -z "$as_dir" && as_dir=.
12554 for ac_exec_ext in '' $ac_executable_extensions; do
12555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12556 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12558 break 2
12559 fi
12560 done
12561 done
12562 IFS=$as_save_IFS
12563
12564 fi
12565 fi
12566 OBJDUMP=$ac_cv_prog_OBJDUMP
12567 if test -n "$OBJDUMP"; then
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12569 $as_echo "$OBJDUMP" >&6; }
12570 else
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12572 $as_echo "no" >&6; }
12573 fi
12574
12575
12576 fi
12577 if test -z "$ac_cv_prog_OBJDUMP"; then
12578 ac_ct_OBJDUMP=$OBJDUMP
12579 # Extract the first word of "objdump", so it can be a program name with args.
12580 set dummy objdump; ac_word=$2
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12582 $as_echo_n "checking for $ac_word... " >&6; }
12583 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12584 $as_echo_n "(cached) " >&6
12585 else
12586 if test -n "$ac_ct_OBJDUMP"; then
12587 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12588 else
12589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12590 for as_dir in $PATH
12591 do
12592 IFS=$as_save_IFS
12593 test -z "$as_dir" && as_dir=.
12594 for ac_exec_ext in '' $ac_executable_extensions; do
12595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12596 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12598 break 2
12599 fi
12600 done
12601 done
12602 IFS=$as_save_IFS
12603
12604 fi
12605 fi
12606 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12607 if test -n "$ac_ct_OBJDUMP"; then
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12609 $as_echo "$ac_ct_OBJDUMP" >&6; }
12610 else
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12612 $as_echo "no" >&6; }
12613 fi
12614
12615 if test "x$ac_ct_OBJDUMP" = x; then
12616 OBJDUMP="false"
12617 else
12618 case $cross_compiling:$ac_tool_warned in
12619 yes:)
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12622 ac_tool_warned=yes ;;
12623 esac
12624 OBJDUMP=$ac_ct_OBJDUMP
12625 fi
12626 else
12627 OBJDUMP="$ac_cv_prog_OBJDUMP"
12628 fi
12629
12630 test -z "$OBJDUMP" && OBJDUMP=objdump
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12641 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12642 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12643 $as_echo_n "(cached) " >&6
12644 else
12645 lt_cv_file_magic_cmd='$MAGIC_CMD'
12646 lt_cv_file_magic_test_file=
12647 lt_cv_deplibs_check_method='unknown'
12648 # Need to set the preceding variable on all platforms that support
12649 # interlibrary dependencies.
12650 # 'none' -- dependencies not supported.
12651 # `unknown' -- same as none, but documents that we really don't know.
12652 # 'pass_all' -- all dependencies passed with no checks.
12653 # 'test_compile' -- check by making test program.
12654 # 'file_magic [[regex]]' -- check by looking for files in library path
12655 # which responds to the $file_magic_cmd with a given extended regex.
12656 # If you have `file' or equivalent on your system and you're not sure
12657 # whether `pass_all' will *always* work, you probably want this one.
12658
12659 case $host_os in
12660 aix[4-9]*)
12661 lt_cv_deplibs_check_method=pass_all
12662 ;;
12663
12664 beos*)
12665 lt_cv_deplibs_check_method=pass_all
12666 ;;
12667
12668 bsdi[45]*)
12669 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12670 lt_cv_file_magic_cmd='/usr/bin/file -L'
12671 lt_cv_file_magic_test_file=/shlib/libc.so
12672 ;;
12673
12674 cygwin*)
12675 # func_win32_libid is a shell function defined in ltmain.sh
12676 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12677 lt_cv_file_magic_cmd='func_win32_libid'
12678 ;;
12679
12680 mingw* | pw32*)
12681 # Base MSYS/MinGW do not provide the 'file' command needed by
12682 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12683 # unless we find 'file', for example because we are cross-compiling.
12684 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12685 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12686 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12687 lt_cv_file_magic_cmd='func_win32_libid'
12688 else
12689 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12690 lt_cv_file_magic_cmd='$OBJDUMP -f'
12691 fi
12692 ;;
12693
12694 cegcc*)
12695 # use the weaker test based on 'objdump'. See mingw*.
12696 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12697 lt_cv_file_magic_cmd='$OBJDUMP -f'
12698 ;;
12699
12700 darwin* | rhapsody*)
12701 lt_cv_deplibs_check_method=pass_all
12702 ;;
12703
12704 freebsd* | dragonfly*)
12705 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12706 case $host_cpu in
12707 i*86 )
12708 # Not sure whether the presence of OpenBSD here was a mistake.
12709 # Let's accept both of them until this is cleared up.
12710 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12711 lt_cv_file_magic_cmd=/usr/bin/file
12712 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12713 ;;
12714 esac
12715 else
12716 lt_cv_deplibs_check_method=pass_all
12717 fi
12718 ;;
12719
12720 gnu*)
12721 lt_cv_deplibs_check_method=pass_all
12722 ;;
12723
12724 haiku*)
12725 lt_cv_deplibs_check_method=pass_all
12726 ;;
12727
12728 hpux10.20* | hpux11*)
12729 lt_cv_file_magic_cmd=/usr/bin/file
12730 case $host_cpu in
12731 ia64*)
12732 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12733 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12734 ;;
12735 hppa*64*)
12736 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]'
12737 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12738 ;;
12739 *)
12740 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12741 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12742 ;;
12743 esac
12744 ;;
12745
12746 interix[3-9]*)
12747 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12748 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12749 ;;
12750
12751 irix5* | irix6* | nonstopux*)
12752 case $LD in
12753 *-32|*"-32 ") libmagic=32-bit;;
12754 *-n32|*"-n32 ") libmagic=N32;;
12755 *-64|*"-64 ") libmagic=64-bit;;
12756 *) libmagic=never-match;;
12757 esac
12758 lt_cv_deplibs_check_method=pass_all
12759 ;;
12760
12761 # This must be Linux ELF.
12762 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12763 lt_cv_deplibs_check_method=pass_all
12764 ;;
12765
12766 netbsd*)
12767 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12768 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12769 else
12770 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12771 fi
12772 ;;
12773
12774 newos6*)
12775 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12776 lt_cv_file_magic_cmd=/usr/bin/file
12777 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12778 ;;
12779
12780 *nto* | *qnx*)
12781 lt_cv_deplibs_check_method=pass_all
12782 ;;
12783
12784 openbsd*)
12785 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12786 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12787 else
12788 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12789 fi
12790 ;;
12791
12792 osf3* | osf4* | osf5*)
12793 lt_cv_deplibs_check_method=pass_all
12794 ;;
12795
12796 rdos*)
12797 lt_cv_deplibs_check_method=pass_all
12798 ;;
12799
12800 solaris*)
12801 lt_cv_deplibs_check_method=pass_all
12802 ;;
12803
12804 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12805 lt_cv_deplibs_check_method=pass_all
12806 ;;
12807
12808 sysv4 | sysv4.3*)
12809 case $host_vendor in
12810 motorola)
12811 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]'
12812 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12813 ;;
12814 ncr)
12815 lt_cv_deplibs_check_method=pass_all
12816 ;;
12817 sequent)
12818 lt_cv_file_magic_cmd='/bin/file'
12819 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12820 ;;
12821 sni)
12822 lt_cv_file_magic_cmd='/bin/file'
12823 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12824 lt_cv_file_magic_test_file=/lib/libc.so
12825 ;;
12826 siemens)
12827 lt_cv_deplibs_check_method=pass_all
12828 ;;
12829 pc)
12830 lt_cv_deplibs_check_method=pass_all
12831 ;;
12832 esac
12833 ;;
12834
12835 tpf*)
12836 lt_cv_deplibs_check_method=pass_all
12837 ;;
12838 esac
12839
12840 fi
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12842 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12843 file_magic_cmd=$lt_cv_file_magic_cmd
12844 deplibs_check_method=$lt_cv_deplibs_check_method
12845 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858 if test -n "$ac_tool_prefix"; then
12859 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12860 set dummy ${ac_tool_prefix}ar; ac_word=$2
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12862 $as_echo_n "checking for $ac_word... " >&6; }
12863 if test "${ac_cv_prog_AR+set}" = set; then :
12864 $as_echo_n "(cached) " >&6
12865 else
12866 if test -n "$AR"; then
12867 ac_cv_prog_AR="$AR" # Let the user override the test.
12868 else
12869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12870 for as_dir in $PATH
12871 do
12872 IFS=$as_save_IFS
12873 test -z "$as_dir" && as_dir=.
12874 for ac_exec_ext in '' $ac_executable_extensions; do
12875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12876 ac_cv_prog_AR="${ac_tool_prefix}ar"
12877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12878 break 2
12879 fi
12880 done
12881 done
12882 IFS=$as_save_IFS
12883
12884 fi
12885 fi
12886 AR=$ac_cv_prog_AR
12887 if test -n "$AR"; then
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12889 $as_echo "$AR" >&6; }
12890 else
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12892 $as_echo "no" >&6; }
12893 fi
12894
12895
12896 fi
12897 if test -z "$ac_cv_prog_AR"; then
12898 ac_ct_AR=$AR
12899 # Extract the first word of "ar", so it can be a program name with args.
12900 set dummy ar; ac_word=$2
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12902 $as_echo_n "checking for $ac_word... " >&6; }
12903 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12904 $as_echo_n "(cached) " >&6
12905 else
12906 if test -n "$ac_ct_AR"; then
12907 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12908 else
12909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12910 for as_dir in $PATH
12911 do
12912 IFS=$as_save_IFS
12913 test -z "$as_dir" && as_dir=.
12914 for ac_exec_ext in '' $ac_executable_extensions; do
12915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12916 ac_cv_prog_ac_ct_AR="ar"
12917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12918 break 2
12919 fi
12920 done
12921 done
12922 IFS=$as_save_IFS
12923
12924 fi
12925 fi
12926 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12927 if test -n "$ac_ct_AR"; then
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12929 $as_echo "$ac_ct_AR" >&6; }
12930 else
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12932 $as_echo "no" >&6; }
12933 fi
12934
12935 if test "x$ac_ct_AR" = x; then
12936 AR="false"
12937 else
12938 case $cross_compiling:$ac_tool_warned in
12939 yes:)
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12942 ac_tool_warned=yes ;;
12943 esac
12944 AR=$ac_ct_AR
12945 fi
12946 else
12947 AR="$ac_cv_prog_AR"
12948 fi
12949
12950 test -z "$AR" && AR=ar
12951 test -z "$AR_FLAGS" && AR_FLAGS=cru
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963 if test -n "$ac_tool_prefix"; then
12964 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12965 set dummy ${ac_tool_prefix}strip; ac_word=$2
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12967 $as_echo_n "checking for $ac_word... " >&6; }
12968 if test "${ac_cv_prog_STRIP+set}" = set; then :
12969 $as_echo_n "(cached) " >&6
12970 else
12971 if test -n "$STRIP"; then
12972 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12973 else
12974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12975 for as_dir in $PATH
12976 do
12977 IFS=$as_save_IFS
12978 test -z "$as_dir" && as_dir=.
12979 for ac_exec_ext in '' $ac_executable_extensions; do
12980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12981 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12983 break 2
12984 fi
12985 done
12986 done
12987 IFS=$as_save_IFS
12988
12989 fi
12990 fi
12991 STRIP=$ac_cv_prog_STRIP
12992 if test -n "$STRIP"; then
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12994 $as_echo "$STRIP" >&6; }
12995 else
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12997 $as_echo "no" >&6; }
12998 fi
12999
13000
13001 fi
13002 if test -z "$ac_cv_prog_STRIP"; then
13003 ac_ct_STRIP=$STRIP
13004 # Extract the first word of "strip", so it can be a program name with args.
13005 set dummy strip; ac_word=$2
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13007 $as_echo_n "checking for $ac_word... " >&6; }
13008 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13009 $as_echo_n "(cached) " >&6
13010 else
13011 if test -n "$ac_ct_STRIP"; then
13012 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13013 else
13014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13015 for as_dir in $PATH
13016 do
13017 IFS=$as_save_IFS
13018 test -z "$as_dir" && as_dir=.
13019 for ac_exec_ext in '' $ac_executable_extensions; do
13020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13021 ac_cv_prog_ac_ct_STRIP="strip"
13022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13023 break 2
13024 fi
13025 done
13026 done
13027 IFS=$as_save_IFS
13028
13029 fi
13030 fi
13031 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13032 if test -n "$ac_ct_STRIP"; then
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13034 $as_echo "$ac_ct_STRIP" >&6; }
13035 else
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13037 $as_echo "no" >&6; }
13038 fi
13039
13040 if test "x$ac_ct_STRIP" = x; then
13041 STRIP=":"
13042 else
13043 case $cross_compiling:$ac_tool_warned in
13044 yes:)
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13047 ac_tool_warned=yes ;;
13048 esac
13049 STRIP=$ac_ct_STRIP
13050 fi
13051 else
13052 STRIP="$ac_cv_prog_STRIP"
13053 fi
13054
13055 test -z "$STRIP" && STRIP=:
13056
13057
13058
13059
13060
13061
13062 if test -n "$ac_tool_prefix"; then
13063 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13064 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13066 $as_echo_n "checking for $ac_word... " >&6; }
13067 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13068 $as_echo_n "(cached) " >&6
13069 else
13070 if test -n "$RANLIB"; then
13071 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13072 else
13073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13074 for as_dir in $PATH
13075 do
13076 IFS=$as_save_IFS
13077 test -z "$as_dir" && as_dir=.
13078 for ac_exec_ext in '' $ac_executable_extensions; do
13079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13080 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13082 break 2
13083 fi
13084 done
13085 done
13086 IFS=$as_save_IFS
13087
13088 fi
13089 fi
13090 RANLIB=$ac_cv_prog_RANLIB
13091 if test -n "$RANLIB"; then
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13093 $as_echo "$RANLIB" >&6; }
13094 else
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13096 $as_echo "no" >&6; }
13097 fi
13098
13099
13100 fi
13101 if test -z "$ac_cv_prog_RANLIB"; then
13102 ac_ct_RANLIB=$RANLIB
13103 # Extract the first word of "ranlib", so it can be a program name with args.
13104 set dummy ranlib; ac_word=$2
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13106 $as_echo_n "checking for $ac_word... " >&6; }
13107 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13108 $as_echo_n "(cached) " >&6
13109 else
13110 if test -n "$ac_ct_RANLIB"; then
13111 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13112 else
13113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13114 for as_dir in $PATH
13115 do
13116 IFS=$as_save_IFS
13117 test -z "$as_dir" && as_dir=.
13118 for ac_exec_ext in '' $ac_executable_extensions; do
13119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13120 ac_cv_prog_ac_ct_RANLIB="ranlib"
13121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13122 break 2
13123 fi
13124 done
13125 done
13126 IFS=$as_save_IFS
13127
13128 fi
13129 fi
13130 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13131 if test -n "$ac_ct_RANLIB"; then
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13133 $as_echo "$ac_ct_RANLIB" >&6; }
13134 else
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13136 $as_echo "no" >&6; }
13137 fi
13138
13139 if test "x$ac_ct_RANLIB" = x; then
13140 RANLIB=":"
13141 else
13142 case $cross_compiling:$ac_tool_warned in
13143 yes:)
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13146 ac_tool_warned=yes ;;
13147 esac
13148 RANLIB=$ac_ct_RANLIB
13149 fi
13150 else
13151 RANLIB="$ac_cv_prog_RANLIB"
13152 fi
13153
13154 test -z "$RANLIB" && RANLIB=:
13155
13156
13157
13158
13159
13160
13161 # Determine commands to create old-style static archives.
13162 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13163 old_postinstall_cmds='chmod 644 $oldlib'
13164 old_postuninstall_cmds=
13165
13166 if test -n "$RANLIB"; then
13167 case $host_os in
13168 openbsd*)
13169 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13170 ;;
13171 *)
13172 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13173 ;;
13174 esac
13175 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13176 fi
13177
13178 case $host_os in
13179 darwin*)
13180 lock_old_archive_extraction=yes ;;
13181 *)
13182 lock_old_archive_extraction=no ;;
13183 esac
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223 # If no C compiler was specified, use CC.
13224 LTCC=${LTCC-"$CC"}
13225
13226 # If no C compiler flags were specified, use CFLAGS.
13227 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13228
13229 # Allow CC to be a program name with arguments.
13230 compiler=$CC
13231
13232
13233 # Check for command to grab the raw symbol name followed by C symbol from nm.
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13235 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13236 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13237 $as_echo_n "(cached) " >&6
13238 else
13239
13240 # These are sane defaults that work on at least a few old systems.
13241 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13242
13243 # Character class describing NM global symbol codes.
13244 symcode='[BCDEGRST]'
13245
13246 # Regexp to match symbols that can be accessed directly from C.
13247 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13248
13249 # Define system-specific variables.
13250 case $host_os in
13251 aix*)
13252 symcode='[BCDT]'
13253 ;;
13254 cygwin* | mingw* | pw32* | cegcc*)
13255 symcode='[ABCDGISTW]'
13256 ;;
13257 hpux*)
13258 if test "$host_cpu" = ia64; then
13259 symcode='[ABCDEGRST]'
13260 fi
13261 ;;
13262 irix* | nonstopux*)
13263 symcode='[BCDEGRST]'
13264 ;;
13265 osf*)
13266 symcode='[BCDEGQRST]'
13267 ;;
13268 solaris*)
13269 symcode='[BDRT]'
13270 ;;
13271 sco3.2v5*)
13272 symcode='[DT]'
13273 ;;
13274 sysv4.2uw2*)
13275 symcode='[DT]'
13276 ;;
13277 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13278 symcode='[ABDT]'
13279 ;;
13280 sysv4)
13281 symcode='[DFNSTU]'
13282 ;;
13283 esac
13284
13285 # If we're using GNU nm, then use its standard symbol codes.
13286 case `$NM -V 2>&1` in
13287 *GNU* | *'with BFD'*)
13288 symcode='[ABCDGIRSTW]' ;;
13289 esac
13290
13291 # Transform an extracted symbol line into a proper C declaration.
13292 # Some systems (esp. on ia64) link data and code symbols differently,
13293 # so use this general approach.
13294 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13295
13296 # Transform an extracted symbol line into symbol name and symbol address
13297 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13298 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'"
13299
13300 # Handle CRLF in mingw tool chain
13301 opt_cr=
13302 case $build_os in
13303 mingw*)
13304 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13305 ;;
13306 esac
13307
13308 # Try without a prefix underscore, then with it.
13309 for ac_symprfx in "" "_"; do
13310
13311 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13312 symxfrm="\\1 $ac_symprfx\\2 \\2"
13313
13314 # Write the raw and C identifiers.
13315 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13316 # Fake it for dumpbin and say T for any non-static function
13317 # and D for any global variable.
13318 # Also find C++ and __fastcall symbols from MSVC++,
13319 # which start with @ or ?.
13320 lt_cv_sys_global_symbol_pipe="$AWK '"\
13321 " {last_section=section; section=\$ 3};"\
13322 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13323 " \$ 0!~/External *\|/{next};"\
13324 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13325 " {if(hide[section]) next};"\
13326 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13327 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13328 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13329 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13330 " ' prfx=^$ac_symprfx"
13331 else
13332 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13333 fi
13334
13335 # Check to see that the pipe works correctly.
13336 pipe_works=no
13337
13338 rm -f conftest*
13339 cat > conftest.$ac_ext <<_LT_EOF
13340 #ifdef __cplusplus
13341 extern "C" {
13342 #endif
13343 char nm_test_var;
13344 void nm_test_func(void);
13345 void nm_test_func(void){}
13346 #ifdef __cplusplus
13347 }
13348 #endif
13349 int main(){nm_test_var='a';nm_test_func();return(0);}
13350 _LT_EOF
13351
13352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13353 (eval $ac_compile) 2>&5
13354 ac_status=$?
13355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13356 test $ac_status = 0; }; then
13357 # Now try to grab the symbols.
13358 nlist=conftest.nm
13359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13360 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13361 ac_status=$?
13362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13363 test $ac_status = 0; } && test -s "$nlist"; then
13364 # Try sorting and uniquifying the output.
13365 if sort "$nlist" | uniq > "$nlist"T; then
13366 mv -f "$nlist"T "$nlist"
13367 else
13368 rm -f "$nlist"T
13369 fi
13370
13371 # Make sure that we snagged all the symbols we need.
13372 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13373 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13374 cat <<_LT_EOF > conftest.$ac_ext
13375 #ifdef __cplusplus
13376 extern "C" {
13377 #endif
13378
13379 _LT_EOF
13380 # Now generate the symbol file.
13381 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13382
13383 cat <<_LT_EOF >> conftest.$ac_ext
13384
13385 /* The mapping between symbol names and symbols. */
13386 const struct {
13387 const char *name;
13388 void *address;
13389 }
13390 lt__PROGRAM__LTX_preloaded_symbols[] =
13391 {
13392 { "@PROGRAM@", (void *) 0 },
13393 _LT_EOF
13394 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13395 cat <<\_LT_EOF >> conftest.$ac_ext
13396 {0, (void *) 0}
13397 };
13398
13399 /* This works around a problem in FreeBSD linker */
13400 #ifdef FREEBSD_WORKAROUND
13401 static const void *lt_preloaded_setup() {
13402 return lt__PROGRAM__LTX_preloaded_symbols;
13403 }
13404 #endif
13405
13406 #ifdef __cplusplus
13407 }
13408 #endif
13409 _LT_EOF
13410 # Now try linking the two files.
13411 mv conftest.$ac_objext conftstm.$ac_objext
13412 lt_save_LIBS="$LIBS"
13413 lt_save_CFLAGS="$CFLAGS"
13414 LIBS="conftstm.$ac_objext"
13415 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13417 (eval $ac_link) 2>&5
13418 ac_status=$?
13419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13420 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13421 pipe_works=yes
13422 fi
13423 LIBS="$lt_save_LIBS"
13424 CFLAGS="$lt_save_CFLAGS"
13425 else
13426 echo "cannot find nm_test_func in $nlist" >&5
13427 fi
13428 else
13429 echo "cannot find nm_test_var in $nlist" >&5
13430 fi
13431 else
13432 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13433 fi
13434 else
13435 echo "$progname: failed program was:" >&5
13436 cat conftest.$ac_ext >&5
13437 fi
13438 rm -rf conftest* conftst*
13439
13440 # Do not use the global_symbol_pipe unless it works.
13441 if test "$pipe_works" = yes; then
13442 break
13443 else
13444 lt_cv_sys_global_symbol_pipe=
13445 fi
13446 done
13447
13448 fi
13449
13450 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13451 lt_cv_sys_global_symbol_to_cdecl=
13452 fi
13453 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13455 $as_echo "failed" >&6; }
13456 else
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13458 $as_echo "ok" >&6; }
13459 fi
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482 # Check whether --enable-libtool-lock was given.
13483 if test "${enable_libtool_lock+set}" = set; then :
13484 enableval=$enable_libtool_lock;
13485 fi
13486
13487 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13488
13489 # Some flags need to be propagated to the compiler or linker for good
13490 # libtool support.
13491 case $host in
13492 ia64-*-hpux*)
13493 # Find out which ABI we are using.
13494 echo 'int i;' > conftest.$ac_ext
13495 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13496 (eval $ac_compile) 2>&5
13497 ac_status=$?
13498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13499 test $ac_status = 0; }; then
13500 case `/usr/bin/file conftest.$ac_objext` in
13501 *ELF-32*)
13502 HPUX_IA64_MODE="32"
13503 ;;
13504 *ELF-64*)
13505 HPUX_IA64_MODE="64"
13506 ;;
13507 esac
13508 fi
13509 rm -rf conftest*
13510 ;;
13511 *-*-irix6*)
13512 # Find out which ABI we are using.
13513 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13515 (eval $ac_compile) 2>&5
13516 ac_status=$?
13517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13518 test $ac_status = 0; }; then
13519 if test "$lt_cv_prog_gnu_ld" = yes; then
13520 case `/usr/bin/file conftest.$ac_objext` in
13521 *32-bit*)
13522 LD="${LD-ld} -melf32bsmip"
13523 ;;
13524 *N32*)
13525 LD="${LD-ld} -melf32bmipn32"
13526 ;;
13527 *64-bit*)
13528 LD="${LD-ld} -melf64bmip"
13529 ;;
13530 esac
13531 else
13532 case `/usr/bin/file conftest.$ac_objext` in
13533 *32-bit*)
13534 LD="${LD-ld} -32"
13535 ;;
13536 *N32*)
13537 LD="${LD-ld} -n32"
13538 ;;
13539 *64-bit*)
13540 LD="${LD-ld} -64"
13541 ;;
13542 esac
13543 fi
13544 fi
13545 rm -rf conftest*
13546 ;;
13547
13548 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13549 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13550 # Find out which ABI we are using.
13551 echo 'int i;' > conftest.$ac_ext
13552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13553 (eval $ac_compile) 2>&5
13554 ac_status=$?
13555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13556 test $ac_status = 0; }; then
13557 case `/usr/bin/file conftest.o` in
13558 *32-bit*)
13559 case $host in
13560 x86_64-*kfreebsd*-gnu)
13561 LD="${LD-ld} -m elf_i386_fbsd"
13562 ;;
13563 x86_64-*linux*)
13564 case `/usr/bin/file conftest.o` in
13565 *x86-64*)
13566 LD="${LD-ld} -m elf32_x86_64"
13567 ;;
13568 *)
13569 LD="${LD-ld} -m elf_i386"
13570 ;;
13571 esac
13572 ;;
13573 ppc64-*linux*|powerpc64-*linux*)
13574 LD="${LD-ld} -m elf32ppclinux"
13575 ;;
13576 s390x-*linux*)
13577 LD="${LD-ld} -m elf_s390"
13578 ;;
13579 sparc64-*linux*)
13580 LD="${LD-ld} -m elf32_sparc"
13581 ;;
13582 esac
13583 ;;
13584 *64-bit*)
13585 case $host in
13586 x86_64-*kfreebsd*-gnu)
13587 LD="${LD-ld} -m elf_x86_64_fbsd"
13588 ;;
13589 x86_64-*linux*)
13590 LD="${LD-ld} -m elf_x86_64"
13591 ;;
13592 ppc*-*linux*|powerpc*-*linux*)
13593 LD="${LD-ld} -m elf64ppc"
13594 ;;
13595 s390*-*linux*|s390*-*tpf*)
13596 LD="${LD-ld} -m elf64_s390"
13597 ;;
13598 sparc*-*linux*)
13599 LD="${LD-ld} -m elf64_sparc"
13600 ;;
13601 esac
13602 ;;
13603 esac
13604 fi
13605 rm -rf conftest*
13606 ;;
13607
13608 *-*-sco3.2v5*)
13609 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13610 SAVE_CFLAGS="$CFLAGS"
13611 CFLAGS="$CFLAGS -belf"
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13613 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13614 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13615 $as_echo_n "(cached) " >&6
13616 else
13617 ac_ext=c
13618 ac_cpp='$CPP $CPPFLAGS'
13619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13622
13623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13624 /* end confdefs.h. */
13625
13626 int
13627 main ()
13628 {
13629
13630 ;
13631 return 0;
13632 }
13633 _ACEOF
13634 if ac_fn_c_try_link "$LINENO"; then :
13635 lt_cv_cc_needs_belf=yes
13636 else
13637 lt_cv_cc_needs_belf=no
13638 fi
13639 rm -f core conftest.err conftest.$ac_objext \
13640 conftest$ac_exeext conftest.$ac_ext
13641 ac_ext=c
13642 ac_cpp='$CPP $CPPFLAGS'
13643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13646
13647 fi
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13649 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13650 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13651 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13652 CFLAGS="$SAVE_CFLAGS"
13653 fi
13654 ;;
13655 sparc*-*solaris*)
13656 # Find out which ABI we are using.
13657 echo 'int i;' > conftest.$ac_ext
13658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13659 (eval $ac_compile) 2>&5
13660 ac_status=$?
13661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13662 test $ac_status = 0; }; then
13663 case `/usr/bin/file conftest.o` in
13664 *64-bit*)
13665 case $lt_cv_prog_gnu_ld in
13666 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13667 *)
13668 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13669 LD="${LD-ld} -64"
13670 fi
13671 ;;
13672 esac
13673 ;;
13674 esac
13675 fi
13676 rm -rf conftest*
13677 ;;
13678 esac
13679
13680 need_locks="$enable_libtool_lock"
13681
13682
13683 case $host_os in
13684 rhapsody* | darwin*)
13685 if test -n "$ac_tool_prefix"; then
13686 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13687 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13689 $as_echo_n "checking for $ac_word... " >&6; }
13690 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13691 $as_echo_n "(cached) " >&6
13692 else
13693 if test -n "$DSYMUTIL"; then
13694 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13695 else
13696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13697 for as_dir in $PATH
13698 do
13699 IFS=$as_save_IFS
13700 test -z "$as_dir" && as_dir=.
13701 for ac_exec_ext in '' $ac_executable_extensions; do
13702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13703 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13705 break 2
13706 fi
13707 done
13708 done
13709 IFS=$as_save_IFS
13710
13711 fi
13712 fi
13713 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13714 if test -n "$DSYMUTIL"; then
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13716 $as_echo "$DSYMUTIL" >&6; }
13717 else
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13719 $as_echo "no" >&6; }
13720 fi
13721
13722
13723 fi
13724 if test -z "$ac_cv_prog_DSYMUTIL"; then
13725 ac_ct_DSYMUTIL=$DSYMUTIL
13726 # Extract the first word of "dsymutil", so it can be a program name with args.
13727 set dummy dsymutil; ac_word=$2
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13729 $as_echo_n "checking for $ac_word... " >&6; }
13730 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13731 $as_echo_n "(cached) " >&6
13732 else
13733 if test -n "$ac_ct_DSYMUTIL"; then
13734 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13735 else
13736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13737 for as_dir in $PATH
13738 do
13739 IFS=$as_save_IFS
13740 test -z "$as_dir" && as_dir=.
13741 for ac_exec_ext in '' $ac_executable_extensions; do
13742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13743 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13745 break 2
13746 fi
13747 done
13748 done
13749 IFS=$as_save_IFS
13750
13751 fi
13752 fi
13753 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13754 if test -n "$ac_ct_DSYMUTIL"; then
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13756 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13757 else
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13759 $as_echo "no" >&6; }
13760 fi
13761
13762 if test "x$ac_ct_DSYMUTIL" = x; then
13763 DSYMUTIL=":"
13764 else
13765 case $cross_compiling:$ac_tool_warned in
13766 yes:)
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13769 ac_tool_warned=yes ;;
13770 esac
13771 DSYMUTIL=$ac_ct_DSYMUTIL
13772 fi
13773 else
13774 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13775 fi
13776
13777 if test -n "$ac_tool_prefix"; then
13778 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13779 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13781 $as_echo_n "checking for $ac_word... " >&6; }
13782 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13783 $as_echo_n "(cached) " >&6
13784 else
13785 if test -n "$NMEDIT"; then
13786 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13787 else
13788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13789 for as_dir in $PATH
13790 do
13791 IFS=$as_save_IFS
13792 test -z "$as_dir" && as_dir=.
13793 for ac_exec_ext in '' $ac_executable_extensions; do
13794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13795 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13797 break 2
13798 fi
13799 done
13800 done
13801 IFS=$as_save_IFS
13802
13803 fi
13804 fi
13805 NMEDIT=$ac_cv_prog_NMEDIT
13806 if test -n "$NMEDIT"; then
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13808 $as_echo "$NMEDIT" >&6; }
13809 else
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13811 $as_echo "no" >&6; }
13812 fi
13813
13814
13815 fi
13816 if test -z "$ac_cv_prog_NMEDIT"; then
13817 ac_ct_NMEDIT=$NMEDIT
13818 # Extract the first word of "nmedit", so it can be a program name with args.
13819 set dummy nmedit; ac_word=$2
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13821 $as_echo_n "checking for $ac_word... " >&6; }
13822 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13823 $as_echo_n "(cached) " >&6
13824 else
13825 if test -n "$ac_ct_NMEDIT"; then
13826 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13827 else
13828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13829 for as_dir in $PATH
13830 do
13831 IFS=$as_save_IFS
13832 test -z "$as_dir" && as_dir=.
13833 for ac_exec_ext in '' $ac_executable_extensions; do
13834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13835 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13837 break 2
13838 fi
13839 done
13840 done
13841 IFS=$as_save_IFS
13842
13843 fi
13844 fi
13845 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13846 if test -n "$ac_ct_NMEDIT"; then
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13848 $as_echo "$ac_ct_NMEDIT" >&6; }
13849 else
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13851 $as_echo "no" >&6; }
13852 fi
13853
13854 if test "x$ac_ct_NMEDIT" = x; then
13855 NMEDIT=":"
13856 else
13857 case $cross_compiling:$ac_tool_warned in
13858 yes:)
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13861 ac_tool_warned=yes ;;
13862 esac
13863 NMEDIT=$ac_ct_NMEDIT
13864 fi
13865 else
13866 NMEDIT="$ac_cv_prog_NMEDIT"
13867 fi
13868
13869 if test -n "$ac_tool_prefix"; then
13870 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13871 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13873 $as_echo_n "checking for $ac_word... " >&6; }
13874 if test "${ac_cv_prog_LIPO+set}" = set; then :
13875 $as_echo_n "(cached) " >&6
13876 else
13877 if test -n "$LIPO"; then
13878 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13879 else
13880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13881 for as_dir in $PATH
13882 do
13883 IFS=$as_save_IFS
13884 test -z "$as_dir" && as_dir=.
13885 for ac_exec_ext in '' $ac_executable_extensions; do
13886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13887 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13889 break 2
13890 fi
13891 done
13892 done
13893 IFS=$as_save_IFS
13894
13895 fi
13896 fi
13897 LIPO=$ac_cv_prog_LIPO
13898 if test -n "$LIPO"; then
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13900 $as_echo "$LIPO" >&6; }
13901 else
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13903 $as_echo "no" >&6; }
13904 fi
13905
13906
13907 fi
13908 if test -z "$ac_cv_prog_LIPO"; then
13909 ac_ct_LIPO=$LIPO
13910 # Extract the first word of "lipo", so it can be a program name with args.
13911 set dummy lipo; ac_word=$2
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13913 $as_echo_n "checking for $ac_word... " >&6; }
13914 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13915 $as_echo_n "(cached) " >&6
13916 else
13917 if test -n "$ac_ct_LIPO"; then
13918 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13919 else
13920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13921 for as_dir in $PATH
13922 do
13923 IFS=$as_save_IFS
13924 test -z "$as_dir" && as_dir=.
13925 for ac_exec_ext in '' $ac_executable_extensions; do
13926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13927 ac_cv_prog_ac_ct_LIPO="lipo"
13928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13929 break 2
13930 fi
13931 done
13932 done
13933 IFS=$as_save_IFS
13934
13935 fi
13936 fi
13937 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13938 if test -n "$ac_ct_LIPO"; then
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13940 $as_echo "$ac_ct_LIPO" >&6; }
13941 else
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13943 $as_echo "no" >&6; }
13944 fi
13945
13946 if test "x$ac_ct_LIPO" = x; then
13947 LIPO=":"
13948 else
13949 case $cross_compiling:$ac_tool_warned in
13950 yes:)
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13953 ac_tool_warned=yes ;;
13954 esac
13955 LIPO=$ac_ct_LIPO
13956 fi
13957 else
13958 LIPO="$ac_cv_prog_LIPO"
13959 fi
13960
13961 if test -n "$ac_tool_prefix"; then
13962 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13963 set dummy ${ac_tool_prefix}otool; ac_word=$2
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13965 $as_echo_n "checking for $ac_word... " >&6; }
13966 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13967 $as_echo_n "(cached) " >&6
13968 else
13969 if test -n "$OTOOL"; then
13970 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13971 else
13972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13973 for as_dir in $PATH
13974 do
13975 IFS=$as_save_IFS
13976 test -z "$as_dir" && as_dir=.
13977 for ac_exec_ext in '' $ac_executable_extensions; do
13978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13979 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13981 break 2
13982 fi
13983 done
13984 done
13985 IFS=$as_save_IFS
13986
13987 fi
13988 fi
13989 OTOOL=$ac_cv_prog_OTOOL
13990 if test -n "$OTOOL"; then
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13992 $as_echo "$OTOOL" >&6; }
13993 else
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13995 $as_echo "no" >&6; }
13996 fi
13997
13998
13999 fi
14000 if test -z "$ac_cv_prog_OTOOL"; then
14001 ac_ct_OTOOL=$OTOOL
14002 # Extract the first word of "otool", so it can be a program name with args.
14003 set dummy otool; ac_word=$2
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14005 $as_echo_n "checking for $ac_word... " >&6; }
14006 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14007 $as_echo_n "(cached) " >&6
14008 else
14009 if test -n "$ac_ct_OTOOL"; then
14010 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14011 else
14012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14013 for as_dir in $PATH
14014 do
14015 IFS=$as_save_IFS
14016 test -z "$as_dir" && as_dir=.
14017 for ac_exec_ext in '' $ac_executable_extensions; do
14018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14019 ac_cv_prog_ac_ct_OTOOL="otool"
14020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14021 break 2
14022 fi
14023 done
14024 done
14025 IFS=$as_save_IFS
14026
14027 fi
14028 fi
14029 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14030 if test -n "$ac_ct_OTOOL"; then
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14032 $as_echo "$ac_ct_OTOOL" >&6; }
14033 else
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14035 $as_echo "no" >&6; }
14036 fi
14037
14038 if test "x$ac_ct_OTOOL" = x; then
14039 OTOOL=":"
14040 else
14041 case $cross_compiling:$ac_tool_warned in
14042 yes:)
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14045 ac_tool_warned=yes ;;
14046 esac
14047 OTOOL=$ac_ct_OTOOL
14048 fi
14049 else
14050 OTOOL="$ac_cv_prog_OTOOL"
14051 fi
14052
14053 if test -n "$ac_tool_prefix"; then
14054 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14055 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14057 $as_echo_n "checking for $ac_word... " >&6; }
14058 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14059 $as_echo_n "(cached) " >&6
14060 else
14061 if test -n "$OTOOL64"; then
14062 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14063 else
14064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14065 for as_dir in $PATH
14066 do
14067 IFS=$as_save_IFS
14068 test -z "$as_dir" && as_dir=.
14069 for ac_exec_ext in '' $ac_executable_extensions; do
14070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14071 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14073 break 2
14074 fi
14075 done
14076 done
14077 IFS=$as_save_IFS
14078
14079 fi
14080 fi
14081 OTOOL64=$ac_cv_prog_OTOOL64
14082 if test -n "$OTOOL64"; then
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14084 $as_echo "$OTOOL64" >&6; }
14085 else
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14087 $as_echo "no" >&6; }
14088 fi
14089
14090
14091 fi
14092 if test -z "$ac_cv_prog_OTOOL64"; then
14093 ac_ct_OTOOL64=$OTOOL64
14094 # Extract the first word of "otool64", so it can be a program name with args.
14095 set dummy otool64; ac_word=$2
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14097 $as_echo_n "checking for $ac_word... " >&6; }
14098 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14099 $as_echo_n "(cached) " >&6
14100 else
14101 if test -n "$ac_ct_OTOOL64"; then
14102 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14103 else
14104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14105 for as_dir in $PATH
14106 do
14107 IFS=$as_save_IFS
14108 test -z "$as_dir" && as_dir=.
14109 for ac_exec_ext in '' $ac_executable_extensions; do
14110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14111 ac_cv_prog_ac_ct_OTOOL64="otool64"
14112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14113 break 2
14114 fi
14115 done
14116 done
14117 IFS=$as_save_IFS
14118
14119 fi
14120 fi
14121 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14122 if test -n "$ac_ct_OTOOL64"; then
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14124 $as_echo "$ac_ct_OTOOL64" >&6; }
14125 else
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14127 $as_echo "no" >&6; }
14128 fi
14129
14130 if test "x$ac_ct_OTOOL64" = x; then
14131 OTOOL64=":"
14132 else
14133 case $cross_compiling:$ac_tool_warned in
14134 yes:)
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14137 ac_tool_warned=yes ;;
14138 esac
14139 OTOOL64=$ac_ct_OTOOL64
14140 fi
14141 else
14142 OTOOL64="$ac_cv_prog_OTOOL64"
14143 fi
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14172 $as_echo_n "checking for -single_module linker flag... " >&6; }
14173 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14174 $as_echo_n "(cached) " >&6
14175 else
14176 lt_cv_apple_cc_single_mod=no
14177 if test -z "${LT_MULTI_MODULE}"; then
14178 # By default we will add the -single_module flag. You can override
14179 # by either setting the environment variable LT_MULTI_MODULE
14180 # non-empty at configure time, or by adding -multi_module to the
14181 # link flags.
14182 rm -rf libconftest.dylib*
14183 echo "int foo(void){return 1;}" > conftest.c
14184 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14185 -dynamiclib -Wl,-single_module conftest.c" >&5
14186 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14187 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14188 _lt_result=$?
14189 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14190 lt_cv_apple_cc_single_mod=yes
14191 else
14192 cat conftest.err >&5
14193 fi
14194 rm -rf libconftest.dylib*
14195 rm -f conftest.*
14196 fi
14197 fi
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14199 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14201 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14202 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14203 $as_echo_n "(cached) " >&6
14204 else
14205 lt_cv_ld_exported_symbols_list=no
14206 save_LDFLAGS=$LDFLAGS
14207 echo "_main" > conftest.sym
14208 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210 /* end confdefs.h. */
14211
14212 int
14213 main ()
14214 {
14215
14216 ;
14217 return 0;
14218 }
14219 _ACEOF
14220 if ac_fn_c_try_link "$LINENO"; then :
14221 lt_cv_ld_exported_symbols_list=yes
14222 else
14223 lt_cv_ld_exported_symbols_list=no
14224 fi
14225 rm -f core conftest.err conftest.$ac_objext \
14226 conftest$ac_exeext conftest.$ac_ext
14227 LDFLAGS="$save_LDFLAGS"
14228
14229 fi
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14231 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14233 $as_echo_n "checking for -force_load linker flag... " >&6; }
14234 if test "${lt_cv_ld_force_load+set}" = set; then :
14235 $as_echo_n "(cached) " >&6
14236 else
14237 lt_cv_ld_force_load=no
14238 cat > conftest.c << _LT_EOF
14239 int forced_loaded() { return 2;}
14240 _LT_EOF
14241 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14242 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14243 echo "$AR cru libconftest.a conftest.o" >&5
14244 $AR cru libconftest.a conftest.o 2>&5
14245 cat > conftest.c << _LT_EOF
14246 int main() { return 0;}
14247 _LT_EOF
14248 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14249 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14250 _lt_result=$?
14251 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14252 lt_cv_ld_force_load=yes
14253 else
14254 cat conftest.err >&5
14255 fi
14256 rm -f conftest.err libconftest.a conftest conftest.c
14257 rm -rf conftest.dSYM
14258
14259 fi
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14261 $as_echo "$lt_cv_ld_force_load" >&6; }
14262 case $host_os in
14263 rhapsody* | darwin1.[012])
14264 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14265 darwin1.*)
14266 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14267 darwin*) # darwin 5.x on
14268 # if running on 10.5 or later, the deployment target defaults
14269 # to the OS version, if on x86, and 10.4, the deployment
14270 # target defaults to 10.4. Don't you love it?
14271 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14272 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14273 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14274 10.[012]*)
14275 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14276 10.*)
14277 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14278 esac
14279 ;;
14280 esac
14281 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14282 _lt_dar_single_mod='$single_module'
14283 fi
14284 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14285 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14286 else
14287 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14288 fi
14289 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14290 _lt_dsymutil='~$DSYMUTIL $lib || :'
14291 else
14292 _lt_dsymutil=
14293 fi
14294 ;;
14295 esac
14296
14297 for ac_header in dlfcn.h
14298 do :
14299 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14300 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14301 cat >>confdefs.h <<_ACEOF
14302 #define HAVE_DLFCN_H 1
14303 _ACEOF
14304
14305 fi
14306 done
14307
14308
14309
14310
14311
14312 # Set options
14313
14314
14315
14316 enable_dlopen=no
14317
14318
14319 enable_win32_dll=no
14320
14321
14322 # Check whether --enable-shared was given.
14323 if test "${enable_shared+set}" = set; then :
14324 enableval=$enable_shared; p=${PACKAGE-default}
14325 case $enableval in
14326 yes) enable_shared=yes ;;
14327 no) enable_shared=no ;;
14328 *)
14329 enable_shared=no
14330 # Look at the argument we got. We use all the common list separators.
14331 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14332 for pkg in $enableval; do
14333 IFS="$lt_save_ifs"
14334 if test "X$pkg" = "X$p"; then
14335 enable_shared=yes
14336 fi
14337 done
14338 IFS="$lt_save_ifs"
14339 ;;
14340 esac
14341 else
14342 enable_shared=yes
14343 fi
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353 # Check whether --enable-static was given.
14354 if test "${enable_static+set}" = set; then :
14355 enableval=$enable_static; p=${PACKAGE-default}
14356 case $enableval in
14357 yes) enable_static=yes ;;
14358 no) enable_static=no ;;
14359 *)
14360 enable_static=no
14361 # Look at the argument we got. We use all the common list separators.
14362 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14363 for pkg in $enableval; do
14364 IFS="$lt_save_ifs"
14365 if test "X$pkg" = "X$p"; then
14366 enable_static=yes
14367 fi
14368 done
14369 IFS="$lt_save_ifs"
14370 ;;
14371 esac
14372 else
14373 enable_static=yes
14374 fi
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385 # Check whether --with-pic was given.
14386 if test "${with_pic+set}" = set; then :
14387 withval=$with_pic; pic_mode="$withval"
14388 else
14389 pic_mode=default
14390 fi
14391
14392
14393 test -z "$pic_mode" && pic_mode=default
14394
14395
14396
14397
14398
14399
14400
14401 # Check whether --enable-fast-install was given.
14402 if test "${enable_fast_install+set}" = set; then :
14403 enableval=$enable_fast_install; p=${PACKAGE-default}
14404 case $enableval in
14405 yes) enable_fast_install=yes ;;
14406 no) enable_fast_install=no ;;
14407 *)
14408 enable_fast_install=no
14409 # Look at the argument we got. We use all the common list separators.
14410 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14411 for pkg in $enableval; do
14412 IFS="$lt_save_ifs"
14413 if test "X$pkg" = "X$p"; then
14414 enable_fast_install=yes
14415 fi
14416 done
14417 IFS="$lt_save_ifs"
14418 ;;
14419 esac
14420 else
14421 enable_fast_install=yes
14422 fi
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434 # This can be used to rebuild libtool when needed
14435 LIBTOOL_DEPS="$ltmain"
14436
14437 # Always use our own libtool.
14438 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465 test -z "$LN_S" && LN_S="ln -s"
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480 if test -n "${ZSH_VERSION+set}" ; then
14481 setopt NO_GLOB_SUBST
14482 fi
14483
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14485 $as_echo_n "checking for objdir... " >&6; }
14486 if test "${lt_cv_objdir+set}" = set; then :
14487 $as_echo_n "(cached) " >&6
14488 else
14489 rm -f .libs 2>/dev/null
14490 mkdir .libs 2>/dev/null
14491 if test -d .libs; then
14492 lt_cv_objdir=.libs
14493 else
14494 # MS-DOS does not allow filenames that begin with a dot.
14495 lt_cv_objdir=_libs
14496 fi
14497 rmdir .libs 2>/dev/null
14498 fi
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14500 $as_echo "$lt_cv_objdir" >&6; }
14501 objdir=$lt_cv_objdir
14502
14503
14504
14505
14506
14507 cat >>confdefs.h <<_ACEOF
14508 #define LT_OBJDIR "$lt_cv_objdir/"
14509 _ACEOF
14510
14511
14512
14513
14514 case $host_os in
14515 aix3*)
14516 # AIX sometimes has problems with the GCC collect2 program. For some
14517 # reason, if we set the COLLECT_NAMES environment variable, the problems
14518 # vanish in a puff of smoke.
14519 if test "X${COLLECT_NAMES+set}" != Xset; then
14520 COLLECT_NAMES=
14521 export COLLECT_NAMES
14522 fi
14523 ;;
14524 esac
14525
14526 # Global variables:
14527 ofile=libtool
14528 can_build_shared=yes
14529
14530 # All known linkers require a `.a' archive for static linking (except MSVC,
14531 # which needs '.lib').
14532 libext=a
14533
14534 with_gnu_ld="$lt_cv_prog_gnu_ld"
14535
14536 old_CC="$CC"
14537 old_CFLAGS="$CFLAGS"
14538
14539 # Set sane defaults for various variables
14540 test -z "$CC" && CC=cc
14541 test -z "$LTCC" && LTCC=$CC
14542 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14543 test -z "$LD" && LD=ld
14544 test -z "$ac_objext" && ac_objext=o
14545
14546 for cc_temp in $compiler""; do
14547 case $cc_temp in
14548 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14549 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14550 \-*) ;;
14551 *) break;;
14552 esac
14553 done
14554 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14555
14556
14557 # Only perform the check for file, if the check method requires it
14558 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14559 case $deplibs_check_method in
14560 file_magic*)
14561 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14563 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14564 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14565 $as_echo_n "(cached) " >&6
14566 else
14567 case $MAGIC_CMD in
14568 [\\/*] | ?:[\\/]*)
14569 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14570 ;;
14571 *)
14572 lt_save_MAGIC_CMD="$MAGIC_CMD"
14573 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14574 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14575 for ac_dir in $ac_dummy; do
14576 IFS="$lt_save_ifs"
14577 test -z "$ac_dir" && ac_dir=.
14578 if test -f $ac_dir/${ac_tool_prefix}file; then
14579 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14580 if test -n "$file_magic_test_file"; then
14581 case $deplibs_check_method in
14582 "file_magic "*)
14583 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14584 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14585 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14586 $EGREP "$file_magic_regex" > /dev/null; then
14587 :
14588 else
14589 cat <<_LT_EOF 1>&2
14590
14591 *** Warning: the command libtool uses to detect shared libraries,
14592 *** $file_magic_cmd, produces output that libtool cannot recognize.
14593 *** The result is that libtool may fail to recognize shared libraries
14594 *** as such. This will affect the creation of libtool libraries that
14595 *** depend on shared libraries, but programs linked with such libtool
14596 *** libraries will work regardless of this problem. Nevertheless, you
14597 *** may want to report the problem to your system manager and/or to
14598 *** bug-libtool@gnu.org
14599
14600 _LT_EOF
14601 fi ;;
14602 esac
14603 fi
14604 break
14605 fi
14606 done
14607 IFS="$lt_save_ifs"
14608 MAGIC_CMD="$lt_save_MAGIC_CMD"
14609 ;;
14610 esac
14611 fi
14612
14613 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14614 if test -n "$MAGIC_CMD"; then
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14616 $as_echo "$MAGIC_CMD" >&6; }
14617 else
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14619 $as_echo "no" >&6; }
14620 fi
14621
14622
14623
14624
14625
14626 if test -z "$lt_cv_path_MAGIC_CMD"; then
14627 if test -n "$ac_tool_prefix"; then
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14629 $as_echo_n "checking for file... " >&6; }
14630 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14631 $as_echo_n "(cached) " >&6
14632 else
14633 case $MAGIC_CMD in
14634 [\\/*] | ?:[\\/]*)
14635 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14636 ;;
14637 *)
14638 lt_save_MAGIC_CMD="$MAGIC_CMD"
14639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14640 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14641 for ac_dir in $ac_dummy; do
14642 IFS="$lt_save_ifs"
14643 test -z "$ac_dir" && ac_dir=.
14644 if test -f $ac_dir/file; then
14645 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14646 if test -n "$file_magic_test_file"; then
14647 case $deplibs_check_method in
14648 "file_magic "*)
14649 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14650 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14651 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14652 $EGREP "$file_magic_regex" > /dev/null; then
14653 :
14654 else
14655 cat <<_LT_EOF 1>&2
14656
14657 *** Warning: the command libtool uses to detect shared libraries,
14658 *** $file_magic_cmd, produces output that libtool cannot recognize.
14659 *** The result is that libtool may fail to recognize shared libraries
14660 *** as such. This will affect the creation of libtool libraries that
14661 *** depend on shared libraries, but programs linked with such libtool
14662 *** libraries will work regardless of this problem. Nevertheless, you
14663 *** may want to report the problem to your system manager and/or to
14664 *** bug-libtool@gnu.org
14665
14666 _LT_EOF
14667 fi ;;
14668 esac
14669 fi
14670 break
14671 fi
14672 done
14673 IFS="$lt_save_ifs"
14674 MAGIC_CMD="$lt_save_MAGIC_CMD"
14675 ;;
14676 esac
14677 fi
14678
14679 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14680 if test -n "$MAGIC_CMD"; then
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14682 $as_echo "$MAGIC_CMD" >&6; }
14683 else
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14685 $as_echo "no" >&6; }
14686 fi
14687
14688
14689 else
14690 MAGIC_CMD=:
14691 fi
14692 fi
14693
14694 fi
14695 ;;
14696 esac
14697
14698 # Use C for the default configuration in the libtool script
14699
14700 lt_save_CC="$CC"
14701 ac_ext=c
14702 ac_cpp='$CPP $CPPFLAGS'
14703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14706
14707
14708 # Source file extension for C test sources.
14709 ac_ext=c
14710
14711 # Object file extension for compiled C test sources.
14712 objext=o
14713 objext=$objext
14714
14715 # Code to be used in simple compile tests
14716 lt_simple_compile_test_code="int some_variable = 0;"
14717
14718 # Code to be used in simple link tests
14719 lt_simple_link_test_code='int main(){return(0);}'
14720
14721
14722
14723
14724
14725
14726
14727 # If no C compiler was specified, use CC.
14728 LTCC=${LTCC-"$CC"}
14729
14730 # If no C compiler flags were specified, use CFLAGS.
14731 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14732
14733 # Allow CC to be a program name with arguments.
14734 compiler=$CC
14735
14736 # Save the default compiler, since it gets overwritten when the other
14737 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14738 compiler_DEFAULT=$CC
14739
14740 # save warnings/boilerplate of simple test code
14741 ac_outfile=conftest.$ac_objext
14742 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14743 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14744 _lt_compiler_boilerplate=`cat conftest.err`
14745 $RM conftest*
14746
14747 ac_outfile=conftest.$ac_objext
14748 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14749 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14750 _lt_linker_boilerplate=`cat conftest.err`
14751 $RM -r conftest*
14752
14753
14754 ## CAVEAT EMPTOR:
14755 ## There is no encapsulation within the following macros, do not change
14756 ## the running order or otherwise move them around unless you know exactly
14757 ## what you are doing...
14758 if test -n "$compiler"; then
14759
14760 lt_prog_compiler_no_builtin_flag=
14761
14762 if test "$GCC" = yes; then
14763 case $cc_basename in
14764 nvcc*)
14765 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14766 *)
14767 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14768 esac
14769
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14771 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14772 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14773 $as_echo_n "(cached) " >&6
14774 else
14775 lt_cv_prog_compiler_rtti_exceptions=no
14776 ac_outfile=conftest.$ac_objext
14777 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14778 lt_compiler_flag="-fno-rtti -fno-exceptions"
14779 # Insert the option either (1) after the last *FLAGS variable, or
14780 # (2) before a word containing "conftest.", or (3) at the end.
14781 # Note that $ac_compile itself does not contain backslashes and begins
14782 # with a dollar sign (not a hyphen), so the echo should work correctly.
14783 # The option is referenced via a variable to avoid confusing sed.
14784 lt_compile=`echo "$ac_compile" | $SED \
14785 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14787 -e 's:$: $lt_compiler_flag:'`
14788 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14789 (eval "$lt_compile" 2>conftest.err)
14790 ac_status=$?
14791 cat conftest.err >&5
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 if (exit $ac_status) && test -s "$ac_outfile"; then
14794 # The compiler can only warn and ignore the option if not recognized
14795 # So say no if there are warnings other than the usual output.
14796 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14797 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14798 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14799 lt_cv_prog_compiler_rtti_exceptions=yes
14800 fi
14801 fi
14802 $RM conftest*
14803
14804 fi
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14806 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14807
14808 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14809 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14810 else
14811 :
14812 fi
14813
14814 fi
14815
14816
14817
14818
14819
14820
14821 lt_prog_compiler_wl=
14822 lt_prog_compiler_pic=
14823 lt_prog_compiler_static=
14824
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14826 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14827
14828 if test "$GCC" = yes; then
14829 lt_prog_compiler_wl='-Wl,'
14830 lt_prog_compiler_static='-static'
14831
14832 case $host_os in
14833 aix*)
14834 # All AIX code is PIC.
14835 if test "$host_cpu" = ia64; then
14836 # AIX 5 now supports IA64 processor
14837 lt_prog_compiler_static='-Bstatic'
14838 fi
14839 ;;
14840
14841 amigaos*)
14842 case $host_cpu in
14843 powerpc)
14844 # see comment about AmigaOS4 .so support
14845 lt_prog_compiler_pic='-fPIC'
14846 ;;
14847 m68k)
14848 # FIXME: we need at least 68020 code to build shared libraries, but
14849 # adding the `-m68020' flag to GCC prevents building anything better,
14850 # like `-m68040'.
14851 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14852 ;;
14853 esac
14854 ;;
14855
14856 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14857 # PIC is the default for these OSes.
14858 ;;
14859
14860 mingw* | cygwin* | pw32* | os2* | cegcc*)
14861 # This hack is so that the source file can tell whether it is being
14862 # built for inclusion in a dll (and should export symbols for example).
14863 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14864 # (--disable-auto-import) libraries
14865 lt_prog_compiler_pic='-DDLL_EXPORT'
14866 ;;
14867
14868 darwin* | rhapsody*)
14869 # PIC is the default on this platform
14870 # Common symbols not allowed in MH_DYLIB files
14871 lt_prog_compiler_pic='-fno-common'
14872 ;;
14873
14874 haiku*)
14875 # PIC is the default for Haiku.
14876 # The "-static" flag exists, but is broken.
14877 lt_prog_compiler_static=
14878 ;;
14879
14880 hpux*)
14881 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14882 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14883 # sets the default TLS model and affects inlining.
14884 case $host_cpu in
14885 hppa*64*)
14886 # +Z the default
14887 ;;
14888 *)
14889 lt_prog_compiler_pic='-fPIC'
14890 ;;
14891 esac
14892 ;;
14893
14894 interix[3-9]*)
14895 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14896 # Instead, we relocate shared libraries at runtime.
14897 ;;
14898
14899 msdosdjgpp*)
14900 # Just because we use GCC doesn't mean we suddenly get shared libraries
14901 # on systems that don't support them.
14902 lt_prog_compiler_can_build_shared=no
14903 enable_shared=no
14904 ;;
14905
14906 *nto* | *qnx*)
14907 # QNX uses GNU C++, but need to define -shared option too, otherwise
14908 # it will coredump.
14909 lt_prog_compiler_pic='-fPIC -shared'
14910 ;;
14911
14912 sysv4*MP*)
14913 if test -d /usr/nec; then
14914 lt_prog_compiler_pic=-Kconform_pic
14915 fi
14916 ;;
14917
14918 *)
14919 lt_prog_compiler_pic='-fPIC'
14920 ;;
14921 esac
14922
14923 case $cc_basename in
14924 nvcc*) # Cuda Compiler Driver 2.2
14925 lt_prog_compiler_wl='-Xlinker '
14926 lt_prog_compiler_pic='-Xcompiler -fPIC'
14927 ;;
14928 esac
14929 else
14930 # PORTME Check for flag to pass linker flags through the system compiler.
14931 case $host_os in
14932 aix*)
14933 lt_prog_compiler_wl='-Wl,'
14934 if test "$host_cpu" = ia64; then
14935 # AIX 5 now supports IA64 processor
14936 lt_prog_compiler_static='-Bstatic'
14937 else
14938 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14939 fi
14940 ;;
14941
14942 mingw* | cygwin* | pw32* | os2* | cegcc*)
14943 # This hack is so that the source file can tell whether it is being
14944 # built for inclusion in a dll (and should export symbols for example).
14945 lt_prog_compiler_pic='-DDLL_EXPORT'
14946 ;;
14947
14948 hpux9* | hpux10* | hpux11*)
14949 lt_prog_compiler_wl='-Wl,'
14950 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14951 # not for PA HP-UX.
14952 case $host_cpu in
14953 hppa*64*|ia64*)
14954 # +Z the default
14955 ;;
14956 *)
14957 lt_prog_compiler_pic='+Z'
14958 ;;
14959 esac
14960 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14961 lt_prog_compiler_static='${wl}-a ${wl}archive'
14962 ;;
14963
14964 irix5* | irix6* | nonstopux*)
14965 lt_prog_compiler_wl='-Wl,'
14966 # PIC (with -KPIC) is the default.
14967 lt_prog_compiler_static='-non_shared'
14968 ;;
14969
14970 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14971 case $cc_basename in
14972 # old Intel for x86_64 which still supported -KPIC.
14973 ecc*)
14974 lt_prog_compiler_wl='-Wl,'
14975 lt_prog_compiler_pic='-KPIC'
14976 lt_prog_compiler_static='-static'
14977 ;;
14978 # icc used to be incompatible with GCC.
14979 # ICC 10 doesn't accept -KPIC any more.
14980 icc* | ifort*)
14981 lt_prog_compiler_wl='-Wl,'
14982 lt_prog_compiler_pic='-fPIC'
14983 lt_prog_compiler_static='-static'
14984 ;;
14985 # Lahey Fortran 8.1.
14986 lf95*)
14987 lt_prog_compiler_wl='-Wl,'
14988 lt_prog_compiler_pic='--shared'
14989 lt_prog_compiler_static='--static'
14990 ;;
14991 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14992 # Portland Group compilers (*not* the Pentium gcc compiler,
14993 # which looks to be a dead project)
14994 lt_prog_compiler_wl='-Wl,'
14995 lt_prog_compiler_pic='-fpic'
14996 lt_prog_compiler_static='-Bstatic'
14997 ;;
14998 ccc*)
14999 lt_prog_compiler_wl='-Wl,'
15000 # All Alpha code is PIC.
15001 lt_prog_compiler_static='-non_shared'
15002 ;;
15003 xl* | bgxl* | bgf* | mpixl*)
15004 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15005 lt_prog_compiler_wl='-Wl,'
15006 lt_prog_compiler_pic='-qpic'
15007 lt_prog_compiler_static='-qstaticlink'
15008 ;;
15009 *)
15010 case `$CC -V 2>&1 | sed 5q` in
15011 *Sun\ F* | *Sun*Fortran*)
15012 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15013 lt_prog_compiler_pic='-KPIC'
15014 lt_prog_compiler_static='-Bstatic'
15015 lt_prog_compiler_wl=''
15016 ;;
15017 *Sun\ C*)
15018 # Sun C 5.9
15019 lt_prog_compiler_pic='-KPIC'
15020 lt_prog_compiler_static='-Bstatic'
15021 lt_prog_compiler_wl='-Wl,'
15022 ;;
15023 esac
15024 ;;
15025 esac
15026 ;;
15027
15028 newsos6)
15029 lt_prog_compiler_pic='-KPIC'
15030 lt_prog_compiler_static='-Bstatic'
15031 ;;
15032
15033 *nto* | *qnx*)
15034 # QNX uses GNU C++, but need to define -shared option too, otherwise
15035 # it will coredump.
15036 lt_prog_compiler_pic='-fPIC -shared'
15037 ;;
15038
15039 osf3* | osf4* | osf5*)
15040 lt_prog_compiler_wl='-Wl,'
15041 # All OSF/1 code is PIC.
15042 lt_prog_compiler_static='-non_shared'
15043 ;;
15044
15045 rdos*)
15046 lt_prog_compiler_static='-non_shared'
15047 ;;
15048
15049 solaris*)
15050 lt_prog_compiler_pic='-KPIC'
15051 lt_prog_compiler_static='-Bstatic'
15052 case $cc_basename in
15053 f77* | f90* | f95*)
15054 lt_prog_compiler_wl='-Qoption ld ';;
15055 *)
15056 lt_prog_compiler_wl='-Wl,';;
15057 esac
15058 ;;
15059
15060 sunos4*)
15061 lt_prog_compiler_wl='-Qoption ld '
15062 lt_prog_compiler_pic='-PIC'
15063 lt_prog_compiler_static='-Bstatic'
15064 ;;
15065
15066 sysv4 | sysv4.2uw2* | sysv4.3*)
15067 lt_prog_compiler_wl='-Wl,'
15068 lt_prog_compiler_pic='-KPIC'
15069 lt_prog_compiler_static='-Bstatic'
15070 ;;
15071
15072 sysv4*MP*)
15073 if test -d /usr/nec ;then
15074 lt_prog_compiler_pic='-Kconform_pic'
15075 lt_prog_compiler_static='-Bstatic'
15076 fi
15077 ;;
15078
15079 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15080 lt_prog_compiler_wl='-Wl,'
15081 lt_prog_compiler_pic='-KPIC'
15082 lt_prog_compiler_static='-Bstatic'
15083 ;;
15084
15085 unicos*)
15086 lt_prog_compiler_wl='-Wl,'
15087 lt_prog_compiler_can_build_shared=no
15088 ;;
15089
15090 uts4*)
15091 lt_prog_compiler_pic='-pic'
15092 lt_prog_compiler_static='-Bstatic'
15093 ;;
15094
15095 *)
15096 lt_prog_compiler_can_build_shared=no
15097 ;;
15098 esac
15099 fi
15100
15101 case $host_os in
15102 # For platforms which do not support PIC, -DPIC is meaningless:
15103 *djgpp*)
15104 lt_prog_compiler_pic=
15105 ;;
15106 *)
15107 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15108 ;;
15109 esac
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15111 $as_echo "$lt_prog_compiler_pic" >&6; }
15112
15113
15114
15115
15116
15117
15118 #
15119 # Check to make sure the PIC flag actually works.
15120 #
15121 if test -n "$lt_prog_compiler_pic"; then
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15123 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15124 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15125 $as_echo_n "(cached) " >&6
15126 else
15127 lt_cv_prog_compiler_pic_works=no
15128 ac_outfile=conftest.$ac_objext
15129 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15130 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15131 # Insert the option either (1) after the last *FLAGS variable, or
15132 # (2) before a word containing "conftest.", or (3) at the end.
15133 # Note that $ac_compile itself does not contain backslashes and begins
15134 # with a dollar sign (not a hyphen), so the echo should work correctly.
15135 # The option is referenced via a variable to avoid confusing sed.
15136 lt_compile=`echo "$ac_compile" | $SED \
15137 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15138 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15139 -e 's:$: $lt_compiler_flag:'`
15140 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15141 (eval "$lt_compile" 2>conftest.err)
15142 ac_status=$?
15143 cat conftest.err >&5
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 if (exit $ac_status) && test -s "$ac_outfile"; then
15146 # The compiler can only warn and ignore the option if not recognized
15147 # So say no if there are warnings other than the usual output.
15148 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15149 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15150 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15151 lt_cv_prog_compiler_pic_works=yes
15152 fi
15153 fi
15154 $RM conftest*
15155
15156 fi
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15158 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15159
15160 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15161 case $lt_prog_compiler_pic in
15162 "" | " "*) ;;
15163 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15164 esac
15165 else
15166 lt_prog_compiler_pic=
15167 lt_prog_compiler_can_build_shared=no
15168 fi
15169
15170 fi
15171
15172
15173
15174
15175
15176
15177 #
15178 # Check to make sure the static flag actually works.
15179 #
15180 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15182 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15183 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15184 $as_echo_n "(cached) " >&6
15185 else
15186 lt_cv_prog_compiler_static_works=no
15187 save_LDFLAGS="$LDFLAGS"
15188 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15189 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15190 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15191 # The linker can only warn and ignore the option if not recognized
15192 # So say no if there are warnings
15193 if test -s conftest.err; then
15194 # Append any errors to the config.log.
15195 cat conftest.err 1>&5
15196 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15197 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15198 if diff conftest.exp conftest.er2 >/dev/null; then
15199 lt_cv_prog_compiler_static_works=yes
15200 fi
15201 else
15202 lt_cv_prog_compiler_static_works=yes
15203 fi
15204 fi
15205 $RM -r conftest*
15206 LDFLAGS="$save_LDFLAGS"
15207
15208 fi
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15210 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15211
15212 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15213 :
15214 else
15215 lt_prog_compiler_static=
15216 fi
15217
15218
15219
15220
15221
15222
15223
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15225 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15226 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15227 $as_echo_n "(cached) " >&6
15228 else
15229 lt_cv_prog_compiler_c_o=no
15230 $RM -r conftest 2>/dev/null
15231 mkdir conftest
15232 cd conftest
15233 mkdir out
15234 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15235
15236 lt_compiler_flag="-o out/conftest2.$ac_objext"
15237 # Insert the option either (1) after the last *FLAGS variable, or
15238 # (2) before a word containing "conftest.", or (3) at the end.
15239 # Note that $ac_compile itself does not contain backslashes and begins
15240 # with a dollar sign (not a hyphen), so the echo should work correctly.
15241 lt_compile=`echo "$ac_compile" | $SED \
15242 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15243 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15244 -e 's:$: $lt_compiler_flag:'`
15245 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15246 (eval "$lt_compile" 2>out/conftest.err)
15247 ac_status=$?
15248 cat out/conftest.err >&5
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15251 then
15252 # The compiler can only warn and ignore the option if not recognized
15253 # So say no if there are warnings
15254 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15255 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15256 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15257 lt_cv_prog_compiler_c_o=yes
15258 fi
15259 fi
15260 chmod u+w . 2>&5
15261 $RM conftest*
15262 # SGI C++ compiler will create directory out/ii_files/ for
15263 # template instantiation
15264 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15265 $RM out/* && rmdir out
15266 cd ..
15267 $RM -r conftest
15268 $RM conftest*
15269
15270 fi
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15272 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15273
15274
15275
15276
15277
15278
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15280 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15281 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15282 $as_echo_n "(cached) " >&6
15283 else
15284 lt_cv_prog_compiler_c_o=no
15285 $RM -r conftest 2>/dev/null
15286 mkdir conftest
15287 cd conftest
15288 mkdir out
15289 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15290
15291 lt_compiler_flag="-o out/conftest2.$ac_objext"
15292 # Insert the option either (1) after the last *FLAGS variable, or
15293 # (2) before a word containing "conftest.", or (3) at the end.
15294 # Note that $ac_compile itself does not contain backslashes and begins
15295 # with a dollar sign (not a hyphen), so the echo should work correctly.
15296 lt_compile=`echo "$ac_compile" | $SED \
15297 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15298 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15299 -e 's:$: $lt_compiler_flag:'`
15300 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15301 (eval "$lt_compile" 2>out/conftest.err)
15302 ac_status=$?
15303 cat out/conftest.err >&5
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15306 then
15307 # The compiler can only warn and ignore the option if not recognized
15308 # So say no if there are warnings
15309 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15310 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15311 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15312 lt_cv_prog_compiler_c_o=yes
15313 fi
15314 fi
15315 chmod u+w . 2>&5
15316 $RM conftest*
15317 # SGI C++ compiler will create directory out/ii_files/ for
15318 # template instantiation
15319 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15320 $RM out/* && rmdir out
15321 cd ..
15322 $RM -r conftest
15323 $RM conftest*
15324
15325 fi
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15327 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15328
15329
15330
15331
15332 hard_links="nottested"
15333 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15334 # do not overwrite the value of need_locks provided by the user
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15336 $as_echo_n "checking if we can lock with hard links... " >&6; }
15337 hard_links=yes
15338 $RM conftest*
15339 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15340 touch conftest.a
15341 ln conftest.a conftest.b 2>&5 || hard_links=no
15342 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15344 $as_echo "$hard_links" >&6; }
15345 if test "$hard_links" = no; then
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15347 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15348 need_locks=warn
15349 fi
15350 else
15351 need_locks=no
15352 fi
15353
15354
15355
15356
15357
15358
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15360 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15361
15362 runpath_var=
15363 allow_undefined_flag=
15364 always_export_symbols=no
15365 archive_cmds=
15366 archive_expsym_cmds=
15367 compiler_needs_object=no
15368 enable_shared_with_static_runtimes=no
15369 export_dynamic_flag_spec=
15370 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15371 hardcode_automatic=no
15372 hardcode_direct=no
15373 hardcode_direct_absolute=no
15374 hardcode_libdir_flag_spec=
15375 hardcode_libdir_flag_spec_ld=
15376 hardcode_libdir_separator=
15377 hardcode_minus_L=no
15378 hardcode_shlibpath_var=unsupported
15379 inherit_rpath=no
15380 link_all_deplibs=unknown
15381 module_cmds=
15382 module_expsym_cmds=
15383 old_archive_from_new_cmds=
15384 old_archive_from_expsyms_cmds=
15385 thread_safe_flag_spec=
15386 whole_archive_flag_spec=
15387 # include_expsyms should be a list of space-separated symbols to be *always*
15388 # included in the symbol list
15389 include_expsyms=
15390 # exclude_expsyms can be an extended regexp of symbols to exclude
15391 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15392 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15393 # as well as any symbol that contains `d'.
15394 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15395 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15396 # platforms (ab)use it in PIC code, but their linkers get confused if
15397 # the symbol is explicitly referenced. Since portable code cannot
15398 # rely on this symbol name, it's probably fine to never include it in
15399 # preloaded symbol tables.
15400 # Exclude shared library initialization/finalization symbols.
15401 extract_expsyms_cmds=
15402
15403 case $host_os in
15404 cygwin* | mingw* | pw32* | cegcc*)
15405 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15406 # When not using gcc, we currently assume that we are using
15407 # Microsoft Visual C++.
15408 if test "$GCC" != yes; then
15409 with_gnu_ld=no
15410 fi
15411 ;;
15412 interix*)
15413 # we just hope/assume this is gcc and not c89 (= MSVC++)
15414 with_gnu_ld=yes
15415 ;;
15416 openbsd*)
15417 with_gnu_ld=no
15418 ;;
15419 esac
15420
15421 ld_shlibs=yes
15422
15423 # On some targets, GNU ld is compatible enough with the native linker
15424 # that we're better off using the native interface for both.
15425 lt_use_gnu_ld_interface=no
15426 if test "$with_gnu_ld" = yes; then
15427 case $host_os in
15428 aix*)
15429 # The AIX port of GNU ld has always aspired to compatibility
15430 # with the native linker. However, as the warning in the GNU ld
15431 # block says, versions before 2.19.5* couldn't really create working
15432 # shared libraries, regardless of the interface used.
15433 case `$LD -v 2>&1` in
15434 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15435 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15436 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15437 *)
15438 lt_use_gnu_ld_interface=yes
15439 ;;
15440 esac
15441 ;;
15442 *)
15443 lt_use_gnu_ld_interface=yes
15444 ;;
15445 esac
15446 fi
15447
15448 if test "$lt_use_gnu_ld_interface" = yes; then
15449 # If archive_cmds runs LD, not CC, wlarc should be empty
15450 wlarc='${wl}'
15451
15452 # Set some defaults for GNU ld with shared library support. These
15453 # are reset later if shared libraries are not supported. Putting them
15454 # here allows them to be overridden if necessary.
15455 runpath_var=LD_RUN_PATH
15456 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15457 export_dynamic_flag_spec='${wl}--export-dynamic'
15458 # ancient GNU ld didn't support --whole-archive et. al.
15459 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15460 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15461 else
15462 whole_archive_flag_spec=
15463 fi
15464 supports_anon_versioning=no
15465 case `$LD -v 2>&1` in
15466 *GNU\ gold*) supports_anon_versioning=yes ;;
15467 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15468 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15469 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15470 *\ 2.11.*) ;; # other 2.11 versions
15471 *) supports_anon_versioning=yes ;;
15472 esac
15473
15474 # See if GNU ld supports shared libraries.
15475 case $host_os in
15476 aix[3-9]*)
15477 # On AIX/PPC, the GNU linker is very broken
15478 if test "$host_cpu" != ia64; then
15479 ld_shlibs=no
15480 cat <<_LT_EOF 1>&2
15481
15482 *** Warning: the GNU linker, at least up to release 2.19, is reported
15483 *** to be unable to reliably create shared libraries on AIX.
15484 *** Therefore, libtool is disabling shared libraries support. If you
15485 *** really care for shared libraries, you may want to install binutils
15486 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15487 *** You will then need to restart the configuration process.
15488
15489 _LT_EOF
15490 fi
15491 ;;
15492
15493 amigaos*)
15494 case $host_cpu in
15495 powerpc)
15496 # see comment about AmigaOS4 .so support
15497 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15498 archive_expsym_cmds=''
15499 ;;
15500 m68k)
15501 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)'
15502 hardcode_libdir_flag_spec='-L$libdir'
15503 hardcode_minus_L=yes
15504 ;;
15505 esac
15506 ;;
15507
15508 beos*)
15509 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15510 allow_undefined_flag=unsupported
15511 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15512 # support --undefined. This deserves some investigation. FIXME
15513 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15514 else
15515 ld_shlibs=no
15516 fi
15517 ;;
15518
15519 cygwin* | mingw* | pw32* | cegcc*)
15520 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15521 # as there is no search path for DLLs.
15522 hardcode_libdir_flag_spec='-L$libdir'
15523 export_dynamic_flag_spec='${wl}--export-all-symbols'
15524 allow_undefined_flag=unsupported
15525 always_export_symbols=no
15526 enable_shared_with_static_runtimes=yes
15527 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15528
15529 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15531 # If the export-symbols file already is a .def file (1st line
15532 # is EXPORTS), use it as is; otherwise, prepend...
15533 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15534 cp $export_symbols $output_objdir/$soname.def;
15535 else
15536 echo EXPORTS > $output_objdir/$soname.def;
15537 cat $export_symbols >> $output_objdir/$soname.def;
15538 fi~
15539 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15540 else
15541 ld_shlibs=no
15542 fi
15543 ;;
15544
15545 haiku*)
15546 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15547 link_all_deplibs=yes
15548 ;;
15549
15550 interix[3-9]*)
15551 hardcode_direct=no
15552 hardcode_shlibpath_var=no
15553 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15554 export_dynamic_flag_spec='${wl}-E'
15555 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15556 # Instead, shared libraries are loaded at an image base (0x10000000 by
15557 # default) and relocated if they conflict, which is a slow very memory
15558 # consuming and fragmenting process. To avoid this, we pick a random,
15559 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15560 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15561 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15562 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'
15563 ;;
15564
15565 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15566 tmp_diet=no
15567 if test "$host_os" = linux-dietlibc; then
15568 case $cc_basename in
15569 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15570 esac
15571 fi
15572 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15573 && test "$tmp_diet" = no
15574 then
15575 tmp_addflag=
15576 tmp_sharedflag='-shared'
15577 case $cc_basename,$host_cpu in
15578 pgcc*) # Portland Group C compiler
15579 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'
15580 tmp_addflag=' $pic_flag'
15581 ;;
15582 pgf77* | pgf90* | pgf95* | pgfortran*)
15583 # Portland Group f77 and f90 compilers
15584 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'
15585 tmp_addflag=' $pic_flag -Mnomain' ;;
15586 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15587 tmp_addflag=' -i_dynamic' ;;
15588 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15589 tmp_addflag=' -i_dynamic -nofor_main' ;;
15590 ifc* | ifort*) # Intel Fortran compiler
15591 tmp_addflag=' -nofor_main' ;;
15592 lf95*) # Lahey Fortran 8.1
15593 whole_archive_flag_spec=
15594 tmp_sharedflag='--shared' ;;
15595 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15596 tmp_sharedflag='-qmkshrobj'
15597 tmp_addflag= ;;
15598 nvcc*) # Cuda Compiler Driver 2.2
15599 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'
15600 compiler_needs_object=yes
15601 ;;
15602 esac
15603 case `$CC -V 2>&1 | sed 5q` in
15604 *Sun\ C*) # Sun C 5.9
15605 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'
15606 compiler_needs_object=yes
15607 tmp_sharedflag='-G' ;;
15608 *Sun\ F*) # Sun Fortran 8.3
15609 tmp_sharedflag='-G' ;;
15610 esac
15611 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15612
15613 if test "x$supports_anon_versioning" = xyes; then
15614 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15615 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15616 echo "local: *; };" >> $output_objdir/$libname.ver~
15617 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15618 fi
15619
15620 case $cc_basename in
15621 xlf* | bgf* | bgxlf* | mpixlf*)
15622 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15623 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15624 hardcode_libdir_flag_spec=
15625 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15626 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15627 if test "x$supports_anon_versioning" = xyes; then
15628 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15629 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15630 echo "local: *; };" >> $output_objdir/$libname.ver~
15631 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15632 fi
15633 ;;
15634 esac
15635 else
15636 ld_shlibs=no
15637 fi
15638 ;;
15639
15640 netbsd*)
15641 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15642 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15643 wlarc=
15644 else
15645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15646 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15647 fi
15648 ;;
15649
15650 solaris*)
15651 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15652 ld_shlibs=no
15653 cat <<_LT_EOF 1>&2
15654
15655 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15656 *** create shared libraries on Solaris systems. Therefore, libtool
15657 *** is disabling shared libraries support. We urge you to upgrade GNU
15658 *** binutils to release 2.9.1 or newer. Another option is to modify
15659 *** your PATH or compiler configuration so that the native linker is
15660 *** used, and then restart.
15661
15662 _LT_EOF
15663 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15664 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15665 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15666 else
15667 ld_shlibs=no
15668 fi
15669 ;;
15670
15671 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15672 case `$LD -v 2>&1` in
15673 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15674 ld_shlibs=no
15675 cat <<_LT_EOF 1>&2
15676
15677 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15678 *** reliably create shared libraries on SCO systems. Therefore, libtool
15679 *** is disabling shared libraries support. We urge you to upgrade GNU
15680 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15681 *** your PATH or compiler configuration so that the native linker is
15682 *** used, and then restart.
15683
15684 _LT_EOF
15685 ;;
15686 *)
15687 # For security reasons, it is highly recommended that you always
15688 # use absolute paths for naming shared libraries, and exclude the
15689 # DT_RUNPATH tag from executables and libraries. But doing so
15690 # requires that you compile everything twice, which is a pain.
15691 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15692 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15694 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15695 else
15696 ld_shlibs=no
15697 fi
15698 ;;
15699 esac
15700 ;;
15701
15702 sunos4*)
15703 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15704 wlarc=
15705 hardcode_direct=yes
15706 hardcode_shlibpath_var=no
15707 ;;
15708
15709 *)
15710 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15711 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15712 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15713 else
15714 ld_shlibs=no
15715 fi
15716 ;;
15717 esac
15718
15719 if test "$ld_shlibs" = no; then
15720 runpath_var=
15721 hardcode_libdir_flag_spec=
15722 export_dynamic_flag_spec=
15723 whole_archive_flag_spec=
15724 fi
15725 else
15726 # PORTME fill in a description of your system's linker (not GNU ld)
15727 case $host_os in
15728 aix3*)
15729 allow_undefined_flag=unsupported
15730 always_export_symbols=yes
15731 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'
15732 # Note: this linker hardcodes the directories in LIBPATH if there
15733 # are no directories specified by -L.
15734 hardcode_minus_L=yes
15735 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15736 # Neither direct hardcoding nor static linking is supported with a
15737 # broken collect2.
15738 hardcode_direct=unsupported
15739 fi
15740 ;;
15741
15742 aix[4-9]*)
15743 if test "$host_cpu" = ia64; then
15744 # On IA64, the linker does run time linking by default, so we don't
15745 # have to do anything special.
15746 aix_use_runtimelinking=no
15747 exp_sym_flag='-Bexport'
15748 no_entry_flag=""
15749 else
15750 # If we're using GNU nm, then we don't want the "-C" option.
15751 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15752 # Also, AIX nm treats weak defined symbols like other global
15753 # defined symbols, whereas GNU nm marks them as "W".
15754 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15755 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'
15756 else
15757 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'
15758 fi
15759 aix_use_runtimelinking=no
15760
15761 # Test if we are trying to use run time linking or normal
15762 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15763 # need to do runtime linking.
15764 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15765 for ld_flag in $LDFLAGS; do
15766 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15767 aix_use_runtimelinking=yes
15768 break
15769 fi
15770 done
15771 ;;
15772 esac
15773
15774 exp_sym_flag='-bexport'
15775 no_entry_flag='-bnoentry'
15776 fi
15777
15778 # When large executables or shared objects are built, AIX ld can
15779 # have problems creating the table of contents. If linking a library
15780 # or program results in "error TOC overflow" add -mminimal-toc to
15781 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15782 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15783
15784 archive_cmds=''
15785 hardcode_direct=yes
15786 hardcode_direct_absolute=yes
15787 hardcode_libdir_separator=':'
15788 link_all_deplibs=yes
15789 file_list_spec='${wl}-f,'
15790
15791 if test "$GCC" = yes; then
15792 case $host_os in aix4.[012]|aix4.[012].*)
15793 # We only want to do this on AIX 4.2 and lower, the check
15794 # below for broken collect2 doesn't work under 4.3+
15795 collect2name=`${CC} -print-prog-name=collect2`
15796 if test -f "$collect2name" &&
15797 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15798 then
15799 # We have reworked collect2
15800 :
15801 else
15802 # We have old collect2
15803 hardcode_direct=unsupported
15804 # It fails to find uninstalled libraries when the uninstalled
15805 # path is not listed in the libpath. Setting hardcode_minus_L
15806 # to unsupported forces relinking
15807 hardcode_minus_L=yes
15808 hardcode_libdir_flag_spec='-L$libdir'
15809 hardcode_libdir_separator=
15810 fi
15811 ;;
15812 esac
15813 shared_flag='-shared'
15814 if test "$aix_use_runtimelinking" = yes; then
15815 shared_flag="$shared_flag "'${wl}-G'
15816 fi
15817 else
15818 # not using gcc
15819 if test "$host_cpu" = ia64; then
15820 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15821 # chokes on -Wl,-G. The following line is correct:
15822 shared_flag='-G'
15823 else
15824 if test "$aix_use_runtimelinking" = yes; then
15825 shared_flag='${wl}-G'
15826 else
15827 shared_flag='${wl}-bM:SRE'
15828 fi
15829 fi
15830 fi
15831
15832 export_dynamic_flag_spec='${wl}-bexpall'
15833 # It seems that -bexpall does not export symbols beginning with
15834 # underscore (_), so it is better to generate a list of symbols to export.
15835 always_export_symbols=yes
15836 if test "$aix_use_runtimelinking" = yes; then
15837 # Warning - without using the other runtime loading flags (-brtl),
15838 # -berok will link without error, but may produce a broken library.
15839 allow_undefined_flag='-berok'
15840 # Determine the default libpath from the value encoded in an
15841 # empty executable.
15842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15843 /* end confdefs.h. */
15844
15845 int
15846 main ()
15847 {
15848
15849 ;
15850 return 0;
15851 }
15852 _ACEOF
15853 if ac_fn_c_try_link "$LINENO"; then :
15854
15855 lt_aix_libpath_sed='
15856 /Import File Strings/,/^$/ {
15857 /^0/ {
15858 s/^0 *\(.*\)$/\1/
15859 p
15860 }
15861 }'
15862 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15863 # Check for a 64-bit object if we didn't find anything.
15864 if test -z "$aix_libpath"; then
15865 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15866 fi
15867 fi
15868 rm -f core conftest.err conftest.$ac_objext \
15869 conftest$ac_exeext conftest.$ac_ext
15870 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15871
15872 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15873 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"
15874 else
15875 if test "$host_cpu" = ia64; then
15876 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15877 allow_undefined_flag="-z nodefs"
15878 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"
15879 else
15880 # Determine the default libpath from the value encoded in an
15881 # empty executable.
15882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15883 /* end confdefs.h. */
15884
15885 int
15886 main ()
15887 {
15888
15889 ;
15890 return 0;
15891 }
15892 _ACEOF
15893 if ac_fn_c_try_link "$LINENO"; then :
15894
15895 lt_aix_libpath_sed='
15896 /Import File Strings/,/^$/ {
15897 /^0/ {
15898 s/^0 *\(.*\)$/\1/
15899 p
15900 }
15901 }'
15902 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15903 # Check for a 64-bit object if we didn't find anything.
15904 if test -z "$aix_libpath"; then
15905 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15906 fi
15907 fi
15908 rm -f core conftest.err conftest.$ac_objext \
15909 conftest$ac_exeext conftest.$ac_ext
15910 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15911
15912 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15913 # Warning - without using the other run time loading flags,
15914 # -berok will link without error, but may produce a broken library.
15915 no_undefined_flag=' ${wl}-bernotok'
15916 allow_undefined_flag=' ${wl}-berok'
15917 if test "$with_gnu_ld" = yes; then
15918 # We only use this code for GNU lds that support --whole-archive.
15919 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15920 else
15921 # Exported symbols can be pulled into shared objects from archives
15922 whole_archive_flag_spec='$convenience'
15923 fi
15924 archive_cmds_need_lc=yes
15925 # This is similar to how AIX traditionally builds its shared libraries.
15926 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'
15927 fi
15928 fi
15929 ;;
15930
15931 amigaos*)
15932 case $host_cpu in
15933 powerpc)
15934 # see comment about AmigaOS4 .so support
15935 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15936 archive_expsym_cmds=''
15937 ;;
15938 m68k)
15939 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)'
15940 hardcode_libdir_flag_spec='-L$libdir'
15941 hardcode_minus_L=yes
15942 ;;
15943 esac
15944 ;;
15945
15946 bsdi[45]*)
15947 export_dynamic_flag_spec=-rdynamic
15948 ;;
15949
15950 cygwin* | mingw* | pw32* | cegcc*)
15951 # When not using gcc, we currently assume that we are using
15952 # Microsoft Visual C++.
15953 # hardcode_libdir_flag_spec is actually meaningless, as there is
15954 # no search path for DLLs.
15955 hardcode_libdir_flag_spec=' '
15956 allow_undefined_flag=unsupported
15957 # Tell ltmain to make .lib files, not .a files.
15958 libext=lib
15959 # Tell ltmain to make .dll files, not .so files.
15960 shrext_cmds=".dll"
15961 # FIXME: Setting linknames here is a bad hack.
15962 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15963 # The linker will automatically build a .lib file if we build a DLL.
15964 old_archive_from_new_cmds='true'
15965 # FIXME: Should let the user specify the lib program.
15966 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15967 fix_srcfile_path='`cygpath -w "$srcfile"`'
15968 enable_shared_with_static_runtimes=yes
15969 ;;
15970
15971 darwin* | rhapsody*)
15972
15973
15974 archive_cmds_need_lc=no
15975 hardcode_direct=no
15976 hardcode_automatic=yes
15977 hardcode_shlibpath_var=unsupported
15978 if test "$lt_cv_ld_force_load" = "yes"; then
15979 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\"`'
15980 else
15981 whole_archive_flag_spec=''
15982 fi
15983 link_all_deplibs=yes
15984 allow_undefined_flag="$_lt_dar_allow_undefined"
15985 case $cc_basename in
15986 ifort*) _lt_dar_can_shared=yes ;;
15987 *) _lt_dar_can_shared=$GCC ;;
15988 esac
15989 if test "$_lt_dar_can_shared" = "yes"; then
15990 output_verbose_link_cmd=func_echo_all
15991 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15992 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15993 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}"
15994 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}"
15995
15996 else
15997 ld_shlibs=no
15998 fi
15999
16000 ;;
16001
16002 dgux*)
16003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16004 hardcode_libdir_flag_spec='-L$libdir'
16005 hardcode_shlibpath_var=no
16006 ;;
16007
16008 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16009 # support. Future versions do this automatically, but an explicit c++rt0.o
16010 # does not break anything, and helps significantly (at the cost of a little
16011 # extra space).
16012 freebsd2.2*)
16013 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16014 hardcode_libdir_flag_spec='-R$libdir'
16015 hardcode_direct=yes
16016 hardcode_shlibpath_var=no
16017 ;;
16018
16019 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16020 freebsd2.*)
16021 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16022 hardcode_direct=yes
16023 hardcode_minus_L=yes
16024 hardcode_shlibpath_var=no
16025 ;;
16026
16027 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16028 freebsd* | dragonfly*)
16029 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16030 hardcode_libdir_flag_spec='-R$libdir'
16031 hardcode_direct=yes
16032 hardcode_shlibpath_var=no
16033 ;;
16034
16035 hpux9*)
16036 if test "$GCC" = yes; then
16037 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'
16038 else
16039 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'
16040 fi
16041 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16042 hardcode_libdir_separator=:
16043 hardcode_direct=yes
16044
16045 # hardcode_minus_L: Not really in the search PATH,
16046 # but as the default location of the library.
16047 hardcode_minus_L=yes
16048 export_dynamic_flag_spec='${wl}-E'
16049 ;;
16050
16051 hpux10*)
16052 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16053 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16054 else
16055 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16056 fi
16057 if test "$with_gnu_ld" = no; then
16058 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16059 hardcode_libdir_flag_spec_ld='+b $libdir'
16060 hardcode_libdir_separator=:
16061 hardcode_direct=yes
16062 hardcode_direct_absolute=yes
16063 export_dynamic_flag_spec='${wl}-E'
16064 # hardcode_minus_L: Not really in the search PATH,
16065 # but as the default location of the library.
16066 hardcode_minus_L=yes
16067 fi
16068 ;;
16069
16070 hpux11*)
16071 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16072 case $host_cpu in
16073 hppa*64*)
16074 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16075 ;;
16076 ia64*)
16077 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16078 ;;
16079 *)
16080 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16081 ;;
16082 esac
16083 else
16084 case $host_cpu in
16085 hppa*64*)
16086 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16087 ;;
16088 ia64*)
16089 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16090 ;;
16091 *)
16092
16093 # Older versions of the 11.00 compiler do not understand -b yet
16094 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16096 $as_echo_n "checking if $CC understands -b... " >&6; }
16097 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16098 $as_echo_n "(cached) " >&6
16099 else
16100 lt_cv_prog_compiler__b=no
16101 save_LDFLAGS="$LDFLAGS"
16102 LDFLAGS="$LDFLAGS -b"
16103 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16104 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16105 # The linker can only warn and ignore the option if not recognized
16106 # So say no if there are warnings
16107 if test -s conftest.err; then
16108 # Append any errors to the config.log.
16109 cat conftest.err 1>&5
16110 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16111 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16112 if diff conftest.exp conftest.er2 >/dev/null; then
16113 lt_cv_prog_compiler__b=yes
16114 fi
16115 else
16116 lt_cv_prog_compiler__b=yes
16117 fi
16118 fi
16119 $RM -r conftest*
16120 LDFLAGS="$save_LDFLAGS"
16121
16122 fi
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16124 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16125
16126 if test x"$lt_cv_prog_compiler__b" = xyes; then
16127 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16128 else
16129 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16130 fi
16131
16132 ;;
16133 esac
16134 fi
16135 if test "$with_gnu_ld" = no; then
16136 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16137 hardcode_libdir_separator=:
16138
16139 case $host_cpu in
16140 hppa*64*|ia64*)
16141 hardcode_direct=no
16142 hardcode_shlibpath_var=no
16143 ;;
16144 *)
16145 hardcode_direct=yes
16146 hardcode_direct_absolute=yes
16147 export_dynamic_flag_spec='${wl}-E'
16148
16149 # hardcode_minus_L: Not really in the search PATH,
16150 # but as the default location of the library.
16151 hardcode_minus_L=yes
16152 ;;
16153 esac
16154 fi
16155 ;;
16156
16157 irix5* | irix6* | nonstopux*)
16158 if test "$GCC" = yes; then
16159 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'
16160 # Try to use the -exported_symbol ld option, if it does not
16161 # work, assume that -exports_file does not work either and
16162 # implicitly export all symbols.
16163 save_LDFLAGS="$LDFLAGS"
16164 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16166 /* end confdefs.h. */
16167 int foo(void) {}
16168 _ACEOF
16169 if ac_fn_c_try_link "$LINENO"; then :
16170 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'
16171
16172 fi
16173 rm -f core conftest.err conftest.$ac_objext \
16174 conftest$ac_exeext conftest.$ac_ext
16175 LDFLAGS="$save_LDFLAGS"
16176 else
16177 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'
16178 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'
16179 fi
16180 archive_cmds_need_lc='no'
16181 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16182 hardcode_libdir_separator=:
16183 inherit_rpath=yes
16184 link_all_deplibs=yes
16185 ;;
16186
16187 netbsd*)
16188 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16189 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16190 else
16191 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16192 fi
16193 hardcode_libdir_flag_spec='-R$libdir'
16194 hardcode_direct=yes
16195 hardcode_shlibpath_var=no
16196 ;;
16197
16198 newsos6)
16199 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16200 hardcode_direct=yes
16201 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16202 hardcode_libdir_separator=:
16203 hardcode_shlibpath_var=no
16204 ;;
16205
16206 *nto* | *qnx*)
16207 ;;
16208
16209 openbsd*)
16210 if test -f /usr/libexec/ld.so; then
16211 hardcode_direct=yes
16212 hardcode_shlibpath_var=no
16213 hardcode_direct_absolute=yes
16214 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16215 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16216 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16217 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16218 export_dynamic_flag_spec='${wl}-E'
16219 else
16220 case $host_os in
16221 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16222 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16223 hardcode_libdir_flag_spec='-R$libdir'
16224 ;;
16225 *)
16226 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16227 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16228 ;;
16229 esac
16230 fi
16231 else
16232 ld_shlibs=no
16233 fi
16234 ;;
16235
16236 os2*)
16237 hardcode_libdir_flag_spec='-L$libdir'
16238 hardcode_minus_L=yes
16239 allow_undefined_flag=unsupported
16240 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'
16241 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16242 ;;
16243
16244 osf3*)
16245 if test "$GCC" = yes; then
16246 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16247 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'
16248 else
16249 allow_undefined_flag=' -expect_unresolved \*'
16250 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'
16251 fi
16252 archive_cmds_need_lc='no'
16253 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16254 hardcode_libdir_separator=:
16255 ;;
16256
16257 osf4* | osf5*) # as osf3* with the addition of -msym flag
16258 if test "$GCC" = yes; then
16259 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16260 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'
16261 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16262 else
16263 allow_undefined_flag=' -expect_unresolved \*'
16264 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'
16265 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~
16266 $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'
16267
16268 # Both c and cxx compiler support -rpath directly
16269 hardcode_libdir_flag_spec='-rpath $libdir'
16270 fi
16271 archive_cmds_need_lc='no'
16272 hardcode_libdir_separator=:
16273 ;;
16274
16275 solaris*)
16276 no_undefined_flag=' -z defs'
16277 if test "$GCC" = yes; then
16278 wlarc='${wl}'
16279 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16280 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16281 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16282 else
16283 case `$CC -V 2>&1` in
16284 *"Compilers 5.0"*)
16285 wlarc=''
16286 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16287 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16288 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16289 ;;
16290 *)
16291 wlarc='${wl}'
16292 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16293 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16294 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16295 ;;
16296 esac
16297 fi
16298 hardcode_libdir_flag_spec='-R$libdir'
16299 hardcode_shlibpath_var=no
16300 case $host_os in
16301 solaris2.[0-5] | solaris2.[0-5].*) ;;
16302 *)
16303 # The compiler driver will combine and reorder linker options,
16304 # but understands `-z linker_flag'. GCC discards it without `$wl',
16305 # but is careful enough not to reorder.
16306 # Supported since Solaris 2.6 (maybe 2.5.1?)
16307 if test "$GCC" = yes; then
16308 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16309 else
16310 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16311 fi
16312 ;;
16313 esac
16314 link_all_deplibs=yes
16315 ;;
16316
16317 sunos4*)
16318 if test "x$host_vendor" = xsequent; then
16319 # Use $CC to link under sequent, because it throws in some extra .o
16320 # files that make .init and .fini sections work.
16321 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16322 else
16323 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16324 fi
16325 hardcode_libdir_flag_spec='-L$libdir'
16326 hardcode_direct=yes
16327 hardcode_minus_L=yes
16328 hardcode_shlibpath_var=no
16329 ;;
16330
16331 sysv4)
16332 case $host_vendor in
16333 sni)
16334 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16335 hardcode_direct=yes # is this really true???
16336 ;;
16337 siemens)
16338 ## LD is ld it makes a PLAMLIB
16339 ## CC just makes a GrossModule.
16340 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16341 reload_cmds='$CC -r -o $output$reload_objs'
16342 hardcode_direct=no
16343 ;;
16344 motorola)
16345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16346 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16347 ;;
16348 esac
16349 runpath_var='LD_RUN_PATH'
16350 hardcode_shlibpath_var=no
16351 ;;
16352
16353 sysv4.3*)
16354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16355 hardcode_shlibpath_var=no
16356 export_dynamic_flag_spec='-Bexport'
16357 ;;
16358
16359 sysv4*MP*)
16360 if test -d /usr/nec; then
16361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16362 hardcode_shlibpath_var=no
16363 runpath_var=LD_RUN_PATH
16364 hardcode_runpath_var=yes
16365 ld_shlibs=yes
16366 fi
16367 ;;
16368
16369 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16370 no_undefined_flag='${wl}-z,text'
16371 archive_cmds_need_lc=no
16372 hardcode_shlibpath_var=no
16373 runpath_var='LD_RUN_PATH'
16374
16375 if test "$GCC" = yes; then
16376 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16377 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16378 else
16379 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16380 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16381 fi
16382 ;;
16383
16384 sysv5* | sco3.2v5* | sco5v6*)
16385 # Note: We can NOT use -z defs as we might desire, because we do not
16386 # link with -lc, and that would cause any symbols used from libc to
16387 # always be unresolved, which means just about no library would
16388 # ever link correctly. If we're not using GNU ld we use -z text
16389 # though, which does catch some bad symbols but isn't as heavy-handed
16390 # as -z defs.
16391 no_undefined_flag='${wl}-z,text'
16392 allow_undefined_flag='${wl}-z,nodefs'
16393 archive_cmds_need_lc=no
16394 hardcode_shlibpath_var=no
16395 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16396 hardcode_libdir_separator=':'
16397 link_all_deplibs=yes
16398 export_dynamic_flag_spec='${wl}-Bexport'
16399 runpath_var='LD_RUN_PATH'
16400
16401 if test "$GCC" = yes; then
16402 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16403 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16404 else
16405 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16406 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16407 fi
16408 ;;
16409
16410 uts4*)
16411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16412 hardcode_libdir_flag_spec='-L$libdir'
16413 hardcode_shlibpath_var=no
16414 ;;
16415
16416 *)
16417 ld_shlibs=no
16418 ;;
16419 esac
16420
16421 if test x$host_vendor = xsni; then
16422 case $host in
16423 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16424 export_dynamic_flag_spec='${wl}-Blargedynsym'
16425 ;;
16426 esac
16427 fi
16428 fi
16429
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16431 $as_echo "$ld_shlibs" >&6; }
16432 test "$ld_shlibs" = no && can_build_shared=no
16433
16434 with_gnu_ld=$with_gnu_ld
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450 #
16451 # Do we need to explicitly link libc?
16452 #
16453 case "x$archive_cmds_need_lc" in
16454 x|xyes)
16455 # Assume -lc should be added
16456 archive_cmds_need_lc=yes
16457
16458 if test "$enable_shared" = yes && test "$GCC" = yes; then
16459 case $archive_cmds in
16460 *'~'*)
16461 # FIXME: we may have to deal with multi-command sequences.
16462 ;;
16463 '$CC '*)
16464 # Test whether the compiler implicitly links with -lc since on some
16465 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16466 # to ld, don't add -lc before -lgcc.
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16468 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16469 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16470 $as_echo_n "(cached) " >&6
16471 else
16472 $RM conftest*
16473 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16474
16475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16476 (eval $ac_compile) 2>&5
16477 ac_status=$?
16478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16479 test $ac_status = 0; } 2>conftest.err; then
16480 soname=conftest
16481 lib=conftest
16482 libobjs=conftest.$ac_objext
16483 deplibs=
16484 wl=$lt_prog_compiler_wl
16485 pic_flag=$lt_prog_compiler_pic
16486 compiler_flags=-v
16487 linker_flags=-v
16488 verstring=
16489 output_objdir=.
16490 libname=conftest
16491 lt_save_allow_undefined_flag=$allow_undefined_flag
16492 allow_undefined_flag=
16493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16494 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16495 ac_status=$?
16496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16497 test $ac_status = 0; }
16498 then
16499 lt_cv_archive_cmds_need_lc=no
16500 else
16501 lt_cv_archive_cmds_need_lc=yes
16502 fi
16503 allow_undefined_flag=$lt_save_allow_undefined_flag
16504 else
16505 cat conftest.err 1>&5
16506 fi
16507 $RM conftest*
16508
16509 fi
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16511 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16512 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16513 ;;
16514 esac
16515 fi
16516 ;;
16517 esac
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16676 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16677
16678 if test "$GCC" = yes; then
16679 case $host_os in
16680 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16681 *) lt_awk_arg="/^libraries:/" ;;
16682 esac
16683 case $host_os in
16684 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16685 *) lt_sed_strip_eq="s,=/,/,g" ;;
16686 esac
16687 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16688 case $lt_search_path_spec in
16689 *\;*)
16690 # if the path contains ";" then we assume it to be the separator
16691 # otherwise default to the standard path separator (i.e. ":") - it is
16692 # assumed that no part of a normal pathname contains ";" but that should
16693 # okay in the real world where ";" in dirpaths is itself problematic.
16694 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16695 ;;
16696 *)
16697 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16698 ;;
16699 esac
16700 # Ok, now we have the path, separated by spaces, we can step through it
16701 # and add multilib dir if necessary.
16702 lt_tmp_lt_search_path_spec=
16703 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16704 for lt_sys_path in $lt_search_path_spec; do
16705 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16706 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16707 else
16708 test -d "$lt_sys_path" && \
16709 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16710 fi
16711 done
16712 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16713 BEGIN {RS=" "; FS="/|\n";} {
16714 lt_foo="";
16715 lt_count=0;
16716 for (lt_i = NF; lt_i > 0; lt_i--) {
16717 if ($lt_i != "" && $lt_i != ".") {
16718 if ($lt_i == "..") {
16719 lt_count++;
16720 } else {
16721 if (lt_count == 0) {
16722 lt_foo="/" $lt_i lt_foo;
16723 } else {
16724 lt_count--;
16725 }
16726 }
16727 }
16728 }
16729 if (lt_foo != "") { lt_freq[lt_foo]++; }
16730 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16731 }'`
16732 # AWK program above erroneously prepends '/' to C:/dos/paths
16733 # for these hosts.
16734 case $host_os in
16735 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16736 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16737 esac
16738 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16739 else
16740 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16741 fi
16742 library_names_spec=
16743 libname_spec='lib$name'
16744 soname_spec=
16745 shrext_cmds=".so"
16746 postinstall_cmds=
16747 postuninstall_cmds=
16748 finish_cmds=
16749 finish_eval=
16750 shlibpath_var=
16751 shlibpath_overrides_runpath=unknown
16752 version_type=none
16753 dynamic_linker="$host_os ld.so"
16754 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16755 need_lib_prefix=unknown
16756 hardcode_into_libs=no
16757
16758 # when you set need_version to no, make sure it does not cause -set_version
16759 # flags to be left without arguments
16760 need_version=unknown
16761
16762 case $host_os in
16763 aix3*)
16764 version_type=linux
16765 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16766 shlibpath_var=LIBPATH
16767
16768 # AIX 3 has no versioning support, so we append a major version to the name.
16769 soname_spec='${libname}${release}${shared_ext}$major'
16770 ;;
16771
16772 aix[4-9]*)
16773 version_type=linux
16774 need_lib_prefix=no
16775 need_version=no
16776 hardcode_into_libs=yes
16777 if test "$host_cpu" = ia64; then
16778 # AIX 5 supports IA64
16779 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16780 shlibpath_var=LD_LIBRARY_PATH
16781 else
16782 # With GCC up to 2.95.x, collect2 would create an import file
16783 # for dependence libraries. The import file would start with
16784 # the line `#! .'. This would cause the generated library to
16785 # depend on `.', always an invalid library. This was fixed in
16786 # development snapshots of GCC prior to 3.0.
16787 case $host_os in
16788 aix4 | aix4.[01] | aix4.[01].*)
16789 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16790 echo ' yes '
16791 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16792 :
16793 else
16794 can_build_shared=no
16795 fi
16796 ;;
16797 esac
16798 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16799 # soname into executable. Probably we can add versioning support to
16800 # collect2, so additional links can be useful in future.
16801 if test "$aix_use_runtimelinking" = yes; then
16802 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16803 # instead of lib<name>.a to let people know that these are not
16804 # typical AIX shared libraries.
16805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16806 else
16807 # We preserve .a as extension for shared libraries through AIX4.2
16808 # and later when we are not doing run time linking.
16809 library_names_spec='${libname}${release}.a $libname.a'
16810 soname_spec='${libname}${release}${shared_ext}$major'
16811 fi
16812 shlibpath_var=LIBPATH
16813 fi
16814 ;;
16815
16816 amigaos*)
16817 case $host_cpu in
16818 powerpc)
16819 # Since July 2007 AmigaOS4 officially supports .so libraries.
16820 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16822 ;;
16823 m68k)
16824 library_names_spec='$libname.ixlibrary $libname.a'
16825 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16826 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'
16827 ;;
16828 esac
16829 ;;
16830
16831 beos*)
16832 library_names_spec='${libname}${shared_ext}'
16833 dynamic_linker="$host_os ld.so"
16834 shlibpath_var=LIBRARY_PATH
16835 ;;
16836
16837 bsdi[45]*)
16838 version_type=linux
16839 need_version=no
16840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16841 soname_spec='${libname}${release}${shared_ext}$major'
16842 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16843 shlibpath_var=LD_LIBRARY_PATH
16844 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16845 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16846 # the default ld.so.conf also contains /usr/contrib/lib and
16847 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16848 # libtool to hard-code these into programs
16849 ;;
16850
16851 cygwin* | mingw* | pw32* | cegcc*)
16852 version_type=windows
16853 shrext_cmds=".dll"
16854 need_version=no
16855 need_lib_prefix=no
16856
16857 case $GCC,$host_os in
16858 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16859 library_names_spec='$libname.dll.a'
16860 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16861 postinstall_cmds='base_file=`basename \${file}`~
16862 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16863 dldir=$destdir/`dirname \$dlpath`~
16864 test -d \$dldir || mkdir -p \$dldir~
16865 $install_prog $dir/$dlname \$dldir/$dlname~
16866 chmod a+x \$dldir/$dlname~
16867 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16868 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16869 fi'
16870 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16871 dlpath=$dir/\$dldll~
16872 $RM \$dlpath'
16873 shlibpath_overrides_runpath=yes
16874
16875 case $host_os in
16876 cygwin*)
16877 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16878 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16879
16880 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16881 ;;
16882 mingw* | cegcc*)
16883 # MinGW DLLs use traditional 'lib' prefix
16884 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16885 ;;
16886 pw32*)
16887 # pw32 DLLs use 'pw' prefix rather than 'lib'
16888 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16889 ;;
16890 esac
16891 ;;
16892
16893 *)
16894 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16895 ;;
16896 esac
16897 dynamic_linker='Win32 ld.exe'
16898 # FIXME: first we should search . and the directory the executable is in
16899 shlibpath_var=PATH
16900 ;;
16901
16902 darwin* | rhapsody*)
16903 dynamic_linker="$host_os dyld"
16904 version_type=darwin
16905 need_lib_prefix=no
16906 need_version=no
16907 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16908 soname_spec='${libname}${release}${major}$shared_ext'
16909 shlibpath_overrides_runpath=yes
16910 shlibpath_var=DYLD_LIBRARY_PATH
16911 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16912
16913 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16914 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16915 ;;
16916
16917 dgux*)
16918 version_type=linux
16919 need_lib_prefix=no
16920 need_version=no
16921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16922 soname_spec='${libname}${release}${shared_ext}$major'
16923 shlibpath_var=LD_LIBRARY_PATH
16924 ;;
16925
16926 freebsd* | dragonfly*)
16927 # DragonFly does not have aout. When/if they implement a new
16928 # versioning mechanism, adjust this.
16929 if test -x /usr/bin/objformat; then
16930 objformat=`/usr/bin/objformat`
16931 else
16932 case $host_os in
16933 freebsd[23].*) objformat=aout ;;
16934 *) objformat=elf ;;
16935 esac
16936 fi
16937 version_type=freebsd-$objformat
16938 case $version_type in
16939 freebsd-elf*)
16940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16941 need_version=no
16942 need_lib_prefix=no
16943 ;;
16944 freebsd-*)
16945 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16946 need_version=yes
16947 ;;
16948 esac
16949 shlibpath_var=LD_LIBRARY_PATH
16950 case $host_os in
16951 freebsd2.*)
16952 shlibpath_overrides_runpath=yes
16953 ;;
16954 freebsd3.[01]* | freebsdelf3.[01]*)
16955 shlibpath_overrides_runpath=yes
16956 hardcode_into_libs=yes
16957 ;;
16958 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16959 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16960 shlibpath_overrides_runpath=no
16961 hardcode_into_libs=yes
16962 ;;
16963 *) # from 4.6 on, and DragonFly
16964 shlibpath_overrides_runpath=yes
16965 hardcode_into_libs=yes
16966 ;;
16967 esac
16968 ;;
16969
16970 gnu*)
16971 version_type=linux
16972 need_lib_prefix=no
16973 need_version=no
16974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16975 soname_spec='${libname}${release}${shared_ext}$major'
16976 shlibpath_var=LD_LIBRARY_PATH
16977 hardcode_into_libs=yes
16978 ;;
16979
16980 haiku*)
16981 version_type=linux
16982 need_lib_prefix=no
16983 need_version=no
16984 dynamic_linker="$host_os runtime_loader"
16985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16986 soname_spec='${libname}${release}${shared_ext}$major'
16987 shlibpath_var=LIBRARY_PATH
16988 shlibpath_overrides_runpath=yes
16989 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16990 hardcode_into_libs=yes
16991 ;;
16992
16993 hpux9* | hpux10* | hpux11*)
16994 # Give a soname corresponding to the major version so that dld.sl refuses to
16995 # link against other versions.
16996 version_type=sunos
16997 need_lib_prefix=no
16998 need_version=no
16999 case $host_cpu in
17000 ia64*)
17001 shrext_cmds='.so'
17002 hardcode_into_libs=yes
17003 dynamic_linker="$host_os dld.so"
17004 shlibpath_var=LD_LIBRARY_PATH
17005 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17007 soname_spec='${libname}${release}${shared_ext}$major'
17008 if test "X$HPUX_IA64_MODE" = X32; then
17009 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17010 else
17011 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17012 fi
17013 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17014 ;;
17015 hppa*64*)
17016 shrext_cmds='.sl'
17017 hardcode_into_libs=yes
17018 dynamic_linker="$host_os dld.sl"
17019 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17020 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17022 soname_spec='${libname}${release}${shared_ext}$major'
17023 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17024 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17025 ;;
17026 *)
17027 shrext_cmds='.sl'
17028 dynamic_linker="$host_os dld.sl"
17029 shlibpath_var=SHLIB_PATH
17030 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17032 soname_spec='${libname}${release}${shared_ext}$major'
17033 ;;
17034 esac
17035 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17036 postinstall_cmds='chmod 555 $lib'
17037 # or fails outright, so override atomically:
17038 install_override_mode=555
17039 ;;
17040
17041 interix[3-9]*)
17042 version_type=linux
17043 need_lib_prefix=no
17044 need_version=no
17045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17046 soname_spec='${libname}${release}${shared_ext}$major'
17047 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17048 shlibpath_var=LD_LIBRARY_PATH
17049 shlibpath_overrides_runpath=no
17050 hardcode_into_libs=yes
17051 ;;
17052
17053 irix5* | irix6* | nonstopux*)
17054 case $host_os in
17055 nonstopux*) version_type=nonstopux ;;
17056 *)
17057 if test "$lt_cv_prog_gnu_ld" = yes; then
17058 version_type=linux
17059 else
17060 version_type=irix
17061 fi ;;
17062 esac
17063 need_lib_prefix=no
17064 need_version=no
17065 soname_spec='${libname}${release}${shared_ext}$major'
17066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17067 case $host_os in
17068 irix5* | nonstopux*)
17069 libsuff= shlibsuff=
17070 ;;
17071 *)
17072 case $LD in # libtool.m4 will add one of these switches to LD
17073 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17074 libsuff= shlibsuff= libmagic=32-bit;;
17075 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17076 libsuff=32 shlibsuff=N32 libmagic=N32;;
17077 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17078 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17079 *) libsuff= shlibsuff= libmagic=never-match;;
17080 esac
17081 ;;
17082 esac
17083 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17084 shlibpath_overrides_runpath=no
17085 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17086 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17087 hardcode_into_libs=yes
17088 ;;
17089
17090 # No shared lib support for Linux oldld, aout, or coff.
17091 linux*oldld* | linux*aout* | linux*coff*)
17092 dynamic_linker=no
17093 ;;
17094
17095 # This must be Linux ELF.
17096 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17097 version_type=linux
17098 need_lib_prefix=no
17099 need_version=no
17100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17101 soname_spec='${libname}${release}${shared_ext}$major'
17102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17103 shlibpath_var=LD_LIBRARY_PATH
17104 shlibpath_overrides_runpath=no
17105
17106 # Some binutils ld are patched to set DT_RUNPATH
17107 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17108 $as_echo_n "(cached) " >&6
17109 else
17110 lt_cv_shlibpath_overrides_runpath=no
17111 save_LDFLAGS=$LDFLAGS
17112 save_libdir=$libdir
17113 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17114 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17116 /* end confdefs.h. */
17117
17118 int
17119 main ()
17120 {
17121
17122 ;
17123 return 0;
17124 }
17125 _ACEOF
17126 if ac_fn_c_try_link "$LINENO"; then :
17127 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17128 lt_cv_shlibpath_overrides_runpath=yes
17129 fi
17130 fi
17131 rm -f core conftest.err conftest.$ac_objext \
17132 conftest$ac_exeext conftest.$ac_ext
17133 LDFLAGS=$save_LDFLAGS
17134 libdir=$save_libdir
17135
17136 fi
17137
17138 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17139
17140 # This implies no fast_install, which is unacceptable.
17141 # Some rework will be needed to allow for fast_install
17142 # before this can be enabled.
17143 hardcode_into_libs=yes
17144
17145 # Append ld.so.conf contents to the search path
17146 if test -f /etc/ld.so.conf; then
17147 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' ' '`
17148 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17149 fi
17150
17151 # We used to test for /lib/ld.so.1 and disable shared libraries on
17152 # powerpc, because MkLinux only supported shared libraries with the
17153 # GNU dynamic linker. Since this was broken with cross compilers,
17154 # most powerpc-linux boxes support dynamic linking these days and
17155 # people can always --disable-shared, the test was removed, and we
17156 # assume the GNU/Linux dynamic linker is in use.
17157 dynamic_linker='GNU/Linux ld.so'
17158 ;;
17159
17160 netbsd*)
17161 version_type=sunos
17162 need_lib_prefix=no
17163 need_version=no
17164 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17167 dynamic_linker='NetBSD (a.out) ld.so'
17168 else
17169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17170 soname_spec='${libname}${release}${shared_ext}$major'
17171 dynamic_linker='NetBSD ld.elf_so'
17172 fi
17173 shlibpath_var=LD_LIBRARY_PATH
17174 shlibpath_overrides_runpath=yes
17175 hardcode_into_libs=yes
17176 ;;
17177
17178 newsos6)
17179 version_type=linux
17180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17181 shlibpath_var=LD_LIBRARY_PATH
17182 shlibpath_overrides_runpath=yes
17183 ;;
17184
17185 *nto* | *qnx*)
17186 version_type=qnx
17187 need_lib_prefix=no
17188 need_version=no
17189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17190 soname_spec='${libname}${release}${shared_ext}$major'
17191 shlibpath_var=LD_LIBRARY_PATH
17192 shlibpath_overrides_runpath=no
17193 hardcode_into_libs=yes
17194 dynamic_linker='ldqnx.so'
17195 ;;
17196
17197 openbsd*)
17198 version_type=sunos
17199 sys_lib_dlsearch_path_spec="/usr/lib"
17200 need_lib_prefix=no
17201 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17202 case $host_os in
17203 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17204 *) need_version=no ;;
17205 esac
17206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17207 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17208 shlibpath_var=LD_LIBRARY_PATH
17209 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17210 case $host_os in
17211 openbsd2.[89] | openbsd2.[89].*)
17212 shlibpath_overrides_runpath=no
17213 ;;
17214 *)
17215 shlibpath_overrides_runpath=yes
17216 ;;
17217 esac
17218 else
17219 shlibpath_overrides_runpath=yes
17220 fi
17221 ;;
17222
17223 os2*)
17224 libname_spec='$name'
17225 shrext_cmds=".dll"
17226 need_lib_prefix=no
17227 library_names_spec='$libname${shared_ext} $libname.a'
17228 dynamic_linker='OS/2 ld.exe'
17229 shlibpath_var=LIBPATH
17230 ;;
17231
17232 osf3* | osf4* | osf5*)
17233 version_type=osf
17234 need_lib_prefix=no
17235 need_version=no
17236 soname_spec='${libname}${release}${shared_ext}$major'
17237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17238 shlibpath_var=LD_LIBRARY_PATH
17239 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17240 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17241 ;;
17242
17243 rdos*)
17244 dynamic_linker=no
17245 ;;
17246
17247 solaris*)
17248 version_type=linux
17249 need_lib_prefix=no
17250 need_version=no
17251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17252 soname_spec='${libname}${release}${shared_ext}$major'
17253 shlibpath_var=LD_LIBRARY_PATH
17254 shlibpath_overrides_runpath=yes
17255 hardcode_into_libs=yes
17256 # ldd complains unless libraries are executable
17257 postinstall_cmds='chmod +x $lib'
17258 ;;
17259
17260 sunos4*)
17261 version_type=sunos
17262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17263 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17264 shlibpath_var=LD_LIBRARY_PATH
17265 shlibpath_overrides_runpath=yes
17266 if test "$with_gnu_ld" = yes; then
17267 need_lib_prefix=no
17268 fi
17269 need_version=yes
17270 ;;
17271
17272 sysv4 | sysv4.3*)
17273 version_type=linux
17274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17275 soname_spec='${libname}${release}${shared_ext}$major'
17276 shlibpath_var=LD_LIBRARY_PATH
17277 case $host_vendor in
17278 sni)
17279 shlibpath_overrides_runpath=no
17280 need_lib_prefix=no
17281 runpath_var=LD_RUN_PATH
17282 ;;
17283 siemens)
17284 need_lib_prefix=no
17285 ;;
17286 motorola)
17287 need_lib_prefix=no
17288 need_version=no
17289 shlibpath_overrides_runpath=no
17290 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17291 ;;
17292 esac
17293 ;;
17294
17295 sysv4*MP*)
17296 if test -d /usr/nec ;then
17297 version_type=linux
17298 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17299 soname_spec='$libname${shared_ext}.$major'
17300 shlibpath_var=LD_LIBRARY_PATH
17301 fi
17302 ;;
17303
17304 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17305 version_type=freebsd-elf
17306 need_lib_prefix=no
17307 need_version=no
17308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17309 soname_spec='${libname}${release}${shared_ext}$major'
17310 shlibpath_var=LD_LIBRARY_PATH
17311 shlibpath_overrides_runpath=yes
17312 hardcode_into_libs=yes
17313 if test "$with_gnu_ld" = yes; then
17314 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17315 else
17316 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17317 case $host_os in
17318 sco3.2v5*)
17319 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17320 ;;
17321 esac
17322 fi
17323 sys_lib_dlsearch_path_spec='/usr/lib'
17324 ;;
17325
17326 tpf*)
17327 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17328 version_type=linux
17329 need_lib_prefix=no
17330 need_version=no
17331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17332 shlibpath_var=LD_LIBRARY_PATH
17333 shlibpath_overrides_runpath=no
17334 hardcode_into_libs=yes
17335 ;;
17336
17337 uts4*)
17338 version_type=linux
17339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17340 soname_spec='${libname}${release}${shared_ext}$major'
17341 shlibpath_var=LD_LIBRARY_PATH
17342 ;;
17343
17344 *)
17345 dynamic_linker=no
17346 ;;
17347 esac
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17349 $as_echo "$dynamic_linker" >&6; }
17350 test "$dynamic_linker" = no && can_build_shared=no
17351
17352 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17353 if test "$GCC" = yes; then
17354 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17355 fi
17356
17357 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17358 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17359 fi
17360 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17361 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17362 fi
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17456 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17457 hardcode_action=
17458 if test -n "$hardcode_libdir_flag_spec" ||
17459 test -n "$runpath_var" ||
17460 test "X$hardcode_automatic" = "Xyes" ; then
17461
17462 # We can hardcode non-existent directories.
17463 if test "$hardcode_direct" != no &&
17464 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17465 # have to relink, otherwise we might link with an installed library
17466 # when we should be linking with a yet-to-be-installed one
17467 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17468 test "$hardcode_minus_L" != no; then
17469 # Linking always hardcodes the temporary library directory.
17470 hardcode_action=relink
17471 else
17472 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17473 hardcode_action=immediate
17474 fi
17475 else
17476 # We cannot hardcode anything, or else we can only hardcode existing
17477 # directories.
17478 hardcode_action=unsupported
17479 fi
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17481 $as_echo "$hardcode_action" >&6; }
17482
17483 if test "$hardcode_action" = relink ||
17484 test "$inherit_rpath" = yes; then
17485 # Fast installation is not supported
17486 enable_fast_install=no
17487 elif test "$shlibpath_overrides_runpath" = yes ||
17488 test "$enable_shared" = no; then
17489 # Fast installation is not necessary
17490 enable_fast_install=needless
17491 fi
17492
17493
17494
17495
17496
17497
17498 if test "x$enable_dlopen" != xyes; then
17499 enable_dlopen=unknown
17500 enable_dlopen_self=unknown
17501 enable_dlopen_self_static=unknown
17502 else
17503 lt_cv_dlopen=no
17504 lt_cv_dlopen_libs=
17505
17506 case $host_os in
17507 beos*)
17508 lt_cv_dlopen="load_add_on"
17509 lt_cv_dlopen_libs=
17510 lt_cv_dlopen_self=yes
17511 ;;
17512
17513 mingw* | pw32* | cegcc*)
17514 lt_cv_dlopen="LoadLibrary"
17515 lt_cv_dlopen_libs=
17516 ;;
17517
17518 cygwin*)
17519 lt_cv_dlopen="dlopen"
17520 lt_cv_dlopen_libs=
17521 ;;
17522
17523 darwin*)
17524 # if libdl is installed we need to link against it
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17526 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17527 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17528 $as_echo_n "(cached) " >&6
17529 else
17530 ac_check_lib_save_LIBS=$LIBS
17531 LIBS="-ldl $LIBS"
17532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17533 /* end confdefs.h. */
17534
17535 /* Override any GCC internal prototype to avoid an error.
17536 Use char because int might match the return type of a GCC
17537 builtin and then its argument prototype would still apply. */
17538 #ifdef __cplusplus
17539 extern "C"
17540 #endif
17541 char dlopen ();
17542 int
17543 main ()
17544 {
17545 return dlopen ();
17546 ;
17547 return 0;
17548 }
17549 _ACEOF
17550 if ac_fn_c_try_link "$LINENO"; then :
17551 ac_cv_lib_dl_dlopen=yes
17552 else
17553 ac_cv_lib_dl_dlopen=no
17554 fi
17555 rm -f core conftest.err conftest.$ac_objext \
17556 conftest$ac_exeext conftest.$ac_ext
17557 LIBS=$ac_check_lib_save_LIBS
17558 fi
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17560 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17561 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17562 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17563 else
17564
17565 lt_cv_dlopen="dyld"
17566 lt_cv_dlopen_libs=
17567 lt_cv_dlopen_self=yes
17568
17569 fi
17570
17571 ;;
17572
17573 *)
17574 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17575 if test "x$ac_cv_func_shl_load" = x""yes; then :
17576 lt_cv_dlopen="shl_load"
17577 else
17578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17579 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17580 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17581 $as_echo_n "(cached) " >&6
17582 else
17583 ac_check_lib_save_LIBS=$LIBS
17584 LIBS="-ldld $LIBS"
17585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17586 /* end confdefs.h. */
17587
17588 /* Override any GCC internal prototype to avoid an error.
17589 Use char because int might match the return type of a GCC
17590 builtin and then its argument prototype would still apply. */
17591 #ifdef __cplusplus
17592 extern "C"
17593 #endif
17594 char shl_load ();
17595 int
17596 main ()
17597 {
17598 return shl_load ();
17599 ;
17600 return 0;
17601 }
17602 _ACEOF
17603 if ac_fn_c_try_link "$LINENO"; then :
17604 ac_cv_lib_dld_shl_load=yes
17605 else
17606 ac_cv_lib_dld_shl_load=no
17607 fi
17608 rm -f core conftest.err conftest.$ac_objext \
17609 conftest$ac_exeext conftest.$ac_ext
17610 LIBS=$ac_check_lib_save_LIBS
17611 fi
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17613 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17614 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17615 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17616 else
17617 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17618 if test "x$ac_cv_func_dlopen" = x""yes; then :
17619 lt_cv_dlopen="dlopen"
17620 else
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17622 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17623 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17624 $as_echo_n "(cached) " >&6
17625 else
17626 ac_check_lib_save_LIBS=$LIBS
17627 LIBS="-ldl $LIBS"
17628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17629 /* end confdefs.h. */
17630
17631 /* Override any GCC internal prototype to avoid an error.
17632 Use char because int might match the return type of a GCC
17633 builtin and then its argument prototype would still apply. */
17634 #ifdef __cplusplus
17635 extern "C"
17636 #endif
17637 char dlopen ();
17638 int
17639 main ()
17640 {
17641 return dlopen ();
17642 ;
17643 return 0;
17644 }
17645 _ACEOF
17646 if ac_fn_c_try_link "$LINENO"; then :
17647 ac_cv_lib_dl_dlopen=yes
17648 else
17649 ac_cv_lib_dl_dlopen=no
17650 fi
17651 rm -f core conftest.err conftest.$ac_objext \
17652 conftest$ac_exeext conftest.$ac_ext
17653 LIBS=$ac_check_lib_save_LIBS
17654 fi
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17656 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17657 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17658 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17659 else
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17661 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17662 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17663 $as_echo_n "(cached) " >&6
17664 else
17665 ac_check_lib_save_LIBS=$LIBS
17666 LIBS="-lsvld $LIBS"
17667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17668 /* end confdefs.h. */
17669
17670 /* Override any GCC internal prototype to avoid an error.
17671 Use char because int might match the return type of a GCC
17672 builtin and then its argument prototype would still apply. */
17673 #ifdef __cplusplus
17674 extern "C"
17675 #endif
17676 char dlopen ();
17677 int
17678 main ()
17679 {
17680 return dlopen ();
17681 ;
17682 return 0;
17683 }
17684 _ACEOF
17685 if ac_fn_c_try_link "$LINENO"; then :
17686 ac_cv_lib_svld_dlopen=yes
17687 else
17688 ac_cv_lib_svld_dlopen=no
17689 fi
17690 rm -f core conftest.err conftest.$ac_objext \
17691 conftest$ac_exeext conftest.$ac_ext
17692 LIBS=$ac_check_lib_save_LIBS
17693 fi
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17695 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17696 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17697 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17698 else
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17700 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17701 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17702 $as_echo_n "(cached) " >&6
17703 else
17704 ac_check_lib_save_LIBS=$LIBS
17705 LIBS="-ldld $LIBS"
17706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17707 /* end confdefs.h. */
17708
17709 /* Override any GCC internal prototype to avoid an error.
17710 Use char because int might match the return type of a GCC
17711 builtin and then its argument prototype would still apply. */
17712 #ifdef __cplusplus
17713 extern "C"
17714 #endif
17715 char dld_link ();
17716 int
17717 main ()
17718 {
17719 return dld_link ();
17720 ;
17721 return 0;
17722 }
17723 _ACEOF
17724 if ac_fn_c_try_link "$LINENO"; then :
17725 ac_cv_lib_dld_dld_link=yes
17726 else
17727 ac_cv_lib_dld_dld_link=no
17728 fi
17729 rm -f core conftest.err conftest.$ac_objext \
17730 conftest$ac_exeext conftest.$ac_ext
17731 LIBS=$ac_check_lib_save_LIBS
17732 fi
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17734 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17735 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17736 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17737 fi
17738
17739
17740 fi
17741
17742
17743 fi
17744
17745
17746 fi
17747
17748
17749 fi
17750
17751
17752 fi
17753
17754 ;;
17755 esac
17756
17757 if test "x$lt_cv_dlopen" != xno; then
17758 enable_dlopen=yes
17759 else
17760 enable_dlopen=no
17761 fi
17762
17763 case $lt_cv_dlopen in
17764 dlopen)
17765 save_CPPFLAGS="$CPPFLAGS"
17766 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17767
17768 save_LDFLAGS="$LDFLAGS"
17769 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17770
17771 save_LIBS="$LIBS"
17772 LIBS="$lt_cv_dlopen_libs $LIBS"
17773
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17775 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17776 if test "${lt_cv_dlopen_self+set}" = set; then :
17777 $as_echo_n "(cached) " >&6
17778 else
17779 if test "$cross_compiling" = yes; then :
17780 lt_cv_dlopen_self=cross
17781 else
17782 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17783 lt_status=$lt_dlunknown
17784 cat > conftest.$ac_ext <<_LT_EOF
17785 #line 17785 "configure"
17786 #include "confdefs.h"
17787
17788 #if HAVE_DLFCN_H
17789 #include <dlfcn.h>
17790 #endif
17791
17792 #include <stdio.h>
17793
17794 #ifdef RTLD_GLOBAL
17795 # define LT_DLGLOBAL RTLD_GLOBAL
17796 #else
17797 # ifdef DL_GLOBAL
17798 # define LT_DLGLOBAL DL_GLOBAL
17799 # else
17800 # define LT_DLGLOBAL 0
17801 # endif
17802 #endif
17803
17804 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17805 find out it does not work in some platform. */
17806 #ifndef LT_DLLAZY_OR_NOW
17807 # ifdef RTLD_LAZY
17808 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17809 # else
17810 # ifdef DL_LAZY
17811 # define LT_DLLAZY_OR_NOW DL_LAZY
17812 # else
17813 # ifdef RTLD_NOW
17814 # define LT_DLLAZY_OR_NOW RTLD_NOW
17815 # else
17816 # ifdef DL_NOW
17817 # define LT_DLLAZY_OR_NOW DL_NOW
17818 # else
17819 # define LT_DLLAZY_OR_NOW 0
17820 # endif
17821 # endif
17822 # endif
17823 # endif
17824 #endif
17825
17826 /* When -fvisbility=hidden is used, assume the code has been annotated
17827 correspondingly for the symbols needed. */
17828 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17829 void fnord () __attribute__((visibility("default")));
17830 #endif
17831
17832 void fnord () { int i=42; }
17833 int main ()
17834 {
17835 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17836 int status = $lt_dlunknown;
17837
17838 if (self)
17839 {
17840 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17841 else
17842 {
17843 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17844 else puts (dlerror ());
17845 }
17846 /* dlclose (self); */
17847 }
17848 else
17849 puts (dlerror ());
17850
17851 return status;
17852 }
17853 _LT_EOF
17854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17855 (eval $ac_link) 2>&5
17856 ac_status=$?
17857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17858 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17859 (./conftest; exit; ) >&5 2>/dev/null
17860 lt_status=$?
17861 case x$lt_status in
17862 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17863 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17864 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17865 esac
17866 else :
17867 # compilation failed
17868 lt_cv_dlopen_self=no
17869 fi
17870 fi
17871 rm -fr conftest*
17872
17873
17874 fi
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17876 $as_echo "$lt_cv_dlopen_self" >&6; }
17877
17878 if test "x$lt_cv_dlopen_self" = xyes; then
17879 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17881 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17882 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17883 $as_echo_n "(cached) " >&6
17884 else
17885 if test "$cross_compiling" = yes; then :
17886 lt_cv_dlopen_self_static=cross
17887 else
17888 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17889 lt_status=$lt_dlunknown
17890 cat > conftest.$ac_ext <<_LT_EOF
17891 #line 17891 "configure"
17892 #include "confdefs.h"
17893
17894 #if HAVE_DLFCN_H
17895 #include <dlfcn.h>
17896 #endif
17897
17898 #include <stdio.h>
17899
17900 #ifdef RTLD_GLOBAL
17901 # define LT_DLGLOBAL RTLD_GLOBAL
17902 #else
17903 # ifdef DL_GLOBAL
17904 # define LT_DLGLOBAL DL_GLOBAL
17905 # else
17906 # define LT_DLGLOBAL 0
17907 # endif
17908 #endif
17909
17910 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17911 find out it does not work in some platform. */
17912 #ifndef LT_DLLAZY_OR_NOW
17913 # ifdef RTLD_LAZY
17914 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17915 # else
17916 # ifdef DL_LAZY
17917 # define LT_DLLAZY_OR_NOW DL_LAZY
17918 # else
17919 # ifdef RTLD_NOW
17920 # define LT_DLLAZY_OR_NOW RTLD_NOW
17921 # else
17922 # ifdef DL_NOW
17923 # define LT_DLLAZY_OR_NOW DL_NOW
17924 # else
17925 # define LT_DLLAZY_OR_NOW 0
17926 # endif
17927 # endif
17928 # endif
17929 # endif
17930 #endif
17931
17932 /* When -fvisbility=hidden is used, assume the code has been annotated
17933 correspondingly for the symbols needed. */
17934 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17935 void fnord () __attribute__((visibility("default")));
17936 #endif
17937
17938 void fnord () { int i=42; }
17939 int main ()
17940 {
17941 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17942 int status = $lt_dlunknown;
17943
17944 if (self)
17945 {
17946 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17947 else
17948 {
17949 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17950 else puts (dlerror ());
17951 }
17952 /* dlclose (self); */
17953 }
17954 else
17955 puts (dlerror ());
17956
17957 return status;
17958 }
17959 _LT_EOF
17960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17961 (eval $ac_link) 2>&5
17962 ac_status=$?
17963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17964 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17965 (./conftest; exit; ) >&5 2>/dev/null
17966 lt_status=$?
17967 case x$lt_status in
17968 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17969 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17970 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17971 esac
17972 else :
17973 # compilation failed
17974 lt_cv_dlopen_self_static=no
17975 fi
17976 fi
17977 rm -fr conftest*
17978
17979
17980 fi
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17982 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17983 fi
17984
17985 CPPFLAGS="$save_CPPFLAGS"
17986 LDFLAGS="$save_LDFLAGS"
17987 LIBS="$save_LIBS"
17988 ;;
17989 esac
17990
17991 case $lt_cv_dlopen_self in
17992 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17993 *) enable_dlopen_self=unknown ;;
17994 esac
17995
17996 case $lt_cv_dlopen_self_static in
17997 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17998 *) enable_dlopen_self_static=unknown ;;
17999 esac
18000 fi
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018 striplib=
18019 old_striplib=
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18021 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18022 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18023 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18024 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18026 $as_echo "yes" >&6; }
18027 else
18028 # FIXME - insert some real tests, host_os isn't really good enough
18029 case $host_os in
18030 darwin*)
18031 if test -n "$STRIP" ; then
18032 striplib="$STRIP -x"
18033 old_striplib="$STRIP -S"
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18035 $as_echo "yes" >&6; }
18036 else
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18038 $as_echo "no" >&6; }
18039 fi
18040 ;;
18041 *)
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18043 $as_echo "no" >&6; }
18044 ;;
18045 esac
18046 fi
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059 # Report which library types will actually be built
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18061 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18063 $as_echo "$can_build_shared" >&6; }
18064
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18066 $as_echo_n "checking whether to build shared libraries... " >&6; }
18067 test "$can_build_shared" = "no" && enable_shared=no
18068
18069 # On AIX, shared libraries and static libraries use the same namespace, and
18070 # are all built from PIC.
18071 case $host_os in
18072 aix3*)
18073 test "$enable_shared" = yes && enable_static=no
18074 if test -n "$RANLIB"; then
18075 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18076 postinstall_cmds='$RANLIB $lib'
18077 fi
18078 ;;
18079
18080 aix[4-9]*)
18081 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18082 test "$enable_shared" = yes && enable_static=no
18083 fi
18084 ;;
18085 esac
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18087 $as_echo "$enable_shared" >&6; }
18088
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18090 $as_echo_n "checking whether to build static libraries... " >&6; }
18091 # Make sure either enable_shared or enable_static is yes.
18092 test "$enable_shared" = yes || enable_static=yes
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18094 $as_echo "$enable_static" >&6; }
18095
18096
18097
18098
18099 fi
18100 ac_ext=c
18101 ac_cpp='$CPP $CPPFLAGS'
18102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18105
18106 CC="$lt_save_CC"
18107
18108 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18109 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18110 (test "X$CXX" != "Xg++"))) ; then
18111 ac_ext=cpp
18112 ac_cpp='$CXXCPP $CPPFLAGS'
18113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18117 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18118 if test -z "$CXXCPP"; then
18119 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18120 $as_echo_n "(cached) " >&6
18121 else
18122 # Double quotes because CXXCPP needs to be expanded
18123 for CXXCPP in "$CXX -E" "/lib/cpp"
18124 do
18125 ac_preproc_ok=false
18126 for ac_cxx_preproc_warn_flag in '' yes
18127 do
18128 # Use a header file that comes with gcc, so configuring glibc
18129 # with a fresh cross-compiler works.
18130 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18131 # <limits.h> exists even on freestanding compilers.
18132 # On the NeXT, cc -E runs the code through the compiler's parser,
18133 # not just through cpp. "Syntax error" is here to catch this case.
18134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18135 /* end confdefs.h. */
18136 #ifdef __STDC__
18137 # include <limits.h>
18138 #else
18139 # include <assert.h>
18140 #endif
18141 Syntax error
18142 _ACEOF
18143 if ac_fn_cxx_try_cpp "$LINENO"; then :
18144
18145 else
18146 # Broken: fails on valid input.
18147 continue
18148 fi
18149 rm -f conftest.err conftest.$ac_ext
18150
18151 # OK, works on sane cases. Now check whether nonexistent headers
18152 # can be detected and how.
18153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18154 /* end confdefs.h. */
18155 #include <ac_nonexistent.h>
18156 _ACEOF
18157 if ac_fn_cxx_try_cpp "$LINENO"; then :
18158 # Broken: success on invalid input.
18159 continue
18160 else
18161 # Passes both tests.
18162 ac_preproc_ok=:
18163 break
18164 fi
18165 rm -f conftest.err conftest.$ac_ext
18166
18167 done
18168 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18169 rm -f conftest.err conftest.$ac_ext
18170 if $ac_preproc_ok; then :
18171 break
18172 fi
18173
18174 done
18175 ac_cv_prog_CXXCPP=$CXXCPP
18176
18177 fi
18178 CXXCPP=$ac_cv_prog_CXXCPP
18179 else
18180 ac_cv_prog_CXXCPP=$CXXCPP
18181 fi
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18183 $as_echo "$CXXCPP" >&6; }
18184 ac_preproc_ok=false
18185 for ac_cxx_preproc_warn_flag in '' yes
18186 do
18187 # Use a header file that comes with gcc, so configuring glibc
18188 # with a fresh cross-compiler works.
18189 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18190 # <limits.h> exists even on freestanding compilers.
18191 # On the NeXT, cc -E runs the code through the compiler's parser,
18192 # not just through cpp. "Syntax error" is here to catch this case.
18193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18194 /* end confdefs.h. */
18195 #ifdef __STDC__
18196 # include <limits.h>
18197 #else
18198 # include <assert.h>
18199 #endif
18200 Syntax error
18201 _ACEOF
18202 if ac_fn_cxx_try_cpp "$LINENO"; then :
18203
18204 else
18205 # Broken: fails on valid input.
18206 continue
18207 fi
18208 rm -f conftest.err conftest.$ac_ext
18209
18210 # OK, works on sane cases. Now check whether nonexistent headers
18211 # can be detected and how.
18212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18213 /* end confdefs.h. */
18214 #include <ac_nonexistent.h>
18215 _ACEOF
18216 if ac_fn_cxx_try_cpp "$LINENO"; then :
18217 # Broken: success on invalid input.
18218 continue
18219 else
18220 # Passes both tests.
18221 ac_preproc_ok=:
18222 break
18223 fi
18224 rm -f conftest.err conftest.$ac_ext
18225
18226 done
18227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18228 rm -f conftest.err conftest.$ac_ext
18229 if $ac_preproc_ok; then :
18230
18231 else
18232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18234 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18235 See \`config.log' for more details." "$LINENO" 5; }
18236 fi
18237
18238 ac_ext=c
18239 ac_cpp='$CPP $CPPFLAGS'
18240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18243
18244 else
18245 _lt_caught_CXX_error=yes
18246 fi
18247
18248 ac_ext=cpp
18249 ac_cpp='$CXXCPP $CPPFLAGS'
18250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18253
18254 archive_cmds_need_lc_CXX=no
18255 allow_undefined_flag_CXX=
18256 always_export_symbols_CXX=no
18257 archive_expsym_cmds_CXX=
18258 compiler_needs_object_CXX=no
18259 export_dynamic_flag_spec_CXX=
18260 hardcode_direct_CXX=no
18261 hardcode_direct_absolute_CXX=no
18262 hardcode_libdir_flag_spec_CXX=
18263 hardcode_libdir_flag_spec_ld_CXX=
18264 hardcode_libdir_separator_CXX=
18265 hardcode_minus_L_CXX=no
18266 hardcode_shlibpath_var_CXX=unsupported
18267 hardcode_automatic_CXX=no
18268 inherit_rpath_CXX=no
18269 module_cmds_CXX=
18270 module_expsym_cmds_CXX=
18271 link_all_deplibs_CXX=unknown
18272 old_archive_cmds_CXX=$old_archive_cmds
18273 reload_flag_CXX=$reload_flag
18274 reload_cmds_CXX=$reload_cmds
18275 no_undefined_flag_CXX=
18276 whole_archive_flag_spec_CXX=
18277 enable_shared_with_static_runtimes_CXX=no
18278
18279 # Source file extension for C++ test sources.
18280 ac_ext=cpp
18281
18282 # Object file extension for compiled C++ test sources.
18283 objext=o
18284 objext_CXX=$objext
18285
18286 # No sense in running all these tests if we already determined that
18287 # the CXX compiler isn't working. Some variables (like enable_shared)
18288 # are currently assumed to apply to all compilers on this platform,
18289 # and will be corrupted by setting them based on a non-working compiler.
18290 if test "$_lt_caught_CXX_error" != yes; then
18291 # Code to be used in simple compile tests
18292 lt_simple_compile_test_code="int some_variable = 0;"
18293
18294 # Code to be used in simple link tests
18295 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18296
18297 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18298
18299
18300
18301
18302
18303
18304 # If no C compiler was specified, use CC.
18305 LTCC=${LTCC-"$CC"}
18306
18307 # If no C compiler flags were specified, use CFLAGS.
18308 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18309
18310 # Allow CC to be a program name with arguments.
18311 compiler=$CC
18312
18313
18314 # save warnings/boilerplate of simple test code
18315 ac_outfile=conftest.$ac_objext
18316 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18317 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18318 _lt_compiler_boilerplate=`cat conftest.err`
18319 $RM conftest*
18320
18321 ac_outfile=conftest.$ac_objext
18322 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18323 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18324 _lt_linker_boilerplate=`cat conftest.err`
18325 $RM -r conftest*
18326
18327
18328 # Allow CC to be a program name with arguments.
18329 lt_save_CC=$CC
18330 lt_save_LD=$LD
18331 lt_save_GCC=$GCC
18332 GCC=$GXX
18333 lt_save_with_gnu_ld=$with_gnu_ld
18334 lt_save_path_LD=$lt_cv_path_LD
18335 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18336 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18337 else
18338 $as_unset lt_cv_prog_gnu_ld
18339 fi
18340 if test -n "${lt_cv_path_LDCXX+set}"; then
18341 lt_cv_path_LD=$lt_cv_path_LDCXX
18342 else
18343 $as_unset lt_cv_path_LD
18344 fi
18345 test -z "${LDCXX+set}" || LD=$LDCXX
18346 CC=${CXX-"c++"}
18347 compiler=$CC
18348 compiler_CXX=$CC
18349 for cc_temp in $compiler""; do
18350 case $cc_temp in
18351 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18352 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18353 \-*) ;;
18354 *) break;;
18355 esac
18356 done
18357 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18358
18359
18360 if test -n "$compiler"; then
18361 # We don't want -fno-exception when compiling C++ code, so set the
18362 # no_builtin_flag separately
18363 if test "$GXX" = yes; then
18364 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18365 else
18366 lt_prog_compiler_no_builtin_flag_CXX=
18367 fi
18368
18369 if test "$GXX" = yes; then
18370 # Set up default GNU C++ configuration
18371
18372
18373
18374 # Check whether --with-gnu-ld was given.
18375 if test "${with_gnu_ld+set}" = set; then :
18376 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18377 else
18378 with_gnu_ld=no
18379 fi
18380
18381 ac_prog=ld
18382 if test "$GCC" = yes; then
18383 # Check if gcc -print-prog-name=ld gives a path.
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18385 $as_echo_n "checking for ld used by $CC... " >&6; }
18386 case $host in
18387 *-*-mingw*)
18388 # gcc leaves a trailing carriage return which upsets mingw
18389 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18390 *)
18391 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18392 esac
18393 case $ac_prog in
18394 # Accept absolute paths.
18395 [\\/]* | ?:[\\/]*)
18396 re_direlt='/[^/][^/]*/\.\./'
18397 # Canonicalize the pathname of ld
18398 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18399 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18400 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18401 done
18402 test -z "$LD" && LD="$ac_prog"
18403 ;;
18404 "")
18405 # If it fails, then pretend we aren't using GCC.
18406 ac_prog=ld
18407 ;;
18408 *)
18409 # If it is relative, then search for the first ld in PATH.
18410 with_gnu_ld=unknown
18411 ;;
18412 esac
18413 elif test "$with_gnu_ld" = yes; then
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18415 $as_echo_n "checking for GNU ld... " >&6; }
18416 else
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18418 $as_echo_n "checking for non-GNU ld... " >&6; }
18419 fi
18420 if test "${lt_cv_path_LD+set}" = set; then :
18421 $as_echo_n "(cached) " >&6
18422 else
18423 if test -z "$LD"; then
18424 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18425 for ac_dir in $PATH; do
18426 IFS="$lt_save_ifs"
18427 test -z "$ac_dir" && ac_dir=.
18428 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18429 lt_cv_path_LD="$ac_dir/$ac_prog"
18430 # Check to see if the program is GNU ld. I'd rather use --version,
18431 # but apparently some variants of GNU ld only accept -v.
18432 # Break only if it was the GNU/non-GNU ld that we prefer.
18433 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18434 *GNU* | *'with BFD'*)
18435 test "$with_gnu_ld" != no && break
18436 ;;
18437 *)
18438 test "$with_gnu_ld" != yes && break
18439 ;;
18440 esac
18441 fi
18442 done
18443 IFS="$lt_save_ifs"
18444 else
18445 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18446 fi
18447 fi
18448
18449 LD="$lt_cv_path_LD"
18450 if test -n "$LD"; then
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18452 $as_echo "$LD" >&6; }
18453 else
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18455 $as_echo "no" >&6; }
18456 fi
18457 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18459 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18460 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18461 $as_echo_n "(cached) " >&6
18462 else
18463 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18464 case `$LD -v 2>&1 </dev/null` in
18465 *GNU* | *'with BFD'*)
18466 lt_cv_prog_gnu_ld=yes
18467 ;;
18468 *)
18469 lt_cv_prog_gnu_ld=no
18470 ;;
18471 esac
18472 fi
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18474 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18475 with_gnu_ld=$lt_cv_prog_gnu_ld
18476
18477
18478
18479
18480
18481
18482
18483 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18484 # archiving commands below assume that GNU ld is being used.
18485 if test "$with_gnu_ld" = yes; then
18486 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18487 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'
18488
18489 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18490 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18491
18492 # If archive_cmds runs LD, not CC, wlarc should be empty
18493 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18494 # investigate it a little bit more. (MM)
18495 wlarc='${wl}'
18496
18497 # ancient GNU ld didn't support --whole-archive et. al.
18498 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18499 $GREP 'no-whole-archive' > /dev/null; then
18500 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18501 else
18502 whole_archive_flag_spec_CXX=
18503 fi
18504 else
18505 with_gnu_ld=no
18506 wlarc=
18507
18508 # A generic and very simple default shared library creation
18509 # command for GNU C++ for the case where it uses the native
18510 # linker, instead of GNU ld. If possible, this setting should
18511 # overridden to take advantage of the native linker features on
18512 # the platform it is being used on.
18513 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18514 fi
18515
18516 # Commands to make compiler produce verbose output that lists
18517 # what "hidden" libraries, object files and flags are used when
18518 # linking a shared library.
18519 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18520
18521 else
18522 GXX=no
18523 with_gnu_ld=no
18524 wlarc=
18525 fi
18526
18527 # PORTME: fill in a description of your system's C++ link characteristics
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18529 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18530 ld_shlibs_CXX=yes
18531 case $host_os in
18532 aix3*)
18533 # FIXME: insert proper C++ library support
18534 ld_shlibs_CXX=no
18535 ;;
18536 aix[4-9]*)
18537 if test "$host_cpu" = ia64; then
18538 # On IA64, the linker does run time linking by default, so we don't
18539 # have to do anything special.
18540 aix_use_runtimelinking=no
18541 exp_sym_flag='-Bexport'
18542 no_entry_flag=""
18543 else
18544 aix_use_runtimelinking=no
18545
18546 # Test if we are trying to use run time linking or normal
18547 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18548 # need to do runtime linking.
18549 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18550 for ld_flag in $LDFLAGS; do
18551 case $ld_flag in
18552 *-brtl*)
18553 aix_use_runtimelinking=yes
18554 break
18555 ;;
18556 esac
18557 done
18558 ;;
18559 esac
18560
18561 exp_sym_flag='-bexport'
18562 no_entry_flag='-bnoentry'
18563 fi
18564
18565 # When large executables or shared objects are built, AIX ld can
18566 # have problems creating the table of contents. If linking a library
18567 # or program results in "error TOC overflow" add -mminimal-toc to
18568 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18569 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18570
18571 archive_cmds_CXX=''
18572 hardcode_direct_CXX=yes
18573 hardcode_direct_absolute_CXX=yes
18574 hardcode_libdir_separator_CXX=':'
18575 link_all_deplibs_CXX=yes
18576 file_list_spec_CXX='${wl}-f,'
18577
18578 if test "$GXX" = yes; then
18579 case $host_os in aix4.[012]|aix4.[012].*)
18580 # We only want to do this on AIX 4.2 and lower, the check
18581 # below for broken collect2 doesn't work under 4.3+
18582 collect2name=`${CC} -print-prog-name=collect2`
18583 if test -f "$collect2name" &&
18584 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18585 then
18586 # We have reworked collect2
18587 :
18588 else
18589 # We have old collect2
18590 hardcode_direct_CXX=unsupported
18591 # It fails to find uninstalled libraries when the uninstalled
18592 # path is not listed in the libpath. Setting hardcode_minus_L
18593 # to unsupported forces relinking
18594 hardcode_minus_L_CXX=yes
18595 hardcode_libdir_flag_spec_CXX='-L$libdir'
18596 hardcode_libdir_separator_CXX=
18597 fi
18598 esac
18599 shared_flag='-shared'
18600 if test "$aix_use_runtimelinking" = yes; then
18601 shared_flag="$shared_flag "'${wl}-G'
18602 fi
18603 else
18604 # not using gcc
18605 if test "$host_cpu" = ia64; then
18606 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18607 # chokes on -Wl,-G. The following line is correct:
18608 shared_flag='-G'
18609 else
18610 if test "$aix_use_runtimelinking" = yes; then
18611 shared_flag='${wl}-G'
18612 else
18613 shared_flag='${wl}-bM:SRE'
18614 fi
18615 fi
18616 fi
18617
18618 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18619 # It seems that -bexpall does not export symbols beginning with
18620 # underscore (_), so it is better to generate a list of symbols to
18621 # export.
18622 always_export_symbols_CXX=yes
18623 if test "$aix_use_runtimelinking" = yes; then
18624 # Warning - without using the other runtime loading flags (-brtl),
18625 # -berok will link without error, but may produce a broken library.
18626 allow_undefined_flag_CXX='-berok'
18627 # Determine the default libpath from the value encoded in an empty
18628 # executable.
18629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18630 /* end confdefs.h. */
18631
18632 int
18633 main ()
18634 {
18635
18636 ;
18637 return 0;
18638 }
18639 _ACEOF
18640 if ac_fn_cxx_try_link "$LINENO"; then :
18641
18642 lt_aix_libpath_sed='
18643 /Import File Strings/,/^$/ {
18644 /^0/ {
18645 s/^0 *\(.*\)$/\1/
18646 p
18647 }
18648 }'
18649 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18650 # Check for a 64-bit object if we didn't find anything.
18651 if test -z "$aix_libpath"; then
18652 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18653 fi
18654 fi
18655 rm -f core conftest.err conftest.$ac_objext \
18656 conftest$ac_exeext conftest.$ac_ext
18657 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18658
18659 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18660
18661 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"
18662 else
18663 if test "$host_cpu" = ia64; then
18664 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18665 allow_undefined_flag_CXX="-z nodefs"
18666 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"
18667 else
18668 # Determine the default libpath from the value encoded in an
18669 # empty executable.
18670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18671 /* end confdefs.h. */
18672
18673 int
18674 main ()
18675 {
18676
18677 ;
18678 return 0;
18679 }
18680 _ACEOF
18681 if ac_fn_cxx_try_link "$LINENO"; then :
18682
18683 lt_aix_libpath_sed='
18684 /Import File Strings/,/^$/ {
18685 /^0/ {
18686 s/^0 *\(.*\)$/\1/
18687 p
18688 }
18689 }'
18690 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18691 # Check for a 64-bit object if we didn't find anything.
18692 if test -z "$aix_libpath"; then
18693 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18694 fi
18695 fi
18696 rm -f core conftest.err conftest.$ac_objext \
18697 conftest$ac_exeext conftest.$ac_ext
18698 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18699
18700 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18701 # Warning - without using the other run time loading flags,
18702 # -berok will link without error, but may produce a broken library.
18703 no_undefined_flag_CXX=' ${wl}-bernotok'
18704 allow_undefined_flag_CXX=' ${wl}-berok'
18705 if test "$with_gnu_ld" = yes; then
18706 # We only use this code for GNU lds that support --whole-archive.
18707 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18708 else
18709 # Exported symbols can be pulled into shared objects from archives
18710 whole_archive_flag_spec_CXX='$convenience'
18711 fi
18712 archive_cmds_need_lc_CXX=yes
18713 # This is similar to how AIX traditionally builds its shared
18714 # libraries.
18715 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'
18716 fi
18717 fi
18718 ;;
18719
18720 beos*)
18721 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18722 allow_undefined_flag_CXX=unsupported
18723 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18724 # support --undefined. This deserves some investigation. FIXME
18725 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18726 else
18727 ld_shlibs_CXX=no
18728 fi
18729 ;;
18730
18731 chorus*)
18732 case $cc_basename in
18733 *)
18734 # FIXME: insert proper C++ library support
18735 ld_shlibs_CXX=no
18736 ;;
18737 esac
18738 ;;
18739
18740 cygwin* | mingw* | pw32* | cegcc*)
18741 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18742 # as there is no search path for DLLs.
18743 hardcode_libdir_flag_spec_CXX='-L$libdir'
18744 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18745 allow_undefined_flag_CXX=unsupported
18746 always_export_symbols_CXX=no
18747 enable_shared_with_static_runtimes_CXX=yes
18748
18749 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18750 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'
18751 # If the export-symbols file already is a .def file (1st line
18752 # is EXPORTS), use it as is; otherwise, prepend...
18753 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18754 cp $export_symbols $output_objdir/$soname.def;
18755 else
18756 echo EXPORTS > $output_objdir/$soname.def;
18757 cat $export_symbols >> $output_objdir/$soname.def;
18758 fi~
18759 $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'
18760 else
18761 ld_shlibs_CXX=no
18762 fi
18763 ;;
18764 darwin* | rhapsody*)
18765
18766
18767 archive_cmds_need_lc_CXX=no
18768 hardcode_direct_CXX=no
18769 hardcode_automatic_CXX=yes
18770 hardcode_shlibpath_var_CXX=unsupported
18771 if test "$lt_cv_ld_force_load" = "yes"; then
18772 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\"`'
18773 else
18774 whole_archive_flag_spec_CXX=''
18775 fi
18776 link_all_deplibs_CXX=yes
18777 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18778 case $cc_basename in
18779 ifort*) _lt_dar_can_shared=yes ;;
18780 *) _lt_dar_can_shared=$GCC ;;
18781 esac
18782 if test "$_lt_dar_can_shared" = "yes"; then
18783 output_verbose_link_cmd=func_echo_all
18784 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}"
18785 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18786 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}"
18787 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}"
18788 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18789 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}"
18790 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}"
18791 fi
18792
18793 else
18794 ld_shlibs_CXX=no
18795 fi
18796
18797 ;;
18798
18799 dgux*)
18800 case $cc_basename in
18801 ec++*)
18802 # FIXME: insert proper C++ library support
18803 ld_shlibs_CXX=no
18804 ;;
18805 ghcx*)
18806 # Green Hills C++ Compiler
18807 # FIXME: insert proper C++ library support
18808 ld_shlibs_CXX=no
18809 ;;
18810 *)
18811 # FIXME: insert proper C++ library support
18812 ld_shlibs_CXX=no
18813 ;;
18814 esac
18815 ;;
18816
18817 freebsd2.*)
18818 # C++ shared libraries reported to be fairly broken before
18819 # switch to ELF
18820 ld_shlibs_CXX=no
18821 ;;
18822
18823 freebsd-elf*)
18824 archive_cmds_need_lc_CXX=no
18825 ;;
18826
18827 freebsd* | dragonfly*)
18828 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18829 # conventions
18830 ld_shlibs_CXX=yes
18831 ;;
18832
18833 gnu*)
18834 ;;
18835
18836 haiku*)
18837 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18838 link_all_deplibs_CXX=yes
18839 ;;
18840
18841 hpux9*)
18842 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18843 hardcode_libdir_separator_CXX=:
18844 export_dynamic_flag_spec_CXX='${wl}-E'
18845 hardcode_direct_CXX=yes
18846 hardcode_minus_L_CXX=yes # Not in the search PATH,
18847 # but as the default
18848 # location of the library.
18849
18850 case $cc_basename in
18851 CC*)
18852 # FIXME: insert proper C++ library support
18853 ld_shlibs_CXX=no
18854 ;;
18855 aCC*)
18856 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'
18857 # Commands to make compiler produce verbose output that lists
18858 # what "hidden" libraries, object files and flags are used when
18859 # linking a shared library.
18860 #
18861 # There doesn't appear to be a way to prevent this compiler from
18862 # explicitly linking system object files so we need to strip them
18863 # from the output so that they don't get included in the library
18864 # dependencies.
18865 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"'
18866 ;;
18867 *)
18868 if test "$GXX" = yes; then
18869 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'
18870 else
18871 # FIXME: insert proper C++ library support
18872 ld_shlibs_CXX=no
18873 fi
18874 ;;
18875 esac
18876 ;;
18877
18878 hpux10*|hpux11*)
18879 if test $with_gnu_ld = no; then
18880 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18881 hardcode_libdir_separator_CXX=:
18882
18883 case $host_cpu in
18884 hppa*64*|ia64*)
18885 ;;
18886 *)
18887 export_dynamic_flag_spec_CXX='${wl}-E'
18888 ;;
18889 esac
18890 fi
18891 case $host_cpu in
18892 hppa*64*|ia64*)
18893 hardcode_direct_CXX=no
18894 hardcode_shlibpath_var_CXX=no
18895 ;;
18896 *)
18897 hardcode_direct_CXX=yes
18898 hardcode_direct_absolute_CXX=yes
18899 hardcode_minus_L_CXX=yes # Not in the search PATH,
18900 # but as the default
18901 # location of the library.
18902 ;;
18903 esac
18904
18905 case $cc_basename in
18906 CC*)
18907 # FIXME: insert proper C++ library support
18908 ld_shlibs_CXX=no
18909 ;;
18910 aCC*)
18911 case $host_cpu in
18912 hppa*64*)
18913 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18914 ;;
18915 ia64*)
18916 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18917 ;;
18918 *)
18919 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18920 ;;
18921 esac
18922 # Commands to make compiler produce verbose output that lists
18923 # what "hidden" libraries, object files and flags are used when
18924 # linking a shared library.
18925 #
18926 # There doesn't appear to be a way to prevent this compiler from
18927 # explicitly linking system object files so we need to strip them
18928 # from the output so that they don't get included in the library
18929 # dependencies.
18930 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"'
18931 ;;
18932 *)
18933 if test "$GXX" = yes; then
18934 if test $with_gnu_ld = no; then
18935 case $host_cpu in
18936 hppa*64*)
18937 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18938 ;;
18939 ia64*)
18940 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18941 ;;
18942 *)
18943 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'
18944 ;;
18945 esac
18946 fi
18947 else
18948 # FIXME: insert proper C++ library support
18949 ld_shlibs_CXX=no
18950 fi
18951 ;;
18952 esac
18953 ;;
18954
18955 interix[3-9]*)
18956 hardcode_direct_CXX=no
18957 hardcode_shlibpath_var_CXX=no
18958 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18959 export_dynamic_flag_spec_CXX='${wl}-E'
18960 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18961 # Instead, shared libraries are loaded at an image base (0x10000000 by
18962 # default) and relocated if they conflict, which is a slow very memory
18963 # consuming and fragmenting process. To avoid this, we pick a random,
18964 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18965 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18966 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'
18967 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'
18968 ;;
18969 irix5* | irix6*)
18970 case $cc_basename in
18971 CC*)
18972 # SGI C++
18973 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'
18974
18975 # Archives containing C++ object files must be created using
18976 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18977 # necessary to make sure instantiated templates are included
18978 # in the archive.
18979 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18980 ;;
18981 *)
18982 if test "$GXX" = yes; then
18983 if test "$with_gnu_ld" = no; then
18984 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'
18985 else
18986 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'
18987 fi
18988 fi
18989 link_all_deplibs_CXX=yes
18990 ;;
18991 esac
18992 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18993 hardcode_libdir_separator_CXX=:
18994 inherit_rpath_CXX=yes
18995 ;;
18996
18997 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18998 case $cc_basename in
18999 KCC*)
19000 # Kuck and Associates, Inc. (KAI) C++ Compiler
19001
19002 # KCC will only create a shared library if the output file
19003 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19004 # to its proper name (with version) after linking.
19005 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'
19006 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'
19007 # Commands to make compiler produce verbose output that lists
19008 # what "hidden" libraries, object files and flags are used when
19009 # linking a shared library.
19010 #
19011 # There doesn't appear to be a way to prevent this compiler from
19012 # explicitly linking system object files so we need to strip them
19013 # from the output so that they don't get included in the library
19014 # dependencies.
19015 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"'
19016
19017 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19018 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19019
19020 # Archives containing C++ object files must be created using
19021 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19022 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19023 ;;
19024 icpc* | ecpc* )
19025 # Intel C++
19026 with_gnu_ld=yes
19027 # version 8.0 and above of icpc choke on multiply defined symbols
19028 # if we add $predep_objects and $postdep_objects, however 7.1 and
19029 # earlier do not add the objects themselves.
19030 case `$CC -V 2>&1` in
19031 *"Version 7."*)
19032 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19033 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'
19034 ;;
19035 *) # Version 8.0 or newer
19036 tmp_idyn=
19037 case $host_cpu in
19038 ia64*) tmp_idyn=' -i_dynamic';;
19039 esac
19040 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19041 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'
19042 ;;
19043 esac
19044 archive_cmds_need_lc_CXX=no
19045 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19046 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19047 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19048 ;;
19049 pgCC* | pgcpp*)
19050 # Portland Group C++ compiler
19051 case `$CC -V` in
19052 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19053 prelink_cmds_CXX='tpldir=Template.dir~
19054 rm -rf $tpldir~
19055 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19056 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19057 old_archive_cmds_CXX='tpldir=Template.dir~
19058 rm -rf $tpldir~
19059 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19060 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19061 $RANLIB $oldlib'
19062 archive_cmds_CXX='tpldir=Template.dir~
19063 rm -rf $tpldir~
19064 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19065 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19066 archive_expsym_cmds_CXX='tpldir=Template.dir~
19067 rm -rf $tpldir~
19068 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19069 $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'
19070 ;;
19071 *) # Version 6 and above use weak symbols
19072 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19073 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'
19074 ;;
19075 esac
19076
19077 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19078 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19079 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'
19080 ;;
19081 cxx*)
19082 # Compaq C++
19083 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19084 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'
19085
19086 runpath_var=LD_RUN_PATH
19087 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19088 hardcode_libdir_separator_CXX=:
19089
19090 # Commands to make compiler produce verbose output that lists
19091 # what "hidden" libraries, object files and flags are used when
19092 # linking a shared library.
19093 #
19094 # There doesn't appear to be a way to prevent this compiler from
19095 # explicitly linking system object files so we need to strip them
19096 # from the output so that they don't get included in the library
19097 # dependencies.
19098 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'
19099 ;;
19100 xl* | mpixl* | bgxl*)
19101 # IBM XL 8.0 on PPC, with GNU ld
19102 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19103 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19104 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19105 if test "x$supports_anon_versioning" = xyes; then
19106 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19107 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19108 echo "local: *; };" >> $output_objdir/$libname.ver~
19109 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19110 fi
19111 ;;
19112 *)
19113 case `$CC -V 2>&1 | sed 5q` in
19114 *Sun\ C*)
19115 # Sun C++ 5.9
19116 no_undefined_flag_CXX=' -zdefs'
19117 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19118 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'
19119 hardcode_libdir_flag_spec_CXX='-R$libdir'
19120 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'
19121 compiler_needs_object_CXX=yes
19122
19123 # Not sure whether something based on
19124 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19125 # would be better.
19126 output_verbose_link_cmd='func_echo_all'
19127
19128 # Archives containing C++ object files must be created using
19129 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19130 # necessary to make sure instantiated templates are included
19131 # in the archive.
19132 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19133 ;;
19134 esac
19135 ;;
19136 esac
19137 ;;
19138
19139 lynxos*)
19140 # FIXME: insert proper C++ library support
19141 ld_shlibs_CXX=no
19142 ;;
19143
19144 m88k*)
19145 # FIXME: insert proper C++ library support
19146 ld_shlibs_CXX=no
19147 ;;
19148
19149 mvs*)
19150 case $cc_basename in
19151 cxx*)
19152 # FIXME: insert proper C++ library support
19153 ld_shlibs_CXX=no
19154 ;;
19155 *)
19156 # FIXME: insert proper C++ library support
19157 ld_shlibs_CXX=no
19158 ;;
19159 esac
19160 ;;
19161
19162 netbsd*)
19163 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19164 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19165 wlarc=
19166 hardcode_libdir_flag_spec_CXX='-R$libdir'
19167 hardcode_direct_CXX=yes
19168 hardcode_shlibpath_var_CXX=no
19169 fi
19170 # Workaround some broken pre-1.5 toolchains
19171 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19172 ;;
19173
19174 *nto* | *qnx*)
19175 ld_shlibs_CXX=yes
19176 ;;
19177
19178 openbsd2*)
19179 # C++ shared libraries are fairly broken
19180 ld_shlibs_CXX=no
19181 ;;
19182
19183 openbsd*)
19184 if test -f /usr/libexec/ld.so; then
19185 hardcode_direct_CXX=yes
19186 hardcode_shlibpath_var_CXX=no
19187 hardcode_direct_absolute_CXX=yes
19188 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19189 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19190 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19191 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19192 export_dynamic_flag_spec_CXX='${wl}-E'
19193 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19194 fi
19195 output_verbose_link_cmd=func_echo_all
19196 else
19197 ld_shlibs_CXX=no
19198 fi
19199 ;;
19200
19201 osf3* | osf4* | osf5*)
19202 case $cc_basename in
19203 KCC*)
19204 # Kuck and Associates, Inc. (KAI) C++ Compiler
19205
19206 # KCC will only create a shared library if the output file
19207 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19208 # to its proper name (with version) after linking.
19209 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'
19210
19211 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19212 hardcode_libdir_separator_CXX=:
19213
19214 # Archives containing C++ object files must be created using
19215 # the KAI C++ compiler.
19216 case $host in
19217 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19218 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19219 esac
19220 ;;
19221 RCC*)
19222 # Rational C++ 2.4.1
19223 # FIXME: insert proper C++ library support
19224 ld_shlibs_CXX=no
19225 ;;
19226 cxx*)
19227 case $host in
19228 osf3*)
19229 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19230 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'
19231 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19232 ;;
19233 *)
19234 allow_undefined_flag_CXX=' -expect_unresolved \*'
19235 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'
19236 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19237 echo "-hidden">> $lib.exp~
19238 $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~
19239 $RM $lib.exp'
19240 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19241 ;;
19242 esac
19243
19244 hardcode_libdir_separator_CXX=:
19245
19246 # Commands to make compiler produce verbose output that lists
19247 # what "hidden" libraries, object files and flags are used when
19248 # linking a shared library.
19249 #
19250 # There doesn't appear to be a way to prevent this compiler from
19251 # explicitly linking system object files so we need to strip them
19252 # from the output so that they don't get included in the library
19253 # dependencies.
19254 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"'
19255 ;;
19256 *)
19257 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19258 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19259 case $host in
19260 osf3*)
19261 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'
19262 ;;
19263 *)
19264 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'
19265 ;;
19266 esac
19267
19268 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19269 hardcode_libdir_separator_CXX=:
19270
19271 # Commands to make compiler produce verbose output that lists
19272 # what "hidden" libraries, object files and flags are used when
19273 # linking a shared library.
19274 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19275
19276 else
19277 # FIXME: insert proper C++ library support
19278 ld_shlibs_CXX=no
19279 fi
19280 ;;
19281 esac
19282 ;;
19283
19284 psos*)
19285 # FIXME: insert proper C++ library support
19286 ld_shlibs_CXX=no
19287 ;;
19288
19289 sunos4*)
19290 case $cc_basename in
19291 CC*)
19292 # Sun C++ 4.x
19293 # FIXME: insert proper C++ library support
19294 ld_shlibs_CXX=no
19295 ;;
19296 lcc*)
19297 # Lucid
19298 # FIXME: insert proper C++ library support
19299 ld_shlibs_CXX=no
19300 ;;
19301 *)
19302 # FIXME: insert proper C++ library support
19303 ld_shlibs_CXX=no
19304 ;;
19305 esac
19306 ;;
19307
19308 solaris*)
19309 case $cc_basename in
19310 CC*)
19311 # Sun C++ 4.2, 5.x and Centerline C++
19312 archive_cmds_need_lc_CXX=yes
19313 no_undefined_flag_CXX=' -zdefs'
19314 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19315 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19316 $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'
19317
19318 hardcode_libdir_flag_spec_CXX='-R$libdir'
19319 hardcode_shlibpath_var_CXX=no
19320 case $host_os in
19321 solaris2.[0-5] | solaris2.[0-5].*) ;;
19322 *)
19323 # The compiler driver will combine and reorder linker options,
19324 # but understands `-z linker_flag'.
19325 # Supported since Solaris 2.6 (maybe 2.5.1?)
19326 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19327 ;;
19328 esac
19329 link_all_deplibs_CXX=yes
19330
19331 output_verbose_link_cmd='func_echo_all'
19332
19333 # Archives containing C++ object files must be created using
19334 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19335 # necessary to make sure instantiated templates are included
19336 # in the archive.
19337 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19338 ;;
19339 gcx*)
19340 # Green Hills C++ Compiler
19341 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19342
19343 # The C++ compiler must be used to create the archive.
19344 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19345 ;;
19346 *)
19347 # GNU C++ compiler with Solaris linker
19348 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19349 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19350 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19351 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19352 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19353 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19354
19355 # Commands to make compiler produce verbose output that lists
19356 # what "hidden" libraries, object files and flags are used when
19357 # linking a shared library.
19358 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19359 else
19360 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19361 # platform.
19362 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19363 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19364 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19365
19366 # Commands to make compiler produce verbose output that lists
19367 # what "hidden" libraries, object files and flags are used when
19368 # linking a shared library.
19369 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19370 fi
19371
19372 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19373 case $host_os in
19374 solaris2.[0-5] | solaris2.[0-5].*) ;;
19375 *)
19376 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19377 ;;
19378 esac
19379 fi
19380 ;;
19381 esac
19382 ;;
19383
19384 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19385 no_undefined_flag_CXX='${wl}-z,text'
19386 archive_cmds_need_lc_CXX=no
19387 hardcode_shlibpath_var_CXX=no
19388 runpath_var='LD_RUN_PATH'
19389
19390 case $cc_basename in
19391 CC*)
19392 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19393 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19394 ;;
19395 *)
19396 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19397 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19398 ;;
19399 esac
19400 ;;
19401
19402 sysv5* | sco3.2v5* | sco5v6*)
19403 # Note: We can NOT use -z defs as we might desire, because we do not
19404 # link with -lc, and that would cause any symbols used from libc to
19405 # always be unresolved, which means just about no library would
19406 # ever link correctly. If we're not using GNU ld we use -z text
19407 # though, which does catch some bad symbols but isn't as heavy-handed
19408 # as -z defs.
19409 no_undefined_flag_CXX='${wl}-z,text'
19410 allow_undefined_flag_CXX='${wl}-z,nodefs'
19411 archive_cmds_need_lc_CXX=no
19412 hardcode_shlibpath_var_CXX=no
19413 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19414 hardcode_libdir_separator_CXX=':'
19415 link_all_deplibs_CXX=yes
19416 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19417 runpath_var='LD_RUN_PATH'
19418
19419 case $cc_basename in
19420 CC*)
19421 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19422 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19423 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19424 '"$old_archive_cmds_CXX"
19425 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19426 '"$reload_cmds_CXX"
19427 ;;
19428 *)
19429 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19430 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19431 ;;
19432 esac
19433 ;;
19434
19435 tandem*)
19436 case $cc_basename in
19437 NCC*)
19438 # NonStop-UX NCC 3.20
19439 # FIXME: insert proper C++ library support
19440 ld_shlibs_CXX=no
19441 ;;
19442 *)
19443 # FIXME: insert proper C++ library support
19444 ld_shlibs_CXX=no
19445 ;;
19446 esac
19447 ;;
19448
19449 vxworks*)
19450 # FIXME: insert proper C++ library support
19451 ld_shlibs_CXX=no
19452 ;;
19453
19454 *)
19455 # FIXME: insert proper C++ library support
19456 ld_shlibs_CXX=no
19457 ;;
19458 esac
19459
19460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19461 $as_echo "$ld_shlibs_CXX" >&6; }
19462 test "$ld_shlibs_CXX" = no && can_build_shared=no
19463
19464 GCC_CXX="$GXX"
19465 LD_CXX="$LD"
19466
19467 ## CAVEAT EMPTOR:
19468 ## There is no encapsulation within the following macros, do not change
19469 ## the running order or otherwise move them around unless you know exactly
19470 ## what you are doing...
19471 # Dependencies to place before and after the object being linked:
19472 predep_objects_CXX=
19473 postdep_objects_CXX=
19474 predeps_CXX=
19475 postdeps_CXX=
19476 compiler_lib_search_path_CXX=
19477
19478 cat > conftest.$ac_ext <<_LT_EOF
19479 class Foo
19480 {
19481 public:
19482 Foo (void) { a = 0; }
19483 private:
19484 int a;
19485 };
19486 _LT_EOF
19487
19488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19489 (eval $ac_compile) 2>&5
19490 ac_status=$?
19491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19492 test $ac_status = 0; }; then
19493 # Parse the compiler output and extract the necessary
19494 # objects, libraries and library flags.
19495
19496 # Sentinel used to keep track of whether or not we are before
19497 # the conftest object file.
19498 pre_test_object_deps_done=no
19499
19500 for p in `eval "$output_verbose_link_cmd"`; do
19501 case $p in
19502
19503 -L* | -R* | -l*)
19504 # Some compilers place space between "-{L,R}" and the path.
19505 # Remove the space.
19506 if test $p = "-L" ||
19507 test $p = "-R"; then
19508 prev=$p
19509 continue
19510 else
19511 prev=
19512 fi
19513
19514 if test "$pre_test_object_deps_done" = no; then
19515 case $p in
19516 -L* | -R*)
19517 # Internal compiler library paths should come after those
19518 # provided the user. The postdeps already come after the
19519 # user supplied libs so there is no need to process them.
19520 if test -z "$compiler_lib_search_path_CXX"; then
19521 compiler_lib_search_path_CXX="${prev}${p}"
19522 else
19523 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19524 fi
19525 ;;
19526 # The "-l" case would never come before the object being
19527 # linked, so don't bother handling this case.
19528 esac
19529 else
19530 if test -z "$postdeps_CXX"; then
19531 postdeps_CXX="${prev}${p}"
19532 else
19533 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19534 fi
19535 fi
19536 ;;
19537
19538 *.$objext)
19539 # This assumes that the test object file only shows up
19540 # once in the compiler output.
19541 if test "$p" = "conftest.$objext"; then
19542 pre_test_object_deps_done=yes
19543 continue
19544 fi
19545
19546 if test "$pre_test_object_deps_done" = no; then
19547 if test -z "$predep_objects_CXX"; then
19548 predep_objects_CXX="$p"
19549 else
19550 predep_objects_CXX="$predep_objects_CXX $p"
19551 fi
19552 else
19553 if test -z "$postdep_objects_CXX"; then
19554 postdep_objects_CXX="$p"
19555 else
19556 postdep_objects_CXX="$postdep_objects_CXX $p"
19557 fi
19558 fi
19559 ;;
19560
19561 *) ;; # Ignore the rest.
19562
19563 esac
19564 done
19565
19566 # Clean up.
19567 rm -f a.out a.exe
19568 else
19569 echo "libtool.m4: error: problem compiling CXX test program"
19570 fi
19571
19572 $RM -f confest.$objext
19573
19574 # PORTME: override above test on systems where it is broken
19575 case $host_os in
19576 interix[3-9]*)
19577 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19578 # hack all around it, let's just trust "g++" to DTRT.
19579 predep_objects_CXX=
19580 postdep_objects_CXX=
19581 postdeps_CXX=
19582 ;;
19583
19584 linux*)
19585 case `$CC -V 2>&1 | sed 5q` in
19586 *Sun\ C*)
19587 # Sun C++ 5.9
19588
19589 # The more standards-conforming stlport4 library is
19590 # incompatible with the Cstd library. Avoid specifying
19591 # it if it's in CXXFLAGS. Ignore libCrun as
19592 # -library=stlport4 depends on it.
19593 case " $CXX $CXXFLAGS " in
19594 *" -library=stlport4 "*)
19595 solaris_use_stlport4=yes
19596 ;;
19597 esac
19598
19599 if test "$solaris_use_stlport4" != yes; then
19600 postdeps_CXX='-library=Cstd -library=Crun'
19601 fi
19602 ;;
19603 esac
19604 ;;
19605
19606 solaris*)
19607 case $cc_basename in
19608 CC*)
19609 # The more standards-conforming stlport4 library is
19610 # incompatible with the Cstd library. Avoid specifying
19611 # it if it's in CXXFLAGS. Ignore libCrun as
19612 # -library=stlport4 depends on it.
19613 case " $CXX $CXXFLAGS " in
19614 *" -library=stlport4 "*)
19615 solaris_use_stlport4=yes
19616 ;;
19617 esac
19618
19619 # Adding this requires a known-good setup of shared libraries for
19620 # Sun compiler versions before 5.6, else PIC objects from an old
19621 # archive will be linked into the output, leading to subtle bugs.
19622 if test "$solaris_use_stlport4" != yes; then
19623 postdeps_CXX='-library=Cstd -library=Crun'
19624 fi
19625 ;;
19626 esac
19627 ;;
19628 esac
19629
19630
19631 case " $postdeps_CXX " in
19632 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19633 esac
19634 compiler_lib_search_dirs_CXX=
19635 if test -n "${compiler_lib_search_path_CXX}"; then
19636 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19637 fi
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669 lt_prog_compiler_wl_CXX=
19670 lt_prog_compiler_pic_CXX=
19671 lt_prog_compiler_static_CXX=
19672
19673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19674 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19675
19676 # C++ specific cases for pic, static, wl, etc.
19677 if test "$GXX" = yes; then
19678 lt_prog_compiler_wl_CXX='-Wl,'
19679 lt_prog_compiler_static_CXX='-static'
19680
19681 case $host_os in
19682 aix*)
19683 # All AIX code is PIC.
19684 if test "$host_cpu" = ia64; then
19685 # AIX 5 now supports IA64 processor
19686 lt_prog_compiler_static_CXX='-Bstatic'
19687 fi
19688 ;;
19689
19690 amigaos*)
19691 case $host_cpu in
19692 powerpc)
19693 # see comment about AmigaOS4 .so support
19694 lt_prog_compiler_pic_CXX='-fPIC'
19695 ;;
19696 m68k)
19697 # FIXME: we need at least 68020 code to build shared libraries, but
19698 # adding the `-m68020' flag to GCC prevents building anything better,
19699 # like `-m68040'.
19700 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19701 ;;
19702 esac
19703 ;;
19704
19705 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19706 # PIC is the default for these OSes.
19707 ;;
19708 mingw* | cygwin* | os2* | pw32* | cegcc*)
19709 # This hack is so that the source file can tell whether it is being
19710 # built for inclusion in a dll (and should export symbols for example).
19711 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19712 # (--disable-auto-import) libraries
19713 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19714 ;;
19715 darwin* | rhapsody*)
19716 # PIC is the default on this platform
19717 # Common symbols not allowed in MH_DYLIB files
19718 lt_prog_compiler_pic_CXX='-fno-common'
19719 ;;
19720 *djgpp*)
19721 # DJGPP does not support shared libraries at all
19722 lt_prog_compiler_pic_CXX=
19723 ;;
19724 haiku*)
19725 # PIC is the default for Haiku.
19726 # The "-static" flag exists, but is broken.
19727 lt_prog_compiler_static_CXX=
19728 ;;
19729 interix[3-9]*)
19730 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19731 # Instead, we relocate shared libraries at runtime.
19732 ;;
19733 sysv4*MP*)
19734 if test -d /usr/nec; then
19735 lt_prog_compiler_pic_CXX=-Kconform_pic
19736 fi
19737 ;;
19738 hpux*)
19739 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19740 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19741 # sets the default TLS model and affects inlining.
19742 case $host_cpu in
19743 hppa*64*)
19744 ;;
19745 *)
19746 lt_prog_compiler_pic_CXX='-fPIC'
19747 ;;
19748 esac
19749 ;;
19750 *qnx* | *nto*)
19751 # QNX uses GNU C++, but need to define -shared option too, otherwise
19752 # it will coredump.
19753 lt_prog_compiler_pic_CXX='-fPIC -shared'
19754 ;;
19755 *)
19756 lt_prog_compiler_pic_CXX='-fPIC'
19757 ;;
19758 esac
19759 else
19760 case $host_os in
19761 aix[4-9]*)
19762 # All AIX code is PIC.
19763 if test "$host_cpu" = ia64; then
19764 # AIX 5 now supports IA64 processor
19765 lt_prog_compiler_static_CXX='-Bstatic'
19766 else
19767 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19768 fi
19769 ;;
19770 chorus*)
19771 case $cc_basename in
19772 cxch68*)
19773 # Green Hills C++ Compiler
19774 # _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"
19775 ;;
19776 esac
19777 ;;
19778 dgux*)
19779 case $cc_basename in
19780 ec++*)
19781 lt_prog_compiler_pic_CXX='-KPIC'
19782 ;;
19783 ghcx*)
19784 # Green Hills C++ Compiler
19785 lt_prog_compiler_pic_CXX='-pic'
19786 ;;
19787 *)
19788 ;;
19789 esac
19790 ;;
19791 freebsd* | dragonfly*)
19792 # FreeBSD uses GNU C++
19793 ;;
19794 hpux9* | hpux10* | hpux11*)
19795 case $cc_basename in
19796 CC*)
19797 lt_prog_compiler_wl_CXX='-Wl,'
19798 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19799 if test "$host_cpu" != ia64; then
19800 lt_prog_compiler_pic_CXX='+Z'
19801 fi
19802 ;;
19803 aCC*)
19804 lt_prog_compiler_wl_CXX='-Wl,'
19805 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19806 case $host_cpu in
19807 hppa*64*|ia64*)
19808 # +Z the default
19809 ;;
19810 *)
19811 lt_prog_compiler_pic_CXX='+Z'
19812 ;;
19813 esac
19814 ;;
19815 *)
19816 ;;
19817 esac
19818 ;;
19819 interix*)
19820 # This is c89, which is MS Visual C++ (no shared libs)
19821 # Anyone wants to do a port?
19822 ;;
19823 irix5* | irix6* | nonstopux*)
19824 case $cc_basename in
19825 CC*)
19826 lt_prog_compiler_wl_CXX='-Wl,'
19827 lt_prog_compiler_static_CXX='-non_shared'
19828 # CC pic flag -KPIC is the default.
19829 ;;
19830 *)
19831 ;;
19832 esac
19833 ;;
19834 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19835 case $cc_basename in
19836 KCC*)
19837 # KAI C++ Compiler
19838 lt_prog_compiler_wl_CXX='--backend -Wl,'
19839 lt_prog_compiler_pic_CXX='-fPIC'
19840 ;;
19841 ecpc* )
19842 # old Intel C++ for x86_64 which still supported -KPIC.
19843 lt_prog_compiler_wl_CXX='-Wl,'
19844 lt_prog_compiler_pic_CXX='-KPIC'
19845 lt_prog_compiler_static_CXX='-static'
19846 ;;
19847 icpc* )
19848 # Intel C++, used to be incompatible with GCC.
19849 # ICC 10 doesn't accept -KPIC any more.
19850 lt_prog_compiler_wl_CXX='-Wl,'
19851 lt_prog_compiler_pic_CXX='-fPIC'
19852 lt_prog_compiler_static_CXX='-static'
19853 ;;
19854 pgCC* | pgcpp*)
19855 # Portland Group C++ compiler
19856 lt_prog_compiler_wl_CXX='-Wl,'
19857 lt_prog_compiler_pic_CXX='-fpic'
19858 lt_prog_compiler_static_CXX='-Bstatic'
19859 ;;
19860 cxx*)
19861 # Compaq C++
19862 # Make sure the PIC flag is empty. It appears that all Alpha
19863 # Linux and Compaq Tru64 Unix objects are PIC.
19864 lt_prog_compiler_pic_CXX=
19865 lt_prog_compiler_static_CXX='-non_shared'
19866 ;;
19867 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19868 # IBM XL 8.0, 9.0 on PPC and BlueGene
19869 lt_prog_compiler_wl_CXX='-Wl,'
19870 lt_prog_compiler_pic_CXX='-qpic'
19871 lt_prog_compiler_static_CXX='-qstaticlink'
19872 ;;
19873 *)
19874 case `$CC -V 2>&1 | sed 5q` in
19875 *Sun\ C*)
19876 # Sun C++ 5.9
19877 lt_prog_compiler_pic_CXX='-KPIC'
19878 lt_prog_compiler_static_CXX='-Bstatic'
19879 lt_prog_compiler_wl_CXX='-Qoption ld '
19880 ;;
19881 esac
19882 ;;
19883 esac
19884 ;;
19885 lynxos*)
19886 ;;
19887 m88k*)
19888 ;;
19889 mvs*)
19890 case $cc_basename in
19891 cxx*)
19892 lt_prog_compiler_pic_CXX='-W c,exportall'
19893 ;;
19894 *)
19895 ;;
19896 esac
19897 ;;
19898 netbsd*)
19899 ;;
19900 *qnx* | *nto*)
19901 # QNX uses GNU C++, but need to define -shared option too, otherwise
19902 # it will coredump.
19903 lt_prog_compiler_pic_CXX='-fPIC -shared'
19904 ;;
19905 osf3* | osf4* | osf5*)
19906 case $cc_basename in
19907 KCC*)
19908 lt_prog_compiler_wl_CXX='--backend -Wl,'
19909 ;;
19910 RCC*)
19911 # Rational C++ 2.4.1
19912 lt_prog_compiler_pic_CXX='-pic'
19913 ;;
19914 cxx*)
19915 # Digital/Compaq C++
19916 lt_prog_compiler_wl_CXX='-Wl,'
19917 # Make sure the PIC flag is empty. It appears that all Alpha
19918 # Linux and Compaq Tru64 Unix objects are PIC.
19919 lt_prog_compiler_pic_CXX=
19920 lt_prog_compiler_static_CXX='-non_shared'
19921 ;;
19922 *)
19923 ;;
19924 esac
19925 ;;
19926 psos*)
19927 ;;
19928 solaris*)
19929 case $cc_basename in
19930 CC*)
19931 # Sun C++ 4.2, 5.x and Centerline C++
19932 lt_prog_compiler_pic_CXX='-KPIC'
19933 lt_prog_compiler_static_CXX='-Bstatic'
19934 lt_prog_compiler_wl_CXX='-Qoption ld '
19935 ;;
19936 gcx*)
19937 # Green Hills C++ Compiler
19938 lt_prog_compiler_pic_CXX='-PIC'
19939 ;;
19940 *)
19941 ;;
19942 esac
19943 ;;
19944 sunos4*)
19945 case $cc_basename in
19946 CC*)
19947 # Sun C++ 4.x
19948 lt_prog_compiler_pic_CXX='-pic'
19949 lt_prog_compiler_static_CXX='-Bstatic'
19950 ;;
19951 lcc*)
19952 # Lucid
19953 lt_prog_compiler_pic_CXX='-pic'
19954 ;;
19955 *)
19956 ;;
19957 esac
19958 ;;
19959 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19960 case $cc_basename in
19961 CC*)
19962 lt_prog_compiler_wl_CXX='-Wl,'
19963 lt_prog_compiler_pic_CXX='-KPIC'
19964 lt_prog_compiler_static_CXX='-Bstatic'
19965 ;;
19966 esac
19967 ;;
19968 tandem*)
19969 case $cc_basename in
19970 NCC*)
19971 # NonStop-UX NCC 3.20
19972 lt_prog_compiler_pic_CXX='-KPIC'
19973 ;;
19974 *)
19975 ;;
19976 esac
19977 ;;
19978 vxworks*)
19979 ;;
19980 *)
19981 lt_prog_compiler_can_build_shared_CXX=no
19982 ;;
19983 esac
19984 fi
19985
19986 case $host_os in
19987 # For platforms which do not support PIC, -DPIC is meaningless:
19988 *djgpp*)
19989 lt_prog_compiler_pic_CXX=
19990 ;;
19991 *)
19992 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19993 ;;
19994 esac
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19996 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19997
19998
19999
20000 #
20001 # Check to make sure the PIC flag actually works.
20002 #
20003 if test -n "$lt_prog_compiler_pic_CXX"; then
20004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20005 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20006 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20007 $as_echo_n "(cached) " >&6
20008 else
20009 lt_cv_prog_compiler_pic_works_CXX=no
20010 ac_outfile=conftest.$ac_objext
20011 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20012 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20013 # Insert the option either (1) after the last *FLAGS variable, or
20014 # (2) before a word containing "conftest.", or (3) at the end.
20015 # Note that $ac_compile itself does not contain backslashes and begins
20016 # with a dollar sign (not a hyphen), so the echo should work correctly.
20017 # The option is referenced via a variable to avoid confusing sed.
20018 lt_compile=`echo "$ac_compile" | $SED \
20019 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20020 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20021 -e 's:$: $lt_compiler_flag:'`
20022 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20023 (eval "$lt_compile" 2>conftest.err)
20024 ac_status=$?
20025 cat conftest.err >&5
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 if (exit $ac_status) && test -s "$ac_outfile"; then
20028 # The compiler can only warn and ignore the option if not recognized
20029 # So say no if there are warnings other than the usual output.
20030 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20031 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20032 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20033 lt_cv_prog_compiler_pic_works_CXX=yes
20034 fi
20035 fi
20036 $RM conftest*
20037
20038 fi
20039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20040 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20041
20042 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20043 case $lt_prog_compiler_pic_CXX in
20044 "" | " "*) ;;
20045 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20046 esac
20047 else
20048 lt_prog_compiler_pic_CXX=
20049 lt_prog_compiler_can_build_shared_CXX=no
20050 fi
20051
20052 fi
20053
20054
20055
20056 #
20057 # Check to make sure the static flag actually works.
20058 #
20059 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20061 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20062 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20063 $as_echo_n "(cached) " >&6
20064 else
20065 lt_cv_prog_compiler_static_works_CXX=no
20066 save_LDFLAGS="$LDFLAGS"
20067 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20068 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20069 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20070 # The linker can only warn and ignore the option if not recognized
20071 # So say no if there are warnings
20072 if test -s conftest.err; then
20073 # Append any errors to the config.log.
20074 cat conftest.err 1>&5
20075 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20076 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20077 if diff conftest.exp conftest.er2 >/dev/null; then
20078 lt_cv_prog_compiler_static_works_CXX=yes
20079 fi
20080 else
20081 lt_cv_prog_compiler_static_works_CXX=yes
20082 fi
20083 fi
20084 $RM -r conftest*
20085 LDFLAGS="$save_LDFLAGS"
20086
20087 fi
20088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20089 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20090
20091 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20092 :
20093 else
20094 lt_prog_compiler_static_CXX=
20095 fi
20096
20097
20098
20099
20100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20101 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20102 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20103 $as_echo_n "(cached) " >&6
20104 else
20105 lt_cv_prog_compiler_c_o_CXX=no
20106 $RM -r conftest 2>/dev/null
20107 mkdir conftest
20108 cd conftest
20109 mkdir out
20110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20111
20112 lt_compiler_flag="-o out/conftest2.$ac_objext"
20113 # Insert the option either (1) after the last *FLAGS variable, or
20114 # (2) before a word containing "conftest.", or (3) at the end.
20115 # Note that $ac_compile itself does not contain backslashes and begins
20116 # with a dollar sign (not a hyphen), so the echo should work correctly.
20117 lt_compile=`echo "$ac_compile" | $SED \
20118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20120 -e 's:$: $lt_compiler_flag:'`
20121 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20122 (eval "$lt_compile" 2>out/conftest.err)
20123 ac_status=$?
20124 cat out/conftest.err >&5
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20127 then
20128 # The compiler can only warn and ignore the option if not recognized
20129 # So say no if there are warnings
20130 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20131 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20132 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20133 lt_cv_prog_compiler_c_o_CXX=yes
20134 fi
20135 fi
20136 chmod u+w . 2>&5
20137 $RM conftest*
20138 # SGI C++ compiler will create directory out/ii_files/ for
20139 # template instantiation
20140 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20141 $RM out/* && rmdir out
20142 cd ..
20143 $RM -r conftest
20144 $RM conftest*
20145
20146 fi
20147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20148 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20149
20150
20151
20152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20153 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20154 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20155 $as_echo_n "(cached) " >&6
20156 else
20157 lt_cv_prog_compiler_c_o_CXX=no
20158 $RM -r conftest 2>/dev/null
20159 mkdir conftest
20160 cd conftest
20161 mkdir out
20162 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20163
20164 lt_compiler_flag="-o out/conftest2.$ac_objext"
20165 # Insert the option either (1) after the last *FLAGS variable, or
20166 # (2) before a word containing "conftest.", or (3) at the end.
20167 # Note that $ac_compile itself does not contain backslashes and begins
20168 # with a dollar sign (not a hyphen), so the echo should work correctly.
20169 lt_compile=`echo "$ac_compile" | $SED \
20170 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20171 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20172 -e 's:$: $lt_compiler_flag:'`
20173 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20174 (eval "$lt_compile" 2>out/conftest.err)
20175 ac_status=$?
20176 cat out/conftest.err >&5
20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20179 then
20180 # The compiler can only warn and ignore the option if not recognized
20181 # So say no if there are warnings
20182 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20183 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20184 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20185 lt_cv_prog_compiler_c_o_CXX=yes
20186 fi
20187 fi
20188 chmod u+w . 2>&5
20189 $RM conftest*
20190 # SGI C++ compiler will create directory out/ii_files/ for
20191 # template instantiation
20192 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20193 $RM out/* && rmdir out
20194 cd ..
20195 $RM -r conftest
20196 $RM conftest*
20197
20198 fi
20199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20200 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20201
20202
20203
20204
20205 hard_links="nottested"
20206 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20207 # do not overwrite the value of need_locks provided by the user
20208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20209 $as_echo_n "checking if we can lock with hard links... " >&6; }
20210 hard_links=yes
20211 $RM conftest*
20212 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20213 touch conftest.a
20214 ln conftest.a conftest.b 2>&5 || hard_links=no
20215 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20217 $as_echo "$hard_links" >&6; }
20218 if test "$hard_links" = no; then
20219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20220 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20221 need_locks=warn
20222 fi
20223 else
20224 need_locks=no
20225 fi
20226
20227
20228
20229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20230 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20231
20232 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20233 case $host_os in
20234 aix[4-9]*)
20235 # If we're using GNU nm, then we don't want the "-C" option.
20236 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20237 # Also, AIX nm treats weak defined symbols like other global defined
20238 # symbols, whereas GNU nm marks them as "W".
20239 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20240 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'
20241 else
20242 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'
20243 fi
20244 ;;
20245 pw32*)
20246 export_symbols_cmds_CXX="$ltdll_cmds"
20247 ;;
20248 cygwin* | mingw* | cegcc*)
20249 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'
20250 ;;
20251 *)
20252 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20253 ;;
20254 esac
20255 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20256
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20258 $as_echo "$ld_shlibs_CXX" >&6; }
20259 test "$ld_shlibs_CXX" = no && can_build_shared=no
20260
20261 with_gnu_ld_CXX=$with_gnu_ld
20262
20263
20264
20265
20266
20267
20268 #
20269 # Do we need to explicitly link libc?
20270 #
20271 case "x$archive_cmds_need_lc_CXX" in
20272 x|xyes)
20273 # Assume -lc should be added
20274 archive_cmds_need_lc_CXX=yes
20275
20276 if test "$enable_shared" = yes && test "$GCC" = yes; then
20277 case $archive_cmds_CXX in
20278 *'~'*)
20279 # FIXME: we may have to deal with multi-command sequences.
20280 ;;
20281 '$CC '*)
20282 # Test whether the compiler implicitly links with -lc since on some
20283 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20284 # to ld, don't add -lc before -lgcc.
20285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20286 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20287 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20288 $as_echo_n "(cached) " >&6
20289 else
20290 $RM conftest*
20291 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20292
20293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20294 (eval $ac_compile) 2>&5
20295 ac_status=$?
20296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20297 test $ac_status = 0; } 2>conftest.err; then
20298 soname=conftest
20299 lib=conftest
20300 libobjs=conftest.$ac_objext
20301 deplibs=
20302 wl=$lt_prog_compiler_wl_CXX
20303 pic_flag=$lt_prog_compiler_pic_CXX
20304 compiler_flags=-v
20305 linker_flags=-v
20306 verstring=
20307 output_objdir=.
20308 libname=conftest
20309 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20310 allow_undefined_flag_CXX=
20311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20312 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20313 ac_status=$?
20314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20315 test $ac_status = 0; }
20316 then
20317 lt_cv_archive_cmds_need_lc_CXX=no
20318 else
20319 lt_cv_archive_cmds_need_lc_CXX=yes
20320 fi
20321 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20322 else
20323 cat conftest.err 1>&5
20324 fi
20325 $RM conftest*
20326
20327 fi
20328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20329 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20330 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20331 ;;
20332 esac
20333 fi
20334 ;;
20335 esac
20336
20337
20338
20339
20340
20341
20342
20343
20344
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20401 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20402
20403 library_names_spec=
20404 libname_spec='lib$name'
20405 soname_spec=
20406 shrext_cmds=".so"
20407 postinstall_cmds=
20408 postuninstall_cmds=
20409 finish_cmds=
20410 finish_eval=
20411 shlibpath_var=
20412 shlibpath_overrides_runpath=unknown
20413 version_type=none
20414 dynamic_linker="$host_os ld.so"
20415 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20416 need_lib_prefix=unknown
20417 hardcode_into_libs=no
20418
20419 # when you set need_version to no, make sure it does not cause -set_version
20420 # flags to be left without arguments
20421 need_version=unknown
20422
20423 case $host_os in
20424 aix3*)
20425 version_type=linux
20426 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20427 shlibpath_var=LIBPATH
20428
20429 # AIX 3 has no versioning support, so we append a major version to the name.
20430 soname_spec='${libname}${release}${shared_ext}$major'
20431 ;;
20432
20433 aix[4-9]*)
20434 version_type=linux
20435 need_lib_prefix=no
20436 need_version=no
20437 hardcode_into_libs=yes
20438 if test "$host_cpu" = ia64; then
20439 # AIX 5 supports IA64
20440 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20441 shlibpath_var=LD_LIBRARY_PATH
20442 else
20443 # With GCC up to 2.95.x, collect2 would create an import file
20444 # for dependence libraries. The import file would start with
20445 # the line `#! .'. This would cause the generated library to
20446 # depend on `.', always an invalid library. This was fixed in
20447 # development snapshots of GCC prior to 3.0.
20448 case $host_os in
20449 aix4 | aix4.[01] | aix4.[01].*)
20450 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20451 echo ' yes '
20452 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20453 :
20454 else
20455 can_build_shared=no
20456 fi
20457 ;;
20458 esac
20459 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20460 # soname into executable. Probably we can add versioning support to
20461 # collect2, so additional links can be useful in future.
20462 if test "$aix_use_runtimelinking" = yes; then
20463 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20464 # instead of lib<name>.a to let people know that these are not
20465 # typical AIX shared libraries.
20466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20467 else
20468 # We preserve .a as extension for shared libraries through AIX4.2
20469 # and later when we are not doing run time linking.
20470 library_names_spec='${libname}${release}.a $libname.a'
20471 soname_spec='${libname}${release}${shared_ext}$major'
20472 fi
20473 shlibpath_var=LIBPATH
20474 fi
20475 ;;
20476
20477 amigaos*)
20478 case $host_cpu in
20479 powerpc)
20480 # Since July 2007 AmigaOS4 officially supports .so libraries.
20481 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20483 ;;
20484 m68k)
20485 library_names_spec='$libname.ixlibrary $libname.a'
20486 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20487 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'
20488 ;;
20489 esac
20490 ;;
20491
20492 beos*)
20493 library_names_spec='${libname}${shared_ext}'
20494 dynamic_linker="$host_os ld.so"
20495 shlibpath_var=LIBRARY_PATH
20496 ;;
20497
20498 bsdi[45]*)
20499 version_type=linux
20500 need_version=no
20501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20502 soname_spec='${libname}${release}${shared_ext}$major'
20503 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20504 shlibpath_var=LD_LIBRARY_PATH
20505 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20506 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20507 # the default ld.so.conf also contains /usr/contrib/lib and
20508 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20509 # libtool to hard-code these into programs
20510 ;;
20511
20512 cygwin* | mingw* | pw32* | cegcc*)
20513 version_type=windows
20514 shrext_cmds=".dll"
20515 need_version=no
20516 need_lib_prefix=no
20517
20518 case $GCC,$host_os in
20519 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20520 library_names_spec='$libname.dll.a'
20521 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20522 postinstall_cmds='base_file=`basename \${file}`~
20523 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20524 dldir=$destdir/`dirname \$dlpath`~
20525 test -d \$dldir || mkdir -p \$dldir~
20526 $install_prog $dir/$dlname \$dldir/$dlname~
20527 chmod a+x \$dldir/$dlname~
20528 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20529 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20530 fi'
20531 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20532 dlpath=$dir/\$dldll~
20533 $RM \$dlpath'
20534 shlibpath_overrides_runpath=yes
20535
20536 case $host_os in
20537 cygwin*)
20538 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20539 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20540
20541 ;;
20542 mingw* | cegcc*)
20543 # MinGW DLLs use traditional 'lib' prefix
20544 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20545 ;;
20546 pw32*)
20547 # pw32 DLLs use 'pw' prefix rather than 'lib'
20548 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20549 ;;
20550 esac
20551 ;;
20552
20553 *)
20554 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20555 ;;
20556 esac
20557 dynamic_linker='Win32 ld.exe'
20558 # FIXME: first we should search . and the directory the executable is in
20559 shlibpath_var=PATH
20560 ;;
20561
20562 darwin* | rhapsody*)
20563 dynamic_linker="$host_os dyld"
20564 version_type=darwin
20565 need_lib_prefix=no
20566 need_version=no
20567 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20568 soname_spec='${libname}${release}${major}$shared_ext'
20569 shlibpath_overrides_runpath=yes
20570 shlibpath_var=DYLD_LIBRARY_PATH
20571 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20572
20573 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20574 ;;
20575
20576 dgux*)
20577 version_type=linux
20578 need_lib_prefix=no
20579 need_version=no
20580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20581 soname_spec='${libname}${release}${shared_ext}$major'
20582 shlibpath_var=LD_LIBRARY_PATH
20583 ;;
20584
20585 freebsd* | dragonfly*)
20586 # DragonFly does not have aout. When/if they implement a new
20587 # versioning mechanism, adjust this.
20588 if test -x /usr/bin/objformat; then
20589 objformat=`/usr/bin/objformat`
20590 else
20591 case $host_os in
20592 freebsd[23].*) objformat=aout ;;
20593 *) objformat=elf ;;
20594 esac
20595 fi
20596 version_type=freebsd-$objformat
20597 case $version_type in
20598 freebsd-elf*)
20599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20600 need_version=no
20601 need_lib_prefix=no
20602 ;;
20603 freebsd-*)
20604 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20605 need_version=yes
20606 ;;
20607 esac
20608 shlibpath_var=LD_LIBRARY_PATH
20609 case $host_os in
20610 freebsd2.*)
20611 shlibpath_overrides_runpath=yes
20612 ;;
20613 freebsd3.[01]* | freebsdelf3.[01]*)
20614 shlibpath_overrides_runpath=yes
20615 hardcode_into_libs=yes
20616 ;;
20617 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20618 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20619 shlibpath_overrides_runpath=no
20620 hardcode_into_libs=yes
20621 ;;
20622 *) # from 4.6 on, and DragonFly
20623 shlibpath_overrides_runpath=yes
20624 hardcode_into_libs=yes
20625 ;;
20626 esac
20627 ;;
20628
20629 gnu*)
20630 version_type=linux
20631 need_lib_prefix=no
20632 need_version=no
20633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20634 soname_spec='${libname}${release}${shared_ext}$major'
20635 shlibpath_var=LD_LIBRARY_PATH
20636 hardcode_into_libs=yes
20637 ;;
20638
20639 haiku*)
20640 version_type=linux
20641 need_lib_prefix=no
20642 need_version=no
20643 dynamic_linker="$host_os runtime_loader"
20644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20645 soname_spec='${libname}${release}${shared_ext}$major'
20646 shlibpath_var=LIBRARY_PATH
20647 shlibpath_overrides_runpath=yes
20648 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20649 hardcode_into_libs=yes
20650 ;;
20651
20652 hpux9* | hpux10* | hpux11*)
20653 # Give a soname corresponding to the major version so that dld.sl refuses to
20654 # link against other versions.
20655 version_type=sunos
20656 need_lib_prefix=no
20657 need_version=no
20658 case $host_cpu in
20659 ia64*)
20660 shrext_cmds='.so'
20661 hardcode_into_libs=yes
20662 dynamic_linker="$host_os dld.so"
20663 shlibpath_var=LD_LIBRARY_PATH
20664 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20666 soname_spec='${libname}${release}${shared_ext}$major'
20667 if test "X$HPUX_IA64_MODE" = X32; then
20668 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20669 else
20670 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20671 fi
20672 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20673 ;;
20674 hppa*64*)
20675 shrext_cmds='.sl'
20676 hardcode_into_libs=yes
20677 dynamic_linker="$host_os dld.sl"
20678 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20679 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20681 soname_spec='${libname}${release}${shared_ext}$major'
20682 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20683 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20684 ;;
20685 *)
20686 shrext_cmds='.sl'
20687 dynamic_linker="$host_os dld.sl"
20688 shlibpath_var=SHLIB_PATH
20689 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20691 soname_spec='${libname}${release}${shared_ext}$major'
20692 ;;
20693 esac
20694 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20695 postinstall_cmds='chmod 555 $lib'
20696 # or fails outright, so override atomically:
20697 install_override_mode=555
20698 ;;
20699
20700 interix[3-9]*)
20701 version_type=linux
20702 need_lib_prefix=no
20703 need_version=no
20704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20705 soname_spec='${libname}${release}${shared_ext}$major'
20706 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20707 shlibpath_var=LD_LIBRARY_PATH
20708 shlibpath_overrides_runpath=no
20709 hardcode_into_libs=yes
20710 ;;
20711
20712 irix5* | irix6* | nonstopux*)
20713 case $host_os in
20714 nonstopux*) version_type=nonstopux ;;
20715 *)
20716 if test "$lt_cv_prog_gnu_ld" = yes; then
20717 version_type=linux
20718 else
20719 version_type=irix
20720 fi ;;
20721 esac
20722 need_lib_prefix=no
20723 need_version=no
20724 soname_spec='${libname}${release}${shared_ext}$major'
20725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20726 case $host_os in
20727 irix5* | nonstopux*)
20728 libsuff= shlibsuff=
20729 ;;
20730 *)
20731 case $LD in # libtool.m4 will add one of these switches to LD
20732 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20733 libsuff= shlibsuff= libmagic=32-bit;;
20734 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20735 libsuff=32 shlibsuff=N32 libmagic=N32;;
20736 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20737 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20738 *) libsuff= shlibsuff= libmagic=never-match;;
20739 esac
20740 ;;
20741 esac
20742 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20743 shlibpath_overrides_runpath=no
20744 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20745 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20746 hardcode_into_libs=yes
20747 ;;
20748
20749 # No shared lib support for Linux oldld, aout, or coff.
20750 linux*oldld* | linux*aout* | linux*coff*)
20751 dynamic_linker=no
20752 ;;
20753
20754 # This must be Linux ELF.
20755 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20756 version_type=linux
20757 need_lib_prefix=no
20758 need_version=no
20759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20760 soname_spec='${libname}${release}${shared_ext}$major'
20761 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20762 shlibpath_var=LD_LIBRARY_PATH
20763 shlibpath_overrides_runpath=no
20764
20765 # Some binutils ld are patched to set DT_RUNPATH
20766 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20767 $as_echo_n "(cached) " >&6
20768 else
20769 lt_cv_shlibpath_overrides_runpath=no
20770 save_LDFLAGS=$LDFLAGS
20771 save_libdir=$libdir
20772 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20773 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20775 /* end confdefs.h. */
20776
20777 int
20778 main ()
20779 {
20780
20781 ;
20782 return 0;
20783 }
20784 _ACEOF
20785 if ac_fn_cxx_try_link "$LINENO"; then :
20786 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20787 lt_cv_shlibpath_overrides_runpath=yes
20788 fi
20789 fi
20790 rm -f core conftest.err conftest.$ac_objext \
20791 conftest$ac_exeext conftest.$ac_ext
20792 LDFLAGS=$save_LDFLAGS
20793 libdir=$save_libdir
20794
20795 fi
20796
20797 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20798
20799 # This implies no fast_install, which is unacceptable.
20800 # Some rework will be needed to allow for fast_install
20801 # before this can be enabled.
20802 hardcode_into_libs=yes
20803
20804 # Append ld.so.conf contents to the search path
20805 if test -f /etc/ld.so.conf; then
20806 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' ' '`
20807 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20808 fi
20809
20810 # We used to test for /lib/ld.so.1 and disable shared libraries on
20811 # powerpc, because MkLinux only supported shared libraries with the
20812 # GNU dynamic linker. Since this was broken with cross compilers,
20813 # most powerpc-linux boxes support dynamic linking these days and
20814 # people can always --disable-shared, the test was removed, and we
20815 # assume the GNU/Linux dynamic linker is in use.
20816 dynamic_linker='GNU/Linux ld.so'
20817 ;;
20818
20819 netbsd*)
20820 version_type=sunos
20821 need_lib_prefix=no
20822 need_version=no
20823 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20825 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20826 dynamic_linker='NetBSD (a.out) ld.so'
20827 else
20828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20829 soname_spec='${libname}${release}${shared_ext}$major'
20830 dynamic_linker='NetBSD ld.elf_so'
20831 fi
20832 shlibpath_var=LD_LIBRARY_PATH
20833 shlibpath_overrides_runpath=yes
20834 hardcode_into_libs=yes
20835 ;;
20836
20837 newsos6)
20838 version_type=linux
20839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20840 shlibpath_var=LD_LIBRARY_PATH
20841 shlibpath_overrides_runpath=yes
20842 ;;
20843
20844 *nto* | *qnx*)
20845 version_type=qnx
20846 need_lib_prefix=no
20847 need_version=no
20848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20849 soname_spec='${libname}${release}${shared_ext}$major'
20850 shlibpath_var=LD_LIBRARY_PATH
20851 shlibpath_overrides_runpath=no
20852 hardcode_into_libs=yes
20853 dynamic_linker='ldqnx.so'
20854 ;;
20855
20856 openbsd*)
20857 version_type=sunos
20858 sys_lib_dlsearch_path_spec="/usr/lib"
20859 need_lib_prefix=no
20860 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20861 case $host_os in
20862 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20863 *) need_version=no ;;
20864 esac
20865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20867 shlibpath_var=LD_LIBRARY_PATH
20868 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20869 case $host_os in
20870 openbsd2.[89] | openbsd2.[89].*)
20871 shlibpath_overrides_runpath=no
20872 ;;
20873 *)
20874 shlibpath_overrides_runpath=yes
20875 ;;
20876 esac
20877 else
20878 shlibpath_overrides_runpath=yes
20879 fi
20880 ;;
20881
20882 os2*)
20883 libname_spec='$name'
20884 shrext_cmds=".dll"
20885 need_lib_prefix=no
20886 library_names_spec='$libname${shared_ext} $libname.a'
20887 dynamic_linker='OS/2 ld.exe'
20888 shlibpath_var=LIBPATH
20889 ;;
20890
20891 osf3* | osf4* | osf5*)
20892 version_type=osf
20893 need_lib_prefix=no
20894 need_version=no
20895 soname_spec='${libname}${release}${shared_ext}$major'
20896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20897 shlibpath_var=LD_LIBRARY_PATH
20898 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20899 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20900 ;;
20901
20902 rdos*)
20903 dynamic_linker=no
20904 ;;
20905
20906 solaris*)
20907 version_type=linux
20908 need_lib_prefix=no
20909 need_version=no
20910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20911 soname_spec='${libname}${release}${shared_ext}$major'
20912 shlibpath_var=LD_LIBRARY_PATH
20913 shlibpath_overrides_runpath=yes
20914 hardcode_into_libs=yes
20915 # ldd complains unless libraries are executable
20916 postinstall_cmds='chmod +x $lib'
20917 ;;
20918
20919 sunos4*)
20920 version_type=sunos
20921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20922 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20923 shlibpath_var=LD_LIBRARY_PATH
20924 shlibpath_overrides_runpath=yes
20925 if test "$with_gnu_ld" = yes; then
20926 need_lib_prefix=no
20927 fi
20928 need_version=yes
20929 ;;
20930
20931 sysv4 | sysv4.3*)
20932 version_type=linux
20933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20934 soname_spec='${libname}${release}${shared_ext}$major'
20935 shlibpath_var=LD_LIBRARY_PATH
20936 case $host_vendor in
20937 sni)
20938 shlibpath_overrides_runpath=no
20939 need_lib_prefix=no
20940 runpath_var=LD_RUN_PATH
20941 ;;
20942 siemens)
20943 need_lib_prefix=no
20944 ;;
20945 motorola)
20946 need_lib_prefix=no
20947 need_version=no
20948 shlibpath_overrides_runpath=no
20949 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20950 ;;
20951 esac
20952 ;;
20953
20954 sysv4*MP*)
20955 if test -d /usr/nec ;then
20956 version_type=linux
20957 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20958 soname_spec='$libname${shared_ext}.$major'
20959 shlibpath_var=LD_LIBRARY_PATH
20960 fi
20961 ;;
20962
20963 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20964 version_type=freebsd-elf
20965 need_lib_prefix=no
20966 need_version=no
20967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20968 soname_spec='${libname}${release}${shared_ext}$major'
20969 shlibpath_var=LD_LIBRARY_PATH
20970 shlibpath_overrides_runpath=yes
20971 hardcode_into_libs=yes
20972 if test "$with_gnu_ld" = yes; then
20973 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20974 else
20975 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20976 case $host_os in
20977 sco3.2v5*)
20978 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20979 ;;
20980 esac
20981 fi
20982 sys_lib_dlsearch_path_spec='/usr/lib'
20983 ;;
20984
20985 tpf*)
20986 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20987 version_type=linux
20988 need_lib_prefix=no
20989 need_version=no
20990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20991 shlibpath_var=LD_LIBRARY_PATH
20992 shlibpath_overrides_runpath=no
20993 hardcode_into_libs=yes
20994 ;;
20995
20996 uts4*)
20997 version_type=linux
20998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20999 soname_spec='${libname}${release}${shared_ext}$major'
21000 shlibpath_var=LD_LIBRARY_PATH
21001 ;;
21002
21003 *)
21004 dynamic_linker=no
21005 ;;
21006 esac
21007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21008 $as_echo "$dynamic_linker" >&6; }
21009 test "$dynamic_linker" = no && can_build_shared=no
21010
21011 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21012 if test "$GCC" = yes; then
21013 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21014 fi
21015
21016 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21017 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21018 fi
21019 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21020 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21021 fi
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21061 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21062 hardcode_action_CXX=
21063 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21064 test -n "$runpath_var_CXX" ||
21065 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21066
21067 # We can hardcode non-existent directories.
21068 if test "$hardcode_direct_CXX" != no &&
21069 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21070 # have to relink, otherwise we might link with an installed library
21071 # when we should be linking with a yet-to-be-installed one
21072 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21073 test "$hardcode_minus_L_CXX" != no; then
21074 # Linking always hardcodes the temporary library directory.
21075 hardcode_action_CXX=relink
21076 else
21077 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21078 hardcode_action_CXX=immediate
21079 fi
21080 else
21081 # We cannot hardcode anything, or else we can only hardcode existing
21082 # directories.
21083 hardcode_action_CXX=unsupported
21084 fi
21085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21086 $as_echo "$hardcode_action_CXX" >&6; }
21087
21088 if test "$hardcode_action_CXX" = relink ||
21089 test "$inherit_rpath_CXX" = yes; then
21090 # Fast installation is not supported
21091 enable_fast_install=no
21092 elif test "$shlibpath_overrides_runpath" = yes ||
21093 test "$enable_shared" = no; then
21094 # Fast installation is not necessary
21095 enable_fast_install=needless
21096 fi
21097
21098
21099
21100
21101
21102
21103
21104 fi # test -n "$compiler"
21105
21106 CC=$lt_save_CC
21107 LDCXX=$LD
21108 LD=$lt_save_LD
21109 GCC=$lt_save_GCC
21110 with_gnu_ld=$lt_save_with_gnu_ld
21111 lt_cv_path_LDCXX=$lt_cv_path_LD
21112 lt_cv_path_LD=$lt_save_path_LD
21113 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21114 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21115 fi # test "$_lt_caught_CXX_error" != yes
21116
21117 ac_ext=c
21118 ac_cpp='$CPP $CPPFLAGS'
21119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138 # Only expand once:
21139
21140
21141
21142
21143
21144 # Identify the assembler which will work hand-in-glove with the newly
21145 # built GCC, so that we can examine its features. This is the assembler
21146 # which will be driven by the driver program.
21147 #
21148 # If build != host, and we aren't building gas in-tree, we identify a
21149 # build->target assembler and hope that it will have the same features
21150 # as the host->target assembler we'll be using.
21151 gcc_cv_gas_major_version=
21152 gcc_cv_gas_minor_version=
21153 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21154
21155 if test "${gcc_cv_as+set}" = set; then :
21156
21157 else
21158
21159 if test -x "$DEFAULT_ASSEMBLER"; then
21160 gcc_cv_as="$DEFAULT_ASSEMBLER"
21161 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21162 && test -f ../gas/Makefile \
21163 && test x$build = x$host; then
21164 gcc_cv_as=../gas/as-new$build_exeext
21165 elif test -x as$build_exeext; then
21166 # Build using assembler in the current directory.
21167 gcc_cv_as=./as$build_exeext
21168 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21169 gcc_cv_as="$AS_FOR_TARGET"
21170 else
21171 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21172 set dummy $AS_FOR_TARGET; ac_word=$2
21173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21174 $as_echo_n "checking for $ac_word... " >&6; }
21175 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21176 $as_echo_n "(cached) " >&6
21177 else
21178 case $gcc_cv_as in
21179 [\\/]* | ?:[\\/]*)
21180 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21181 ;;
21182 *)
21183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21184 for as_dir in $PATH
21185 do
21186 IFS=$as_save_IFS
21187 test -z "$as_dir" && as_dir=.
21188 for ac_exec_ext in '' $ac_executable_extensions; do
21189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21190 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21192 break 2
21193 fi
21194 done
21195 done
21196 IFS=$as_save_IFS
21197
21198 ;;
21199 esac
21200 fi
21201 gcc_cv_as=$ac_cv_path_gcc_cv_as
21202 if test -n "$gcc_cv_as"; then
21203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21204 $as_echo "$gcc_cv_as" >&6; }
21205 else
21206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21207 $as_echo "no" >&6; }
21208 fi
21209
21210
21211 fi
21212 fi
21213
21214 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21215
21216 case "$ORIGINAL_AS_FOR_TARGET" in
21217 ./as | ./as$build_exeext) ;;
21218 *) ac_config_files="$ac_config_files as:exec-tool.in"
21219 ;;
21220 esac
21221
21222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21223 $as_echo_n "checking what assembler to use... " >&6; }
21224 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21225 # Single tree build which includes gas. We want to prefer it
21226 # over whatever linker top-level may have detected, since
21227 # we'll use what we're building after installation anyway.
21228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21229 $as_echo "newly built gas" >&6; }
21230 in_tree_gas=yes
21231 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21232 for f in $gcc_cv_as_bfd_srcdir/configure \
21233 $gcc_cv_as_gas_srcdir/configure \
21234 $gcc_cv_as_gas_srcdir/configure.in \
21235 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21236 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21237 if test x$gcc_cv_gas_version != x; then
21238 break
21239 fi
21240 done
21241 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21242 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21243 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21244 case $gcc_cv_gas_patch_version in
21245 "") gcc_cv_gas_patch_version="0" ;;
21246 esac
21247 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21248 + $gcc_cv_gas_minor_version \) \* 1000 \
21249 + $gcc_cv_gas_patch_version`
21250
21251 in_tree_gas_is_elf=no
21252 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21253 || (grep 'obj_format = multi' ../gas/Makefile \
21254 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21255 then
21256 in_tree_gas_is_elf=yes
21257 fi
21258 else
21259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21260 $as_echo "$gcc_cv_as" >&6; }
21261 in_tree_gas=no
21262 fi
21263
21264 # Identify the linker which will work hand-in-glove with the newly
21265 # built GCC, so that we can examine its features. This is the linker
21266 # which will be driven by the driver program.
21267 #
21268 # If build != host, and we aren't building gas in-tree, we identify a
21269 # build->target linker and hope that it will have the same features
21270 # as the host->target linker we'll be using.
21271 gcc_cv_gld_major_version=
21272 gcc_cv_gld_minor_version=
21273 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21274 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21275
21276 if test "${gcc_cv_ld+set}" = set; then :
21277
21278 else
21279
21280 if test -x "$DEFAULT_LINKER"; then
21281 gcc_cv_ld="$DEFAULT_LINKER"
21282 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21283 && test -f ../ld/Makefile \
21284 && test x$build = x$host; then
21285 gcc_cv_ld=../ld/ld-new$build_exeext
21286 elif test -x collect-ld$build_exeext; then
21287 # Build using linker in the current directory.
21288 gcc_cv_ld=./collect-ld$build_exeext
21289 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21290 gcc_cv_ld="$LD_FOR_TARGET"
21291 else
21292 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21293 set dummy $LD_FOR_TARGET; ac_word=$2
21294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21295 $as_echo_n "checking for $ac_word... " >&6; }
21296 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21297 $as_echo_n "(cached) " >&6
21298 else
21299 case $gcc_cv_ld in
21300 [\\/]* | ?:[\\/]*)
21301 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21302 ;;
21303 *)
21304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21305 for as_dir in $PATH
21306 do
21307 IFS=$as_save_IFS
21308 test -z "$as_dir" && as_dir=.
21309 for ac_exec_ext in '' $ac_executable_extensions; do
21310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21311 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21313 break 2
21314 fi
21315 done
21316 done
21317 IFS=$as_save_IFS
21318
21319 ;;
21320 esac
21321 fi
21322 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21323 if test -n "$gcc_cv_ld"; then
21324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21325 $as_echo "$gcc_cv_ld" >&6; }
21326 else
21327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21328 $as_echo "no" >&6; }
21329 fi
21330
21331
21332 fi
21333 fi
21334
21335 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21336 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21337
21338 # Check whether --with-plugin-ld was given.
21339 if test "${with_plugin_ld+set}" = set; then :
21340 withval=$with_plugin_ld; if test x"$withval" != x; then
21341 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21342 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21343 fi
21344 fi
21345
21346
21347
21348 cat >>confdefs.h <<_ACEOF
21349 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21350 _ACEOF
21351
21352
21353 # Check to see if we are using gold instead of ld
21354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21355 $as_echo_n "checking whether we are using gold... " >&6; }
21356 ld_is_gold=no
21357 if test x$gcc_cv_ld != x; then
21358 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21359 | grep "GNU gold" > /dev/null; then
21360 ld_is_gold=yes
21361 fi
21362 fi
21363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21364 $as_echo "$ld_is_gold" >&6; }
21365
21366 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21367
21368 case "$ORIGINAL_LD_FOR_TARGET" in
21369 ./collect-ld | ./collect-ld$build_exeext) ;;
21370 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21371 ;;
21372 esac
21373
21374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21375 $as_echo_n "checking what linker to use... " >&6; }
21376 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21377 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21378 # Single tree build which includes ld. We want to prefer it
21379 # over whatever linker top-level may have detected, since
21380 # we'll use what we're building after installation anyway.
21381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21382 $as_echo "newly built ld" >&6; }
21383 in_tree_ld=yes
21384 in_tree_ld_is_elf=no
21385 if (grep 'EMUL = .*elf' ../ld/Makefile \
21386 || grep 'EMUL = .*linux' ../ld/Makefile \
21387 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21388 in_tree_ld_is_elf=yes
21389 elif test "$ld_is_gold" = yes; then
21390 in_tree_ld_is_elf=yes
21391 fi
21392 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
21393 do
21394 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21395 if test x$gcc_cv_gld_version != x; then
21396 break
21397 fi
21398 done
21399 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21400 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21401 else
21402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21403 $as_echo "$gcc_cv_ld" >&6; }
21404 in_tree_ld=no
21405 fi
21406
21407 # Figure out what nm we will be using.
21408 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21409 if test "${gcc_cv_nm+set}" = set; then :
21410
21411 else
21412
21413 if test -f $gcc_cv_binutils_srcdir/configure.in \
21414 && test -f ../binutils/Makefile \
21415 && test x$build = x$host; then
21416 gcc_cv_nm=../binutils/nm-new$build_exeext
21417 elif test -x nm$build_exeext; then
21418 gcc_cv_nm=./nm$build_exeext
21419 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21420 gcc_cv_nm="$NM_FOR_TARGET"
21421 else
21422 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21423 set dummy $NM_FOR_TARGET; ac_word=$2
21424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21425 $as_echo_n "checking for $ac_word... " >&6; }
21426 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21427 $as_echo_n "(cached) " >&6
21428 else
21429 case $gcc_cv_nm in
21430 [\\/]* | ?:[\\/]*)
21431 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21432 ;;
21433 *)
21434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21435 for as_dir in $PATH
21436 do
21437 IFS=$as_save_IFS
21438 test -z "$as_dir" && as_dir=.
21439 for ac_exec_ext in '' $ac_executable_extensions; do
21440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21441 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21443 break 2
21444 fi
21445 done
21446 done
21447 IFS=$as_save_IFS
21448
21449 ;;
21450 esac
21451 fi
21452 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21453 if test -n "$gcc_cv_nm"; then
21454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21455 $as_echo "$gcc_cv_nm" >&6; }
21456 else
21457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21458 $as_echo "no" >&6; }
21459 fi
21460
21461
21462 fi
21463 fi
21464
21465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21466 $as_echo_n "checking what nm to use... " >&6; }
21467 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21468 # Single tree build which includes binutils.
21469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21470 $as_echo "newly built nm" >&6; }
21471 in_tree_nm=yes
21472 else
21473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21474 $as_echo "$gcc_cv_nm" >&6; }
21475 in_tree_nm=no
21476 fi
21477
21478 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21479
21480 case "$ORIGINAL_NM_FOR_TARGET" in
21481 ./nm | ./nm$build_exeext) ;;
21482 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21483 ;;
21484 esac
21485
21486
21487 # Figure out what objdump we will be using.
21488 if test "${gcc_cv_objdump+set}" = set; then :
21489
21490 else
21491
21492 if test -f $gcc_cv_binutils_srcdir/configure.in \
21493 && test -f ../binutils/Makefile \
21494 && test x$build = x$host; then
21495 # Single tree build which includes binutils.
21496 gcc_cv_objdump=../binutils/objdump$build_exeext
21497 elif test -x objdump$build_exeext; then
21498 gcc_cv_objdump=./objdump$build_exeext
21499 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21500 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21501 else
21502 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21503 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21505 $as_echo_n "checking for $ac_word... " >&6; }
21506 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21507 $as_echo_n "(cached) " >&6
21508 else
21509 case $gcc_cv_objdump in
21510 [\\/]* | ?:[\\/]*)
21511 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21512 ;;
21513 *)
21514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21515 for as_dir in $PATH
21516 do
21517 IFS=$as_save_IFS
21518 test -z "$as_dir" && as_dir=.
21519 for ac_exec_ext in '' $ac_executable_extensions; do
21520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21521 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21523 break 2
21524 fi
21525 done
21526 done
21527 IFS=$as_save_IFS
21528
21529 ;;
21530 esac
21531 fi
21532 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21533 if test -n "$gcc_cv_objdump"; then
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21535 $as_echo "$gcc_cv_objdump" >&6; }
21536 else
21537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21538 $as_echo "no" >&6; }
21539 fi
21540
21541
21542 fi
21543 fi
21544
21545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21546 $as_echo_n "checking what objdump to use... " >&6; }
21547 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21548 # Single tree build which includes binutils.
21549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21550 $as_echo "newly built objdump" >&6; }
21551 elif test x$gcc_cv_objdump = x; then
21552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21553 $as_echo "not found" >&6; }
21554 else
21555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21556 $as_echo "$gcc_cv_objdump" >&6; }
21557 fi
21558
21559 # Figure out what readelf we will be using.
21560 if test "${gcc_cv_readelf+set}" = set; then :
21561
21562 else
21563
21564 if test -f $gcc_cv_binutils_srcdir/configure.in \
21565 && test -f ../binutils/Makefile \
21566 && test x$build = x$host; then
21567 # Single tree build which includes binutils.
21568 gcc_cv_readelf=../binutils/readelf$build_exeext
21569 elif test -x readelf$build_exeext; then
21570 gcc_cv_readelf=./readelf$build_exeext
21571 else
21572 # Extract the first word of "readelf", so it can be a program name with args.
21573 set dummy readelf; ac_word=$2
21574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21575 $as_echo_n "checking for $ac_word... " >&6; }
21576 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21577 $as_echo_n "(cached) " >&6
21578 else
21579 case $gcc_cv_readelf in
21580 [\\/]* | ?:[\\/]*)
21581 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21582 ;;
21583 *)
21584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21585 for as_dir in $PATH
21586 do
21587 IFS=$as_save_IFS
21588 test -z "$as_dir" && as_dir=.
21589 for ac_exec_ext in '' $ac_executable_extensions; do
21590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21591 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21593 break 2
21594 fi
21595 done
21596 done
21597 IFS=$as_save_IFS
21598
21599 ;;
21600 esac
21601 fi
21602 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21603 if test -n "$gcc_cv_readelf"; then
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21605 $as_echo "$gcc_cv_readelf" >&6; }
21606 else
21607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21608 $as_echo "no" >&6; }
21609 fi
21610
21611
21612 fi
21613 fi
21614
21615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21616 $as_echo_n "checking what readelf to use... " >&6; }
21617 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21618 # Single tree build which includes binutils.
21619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21620 $as_echo "newly built readelf" >&6; }
21621 elif test x$gcc_cv_readelf = x; then
21622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21623 $as_echo "not found" >&6; }
21624 else
21625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21626 $as_echo "$gcc_cv_readelf" >&6; }
21627 fi
21628
21629 # Figure out what assembler alignment features are present.
21630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21631 $as_echo_n "checking assembler flags... " >&6; }
21632 if test "${gcc_cv_as_flags+set}" = set; then :
21633 $as_echo_n "(cached) " >&6
21634 else
21635 case "$target" in
21636 i[34567]86-*-linux*)
21637 gcc_cv_as_flags="--32"
21638 ;;
21639 powerpc*-*-darwin*)
21640 gcc_cv_as_flags="-arch ppc"
21641 ;;
21642 *)
21643 gcc_cv_as_flags=" "
21644 ;;
21645 esac
21646 fi
21647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21648 $as_echo "$gcc_cv_as_flags" >&6; }
21649
21650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21651 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21652 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21653 $as_echo_n "(cached) " >&6
21654 else
21655 gcc_cv_as_balign_and_p2align=no
21656 if test $in_tree_gas = yes; then
21657 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21658 then gcc_cv_as_balign_and_p2align=yes
21659 fi
21660 elif test x$gcc_cv_as != x; then
21661 $as_echo '.balign 4
21662 .p2align 2' > conftest.s
21663 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21664 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21665 (eval $ac_try) 2>&5
21666 ac_status=$?
21667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21668 test $ac_status = 0; }; }
21669 then
21670 gcc_cv_as_balign_and_p2align=yes
21671 else
21672 echo "configure: failed program was" >&5
21673 cat conftest.s >&5
21674 fi
21675 rm -f conftest.o conftest.s
21676 fi
21677 fi
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21679 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21680 if test $gcc_cv_as_balign_and_p2align = yes; then
21681
21682 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21683
21684 fi
21685
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21687 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21688 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21689 $as_echo_n "(cached) " >&6
21690 else
21691 gcc_cv_as_max_skip_p2align=no
21692 if test $in_tree_gas = yes; then
21693 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21694 then gcc_cv_as_max_skip_p2align=yes
21695 fi
21696 elif test x$gcc_cv_as != x; then
21697 $as_echo '.p2align 4,,7' > conftest.s
21698 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21699 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21700 (eval $ac_try) 2>&5
21701 ac_status=$?
21702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21703 test $ac_status = 0; }; }
21704 then
21705 gcc_cv_as_max_skip_p2align=yes
21706 else
21707 echo "configure: failed program was" >&5
21708 cat conftest.s >&5
21709 fi
21710 rm -f conftest.o conftest.s
21711 fi
21712 fi
21713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21714 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21715 if test $gcc_cv_as_max_skip_p2align = yes; then
21716
21717 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21718
21719 fi
21720
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21722 $as_echo_n "checking assembler for .literal16... " >&6; }
21723 if test "${gcc_cv_as_literal16+set}" = set; then :
21724 $as_echo_n "(cached) " >&6
21725 else
21726 gcc_cv_as_literal16=no
21727 if test $in_tree_gas = yes; then
21728 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21729 then gcc_cv_as_literal16=yes
21730 fi
21731 elif test x$gcc_cv_as != x; then
21732 $as_echo '.literal16' > conftest.s
21733 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21735 (eval $ac_try) 2>&5
21736 ac_status=$?
21737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21738 test $ac_status = 0; }; }
21739 then
21740 gcc_cv_as_literal16=yes
21741 else
21742 echo "configure: failed program was" >&5
21743 cat conftest.s >&5
21744 fi
21745 rm -f conftest.o conftest.s
21746 fi
21747 fi
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21749 $as_echo "$gcc_cv_as_literal16" >&6; }
21750 if test $gcc_cv_as_literal16 = yes; then
21751
21752 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21753
21754 fi
21755
21756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21757 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21758 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21759 $as_echo_n "(cached) " >&6
21760 else
21761 gcc_cv_as_subsection_m1=no
21762 if test $in_tree_gas = yes; then
21763 if test $in_tree_gas_is_elf = yes \
21764 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21765 then gcc_cv_as_subsection_m1=yes
21766 fi
21767 elif test x$gcc_cv_as != x; then
21768 $as_echo 'conftest_label1: .word 0
21769 .subsection -1
21770 conftest_label2: .word 0
21771 .previous' > conftest.s
21772 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21774 (eval $ac_try) 2>&5
21775 ac_status=$?
21776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21777 test $ac_status = 0; }; }
21778 then
21779 if test x$gcc_cv_nm != x; then
21780 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21781 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21782 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21783 then :
21784 else gcc_cv_as_subsection_m1=yes
21785 fi
21786 rm -f conftest.nm1 conftest.nm2
21787 fi
21788 else
21789 echo "configure: failed program was" >&5
21790 cat conftest.s >&5
21791 fi
21792 rm -f conftest.o conftest.s
21793 fi
21794 fi
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21796 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21797 if test $gcc_cv_as_subsection_m1 = yes; then
21798
21799 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21800
21801 fi
21802
21803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21804 $as_echo_n "checking assembler for .weak... " >&6; }
21805 if test "${gcc_cv_as_weak+set}" = set; then :
21806 $as_echo_n "(cached) " >&6
21807 else
21808 gcc_cv_as_weak=no
21809 if test $in_tree_gas = yes; then
21810 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21811 then gcc_cv_as_weak=yes
21812 fi
21813 elif test x$gcc_cv_as != x; then
21814 $as_echo ' .weak foobar' > conftest.s
21815 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21817 (eval $ac_try) 2>&5
21818 ac_status=$?
21819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21820 test $ac_status = 0; }; }
21821 then
21822 gcc_cv_as_weak=yes
21823 else
21824 echo "configure: failed program was" >&5
21825 cat conftest.s >&5
21826 fi
21827 rm -f conftest.o conftest.s
21828 fi
21829 fi
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21831 $as_echo "$gcc_cv_as_weak" >&6; }
21832 if test $gcc_cv_as_weak = yes; then
21833
21834 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21835
21836 fi
21837
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21839 $as_echo_n "checking assembler for .weakref... " >&6; }
21840 if test "${gcc_cv_as_weakref+set}" = set; then :
21841 $as_echo_n "(cached) " >&6
21842 else
21843 gcc_cv_as_weakref=no
21844 if test $in_tree_gas = yes; then
21845 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21846 then gcc_cv_as_weakref=yes
21847 fi
21848 elif test x$gcc_cv_as != x; then
21849 $as_echo ' .weakref foobar, barfnot' > conftest.s
21850 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21852 (eval $ac_try) 2>&5
21853 ac_status=$?
21854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21855 test $ac_status = 0; }; }
21856 then
21857 gcc_cv_as_weakref=yes
21858 else
21859 echo "configure: failed program was" >&5
21860 cat conftest.s >&5
21861 fi
21862 rm -f conftest.o conftest.s
21863 fi
21864 fi
21865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21866 $as_echo "$gcc_cv_as_weakref" >&6; }
21867 if test $gcc_cv_as_weakref = yes; then
21868
21869 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21870
21871 fi
21872
21873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21874 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21875 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21876 $as_echo_n "(cached) " >&6
21877 else
21878 gcc_cv_as_nsubspa_comdat=no
21879 if test $in_tree_gas = yes; then
21880 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21881 then gcc_cv_as_nsubspa_comdat=yes
21882 fi
21883 elif test x$gcc_cv_as != x; then
21884 $as_echo ' .SPACE $TEXT$
21885 .NSUBSPA $CODE$,COMDAT' > conftest.s
21886 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21888 (eval $ac_try) 2>&5
21889 ac_status=$?
21890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21891 test $ac_status = 0; }; }
21892 then
21893 gcc_cv_as_nsubspa_comdat=yes
21894 else
21895 echo "configure: failed program was" >&5
21896 cat conftest.s >&5
21897 fi
21898 rm -f conftest.o conftest.s
21899 fi
21900 fi
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21902 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21903 if test $gcc_cv_as_nsubspa_comdat = yes; then
21904
21905 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21906
21907 fi
21908
21909 # .hidden needs to be supported in both the assembler and the linker,
21910 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21911 # This is irritatingly difficult to feature test for; we have to check the
21912 # date string after the version number. If we've got an in-tree
21913 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21914 # to be safe.
21915 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21917 $as_echo_n "checking assembler for .hidden... " >&6; }
21918 if test "${gcc_cv_as_hidden+set}" = set; then :
21919 $as_echo_n "(cached) " >&6
21920 else
21921 gcc_cv_as_hidden=no
21922 if test $in_tree_gas = yes; then
21923 if test $in_tree_gas_is_elf = yes \
21924 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21925 then gcc_cv_as_hidden=yes
21926 fi
21927 elif test x$gcc_cv_as != x; then
21928 $as_echo ' .hidden foobar
21929 foobar:' > conftest.s
21930 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21932 (eval $ac_try) 2>&5
21933 ac_status=$?
21934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21935 test $ac_status = 0; }; }
21936 then
21937
21938 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21939 # STV_HIDDEN, so disable .hidden support if so.
21940 case "${target}" in
21941 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
21942 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21943 cat > conftest.s <<EOF
21944 .globl hidden
21945 .hidden hidden
21946 hidden:
21947 .globl default
21948 .set default,hidden
21949 EOF
21950 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
21951 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
21952 grep '\.hidden default' > /dev/null; then
21953 gcc_cv_as_hidden=no
21954 else
21955 gcc_cv_as_hidden=yes
21956 fi
21957 else
21958 # Assume bug is present if objdump is missing.
21959 gcc_cv_as_hidden=no
21960 fi
21961 ;;
21962 *)
21963 gcc_cv_as_hidden=yes
21964 ;;
21965 esac
21966 else
21967 echo "configure: failed program was" >&5
21968 cat conftest.s >&5
21969 fi
21970 rm -f conftest.o conftest.s
21971 fi
21972 fi
21973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21974 $as_echo "$gcc_cv_as_hidden" >&6; }
21975
21976 case "${target}" in
21977 *-*-darwin*)
21978 # Darwin as has some visibility support, though with a different syntax.
21979 gcc_cv_as_hidden=yes
21980 ;;
21981 esac
21982
21983 # gnu_indirect_function type is an extension proposed at
21984 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
21985 # selection of function implementation
21986 # Check whether --enable-gnu-indirect-function was given.
21987 if test "${enable_gnu_indirect_function+set}" = set; then :
21988 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
21989 yes | no) ;;
21990 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
21991 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
21992 esac
21993 else
21994 enable_gnu_indirect_function="$default_gnu_indirect_function"
21995 fi
21996
21997 if test x$enable_gnu_indirect_function = xyes; then
21998
21999 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22000
22001 fi
22002
22003 if test $in_tree_ld != yes ; then
22004 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22005 if echo "$ld_ver" | grep GNU > /dev/null; then
22006 if test x"$ld_is_gold" = xyes; then
22007 # GNU gold --version looks like this:
22008 #
22009 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22010 #
22011 # We extract the binutils version which is more familiar and specific
22012 # than the gold version.
22013 ld_vers=`echo $ld_ver | sed -n \
22014 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22015 else
22016 # GNU ld --version looks like this:
22017 #
22018 # GNU ld (GNU Binutils) 2.21.51.20110225
22019 ld_vers=`echo $ld_ver | sed -n \
22020 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22021 fi
22022 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'`
22023 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22024 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22025 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22026 else
22027 case "${target}" in
22028 *-*-solaris2*)
22029 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22030 # format.
22031 #
22032 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22033 # /usr/ccs/bin/ld has been configured.
22034 ld_ver=`$gcc_cv_ld -V 2>&1`
22035 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22036 ld_vers=`echo $ld_ver | sed -n \
22037 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22038 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22039 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22040 fi
22041 ;;
22042 esac
22043 fi
22044 fi
22045
22046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22047 $as_echo_n "checking linker for .hidden support... " >&6; }
22048 if test "${gcc_cv_ld_hidden+set}" = set; then :
22049 $as_echo_n "(cached) " >&6
22050 else
22051 if test $in_tree_ld = yes ; then
22052 gcc_cv_ld_hidden=no
22053 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 \
22054 && test $in_tree_ld_is_elf = yes; then
22055 gcc_cv_ld_hidden=yes
22056 fi
22057 else
22058 gcc_cv_ld_hidden=yes
22059 if test x"$ld_is_gold" = xyes; then
22060 :
22061 elif echo "$ld_ver" | grep GNU > /dev/null; then
22062 if test 0"$ld_date" -lt 20020404; then
22063 if test -n "$ld_date"; then
22064 # If there was date string, but was earlier than 2002-04-04, fail
22065 gcc_cv_ld_hidden=no
22066 elif test -z "$ld_vers"; then
22067 # If there was no date string nor ld version number, something is wrong
22068 gcc_cv_ld_hidden=no
22069 else
22070 test -z "$ld_vers_patch" && ld_vers_patch=0
22071 if test "$ld_vers_major" -lt 2; then
22072 gcc_cv_ld_hidden=no
22073 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22074 gcc_cv_ld_hidden="no"
22075 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22076 gcc_cv_ld_hidden=no
22077 fi
22078 fi
22079 fi
22080 else
22081 case "${target}" in
22082 *-*-darwin*)
22083 # Darwin ld has some visibility support.
22084 gcc_cv_ld_hidden=yes
22085 ;;
22086 hppa64*-*-hpux* | ia64*-*-hpux*)
22087 gcc_cv_ld_hidden=yes
22088 ;;
22089 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22090 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22091 # .symbolic was only added in Solaris 9 12/02.
22092 gcc_cv_ld_hidden=yes
22093 ;;
22094 *)
22095 gcc_cv_ld_hidden=no
22096 ;;
22097 esac
22098 fi
22099 fi
22100 fi
22101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22102 $as_echo "$gcc_cv_ld_hidden" >&6; }
22103 libgcc_visibility=no
22104
22105
22106 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22107 libgcc_visibility=yes
22108
22109 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22110
22111 fi
22112
22113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22114 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22115 gcc_cv_ld_ro_rw_mix=unknown
22116 if test $in_tree_ld = yes ; then
22117 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 \
22118 && test $in_tree_ld_is_elf = yes; then
22119 gcc_cv_ld_ro_rw_mix=read-write
22120 fi
22121 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22122 echo '.section myfoosect, "a"' > conftest1.s
22123 echo '.section myfoosect, "aw"' > conftest2.s
22124 echo '.byte 1' >> conftest2.s
22125 echo '.section myfoosect, "a"' > conftest3.s
22126 echo '.byte 0' >> conftest3.s
22127 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22128 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22129 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22130 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22131 conftest2.o conftest3.o > /dev/null 2>&1; then
22132 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22133 | sed -e '/myfoosect/!d' -e N`
22134 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22135 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22136 gcc_cv_ld_ro_rw_mix=read-only
22137 else
22138 gcc_cv_ld_ro_rw_mix=read-write
22139 fi
22140 fi
22141 fi
22142 rm -f conftest.* conftest[123].*
22143 fi
22144 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22145
22146 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22147
22148 fi
22149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22150 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22151
22152 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22153 case "${target}" in
22154 *-*-solaris2*)
22155 #
22156 # Solaris 2 ld -V output looks like this for a regular version:
22157 #
22158 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22159 #
22160 # but test versions add stuff at the end:
22161 #
22162 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22163 #
22164 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22165 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22166 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22167 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22168 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22169 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22170 fi
22171 ;;
22172 esac
22173 fi
22174
22175 # Check whether --enable-initfini-array was given.
22176 if test "${enable_initfini_array+set}" = set; then :
22177 enableval=$enable_initfini_array;
22178 else
22179
22180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22181 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22182 if test "${gcc_cv_initfini_array+set}" = set; then :
22183 $as_echo_n "(cached) " >&6
22184 else
22185 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22186 case "${target}" in
22187 ia64-*)
22188 if test "$cross_compiling" = yes; then :
22189 gcc_cv_initfini_array=no
22190 else
22191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22192 /* end confdefs.h. */
22193
22194 #ifndef __ELF__
22195 #error Not an ELF OS
22196 #endif
22197 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22198 if it can be used. */
22199 static int x = -1;
22200 int main (void) { return x; }
22201 int foo (void) { x = 0; }
22202 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22203
22204 _ACEOF
22205 if ac_fn_c_try_run "$LINENO"; then :
22206 gcc_cv_initfini_array=yes
22207 else
22208 gcc_cv_initfini_array=no
22209 fi
22210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22211 conftest.$ac_objext conftest.beam conftest.$ac_ext
22212 fi
22213 ;;
22214 *)
22215 gcc_cv_initfini_array=no
22216 if test $in_tree_ld = yes ; then
22217 if test "$gcc_cv_gld_major_version" -eq 2 \
22218 -a "$gcc_cv_gld_minor_version" -ge 22 \
22219 -o "$gcc_cv_gld_major_version" -gt 2 \
22220 && test $in_tree_ld_is_elf = yes; then
22221 gcc_cv_initfini_array=yes
22222 fi
22223 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22224 cat > conftest.s <<\EOF
22225 .section .dtors,"a",%progbits
22226 .balign 4
22227 .byte 'A', 'A', 'A', 'A'
22228 .section .ctors,"a",%progbits
22229 .balign 4
22230 .byte 'B', 'B', 'B', 'B'
22231 .section .fini_array.65530,"a",%progbits
22232 .balign 4
22233 .byte 'C', 'C', 'C', 'C'
22234 .section .init_array.65530,"a",%progbits
22235 .balign 4
22236 .byte 'D', 'D', 'D', 'D'
22237 .section .dtors.64528,"a",%progbits
22238 .balign 4
22239 .byte 'E', 'E', 'E', 'E'
22240 .section .ctors.64528,"a",%progbits
22241 .balign 4
22242 .byte 'F', 'F', 'F', 'F'
22243 .section .fini_array.01005,"a",%progbits
22244 .balign 4
22245 .byte 'G', 'G', 'G', 'G'
22246 .section .init_array.01005,"a",%progbits
22247 .balign 4
22248 .byte 'H', 'H', 'H', 'H'
22249 .text
22250 .globl _start
22251 _start:
22252 EOF
22253 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22254 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22255 && $gcc_cv_objdump -s -j .init_array conftest \
22256 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22257 && $gcc_cv_objdump -s -j .fini_array conftest \
22258 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22259 gcc_cv_initfini_array=yes
22260 fi
22261 rm -f conftest conftest.*
22262 fi
22263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22264 /* end confdefs.h. */
22265
22266 #ifndef __ELF__
22267 # error Not an ELF OS
22268 #endif
22269 #include <stdlib.h>
22270 #if defined __GLIBC_PREREQ
22271 # if __GLIBC_PREREQ (2, 4)
22272 # else
22273 # error GLIBC 2.4 required
22274 # endif
22275 #else
22276 # if defined __sun__ && defined __svr4__
22277 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22278 # else
22279 # error The C library not known to support .init_array/.fini_array
22280 # endif
22281 #endif
22282
22283 _ACEOF
22284 if ac_fn_c_try_cpp "$LINENO"; then :
22285
22286 else
22287 gcc_cv_initfini_array=no
22288 fi
22289 rm -f conftest.err conftest.$ac_ext;;
22290 esac
22291 else
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22293 $as_echo_n "checking cross compile... guessing... " >&6; }
22294 gcc_cv_initfini_array=no
22295 fi
22296 fi
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22298 $as_echo "$gcc_cv_initfini_array" >&6; }
22299 enable_initfini_array=$gcc_cv_initfini_array
22300
22301 fi
22302
22303 if test $enable_initfini_array = yes; then
22304
22305 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22306
22307 fi
22308
22309 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22311 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22312 if test "${gcc_cv_as_leb128+set}" = set; then :
22313 $as_echo_n "(cached) " >&6
22314 else
22315 gcc_cv_as_leb128=no
22316 if test $in_tree_gas = yes; then
22317 if test $in_tree_gas_is_elf = yes \
22318 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22319 then gcc_cv_as_leb128=yes
22320 fi
22321 elif test x$gcc_cv_as != x; then
22322 $as_echo ' .data
22323 .uleb128 L2 - L1
22324 L1:
22325 .uleb128 1280
22326 .sleb128 -1010
22327 L2:' > conftest.s
22328 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22330 (eval $ac_try) 2>&5
22331 ac_status=$?
22332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22333 test $ac_status = 0; }; }
22334 then
22335 # GAS versions before 2.11 do not support uleb128,
22336 # despite appearing to.
22337 # ??? There exists an elf-specific test that will crash
22338 # the assembler. Perhaps it's better to figure out whether
22339 # arbitrary sections are supported and try the test.
22340 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22341 if echo "$as_ver" | grep GNU > /dev/null; then
22342 as_vers=`echo $as_ver | sed -n \
22343 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22344 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22345 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22346 if test $as_major -eq 2 && test $as_minor -lt 11
22347 then :
22348 else gcc_cv_as_leb128=yes
22349 fi
22350 fi
22351 else
22352 echo "configure: failed program was" >&5
22353 cat conftest.s >&5
22354 fi
22355 rm -f conftest.o conftest.s
22356 fi
22357 fi
22358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22359 $as_echo "$gcc_cv_as_leb128" >&6; }
22360 if test $gcc_cv_as_leb128 = yes; then
22361
22362 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22363
22364 fi
22365
22366 # Check if we have assembler support for unwind directives.
22367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22368 $as_echo_n "checking assembler for cfi directives... " >&6; }
22369 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22370 $as_echo_n "(cached) " >&6
22371 else
22372 gcc_cv_as_cfi_directive=no
22373 if test x$gcc_cv_as != x; then
22374 $as_echo ' .text
22375 .cfi_startproc
22376 .cfi_offset 0, 0
22377 .cfi_same_value 1
22378 .cfi_def_cfa 1, 2
22379 .cfi_escape 1, 2, 3, 4, 5
22380 .cfi_endproc' > conftest.s
22381 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22383 (eval $ac_try) 2>&5
22384 ac_status=$?
22385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22386 test $ac_status = 0; }; }
22387 then
22388 case "$target" in
22389 *-*-solaris*)
22390 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22391 # read-only and read-write sections, we need to make sure that the
22392 # assembler used emits read-write .eh_frame sections.
22393 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22394 if test "x$gcc_cv_objdump" != x; then
22395 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22396 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22397 gcc_cv_as_cfi_directive=no
22398 else
22399 case "$target" in
22400 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22401 # On Solaris/x86, make sure that GCC and gas agree on using
22402 # read-only .eh_frame sections for 64-bit.
22403 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22404 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22405 sed -e /.eh_frame/!d -e N | \
22406 grep READONLY > /dev/null; then
22407 gcc_cv_as_cfi_directive=yes
22408 else
22409 gcc_cv_as_cfi_directive=no
22410 fi
22411 ;;
22412 *)
22413 gcc_cv_as_cfi_directive=yes
22414 ;;
22415 esac
22416 fi
22417 else
22418 # no objdump, err on the side of caution
22419 gcc_cv_as_cfi_directive=no
22420 fi
22421 else
22422 gcc_cv_as_cfi_directive=yes
22423 fi
22424 ;;
22425 *-*-*)
22426 gcc_cv_as_cfi_directive=yes
22427 ;;
22428 esac
22429 else
22430 echo "configure: failed program was" >&5
22431 cat conftest.s >&5
22432 fi
22433 rm -f conftest.o conftest.s
22434 fi
22435 fi
22436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22437 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22438
22439 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22441 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22442 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22443 $as_echo_n "(cached) " >&6
22444 else
22445 gcc_cv_as_cfi_advance_working=no
22446 if test x$gcc_cv_as != x; then
22447 $as_echo ' .text
22448 .cfi_startproc
22449 .cfi_adjust_cfa_offset 64
22450 .skip 75040, 0
22451 .cfi_adjust_cfa_offset 128
22452 .cfi_endproc' > conftest.s
22453 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22455 (eval $ac_try) 2>&5
22456 ac_status=$?
22457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22458 test $ac_status = 0; }; }
22459 then
22460
22461 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22462 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22463 gcc_cv_as_cfi_advance_working=yes
22464 fi
22465
22466 else
22467 echo "configure: failed program was" >&5
22468 cat conftest.s >&5
22469 fi
22470 rm -f conftest.o conftest.s
22471 fi
22472 fi
22473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22474 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22475
22476 else
22477 # no objdump, err on the side of caution
22478 gcc_cv_as_cfi_advance_working=no
22479 fi
22480
22481
22482 cat >>confdefs.h <<_ACEOF
22483 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22484 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22485 _ACEOF
22486
22487
22488
22489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22490 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22491 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22492 $as_echo_n "(cached) " >&6
22493 else
22494 gcc_cv_as_cfi_personality_directive=no
22495 if test x$gcc_cv_as != x; then
22496 $as_echo ' .text
22497 .cfi_startproc
22498 .cfi_personality 0, symbol
22499 .cfi_endproc' > conftest.s
22500 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22502 (eval $ac_try) 2>&5
22503 ac_status=$?
22504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22505 test $ac_status = 0; }; }
22506 then
22507 gcc_cv_as_cfi_personality_directive=yes
22508 else
22509 echo "configure: failed program was" >&5
22510 cat conftest.s >&5
22511 fi
22512 rm -f conftest.o conftest.s
22513 fi
22514 fi
22515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22516 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22517
22518
22519 cat >>confdefs.h <<_ACEOF
22520 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22521 then echo 1; else echo 0; fi`
22522 _ACEOF
22523
22524
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22526 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22527 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22528 $as_echo_n "(cached) " >&6
22529 else
22530 gcc_cv_as_cfi_sections_directive=no
22531 if test x$gcc_cv_as != x; then
22532 $as_echo ' .text
22533 .cfi_sections .debug_frame, .eh_frame
22534 .cfi_startproc
22535 .cfi_endproc' > conftest.s
22536 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22538 (eval $ac_try) 2>&5
22539 ac_status=$?
22540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22541 test $ac_status = 0; }; }
22542 then
22543 case $target_os in
22544 win32 | pe | cygwin* | mingw32* | uwin*)
22545 # Need to check that we generated the correct relocation for the
22546 # .debug_frame section. This was fixed for binutils 2.21.
22547 gcc_cv_as_cfi_sections_directive=no
22548 if test "x$gcc_cv_objdump" != x; then
22549 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22550 grep secrel > /dev/null; then
22551 gcc_cv_as_cfi_sections_directive=yes
22552 fi
22553 fi
22554 ;;
22555 *)
22556 gcc_cv_as_cfi_sections_directive=yes
22557 ;;
22558 esac
22559 else
22560 echo "configure: failed program was" >&5
22561 cat conftest.s >&5
22562 fi
22563 rm -f conftest.o conftest.s
22564 fi
22565 fi
22566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22567 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22568
22569
22570
22571 cat >>confdefs.h <<_ACEOF
22572 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22573 then echo 1; else echo 0; fi`
22574 _ACEOF
22575
22576
22577 # GAS versions up to and including 2.11.0 may mis-optimize
22578 # .eh_frame data.
22579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22580 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22581 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22582 $as_echo_n "(cached) " >&6
22583 else
22584 gcc_cv_as_eh_frame=no
22585 if test $in_tree_gas = yes; then
22586 if test $in_tree_gas_is_elf = yes \
22587 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22588 then gcc_cv_as_eh_frame=yes
22589 fi
22590 elif test x$gcc_cv_as != x; then
22591 $as_echo ' .text
22592 .LFB1:
22593 .4byte 0
22594 .L1:
22595 .4byte 0
22596 .LFE1:
22597 .section .eh_frame,"aw",@progbits
22598 __FRAME_BEGIN__:
22599 .4byte .LECIE1-.LSCIE1
22600 .LSCIE1:
22601 .4byte 0x0
22602 .byte 0x1
22603 .ascii "z\0"
22604 .byte 0x1
22605 .byte 0x78
22606 .byte 0x1a
22607 .byte 0x0
22608 .byte 0x4
22609 .4byte 1
22610 .p2align 1
22611 .LECIE1:
22612 .LSFDE1:
22613 .4byte .LEFDE1-.LASFDE1
22614 .LASFDE1:
22615 .4byte .LASFDE1-__FRAME_BEGIN__
22616 .4byte .LFB1
22617 .4byte .LFE1-.LFB1
22618 .byte 0x4
22619 .4byte .LFE1-.LFB1
22620 .byte 0x4
22621 .4byte .L1-.LFB1
22622 .LEFDE1:' > conftest.s
22623 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22625 (eval $ac_try) 2>&5
22626 ac_status=$?
22627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22628 test $ac_status = 0; }; }
22629 then
22630 cat > conftest.lit <<EOF
22631 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22632 0010 01000000 12000000 18000000 00000000 ................
22633 0020 08000000 04080000 0044 .........D
22634 EOF
22635 cat > conftest.big <<EOF
22636 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22637 0010 00000001 00000012 00000018 00000000 ................
22638 0020 00000008 04000000 0844 .........D
22639 EOF
22640 # If the assembler didn't choke, and we can objdump,
22641 # and we got the correct data, then succeed.
22642 # The text in the here-document typically retains its unix-style line
22643 # endings, while the output of objdump will use host line endings.
22644 # Therefore, use diff -b for the comparisons.
22645 if test x$gcc_cv_objdump != x \
22646 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22647 | tail -3 > conftest.got \
22648 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22649 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22650 then
22651 gcc_cv_as_eh_frame=yes
22652 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22654 (eval $ac_try) 2>&5
22655 ac_status=$?
22656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22657 test $ac_status = 0; }; }; then
22658 gcc_cv_as_eh_frame=buggy
22659 else
22660 # Uh oh, what do we do now?
22661 gcc_cv_as_eh_frame=no
22662 fi
22663 else
22664 echo "configure: failed program was" >&5
22665 cat conftest.s >&5
22666 fi
22667 rm -f conftest.o conftest.s
22668 fi
22669 fi
22670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22671 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22672
22673
22674 if test $gcc_cv_as_eh_frame = buggy; then
22675
22676 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22677
22678 fi
22679
22680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22681 $as_echo_n "checking assembler for section merging support... " >&6; }
22682 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22683 $as_echo_n "(cached) " >&6
22684 else
22685 gcc_cv_as_shf_merge=no
22686 if test $in_tree_gas = yes; then
22687 if test $in_tree_gas_is_elf = yes \
22688 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22689 then gcc_cv_as_shf_merge=yes
22690 fi
22691 elif test x$gcc_cv_as != x; then
22692 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22693 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22695 (eval $ac_try) 2>&5
22696 ac_status=$?
22697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22698 test $ac_status = 0; }; }
22699 then
22700 gcc_cv_as_shf_merge=yes
22701 else
22702 echo "configure: failed program was" >&5
22703 cat conftest.s >&5
22704 fi
22705 rm -f conftest.o conftest.s
22706 fi
22707 fi
22708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22709 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22710
22711 if test $gcc_cv_as_shf_merge = no; then
22712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22713 $as_echo_n "checking assembler for section merging support... " >&6; }
22714 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22715 $as_echo_n "(cached) " >&6
22716 else
22717 gcc_cv_as_shf_merge=no
22718 if test $in_tree_gas = yes; then
22719 if test $in_tree_gas_is_elf = yes \
22720 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22721 then gcc_cv_as_shf_merge=yes
22722 fi
22723 elif test x$gcc_cv_as != x; then
22724 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22725 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22727 (eval $ac_try) 2>&5
22728 ac_status=$?
22729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22730 test $ac_status = 0; }; }
22731 then
22732 gcc_cv_as_shf_merge=yes
22733 else
22734 echo "configure: failed program was" >&5
22735 cat conftest.s >&5
22736 fi
22737 rm -f conftest.o conftest.s
22738 fi
22739 fi
22740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22741 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22742
22743 fi
22744
22745 cat >>confdefs.h <<_ACEOF
22746 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22747 _ACEOF
22748
22749
22750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22751 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22752 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22753 $as_echo_n "(cached) " >&6
22754 else
22755 gcc_cv_as_comdat_group=no
22756 if test $in_tree_gas = yes; then
22757 if test $in_tree_gas_is_elf = yes \
22758 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22759 then gcc_cv_as_comdat_group=yes
22760 fi
22761 elif test x$gcc_cv_as != x; then
22762 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22763 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22765 (eval $ac_try) 2>&5
22766 ac_status=$?
22767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22768 test $ac_status = 0; }; }
22769 then
22770 gcc_cv_as_comdat_group=yes
22771 else
22772 echo "configure: failed program was" >&5
22773 cat conftest.s >&5
22774 fi
22775 rm -f conftest.o conftest.s
22776 fi
22777 fi
22778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22779 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22780
22781 if test $gcc_cv_as_comdat_group = yes; then
22782 gcc_cv_as_comdat_group_percent=no
22783 gcc_cv_as_comdat_group_group=no
22784 else
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22786 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22787 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22788 $as_echo_n "(cached) " >&6
22789 else
22790 gcc_cv_as_comdat_group_percent=no
22791 if test $in_tree_gas = yes; then
22792 if test $in_tree_gas_is_elf = yes \
22793 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22794 then gcc_cv_as_comdat_group_percent=yes
22795 fi
22796 elif test x$gcc_cv_as != x; then
22797 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22798 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22800 (eval $ac_try) 2>&5
22801 ac_status=$?
22802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22803 test $ac_status = 0; }; }
22804 then
22805 gcc_cv_as_comdat_group_percent=yes
22806 else
22807 echo "configure: failed program was" >&5
22808 cat conftest.s >&5
22809 fi
22810 rm -f conftest.o conftest.s
22811 fi
22812 fi
22813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22814 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22815
22816 if test $gcc_cv_as_comdat_group_percent = yes; then
22817 gcc_cv_as_comdat_group_group=no
22818 else
22819 case "${target}" in
22820 # Sun as uses a completely different syntax.
22821 *-*-solaris2*)
22822 case "${target}" in
22823 sparc*-*-solaris2*)
22824 conftest_s='
22825 .group foo,".text%foo",#comdat
22826 .section ".text%foo", #alloc,#execinstr,#progbits
22827 .globl foo
22828 foo:
22829 '
22830 ;;
22831 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22832 conftest_s='
22833 .group foo,.text%foo,#comdat
22834 .section .text%foo, "ax", @progbits
22835 .globl foo
22836 foo:
22837 '
22838 ;;
22839 esac
22840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22841 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22842 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22843 $as_echo_n "(cached) " >&6
22844 else
22845 gcc_cv_as_comdat_group_group=no
22846 if test x$gcc_cv_as != x; then
22847 $as_echo "$conftest_s" > conftest.s
22848 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22850 (eval $ac_try) 2>&5
22851 ac_status=$?
22852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22853 test $ac_status = 0; }; }
22854 then
22855 gcc_cv_as_comdat_group_group=yes
22856 else
22857 echo "configure: failed program was" >&5
22858 cat conftest.s >&5
22859 fi
22860 rm -f conftest.o conftest.s
22861 fi
22862 fi
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22864 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22865
22866 ;;
22867 esac
22868 fi
22869 fi
22870 if test x"$ld_is_gold" = xyes; then
22871 comdat_group=yes
22872 elif test $in_tree_ld = yes ; then
22873 comdat_group=no
22874 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 \
22875 && test $in_tree_ld_is_elf = yes; then
22876 comdat_group=yes
22877 fi
22878 elif echo "$ld_ver" | grep GNU > /dev/null; then
22879 comdat_group=yes
22880 if test 0"$ld_date" -lt 20050308; then
22881 if test -n "$ld_date"; then
22882 # If there was date string, but was earlier than 2005-03-08, fail
22883 comdat_group=no
22884 elif test "$ld_vers_major" -lt 2; then
22885 comdat_group=no
22886 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22887 comdat_group=no
22888 fi
22889 fi
22890 else
22891 case "${target}" in
22892 *-*-solaris2.1[1-9]*)
22893 comdat_group=no
22894 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22895 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22896 # version 1.688.
22897 #
22898 # If using Sun as for COMDAT group as emitted by GCC, one needs at
22899 # least ld version 1.2267.
22900 if test "$ld_vers_major" -gt 1; then
22901 comdat_group=yes
22902 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
22903 comdat_group=yes
22904 elif test "$ld_vers_minor" -ge 2267; then
22905 comdat_group=yes
22906 fi
22907 ;;
22908 *)
22909 # Assume linkers other than GNU ld don't support COMDAT group.
22910 comdat_group=no
22911 ;;
22912 esac
22913 fi
22914 # Allow overriding the automatic COMDAT group tests above.
22915 # Check whether --enable-comdat was given.
22916 if test "${enable_comdat+set}" = set; then :
22917 enableval=$enable_comdat; comdat_group="$enable_comdat"
22918 fi
22919
22920 if test $comdat_group = no; then
22921 gcc_cv_as_comdat_group=no
22922 gcc_cv_as_comdat_group_percent=no
22923 gcc_cv_as_comdat_group_group=no
22924 fi
22925
22926 cat >>confdefs.h <<_ACEOF
22927 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
22928 || test $gcc_cv_as_comdat_group_percent = yes \
22929 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
22930 _ACEOF
22931
22932
22933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22934 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22935 if test "${gcc_cv_as_discriminator+set}" = set; then :
22936 $as_echo_n "(cached) " >&6
22937 else
22938 gcc_cv_as_discriminator=no
22939 if test $in_tree_gas = yes; then
22940 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22941 then gcc_cv_as_discriminator=yes
22942 fi
22943 elif test x$gcc_cv_as != x; then
22944 $as_echo ' .text
22945 .file 1 "conf.c"
22946 .loc 1 1 0 discriminator 1' > conftest.s
22947 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22949 (eval $ac_try) 2>&5
22950 ac_status=$?
22951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22952 test $ac_status = 0; }; }
22953 then
22954 gcc_cv_as_discriminator=yes
22955 else
22956 echo "configure: failed program was" >&5
22957 cat conftest.s >&5
22958 fi
22959 rm -f conftest.o conftest.s
22960 fi
22961 fi
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22963 $as_echo "$gcc_cv_as_discriminator" >&6; }
22964 if test $gcc_cv_as_discriminator = yes; then
22965
22966 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22967
22968 fi
22969
22970 # Thread-local storage - the check is heavily parameterized.
22971 conftest_s=
22972 tls_first_major=
22973 tls_first_minor=
22974 tls_as_opt=
22975 case "$target" in
22976 alpha*-*-*)
22977 conftest_s='
22978 .section ".tdata","awT",@progbits
22979 foo: .long 25
22980 .text
22981 ldq $27,__tls_get_addr($29) !literal!1
22982 lda $16,foo($29) !tlsgd!1
22983 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22984 ldq $27,__tls_get_addr($29) !literal!2
22985 lda $16,foo($29) !tlsldm!2
22986 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22987 ldq $1,foo($29) !gotdtprel
22988 ldah $2,foo($29) !dtprelhi
22989 lda $3,foo($2) !dtprello
22990 lda $4,foo($29) !dtprel
22991 ldq $1,foo($29) !gottprel
22992 ldah $2,foo($29) !tprelhi
22993 lda $3,foo($2) !tprello
22994 lda $4,foo($29) !tprel'
22995 tls_first_major=2
22996 tls_first_minor=13
22997 tls_as_opt=--fatal-warnings
22998 ;;
22999 cris-*-*|crisv32-*-*)
23000 conftest_s='
23001 .section ".tdata","awT",@progbits
23002 x: .long 25
23003 .text
23004 move.d x:IE,$r10
23005 nop'
23006 tls_first_major=2
23007 tls_first_minor=20
23008 tls_as_opt=--fatal-warnings
23009 ;;
23010 frv*-*-*)
23011 conftest_s='
23012 .section ".tdata","awT",@progbits
23013 x: .long 25
23014 .text
23015 call #gettlsoff(x)'
23016 tls_first_major=2
23017 tls_first_minor=14
23018 ;;
23019 hppa*-*-linux*)
23020 conftest_s='
23021 t1: .reg %r20
23022 t2: .reg %r21
23023 gp: .reg %r19
23024 .section ".tdata","awT",@progbits
23025 foo: .long 25
23026 .text
23027 .align 4
23028 addil LT%foo-$tls_gdidx$,gp
23029 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23030 b __tls_get_addr
23031 nop
23032 addil LT%foo-$tls_ldidx$,gp
23033 b __tls_get_addr
23034 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23035 addil LR%foo-$tls_dtpoff$,%ret0
23036 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23037 mfctl %cr27,%t1
23038 addil LT%foo-$tls_ieoff$,gp
23039 ldw RT%foo-$tls_ieoff$(%r1),%t2
23040 add %t1,%t2,%t3
23041 mfctl %cr27,%t1
23042 addil LR%foo-$tls_leoff$,%t1
23043 ldo RR%foo-$tls_leoff$(%r1),%t2'
23044 tls_first_major=2
23045 tls_first_minor=15
23046 tls_as_opt=--fatal-warnings
23047 ;;
23048 arm*-*-*)
23049 conftest_s='
23050 .section ".tdata","awT",%progbits
23051 foo: .long 25
23052 .text
23053 .word foo(gottpoff)
23054 .word foo(tpoff)
23055 .word foo(tlsgd)
23056 .word foo(tlsldm)
23057 .word foo(tlsldo)'
23058 tls_first_major=2
23059 tls_first_minor=17
23060 ;;
23061 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23062 case "$target" in
23063 i[34567]86-*-solaris2.*)
23064 on_solaris=yes
23065 tga_func=___tls_get_addr
23066 ;;
23067 x86_64-*-solaris2.1[0-9]*)
23068 on_solaris=yes
23069 tga_func=__tls_get_addr
23070 ;;
23071 *)
23072 on_solaris=no
23073 ;;
23074 esac
23075 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23076 conftest_s='
23077 .section .tdata,"awt",@progbits'
23078 tls_first_major=0
23079 tls_first_minor=0
23080
23081 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23082
23083 else
23084 conftest_s='
23085 .section ".tdata","awT",@progbits'
23086 tls_first_major=2
23087 tls_first_minor=14
23088 tls_as_opt="--fatal-warnings"
23089 fi
23090 conftest_s="$conftest_s
23091 foo: .long 25
23092 .text
23093 movl %gs:0, %eax
23094 leal foo@tlsgd(,%ebx,1), %eax
23095 leal foo@tlsldm(%ebx), %eax
23096 leal foo@dtpoff(%eax), %edx
23097 movl foo@gottpoff(%ebx), %eax
23098 subl foo@gottpoff(%ebx), %eax
23099 addl foo@gotntpoff(%ebx), %eax
23100 movl foo@indntpoff, %eax
23101 movl \$foo@tpoff, %eax
23102 subl \$foo@tpoff, %eax
23103 leal foo@ntpoff(%ecx), %eax"
23104 ;;
23105 x86_64-*-*)
23106 conftest_s='
23107 .section ".tdata","awT",@progbits
23108 foo: .long 25
23109 .text
23110 movq %fs:0, %rax
23111 leaq foo@TLSGD(%rip), %rdi
23112 leaq foo@TLSLD(%rip), %rdi
23113 leaq foo@DTPOFF(%rax), %rdx
23114 movq foo@GOTTPOFF(%rip), %rax
23115 movq $foo@TPOFF, %rax'
23116 tls_first_major=2
23117 tls_first_minor=14
23118 tls_as_opt=--fatal-warnings
23119 ;;
23120 ia64-*-*)
23121 conftest_s='
23122 .section ".tdata","awT",@progbits
23123 foo: data8 25
23124 .text
23125 addl r16 = @ltoff(@dtpmod(foo#)), gp
23126 addl r17 = @ltoff(@dtprel(foo#)), gp
23127 addl r18 = @ltoff(@tprel(foo#)), gp
23128 addl r19 = @dtprel(foo#), gp
23129 adds r21 = @dtprel(foo#), r13
23130 movl r23 = @dtprel(foo#)
23131 addl r20 = @tprel(foo#), gp
23132 adds r22 = @tprel(foo#), r13
23133 movl r24 = @tprel(foo#)'
23134 tls_first_major=2
23135 tls_first_minor=13
23136 tls_as_opt=--fatal-warnings
23137 ;;
23138 mips*-*-*)
23139 conftest_s='
23140 .section .tdata,"awT",@progbits
23141 x:
23142 .word 2
23143 .text
23144 addiu $4, $28, %tlsgd(x)
23145 addiu $4, $28, %tlsldm(x)
23146 lui $4, %dtprel_hi(x)
23147 addiu $4, $4, %dtprel_lo(x)
23148 lw $4, %gottprel(x)($28)
23149 lui $4, %tprel_hi(x)
23150 addiu $4, $4, %tprel_lo(x)'
23151 tls_first_major=2
23152 tls_first_minor=16
23153 tls_as_opt='-32 --fatal-warnings'
23154 ;;
23155 m68k-*-*)
23156 conftest_s='
23157 .section .tdata,"awT",@progbits
23158 x:
23159 .word 2
23160 .text
23161 foo:
23162 move.l x@TLSGD(%a5),%a0
23163 move.l x@TLSLDM(%a5),%a0
23164 move.l x@TLSLDO(%a5),%a0
23165 move.l x@TLSIE(%a5),%a0
23166 move.l x@TLSLE(%a5),%a0'
23167 tls_first_major=2
23168 tls_first_minor=19
23169 tls_as_opt='--fatal-warnings'
23170 ;;
23171 powerpc-*-*)
23172 conftest_s='
23173 .section ".tdata","awT",@progbits
23174 .align 2
23175 ld0: .space 4
23176 ld1: .space 4
23177 x1: .space 4
23178 x2: .space 4
23179 x3: .space 4
23180 .text
23181 addi 3,31,ld0@got@tlsgd
23182 bl __tls_get_addr
23183 addi 3,31,x1@got@tlsld
23184 bl __tls_get_addr
23185 addi 9,3,x1@dtprel
23186 addis 9,3,x2@dtprel@ha
23187 addi 9,9,x2@dtprel@l
23188 lwz 9,x3@got@tprel(31)
23189 add 9,9,x@tls
23190 addi 9,2,x1@tprel
23191 addis 9,2,x2@tprel@ha
23192 addi 9,9,x2@tprel@l'
23193 tls_first_major=2
23194 tls_first_minor=14
23195 tls_as_opt="-a32 --fatal-warnings"
23196 ;;
23197 powerpc64-*-*)
23198 conftest_s='
23199 .section ".tdata","awT",@progbits
23200 .align 3
23201 ld0: .space 8
23202 ld1: .space 8
23203 x1: .space 8
23204 x2: .space 8
23205 x3: .space 8
23206 .text
23207 addi 3,2,ld0@got@tlsgd
23208 bl .__tls_get_addr
23209 nop
23210 addi 3,2,ld1@toc
23211 bl .__tls_get_addr
23212 nop
23213 addi 3,2,x1@got@tlsld
23214 bl .__tls_get_addr
23215 nop
23216 addi 9,3,x1@dtprel
23217 bl .__tls_get_addr
23218 nop
23219 addis 9,3,x2@dtprel@ha
23220 addi 9,9,x2@dtprel@l
23221 bl .__tls_get_addr
23222 nop
23223 ld 9,x3@got@dtprel(2)
23224 add 9,9,3
23225 bl .__tls_get_addr
23226 nop'
23227 tls_first_major=2
23228 tls_first_minor=14
23229 tls_as_opt="-a64 --fatal-warnings"
23230 ;;
23231 s390-*-*)
23232 conftest_s='
23233 .section ".tdata","awT",@progbits
23234 foo: .long 25
23235 .text
23236 .long foo@TLSGD
23237 .long foo@TLSLDM
23238 .long foo@DTPOFF
23239 .long foo@NTPOFF
23240 .long foo@GOTNTPOFF
23241 .long foo@INDNTPOFF
23242 l %r1,foo@GOTNTPOFF(%r12)
23243 l %r1,0(%r1):tls_load:foo
23244 bas %r14,0(%r1,%r13):tls_gdcall:foo
23245 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23246 tls_first_major=2
23247 tls_first_minor=14
23248 tls_as_opt="-m31 --fatal-warnings"
23249 ;;
23250 s390x-*-*)
23251 conftest_s='
23252 .section ".tdata","awT",@progbits
23253 foo: .long 25
23254 .text
23255 .quad foo@TLSGD
23256 .quad foo@TLSLDM
23257 .quad foo@DTPOFF
23258 .quad foo@NTPOFF
23259 .quad foo@GOTNTPOFF
23260 lg %r1,foo@GOTNTPOFF(%r12)
23261 larl %r1,foo@INDNTPOFF
23262 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23263 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23264 tls_first_major=2
23265 tls_first_minor=14
23266 tls_as_opt="-m64 -Aesame --fatal-warnings"
23267 ;;
23268 sh-*-* | sh[34]-*-*)
23269 conftest_s='
23270 .section ".tdata","awT",@progbits
23271 foo: .long 25
23272 .text
23273 .long foo@TLSGD
23274 .long foo@TLSLDM
23275 .long foo@DTPOFF
23276 .long foo@GOTTPOFF
23277 .long foo@TPOFF'
23278 tls_first_major=2
23279 tls_first_minor=13
23280 tls_as_opt=--fatal-warnings
23281 ;;
23282 sparc*-*-*)
23283 case "$target" in
23284 sparc*-sun-solaris2.*)
23285 on_solaris=yes
23286 tga_func=__tls_get_addr
23287 ;;
23288 *)
23289 on_solaris=no
23290 ;;
23291 esac
23292 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23293 conftest_s='
23294 .section ".tdata",#alloc,#write,#tls'
23295 tls_first_major=0
23296 tls_first_minor=0
23297 else
23298 conftest_s='
23299 .section ".tdata","awT",@progbits'
23300 tls_first_major=2
23301 tls_first_minor=14
23302 tls_as_opt="-32 --fatal-warnings"
23303 fi
23304 conftest_s="$conftest_s
23305 foo: .long 25
23306 .text
23307 sethi %tgd_hi22(foo), %o0
23308 add %o0, %tgd_lo10(foo), %o1
23309 add %l7, %o1, %o0, %tgd_add(foo)
23310 call __tls_get_addr, %tgd_call(foo)
23311 sethi %tldm_hi22(foo), %l1
23312 add %l1, %tldm_lo10(foo), %l2
23313 add %l7, %l2, %o0, %tldm_add(foo)
23314 call __tls_get_addr, %tldm_call(foo)
23315 sethi %tldo_hix22(foo), %l3
23316 xor %l3, %tldo_lox10(foo), %l4
23317 add %o0, %l4, %l5, %tldo_add(foo)
23318 sethi %tie_hi22(foo), %o3
23319 add %o3, %tie_lo10(foo), %o3
23320 ld [%l7 + %o3], %o2, %tie_ld(foo)
23321 add %g7, %o2, %o4, %tie_add(foo)
23322 sethi %tle_hix22(foo), %l1
23323 xor %l1, %tle_lox10(foo), %o5
23324 ld [%g7 + %o5], %o1"
23325 ;;
23326 tilepro*-*-*)
23327 conftest_s='
23328 .section ".tdata","awT",@progbits
23329 foo: .long 25
23330 .text
23331 addli r0, zero, tls_gd(foo)
23332 auli r0, zero, tls_gd_ha16(foo)
23333 addli r0, r0, tls_gd_lo16(foo)
23334 jal __tls_get_addr
23335 addli r0, zero, tls_ie(foo)
23336 auli r0, r0, tls_ie_ha16(foo)
23337 addli r0, r0, tls_ie_lo16(foo)'
23338 tls_first_major=2
23339 tls_first_minor=22
23340 tls_as_opt="--fatal-warnings"
23341 ;;
23342 tilegx*-*-*)
23343 conftest_s='
23344 .section ".tdata","awT",@progbits
23345 foo: .long 25
23346 .text
23347 shl16insli r0, zero, hw0_last_tls_gd(foo)
23348 shl16insli r0, zero, hw1_last_tls_gd(foo)
23349 shl16insli r0, r0, hw0_tls_gd(foo)
23350 jal __tls_get_addr
23351 shl16insli r0, zero, hw1_last_tls_ie(foo)
23352 shl16insli r0, r0, hw0_tls_ie(foo)'
23353 tls_first_major=2
23354 tls_first_minor=22
23355 tls_as_opt="--fatal-warnings"
23356 ;;
23357 xtensa*-*-*)
23358 conftest_s='
23359 .section ".tdata","awT",@progbits
23360 foo: .long 25
23361 .text
23362 movi a8, foo@TLSFUNC
23363 movi a10, foo@TLSARG
23364 callx8.tls a8, foo@TLSCALL'
23365 tls_first_major=2
23366 tls_first_minor=19
23367 ;;
23368 esac
23369 set_have_as_tls=no
23370 if test "x$enable_tls" = xno ; then
23371 : # TLS explicitly disabled.
23372 elif test "x$enable_tls" = xyes ; then
23373 set_have_as_tls=yes # TLS explicitly enabled.
23374 elif test -z "$tls_first_major"; then
23375 : # If we don't have a check, assume no support.
23376 else
23377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23378 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23379 if test "${gcc_cv_as_tls+set}" = set; then :
23380 $as_echo_n "(cached) " >&6
23381 else
23382 gcc_cv_as_tls=no
23383 if test $in_tree_gas = yes; then
23384 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23385 then gcc_cv_as_tls=yes
23386 fi
23387 elif test x$gcc_cv_as != x; then
23388 $as_echo "$conftest_s" > conftest.s
23389 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23391 (eval $ac_try) 2>&5
23392 ac_status=$?
23393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23394 test $ac_status = 0; }; }
23395 then
23396 gcc_cv_as_tls=yes
23397 else
23398 echo "configure: failed program was" >&5
23399 cat conftest.s >&5
23400 fi
23401 rm -f conftest.o conftest.s
23402 fi
23403 fi
23404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23405 $as_echo "$gcc_cv_as_tls" >&6; }
23406 if test $gcc_cv_as_tls = yes; then
23407 set_have_as_tls=yes
23408 fi
23409 fi
23410 case "$target" in
23411 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23412 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23413 # Sun style that Sun ld and GCC don't support any longer.
23414 *-*-solaris2.*)
23415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23416 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23417 ld_tls_support=no
23418 # Check ld and ld.so.1 TLS support.
23419 if echo "$ld_ver" | grep GNU > /dev/null; then
23420 # Assume all interesting versions of GNU ld have TLS support.
23421 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23422 ld_tls_support=yes
23423 else
23424 case "$target" in
23425 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23426 i?86-*-solaris2.9)
23427 min_tls_ld_vers_minor=374
23428 ;;
23429 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23430 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23431 min_tls_ld_vers_minor=343
23432 ;;
23433 esac
23434 if test "$ld_vers_major" -gt 1 || \
23435 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23436 ld_tls_support=yes
23437 else
23438 set_have_as_tls=no
23439 fi
23440 fi
23441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23442 $as_echo "$ld_tls_support" >&6; }
23443
23444 save_LIBS="$LIBS"
23445 save_LDFLAGS="$LDFLAGS"
23446 LIBS=
23447 LDFLAGS=
23448
23449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23450 $as_echo_n "checking library containing $tga_func... " >&6; }
23451 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23452 # (32-bit x86) only lived in libthread, so check for that. Keep
23453 # set_have_as_tls if found, disable if not.
23454 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23456 $as_echo_n "checking for library containing $tga_func... " >&6; }
23457 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23458 $as_echo_n "(cached) " >&6
23459 else
23460 ac_func_search_save_LIBS=$LIBS
23461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23462 /* end confdefs.h. */
23463
23464 /* Override any GCC internal prototype to avoid an error.
23465 Use char because int might match the return type of a GCC
23466 builtin and then its argument prototype would still apply. */
23467 #ifdef __cplusplus
23468 extern "C"
23469 #endif
23470 char $tga_func ();
23471 int
23472 main ()
23473 {
23474 return $tga_func ();
23475 ;
23476 return 0;
23477 }
23478 _ACEOF
23479 for ac_lib in '' thread; do
23480 if test -z "$ac_lib"; then
23481 ac_res="none required"
23482 else
23483 ac_res=-l$ac_lib
23484 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23485 fi
23486 if ac_fn_c_try_link "$LINENO"; then :
23487 eval "$as_ac_Search=\$ac_res"
23488 fi
23489 rm -f core conftest.err conftest.$ac_objext \
23490 conftest$ac_exeext
23491 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23492 break
23493 fi
23494 done
23495 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23496
23497 else
23498 eval "$as_ac_Search=no"
23499 fi
23500 rm conftest.$ac_ext
23501 LIBS=$ac_func_search_save_LIBS
23502 fi
23503 eval ac_res=\$$as_ac_Search
23504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23505 $as_echo "$ac_res" >&6; }
23506 eval ac_res=\$$as_ac_Search
23507 if test "$ac_res" != no; then :
23508 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23509
23510 else
23511 set_have_as_tls=no
23512 fi
23513
23514 # Clear LIBS if we cannot support TLS.
23515 if test $set_have_as_tls = no; then
23516 LIBS=
23517 fi
23518 # Always define LIB_TLS_SPEC, even without TLS support.
23519
23520 cat >>confdefs.h <<_ACEOF
23521 #define LIB_TLS_SPEC "$LIBS"
23522 _ACEOF
23523
23524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23525 $as_echo "$LIBS" >&6; }
23526
23527 LIBS="$save_LIBS"
23528 LDFLAGS="$save_LDFLAGS"
23529 ;;
23530 esac
23531 if test $set_have_as_tls = yes ; then
23532
23533 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23534
23535 fi
23536
23537 # Target-specific assembler checks.
23538
23539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23540 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23541 gcc_cv_ld_static_dynamic=no
23542 gcc_cv_ld_static_option='-Bstatic'
23543 gcc_cv_ld_dynamic_option='-Bdynamic'
23544 if test $in_tree_ld = yes ; then
23545 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
23546 gcc_cv_ld_static_dynamic=yes
23547 fi
23548 elif test x$gcc_cv_ld != x; then
23549 # Check if linker supports -Bstatic/-Bdynamic option
23550 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23551 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23552 gcc_cv_ld_static_dynamic=yes
23553 else
23554 case "$target" in
23555 # HP-UX ld uses -a flags to select between shared and archive.
23556 *-*-hpux*)
23557 if test x"$gnu_ld" = xno; then
23558 gcc_cv_ld_static_dynamic=yes
23559 gcc_cv_ld_static_option="-aarchive_shared"
23560 gcc_cv_ld_dynamic_option="-adefault"
23561 fi
23562 ;;
23563 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23564 *-*-solaris2*)
23565 gcc_cv_ld_static_dynamic=yes
23566 ;;
23567 esac
23568 fi
23569 fi
23570 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23571
23572 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23573
23574
23575 cat >>confdefs.h <<_ACEOF
23576 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23577 _ACEOF
23578
23579
23580 cat >>confdefs.h <<_ACEOF
23581 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23582 _ACEOF
23583
23584 fi
23585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23586 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23587
23588 if test x"$demangler_in_ld" = xyes; then
23589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23590 $as_echo_n "checking linker --demangle support... " >&6; }
23591 gcc_cv_ld_demangle=no
23592 if test $in_tree_ld = yes; then
23593 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 \
23594 gcc_cv_ld_demangle=yes
23595 fi
23596 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23597 # Check if the GNU linker supports --demangle option
23598 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23599 gcc_cv_ld_demangle=yes
23600 fi
23601 fi
23602 if test x"$gcc_cv_ld_demangle" = xyes; then
23603
23604 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23605
23606 fi
23607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23608 $as_echo "$gcc_cv_ld_demangle" >&6; }
23609 fi
23610
23611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23612 $as_echo_n "checking linker plugin support... " >&6; }
23613 gcc_cv_lto_plugin=0
23614 if test -f liblto_plugin.la; then
23615 save_ld_ver="$ld_ver"
23616 save_ld_vers_major="$ld_vers_major"
23617 save_ld_vers_minor="$ld_vers_minor"
23618 save_ld_is_gold="$ld_is_gold"
23619
23620 ld_is_gold=no
23621
23622 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23623 ld_ver="GNU ld"
23624 # FIXME: ld_is_gold?
23625 ld_vers_major="$gcc_cv_gld_major_version"
23626 ld_vers_minor="$gcc_cv_gld_minor_version"
23627 else
23628 # Determine plugin linker version.
23629 # FIXME: Partial duplicate from above, generalize.
23630 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23631 if echo "$ld_ver" | grep GNU > /dev/null; then
23632 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23633 ld_is_gold=yes
23634 ld_vers=`echo $ld_ver | sed -n \
23635 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23636 else
23637 ld_vers=`echo $ld_ver | sed -n \
23638 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23639 fi
23640 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23641 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23642 fi
23643 fi
23644
23645 # Determine plugin support.
23646 if echo "$ld_ver" | grep GNU > /dev/null; then
23647 # Require GNU ld or gold 2.21+ for plugin support by default.
23648 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23649 gcc_cv_lto_plugin=2
23650 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23651 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23652 gcc_cv_lto_plugin=1
23653 fi
23654 fi
23655
23656 ld_ver="$save_ld_ver"
23657 ld_vers_major="$save_ld_vers_major"
23658 ld_vers_minor="$save_ld_vers_minor"
23659 ld_is_gold="$save_ld_is_gold"
23660 fi
23661
23662 cat >>confdefs.h <<_ACEOF
23663 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23664 _ACEOF
23665
23666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23667 $as_echo "$gcc_cv_lto_plugin" >&6; }
23668
23669 case "$target" in
23670 # All TARGET_ABI_OSF targets.
23671 alpha*-*-linux* | alpha*-*-*bsd*)
23672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23673 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23674 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23675 $as_echo_n "(cached) " >&6
23676 else
23677 gcc_cv_as_alpha_explicit_relocs=no
23678 if test $in_tree_gas = yes; then
23679 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23680 then gcc_cv_as_alpha_explicit_relocs=yes
23681 fi
23682 elif test x$gcc_cv_as != x; then
23683 $as_echo ' .set nomacro
23684 .text
23685 extbl $3, $2, $3 !lituse_bytoff!1
23686 ldq $2, a($29) !literal!1
23687 ldq $4, b($29) !literal!2
23688 ldq_u $3, 0($2) !lituse_base!1
23689 ldq $27, f($29) !literal!5
23690 jsr $26, ($27), f !lituse_jsr!5
23691 ldah $29, 0($26) !gpdisp!3
23692 lda $0, c($29) !gprel
23693 ldah $1, d($29) !gprelhigh
23694 lda $1, d($1) !gprellow
23695 lda $29, 0($29) !gpdisp!3' > conftest.s
23696 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23698 (eval $ac_try) 2>&5
23699 ac_status=$?
23700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23701 test $ac_status = 0; }; }
23702 then
23703 gcc_cv_as_alpha_explicit_relocs=yes
23704 else
23705 echo "configure: failed program was" >&5
23706 cat conftest.s >&5
23707 fi
23708 rm -f conftest.o conftest.s
23709 fi
23710 fi
23711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23712 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23713 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23714
23715 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23716
23717 fi
23718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23719 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23720 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23721 $as_echo_n "(cached) " >&6
23722 else
23723 gcc_cv_as_alpha_jsrdirect_relocs=no
23724 if test $in_tree_gas = yes; then
23725 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23726 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23727 fi
23728 elif test x$gcc_cv_as != x; then
23729 $as_echo ' .set nomacro
23730 .text
23731 ldq $27, a($29) !literal!1
23732 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23733 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23735 (eval $ac_try) 2>&5
23736 ac_status=$?
23737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23738 test $ac_status = 0; }; }
23739 then
23740 gcc_cv_as_alpha_jsrdirect_relocs=yes
23741 else
23742 echo "configure: failed program was" >&5
23743 cat conftest.s >&5
23744 fi
23745 rm -f conftest.o conftest.s
23746 fi
23747 fi
23748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23749 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23750 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23751
23752 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23753
23754 fi
23755 ;;
23756
23757 cris-*-*)
23758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23759 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23760 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23761 $as_echo_n "(cached) " >&6
23762 else
23763 gcc_cv_as_cris_no_mul_bug=no
23764 if test $in_tree_gas = yes; then
23765 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23766 then gcc_cv_as_cris_no_mul_bug=yes
23767 fi
23768 elif test x$gcc_cv_as != x; then
23769 $as_echo '.text' > conftest.s
23770 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23772 (eval $ac_try) 2>&5
23773 ac_status=$?
23774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23775 test $ac_status = 0; }; }
23776 then
23777 gcc_cv_as_cris_no_mul_bug=yes
23778 else
23779 echo "configure: failed program was" >&5
23780 cat conftest.s >&5
23781 fi
23782 rm -f conftest.o conftest.s
23783 fi
23784 fi
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23786 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23787 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23788
23789 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23790
23791 fi
23792 ;;
23793
23794 sparc*-*-*)
23795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23796 $as_echo_n "checking assembler for .register... " >&6; }
23797 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23798 $as_echo_n "(cached) " >&6
23799 else
23800 gcc_cv_as_sparc_register_op=no
23801 if test x$gcc_cv_as != x; then
23802 $as_echo '.register %g2, #scratch' > conftest.s
23803 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23805 (eval $ac_try) 2>&5
23806 ac_status=$?
23807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23808 test $ac_status = 0; }; }
23809 then
23810 gcc_cv_as_sparc_register_op=yes
23811 else
23812 echo "configure: failed program was" >&5
23813 cat conftest.s >&5
23814 fi
23815 rm -f conftest.o conftest.s
23816 fi
23817 fi
23818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23819 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23820 if test $gcc_cv_as_sparc_register_op = yes; then
23821
23822 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23823
23824 fi
23825
23826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23827 $as_echo_n "checking assembler for -relax option... " >&6; }
23828 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23829 $as_echo_n "(cached) " >&6
23830 else
23831 gcc_cv_as_sparc_relax=no
23832 if test x$gcc_cv_as != x; then
23833 $as_echo '.text' > conftest.s
23834 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23836 (eval $ac_try) 2>&5
23837 ac_status=$?
23838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23839 test $ac_status = 0; }; }
23840 then
23841 gcc_cv_as_sparc_relax=yes
23842 else
23843 echo "configure: failed program was" >&5
23844 cat conftest.s >&5
23845 fi
23846 rm -f conftest.o conftest.s
23847 fi
23848 fi
23849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23850 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23851 if test $gcc_cv_as_sparc_relax = yes; then
23852
23853 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23854
23855 fi
23856
23857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23858 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23859 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23860 $as_echo_n "(cached) " >&6
23861 else
23862 gcc_cv_as_sparc_gotdata_op=no
23863 if test x$gcc_cv_as != x; then
23864 $as_echo '.text
23865 .align 4
23866 foo:
23867 nop
23868 bar:
23869 sethi %gdop_hix22(foo), %g1
23870 xor %g1, %gdop_lox10(foo), %g1
23871 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23872 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23874 (eval $ac_try) 2>&5
23875 ac_status=$?
23876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23877 test $ac_status = 0; }; }
23878 then
23879 if test x$gcc_cv_ld != x \
23880 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23881 if test x$gcc_cv_objdump != x; then
23882 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
23883 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
23884 gcc_cv_as_sparc_gotdata_op=no
23885 else
23886 gcc_cv_as_sparc_gotdata_op=yes
23887 fi
23888 fi
23889 fi
23890 rm -f conftest
23891 else
23892 echo "configure: failed program was" >&5
23893 cat conftest.s >&5
23894 fi
23895 rm -f conftest.o conftest.s
23896 fi
23897 fi
23898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23899 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23900 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23901
23902 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23903
23904 fi
23905
23906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23907 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23908 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23909 $as_echo_n "(cached) " >&6
23910 else
23911 gcc_cv_as_sparc_ua_pcrel=no
23912 if test x$gcc_cv_as != x; then
23913 $as_echo '.text
23914 foo:
23915 nop
23916 .data
23917 .align 4
23918 .byte 0
23919 .uaword %r_disp32(foo)' > conftest.s
23920 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23922 (eval $ac_try) 2>&5
23923 ac_status=$?
23924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23925 test $ac_status = 0; }; }
23926 then
23927 if test x$gcc_cv_ld != x \
23928 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23929 gcc_cv_as_sparc_ua_pcrel=yes
23930 fi
23931 rm -f conftest
23932 else
23933 echo "configure: failed program was" >&5
23934 cat conftest.s >&5
23935 fi
23936 rm -f conftest.o conftest.s
23937 fi
23938 fi
23939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23940 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23941 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23942
23943 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23944
23945
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23947 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23948 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23949 $as_echo_n "(cached) " >&6
23950 else
23951 gcc_cv_as_sparc_ua_pcrel_hidden=no
23952 if test x$gcc_cv_as != x; then
23953 $as_echo '.data
23954 .align 4
23955 .byte 0x31
23956 .uaword %r_disp32(foo)
23957 .byte 0x32, 0x33, 0x34
23958 .global foo
23959 .hidden foo
23960 foo:
23961 .skip 4' > conftest.s
23962 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23964 (eval $ac_try) 2>&5
23965 ac_status=$?
23966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23967 test $ac_status = 0; }; }
23968 then
23969 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
23970 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
23971 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
23972 | grep ' 31000000 07323334' > /dev/null 2>&1; then
23973 if $gcc_cv_objdump -R conftest 2> /dev/null \
23974 | grep 'DISP32' > /dev/null 2>&1; then
23975 :
23976 else
23977 gcc_cv_as_sparc_ua_pcrel_hidden=yes
23978 fi
23979 fi
23980 rm -f conftest
23981 else
23982 echo "configure: failed program was" >&5
23983 cat conftest.s >&5
23984 fi
23985 rm -f conftest.o conftest.s
23986 fi
23987 fi
23988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23989 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23990 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23991
23992 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23993
23994 fi
23995
23996 fi # unaligned pcrel relocs
23997
23998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
23999 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24000 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24001 $as_echo_n "(cached) " >&6
24002 else
24003 gcc_cv_as_sparc_offsetable_lo10=no
24004 if test x$gcc_cv_as != x; then
24005 $as_echo '.text
24006 or %g1, %lo(ab) + 12, %g1
24007 or %g1, %lo(ab + 12), %g1' > conftest.s
24008 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24010 (eval $ac_try) 2>&5
24011 ac_status=$?
24012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24013 test $ac_status = 0; }; }
24014 then
24015 if test x$gcc_cv_objdump != x \
24016 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24017 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24018 gcc_cv_as_sparc_offsetable_lo10=yes
24019 fi
24020 else
24021 echo "configure: failed program was" >&5
24022 cat conftest.s >&5
24023 fi
24024 rm -f conftest.o conftest.s
24025 fi
24026 fi
24027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24028 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24029 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24030
24031 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24032
24033 fi
24034
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24036 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24037 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24038 $as_echo_n "(cached) " >&6
24039 else
24040 gcc_cv_as_sparc_fmaf=no
24041 if test x$gcc_cv_as != x; then
24042 $as_echo '.text
24043 .register %g2, #scratch
24044 .register %g3, #scratch
24045 .align 4
24046 fmaddd %f0, %f2, %f4, %f6
24047 addxccc %g1, %g2, %g3
24048 fsrl32 %f2, %f4, %f8
24049 fnaddd %f10, %f12, %f14' > conftest.s
24050 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24052 (eval $ac_try) 2>&5
24053 ac_status=$?
24054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24055 test $ac_status = 0; }; }
24056 then
24057 gcc_cv_as_sparc_fmaf=yes
24058 else
24059 echo "configure: failed program was" >&5
24060 cat conftest.s >&5
24061 fi
24062 rm -f conftest.o conftest.s
24063 fi
24064 fi
24065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24066 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24067 if test $gcc_cv_as_sparc_fmaf = yes; then
24068
24069 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24070
24071 fi
24072 ;;
24073
24074 i[34567]86-*-* | x86_64-*-*)
24075 case $target_os in
24076 cygwin*)
24077 # Full C++ conformance when using a shared libstdc++-v3 requires some
24078 # support from the Cygwin DLL, which in more recent versions exports
24079 # wrappers to aid in interposing and redirecting operators new, delete,
24080 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24081 # are configuring for a version of Cygwin that exports the wrappers.
24082 if test x$host = x$target; then
24083 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24084 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24085 gcc_ac_cygwin_dll_wrappers=yes
24086 else
24087 gcc_ac_cygwin_dll_wrappers=no
24088 fi
24089
24090 else
24091 # Can't check presence of libc functions during cross-compile, so
24092 # we just have to assume we're building for an up-to-date target.
24093 gcc_ac_cygwin_dll_wrappers=yes
24094 fi
24095
24096 cat >>confdefs.h <<_ACEOF
24097 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24098 _ACEOF
24099
24100 esac
24101 case $target_os in
24102 cygwin* | pe | mingw32* | interix*)
24103 # Recent binutils allows the three-operand form of ".comm" on PE. This
24104 # definition is used unconditionally to initialise the default state of
24105 # the target option variable that governs usage of the feature.
24106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24107 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24108 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24109 $as_echo_n "(cached) " >&6
24110 else
24111 gcc_cv_as_comm_has_align=no
24112 if test $in_tree_gas = yes; then
24113 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24114 then gcc_cv_as_comm_has_align=yes
24115 fi
24116 elif test x$gcc_cv_as != x; then
24117 $as_echo '.comm foo,1,32' > conftest.s
24118 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24120 (eval $ac_try) 2>&5
24121 ac_status=$?
24122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24123 test $ac_status = 0; }; }
24124 then
24125 gcc_cv_as_comm_has_align=yes
24126 else
24127 echo "configure: failed program was" >&5
24128 cat conftest.s >&5
24129 fi
24130 rm -f conftest.o conftest.s
24131 fi
24132 fi
24133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24134 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24135
24136
24137 cat >>confdefs.h <<_ACEOF
24138 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24139 _ACEOF
24140
24141 # Used for DWARF 2 in PE
24142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24143 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24144 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24145 $as_echo_n "(cached) " >&6
24146 else
24147 gcc_cv_as_ix86_pe_secrel32=no
24148 if test $in_tree_gas = yes; then
24149 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24150 then gcc_cv_as_ix86_pe_secrel32=yes
24151 fi
24152 elif test x$gcc_cv_as != x; then
24153 $as_echo '.text
24154 foo: nop
24155 .data
24156 .secrel32 foo' > conftest.s
24157 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24159 (eval $ac_try) 2>&5
24160 ac_status=$?
24161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24162 test $ac_status = 0; }; }
24163 then
24164 if test x$gcc_cv_ld != x \
24165 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24166 gcc_cv_as_ix86_pe_secrel32=yes
24167 fi
24168 rm -f conftest
24169 else
24170 echo "configure: failed program was" >&5
24171 cat conftest.s >&5
24172 fi
24173 rm -f conftest.o conftest.s
24174 fi
24175 fi
24176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24177 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24178 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24179
24180 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24181
24182 fi
24183 # Test if the assembler supports the extended form of the .section
24184 # directive that specifies section alignment. LTO support uses this,
24185 # but normally only after installation, so we warn but don't fail the
24186 # configure if LTO is enabled but the assembler does not support it.
24187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24188 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24189 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24190 $as_echo_n "(cached) " >&6
24191 else
24192 gcc_cv_as_section_has_align=no
24193 if test $in_tree_gas = yes; then
24194 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24195 then gcc_cv_as_section_has_align=yes
24196 fi
24197 elif test x$gcc_cv_as != x; then
24198 $as_echo '.section lto_test,"dr0"' > conftest.s
24199 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24201 (eval $ac_try) 2>&5
24202 ac_status=$?
24203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24204 test $ac_status = 0; }; }
24205 then
24206 gcc_cv_as_section_has_align=yes
24207 else
24208 echo "configure: failed program was" >&5
24209 cat conftest.s >&5
24210 fi
24211 rm -f conftest.o conftest.s
24212 fi
24213 fi
24214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24215 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24216
24217 if test x$gcc_cv_as_section_has_align != xyes; then
24218 case ",$enable_languages," in
24219 *,lto,*)
24220 { $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
24221 $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;}
24222 ;;
24223 esac
24224 fi
24225 # Test if the assembler supports the section flag 'e' for specifying
24226 # an excluded section.
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24228 $as_echo_n "checking assembler for .section with e... " >&6; }
24229 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24230 $as_echo_n "(cached) " >&6
24231 else
24232 gcc_cv_as_section_has_e=no
24233 if test $in_tree_gas = yes; then
24234 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24235 then gcc_cv_as_section_has_e=yes
24236 fi
24237 elif test x$gcc_cv_as != x; then
24238 $as_echo '.section foo1,"e"
24239 .byte 0,0,0,0' > conftest.s
24240 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24242 (eval $ac_try) 2>&5
24243 ac_status=$?
24244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24245 test $ac_status = 0; }; }
24246 then
24247 gcc_cv_as_section_has_e=yes
24248 else
24249 echo "configure: failed program was" >&5
24250 cat conftest.s >&5
24251 fi
24252 rm -f conftest.o conftest.s
24253 fi
24254 fi
24255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24256 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24257
24258
24259 cat >>confdefs.h <<_ACEOF
24260 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24261 _ACEOF
24262
24263 ;;
24264 esac
24265
24266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24267 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24268 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24269 $as_echo_n "(cached) " >&6
24270 else
24271 gcc_cv_as_ix86_filds=no
24272 if test x$gcc_cv_as != x; then
24273 $as_echo 'filds mem; fists mem' > conftest.s
24274 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24276 (eval $ac_try) 2>&5
24277 ac_status=$?
24278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24279 test $ac_status = 0; }; }
24280 then
24281 gcc_cv_as_ix86_filds=yes
24282 else
24283 echo "configure: failed program was" >&5
24284 cat conftest.s >&5
24285 fi
24286 rm -f conftest.o conftest.s
24287 fi
24288 fi
24289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24290 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24291 if test $gcc_cv_as_ix86_filds = yes; then
24292
24293 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24294
24295 fi
24296
24297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24298 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24299 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24300 $as_echo_n "(cached) " >&6
24301 else
24302 gcc_cv_as_ix86_fildq=no
24303 if test x$gcc_cv_as != x; then
24304 $as_echo 'fildq mem; fistpq mem' > conftest.s
24305 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24307 (eval $ac_try) 2>&5
24308 ac_status=$?
24309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24310 test $ac_status = 0; }; }
24311 then
24312 gcc_cv_as_ix86_fildq=yes
24313 else
24314 echo "configure: failed program was" >&5
24315 cat conftest.s >&5
24316 fi
24317 rm -f conftest.o conftest.s
24318 fi
24319 fi
24320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24321 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24322 if test $gcc_cv_as_ix86_fildq = yes; then
24323
24324 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24325
24326 fi
24327
24328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24329 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24330 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24331 $as_echo_n "(cached) " >&6
24332 else
24333 gcc_cv_as_ix86_cmov_sun_syntax=no
24334 if test x$gcc_cv_as != x; then
24335 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24336 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24338 (eval $ac_try) 2>&5
24339 ac_status=$?
24340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24341 test $ac_status = 0; }; }
24342 then
24343 gcc_cv_as_ix86_cmov_sun_syntax=yes
24344 else
24345 echo "configure: failed program was" >&5
24346 cat conftest.s >&5
24347 fi
24348 rm -f conftest.o conftest.s
24349 fi
24350 fi
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24352 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24353 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24354
24355 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24356
24357 fi
24358
24359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24360 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24361 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24362 $as_echo_n "(cached) " >&6
24363 else
24364 gcc_cv_as_ix86_ffreep=no
24365 if test x$gcc_cv_as != x; then
24366 $as_echo 'ffreep %st(1)' > conftest.s
24367 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24369 (eval $ac_try) 2>&5
24370 ac_status=$?
24371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24372 test $ac_status = 0; }; }
24373 then
24374 gcc_cv_as_ix86_ffreep=yes
24375 else
24376 echo "configure: failed program was" >&5
24377 cat conftest.s >&5
24378 fi
24379 rm -f conftest.o conftest.s
24380 fi
24381 fi
24382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24383 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24384 if test $gcc_cv_as_ix86_ffreep = yes; then
24385
24386 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24387
24388 fi
24389
24390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24391 $as_echo_n "checking assembler for .quad directive... " >&6; }
24392 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24393 $as_echo_n "(cached) " >&6
24394 else
24395 gcc_cv_as_ix86_quad=no
24396 if test x$gcc_cv_as != x; then
24397 $as_echo '.quad 0' > conftest.s
24398 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24400 (eval $ac_try) 2>&5
24401 ac_status=$?
24402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24403 test $ac_status = 0; }; }
24404 then
24405 gcc_cv_as_ix86_quad=yes
24406 else
24407 echo "configure: failed program was" >&5
24408 cat conftest.s >&5
24409 fi
24410 rm -f conftest.o conftest.s
24411 fi
24412 fi
24413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24414 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24415 if test $gcc_cv_as_ix86_quad = yes; then
24416
24417 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24418
24419 fi
24420
24421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24422 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24423 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24424 $as_echo_n "(cached) " >&6
24425 else
24426 gcc_cv_as_ix86_sahf=no
24427 if test x$gcc_cv_as != x; then
24428 $as_echo '.code64
24429 sahf' > conftest.s
24430 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24432 (eval $ac_try) 2>&5
24433 ac_status=$?
24434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24435 test $ac_status = 0; }; }
24436 then
24437 gcc_cv_as_ix86_sahf=yes
24438 else
24439 echo "configure: failed program was" >&5
24440 cat conftest.s >&5
24441 fi
24442 rm -f conftest.o conftest.s
24443 fi
24444 fi
24445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24446 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24447 if test $gcc_cv_as_ix86_sahf = yes; then
24448
24449 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24450
24451 fi
24452
24453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24454 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24455 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24456 $as_echo_n "(cached) " >&6
24457 else
24458 gcc_cv_as_ix86_hle=no
24459 if test x$gcc_cv_as != x; then
24460 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24461 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24463 (eval $ac_try) 2>&5
24464 ac_status=$?
24465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24466 test $ac_status = 0; }; }
24467 then
24468 gcc_cv_as_ix86_hle=yes
24469 else
24470 echo "configure: failed program was" >&5
24471 cat conftest.s >&5
24472 fi
24473 rm -f conftest.o conftest.s
24474 fi
24475 fi
24476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24477 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24478 if test $gcc_cv_as_ix86_hle = yes; then
24479
24480 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24481
24482 fi
24483
24484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24485 $as_echo_n "checking assembler for swap suffix... " >&6; }
24486 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24487 $as_echo_n "(cached) " >&6
24488 else
24489 gcc_cv_as_ix86_swap=no
24490 if test x$gcc_cv_as != x; then
24491 $as_echo 'movl.s %esp, %ebp' > conftest.s
24492 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24493 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24494 (eval $ac_try) 2>&5
24495 ac_status=$?
24496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24497 test $ac_status = 0; }; }
24498 then
24499 gcc_cv_as_ix86_swap=yes
24500 else
24501 echo "configure: failed program was" >&5
24502 cat conftest.s >&5
24503 fi
24504 rm -f conftest.o conftest.s
24505 fi
24506 fi
24507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24508 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24509 if test $gcc_cv_as_ix86_swap = yes; then
24510
24511 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24512
24513 fi
24514
24515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24516 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24517 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24518 $as_echo_n "(cached) " >&6
24519 else
24520 gcc_cv_as_ix86_diff_sect_delta=no
24521 if test x$gcc_cv_as != x; then
24522 $as_echo '.section .rodata
24523 .L1:
24524 .long .L2-.L1
24525 .long .L3-.L1
24526 .text
24527 .L3: nop
24528 .L2: nop' > conftest.s
24529 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24531 (eval $ac_try) 2>&5
24532 ac_status=$?
24533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24534 test $ac_status = 0; }; }
24535 then
24536 gcc_cv_as_ix86_diff_sect_delta=yes
24537 else
24538 echo "configure: failed program was" >&5
24539 cat conftest.s >&5
24540 fi
24541 rm -f conftest.o conftest.s
24542 fi
24543 fi
24544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24545 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24546 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24547
24548 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24549
24550 fi
24551
24552 # These two are used unconditionally by i386.[ch]; it is to be defined
24553 # to 1 if the feature is present, 0 otherwise.
24554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24555 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24556 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24557 $as_echo_n "(cached) " >&6
24558 else
24559 gcc_cv_as_ix86_gotoff_in_data=no
24560 if test $in_tree_gas = yes; then
24561 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24562 then gcc_cv_as_ix86_gotoff_in_data=yes
24563 fi
24564 elif test x$gcc_cv_as != x; then
24565 $as_echo ' .text
24566 .L0:
24567 nop
24568 .data
24569 .long .L0@GOTOFF' > conftest.s
24570 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24572 (eval $ac_try) 2>&5
24573 ac_status=$?
24574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24575 test $ac_status = 0; }; }
24576 then
24577 gcc_cv_as_ix86_gotoff_in_data=yes
24578 else
24579 echo "configure: failed program was" >&5
24580 cat conftest.s >&5
24581 fi
24582 rm -f conftest.o conftest.s
24583 fi
24584 fi
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24586 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24587
24588
24589 cat >>confdefs.h <<_ACEOF
24590 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24591 _ACEOF
24592
24593
24594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24595 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24596 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24597 $as_echo_n "(cached) " >&6
24598 else
24599 gcc_cv_as_ix86_rep_lock_prefix=no
24600 if test x$gcc_cv_as != x; then
24601 $as_echo 'rep movsl
24602 rep ret
24603 rep nop
24604 rep bsf %ecx, %eax
24605 rep bsr %ecx, %eax
24606 lock addl %edi, (%eax,%esi)
24607 lock orl $0, (%esp)' > conftest.s
24608 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24610 (eval $ac_try) 2>&5
24611 ac_status=$?
24612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24613 test $ac_status = 0; }; }
24614 then
24615 gcc_cv_as_ix86_rep_lock_prefix=yes
24616 else
24617 echo "configure: failed program was" >&5
24618 cat conftest.s >&5
24619 fi
24620 rm -f conftest.o conftest.s
24621 fi
24622 fi
24623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24624 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24625 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24626
24627 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24628
24629 fi
24630
24631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24632 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24633 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24634 $as_echo_n "(cached) " >&6
24635 else
24636 gcc_cv_as_ix86_tlsgdplt=no
24637 if test x$gcc_cv_as != x; then
24638 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24639 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24641 (eval $ac_try) 2>&5
24642 ac_status=$?
24643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24644 test $ac_status = 0; }; }
24645 then
24646 if test x$gcc_cv_ld != x \
24647 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24648 gcc_cv_as_ix86_tlsgdplt=yes
24649 fi
24650 rm -f conftest
24651 else
24652 echo "configure: failed program was" >&5
24653 cat conftest.s >&5
24654 fi
24655 rm -f conftest.o conftest.s
24656 fi
24657 fi
24658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24659 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24660 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24661
24662 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24663
24664 fi
24665
24666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24667 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24668 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24669 $as_echo_n "(cached) " >&6
24670 else
24671 gcc_cv_as_ix86_tlsldmplt=no
24672 if test x$gcc_cv_as != x; then
24673 $as_echo 'tls_ld:
24674 call tls_ld@tlsldmplt' > conftest.s
24675 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24677 (eval $ac_try) 2>&5
24678 ac_status=$?
24679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24680 test $ac_status = 0; }; }
24681 then
24682 if test x$gcc_cv_ld != x \
24683 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24684 gcc_cv_as_ix86_tlsldmplt=yes
24685 fi
24686 rm -f conftest
24687 else
24688 echo "configure: failed program was" >&5
24689 cat conftest.s >&5
24690 fi
24691 rm -f conftest.o conftest.s
24692 fi
24693 fi
24694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24695 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24696 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24697
24698 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24699
24700 fi
24701
24702 ;;
24703
24704 ia64*-*-*)
24705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24706 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24707 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24708 $as_echo_n "(cached) " >&6
24709 else
24710 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24711 if test $in_tree_gas = yes; then
24712 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24713 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24714 fi
24715 elif test x$gcc_cv_as != x; then
24716 $as_echo ' .text
24717 addl r15 = @ltoffx(x#), gp
24718 ;;
24719 ld8.mov r16 = [r15], x#' > conftest.s
24720 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24722 (eval $ac_try) 2>&5
24723 ac_status=$?
24724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24725 test $ac_status = 0; }; }
24726 then
24727 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24728 else
24729 echo "configure: failed program was" >&5
24730 cat conftest.s >&5
24731 fi
24732 rm -f conftest.o conftest.s
24733 fi
24734 fi
24735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24736 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24737 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24738
24739 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24740
24741 fi
24742
24743 ;;
24744
24745 powerpc*-*-*)
24746 case $target in
24747 *-*-aix*) conftest_s=' .machine "pwr5"
24748 .csect .text[PR]
24749 mfcr 3,128';;
24750 *-*-darwin*)
24751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24752 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24753 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24754 $as_echo_n "(cached) " >&6
24755 else
24756 gcc_cv_as_machine_directive=no
24757 if test x$gcc_cv_as != x; then
24758 $as_echo ' .machine ppc7400' > conftest.s
24759 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24761 (eval $ac_try) 2>&5
24762 ac_status=$?
24763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24764 test $ac_status = 0; }; }
24765 then
24766 gcc_cv_as_machine_directive=yes
24767 else
24768 echo "configure: failed program was" >&5
24769 cat conftest.s >&5
24770 fi
24771 rm -f conftest.o conftest.s
24772 fi
24773 fi
24774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24775 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24776
24777 if test x$gcc_cv_as_machine_directive != xyes; then
24778 echo "*** This target requires an assembler supporting \".machine\"" >&2
24779 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24780 test x$build = x$target && exit 1
24781 fi
24782 conftest_s=' .text
24783 mfcr r3,128';;
24784 *) conftest_s=' .machine power4
24785 .text
24786 mfcr 3,128';;
24787 esac
24788
24789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24790 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24791 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24792 $as_echo_n "(cached) " >&6
24793 else
24794 gcc_cv_as_powerpc_mfcrf=no
24795 if test $in_tree_gas = yes; then
24796 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24797 then gcc_cv_as_powerpc_mfcrf=yes
24798 fi
24799 elif test x$gcc_cv_as != x; then
24800 $as_echo "$conftest_s" > conftest.s
24801 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24803 (eval $ac_try) 2>&5
24804 ac_status=$?
24805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24806 test $ac_status = 0; }; }
24807 then
24808 gcc_cv_as_powerpc_mfcrf=yes
24809 else
24810 echo "configure: failed program was" >&5
24811 cat conftest.s >&5
24812 fi
24813 rm -f conftest.o conftest.s
24814 fi
24815 fi
24816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24817 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24818 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24819
24820 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24821
24822 fi
24823
24824 case $target in
24825 *-*-aix*) conftest_s=' .machine "pwr5"
24826 .csect .text[PR]
24827 popcntb 3,3';;
24828 *) conftest_s=' .machine power5
24829 .text
24830 popcntb 3,3';;
24831 esac
24832
24833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24834 $as_echo_n "checking assembler for popcntb support... " >&6; }
24835 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24836 $as_echo_n "(cached) " >&6
24837 else
24838 gcc_cv_as_powerpc_popcntb=no
24839 if test $in_tree_gas = yes; then
24840 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24841 then gcc_cv_as_powerpc_popcntb=yes
24842 fi
24843 elif test x$gcc_cv_as != x; then
24844 $as_echo "$conftest_s" > conftest.s
24845 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24847 (eval $ac_try) 2>&5
24848 ac_status=$?
24849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24850 test $ac_status = 0; }; }
24851 then
24852 gcc_cv_as_powerpc_popcntb=yes
24853 else
24854 echo "configure: failed program was" >&5
24855 cat conftest.s >&5
24856 fi
24857 rm -f conftest.o conftest.s
24858 fi
24859 fi
24860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24861 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24862 if test $gcc_cv_as_powerpc_popcntb = yes; then
24863
24864 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24865
24866 fi
24867
24868 case $target in
24869 *-*-aix*) conftest_s=' .machine "pwr5x"
24870 .csect .text[PR]
24871 frin 1,1';;
24872 *) conftest_s=' .machine power5
24873 .text
24874 frin 1,1';;
24875 esac
24876
24877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24878 $as_echo_n "checking assembler for fp round support... " >&6; }
24879 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24880 $as_echo_n "(cached) " >&6
24881 else
24882 gcc_cv_as_powerpc_fprnd=no
24883 if test $in_tree_gas = yes; then
24884 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24885 then gcc_cv_as_powerpc_fprnd=yes
24886 fi
24887 elif test x$gcc_cv_as != x; then
24888 $as_echo "$conftest_s" > conftest.s
24889 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24891 (eval $ac_try) 2>&5
24892 ac_status=$?
24893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24894 test $ac_status = 0; }; }
24895 then
24896 gcc_cv_as_powerpc_fprnd=yes
24897 else
24898 echo "configure: failed program was" >&5
24899 cat conftest.s >&5
24900 fi
24901 rm -f conftest.o conftest.s
24902 fi
24903 fi
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24905 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24906 if test $gcc_cv_as_powerpc_fprnd = yes; then
24907
24908 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24909
24910 fi
24911
24912 case $target in
24913 *-*-aix*) conftest_s=' .machine "pwr6"
24914 .csect .text[PR]
24915 mffgpr 1,3';;
24916 *) conftest_s=' .machine power6
24917 .text
24918 mffgpr 1,3';;
24919 esac
24920
24921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24922 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24923 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24924 $as_echo_n "(cached) " >&6
24925 else
24926 gcc_cv_as_powerpc_mfpgpr=no
24927 if test $in_tree_gas = yes; then
24928 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24929 then gcc_cv_as_powerpc_mfpgpr=yes
24930 fi
24931 elif test x$gcc_cv_as != x; then
24932 $as_echo "$conftest_s" > conftest.s
24933 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24935 (eval $ac_try) 2>&5
24936 ac_status=$?
24937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24938 test $ac_status = 0; }; }
24939 then
24940 gcc_cv_as_powerpc_mfpgpr=yes
24941 else
24942 echo "configure: failed program was" >&5
24943 cat conftest.s >&5
24944 fi
24945 rm -f conftest.o conftest.s
24946 fi
24947 fi
24948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
24949 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24950 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24951
24952 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24953
24954 fi
24955
24956 case $target in
24957 *-*-aix*) conftest_s=' .csect .text[PR]
24958 LCF..0:
24959 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24960 *-*-darwin*)
24961 conftest_s=' .text
24962 LCF0:
24963 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24964 *) conftest_s=' .text
24965 .LCF0:
24966 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24967 esac
24968
24969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24970 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24971 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24972 $as_echo_n "(cached) " >&6
24973 else
24974 gcc_cv_as_powerpc_rel16=no
24975 if test $in_tree_gas = yes; then
24976 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24977 then gcc_cv_as_powerpc_rel16=yes
24978 fi
24979 elif test x$gcc_cv_as != x; then
24980 $as_echo "$conftest_s" > conftest.s
24981 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24983 (eval $ac_try) 2>&5
24984 ac_status=$?
24985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24986 test $ac_status = 0; }; }
24987 then
24988 gcc_cv_as_powerpc_rel16=yes
24989 else
24990 echo "configure: failed program was" >&5
24991 cat conftest.s >&5
24992 fi
24993 rm -f conftest.o conftest.s
24994 fi
24995 fi
24996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24997 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24998 if test $gcc_cv_as_powerpc_rel16 = yes; then
24999
25000 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25001
25002 fi
25003
25004 case $target in
25005 *-*-aix*) conftest_s=' .machine "pwr6"
25006 .csect .text[PR]
25007 cmpb 3,4,5';;
25008 *) conftest_s=' .machine power6
25009 .text
25010 cmpb 3,4,5';;
25011 esac
25012
25013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25014 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25015 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25016 $as_echo_n "(cached) " >&6
25017 else
25018 gcc_cv_as_powerpc_cmpb=no
25019 if test $in_tree_gas = yes; then
25020 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25021 then gcc_cv_as_powerpc_cmpb=yes
25022 fi
25023 elif test x$gcc_cv_as != x; then
25024 $as_echo "$conftest_s" > conftest.s
25025 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25027 (eval $ac_try) 2>&5
25028 ac_status=$?
25029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25030 test $ac_status = 0; }; }
25031 then
25032 gcc_cv_as_powerpc_cmpb=yes
25033 else
25034 echo "configure: failed program was" >&5
25035 cat conftest.s >&5
25036 fi
25037 rm -f conftest.o conftest.s
25038 fi
25039 fi
25040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25041 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25042 if test $gcc_cv_as_powerpc_cmpb = yes; then
25043
25044 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25045
25046 fi
25047
25048 case $target in
25049 *-*-aix*) conftest_s=' .machine "pwr6"
25050 .csect .text[PR]
25051 dadd 1,2,3';;
25052 *) conftest_s=' .machine power6
25053 .text
25054 dadd 1,2,3';;
25055 esac
25056
25057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25058 $as_echo_n "checking assembler for decimal float support... " >&6; }
25059 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25060 $as_echo_n "(cached) " >&6
25061 else
25062 gcc_cv_as_powerpc_dfp=no
25063 if test $in_tree_gas = yes; then
25064 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25065 then gcc_cv_as_powerpc_dfp=yes
25066 fi
25067 elif test x$gcc_cv_as != x; then
25068 $as_echo "$conftest_s" > conftest.s
25069 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25071 (eval $ac_try) 2>&5
25072 ac_status=$?
25073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25074 test $ac_status = 0; }; }
25075 then
25076 gcc_cv_as_powerpc_dfp=yes
25077 else
25078 echo "configure: failed program was" >&5
25079 cat conftest.s >&5
25080 fi
25081 rm -f conftest.o conftest.s
25082 fi
25083 fi
25084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25085 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25086 if test $gcc_cv_as_powerpc_dfp = yes; then
25087
25088 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25089
25090 fi
25091
25092 case $target in
25093 *-*-aix*) conftest_s=' .machine "pwr7"
25094 .csect .text[PR]
25095 lxvd2x 1,2,3';;
25096 *) conftest_s=' .machine power7
25097 .text
25098 lxvd2x 1,2,3';;
25099 esac
25100
25101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25102 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25103 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25104 $as_echo_n "(cached) " >&6
25105 else
25106 gcc_cv_as_powerpc_vsx=no
25107 if test $in_tree_gas = yes; then
25108 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25109 then gcc_cv_as_powerpc_vsx=yes
25110 fi
25111 elif test x$gcc_cv_as != x; then
25112 $as_echo "$conftest_s" > conftest.s
25113 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25115 (eval $ac_try) 2>&5
25116 ac_status=$?
25117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25118 test $ac_status = 0; }; }
25119 then
25120 gcc_cv_as_powerpc_vsx=yes
25121 else
25122 echo "configure: failed program was" >&5
25123 cat conftest.s >&5
25124 fi
25125 rm -f conftest.o conftest.s
25126 fi
25127 fi
25128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25129 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25130 if test $gcc_cv_as_powerpc_vsx = yes; then
25131
25132 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25133
25134 fi
25135
25136 case $target in
25137 *-*-aix*) conftest_s=' .machine "pwr7"
25138 .csect .text[PR]
25139 popcntd 3,3';;
25140 *) conftest_s=' .machine power7
25141 .text
25142 popcntd 3,3';;
25143 esac
25144
25145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25146 $as_echo_n "checking assembler for popcntd support... " >&6; }
25147 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25148 $as_echo_n "(cached) " >&6
25149 else
25150 gcc_cv_as_powerpc_popcntd=no
25151 if test $in_tree_gas = yes; then
25152 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25153 then gcc_cv_as_powerpc_popcntd=yes
25154 fi
25155 elif test x$gcc_cv_as != x; then
25156 $as_echo "$conftest_s" > conftest.s
25157 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25159 (eval $ac_try) 2>&5
25160 ac_status=$?
25161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25162 test $ac_status = 0; }; }
25163 then
25164 gcc_cv_as_powerpc_popcntd=yes
25165 else
25166 echo "configure: failed program was" >&5
25167 cat conftest.s >&5
25168 fi
25169 rm -f conftest.o conftest.s
25170 fi
25171 fi
25172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25173 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25174 if test $gcc_cv_as_powerpc_popcntd = yes; then
25175
25176 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25177
25178 fi
25179
25180 case $target in
25181 *-*-aix*) conftest_s=' .csect .text[PR]
25182 lwsync';;
25183 *) conftest_s=' .text
25184 lwsync';;
25185 esac
25186
25187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25188 $as_echo_n "checking assembler for lwsync support... " >&6; }
25189 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25190 $as_echo_n "(cached) " >&6
25191 else
25192 gcc_cv_as_powerpc_lwsync=no
25193 if test $in_tree_gas = yes; then
25194 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25195 then gcc_cv_as_powerpc_lwsync=yes
25196 fi
25197 elif test x$gcc_cv_as != x; then
25198 $as_echo "$conftest_s" > conftest.s
25199 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25201 (eval $ac_try) 2>&5
25202 ac_status=$?
25203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25204 test $ac_status = 0; }; }
25205 then
25206 gcc_cv_as_powerpc_lwsync=yes
25207 else
25208 echo "configure: failed program was" >&5
25209 cat conftest.s >&5
25210 fi
25211 rm -f conftest.o conftest.s
25212 fi
25213 fi
25214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25215 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25216 if test $gcc_cv_as_powerpc_lwsync = yes; then
25217
25218 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25219
25220 fi
25221
25222 case $target in
25223 *-*-aix*) conftest_s=' .machine "476"
25224 .csect .text[PR]
25225 dci 0';;
25226 *) conftest_s=' .machine "476"
25227 .text
25228 dci 0';;
25229 esac
25230
25231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25232 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25233 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25234 $as_echo_n "(cached) " >&6
25235 else
25236 gcc_cv_as_powerpc_dci=no
25237 if test $in_tree_gas = yes; then
25238 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25239 then gcc_cv_as_powerpc_dci=yes
25240 fi
25241 elif test x$gcc_cv_as != x; then
25242 $as_echo "$conftest_s" > conftest.s
25243 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25245 (eval $ac_try) 2>&5
25246 ac_status=$?
25247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25248 test $ac_status = 0; }; }
25249 then
25250 gcc_cv_as_powerpc_dci=yes
25251 else
25252 echo "configure: failed program was" >&5
25253 cat conftest.s >&5
25254 fi
25255 rm -f conftest.o conftest.s
25256 fi
25257 fi
25258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25259 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25260 if test $gcc_cv_as_powerpc_dci = yes; then
25261
25262 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25263
25264 fi
25265
25266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25267 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25268 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25269 $as_echo_n "(cached) " >&6
25270 else
25271 gcc_cv_as_powerpc_gnu_attribute=no
25272 if test $in_tree_gas = yes; then
25273 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25274 then gcc_cv_as_powerpc_gnu_attribute=yes
25275 fi
25276 elif test x$gcc_cv_as != x; then
25277 $as_echo '.gnu_attribute 4,1' > conftest.s
25278 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25280 (eval $ac_try) 2>&5
25281 ac_status=$?
25282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25283 test $ac_status = 0; }; }
25284 then
25285 gcc_cv_as_powerpc_gnu_attribute=yes
25286 else
25287 echo "configure: failed program was" >&5
25288 cat conftest.s >&5
25289 fi
25290 rm -f conftest.o conftest.s
25291 fi
25292 fi
25293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25294 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25295 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25296
25297 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25298
25299 fi
25300
25301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25302 $as_echo_n "checking assembler for tls marker support... " >&6; }
25303 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25304 $as_echo_n "(cached) " >&6
25305 else
25306 gcc_cv_as_powerpc_tls_markers=no
25307 if test $in_tree_gas = yes; then
25308 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25309 then gcc_cv_as_powerpc_tls_markers=yes
25310 fi
25311 elif test x$gcc_cv_as != x; then
25312 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25313 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25315 (eval $ac_try) 2>&5
25316 ac_status=$?
25317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25318 test $ac_status = 0; }; }
25319 then
25320 gcc_cv_as_powerpc_tls_markers=yes
25321 else
25322 echo "configure: failed program was" >&5
25323 cat conftest.s >&5
25324 fi
25325 rm -f conftest.o conftest.s
25326 fi
25327 fi
25328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25329 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25330 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25331
25332 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25333
25334 fi
25335
25336 case $target in
25337 *-*-aix*)
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25339 $as_echo_n "checking assembler for .ref support... " >&6; }
25340 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25341 $as_echo_n "(cached) " >&6
25342 else
25343 gcc_cv_as_aix_ref=no
25344 if test $in_tree_gas = yes; then
25345 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25346 then :
25347 fi
25348 elif test x$gcc_cv_as != x; then
25349 $as_echo ' .csect stuff[rw]
25350 stuff:
25351 .long 1
25352 .extern sym
25353 .ref sym
25354 ' > conftest.s
25355 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25356 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25357 (eval $ac_try) 2>&5
25358 ac_status=$?
25359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25360 test $ac_status = 0; }; }
25361 then
25362 gcc_cv_as_aix_ref=yes
25363 else
25364 echo "configure: failed program was" >&5
25365 cat conftest.s >&5
25366 fi
25367 rm -f conftest.o conftest.s
25368 fi
25369 fi
25370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25371 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25372 if test $gcc_cv_as_aix_ref = yes; then
25373
25374 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25375
25376 fi
25377 ;;
25378 esac
25379 ;;
25380
25381 mips*-*-*)
25382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25383 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25384 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25385 $as_echo_n "(cached) " >&6
25386 else
25387 gcc_cv_as_mips_explicit_relocs=no
25388 if test $in_tree_gas = yes; then
25389 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25390 then gcc_cv_as_mips_explicit_relocs=yes
25391 fi
25392 elif test x$gcc_cv_as != x; then
25393 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25394 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25396 (eval $ac_try) 2>&5
25397 ac_status=$?
25398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25399 test $ac_status = 0; }; }
25400 then
25401 gcc_cv_as_mips_explicit_relocs=yes
25402 else
25403 echo "configure: failed program was" >&5
25404 cat conftest.s >&5
25405 fi
25406 rm -f conftest.o conftest.s
25407 fi
25408 fi
25409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25410 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25411 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25412 if test x$target_cpu_default = x
25413 then target_cpu_default=MASK_EXPLICIT_RELOCS
25414 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25415 fi
25416 fi
25417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25418 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25419 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25420 $as_echo_n "(cached) " >&6
25421 else
25422 gcc_cv_as_mips_no_shared=no
25423 if test $in_tree_gas = yes; then
25424 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25425 then gcc_cv_as_mips_no_shared=yes
25426 fi
25427 elif test x$gcc_cv_as != x; then
25428 $as_echo 'nop' > conftest.s
25429 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25431 (eval $ac_try) 2>&5
25432 ac_status=$?
25433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25434 test $ac_status = 0; }; }
25435 then
25436 gcc_cv_as_mips_no_shared=yes
25437 else
25438 echo "configure: failed program was" >&5
25439 cat conftest.s >&5
25440 fi
25441 rm -f conftest.o conftest.s
25442 fi
25443 fi
25444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25445 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25446 if test $gcc_cv_as_mips_no_shared = yes; then
25447
25448 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25449
25450 fi
25451
25452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25453 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25454 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25455 $as_echo_n "(cached) " >&6
25456 else
25457 gcc_cv_as_mips_gnu_attribute=no
25458 if test $in_tree_gas = yes; then
25459 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25460 then gcc_cv_as_mips_gnu_attribute=yes
25461 fi
25462 elif test x$gcc_cv_as != x; then
25463 $as_echo '.gnu_attribute 4,1' > conftest.s
25464 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25466 (eval $ac_try) 2>&5
25467 ac_status=$?
25468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25469 test $ac_status = 0; }; }
25470 then
25471 gcc_cv_as_mips_gnu_attribute=yes
25472 else
25473 echo "configure: failed program was" >&5
25474 cat conftest.s >&5
25475 fi
25476 rm -f conftest.o conftest.s
25477 fi
25478 fi
25479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25480 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25481 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25482
25483 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25484
25485 fi
25486
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25488 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25489 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25490 $as_echo_n "(cached) " >&6
25491 else
25492 gcc_cv_as_mips_dtprelword=no
25493 if test $in_tree_gas = yes; then
25494 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25495 then gcc_cv_as_mips_dtprelword=yes
25496 fi
25497 elif test x$gcc_cv_as != x; then
25498 $as_echo '.section .tdata,"awT",@progbits
25499 x:
25500 .word 2
25501 .text
25502 .dtprelword x+0x8000' > conftest.s
25503 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25505 (eval $ac_try) 2>&5
25506 ac_status=$?
25507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25508 test $ac_status = 0; }; }
25509 then
25510 gcc_cv_as_mips_dtprelword=yes
25511 else
25512 echo "configure: failed program was" >&5
25513 cat conftest.s >&5
25514 fi
25515 rm -f conftest.o conftest.s
25516 fi
25517 fi
25518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25519 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25520 if test $gcc_cv_as_mips_dtprelword = yes; then
25521
25522 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25523
25524 fi
25525
25526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25527 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25528 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25529 $as_echo_n "(cached) " >&6
25530 else
25531 gcc_cv_as_mips_dspr1_mult=no
25532 if test x$gcc_cv_as != x; then
25533 $as_echo ' .set mips32r2
25534 .set nodspr2
25535 .set dsp
25536 madd $ac3,$4,$5
25537 maddu $ac3,$4,$5
25538 msub $ac3,$4,$5
25539 msubu $ac3,$4,$5
25540 mult $ac3,$4,$5
25541 multu $ac3,$4,$5' > conftest.s
25542 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25544 (eval $ac_try) 2>&5
25545 ac_status=$?
25546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25547 test $ac_status = 0; }; }
25548 then
25549 gcc_cv_as_mips_dspr1_mult=yes
25550 else
25551 echo "configure: failed program was" >&5
25552 cat conftest.s >&5
25553 fi
25554 rm -f conftest.o conftest.s
25555 fi
25556 fi
25557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25558 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25559 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25560
25561 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25562
25563 fi
25564
25565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25566 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25567 gcc_cv_as_ld_jalr_reloc=no
25568 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25569 if test $in_tree_ld = yes ; then
25570 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 \
25571 && test $in_tree_ld_is_elf = yes; then
25572 gcc_cv_as_ld_jalr_reloc=yes
25573 fi
25574 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25575 echo ' .ent x' > conftest.s
25576 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25577 echo ' ld $25,%call16(y)($28)' >> conftest.s
25578 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25579 echo '1: jalr $25' >> conftest.s
25580 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25581 echo '1: jalr $25' >> conftest.s
25582 echo ' .end x' >> conftest.s
25583 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25584 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25585 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25586 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25587 gcc_cv_as_ld_jalr_reloc=yes
25588 fi
25589 fi
25590 rm -f conftest.*
25591 fi
25592 fi
25593 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25594 if test x$target_cpu_default = x; then
25595 target_cpu_default=MASK_RELAX_PIC_CALLS
25596 else
25597 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25598 fi
25599 fi
25600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25601 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25602
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25604 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25605 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25606 $as_echo_n "(cached) " >&6
25607 else
25608 gcc_cv_ld_mips_personality_relaxation=no
25609 if test $in_tree_ld = yes ; then
25610 if test "$gcc_cv_gld_major_version" -eq 2 \
25611 -a "$gcc_cv_gld_minor_version" -ge 21 \
25612 -o "$gcc_cv_gld_major_version" -gt 2; then
25613 gcc_cv_ld_mips_personality_relaxation=yes
25614 fi
25615 elif test x$gcc_cv_as != x \
25616 -a x$gcc_cv_ld != x \
25617 -a x$gcc_cv_readelf != x ; then
25618 cat > conftest.s <<EOF
25619 .cfi_startproc
25620 .cfi_personality 0x80,indirect_ptr
25621 .ent test
25622 test:
25623 nop
25624 .end test
25625 .cfi_endproc
25626
25627 .section .data,"aw",@progbits
25628 indirect_ptr:
25629 .dc.a personality
25630 EOF
25631 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25632 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25633 if $gcc_cv_readelf -d conftest 2>&1 \
25634 | grep TEXTREL > /dev/null 2>&1; then
25635 :
25636 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25637 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25638 :
25639 else
25640 gcc_cv_ld_mips_personality_relaxation=yes
25641 fi
25642 fi
25643 fi
25644 rm -f conftest.s conftest.o conftest
25645 fi
25646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25647 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25648 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25649
25650 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25651
25652 fi
25653 ;;
25654 esac
25655
25656 # Mips and HP-UX need the GNU assembler.
25657 # Linux on IA64 might be able to use the Intel assembler.
25658
25659 case "$target" in
25660 mips*-*-* | *-*-hpux* )
25661 if test x$gas_flag = xyes \
25662 || test x"$host" != x"$build" \
25663 || test ! -x "$gcc_cv_as" \
25664 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25665 :
25666 else
25667 echo "*** This configuration requires the GNU assembler" >&2
25668 exit 1
25669 fi
25670 ;;
25671 esac
25672
25673 # ??? Not all targets support dwarf2 debug_line, even within a version
25674 # of gas. Moreover, we need to emit a valid instruction to trigger any
25675 # info to the output file. So, as supported targets are added to gas 2.11,
25676 # add some instruction here to (also) show we expect this might work.
25677 # ??? Once 2.11 is released, probably need to add first known working
25678 # version to the per-target configury.
25679 case "$cpu_type" in
25680 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25681 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa)
25682 insn="nop"
25683 ;;
25684 ia64 | s390)
25685 insn="nop 0"
25686 ;;
25687 mmix)
25688 insn="swym 0"
25689 ;;
25690 esac
25691 if test x"$insn" != x; then
25692 conftest_s="\
25693 .file 1 \"conftest.s\"
25694 .loc 1 3 0
25695 $insn"
25696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25697 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25698 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25699 $as_echo_n "(cached) " >&6
25700 else
25701 gcc_cv_as_dwarf2_debug_line=no
25702 if test $in_tree_gas = yes; then
25703 if test $in_tree_gas_is_elf = yes \
25704 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25705 then gcc_cv_as_dwarf2_debug_line=yes
25706 fi
25707 elif test x$gcc_cv_as != x; then
25708 $as_echo "$conftest_s" > conftest.s
25709 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25711 (eval $ac_try) 2>&5
25712 ac_status=$?
25713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25714 test $ac_status = 0; }; }
25715 then
25716 if test x$gcc_cv_objdump != x \
25717 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25718 | grep debug_line > /dev/null 2>&1; then
25719 gcc_cv_as_dwarf2_debug_line=yes
25720 fi
25721 else
25722 echo "configure: failed program was" >&5
25723 cat conftest.s >&5
25724 fi
25725 rm -f conftest.o conftest.s
25726 fi
25727 fi
25728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25729 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25730
25731
25732 # The .debug_line file table must be in the exact order that
25733 # we specified the files, since these indices are also used
25734 # by DW_AT_decl_file. Approximate this test by testing if
25735 # the assembler bitches if the same index is assigned twice.
25736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25737 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25738 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25739 $as_echo_n "(cached) " >&6
25740 else
25741 gcc_cv_as_dwarf2_file_buggy=no
25742 if test x$gcc_cv_as != x; then
25743 $as_echo ' .file 1 "foo.s"
25744 .file 1 "bar.s"' > conftest.s
25745 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25747 (eval $ac_try) 2>&5
25748 ac_status=$?
25749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25750 test $ac_status = 0; }; }
25751 then
25752 gcc_cv_as_dwarf2_file_buggy=yes
25753 else
25754 echo "configure: failed program was" >&5
25755 cat conftest.s >&5
25756 fi
25757 rm -f conftest.o conftest.s
25758 fi
25759 fi
25760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25761 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25762
25763
25764 if test $gcc_cv_as_dwarf2_debug_line = yes \
25765 && test $gcc_cv_as_dwarf2_file_buggy = no; then
25766
25767 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25768
25769 fi
25770
25771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25772 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25773 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25774 $as_echo_n "(cached) " >&6
25775 else
25776 gcc_cv_as_gdwarf2_flag=no
25777 if test $in_tree_gas = yes; then
25778 if test $in_tree_gas_is_elf = yes \
25779 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25780 then gcc_cv_as_gdwarf2_flag=yes
25781 fi
25782 elif test x$gcc_cv_as != x; then
25783 $as_echo "$insn" > conftest.s
25784 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25786 (eval $ac_try) 2>&5
25787 ac_status=$?
25788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25789 test $ac_status = 0; }; }
25790 then
25791 gcc_cv_as_gdwarf2_flag=yes
25792 else
25793 echo "configure: failed program was" >&5
25794 cat conftest.s >&5
25795 fi
25796 rm -f conftest.o conftest.s
25797 fi
25798 fi
25799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25800 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25801 if test $gcc_cv_as_gdwarf2_flag = yes; then
25802
25803 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25804
25805 fi
25806
25807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25808 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25809 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25810 $as_echo_n "(cached) " >&6
25811 else
25812 gcc_cv_as_gstabs_flag=no
25813 if test $in_tree_gas = yes; then
25814 if test $in_tree_gas_is_elf = yes \
25815 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25816 then gcc_cv_as_gstabs_flag=yes
25817 fi
25818 elif test x$gcc_cv_as != x; then
25819 $as_echo "$insn" > conftest.s
25820 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25822 (eval $ac_try) 2>&5
25823 ac_status=$?
25824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25825 test $ac_status = 0; }; }
25826 then
25827 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25828 # and warns about it, but still exits successfully. So check for
25829 # this.
25830 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25832 (eval $ac_try) 2>&5
25833 ac_status=$?
25834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25835 test $ac_status = 0; }; }
25836 then :
25837 else gcc_cv_as_gstabs_flag=yes
25838 fi
25839 else
25840 echo "configure: failed program was" >&5
25841 cat conftest.s >&5
25842 fi
25843 rm -f conftest.o conftest.s
25844 fi
25845 fi
25846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25847 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25848 if test $gcc_cv_as_gstabs_flag = yes; then
25849
25850 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25851
25852 fi
25853
25854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25855 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25856 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25857 $as_echo_n "(cached) " >&6
25858 else
25859 gcc_cv_as_debug_prefix_map_flag=no
25860 if test $in_tree_gas = yes; then
25861 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25862 then gcc_cv_as_debug_prefix_map_flag=yes
25863 fi
25864 elif test x$gcc_cv_as != x; then
25865 $as_echo "$insn" > conftest.s
25866 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25868 (eval $ac_try) 2>&5
25869 ac_status=$?
25870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25871 test $ac_status = 0; }; }
25872 then
25873 gcc_cv_as_debug_prefix_map_flag=yes
25874 else
25875 echo "configure: failed program was" >&5
25876 cat conftest.s >&5
25877 fi
25878 rm -f conftest.o conftest.s
25879 fi
25880 fi
25881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25882 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25883 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25884
25885 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25886
25887 fi
25888 fi
25889
25890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25891 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25892 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25893 $as_echo_n "(cached) " >&6
25894 else
25895 gcc_cv_as_lcomm_with_alignment=no
25896 if test x$gcc_cv_as != x; then
25897 $as_echo '.lcomm bar,4,16' > conftest.s
25898 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25900 (eval $ac_try) 2>&5
25901 ac_status=$?
25902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25903 test $ac_status = 0; }; }
25904 then
25905 gcc_cv_as_lcomm_with_alignment=yes
25906 else
25907 echo "configure: failed program was" >&5
25908 cat conftest.s >&5
25909 fi
25910 rm -f conftest.o conftest.s
25911 fi
25912 fi
25913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
25914 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25915 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25916
25917 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
25918
25919 fi
25920
25921 # Check whether --enable-gnu-unique-object was given.
25922 if test "${enable_gnu_unique_object+set}" = set; then :
25923 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
25924 yes | no) ;;
25925 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
25926 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25927 esac
25928 else
25929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
25930 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
25931 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
25932 $as_echo_n "(cached) " >&6
25933 else
25934 gcc_cv_as_gnu_unique_object=no
25935 if test $in_tree_gas = yes; then
25936 if test $in_tree_gas_is_elf = yes \
25937 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25938 then gcc_cv_as_gnu_unique_object=yes
25939 fi
25940 elif test x$gcc_cv_as != x; then
25941 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
25942 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25944 (eval $ac_try) 2>&5
25945 ac_status=$?
25946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25947 test $ac_status = 0; }; }
25948 then
25949 gcc_cv_as_gnu_unique_object=yes
25950 else
25951 echo "configure: failed program was" >&5
25952 cat conftest.s >&5
25953 fi
25954 rm -f conftest.o conftest.s
25955 fi
25956 fi
25957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
25958 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
25959 if test $gcc_cv_as_gnu_unique_object = yes; then
25960 # We need to unquote above to to use the definition from config.gcc.
25961 # Also check for ld.so support, i.e. glibc 2.11 or higher.
25962 if test x$host = x$build -a x$host = x$target &&
25963 ldd --version 2>/dev/null &&
25964 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25965 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
25966 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25967 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
25968 if test "$glibcnum" -ge 2011 ; then
25969 enable_gnu_unique_object=yes
25970 fi
25971 fi
25972 fi
25973 fi
25974
25975 if test x$enable_gnu_unique_object = xyes; then
25976
25977 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25978
25979 fi
25980
25981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25982 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25983 if test "${gcc_cv_as_line_zero+set}" = set; then :
25984 $as_echo_n "(cached) " >&6
25985 else
25986 gcc_cv_as_line_zero=no
25987 if test $in_tree_gas = yes; then
25988 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25989 then gcc_cv_as_line_zero=yes
25990 fi
25991 elif test "x$gcc_cv_as" != x; then
25992 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25993 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25995 (eval $ac_try) 2>&5
25996 ac_status=$?
25997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25998 test $ac_status = 0; }; } &&
25999 test "x`cat conftest.out`" = x
26000 then
26001 gcc_cv_as_line_zero=yes
26002 else
26003 echo "configure: failed program was" >&5
26004 cat conftest.s >&5
26005 echo "configure: error output was" >&5
26006 cat conftest.out >&5
26007 fi
26008 rm -f conftest.o conftest.s conftest.out
26009 fi
26010 fi
26011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26012 $as_echo "$gcc_cv_as_line_zero" >&6; }
26013 if test "x$gcc_cv_as_line_zero" = xyes; then
26014
26015 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26016
26017 fi
26018
26019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26020 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26021 gcc_cv_ld_eh_frame_hdr=no
26022 if test $in_tree_ld = yes ; then
26023 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 \
26024 && test $in_tree_ld_is_elf = yes; then
26025 gcc_cv_ld_eh_frame_hdr=yes
26026 fi
26027 elif test x$gcc_cv_ld != x; then
26028 if echo "$ld_ver" | grep GNU > /dev/null; then
26029 # Check if linker supports --eh-frame-hdr option
26030 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26031 gcc_cv_ld_eh_frame_hdr=yes
26032 fi
26033 else
26034 case "$target" in
26035 *-*-solaris2*)
26036 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26037 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26038 gcc_cv_ld_eh_frame_hdr=yes
26039 fi
26040 ;;
26041 esac
26042 fi
26043 fi
26044
26045 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26046
26047 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26048
26049 fi
26050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26051 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26052
26053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26054 $as_echo_n "checking linker position independent executable support... " >&6; }
26055 gcc_cv_ld_pie=no
26056 if test $in_tree_ld = yes ; then
26057 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 \
26058 && test $in_tree_ld_is_elf = yes; then
26059 gcc_cv_ld_pie=yes
26060 fi
26061 elif test x$gcc_cv_ld != x; then
26062 # Check if linker supports -pie option
26063 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26064 gcc_cv_ld_pie=yes
26065 fi
26066 fi
26067 if test x"$gcc_cv_ld_pie" = xyes; then
26068
26069 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26070
26071 fi
26072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26073 $as_echo "$gcc_cv_ld_pie" >&6; }
26074
26075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26076 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26077 gcc_cv_ld_eh_gc_sections=no
26078 if test $in_tree_ld = yes ; then
26079 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 \
26080 && test $in_tree_ld_is_elf = yes; then
26081 gcc_cv_ld_eh_gc_sections=yes
26082 fi
26083 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26084 cat > conftest.s <<EOF
26085 .section .text
26086 .globl _start
26087 .type _start, @function
26088 _start:
26089 .long foo
26090 .size _start, .-_start
26091 .section .text.foo,"ax",@progbits
26092 .type foo, @function
26093 foo:
26094 .long 0
26095 .size foo, .-foo
26096 .section .gcc_except_table.foo,"a",@progbits
26097 .L0:
26098 .long 0
26099 .section .eh_frame,"a",@progbits
26100 .long .L0
26101 EOF
26102 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26103 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26104 | grep "gc-sections option ignored" > /dev/null; then
26105 gcc_cv_ld_eh_gc_sections=no
26106 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26107 | grep gcc_except_table > /dev/null; then
26108 gcc_cv_ld_eh_gc_sections=yes
26109 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26110 if test x$gcc_cv_as_comdat_group != xyes; then
26111 gcc_cv_ld_eh_gc_sections=no
26112 cat > conftest.s <<EOF
26113 .section .text
26114 .globl _start
26115 .type _start, @function
26116 _start:
26117 .long foo
26118 .size _start, .-_start
26119 .section .gnu.linkonce.t.foo,"ax",@progbits
26120 .type foo, @function
26121 foo:
26122 .long 0
26123 .size foo, .-foo
26124 .section .gcc_except_table.foo,"a",@progbits
26125 .L0:
26126 .long 0
26127 .section .eh_frame,"a",@progbits
26128 .long .L0
26129 EOF
26130 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26131 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26132 | grep "gc-sections option ignored" > /dev/null; then
26133 gcc_cv_ld_eh_gc_sections=no
26134 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26135 | grep gcc_except_table > /dev/null; then
26136 gcc_cv_ld_eh_gc_sections=yes
26137 fi
26138 fi
26139 fi
26140 fi
26141 fi
26142 rm -f conftest.s conftest.o conftest
26143 fi
26144 case "$target" in
26145 hppa*-*-linux*)
26146 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26147 gcc_cv_ld_eh_gc_sections=no
26148 ;;
26149 esac
26150 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26151
26152 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26153
26154 fi
26155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26156 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26157
26158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26159 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26160 gcc_cv_ld_eh_gc_sections_bug=no
26161 if test $in_tree_ld = yes ; then
26162 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 \
26163 && test $in_tree_ld_is_elf = yes; then
26164 gcc_cv_ld_eh_gc_sections_bug=yes
26165 fi
26166 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
26167 gcc_cv_ld_eh_gc_sections_bug=yes
26168 cat > conftest.s <<EOF
26169 .section .text
26170 .globl _start
26171 .type _start, @function
26172 _start:
26173 .long foo
26174 .size _start, .-_start
26175 .section .text.startup.foo,"ax",@progbits
26176 .type foo, @function
26177 foo:
26178 .long 0
26179 .size foo, .-foo
26180 .section .gcc_except_table.foo,"a",@progbits
26181 .L0:
26182 .long 0
26183 .section .eh_frame,"a",@progbits
26184 .long .L0
26185 EOF
26186 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26187 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26188 | grep "gc-sections option ignored" > /dev/null; then
26189 :
26190 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26191 | grep gcc_except_table > /dev/null; then
26192 gcc_cv_ld_eh_gc_sections_bug=no
26193 fi
26194 fi
26195 rm -f conftest.s conftest.o conftest
26196 fi
26197 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26198
26199 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26200
26201 fi
26202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26203 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26204
26205 # --------
26206 # UNSORTED
26207 # --------
26208
26209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26210 $as_echo_n "checking linker --as-needed support... " >&6; }
26211 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26212 $as_echo_n "(cached) " >&6
26213 else
26214 gcc_cv_ld_as_needed=no
26215 if test $in_tree_ld = yes ; then
26216 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 \
26217 && test $in_tree_ld_is_elf = yes; then
26218 gcc_cv_ld_as_needed=yes
26219 fi
26220 elif test x$gcc_cv_ld != x; then
26221 # Check if linker supports --as-needed and --no-as-needed options
26222 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26223 gcc_cv_ld_as_needed=yes
26224 fi
26225 fi
26226
26227 fi
26228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26229 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26230 if test x"$gcc_cv_ld_as_needed" = xyes; then
26231
26232 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26233
26234 fi
26235
26236 case "$target:$tm_file" in
26237 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26238 case "$target" in
26239 *-*-linux*)
26240 emul_name="-melf64ppc"
26241 ;;
26242 *-*-freebsd*)
26243 emul_name="-melf64ppc_fbsd"
26244 ;;
26245 esac
26246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26247 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26248 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26249 $as_echo_n "(cached) " >&6
26250 else
26251 gcc_cv_ld_no_dot_syms=no
26252 if test $in_tree_ld = yes ; then
26253 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
26254 gcc_cv_ld_no_dot_syms=yes
26255 fi
26256 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26257 cat > conftest1.s <<EOF
26258 .text
26259 bl .foo
26260 EOF
26261 cat > conftest2.s <<EOF
26262 .section ".opd","aw"
26263 .align 3
26264 .globl foo
26265 .type foo,@function
26266 foo:
26267 .quad .LEfoo,.TOC.@tocbase,0
26268 .text
26269 .LEfoo:
26270 blr
26271 .size foo,.-.LEfoo
26272 EOF
26273 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26274 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26275 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26276 gcc_cv_ld_no_dot_syms=yes
26277 fi
26278 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26279 fi
26280
26281 fi
26282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26283 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26284 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26285
26286 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26287
26288 fi
26289
26290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26291 $as_echo_n "checking linker large toc support... " >&6; }
26292 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26293 $as_echo_n "(cached) " >&6
26294 else
26295 gcc_cv_ld_large_toc=no
26296 if test $in_tree_ld = yes ; then
26297 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
26298 gcc_cv_ld_large_toc=yes
26299 fi
26300 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26301 cat > conftest.s <<EOF
26302 .section ".tbss","awT",@nobits
26303 .align 3
26304 ie0: .space 8
26305 .global _start
26306 .text
26307 _start:
26308 addis 9,13,ie0@got@tprel@ha
26309 ld 9,ie0@got@tprel@l(9)
26310 EOF
26311 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26312 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26313 gcc_cv_ld_large_toc=yes
26314 fi
26315 rm -f conftest conftest.o conftest.s
26316 fi
26317
26318 fi
26319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26320 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26321 if test x"$gcc_cv_ld_large_toc" = xyes; then
26322
26323 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26324
26325 fi
26326 ;;
26327 esac
26328
26329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26330 $as_echo_n "checking linker --build-id support... " >&6; }
26331 if test "${gcc_cv_ld_buildid+set}" = set; then :
26332 $as_echo_n "(cached) " >&6
26333 else
26334 gcc_cv_ld_buildid=no
26335 if test $in_tree_ld = yes ; then
26336 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26337 "$gcc_cv_gld_minor_version" -ge 18 -o \
26338 "$gcc_cv_gld_major_version" -gt 2 \
26339 && test $in_tree_ld_is_elf = yes; then
26340 gcc_cv_ld_buildid=yes
26341 fi
26342 elif test x$gcc_cv_ld != x; then
26343 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26344 gcc_cv_ld_buildid=yes
26345 fi
26346 fi
26347 fi
26348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26349 $as_echo "$gcc_cv_ld_buildid" >&6; }
26350 if test x"$gcc_cv_ld_buildid" = xyes; then
26351
26352 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26353
26354 fi
26355
26356 # Check whether --enable-linker-build-id was given.
26357 if test "${enable_linker_build_id+set}" = set; then :
26358 enableval=$enable_linker_build_id;
26359 else
26360 enable_linker_build_id=no
26361 fi
26362
26363
26364 if test x"$enable_linker_build_id" = xyes; then
26365 if test x"$gcc_cv_ld_buildid" = xyes; then
26366
26367 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26368
26369 else
26370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26371 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26372 fi
26373 fi
26374
26375 # In binutils 2.21, GNU ld gained support for new emulations fully
26376 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26378 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26379 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26380 $as_echo_n "(cached) " >&6
26381 else
26382 gcc_cv_ld_sol2_emulation=no
26383 if test $in_tree_ld = yes ; then
26384 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26385 "$gcc_cv_gld_minor_version" -ge 21 -o \
26386 "$gcc_cv_gld_major_version" -gt 2 \
26387 && test $in_tree_ld_is_elf = yes; then
26388 gcc_cv_ld_sol2_emulation=yes
26389 fi
26390 elif test x$gcc_cv_ld != x; then
26391 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26392 grep _sol2 > /dev/null; then
26393 gcc_cv_ld_sol2_emulation=yes
26394 fi
26395 fi
26396 fi
26397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26398 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26399 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26400
26401 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26402
26403 fi
26404
26405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26406 $as_echo_n "checking linker --sysroot support... " >&6; }
26407 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26408 $as_echo_n "(cached) " >&6
26409 else
26410 gcc_cv_ld_sysroot=no
26411 if test $in_tree_ld = yes ; then
26412 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
26413 gcc_cv_ld_sysroot=yes
26414 fi
26415 elif test x$gcc_cv_ld != x; then
26416 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26417 gcc_cv_ld_sysroot=yes
26418 fi
26419 fi
26420 fi
26421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26422 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26423 if test x"$gcc_cv_ld_sysroot" = xyes; then
26424
26425 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26426
26427 fi
26428
26429 if test x$with_sysroot = x && test x$host = x$target \
26430 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26431 && test "$prefix" != "NONE"; then
26432
26433 cat >>confdefs.h <<_ACEOF
26434 #define PREFIX_INCLUDE_DIR "$prefix/include"
26435 _ACEOF
26436
26437 fi
26438
26439 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26440 if test "x$with_headers" != x; then
26441 target_header_dir=$with_headers
26442 elif test "x$with_sysroot" = x; then
26443 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
26444 elif test "x$with_build_sysroot" != "x"; then
26445 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26446 elif test "x$with_sysroot" = xyes; then
26447 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26448 else
26449 target_header_dir="${with_sysroot}${native_system_header_dir}"
26450 fi
26451 else
26452 target_header_dir=${native_system_header_dir}
26453 fi
26454
26455 # Test for stack protector support in target C library.
26456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26457 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26458 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26459 $as_echo_n "(cached) " >&6
26460 else
26461 gcc_cv_libc_provides_ssp=no
26462 case "$target" in
26463 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26464 # glibc 2.4 and later provides __stack_chk_fail and
26465 # either __stack_chk_guard, or TLS access to stack guard canary.
26466 if test -f $target_header_dir/features.h \
26467 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26468 $target_header_dir/features.h > /dev/null; then
26469 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26470 $target_header_dir/features.h > /dev/null; then
26471 gcc_cv_libc_provides_ssp=yes
26472 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26473 $target_header_dir/features.h > /dev/null \
26474 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26475 $target_header_dir/features.h > /dev/null; then
26476 gcc_cv_libc_provides_ssp=yes
26477 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26478 $target_header_dir/features.h > /dev/null && \
26479 test -f $target_header_dir/bits/uClibc_config.h && \
26480 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26481 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26482 gcc_cv_libc_provides_ssp=yes
26483 fi
26484 # all versions of Bionic support stack protector
26485 elif test -f $target_header_dir/sys/cdefs.h \
26486 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26487 $target_header_dir/sys/cdefs.h > /dev/null; then
26488 gcc_cv_libc_provides_ssp=yes
26489 fi
26490 ;;
26491 *-*-gnu*)
26492 # Avoid complicated tests (see
26493 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26494 # simply assert that glibc does provide this, which is true for all
26495 # realistically usable GNU/Hurd configurations.
26496 gcc_cv_libc_provides_ssp=yes;;
26497 *-*-darwin* | *-*-freebsd*)
26498 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26499 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26500 gcc_cv_libc_provides_ssp=yes
26501 else
26502 echo "no __stack_chk_fail on this target"
26503 fi
26504
26505 ;;
26506 *) gcc_cv_libc_provides_ssp=no ;;
26507 esac
26508 fi
26509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26510 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26511
26512 if test x$gcc_cv_libc_provides_ssp = xyes; then
26513
26514 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26515
26516 fi
26517
26518 # Test for <sys/sdt.h> on the target.
26519
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26521 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26522 have_sys_sdt_h=no
26523 if test -f $target_header_dir/sys/sdt.h; then
26524 have_sys_sdt_h=yes
26525
26526 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26527
26528 fi
26529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26530 $as_echo "$have_sys_sdt_h" >&6; }
26531
26532 # Check if TFmode long double should be used by default or not.
26533 # Some glibc targets used DFmode long double, but with glibc 2.4
26534 # and later they can use TFmode.
26535 case "$target" in
26536 powerpc*-*-linux* | \
26537 sparc*-*-linux* | \
26538 s390*-*-linux* | \
26539 alpha*-*-linux*)
26540
26541 # Check whether --with-long-double-128 was given.
26542 if test "${with_long_double_128+set}" = set; then :
26543 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26544 else
26545 gcc_cv_target_ldbl128=no
26546 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26547 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26548 && gcc_cv_target_ldbl128=yes
26549
26550 fi
26551
26552 ;;
26553 esac
26554 if test x$gcc_cv_target_ldbl128 = xyes; then
26555
26556 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26557
26558 fi
26559
26560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26561 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26562 gcc_cv_target_dl_iterate_phdr=unknown
26563 case "$target" in
26564 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
26565 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26566 # libdl there, both complicating its use and breaking compatibility
26567 # between Solaris 10 updates.
26568 *-*-solaris2.1[1-9]*)
26569 # <link.h> needs both a dl_iterate_phdr declaration and support for
26570 # compilation with largefile support.
26571 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26572 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26573 gcc_cv_target_dl_iterate_phdr=yes
26574 else
26575 gcc_cv_target_dl_iterate_phdr=no
26576 fi
26577 ;;
26578 esac
26579
26580 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26581
26582 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26583
26584 fi
26585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26586 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26587
26588 # Find out what GC implementation we want, or may, use.
26589
26590 # Check whether --with-gc was given.
26591 if test "${with_gc+set}" = set; then :
26592 withval=$with_gc; case "$withval" in
26593 page)
26594 GGC=ggc-$withval
26595 ;;
26596 zone)
26597 GGC=ggc-$withval
26598
26599 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26600
26601 ;;
26602 *)
26603 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26604 ;;
26605 esac
26606 else
26607 GGC=ggc-page
26608 fi
26609
26610
26611 echo "Using $GGC for garbage collection."
26612
26613 # Libraries to use on the host. This will normally be set by the top
26614 # level Makefile. Here we simply capture the value for our Makefile.
26615 if test -z "${HOST_LIBS+set}"; then
26616 HOST_LIBS=
26617 fi
26618
26619
26620 # Use the system's zlib library.
26621 zlibdir=-L../zlib
26622 zlibinc="-I\$(srcdir)/../zlib"
26623
26624 # Check whether --with-system-zlib was given.
26625 if test "${with_system_zlib+set}" = set; then :
26626 withval=$with_system_zlib; zlibdir=
26627 zlibinc=
26628
26629 fi
26630
26631
26632
26633
26634
26635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26636 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26637 # Check whether --enable-maintainer-mode was given.
26638 if test "${enable_maintainer_mode+set}" = set; then :
26639 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26640 else
26641 maintainer_mode=no
26642 fi
26643
26644
26645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26646 $as_echo "$maintainer_mode" >&6; }
26647
26648 if test "$maintainer_mode" = "yes"; then
26649 MAINT=''
26650 else
26651 MAINT='#'
26652 fi
26653
26654 # --------------
26655 # Language hooks
26656 # --------------
26657
26658 # Make empty files to contain the specs and options for each language.
26659 # Then add #include lines to for a compiler that has specs and/or options.
26660
26661 subdirs=
26662 lang_opt_files=
26663 lang_specs_files=
26664 lang_tree_files=
26665 # These (without "all_") are set in each config-lang.in.
26666 # `language' must be a single word so is spelled singularly.
26667 all_languages=
26668 all_compilers=
26669 all_outputs='Makefile'
26670 # List of language makefile fragments.
26671 all_lang_makefrags=
26672 # Additional files for gengtype
26673 all_gtfiles="$target_gtfiles"
26674
26675 # These are the languages that are set in --enable-languages,
26676 # and are available in the GCC tree.
26677 all_selected_languages=
26678
26679 # Add the language fragments.
26680 # Languages are added via two mechanisms. Some information must be
26681 # recorded in makefile variables, these are defined in config-lang.in.
26682 # We accumulate them and plug them into the main Makefile.
26683 # The other mechanism is a set of hooks for each of the main targets
26684 # like `clean', `install', etc.
26685
26686 language_hooks="Make-hooks"
26687
26688 for lang in ${srcdir}/*/config-lang.in
26689 do
26690 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26691
26692 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26693 if test "x$lang_alias" = x
26694 then
26695 echo "$lang doesn't set \$language." 1>&2
26696 exit 1
26697 fi
26698 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26699 subdirs="$subdirs $subdir"
26700
26701 # $gcc_subdir is where the gcc integration files are to be found
26702 # for a language, both for internal compiler purposes (compiler
26703 # sources implementing front-end to GCC tree converters), and for
26704 # build infrastructure purposes (Make-lang.in, etc.)
26705 #
26706 # This will be <subdir> (relative to $srcdir) if a line like
26707 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26708 # is found in <langdir>/config-lang.in, and will remain <langdir>
26709 # otherwise.
26710 #
26711 # Except for the language alias (fetched above), the regular
26712 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26713 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26714 # only this and the language alias.
26715
26716 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26717 if [ "$gcc_subdir" = "" ]; then
26718 gcc_subdir="$subdir"
26719 fi
26720
26721 case ",$enable_languages," in
26722 *,$lang_alias,*)
26723 all_selected_languages="$all_selected_languages $lang_alias"
26724 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26725 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26726 fi
26727 ;;
26728 esac
26729
26730 language=
26731 boot_language=
26732 compilers=
26733 outputs=
26734 gtfiles=
26735 subdir_requires=
26736 . ${srcdir}/$gcc_subdir/config-lang.in
26737 if test "x$language" = x
26738 then
26739 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26740 exit 1
26741 fi
26742
26743 ok=:
26744 case ",$enable_languages," in
26745 *,$lang_alias,*) ;;
26746 *)
26747 for i in $subdir_requires; do
26748 test -f "${srcdir}/$i/config-lang.in" && continue
26749 ok=false
26750 break
26751 done
26752 ;;
26753 esac
26754 $ok || continue
26755
26756 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26757 if test -f $srcdir/$gcc_subdir/lang.opt; then
26758 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26759 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26760 fi
26761 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26762 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26763 fi
26764 all_languages="$all_languages $language"
26765 all_compilers="$all_compilers $compilers"
26766 all_outputs="$all_outputs $outputs"
26767 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26768 case ",$enable_languages," in
26769 *,lto,*)
26770
26771 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26772
26773 enable_lto=yes
26774
26775 ;;
26776 *) ;;
26777 esac
26778 done
26779
26780 check_languages=
26781 for language in $all_selected_languages
26782 do
26783 check_languages="$check_languages check-$language"
26784 done
26785
26786 # We link each language in with a set of hooks, reached indirectly via
26787 # lang.${target}. Only do so for selected languages.
26788
26789 rm -f Make-hooks
26790 touch Make-hooks
26791 target_list="all.cross start.encap rest.encap tags \
26792 install-common install-man install-info install-pdf install-html dvi \
26793 pdf html uninstall info man srcextra srcman srcinfo \
26794 mostlyclean clean distclean maintainer-clean install-plugin"
26795
26796 for t in $target_list
26797 do
26798 x=
26799 for lang in $all_selected_languages
26800 do
26801 x="$x $lang.$t"
26802 done
26803 echo "lang.$t: $x" >> Make-hooks
26804 done
26805
26806 # --------
26807 # Option include files
26808 # --------
26809
26810 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26811 option_includes="option-includes.mk"
26812
26813
26814 # --------
26815 # UNSORTED
26816 # --------
26817
26818 # Create .gdbinit.
26819
26820 echo "dir ." > .gdbinit
26821 echo "dir ${srcdir}" >> .gdbinit
26822 if test x$gdb_needs_out_file_path = xyes
26823 then
26824 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26825 fi
26826 if test "x$subdirs" != x; then
26827 for s in $subdirs
26828 do
26829 echo "dir ${srcdir}/$s" >> .gdbinit
26830 done
26831 fi
26832 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26833
26834 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26835
26836
26837
26838 # Find a directory in which to install a shared libgcc.
26839
26840 # Check whether --enable-version-specific-runtime-libs was given.
26841 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26842 enableval=$enable_version_specific_runtime_libs;
26843 fi
26844
26845
26846 # Substitute configuration variables
26847
26848
26849
26850
26851
26852
26853
26854
26855
26856
26857
26858
26859
26860
26861
26862
26863
26864
26865
26866
26867
26868
26869
26870
26871
26872
26873
26874
26875
26876
26877
26878
26879
26880
26881
26882
26883
26884
26885
26886
26887
26888
26889
26890
26891
26892
26893
26894
26895
26896
26897
26898
26899
26900
26901
26902
26903
26904
26905
26906
26907
26908
26909 # Echo link setup.
26910 if test x${build} = x${host} ; then
26911 if test x${host} = x${target} ; then
26912 echo "Links are now set up to build a native compiler for ${target}." 1>&2
26913 else
26914 echo "Links are now set up to build a cross-compiler" 1>&2
26915 echo " from ${host} to ${target}." 1>&2
26916 fi
26917 else
26918 if test x${host} = x${target} ; then
26919 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
26920 echo " for ${target}." 1>&2
26921 else
26922 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
26923 echo " from ${host} to ${target}." 1>&2
26924 fi
26925 fi
26926
26927
26928
26929
26930
26931
26932
26933
26934
26935 if test "x${CLOOGLIBS}" != "x" ; then
26936
26937 $as_echo "#define HAVE_cloog 1" >>confdefs.h
26938
26939 fi
26940
26941 # Check for plugin support
26942 # Check whether --enable-plugin was given.
26943 if test "${enable_plugin+set}" = set; then :
26944 enableval=$enable_plugin; enable_plugin=$enableval
26945 else
26946 enable_plugin=yes; default_plugin=yes
26947 fi
26948
26949
26950 pluginlibs=
26951
26952 case "${host}" in
26953 *-*-darwin*)
26954 if test x$build = x$host; then
26955 export_sym_check="nm${exeext} -g"
26956 elif test x$host = x$target; then
26957 export_sym_check="$gcc_cv_nm -g"
26958 else
26959 export_sym_check=
26960 fi
26961 ;;
26962 *)
26963 if test x$build = x$host; then
26964 export_sym_check="objdump${exeext} -T"
26965 elif test x$host = x$target; then
26966 export_sym_check="$gcc_cv_objdump -T"
26967 else
26968 export_sym_check=
26969 fi
26970 ;;
26971 esac
26972
26973 if test x"$enable_plugin" = x"yes"; then
26974
26975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
26976 $as_echo_n "checking for exported symbols... " >&6; }
26977 if test "x$export_sym_check" != x; then
26978 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
26979 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
26980 if $export_sym_check conftest | grep foobar > /dev/null; then
26981 : # No need to use a flag
26982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26983 $as_echo "yes" >&6; }
26984 else
26985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26986 $as_echo "yes" >&6; }
26987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
26988 $as_echo_n "checking for -rdynamic... " >&6; }
26989 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
26990 if $export_sym_check conftest | grep foobar > /dev/null; then
26991 plugin_rdynamic=yes
26992 pluginlibs="-rdynamic"
26993 else
26994 plugin_rdynamic=no
26995 enable_plugin=no
26996 fi
26997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
26998 $as_echo "$plugin_rdynamic" >&6; }
26999 fi
27000 else
27001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27002 $as_echo "unable to check" >&6; }
27003 fi
27004
27005 # Check -ldl
27006 saved_LIBS="$LIBS"
27007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27008 $as_echo_n "checking for library containing dlopen... " >&6; }
27009 if test "${ac_cv_search_dlopen+set}" = set; then :
27010 $as_echo_n "(cached) " >&6
27011 else
27012 ac_func_search_save_LIBS=$LIBS
27013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27014 /* end confdefs.h. */
27015
27016 /* Override any GCC internal prototype to avoid an error.
27017 Use char because int might match the return type of a GCC
27018 builtin and then its argument prototype would still apply. */
27019 #ifdef __cplusplus
27020 extern "C"
27021 #endif
27022 char dlopen ();
27023 int
27024 main ()
27025 {
27026 return dlopen ();
27027 ;
27028 return 0;
27029 }
27030 _ACEOF
27031 for ac_lib in '' dl; do
27032 if test -z "$ac_lib"; then
27033 ac_res="none required"
27034 else
27035 ac_res=-l$ac_lib
27036 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27037 fi
27038 if ac_fn_c_try_link "$LINENO"; then :
27039 ac_cv_search_dlopen=$ac_res
27040 fi
27041 rm -f core conftest.err conftest.$ac_objext \
27042 conftest$ac_exeext
27043 if test "${ac_cv_search_dlopen+set}" = set; then :
27044 break
27045 fi
27046 done
27047 if test "${ac_cv_search_dlopen+set}" = set; then :
27048
27049 else
27050 ac_cv_search_dlopen=no
27051 fi
27052 rm conftest.$ac_ext
27053 LIBS=$ac_func_search_save_LIBS
27054 fi
27055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27056 $as_echo "$ac_cv_search_dlopen" >&6; }
27057 ac_res=$ac_cv_search_dlopen
27058 if test "$ac_res" != no; then :
27059 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27060
27061 fi
27062
27063 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27064 pluginlibs="$pluginlibs -ldl"
27065 fi
27066 LIBS="$saved_LIBS"
27067
27068 # Check that we can build shared objects with -fPIC -shared
27069 saved_LDFLAGS="$LDFLAGS"
27070 saved_CFLAGS="$CFLAGS"
27071 case "${host}" in
27072 *-*-darwin*)
27073 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27074 CFLAGS="$CFLAGS -fPIC"
27075 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27076 ;;
27077 *)
27078 CFLAGS="$CFLAGS -fPIC"
27079 LDFLAGS="$LDFLAGS -fPIC -shared"
27080 ;;
27081 esac
27082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27083 $as_echo_n "checking for -fPIC -shared... " >&6; }
27084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27085 /* end confdefs.h. */
27086 extern int X;
27087 int
27088 main ()
27089 {
27090 return X == 0;
27091 ;
27092 return 0;
27093 }
27094 _ACEOF
27095 if ac_fn_c_try_link "$LINENO"; then :
27096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27097 $as_echo "yes" >&6; }; have_pic_shared=yes
27098 else
27099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27100 $as_echo "no" >&6; }; have_pic_shared=no
27101 fi
27102 rm -f core conftest.err conftest.$ac_objext \
27103 conftest$ac_exeext conftest.$ac_ext
27104 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27105 pluginlibs=
27106 enable_plugin=no
27107 fi
27108 LDFLAGS="$saved_LDFLAGS"
27109 CFLAGS="$saved_CFLAGS"
27110
27111 # If plugin support had been requested but not available, fail.
27112 if test x"$enable_plugin" = x"no" ; then
27113 if test x"$default_plugin" != x"yes"; then
27114 as_fn_error "
27115 Building GCC with plugin support requires a host that supports
27116 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27117 fi
27118 fi
27119 fi
27120
27121
27122
27123 if test x"$enable_plugin" = x"yes"; then
27124
27125 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27126
27127 fi
27128
27129
27130 # Check whether --enable-libquadmath-support was given.
27131 if test "${enable_libquadmath_support+set}" = set; then :
27132 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27133 else
27134 ENABLE_LIBQUADMATH_SUPPORT=yes
27135 fi
27136
27137 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27138
27139 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27140
27141 fi
27142
27143
27144 # Specify what hash style to use by default.
27145
27146 # Check whether --with-linker-hash-style was given.
27147 if test "${with_linker_hash_style+set}" = set; then :
27148 withval=$with_linker_hash_style; case x"$withval" in
27149 xsysv)
27150 LINKER_HASH_STYLE=sysv
27151 ;;
27152 xgnu)
27153 LINKER_HASH_STYLE=gnu
27154 ;;
27155 xboth)
27156 LINKER_HASH_STYLE=both
27157 ;;
27158 *)
27159 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27160 ;;
27161 esac
27162 else
27163 LINKER_HASH_STYLE=''
27164 fi
27165
27166 if test x"${LINKER_HASH_STYLE}" != x; then
27167
27168 cat >>confdefs.h <<_ACEOF
27169 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27170 _ACEOF
27171
27172 fi
27173
27174 # Configure the subdirectories
27175 # AC_CONFIG_SUBDIRS($subdirs)
27176
27177 # Create the Makefile
27178 # and configure language subdirectories
27179 ac_config_files="$ac_config_files $all_outputs"
27180
27181
27182 ac_config_commands="$ac_config_commands default"
27183
27184 cat >confcache <<\_ACEOF
27185 # This file is a shell script that caches the results of configure
27186 # tests run on this system so they can be shared between configure
27187 # scripts and configure runs, see configure's option --config-cache.
27188 # It is not useful on other systems. If it contains results you don't
27189 # want to keep, you may remove or edit it.
27190 #
27191 # config.status only pays attention to the cache file if you give it
27192 # the --recheck option to rerun configure.
27193 #
27194 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27195 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27196 # following values.
27197
27198 _ACEOF
27199
27200 # The following way of writing the cache mishandles newlines in values,
27201 # but we know of no workaround that is simple, portable, and efficient.
27202 # So, we kill variables containing newlines.
27203 # Ultrix sh set writes to stderr and can't be redirected directly,
27204 # and sets the high bit in the cache file unless we assign to the vars.
27205 (
27206 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27207 eval ac_val=\$$ac_var
27208 case $ac_val in #(
27209 *${as_nl}*)
27210 case $ac_var in #(
27211 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27212 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27213 esac
27214 case $ac_var in #(
27215 _ | IFS | as_nl) ;; #(
27216 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27217 *) { eval $ac_var=; unset $ac_var;} ;;
27218 esac ;;
27219 esac
27220 done
27221
27222 (set) 2>&1 |
27223 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27224 *${as_nl}ac_space=\ *)
27225 # `set' does not quote correctly, so add quotes: double-quote
27226 # substitution turns \\\\ into \\, and sed turns \\ into \.
27227 sed -n \
27228 "s/'/'\\\\''/g;
27229 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27230 ;; #(
27231 *)
27232 # `set' quotes correctly as required by POSIX, so do not add quotes.
27233 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27234 ;;
27235 esac |
27236 sort
27237 ) |
27238 sed '
27239 /^ac_cv_env_/b end
27240 t clear
27241 :clear
27242 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27243 t end
27244 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27245 :end' >>confcache
27246 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27247 if test -w "$cache_file"; then
27248 test "x$cache_file" != "x/dev/null" &&
27249 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27250 $as_echo "$as_me: updating cache $cache_file" >&6;}
27251 cat confcache >$cache_file
27252 else
27253 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27254 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27255 fi
27256 fi
27257 rm -f confcache
27258
27259 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27260 # Let make expand exec_prefix.
27261 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27262
27263 DEFS=-DHAVE_CONFIG_H
27264
27265 ac_libobjs=
27266 ac_ltlibobjs=
27267 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27268 # 1. Remove the extension, and $U if already installed.
27269 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27270 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27271 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27272 # will be set to the directory where LIBOBJS objects are built.
27273 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27274 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27275 done
27276 LIBOBJS=$ac_libobjs
27277
27278 LTLIBOBJS=$ac_ltlibobjs
27279
27280
27281
27282
27283 : ${CONFIG_STATUS=./config.status}
27284 ac_write_fail=0
27285 ac_clean_files_save=$ac_clean_files
27286 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27287 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27288 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27289 as_write_fail=0
27290 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27291 #! $SHELL
27292 # Generated by $as_me.
27293 # Run this file to recreate the current configuration.
27294 # Compiler output produced by configure, useful for debugging
27295 # configure, is in config.log if it exists.
27296
27297 debug=false
27298 ac_cs_recheck=false
27299 ac_cs_silent=false
27300
27301 SHELL=\${CONFIG_SHELL-$SHELL}
27302 export SHELL
27303 _ASEOF
27304 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27305 ## -------------------- ##
27306 ## M4sh Initialization. ##
27307 ## -------------------- ##
27308
27309 # Be more Bourne compatible
27310 DUALCASE=1; export DUALCASE # for MKS sh
27311 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27312 emulate sh
27313 NULLCMD=:
27314 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27315 # is contrary to our usage. Disable this feature.
27316 alias -g '${1+"$@"}'='"$@"'
27317 setopt NO_GLOB_SUBST
27318 else
27319 case `(set -o) 2>/dev/null` in #(
27320 *posix*) :
27321 set -o posix ;; #(
27322 *) :
27323 ;;
27324 esac
27325 fi
27326
27327
27328 as_nl='
27329 '
27330 export as_nl
27331 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27332 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27333 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27334 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27335 # Prefer a ksh shell builtin over an external printf program on Solaris,
27336 # but without wasting forks for bash or zsh.
27337 if test -z "$BASH_VERSION$ZSH_VERSION" \
27338 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27339 as_echo='print -r --'
27340 as_echo_n='print -rn --'
27341 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27342 as_echo='printf %s\n'
27343 as_echo_n='printf %s'
27344 else
27345 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27346 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27347 as_echo_n='/usr/ucb/echo -n'
27348 else
27349 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27350 as_echo_n_body='eval
27351 arg=$1;
27352 case $arg in #(
27353 *"$as_nl"*)
27354 expr "X$arg" : "X\\(.*\\)$as_nl";
27355 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27356 esac;
27357 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27358 '
27359 export as_echo_n_body
27360 as_echo_n='sh -c $as_echo_n_body as_echo'
27361 fi
27362 export as_echo_body
27363 as_echo='sh -c $as_echo_body as_echo'
27364 fi
27365
27366 # The user is always right.
27367 if test "${PATH_SEPARATOR+set}" != set; then
27368 PATH_SEPARATOR=:
27369 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27370 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27371 PATH_SEPARATOR=';'
27372 }
27373 fi
27374
27375
27376 # IFS
27377 # We need space, tab and new line, in precisely that order. Quoting is
27378 # there to prevent editors from complaining about space-tab.
27379 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27380 # splitting by setting IFS to empty value.)
27381 IFS=" "" $as_nl"
27382
27383 # Find who we are. Look in the path if we contain no directory separator.
27384 case $0 in #((
27385 *[\\/]* ) as_myself=$0 ;;
27386 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27387 for as_dir in $PATH
27388 do
27389 IFS=$as_save_IFS
27390 test -z "$as_dir" && as_dir=.
27391 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27392 done
27393 IFS=$as_save_IFS
27394
27395 ;;
27396 esac
27397 # We did not find ourselves, most probably we were run as `sh COMMAND'
27398 # in which case we are not to be found in the path.
27399 if test "x$as_myself" = x; then
27400 as_myself=$0
27401 fi
27402 if test ! -f "$as_myself"; then
27403 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27404 exit 1
27405 fi
27406
27407 # Unset variables that we do not need and which cause bugs (e.g. in
27408 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27409 # suppresses any "Segmentation fault" message there. '((' could
27410 # trigger a bug in pdksh 5.2.14.
27411 for as_var in BASH_ENV ENV MAIL MAILPATH
27412 do eval test x\${$as_var+set} = xset \
27413 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27414 done
27415 PS1='$ '
27416 PS2='> '
27417 PS4='+ '
27418
27419 # NLS nuisances.
27420 LC_ALL=C
27421 export LC_ALL
27422 LANGUAGE=C
27423 export LANGUAGE
27424
27425 # CDPATH.
27426 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27427
27428
27429 # as_fn_error ERROR [LINENO LOG_FD]
27430 # ---------------------------------
27431 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27432 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27433 # script with status $?, using 1 if that was 0.
27434 as_fn_error ()
27435 {
27436 as_status=$?; test $as_status -eq 0 && as_status=1
27437 if test "$3"; then
27438 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27439 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27440 fi
27441 $as_echo "$as_me: error: $1" >&2
27442 as_fn_exit $as_status
27443 } # as_fn_error
27444
27445
27446 # as_fn_set_status STATUS
27447 # -----------------------
27448 # Set $? to STATUS, without forking.
27449 as_fn_set_status ()
27450 {
27451 return $1
27452 } # as_fn_set_status
27453
27454 # as_fn_exit STATUS
27455 # -----------------
27456 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27457 as_fn_exit ()
27458 {
27459 set +e
27460 as_fn_set_status $1
27461 exit $1
27462 } # as_fn_exit
27463
27464 # as_fn_unset VAR
27465 # ---------------
27466 # Portably unset VAR.
27467 as_fn_unset ()
27468 {
27469 { eval $1=; unset $1;}
27470 }
27471 as_unset=as_fn_unset
27472 # as_fn_append VAR VALUE
27473 # ----------------------
27474 # Append the text in VALUE to the end of the definition contained in VAR. Take
27475 # advantage of any shell optimizations that allow amortized linear growth over
27476 # repeated appends, instead of the typical quadratic growth present in naive
27477 # implementations.
27478 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27479 eval 'as_fn_append ()
27480 {
27481 eval $1+=\$2
27482 }'
27483 else
27484 as_fn_append ()
27485 {
27486 eval $1=\$$1\$2
27487 }
27488 fi # as_fn_append
27489
27490 # as_fn_arith ARG...
27491 # ------------------
27492 # Perform arithmetic evaluation on the ARGs, and store the result in the
27493 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27494 # must be portable across $(()) and expr.
27495 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27496 eval 'as_fn_arith ()
27497 {
27498 as_val=$(( $* ))
27499 }'
27500 else
27501 as_fn_arith ()
27502 {
27503 as_val=`expr "$@" || test $? -eq 1`
27504 }
27505 fi # as_fn_arith
27506
27507
27508 if expr a : '\(a\)' >/dev/null 2>&1 &&
27509 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27510 as_expr=expr
27511 else
27512 as_expr=false
27513 fi
27514
27515 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27516 as_basename=basename
27517 else
27518 as_basename=false
27519 fi
27520
27521 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27522 as_dirname=dirname
27523 else
27524 as_dirname=false
27525 fi
27526
27527 as_me=`$as_basename -- "$0" ||
27528 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27529 X"$0" : 'X\(//\)$' \| \
27530 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27531 $as_echo X/"$0" |
27532 sed '/^.*\/\([^/][^/]*\)\/*$/{
27533 s//\1/
27534 q
27535 }
27536 /^X\/\(\/\/\)$/{
27537 s//\1/
27538 q
27539 }
27540 /^X\/\(\/\).*/{
27541 s//\1/
27542 q
27543 }
27544 s/.*/./; q'`
27545
27546 # Avoid depending upon Character Ranges.
27547 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27548 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27549 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27550 as_cr_digits='0123456789'
27551 as_cr_alnum=$as_cr_Letters$as_cr_digits
27552
27553 ECHO_C= ECHO_N= ECHO_T=
27554 case `echo -n x` in #(((((
27555 -n*)
27556 case `echo 'xy\c'` in
27557 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27558 xy) ECHO_C='\c';;
27559 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27560 ECHO_T=' ';;
27561 esac;;
27562 *)
27563 ECHO_N='-n';;
27564 esac
27565
27566 rm -f conf$$ conf$$.exe conf$$.file
27567 if test -d conf$$.dir; then
27568 rm -f conf$$.dir/conf$$.file
27569 else
27570 rm -f conf$$.dir
27571 mkdir conf$$.dir 2>/dev/null
27572 fi
27573 if (echo >conf$$.file) 2>/dev/null; then
27574 if ln -s conf$$.file conf$$ 2>/dev/null; then
27575 as_ln_s='ln -s'
27576 # ... but there are two gotchas:
27577 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27578 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27579 # In both cases, we have to default to `cp -p'.
27580 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27581 as_ln_s='cp -p'
27582 elif ln conf$$.file conf$$ 2>/dev/null; then
27583 as_ln_s=ln
27584 else
27585 as_ln_s='cp -p'
27586 fi
27587 else
27588 as_ln_s='cp -p'
27589 fi
27590 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27591 rmdir conf$$.dir 2>/dev/null
27592
27593
27594 # as_fn_mkdir_p
27595 # -------------
27596 # Create "$as_dir" as a directory, including parents if necessary.
27597 as_fn_mkdir_p ()
27598 {
27599
27600 case $as_dir in #(
27601 -*) as_dir=./$as_dir;;
27602 esac
27603 test -d "$as_dir" || eval $as_mkdir_p || {
27604 as_dirs=
27605 while :; do
27606 case $as_dir in #(
27607 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27608 *) as_qdir=$as_dir;;
27609 esac
27610 as_dirs="'$as_qdir' $as_dirs"
27611 as_dir=`$as_dirname -- "$as_dir" ||
27612 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27613 X"$as_dir" : 'X\(//\)[^/]' \| \
27614 X"$as_dir" : 'X\(//\)$' \| \
27615 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27616 $as_echo X"$as_dir" |
27617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27618 s//\1/
27619 q
27620 }
27621 /^X\(\/\/\)[^/].*/{
27622 s//\1/
27623 q
27624 }
27625 /^X\(\/\/\)$/{
27626 s//\1/
27627 q
27628 }
27629 /^X\(\/\).*/{
27630 s//\1/
27631 q
27632 }
27633 s/.*/./; q'`
27634 test -d "$as_dir" && break
27635 done
27636 test -z "$as_dirs" || eval "mkdir $as_dirs"
27637 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27638
27639
27640 } # as_fn_mkdir_p
27641 if mkdir -p . 2>/dev/null; then
27642 as_mkdir_p='mkdir -p "$as_dir"'
27643 else
27644 test -d ./-p && rmdir ./-p
27645 as_mkdir_p=false
27646 fi
27647
27648 if test -x / >/dev/null 2>&1; then
27649 as_test_x='test -x'
27650 else
27651 if ls -dL / >/dev/null 2>&1; then
27652 as_ls_L_option=L
27653 else
27654 as_ls_L_option=
27655 fi
27656 as_test_x='
27657 eval sh -c '\''
27658 if test -d "$1"; then
27659 test -d "$1/.";
27660 else
27661 case $1 in #(
27662 -*)set "./$1";;
27663 esac;
27664 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27665 ???[sx]*):;;*)false;;esac;fi
27666 '\'' sh
27667 '
27668 fi
27669 as_executable_p=$as_test_x
27670
27671 # Sed expression to map a string onto a valid CPP name.
27672 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27673
27674 # Sed expression to map a string onto a valid variable name.
27675 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27676
27677
27678 exec 6>&1
27679 ## ----------------------------------- ##
27680 ## Main body of $CONFIG_STATUS script. ##
27681 ## ----------------------------------- ##
27682 _ASEOF
27683 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27684
27685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27686 # Save the log message, to keep $0 and so on meaningful, and to
27687 # report actual input values of CONFIG_FILES etc. instead of their
27688 # values after options handling.
27689 ac_log="
27690 This file was extended by $as_me, which was
27691 generated by GNU Autoconf 2.64. Invocation command line was
27692
27693 CONFIG_FILES = $CONFIG_FILES
27694 CONFIG_HEADERS = $CONFIG_HEADERS
27695 CONFIG_LINKS = $CONFIG_LINKS
27696 CONFIG_COMMANDS = $CONFIG_COMMANDS
27697 $ $0 $@
27698
27699 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27700 "
27701
27702 _ACEOF
27703
27704 case $ac_config_files in *"
27705 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27706 esac
27707
27708 case $ac_config_headers in *"
27709 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27710 esac
27711
27712
27713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27714 # Files that config.status was made for.
27715 config_files="$ac_config_files"
27716 config_headers="$ac_config_headers"
27717 config_commands="$ac_config_commands"
27718
27719 _ACEOF
27720
27721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27722 ac_cs_usage="\
27723 \`$as_me' instantiates files and other configuration actions
27724 from templates according to the current configuration. Unless the files
27725 and actions are specified as TAGs, all are instantiated by default.
27726
27727 Usage: $0 [OPTION]... [TAG]...
27728
27729 -h, --help print this help, then exit
27730 -V, --version print version number and configuration settings, then exit
27731 -q, --quiet, --silent
27732 do not print progress messages
27733 -d, --debug don't remove temporary files
27734 --recheck update $as_me by reconfiguring in the same conditions
27735 --file=FILE[:TEMPLATE]
27736 instantiate the configuration file FILE
27737 --header=FILE[:TEMPLATE]
27738 instantiate the configuration header FILE
27739
27740 Configuration files:
27741 $config_files
27742
27743 Configuration headers:
27744 $config_headers
27745
27746 Configuration commands:
27747 $config_commands
27748
27749 Report bugs to the package provider."
27750
27751 _ACEOF
27752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27753 ac_cs_version="\\
27754 config.status
27755 configured by $0, generated by GNU Autoconf 2.64,
27756 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27757
27758 Copyright (C) 2009 Free Software Foundation, Inc.
27759 This config.status script is free software; the Free Software Foundation
27760 gives unlimited permission to copy, distribute and modify it."
27761
27762 ac_pwd='$ac_pwd'
27763 srcdir='$srcdir'
27764 AWK='$AWK'
27765 test -n "\$AWK" || AWK=awk
27766 _ACEOF
27767
27768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27769 # The default lists apply if the user does not specify any file.
27770 ac_need_defaults=:
27771 while test $# != 0
27772 do
27773 case $1 in
27774 --*=*)
27775 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27776 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27777 ac_shift=:
27778 ;;
27779 *)
27780 ac_option=$1
27781 ac_optarg=$2
27782 ac_shift=shift
27783 ;;
27784 esac
27785
27786 case $ac_option in
27787 # Handling of the options.
27788 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27789 ac_cs_recheck=: ;;
27790 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27791 $as_echo "$ac_cs_version"; exit ;;
27792 --debug | --debu | --deb | --de | --d | -d )
27793 debug=: ;;
27794 --file | --fil | --fi | --f )
27795 $ac_shift
27796 case $ac_optarg in
27797 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27798 esac
27799 as_fn_append CONFIG_FILES " '$ac_optarg'"
27800 ac_need_defaults=false;;
27801 --header | --heade | --head | --hea )
27802 $ac_shift
27803 case $ac_optarg in
27804 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27805 esac
27806 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27807 ac_need_defaults=false;;
27808 --he | --h)
27809 # Conflict between --help and --header
27810 as_fn_error "ambiguous option: \`$1'
27811 Try \`$0 --help' for more information.";;
27812 --help | --hel | -h )
27813 $as_echo "$ac_cs_usage"; exit ;;
27814 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27815 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27816 ac_cs_silent=: ;;
27817
27818 # This is an error.
27819 -*) as_fn_error "unrecognized option: \`$1'
27820 Try \`$0 --help' for more information." ;;
27821
27822 *) as_fn_append ac_config_targets " $1"
27823 ac_need_defaults=false ;;
27824
27825 esac
27826 shift
27827 done
27828
27829 ac_configure_extra_args=
27830
27831 if $ac_cs_silent; then
27832 exec 6>/dev/null
27833 ac_configure_extra_args="$ac_configure_extra_args --silent"
27834 fi
27835
27836 _ACEOF
27837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27838 if \$ac_cs_recheck; then
27839 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27840 shift
27841 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27842 CONFIG_SHELL='$SHELL'
27843 export CONFIG_SHELL
27844 exec "\$@"
27845 fi
27846
27847 _ACEOF
27848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27849 exec 5>>config.log
27850 {
27851 echo
27852 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27853 ## Running $as_me. ##
27854 _ASBOX
27855 $as_echo "$ac_log"
27856 } >&5
27857
27858 _ACEOF
27859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27860 #
27861 # INIT-COMMANDS
27862 #
27863 subdirs='$subdirs'
27864
27865 _ACEOF
27866
27867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27868
27869 # Handling of arguments.
27870 for ac_config_target in $ac_config_targets
27871 do
27872 case $ac_config_target in
27873 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
27874 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
27875 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27876 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
27877 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
27878 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27879
27880 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27881 esac
27882 done
27883
27884
27885 # If the user did not use the arguments to specify the items to instantiate,
27886 # then the envvar interface is used. Set only those that are not.
27887 # We use the long form for the default assignment because of an extremely
27888 # bizarre bug on SunOS 4.1.3.
27889 if $ac_need_defaults; then
27890 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27891 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27892 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27893 fi
27894
27895 # Have a temporary directory for convenience. Make it in the build tree
27896 # simply because there is no reason against having it here, and in addition,
27897 # creating and moving files from /tmp can sometimes cause problems.
27898 # Hook for its removal unless debugging.
27899 # Note that there is a small window in which the directory will not be cleaned:
27900 # after its creation but before its name has been assigned to `$tmp'.
27901 $debug ||
27902 {
27903 tmp=
27904 trap 'exit_status=$?
27905 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27906 ' 0
27907 trap 'as_fn_exit 1' 1 2 13 15
27908 }
27909 # Create a (secure) tmp directory for tmp files.
27910
27911 {
27912 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27913 test -n "$tmp" && test -d "$tmp"
27914 } ||
27915 {
27916 tmp=./conf$$-$RANDOM
27917 (umask 077 && mkdir "$tmp")
27918 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27919
27920 # Set up the scripts for CONFIG_FILES section.
27921 # No need to generate them if there are no CONFIG_FILES.
27922 # This happens for instance with `./config.status config.h'.
27923 if test -n "$CONFIG_FILES"; then
27924
27925 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27926 ac_cs_awk_getline=:
27927 ac_cs_awk_pipe_init=
27928 ac_cs_awk_read_file='
27929 while ((getline aline < (F[key])) > 0)
27930 print(aline)
27931 close(F[key])'
27932 ac_cs_awk_pipe_fini=
27933 else
27934 ac_cs_awk_getline=false
27935 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27936 ac_cs_awk_read_file='
27937 print "|#_!!_#|"
27938 print "cat " F[key] " &&"
27939 '$ac_cs_awk_pipe_init
27940 # The final `:' finishes the AND list.
27941 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27942 fi
27943 ac_cr=`echo X | tr X '\015'`
27944 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27945 # But we know of no other shell where ac_cr would be empty at this
27946 # point, so we can use a bashism as a fallback.
27947 if test "x$ac_cr" = x; then
27948 eval ac_cr=\$\'\\r\'
27949 fi
27950 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27951 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27952 ac_cs_awk_cr='\r'
27953 else
27954 ac_cs_awk_cr=$ac_cr
27955 fi
27956
27957 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27958 _ACEOF
27959
27960 # Create commands to substitute file output variables.
27961 {
27962 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27963 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27964 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27965 echo "_ACAWK" &&
27966 echo "_ACEOF"
27967 } >conf$$files.sh &&
27968 . ./conf$$files.sh ||
27969 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27970 rm -f conf$$files.sh
27971
27972 {
27973 echo "cat >conf$$subs.awk <<_ACEOF" &&
27974 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27975 echo "_ACEOF"
27976 } >conf$$subs.sh ||
27977 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27978 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27979 ac_delim='%!_!# '
27980 for ac_last_try in false false false false false :; do
27981 . ./conf$$subs.sh ||
27982 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27983
27984 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27985 if test $ac_delim_n = $ac_delim_num; then
27986 break
27987 elif $ac_last_try; then
27988 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27989 else
27990 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27991 fi
27992 done
27993 rm -f conf$$subs.sh
27994
27995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27996 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27997 _ACEOF
27998 sed -n '
27999 h
28000 s/^/S["/; s/!.*/"]=/
28001 p
28002 g
28003 s/^[^!]*!//
28004 :repl
28005 t repl
28006 s/'"$ac_delim"'$//
28007 t delim
28008 :nl
28009 h
28010 s/\(.\{148\}\).*/\1/
28011 t more1
28012 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28013 p
28014 n
28015 b repl
28016 :more1
28017 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28018 p
28019 g
28020 s/.\{148\}//
28021 t nl
28022 :delim
28023 h
28024 s/\(.\{148\}\).*/\1/
28025 t more2
28026 s/["\\]/\\&/g; s/^/"/; s/$/"/
28027 p
28028 b
28029 :more2
28030 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28031 p
28032 g
28033 s/.\{148\}//
28034 t delim
28035 ' <conf$$subs.awk | sed '
28036 /^[^""]/{
28037 N
28038 s/\n//
28039 }
28040 ' >>$CONFIG_STATUS || ac_write_fail=1
28041 rm -f conf$$subs.awk
28042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28043 _ACAWK
28044 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28045 for (key in S) S_is_set[key] = 1
28046 FS = "\a"
28047 \$ac_cs_awk_pipe_init
28048 }
28049 {
28050 line = $ 0
28051 nfields = split(line, field, "@")
28052 substed = 0
28053 len = length(field[1])
28054 for (i = 2; i < nfields; i++) {
28055 key = field[i]
28056 keylen = length(key)
28057 if (S_is_set[key]) {
28058 value = S[key]
28059 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28060 len += length(value) + length(field[++i])
28061 substed = 1
28062 } else
28063 len += 1 + keylen
28064 }
28065 if (nfields == 3 && !substed) {
28066 key = field[2]
28067 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28068 \$ac_cs_awk_read_file
28069 next
28070 }
28071 }
28072 print line
28073 }
28074 \$ac_cs_awk_pipe_fini
28075 _ACAWK
28076 _ACEOF
28077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28078 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28079 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28080 else
28081 cat
28082 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28083 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28084 _ACEOF
28085
28086 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28087 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28088 # trailing colons and then remove the whole line if VPATH becomes empty
28089 # (actually we leave an empty line to preserve line numbers).
28090 if test "x$srcdir" = x.; then
28091 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28092 s/:*\$(srcdir):*/:/
28093 s/:*\${srcdir}:*/:/
28094 s/:*@srcdir@:*/:/
28095 s/^\([^=]*=[ ]*\):*/\1/
28096 s/:*$//
28097 s/^[^=]*=[ ]*$//
28098 }'
28099 fi
28100
28101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28102 fi # test -n "$CONFIG_FILES"
28103
28104 # Set up the scripts for CONFIG_HEADERS section.
28105 # No need to generate them if there are no CONFIG_HEADERS.
28106 # This happens for instance with `./config.status Makefile'.
28107 if test -n "$CONFIG_HEADERS"; then
28108 cat >"$tmp/defines.awk" <<\_ACAWK ||
28109 BEGIN {
28110 _ACEOF
28111
28112 # Transform confdefs.h into an awk script `defines.awk', embedded as
28113 # here-document in config.status, that substitutes the proper values into
28114 # config.h.in to produce config.h.
28115
28116 # Create a delimiter string that does not exist in confdefs.h, to ease
28117 # handling of long lines.
28118 ac_delim='%!_!# '
28119 for ac_last_try in false false :; do
28120 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28121 if test -z "$ac_t"; then
28122 break
28123 elif $ac_last_try; then
28124 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28125 else
28126 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28127 fi
28128 done
28129
28130 # For the awk script, D is an array of macro values keyed by name,
28131 # likewise P contains macro parameters if any. Preserve backslash
28132 # newline sequences.
28133
28134 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28135 sed -n '
28136 s/.\{148\}/&'"$ac_delim"'/g
28137 t rset
28138 :rset
28139 s/^[ ]*#[ ]*define[ ][ ]*/ /
28140 t def
28141 d
28142 :def
28143 s/\\$//
28144 t bsnl
28145 s/["\\]/\\&/g
28146 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28147 D["\1"]=" \3"/p
28148 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28149 d
28150 :bsnl
28151 s/["\\]/\\&/g
28152 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28153 D["\1"]=" \3\\\\\\n"\\/p
28154 t cont
28155 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28156 t cont
28157 d
28158 :cont
28159 n
28160 s/.\{148\}/&'"$ac_delim"'/g
28161 t clear
28162 :clear
28163 s/\\$//
28164 t bsnlc
28165 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28166 d
28167 :bsnlc
28168 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28169 b cont
28170 ' <confdefs.h | sed '
28171 s/'"$ac_delim"'/"\\\
28172 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28173
28174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28175 for (key in D) D_is_set[key] = 1
28176 FS = "\a"
28177 }
28178 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28179 line = \$ 0
28180 split(line, arg, " ")
28181 if (arg[1] == "#") {
28182 defundef = arg[2]
28183 mac1 = arg[3]
28184 } else {
28185 defundef = substr(arg[1], 2)
28186 mac1 = arg[2]
28187 }
28188 split(mac1, mac2, "(") #)
28189 macro = mac2[1]
28190 prefix = substr(line, 1, index(line, defundef) - 1)
28191 if (D_is_set[macro]) {
28192 # Preserve the white space surrounding the "#".
28193 print prefix "define", macro P[macro] D[macro]
28194 next
28195 } else {
28196 # Replace #undef with comments. This is necessary, for example,
28197 # in the case of _POSIX_SOURCE, which is predefined and required
28198 # on some systems where configure will not decide to define it.
28199 if (defundef == "undef") {
28200 print "/*", prefix defundef, macro, "*/"
28201 next
28202 }
28203 }
28204 }
28205 { print }
28206 _ACAWK
28207 _ACEOF
28208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28209 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28210 fi # test -n "$CONFIG_HEADERS"
28211
28212
28213 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28214 shift
28215 for ac_tag
28216 do
28217 case $ac_tag in
28218 :[FHLC]) ac_mode=$ac_tag; continue;;
28219 esac
28220 case $ac_mode$ac_tag in
28221 :[FHL]*:*);;
28222 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28223 :[FH]-) ac_tag=-:-;;
28224 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28225 esac
28226 ac_save_IFS=$IFS
28227 IFS=:
28228 set x $ac_tag
28229 IFS=$ac_save_IFS
28230 shift
28231 ac_file=$1
28232 shift
28233
28234 case $ac_mode in
28235 :L) ac_source=$1;;
28236 :[FH])
28237 ac_file_inputs=
28238 for ac_f
28239 do
28240 case $ac_f in
28241 -) ac_f="$tmp/stdin";;
28242 *) # Look for the file first in the build tree, then in the source tree
28243 # (if the path is not absolute). The absolute path cannot be DOS-style,
28244 # because $ac_f cannot contain `:'.
28245 test -f "$ac_f" ||
28246 case $ac_f in
28247 [\\/$]*) false;;
28248 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28249 esac ||
28250 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28251 esac
28252 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28253 as_fn_append ac_file_inputs " '$ac_f'"
28254 done
28255
28256 # Let's still pretend it is `configure' which instantiates (i.e., don't
28257 # use $as_me), people would be surprised to read:
28258 # /* config.h. Generated by config.status. */
28259 configure_input='Generated from '`
28260 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28261 `' by configure.'
28262 if test x"$ac_file" != x-; then
28263 configure_input="$ac_file. $configure_input"
28264 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28265 $as_echo "$as_me: creating $ac_file" >&6;}
28266 fi
28267 # Neutralize special characters interpreted by sed in replacement strings.
28268 case $configure_input in #(
28269 *\&* | *\|* | *\\* )
28270 ac_sed_conf_input=`$as_echo "$configure_input" |
28271 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28272 *) ac_sed_conf_input=$configure_input;;
28273 esac
28274
28275 case $ac_tag in
28276 *:-:* | *:-) cat >"$tmp/stdin" \
28277 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28278 esac
28279 ;;
28280 esac
28281
28282 ac_dir=`$as_dirname -- "$ac_file" ||
28283 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28284 X"$ac_file" : 'X\(//\)[^/]' \| \
28285 X"$ac_file" : 'X\(//\)$' \| \
28286 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28287 $as_echo X"$ac_file" |
28288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28289 s//\1/
28290 q
28291 }
28292 /^X\(\/\/\)[^/].*/{
28293 s//\1/
28294 q
28295 }
28296 /^X\(\/\/\)$/{
28297 s//\1/
28298 q
28299 }
28300 /^X\(\/\).*/{
28301 s//\1/
28302 q
28303 }
28304 s/.*/./; q'`
28305 as_dir="$ac_dir"; as_fn_mkdir_p
28306 ac_builddir=.
28307
28308 case "$ac_dir" in
28309 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28310 *)
28311 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28312 # A ".." for each directory in $ac_dir_suffix.
28313 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28314 case $ac_top_builddir_sub in
28315 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28316 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28317 esac ;;
28318 esac
28319 ac_abs_top_builddir=$ac_pwd
28320 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28321 # for backward compatibility:
28322 ac_top_builddir=$ac_top_build_prefix
28323
28324 case $srcdir in
28325 .) # We are building in place.
28326 ac_srcdir=.
28327 ac_top_srcdir=$ac_top_builddir_sub
28328 ac_abs_top_srcdir=$ac_pwd ;;
28329 [\\/]* | ?:[\\/]* ) # Absolute name.
28330 ac_srcdir=$srcdir$ac_dir_suffix;
28331 ac_top_srcdir=$srcdir
28332 ac_abs_top_srcdir=$srcdir ;;
28333 *) # Relative name.
28334 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28335 ac_top_srcdir=$ac_top_build_prefix$srcdir
28336 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28337 esac
28338 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28339
28340
28341 case $ac_mode in
28342 :F)
28343 #
28344 # CONFIG_FILE
28345 #
28346
28347 _ACEOF
28348
28349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28350 # If the template does not know about datarootdir, expand it.
28351 # FIXME: This hack should be removed a few years after 2.60.
28352 ac_datarootdir_hack=; ac_datarootdir_seen=
28353 ac_sed_dataroot='
28354 /datarootdir/ {
28355 p
28356 q
28357 }
28358 /@datadir@/p
28359 /@docdir@/p
28360 /@infodir@/p
28361 /@localedir@/p
28362 /@mandir@/p'
28363 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28364 *datarootdir*) ac_datarootdir_seen=yes;;
28365 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28367 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28368 _ACEOF
28369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28370 ac_datarootdir_hack='
28371 s&@datadir@&$datadir&g
28372 s&@docdir@&$docdir&g
28373 s&@infodir@&$infodir&g
28374 s&@localedir@&$localedir&g
28375 s&@mandir@&$mandir&g
28376 s&\\\${datarootdir}&$datarootdir&g' ;;
28377 esac
28378 _ACEOF
28379
28380 # Neutralize VPATH when `$srcdir' = `.'.
28381 # Shell code in configure.ac might set extrasub.
28382 # FIXME: do we really want to maintain this feature?
28383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28384 ac_sed_extra="$ac_vpsub
28385 $extrasub
28386 _ACEOF
28387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28388 :t
28389 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28390 s|@configure_input@|$ac_sed_conf_input|;t t
28391 s&@top_builddir@&$ac_top_builddir_sub&;t t
28392 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28393 s&@srcdir@&$ac_srcdir&;t t
28394 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28395 s&@top_srcdir@&$ac_top_srcdir&;t t
28396 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28397 s&@builddir@&$ac_builddir&;t t
28398 s&@abs_builddir@&$ac_abs_builddir&;t t
28399 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28400 $ac_datarootdir_hack
28401 "
28402 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28403 if $ac_cs_awk_getline; then
28404 $AWK -f "$tmp/subs.awk"
28405 else
28406 $AWK -f "$tmp/subs.awk" | $SHELL
28407 fi >$tmp/out \
28408 || as_fn_error "could not create $ac_file" "$LINENO" 5
28409
28410 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28411 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28412 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28414 which seems to be undefined. Please make sure it is defined." >&5
28415 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28416 which seems to be undefined. Please make sure it is defined." >&2;}
28417
28418 rm -f "$tmp/stdin"
28419 case $ac_file in
28420 -) cat "$tmp/out" && rm -f "$tmp/out";;
28421 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28422 esac \
28423 || as_fn_error "could not create $ac_file" "$LINENO" 5
28424 ;;
28425 :H)
28426 #
28427 # CONFIG_HEADER
28428 #
28429 if test x"$ac_file" != x-; then
28430 {
28431 $as_echo "/* $configure_input */" \
28432 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28433 } >"$tmp/config.h" \
28434 || as_fn_error "could not create $ac_file" "$LINENO" 5
28435 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28436 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28437 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28438 else
28439 rm -f "$ac_file"
28440 mv "$tmp/config.h" "$ac_file" \
28441 || as_fn_error "could not create $ac_file" "$LINENO" 5
28442 fi
28443 else
28444 $as_echo "/* $configure_input */" \
28445 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28446 || as_fn_error "could not create -" "$LINENO" 5
28447 fi
28448 ;;
28449
28450 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28451 $as_echo "$as_me: executing $ac_file commands" >&6;}
28452 ;;
28453 esac
28454
28455
28456 case $ac_file$ac_mode in
28457 "as":F) chmod +x as ;;
28458 "collect-ld":F) chmod +x collect-ld ;;
28459 "nm":F) chmod +x nm ;;
28460 "default":C)
28461 case ${CONFIG_HEADERS} in
28462 *auto-host.h:config.in*)
28463 echo > cstamp-h ;;
28464 esac
28465 # Make sure all the subdirs exist.
28466 for d in $subdirs doc build common c-family
28467 do
28468 test -d $d || mkdir $d
28469 done
28470 ;;
28471
28472 esac
28473 done # for ac_tag
28474
28475
28476 as_fn_exit 0
28477 _ACEOF
28478 ac_clean_files=$ac_clean_files_save
28479
28480 test $ac_write_fail = 0 ||
28481 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28482
28483
28484 # configure is writing to config.log, and then calls config.status.
28485 # config.status does its own redirection, appending to config.log.
28486 # Unfortunately, on DOS this fails, as config.log is still kept open
28487 # by configure, so config.status won't be able to write to it; its
28488 # output is simply discarded. So we exec the FD to /dev/null,
28489 # effectively closing config.log, so it can be properly (re)opened and
28490 # appended to by config.status. When coming back to configure, we
28491 # need to make the FD available again.
28492 if test "$no_create" != yes; then
28493 ac_cs_success=:
28494 ac_config_status_args=
28495 test "$silent" = yes &&
28496 ac_config_status_args="$ac_config_status_args --quiet"
28497 exec 5>/dev/null
28498 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28499 exec 5>>config.log
28500 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28501 # would make configure fail if this is the last instruction.
28502 $ac_cs_success || as_fn_exit $?
28503 fi
28504 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28506 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28507 fi
28508
28509