]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
Makefile.in (UNWIND_H): Remove.
[thirdparty/gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 PPLINC
608 PPLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 libgcc_tm_include_list
622 libgcc_tm_file_list
623 tm_defines
624 tm_include_list
625 tm_file_list
626 thread_file
627 common_out_object_file
628 common_out_file
629 out_object_file
630 out_file
631 objc_boehm_gc
632 md_file
633 local_prefix
634 lang_tree_files
635 lang_specs_files
636 lang_opt_files
637 install
638 out_host_hook_obj
639 host_xm_defines
640 host_xm_include_list
641 host_xm_file_list
642 host_exeext
643 gcc_gxx_include_dir
644 gcc_config_arguments
645 float_h_file
646 extra_programs
647 extra_passes
648 extra_parts
649 extra_objs
650 extra_headers_list
651 user_headers_inc_next_post
652 user_headers_inc_next_pre
653 extra_gcc_objs
654 TM_MULTILIB_EXCEPTIONS_CONFIG
655 TM_MULTILIB_CONFIG
656 TM_ENDIAN_CONFIG
657 tmake_file
658 xmake_file
659 cpp_install_dir
660 check_languages
661 build_file_translate
662 build_xm_defines
663 build_xm_include_list
664 build_xm_file_list
665 build_install_headers_dir
666 build_exeext
667 all_selected_languages
668 all_languages
669 all_lang_makefrags
670 all_gtfiles
671 all_compilers
672 srcdir
673 subdirs
674 slibdir
675 dollar
676 gcc_tooldir
677 enable_lto
678 MAINT
679 zlibinc
680 zlibdir
681 HOST_LIBS
682 GGC
683 libgcc_visibility
684 gcc_cv_readelf
685 gcc_cv_objdump
686 ORIGINAL_NM_FOR_TARGET
687 gcc_cv_nm
688 ORIGINAL_LD_FOR_TARGET
689 ORIGINAL_PLUGIN_LD_FOR_TARGET
690 gcc_cv_ld
691 ORIGINAL_AS_FOR_TARGET
692 gcc_cv_as
693 enable_fast_install
694 objdir
695 OTOOL64
696 OTOOL
697 LIPO
698 NMEDIT
699 DSYMUTIL
700 STRIP
701 OBJDUMP
702 ac_ct_DUMPBIN
703 DUMPBIN
704 LD
705 FGREP
706 SED
707 LIBTOOL
708 collect2
709 STMP_FIXINC
710 BUILD_LDFLAGS
711 BUILD_CFLAGS
712 CC_FOR_BUILD
713 inhibit_libc
714 SYSTEM_HEADER_DIR
715 ALL
716 CROSS
717 CATOBJEXT
718 GENCAT
719 INSTOBJEXT
720 DATADIRNAME
721 CATALOGS
722 POSUB
723 GMSGFMT
724 XGETTEXT
725 INCINTL
726 LIBINTL_DEP
727 LIBINTL
728 USE_NLS
729 extra_opt_files
730 extra_modes_file
731 gthread_flags
732 objext
733 manext
734 LIBICONV_DEP
735 LTLIBICONV
736 LIBICONV
737 LDEXP_LIB
738 GNAT_LIBEXC
739 COLLECT2_LIBS
740 CXXCPP
741 AR
742 NM
743 BISON
744 FLEX
745 GENERATED_MANPAGES
746 BUILD_INFO
747 MAKEINFO
748 have_mktemp_command
749 make_compare_target
750 INSTALL_DATA
751 INSTALL_PROGRAM
752 INSTALL
753 ranlib_flags
754 RANLIB
755 LN
756 LN_S
757 AWK
758 SET_MAKE
759 REPORT_BUGS_TEXI
760 REPORT_BUGS_TO
761 PKGVERSION
762 CONFIGURE_SPECS
763 CROSS_SYSTEM_HEADER_DIR
764 TARGET_SYSTEM_ROOT_DEFINE
765 TARGET_SYSTEM_ROOT
766 enable_shared
767 enable_fixed_point
768 enable_decimal_float
769 enable_multilib
770 ENABLE_BUILD_WITH_CXX
771 coverage_flags
772 valgrind_command
773 valgrind_path_defines
774 valgrind_path
775 TREEBROWSER
776 nocommon_flag
777 warn_cxxflags
778 warn_cflags
779 c_strict_warn
780 strict_warn
781 c_loose_warn
782 loose_warn
783 EGREP
784 GREP
785 CPP
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 enable_build_with_cxx
876 with_stabs
877 enable_multilib
878 enable___cxa_atexit
879 enable_decimal_float
880 enable_fixed_point
881 enable_threads
882 enable_tls
883 enable_objc_gc
884 with_dwarf2
885 enable_shared
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_initfini_array
896 enable_sjlj_exceptions
897 enable_secureplt
898 enable_leading_mingw64_underscores
899 enable_cld
900 enable_frame_pointer
901 enable_win32_registry
902 enable_static
903 with_pic
904 enable_fast_install
905 enable_libtool_lock
906 with_plugin_ld
907 enable_gnu_indirect_function
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 with_slibdir
917 enable_plugin
918 enable_libquadmath_support
919 with_linker_hash_style
920 '
921 ac_precious_vars='build_alias
922 host_alias
923 target_alias
924 CC
925 CFLAGS
926 LDFLAGS
927 LIBS
928 CPPFLAGS
929 CXX
930 CXXFLAGS
931 CCC
932 CPP
933 CXXCPP
934 GMPLIBS
935 GMPINC
936 PPLLIBS
937 PPLINC
938 CLOOGLIBS
939 CLOOGINC'
940
941
942 # Initialize some variables set by options.
943 ac_init_help=
944 ac_init_version=false
945 ac_unrecognized_opts=
946 ac_unrecognized_sep=
947 # The variables have the same names as the options, with
948 # dashes changed to underlines.
949 cache_file=/dev/null
950 exec_prefix=NONE
951 no_create=
952 no_recursion=
953 prefix=NONE
954 program_prefix=NONE
955 program_suffix=NONE
956 program_transform_name=s,x,x,
957 silent=
958 site=
959 srcdir=
960 verbose=
961 x_includes=NONE
962 x_libraries=NONE
963
964 # Installation directory options.
965 # These are left unexpanded so users can "make install exec_prefix=/foo"
966 # and all the variables that are supposed to be based on exec_prefix
967 # by default will actually change.
968 # Use braces instead of parens because sh, perl, etc. also accept them.
969 # (The list follows the same order as the GNU Coding Standards.)
970 bindir='${exec_prefix}/bin'
971 sbindir='${exec_prefix}/sbin'
972 libexecdir='${exec_prefix}/libexec'
973 datarootdir='${prefix}/share'
974 datadir='${datarootdir}'
975 sysconfdir='${prefix}/etc'
976 sharedstatedir='${prefix}/com'
977 localstatedir='${prefix}/var'
978 includedir='${prefix}/include'
979 oldincludedir='/usr/include'
980 docdir='${datarootdir}/doc/${PACKAGE}'
981 infodir='${datarootdir}/info'
982 htmldir='${docdir}'
983 dvidir='${docdir}'
984 pdfdir='${docdir}'
985 psdir='${docdir}'
986 libdir='${exec_prefix}/lib'
987 localedir='${datarootdir}/locale'
988 mandir='${datarootdir}/man'
989
990 ac_prev=
991 ac_dashdash=
992 for ac_option
993 do
994 # If the previous option needs an argument, assign it.
995 if test -n "$ac_prev"; then
996 eval $ac_prev=\$ac_option
997 ac_prev=
998 continue
999 fi
1000
1001 case $ac_option in
1002 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1003 *) ac_optarg=yes ;;
1004 esac
1005
1006 # Accept the important Cygnus configure options, so we can diagnose typos.
1007
1008 case $ac_dashdash$ac_option in
1009 --)
1010 ac_dashdash=yes ;;
1011
1012 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1013 ac_prev=bindir ;;
1014 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1015 bindir=$ac_optarg ;;
1016
1017 -build | --build | --buil | --bui | --bu)
1018 ac_prev=build_alias ;;
1019 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1020 build_alias=$ac_optarg ;;
1021
1022 -cache-file | --cache-file | --cache-fil | --cache-fi \
1023 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1024 ac_prev=cache_file ;;
1025 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1026 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1027 cache_file=$ac_optarg ;;
1028
1029 --config-cache | -C)
1030 cache_file=config.cache ;;
1031
1032 -datadir | --datadir | --datadi | --datad)
1033 ac_prev=datadir ;;
1034 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1035 datadir=$ac_optarg ;;
1036
1037 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1038 | --dataroo | --dataro | --datar)
1039 ac_prev=datarootdir ;;
1040 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1041 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1042 datarootdir=$ac_optarg ;;
1043
1044 -disable-* | --disable-*)
1045 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048 as_fn_error "invalid feature name: $ac_useropt"
1049 ac_useropt_orig=$ac_useropt
1050 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1052 *"
1053 "enable_$ac_useropt"
1054 "*) ;;
1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1056 ac_unrecognized_sep=', ';;
1057 esac
1058 eval enable_$ac_useropt=no ;;
1059
1060 -docdir | --docdir | --docdi | --doc | --do)
1061 ac_prev=docdir ;;
1062 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063 docdir=$ac_optarg ;;
1064
1065 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1066 ac_prev=dvidir ;;
1067 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068 dvidir=$ac_optarg ;;
1069
1070 -enable-* | --enable-*)
1071 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074 as_fn_error "invalid feature name: $ac_useropt"
1075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1078 *"
1079 "enable_$ac_useropt"
1080 "*) ;;
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
1083 esac
1084 eval enable_$ac_useropt=\$ac_optarg ;;
1085
1086 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1087 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1088 | --exec | --exe | --ex)
1089 ac_prev=exec_prefix ;;
1090 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1091 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1092 | --exec=* | --exe=* | --ex=*)
1093 exec_prefix=$ac_optarg ;;
1094
1095 -gas | --gas | --ga | --g)
1096 # Obsolete; use --with-gas.
1097 with_gas=yes ;;
1098
1099 -help | --help | --hel | --he | -h)
1100 ac_init_help=long ;;
1101 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1102 ac_init_help=recursive ;;
1103 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1104 ac_init_help=short ;;
1105
1106 -host | --host | --hos | --ho)
1107 ac_prev=host_alias ;;
1108 -host=* | --host=* | --hos=* | --ho=*)
1109 host_alias=$ac_optarg ;;
1110
1111 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1112 ac_prev=htmldir ;;
1113 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1114 | --ht=*)
1115 htmldir=$ac_optarg ;;
1116
1117 -includedir | --includedir | --includedi | --included | --include \
1118 | --includ | --inclu | --incl | --inc)
1119 ac_prev=includedir ;;
1120 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1121 | --includ=* | --inclu=* | --incl=* | --inc=*)
1122 includedir=$ac_optarg ;;
1123
1124 -infodir | --infodir | --infodi | --infod | --info | --inf)
1125 ac_prev=infodir ;;
1126 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1127 infodir=$ac_optarg ;;
1128
1129 -libdir | --libdir | --libdi | --libd)
1130 ac_prev=libdir ;;
1131 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1132 libdir=$ac_optarg ;;
1133
1134 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1135 | --libexe | --libex | --libe)
1136 ac_prev=libexecdir ;;
1137 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1138 | --libexe=* | --libex=* | --libe=*)
1139 libexecdir=$ac_optarg ;;
1140
1141 -localedir | --localedir | --localedi | --localed | --locale)
1142 ac_prev=localedir ;;
1143 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1144 localedir=$ac_optarg ;;
1145
1146 -localstatedir | --localstatedir | --localstatedi | --localstated \
1147 | --localstate | --localstat | --localsta | --localst | --locals)
1148 ac_prev=localstatedir ;;
1149 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1150 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1151 localstatedir=$ac_optarg ;;
1152
1153 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1154 ac_prev=mandir ;;
1155 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1156 mandir=$ac_optarg ;;
1157
1158 -nfp | --nfp | --nf)
1159 # Obsolete; use --without-fp.
1160 with_fp=no ;;
1161
1162 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1163 | --no-cr | --no-c | -n)
1164 no_create=yes ;;
1165
1166 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1168 no_recursion=yes ;;
1169
1170 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1171 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1172 | --oldin | --oldi | --old | --ol | --o)
1173 ac_prev=oldincludedir ;;
1174 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1175 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1176 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1177 oldincludedir=$ac_optarg ;;
1178
1179 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1180 ac_prev=prefix ;;
1181 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1182 prefix=$ac_optarg ;;
1183
1184 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1185 | --program-pre | --program-pr | --program-p)
1186 ac_prev=program_prefix ;;
1187 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1188 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1189 program_prefix=$ac_optarg ;;
1190
1191 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1192 | --program-suf | --program-su | --program-s)
1193 ac_prev=program_suffix ;;
1194 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1195 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1196 program_suffix=$ac_optarg ;;
1197
1198 -program-transform-name | --program-transform-name \
1199 | --program-transform-nam | --program-transform-na \
1200 | --program-transform-n | --program-transform- \
1201 | --program-transform | --program-transfor \
1202 | --program-transfo | --program-transf \
1203 | --program-trans | --program-tran \
1204 | --progr-tra | --program-tr | --program-t)
1205 ac_prev=program_transform_name ;;
1206 -program-transform-name=* | --program-transform-name=* \
1207 | --program-transform-nam=* | --program-transform-na=* \
1208 | --program-transform-n=* | --program-transform-=* \
1209 | --program-transform=* | --program-transfor=* \
1210 | --program-transfo=* | --program-transf=* \
1211 | --program-trans=* | --program-tran=* \
1212 | --progr-tra=* | --program-tr=* | --program-t=*)
1213 program_transform_name=$ac_optarg ;;
1214
1215 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1216 ac_prev=pdfdir ;;
1217 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1218 pdfdir=$ac_optarg ;;
1219
1220 -psdir | --psdir | --psdi | --psd | --ps)
1221 ac_prev=psdir ;;
1222 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1223 psdir=$ac_optarg ;;
1224
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1227 silent=yes ;;
1228
1229 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1230 ac_prev=sbindir ;;
1231 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1232 | --sbi=* | --sb=*)
1233 sbindir=$ac_optarg ;;
1234
1235 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1236 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1237 | --sharedst | --shareds | --shared | --share | --shar \
1238 | --sha | --sh)
1239 ac_prev=sharedstatedir ;;
1240 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1241 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1242 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1243 | --sha=* | --sh=*)
1244 sharedstatedir=$ac_optarg ;;
1245
1246 -site | --site | --sit)
1247 ac_prev=site ;;
1248 -site=* | --site=* | --sit=*)
1249 site=$ac_optarg ;;
1250
1251 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1252 ac_prev=srcdir ;;
1253 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1254 srcdir=$ac_optarg ;;
1255
1256 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1257 | --syscon | --sysco | --sysc | --sys | --sy)
1258 ac_prev=sysconfdir ;;
1259 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1260 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1261 sysconfdir=$ac_optarg ;;
1262
1263 -target | --target | --targe | --targ | --tar | --ta | --t)
1264 ac_prev=target_alias ;;
1265 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1266 target_alias=$ac_optarg ;;
1267
1268 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1269 verbose=yes ;;
1270
1271 -version | --version | --versio | --versi | --vers | -V)
1272 ac_init_version=: ;;
1273
1274 -with-* | --with-*)
1275 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278 as_fn_error "invalid package name: $ac_useropt"
1279 ac_useropt_orig=$ac_useropt
1280 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281 case $ac_user_opts in
1282 *"
1283 "with_$ac_useropt"
1284 "*) ;;
1285 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1286 ac_unrecognized_sep=', ';;
1287 esac
1288 eval with_$ac_useropt=\$ac_optarg ;;
1289
1290 -without-* | --without-*)
1291 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294 as_fn_error "invalid package name: $ac_useropt"
1295 ac_useropt_orig=$ac_useropt
1296 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297 case $ac_user_opts in
1298 *"
1299 "with_$ac_useropt"
1300 "*) ;;
1301 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1302 ac_unrecognized_sep=', ';;
1303 esac
1304 eval with_$ac_useropt=no ;;
1305
1306 --x)
1307 # Obsolete; use --with-x.
1308 with_x=yes ;;
1309
1310 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311 | --x-incl | --x-inc | --x-in | --x-i)
1312 ac_prev=x_includes ;;
1313 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315 x_includes=$ac_optarg ;;
1316
1317 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319 ac_prev=x_libraries ;;
1320 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322 x_libraries=$ac_optarg ;;
1323
1324 -*) as_fn_error "unrecognized option: \`$ac_option'
1325 Try \`$0 --help' for more information."
1326 ;;
1327
1328 *=*)
1329 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330 # Reject names that are not valid shell variable names.
1331 case $ac_envvar in #(
1332 '' | [0-9]* | *[!_$as_cr_alnum]* )
1333 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1334 esac
1335 eval $ac_envvar=\$ac_optarg
1336 export $ac_envvar ;;
1337
1338 *)
1339 # FIXME: should be removed in autoconf 3.0.
1340 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344 ;;
1345
1346 esac
1347 done
1348
1349 if test -n "$ac_prev"; then
1350 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351 as_fn_error "missing argument to $ac_option"
1352 fi
1353
1354 if test -n "$ac_unrecognized_opts"; then
1355 case $enable_option_checking in
1356 no) ;;
1357 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1358 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1359 esac
1360 fi
1361
1362 # Check all directory arguments for consistency.
1363 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364 datadir sysconfdir sharedstatedir localstatedir includedir \
1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366 libdir localedir mandir
1367 do
1368 eval ac_val=\$$ac_var
1369 # Remove trailing slashes.
1370 case $ac_val in
1371 */ )
1372 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1373 eval $ac_var=\$ac_val;;
1374 esac
1375 # Be sure to have absolute directory names.
1376 case $ac_val in
1377 [\\/$]* | ?:[\\/]* ) continue;;
1378 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1379 esac
1380 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1381 done
1382
1383 # There might be people who depend on the old broken behavior: `$host'
1384 # used to hold the argument of --host etc.
1385 # FIXME: To remove some day.
1386 build=$build_alias
1387 host=$host_alias
1388 target=$target_alias
1389
1390 # FIXME: To remove some day.
1391 if test "x$host_alias" != x; then
1392 if test "x$build_alias" = x; then
1393 cross_compiling=maybe
1394 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1395 If a cross compiler is detected then cross compile mode will be used." >&2
1396 elif test "x$build_alias" != "x$host_alias"; then
1397 cross_compiling=yes
1398 fi
1399 fi
1400
1401 ac_tool_prefix=
1402 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1403
1404 test "$silent" = yes && exec 6>/dev/null
1405
1406
1407 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1408 ac_ls_di=`ls -di .` &&
1409 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1410 as_fn_error "working directory cannot be determined"
1411 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1412 as_fn_error "pwd does not report name of working directory"
1413
1414
1415 # Find the source files, if location was not specified.
1416 if test -z "$srcdir"; then
1417 ac_srcdir_defaulted=yes
1418 # Try the directory containing this script, then the parent directory.
1419 ac_confdir=`$as_dirname -- "$as_myself" ||
1420 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1421 X"$as_myself" : 'X\(//\)[^/]' \| \
1422 X"$as_myself" : 'X\(//\)$' \| \
1423 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1424 $as_echo X"$as_myself" |
1425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1426 s//\1/
1427 q
1428 }
1429 /^X\(\/\/\)[^/].*/{
1430 s//\1/
1431 q
1432 }
1433 /^X\(\/\/\)$/{
1434 s//\1/
1435 q
1436 }
1437 /^X\(\/\).*/{
1438 s//\1/
1439 q
1440 }
1441 s/.*/./; q'`
1442 srcdir=$ac_confdir
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1444 srcdir=..
1445 fi
1446 else
1447 ac_srcdir_defaulted=no
1448 fi
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1450 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1451 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1452 fi
1453 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1454 ac_abs_confdir=`(
1455 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1456 pwd)`
1457 # When building in place, set srcdir=.
1458 if test "$ac_abs_confdir" = "$ac_pwd"; then
1459 srcdir=.
1460 fi
1461 # Remove unnecessary trailing slashes from srcdir.
1462 # Double slashes in file names in object file debugging info
1463 # mess up M-x gdb in Emacs.
1464 case $srcdir in
1465 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1466 esac
1467 for ac_var in $ac_precious_vars; do
1468 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1469 eval ac_env_${ac_var}_value=\$${ac_var}
1470 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1472 done
1473
1474 #
1475 # Report the --help message.
1476 #
1477 if test "$ac_init_help" = "long"; then
1478 # Omit some internal or obsolete options to make the list less imposing.
1479 # This message is too long to be a string in the A/UX 3.1 sh.
1480 cat <<_ACEOF
1481 \`configure' configures this package to adapt to many kinds of systems.
1482
1483 Usage: $0 [OPTION]... [VAR=VALUE]...
1484
1485 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1486 VAR=VALUE. See below for descriptions of some of the useful variables.
1487
1488 Defaults for the options are specified in brackets.
1489
1490 Configuration:
1491 -h, --help display this help and exit
1492 --help=short display options specific to this package
1493 --help=recursive display the short help of all the included packages
1494 -V, --version display version information and exit
1495 -q, --quiet, --silent do not print \`checking...' messages
1496 --cache-file=FILE cache test results in FILE [disabled]
1497 -C, --config-cache alias for \`--cache-file=config.cache'
1498 -n, --no-create do not create output files
1499 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1500
1501 Installation directories:
1502 --prefix=PREFIX install architecture-independent files in PREFIX
1503 [$ac_default_prefix]
1504 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1505 [PREFIX]
1506
1507 By default, \`make install' will install all the files in
1508 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1509 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1510 for instance \`--prefix=\$HOME'.
1511
1512 For better control, use the options below.
1513
1514 Fine tuning of the installation directories:
1515 --bindir=DIR user executables [EPREFIX/bin]
1516 --sbindir=DIR system admin executables [EPREFIX/sbin]
1517 --libexecdir=DIR program executables [EPREFIX/libexec]
1518 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1519 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1520 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1521 --libdir=DIR object code libraries [EPREFIX/lib]
1522 --includedir=DIR C header files [PREFIX/include]
1523 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1524 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1525 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1526 --infodir=DIR info documentation [DATAROOTDIR/info]
1527 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1528 --mandir=DIR man documentation [DATAROOTDIR/man]
1529 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1530 --htmldir=DIR html documentation [DOCDIR]
1531 --dvidir=DIR dvi documentation [DOCDIR]
1532 --pdfdir=DIR pdf documentation [DOCDIR]
1533 --psdir=DIR ps documentation [DOCDIR]
1534 _ACEOF
1535
1536 cat <<\_ACEOF
1537
1538 Program names:
1539 --program-prefix=PREFIX prepend PREFIX to installed program names
1540 --program-suffix=SUFFIX append SUFFIX to installed program names
1541 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1542
1543 System types:
1544 --build=BUILD configure for building on BUILD [guessed]
1545 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1546 --target=TARGET configure for building compilers for TARGET [HOST]
1547 _ACEOF
1548 fi
1549
1550 if test -n "$ac_init_help"; then
1551
1552 cat <<\_ACEOF
1553
1554 Optional Features:
1555 --disable-option-checking ignore unrecognized --enable/--with options
1556 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1557 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1558 --enable-generated-files-in-srcdir
1559 put copies of generated files in source dir intended
1560 for creating source tarballs for users without
1561 texinfo bison or flex
1562 --disable-largefile omit support for large files
1563 --enable-werror-always enable -Werror despite compiler version
1564 --enable-checking[=LIST]
1565 enable expensive run-time checks. With LIST, enable
1566 only specific categories of checks. Categories are:
1567 yes,no,all,none,release. Flags are:
1568 assert,df,fold,gc,gcac,gimple,misc,
1569 rtlflag,rtl,runtime,tree,valgrind,types
1570 --enable-coverage[=LEVEL]
1571 enable compiler's code coverage collection. Use to
1572 measure compiler performance and locate unused parts
1573 of the compiler. With LEVEL, specify optimization.
1574 Values are opt, noopt, default is noopt
1575 --enable-gather-detailed-mem-stats
1576 enable detailed memory allocation stats gathering
1577 --enable-build-with-cxx build with C++ compiler instead of C compiler
1578 --enable-multilib enable library support for multiple ABIs
1579 --enable-__cxa_atexit enable __cxa_atexit for C++
1580 --enable-decimal-float={no,yes,bid,dpd}
1581 enable decimal float extension to C. Selecting 'bid'
1582 or 'dpd' choses which decimal floating point format
1583 to use
1584 --enable-fixed-point enable fixed-point arithmetic extension to C
1585 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1586 package
1587 --enable-tls enable or disable generation of tls code overriding
1588 the assembler check for tls support
1589 --enable-objc-gc enable the use of Boehm's garbage collector with the
1590 GNU Objective-C runtime
1591 --disable-shared don't provide a shared libgcc
1592 --enable-languages=LIST specify which front-ends to build
1593 --disable-rpath do not hardcode runtime library paths
1594 --enable-initfini-array use .init_array/.fini_array sections
1595 --enable-sjlj-exceptions
1596 arrange to use setjmp/longjmp exception handling
1597 --enable-secureplt enable -msecure-plt by default for PowerPC
1598 --enable-leading-mingw64-underscores
1599 enable leading underscores on 64 bit mingw targets
1600 --enable-cld enable -mcld by default for 32bit x86
1601 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1602 x86
1603 --disable-win32-registry
1604 disable lookup of installation paths in the Registry
1605 on Windows hosts
1606 --enable-win32-registry enable registry lookup (default)
1607 --enable-win32-registry=KEY
1608 use KEY instead of GCC version as the last portion
1609 of the registry key
1610 --enable-shared[=PKGS] build shared libraries [default=yes]
1611 --enable-static[=PKGS] build static libraries [default=yes]
1612 --enable-fast-install[=PKGS]
1613 optimize for fast installation [default=yes]
1614 --disable-libtool-lock avoid locking (might break parallel builds)
1615 --enable-gnu-indirect-function
1616 enable the use of the @gnu_indirect_function to
1617 glibc systems
1618 --enable-comdat enable COMDAT group support
1619 --enable-gnu-unique-object
1620 enable the use of the @gnu_unique_object ELF
1621 extension on glibc systems
1622 --enable-linker-build-id
1623 compiler will always pass --build-id to linker
1624 --enable-maintainer-mode
1625 enable make rules and dependencies not useful (and
1626 sometimes confusing) to the casual installer
1627 --enable-version-specific-runtime-libs
1628 specify that runtime libraries should be installed
1629 in a compiler-specific directory
1630 --enable-plugin enable plugin support
1631 --disable-libquadmath-support
1632 disable libquadmath support for Fortran
1633
1634 Optional Packages:
1635 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1636 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1637 --with-build-libsubdir=DIR Directory where to find libraries for build system
1638 --with-local-prefix=DIR specifies directory to put local include
1639 --with-gxx-include-dir=DIR
1640 specifies directory to put g++ header files
1641 --with-cpp-install-dir=DIR
1642 install the user visible C preprocessor in DIR
1643 (relative to PREFIX) as well as PREFIX/bin
1644 --with-gnu-ld arrange to work with GNU ld
1645 --with-ld arrange to use the specified ld (full pathname)
1646 --with-demangler-in-ld try to use demangler in GNU ld
1647 --with-gnu-as arrange to work with GNU as
1648 --with-as arrange to use the specified as (full pathname)
1649 --with-stabs arrange to use stabs instead of host debug format
1650 --with-dwarf2 force the default debug format to be DWARF 2
1651 --with-build-sysroot=sysroot
1652 use sysroot as the system root during the build
1653 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1654 --with-specs=SPECS add SPECS to driver command-line processing
1655 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1656 --with-bugurl=URL Direct users to URL to report a bug
1657 --with-multilib-list select multilibs (SH and x86-64 only)
1658 --with-gnu-ld assume the C compiler uses GNU ld default=no
1659 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1660 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1661 --with-pic try to use only PIC/non-PIC objects [default=use
1662 both]
1663 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1664 --with-plugin-ld=[ARG] specify the plugin linker
1665 --with-long-double-128 use 128-bit long double by default
1666 --with-gc={page,zone} choose the garbage collection mechanism to use with
1667 the compiler
1668 --with-system-zlib use installed libz
1669 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1670 --with-linker-hash-style={sysv,gnu,both}
1671 specify the linker hash style
1672
1673 Some influential environment variables:
1674 CC C compiler command
1675 CFLAGS C compiler flags
1676 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1677 nonstandard directory <lib dir>
1678 LIBS libraries to pass to the linker, e.g. -l<library>
1679 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1680 you have headers in a nonstandard directory <include dir>
1681 CXX C++ compiler command
1682 CXXFLAGS C++ compiler flags
1683 CPP C preprocessor
1684 CXXCPP C++ preprocessor
1685 GMPLIBS How to link GMP
1686 GMPINC How to find GMP include files
1687 PPLLIBS How to link PPL
1688 PPLINC How to find PPL include files
1689 CLOOGLIBS How to link CLOOG
1690 CLOOGINC How to find CLOOG include files
1691
1692 Use these variables to override the choices made by `configure' or to help
1693 it to find libraries and programs with nonstandard names/locations.
1694
1695 Report bugs to the package provider.
1696 _ACEOF
1697 ac_status=$?
1698 fi
1699
1700 if test "$ac_init_help" = "recursive"; then
1701 # If there are subdirs, report their specific --help.
1702 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1703 test -d "$ac_dir" ||
1704 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1705 continue
1706 ac_builddir=.
1707
1708 case "$ac_dir" in
1709 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1710 *)
1711 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1712 # A ".." for each directory in $ac_dir_suffix.
1713 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1714 case $ac_top_builddir_sub in
1715 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1716 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1717 esac ;;
1718 esac
1719 ac_abs_top_builddir=$ac_pwd
1720 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1721 # for backward compatibility:
1722 ac_top_builddir=$ac_top_build_prefix
1723
1724 case $srcdir in
1725 .) # We are building in place.
1726 ac_srcdir=.
1727 ac_top_srcdir=$ac_top_builddir_sub
1728 ac_abs_top_srcdir=$ac_pwd ;;
1729 [\\/]* | ?:[\\/]* ) # Absolute name.
1730 ac_srcdir=$srcdir$ac_dir_suffix;
1731 ac_top_srcdir=$srcdir
1732 ac_abs_top_srcdir=$srcdir ;;
1733 *) # Relative name.
1734 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1735 ac_top_srcdir=$ac_top_build_prefix$srcdir
1736 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1737 esac
1738 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1739
1740 cd "$ac_dir" || { ac_status=$?; continue; }
1741 # Check for guested configure.
1742 if test -f "$ac_srcdir/configure.gnu"; then
1743 echo &&
1744 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1745 elif test -f "$ac_srcdir/configure"; then
1746 echo &&
1747 $SHELL "$ac_srcdir/configure" --help=recursive
1748 else
1749 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1750 fi || ac_status=$?
1751 cd "$ac_pwd" || { ac_status=$?; break; }
1752 done
1753 fi
1754
1755 test -n "$ac_init_help" && exit $ac_status
1756 if $ac_init_version; then
1757 cat <<\_ACEOF
1758 configure
1759 generated by GNU Autoconf 2.64
1760
1761 Copyright (C) 2009 Free Software Foundation, Inc.
1762 This configure script is free software; the Free Software Foundation
1763 gives unlimited permission to copy, distribute and modify it.
1764 _ACEOF
1765 exit
1766 fi
1767
1768 ## ------------------------ ##
1769 ## Autoconf initialization. ##
1770 ## ------------------------ ##
1771
1772 # ac_fn_c_try_compile LINENO
1773 # --------------------------
1774 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1775 ac_fn_c_try_compile ()
1776 {
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 rm -f conftest.$ac_objext
1779 if { { ac_try="$ac_compile"
1780 case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1783 esac
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_compile") 2>conftest.err
1787 ac_status=$?
1788 if test -s conftest.err; then
1789 grep -v '^ *+' conftest.err >conftest.er1
1790 cat conftest.er1 >&5
1791 mv -f conftest.er1 conftest.err
1792 fi
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; } && {
1795 test -z "$ac_c_werror_flag" ||
1796 test ! -s conftest.err
1797 } && test -s conftest.$ac_objext; then :
1798 ac_retval=0
1799 else
1800 $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.$ac_ext >&5
1802
1803 ac_retval=1
1804 fi
1805 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806 return $ac_retval
1807
1808 } # ac_fn_c_try_compile
1809
1810 # ac_fn_cxx_try_compile LINENO
1811 # ----------------------------
1812 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1813 ac_fn_cxx_try_compile ()
1814 {
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 rm -f conftest.$ac_objext
1817 if { { ac_try="$ac_compile"
1818 case "(($ac_try" in
1819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1820 *) ac_try_echo=$ac_try;;
1821 esac
1822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823 $as_echo "$ac_try_echo"; } >&5
1824 (eval "$ac_compile") 2>conftest.err
1825 ac_status=$?
1826 if test -s conftest.err; then
1827 grep -v '^ *+' conftest.err >conftest.er1
1828 cat conftest.er1 >&5
1829 mv -f conftest.er1 conftest.err
1830 fi
1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; } && {
1833 test -z "$ac_cxx_werror_flag" ||
1834 test ! -s conftest.err
1835 } && test -s conftest.$ac_objext; then :
1836 ac_retval=0
1837 else
1838 $as_echo "$as_me: failed program was:" >&5
1839 sed 's/^/| /' conftest.$ac_ext >&5
1840
1841 ac_retval=1
1842 fi
1843 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1844 return $ac_retval
1845
1846 } # ac_fn_cxx_try_compile
1847
1848 # ac_fn_c_try_cpp LINENO
1849 # ----------------------
1850 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1851 ac_fn_c_try_cpp ()
1852 {
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 if { { ac_try="$ac_cpp conftest.$ac_ext"
1855 case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858 esac
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1862 ac_status=$?
1863 if test -s conftest.err; then
1864 grep -v '^ *+' conftest.err >conftest.er1
1865 cat conftest.er1 >&5
1866 mv -f conftest.er1 conftest.err
1867 fi
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } >/dev/null && {
1870 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1871 test ! -s conftest.err
1872 }; then :
1873 ac_retval=0
1874 else
1875 $as_echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.$ac_ext >&5
1877
1878 ac_retval=1
1879 fi
1880 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1881 return $ac_retval
1882
1883 } # ac_fn_c_try_cpp
1884
1885 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1886 # -------------------------------------------------------
1887 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1888 # the include files in INCLUDES and setting the cache variable VAR
1889 # accordingly.
1890 ac_fn_c_check_header_mongrel ()
1891 {
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895 $as_echo_n "checking for $2... " >&6; }
1896 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1897 $as_echo_n "(cached) " >&6
1898 fi
1899 eval ac_res=\$$3
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 $as_echo "$ac_res" >&6; }
1902 else
1903 # Is the header compilable?
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1905 $as_echo_n "checking $2 usability... " >&6; }
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1908 $4
1909 #include <$2>
1910 _ACEOF
1911 if ac_fn_c_try_compile "$LINENO"; then :
1912 ac_header_compiler=yes
1913 else
1914 ac_header_compiler=no
1915 fi
1916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1918 $as_echo "$ac_header_compiler" >&6; }
1919
1920 # Is the header present?
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1922 $as_echo_n "checking $2 presence... " >&6; }
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1925 #include <$2>
1926 _ACEOF
1927 if ac_fn_c_try_cpp "$LINENO"; then :
1928 ac_header_preproc=yes
1929 else
1930 ac_header_preproc=no
1931 fi
1932 rm -f conftest.err conftest.$ac_ext
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1934 $as_echo "$ac_header_preproc" >&6; }
1935
1936 # So? What about this header?
1937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1938 yes:no: )
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1940 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1942 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1943 ;;
1944 no:yes:* )
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1946 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1948 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1950 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1952 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1954 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1955 ;;
1956 esac
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958 $as_echo_n "checking for $2... " >&6; }
1959 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1960 $as_echo_n "(cached) " >&6
1961 else
1962 eval "$3=\$ac_header_compiler"
1963 fi
1964 eval ac_res=\$$3
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966 $as_echo "$ac_res" >&6; }
1967 fi
1968 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1969
1970 } # ac_fn_c_check_header_mongrel
1971
1972 # ac_fn_c_try_run LINENO
1973 # ----------------------
1974 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1975 # that executables *can* be run.
1976 ac_fn_c_try_run ()
1977 {
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 if { { ac_try="$ac_link"
1980 case "(($ac_try" in
1981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982 *) ac_try_echo=$ac_try;;
1983 esac
1984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985 $as_echo "$ac_try_echo"; } >&5
1986 (eval "$ac_link") 2>&5
1987 ac_status=$?
1988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1990 { { case "(($ac_try" in
1991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992 *) ac_try_echo=$ac_try;;
1993 esac
1994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995 $as_echo "$ac_try_echo"; } >&5
1996 (eval "$ac_try") 2>&5
1997 ac_status=$?
1998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999 test $ac_status = 0; }; }; then :
2000 ac_retval=0
2001 else
2002 $as_echo "$as_me: program exited with status $ac_status" >&5
2003 $as_echo "$as_me: failed program was:" >&5
2004 sed 's/^/| /' conftest.$ac_ext >&5
2005
2006 ac_retval=$ac_status
2007 fi
2008 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2009 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2010 return $ac_retval
2011
2012 } # ac_fn_c_try_run
2013
2014 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2015 # -------------------------------------------------------
2016 # Tests whether HEADER exists and can be compiled using the include files in
2017 # INCLUDES, setting the cache variable VAR accordingly.
2018 ac_fn_c_check_header_compile ()
2019 {
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2024 $as_echo_n "(cached) " >&6
2025 else
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2028 $4
2029 #include <$2>
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032 eval "$3=yes"
2033 else
2034 eval "$3=no"
2035 fi
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 fi
2038 eval ac_res=\$$3
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2041 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2042
2043 } # ac_fn_c_check_header_compile
2044
2045 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2046 # --------------------------------------------
2047 # Tries to find the compile-time value of EXPR in a program that includes
2048 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2049 # computed
2050 ac_fn_c_compute_int ()
2051 {
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 if test "$cross_compiling" = yes; then
2054 # Depending upon the size, compute the lo and hi bounds.
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2057 $4
2058 int
2059 main ()
2060 {
2061 static int test_array [1 - 2 * !(($2) >= 0)];
2062 test_array [0] = 0
2063
2064 ;
2065 return 0;
2066 }
2067 _ACEOF
2068 if ac_fn_c_try_compile "$LINENO"; then :
2069 ac_lo=0 ac_mid=0
2070 while :; do
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2073 $4
2074 int
2075 main ()
2076 {
2077 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2078 test_array [0] = 0
2079
2080 ;
2081 return 0;
2082 }
2083 _ACEOF
2084 if ac_fn_c_try_compile "$LINENO"; then :
2085 ac_hi=$ac_mid; break
2086 else
2087 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2088 if test $ac_lo -le $ac_mid; then
2089 ac_lo= ac_hi=
2090 break
2091 fi
2092 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2093 fi
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 done
2096 else
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2099 $4
2100 int
2101 main ()
2102 {
2103 static int test_array [1 - 2 * !(($2) < 0)];
2104 test_array [0] = 0
2105
2106 ;
2107 return 0;
2108 }
2109 _ACEOF
2110 if ac_fn_c_try_compile "$LINENO"; then :
2111 ac_hi=-1 ac_mid=-1
2112 while :; do
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2115 $4
2116 int
2117 main ()
2118 {
2119 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2120 test_array [0] = 0
2121
2122 ;
2123 return 0;
2124 }
2125 _ACEOF
2126 if ac_fn_c_try_compile "$LINENO"; then :
2127 ac_lo=$ac_mid; break
2128 else
2129 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2130 if test $ac_mid -le $ac_hi; then
2131 ac_lo= ac_hi=
2132 break
2133 fi
2134 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2135 fi
2136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2137 done
2138 else
2139 ac_lo= ac_hi=
2140 fi
2141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2142 fi
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 # Binary search between lo and hi bounds.
2145 while test "x$ac_lo" != "x$ac_hi"; do
2146 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2149 $4
2150 int
2151 main ()
2152 {
2153 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2154 test_array [0] = 0
2155
2156 ;
2157 return 0;
2158 }
2159 _ACEOF
2160 if ac_fn_c_try_compile "$LINENO"; then :
2161 ac_hi=$ac_mid
2162 else
2163 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2164 fi
2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 done
2167 case $ac_lo in #((
2168 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2169 '') ac_retval=1 ;;
2170 esac
2171 else
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2174 $4
2175 static long int longval () { return $2; }
2176 static unsigned long int ulongval () { return $2; }
2177 #include <stdio.h>
2178 #include <stdlib.h>
2179 int
2180 main ()
2181 {
2182
2183 FILE *f = fopen ("conftest.val", "w");
2184 if (! f)
2185 return 1;
2186 if (($2) < 0)
2187 {
2188 long int i = longval ();
2189 if (i != ($2))
2190 return 1;
2191 fprintf (f, "%ld", i);
2192 }
2193 else
2194 {
2195 unsigned long int i = ulongval ();
2196 if (i != ($2))
2197 return 1;
2198 fprintf (f, "%lu", i);
2199 }
2200 /* Do not output a trailing newline, as this causes \r\n confusion
2201 on some platforms. */
2202 return ferror (f) || fclose (f) != 0;
2203
2204 ;
2205 return 0;
2206 }
2207 _ACEOF
2208 if ac_fn_c_try_run "$LINENO"; then :
2209 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2210 else
2211 ac_retval=1
2212 fi
2213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2214 conftest.$ac_objext conftest.beam conftest.$ac_ext
2215 rm -f conftest.val
2216
2217 fi
2218 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2219 return $ac_retval
2220
2221 } # ac_fn_c_compute_int
2222
2223 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2224 # -------------------------------------------
2225 # Tests whether TYPE exists after having included INCLUDES, setting cache
2226 # variable VAR accordingly.
2227 ac_fn_c_check_type ()
2228 {
2229 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2231 $as_echo_n "checking for $2... " >&6; }
2232 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2233 $as_echo_n "(cached) " >&6
2234 else
2235 eval "$3=no"
2236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h. */
2238 $4
2239 int
2240 main ()
2241 {
2242 if (sizeof ($2))
2243 return 0;
2244 ;
2245 return 0;
2246 }
2247 _ACEOF
2248 if ac_fn_c_try_compile "$LINENO"; then :
2249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h. */
2251 $4
2252 int
2253 main ()
2254 {
2255 if (sizeof (($2)))
2256 return 0;
2257 ;
2258 return 0;
2259 }
2260 _ACEOF
2261 if ac_fn_c_try_compile "$LINENO"; then :
2262
2263 else
2264 eval "$3=yes"
2265 fi
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 fi
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269 fi
2270 eval ac_res=\$$3
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2272 $as_echo "$ac_res" >&6; }
2273 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2274
2275 } # ac_fn_c_check_type
2276
2277 # ac_fn_c_find_intX_t LINENO BITS VAR
2278 # -----------------------------------
2279 # Finds a signed integer type with width BITS, setting cache variable VAR
2280 # accordingly.
2281 ac_fn_c_find_intX_t ()
2282 {
2283 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2285 $as_echo_n "checking for int$2_t... " >&6; }
2286 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2287 $as_echo_n "(cached) " >&6
2288 else
2289 eval "$3=no"
2290 for ac_type in int$2_t 'int' 'long int' \
2291 'long long int' 'short int' 'signed char'; do
2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h. */
2294 $ac_includes_default
2295 int
2296 main ()
2297 {
2298 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2299 test_array [0] = 0
2300
2301 ;
2302 return 0;
2303 }
2304 _ACEOF
2305 if ac_fn_c_try_compile "$LINENO"; then :
2306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307 /* end confdefs.h. */
2308 $ac_includes_default
2309 int
2310 main ()
2311 {
2312 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2313 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2314 test_array [0] = 0
2315
2316 ;
2317 return 0;
2318 }
2319 _ACEOF
2320 if ac_fn_c_try_compile "$LINENO"; then :
2321
2322 else
2323 case $ac_type in #(
2324 int$2_t) :
2325 eval "$3=yes" ;; #(
2326 *) :
2327 eval "$3=\$ac_type" ;;
2328 esac
2329 fi
2330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2331 fi
2332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333 eval as_val=\$$3
2334 if test "x$as_val" = x""no; then :
2335
2336 else
2337 break
2338 fi
2339 done
2340 fi
2341 eval ac_res=\$$3
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2343 $as_echo "$ac_res" >&6; }
2344 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2345
2346 } # ac_fn_c_find_intX_t
2347
2348 # ac_fn_c_try_link LINENO
2349 # -----------------------
2350 # Try to link conftest.$ac_ext, and return whether this succeeded.
2351 ac_fn_c_try_link ()
2352 {
2353 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2354 rm -f conftest.$ac_objext conftest$ac_exeext
2355 if { { ac_try="$ac_link"
2356 case "(($ac_try" in
2357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2358 *) ac_try_echo=$ac_try;;
2359 esac
2360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2361 $as_echo "$ac_try_echo"; } >&5
2362 (eval "$ac_link") 2>conftest.err
2363 ac_status=$?
2364 if test -s conftest.err; then
2365 grep -v '^ *+' conftest.err >conftest.er1
2366 cat conftest.er1 >&5
2367 mv -f conftest.er1 conftest.err
2368 fi
2369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2370 test $ac_status = 0; } && {
2371 test -z "$ac_c_werror_flag" ||
2372 test ! -s conftest.err
2373 } && test -s conftest$ac_exeext && {
2374 test "$cross_compiling" = yes ||
2375 $as_test_x conftest$ac_exeext
2376 }; then :
2377 ac_retval=0
2378 else
2379 $as_echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2381
2382 ac_retval=1
2383 fi
2384 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2385 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2386 # interfere with the next link command; also delete a directory that is
2387 # left behind by Apple's compiler. We do this before executing the actions.
2388 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2389 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2390 return $ac_retval
2391
2392 } # ac_fn_c_try_link
2393
2394 # ac_fn_c_find_uintX_t LINENO BITS VAR
2395 # ------------------------------------
2396 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2397 # accordingly.
2398 ac_fn_c_find_uintX_t ()
2399 {
2400 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2402 $as_echo_n "checking for uint$2_t... " >&6; }
2403 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2404 $as_echo_n "(cached) " >&6
2405 else
2406 eval "$3=no"
2407 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2408 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2410 /* end confdefs.h. */
2411 $ac_includes_default
2412 int
2413 main ()
2414 {
2415 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2416 test_array [0] = 0
2417
2418 ;
2419 return 0;
2420 }
2421 _ACEOF
2422 if ac_fn_c_try_compile "$LINENO"; then :
2423 case $ac_type in #(
2424 uint$2_t) :
2425 eval "$3=yes" ;; #(
2426 *) :
2427 eval "$3=\$ac_type" ;;
2428 esac
2429 fi
2430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2431 eval as_val=\$$3
2432 if test "x$as_val" = x""no; then :
2433
2434 else
2435 break
2436 fi
2437 done
2438 fi
2439 eval ac_res=\$$3
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2441 $as_echo "$ac_res" >&6; }
2442 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2443
2444 } # ac_fn_c_find_uintX_t
2445
2446 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2447 # ----------------------------------------------
2448 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2449 ac_fn_c_check_header_preproc ()
2450 {
2451 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2453 $as_echo_n "checking for $2... " >&6; }
2454 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2455 $as_echo_n "(cached) " >&6
2456 else
2457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2458 /* end confdefs.h. */
2459 #include <$2>
2460 _ACEOF
2461 if ac_fn_c_try_cpp "$LINENO"; then :
2462 eval "$3=yes"
2463 else
2464 eval "$3=no"
2465 fi
2466 rm -f conftest.err conftest.$ac_ext
2467 fi
2468 eval ac_res=\$$3
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2470 $as_echo "$ac_res" >&6; }
2471 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2472
2473 } # ac_fn_c_check_header_preproc
2474
2475 # ac_fn_cxx_try_cpp LINENO
2476 # ------------------------
2477 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2478 ac_fn_cxx_try_cpp ()
2479 {
2480 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2481 if { { ac_try="$ac_cpp conftest.$ac_ext"
2482 case "(($ac_try" in
2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484 *) ac_try_echo=$ac_try;;
2485 esac
2486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2487 $as_echo "$ac_try_echo"; } >&5
2488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2489 ac_status=$?
2490 if test -s conftest.err; then
2491 grep -v '^ *+' conftest.err >conftest.er1
2492 cat conftest.er1 >&5
2493 mv -f conftest.er1 conftest.err
2494 fi
2495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2496 test $ac_status = 0; } >/dev/null && {
2497 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2498 test ! -s conftest.err
2499 }; then :
2500 ac_retval=0
2501 else
2502 $as_echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.$ac_ext >&5
2504
2505 ac_retval=1
2506 fi
2507 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2508 return $ac_retval
2509
2510 } # ac_fn_cxx_try_cpp
2511
2512 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2513 # ------------------------------------------------
2514 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2515 ac_fn_cxx_check_header_preproc ()
2516 {
2517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2519 $as_echo_n "checking for $2... " >&6; }
2520 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2521 $as_echo_n "(cached) " >&6
2522 else
2523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2524 /* end confdefs.h. */
2525 #include <$2>
2526 _ACEOF
2527 if ac_fn_cxx_try_cpp "$LINENO"; then :
2528 eval "$3=yes"
2529 else
2530 eval "$3=no"
2531 fi
2532 rm -f conftest.err conftest.$ac_ext
2533 fi
2534 eval ac_res=\$$3
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2536 $as_echo "$ac_res" >&6; }
2537 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2538
2539 } # ac_fn_cxx_check_header_preproc
2540
2541 # ac_fn_c_check_func LINENO FUNC VAR
2542 # ----------------------------------
2543 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2544 ac_fn_c_check_func ()
2545 {
2546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2548 $as_echo_n "checking for $2... " >&6; }
2549 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2550 $as_echo_n "(cached) " >&6
2551 else
2552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2553 /* end confdefs.h. */
2554 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2556 #define $2 innocuous_$2
2557
2558 /* System header to define __stub macros and hopefully few prototypes,
2559 which can conflict with char $2 (); below.
2560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2561 <limits.h> exists even on freestanding compilers. */
2562
2563 #ifdef __STDC__
2564 # include <limits.h>
2565 #else
2566 # include <assert.h>
2567 #endif
2568
2569 #undef $2
2570
2571 /* Override any GCC internal prototype to avoid an error.
2572 Use char because int might match the return type of a GCC
2573 builtin and then its argument prototype would still apply. */
2574 #ifdef __cplusplus
2575 extern "C"
2576 #endif
2577 char $2 ();
2578 /* The GNU C library defines this for functions which it implements
2579 to always fail with ENOSYS. Some functions are actually named
2580 something starting with __ and the normal name is an alias. */
2581 #if defined __stub_$2 || defined __stub___$2
2582 choke me
2583 #endif
2584
2585 int
2586 main ()
2587 {
2588 return $2 ();
2589 ;
2590 return 0;
2591 }
2592 _ACEOF
2593 if ac_fn_c_try_link "$LINENO"; then :
2594 eval "$3=yes"
2595 else
2596 eval "$3=no"
2597 fi
2598 rm -f core conftest.err conftest.$ac_objext \
2599 conftest$ac_exeext conftest.$ac_ext
2600 fi
2601 eval ac_res=\$$3
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2603 $as_echo "$ac_res" >&6; }
2604 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2605
2606 } # ac_fn_c_check_func
2607
2608 # ac_fn_cxx_try_link LINENO
2609 # -------------------------
2610 # Try to link conftest.$ac_ext, and return whether this succeeded.
2611 ac_fn_cxx_try_link ()
2612 {
2613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2614 rm -f conftest.$ac_objext conftest$ac_exeext
2615 if { { ac_try="$ac_link"
2616 case "(($ac_try" in
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2619 esac
2620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2621 $as_echo "$ac_try_echo"; } >&5
2622 (eval "$ac_link") 2>conftest.err
2623 ac_status=$?
2624 if test -s conftest.err; then
2625 grep -v '^ *+' conftest.err >conftest.er1
2626 cat conftest.er1 >&5
2627 mv -f conftest.er1 conftest.err
2628 fi
2629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2630 test $ac_status = 0; } && {
2631 test -z "$ac_cxx_werror_flag" ||
2632 test ! -s conftest.err
2633 } && test -s conftest$ac_exeext && {
2634 test "$cross_compiling" = yes ||
2635 $as_test_x conftest$ac_exeext
2636 }; then :
2637 ac_retval=0
2638 else
2639 $as_echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2641
2642 ac_retval=1
2643 fi
2644 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2645 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2646 # interfere with the next link command; also delete a directory that is
2647 # left behind by Apple's compiler. We do this before executing the actions.
2648 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2649 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2650 return $ac_retval
2651
2652 } # ac_fn_cxx_try_link
2653 cat >config.log <<_ACEOF
2654 This file contains any messages produced by compilers while
2655 running configure, to aid debugging if configure makes a mistake.
2656
2657 It was created by $as_me, which was
2658 generated by GNU Autoconf 2.64. Invocation command line was
2659
2660 $ $0 $@
2661
2662 _ACEOF
2663 exec 5>>config.log
2664 {
2665 cat <<_ASUNAME
2666 ## --------- ##
2667 ## Platform. ##
2668 ## --------- ##
2669
2670 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2671 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2672 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2673 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2674 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2675
2676 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2677 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2678
2679 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2680 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2681 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2682 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2683 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2684 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2685 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2686
2687 _ASUNAME
2688
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 for as_dir in $PATH
2691 do
2692 IFS=$as_save_IFS
2693 test -z "$as_dir" && as_dir=.
2694 $as_echo "PATH: $as_dir"
2695 done
2696 IFS=$as_save_IFS
2697
2698 } >&5
2699
2700 cat >&5 <<_ACEOF
2701
2702
2703 ## ----------- ##
2704 ## Core tests. ##
2705 ## ----------- ##
2706
2707 _ACEOF
2708
2709
2710 # Keep a trace of the command line.
2711 # Strip out --no-create and --no-recursion so they do not pile up.
2712 # Strip out --silent because we don't want to record it for future runs.
2713 # Also quote any args containing shell meta-characters.
2714 # Make two passes to allow for proper duplicate-argument suppression.
2715 ac_configure_args=
2716 ac_configure_args0=
2717 ac_configure_args1=
2718 ac_must_keep_next=false
2719 for ac_pass in 1 2
2720 do
2721 for ac_arg
2722 do
2723 case $ac_arg in
2724 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2725 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2726 | -silent | --silent | --silen | --sile | --sil)
2727 continue ;;
2728 *\'*)
2729 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2730 esac
2731 case $ac_pass in
2732 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2733 2)
2734 as_fn_append ac_configure_args1 " '$ac_arg'"
2735 if test $ac_must_keep_next = true; then
2736 ac_must_keep_next=false # Got value, back to normal.
2737 else
2738 case $ac_arg in
2739 *=* | --config-cache | -C | -disable-* | --disable-* \
2740 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2741 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2742 | -with-* | --with-* | -without-* | --without-* | --x)
2743 case "$ac_configure_args0 " in
2744 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2745 esac
2746 ;;
2747 -* ) ac_must_keep_next=true ;;
2748 esac
2749 fi
2750 as_fn_append ac_configure_args " '$ac_arg'"
2751 ;;
2752 esac
2753 done
2754 done
2755 { ac_configure_args0=; unset ac_configure_args0;}
2756 { ac_configure_args1=; unset ac_configure_args1;}
2757
2758 # When interrupted or exit'd, cleanup temporary files, and complete
2759 # config.log. We remove comments because anyway the quotes in there
2760 # would cause problems or look ugly.
2761 # WARNING: Use '\'' to represent an apostrophe within the trap.
2762 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2763 trap 'exit_status=$?
2764 # Save into config.log some information that might help in debugging.
2765 {
2766 echo
2767
2768 cat <<\_ASBOX
2769 ## ---------------- ##
2770 ## Cache variables. ##
2771 ## ---------------- ##
2772 _ASBOX
2773 echo
2774 # The following way of writing the cache mishandles newlines in values,
2775 (
2776 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2777 eval ac_val=\$$ac_var
2778 case $ac_val in #(
2779 *${as_nl}*)
2780 case $ac_var in #(
2781 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2782 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2783 esac
2784 case $ac_var in #(
2785 _ | IFS | as_nl) ;; #(
2786 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2787 *) { eval $ac_var=; unset $ac_var;} ;;
2788 esac ;;
2789 esac
2790 done
2791 (set) 2>&1 |
2792 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2793 *${as_nl}ac_space=\ *)
2794 sed -n \
2795 "s/'\''/'\''\\\\'\'''\''/g;
2796 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2797 ;; #(
2798 *)
2799 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2800 ;;
2801 esac |
2802 sort
2803 )
2804 echo
2805
2806 cat <<\_ASBOX
2807 ## ----------------- ##
2808 ## Output variables. ##
2809 ## ----------------- ##
2810 _ASBOX
2811 echo
2812 for ac_var in $ac_subst_vars
2813 do
2814 eval ac_val=\$$ac_var
2815 case $ac_val in
2816 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2817 esac
2818 $as_echo "$ac_var='\''$ac_val'\''"
2819 done | sort
2820 echo
2821
2822 if test -n "$ac_subst_files"; then
2823 cat <<\_ASBOX
2824 ## ------------------- ##
2825 ## File substitutions. ##
2826 ## ------------------- ##
2827 _ASBOX
2828 echo
2829 for ac_var in $ac_subst_files
2830 do
2831 eval ac_val=\$$ac_var
2832 case $ac_val in
2833 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2834 esac
2835 $as_echo "$ac_var='\''$ac_val'\''"
2836 done | sort
2837 echo
2838 fi
2839
2840 if test -s confdefs.h; then
2841 cat <<\_ASBOX
2842 ## ----------- ##
2843 ## confdefs.h. ##
2844 ## ----------- ##
2845 _ASBOX
2846 echo
2847 cat confdefs.h
2848 echo
2849 fi
2850 test "$ac_signal" != 0 &&
2851 $as_echo "$as_me: caught signal $ac_signal"
2852 $as_echo "$as_me: exit $exit_status"
2853 } >&5
2854 rm -f core *.core core.conftest.* &&
2855 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2856 exit $exit_status
2857 ' 0
2858 for ac_signal in 1 2 13 15; do
2859 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2860 done
2861 ac_signal=0
2862
2863 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2864 rm -f -r conftest* confdefs.h
2865
2866 $as_echo "/* confdefs.h */" > confdefs.h
2867
2868 # Predefined preprocessor variables.
2869
2870 cat >>confdefs.h <<_ACEOF
2871 #define PACKAGE_NAME "$PACKAGE_NAME"
2872 _ACEOF
2873
2874 cat >>confdefs.h <<_ACEOF
2875 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2876 _ACEOF
2877
2878 cat >>confdefs.h <<_ACEOF
2879 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2880 _ACEOF
2881
2882 cat >>confdefs.h <<_ACEOF
2883 #define PACKAGE_STRING "$PACKAGE_STRING"
2884 _ACEOF
2885
2886 cat >>confdefs.h <<_ACEOF
2887 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2888 _ACEOF
2889
2890 cat >>confdefs.h <<_ACEOF
2891 #define PACKAGE_URL "$PACKAGE_URL"
2892 _ACEOF
2893
2894
2895 # Let the site file select an alternate cache file if it wants to.
2896 # Prefer an explicitly selected file to automatically selected ones.
2897 ac_site_file1=NONE
2898 ac_site_file2=NONE
2899 if test -n "$CONFIG_SITE"; then
2900 ac_site_file1=$CONFIG_SITE
2901 elif test "x$prefix" != xNONE; then
2902 ac_site_file1=$prefix/share/config.site
2903 ac_site_file2=$prefix/etc/config.site
2904 else
2905 ac_site_file1=$ac_default_prefix/share/config.site
2906 ac_site_file2=$ac_default_prefix/etc/config.site
2907 fi
2908 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2909 do
2910 test "x$ac_site_file" = xNONE && continue
2911 if test -r "$ac_site_file"; then
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2913 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2914 sed 's/^/| /' "$ac_site_file" >&5
2915 . "$ac_site_file"
2916 fi
2917 done
2918
2919 if test -r "$cache_file"; then
2920 # Some versions of bash will fail to source /dev/null (special
2921 # files actually), so we avoid doing that.
2922 if test -f "$cache_file"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2924 $as_echo "$as_me: loading cache $cache_file" >&6;}
2925 case $cache_file in
2926 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2927 *) . "./$cache_file";;
2928 esac
2929 fi
2930 else
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2932 $as_echo "$as_me: creating cache $cache_file" >&6;}
2933 >$cache_file
2934 fi
2935
2936 # Check that the precious variables saved in the cache have kept the same
2937 # value.
2938 ac_cache_corrupted=false
2939 for ac_var in $ac_precious_vars; do
2940 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2941 eval ac_new_set=\$ac_env_${ac_var}_set
2942 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2943 eval ac_new_val=\$ac_env_${ac_var}_value
2944 case $ac_old_set,$ac_new_set in
2945 set,)
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2947 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2948 ac_cache_corrupted=: ;;
2949 ,set)
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2951 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2952 ac_cache_corrupted=: ;;
2953 ,);;
2954 *)
2955 if test "x$ac_old_val" != "x$ac_new_val"; then
2956 # differences in whitespace do not lead to failure.
2957 ac_old_val_w=`echo x $ac_old_val`
2958 ac_new_val_w=`echo x $ac_new_val`
2959 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2961 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2962 ac_cache_corrupted=:
2963 else
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2965 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2966 eval $ac_var=\$ac_old_val
2967 fi
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2969 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2971 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2972 fi;;
2973 esac
2974 # Pass precious variables to config.status.
2975 if test "$ac_new_set" = set; then
2976 case $ac_new_val in
2977 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2978 *) ac_arg=$ac_var=$ac_new_val ;;
2979 esac
2980 case " $ac_configure_args " in
2981 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2982 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2983 esac
2984 fi
2985 done
2986 if $ac_cache_corrupted; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2990 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2991 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2992 fi
2993 ## -------------------- ##
2994 ## Main body of script. ##
2995 ## -------------------- ##
2996
2997 ac_ext=c
2998 ac_cpp='$CPP $CPPFLAGS'
2999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3002
3003
3004
3005
3006
3007
3008 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3009
3010
3011 gcc_version=`cat $srcdir/BASE-VER`
3012
3013 # Determine the host, build, and target systems
3014 ac_aux_dir=
3015 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3016 for ac_t in install-sh install.sh shtool; do
3017 if test -f "$ac_dir/$ac_t"; then
3018 ac_aux_dir=$ac_dir
3019 ac_install_sh="$ac_aux_dir/$ac_t -c"
3020 break 2
3021 fi
3022 done
3023 done
3024 if test -z "$ac_aux_dir"; then
3025 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3026 fi
3027
3028 # These three variables are undocumented and unsupported,
3029 # and are intended to be withdrawn in a future Autoconf release.
3030 # They can cause serious problems if a builder's source tree is in a directory
3031 # whose full name contains unusual characters.
3032 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3033 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3034 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3035
3036
3037 # Make sure we can run config.sub.
3038 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3039 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3040
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3042 $as_echo_n "checking build system type... " >&6; }
3043 if test "${ac_cv_build+set}" = set; then :
3044 $as_echo_n "(cached) " >&6
3045 else
3046 ac_build_alias=$build_alias
3047 test "x$ac_build_alias" = x &&
3048 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3049 test "x$ac_build_alias" = x &&
3050 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3051 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3052 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3053
3054 fi
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3056 $as_echo "$ac_cv_build" >&6; }
3057 case $ac_cv_build in
3058 *-*-*) ;;
3059 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3060 esac
3061 build=$ac_cv_build
3062 ac_save_IFS=$IFS; IFS='-'
3063 set x $ac_cv_build
3064 shift
3065 build_cpu=$1
3066 build_vendor=$2
3067 shift; shift
3068 # Remember, the first character of IFS is used to create $*,
3069 # except with old shells:
3070 build_os=$*
3071 IFS=$ac_save_IFS
3072 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3073
3074
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3076 $as_echo_n "checking host system type... " >&6; }
3077 if test "${ac_cv_host+set}" = set; then :
3078 $as_echo_n "(cached) " >&6
3079 else
3080 if test "x$host_alias" = x; then
3081 ac_cv_host=$ac_cv_build
3082 else
3083 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3084 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3085 fi
3086
3087 fi
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3089 $as_echo "$ac_cv_host" >&6; }
3090 case $ac_cv_host in
3091 *-*-*) ;;
3092 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3093 esac
3094 host=$ac_cv_host
3095 ac_save_IFS=$IFS; IFS='-'
3096 set x $ac_cv_host
3097 shift
3098 host_cpu=$1
3099 host_vendor=$2
3100 shift; shift
3101 # Remember, the first character of IFS is used to create $*,
3102 # except with old shells:
3103 host_os=$*
3104 IFS=$ac_save_IFS
3105 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3106
3107
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3109 $as_echo_n "checking target system type... " >&6; }
3110 if test "${ac_cv_target+set}" = set; then :
3111 $as_echo_n "(cached) " >&6
3112 else
3113 if test "x$target_alias" = x; then
3114 ac_cv_target=$ac_cv_host
3115 else
3116 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3117 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3118 fi
3119
3120 fi
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3122 $as_echo "$ac_cv_target" >&6; }
3123 case $ac_cv_target in
3124 *-*-*) ;;
3125 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3126 esac
3127 target=$ac_cv_target
3128 ac_save_IFS=$IFS; IFS='-'
3129 set x $ac_cv_target
3130 shift
3131 target_cpu=$1
3132 target_vendor=$2
3133 shift; shift
3134 # Remember, the first character of IFS is used to create $*,
3135 # except with old shells:
3136 target_os=$*
3137 IFS=$ac_save_IFS
3138 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3139
3140
3141 # The aliases save the names the user supplied, while $host etc.
3142 # will get canonicalized.
3143 test -n "$target_alias" &&
3144 test "$program_prefix$program_suffix$program_transform_name" = \
3145 NONENONEs,x,x, &&
3146 program_prefix=${target_alias}-
3147
3148 # Determine the noncanonical target name, for directory use.
3149 case ${build_alias} in
3150 "") build_noncanonical=${build} ;;
3151 *) build_noncanonical=${build_alias} ;;
3152 esac
3153
3154 case ${host_alias} in
3155 "") host_noncanonical=${build_noncanonical} ;;
3156 *) host_noncanonical=${host_alias} ;;
3157 esac
3158
3159 case ${target_alias} in
3160 "") target_noncanonical=${host_noncanonical} ;;
3161 *) target_noncanonical=${target_alias} ;;
3162 esac
3163
3164
3165
3166
3167 # Determine the target- and build-specific subdirectories
3168
3169 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3170 # have matching libraries, they should use host libraries: Makefile.tpl
3171 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3172 # However, they still use the build modules, because the corresponding
3173 # host modules (e.g. bison) are only built for the host when bootstrap
3174 # finishes. So:
3175 # - build_subdir is where we find build modules, and never changes.
3176 # - build_libsubdir is where we find build libraries, and can be overridden.
3177
3178 # Prefix 'build-' so this never conflicts with target_subdir.
3179 build_subdir="build-${build_noncanonical}"
3180
3181 # Check whether --with-build-libsubdir was given.
3182 if test "${with_build_libsubdir+set}" = set; then :
3183 withval=$with_build_libsubdir; build_libsubdir="$withval"
3184 else
3185 build_libsubdir="$build_subdir"
3186 fi
3187
3188 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3189 if ( test $srcdir = . && test -d gcc ) \
3190 || test -d $srcdir/../host-${host_noncanonical}; then
3191 host_subdir="host-${host_noncanonical}"
3192 else
3193 host_subdir=.
3194 fi
3195 # No prefix.
3196 target_subdir=${target_noncanonical}
3197
3198
3199 # Set program_transform_name
3200 test "$program_prefix" != NONE &&
3201 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3202 # Use a double $ so make ignores it.
3203 test "$program_suffix" != NONE &&
3204 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3205 # Double any \ or $.
3206 # By default was `s,x,x', remove it if useless.
3207 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3208 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3209
3210
3211 # Check for bogus environment variables.
3212 # Test if LIBRARY_PATH contains the notation for the current directory
3213 # since this would lead to problems installing/building glibc.
3214 # LIBRARY_PATH contains the current directory if one of the following
3215 # is true:
3216 # - one of the terminals (":" and ";") is the first or last sign
3217 # - two terminals occur directly after each other
3218 # - the path contains an element with a dot in it
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3220 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3221 case ${LIBRARY_PATH} in
3222 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3223 library_path_setting="contains current directory"
3224 ;;
3225 *)
3226 library_path_setting="ok"
3227 ;;
3228 esac
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3230 $as_echo "$library_path_setting" >&6; }
3231 if test "$library_path_setting" != "ok"; then
3232 as_fn_error "
3233 *** LIBRARY_PATH shouldn't contain the current directory when
3234 *** building gcc. Please change the environment variable
3235 *** and run configure again." "$LINENO" 5
3236 fi
3237
3238 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3239 # since this would lead to problems installing/building glibc.
3240 # GCC_EXEC_PREFIX contains the current directory if one of the following
3241 # is true:
3242 # - one of the terminals (":" and ";") is the first or last sign
3243 # - two terminals occur directly after each other
3244 # - the path contains an element with a dot in it
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3246 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3247 case ${GCC_EXEC_PREFIX} in
3248 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3249 gcc_exec_prefix_setting="contains current directory"
3250 ;;
3251 *)
3252 gcc_exec_prefix_setting="ok"
3253 ;;
3254 esac
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3256 $as_echo "$gcc_exec_prefix_setting" >&6; }
3257 if test "$gcc_exec_prefix_setting" != "ok"; then
3258 as_fn_error "
3259 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3260 *** building gcc. Please change the environment variable
3261 *** and run configure again." "$LINENO" 5
3262 fi
3263
3264 # -----------
3265 # Directories
3266 # -----------
3267
3268 # Specify the local prefix
3269 local_prefix=
3270
3271 # Check whether --with-local-prefix was given.
3272 if test "${with_local_prefix+set}" = set; then :
3273 withval=$with_local_prefix; case "${withval}" in
3274 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3275 no) ;;
3276 *) local_prefix=$with_local_prefix ;;
3277 esac
3278 fi
3279
3280
3281 # Default local prefix if it is empty
3282 if test x$local_prefix = x; then
3283 local_prefix=/usr/local
3284 fi
3285
3286 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3287 # passed in by the toplevel make and thus we'd get different behavior
3288 # depending on where we built the sources.
3289 gcc_gxx_include_dir=
3290 # Specify the g++ header file directory
3291
3292 # Check whether --with-gxx-include-dir was given.
3293 if test "${with_gxx_include_dir+set}" = set; then :
3294 withval=$with_gxx_include_dir; case "${withval}" in
3295 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3296 no) ;;
3297 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3298 esac
3299 fi
3300
3301
3302 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3303 if test x${gcc_gxx_include_dir} = x; then
3304 if test x${enable_version_specific_runtime_libs} = xyes; then
3305 gcc_gxx_include_dir='${libsubdir}/include/c++'
3306 else
3307 libstdcxx_incdir='include/c++/$(version)'
3308 if test x$host != x$target; then
3309 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3310 fi
3311 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3312 fi
3313 fi
3314
3315
3316 # Check whether --with-cpp_install_dir was given.
3317 if test "${with_cpp_install_dir+set}" = set; then :
3318 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3319 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3320 elif test x$withval != xno; then
3321 cpp_install_dir=$withval
3322 fi
3323 fi
3324
3325
3326 # We would like to our source tree to be readonly. However when releases or
3327 # pre-releases are generated, the flex/bison generated files as well as the
3328 # various formats of manuals need to be included along with the rest of the
3329 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3330 # just that.
3331
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3333 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3334 # Check whether --enable-generated-files-in-srcdir was given.
3335 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3336 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3337 else
3338 generated_files_in_srcdir=no
3339 fi
3340
3341
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3343 $as_echo "$generated_files_in_srcdir" >&6; }
3344
3345 if test "$generated_files_in_srcdir" = "yes"; then
3346 GENINSRC=''
3347 else
3348 GENINSRC='#'
3349 fi
3350
3351
3352 # -------------------
3353 # Find default linker
3354 # -------------------
3355
3356 # With GNU ld
3357
3358 # Check whether --with-gnu-ld was given.
3359 if test "${with_gnu_ld+set}" = set; then :
3360 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3361 else
3362 gnu_ld_flag=no
3363 fi
3364
3365
3366 # With pre-defined ld
3367
3368 # Check whether --with-ld was given.
3369 if test "${with_ld+set}" = set; then :
3370 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3371 fi
3372
3373 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3374 if test ! -x "$DEFAULT_LINKER"; then
3375 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3376 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3377 gnu_ld_flag=yes
3378 fi
3379
3380 cat >>confdefs.h <<_ACEOF
3381 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3382 _ACEOF
3383
3384 fi
3385
3386 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3387
3388 cat >>confdefs.h <<_ACEOF
3389 #define HAVE_GNU_LD $gnu_ld
3390 _ACEOF
3391
3392
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3394 $as_echo_n "checking whether a default linker was specified... " >&6; }
3395 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3396 if test x"$gnu_ld_flag" = x"no"; then
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3398 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3399 else
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3401 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3402 fi
3403 else
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 $as_echo "no" >&6; }
3406 fi
3407
3408 # With demangler in GNU ld
3409
3410 # Check whether --with-demangler-in-ld was given.
3411 if test "${with_demangler_in_ld+set}" = set; then :
3412 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3413 else
3414 demangler_in_ld=yes
3415 fi
3416
3417
3418 # ----------------------
3419 # Find default assembler
3420 # ----------------------
3421
3422 # With GNU as
3423
3424 # Check whether --with-gnu-as was given.
3425 if test "${with_gnu_as+set}" = set; then :
3426 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3427 else
3428 gas_flag=no
3429 fi
3430
3431
3432
3433 # Check whether --with-as was given.
3434 if test "${with_as+set}" = set; then :
3435 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3436 fi
3437
3438 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3439 if test ! -x "$DEFAULT_ASSEMBLER"; then
3440 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3441 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3442 gas_flag=yes
3443 fi
3444
3445 cat >>confdefs.h <<_ACEOF
3446 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3447 _ACEOF
3448
3449 fi
3450
3451 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3452
3453 cat >>confdefs.h <<_ACEOF
3454 #define HAVE_GNU_AS $gnu_as
3455 _ACEOF
3456
3457
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3459 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3460 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3461 if test x"$gas_flag" = x"no"; then
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3463 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3464 else
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3466 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3467 fi
3468 else
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470 $as_echo "no" >&6; }
3471 fi
3472
3473 # ---------------
3474 # Find C compiler
3475 # ---------------
3476
3477 # If a non-executable a.out is present (e.g. created by GNU as above even if
3478 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3479 # file, even when creating an executable, so an execution test fails.
3480 # Remove possible default executable files to avoid this.
3481 #
3482 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3483 # Autoconf includes it.
3484 rm -f a.out a.exe b.out
3485
3486 # Find the native compiler
3487 ac_ext=c
3488 ac_cpp='$CPP $CPPFLAGS'
3489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3492 if test -n "$ac_tool_prefix"; then
3493 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3494 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496 $as_echo_n "checking for $ac_word... " >&6; }
3497 if test "${ac_cv_prog_CC+set}" = set; then :
3498 $as_echo_n "(cached) " >&6
3499 else
3500 if test -n "$CC"; then
3501 ac_cv_prog_CC="$CC" # Let the user override the test.
3502 else
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 for as_dir in $PATH
3505 do
3506 IFS=$as_save_IFS
3507 test -z "$as_dir" && as_dir=.
3508 for ac_exec_ext in '' $ac_executable_extensions; do
3509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3510 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3512 break 2
3513 fi
3514 done
3515 done
3516 IFS=$as_save_IFS
3517
3518 fi
3519 fi
3520 CC=$ac_cv_prog_CC
3521 if test -n "$CC"; then
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3523 $as_echo "$CC" >&6; }
3524 else
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3527 fi
3528
3529
3530 fi
3531 if test -z "$ac_cv_prog_CC"; then
3532 ac_ct_CC=$CC
3533 # Extract the first word of "gcc", so it can be a program name with args.
3534 set dummy gcc; ac_word=$2
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536 $as_echo_n "checking for $ac_word... " >&6; }
3537 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3538 $as_echo_n "(cached) " >&6
3539 else
3540 if test -n "$ac_ct_CC"; then
3541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3542 else
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 for as_dir in $PATH
3545 do
3546 IFS=$as_save_IFS
3547 test -z "$as_dir" && as_dir=.
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3550 ac_cv_prog_ac_ct_CC="gcc"
3551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3552 break 2
3553 fi
3554 done
3555 done
3556 IFS=$as_save_IFS
3557
3558 fi
3559 fi
3560 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3561 if test -n "$ac_ct_CC"; then
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3563 $as_echo "$ac_ct_CC" >&6; }
3564 else
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 $as_echo "no" >&6; }
3567 fi
3568
3569 if test "x$ac_ct_CC" = x; then
3570 CC=""
3571 else
3572 case $cross_compiling:$ac_tool_warned in
3573 yes:)
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3576 ac_tool_warned=yes ;;
3577 esac
3578 CC=$ac_ct_CC
3579 fi
3580 else
3581 CC="$ac_cv_prog_CC"
3582 fi
3583
3584 if test -z "$CC"; then
3585 if test -n "$ac_tool_prefix"; then
3586 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3587 set dummy ${ac_tool_prefix}cc; ac_word=$2
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589 $as_echo_n "checking for $ac_word... " >&6; }
3590 if test "${ac_cv_prog_CC+set}" = set; then :
3591 $as_echo_n "(cached) " >&6
3592 else
3593 if test -n "$CC"; then
3594 ac_cv_prog_CC="$CC" # Let the user override the test.
3595 else
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 for as_dir in $PATH
3598 do
3599 IFS=$as_save_IFS
3600 test -z "$as_dir" && as_dir=.
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3603 ac_cv_prog_CC="${ac_tool_prefix}cc"
3604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3605 break 2
3606 fi
3607 done
3608 done
3609 IFS=$as_save_IFS
3610
3611 fi
3612 fi
3613 CC=$ac_cv_prog_CC
3614 if test -n "$CC"; then
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3616 $as_echo "$CC" >&6; }
3617 else
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619 $as_echo "no" >&6; }
3620 fi
3621
3622
3623 fi
3624 fi
3625 if test -z "$CC"; then
3626 # Extract the first word of "cc", so it can be a program name with args.
3627 set dummy cc; ac_word=$2
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629 $as_echo_n "checking for $ac_word... " >&6; }
3630 if test "${ac_cv_prog_CC+set}" = set; then :
3631 $as_echo_n "(cached) " >&6
3632 else
3633 if test -n "$CC"; then
3634 ac_cv_prog_CC="$CC" # Let the user override the test.
3635 else
3636 ac_prog_rejected=no
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 for as_dir in $PATH
3639 do
3640 IFS=$as_save_IFS
3641 test -z "$as_dir" && as_dir=.
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3644 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3645 ac_prog_rejected=yes
3646 continue
3647 fi
3648 ac_cv_prog_CC="cc"
3649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3650 break 2
3651 fi
3652 done
3653 done
3654 IFS=$as_save_IFS
3655
3656 if test $ac_prog_rejected = yes; then
3657 # We found a bogon in the path, so make sure we never use it.
3658 set dummy $ac_cv_prog_CC
3659 shift
3660 if test $# != 0; then
3661 # We chose a different compiler from the bogus one.
3662 # However, it has the same basename, so the bogon will be chosen
3663 # first if we set CC to just the basename; use the full file name.
3664 shift
3665 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3666 fi
3667 fi
3668 fi
3669 fi
3670 CC=$ac_cv_prog_CC
3671 if test -n "$CC"; then
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3673 $as_echo "$CC" >&6; }
3674 else
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3676 $as_echo "no" >&6; }
3677 fi
3678
3679
3680 fi
3681 if test -z "$CC"; then
3682 if test -n "$ac_tool_prefix"; then
3683 for ac_prog in cl.exe
3684 do
3685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3686 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3688 $as_echo_n "checking for $ac_word... " >&6; }
3689 if test "${ac_cv_prog_CC+set}" = set; then :
3690 $as_echo_n "(cached) " >&6
3691 else
3692 if test -n "$CC"; then
3693 ac_cv_prog_CC="$CC" # Let the user override the test.
3694 else
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 for as_dir in $PATH
3697 do
3698 IFS=$as_save_IFS
3699 test -z "$as_dir" && as_dir=.
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3702 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3704 break 2
3705 fi
3706 done
3707 done
3708 IFS=$as_save_IFS
3709
3710 fi
3711 fi
3712 CC=$ac_cv_prog_CC
3713 if test -n "$CC"; then
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3715 $as_echo "$CC" >&6; }
3716 else
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718 $as_echo "no" >&6; }
3719 fi
3720
3721
3722 test -n "$CC" && break
3723 done
3724 fi
3725 if test -z "$CC"; then
3726 ac_ct_CC=$CC
3727 for ac_prog in cl.exe
3728 do
3729 # Extract the first word of "$ac_prog", so it can be a program name with args.
3730 set dummy $ac_prog; ac_word=$2
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3732 $as_echo_n "checking for $ac_word... " >&6; }
3733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3734 $as_echo_n "(cached) " >&6
3735 else
3736 if test -n "$ac_ct_CC"; then
3737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3738 else
3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740 for as_dir in $PATH
3741 do
3742 IFS=$as_save_IFS
3743 test -z "$as_dir" && as_dir=.
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3746 ac_cv_prog_ac_ct_CC="$ac_prog"
3747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3748 break 2
3749 fi
3750 done
3751 done
3752 IFS=$as_save_IFS
3753
3754 fi
3755 fi
3756 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3757 if test -n "$ac_ct_CC"; then
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3759 $as_echo "$ac_ct_CC" >&6; }
3760 else
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3762 $as_echo "no" >&6; }
3763 fi
3764
3765
3766 test -n "$ac_ct_CC" && break
3767 done
3768
3769 if test "x$ac_ct_CC" = x; then
3770 CC=""
3771 else
3772 case $cross_compiling:$ac_tool_warned in
3773 yes:)
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3776 ac_tool_warned=yes ;;
3777 esac
3778 CC=$ac_ct_CC
3779 fi
3780 fi
3781
3782 fi
3783
3784
3785 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3787 as_fn_error "no acceptable C compiler found in \$PATH
3788 See \`config.log' for more details." "$LINENO" 5; }
3789
3790 # Provide some information about the compiler.
3791 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3792 set X $ac_compile
3793 ac_compiler=$2
3794 for ac_option in --version -v -V -qversion; do
3795 { { ac_try="$ac_compiler $ac_option >&5"
3796 case "(($ac_try" in
3797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798 *) ac_try_echo=$ac_try;;
3799 esac
3800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3801 $as_echo "$ac_try_echo"; } >&5
3802 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3803 ac_status=$?
3804 if test -s conftest.err; then
3805 sed '10a\
3806 ... rest of stderr output deleted ...
3807 10q' conftest.err >conftest.er1
3808 cat conftest.er1 >&5
3809 rm -f conftest.er1 conftest.err
3810 fi
3811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3812 test $ac_status = 0; }
3813 done
3814
3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h. */
3817
3818 int
3819 main ()
3820 {
3821
3822 ;
3823 return 0;
3824 }
3825 _ACEOF
3826 ac_clean_files_save=$ac_clean_files
3827 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3828 # Try to create an executable without -o first, disregard a.out.
3829 # It will help us diagnose broken compilers, and finding out an intuition
3830 # of exeext.
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3832 $as_echo_n "checking for C compiler default output file name... " >&6; }
3833 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3834
3835 # The possible output files:
3836 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3837
3838 ac_rmfiles=
3839 for ac_file in $ac_files
3840 do
3841 case $ac_file in
3842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3843 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3844 esac
3845 done
3846 rm -f $ac_rmfiles
3847
3848 if { { ac_try="$ac_link_default"
3849 case "(($ac_try" in
3850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3851 *) ac_try_echo=$ac_try;;
3852 esac
3853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3854 $as_echo "$ac_try_echo"; } >&5
3855 (eval "$ac_link_default") 2>&5
3856 ac_status=$?
3857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3858 test $ac_status = 0; }; then :
3859 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3860 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3861 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3862 # so that the user can short-circuit this test for compilers unknown to
3863 # Autoconf.
3864 for ac_file in $ac_files ''
3865 do
3866 test -f "$ac_file" || continue
3867 case $ac_file in
3868 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3869 ;;
3870 [ab].out )
3871 # We found the default executable, but exeext='' is most
3872 # certainly right.
3873 break;;
3874 *.* )
3875 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3876 then :; else
3877 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3878 fi
3879 # We set ac_cv_exeext here because the later test for it is not
3880 # safe: cross compilers may not add the suffix if given an `-o'
3881 # argument, so we may need to know it at that point already.
3882 # Even if this section looks crufty: it has the advantage of
3883 # actually working.
3884 break;;
3885 * )
3886 break;;
3887 esac
3888 done
3889 test "$ac_cv_exeext" = no && ac_cv_exeext=
3890
3891 else
3892 ac_file=''
3893 fi
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3895 $as_echo "$ac_file" >&6; }
3896 if test -z "$ac_file"; then :
3897 $as_echo "$as_me: failed program was:" >&5
3898 sed 's/^/| /' conftest.$ac_ext >&5
3899
3900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3902 { as_fn_set_status 77
3903 as_fn_error "C compiler cannot create executables
3904 See \`config.log' for more details." "$LINENO" 5; }; }
3905 fi
3906 ac_exeext=$ac_cv_exeext
3907
3908 # Check that the compiler produces executables we can run. If not, either
3909 # the compiler is broken, or we cross compile.
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3911 $as_echo_n "checking whether the C compiler works... " >&6; }
3912 # If not cross compiling, check that we can run a simple program.
3913 if test "$cross_compiling" != yes; then
3914 if { ac_try='./$ac_file'
3915 { { case "(($ac_try" in
3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3918 esac
3919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3920 $as_echo "$ac_try_echo"; } >&5
3921 (eval "$ac_try") 2>&5
3922 ac_status=$?
3923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3924 test $ac_status = 0; }; }; then
3925 cross_compiling=no
3926 else
3927 if test "$cross_compiling" = maybe; then
3928 cross_compiling=yes
3929 else
3930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3932 as_fn_error "cannot run C compiled programs.
3933 If you meant to cross compile, use \`--host'.
3934 See \`config.log' for more details." "$LINENO" 5; }
3935 fi
3936 fi
3937 fi
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3939 $as_echo "yes" >&6; }
3940
3941 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3942 ac_clean_files=$ac_clean_files_save
3943 # Check that the compiler produces executables we can run. If not, either
3944 # the compiler is broken, or we cross compile.
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3946 $as_echo_n "checking whether we are cross compiling... " >&6; }
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3948 $as_echo "$cross_compiling" >&6; }
3949
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3951 $as_echo_n "checking for suffix of executables... " >&6; }
3952 if { { ac_try="$ac_link"
3953 case "(($ac_try" in
3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955 *) ac_try_echo=$ac_try;;
3956 esac
3957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3958 $as_echo "$ac_try_echo"; } >&5
3959 (eval "$ac_link") 2>&5
3960 ac_status=$?
3961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3962 test $ac_status = 0; }; then :
3963 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3964 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3965 # work properly (i.e., refer to `conftest.exe'), while it won't with
3966 # `rm'.
3967 for ac_file in conftest.exe conftest conftest.*; do
3968 test -f "$ac_file" || continue
3969 case $ac_file in
3970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3971 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3972 break;;
3973 * ) break;;
3974 esac
3975 done
3976 else
3977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3979 as_fn_error "cannot compute suffix of executables: cannot compile and link
3980 See \`config.log' for more details." "$LINENO" 5; }
3981 fi
3982 rm -f conftest$ac_cv_exeext
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3984 $as_echo "$ac_cv_exeext" >&6; }
3985
3986 rm -f conftest.$ac_ext
3987 EXEEXT=$ac_cv_exeext
3988 ac_exeext=$EXEEXT
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3990 $as_echo_n "checking for suffix of object files... " >&6; }
3991 if test "${ac_cv_objext+set}" = set; then :
3992 $as_echo_n "(cached) " >&6
3993 else
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
3996
3997 int
3998 main ()
3999 {
4000
4001 ;
4002 return 0;
4003 }
4004 _ACEOF
4005 rm -f conftest.o conftest.obj
4006 if { { ac_try="$ac_compile"
4007 case "(($ac_try" in
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4010 esac
4011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4012 $as_echo "$ac_try_echo"; } >&5
4013 (eval "$ac_compile") 2>&5
4014 ac_status=$?
4015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016 test $ac_status = 0; }; then :
4017 for ac_file in conftest.o conftest.obj conftest.*; do
4018 test -f "$ac_file" || continue;
4019 case $ac_file in
4020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4021 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4022 break;;
4023 esac
4024 done
4025 else
4026 $as_echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4028
4029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4031 as_fn_error "cannot compute suffix of object files: cannot compile
4032 See \`config.log' for more details." "$LINENO" 5; }
4033 fi
4034 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4035 fi
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4037 $as_echo "$ac_cv_objext" >&6; }
4038 OBJEXT=$ac_cv_objext
4039 ac_objext=$OBJEXT
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4041 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4042 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4043 $as_echo_n "(cached) " >&6
4044 else
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4047
4048 int
4049 main ()
4050 {
4051 #ifndef __GNUC__
4052 choke me
4053 #endif
4054
4055 ;
4056 return 0;
4057 }
4058 _ACEOF
4059 if ac_fn_c_try_compile "$LINENO"; then :
4060 ac_compiler_gnu=yes
4061 else
4062 ac_compiler_gnu=no
4063 fi
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4066
4067 fi
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4069 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4070 if test $ac_compiler_gnu = yes; then
4071 GCC=yes
4072 else
4073 GCC=
4074 fi
4075 ac_test_CFLAGS=${CFLAGS+set}
4076 ac_save_CFLAGS=$CFLAGS
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4078 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4079 if test "${ac_cv_prog_cc_g+set}" = set; then :
4080 $as_echo_n "(cached) " >&6
4081 else
4082 ac_save_c_werror_flag=$ac_c_werror_flag
4083 ac_c_werror_flag=yes
4084 ac_cv_prog_cc_g=no
4085 CFLAGS="-g"
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4088
4089 int
4090 main ()
4091 {
4092
4093 ;
4094 return 0;
4095 }
4096 _ACEOF
4097 if ac_fn_c_try_compile "$LINENO"; then :
4098 ac_cv_prog_cc_g=yes
4099 else
4100 CFLAGS=""
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4103
4104 int
4105 main ()
4106 {
4107
4108 ;
4109 return 0;
4110 }
4111 _ACEOF
4112 if ac_fn_c_try_compile "$LINENO"; then :
4113
4114 else
4115 ac_c_werror_flag=$ac_save_c_werror_flag
4116 CFLAGS="-g"
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4119
4120 int
4121 main ()
4122 {
4123
4124 ;
4125 return 0;
4126 }
4127 _ACEOF
4128 if ac_fn_c_try_compile "$LINENO"; then :
4129 ac_cv_prog_cc_g=yes
4130 fi
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132 fi
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 fi
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 ac_c_werror_flag=$ac_save_c_werror_flag
4137 fi
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4139 $as_echo "$ac_cv_prog_cc_g" >&6; }
4140 if test "$ac_test_CFLAGS" = set; then
4141 CFLAGS=$ac_save_CFLAGS
4142 elif test $ac_cv_prog_cc_g = yes; then
4143 if test "$GCC" = yes; then
4144 CFLAGS="-g -O2"
4145 else
4146 CFLAGS="-g"
4147 fi
4148 else
4149 if test "$GCC" = yes; then
4150 CFLAGS="-O2"
4151 else
4152 CFLAGS=
4153 fi
4154 fi
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4156 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4157 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4158 $as_echo_n "(cached) " >&6
4159 else
4160 ac_cv_prog_cc_c89=no
4161 ac_save_CC=$CC
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4164 #include <stdarg.h>
4165 #include <stdio.h>
4166 #include <sys/types.h>
4167 #include <sys/stat.h>
4168 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4169 struct buf { int x; };
4170 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4171 static char *e (p, i)
4172 char **p;
4173 int i;
4174 {
4175 return p[i];
4176 }
4177 static char *f (char * (*g) (char **, int), char **p, ...)
4178 {
4179 char *s;
4180 va_list v;
4181 va_start (v,p);
4182 s = g (p, va_arg (v,int));
4183 va_end (v);
4184 return s;
4185 }
4186
4187 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4188 function prototypes and stuff, but not '\xHH' hex character constants.
4189 These don't provoke an error unfortunately, instead are silently treated
4190 as 'x'. The following induces an error, until -std is added to get
4191 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4192 array size at least. It's necessary to write '\x00'==0 to get something
4193 that's true only with -std. */
4194 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4195
4196 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4197 inside strings and character constants. */
4198 #define FOO(x) 'x'
4199 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4200
4201 int test (int i, double x);
4202 struct s1 {int (*f) (int a);};
4203 struct s2 {int (*f) (double a);};
4204 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4205 int argc;
4206 char **argv;
4207 int
4208 main ()
4209 {
4210 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4211 ;
4212 return 0;
4213 }
4214 _ACEOF
4215 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4216 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4217 do
4218 CC="$ac_save_CC $ac_arg"
4219 if ac_fn_c_try_compile "$LINENO"; then :
4220 ac_cv_prog_cc_c89=$ac_arg
4221 fi
4222 rm -f core conftest.err conftest.$ac_objext
4223 test "x$ac_cv_prog_cc_c89" != "xno" && break
4224 done
4225 rm -f conftest.$ac_ext
4226 CC=$ac_save_CC
4227
4228 fi
4229 # AC_CACHE_VAL
4230 case "x$ac_cv_prog_cc_c89" in
4231 x)
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4233 $as_echo "none needed" >&6; } ;;
4234 xno)
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4236 $as_echo "unsupported" >&6; } ;;
4237 *)
4238 CC="$CC $ac_cv_prog_cc_c89"
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4240 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4241 esac
4242 if test "x$ac_cv_prog_cc_c89" != xno; then :
4243
4244 fi
4245
4246 ac_ext=c
4247 ac_cpp='$CPP $CPPFLAGS'
4248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4251
4252 if test "x$CC" != xcc; then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4254 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4255 else
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4257 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4258 fi
4259 set dummy $CC; ac_cc=`$as_echo "$2" |
4260 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4261 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4262 $as_echo_n "(cached) " >&6
4263 else
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h. */
4266
4267 int
4268 main ()
4269 {
4270
4271 ;
4272 return 0;
4273 }
4274 _ACEOF
4275 # Make sure it works both with $CC and with simple cc.
4276 # We do the test twice because some compilers refuse to overwrite an
4277 # existing .o file with -o, though they will create one.
4278 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4279 rm -f conftest2.*
4280 if { { case "(($ac_try" in
4281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282 *) ac_try_echo=$ac_try;;
4283 esac
4284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4285 $as_echo "$ac_try_echo"; } >&5
4286 (eval "$ac_try") 2>&5
4287 ac_status=$?
4288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4289 test $ac_status = 0; } &&
4290 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4293 esac
4294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4295 $as_echo "$ac_try_echo"; } >&5
4296 (eval "$ac_try") 2>&5
4297 ac_status=$?
4298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4299 test $ac_status = 0; };
4300 then
4301 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4302 if test "x$CC" != xcc; then
4303 # Test first that cc exists at all.
4304 if { ac_try='cc -c conftest.$ac_ext >&5'
4305 { { case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4308 esac
4309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4310 $as_echo "$ac_try_echo"; } >&5
4311 (eval "$ac_try") 2>&5
4312 ac_status=$?
4313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4314 test $ac_status = 0; }; }; then
4315 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4316 rm -f conftest2.*
4317 if { { case "(($ac_try" in
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4320 esac
4321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4322 $as_echo "$ac_try_echo"; } >&5
4323 (eval "$ac_try") 2>&5
4324 ac_status=$?
4325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4326 test $ac_status = 0; } &&
4327 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4330 esac
4331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4332 $as_echo "$ac_try_echo"; } >&5
4333 (eval "$ac_try") 2>&5
4334 ac_status=$?
4335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4336 test $ac_status = 0; };
4337 then
4338 # cc works too.
4339 :
4340 else
4341 # cc exists but doesn't like -o.
4342 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4343 fi
4344 fi
4345 fi
4346 else
4347 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4348 fi
4349 rm -f core conftest*
4350
4351 fi
4352 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4354 $as_echo "yes" >&6; }
4355 else
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357 $as_echo "no" >&6; }
4358
4359 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4360
4361 fi
4362
4363 # expand $ac_aux_dir to an absolute path
4364 am_aux_dir=`cd $ac_aux_dir && pwd`
4365
4366 # FIXME: we rely on the cache variable name because
4367 # there is no other way.
4368 set dummy $CC
4369 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4370 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4371 if test "$am_t" != yes; then
4372 # Losing compiler, so override with the script.
4373 # FIXME: It is wrong to rewrite CC.
4374 # But if we don't then we get into trouble of one sort or another.
4375 # A longer-term fix would be to have automake use am__CC in this case,
4376 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4377 CC="$am_aux_dir/compile $CC"
4378 fi
4379
4380
4381 ac_ext=cpp
4382 ac_cpp='$CXXCPP $CPPFLAGS'
4383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4386 if test -z "$CXX"; then
4387 if test -n "$CCC"; then
4388 CXX=$CCC
4389 else
4390 if test -n "$ac_tool_prefix"; then
4391 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4392 do
4393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4394 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396 $as_echo_n "checking for $ac_word... " >&6; }
4397 if test "${ac_cv_prog_CXX+set}" = set; then :
4398 $as_echo_n "(cached) " >&6
4399 else
4400 if test -n "$CXX"; then
4401 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4402 else
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4405 do
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 break 2
4413 fi
4414 done
4415 done
4416 IFS=$as_save_IFS
4417
4418 fi
4419 fi
4420 CXX=$ac_cv_prog_CXX
4421 if test -n "$CXX"; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4423 $as_echo "$CXX" >&6; }
4424 else
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426 $as_echo "no" >&6; }
4427 fi
4428
4429
4430 test -n "$CXX" && break
4431 done
4432 fi
4433 if test -z "$CXX"; then
4434 ac_ct_CXX=$CXX
4435 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4436 do
4437 # Extract the first word of "$ac_prog", so it can be a program name with args.
4438 set dummy $ac_prog; ac_word=$2
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4440 $as_echo_n "checking for $ac_word... " >&6; }
4441 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4442 $as_echo_n "(cached) " >&6
4443 else
4444 if test -n "$ac_ct_CXX"; then
4445 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4446 else
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 for as_dir in $PATH
4449 do
4450 IFS=$as_save_IFS
4451 test -z "$as_dir" && as_dir=.
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4454 ac_cv_prog_ac_ct_CXX="$ac_prog"
4455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4456 break 2
4457 fi
4458 done
4459 done
4460 IFS=$as_save_IFS
4461
4462 fi
4463 fi
4464 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4465 if test -n "$ac_ct_CXX"; then
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4467 $as_echo "$ac_ct_CXX" >&6; }
4468 else
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4470 $as_echo "no" >&6; }
4471 fi
4472
4473
4474 test -n "$ac_ct_CXX" && break
4475 done
4476
4477 if test "x$ac_ct_CXX" = x; then
4478 CXX="g++"
4479 else
4480 case $cross_compiling:$ac_tool_warned in
4481 yes:)
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4484 ac_tool_warned=yes ;;
4485 esac
4486 CXX=$ac_ct_CXX
4487 fi
4488 fi
4489
4490 fi
4491 fi
4492 # Provide some information about the compiler.
4493 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4494 set X $ac_compile
4495 ac_compiler=$2
4496 for ac_option in --version -v -V -qversion; do
4497 { { ac_try="$ac_compiler $ac_option >&5"
4498 case "(($ac_try" in
4499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4501 esac
4502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4503 $as_echo "$ac_try_echo"; } >&5
4504 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4505 ac_status=$?
4506 if test -s conftest.err; then
4507 sed '10a\
4508 ... rest of stderr output deleted ...
4509 10q' conftest.err >conftest.er1
4510 cat conftest.er1 >&5
4511 rm -f conftest.er1 conftest.err
4512 fi
4513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4514 test $ac_status = 0; }
4515 done
4516
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4518 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4519 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4520 $as_echo_n "(cached) " >&6
4521 else
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4524
4525 int
4526 main ()
4527 {
4528 #ifndef __GNUC__
4529 choke me
4530 #endif
4531
4532 ;
4533 return 0;
4534 }
4535 _ACEOF
4536 if ac_fn_cxx_try_compile "$LINENO"; then :
4537 ac_compiler_gnu=yes
4538 else
4539 ac_compiler_gnu=no
4540 fi
4541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4542 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4543
4544 fi
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4546 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4547 if test $ac_compiler_gnu = yes; then
4548 GXX=yes
4549 else
4550 GXX=
4551 fi
4552 ac_test_CXXFLAGS=${CXXFLAGS+set}
4553 ac_save_CXXFLAGS=$CXXFLAGS
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4555 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4556 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4557 $as_echo_n "(cached) " >&6
4558 else
4559 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4560 ac_cxx_werror_flag=yes
4561 ac_cv_prog_cxx_g=no
4562 CXXFLAGS="-g"
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h. */
4565
4566 int
4567 main ()
4568 {
4569
4570 ;
4571 return 0;
4572 }
4573 _ACEOF
4574 if ac_fn_cxx_try_compile "$LINENO"; then :
4575 ac_cv_prog_cxx_g=yes
4576 else
4577 CXXFLAGS=""
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4580
4581 int
4582 main ()
4583 {
4584
4585 ;
4586 return 0;
4587 }
4588 _ACEOF
4589 if ac_fn_cxx_try_compile "$LINENO"; then :
4590
4591 else
4592 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4593 CXXFLAGS="-g"
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4596
4597 int
4598 main ()
4599 {
4600
4601 ;
4602 return 0;
4603 }
4604 _ACEOF
4605 if ac_fn_cxx_try_compile "$LINENO"; then :
4606 ac_cv_prog_cxx_g=yes
4607 fi
4608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4609 fi
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611 fi
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4614 fi
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4616 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4617 if test "$ac_test_CXXFLAGS" = set; then
4618 CXXFLAGS=$ac_save_CXXFLAGS
4619 elif test $ac_cv_prog_cxx_g = yes; then
4620 if test "$GXX" = yes; then
4621 CXXFLAGS="-g -O2"
4622 else
4623 CXXFLAGS="-g"
4624 fi
4625 else
4626 if test "$GXX" = yes; then
4627 CXXFLAGS="-O2"
4628 else
4629 CXXFLAGS=
4630 fi
4631 fi
4632 ac_ext=c
4633 ac_cpp='$CPP $CPPFLAGS'
4634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4637
4638
4639
4640
4641 if test -n "$ac_tool_prefix"; then
4642 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4643 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 $as_echo_n "checking for $ac_word... " >&6; }
4646 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4647 $as_echo_n "(cached) " >&6
4648 else
4649 if test -n "$GNATBIND"; then
4650 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4651 else
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4654 do
4655 IFS=$as_save_IFS
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 break 2
4662 fi
4663 done
4664 done
4665 IFS=$as_save_IFS
4666
4667 fi
4668 fi
4669 GNATBIND=$ac_cv_prog_GNATBIND
4670 if test -n "$GNATBIND"; then
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4672 $as_echo "$GNATBIND" >&6; }
4673 else
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675 $as_echo "no" >&6; }
4676 fi
4677
4678
4679 fi
4680 if test -z "$ac_cv_prog_GNATBIND"; then
4681 ac_ct_GNATBIND=$GNATBIND
4682 # Extract the first word of "gnatbind", so it can be a program name with args.
4683 set dummy gnatbind; ac_word=$2
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4685 $as_echo_n "checking for $ac_word... " >&6; }
4686 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4687 $as_echo_n "(cached) " >&6
4688 else
4689 if test -n "$ac_ct_GNATBIND"; then
4690 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4691 else
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH
4694 do
4695 IFS=$as_save_IFS
4696 test -z "$as_dir" && as_dir=.
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4699 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 break 2
4702 fi
4703 done
4704 done
4705 IFS=$as_save_IFS
4706
4707 fi
4708 fi
4709 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4710 if test -n "$ac_ct_GNATBIND"; then
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4712 $as_echo "$ac_ct_GNATBIND" >&6; }
4713 else
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715 $as_echo "no" >&6; }
4716 fi
4717
4718 if test "x$ac_ct_GNATBIND" = x; then
4719 GNATBIND="no"
4720 else
4721 case $cross_compiling:$ac_tool_warned in
4722 yes:)
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4725 ac_tool_warned=yes ;;
4726 esac
4727 GNATBIND=$ac_ct_GNATBIND
4728 fi
4729 else
4730 GNATBIND="$ac_cv_prog_GNATBIND"
4731 fi
4732
4733 if test -n "$ac_tool_prefix"; then
4734 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4735 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737 $as_echo_n "checking for $ac_word... " >&6; }
4738 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4739 $as_echo_n "(cached) " >&6
4740 else
4741 if test -n "$GNATMAKE"; then
4742 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4743 else
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH
4746 do
4747 IFS=$as_save_IFS
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4751 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 break 2
4754 fi
4755 done
4756 done
4757 IFS=$as_save_IFS
4758
4759 fi
4760 fi
4761 GNATMAKE=$ac_cv_prog_GNATMAKE
4762 if test -n "$GNATMAKE"; then
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4764 $as_echo "$GNATMAKE" >&6; }
4765 else
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 $as_echo "no" >&6; }
4768 fi
4769
4770
4771 fi
4772 if test -z "$ac_cv_prog_GNATMAKE"; then
4773 ac_ct_GNATMAKE=$GNATMAKE
4774 # Extract the first word of "gnatmake", so it can be a program name with args.
4775 set dummy gnatmake; ac_word=$2
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 $as_echo_n "checking for $ac_word... " >&6; }
4778 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 if test -n "$ac_ct_GNATMAKE"; then
4782 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4783 else
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $PATH
4786 do
4787 IFS=$as_save_IFS
4788 test -z "$as_dir" && as_dir=.
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4791 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4793 break 2
4794 fi
4795 done
4796 done
4797 IFS=$as_save_IFS
4798
4799 fi
4800 fi
4801 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4802 if test -n "$ac_ct_GNATMAKE"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4804 $as_echo "$ac_ct_GNATMAKE" >&6; }
4805 else
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4808 fi
4809
4810 if test "x$ac_ct_GNATMAKE" = x; then
4811 GNATMAKE="no"
4812 else
4813 case $cross_compiling:$ac_tool_warned in
4814 yes:)
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4817 ac_tool_warned=yes ;;
4818 esac
4819 GNATMAKE=$ac_ct_GNATMAKE
4820 fi
4821 else
4822 GNATMAKE="$ac_cv_prog_GNATMAKE"
4823 fi
4824
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4826 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4827 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4828 $as_echo_n "(cached) " >&6
4829 else
4830 cat >conftest.adb <<EOF
4831 procedure conftest is begin null; end conftest;
4832 EOF
4833 acx_cv_cc_gcc_supports_ada=no
4834 # There is a bug in old released versions of GCC which causes the
4835 # driver to exit successfully when the appropriate language module
4836 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4837 # Therefore we must check for the error message as well as an
4838 # unsuccessful exit.
4839 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4840 # given a .adb file, but produce no object file. So we must check
4841 # if an object file was really produced to guard against this.
4842 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4843 if test x"$errors" = x && test -f conftest.$ac_objext; then
4844 acx_cv_cc_gcc_supports_ada=yes
4845 fi
4846 rm -f conftest.*
4847 fi
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4849 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4850
4851 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4852 have_gnat=yes
4853 else
4854 have_gnat=no
4855 fi
4856
4857
4858 # autoconf is lame and doesn't give us any substitution variable for this.
4859 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4860 NO_MINUS_C_MINUS_O=yes
4861 else
4862 OUTPUT_OPTION='-o $@'
4863 fi
4864
4865
4866
4867 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4868 # optimizations to be activated explicitly by the toplevel.
4869 case "$CC" in
4870 */prev-gcc/xgcc*) ;;
4871 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4872 esac
4873
4874
4875 # -------------------------
4876 # Check C compiler features
4877 # -------------------------
4878
4879
4880 ac_ext=c
4881 ac_cpp='$CPP $CPPFLAGS'
4882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4886 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4887 # On Suns, sometimes $CPP names a directory.
4888 if test -n "$CPP" && test -d "$CPP"; then
4889 CPP=
4890 fi
4891 if test -z "$CPP"; then
4892 if test "${ac_cv_prog_CPP+set}" = set; then :
4893 $as_echo_n "(cached) " >&6
4894 else
4895 # Double quotes because CPP needs to be expanded
4896 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4897 do
4898 ac_preproc_ok=false
4899 for ac_c_preproc_warn_flag in '' yes
4900 do
4901 # Use a header file that comes with gcc, so configuring glibc
4902 # with a fresh cross-compiler works.
4903 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4904 # <limits.h> exists even on freestanding compilers.
4905 # On the NeXT, cc -E runs the code through the compiler's parser,
4906 # not just through cpp. "Syntax error" is here to catch this case.
4907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4908 /* end confdefs.h. */
4909 #ifdef __STDC__
4910 # include <limits.h>
4911 #else
4912 # include <assert.h>
4913 #endif
4914 Syntax error
4915 _ACEOF
4916 if ac_fn_c_try_cpp "$LINENO"; then :
4917
4918 else
4919 # Broken: fails on valid input.
4920 continue
4921 fi
4922 rm -f conftest.err conftest.$ac_ext
4923
4924 # OK, works on sane cases. Now check whether nonexistent headers
4925 # can be detected and how.
4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4928 #include <ac_nonexistent.h>
4929 _ACEOF
4930 if ac_fn_c_try_cpp "$LINENO"; then :
4931 # Broken: success on invalid input.
4932 continue
4933 else
4934 # Passes both tests.
4935 ac_preproc_ok=:
4936 break
4937 fi
4938 rm -f conftest.err conftest.$ac_ext
4939
4940 done
4941 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4942 rm -f conftest.err conftest.$ac_ext
4943 if $ac_preproc_ok; then :
4944 break
4945 fi
4946
4947 done
4948 ac_cv_prog_CPP=$CPP
4949
4950 fi
4951 CPP=$ac_cv_prog_CPP
4952 else
4953 ac_cv_prog_CPP=$CPP
4954 fi
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4956 $as_echo "$CPP" >&6; }
4957 ac_preproc_ok=false
4958 for ac_c_preproc_warn_flag in '' yes
4959 do
4960 # Use a header file that comes with gcc, so configuring glibc
4961 # with a fresh cross-compiler works.
4962 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4963 # <limits.h> exists even on freestanding compilers.
4964 # On the NeXT, cc -E runs the code through the compiler's parser,
4965 # not just through cpp. "Syntax error" is here to catch this case.
4966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4967 /* end confdefs.h. */
4968 #ifdef __STDC__
4969 # include <limits.h>
4970 #else
4971 # include <assert.h>
4972 #endif
4973 Syntax error
4974 _ACEOF
4975 if ac_fn_c_try_cpp "$LINENO"; then :
4976
4977 else
4978 # Broken: fails on valid input.
4979 continue
4980 fi
4981 rm -f conftest.err conftest.$ac_ext
4982
4983 # OK, works on sane cases. Now check whether nonexistent headers
4984 # can be detected and how.
4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h. */
4987 #include <ac_nonexistent.h>
4988 _ACEOF
4989 if ac_fn_c_try_cpp "$LINENO"; then :
4990 # Broken: success on invalid input.
4991 continue
4992 else
4993 # Passes both tests.
4994 ac_preproc_ok=:
4995 break
4996 fi
4997 rm -f conftest.err conftest.$ac_ext
4998
4999 done
5000 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5001 rm -f conftest.err conftest.$ac_ext
5002 if $ac_preproc_ok; then :
5003
5004 else
5005 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5007 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5008 See \`config.log' for more details." "$LINENO" 5; }
5009 fi
5010
5011 ac_ext=c
5012 ac_cpp='$CPP $CPPFLAGS'
5013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5016
5017
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5019 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5020 if test "${ac_cv_path_GREP+set}" = set; then :
5021 $as_echo_n "(cached) " >&6
5022 else
5023 if test -z "$GREP"; then
5024 ac_path_GREP_found=false
5025 # Loop through the user's path and test for each of PROGNAME-LIST
5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5028 do
5029 IFS=$as_save_IFS
5030 test -z "$as_dir" && as_dir=.
5031 for ac_prog in grep ggrep; do
5032 for ac_exec_ext in '' $ac_executable_extensions; do
5033 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5034 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5035 # Check for GNU ac_path_GREP and select it if it is found.
5036 # Check for GNU $ac_path_GREP
5037 case `"$ac_path_GREP" --version 2>&1` in
5038 *GNU*)
5039 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5040 *)
5041 ac_count=0
5042 $as_echo_n 0123456789 >"conftest.in"
5043 while :
5044 do
5045 cat "conftest.in" "conftest.in" >"conftest.tmp"
5046 mv "conftest.tmp" "conftest.in"
5047 cp "conftest.in" "conftest.nl"
5048 $as_echo 'GREP' >> "conftest.nl"
5049 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5050 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5051 as_fn_arith $ac_count + 1 && ac_count=$as_val
5052 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5053 # Best one so far, save it but keep looking for a better one
5054 ac_cv_path_GREP="$ac_path_GREP"
5055 ac_path_GREP_max=$ac_count
5056 fi
5057 # 10*(2^10) chars as input seems more than enough
5058 test $ac_count -gt 10 && break
5059 done
5060 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5061 esac
5062
5063 $ac_path_GREP_found && break 3
5064 done
5065 done
5066 done
5067 IFS=$as_save_IFS
5068 if test -z "$ac_cv_path_GREP"; then
5069 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5070 fi
5071 else
5072 ac_cv_path_GREP=$GREP
5073 fi
5074
5075 fi
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5077 $as_echo "$ac_cv_path_GREP" >&6; }
5078 GREP="$ac_cv_path_GREP"
5079
5080
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5082 $as_echo_n "checking for egrep... " >&6; }
5083 if test "${ac_cv_path_EGREP+set}" = set; then :
5084 $as_echo_n "(cached) " >&6
5085 else
5086 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5087 then ac_cv_path_EGREP="$GREP -E"
5088 else
5089 if test -z "$EGREP"; then
5090 ac_path_EGREP_found=false
5091 # Loop through the user's path and test for each of PROGNAME-LIST
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5094 do
5095 IFS=$as_save_IFS
5096 test -z "$as_dir" && as_dir=.
5097 for ac_prog in egrep; do
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5100 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5101 # Check for GNU ac_path_EGREP and select it if it is found.
5102 # Check for GNU $ac_path_EGREP
5103 case `"$ac_path_EGREP" --version 2>&1` in
5104 *GNU*)
5105 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5106 *)
5107 ac_count=0
5108 $as_echo_n 0123456789 >"conftest.in"
5109 while :
5110 do
5111 cat "conftest.in" "conftest.in" >"conftest.tmp"
5112 mv "conftest.tmp" "conftest.in"
5113 cp "conftest.in" "conftest.nl"
5114 $as_echo 'EGREP' >> "conftest.nl"
5115 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5116 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5117 as_fn_arith $ac_count + 1 && ac_count=$as_val
5118 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5119 # Best one so far, save it but keep looking for a better one
5120 ac_cv_path_EGREP="$ac_path_EGREP"
5121 ac_path_EGREP_max=$ac_count
5122 fi
5123 # 10*(2^10) chars as input seems more than enough
5124 test $ac_count -gt 10 && break
5125 done
5126 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5127 esac
5128
5129 $ac_path_EGREP_found && break 3
5130 done
5131 done
5132 done
5133 IFS=$as_save_IFS
5134 if test -z "$ac_cv_path_EGREP"; then
5135 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5136 fi
5137 else
5138 ac_cv_path_EGREP=$EGREP
5139 fi
5140
5141 fi
5142 fi
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5144 $as_echo "$ac_cv_path_EGREP" >&6; }
5145 EGREP="$ac_cv_path_EGREP"
5146
5147
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5149 $as_echo_n "checking for ANSI C header files... " >&6; }
5150 if test "${ac_cv_header_stdc+set}" = set; then :
5151 $as_echo_n "(cached) " >&6
5152 else
5153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154 /* end confdefs.h. */
5155 #include <stdlib.h>
5156 #include <stdarg.h>
5157 #include <string.h>
5158 #include <float.h>
5159
5160 int
5161 main ()
5162 {
5163
5164 ;
5165 return 0;
5166 }
5167 _ACEOF
5168 if ac_fn_c_try_compile "$LINENO"; then :
5169 ac_cv_header_stdc=yes
5170 else
5171 ac_cv_header_stdc=no
5172 fi
5173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5174
5175 if test $ac_cv_header_stdc = yes; then
5176 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178 /* end confdefs.h. */
5179 #include <string.h>
5180
5181 _ACEOF
5182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5183 $EGREP "memchr" >/dev/null 2>&1; then :
5184
5185 else
5186 ac_cv_header_stdc=no
5187 fi
5188 rm -f conftest*
5189
5190 fi
5191
5192 if test $ac_cv_header_stdc = yes; then
5193 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h. */
5196 #include <stdlib.h>
5197
5198 _ACEOF
5199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5200 $EGREP "free" >/dev/null 2>&1; then :
5201
5202 else
5203 ac_cv_header_stdc=no
5204 fi
5205 rm -f conftest*
5206
5207 fi
5208
5209 if test $ac_cv_header_stdc = yes; then
5210 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5211 if test "$cross_compiling" = yes; then :
5212 :
5213 else
5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5216 #include <ctype.h>
5217 #include <stdlib.h>
5218 #if ((' ' & 0x0FF) == 0x020)
5219 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5220 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5221 #else
5222 # define ISLOWER(c) \
5223 (('a' <= (c) && (c) <= 'i') \
5224 || ('j' <= (c) && (c) <= 'r') \
5225 || ('s' <= (c) && (c) <= 'z'))
5226 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5227 #endif
5228
5229 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5230 int
5231 main ()
5232 {
5233 int i;
5234 for (i = 0; i < 256; i++)
5235 if (XOR (islower (i), ISLOWER (i))
5236 || toupper (i) != TOUPPER (i))
5237 return 2;
5238 return 0;
5239 }
5240 _ACEOF
5241 if ac_fn_c_try_run "$LINENO"; then :
5242
5243 else
5244 ac_cv_header_stdc=no
5245 fi
5246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5247 conftest.$ac_objext conftest.beam conftest.$ac_ext
5248 fi
5249
5250 fi
5251 fi
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5253 $as_echo "$ac_cv_header_stdc" >&6; }
5254 if test $ac_cv_header_stdc = yes; then
5255
5256 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5257
5258 fi
5259
5260 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5261 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5262 inttypes.h stdint.h unistd.h
5263 do :
5264 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5265 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5266 "
5267 eval as_val=\$$as_ac_Header
5268 if test "x$as_val" = x""yes; then :
5269 cat >>confdefs.h <<_ACEOF
5270 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5271 _ACEOF
5272
5273 fi
5274
5275 done
5276
5277
5278
5279 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5280 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5281 MINIX=yes
5282 else
5283 MINIX=
5284 fi
5285
5286
5287 if test "$MINIX" = yes; then
5288
5289 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5290
5291
5292 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5293
5294
5295 $as_echo "#define _MINIX 1" >>confdefs.h
5296
5297 fi
5298
5299
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5301 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5302 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5303 $as_echo_n "(cached) " >&6
5304 else
5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306 /* end confdefs.h. */
5307
5308 # define __EXTENSIONS__ 1
5309 $ac_includes_default
5310 int
5311 main ()
5312 {
5313
5314 ;
5315 return 0;
5316 }
5317 _ACEOF
5318 if ac_fn_c_try_compile "$LINENO"; then :
5319 ac_cv_safe_to_define___extensions__=yes
5320 else
5321 ac_cv_safe_to_define___extensions__=no
5322 fi
5323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5324 fi
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5326 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5327 test $ac_cv_safe_to_define___extensions__ = yes &&
5328 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5329
5330 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5331
5332 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5333
5334 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5335
5336 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5337
5338
5339 ac_ext=c
5340 ac_cpp='$CPP $CPPFLAGS'
5341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5345 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5346 # On Suns, sometimes $CPP names a directory.
5347 if test -n "$CPP" && test -d "$CPP"; then
5348 CPP=
5349 fi
5350 if test -z "$CPP"; then
5351 if test "${ac_cv_prog_CPP+set}" = set; then :
5352 $as_echo_n "(cached) " >&6
5353 else
5354 # Double quotes because CPP needs to be expanded
5355 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5356 do
5357 ac_preproc_ok=false
5358 for ac_c_preproc_warn_flag in '' yes
5359 do
5360 # Use a header file that comes with gcc, so configuring glibc
5361 # with a fresh cross-compiler works.
5362 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5363 # <limits.h> exists even on freestanding compilers.
5364 # On the NeXT, cc -E runs the code through the compiler's parser,
5365 # not just through cpp. "Syntax error" is here to catch this case.
5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h. */
5368 #ifdef __STDC__
5369 # include <limits.h>
5370 #else
5371 # include <assert.h>
5372 #endif
5373 Syntax error
5374 _ACEOF
5375 if ac_fn_c_try_cpp "$LINENO"; then :
5376
5377 else
5378 # Broken: fails on valid input.
5379 continue
5380 fi
5381 rm -f conftest.err conftest.$ac_ext
5382
5383 # OK, works on sane cases. Now check whether nonexistent headers
5384 # can be detected and how.
5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5387 #include <ac_nonexistent.h>
5388 _ACEOF
5389 if ac_fn_c_try_cpp "$LINENO"; then :
5390 # Broken: success on invalid input.
5391 continue
5392 else
5393 # Passes both tests.
5394 ac_preproc_ok=:
5395 break
5396 fi
5397 rm -f conftest.err conftest.$ac_ext
5398
5399 done
5400 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5401 rm -f conftest.err conftest.$ac_ext
5402 if $ac_preproc_ok; then :
5403 break
5404 fi
5405
5406 done
5407 ac_cv_prog_CPP=$CPP
5408
5409 fi
5410 CPP=$ac_cv_prog_CPP
5411 else
5412 ac_cv_prog_CPP=$CPP
5413 fi
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5415 $as_echo "$CPP" >&6; }
5416 ac_preproc_ok=false
5417 for ac_c_preproc_warn_flag in '' yes
5418 do
5419 # Use a header file that comes with gcc, so configuring glibc
5420 # with a fresh cross-compiler works.
5421 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5422 # <limits.h> exists even on freestanding compilers.
5423 # On the NeXT, cc -E runs the code through the compiler's parser,
5424 # not just through cpp. "Syntax error" is here to catch this case.
5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h. */
5427 #ifdef __STDC__
5428 # include <limits.h>
5429 #else
5430 # include <assert.h>
5431 #endif
5432 Syntax error
5433 _ACEOF
5434 if ac_fn_c_try_cpp "$LINENO"; then :
5435
5436 else
5437 # Broken: fails on valid input.
5438 continue
5439 fi
5440 rm -f conftest.err conftest.$ac_ext
5441
5442 # OK, works on sane cases. Now check whether nonexistent headers
5443 # can be detected and how.
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5446 #include <ac_nonexistent.h>
5447 _ACEOF
5448 if ac_fn_c_try_cpp "$LINENO"; then :
5449 # Broken: success on invalid input.
5450 continue
5451 else
5452 # Passes both tests.
5453 ac_preproc_ok=:
5454 break
5455 fi
5456 rm -f conftest.err conftest.$ac_ext
5457
5458 done
5459 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5460 rm -f conftest.err conftest.$ac_ext
5461 if $ac_preproc_ok; then :
5462
5463 else
5464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5466 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5467 See \`config.log' for more details." "$LINENO" 5; }
5468 fi
5469
5470 ac_ext=c
5471 ac_cpp='$CPP $CPPFLAGS'
5472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5475
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5477 $as_echo_n "checking for inline... " >&6; }
5478 if test "${ac_cv_c_inline+set}" = set; then :
5479 $as_echo_n "(cached) " >&6
5480 else
5481 ac_cv_c_inline=no
5482 for ac_kw in inline __inline__ __inline; do
5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484 /* end confdefs.h. */
5485 #ifndef __cplusplus
5486 typedef int foo_t;
5487 static $ac_kw foo_t static_foo () {return 0; }
5488 $ac_kw foo_t foo () {return 0; }
5489 #endif
5490
5491 _ACEOF
5492 if ac_fn_c_try_compile "$LINENO"; then :
5493 ac_cv_c_inline=$ac_kw
5494 fi
5495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496 test "$ac_cv_c_inline" != no && break
5497 done
5498
5499 fi
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5501 $as_echo "$ac_cv_c_inline" >&6; }
5502
5503 case $ac_cv_c_inline in
5504 inline | yes) ;;
5505 *)
5506 case $ac_cv_c_inline in
5507 no) ac_val=;;
5508 *) ac_val=$ac_cv_c_inline;;
5509 esac
5510 cat >>confdefs.h <<_ACEOF
5511 #ifndef __cplusplus
5512 #define inline $ac_val
5513 #endif
5514 _ACEOF
5515 ;;
5516 esac
5517
5518
5519 # Check whether --enable-largefile was given.
5520 if test "${enable_largefile+set}" = set; then :
5521 enableval=$enable_largefile;
5522 fi
5523
5524 if test "$enable_largefile" != no; then
5525
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5527 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5528 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5529 $as_echo_n "(cached) " >&6
5530 else
5531 ac_cv_sys_largefile_CC=no
5532 if test "$GCC" != yes; then
5533 ac_save_CC=$CC
5534 while :; do
5535 # IRIX 6.2 and later do not support large files by default,
5536 # so use the C compiler's -n32 option if that helps.
5537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538 /* end confdefs.h. */
5539 #include <sys/types.h>
5540 /* Check that off_t can represent 2**63 - 1 correctly.
5541 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5542 since some C++ compilers masquerading as C compilers
5543 incorrectly reject 9223372036854775807. */
5544 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5545 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5546 && LARGE_OFF_T % 2147483647 == 1)
5547 ? 1 : -1];
5548 int
5549 main ()
5550 {
5551
5552 ;
5553 return 0;
5554 }
5555 _ACEOF
5556 if ac_fn_c_try_compile "$LINENO"; then :
5557 break
5558 fi
5559 rm -f core conftest.err conftest.$ac_objext
5560 CC="$CC -n32"
5561 if ac_fn_c_try_compile "$LINENO"; then :
5562 ac_cv_sys_largefile_CC=' -n32'; break
5563 fi
5564 rm -f core conftest.err conftest.$ac_objext
5565 break
5566 done
5567 CC=$ac_save_CC
5568 rm -f conftest.$ac_ext
5569 fi
5570 fi
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5572 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5573 if test "$ac_cv_sys_largefile_CC" != no; then
5574 CC=$CC$ac_cv_sys_largefile_CC
5575 fi
5576
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5578 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5579 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5580 $as_echo_n "(cached) " >&6
5581 else
5582 while :; do
5583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5584 /* end confdefs.h. */
5585 #include <sys/types.h>
5586 /* Check that off_t can represent 2**63 - 1 correctly.
5587 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5588 since some C++ compilers masquerading as C compilers
5589 incorrectly reject 9223372036854775807. */
5590 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5591 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5592 && LARGE_OFF_T % 2147483647 == 1)
5593 ? 1 : -1];
5594 int
5595 main ()
5596 {
5597
5598 ;
5599 return 0;
5600 }
5601 _ACEOF
5602 if ac_fn_c_try_compile "$LINENO"; then :
5603 ac_cv_sys_file_offset_bits=no; break
5604 fi
5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h. */
5608 #define _FILE_OFFSET_BITS 64
5609 #include <sys/types.h>
5610 /* Check that off_t can represent 2**63 - 1 correctly.
5611 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5612 since some C++ compilers masquerading as C compilers
5613 incorrectly reject 9223372036854775807. */
5614 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5615 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5616 && LARGE_OFF_T % 2147483647 == 1)
5617 ? 1 : -1];
5618 int
5619 main ()
5620 {
5621
5622 ;
5623 return 0;
5624 }
5625 _ACEOF
5626 if ac_fn_c_try_compile "$LINENO"; then :
5627 ac_cv_sys_file_offset_bits=64; break
5628 fi
5629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5630 ac_cv_sys_file_offset_bits=unknown
5631 break
5632 done
5633 fi
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5635 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5636 case $ac_cv_sys_file_offset_bits in #(
5637 no | unknown) ;;
5638 *)
5639 cat >>confdefs.h <<_ACEOF
5640 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5641 _ACEOF
5642 ;;
5643 esac
5644 rm -rf conftest*
5645 if test $ac_cv_sys_file_offset_bits = unknown; then
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5647 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5648 if test "${ac_cv_sys_large_files+set}" = set; then :
5649 $as_echo_n "(cached) " >&6
5650 else
5651 while :; do
5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h. */
5654 #include <sys/types.h>
5655 /* Check that off_t can represent 2**63 - 1 correctly.
5656 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5657 since some C++ compilers masquerading as C compilers
5658 incorrectly reject 9223372036854775807. */
5659 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5660 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5661 && LARGE_OFF_T % 2147483647 == 1)
5662 ? 1 : -1];
5663 int
5664 main ()
5665 {
5666
5667 ;
5668 return 0;
5669 }
5670 _ACEOF
5671 if ac_fn_c_try_compile "$LINENO"; then :
5672 ac_cv_sys_large_files=no; break
5673 fi
5674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676 /* end confdefs.h. */
5677 #define _LARGE_FILES 1
5678 #include <sys/types.h>
5679 /* Check that off_t can represent 2**63 - 1 correctly.
5680 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5681 since some C++ compilers masquerading as C compilers
5682 incorrectly reject 9223372036854775807. */
5683 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5684 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5685 && LARGE_OFF_T % 2147483647 == 1)
5686 ? 1 : -1];
5687 int
5688 main ()
5689 {
5690
5691 ;
5692 return 0;
5693 }
5694 _ACEOF
5695 if ac_fn_c_try_compile "$LINENO"; then :
5696 ac_cv_sys_large_files=1; break
5697 fi
5698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5699 ac_cv_sys_large_files=unknown
5700 break
5701 done
5702 fi
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5704 $as_echo "$ac_cv_sys_large_files" >&6; }
5705 case $ac_cv_sys_large_files in #(
5706 no | unknown) ;;
5707 *)
5708 cat >>confdefs.h <<_ACEOF
5709 #define _LARGE_FILES $ac_cv_sys_large_files
5710 _ACEOF
5711 ;;
5712 esac
5713 rm -rf conftest*
5714 fi
5715 fi
5716
5717
5718 # sizeof(char) is 1 by definition.
5719 # The cast to long int works around a bug in the HP C Compiler
5720 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5721 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5722 # This bug is HP SR number 8606223364.
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5724 $as_echo_n "checking size of void *... " >&6; }
5725 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5726 $as_echo_n "(cached) " >&6
5727 else
5728 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5729
5730 else
5731 if test "$ac_cv_type_void_p" = yes; then
5732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5734 { as_fn_set_status 77
5735 as_fn_error "cannot compute sizeof (void *)
5736 See \`config.log' for more details." "$LINENO" 5; }; }
5737 else
5738 ac_cv_sizeof_void_p=0
5739 fi
5740 fi
5741
5742 fi
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5744 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5745
5746
5747
5748 cat >>confdefs.h <<_ACEOF
5749 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5750 _ACEOF
5751
5752
5753 # The cast to long int works around a bug in the HP C Compiler
5754 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5755 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5756 # This bug is HP SR number 8606223364.
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5758 $as_echo_n "checking size of short... " >&6; }
5759 if test "${ac_cv_sizeof_short+set}" = set; then :
5760 $as_echo_n "(cached) " >&6
5761 else
5762 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5763
5764 else
5765 if test "$ac_cv_type_short" = yes; then
5766 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5768 { as_fn_set_status 77
5769 as_fn_error "cannot compute sizeof (short)
5770 See \`config.log' for more details." "$LINENO" 5; }; }
5771 else
5772 ac_cv_sizeof_short=0
5773 fi
5774 fi
5775
5776 fi
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5778 $as_echo "$ac_cv_sizeof_short" >&6; }
5779
5780
5781
5782 cat >>confdefs.h <<_ACEOF
5783 #define SIZEOF_SHORT $ac_cv_sizeof_short
5784 _ACEOF
5785
5786
5787 # The cast to long int works around a bug in the HP C Compiler
5788 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5789 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5790 # This bug is HP SR number 8606223364.
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5792 $as_echo_n "checking size of int... " >&6; }
5793 if test "${ac_cv_sizeof_int+set}" = set; then :
5794 $as_echo_n "(cached) " >&6
5795 else
5796 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5797
5798 else
5799 if test "$ac_cv_type_int" = yes; then
5800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5802 { as_fn_set_status 77
5803 as_fn_error "cannot compute sizeof (int)
5804 See \`config.log' for more details." "$LINENO" 5; }; }
5805 else
5806 ac_cv_sizeof_int=0
5807 fi
5808 fi
5809
5810 fi
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5812 $as_echo "$ac_cv_sizeof_int" >&6; }
5813
5814
5815
5816 cat >>confdefs.h <<_ACEOF
5817 #define SIZEOF_INT $ac_cv_sizeof_int
5818 _ACEOF
5819
5820
5821 # The cast to long int works around a bug in the HP C Compiler
5822 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5823 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5824 # This bug is HP SR number 8606223364.
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5826 $as_echo_n "checking size of long... " >&6; }
5827 if test "${ac_cv_sizeof_long+set}" = set; then :
5828 $as_echo_n "(cached) " >&6
5829 else
5830 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5831
5832 else
5833 if test "$ac_cv_type_long" = yes; then
5834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5836 { as_fn_set_status 77
5837 as_fn_error "cannot compute sizeof (long)
5838 See \`config.log' for more details." "$LINENO" 5; }; }
5839 else
5840 ac_cv_sizeof_long=0
5841 fi
5842 fi
5843
5844 fi
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5846 $as_echo "$ac_cv_sizeof_long" >&6; }
5847
5848
5849
5850 cat >>confdefs.h <<_ACEOF
5851 #define SIZEOF_LONG $ac_cv_sizeof_long
5852 _ACEOF
5853
5854
5855 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5856 if test "x$ac_cv_type_long_long" = x""yes; then :
5857
5858 cat >>confdefs.h <<_ACEOF
5859 #define HAVE_LONG_LONG 1
5860 _ACEOF
5861
5862 # The cast to long int works around a bug in the HP C Compiler
5863 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5864 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5865 # This bug is HP SR number 8606223364.
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5867 $as_echo_n "checking size of long long... " >&6; }
5868 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5869 $as_echo_n "(cached) " >&6
5870 else
5871 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5872
5873 else
5874 if test "$ac_cv_type_long_long" = yes; then
5875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5877 { as_fn_set_status 77
5878 as_fn_error "cannot compute sizeof (long long)
5879 See \`config.log' for more details." "$LINENO" 5; }; }
5880 else
5881 ac_cv_sizeof_long_long=0
5882 fi
5883 fi
5884
5885 fi
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5887 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5888
5889
5890
5891 cat >>confdefs.h <<_ACEOF
5892 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5893 _ACEOF
5894
5895
5896 fi
5897
5898 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5899 if test "x$ac_cv_type___int64" = x""yes; then :
5900
5901 cat >>confdefs.h <<_ACEOF
5902 #define HAVE___INT64 1
5903 _ACEOF
5904
5905 # The cast to long int works around a bug in the HP C Compiler
5906 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5907 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5908 # This bug is HP SR number 8606223364.
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5910 $as_echo_n "checking size of __int64... " >&6; }
5911 if test "${ac_cv_sizeof___int64+set}" = set; then :
5912 $as_echo_n "(cached) " >&6
5913 else
5914 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5915
5916 else
5917 if test "$ac_cv_type___int64" = yes; then
5918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5920 { as_fn_set_status 77
5921 as_fn_error "cannot compute sizeof (__int64)
5922 See \`config.log' for more details." "$LINENO" 5; }; }
5923 else
5924 ac_cv_sizeof___int64=0
5925 fi
5926 fi
5927
5928 fi
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5930 $as_echo "$ac_cv_sizeof___int64" >&6; }
5931
5932
5933
5934 cat >>confdefs.h <<_ACEOF
5935 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5936 _ACEOF
5937
5938
5939 fi
5940
5941 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5942 case $ac_cv_c_int8_t in #(
5943 no|yes) ;; #(
5944 *)
5945
5946 cat >>confdefs.h <<_ACEOF
5947 #define int8_t $ac_cv_c_int8_t
5948 _ACEOF
5949 ;;
5950 esac
5951
5952 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5953 case $ac_cv_c_int16_t in #(
5954 no|yes) ;; #(
5955 *)
5956
5957 cat >>confdefs.h <<_ACEOF
5958 #define int16_t $ac_cv_c_int16_t
5959 _ACEOF
5960 ;;
5961 esac
5962
5963 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5964 case $ac_cv_c_int32_t in #(
5965 no|yes) ;; #(
5966 *)
5967
5968 cat >>confdefs.h <<_ACEOF
5969 #define int32_t $ac_cv_c_int32_t
5970 _ACEOF
5971 ;;
5972 esac
5973
5974 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5975 case $ac_cv_c_int64_t in #(
5976 no|yes) ;; #(
5977 *)
5978
5979 cat >>confdefs.h <<_ACEOF
5980 #define int64_t $ac_cv_c_int64_t
5981 _ACEOF
5982 ;;
5983 esac
5984
5985
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5987 $as_echo_n "checking for long long int... " >&6; }
5988 if test "${ac_cv_type_long_long_int+set}" = set; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992 /* end confdefs.h. */
5993
5994 /* For now, do not test the preprocessor; as of 2007 there are too many
5995 implementations with broken preprocessors. Perhaps this can
5996 be revisited in 2012. In the meantime, code should not expect
5997 #if to work with literals wider than 32 bits. */
5998 /* Test literals. */
5999 long long int ll = 9223372036854775807ll;
6000 long long int nll = -9223372036854775807LL;
6001 unsigned long long int ull = 18446744073709551615ULL;
6002 /* Test constant expressions. */
6003 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6004 ? 1 : -1)];
6005 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6006 ? 1 : -1)];
6007 int i = 63;
6008 int
6009 main ()
6010 {
6011 /* Test availability of runtime routines for shift and division. */
6012 long long int llmax = 9223372036854775807ll;
6013 unsigned long long int ullmax = 18446744073709551615ull;
6014 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6015 | (llmax / ll) | (llmax % ll)
6016 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6017 | (ullmax / ull) | (ullmax % ull));
6018 ;
6019 return 0;
6020 }
6021
6022 _ACEOF
6023 if ac_fn_c_try_link "$LINENO"; then :
6024 if test "$cross_compiling" = yes; then :
6025 ac_cv_type_long_long_int=yes
6026 else
6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h. */
6029 #include <limits.h>
6030 #ifndef LLONG_MAX
6031 # define HALF \
6032 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6033 # define LLONG_MAX (HALF - 1 + HALF)
6034 #endif
6035 int
6036 main ()
6037 {
6038 long long int n = 1;
6039 int i;
6040 for (i = 0; ; i++)
6041 {
6042 long long int m = n << i;
6043 if (m >> i != n)
6044 return 1;
6045 if (LLONG_MAX / 2 < m)
6046 break;
6047 }
6048 return 0;
6049 ;
6050 return 0;
6051 }
6052 _ACEOF
6053 if ac_fn_c_try_run "$LINENO"; then :
6054 ac_cv_type_long_long_int=yes
6055 else
6056 ac_cv_type_long_long_int=no
6057 fi
6058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6059 conftest.$ac_objext conftest.beam conftest.$ac_ext
6060 fi
6061
6062 else
6063 ac_cv_type_long_long_int=no
6064 fi
6065 rm -f core conftest.err conftest.$ac_objext \
6066 conftest$ac_exeext conftest.$ac_ext
6067 fi
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6069 $as_echo "$ac_cv_type_long_long_int" >&6; }
6070 if test $ac_cv_type_long_long_int = yes; then
6071
6072 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6073
6074 fi
6075
6076
6077
6078 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6079 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6080
6081 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6082
6083 else
6084 test $ac_cv_type_long_long_int = yes \
6085 && ac_type='long long int' \
6086 || ac_type='long int'
6087
6088 cat >>confdefs.h <<_ACEOF
6089 #define intmax_t $ac_type
6090 _ACEOF
6091
6092 fi
6093
6094
6095
6096 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6097 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6098
6099 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6100
6101 else
6102 for ac_type in 'int' 'long int' 'long long int'; do
6103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104 /* end confdefs.h. */
6105 $ac_includes_default
6106 int
6107 main ()
6108 {
6109 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6110 test_array [0] = 0
6111
6112 ;
6113 return 0;
6114 }
6115 _ACEOF
6116 if ac_fn_c_try_compile "$LINENO"; then :
6117
6118 cat >>confdefs.h <<_ACEOF
6119 #define intptr_t $ac_type
6120 _ACEOF
6121
6122 ac_type=
6123 fi
6124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6125 test -z "$ac_type" && break
6126 done
6127 fi
6128
6129
6130 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6131 case $ac_cv_c_uint8_t in #(
6132 no|yes) ;; #(
6133 *)
6134
6135 $as_echo "#define _UINT8_T 1" >>confdefs.h
6136
6137
6138 cat >>confdefs.h <<_ACEOF
6139 #define uint8_t $ac_cv_c_uint8_t
6140 _ACEOF
6141 ;;
6142 esac
6143
6144 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6145 case $ac_cv_c_uint16_t in #(
6146 no|yes) ;; #(
6147 *)
6148
6149
6150 cat >>confdefs.h <<_ACEOF
6151 #define uint16_t $ac_cv_c_uint16_t
6152 _ACEOF
6153 ;;
6154 esac
6155
6156 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6157 case $ac_cv_c_uint32_t in #(
6158 no|yes) ;; #(
6159 *)
6160
6161 $as_echo "#define _UINT32_T 1" >>confdefs.h
6162
6163
6164 cat >>confdefs.h <<_ACEOF
6165 #define uint32_t $ac_cv_c_uint32_t
6166 _ACEOF
6167 ;;
6168 esac
6169
6170 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6171 case $ac_cv_c_uint64_t in #(
6172 no|yes) ;; #(
6173 *)
6174
6175 $as_echo "#define _UINT64_T 1" >>confdefs.h
6176
6177
6178 cat >>confdefs.h <<_ACEOF
6179 #define uint64_t $ac_cv_c_uint64_t
6180 _ACEOF
6181 ;;
6182 esac
6183
6184
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6186 $as_echo_n "checking for unsigned long long int... " >&6; }
6187 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6188 $as_echo_n "(cached) " >&6
6189 else
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6192
6193 /* For now, do not test the preprocessor; as of 2007 there are too many
6194 implementations with broken preprocessors. Perhaps this can
6195 be revisited in 2012. In the meantime, code should not expect
6196 #if to work with literals wider than 32 bits. */
6197 /* Test literals. */
6198 long long int ll = 9223372036854775807ll;
6199 long long int nll = -9223372036854775807LL;
6200 unsigned long long int ull = 18446744073709551615ULL;
6201 /* Test constant expressions. */
6202 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6203 ? 1 : -1)];
6204 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6205 ? 1 : -1)];
6206 int i = 63;
6207 int
6208 main ()
6209 {
6210 /* Test availability of runtime routines for shift and division. */
6211 long long int llmax = 9223372036854775807ll;
6212 unsigned long long int ullmax = 18446744073709551615ull;
6213 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6214 | (llmax / ll) | (llmax % ll)
6215 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6216 | (ullmax / ull) | (ullmax % ull));
6217 ;
6218 return 0;
6219 }
6220
6221 _ACEOF
6222 if ac_fn_c_try_link "$LINENO"; then :
6223 ac_cv_type_unsigned_long_long_int=yes
6224 else
6225 ac_cv_type_unsigned_long_long_int=no
6226 fi
6227 rm -f core conftest.err conftest.$ac_objext \
6228 conftest$ac_exeext conftest.$ac_ext
6229 fi
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6231 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6232 if test $ac_cv_type_unsigned_long_long_int = yes; then
6233
6234 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6235
6236 fi
6237
6238
6239
6240 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6241 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6242
6243 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6244
6245 else
6246 test $ac_cv_type_unsigned_long_long_int = yes \
6247 && ac_type='unsigned long long int' \
6248 || ac_type='unsigned long int'
6249
6250 cat >>confdefs.h <<_ACEOF
6251 #define uintmax_t $ac_type
6252 _ACEOF
6253
6254 fi
6255
6256
6257
6258 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6259 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6260
6261 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6262
6263 else
6264 for ac_type in 'unsigned int' 'unsigned long int' \
6265 'unsigned long long int'; do
6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267 /* end confdefs.h. */
6268 $ac_includes_default
6269 int
6270 main ()
6271 {
6272 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6273 test_array [0] = 0
6274
6275 ;
6276 return 0;
6277 }
6278 _ACEOF
6279 if ac_fn_c_try_compile "$LINENO"; then :
6280
6281 cat >>confdefs.h <<_ACEOF
6282 #define uintptr_t $ac_type
6283 _ACEOF
6284
6285 ac_type=
6286 fi
6287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6288 test -z "$ac_type" && break
6289 done
6290 fi
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306 # ---------------------
6307 # Warnings and checking
6308 # ---------------------
6309
6310 # Check $CC warning features (if it's GCC).
6311 # We want to use -pedantic, but we don't want warnings about
6312 # * 'long long'
6313 # * variadic macros
6314 # * overlong strings
6315 # So, we only use -pedantic if we can disable those warnings.
6316
6317 loose_warn=
6318 save_CFLAGS="$CFLAGS"
6319 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6320 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6321
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6323 $as_echo_n "checking whether $CC supports $option... " >&6; }
6324 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6325 $as_echo_n "(cached) " >&6
6326 else
6327 CFLAGS="$option"
6328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329 /* end confdefs.h. */
6330
6331 int
6332 main ()
6333 {
6334
6335 ;
6336 return 0;
6337 }
6338 _ACEOF
6339 if ac_fn_c_try_compile "$LINENO"; then :
6340 eval "$as_acx_Woption=yes"
6341 else
6342 eval "$as_acx_Woption=no"
6343 fi
6344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6345
6346 fi
6347 eval ac_res=\$$as_acx_Woption
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6349 $as_echo "$ac_res" >&6; }
6350 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6351 loose_warn="$loose_warn${loose_warn:+ }$option"
6352 fi
6353 done
6354 CFLAGS="$save_CFLAGS"
6355
6356 c_loose_warn=
6357 save_CFLAGS="$CFLAGS"
6358 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6359 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6360
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6362 $as_echo_n "checking whether $CC supports $option... " >&6; }
6363 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6364 $as_echo_n "(cached) " >&6
6365 else
6366 CFLAGS="$option"
6367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6368 /* end confdefs.h. */
6369
6370 int
6371 main ()
6372 {
6373
6374 ;
6375 return 0;
6376 }
6377 _ACEOF
6378 if ac_fn_c_try_compile "$LINENO"; then :
6379 eval "$as_acx_Woption=yes"
6380 else
6381 eval "$as_acx_Woption=no"
6382 fi
6383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6384
6385 fi
6386 eval ac_res=\$$as_acx_Woption
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6388 $as_echo "$ac_res" >&6; }
6389 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6390 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6391 fi
6392 done
6393 CFLAGS="$save_CFLAGS"
6394
6395 strict_warn=
6396 save_CFLAGS="$CFLAGS"
6397 for option in -Wmissing-format-attribute; do
6398 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6399
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6401 $as_echo_n "checking whether $CC supports $option... " >&6; }
6402 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6403 $as_echo_n "(cached) " >&6
6404 else
6405 CFLAGS="$option"
6406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h. */
6408
6409 int
6410 main ()
6411 {
6412
6413 ;
6414 return 0;
6415 }
6416 _ACEOF
6417 if ac_fn_c_try_compile "$LINENO"; then :
6418 eval "$as_acx_Woption=yes"
6419 else
6420 eval "$as_acx_Woption=no"
6421 fi
6422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423
6424 fi
6425 eval ac_res=\$$as_acx_Woption
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6427 $as_echo "$ac_res" >&6; }
6428 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6429 strict_warn="$strict_warn${strict_warn:+ }$option"
6430 fi
6431 done
6432 CFLAGS="$save_CFLAGS"
6433
6434 c_strict_warn=
6435 save_CFLAGS="$CFLAGS"
6436 for option in -Wold-style-definition -Wc++-compat; do
6437 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6438
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6440 $as_echo_n "checking whether $CC supports $option... " >&6; }
6441 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6442 $as_echo_n "(cached) " >&6
6443 else
6444 CFLAGS="$option"
6445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6446 /* end confdefs.h. */
6447
6448 int
6449 main ()
6450 {
6451
6452 ;
6453 return 0;
6454 }
6455 _ACEOF
6456 if ac_fn_c_try_compile "$LINENO"; then :
6457 eval "$as_acx_Woption=yes"
6458 else
6459 eval "$as_acx_Woption=no"
6460 fi
6461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6462
6463 fi
6464 eval ac_res=\$$as_acx_Woption
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6466 $as_echo "$ac_res" >&6; }
6467 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6468 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6469 fi
6470 done
6471 CFLAGS="$save_CFLAGS"
6472
6473 if test "$GCC" = yes; then :
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6475 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6476 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6477 $as_echo_n "(cached) " >&6
6478 else
6479 save_CFLAGS="$CFLAGS"
6480 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482 /* end confdefs.h. */
6483
6484 int
6485 main ()
6486 {
6487
6488 ;
6489 return 0;
6490 }
6491 _ACEOF
6492 if ac_fn_c_try_compile "$LINENO"; then :
6493 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6494 else
6495 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6496 fi
6497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6498 CFLAGS="$save_CFLAGS"
6499 fi
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6501 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6502 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6503 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6504 fi
6505
6506 fi
6507
6508 # Check whether --enable-werror-always was given.
6509 if test "${enable_werror_always+set}" = set; then :
6510 enableval=$enable_werror_always;
6511 else
6512 enable_werror_always=no
6513 fi
6514
6515 if test $enable_werror_always = yes; then :
6516 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6517 fi
6518
6519
6520
6521 # The above macros do nothing if the compiler is not GCC. However, the
6522 # Makefile has more goo to add other flags, so these variables are used
6523 # to enable warnings only for GCC.
6524 warn_cflags=
6525 warn_cxxflags=
6526 if test "x$GCC" = "xyes"; then
6527 warn_cflags='$(GCC_WARN_CFLAGS)'
6528 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6529 fi
6530
6531
6532
6533 # Enable expensive internal checks
6534 is_release=
6535 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6536 is_release=yes
6537 fi
6538
6539 # Check whether --enable-checking was given.
6540 if test "${enable_checking+set}" = set; then :
6541 enableval=$enable_checking; ac_checking_flags="${enableval}"
6542 else
6543
6544 # Determine the default checks.
6545 if test x$is_release = x ; then
6546 ac_checking_flags=yes
6547 else
6548 ac_checking_flags=release
6549 fi
6550 fi
6551
6552 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6553 for check in release $ac_checking_flags
6554 do
6555 case $check in
6556 # these set all the flags to specific states
6557 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6558 ac_fold_checking= ; ac_gc_checking=1 ;
6559 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6560 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6561 ac_tree_checking=1 ; ac_valgrind_checking= ;
6562 ac_types_checking=1 ;;
6563 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6564 ac_fold_checking= ; ac_gc_checking= ;
6565 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6566 ac_rtlflag_checking= ; ac_runtime_checking= ;
6567 ac_tree_checking= ; ac_valgrind_checking= ;
6568 ac_types_checking= ;;
6569 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6570 ac_fold_checking=1 ; ac_gc_checking=1 ;
6571 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6572 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6573 ac_tree_checking=1 ; ac_valgrind_checking= ;
6574 ac_types_checking=1 ;;
6575 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6576 ac_fold_checking= ; ac_gc_checking= ;
6577 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6578 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6579 ac_tree_checking= ; ac_valgrind_checking= ;
6580 ac_types_checking= ;;
6581 # these enable particular checks
6582 assert) ac_assert_checking=1 ;;
6583 df) ac_df_checking=1 ;;
6584 fold) ac_fold_checking=1 ;;
6585 gc) ac_gc_checking=1 ;;
6586 gcac) ac_gc_always_collect=1 ;;
6587 gimple) ac_gimple_checking=1 ;;
6588 misc) ac_checking=1 ;;
6589 rtl) ac_rtl_checking=1 ;;
6590 rtlflag) ac_rtlflag_checking=1 ;;
6591 runtime) ac_runtime_checking=1 ;;
6592 tree) ac_tree_checking=1 ;;
6593 types) ac_types_checking=1 ;;
6594 valgrind) ac_valgrind_checking=1 ;;
6595 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6596 esac
6597 done
6598 IFS="$ac_save_IFS"
6599
6600 nocommon_flag=""
6601 if test x$ac_checking != x ; then
6602
6603 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6604
6605 nocommon_flag=-fno-common
6606 fi
6607
6608 if test x$ac_df_checking != x ; then
6609
6610 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6611
6612 fi
6613 if test x$ac_assert_checking != x ; then
6614
6615 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6616
6617 fi
6618 if test x$ac_gimple_checking != x ; then
6619
6620 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6621
6622 fi
6623
6624 if test x$ac_runtime_checking != x ; then
6625
6626 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6627
6628 fi
6629 if test x$ac_tree_checking != x ; then
6630
6631 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6632
6633 TREEBROWSER=tree-browser.o
6634 fi
6635 if test x$ac_types_checking != x ; then
6636
6637 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6638
6639 fi
6640
6641 if test x$ac_rtl_checking != x ; then
6642
6643 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6644
6645 fi
6646 if test x$ac_rtlflag_checking != x ; then
6647
6648 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6649
6650 fi
6651 if test x$ac_gc_checking != x ; then
6652
6653 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6654
6655 fi
6656 if test x$ac_gc_always_collect != x ; then
6657
6658 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6659
6660 fi
6661 if test x$ac_fold_checking != x ; then
6662
6663 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6664
6665 fi
6666 valgrind_path_defines=
6667 valgrind_command=
6668
6669 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6670 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6671 have_valgrind_h=yes
6672 else
6673 have_valgrind_h=no
6674 fi
6675
6676
6677
6678 if test x$ac_valgrind_checking != x ; then
6679 # It is certainly possible that there's valgrind but no valgrind.h.
6680 # GCC relies on making annotations so we must have both.
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6682 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h. */
6685 #include <valgrind/memcheck.h>
6686 #ifndef VALGRIND_DISCARD
6687 #error VALGRIND_DISCARD not defined
6688 #endif
6689 _ACEOF
6690 if ac_fn_c_try_cpp "$LINENO"; then :
6691 gcc_cv_header_valgrind_memcheck_h=yes
6692 else
6693 gcc_cv_header_valgrind_memcheck_h=no
6694 fi
6695 rm -f conftest.err conftest.$ac_ext
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6697 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6699 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701 /* end confdefs.h. */
6702 #include <memcheck.h>
6703 #ifndef VALGRIND_DISCARD
6704 #error VALGRIND_DISCARD not defined
6705 #endif
6706 _ACEOF
6707 if ac_fn_c_try_cpp "$LINENO"; then :
6708 gcc_cv_header_memcheck_h=yes
6709 else
6710 gcc_cv_header_memcheck_h=no
6711 fi
6712 rm -f conftest.err conftest.$ac_ext
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6714 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6715
6716 # Prepare PATH_SEPARATOR.
6717 # The user is always right.
6718 if test "${PATH_SEPARATOR+set}" != set; then
6719 echo "#! /bin/sh" >conf$$.sh
6720 echo "exit 0" >>conf$$.sh
6721 chmod +x conf$$.sh
6722 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6723 PATH_SEPARATOR=';'
6724 else
6725 PATH_SEPARATOR=:
6726 fi
6727 rm -f conf$$.sh
6728 fi
6729
6730 # Find out how to test for executable files. Don't use a zero-byte file,
6731 # as systems may use methods other than mode bits to determine executability.
6732 cat >conf$$.file <<_ASEOF
6733 #! /bin/sh
6734 exit 0
6735 _ASEOF
6736 chmod +x conf$$.file
6737 if test -x conf$$.file >/dev/null 2>&1; then
6738 ac_executable_p="test -x"
6739 else
6740 ac_executable_p="test -f"
6741 fi
6742 rm -f conf$$.file
6743
6744 # Extract the first word of "valgrind", so it can be a program name with args.
6745 set dummy valgrind; ac_word=$2
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6747 $as_echo_n "checking for $ac_word... " >&6; }
6748 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6749 $as_echo_n "(cached) " >&6
6750 else
6751 case "$valgrind_path" in
6752 [\\/]* | ?:[\\/]*)
6753 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6754 ;;
6755 *)
6756 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6757 for ac_dir in $PATH; do
6758 IFS="$ac_save_IFS"
6759 test -z "$ac_dir" && ac_dir=.
6760 for ac_exec_ext in '' $ac_executable_extensions; do
6761 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6762 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6763 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6764 break 2
6765 fi
6766 fi
6767 done
6768 done
6769 IFS="$ac_save_IFS"
6770 ;;
6771 esac
6772 fi
6773 valgrind_path="$ac_cv_path_valgrind_path"
6774 if test -n "$valgrind_path"; then
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6776 $as_echo "$valgrind_path" >&6; }
6777 else
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6779 $as_echo "no" >&6; }
6780 fi
6781
6782 if test "x$valgrind_path" = "x" \
6783 || (test $have_valgrind_h = no \
6784 && test $gcc_cv_header_memcheck_h = no \
6785 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6786 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6787 fi
6788 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6789 valgrind_command="$valgrind_path -q"
6790
6791 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6792
6793 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6794
6795 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6796
6797 fi
6798 if test $gcc_cv_header_memcheck_h = yes; then
6799
6800 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6801
6802 fi
6803 fi
6804
6805
6806
6807 # Enable code coverage collection
6808 # Check whether --enable-coverage was given.
6809 if test "${enable_coverage+set}" = set; then :
6810 enableval=$enable_coverage; case "${enableval}" in
6811 yes|noopt)
6812 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6813 ;;
6814 opt)
6815 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6816 ;;
6817 no)
6818 # a.k.a. --disable-coverage
6819 coverage_flags=""
6820 ;;
6821 *)
6822 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6823 ;;
6824 esac
6825 else
6826 coverage_flags=""
6827 fi
6828
6829
6830
6831 # Check whether --enable-gather-detailed-mem-stats was given.
6832 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6833 enableval=$enable_gather_detailed_mem_stats;
6834 else
6835 enable_gather_detailed_mem_stats=no
6836 fi
6837
6838 if test x$enable_gather_detailed_mem_stats = xyes ; then
6839
6840 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6841
6842 fi
6843
6844 # -------------------------------
6845 # Miscenalleous configure options
6846 # -------------------------------
6847
6848 # See if we are building gcc with C++.
6849 # Check whether --enable-build-with-cxx was given.
6850 if test "${enable_build_with_cxx+set}" = set; then :
6851 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6852 else
6853 ENABLE_BUILD_WITH_CXX=no
6854 fi
6855
6856
6857 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6858
6859 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6860
6861 fi
6862
6863 # With stabs
6864
6865 # Check whether --with-stabs was given.
6866 if test "${with_stabs+set}" = set; then :
6867 withval=$with_stabs; stabs="$with_stabs"
6868 else
6869 stabs=no
6870 fi
6871
6872
6873 # Determine whether or not multilibs are enabled.
6874 # Check whether --enable-multilib was given.
6875 if test "${enable_multilib+set}" = set; then :
6876 enableval=$enable_multilib;
6877 else
6878 enable_multilib=yes
6879 fi
6880
6881
6882
6883 # Enable __cxa_atexit for C++.
6884 # Check whether --enable-__cxa_atexit was given.
6885 if test "${enable___cxa_atexit+set}" = set; then :
6886 enableval=$enable___cxa_atexit;
6887 fi
6888
6889
6890 # Enable C extension for decimal float if target supports it.
6891
6892 # Check whether --enable-decimal-float was given.
6893 if test "${enable_decimal_float+set}" = set; then :
6894 enableval=$enable_decimal_float;
6895 case $enable_decimal_float in
6896 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6897 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6898 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6899 esac
6900
6901 else
6902
6903 case $target in
6904 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6905 i?86*-*-mingw* | x86_64*-*-mingw* | \
6906 i?86*-*-cygwin*)
6907 enable_decimal_float=yes
6908 ;;
6909 *)
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6911 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6912 enable_decimal_float=no
6913 ;;
6914 esac
6915
6916 fi
6917
6918
6919 # x86's use BID format instead of DPD
6920 case x$enable_decimal_float in
6921 xyes)
6922 case $target in
6923 i?86*-*-* | x86_64*-*-*)
6924 enable_decimal_float=bid
6925 ;;
6926 *)
6927 enable_decimal_float=dpd
6928 ;;
6929 esac
6930 default_decimal_float=$enable_decimal_float
6931 ;;
6932 xno)
6933 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6934 # dependency on libdecnumber.
6935 default_decimal_float=dpd
6936 ;;
6937 esac
6938
6939
6940
6941
6942 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6943
6944 cat >>confdefs.h <<_ACEOF
6945 #define ENABLE_DECIMAL_FLOAT $dfp
6946 _ACEOF
6947
6948
6949 # Use default_decimal_float for dependency.
6950 enable_decimal_float=$default_decimal_float
6951
6952 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6953
6954 cat >>confdefs.h <<_ACEOF
6955 #define ENABLE_DECIMAL_BID_FORMAT $bid
6956 _ACEOF
6957
6958
6959 # Enable C extension for fixed-point arithmetic.
6960 # Check whether --enable-fixed-point was given.
6961 if test "${enable_fixed_point+set}" = set; then :
6962 enableval=$enable_fixed_point;
6963 else
6964
6965 case $target in
6966 arm*)
6967 enable_fixed_point=yes
6968 ;;
6969
6970 mips*-*-*)
6971 case $host in
6972 mips*-sgi-irix*)
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
6974 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
6975 enable_fixed_point=no
6976 ;;
6977 *)
6978 enable_fixed_point=yes
6979 ;;
6980 esac
6981 ;;
6982 *)
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
6984 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
6985 enable_fixed_point=no
6986 ;;
6987 esac
6988
6989 fi
6990
6991
6992
6993 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6994
6995 cat >>confdefs.h <<_ACEOF
6996 #define ENABLE_FIXED_POINT $fixedpoint
6997 _ACEOF
6998
6999
7000 # Enable threads
7001 # Pass with no value to take the default
7002 # Pass with a value to specify a thread package
7003 # Check whether --enable-threads was given.
7004 if test "${enable_threads+set}" = set; then :
7005 enableval=$enable_threads;
7006 else
7007 enable_threads=''
7008 fi
7009
7010
7011 # Check whether --enable-tls was given.
7012 if test "${enable_tls+set}" = set; then :
7013 enableval=$enable_tls;
7014 case $enable_tls in
7015 yes | no) ;;
7016 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7017 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7018 esac
7019
7020 else
7021 enable_tls=''
7022 fi
7023
7024
7025 # Check whether --enable-objc-gc was given.
7026 if test "${enable_objc_gc+set}" = set; then :
7027 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7028 objc_boehm_gc=''
7029 else
7030 objc_boehm_gc=1
7031 fi
7032 else
7033 objc_boehm_gc=''
7034 fi
7035
7036
7037
7038 # Check whether --with-dwarf2 was given.
7039 if test "${with_dwarf2+set}" = set; then :
7040 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7041 else
7042 dwarf2=no
7043 fi
7044
7045
7046 # Check whether --enable-shared was given.
7047 if test "${enable_shared+set}" = set; then :
7048 enableval=$enable_shared;
7049 case $enable_shared in
7050 yes | no) ;;
7051 *)
7052 enable_shared=no
7053 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7054 for pkg in $enableval; do
7055 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7056 enable_shared=yes
7057 fi
7058 done
7059 IFS="$ac_save_ifs"
7060 ;;
7061 esac
7062
7063 else
7064 enable_shared=yes
7065 fi
7066
7067
7068
7069
7070 # Check whether --with-build-sysroot was given.
7071 if test "${with_build_sysroot+set}" = set; then :
7072 withval=$with_build_sysroot;
7073 fi
7074
7075
7076
7077 # Check whether --with-sysroot was given.
7078 if test "${with_sysroot+set}" = set; then :
7079 withval=$with_sysroot;
7080 case ${with_sysroot} in
7081 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7082 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7083 esac
7084
7085 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7086 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7087
7088 if test "x$prefix" = xNONE; then
7089 test_prefix=/usr/local
7090 else
7091 test_prefix=$prefix
7092 fi
7093 if test "x$exec_prefix" = xNONE; then
7094 test_exec_prefix=$test_prefix
7095 else
7096 test_exec_prefix=$exec_prefix
7097 fi
7098 case ${TARGET_SYSTEM_ROOT} in
7099 "${test_prefix}"|"${test_prefix}/"*|\
7100 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7101 '${prefix}'|'${prefix}/'*|\
7102 '${exec_prefix}'|'${exec_prefix}/'*)
7103 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7104 TARGET_SYSTEM_ROOT_DEFINE="$t"
7105 ;;
7106 esac
7107
7108 else
7109
7110 TARGET_SYSTEM_ROOT=
7111 TARGET_SYSTEM_ROOT_DEFINE=
7112 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7113
7114 fi
7115
7116
7117
7118
7119
7120
7121 # Check whether --with-specs was given.
7122 if test "${with_specs+set}" = set; then :
7123 withval=$with_specs; CONFIGURE_SPECS=$withval
7124 else
7125 CONFIGURE_SPECS=
7126
7127 fi
7128
7129
7130
7131
7132
7133 # Check whether --with-pkgversion was given.
7134 if test "${with_pkgversion+set}" = set; then :
7135 withval=$with_pkgversion; case "$withval" in
7136 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7137 no) PKGVERSION= ;;
7138 *) PKGVERSION="($withval) " ;;
7139 esac
7140 else
7141 PKGVERSION="(GCC) "
7142
7143 fi
7144
7145
7146
7147
7148
7149 # Check whether --with-bugurl was given.
7150 if test "${with_bugurl+set}" = set; then :
7151 withval=$with_bugurl; case "$withval" in
7152 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7153 no) BUGURL=
7154 ;;
7155 *) BUGURL="$withval"
7156 ;;
7157 esac
7158 else
7159 BUGURL="http://gcc.gnu.org/bugs.html"
7160
7161 fi
7162
7163 case ${BUGURL} in
7164 "")
7165 REPORT_BUGS_TO=
7166 REPORT_BUGS_TEXI=
7167 ;;
7168 *)
7169 REPORT_BUGS_TO="<$BUGURL>"
7170 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7171 ;;
7172 esac;
7173
7174
7175
7176
7177 # Sanity check enable_languages in case someone does not run the toplevel
7178 # configure # script.
7179 # Check whether --enable-languages was given.
7180 if test "${enable_languages+set}" = set; then :
7181 enableval=$enable_languages; case ,${enable_languages}, in
7182 ,,|,yes,)
7183 # go safe -- we cannot be much sure without the toplevel
7184 # configure's
7185 # analysis of which target libs are present and usable
7186 enable_languages=c
7187 ;;
7188 *,all,*)
7189 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7190 ;;
7191 *,c,*)
7192 ;;
7193 *)
7194 enable_languages=c,${enable_languages}
7195 ;;
7196 esac
7197 else
7198 enable_languages=c
7199 fi
7200
7201
7202
7203 # Check whether --with-multilib-list was given.
7204 if test "${with_multilib_list+set}" = set; then :
7205 withval=$with_multilib_list; :
7206 else
7207 with_multilib_list=default
7208 fi
7209
7210
7211 # -------------------------
7212 # Checks for other programs
7213 # -------------------------
7214
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7216 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7217 set x ${MAKE-make}
7218 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7219 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7220 $as_echo_n "(cached) " >&6
7221 else
7222 cat >conftest.make <<\_ACEOF
7223 SHELL = /bin/sh
7224 all:
7225 @echo '@@@%%%=$(MAKE)=@@@%%%'
7226 _ACEOF
7227 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7228 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7229 *@@@%%%=?*=@@@%%%*)
7230 eval ac_cv_prog_make_${ac_make}_set=yes;;
7231 *)
7232 eval ac_cv_prog_make_${ac_make}_set=no;;
7233 esac
7234 rm -f conftest.make
7235 fi
7236 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7238 $as_echo "yes" >&6; }
7239 SET_MAKE=
7240 else
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7242 $as_echo "no" >&6; }
7243 SET_MAKE="MAKE=${MAKE-make}"
7244 fi
7245
7246
7247 # Find some useful tools
7248 for ac_prog in gawk mawk nawk awk
7249 do
7250 # Extract the first word of "$ac_prog", so it can be a program name with args.
7251 set dummy $ac_prog; ac_word=$2
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7253 $as_echo_n "checking for $ac_word... " >&6; }
7254 if test "${ac_cv_prog_AWK+set}" = set; then :
7255 $as_echo_n "(cached) " >&6
7256 else
7257 if test -n "$AWK"; then
7258 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7259 else
7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 for as_dir in $PATH
7262 do
7263 IFS=$as_save_IFS
7264 test -z "$as_dir" && as_dir=.
7265 for ac_exec_ext in '' $ac_executable_extensions; do
7266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7267 ac_cv_prog_AWK="$ac_prog"
7268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7269 break 2
7270 fi
7271 done
7272 done
7273 IFS=$as_save_IFS
7274
7275 fi
7276 fi
7277 AWK=$ac_cv_prog_AWK
7278 if test -n "$AWK"; then
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7280 $as_echo "$AWK" >&6; }
7281 else
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283 $as_echo "no" >&6; }
7284 fi
7285
7286
7287 test -n "$AWK" && break
7288 done
7289
7290 # We need awk to create options.c and options.h.
7291 # Bail out if it's missing.
7292 case ${AWK} in
7293 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7294 esac
7295
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7297 $as_echo_n "checking whether ln -s works... " >&6; }
7298 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7299 $as_echo_n "(cached) " >&6
7300 else
7301 rm -f conftestdata_t
7302 echo >conftestdata_f
7303 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7304 then
7305 gcc_cv_prog_LN_S="ln -s"
7306 else
7307 if ln conftestdata_f conftestdata_t 2>/dev/null
7308 then
7309 gcc_cv_prog_LN_S=ln
7310 else
7311 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7312 then
7313 gcc_cv_prog_LN_S="cp -p"
7314 else
7315 gcc_cv_prog_LN_S=cp
7316 fi
7317 fi
7318 fi
7319 rm -f conftestdata_f conftestdata_t
7320
7321 fi
7322 LN_S="$gcc_cv_prog_LN_S"
7323 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7325 $as_echo "yes" >&6; }
7326 else
7327 if test "$gcc_cv_prog_LN_S" = "ln"; then
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7329 $as_echo "no, using ln" >&6; }
7330 else
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7332 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7333 fi
7334 fi
7335
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7337 $as_echo_n "checking whether ln works... " >&6; }
7338 if test "${acx_cv_prog_LN+set}" = set; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7341 rm -f conftestdata_t
7342 echo >conftestdata_f
7343 if ln conftestdata_f conftestdata_t 2>/dev/null
7344 then
7345 acx_cv_prog_LN=ln
7346 else
7347 acx_cv_prog_LN=no
7348 fi
7349 rm -f conftestdata_f conftestdata_t
7350
7351 fi
7352 if test $acx_cv_prog_LN = no; then
7353 LN="$LN_S"
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7355 $as_echo "no, using $LN" >&6; }
7356 else
7357 LN="$acx_cv_prog_LN"
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7359 $as_echo "yes" >&6; }
7360 fi
7361
7362 if test -n "$ac_tool_prefix"; then
7363 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7364 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7366 $as_echo_n "checking for $ac_word... " >&6; }
7367 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7368 $as_echo_n "(cached) " >&6
7369 else
7370 if test -n "$RANLIB"; then
7371 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7372 else
7373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374 for as_dir in $PATH
7375 do
7376 IFS=$as_save_IFS
7377 test -z "$as_dir" && as_dir=.
7378 for ac_exec_ext in '' $ac_executable_extensions; do
7379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7380 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7382 break 2
7383 fi
7384 done
7385 done
7386 IFS=$as_save_IFS
7387
7388 fi
7389 fi
7390 RANLIB=$ac_cv_prog_RANLIB
7391 if test -n "$RANLIB"; then
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7393 $as_echo "$RANLIB" >&6; }
7394 else
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7396 $as_echo "no" >&6; }
7397 fi
7398
7399
7400 fi
7401 if test -z "$ac_cv_prog_RANLIB"; then
7402 ac_ct_RANLIB=$RANLIB
7403 # Extract the first word of "ranlib", so it can be a program name with args.
7404 set dummy ranlib; ac_word=$2
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7406 $as_echo_n "checking for $ac_word... " >&6; }
7407 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7408 $as_echo_n "(cached) " >&6
7409 else
7410 if test -n "$ac_ct_RANLIB"; then
7411 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7412 else
7413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414 for as_dir in $PATH
7415 do
7416 IFS=$as_save_IFS
7417 test -z "$as_dir" && as_dir=.
7418 for ac_exec_ext in '' $ac_executable_extensions; do
7419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7420 ac_cv_prog_ac_ct_RANLIB="ranlib"
7421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7422 break 2
7423 fi
7424 done
7425 done
7426 IFS=$as_save_IFS
7427
7428 fi
7429 fi
7430 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7431 if test -n "$ac_ct_RANLIB"; then
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7433 $as_echo "$ac_ct_RANLIB" >&6; }
7434 else
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436 $as_echo "no" >&6; }
7437 fi
7438
7439 if test "x$ac_ct_RANLIB" = x; then
7440 RANLIB=":"
7441 else
7442 case $cross_compiling:$ac_tool_warned in
7443 yes:)
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7446 ac_tool_warned=yes ;;
7447 esac
7448 RANLIB=$ac_ct_RANLIB
7449 fi
7450 else
7451 RANLIB="$ac_cv_prog_RANLIB"
7452 fi
7453
7454 case "${host}" in
7455 *-*-darwin*)
7456 # By default, the Darwin ranlib will not treat common symbols as
7457 # definitions when building the archive table of contents. Other
7458 # ranlibs do that; pass an option to the Darwin ranlib that makes
7459 # it behave similarly.
7460 ranlib_flags="-c"
7461 ;;
7462 *)
7463 ranlib_flags=""
7464 esac
7465
7466
7467 # Find a good install program. We prefer a C program (faster),
7468 # so one script is as good as another. But avoid the broken or
7469 # incompatible versions:
7470 # SysV /etc/install, /usr/sbin/install
7471 # SunOS /usr/etc/install
7472 # IRIX /sbin/install
7473 # AIX /bin/install
7474 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7475 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7476 # ./install, which can be erroneously created by make from ./install.sh.
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7478 $as_echo_n "checking for a BSD compatible install... " >&6; }
7479 if test -z "$INSTALL"; then
7480 if test "${ac_cv_path_install+set}" = set; then :
7481 $as_echo_n "(cached) " >&6
7482 else
7483 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7484 for ac_dir in $PATH; do
7485 # Account for people who put trailing slashes in PATH elements.
7486 case "$ac_dir/" in
7487 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7488 *)
7489 # OSF1 and SCO ODT 3.0 have their own names for install.
7490 for ac_prog in ginstall scoinst install; do
7491 if test -f $ac_dir/$ac_prog; then
7492 if test $ac_prog = install &&
7493 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7494 # AIX install. It has an incompatible calling convention.
7495 # OSF/1 installbsd also uses dspmsg, but is usable.
7496 :
7497 else
7498 ac_cv_path_install="$ac_dir/$ac_prog -c"
7499 break 2
7500 fi
7501 fi
7502 done
7503 ;;
7504 esac
7505 done
7506 IFS="$ac_save_IFS"
7507
7508 fi
7509 if test "${ac_cv_path_install+set}" = set; then
7510 INSTALL="$ac_cv_path_install"
7511 else
7512 # As a last resort, use the slow shell script. We don't cache a
7513 # path for INSTALL within a source directory, because that will
7514 # break other packages using the cache if that directory is
7515 # removed, or if the path is relative.
7516 INSTALL="$ac_install_sh"
7517 fi
7518 fi
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7520 $as_echo "$INSTALL" >&6; }
7521
7522 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7523 # It thinks the first close brace ends the variable substitution.
7524 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7525
7526 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7527
7528
7529 # See if cmp has --ignore-initial.
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7531 $as_echo_n "checking for cmp's capabilities... " >&6; }
7532 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7533 $as_echo_n "(cached) " >&6
7534 else
7535 echo abfoo >t1
7536 echo cdfoo >t2
7537 gcc_cv_prog_cmp_skip=slowcompare
7538 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7539 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7540 :
7541 else
7542 gcc_cv_prog_cmp_skip=gnucompare
7543 fi
7544 fi
7545 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7546 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7547 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7548 :
7549 else
7550 gcc_cv_prog_cmp_skip=fastcompare
7551 fi
7552 fi
7553 fi
7554 rm t1 t2
7555
7556 fi
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7558 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7559 make_compare_target=$gcc_cv_prog_cmp_skip
7560
7561
7562
7563 # See if we have the mktemp command.
7564 # Extract the first word of "mktemp", so it can be a program name with args.
7565 set dummy mktemp; ac_word=$2
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7567 $as_echo_n "checking for $ac_word... " >&6; }
7568 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7569 $as_echo_n "(cached) " >&6
7570 else
7571 if test -n "$have_mktemp_command"; then
7572 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7573 else
7574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7575 for as_dir in $PATH
7576 do
7577 IFS=$as_save_IFS
7578 test -z "$as_dir" && as_dir=.
7579 for ac_exec_ext in '' $ac_executable_extensions; do
7580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7581 ac_cv_prog_have_mktemp_command="yes"
7582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7583 break 2
7584 fi
7585 done
7586 done
7587 IFS=$as_save_IFS
7588
7589 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7590 fi
7591 fi
7592 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7593 if test -n "$have_mktemp_command"; then
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7595 $as_echo "$have_mktemp_command" >&6; }
7596 else
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598 $as_echo "no" >&6; }
7599 fi
7600
7601
7602
7603 # See if makeinfo has been installed and is modern enough
7604 # that we can use it.
7605
7606 # Extract the first word of "makeinfo", so it can be a program name with args.
7607 set dummy makeinfo; ac_word=$2
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609 $as_echo_n "checking for $ac_word... " >&6; }
7610 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7611 $as_echo_n "(cached) " >&6
7612 else
7613 if test -n "$MAKEINFO"; then
7614 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7615 else
7616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617 for as_dir in $PATH
7618 do
7619 IFS=$as_save_IFS
7620 test -z "$as_dir" && as_dir=.
7621 for ac_exec_ext in '' $ac_executable_extensions; do
7622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7623 ac_cv_prog_MAKEINFO="makeinfo"
7624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7625 break 2
7626 fi
7627 done
7628 done
7629 IFS=$as_save_IFS
7630
7631 fi
7632 fi
7633 MAKEINFO=$ac_cv_prog_MAKEINFO
7634 if test -n "$MAKEINFO"; then
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7636 $as_echo "$MAKEINFO" >&6; }
7637 else
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639 $as_echo "no" >&6; }
7640 fi
7641
7642
7643 if test -n "$MAKEINFO"; then
7644 # Found it, now check the version.
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7646 $as_echo_n "checking for modern makeinfo... " >&6; }
7647 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7648 $as_echo_n "(cached) " >&6
7649 else
7650 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7651 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7652
7653 case $ac_prog_version in
7654 '') gcc_cv_prog_makeinfo_modern=no;;
7655 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7656 *) gcc_cv_prog_makeinfo_modern=no;;
7657 esac
7658
7659 fi
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7661 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7662 else
7663 gcc_cv_prog_makeinfo_modern=no
7664 fi
7665 if test $gcc_cv_prog_makeinfo_modern = no; then
7666 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7667 fi
7668
7669 if test $gcc_cv_prog_makeinfo_modern = no; then
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7671 *** Makeinfo is missing or too old.
7672 *** Info documentation will not be built." >&5
7673 $as_echo "$as_me: WARNING:
7674 *** Makeinfo is missing or too old.
7675 *** Info documentation will not be built." >&2;}
7676 BUILD_INFO=
7677 else
7678 BUILD_INFO=info
7679 fi
7680
7681
7682 # Is pod2man recent enough to regenerate manpages?
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7684 $as_echo_n "checking for recent Pod::Man... " >&6; }
7685 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7687 $as_echo "yes" >&6; }
7688 GENERATED_MANPAGES=generated-manpages
7689 else
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691 $as_echo "no" >&6; }
7692 GENERATED_MANPAGES=
7693 fi
7694
7695
7696 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7697
7698 # How about lex?
7699 for ac_prog in flex
7700 do
7701 # Extract the first word of "$ac_prog", so it can be a program name with args.
7702 set dummy $ac_prog; 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_FLEX+set}" = set; then :
7706 $as_echo_n "(cached) " >&6
7707 else
7708 if test -n "$FLEX"; then
7709 ac_cv_prog_FLEX="$FLEX" # 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_FLEX="$ac_prog"
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 fi
7727 fi
7728 FLEX=$ac_cv_prog_FLEX
7729 if test -n "$FLEX"; then
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7731 $as_echo "$FLEX" >&6; }
7732 else
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7734 $as_echo "no" >&6; }
7735 fi
7736
7737
7738 test -n "$FLEX" && break
7739 done
7740 test -n "$FLEX" || FLEX="$MISSING flex"
7741
7742
7743 # Bison?
7744 for ac_prog in bison
7745 do
7746 # Extract the first word of "$ac_prog", so it can be a program name with args.
7747 set dummy $ac_prog; ac_word=$2
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7749 $as_echo_n "checking for $ac_word... " >&6; }
7750 if test "${ac_cv_prog_BISON+set}" = set; then :
7751 $as_echo_n "(cached) " >&6
7752 else
7753 if test -n "$BISON"; then
7754 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7755 else
7756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757 for as_dir in $PATH
7758 do
7759 IFS=$as_save_IFS
7760 test -z "$as_dir" && as_dir=.
7761 for ac_exec_ext in '' $ac_executable_extensions; do
7762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7763 ac_cv_prog_BISON="$ac_prog"
7764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7765 break 2
7766 fi
7767 done
7768 done
7769 IFS=$as_save_IFS
7770
7771 fi
7772 fi
7773 BISON=$ac_cv_prog_BISON
7774 if test -n "$BISON"; then
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7776 $as_echo "$BISON" >&6; }
7777 else
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7779 $as_echo "no" >&6; }
7780 fi
7781
7782
7783 test -n "$BISON" && break
7784 done
7785 test -n "$BISON" || BISON="$MISSING bison"
7786
7787
7788 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7789 # check for build == host before using them.
7790
7791 # NM
7792 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7793 && test -d ../binutils ; then
7794 NM='${objdir}/../binutils/nm-new'
7795 else
7796 # Extract the first word of "nm", so it can be a program name with args.
7797 set dummy nm; ac_word=$2
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7799 $as_echo_n "checking for $ac_word... " >&6; }
7800 if test "${ac_cv_prog_NM+set}" = set; then :
7801 $as_echo_n "(cached) " >&6
7802 else
7803 if test -n "$NM"; then
7804 ac_cv_prog_NM="$NM" # Let the user override the test.
7805 else
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 for as_dir in $PATH
7808 do
7809 IFS=$as_save_IFS
7810 test -z "$as_dir" && as_dir=.
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7813 ac_cv_prog_NM="nm"
7814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7815 break 2
7816 fi
7817 done
7818 done
7819 IFS=$as_save_IFS
7820
7821 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7822 fi
7823 fi
7824 NM=$ac_cv_prog_NM
7825 if test -n "$NM"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7827 $as_echo "$NM" >&6; }
7828 else
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7831 fi
7832
7833
7834 fi
7835
7836 # AR
7837 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7838 && test -d ../binutils ; then
7839 AR='${objdir}/../binutils/ar'
7840 else
7841 # Extract the first word of "ar", so it can be a program name with args.
7842 set dummy ar; ac_word=$2
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844 $as_echo_n "checking for $ac_word... " >&6; }
7845 if test "${ac_cv_prog_AR+set}" = set; then :
7846 $as_echo_n "(cached) " >&6
7847 else
7848 if test -n "$AR"; then
7849 ac_cv_prog_AR="$AR" # Let the user override the test.
7850 else
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 for as_dir in $PATH
7853 do
7854 IFS=$as_save_IFS
7855 test -z "$as_dir" && as_dir=.
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7858 ac_cv_prog_AR="ar"
7859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7860 break 2
7861 fi
7862 done
7863 done
7864 IFS=$as_save_IFS
7865
7866 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7867 fi
7868 fi
7869 AR=$ac_cv_prog_AR
7870 if test -n "$AR"; then
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7872 $as_echo "$AR" >&6; }
7873 else
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875 $as_echo "no" >&6; }
7876 fi
7877
7878
7879 fi
7880
7881
7882 # --------------------
7883 # Checks for C headers
7884 # --------------------
7885
7886 # Need to reject headers which give warnings, so that the -Werror bootstrap
7887 # works later. *sigh* This needs to come before all header checks.
7888
7889 ac_c_preproc_warn_flag=yes
7890
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7892 $as_echo_n "checking for ANSI C header files... " >&6; }
7893 if test "${ac_cv_header_stdc+set}" = set; then :
7894 $as_echo_n "(cached) " >&6
7895 else
7896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897 /* end confdefs.h. */
7898 #include <stdlib.h>
7899 #include <stdarg.h>
7900 #include <string.h>
7901 #include <float.h>
7902
7903 int
7904 main ()
7905 {
7906
7907 ;
7908 return 0;
7909 }
7910 _ACEOF
7911 if ac_fn_c_try_compile "$LINENO"; then :
7912 ac_cv_header_stdc=yes
7913 else
7914 ac_cv_header_stdc=no
7915 fi
7916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7917
7918 if test $ac_cv_header_stdc = yes; then
7919 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7921 /* end confdefs.h. */
7922 #include <string.h>
7923
7924 _ACEOF
7925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7926 $EGREP "memchr" >/dev/null 2>&1; then :
7927
7928 else
7929 ac_cv_header_stdc=no
7930 fi
7931 rm -f conftest*
7932
7933 fi
7934
7935 if test $ac_cv_header_stdc = yes; then
7936 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938 /* end confdefs.h. */
7939 #include <stdlib.h>
7940
7941 _ACEOF
7942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7943 $EGREP "free" >/dev/null 2>&1; then :
7944
7945 else
7946 ac_cv_header_stdc=no
7947 fi
7948 rm -f conftest*
7949
7950 fi
7951
7952 if test $ac_cv_header_stdc = yes; then
7953 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7954 if test "$cross_compiling" = yes; then :
7955 :
7956 else
7957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958 /* end confdefs.h. */
7959 #include <ctype.h>
7960 #include <stdlib.h>
7961 #if ((' ' & 0x0FF) == 0x020)
7962 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7963 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7964 #else
7965 # define ISLOWER(c) \
7966 (('a' <= (c) && (c) <= 'i') \
7967 || ('j' <= (c) && (c) <= 'r') \
7968 || ('s' <= (c) && (c) <= 'z'))
7969 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7970 #endif
7971
7972 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7973 int
7974 main ()
7975 {
7976 int i;
7977 for (i = 0; i < 256; i++)
7978 if (XOR (islower (i), ISLOWER (i))
7979 || toupper (i) != TOUPPER (i))
7980 return 2;
7981 return 0;
7982 }
7983 _ACEOF
7984 if ac_fn_c_try_run "$LINENO"; then :
7985
7986 else
7987 ac_cv_header_stdc=no
7988 fi
7989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7990 conftest.$ac_objext conftest.beam conftest.$ac_ext
7991 fi
7992
7993 fi
7994 fi
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7996 $as_echo "$ac_cv_header_stdc" >&6; }
7997 if test $ac_cv_header_stdc = yes; then
7998
7999 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8000
8001 fi
8002
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8004 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8005 if test "${ac_cv_header_time+set}" = set; then :
8006 $as_echo_n "(cached) " >&6
8007 else
8008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8009 /* end confdefs.h. */
8010 #include <sys/types.h>
8011 #include <sys/time.h>
8012 #include <time.h>
8013
8014 int
8015 main ()
8016 {
8017 if ((struct tm *) 0)
8018 return 0;
8019 ;
8020 return 0;
8021 }
8022 _ACEOF
8023 if ac_fn_c_try_compile "$LINENO"; then :
8024 ac_cv_header_time=yes
8025 else
8026 ac_cv_header_time=no
8027 fi
8028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8029 fi
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8031 $as_echo "$ac_cv_header_time" >&6; }
8032 if test $ac_cv_header_time = yes; then
8033
8034 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8035
8036 fi
8037
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8039 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8040 if test "${gcc_cv_header_string+set}" = set; then :
8041 $as_echo_n "(cached) " >&6
8042 else
8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044 /* end confdefs.h. */
8045 #include <string.h>
8046 #include <strings.h>
8047 int
8048 main ()
8049 {
8050
8051 ;
8052 return 0;
8053 }
8054 _ACEOF
8055 if ac_fn_c_try_compile "$LINENO"; then :
8056 gcc_cv_header_string=yes
8057 else
8058 gcc_cv_header_string=no
8059 fi
8060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8061 fi
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8063 $as_echo "$gcc_cv_header_string" >&6; }
8064 if test $gcc_cv_header_string = yes; then
8065
8066 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8067
8068 fi
8069
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8071 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8072 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8073 $as_echo_n "(cached) " >&6
8074 else
8075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8076 /* end confdefs.h. */
8077 #include <sys/types.h>
8078 #include <sys/wait.h>
8079 #ifndef WEXITSTATUS
8080 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8081 #endif
8082 #ifndef WIFEXITED
8083 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8084 #endif
8085
8086 int
8087 main ()
8088 {
8089 int s;
8090 wait (&s);
8091 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8092 ;
8093 return 0;
8094 }
8095 _ACEOF
8096 if ac_fn_c_try_compile "$LINENO"; then :
8097 ac_cv_header_sys_wait_h=yes
8098 else
8099 ac_cv_header_sys_wait_h=no
8100 fi
8101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8102 fi
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8104 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8105 if test $ac_cv_header_sys_wait_h = yes; then
8106
8107 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8108
8109 fi
8110
8111 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8112 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8113 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8114 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8115 do :
8116 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8117 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8118 eval as_val=\$$as_ac_Header
8119 if test "x$as_val" = x""yes; then :
8120 cat >>confdefs.h <<_ACEOF
8121 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8122 _ACEOF
8123
8124 fi
8125 done
8126
8127
8128 # Check for thread headers.
8129 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8130 if test "x$ac_cv_header_thread_h" = x""yes; then :
8131 have_thread_h=yes
8132 else
8133 have_thread_h=
8134 fi
8135
8136 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8137 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8138 have_pthread_h=yes
8139 else
8140 have_pthread_h=
8141 fi
8142
8143
8144 # These tests can't be done till we know if we have limits.h.
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8146 $as_echo_n "checking for CHAR_BIT... " >&6; }
8147 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8148 $as_echo_n "(cached) " >&6
8149 else
8150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8151 /* end confdefs.h. */
8152 #ifdef HAVE_LIMITS_H
8153 #include <limits.h>
8154 #endif
8155 #ifdef CHAR_BIT
8156 found
8157 #endif
8158 _ACEOF
8159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8160 $EGREP "found" >/dev/null 2>&1; then :
8161 gcc_cv_decl_char_bit=yes
8162 else
8163 gcc_cv_decl_char_bit=no
8164 fi
8165 rm -f conftest*
8166
8167
8168 fi
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8170 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8171 if test $gcc_cv_decl_char_bit = no; then
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8173 $as_echo_n "checking number of bits in a byte... " >&6; }
8174 if test "${gcc_cv_c_nbby+set}" = set; then :
8175 $as_echo_n "(cached) " >&6
8176 else
8177 i=8
8178 gcc_cv_c_nbby=
8179 while test $i -lt 65; do
8180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8181 /* end confdefs.h. */
8182
8183 int
8184 main ()
8185 {
8186 switch(0) {
8187 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8188 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8189 ; }
8190 ;
8191 return 0;
8192 }
8193 _ACEOF
8194 if ac_fn_c_try_compile "$LINENO"; then :
8195 gcc_cv_c_nbby=$i; break
8196 fi
8197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8198 i=`expr $i + 1`
8199 done
8200 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8201
8202 fi
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8204 $as_echo "$gcc_cv_c_nbby" >&6; }
8205 if test $gcc_cv_c_nbby = failed; then
8206 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8207 else
8208
8209 cat >>confdefs.h <<_ACEOF
8210 #define CHAR_BIT $gcc_cv_c_nbby
8211 _ACEOF
8212
8213 fi
8214 fi
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8216 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8217 if test "${ac_cv_c_bigendian+set}" = set; then :
8218 $as_echo_n "(cached) " >&6
8219 else
8220 ac_cv_c_bigendian=unknown
8221 # See if we're dealing with a universal compiler.
8222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8223 /* end confdefs.h. */
8224 #ifndef __APPLE_CC__
8225 not a universal capable compiler
8226 #endif
8227 typedef int dummy;
8228
8229 _ACEOF
8230 if ac_fn_c_try_compile "$LINENO"; then :
8231
8232 # Check for potential -arch flags. It is not universal unless
8233 # there are at least two -arch flags with different values.
8234 ac_arch=
8235 ac_prev=
8236 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8237 if test -n "$ac_prev"; then
8238 case $ac_word in
8239 i?86 | x86_64 | ppc | ppc64)
8240 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8241 ac_arch=$ac_word
8242 else
8243 ac_cv_c_bigendian=universal
8244 break
8245 fi
8246 ;;
8247 esac
8248 ac_prev=
8249 elif test "x$ac_word" = "x-arch"; then
8250 ac_prev=arch
8251 fi
8252 done
8253 fi
8254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8255 if test $ac_cv_c_bigendian = unknown; then
8256 # See if sys/param.h defines the BYTE_ORDER macro.
8257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h. */
8259 #include <sys/types.h>
8260 #include <sys/param.h>
8261
8262 int
8263 main ()
8264 {
8265 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8266 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8267 && LITTLE_ENDIAN)
8268 bogus endian macros
8269 #endif
8270
8271 ;
8272 return 0;
8273 }
8274 _ACEOF
8275 if ac_fn_c_try_compile "$LINENO"; then :
8276 # It does; now see whether it defined to BIG_ENDIAN or not.
8277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8278 /* end confdefs.h. */
8279 #include <sys/types.h>
8280 #include <sys/param.h>
8281
8282 int
8283 main ()
8284 {
8285 #if BYTE_ORDER != BIG_ENDIAN
8286 not big endian
8287 #endif
8288
8289 ;
8290 return 0;
8291 }
8292 _ACEOF
8293 if ac_fn_c_try_compile "$LINENO"; then :
8294 ac_cv_c_bigendian=yes
8295 else
8296 ac_cv_c_bigendian=no
8297 fi
8298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8299 fi
8300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8301 fi
8302 if test $ac_cv_c_bigendian = unknown; then
8303 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305 /* end confdefs.h. */
8306 #include <limits.h>
8307
8308 int
8309 main ()
8310 {
8311 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8312 bogus endian macros
8313 #endif
8314
8315 ;
8316 return 0;
8317 }
8318 _ACEOF
8319 if ac_fn_c_try_compile "$LINENO"; then :
8320 # It does; now see whether it defined to _BIG_ENDIAN or not.
8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322 /* end confdefs.h. */
8323 #include <limits.h>
8324
8325 int
8326 main ()
8327 {
8328 #ifndef _BIG_ENDIAN
8329 not big endian
8330 #endif
8331
8332 ;
8333 return 0;
8334 }
8335 _ACEOF
8336 if ac_fn_c_try_compile "$LINENO"; then :
8337 ac_cv_c_bigendian=yes
8338 else
8339 ac_cv_c_bigendian=no
8340 fi
8341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8342 fi
8343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8344 fi
8345 if test $ac_cv_c_bigendian = unknown; then
8346 # Compile a test program.
8347 if test "$cross_compiling" = yes; then :
8348 # Try to guess by grepping values from an object file.
8349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8350 /* end confdefs.h. */
8351 short int ascii_mm[] =
8352 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8353 short int ascii_ii[] =
8354 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8355 int use_ascii (int i) {
8356 return ascii_mm[i] + ascii_ii[i];
8357 }
8358 short int ebcdic_ii[] =
8359 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8360 short int ebcdic_mm[] =
8361 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8362 int use_ebcdic (int i) {
8363 return ebcdic_mm[i] + ebcdic_ii[i];
8364 }
8365 extern int foo;
8366
8367 int
8368 main ()
8369 {
8370 return use_ascii (foo) == use_ebcdic (foo);
8371 ;
8372 return 0;
8373 }
8374 _ACEOF
8375 if ac_fn_c_try_compile "$LINENO"; then :
8376 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8377 ac_cv_c_bigendian=yes
8378 fi
8379 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8380 if test "$ac_cv_c_bigendian" = unknown; then
8381 ac_cv_c_bigendian=no
8382 else
8383 # finding both strings is unlikely to happen, but who knows?
8384 ac_cv_c_bigendian=unknown
8385 fi
8386 fi
8387 fi
8388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8389 else
8390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8391 /* end confdefs.h. */
8392 $ac_includes_default
8393 int
8394 main ()
8395 {
8396
8397 /* Are we little or big endian? From Harbison&Steele. */
8398 union
8399 {
8400 long int l;
8401 char c[sizeof (long int)];
8402 } u;
8403 u.l = 1;
8404 return u.c[sizeof (long int) - 1] == 1;
8405
8406 ;
8407 return 0;
8408 }
8409 _ACEOF
8410 if ac_fn_c_try_run "$LINENO"; then :
8411 ac_cv_c_bigendian=no
8412 else
8413 ac_cv_c_bigendian=yes
8414 fi
8415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8416 conftest.$ac_objext conftest.beam conftest.$ac_ext
8417 fi
8418
8419 fi
8420 fi
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8422 $as_echo "$ac_cv_c_bigendian" >&6; }
8423 case $ac_cv_c_bigendian in #(
8424 yes)
8425 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8426 ;; #(
8427 no)
8428 ;; #(
8429 universal)
8430
8431 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8432
8433 ;; #(
8434 *)
8435 as_fn_error "unknown endianness
8436 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8437 esac
8438
8439
8440 # ----------------------
8441 # Checks for C++ headers
8442 # ----------------------
8443
8444 ac_ext=cpp
8445 ac_cpp='$CXXCPP $CPPFLAGS'
8446 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8447 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8448 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8450 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8451 if test -z "$CXXCPP"; then
8452 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8453 $as_echo_n "(cached) " >&6
8454 else
8455 # Double quotes because CXXCPP needs to be expanded
8456 for CXXCPP in "$CXX -E" "/lib/cpp"
8457 do
8458 ac_preproc_ok=false
8459 for ac_cxx_preproc_warn_flag in '' yes
8460 do
8461 # Use a header file that comes with gcc, so configuring glibc
8462 # with a fresh cross-compiler works.
8463 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8464 # <limits.h> exists even on freestanding compilers.
8465 # On the NeXT, cc -E runs the code through the compiler's parser,
8466 # not just through cpp. "Syntax error" is here to catch this case.
8467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8468 /* end confdefs.h. */
8469 #ifdef __STDC__
8470 # include <limits.h>
8471 #else
8472 # include <assert.h>
8473 #endif
8474 Syntax error
8475 _ACEOF
8476 if ac_fn_cxx_try_cpp "$LINENO"; then :
8477
8478 else
8479 # Broken: fails on valid input.
8480 continue
8481 fi
8482 rm -f conftest.err conftest.$ac_ext
8483
8484 # OK, works on sane cases. Now check whether nonexistent headers
8485 # can be detected and how.
8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8488 #include <ac_nonexistent.h>
8489 _ACEOF
8490 if ac_fn_cxx_try_cpp "$LINENO"; then :
8491 # Broken: success on invalid input.
8492 continue
8493 else
8494 # Passes both tests.
8495 ac_preproc_ok=:
8496 break
8497 fi
8498 rm -f conftest.err conftest.$ac_ext
8499
8500 done
8501 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8502 rm -f conftest.err conftest.$ac_ext
8503 if $ac_preproc_ok; then :
8504 break
8505 fi
8506
8507 done
8508 ac_cv_prog_CXXCPP=$CXXCPP
8509
8510 fi
8511 CXXCPP=$ac_cv_prog_CXXCPP
8512 else
8513 ac_cv_prog_CXXCPP=$CXXCPP
8514 fi
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8516 $as_echo "$CXXCPP" >&6; }
8517 ac_preproc_ok=false
8518 for ac_cxx_preproc_warn_flag in '' yes
8519 do
8520 # Use a header file that comes with gcc, so configuring glibc
8521 # with a fresh cross-compiler works.
8522 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8523 # <limits.h> exists even on freestanding compilers.
8524 # On the NeXT, cc -E runs the code through the compiler's parser,
8525 # not just through cpp. "Syntax error" is here to catch this case.
8526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8527 /* end confdefs.h. */
8528 #ifdef __STDC__
8529 # include <limits.h>
8530 #else
8531 # include <assert.h>
8532 #endif
8533 Syntax error
8534 _ACEOF
8535 if ac_fn_cxx_try_cpp "$LINENO"; then :
8536
8537 else
8538 # Broken: fails on valid input.
8539 continue
8540 fi
8541 rm -f conftest.err conftest.$ac_ext
8542
8543 # OK, works on sane cases. Now check whether nonexistent headers
8544 # can be detected and how.
8545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8546 /* end confdefs.h. */
8547 #include <ac_nonexistent.h>
8548 _ACEOF
8549 if ac_fn_cxx_try_cpp "$LINENO"; then :
8550 # Broken: success on invalid input.
8551 continue
8552 else
8553 # Passes both tests.
8554 ac_preproc_ok=:
8555 break
8556 fi
8557 rm -f conftest.err conftest.$ac_ext
8558
8559 done
8560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8561 rm -f conftest.err conftest.$ac_ext
8562 if $ac_preproc_ok; then :
8563
8564 else
8565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8568 See \`config.log' for more details." >&5
8569 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8570 See \`config.log' for more details." >&2;}; }
8571 fi
8572
8573 ac_ext=c
8574 ac_cpp='$CPP $CPPFLAGS'
8575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8578
8579
8580 ac_ext=cpp
8581 ac_cpp='$CXXCPP $CPPFLAGS'
8582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8585
8586
8587
8588
8589 for ac_header in unordered_map
8590 do :
8591 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8592 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8593 cat >>confdefs.h <<_ACEOF
8594 #define HAVE_UNORDERED_MAP 1
8595 _ACEOF
8596
8597 fi
8598 done
8599
8600 for ac_header in tr1/unordered_map
8601 do :
8602 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8603 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8604 cat >>confdefs.h <<_ACEOF
8605 #define HAVE_TR1_UNORDERED_MAP 1
8606 _ACEOF
8607
8608 fi
8609 done
8610
8611 for ac_header in ext/hash_map
8612 do :
8613 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8614 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8615 cat >>confdefs.h <<_ACEOF
8616 #define HAVE_EXT_HASH_MAP 1
8617 _ACEOF
8618
8619 fi
8620 done
8621
8622
8623 ac_ext=c
8624 ac_cpp='$CPP $CPPFLAGS'
8625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8628
8629
8630 # --------
8631 # UNSORTED
8632 # --------
8633
8634
8635 # These libraries may be used by collect2.
8636 # We may need a special search path to get them linked.
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8638 $as_echo_n "checking for collect2 libraries... " >&6; }
8639 if test "${gcc_cv_collect2_libs+set}" = set; then :
8640 $as_echo_n "(cached) " >&6
8641 else
8642 save_LIBS="$LIBS"
8643 for libs in '' -lld -lmld \
8644 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8645 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8646 do
8647 LIBS="$libs"
8648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8649 /* end confdefs.h. */
8650
8651 /* Override any GCC internal prototype to avoid an error.
8652 Use char because int might match the return type of a GCC
8653 builtin and then its argument prototype would still apply. */
8654 #ifdef __cplusplus
8655 extern "C"
8656 #endif
8657 char ldopen ();
8658 int
8659 main ()
8660 {
8661 return ldopen ();
8662 ;
8663 return 0;
8664 }
8665 _ACEOF
8666 if ac_fn_c_try_link "$LINENO"; then :
8667 gcc_cv_collect2_libs="$libs"; break
8668 fi
8669 rm -f core conftest.err conftest.$ac_objext \
8670 conftest$ac_exeext conftest.$ac_ext
8671 done
8672 LIBS="$save_LIBS"
8673 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8674 fi
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8676 $as_echo "$gcc_cv_collect2_libs" >&6; }
8677 case $gcc_cv_collect2_libs in
8678 "none required") ;;
8679 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8680 esac
8681
8682
8683 # When building Ada code on Alpha, we need exc_resume which is usually in
8684 # -lexc. So test for it.
8685 save_LIBS="$LIBS"
8686 LIBS=
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8688 $as_echo_n "checking for library containing exc_resume... " >&6; }
8689 if test "${ac_cv_search_exc_resume+set}" = set; then :
8690 $as_echo_n "(cached) " >&6
8691 else
8692 ac_func_search_save_LIBS=$LIBS
8693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8694 /* end confdefs.h. */
8695
8696 /* Override any GCC internal prototype to avoid an error.
8697 Use char because int might match the return type of a GCC
8698 builtin and then its argument prototype would still apply. */
8699 #ifdef __cplusplus
8700 extern "C"
8701 #endif
8702 char exc_resume ();
8703 int
8704 main ()
8705 {
8706 return exc_resume ();
8707 ;
8708 return 0;
8709 }
8710 _ACEOF
8711 for ac_lib in '' exc; do
8712 if test -z "$ac_lib"; then
8713 ac_res="none required"
8714 else
8715 ac_res=-l$ac_lib
8716 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8717 fi
8718 if ac_fn_c_try_link "$LINENO"; then :
8719 ac_cv_search_exc_resume=$ac_res
8720 fi
8721 rm -f core conftest.err conftest.$ac_objext \
8722 conftest$ac_exeext
8723 if test "${ac_cv_search_exc_resume+set}" = set; then :
8724 break
8725 fi
8726 done
8727 if test "${ac_cv_search_exc_resume+set}" = set; then :
8728
8729 else
8730 ac_cv_search_exc_resume=no
8731 fi
8732 rm conftest.$ac_ext
8733 LIBS=$ac_func_search_save_LIBS
8734 fi
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8736 $as_echo "$ac_cv_search_exc_resume" >&6; }
8737 ac_res=$ac_cv_search_exc_resume
8738 if test "$ac_res" != no; then :
8739 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8740
8741 fi
8742
8743 GNAT_LIBEXC="$LIBS"
8744 LIBS="$save_LIBS"
8745
8746
8747 # Some systems put ldexp and frexp in libm instead of libc; assume
8748 # they're both in the same place. jcf-dump needs them.
8749 save_LIBS="$LIBS"
8750 LIBS=
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8752 $as_echo_n "checking for library containing ldexp... " >&6; }
8753 if test "${ac_cv_search_ldexp+set}" = set; then :
8754 $as_echo_n "(cached) " >&6
8755 else
8756 ac_func_search_save_LIBS=$LIBS
8757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8758 /* end confdefs.h. */
8759
8760 /* Override any GCC internal prototype to avoid an error.
8761 Use char because int might match the return type of a GCC
8762 builtin and then its argument prototype would still apply. */
8763 #ifdef __cplusplus
8764 extern "C"
8765 #endif
8766 char ldexp ();
8767 int
8768 main ()
8769 {
8770 return ldexp ();
8771 ;
8772 return 0;
8773 }
8774 _ACEOF
8775 for ac_lib in '' m; do
8776 if test -z "$ac_lib"; then
8777 ac_res="none required"
8778 else
8779 ac_res=-l$ac_lib
8780 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8781 fi
8782 if ac_fn_c_try_link "$LINENO"; then :
8783 ac_cv_search_ldexp=$ac_res
8784 fi
8785 rm -f core conftest.err conftest.$ac_objext \
8786 conftest$ac_exeext
8787 if test "${ac_cv_search_ldexp+set}" = set; then :
8788 break
8789 fi
8790 done
8791 if test "${ac_cv_search_ldexp+set}" = set; then :
8792
8793 else
8794 ac_cv_search_ldexp=no
8795 fi
8796 rm conftest.$ac_ext
8797 LIBS=$ac_func_search_save_LIBS
8798 fi
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8800 $as_echo "$ac_cv_search_ldexp" >&6; }
8801 ac_res=$ac_cv_search_ldexp
8802 if test "$ac_res" != no; then :
8803 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8804
8805 fi
8806
8807 LDEXP_LIB="$LIBS"
8808 LIBS="$save_LIBS"
8809
8810
8811 # Use <inttypes.h> only if it exists,
8812 # doesn't clash with <sys/types.h>, and declares intmax_t.
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8814 $as_echo_n "checking for inttypes.h... " >&6; }
8815 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8816 $as_echo_n "(cached) " >&6
8817 else
8818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8819 /* end confdefs.h. */
8820 #include <sys/types.h>
8821 #include <inttypes.h>
8822 int
8823 main ()
8824 {
8825 intmax_t i = -1;
8826 ;
8827 return 0;
8828 }
8829 _ACEOF
8830 if ac_fn_c_try_compile "$LINENO"; then :
8831 gcc_cv_header_inttypes_h=yes
8832 else
8833 gcc_cv_header_inttypes_h=no
8834 fi
8835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8836 fi
8837
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8839 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8840 if test $gcc_cv_header_inttypes_h = yes; then
8841
8842 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8843
8844 fi
8845
8846
8847
8848 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8849 sysconf strsignal getrusage nl_langinfo \
8850 gettimeofday mbstowcs wcswidth mmap setlocale \
8851 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
8852 do :
8853 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8854 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8855 eval as_val=\$$as_ac_var
8856 if test "x$as_val" = x""yes; then :
8857 cat >>confdefs.h <<_ACEOF
8858 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8859 _ACEOF
8860
8861 fi
8862 done
8863
8864
8865 if test x$ac_cv_func_mbstowcs = xyes; then
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8867 $as_echo_n "checking whether mbstowcs works... " >&6; }
8868 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8869 $as_echo_n "(cached) " >&6
8870 else
8871 if test "$cross_compiling" = yes; then :
8872 gcc_cv_func_mbstowcs_works=yes
8873 else
8874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8875 /* end confdefs.h. */
8876 #include <stdlib.h>
8877 int main()
8878 {
8879 mbstowcs(0, "", 0);
8880 return 0;
8881 }
8882 _ACEOF
8883 if ac_fn_c_try_run "$LINENO"; then :
8884 gcc_cv_func_mbstowcs_works=yes
8885 else
8886 gcc_cv_func_mbstowcs_works=no
8887 fi
8888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8889 conftest.$ac_objext conftest.beam conftest.$ac_ext
8890 fi
8891
8892 fi
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8894 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8895 if test x$gcc_cv_func_mbstowcs_works = xyes; then
8896
8897 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8898
8899 fi
8900 fi
8901
8902 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8903 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8904
8905 else
8906
8907 cat >>confdefs.h <<_ACEOF
8908 #define ssize_t int
8909 _ACEOF
8910
8911 fi
8912
8913 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8914 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8915
8916 else
8917
8918 cat >>confdefs.h <<_ACEOF
8919 #define caddr_t char *
8920 _ACEOF
8921
8922 fi
8923
8924
8925
8926 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8927 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8928 gcc_header_sys_mman_h=yes
8929 else
8930 gcc_header_sys_mman_h=no
8931 fi
8932
8933 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8934 if test "x$ac_cv_func_mmap" = x""yes; then :
8935 gcc_func_mmap=yes
8936 else
8937 gcc_func_mmap=no
8938 fi
8939
8940 if test "$gcc_header_sys_mman_h" != yes \
8941 || test "$gcc_func_mmap" != yes; then
8942 gcc_cv_func_mmap_file=no
8943 gcc_cv_func_mmap_dev_zero=no
8944 gcc_cv_func_mmap_anon=no
8945 else
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8947 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8948 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8949 $as_echo_n "(cached) " >&6
8950 else
8951 # Add a system to this blacklist if
8952 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8953 # memory area containing the same data that you'd get if you applied
8954 # read() to the same fd. The only system known to have a problem here
8955 # is VMS, where text files have record structure.
8956 case "$host_os" in
8957 vms* | ultrix*)
8958 gcc_cv_func_mmap_file=no ;;
8959 *)
8960 gcc_cv_func_mmap_file=yes;;
8961 esac
8962 fi
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8964 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8966 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8967 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8968 $as_echo_n "(cached) " >&6
8969 else
8970 # Add a system to this blacklist if it has mmap() but /dev/zero
8971 # does not exist, or if mmapping /dev/zero does not give anonymous
8972 # zeroed pages with both the following properties:
8973 # 1. If you map N consecutive pages in with one call, and then
8974 # unmap any subset of those pages, the pages that were not
8975 # explicitly unmapped remain accessible.
8976 # 2. If you map two adjacent blocks of memory and then unmap them
8977 # both at once, they must both go away.
8978 # Systems known to be in this category are Windows (all variants),
8979 # VMS, and Darwin.
8980 case "$host_os" in
8981 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8982 gcc_cv_func_mmap_dev_zero=no ;;
8983 *)
8984 gcc_cv_func_mmap_dev_zero=yes;;
8985 esac
8986 fi
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8988 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8989
8990 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8992 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8993 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8994 $as_echo_n "(cached) " >&6
8995 else
8996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8997 /* end confdefs.h. */
8998 #include <sys/types.h>
8999 #include <sys/mman.h>
9000 #include <unistd.h>
9001
9002 #ifndef MAP_ANONYMOUS
9003 #define MAP_ANONYMOUS MAP_ANON
9004 #endif
9005
9006 int
9007 main ()
9008 {
9009 int n = MAP_ANONYMOUS;
9010 ;
9011 return 0;
9012 }
9013 _ACEOF
9014 if ac_fn_c_try_compile "$LINENO"; then :
9015 gcc_cv_decl_map_anon=yes
9016 else
9017 gcc_cv_decl_map_anon=no
9018 fi
9019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9020 fi
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9022 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9023
9024 if test $gcc_cv_decl_map_anon = no; then
9025 gcc_cv_func_mmap_anon=no
9026 else
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9028 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9029 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9030 $as_echo_n "(cached) " >&6
9031 else
9032 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9033 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9034 # doesn't give anonymous zeroed pages with the same properties listed
9035 # above for use of /dev/zero.
9036 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9037 case "$host_os" in
9038 vms* | cygwin* | pe | mingw* | sco* | udk* )
9039 gcc_cv_func_mmap_anon=no ;;
9040 *)
9041 gcc_cv_func_mmap_anon=yes;;
9042 esac
9043 fi
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9045 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9046 fi
9047 fi
9048
9049 if test $gcc_cv_func_mmap_file = yes; then
9050
9051 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9052
9053 fi
9054 if test $gcc_cv_func_mmap_dev_zero = yes; then
9055
9056 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9057
9058 fi
9059 if test $gcc_cv_func_mmap_anon = yes; then
9060
9061 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9062
9063 fi
9064
9065
9066 case "${host}" in
9067 *-*-*vms*)
9068 # Under VMS, vfork works very differently than on Unix. The standard test
9069 # won't work, and it isn't easily adaptable. It makes more sense to
9070 # just force it.
9071 ac_cv_func_vfork_works=yes
9072 ;;
9073 esac
9074 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9075 if test "x$ac_cv_type_pid_t" = x""yes; then :
9076
9077 else
9078
9079 cat >>confdefs.h <<_ACEOF
9080 #define pid_t int
9081 _ACEOF
9082
9083 fi
9084
9085 for ac_header in vfork.h
9086 do :
9087 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9088 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9089 cat >>confdefs.h <<_ACEOF
9090 #define HAVE_VFORK_H 1
9091 _ACEOF
9092
9093 fi
9094 done
9095
9096 for ac_func in fork vfork
9097 do :
9098 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9099 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9100 eval as_val=\$$as_ac_var
9101 if test "x$as_val" = x""yes; then :
9102 cat >>confdefs.h <<_ACEOF
9103 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9104 _ACEOF
9105
9106 fi
9107 done
9108
9109 if test "x$ac_cv_func_fork" = xyes; then
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9111 $as_echo_n "checking for working fork... " >&6; }
9112 if test "${ac_cv_func_fork_works+set}" = set; then :
9113 $as_echo_n "(cached) " >&6
9114 else
9115 if test "$cross_compiling" = yes; then :
9116 ac_cv_func_fork_works=cross
9117 else
9118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9119 /* end confdefs.h. */
9120 $ac_includes_default
9121 int
9122 main ()
9123 {
9124
9125 /* By Ruediger Kuhlmann. */
9126 return fork () < 0;
9127
9128 ;
9129 return 0;
9130 }
9131 _ACEOF
9132 if ac_fn_c_try_run "$LINENO"; then :
9133 ac_cv_func_fork_works=yes
9134 else
9135 ac_cv_func_fork_works=no
9136 fi
9137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9138 conftest.$ac_objext conftest.beam conftest.$ac_ext
9139 fi
9140
9141 fi
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9143 $as_echo "$ac_cv_func_fork_works" >&6; }
9144
9145 else
9146 ac_cv_func_fork_works=$ac_cv_func_fork
9147 fi
9148 if test "x$ac_cv_func_fork_works" = xcross; then
9149 case $host in
9150 *-*-amigaos* | *-*-msdosdjgpp*)
9151 # Override, as these systems have only a dummy fork() stub
9152 ac_cv_func_fork_works=no
9153 ;;
9154 *)
9155 ac_cv_func_fork_works=yes
9156 ;;
9157 esac
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9159 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9160 fi
9161 ac_cv_func_vfork_works=$ac_cv_func_vfork
9162 if test "x$ac_cv_func_vfork" = xyes; then
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9164 $as_echo_n "checking for working vfork... " >&6; }
9165 if test "${ac_cv_func_vfork_works+set}" = set; then :
9166 $as_echo_n "(cached) " >&6
9167 else
9168 if test "$cross_compiling" = yes; then :
9169 ac_cv_func_vfork_works=cross
9170 else
9171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9172 /* end confdefs.h. */
9173 /* Thanks to Paul Eggert for this test. */
9174 $ac_includes_default
9175 #include <sys/wait.h>
9176 #ifdef HAVE_VFORK_H
9177 # include <vfork.h>
9178 #endif
9179 /* On some sparc systems, changes by the child to local and incoming
9180 argument registers are propagated back to the parent. The compiler
9181 is told about this with #include <vfork.h>, but some compilers
9182 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9183 static variable whose address is put into a register that is
9184 clobbered by the vfork. */
9185 static void
9186 #ifdef __cplusplus
9187 sparc_address_test (int arg)
9188 # else
9189 sparc_address_test (arg) int arg;
9190 #endif
9191 {
9192 static pid_t child;
9193 if (!child) {
9194 child = vfork ();
9195 if (child < 0) {
9196 perror ("vfork");
9197 _exit(2);
9198 }
9199 if (!child) {
9200 arg = getpid();
9201 write(-1, "", 0);
9202 _exit (arg);
9203 }
9204 }
9205 }
9206
9207 int
9208 main ()
9209 {
9210 pid_t parent = getpid ();
9211 pid_t child;
9212
9213 sparc_address_test (0);
9214
9215 child = vfork ();
9216
9217 if (child == 0) {
9218 /* Here is another test for sparc vfork register problems. This
9219 test uses lots of local variables, at least as many local
9220 variables as main has allocated so far including compiler
9221 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9222 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9223 reuse the register of parent for one of the local variables,
9224 since it will think that parent can't possibly be used any more
9225 in this routine. Assigning to the local variable will thus
9226 munge parent in the parent process. */
9227 pid_t
9228 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9229 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9230 /* Convince the compiler that p..p7 are live; otherwise, it might
9231 use the same hardware register for all 8 local variables. */
9232 if (p != p1 || p != p2 || p != p3 || p != p4
9233 || p != p5 || p != p6 || p != p7)
9234 _exit(1);
9235
9236 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9237 from child file descriptors. If the child closes a descriptor
9238 before it execs or exits, this munges the parent's descriptor
9239 as well. Test for this by closing stdout in the child. */
9240 _exit(close(fileno(stdout)) != 0);
9241 } else {
9242 int status;
9243 struct stat st;
9244
9245 while (wait(&status) != child)
9246 ;
9247 return (
9248 /* Was there some problem with vforking? */
9249 child < 0
9250
9251 /* Did the child fail? (This shouldn't happen.) */
9252 || status
9253
9254 /* Did the vfork/compiler bug occur? */
9255 || parent != getpid()
9256
9257 /* Did the file descriptor bug occur? */
9258 || fstat(fileno(stdout), &st) != 0
9259 );
9260 }
9261 }
9262 _ACEOF
9263 if ac_fn_c_try_run "$LINENO"; then :
9264 ac_cv_func_vfork_works=yes
9265 else
9266 ac_cv_func_vfork_works=no
9267 fi
9268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9269 conftest.$ac_objext conftest.beam conftest.$ac_ext
9270 fi
9271
9272 fi
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9274 $as_echo "$ac_cv_func_vfork_works" >&6; }
9275
9276 fi;
9277 if test "x$ac_cv_func_fork_works" = xcross; then
9278 ac_cv_func_vfork_works=$ac_cv_func_vfork
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9280 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9281 fi
9282
9283 if test "x$ac_cv_func_vfork_works" = xyes; then
9284
9285 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9286
9287 else
9288
9289 $as_echo "#define vfork fork" >>confdefs.h
9290
9291 fi
9292 if test "x$ac_cv_func_fork_works" = xyes; then
9293
9294 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9295
9296 fi
9297
9298
9299 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9300 # iconv() prototype.
9301
9302 if test "X$prefix" = "XNONE"; then
9303 acl_final_prefix="$ac_default_prefix"
9304 else
9305 acl_final_prefix="$prefix"
9306 fi
9307 if test "X$exec_prefix" = "XNONE"; then
9308 acl_final_exec_prefix='${prefix}'
9309 else
9310 acl_final_exec_prefix="$exec_prefix"
9311 fi
9312 acl_save_prefix="$prefix"
9313 prefix="$acl_final_prefix"
9314 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9315 prefix="$acl_save_prefix"
9316
9317
9318 # Check whether --with-gnu-ld was given.
9319 if test "${with_gnu_ld+set}" = set; then :
9320 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9321 else
9322 with_gnu_ld=no
9323 fi
9324
9325 # Prepare PATH_SEPARATOR.
9326 # The user is always right.
9327 if test "${PATH_SEPARATOR+set}" != set; then
9328 echo "#! /bin/sh" >conf$$.sh
9329 echo "exit 0" >>conf$$.sh
9330 chmod +x conf$$.sh
9331 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9332 PATH_SEPARATOR=';'
9333 else
9334 PATH_SEPARATOR=:
9335 fi
9336 rm -f conf$$.sh
9337 fi
9338 ac_prog=ld
9339 if test "$GCC" = yes; then
9340 # Check if gcc -print-prog-name=ld gives a path.
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9342 $as_echo_n "checking for ld used by GCC... " >&6; }
9343 case $host in
9344 *-*-mingw*)
9345 # gcc leaves a trailing carriage return which upsets mingw
9346 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9347 *)
9348 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9349 esac
9350 case $ac_prog in
9351 # Accept absolute paths.
9352 [\\/]* | [A-Za-z]:[\\/]*)
9353 re_direlt='/[^/][^/]*/\.\./'
9354 # Canonicalize the path of ld
9355 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9356 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9357 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9358 done
9359 test -z "$LD" && LD="$ac_prog"
9360 ;;
9361 "")
9362 # If it fails, then pretend we aren't using GCC.
9363 ac_prog=ld
9364 ;;
9365 *)
9366 # If it is relative, then search for the first ld in PATH.
9367 with_gnu_ld=unknown
9368 ;;
9369 esac
9370 elif test "$with_gnu_ld" = yes; then
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9372 $as_echo_n "checking for GNU ld... " >&6; }
9373 else
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9375 $as_echo_n "checking for non-GNU ld... " >&6; }
9376 fi
9377 if test "${acl_cv_path_LD+set}" = set; then :
9378 $as_echo_n "(cached) " >&6
9379 else
9380 if test -z "$LD"; then
9381 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9382 for ac_dir in $PATH; do
9383 test -z "$ac_dir" && ac_dir=.
9384 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9385 acl_cv_path_LD="$ac_dir/$ac_prog"
9386 # Check to see if the program is GNU ld. I'd rather use --version,
9387 # but apparently some GNU ld's only accept -v.
9388 # Break only if it was the GNU/non-GNU ld that we prefer.
9389 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9390 test "$with_gnu_ld" != no && break
9391 else
9392 test "$with_gnu_ld" != yes && break
9393 fi
9394 fi
9395 done
9396 IFS="$ac_save_ifs"
9397 else
9398 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9399 fi
9400 fi
9401
9402 LD="$acl_cv_path_LD"
9403 if test -n "$LD"; then
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9405 $as_echo "$LD" >&6; }
9406 else
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9408 $as_echo "no" >&6; }
9409 fi
9410 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9412 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9413 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9414 $as_echo_n "(cached) " >&6
9415 else
9416 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9417 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9418 acl_cv_prog_gnu_ld=yes
9419 else
9420 acl_cv_prog_gnu_ld=no
9421 fi
9422 fi
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9424 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9425 with_gnu_ld=$acl_cv_prog_gnu_ld
9426
9427
9428
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9430 $as_echo_n "checking for shared library run path origin... " >&6; }
9431 if test "${acl_cv_rpath+set}" = set; then :
9432 $as_echo_n "(cached) " >&6
9433 else
9434
9435 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9436 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9437 . ./conftest.sh
9438 rm -f ./conftest.sh
9439 acl_cv_rpath=done
9440
9441 fi
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9443 $as_echo "$acl_cv_rpath" >&6; }
9444 wl="$acl_cv_wl"
9445 libext="$acl_cv_libext"
9446 shlibext="$acl_cv_shlibext"
9447 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9448 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9449 hardcode_direct="$acl_cv_hardcode_direct"
9450 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9451 # Check whether --enable-rpath was given.
9452 if test "${enable_rpath+set}" = set; then :
9453 enableval=$enable_rpath; :
9454 else
9455 enable_rpath=yes
9456 fi
9457
9458
9459
9460
9461
9462
9463
9464
9465 use_additional=yes
9466
9467 acl_save_prefix="$prefix"
9468 prefix="$acl_final_prefix"
9469 acl_save_exec_prefix="$exec_prefix"
9470 exec_prefix="$acl_final_exec_prefix"
9471
9472 eval additional_includedir=\"$includedir\"
9473 eval additional_libdir=\"$libdir\"
9474
9475 exec_prefix="$acl_save_exec_prefix"
9476 prefix="$acl_save_prefix"
9477
9478
9479 # Check whether --with-libiconv-prefix was given.
9480 if test "${with_libiconv_prefix+set}" = set; then :
9481 withval=$with_libiconv_prefix;
9482 if test "X$withval" = "Xno"; then
9483 use_additional=no
9484 else
9485 if test "X$withval" = "X"; then
9486
9487 acl_save_prefix="$prefix"
9488 prefix="$acl_final_prefix"
9489 acl_save_exec_prefix="$exec_prefix"
9490 exec_prefix="$acl_final_exec_prefix"
9491
9492 eval additional_includedir=\"$includedir\"
9493 eval additional_libdir=\"$libdir\"
9494
9495 exec_prefix="$acl_save_exec_prefix"
9496 prefix="$acl_save_prefix"
9497
9498 else
9499 additional_includedir="$withval/include"
9500 additional_libdir="$withval/lib"
9501 fi
9502 fi
9503
9504 fi
9505
9506 LIBICONV=
9507 LTLIBICONV=
9508 INCICONV=
9509 rpathdirs=
9510 ltrpathdirs=
9511 names_already_handled=
9512 names_next_round='iconv '
9513 while test -n "$names_next_round"; do
9514 names_this_round="$names_next_round"
9515 names_next_round=
9516 for name in $names_this_round; do
9517 already_handled=
9518 for n in $names_already_handled; do
9519 if test "$n" = "$name"; then
9520 already_handled=yes
9521 break
9522 fi
9523 done
9524 if test -z "$already_handled"; then
9525 names_already_handled="$names_already_handled $name"
9526 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9527 eval value=\"\$HAVE_LIB$uppername\"
9528 if test -n "$value"; then
9529 if test "$value" = yes; then
9530 eval value=\"\$LIB$uppername\"
9531 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9532 eval value=\"\$LTLIB$uppername\"
9533 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9534 else
9535 :
9536 fi
9537 else
9538 found_dir=
9539 found_la=
9540 found_so=
9541 found_a=
9542 if test $use_additional = yes; then
9543 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9544 found_dir="$additional_libdir"
9545 found_so="$additional_libdir/lib$name.$shlibext"
9546 if test -f "$additional_libdir/lib$name.la"; then
9547 found_la="$additional_libdir/lib$name.la"
9548 fi
9549 else
9550 if test -f "$additional_libdir/lib$name.$libext"; then
9551 found_dir="$additional_libdir"
9552 found_a="$additional_libdir/lib$name.$libext"
9553 if test -f "$additional_libdir/lib$name.la"; then
9554 found_la="$additional_libdir/lib$name.la"
9555 fi
9556 fi
9557 fi
9558 fi
9559 if test "X$found_dir" = "X"; then
9560 for x in $LDFLAGS $LTLIBICONV; do
9561
9562 acl_save_prefix="$prefix"
9563 prefix="$acl_final_prefix"
9564 acl_save_exec_prefix="$exec_prefix"
9565 exec_prefix="$acl_final_exec_prefix"
9566 eval x=\"$x\"
9567 exec_prefix="$acl_save_exec_prefix"
9568 prefix="$acl_save_prefix"
9569
9570 case "$x" in
9571 -L*)
9572 dir=`echo "X$x" | sed -e 's/^X-L//'`
9573 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9574 found_dir="$dir"
9575 found_so="$dir/lib$name.$shlibext"
9576 if test -f "$dir/lib$name.la"; then
9577 found_la="$dir/lib$name.la"
9578 fi
9579 else
9580 if test -f "$dir/lib$name.$libext"; then
9581 found_dir="$dir"
9582 found_a="$dir/lib$name.$libext"
9583 if test -f "$dir/lib$name.la"; then
9584 found_la="$dir/lib$name.la"
9585 fi
9586 fi
9587 fi
9588 ;;
9589 esac
9590 if test "X$found_dir" != "X"; then
9591 break
9592 fi
9593 done
9594 fi
9595 if test "X$found_dir" != "X"; then
9596 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9597 if test "X$found_so" != "X"; then
9598 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9599 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9600 else
9601 haveit=
9602 for x in $ltrpathdirs; do
9603 if test "X$x" = "X$found_dir"; then
9604 haveit=yes
9605 break
9606 fi
9607 done
9608 if test -z "$haveit"; then
9609 ltrpathdirs="$ltrpathdirs $found_dir"
9610 fi
9611 if test "$hardcode_direct" = yes; then
9612 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9613 else
9614 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9615 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9616 haveit=
9617 for x in $rpathdirs; do
9618 if test "X$x" = "X$found_dir"; then
9619 haveit=yes
9620 break
9621 fi
9622 done
9623 if test -z "$haveit"; then
9624 rpathdirs="$rpathdirs $found_dir"
9625 fi
9626 else
9627 haveit=
9628 for x in $LDFLAGS $LIBICONV; do
9629
9630 acl_save_prefix="$prefix"
9631 prefix="$acl_final_prefix"
9632 acl_save_exec_prefix="$exec_prefix"
9633 exec_prefix="$acl_final_exec_prefix"
9634 eval x=\"$x\"
9635 exec_prefix="$acl_save_exec_prefix"
9636 prefix="$acl_save_prefix"
9637
9638 if test "X$x" = "X-L$found_dir"; then
9639 haveit=yes
9640 break
9641 fi
9642 done
9643 if test -z "$haveit"; then
9644 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9645 fi
9646 if test "$hardcode_minus_L" != no; then
9647 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9648 else
9649 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9650 fi
9651 fi
9652 fi
9653 fi
9654 else
9655 if test "X$found_a" != "X"; then
9656 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9657 else
9658 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9659 fi
9660 fi
9661 additional_includedir=
9662 case "$found_dir" in
9663 */lib | */lib/)
9664 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9665 additional_includedir="$basedir/include"
9666 ;;
9667 esac
9668 if test "X$additional_includedir" != "X"; then
9669 if test "X$additional_includedir" != "X/usr/include"; then
9670 haveit=
9671 if test "X$additional_includedir" = "X/usr/local/include"; then
9672 if test -n "$GCC"; then
9673 case $host_os in
9674 linux*) haveit=yes;;
9675 esac
9676 fi
9677 fi
9678 if test -z "$haveit"; then
9679 for x in $CPPFLAGS $INCICONV; do
9680
9681 acl_save_prefix="$prefix"
9682 prefix="$acl_final_prefix"
9683 acl_save_exec_prefix="$exec_prefix"
9684 exec_prefix="$acl_final_exec_prefix"
9685 eval x=\"$x\"
9686 exec_prefix="$acl_save_exec_prefix"
9687 prefix="$acl_save_prefix"
9688
9689 if test "X$x" = "X-I$additional_includedir"; then
9690 haveit=yes
9691 break
9692 fi
9693 done
9694 if test -z "$haveit"; then
9695 if test -d "$additional_includedir"; then
9696 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9697 fi
9698 fi
9699 fi
9700 fi
9701 fi
9702 if test -n "$found_la"; then
9703 save_libdir="$libdir"
9704 case "$found_la" in
9705 */* | *\\*) . "$found_la" ;;
9706 *) . "./$found_la" ;;
9707 esac
9708 libdir="$save_libdir"
9709 for dep in $dependency_libs; do
9710 case "$dep" in
9711 -L*)
9712 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9713 if test "X$additional_libdir" != "X/usr/lib"; then
9714 haveit=
9715 if test "X$additional_libdir" = "X/usr/local/lib"; then
9716 if test -n "$GCC"; then
9717 case $host_os in
9718 linux*) haveit=yes;;
9719 esac
9720 fi
9721 fi
9722 if test -z "$haveit"; then
9723 haveit=
9724 for x in $LDFLAGS $LIBICONV; do
9725
9726 acl_save_prefix="$prefix"
9727 prefix="$acl_final_prefix"
9728 acl_save_exec_prefix="$exec_prefix"
9729 exec_prefix="$acl_final_exec_prefix"
9730 eval x=\"$x\"
9731 exec_prefix="$acl_save_exec_prefix"
9732 prefix="$acl_save_prefix"
9733
9734 if test "X$x" = "X-L$additional_libdir"; then
9735 haveit=yes
9736 break
9737 fi
9738 done
9739 if test -z "$haveit"; then
9740 if test -d "$additional_libdir"; then
9741 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9742 fi
9743 fi
9744 haveit=
9745 for x in $LDFLAGS $LTLIBICONV; do
9746
9747 acl_save_prefix="$prefix"
9748 prefix="$acl_final_prefix"
9749 acl_save_exec_prefix="$exec_prefix"
9750 exec_prefix="$acl_final_exec_prefix"
9751 eval x=\"$x\"
9752 exec_prefix="$acl_save_exec_prefix"
9753 prefix="$acl_save_prefix"
9754
9755 if test "X$x" = "X-L$additional_libdir"; then
9756 haveit=yes
9757 break
9758 fi
9759 done
9760 if test -z "$haveit"; then
9761 if test -d "$additional_libdir"; then
9762 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9763 fi
9764 fi
9765 fi
9766 fi
9767 ;;
9768 -R*)
9769 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9770 if test "$enable_rpath" != no; then
9771 haveit=
9772 for x in $rpathdirs; do
9773 if test "X$x" = "X$dir"; then
9774 haveit=yes
9775 break
9776 fi
9777 done
9778 if test -z "$haveit"; then
9779 rpathdirs="$rpathdirs $dir"
9780 fi
9781 haveit=
9782 for x in $ltrpathdirs; do
9783 if test "X$x" = "X$dir"; then
9784 haveit=yes
9785 break
9786 fi
9787 done
9788 if test -z "$haveit"; then
9789 ltrpathdirs="$ltrpathdirs $dir"
9790 fi
9791 fi
9792 ;;
9793 -l*)
9794 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9795 ;;
9796 *.la)
9797 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9798 ;;
9799 *)
9800 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9801 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9802 ;;
9803 esac
9804 done
9805 fi
9806 else
9807 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9808 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9809 fi
9810 fi
9811 fi
9812 done
9813 done
9814 if test "X$rpathdirs" != "X"; then
9815 if test -n "$hardcode_libdir_separator"; then
9816 alldirs=
9817 for found_dir in $rpathdirs; do
9818 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9819 done
9820 acl_save_libdir="$libdir"
9821 libdir="$alldirs"
9822 eval flag=\"$hardcode_libdir_flag_spec\"
9823 libdir="$acl_save_libdir"
9824 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9825 else
9826 for found_dir in $rpathdirs; do
9827 acl_save_libdir="$libdir"
9828 libdir="$found_dir"
9829 eval flag=\"$hardcode_libdir_flag_spec\"
9830 libdir="$acl_save_libdir"
9831 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9832 done
9833 fi
9834 fi
9835 if test "X$ltrpathdirs" != "X"; then
9836 for found_dir in $ltrpathdirs; do
9837 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9838 done
9839 fi
9840
9841
9842 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
9843 ac_ext=cpp
9844 ac_cpp='$CXXCPP $CPPFLAGS'
9845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9848
9849
9850
9851
9852
9853
9854 am_save_CPPFLAGS="$CPPFLAGS"
9855
9856 for element in $INCICONV; do
9857 haveit=
9858 for x in $CPPFLAGS; do
9859
9860 acl_save_prefix="$prefix"
9861 prefix="$acl_final_prefix"
9862 acl_save_exec_prefix="$exec_prefix"
9863 exec_prefix="$acl_final_exec_prefix"
9864 eval x=\"$x\"
9865 exec_prefix="$acl_save_exec_prefix"
9866 prefix="$acl_save_prefix"
9867
9868 if test "X$x" = "X$element"; then
9869 haveit=yes
9870 break
9871 fi
9872 done
9873 if test -z "$haveit"; then
9874 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9875 fi
9876 done
9877
9878
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9880 $as_echo_n "checking for iconv... " >&6; }
9881 if test "${am_cv_func_iconv+set}" = set; then :
9882 $as_echo_n "(cached) " >&6
9883 else
9884
9885 am_cv_func_iconv="no, consider installing GNU libiconv"
9886 am_cv_lib_iconv=no
9887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888 /* end confdefs.h. */
9889 #include <stdlib.h>
9890 #include <iconv.h>
9891 int
9892 main ()
9893 {
9894 iconv_t cd = iconv_open("","");
9895 iconv(cd,NULL,NULL,NULL,NULL);
9896 iconv_close(cd);
9897 ;
9898 return 0;
9899 }
9900 _ACEOF
9901 if ac_fn_cxx_try_link "$LINENO"; then :
9902 am_cv_func_iconv=yes
9903 fi
9904 rm -f core conftest.err conftest.$ac_objext \
9905 conftest$ac_exeext conftest.$ac_ext
9906 if test "$am_cv_func_iconv" != yes; then
9907 am_save_LIBS="$LIBS"
9908 LIBS="$LIBS $LIBICONV"
9909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9910 /* end confdefs.h. */
9911 #include <stdlib.h>
9912 #include <iconv.h>
9913 int
9914 main ()
9915 {
9916 iconv_t cd = iconv_open("","");
9917 iconv(cd,NULL,NULL,NULL,NULL);
9918 iconv_close(cd);
9919 ;
9920 return 0;
9921 }
9922 _ACEOF
9923 if ac_fn_cxx_try_link "$LINENO"; then :
9924 am_cv_lib_iconv=yes
9925 am_cv_func_iconv=yes
9926 fi
9927 rm -f core conftest.err conftest.$ac_objext \
9928 conftest$ac_exeext conftest.$ac_ext
9929 LIBS="$am_save_LIBS"
9930 fi
9931
9932 fi
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9934 $as_echo "$am_cv_func_iconv" >&6; }
9935 if test "$am_cv_func_iconv" = yes; then
9936
9937 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9938
9939 fi
9940 if test "$am_cv_lib_iconv" = yes; then
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9942 $as_echo_n "checking how to link with libiconv... " >&6; }
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9944 $as_echo "$LIBICONV" >&6; }
9945 else
9946 CPPFLAGS="$am_save_CPPFLAGS"
9947 LIBICONV=
9948 LTLIBICONV=
9949 fi
9950
9951
9952
9953 if test "$am_cv_func_iconv" = yes; then
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9955 $as_echo_n "checking for iconv declaration... " >&6; }
9956 if test "${am_cv_proto_iconv+set}" = set; then :
9957 $as_echo_n "(cached) " >&6
9958 else
9959
9960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9961 /* end confdefs.h. */
9962
9963 #include <stdlib.h>
9964 #include <iconv.h>
9965 extern
9966 #ifdef __cplusplus
9967 "C"
9968 #endif
9969 #if defined(__STDC__) || defined(__cplusplus)
9970 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9971 #else
9972 size_t iconv();
9973 #endif
9974
9975 int
9976 main ()
9977 {
9978
9979 ;
9980 return 0;
9981 }
9982 _ACEOF
9983 if ac_fn_cxx_try_compile "$LINENO"; then :
9984 am_cv_proto_iconv_arg1=""
9985 else
9986 am_cv_proto_iconv_arg1="const"
9987 fi
9988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9989 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);"
9990 fi
9991
9992 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9994 }$am_cv_proto_iconv" >&5
9995 $as_echo "${ac_t:-
9996 }$am_cv_proto_iconv" >&6; }
9997
9998 cat >>confdefs.h <<_ACEOF
9999 #define ICONV_CONST $am_cv_proto_iconv_arg1
10000 _ACEOF
10001
10002 fi
10003
10004 ac_ext=c
10005 ac_cpp='$CPP $CPPFLAGS'
10006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10009
10010 else
10011
10012
10013
10014
10015
10016 am_save_CPPFLAGS="$CPPFLAGS"
10017
10018 for element in $INCICONV; do
10019 haveit=
10020 for x in $CPPFLAGS; do
10021
10022 acl_save_prefix="$prefix"
10023 prefix="$acl_final_prefix"
10024 acl_save_exec_prefix="$exec_prefix"
10025 exec_prefix="$acl_final_exec_prefix"
10026 eval x=\"$x\"
10027 exec_prefix="$acl_save_exec_prefix"
10028 prefix="$acl_save_prefix"
10029
10030 if test "X$x" = "X$element"; then
10031 haveit=yes
10032 break
10033 fi
10034 done
10035 if test -z "$haveit"; then
10036 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10037 fi
10038 done
10039
10040
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10042 $as_echo_n "checking for iconv... " >&6; }
10043 if test "${am_cv_func_iconv+set}" = set; then :
10044 $as_echo_n "(cached) " >&6
10045 else
10046
10047 am_cv_func_iconv="no, consider installing GNU libiconv"
10048 am_cv_lib_iconv=no
10049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10050 /* end confdefs.h. */
10051 #include <stdlib.h>
10052 #include <iconv.h>
10053 int
10054 main ()
10055 {
10056 iconv_t cd = iconv_open("","");
10057 iconv(cd,NULL,NULL,NULL,NULL);
10058 iconv_close(cd);
10059 ;
10060 return 0;
10061 }
10062 _ACEOF
10063 if ac_fn_c_try_link "$LINENO"; then :
10064 am_cv_func_iconv=yes
10065 fi
10066 rm -f core conftest.err conftest.$ac_objext \
10067 conftest$ac_exeext conftest.$ac_ext
10068 if test "$am_cv_func_iconv" != yes; then
10069 am_save_LIBS="$LIBS"
10070 LIBS="$LIBS $LIBICONV"
10071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10072 /* end confdefs.h. */
10073 #include <stdlib.h>
10074 #include <iconv.h>
10075 int
10076 main ()
10077 {
10078 iconv_t cd = iconv_open("","");
10079 iconv(cd,NULL,NULL,NULL,NULL);
10080 iconv_close(cd);
10081 ;
10082 return 0;
10083 }
10084 _ACEOF
10085 if ac_fn_c_try_link "$LINENO"; then :
10086 am_cv_lib_iconv=yes
10087 am_cv_func_iconv=yes
10088 fi
10089 rm -f core conftest.err conftest.$ac_objext \
10090 conftest$ac_exeext conftest.$ac_ext
10091 LIBS="$am_save_LIBS"
10092 fi
10093
10094 fi
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10096 $as_echo "$am_cv_func_iconv" >&6; }
10097 if test "$am_cv_func_iconv" = yes; then
10098
10099 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10100
10101 fi
10102 if test "$am_cv_lib_iconv" = yes; then
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10104 $as_echo_n "checking how to link with libiconv... " >&6; }
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10106 $as_echo "$LIBICONV" >&6; }
10107 else
10108 CPPFLAGS="$am_save_CPPFLAGS"
10109 LIBICONV=
10110 LTLIBICONV=
10111 fi
10112
10113
10114
10115 if test "$am_cv_func_iconv" = yes; then
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10117 $as_echo_n "checking for iconv declaration... " >&6; }
10118 if test "${am_cv_proto_iconv+set}" = set; then :
10119 $as_echo_n "(cached) " >&6
10120 else
10121
10122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123 /* end confdefs.h. */
10124
10125 #include <stdlib.h>
10126 #include <iconv.h>
10127 extern
10128 #ifdef __cplusplus
10129 "C"
10130 #endif
10131 #if defined(__STDC__) || defined(__cplusplus)
10132 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10133 #else
10134 size_t iconv();
10135 #endif
10136
10137 int
10138 main ()
10139 {
10140
10141 ;
10142 return 0;
10143 }
10144 _ACEOF
10145 if ac_fn_c_try_compile "$LINENO"; then :
10146 am_cv_proto_iconv_arg1=""
10147 else
10148 am_cv_proto_iconv_arg1="const"
10149 fi
10150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10151 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);"
10152 fi
10153
10154 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10156 }$am_cv_proto_iconv" >&5
10157 $as_echo "${ac_t:-
10158 }$am_cv_proto_iconv" >&6; }
10159
10160 cat >>confdefs.h <<_ACEOF
10161 #define ICONV_CONST $am_cv_proto_iconv_arg1
10162 _ACEOF
10163
10164 fi
10165
10166 fi
10167
10168 # Until we have in-tree GNU iconv:
10169 LIBICONV_DEP=
10170
10171
10172
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10174 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10175 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10176 $as_echo_n "(cached) " >&6
10177 else
10178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10179 /* end confdefs.h. */
10180 #include <locale.h>
10181 int
10182 main ()
10183 {
10184 return LC_MESSAGES
10185 ;
10186 return 0;
10187 }
10188 _ACEOF
10189 if ac_fn_c_try_link "$LINENO"; then :
10190 am_cv_val_LC_MESSAGES=yes
10191 else
10192 am_cv_val_LC_MESSAGES=no
10193 fi
10194 rm -f core conftest.err conftest.$ac_objext \
10195 conftest$ac_exeext conftest.$ac_ext
10196 fi
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10198 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10199 if test $am_cv_val_LC_MESSAGES = yes; then
10200
10201 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10202
10203 fi
10204
10205
10206
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10208 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10209 if test "${am_cv_langinfo_codeset+set}" = set; then :
10210 $as_echo_n "(cached) " >&6
10211 else
10212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10213 /* end confdefs.h. */
10214 #include <langinfo.h>
10215 int
10216 main ()
10217 {
10218 char* cs = nl_langinfo(CODESET);
10219 ;
10220 return 0;
10221 }
10222 _ACEOF
10223 if ac_fn_c_try_link "$LINENO"; then :
10224 am_cv_langinfo_codeset=yes
10225 else
10226 am_cv_langinfo_codeset=no
10227 fi
10228 rm -f core conftest.err conftest.$ac_objext \
10229 conftest$ac_exeext conftest.$ac_ext
10230
10231 fi
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10233 $as_echo "$am_cv_langinfo_codeset" >&6; }
10234 if test $am_cv_langinfo_codeset = yes; then
10235
10236 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10237
10238 fi
10239
10240
10241 # We will need to find libiberty.h and ansidecl.h
10242 saved_CFLAGS="$CFLAGS"
10243 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10244 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10245 strsignal strstr strverscmp \
10246 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10247 free basename getopt clock getpagesize clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
10248 do
10249 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10251 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10252 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10253 $as_echo_n "(cached) " >&6
10254 else
10255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10256 /* end confdefs.h. */
10257 #undef $ac_tr_decl
10258 #define $ac_tr_decl 1
10259
10260 #include "ansidecl.h"
10261 #include "system.h"
10262
10263 int
10264 main ()
10265 {
10266 #ifndef $ac_func
10267 char *(*pfn) = (char *(*)) $ac_func ;
10268 #endif
10269 ;
10270 return 0;
10271 }
10272 _ACEOF
10273 if ac_fn_c_try_compile "$LINENO"; then :
10274 eval "gcc_cv_have_decl_$ac_func=yes"
10275 else
10276 eval "gcc_cv_have_decl_$ac_func=no"
10277 fi
10278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10279 fi
10280
10281 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10283 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10284 #define $ac_tr_decl 1
10285 _ACEOF
10286
10287 else
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10289 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10290 #define $ac_tr_decl 0
10291 _ACEOF
10292
10293 fi
10294
10295 done
10296
10297
10298 for ac_func in getrlimit setrlimit getrusage
10299 do
10300 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10302 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10303 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10304 $as_echo_n "(cached) " >&6
10305 else
10306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10307 /* end confdefs.h. */
10308 #undef $ac_tr_decl
10309 #define $ac_tr_decl 1
10310
10311 #include "ansidecl.h"
10312 #include "system.h"
10313 #ifdef HAVE_SYS_RESOURCE_H
10314 #include <sys/resource.h>
10315 #endif
10316
10317
10318 int
10319 main ()
10320 {
10321 #ifndef $ac_func
10322 char *(*pfn) = (char *(*)) $ac_func ;
10323 #endif
10324 ;
10325 return 0;
10326 }
10327 _ACEOF
10328 if ac_fn_c_try_compile "$LINENO"; then :
10329 eval "gcc_cv_have_decl_$ac_func=yes"
10330 else
10331 eval "gcc_cv_have_decl_$ac_func=no"
10332 fi
10333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10334 fi
10335
10336 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10338 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10339 #define $ac_tr_decl 1
10340 _ACEOF
10341
10342 else
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10344 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10345 #define $ac_tr_decl 0
10346 _ACEOF
10347
10348 fi
10349
10350 done
10351
10352
10353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10354 /* end confdefs.h. */
10355
10356 #include "ansidecl.h"
10357 #include "system.h"
10358 #ifdef HAVE_SYS_RESOURCE_H
10359 #include <sys/resource.h>
10360 #endif
10361
10362 int
10363 main ()
10364 {
10365 rlim_t l = 0;
10366 ;
10367 return 0;
10368 }
10369 _ACEOF
10370 if ac_fn_c_try_compile "$LINENO"; then :
10371
10372 else
10373
10374 $as_echo "#define rlim_t long" >>confdefs.h
10375
10376 fi
10377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10378
10379 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10380 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10381 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10382 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10383 for ac_func in ldgetname
10384 do
10385 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10387 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10388 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10389 $as_echo_n "(cached) " >&6
10390 else
10391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10392 /* end confdefs.h. */
10393 #undef $ac_tr_decl
10394 #define $ac_tr_decl 1
10395
10396 #include "ansidecl.h"
10397 #include "system.h"
10398 #ifdef HAVE_LDFCN_H
10399 #undef FREAD
10400 #undef FWRITE
10401 #include <ldfcn.h>
10402 #endif
10403
10404
10405 int
10406 main ()
10407 {
10408 #ifndef $ac_func
10409 char *(*pfn) = (char *(*)) $ac_func ;
10410 #endif
10411 ;
10412 return 0;
10413 }
10414 _ACEOF
10415 if ac_fn_c_try_compile "$LINENO"; then :
10416 eval "gcc_cv_have_decl_$ac_func=yes"
10417 else
10418 eval "gcc_cv_have_decl_$ac_func=no"
10419 fi
10420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10421 fi
10422
10423 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10425 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10426 #define $ac_tr_decl 1
10427 _ACEOF
10428
10429 else
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10431 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10432 #define $ac_tr_decl 0
10433 _ACEOF
10434
10435 fi
10436
10437 done
10438
10439
10440 for ac_func in times
10441 do
10442 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10444 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10445 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10446 $as_echo_n "(cached) " >&6
10447 else
10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449 /* end confdefs.h. */
10450 #undef $ac_tr_decl
10451 #define $ac_tr_decl 1
10452
10453 #include "ansidecl.h"
10454 #include "system.h"
10455 #ifdef HAVE_SYS_TIMES_H
10456 #include <sys/times.h>
10457 #endif
10458
10459
10460 int
10461 main ()
10462 {
10463 #ifndef $ac_func
10464 char *(*pfn) = (char *(*)) $ac_func ;
10465 #endif
10466 ;
10467 return 0;
10468 }
10469 _ACEOF
10470 if ac_fn_c_try_compile "$LINENO"; then :
10471 eval "gcc_cv_have_decl_$ac_func=yes"
10472 else
10473 eval "gcc_cv_have_decl_$ac_func=no"
10474 fi
10475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10476 fi
10477
10478 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10480 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10481 #define $ac_tr_decl 1
10482 _ACEOF
10483
10484 else
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10486 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10487 #define $ac_tr_decl 0
10488 _ACEOF
10489
10490 fi
10491
10492 done
10493
10494
10495 for ac_func in sigaltstack
10496 do
10497 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10499 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10500 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10501 $as_echo_n "(cached) " >&6
10502 else
10503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10504 /* end confdefs.h. */
10505 #undef $ac_tr_decl
10506 #define $ac_tr_decl 1
10507
10508 #include "ansidecl.h"
10509 #include "system.h"
10510 #include <signal.h>
10511
10512
10513 int
10514 main ()
10515 {
10516 #ifndef $ac_func
10517 char *(*pfn) = (char *(*)) $ac_func ;
10518 #endif
10519 ;
10520 return 0;
10521 }
10522 _ACEOF
10523 if ac_fn_c_try_compile "$LINENO"; then :
10524 eval "gcc_cv_have_decl_$ac_func=yes"
10525 else
10526 eval "gcc_cv_have_decl_$ac_func=no"
10527 fi
10528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10529 fi
10530
10531 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10533 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10534 #define $ac_tr_decl 1
10535 _ACEOF
10536
10537 else
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10539 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10540 #define $ac_tr_decl 0
10541 _ACEOF
10542
10543 fi
10544
10545 done
10546
10547
10548 # More time-related stuff.
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10550 $as_echo_n "checking for struct tms... " >&6; }
10551 if test "${ac_cv_struct_tms+set}" = set; then :
10552 $as_echo_n "(cached) " >&6
10553 else
10554
10555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10556 /* end confdefs.h. */
10557
10558 #include "ansidecl.h"
10559 #include "system.h"
10560 #ifdef HAVE_SYS_TIMES_H
10561 #include <sys/times.h>
10562 #endif
10563
10564 int
10565 main ()
10566 {
10567 struct tms tms;
10568 ;
10569 return 0;
10570 }
10571 _ACEOF
10572 if ac_fn_c_try_compile "$LINENO"; then :
10573 ac_cv_struct_tms=yes
10574 else
10575 ac_cv_struct_tms=no
10576 fi
10577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10578 fi
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10580 $as_echo "$ac_cv_struct_tms" >&6; }
10581 if test $ac_cv_struct_tms = yes; then
10582
10583 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10584
10585 fi
10586
10587 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10588 # revisit after autoconf 2.50.
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10590 $as_echo_n "checking for clock_t... " >&6; }
10591 if test "${gcc_cv_type_clock_t+set}" = set; then :
10592 $as_echo_n "(cached) " >&6
10593 else
10594
10595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10596 /* end confdefs.h. */
10597
10598 #include "ansidecl.h"
10599 #include "system.h"
10600
10601 int
10602 main ()
10603 {
10604 clock_t x;
10605 ;
10606 return 0;
10607 }
10608 _ACEOF
10609 if ac_fn_c_try_compile "$LINENO"; then :
10610 gcc_cv_type_clock_t=yes
10611 else
10612 gcc_cv_type_clock_t=no
10613 fi
10614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10615 fi
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10617 $as_echo "$gcc_cv_type_clock_t" >&6; }
10618 if test $gcc_cv_type_clock_t = yes; then
10619
10620 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10621
10622 fi
10623
10624 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10625 CFLAGS="$saved_CFLAGS"
10626
10627 # Check whether --enable-initfini-array was given.
10628 if test "${enable_initfini_array+set}" = set; then :
10629 enableval=$enable_initfini_array;
10630 else
10631
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10633 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10634 if test "${gcc_cv_initfini_array+set}" = set; then :
10635 $as_echo_n "(cached) " >&6
10636 else
10637 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
10638 if test "$cross_compiling" = yes; then :
10639 gcc_cv_initfini_array=no
10640 else
10641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10642 /* end confdefs.h. */
10643
10644 #ifdef __ia64__
10645 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
10646 if it can be used. */
10647 static int x = -1;
10648 int main (void) { return x; }
10649 int foo (void) { x = 0; }
10650 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10651 #else
10652 extern void abort ();
10653 static int count;
10654
10655 static void
10656 init1005 ()
10657 {
10658 if (count != 0)
10659 abort ();
10660 count = 1005;
10661 }
10662 void (*const init_array1005) ()
10663 __attribute__ ((section (".init_array.01005"), aligned (sizeof (void *))))
10664 = { init1005 };
10665 static void
10666 fini1005 ()
10667 {
10668 if (count != 1005)
10669 abort ();
10670 }
10671 void (*const fini_array1005) ()
10672 __attribute__ ((section (".fini_array.01005"), aligned (sizeof (void *))))
10673 = { fini1005 };
10674
10675 static void
10676 ctor1007 ()
10677 {
10678 if (count != 1005)
10679 abort ();
10680 count = 1007;
10681 }
10682 void (*const ctors1007) ()
10683 __attribute__ ((section (".ctors.64528"), aligned (sizeof (void *))))
10684 = { ctor1007 };
10685 static void
10686 dtor1007 ()
10687 {
10688 if (count != 1007)
10689 abort ();
10690 count = 1005;
10691 }
10692 void (*const dtors1007) ()
10693 __attribute__ ((section (".dtors.64528"), aligned (sizeof (void *))))
10694 = { dtor1007 };
10695
10696 static void
10697 init65530 ()
10698 {
10699 if (count != 1007)
10700 abort ();
10701 count = 65530;
10702 }
10703 void (*const init_array65530) ()
10704 __attribute__ ((section (".init_array.65530"), aligned (sizeof (void *))))
10705 = { init65530 };
10706 static void
10707 fini65530 ()
10708 {
10709 if (count != 65530)
10710 abort ();
10711 count = 1007;
10712 }
10713 void (*const fini_array65530) ()
10714 __attribute__ ((section (".fini_array.65530"), aligned (sizeof (void *))))
10715 = { fini65530 };
10716
10717 static void
10718 ctor65535 ()
10719 {
10720 if (count != 65530)
10721 abort ();
10722 count = 65535;
10723 }
10724 void (*const ctors65535) ()
10725 __attribute__ ((section (".ctors"), aligned (sizeof (void *))))
10726 = { ctor65535 };
10727 static void
10728 dtor65535 ()
10729 {
10730 if (count != 65535)
10731 abort ();
10732 count = 65530;
10733 }
10734 void (*const dtors65535) ()
10735 __attribute__ ((section (".dtors"), aligned (sizeof (void *))))
10736 = { dtor65535 };
10737
10738 int
10739 main ()
10740 {
10741 return 0;
10742 }
10743 #endif
10744
10745 _ACEOF
10746 if ac_fn_c_try_run "$LINENO"; then :
10747 gcc_cv_initfini_array=yes
10748 else
10749 gcc_cv_initfini_array=no
10750 fi
10751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10752 conftest.$ac_objext conftest.beam conftest.$ac_ext
10753 fi
10754
10755 else
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
10757 $as_echo_n "checking cross compile... guessing... " >&6; }
10758 gcc_cv_initfini_array=no
10759 fi
10760 fi
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10762 $as_echo "$gcc_cv_initfini_array" >&6; }
10763 enable_initfini_array=$gcc_cv_initfini_array
10764
10765 fi
10766
10767 if test $enable_initfini_array = yes; then
10768
10769 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10770
10771 fi
10772
10773 # mkdir takes a single argument on some systems.
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10775 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10776 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10777 $as_echo_n "(cached) " >&6
10778 else
10779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10780 /* end confdefs.h. */
10781
10782 #include <sys/types.h>
10783 #ifdef HAVE_SYS_STAT_H
10784 # include <sys/stat.h>
10785 #endif
10786 #ifdef HAVE_UNISTD_H
10787 # include <unistd.h>
10788 #endif
10789 #ifdef HAVE_DIRECT_H
10790 # include <direct.h>
10791 #endif
10792 int
10793 main ()
10794 {
10795 mkdir ("foo", 0);
10796 ;
10797 return 0;
10798 }
10799 _ACEOF
10800 if ac_fn_c_try_compile "$LINENO"; then :
10801 gcc_cv_mkdir_takes_one_arg=no
10802 else
10803 gcc_cv_mkdir_takes_one_arg=yes
10804 fi
10805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10806 fi
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10808 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10809 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10810
10811 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10812
10813 fi
10814
10815
10816 # File extensions
10817 manext='.1'
10818 objext='.o'
10819
10820
10821
10822 # With Setjmp/Longjmp based exception handling.
10823 # Check whether --enable-sjlj-exceptions was given.
10824 if test "${enable_sjlj_exceptions+set}" = set; then :
10825 enableval=$enable_sjlj_exceptions; case $target in
10826 *-*-hpux10*)
10827 if test $enableval != yes; then
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10829 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10830 enableval=yes
10831 fi
10832 ;;
10833 esac
10834 force_sjlj_exceptions=yes
10835 else
10836 case $target in
10837 *-*-hpux10*)
10838 force_sjlj_exceptions=yes
10839 enableval=yes
10840 ;;
10841 *)
10842 force_sjlj_exceptions=no
10843 ;;
10844 esac
10845 fi
10846
10847 if test $force_sjlj_exceptions = yes; then
10848 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10849
10850 cat >>confdefs.h <<_ACEOF
10851 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10852 _ACEOF
10853
10854 fi
10855
10856 # --------------------------------------------------------
10857 # Build, host, and target specific configuration fragments
10858 # --------------------------------------------------------
10859
10860 # Collect build-machine-specific information.
10861 . ${srcdir}/config.build
10862
10863 # Collect host-machine-specific information.
10864 . ${srcdir}/config.host
10865
10866 target_gtfiles=
10867
10868 # Collect target-machine-specific information.
10869 . ${srcdir}/config.gcc
10870
10871 extra_objs="${host_extra_objs} ${extra_objs}"
10872 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10873
10874 # Default the target-machine variables that were not explicitly set.
10875 if test x"$tm_file" = x
10876 then tm_file=$cpu_type/$cpu_type.h; fi
10877
10878 if test x"$extra_headers" = x
10879 then extra_headers=; fi
10880
10881 if test x$md_file = x
10882 then md_file=$cpu_type/$cpu_type.md; fi
10883
10884 if test x$out_file = x
10885 then out_file=$cpu_type/$cpu_type.c; fi
10886
10887 if test x"$tmake_file" = x
10888 then tmake_file=$cpu_type/t-$cpu_type
10889 fi
10890
10891 if test x"$dwarf2" = xyes
10892 then tm_file="$tm_file tm-dwarf2.h"
10893 fi
10894
10895 # Say what files are being used for the output code and MD file.
10896 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10897 echo "Using \`$srcdir/config/$md_file' as machine description file."
10898
10899 # If any of the xm_file variables contain nonexistent files, warn
10900 # about them and drop them.
10901
10902 bx=
10903 for x in $build_xm_file; do
10904 if test -f $srcdir/config/$x
10905 then bx="$bx $x"
10906 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10907 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10908 fi
10909 done
10910 build_xm_file="$bx"
10911
10912 hx=
10913 for x in $host_xm_file; do
10914 if test -f $srcdir/config/$x
10915 then hx="$hx $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 host_xm_file="$hx"
10921
10922 tx=
10923 for x in $xm_file; do
10924 if test -f $srcdir/config/$x
10925 then tx="$tx $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 xm_file="$tx"
10931
10932 count=a
10933 for f in $tm_file; do
10934 count=${count}x
10935 done
10936 if test $count = ax; then
10937 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10938 else
10939 echo "Using the following target machine macro files:"
10940 for f in $tm_file; do
10941 echo " $srcdir/config/$f"
10942 done
10943 fi
10944
10945 if test x$need_64bit_hwint = xyes; then
10946
10947 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10948
10949 fi
10950
10951 if test x$use_long_long_for_widest_fast_int = xyes; then
10952
10953 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10954
10955 fi
10956
10957 count=a
10958 for f in $host_xm_file; do
10959 count=${count}x
10960 done
10961 if test $count = a; then
10962 :
10963 elif test $count = ax; then
10964 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10965 else
10966 echo "Using the following host machine macro files:"
10967 for f in $host_xm_file; do
10968 echo " $srcdir/config/$f"
10969 done
10970 fi
10971 echo "Using ${out_host_hook_obj} for host machine hooks."
10972
10973 if test "$host_xm_file" != "$build_xm_file"; then
10974 count=a
10975 for f in $build_xm_file; do
10976 count=${count}x
10977 done
10978 if test $count = a; then
10979 :
10980 elif test $count = ax; then
10981 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10982 else
10983 echo "Using the following build machine macro files:"
10984 for f in $build_xm_file; do
10985 echo " $srcdir/config/$f"
10986 done
10987 fi
10988 fi
10989
10990 case ${host} in
10991 powerpc*-*-darwin*)
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10993 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10994 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10995 $as_echo_n "(cached) " >&6
10996 else
10997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10998 /* end confdefs.h. */
10999
11000 #include <sys/cdefs.h>
11001 #include <sys/signal.h>
11002 #include <ucontext.h>
11003 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11004
11005 _ACEOF
11006 if ac_fn_c_try_compile "$LINENO"; then :
11007 gcc_cv_mcontext_underscores=no
11008 else
11009 gcc_cv_mcontext_underscores=yes
11010 fi
11011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11012 fi
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11014 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11015 if test $gcc_cv_mcontext_underscores = yes; then
11016
11017 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11018
11019 fi
11020 ;;
11021 esac
11022
11023 # ---------
11024 # Threading
11025 # ---------
11026
11027 # Check if a valid thread package
11028 case ${enable_threads} in
11029 "" | no)
11030 # No threads
11031 target_thread_file='single'
11032 ;;
11033 yes)
11034 # default
11035 target_thread_file='single'
11036 ;;
11037 aix | dce | lynx | mipssde | posix | posix95 | rtems | \
11038 single | tpf | vxworks | win32)
11039 target_thread_file=${enable_threads}
11040 ;;
11041 *)
11042 echo "${enable_threads} is an unknown thread package" 1>&2
11043 exit 1
11044 ;;
11045 esac
11046
11047 if test x${thread_file} = x; then
11048 # No thread file set by target-specific clauses in config.gcc,
11049 # so use file chosen by default logic above
11050 thread_file=${target_thread_file}
11051 fi
11052
11053 # Make gthr-default.h if we have a thread file.
11054 gthread_flags=
11055 if test $thread_file != single; then
11056 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
11057 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
11058 rm -f gthr-default.h-t
11059 else
11060 mv -f gthr-default.h-t gthr-default.h
11061 fi
11062 gthread_flags=-DHAVE_GTHR_DEFAULT
11063 fi
11064
11065
11066 # --------
11067 # UNSORTED
11068 # --------
11069
11070 use_cxa_atexit=no
11071 if test x$enable___cxa_atexit = xyes || \
11072 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11073 if test x$host = x$target; then
11074 case $host in
11075 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11076 # keyed to flag_use_cxa_atexit
11077 *-*-mingw32*)
11078 use_cxa_atexit=yes
11079 ;;
11080 *)
11081 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11082 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11083 use_cxa_atexit=yes
11084 else
11085 echo "__cxa_atexit can't be enabled on this target"
11086 fi
11087
11088 ;;
11089 esac
11090 else
11091 # We can't check for __cxa_atexit when building a cross, so assume
11092 # it is available
11093 use_cxa_atexit=yes
11094 fi
11095 if test x$use_cxa_atexit = xyes; then
11096
11097 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11098
11099 fi
11100 fi
11101
11102 # Look for a file containing extra machine modes.
11103 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11104 extra_modes_file='$(srcdir)'/config/${extra_modes}
11105
11106
11107 cat >>confdefs.h <<_ACEOF
11108 #define EXTRA_MODES_FILE "config/$extra_modes"
11109 _ACEOF
11110
11111 fi
11112
11113 # Convert extra_options into a form suitable for Makefile use.
11114 extra_opt_files=
11115 all_opt_files=
11116 for f in $extra_options; do
11117 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11118 all_opt_files="$all_opt_files $srcdir/config/$f"
11119 done
11120
11121
11122 # auto-host.h is the file containing items generated by autoconf and is
11123 # the first file included by config.h.
11124 # If host=build, it is correct to have bconfig include auto-host.h
11125 # as well. If host!=build, we are in error and need to do more
11126 # work to find out the build config parameters.
11127 if test x$host = x$build
11128 then
11129 build_auto=auto-host.h
11130 else
11131 # We create a subdir, then run autoconf in the subdir.
11132 # To prevent recursion we set host and build for the new
11133 # invocation of configure to the build for this invocation
11134 # of configure.
11135 tempdir=build.$$
11136 rm -rf $tempdir
11137 mkdir $tempdir
11138 cd $tempdir
11139 case ${srcdir} in
11140 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11141 *) realsrcdir=../${srcdir};;
11142 esac
11143 saved_CFLAGS="${CFLAGS}"
11144 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11145 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11146 ${realsrcdir}/configure \
11147 --enable-languages=${enable_languages-all} \
11148 --target=$target_alias --host=$build_alias --build=$build_alias
11149 CFLAGS="${saved_CFLAGS}"
11150
11151 # We just finished tests for the build machine, so rename
11152 # the file auto-build.h in the gcc directory.
11153 mv auto-host.h ../auto-build.h
11154 cd ..
11155 rm -rf $tempdir
11156 build_auto=auto-build.h
11157 fi
11158
11159
11160 tm_file="${tm_file} defaults.h"
11161 tm_p_file="${tm_p_file} tm-preds.h"
11162 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11163 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11164 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11165 # put this back in temporarily.
11166 xm_file="auto-host.h ansidecl.h ${xm_file}"
11167
11168 # --------
11169 # UNSORTED
11170 # --------
11171
11172 # Compile in configure arguments.
11173 if test -f configargs.h ; then
11174 # Being re-configured.
11175 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11176 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11177 else
11178 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11179 fi
11180
11181 # Double all backslashes and backslash all quotes to turn
11182 # gcc_config_arguments into a C string.
11183 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11184 $gcc_config_arguments
11185 EOF
11186 gcc_config_arguments_str=`cat conftest.out`
11187 rm -f conftest.out
11188
11189 cat > configargs.h <<EOF
11190 /* Generated automatically. */
11191 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11192 static const char thread_model[] = "$thread_file";
11193
11194 static const struct {
11195 const char *name, *value;
11196 } configure_default_options[] = $configure_default_options;
11197 EOF
11198
11199 gcc_BASEVER=`cat $srcdir/BASE-VER`
11200 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11201 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11202 if test -f $srcdir/REVISION ; then
11203 gcc_REVISION=`cat $srcdir/REVISION`
11204 else
11205 gcc_REVISION=""
11206 fi
11207 cat > plugin-version.h <<EOF
11208 #include "configargs.h"
11209
11210 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11211 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11212 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11213 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11214
11215 static char basever[] = "$gcc_BASEVER";
11216 static char datestamp[] = "$gcc_DATESTAMP";
11217 static char devphase[] = "$gcc_DEVPHASE";
11218 static char revision[] = "$gcc_REVISION";
11219
11220 /* FIXME plugins: We should make the version information more precise.
11221 One way to do is to add a checksum. */
11222
11223 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11224 devphase, revision,
11225 configuration_arguments};
11226 EOF
11227
11228 # Internationalization
11229 # If we haven't got the data from the intl directory,
11230 # assume NLS is disabled.
11231 USE_NLS=no
11232 LIBINTL=
11233 LIBINTL_DEP=
11234 INCINTL=
11235 XGETTEXT=
11236 GMSGFMT=
11237 POSUB=
11238
11239 if test -f ../intl/config.intl; then
11240 . ../intl/config.intl
11241 fi
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11243 $as_echo_n "checking whether NLS is requested... " >&6; }
11244 if test x"$USE_NLS" != xyes; then
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11246 $as_echo "no" >&6; }
11247 else
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11249 $as_echo "yes" >&6; }
11250
11251 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11252
11253
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11255 $as_echo_n "checking for catalogs to be installed... " >&6; }
11256 # Look for .po and .gmo files in the source directory.
11257 CATALOGS=
11258 XLINGUAS=
11259 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11260 # If there aren't any .gmo files the shell will give us the
11261 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11262 # weeded out.
11263 case "$cat" in *\**)
11264 continue;;
11265 esac
11266 # The quadruple backslash is collapsed to a double backslash
11267 # by the backticks, then collapsed again by the double quotes,
11268 # leaving us with one backslash in the sed expression (right
11269 # before the dot that mustn't act as a wildcard).
11270 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11271 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11272 # The user is allowed to set LINGUAS to a list of languages to
11273 # install catalogs for. If it's empty that means "all of them."
11274 if test "x$LINGUAS" = x; then
11275 CATALOGS="$CATALOGS $cat"
11276 XLINGUAS="$XLINGUAS $lang"
11277 else
11278 case "$LINGUAS" in *$lang*)
11279 CATALOGS="$CATALOGS $cat"
11280 XLINGUAS="$XLINGUAS $lang"
11281 ;;
11282 esac
11283 fi
11284 done
11285 LINGUAS="$XLINGUAS"
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11287 $as_echo "$LINGUAS" >&6; }
11288
11289
11290 DATADIRNAME=share
11291
11292 INSTOBJEXT=.mo
11293
11294 GENCAT=gencat
11295
11296 CATOBJEXT=.gmo
11297
11298 fi
11299
11300 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11301 # -liconv on the link line twice.
11302 case "$LIBINTL" in *$LIBICONV*)
11303 LIBICONV= ;;
11304 esac
11305
11306 # Check whether --enable-secureplt was given.
11307 if test "${enable_secureplt+set}" = set; then :
11308 enableval=$enable_secureplt;
11309 fi
11310
11311
11312 # Check whether --enable-leading-mingw64-underscores was given.
11313 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11314 enableval=$enable_leading_mingw64_underscores;
11315 fi
11316
11317 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11318
11319 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11320
11321 fi
11322
11323 # Check whether --enable-cld was given.
11324 if test "${enable_cld+set}" = set; then :
11325 enableval=$enable_cld;
11326 else
11327 enable_cld=no
11328 fi
11329
11330
11331 # Check whether --enable-frame-pointer was given.
11332 if test "${enable_frame_pointer+set}" = set; then :
11333 enableval=$enable_frame_pointer;
11334 else
11335
11336 case $target_os in
11337 linux* | darwin[8912]*)
11338 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11339 # DWARF2.
11340 enable_frame_pointer=no
11341 ;;
11342 *)
11343 enable_frame_pointer=yes
11344 ;;
11345 esac
11346
11347 fi
11348
11349
11350 # Windows32 Registry support for specifying GCC installation paths.
11351 # Check whether --enable-win32-registry was given.
11352 if test "${enable_win32_registry+set}" = set; then :
11353 enableval=$enable_win32_registry;
11354 fi
11355
11356
11357 case $host_os in
11358 win32 | pe | cygwin* | mingw32* | uwin*)
11359 if test "x$enable_win32_registry" != xno; then
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11361 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11362 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11363 $as_echo_n "(cached) " >&6
11364 else
11365 ac_func_search_save_LIBS=$LIBS
11366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11367 /* end confdefs.h. */
11368
11369 /* Override any GCC internal prototype to avoid an error.
11370 Use char because int might match the return type of a GCC
11371 builtin and then its argument prototype would still apply. */
11372 #ifdef __cplusplus
11373 extern "C"
11374 #endif
11375 char RegOpenKeyExA ();
11376 int
11377 main ()
11378 {
11379 return RegOpenKeyExA ();
11380 ;
11381 return 0;
11382 }
11383 _ACEOF
11384 for ac_lib in '' advapi32; do
11385 if test -z "$ac_lib"; then
11386 ac_res="none required"
11387 else
11388 ac_res=-l$ac_lib
11389 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11390 fi
11391 if ac_fn_c_try_link "$LINENO"; then :
11392 ac_cv_search_RegOpenKeyExA=$ac_res
11393 fi
11394 rm -f core conftest.err conftest.$ac_objext \
11395 conftest$ac_exeext
11396 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11397 break
11398 fi
11399 done
11400 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11401
11402 else
11403 ac_cv_search_RegOpenKeyExA=no
11404 fi
11405 rm conftest.$ac_ext
11406 LIBS=$ac_func_search_save_LIBS
11407 fi
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11409 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11410 ac_res=$ac_cv_search_RegOpenKeyExA
11411 if test "$ac_res" != no; then :
11412 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11413
11414 else
11415 enable_win32_registry=no
11416 fi
11417
11418 fi
11419
11420 if test "x$enable_win32_registry" != xno; then
11421
11422 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11423
11424
11425 if test "x$enable_win32_registry" != xyes \
11426 && test "x$enable_win32_registry" != x; then
11427
11428 cat >>confdefs.h <<_ACEOF
11429 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11430 _ACEOF
11431
11432 fi
11433 fi
11434 ;;
11435 esac
11436
11437 # Get an absolute path to the GCC top-level source directory
11438 holddir=`${PWDCMD-pwd}`
11439 cd $srcdir
11440 topdir=`${PWDCMD-pwd}`
11441 cd $holddir
11442
11443 # Conditionalize the makefile for this host machine.
11444 xmake_file=
11445 for f in ${host_xmake_file}
11446 do
11447 if test -f ${srcdir}/config/$f
11448 then
11449 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11450 fi
11451 done
11452
11453 # Conditionalize the makefile for this target machine.
11454 tmake_file_=
11455 for f in ${tmake_file}
11456 do
11457 if test -f ${srcdir}/config/$f
11458 then
11459 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11460 fi
11461 done
11462 tmake_file="${tmake_file_}"
11463
11464 out_object_file=`basename $out_file .c`.o
11465 common_out_object_file=`basename $common_out_file .c`.o
11466
11467 tm_file_list="options.h"
11468 tm_include_list="options.h insn-constants.h"
11469 for f in $tm_file; do
11470 case $f in
11471 ./* )
11472 f=`echo $f | sed 's/^..//'`
11473 tm_file_list="${tm_file_list} $f"
11474 tm_include_list="${tm_include_list} $f"
11475 ;;
11476 defaults.h )
11477 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11478 tm_include_list="${tm_include_list} $f"
11479 ;;
11480 * )
11481 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11482 tm_include_list="${tm_include_list} config/$f"
11483 ;;
11484 esac
11485 done
11486
11487 libgcc_tm_file_list=
11488 libgcc_tm_include_list=
11489 for f in $libgcc_tm_file; do
11490 libgcc_tm_file_list="${libgcc_tm_file_list} \$(srcdir)/../libgcc/config/$f"
11491 libgcc_tm_include_list="${libgcc_tm_include_list} ../libgcc/config/$f"
11492 done
11493
11494 tm_p_file_list=
11495 tm_p_include_list=
11496 for f in $tm_p_file; do
11497 case $f in
11498 tm-preds.h )
11499 tm_p_file_list="${tm_p_file_list} $f"
11500 tm_p_include_list="${tm_p_include_list} $f"
11501 ;;
11502 * )
11503 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11504 tm_p_include_list="${tm_p_include_list} config/$f"
11505 esac
11506 done
11507
11508 xm_file_list=
11509 xm_include_list=
11510 for f in $xm_file; do
11511 case $f in
11512 ansidecl.h )
11513 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11514 xm_include_list="${xm_include_list} $f"
11515 ;;
11516 auto-host.h )
11517 xm_file_list="${xm_file_list} $f"
11518 xm_include_list="${xm_include_list} $f"
11519 ;;
11520 * )
11521 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11522 xm_include_list="${xm_include_list} config/$f"
11523 ;;
11524 esac
11525 done
11526
11527 host_xm_file_list=
11528 host_xm_include_list=
11529 for f in $host_xm_file; do
11530 case $f in
11531 ansidecl.h )
11532 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11533 host_xm_include_list="${host_xm_include_list} $f"
11534 ;;
11535 auto-host.h )
11536 host_xm_file_list="${host_xm_file_list} $f"
11537 host_xm_include_list="${host_xm_include_list} $f"
11538 ;;
11539 * )
11540 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11541 host_xm_include_list="${host_xm_include_list} config/$f"
11542 ;;
11543 esac
11544 done
11545
11546 build_xm_file_list=
11547 for f in $build_xm_file; do
11548 case $f in
11549 ansidecl.h )
11550 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11551 build_xm_include_list="${build_xm_include_list} $f"
11552 ;;
11553 auto-build.h | auto-host.h )
11554 build_xm_file_list="${build_xm_file_list} $f"
11555 build_xm_include_list="${build_xm_include_list} $f"
11556 ;;
11557 * )
11558 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11559 build_xm_include_list="${build_xm_include_list} config/$f"
11560 ;;
11561 esac
11562 done
11563
11564 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11565 # cross-compiler which does not use the native headers and libraries.
11566 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11567 CROSS=
11568 ALL=all.internal
11569 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11570
11571 if test "x$with_build_sysroot" != x; then
11572 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11573 else
11574 # This value is used, even on a native system, because
11575 # CROSS_SYSTEM_HEADER_DIR is just
11576 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11577 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11578 fi
11579
11580 if test x$host != x$target
11581 then
11582 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11583 ALL=all.cross
11584 SYSTEM_HEADER_DIR=$build_system_header_dir
11585 case "$host","$target" in
11586 # Darwin crosses can use the host system's libraries and headers,
11587 # because of the fat library support. Of course, it must be the
11588 # same version of Darwin on both sides. Allow the user to
11589 # just say --target=foo-darwin without a version number to mean
11590 # "the version on this system".
11591 *-*-darwin*,*-*-darwin*)
11592 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11593 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11594 if test $hostos = $targetos -o $targetos = darwin ; then
11595 CROSS=
11596 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11597 with_headers=yes
11598 fi
11599 ;;
11600
11601 i?86-*-*,x86_64-*-* \
11602 | powerpc*-*-*,powerpc64*-*-*)
11603 CROSS="$CROSS -DNATIVE_CROSS" ;;
11604 esac
11605
11606 case $target in
11607 *-*-mingw*)
11608 if test "x$with_headers" = x; then
11609 with_headers=yes
11610 fi
11611 ;;
11612 *)
11613 ;;
11614 esac
11615 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11616 SYSTEM_HEADER_DIR=$build_system_header_dir
11617 fi
11618
11619 # If this is a cross-compiler that does not
11620 # have its own set of headers then define
11621 # inhibit_libc
11622
11623 # If this is using newlib, without having the headers available now,
11624 # then define inhibit_libc in LIBGCC2_CFLAGS.
11625 # This prevents libgcc2 from containing any code which requires libc
11626 # support.
11627 : ${inhibit_libc=false}
11628 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11629 test x$with_newlib = xyes ; } &&
11630 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11631 inhibit_libc=true
11632 fi
11633
11634
11635 # When building gcc with a cross-compiler, we need to adjust things so
11636 # that the generator programs are still built with the native compiler.
11637 # Also, we cannot run fixincludes.
11638
11639 # These are the normal (build=host) settings:
11640 CC_FOR_BUILD='$(CC)'
11641 BUILD_CFLAGS='$(ALL_CFLAGS)'
11642 BUILD_LDFLAGS='$(LDFLAGS)'
11643 STMP_FIXINC=stmp-fixinc
11644
11645 # And these apply if build != host, or we are generating coverage data
11646 if test x$build != x$host || test "x$coverage_flags" != x
11647 then
11648 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11649 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11650 fi
11651
11652 # Expand extra_headers to include complete path.
11653 # This substitutes for lots of t-* files.
11654 extra_headers_list=
11655 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11656 for file in ${extra_headers} ; do
11657 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11658 done
11659
11660 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11661 if test x"$use_gcc_tgmath" = xyes
11662 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11663 fi
11664
11665 # Define collect2 in Makefile.
11666 case $host_can_use_collect2 in
11667 no) collect2= ;;
11668 *) collect2='collect2$(exeext)' ;;
11669 esac
11670
11671
11672 # Add a definition of USE_COLLECT2 if system wants one.
11673 case $use_collect2 in
11674 no) use_collect2= ;;
11675 "") ;;
11676 *)
11677 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11678 xm_defines="${xm_defines} USE_COLLECT2"
11679 case $host_can_use_collect2 in
11680 no)
11681 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11682 ;;
11683 esac
11684 ;;
11685 esac
11686
11687
11688 cat >>confdefs.h <<_ACEOF
11689 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11690 _ACEOF
11691
11692
11693 # ---------------------------
11694 # Assembler & linker features
11695 # ---------------------------
11696
11697 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11698 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11699 # However when ld-new is first executed from the build tree, libtool will
11700 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11701 # to the build tree. While doing this we need to use the previous-stage
11702 # linker, or we have an infinite loop. The presence of a shell script as
11703 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11704 # the gcc/collect-ld script. So we need to know how libtool works, or
11705 # exec-tool will fail.
11706
11707
11708 case `pwd` in
11709 *\ * | *\ *)
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11711 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11712 esac
11713
11714
11715
11716 macro_version='2.2.7a'
11717 macro_revision='1.3134'
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731 ltmain="$ac_aux_dir/ltmain.sh"
11732
11733 # Backslashify metacharacters that are still active within
11734 # double-quoted strings.
11735 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11736
11737 # Same as above, but do not quote variable references.
11738 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11739
11740 # Sed substitution to delay expansion of an escaped shell variable in a
11741 # double_quote_subst'ed string.
11742 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11743
11744 # Sed substitution to delay expansion of an escaped single quote.
11745 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11746
11747 # Sed substitution to avoid accidental globbing in evaled expressions
11748 no_glob_subst='s/\*/\\\*/g'
11749
11750 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11751 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11752 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11753
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11755 $as_echo_n "checking how to print strings... " >&6; }
11756 # Test print first, because it will be a builtin if present.
11757 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11758 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11759 ECHO='print -r --'
11760 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11761 ECHO='printf %s\n'
11762 else
11763 # Use this function as a fallback that always works.
11764 func_fallback_echo ()
11765 {
11766 eval 'cat <<_LTECHO_EOF
11767 $1
11768 _LTECHO_EOF'
11769 }
11770 ECHO='func_fallback_echo'
11771 fi
11772
11773 # func_echo_all arg...
11774 # Invoke $ECHO with all args, space-separated.
11775 func_echo_all ()
11776 {
11777 $ECHO ""
11778 }
11779
11780 case "$ECHO" in
11781 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11782 $as_echo "printf" >&6; } ;;
11783 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11784 $as_echo "print -r" >&6; } ;;
11785 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11786 $as_echo "cat" >&6; } ;;
11787 esac
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11803 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11804 if test "${ac_cv_path_SED+set}" = set; then :
11805 $as_echo_n "(cached) " >&6
11806 else
11807 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11808 for ac_i in 1 2 3 4 5 6 7; do
11809 ac_script="$ac_script$as_nl$ac_script"
11810 done
11811 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11812 { ac_script=; unset ac_script;}
11813 if test -z "$SED"; then
11814 ac_path_SED_found=false
11815 # Loop through the user's path and test for each of PROGNAME-LIST
11816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11817 for as_dir in $PATH
11818 do
11819 IFS=$as_save_IFS
11820 test -z "$as_dir" && as_dir=.
11821 for ac_prog in sed gsed; do
11822 for ac_exec_ext in '' $ac_executable_extensions; do
11823 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11824 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11825 # Check for GNU ac_path_SED and select it if it is found.
11826 # Check for GNU $ac_path_SED
11827 case `"$ac_path_SED" --version 2>&1` in
11828 *GNU*)
11829 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11830 *)
11831 ac_count=0
11832 $as_echo_n 0123456789 >"conftest.in"
11833 while :
11834 do
11835 cat "conftest.in" "conftest.in" >"conftest.tmp"
11836 mv "conftest.tmp" "conftest.in"
11837 cp "conftest.in" "conftest.nl"
11838 $as_echo '' >> "conftest.nl"
11839 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11840 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11841 as_fn_arith $ac_count + 1 && ac_count=$as_val
11842 if test $ac_count -gt ${ac_path_SED_max-0}; then
11843 # Best one so far, save it but keep looking for a better one
11844 ac_cv_path_SED="$ac_path_SED"
11845 ac_path_SED_max=$ac_count
11846 fi
11847 # 10*(2^10) chars as input seems more than enough
11848 test $ac_count -gt 10 && break
11849 done
11850 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11851 esac
11852
11853 $ac_path_SED_found && break 3
11854 done
11855 done
11856 done
11857 IFS=$as_save_IFS
11858 if test -z "$ac_cv_path_SED"; then
11859 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11860 fi
11861 else
11862 ac_cv_path_SED=$SED
11863 fi
11864
11865 fi
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11867 $as_echo "$ac_cv_path_SED" >&6; }
11868 SED="$ac_cv_path_SED"
11869 rm -f conftest.sed
11870
11871 test -z "$SED" && SED=sed
11872 Xsed="$SED -e 1s/^X//"
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11885 $as_echo_n "checking for fgrep... " >&6; }
11886 if test "${ac_cv_path_FGREP+set}" = set; then :
11887 $as_echo_n "(cached) " >&6
11888 else
11889 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11890 then ac_cv_path_FGREP="$GREP -F"
11891 else
11892 if test -z "$FGREP"; then
11893 ac_path_FGREP_found=false
11894 # Loop through the user's path and test for each of PROGNAME-LIST
11895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11896 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11897 do
11898 IFS=$as_save_IFS
11899 test -z "$as_dir" && as_dir=.
11900 for ac_prog in fgrep; do
11901 for ac_exec_ext in '' $ac_executable_extensions; do
11902 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11903 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11904 # Check for GNU ac_path_FGREP and select it if it is found.
11905 # Check for GNU $ac_path_FGREP
11906 case `"$ac_path_FGREP" --version 2>&1` in
11907 *GNU*)
11908 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11909 *)
11910 ac_count=0
11911 $as_echo_n 0123456789 >"conftest.in"
11912 while :
11913 do
11914 cat "conftest.in" "conftest.in" >"conftest.tmp"
11915 mv "conftest.tmp" "conftest.in"
11916 cp "conftest.in" "conftest.nl"
11917 $as_echo 'FGREP' >> "conftest.nl"
11918 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11919 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11920 as_fn_arith $ac_count + 1 && ac_count=$as_val
11921 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11922 # Best one so far, save it but keep looking for a better one
11923 ac_cv_path_FGREP="$ac_path_FGREP"
11924 ac_path_FGREP_max=$ac_count
11925 fi
11926 # 10*(2^10) chars as input seems more than enough
11927 test $ac_count -gt 10 && break
11928 done
11929 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11930 esac
11931
11932 $ac_path_FGREP_found && break 3
11933 done
11934 done
11935 done
11936 IFS=$as_save_IFS
11937 if test -z "$ac_cv_path_FGREP"; then
11938 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11939 fi
11940 else
11941 ac_cv_path_FGREP=$FGREP
11942 fi
11943
11944 fi
11945 fi
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11947 $as_echo "$ac_cv_path_FGREP" >&6; }
11948 FGREP="$ac_cv_path_FGREP"
11949
11950
11951 test -z "$GREP" && GREP=grep
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971 # Check whether --with-gnu-ld was given.
11972 if test "${with_gnu_ld+set}" = set; then :
11973 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11974 else
11975 with_gnu_ld=no
11976 fi
11977
11978 ac_prog=ld
11979 if test "$GCC" = yes; then
11980 # Check if gcc -print-prog-name=ld gives a path.
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11982 $as_echo_n "checking for ld used by $CC... " >&6; }
11983 case $host in
11984 *-*-mingw*)
11985 # gcc leaves a trailing carriage return which upsets mingw
11986 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11987 *)
11988 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11989 esac
11990 case $ac_prog in
11991 # Accept absolute paths.
11992 [\\/]* | ?:[\\/]*)
11993 re_direlt='/[^/][^/]*/\.\./'
11994 # Canonicalize the pathname of ld
11995 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11996 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11997 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11998 done
11999 test -z "$LD" && LD="$ac_prog"
12000 ;;
12001 "")
12002 # If it fails, then pretend we aren't using GCC.
12003 ac_prog=ld
12004 ;;
12005 *)
12006 # If it is relative, then search for the first ld in PATH.
12007 with_gnu_ld=unknown
12008 ;;
12009 esac
12010 elif test "$with_gnu_ld" = yes; then
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12012 $as_echo_n "checking for GNU ld... " >&6; }
12013 else
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12015 $as_echo_n "checking for non-GNU ld... " >&6; }
12016 fi
12017 if test "${lt_cv_path_LD+set}" = set; then :
12018 $as_echo_n "(cached) " >&6
12019 else
12020 if test -z "$LD"; then
12021 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12022 for ac_dir in $PATH; do
12023 IFS="$lt_save_ifs"
12024 test -z "$ac_dir" && ac_dir=.
12025 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12026 lt_cv_path_LD="$ac_dir/$ac_prog"
12027 # Check to see if the program is GNU ld. I'd rather use --version,
12028 # but apparently some variants of GNU ld only accept -v.
12029 # Break only if it was the GNU/non-GNU ld that we prefer.
12030 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12031 *GNU* | *'with BFD'*)
12032 test "$with_gnu_ld" != no && break
12033 ;;
12034 *)
12035 test "$with_gnu_ld" != yes && break
12036 ;;
12037 esac
12038 fi
12039 done
12040 IFS="$lt_save_ifs"
12041 else
12042 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12043 fi
12044 fi
12045
12046 LD="$lt_cv_path_LD"
12047 if test -n "$LD"; then
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12049 $as_echo "$LD" >&6; }
12050 else
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12052 $as_echo "no" >&6; }
12053 fi
12054 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12056 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12057 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12058 $as_echo_n "(cached) " >&6
12059 else
12060 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12061 case `$LD -v 2>&1 </dev/null` in
12062 *GNU* | *'with BFD'*)
12063 lt_cv_prog_gnu_ld=yes
12064 ;;
12065 *)
12066 lt_cv_prog_gnu_ld=no
12067 ;;
12068 esac
12069 fi
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12071 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12072 with_gnu_ld=$lt_cv_prog_gnu_ld
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12083 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12084 if test "${lt_cv_path_NM+set}" = set; then :
12085 $as_echo_n "(cached) " >&6
12086 else
12087 if test -n "$NM"; then
12088 # Let the user override the test.
12089 lt_cv_path_NM="$NM"
12090 else
12091 lt_nm_to_check="${ac_tool_prefix}nm"
12092 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12093 lt_nm_to_check="$lt_nm_to_check nm"
12094 fi
12095 for lt_tmp_nm in $lt_nm_to_check; do
12096 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12097 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12098 IFS="$lt_save_ifs"
12099 test -z "$ac_dir" && ac_dir=.
12100 tmp_nm="$ac_dir/$lt_tmp_nm"
12101 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12102 # Check to see if the nm accepts a BSD-compat flag.
12103 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12104 # nm: unknown option "B" ignored
12105 # Tru64's nm complains that /dev/null is an invalid object file
12106 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12107 */dev/null* | *'Invalid file or object type'*)
12108 lt_cv_path_NM="$tmp_nm -B"
12109 break
12110 ;;
12111 *)
12112 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12113 */dev/null*)
12114 lt_cv_path_NM="$tmp_nm -p"
12115 break
12116 ;;
12117 *)
12118 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12119 continue # so that we can try to find one that supports BSD flags
12120 ;;
12121 esac
12122 ;;
12123 esac
12124 fi
12125 done
12126 IFS="$lt_save_ifs"
12127 done
12128 : ${lt_cv_path_NM=no}
12129 fi
12130 fi
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12132 $as_echo "$lt_cv_path_NM" >&6; }
12133 if test "$lt_cv_path_NM" != "no"; then
12134 NM="$lt_cv_path_NM"
12135 else
12136 # Didn't find any BSD compatible name lister, look for dumpbin.
12137 if test -n "$DUMPBIN"; then :
12138 # Let the user override the test.
12139 else
12140 if test -n "$ac_tool_prefix"; then
12141 for ac_prog in dumpbin "link -dump"
12142 do
12143 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12144 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12146 $as_echo_n "checking for $ac_word... " >&6; }
12147 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12148 $as_echo_n "(cached) " >&6
12149 else
12150 if test -n "$DUMPBIN"; then
12151 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12152 else
12153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12154 for as_dir in $PATH
12155 do
12156 IFS=$as_save_IFS
12157 test -z "$as_dir" && as_dir=.
12158 for ac_exec_ext in '' $ac_executable_extensions; do
12159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12160 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12162 break 2
12163 fi
12164 done
12165 done
12166 IFS=$as_save_IFS
12167
12168 fi
12169 fi
12170 DUMPBIN=$ac_cv_prog_DUMPBIN
12171 if test -n "$DUMPBIN"; then
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12173 $as_echo "$DUMPBIN" >&6; }
12174 else
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12176 $as_echo "no" >&6; }
12177 fi
12178
12179
12180 test -n "$DUMPBIN" && break
12181 done
12182 fi
12183 if test -z "$DUMPBIN"; then
12184 ac_ct_DUMPBIN=$DUMPBIN
12185 for ac_prog in dumpbin "link -dump"
12186 do
12187 # Extract the first word of "$ac_prog", so it can be a program name with args.
12188 set dummy $ac_prog; ac_word=$2
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12190 $as_echo_n "checking for $ac_word... " >&6; }
12191 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12192 $as_echo_n "(cached) " >&6
12193 else
12194 if test -n "$ac_ct_DUMPBIN"; then
12195 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12196 else
12197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12198 for as_dir in $PATH
12199 do
12200 IFS=$as_save_IFS
12201 test -z "$as_dir" && as_dir=.
12202 for ac_exec_ext in '' $ac_executable_extensions; do
12203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12204 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12206 break 2
12207 fi
12208 done
12209 done
12210 IFS=$as_save_IFS
12211
12212 fi
12213 fi
12214 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12215 if test -n "$ac_ct_DUMPBIN"; then
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12217 $as_echo "$ac_ct_DUMPBIN" >&6; }
12218 else
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12220 $as_echo "no" >&6; }
12221 fi
12222
12223
12224 test -n "$ac_ct_DUMPBIN" && break
12225 done
12226
12227 if test "x$ac_ct_DUMPBIN" = x; then
12228 DUMPBIN=":"
12229 else
12230 case $cross_compiling:$ac_tool_warned in
12231 yes:)
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12234 ac_tool_warned=yes ;;
12235 esac
12236 DUMPBIN=$ac_ct_DUMPBIN
12237 fi
12238 fi
12239
12240 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12241 *COFF*)
12242 DUMPBIN="$DUMPBIN -symbols"
12243 ;;
12244 *)
12245 DUMPBIN=:
12246 ;;
12247 esac
12248 fi
12249
12250 if test "$DUMPBIN" != ":"; then
12251 NM="$DUMPBIN"
12252 fi
12253 fi
12254 test -z "$NM" && NM=nm
12255
12256
12257
12258
12259
12260
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12262 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12263 if test "${lt_cv_nm_interface+set}" = set; then :
12264 $as_echo_n "(cached) " >&6
12265 else
12266 lt_cv_nm_interface="BSD nm"
12267 echo "int some_variable = 0;" > conftest.$ac_ext
12268 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12269 (eval "$ac_compile" 2>conftest.err)
12270 cat conftest.err >&5
12271 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12272 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12273 cat conftest.err >&5
12274 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12275 cat conftest.out >&5
12276 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12277 lt_cv_nm_interface="MS dumpbin"
12278 fi
12279 rm -f conftest*
12280 fi
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12282 $as_echo "$lt_cv_nm_interface" >&6; }
12283
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12285 $as_echo_n "checking whether ln -s works... " >&6; }
12286 LN_S=$as_ln_s
12287 if test "$LN_S" = "ln -s"; then
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12289 $as_echo "yes" >&6; }
12290 else
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12292 $as_echo "no, using $LN_S" >&6; }
12293 fi
12294
12295 # find the maximum length of command line arguments
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12297 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12298 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12299 $as_echo_n "(cached) " >&6
12300 else
12301 i=0
12302 teststring="ABCD"
12303
12304 case $build_os in
12305 msdosdjgpp*)
12306 # On DJGPP, this test can blow up pretty badly due to problems in libc
12307 # (any single argument exceeding 2000 bytes causes a buffer overrun
12308 # during glob expansion). Even if it were fixed, the result of this
12309 # check would be larger than it should be.
12310 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12311 ;;
12312
12313 gnu*)
12314 # Under GNU Hurd, this test is not required because there is
12315 # no limit to the length of command line arguments.
12316 # Libtool will interpret -1 as no limit whatsoever
12317 lt_cv_sys_max_cmd_len=-1;
12318 ;;
12319
12320 cygwin* | mingw* | cegcc*)
12321 # On Win9x/ME, this test blows up -- it succeeds, but takes
12322 # about 5 minutes as the teststring grows exponentially.
12323 # Worse, since 9x/ME are not pre-emptively multitasking,
12324 # you end up with a "frozen" computer, even though with patience
12325 # the test eventually succeeds (with a max line length of 256k).
12326 # Instead, let's just punt: use the minimum linelength reported by
12327 # all of the supported platforms: 8192 (on NT/2K/XP).
12328 lt_cv_sys_max_cmd_len=8192;
12329 ;;
12330
12331 mint*)
12332 # On MiNT this can take a long time and run out of memory.
12333 lt_cv_sys_max_cmd_len=8192;
12334 ;;
12335
12336 amigaos*)
12337 # On AmigaOS with pdksh, this test takes hours, literally.
12338 # So we just punt and use a minimum line length of 8192.
12339 lt_cv_sys_max_cmd_len=8192;
12340 ;;
12341
12342 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12343 # This has been around since 386BSD, at least. Likely further.
12344 if test -x /sbin/sysctl; then
12345 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12346 elif test -x /usr/sbin/sysctl; then
12347 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12348 else
12349 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12350 fi
12351 # And add a safety zone
12352 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12353 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12354 ;;
12355
12356 interix*)
12357 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12358 lt_cv_sys_max_cmd_len=196608
12359 ;;
12360
12361 osf*)
12362 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12363 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12364 # nice to cause kernel panics so lets avoid the loop below.
12365 # First set a reasonable default.
12366 lt_cv_sys_max_cmd_len=16384
12367 #
12368 if test -x /sbin/sysconfig; then
12369 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12370 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12371 esac
12372 fi
12373 ;;
12374 sco3.2v5*)
12375 lt_cv_sys_max_cmd_len=102400
12376 ;;
12377 sysv5* | sco5v6* | sysv4.2uw2*)
12378 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12379 if test -n "$kargmax"; then
12380 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12381 else
12382 lt_cv_sys_max_cmd_len=32768
12383 fi
12384 ;;
12385 *)
12386 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12387 if test -n "$lt_cv_sys_max_cmd_len"; then
12388 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12389 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12390 else
12391 # Make teststring a little bigger before we do anything with it.
12392 # a 1K string should be a reasonable start.
12393 for i in 1 2 3 4 5 6 7 8 ; do
12394 teststring=$teststring$teststring
12395 done
12396 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12397 # If test is not a shell built-in, we'll probably end up computing a
12398 # maximum length that is only half of the actual maximum length, but
12399 # we can't tell.
12400 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12401 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12402 test $i != 17 # 1/2 MB should be enough
12403 do
12404 i=`expr $i + 1`
12405 teststring=$teststring$teststring
12406 done
12407 # Only check the string length outside the loop.
12408 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12409 teststring=
12410 # Add a significant safety factor because C++ compilers can tack on
12411 # massive amounts of additional arguments before passing them to the
12412 # linker. It appears as though 1/2 is a usable value.
12413 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12414 fi
12415 ;;
12416 esac
12417
12418 fi
12419
12420 if test -n $lt_cv_sys_max_cmd_len ; then
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12422 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12423 else
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12425 $as_echo "none" >&6; }
12426 fi
12427 max_cmd_len=$lt_cv_sys_max_cmd_len
12428
12429
12430
12431
12432
12433
12434 : ${CP="cp -f"}
12435 : ${MV="mv -f"}
12436 : ${RM="rm -f"}
12437
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12439 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12440 # Try some XSI features
12441 xsi_shell=no
12442 ( _lt_dummy="a/b/c"
12443 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12444 = c,a/b,, \
12445 && eval 'test $(( 1 + 1 )) -eq 2 \
12446 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12447 && xsi_shell=yes
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12449 $as_echo "$xsi_shell" >&6; }
12450
12451
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12453 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12454 lt_shell_append=no
12455 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12456 >/dev/null 2>&1 \
12457 && lt_shell_append=yes
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12459 $as_echo "$lt_shell_append" >&6; }
12460
12461
12462 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12463 lt_unset=unset
12464 else
12465 lt_unset=false
12466 fi
12467
12468
12469
12470
12471
12472 # test EBCDIC or ASCII
12473 case `echo X|tr X '\101'` in
12474 A) # ASCII based system
12475 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12476 lt_SP2NL='tr \040 \012'
12477 lt_NL2SP='tr \015\012 \040\040'
12478 ;;
12479 *) # EBCDIC based system
12480 lt_SP2NL='tr \100 \n'
12481 lt_NL2SP='tr \r\n \100\100'
12482 ;;
12483 esac
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12494 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12495 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12496 $as_echo_n "(cached) " >&6
12497 else
12498 lt_cv_ld_reload_flag='-r'
12499 fi
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12501 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12502 reload_flag=$lt_cv_ld_reload_flag
12503 case $reload_flag in
12504 "" | " "*) ;;
12505 *) reload_flag=" $reload_flag" ;;
12506 esac
12507 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12508 case $host_os in
12509 darwin*)
12510 if test "$GCC" = yes; then
12511 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12512 else
12513 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12514 fi
12515 ;;
12516 esac
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526 if test -n "$ac_tool_prefix"; then
12527 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12528 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12530 $as_echo_n "checking for $ac_word... " >&6; }
12531 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12532 $as_echo_n "(cached) " >&6
12533 else
12534 if test -n "$OBJDUMP"; then
12535 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12536 else
12537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12538 for as_dir in $PATH
12539 do
12540 IFS=$as_save_IFS
12541 test -z "$as_dir" && as_dir=.
12542 for ac_exec_ext in '' $ac_executable_extensions; do
12543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12544 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12546 break 2
12547 fi
12548 done
12549 done
12550 IFS=$as_save_IFS
12551
12552 fi
12553 fi
12554 OBJDUMP=$ac_cv_prog_OBJDUMP
12555 if test -n "$OBJDUMP"; then
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12557 $as_echo "$OBJDUMP" >&6; }
12558 else
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12560 $as_echo "no" >&6; }
12561 fi
12562
12563
12564 fi
12565 if test -z "$ac_cv_prog_OBJDUMP"; then
12566 ac_ct_OBJDUMP=$OBJDUMP
12567 # Extract the first word of "objdump", so it can be a program name with args.
12568 set dummy objdump; ac_word=$2
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12570 $as_echo_n "checking for $ac_word... " >&6; }
12571 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12572 $as_echo_n "(cached) " >&6
12573 else
12574 if test -n "$ac_ct_OBJDUMP"; then
12575 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12576 else
12577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12578 for as_dir in $PATH
12579 do
12580 IFS=$as_save_IFS
12581 test -z "$as_dir" && as_dir=.
12582 for ac_exec_ext in '' $ac_executable_extensions; do
12583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12584 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12586 break 2
12587 fi
12588 done
12589 done
12590 IFS=$as_save_IFS
12591
12592 fi
12593 fi
12594 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12595 if test -n "$ac_ct_OBJDUMP"; then
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12597 $as_echo "$ac_ct_OBJDUMP" >&6; }
12598 else
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12600 $as_echo "no" >&6; }
12601 fi
12602
12603 if test "x$ac_ct_OBJDUMP" = x; then
12604 OBJDUMP="false"
12605 else
12606 case $cross_compiling:$ac_tool_warned in
12607 yes:)
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12610 ac_tool_warned=yes ;;
12611 esac
12612 OBJDUMP=$ac_ct_OBJDUMP
12613 fi
12614 else
12615 OBJDUMP="$ac_cv_prog_OBJDUMP"
12616 fi
12617
12618 test -z "$OBJDUMP" && OBJDUMP=objdump
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12629 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12630 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12631 $as_echo_n "(cached) " >&6
12632 else
12633 lt_cv_file_magic_cmd='$MAGIC_CMD'
12634 lt_cv_file_magic_test_file=
12635 lt_cv_deplibs_check_method='unknown'
12636 # Need to set the preceding variable on all platforms that support
12637 # interlibrary dependencies.
12638 # 'none' -- dependencies not supported.
12639 # `unknown' -- same as none, but documents that we really don't know.
12640 # 'pass_all' -- all dependencies passed with no checks.
12641 # 'test_compile' -- check by making test program.
12642 # 'file_magic [[regex]]' -- check by looking for files in library path
12643 # which responds to the $file_magic_cmd with a given extended regex.
12644 # If you have `file' or equivalent on your system and you're not sure
12645 # whether `pass_all' will *always* work, you probably want this one.
12646
12647 case $host_os in
12648 aix[4-9]*)
12649 lt_cv_deplibs_check_method=pass_all
12650 ;;
12651
12652 beos*)
12653 lt_cv_deplibs_check_method=pass_all
12654 ;;
12655
12656 bsdi[45]*)
12657 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12658 lt_cv_file_magic_cmd='/usr/bin/file -L'
12659 lt_cv_file_magic_test_file=/shlib/libc.so
12660 ;;
12661
12662 cygwin*)
12663 # func_win32_libid is a shell function defined in ltmain.sh
12664 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12665 lt_cv_file_magic_cmd='func_win32_libid'
12666 ;;
12667
12668 mingw* | pw32*)
12669 # Base MSYS/MinGW do not provide the 'file' command needed by
12670 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12671 # unless we find 'file', for example because we are cross-compiling.
12672 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12673 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12674 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12675 lt_cv_file_magic_cmd='func_win32_libid'
12676 else
12677 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12678 lt_cv_file_magic_cmd='$OBJDUMP -f'
12679 fi
12680 ;;
12681
12682 cegcc*)
12683 # use the weaker test based on 'objdump'. See mingw*.
12684 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12685 lt_cv_file_magic_cmd='$OBJDUMP -f'
12686 ;;
12687
12688 darwin* | rhapsody*)
12689 lt_cv_deplibs_check_method=pass_all
12690 ;;
12691
12692 freebsd* | dragonfly*)
12693 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12694 case $host_cpu in
12695 i*86 )
12696 # Not sure whether the presence of OpenBSD here was a mistake.
12697 # Let's accept both of them until this is cleared up.
12698 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12699 lt_cv_file_magic_cmd=/usr/bin/file
12700 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12701 ;;
12702 esac
12703 else
12704 lt_cv_deplibs_check_method=pass_all
12705 fi
12706 ;;
12707
12708 gnu*)
12709 lt_cv_deplibs_check_method=pass_all
12710 ;;
12711
12712 haiku*)
12713 lt_cv_deplibs_check_method=pass_all
12714 ;;
12715
12716 hpux10.20* | hpux11*)
12717 lt_cv_file_magic_cmd=/usr/bin/file
12718 case $host_cpu in
12719 ia64*)
12720 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12721 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12722 ;;
12723 hppa*64*)
12724 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]'
12725 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12726 ;;
12727 *)
12728 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12729 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12730 ;;
12731 esac
12732 ;;
12733
12734 interix[3-9]*)
12735 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12736 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12737 ;;
12738
12739 irix5* | irix6* | nonstopux*)
12740 case $LD in
12741 *-32|*"-32 ") libmagic=32-bit;;
12742 *-n32|*"-n32 ") libmagic=N32;;
12743 *-64|*"-64 ") libmagic=64-bit;;
12744 *) libmagic=never-match;;
12745 esac
12746 lt_cv_deplibs_check_method=pass_all
12747 ;;
12748
12749 # This must be Linux ELF.
12750 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12751 lt_cv_deplibs_check_method=pass_all
12752 ;;
12753
12754 netbsd*)
12755 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12756 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12757 else
12758 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12759 fi
12760 ;;
12761
12762 newos6*)
12763 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12764 lt_cv_file_magic_cmd=/usr/bin/file
12765 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12766 ;;
12767
12768 *nto* | *qnx*)
12769 lt_cv_deplibs_check_method=pass_all
12770 ;;
12771
12772 openbsd*)
12773 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12774 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12775 else
12776 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12777 fi
12778 ;;
12779
12780 osf3* | osf4* | osf5*)
12781 lt_cv_deplibs_check_method=pass_all
12782 ;;
12783
12784 rdos*)
12785 lt_cv_deplibs_check_method=pass_all
12786 ;;
12787
12788 solaris*)
12789 lt_cv_deplibs_check_method=pass_all
12790 ;;
12791
12792 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12793 lt_cv_deplibs_check_method=pass_all
12794 ;;
12795
12796 sysv4 | sysv4.3*)
12797 case $host_vendor in
12798 motorola)
12799 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]'
12800 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12801 ;;
12802 ncr)
12803 lt_cv_deplibs_check_method=pass_all
12804 ;;
12805 sequent)
12806 lt_cv_file_magic_cmd='/bin/file'
12807 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12808 ;;
12809 sni)
12810 lt_cv_file_magic_cmd='/bin/file'
12811 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12812 lt_cv_file_magic_test_file=/lib/libc.so
12813 ;;
12814 siemens)
12815 lt_cv_deplibs_check_method=pass_all
12816 ;;
12817 pc)
12818 lt_cv_deplibs_check_method=pass_all
12819 ;;
12820 esac
12821 ;;
12822
12823 tpf*)
12824 lt_cv_deplibs_check_method=pass_all
12825 ;;
12826 esac
12827
12828 fi
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12830 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12831 file_magic_cmd=$lt_cv_file_magic_cmd
12832 deplibs_check_method=$lt_cv_deplibs_check_method
12833 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846 if test -n "$ac_tool_prefix"; then
12847 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12848 set dummy ${ac_tool_prefix}ar; ac_word=$2
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12850 $as_echo_n "checking for $ac_word... " >&6; }
12851 if test "${ac_cv_prog_AR+set}" = set; then :
12852 $as_echo_n "(cached) " >&6
12853 else
12854 if test -n "$AR"; then
12855 ac_cv_prog_AR="$AR" # Let the user override the test.
12856 else
12857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12858 for as_dir in $PATH
12859 do
12860 IFS=$as_save_IFS
12861 test -z "$as_dir" && as_dir=.
12862 for ac_exec_ext in '' $ac_executable_extensions; do
12863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12864 ac_cv_prog_AR="${ac_tool_prefix}ar"
12865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12866 break 2
12867 fi
12868 done
12869 done
12870 IFS=$as_save_IFS
12871
12872 fi
12873 fi
12874 AR=$ac_cv_prog_AR
12875 if test -n "$AR"; then
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12877 $as_echo "$AR" >&6; }
12878 else
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12880 $as_echo "no" >&6; }
12881 fi
12882
12883
12884 fi
12885 if test -z "$ac_cv_prog_AR"; then
12886 ac_ct_AR=$AR
12887 # Extract the first word of "ar", so it can be a program name with args.
12888 set dummy ar; ac_word=$2
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12890 $as_echo_n "checking for $ac_word... " >&6; }
12891 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12892 $as_echo_n "(cached) " >&6
12893 else
12894 if test -n "$ac_ct_AR"; then
12895 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12896 else
12897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12898 for as_dir in $PATH
12899 do
12900 IFS=$as_save_IFS
12901 test -z "$as_dir" && as_dir=.
12902 for ac_exec_ext in '' $ac_executable_extensions; do
12903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12904 ac_cv_prog_ac_ct_AR="ar"
12905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12906 break 2
12907 fi
12908 done
12909 done
12910 IFS=$as_save_IFS
12911
12912 fi
12913 fi
12914 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12915 if test -n "$ac_ct_AR"; then
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12917 $as_echo "$ac_ct_AR" >&6; }
12918 else
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12920 $as_echo "no" >&6; }
12921 fi
12922
12923 if test "x$ac_ct_AR" = x; then
12924 AR="false"
12925 else
12926 case $cross_compiling:$ac_tool_warned in
12927 yes:)
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12930 ac_tool_warned=yes ;;
12931 esac
12932 AR=$ac_ct_AR
12933 fi
12934 else
12935 AR="$ac_cv_prog_AR"
12936 fi
12937
12938 test -z "$AR" && AR=ar
12939 test -z "$AR_FLAGS" && AR_FLAGS=cru
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951 if test -n "$ac_tool_prefix"; then
12952 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12953 set dummy ${ac_tool_prefix}strip; ac_word=$2
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12955 $as_echo_n "checking for $ac_word... " >&6; }
12956 if test "${ac_cv_prog_STRIP+set}" = set; then :
12957 $as_echo_n "(cached) " >&6
12958 else
12959 if test -n "$STRIP"; then
12960 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12961 else
12962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12963 for as_dir in $PATH
12964 do
12965 IFS=$as_save_IFS
12966 test -z "$as_dir" && as_dir=.
12967 for ac_exec_ext in '' $ac_executable_extensions; do
12968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12969 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12971 break 2
12972 fi
12973 done
12974 done
12975 IFS=$as_save_IFS
12976
12977 fi
12978 fi
12979 STRIP=$ac_cv_prog_STRIP
12980 if test -n "$STRIP"; then
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12982 $as_echo "$STRIP" >&6; }
12983 else
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12985 $as_echo "no" >&6; }
12986 fi
12987
12988
12989 fi
12990 if test -z "$ac_cv_prog_STRIP"; then
12991 ac_ct_STRIP=$STRIP
12992 # Extract the first word of "strip", so it can be a program name with args.
12993 set dummy strip; ac_word=$2
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12995 $as_echo_n "checking for $ac_word... " >&6; }
12996 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12997 $as_echo_n "(cached) " >&6
12998 else
12999 if test -n "$ac_ct_STRIP"; then
13000 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13001 else
13002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13003 for as_dir in $PATH
13004 do
13005 IFS=$as_save_IFS
13006 test -z "$as_dir" && as_dir=.
13007 for ac_exec_ext in '' $ac_executable_extensions; do
13008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13009 ac_cv_prog_ac_ct_STRIP="strip"
13010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13011 break 2
13012 fi
13013 done
13014 done
13015 IFS=$as_save_IFS
13016
13017 fi
13018 fi
13019 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13020 if test -n "$ac_ct_STRIP"; then
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13022 $as_echo "$ac_ct_STRIP" >&6; }
13023 else
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13025 $as_echo "no" >&6; }
13026 fi
13027
13028 if test "x$ac_ct_STRIP" = x; then
13029 STRIP=":"
13030 else
13031 case $cross_compiling:$ac_tool_warned in
13032 yes:)
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13035 ac_tool_warned=yes ;;
13036 esac
13037 STRIP=$ac_ct_STRIP
13038 fi
13039 else
13040 STRIP="$ac_cv_prog_STRIP"
13041 fi
13042
13043 test -z "$STRIP" && STRIP=:
13044
13045
13046
13047
13048
13049
13050 if test -n "$ac_tool_prefix"; then
13051 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13052 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13054 $as_echo_n "checking for $ac_word... " >&6; }
13055 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13056 $as_echo_n "(cached) " >&6
13057 else
13058 if test -n "$RANLIB"; then
13059 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13060 else
13061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13062 for as_dir in $PATH
13063 do
13064 IFS=$as_save_IFS
13065 test -z "$as_dir" && as_dir=.
13066 for ac_exec_ext in '' $ac_executable_extensions; do
13067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13068 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13070 break 2
13071 fi
13072 done
13073 done
13074 IFS=$as_save_IFS
13075
13076 fi
13077 fi
13078 RANLIB=$ac_cv_prog_RANLIB
13079 if test -n "$RANLIB"; then
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13081 $as_echo "$RANLIB" >&6; }
13082 else
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13084 $as_echo "no" >&6; }
13085 fi
13086
13087
13088 fi
13089 if test -z "$ac_cv_prog_RANLIB"; then
13090 ac_ct_RANLIB=$RANLIB
13091 # Extract the first word of "ranlib", so it can be a program name with args.
13092 set dummy ranlib; ac_word=$2
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13094 $as_echo_n "checking for $ac_word... " >&6; }
13095 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13096 $as_echo_n "(cached) " >&6
13097 else
13098 if test -n "$ac_ct_RANLIB"; then
13099 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13100 else
13101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13102 for as_dir in $PATH
13103 do
13104 IFS=$as_save_IFS
13105 test -z "$as_dir" && as_dir=.
13106 for ac_exec_ext in '' $ac_executable_extensions; do
13107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13108 ac_cv_prog_ac_ct_RANLIB="ranlib"
13109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13110 break 2
13111 fi
13112 done
13113 done
13114 IFS=$as_save_IFS
13115
13116 fi
13117 fi
13118 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13119 if test -n "$ac_ct_RANLIB"; then
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13121 $as_echo "$ac_ct_RANLIB" >&6; }
13122 else
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13124 $as_echo "no" >&6; }
13125 fi
13126
13127 if test "x$ac_ct_RANLIB" = x; then
13128 RANLIB=":"
13129 else
13130 case $cross_compiling:$ac_tool_warned in
13131 yes:)
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13134 ac_tool_warned=yes ;;
13135 esac
13136 RANLIB=$ac_ct_RANLIB
13137 fi
13138 else
13139 RANLIB="$ac_cv_prog_RANLIB"
13140 fi
13141
13142 test -z "$RANLIB" && RANLIB=:
13143
13144
13145
13146
13147
13148
13149 # Determine commands to create old-style static archives.
13150 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13151 old_postinstall_cmds='chmod 644 $oldlib'
13152 old_postuninstall_cmds=
13153
13154 if test -n "$RANLIB"; then
13155 case $host_os in
13156 openbsd*)
13157 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13158 ;;
13159 *)
13160 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13161 ;;
13162 esac
13163 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13164 fi
13165
13166 case $host_os in
13167 darwin*)
13168 lock_old_archive_extraction=yes ;;
13169 *)
13170 lock_old_archive_extraction=no ;;
13171 esac
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
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 # If no C compiler was specified, use CC.
13212 LTCC=${LTCC-"$CC"}
13213
13214 # If no C compiler flags were specified, use CFLAGS.
13215 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13216
13217 # Allow CC to be a program name with arguments.
13218 compiler=$CC
13219
13220
13221 # Check for command to grab the raw symbol name followed by C symbol from nm.
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13223 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13224 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13225 $as_echo_n "(cached) " >&6
13226 else
13227
13228 # These are sane defaults that work on at least a few old systems.
13229 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13230
13231 # Character class describing NM global symbol codes.
13232 symcode='[BCDEGRST]'
13233
13234 # Regexp to match symbols that can be accessed directly from C.
13235 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13236
13237 # Define system-specific variables.
13238 case $host_os in
13239 aix*)
13240 symcode='[BCDT]'
13241 ;;
13242 cygwin* | mingw* | pw32* | cegcc*)
13243 symcode='[ABCDGISTW]'
13244 ;;
13245 hpux*)
13246 if test "$host_cpu" = ia64; then
13247 symcode='[ABCDEGRST]'
13248 fi
13249 ;;
13250 irix* | nonstopux*)
13251 symcode='[BCDEGRST]'
13252 ;;
13253 osf*)
13254 symcode='[BCDEGQRST]'
13255 ;;
13256 solaris*)
13257 symcode='[BDRT]'
13258 ;;
13259 sco3.2v5*)
13260 symcode='[DT]'
13261 ;;
13262 sysv4.2uw2*)
13263 symcode='[DT]'
13264 ;;
13265 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13266 symcode='[ABDT]'
13267 ;;
13268 sysv4)
13269 symcode='[DFNSTU]'
13270 ;;
13271 esac
13272
13273 # If we're using GNU nm, then use its standard symbol codes.
13274 case `$NM -V 2>&1` in
13275 *GNU* | *'with BFD'*)
13276 symcode='[ABCDGIRSTW]' ;;
13277 esac
13278
13279 # Transform an extracted symbol line into a proper C declaration.
13280 # Some systems (esp. on ia64) link data and code symbols differently,
13281 # so use this general approach.
13282 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13283
13284 # Transform an extracted symbol line into symbol name and symbol address
13285 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13286 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'"
13287
13288 # Handle CRLF in mingw tool chain
13289 opt_cr=
13290 case $build_os in
13291 mingw*)
13292 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13293 ;;
13294 esac
13295
13296 # Try without a prefix underscore, then with it.
13297 for ac_symprfx in "" "_"; do
13298
13299 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13300 symxfrm="\\1 $ac_symprfx\\2 \\2"
13301
13302 # Write the raw and C identifiers.
13303 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13304 # Fake it for dumpbin and say T for any non-static function
13305 # and D for any global variable.
13306 # Also find C++ and __fastcall symbols from MSVC++,
13307 # which start with @ or ?.
13308 lt_cv_sys_global_symbol_pipe="$AWK '"\
13309 " {last_section=section; section=\$ 3};"\
13310 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13311 " \$ 0!~/External *\|/{next};"\
13312 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13313 " {if(hide[section]) next};"\
13314 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13315 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13316 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13317 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13318 " ' prfx=^$ac_symprfx"
13319 else
13320 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13321 fi
13322
13323 # Check to see that the pipe works correctly.
13324 pipe_works=no
13325
13326 rm -f conftest*
13327 cat > conftest.$ac_ext <<_LT_EOF
13328 #ifdef __cplusplus
13329 extern "C" {
13330 #endif
13331 char nm_test_var;
13332 void nm_test_func(void);
13333 void nm_test_func(void){}
13334 #ifdef __cplusplus
13335 }
13336 #endif
13337 int main(){nm_test_var='a';nm_test_func();return(0);}
13338 _LT_EOF
13339
13340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13341 (eval $ac_compile) 2>&5
13342 ac_status=$?
13343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13344 test $ac_status = 0; }; then
13345 # Now try to grab the symbols.
13346 nlist=conftest.nm
13347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13348 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13349 ac_status=$?
13350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13351 test $ac_status = 0; } && test -s "$nlist"; then
13352 # Try sorting and uniquifying the output.
13353 if sort "$nlist" | uniq > "$nlist"T; then
13354 mv -f "$nlist"T "$nlist"
13355 else
13356 rm -f "$nlist"T
13357 fi
13358
13359 # Make sure that we snagged all the symbols we need.
13360 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13361 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13362 cat <<_LT_EOF > conftest.$ac_ext
13363 #ifdef __cplusplus
13364 extern "C" {
13365 #endif
13366
13367 _LT_EOF
13368 # Now generate the symbol file.
13369 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13370
13371 cat <<_LT_EOF >> conftest.$ac_ext
13372
13373 /* The mapping between symbol names and symbols. */
13374 const struct {
13375 const char *name;
13376 void *address;
13377 }
13378 lt__PROGRAM__LTX_preloaded_symbols[] =
13379 {
13380 { "@PROGRAM@", (void *) 0 },
13381 _LT_EOF
13382 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13383 cat <<\_LT_EOF >> conftest.$ac_ext
13384 {0, (void *) 0}
13385 };
13386
13387 /* This works around a problem in FreeBSD linker */
13388 #ifdef FREEBSD_WORKAROUND
13389 static const void *lt_preloaded_setup() {
13390 return lt__PROGRAM__LTX_preloaded_symbols;
13391 }
13392 #endif
13393
13394 #ifdef __cplusplus
13395 }
13396 #endif
13397 _LT_EOF
13398 # Now try linking the two files.
13399 mv conftest.$ac_objext conftstm.$ac_objext
13400 lt_save_LIBS="$LIBS"
13401 lt_save_CFLAGS="$CFLAGS"
13402 LIBS="conftstm.$ac_objext"
13403 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13405 (eval $ac_link) 2>&5
13406 ac_status=$?
13407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13408 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13409 pipe_works=yes
13410 fi
13411 LIBS="$lt_save_LIBS"
13412 CFLAGS="$lt_save_CFLAGS"
13413 else
13414 echo "cannot find nm_test_func in $nlist" >&5
13415 fi
13416 else
13417 echo "cannot find nm_test_var in $nlist" >&5
13418 fi
13419 else
13420 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13421 fi
13422 else
13423 echo "$progname: failed program was:" >&5
13424 cat conftest.$ac_ext >&5
13425 fi
13426 rm -rf conftest* conftst*
13427
13428 # Do not use the global_symbol_pipe unless it works.
13429 if test "$pipe_works" = yes; then
13430 break
13431 else
13432 lt_cv_sys_global_symbol_pipe=
13433 fi
13434 done
13435
13436 fi
13437
13438 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13439 lt_cv_sys_global_symbol_to_cdecl=
13440 fi
13441 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13443 $as_echo "failed" >&6; }
13444 else
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13446 $as_echo "ok" >&6; }
13447 fi
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470 # Check whether --enable-libtool-lock was given.
13471 if test "${enable_libtool_lock+set}" = set; then :
13472 enableval=$enable_libtool_lock;
13473 fi
13474
13475 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13476
13477 # Some flags need to be propagated to the compiler or linker for good
13478 # libtool support.
13479 case $host in
13480 ia64-*-hpux*)
13481 # Find out which ABI we are using.
13482 echo 'int i;' > conftest.$ac_ext
13483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13484 (eval $ac_compile) 2>&5
13485 ac_status=$?
13486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13487 test $ac_status = 0; }; then
13488 case `/usr/bin/file conftest.$ac_objext` in
13489 *ELF-32*)
13490 HPUX_IA64_MODE="32"
13491 ;;
13492 *ELF-64*)
13493 HPUX_IA64_MODE="64"
13494 ;;
13495 esac
13496 fi
13497 rm -rf conftest*
13498 ;;
13499 *-*-irix6*)
13500 # Find out which ABI we are using.
13501 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13503 (eval $ac_compile) 2>&5
13504 ac_status=$?
13505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13506 test $ac_status = 0; }; then
13507 if test "$lt_cv_prog_gnu_ld" = yes; then
13508 case `/usr/bin/file conftest.$ac_objext` in
13509 *32-bit*)
13510 LD="${LD-ld} -melf32bsmip"
13511 ;;
13512 *N32*)
13513 LD="${LD-ld} -melf32bmipn32"
13514 ;;
13515 *64-bit*)
13516 LD="${LD-ld} -melf64bmip"
13517 ;;
13518 esac
13519 else
13520 case `/usr/bin/file conftest.$ac_objext` in
13521 *32-bit*)
13522 LD="${LD-ld} -32"
13523 ;;
13524 *N32*)
13525 LD="${LD-ld} -n32"
13526 ;;
13527 *64-bit*)
13528 LD="${LD-ld} -64"
13529 ;;
13530 esac
13531 fi
13532 fi
13533 rm -rf conftest*
13534 ;;
13535
13536 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13537 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13538 # Find out which ABI we are using.
13539 echo 'int i;' > conftest.$ac_ext
13540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13541 (eval $ac_compile) 2>&5
13542 ac_status=$?
13543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13544 test $ac_status = 0; }; then
13545 case `/usr/bin/file conftest.o` in
13546 *32-bit*)
13547 case $host in
13548 x86_64-*kfreebsd*-gnu)
13549 LD="${LD-ld} -m elf_i386_fbsd"
13550 ;;
13551 x86_64-*linux*)
13552 LD="${LD-ld} -m elf_i386"
13553 ;;
13554 ppc64-*linux*|powerpc64-*linux*)
13555 LD="${LD-ld} -m elf32ppclinux"
13556 ;;
13557 s390x-*linux*)
13558 LD="${LD-ld} -m elf_s390"
13559 ;;
13560 sparc64-*linux*)
13561 LD="${LD-ld} -m elf32_sparc"
13562 ;;
13563 esac
13564 ;;
13565 *64-bit*)
13566 case $host in
13567 x86_64-*kfreebsd*-gnu)
13568 LD="${LD-ld} -m elf_x86_64_fbsd"
13569 ;;
13570 x86_64-*linux*)
13571 LD="${LD-ld} -m elf_x86_64"
13572 ;;
13573 ppc*-*linux*|powerpc*-*linux*)
13574 LD="${LD-ld} -m elf64ppc"
13575 ;;
13576 s390*-*linux*|s390*-*tpf*)
13577 LD="${LD-ld} -m elf64_s390"
13578 ;;
13579 sparc*-*linux*)
13580 LD="${LD-ld} -m elf64_sparc"
13581 ;;
13582 esac
13583 ;;
13584 esac
13585 fi
13586 rm -rf conftest*
13587 ;;
13588
13589 *-*-sco3.2v5*)
13590 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13591 SAVE_CFLAGS="$CFLAGS"
13592 CFLAGS="$CFLAGS -belf"
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13594 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13595 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13596 $as_echo_n "(cached) " >&6
13597 else
13598 ac_ext=c
13599 ac_cpp='$CPP $CPPFLAGS'
13600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13603
13604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13605 /* end confdefs.h. */
13606
13607 int
13608 main ()
13609 {
13610
13611 ;
13612 return 0;
13613 }
13614 _ACEOF
13615 if ac_fn_c_try_link "$LINENO"; then :
13616 lt_cv_cc_needs_belf=yes
13617 else
13618 lt_cv_cc_needs_belf=no
13619 fi
13620 rm -f core conftest.err conftest.$ac_objext \
13621 conftest$ac_exeext conftest.$ac_ext
13622 ac_ext=c
13623 ac_cpp='$CPP $CPPFLAGS'
13624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13627
13628 fi
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13630 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13631 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13632 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13633 CFLAGS="$SAVE_CFLAGS"
13634 fi
13635 ;;
13636 sparc*-*solaris*)
13637 # Find out which ABI we are using.
13638 echo 'int i;' > conftest.$ac_ext
13639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13640 (eval $ac_compile) 2>&5
13641 ac_status=$?
13642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13643 test $ac_status = 0; }; then
13644 case `/usr/bin/file conftest.o` in
13645 *64-bit*)
13646 case $lt_cv_prog_gnu_ld in
13647 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13648 *)
13649 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13650 LD="${LD-ld} -64"
13651 fi
13652 ;;
13653 esac
13654 ;;
13655 esac
13656 fi
13657 rm -rf conftest*
13658 ;;
13659 esac
13660
13661 need_locks="$enable_libtool_lock"
13662
13663
13664 case $host_os in
13665 rhapsody* | darwin*)
13666 if test -n "$ac_tool_prefix"; then
13667 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13668 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13670 $as_echo_n "checking for $ac_word... " >&6; }
13671 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13672 $as_echo_n "(cached) " >&6
13673 else
13674 if test -n "$DSYMUTIL"; then
13675 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13676 else
13677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13678 for as_dir in $PATH
13679 do
13680 IFS=$as_save_IFS
13681 test -z "$as_dir" && as_dir=.
13682 for ac_exec_ext in '' $ac_executable_extensions; do
13683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13684 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13686 break 2
13687 fi
13688 done
13689 done
13690 IFS=$as_save_IFS
13691
13692 fi
13693 fi
13694 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13695 if test -n "$DSYMUTIL"; then
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13697 $as_echo "$DSYMUTIL" >&6; }
13698 else
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13700 $as_echo "no" >&6; }
13701 fi
13702
13703
13704 fi
13705 if test -z "$ac_cv_prog_DSYMUTIL"; then
13706 ac_ct_DSYMUTIL=$DSYMUTIL
13707 # Extract the first word of "dsymutil", so it can be a program name with args.
13708 set dummy dsymutil; ac_word=$2
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13710 $as_echo_n "checking for $ac_word... " >&6; }
13711 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13712 $as_echo_n "(cached) " >&6
13713 else
13714 if test -n "$ac_ct_DSYMUTIL"; then
13715 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13716 else
13717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13718 for as_dir in $PATH
13719 do
13720 IFS=$as_save_IFS
13721 test -z "$as_dir" && as_dir=.
13722 for ac_exec_ext in '' $ac_executable_extensions; do
13723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13724 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13726 break 2
13727 fi
13728 done
13729 done
13730 IFS=$as_save_IFS
13731
13732 fi
13733 fi
13734 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13735 if test -n "$ac_ct_DSYMUTIL"; then
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13737 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13738 else
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13740 $as_echo "no" >&6; }
13741 fi
13742
13743 if test "x$ac_ct_DSYMUTIL" = x; then
13744 DSYMUTIL=":"
13745 else
13746 case $cross_compiling:$ac_tool_warned in
13747 yes:)
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13750 ac_tool_warned=yes ;;
13751 esac
13752 DSYMUTIL=$ac_ct_DSYMUTIL
13753 fi
13754 else
13755 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13756 fi
13757
13758 if test -n "$ac_tool_prefix"; then
13759 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13760 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13762 $as_echo_n "checking for $ac_word... " >&6; }
13763 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13764 $as_echo_n "(cached) " >&6
13765 else
13766 if test -n "$NMEDIT"; then
13767 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13768 else
13769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13770 for as_dir in $PATH
13771 do
13772 IFS=$as_save_IFS
13773 test -z "$as_dir" && as_dir=.
13774 for ac_exec_ext in '' $ac_executable_extensions; do
13775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13776 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13778 break 2
13779 fi
13780 done
13781 done
13782 IFS=$as_save_IFS
13783
13784 fi
13785 fi
13786 NMEDIT=$ac_cv_prog_NMEDIT
13787 if test -n "$NMEDIT"; then
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13789 $as_echo "$NMEDIT" >&6; }
13790 else
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13792 $as_echo "no" >&6; }
13793 fi
13794
13795
13796 fi
13797 if test -z "$ac_cv_prog_NMEDIT"; then
13798 ac_ct_NMEDIT=$NMEDIT
13799 # Extract the first word of "nmedit", so it can be a program name with args.
13800 set dummy nmedit; ac_word=$2
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13802 $as_echo_n "checking for $ac_word... " >&6; }
13803 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13804 $as_echo_n "(cached) " >&6
13805 else
13806 if test -n "$ac_ct_NMEDIT"; then
13807 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13808 else
13809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13810 for as_dir in $PATH
13811 do
13812 IFS=$as_save_IFS
13813 test -z "$as_dir" && as_dir=.
13814 for ac_exec_ext in '' $ac_executable_extensions; do
13815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13816 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13818 break 2
13819 fi
13820 done
13821 done
13822 IFS=$as_save_IFS
13823
13824 fi
13825 fi
13826 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13827 if test -n "$ac_ct_NMEDIT"; then
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13829 $as_echo "$ac_ct_NMEDIT" >&6; }
13830 else
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13832 $as_echo "no" >&6; }
13833 fi
13834
13835 if test "x$ac_ct_NMEDIT" = x; then
13836 NMEDIT=":"
13837 else
13838 case $cross_compiling:$ac_tool_warned in
13839 yes:)
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13842 ac_tool_warned=yes ;;
13843 esac
13844 NMEDIT=$ac_ct_NMEDIT
13845 fi
13846 else
13847 NMEDIT="$ac_cv_prog_NMEDIT"
13848 fi
13849
13850 if test -n "$ac_tool_prefix"; then
13851 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13852 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13854 $as_echo_n "checking for $ac_word... " >&6; }
13855 if test "${ac_cv_prog_LIPO+set}" = set; then :
13856 $as_echo_n "(cached) " >&6
13857 else
13858 if test -n "$LIPO"; then
13859 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13860 else
13861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13862 for as_dir in $PATH
13863 do
13864 IFS=$as_save_IFS
13865 test -z "$as_dir" && as_dir=.
13866 for ac_exec_ext in '' $ac_executable_extensions; do
13867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13868 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13870 break 2
13871 fi
13872 done
13873 done
13874 IFS=$as_save_IFS
13875
13876 fi
13877 fi
13878 LIPO=$ac_cv_prog_LIPO
13879 if test -n "$LIPO"; then
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13881 $as_echo "$LIPO" >&6; }
13882 else
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13884 $as_echo "no" >&6; }
13885 fi
13886
13887
13888 fi
13889 if test -z "$ac_cv_prog_LIPO"; then
13890 ac_ct_LIPO=$LIPO
13891 # Extract the first word of "lipo", so it can be a program name with args.
13892 set dummy lipo; ac_word=$2
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13894 $as_echo_n "checking for $ac_word... " >&6; }
13895 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13896 $as_echo_n "(cached) " >&6
13897 else
13898 if test -n "$ac_ct_LIPO"; then
13899 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13900 else
13901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13902 for as_dir in $PATH
13903 do
13904 IFS=$as_save_IFS
13905 test -z "$as_dir" && as_dir=.
13906 for ac_exec_ext in '' $ac_executable_extensions; do
13907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13908 ac_cv_prog_ac_ct_LIPO="lipo"
13909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13910 break 2
13911 fi
13912 done
13913 done
13914 IFS=$as_save_IFS
13915
13916 fi
13917 fi
13918 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13919 if test -n "$ac_ct_LIPO"; then
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13921 $as_echo "$ac_ct_LIPO" >&6; }
13922 else
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13924 $as_echo "no" >&6; }
13925 fi
13926
13927 if test "x$ac_ct_LIPO" = x; then
13928 LIPO=":"
13929 else
13930 case $cross_compiling:$ac_tool_warned in
13931 yes:)
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13934 ac_tool_warned=yes ;;
13935 esac
13936 LIPO=$ac_ct_LIPO
13937 fi
13938 else
13939 LIPO="$ac_cv_prog_LIPO"
13940 fi
13941
13942 if test -n "$ac_tool_prefix"; then
13943 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13944 set dummy ${ac_tool_prefix}otool; ac_word=$2
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13946 $as_echo_n "checking for $ac_word... " >&6; }
13947 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13948 $as_echo_n "(cached) " >&6
13949 else
13950 if test -n "$OTOOL"; then
13951 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13952 else
13953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13954 for as_dir in $PATH
13955 do
13956 IFS=$as_save_IFS
13957 test -z "$as_dir" && as_dir=.
13958 for ac_exec_ext in '' $ac_executable_extensions; do
13959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13960 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13962 break 2
13963 fi
13964 done
13965 done
13966 IFS=$as_save_IFS
13967
13968 fi
13969 fi
13970 OTOOL=$ac_cv_prog_OTOOL
13971 if test -n "$OTOOL"; then
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13973 $as_echo "$OTOOL" >&6; }
13974 else
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13976 $as_echo "no" >&6; }
13977 fi
13978
13979
13980 fi
13981 if test -z "$ac_cv_prog_OTOOL"; then
13982 ac_ct_OTOOL=$OTOOL
13983 # Extract the first word of "otool", so it can be a program name with args.
13984 set dummy otool; ac_word=$2
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13986 $as_echo_n "checking for $ac_word... " >&6; }
13987 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13988 $as_echo_n "(cached) " >&6
13989 else
13990 if test -n "$ac_ct_OTOOL"; then
13991 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13992 else
13993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13994 for as_dir in $PATH
13995 do
13996 IFS=$as_save_IFS
13997 test -z "$as_dir" && as_dir=.
13998 for ac_exec_ext in '' $ac_executable_extensions; do
13999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14000 ac_cv_prog_ac_ct_OTOOL="otool"
14001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14002 break 2
14003 fi
14004 done
14005 done
14006 IFS=$as_save_IFS
14007
14008 fi
14009 fi
14010 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14011 if test -n "$ac_ct_OTOOL"; then
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14013 $as_echo "$ac_ct_OTOOL" >&6; }
14014 else
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14016 $as_echo "no" >&6; }
14017 fi
14018
14019 if test "x$ac_ct_OTOOL" = x; then
14020 OTOOL=":"
14021 else
14022 case $cross_compiling:$ac_tool_warned in
14023 yes:)
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14026 ac_tool_warned=yes ;;
14027 esac
14028 OTOOL=$ac_ct_OTOOL
14029 fi
14030 else
14031 OTOOL="$ac_cv_prog_OTOOL"
14032 fi
14033
14034 if test -n "$ac_tool_prefix"; then
14035 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14036 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14038 $as_echo_n "checking for $ac_word... " >&6; }
14039 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14040 $as_echo_n "(cached) " >&6
14041 else
14042 if test -n "$OTOOL64"; then
14043 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14044 else
14045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14046 for as_dir in $PATH
14047 do
14048 IFS=$as_save_IFS
14049 test -z "$as_dir" && as_dir=.
14050 for ac_exec_ext in '' $ac_executable_extensions; do
14051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14052 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14054 break 2
14055 fi
14056 done
14057 done
14058 IFS=$as_save_IFS
14059
14060 fi
14061 fi
14062 OTOOL64=$ac_cv_prog_OTOOL64
14063 if test -n "$OTOOL64"; then
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14065 $as_echo "$OTOOL64" >&6; }
14066 else
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14068 $as_echo "no" >&6; }
14069 fi
14070
14071
14072 fi
14073 if test -z "$ac_cv_prog_OTOOL64"; then
14074 ac_ct_OTOOL64=$OTOOL64
14075 # Extract the first word of "otool64", so it can be a program name with args.
14076 set dummy otool64; ac_word=$2
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14078 $as_echo_n "checking for $ac_word... " >&6; }
14079 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14080 $as_echo_n "(cached) " >&6
14081 else
14082 if test -n "$ac_ct_OTOOL64"; then
14083 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14084 else
14085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14086 for as_dir in $PATH
14087 do
14088 IFS=$as_save_IFS
14089 test -z "$as_dir" && as_dir=.
14090 for ac_exec_ext in '' $ac_executable_extensions; do
14091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14092 ac_cv_prog_ac_ct_OTOOL64="otool64"
14093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14094 break 2
14095 fi
14096 done
14097 done
14098 IFS=$as_save_IFS
14099
14100 fi
14101 fi
14102 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14103 if test -n "$ac_ct_OTOOL64"; then
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14105 $as_echo "$ac_ct_OTOOL64" >&6; }
14106 else
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14108 $as_echo "no" >&6; }
14109 fi
14110
14111 if test "x$ac_ct_OTOOL64" = x; then
14112 OTOOL64=":"
14113 else
14114 case $cross_compiling:$ac_tool_warned in
14115 yes:)
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14118 ac_tool_warned=yes ;;
14119 esac
14120 OTOOL64=$ac_ct_OTOOL64
14121 fi
14122 else
14123 OTOOL64="$ac_cv_prog_OTOOL64"
14124 fi
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14153 $as_echo_n "checking for -single_module linker flag... " >&6; }
14154 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14155 $as_echo_n "(cached) " >&6
14156 else
14157 lt_cv_apple_cc_single_mod=no
14158 if test -z "${LT_MULTI_MODULE}"; then
14159 # By default we will add the -single_module flag. You can override
14160 # by either setting the environment variable LT_MULTI_MODULE
14161 # non-empty at configure time, or by adding -multi_module to the
14162 # link flags.
14163 rm -rf libconftest.dylib*
14164 echo "int foo(void){return 1;}" > conftest.c
14165 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14166 -dynamiclib -Wl,-single_module conftest.c" >&5
14167 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14168 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14169 _lt_result=$?
14170 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14171 lt_cv_apple_cc_single_mod=yes
14172 else
14173 cat conftest.err >&5
14174 fi
14175 rm -rf libconftest.dylib*
14176 rm -f conftest.*
14177 fi
14178 fi
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14180 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14182 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14183 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14184 $as_echo_n "(cached) " >&6
14185 else
14186 lt_cv_ld_exported_symbols_list=no
14187 save_LDFLAGS=$LDFLAGS
14188 echo "_main" > conftest.sym
14189 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14191 /* end confdefs.h. */
14192
14193 int
14194 main ()
14195 {
14196
14197 ;
14198 return 0;
14199 }
14200 _ACEOF
14201 if ac_fn_c_try_link "$LINENO"; then :
14202 lt_cv_ld_exported_symbols_list=yes
14203 else
14204 lt_cv_ld_exported_symbols_list=no
14205 fi
14206 rm -f core conftest.err conftest.$ac_objext \
14207 conftest$ac_exeext conftest.$ac_ext
14208 LDFLAGS="$save_LDFLAGS"
14209
14210 fi
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14212 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14214 $as_echo_n "checking for -force_load linker flag... " >&6; }
14215 if test "${lt_cv_ld_force_load+set}" = set; then :
14216 $as_echo_n "(cached) " >&6
14217 else
14218 lt_cv_ld_force_load=no
14219 cat > conftest.c << _LT_EOF
14220 int forced_loaded() { return 2;}
14221 _LT_EOF
14222 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14223 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14224 echo "$AR cru libconftest.a conftest.o" >&5
14225 $AR cru libconftest.a conftest.o 2>&5
14226 cat > conftest.c << _LT_EOF
14227 int main() { return 0;}
14228 _LT_EOF
14229 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14230 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14231 _lt_result=$?
14232 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14233 lt_cv_ld_force_load=yes
14234 else
14235 cat conftest.err >&5
14236 fi
14237 rm -f conftest.err libconftest.a conftest conftest.c
14238 rm -rf conftest.dSYM
14239
14240 fi
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14242 $as_echo "$lt_cv_ld_force_load" >&6; }
14243 case $host_os in
14244 rhapsody* | darwin1.[012])
14245 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14246 darwin1.*)
14247 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14248 darwin*) # darwin 5.x on
14249 # if running on 10.5 or later, the deployment target defaults
14250 # to the OS version, if on x86, and 10.4, the deployment
14251 # target defaults to 10.4. Don't you love it?
14252 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14253 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14254 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14255 10.[012]*)
14256 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14257 10.*)
14258 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14259 esac
14260 ;;
14261 esac
14262 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14263 _lt_dar_single_mod='$single_module'
14264 fi
14265 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14266 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14267 else
14268 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14269 fi
14270 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14271 _lt_dsymutil='~$DSYMUTIL $lib || :'
14272 else
14273 _lt_dsymutil=
14274 fi
14275 ;;
14276 esac
14277
14278 for ac_header in dlfcn.h
14279 do :
14280 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14281 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14282 cat >>confdefs.h <<_ACEOF
14283 #define HAVE_DLFCN_H 1
14284 _ACEOF
14285
14286 fi
14287 done
14288
14289
14290
14291
14292
14293 # Set options
14294
14295
14296
14297 enable_dlopen=no
14298
14299
14300 enable_win32_dll=no
14301
14302
14303 # Check whether --enable-shared was given.
14304 if test "${enable_shared+set}" = set; then :
14305 enableval=$enable_shared; p=${PACKAGE-default}
14306 case $enableval in
14307 yes) enable_shared=yes ;;
14308 no) enable_shared=no ;;
14309 *)
14310 enable_shared=no
14311 # Look at the argument we got. We use all the common list separators.
14312 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14313 for pkg in $enableval; do
14314 IFS="$lt_save_ifs"
14315 if test "X$pkg" = "X$p"; then
14316 enable_shared=yes
14317 fi
14318 done
14319 IFS="$lt_save_ifs"
14320 ;;
14321 esac
14322 else
14323 enable_shared=yes
14324 fi
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334 # Check whether --enable-static was given.
14335 if test "${enable_static+set}" = set; then :
14336 enableval=$enable_static; p=${PACKAGE-default}
14337 case $enableval in
14338 yes) enable_static=yes ;;
14339 no) enable_static=no ;;
14340 *)
14341 enable_static=no
14342 # Look at the argument we got. We use all the common list separators.
14343 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14344 for pkg in $enableval; do
14345 IFS="$lt_save_ifs"
14346 if test "X$pkg" = "X$p"; then
14347 enable_static=yes
14348 fi
14349 done
14350 IFS="$lt_save_ifs"
14351 ;;
14352 esac
14353 else
14354 enable_static=yes
14355 fi
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366 # Check whether --with-pic was given.
14367 if test "${with_pic+set}" = set; then :
14368 withval=$with_pic; pic_mode="$withval"
14369 else
14370 pic_mode=default
14371 fi
14372
14373
14374 test -z "$pic_mode" && pic_mode=default
14375
14376
14377
14378
14379
14380
14381
14382 # Check whether --enable-fast-install was given.
14383 if test "${enable_fast_install+set}" = set; then :
14384 enableval=$enable_fast_install; p=${PACKAGE-default}
14385 case $enableval in
14386 yes) enable_fast_install=yes ;;
14387 no) enable_fast_install=no ;;
14388 *)
14389 enable_fast_install=no
14390 # Look at the argument we got. We use all the common list separators.
14391 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14392 for pkg in $enableval; do
14393 IFS="$lt_save_ifs"
14394 if test "X$pkg" = "X$p"; then
14395 enable_fast_install=yes
14396 fi
14397 done
14398 IFS="$lt_save_ifs"
14399 ;;
14400 esac
14401 else
14402 enable_fast_install=yes
14403 fi
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415 # This can be used to rebuild libtool when needed
14416 LIBTOOL_DEPS="$ltmain"
14417
14418 # Always use our own libtool.
14419 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446 test -z "$LN_S" && LN_S="ln -s"
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461 if test -n "${ZSH_VERSION+set}" ; then
14462 setopt NO_GLOB_SUBST
14463 fi
14464
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14466 $as_echo_n "checking for objdir... " >&6; }
14467 if test "${lt_cv_objdir+set}" = set; then :
14468 $as_echo_n "(cached) " >&6
14469 else
14470 rm -f .libs 2>/dev/null
14471 mkdir .libs 2>/dev/null
14472 if test -d .libs; then
14473 lt_cv_objdir=.libs
14474 else
14475 # MS-DOS does not allow filenames that begin with a dot.
14476 lt_cv_objdir=_libs
14477 fi
14478 rmdir .libs 2>/dev/null
14479 fi
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14481 $as_echo "$lt_cv_objdir" >&6; }
14482 objdir=$lt_cv_objdir
14483
14484
14485
14486
14487
14488 cat >>confdefs.h <<_ACEOF
14489 #define LT_OBJDIR "$lt_cv_objdir/"
14490 _ACEOF
14491
14492
14493
14494
14495 case $host_os in
14496 aix3*)
14497 # AIX sometimes has problems with the GCC collect2 program. For some
14498 # reason, if we set the COLLECT_NAMES environment variable, the problems
14499 # vanish in a puff of smoke.
14500 if test "X${COLLECT_NAMES+set}" != Xset; then
14501 COLLECT_NAMES=
14502 export COLLECT_NAMES
14503 fi
14504 ;;
14505 esac
14506
14507 # Global variables:
14508 ofile=libtool
14509 can_build_shared=yes
14510
14511 # All known linkers require a `.a' archive for static linking (except MSVC,
14512 # which needs '.lib').
14513 libext=a
14514
14515 with_gnu_ld="$lt_cv_prog_gnu_ld"
14516
14517 old_CC="$CC"
14518 old_CFLAGS="$CFLAGS"
14519
14520 # Set sane defaults for various variables
14521 test -z "$CC" && CC=cc
14522 test -z "$LTCC" && LTCC=$CC
14523 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14524 test -z "$LD" && LD=ld
14525 test -z "$ac_objext" && ac_objext=o
14526
14527 for cc_temp in $compiler""; do
14528 case $cc_temp in
14529 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14530 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14531 \-*) ;;
14532 *) break;;
14533 esac
14534 done
14535 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14536
14537
14538 # Only perform the check for file, if the check method requires it
14539 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14540 case $deplibs_check_method in
14541 file_magic*)
14542 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14544 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14545 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14546 $as_echo_n "(cached) " >&6
14547 else
14548 case $MAGIC_CMD in
14549 [\\/*] | ?:[\\/]*)
14550 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14551 ;;
14552 *)
14553 lt_save_MAGIC_CMD="$MAGIC_CMD"
14554 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14555 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14556 for ac_dir in $ac_dummy; do
14557 IFS="$lt_save_ifs"
14558 test -z "$ac_dir" && ac_dir=.
14559 if test -f $ac_dir/${ac_tool_prefix}file; then
14560 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14561 if test -n "$file_magic_test_file"; then
14562 case $deplibs_check_method in
14563 "file_magic "*)
14564 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14565 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14566 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14567 $EGREP "$file_magic_regex" > /dev/null; then
14568 :
14569 else
14570 cat <<_LT_EOF 1>&2
14571
14572 *** Warning: the command libtool uses to detect shared libraries,
14573 *** $file_magic_cmd, produces output that libtool cannot recognize.
14574 *** The result is that libtool may fail to recognize shared libraries
14575 *** as such. This will affect the creation of libtool libraries that
14576 *** depend on shared libraries, but programs linked with such libtool
14577 *** libraries will work regardless of this problem. Nevertheless, you
14578 *** may want to report the problem to your system manager and/or to
14579 *** bug-libtool@gnu.org
14580
14581 _LT_EOF
14582 fi ;;
14583 esac
14584 fi
14585 break
14586 fi
14587 done
14588 IFS="$lt_save_ifs"
14589 MAGIC_CMD="$lt_save_MAGIC_CMD"
14590 ;;
14591 esac
14592 fi
14593
14594 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14595 if test -n "$MAGIC_CMD"; then
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14597 $as_echo "$MAGIC_CMD" >&6; }
14598 else
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14600 $as_echo "no" >&6; }
14601 fi
14602
14603
14604
14605
14606
14607 if test -z "$lt_cv_path_MAGIC_CMD"; then
14608 if test -n "$ac_tool_prefix"; then
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14610 $as_echo_n "checking for file... " >&6; }
14611 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14612 $as_echo_n "(cached) " >&6
14613 else
14614 case $MAGIC_CMD in
14615 [\\/*] | ?:[\\/]*)
14616 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14617 ;;
14618 *)
14619 lt_save_MAGIC_CMD="$MAGIC_CMD"
14620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14621 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14622 for ac_dir in $ac_dummy; do
14623 IFS="$lt_save_ifs"
14624 test -z "$ac_dir" && ac_dir=.
14625 if test -f $ac_dir/file; then
14626 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14627 if test -n "$file_magic_test_file"; then
14628 case $deplibs_check_method in
14629 "file_magic "*)
14630 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14631 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14632 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14633 $EGREP "$file_magic_regex" > /dev/null; then
14634 :
14635 else
14636 cat <<_LT_EOF 1>&2
14637
14638 *** Warning: the command libtool uses to detect shared libraries,
14639 *** $file_magic_cmd, produces output that libtool cannot recognize.
14640 *** The result is that libtool may fail to recognize shared libraries
14641 *** as such. This will affect the creation of libtool libraries that
14642 *** depend on shared libraries, but programs linked with such libtool
14643 *** libraries will work regardless of this problem. Nevertheless, you
14644 *** may want to report the problem to your system manager and/or to
14645 *** bug-libtool@gnu.org
14646
14647 _LT_EOF
14648 fi ;;
14649 esac
14650 fi
14651 break
14652 fi
14653 done
14654 IFS="$lt_save_ifs"
14655 MAGIC_CMD="$lt_save_MAGIC_CMD"
14656 ;;
14657 esac
14658 fi
14659
14660 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14661 if test -n "$MAGIC_CMD"; then
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14663 $as_echo "$MAGIC_CMD" >&6; }
14664 else
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14666 $as_echo "no" >&6; }
14667 fi
14668
14669
14670 else
14671 MAGIC_CMD=:
14672 fi
14673 fi
14674
14675 fi
14676 ;;
14677 esac
14678
14679 # Use C for the default configuration in the libtool script
14680
14681 lt_save_CC="$CC"
14682 ac_ext=c
14683 ac_cpp='$CPP $CPPFLAGS'
14684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14687
14688
14689 # Source file extension for C test sources.
14690 ac_ext=c
14691
14692 # Object file extension for compiled C test sources.
14693 objext=o
14694 objext=$objext
14695
14696 # Code to be used in simple compile tests
14697 lt_simple_compile_test_code="int some_variable = 0;"
14698
14699 # Code to be used in simple link tests
14700 lt_simple_link_test_code='int main(){return(0);}'
14701
14702
14703
14704
14705
14706
14707
14708 # If no C compiler was specified, use CC.
14709 LTCC=${LTCC-"$CC"}
14710
14711 # If no C compiler flags were specified, use CFLAGS.
14712 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14713
14714 # Allow CC to be a program name with arguments.
14715 compiler=$CC
14716
14717 # Save the default compiler, since it gets overwritten when the other
14718 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14719 compiler_DEFAULT=$CC
14720
14721 # save warnings/boilerplate of simple test code
14722 ac_outfile=conftest.$ac_objext
14723 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14724 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14725 _lt_compiler_boilerplate=`cat conftest.err`
14726 $RM conftest*
14727
14728 ac_outfile=conftest.$ac_objext
14729 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14730 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14731 _lt_linker_boilerplate=`cat conftest.err`
14732 $RM -r conftest*
14733
14734
14735 ## CAVEAT EMPTOR:
14736 ## There is no encapsulation within the following macros, do not change
14737 ## the running order or otherwise move them around unless you know exactly
14738 ## what you are doing...
14739 if test -n "$compiler"; then
14740
14741 lt_prog_compiler_no_builtin_flag=
14742
14743 if test "$GCC" = yes; then
14744 case $cc_basename in
14745 nvcc*)
14746 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14747 *)
14748 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14749 esac
14750
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14752 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14753 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14754 $as_echo_n "(cached) " >&6
14755 else
14756 lt_cv_prog_compiler_rtti_exceptions=no
14757 ac_outfile=conftest.$ac_objext
14758 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14759 lt_compiler_flag="-fno-rtti -fno-exceptions"
14760 # Insert the option either (1) after the last *FLAGS variable, or
14761 # (2) before a word containing "conftest.", or (3) at the end.
14762 # Note that $ac_compile itself does not contain backslashes and begins
14763 # with a dollar sign (not a hyphen), so the echo should work correctly.
14764 # The option is referenced via a variable to avoid confusing sed.
14765 lt_compile=`echo "$ac_compile" | $SED \
14766 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14767 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14768 -e 's:$: $lt_compiler_flag:'`
14769 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14770 (eval "$lt_compile" 2>conftest.err)
14771 ac_status=$?
14772 cat conftest.err >&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 if (exit $ac_status) && test -s "$ac_outfile"; then
14775 # The compiler can only warn and ignore the option if not recognized
14776 # So say no if there are warnings other than the usual output.
14777 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14778 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14779 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14780 lt_cv_prog_compiler_rtti_exceptions=yes
14781 fi
14782 fi
14783 $RM conftest*
14784
14785 fi
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14787 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14788
14789 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14790 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14791 else
14792 :
14793 fi
14794
14795 fi
14796
14797
14798
14799
14800
14801
14802 lt_prog_compiler_wl=
14803 lt_prog_compiler_pic=
14804 lt_prog_compiler_static=
14805
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14807 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14808
14809 if test "$GCC" = yes; then
14810 lt_prog_compiler_wl='-Wl,'
14811 lt_prog_compiler_static='-static'
14812
14813 case $host_os in
14814 aix*)
14815 # All AIX code is PIC.
14816 if test "$host_cpu" = ia64; then
14817 # AIX 5 now supports IA64 processor
14818 lt_prog_compiler_static='-Bstatic'
14819 fi
14820 ;;
14821
14822 amigaos*)
14823 case $host_cpu in
14824 powerpc)
14825 # see comment about AmigaOS4 .so support
14826 lt_prog_compiler_pic='-fPIC'
14827 ;;
14828 m68k)
14829 # FIXME: we need at least 68020 code to build shared libraries, but
14830 # adding the `-m68020' flag to GCC prevents building anything better,
14831 # like `-m68040'.
14832 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14833 ;;
14834 esac
14835 ;;
14836
14837 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14838 # PIC is the default for these OSes.
14839 ;;
14840
14841 mingw* | cygwin* | pw32* | os2* | cegcc*)
14842 # This hack is so that the source file can tell whether it is being
14843 # built for inclusion in a dll (and should export symbols for example).
14844 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14845 # (--disable-auto-import) libraries
14846 lt_prog_compiler_pic='-DDLL_EXPORT'
14847 ;;
14848
14849 darwin* | rhapsody*)
14850 # PIC is the default on this platform
14851 # Common symbols not allowed in MH_DYLIB files
14852 lt_prog_compiler_pic='-fno-common'
14853 ;;
14854
14855 haiku*)
14856 # PIC is the default for Haiku.
14857 # The "-static" flag exists, but is broken.
14858 lt_prog_compiler_static=
14859 ;;
14860
14861 hpux*)
14862 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14863 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14864 # sets the default TLS model and affects inlining.
14865 case $host_cpu in
14866 hppa*64*)
14867 # +Z the default
14868 ;;
14869 *)
14870 lt_prog_compiler_pic='-fPIC'
14871 ;;
14872 esac
14873 ;;
14874
14875 interix[3-9]*)
14876 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14877 # Instead, we relocate shared libraries at runtime.
14878 ;;
14879
14880 msdosdjgpp*)
14881 # Just because we use GCC doesn't mean we suddenly get shared libraries
14882 # on systems that don't support them.
14883 lt_prog_compiler_can_build_shared=no
14884 enable_shared=no
14885 ;;
14886
14887 *nto* | *qnx*)
14888 # QNX uses GNU C++, but need to define -shared option too, otherwise
14889 # it will coredump.
14890 lt_prog_compiler_pic='-fPIC -shared'
14891 ;;
14892
14893 sysv4*MP*)
14894 if test -d /usr/nec; then
14895 lt_prog_compiler_pic=-Kconform_pic
14896 fi
14897 ;;
14898
14899 *)
14900 lt_prog_compiler_pic='-fPIC'
14901 ;;
14902 esac
14903
14904 case $cc_basename in
14905 nvcc*) # Cuda Compiler Driver 2.2
14906 lt_prog_compiler_wl='-Xlinker '
14907 lt_prog_compiler_pic='-Xcompiler -fPIC'
14908 ;;
14909 esac
14910 else
14911 # PORTME Check for flag to pass linker flags through the system compiler.
14912 case $host_os in
14913 aix*)
14914 lt_prog_compiler_wl='-Wl,'
14915 if test "$host_cpu" = ia64; then
14916 # AIX 5 now supports IA64 processor
14917 lt_prog_compiler_static='-Bstatic'
14918 else
14919 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14920 fi
14921 ;;
14922
14923 mingw* | cygwin* | pw32* | os2* | cegcc*)
14924 # This hack is so that the source file can tell whether it is being
14925 # built for inclusion in a dll (and should export symbols for example).
14926 lt_prog_compiler_pic='-DDLL_EXPORT'
14927 ;;
14928
14929 hpux9* | hpux10* | hpux11*)
14930 lt_prog_compiler_wl='-Wl,'
14931 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14932 # not for PA HP-UX.
14933 case $host_cpu in
14934 hppa*64*|ia64*)
14935 # +Z the default
14936 ;;
14937 *)
14938 lt_prog_compiler_pic='+Z'
14939 ;;
14940 esac
14941 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14942 lt_prog_compiler_static='${wl}-a ${wl}archive'
14943 ;;
14944
14945 irix5* | irix6* | nonstopux*)
14946 lt_prog_compiler_wl='-Wl,'
14947 # PIC (with -KPIC) is the default.
14948 lt_prog_compiler_static='-non_shared'
14949 ;;
14950
14951 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14952 case $cc_basename in
14953 # old Intel for x86_64 which still supported -KPIC.
14954 ecc*)
14955 lt_prog_compiler_wl='-Wl,'
14956 lt_prog_compiler_pic='-KPIC'
14957 lt_prog_compiler_static='-static'
14958 ;;
14959 # icc used to be incompatible with GCC.
14960 # ICC 10 doesn't accept -KPIC any more.
14961 icc* | ifort*)
14962 lt_prog_compiler_wl='-Wl,'
14963 lt_prog_compiler_pic='-fPIC'
14964 lt_prog_compiler_static='-static'
14965 ;;
14966 # Lahey Fortran 8.1.
14967 lf95*)
14968 lt_prog_compiler_wl='-Wl,'
14969 lt_prog_compiler_pic='--shared'
14970 lt_prog_compiler_static='--static'
14971 ;;
14972 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14973 # Portland Group compilers (*not* the Pentium gcc compiler,
14974 # which looks to be a dead project)
14975 lt_prog_compiler_wl='-Wl,'
14976 lt_prog_compiler_pic='-fpic'
14977 lt_prog_compiler_static='-Bstatic'
14978 ;;
14979 ccc*)
14980 lt_prog_compiler_wl='-Wl,'
14981 # All Alpha code is PIC.
14982 lt_prog_compiler_static='-non_shared'
14983 ;;
14984 xl* | bgxl* | bgf* | mpixl*)
14985 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14986 lt_prog_compiler_wl='-Wl,'
14987 lt_prog_compiler_pic='-qpic'
14988 lt_prog_compiler_static='-qstaticlink'
14989 ;;
14990 *)
14991 case `$CC -V 2>&1 | sed 5q` in
14992 *Sun\ F* | *Sun*Fortran*)
14993 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14994 lt_prog_compiler_pic='-KPIC'
14995 lt_prog_compiler_static='-Bstatic'
14996 lt_prog_compiler_wl=''
14997 ;;
14998 *Sun\ C*)
14999 # Sun C 5.9
15000 lt_prog_compiler_pic='-KPIC'
15001 lt_prog_compiler_static='-Bstatic'
15002 lt_prog_compiler_wl='-Wl,'
15003 ;;
15004 esac
15005 ;;
15006 esac
15007 ;;
15008
15009 newsos6)
15010 lt_prog_compiler_pic='-KPIC'
15011 lt_prog_compiler_static='-Bstatic'
15012 ;;
15013
15014 *nto* | *qnx*)
15015 # QNX uses GNU C++, but need to define -shared option too, otherwise
15016 # it will coredump.
15017 lt_prog_compiler_pic='-fPIC -shared'
15018 ;;
15019
15020 osf3* | osf4* | osf5*)
15021 lt_prog_compiler_wl='-Wl,'
15022 # All OSF/1 code is PIC.
15023 lt_prog_compiler_static='-non_shared'
15024 ;;
15025
15026 rdos*)
15027 lt_prog_compiler_static='-non_shared'
15028 ;;
15029
15030 solaris*)
15031 lt_prog_compiler_pic='-KPIC'
15032 lt_prog_compiler_static='-Bstatic'
15033 case $cc_basename in
15034 f77* | f90* | f95*)
15035 lt_prog_compiler_wl='-Qoption ld ';;
15036 *)
15037 lt_prog_compiler_wl='-Wl,';;
15038 esac
15039 ;;
15040
15041 sunos4*)
15042 lt_prog_compiler_wl='-Qoption ld '
15043 lt_prog_compiler_pic='-PIC'
15044 lt_prog_compiler_static='-Bstatic'
15045 ;;
15046
15047 sysv4 | sysv4.2uw2* | sysv4.3*)
15048 lt_prog_compiler_wl='-Wl,'
15049 lt_prog_compiler_pic='-KPIC'
15050 lt_prog_compiler_static='-Bstatic'
15051 ;;
15052
15053 sysv4*MP*)
15054 if test -d /usr/nec ;then
15055 lt_prog_compiler_pic='-Kconform_pic'
15056 lt_prog_compiler_static='-Bstatic'
15057 fi
15058 ;;
15059
15060 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15061 lt_prog_compiler_wl='-Wl,'
15062 lt_prog_compiler_pic='-KPIC'
15063 lt_prog_compiler_static='-Bstatic'
15064 ;;
15065
15066 unicos*)
15067 lt_prog_compiler_wl='-Wl,'
15068 lt_prog_compiler_can_build_shared=no
15069 ;;
15070
15071 uts4*)
15072 lt_prog_compiler_pic='-pic'
15073 lt_prog_compiler_static='-Bstatic'
15074 ;;
15075
15076 *)
15077 lt_prog_compiler_can_build_shared=no
15078 ;;
15079 esac
15080 fi
15081
15082 case $host_os in
15083 # For platforms which do not support PIC, -DPIC is meaningless:
15084 *djgpp*)
15085 lt_prog_compiler_pic=
15086 ;;
15087 *)
15088 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15089 ;;
15090 esac
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15092 $as_echo "$lt_prog_compiler_pic" >&6; }
15093
15094
15095
15096
15097
15098
15099 #
15100 # Check to make sure the PIC flag actually works.
15101 #
15102 if test -n "$lt_prog_compiler_pic"; then
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15104 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15105 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15106 $as_echo_n "(cached) " >&6
15107 else
15108 lt_cv_prog_compiler_pic_works=no
15109 ac_outfile=conftest.$ac_objext
15110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15111 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15112 # Insert the option either (1) after the last *FLAGS variable, or
15113 # (2) before a word containing "conftest.", or (3) at the end.
15114 # Note that $ac_compile itself does not contain backslashes and begins
15115 # with a dollar sign (not a hyphen), so the echo should work correctly.
15116 # The option is referenced via a variable to avoid confusing sed.
15117 lt_compile=`echo "$ac_compile" | $SED \
15118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15120 -e 's:$: $lt_compiler_flag:'`
15121 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15122 (eval "$lt_compile" 2>conftest.err)
15123 ac_status=$?
15124 cat conftest.err >&5
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 if (exit $ac_status) && test -s "$ac_outfile"; then
15127 # The compiler can only warn and ignore the option if not recognized
15128 # So say no if there are warnings other than the usual output.
15129 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15131 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15132 lt_cv_prog_compiler_pic_works=yes
15133 fi
15134 fi
15135 $RM conftest*
15136
15137 fi
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15139 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15140
15141 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15142 case $lt_prog_compiler_pic in
15143 "" | " "*) ;;
15144 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15145 esac
15146 else
15147 lt_prog_compiler_pic=
15148 lt_prog_compiler_can_build_shared=no
15149 fi
15150
15151 fi
15152
15153
15154
15155
15156
15157
15158 #
15159 # Check to make sure the static flag actually works.
15160 #
15161 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15163 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15164 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15165 $as_echo_n "(cached) " >&6
15166 else
15167 lt_cv_prog_compiler_static_works=no
15168 save_LDFLAGS="$LDFLAGS"
15169 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15170 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15171 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15172 # The linker can only warn and ignore the option if not recognized
15173 # So say no if there are warnings
15174 if test -s conftest.err; then
15175 # Append any errors to the config.log.
15176 cat conftest.err 1>&5
15177 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15178 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15179 if diff conftest.exp conftest.er2 >/dev/null; then
15180 lt_cv_prog_compiler_static_works=yes
15181 fi
15182 else
15183 lt_cv_prog_compiler_static_works=yes
15184 fi
15185 fi
15186 $RM -r conftest*
15187 LDFLAGS="$save_LDFLAGS"
15188
15189 fi
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15191 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15192
15193 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15194 :
15195 else
15196 lt_prog_compiler_static=
15197 fi
15198
15199
15200
15201
15202
15203
15204
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15206 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15207 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15208 $as_echo_n "(cached) " >&6
15209 else
15210 lt_cv_prog_compiler_c_o=no
15211 $RM -r conftest 2>/dev/null
15212 mkdir conftest
15213 cd conftest
15214 mkdir out
15215 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15216
15217 lt_compiler_flag="-o out/conftest2.$ac_objext"
15218 # Insert the option either (1) after the last *FLAGS variable, or
15219 # (2) before a word containing "conftest.", or (3) at the end.
15220 # Note that $ac_compile itself does not contain backslashes and begins
15221 # with a dollar sign (not a hyphen), so the echo should work correctly.
15222 lt_compile=`echo "$ac_compile" | $SED \
15223 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15224 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15225 -e 's:$: $lt_compiler_flag:'`
15226 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15227 (eval "$lt_compile" 2>out/conftest.err)
15228 ac_status=$?
15229 cat out/conftest.err >&5
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15232 then
15233 # The compiler can only warn and ignore the option if not recognized
15234 # So say no if there are warnings
15235 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15236 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15237 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15238 lt_cv_prog_compiler_c_o=yes
15239 fi
15240 fi
15241 chmod u+w . 2>&5
15242 $RM conftest*
15243 # SGI C++ compiler will create directory out/ii_files/ for
15244 # template instantiation
15245 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15246 $RM out/* && rmdir out
15247 cd ..
15248 $RM -r conftest
15249 $RM conftest*
15250
15251 fi
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15253 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15254
15255
15256
15257
15258
15259
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15261 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15262 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15263 $as_echo_n "(cached) " >&6
15264 else
15265 lt_cv_prog_compiler_c_o=no
15266 $RM -r conftest 2>/dev/null
15267 mkdir conftest
15268 cd conftest
15269 mkdir out
15270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15271
15272 lt_compiler_flag="-o out/conftest2.$ac_objext"
15273 # Insert the option either (1) after the last *FLAGS variable, or
15274 # (2) before a word containing "conftest.", or (3) at the end.
15275 # Note that $ac_compile itself does not contain backslashes and begins
15276 # with a dollar sign (not a hyphen), so the echo should work correctly.
15277 lt_compile=`echo "$ac_compile" | $SED \
15278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15280 -e 's:$: $lt_compiler_flag:'`
15281 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15282 (eval "$lt_compile" 2>out/conftest.err)
15283 ac_status=$?
15284 cat out/conftest.err >&5
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15287 then
15288 # The compiler can only warn and ignore the option if not recognized
15289 # So say no if there are warnings
15290 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15291 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15292 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15293 lt_cv_prog_compiler_c_o=yes
15294 fi
15295 fi
15296 chmod u+w . 2>&5
15297 $RM conftest*
15298 # SGI C++ compiler will create directory out/ii_files/ for
15299 # template instantiation
15300 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15301 $RM out/* && rmdir out
15302 cd ..
15303 $RM -r conftest
15304 $RM conftest*
15305
15306 fi
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15308 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15309
15310
15311
15312
15313 hard_links="nottested"
15314 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15315 # do not overwrite the value of need_locks provided by the user
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15317 $as_echo_n "checking if we can lock with hard links... " >&6; }
15318 hard_links=yes
15319 $RM conftest*
15320 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15321 touch conftest.a
15322 ln conftest.a conftest.b 2>&5 || hard_links=no
15323 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15325 $as_echo "$hard_links" >&6; }
15326 if test "$hard_links" = no; then
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15328 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15329 need_locks=warn
15330 fi
15331 else
15332 need_locks=no
15333 fi
15334
15335
15336
15337
15338
15339
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15341 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15342
15343 runpath_var=
15344 allow_undefined_flag=
15345 always_export_symbols=no
15346 archive_cmds=
15347 archive_expsym_cmds=
15348 compiler_needs_object=no
15349 enable_shared_with_static_runtimes=no
15350 export_dynamic_flag_spec=
15351 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15352 hardcode_automatic=no
15353 hardcode_direct=no
15354 hardcode_direct_absolute=no
15355 hardcode_libdir_flag_spec=
15356 hardcode_libdir_flag_spec_ld=
15357 hardcode_libdir_separator=
15358 hardcode_minus_L=no
15359 hardcode_shlibpath_var=unsupported
15360 inherit_rpath=no
15361 link_all_deplibs=unknown
15362 module_cmds=
15363 module_expsym_cmds=
15364 old_archive_from_new_cmds=
15365 old_archive_from_expsyms_cmds=
15366 thread_safe_flag_spec=
15367 whole_archive_flag_spec=
15368 # include_expsyms should be a list of space-separated symbols to be *always*
15369 # included in the symbol list
15370 include_expsyms=
15371 # exclude_expsyms can be an extended regexp of symbols to exclude
15372 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15373 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15374 # as well as any symbol that contains `d'.
15375 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15376 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15377 # platforms (ab)use it in PIC code, but their linkers get confused if
15378 # the symbol is explicitly referenced. Since portable code cannot
15379 # rely on this symbol name, it's probably fine to never include it in
15380 # preloaded symbol tables.
15381 # Exclude shared library initialization/finalization symbols.
15382 extract_expsyms_cmds=
15383
15384 case $host_os in
15385 cygwin* | mingw* | pw32* | cegcc*)
15386 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15387 # When not using gcc, we currently assume that we are using
15388 # Microsoft Visual C++.
15389 if test "$GCC" != yes; then
15390 with_gnu_ld=no
15391 fi
15392 ;;
15393 interix*)
15394 # we just hope/assume this is gcc and not c89 (= MSVC++)
15395 with_gnu_ld=yes
15396 ;;
15397 openbsd*)
15398 with_gnu_ld=no
15399 ;;
15400 esac
15401
15402 ld_shlibs=yes
15403
15404 # On some targets, GNU ld is compatible enough with the native linker
15405 # that we're better off using the native interface for both.
15406 lt_use_gnu_ld_interface=no
15407 if test "$with_gnu_ld" = yes; then
15408 case $host_os in
15409 aix*)
15410 # The AIX port of GNU ld has always aspired to compatibility
15411 # with the native linker. However, as the warning in the GNU ld
15412 # block says, versions before 2.19.5* couldn't really create working
15413 # shared libraries, regardless of the interface used.
15414 case `$LD -v 2>&1` in
15415 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15416 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15417 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15418 *)
15419 lt_use_gnu_ld_interface=yes
15420 ;;
15421 esac
15422 ;;
15423 *)
15424 lt_use_gnu_ld_interface=yes
15425 ;;
15426 esac
15427 fi
15428
15429 if test "$lt_use_gnu_ld_interface" = yes; then
15430 # If archive_cmds runs LD, not CC, wlarc should be empty
15431 wlarc='${wl}'
15432
15433 # Set some defaults for GNU ld with shared library support. These
15434 # are reset later if shared libraries are not supported. Putting them
15435 # here allows them to be overridden if necessary.
15436 runpath_var=LD_RUN_PATH
15437 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15438 export_dynamic_flag_spec='${wl}--export-dynamic'
15439 # ancient GNU ld didn't support --whole-archive et. al.
15440 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15441 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15442 else
15443 whole_archive_flag_spec=
15444 fi
15445 supports_anon_versioning=no
15446 case `$LD -v 2>&1` in
15447 *GNU\ gold*) supports_anon_versioning=yes ;;
15448 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15449 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15450 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15451 *\ 2.11.*) ;; # other 2.11 versions
15452 *) supports_anon_versioning=yes ;;
15453 esac
15454
15455 # See if GNU ld supports shared libraries.
15456 case $host_os in
15457 aix[3-9]*)
15458 # On AIX/PPC, the GNU linker is very broken
15459 if test "$host_cpu" != ia64; then
15460 ld_shlibs=no
15461 cat <<_LT_EOF 1>&2
15462
15463 *** Warning: the GNU linker, at least up to release 2.19, is reported
15464 *** to be unable to reliably create shared libraries on AIX.
15465 *** Therefore, libtool is disabling shared libraries support. If you
15466 *** really care for shared libraries, you may want to install binutils
15467 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15468 *** You will then need to restart the configuration process.
15469
15470 _LT_EOF
15471 fi
15472 ;;
15473
15474 amigaos*)
15475 case $host_cpu in
15476 powerpc)
15477 # see comment about AmigaOS4 .so support
15478 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15479 archive_expsym_cmds=''
15480 ;;
15481 m68k)
15482 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)'
15483 hardcode_libdir_flag_spec='-L$libdir'
15484 hardcode_minus_L=yes
15485 ;;
15486 esac
15487 ;;
15488
15489 beos*)
15490 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15491 allow_undefined_flag=unsupported
15492 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15493 # support --undefined. This deserves some investigation. FIXME
15494 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15495 else
15496 ld_shlibs=no
15497 fi
15498 ;;
15499
15500 cygwin* | mingw* | pw32* | cegcc*)
15501 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15502 # as there is no search path for DLLs.
15503 hardcode_libdir_flag_spec='-L$libdir'
15504 export_dynamic_flag_spec='${wl}--export-all-symbols'
15505 allow_undefined_flag=unsupported
15506 always_export_symbols=no
15507 enable_shared_with_static_runtimes=yes
15508 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15509
15510 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15511 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15512 # If the export-symbols file already is a .def file (1st line
15513 # is EXPORTS), use it as is; otherwise, prepend...
15514 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15515 cp $export_symbols $output_objdir/$soname.def;
15516 else
15517 echo EXPORTS > $output_objdir/$soname.def;
15518 cat $export_symbols >> $output_objdir/$soname.def;
15519 fi~
15520 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15521 else
15522 ld_shlibs=no
15523 fi
15524 ;;
15525
15526 haiku*)
15527 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15528 link_all_deplibs=yes
15529 ;;
15530
15531 interix[3-9]*)
15532 hardcode_direct=no
15533 hardcode_shlibpath_var=no
15534 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15535 export_dynamic_flag_spec='${wl}-E'
15536 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15537 # Instead, shared libraries are loaded at an image base (0x10000000 by
15538 # default) and relocated if they conflict, which is a slow very memory
15539 # consuming and fragmenting process. To avoid this, we pick a random,
15540 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15541 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15542 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15543 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'
15544 ;;
15545
15546 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15547 tmp_diet=no
15548 if test "$host_os" = linux-dietlibc; then
15549 case $cc_basename in
15550 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15551 esac
15552 fi
15553 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15554 && test "$tmp_diet" = no
15555 then
15556 tmp_addflag=
15557 tmp_sharedflag='-shared'
15558 case $cc_basename,$host_cpu in
15559 pgcc*) # Portland Group C compiler
15560 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'
15561 tmp_addflag=' $pic_flag'
15562 ;;
15563 pgf77* | pgf90* | pgf95* | pgfortran*)
15564 # Portland Group f77 and f90 compilers
15565 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'
15566 tmp_addflag=' $pic_flag -Mnomain' ;;
15567 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15568 tmp_addflag=' -i_dynamic' ;;
15569 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15570 tmp_addflag=' -i_dynamic -nofor_main' ;;
15571 ifc* | ifort*) # Intel Fortran compiler
15572 tmp_addflag=' -nofor_main' ;;
15573 lf95*) # Lahey Fortran 8.1
15574 whole_archive_flag_spec=
15575 tmp_sharedflag='--shared' ;;
15576 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15577 tmp_sharedflag='-qmkshrobj'
15578 tmp_addflag= ;;
15579 nvcc*) # Cuda Compiler Driver 2.2
15580 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'
15581 compiler_needs_object=yes
15582 ;;
15583 esac
15584 case `$CC -V 2>&1 | sed 5q` in
15585 *Sun\ C*) # Sun C 5.9
15586 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'
15587 compiler_needs_object=yes
15588 tmp_sharedflag='-G' ;;
15589 *Sun\ F*) # Sun Fortran 8.3
15590 tmp_sharedflag='-G' ;;
15591 esac
15592 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15593
15594 if test "x$supports_anon_versioning" = xyes; then
15595 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15596 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15597 echo "local: *; };" >> $output_objdir/$libname.ver~
15598 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15599 fi
15600
15601 case $cc_basename in
15602 xlf* | bgf* | bgxlf* | mpixlf*)
15603 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15604 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15605 hardcode_libdir_flag_spec=
15606 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15607 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15608 if test "x$supports_anon_versioning" = xyes; then
15609 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15610 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15611 echo "local: *; };" >> $output_objdir/$libname.ver~
15612 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15613 fi
15614 ;;
15615 esac
15616 else
15617 ld_shlibs=no
15618 fi
15619 ;;
15620
15621 netbsd*)
15622 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15623 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15624 wlarc=
15625 else
15626 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15627 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15628 fi
15629 ;;
15630
15631 solaris*)
15632 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15633 ld_shlibs=no
15634 cat <<_LT_EOF 1>&2
15635
15636 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15637 *** create shared libraries on Solaris systems. Therefore, libtool
15638 *** is disabling shared libraries support. We urge you to upgrade GNU
15639 *** binutils to release 2.9.1 or newer. Another option is to modify
15640 *** your PATH or compiler configuration so that the native linker is
15641 *** used, and then restart.
15642
15643 _LT_EOF
15644 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
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 else
15648 ld_shlibs=no
15649 fi
15650 ;;
15651
15652 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15653 case `$LD -v 2>&1` in
15654 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15655 ld_shlibs=no
15656 cat <<_LT_EOF 1>&2
15657
15658 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15659 *** reliably create shared libraries on SCO systems. Therefore, libtool
15660 *** is disabling shared libraries support. We urge you to upgrade GNU
15661 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15662 *** your PATH or compiler configuration so that the native linker is
15663 *** used, and then restart.
15664
15665 _LT_EOF
15666 ;;
15667 *)
15668 # For security reasons, it is highly recommended that you always
15669 # use absolute paths for naming shared libraries, and exclude the
15670 # DT_RUNPATH tag from executables and libraries. But doing so
15671 # requires that you compile everything twice, which is a pain.
15672 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15673 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15674 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15675 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15676 else
15677 ld_shlibs=no
15678 fi
15679 ;;
15680 esac
15681 ;;
15682
15683 sunos4*)
15684 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15685 wlarc=
15686 hardcode_direct=yes
15687 hardcode_shlibpath_var=no
15688 ;;
15689
15690 *)
15691 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15692 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15693 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15694 else
15695 ld_shlibs=no
15696 fi
15697 ;;
15698 esac
15699
15700 if test "$ld_shlibs" = no; then
15701 runpath_var=
15702 hardcode_libdir_flag_spec=
15703 export_dynamic_flag_spec=
15704 whole_archive_flag_spec=
15705 fi
15706 else
15707 # PORTME fill in a description of your system's linker (not GNU ld)
15708 case $host_os in
15709 aix3*)
15710 allow_undefined_flag=unsupported
15711 always_export_symbols=yes
15712 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'
15713 # Note: this linker hardcodes the directories in LIBPATH if there
15714 # are no directories specified by -L.
15715 hardcode_minus_L=yes
15716 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15717 # Neither direct hardcoding nor static linking is supported with a
15718 # broken collect2.
15719 hardcode_direct=unsupported
15720 fi
15721 ;;
15722
15723 aix[4-9]*)
15724 if test "$host_cpu" = ia64; then
15725 # On IA64, the linker does run time linking by default, so we don't
15726 # have to do anything special.
15727 aix_use_runtimelinking=no
15728 exp_sym_flag='-Bexport'
15729 no_entry_flag=""
15730 else
15731 # If we're using GNU nm, then we don't want the "-C" option.
15732 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15733 # Also, AIX nm treats weak defined symbols like other global
15734 # defined symbols, whereas GNU nm marks them as "W".
15735 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15736 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'
15737 else
15738 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'
15739 fi
15740 aix_use_runtimelinking=no
15741
15742 # Test if we are trying to use run time linking or normal
15743 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15744 # need to do runtime linking.
15745 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15746 for ld_flag in $LDFLAGS; do
15747 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15748 aix_use_runtimelinking=yes
15749 break
15750 fi
15751 done
15752 ;;
15753 esac
15754
15755 exp_sym_flag='-bexport'
15756 no_entry_flag='-bnoentry'
15757 fi
15758
15759 # When large executables or shared objects are built, AIX ld can
15760 # have problems creating the table of contents. If linking a library
15761 # or program results in "error TOC overflow" add -mminimal-toc to
15762 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15763 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15764
15765 archive_cmds=''
15766 hardcode_direct=yes
15767 hardcode_direct_absolute=yes
15768 hardcode_libdir_separator=':'
15769 link_all_deplibs=yes
15770 file_list_spec='${wl}-f,'
15771
15772 if test "$GCC" = yes; then
15773 case $host_os in aix4.[012]|aix4.[012].*)
15774 # We only want to do this on AIX 4.2 and lower, the check
15775 # below for broken collect2 doesn't work under 4.3+
15776 collect2name=`${CC} -print-prog-name=collect2`
15777 if test -f "$collect2name" &&
15778 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15779 then
15780 # We have reworked collect2
15781 :
15782 else
15783 # We have old collect2
15784 hardcode_direct=unsupported
15785 # It fails to find uninstalled libraries when the uninstalled
15786 # path is not listed in the libpath. Setting hardcode_minus_L
15787 # to unsupported forces relinking
15788 hardcode_minus_L=yes
15789 hardcode_libdir_flag_spec='-L$libdir'
15790 hardcode_libdir_separator=
15791 fi
15792 ;;
15793 esac
15794 shared_flag='-shared'
15795 if test "$aix_use_runtimelinking" = yes; then
15796 shared_flag="$shared_flag "'${wl}-G'
15797 fi
15798 else
15799 # not using gcc
15800 if test "$host_cpu" = ia64; then
15801 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15802 # chokes on -Wl,-G. The following line is correct:
15803 shared_flag='-G'
15804 else
15805 if test "$aix_use_runtimelinking" = yes; then
15806 shared_flag='${wl}-G'
15807 else
15808 shared_flag='${wl}-bM:SRE'
15809 fi
15810 fi
15811 fi
15812
15813 export_dynamic_flag_spec='${wl}-bexpall'
15814 # It seems that -bexpall does not export symbols beginning with
15815 # underscore (_), so it is better to generate a list of symbols to export.
15816 always_export_symbols=yes
15817 if test "$aix_use_runtimelinking" = yes; then
15818 # Warning - without using the other runtime loading flags (-brtl),
15819 # -berok will link without error, but may produce a broken library.
15820 allow_undefined_flag='-berok'
15821 # Determine the default libpath from the value encoded in an
15822 # empty executable.
15823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15824 /* end confdefs.h. */
15825
15826 int
15827 main ()
15828 {
15829
15830 ;
15831 return 0;
15832 }
15833 _ACEOF
15834 if ac_fn_c_try_link "$LINENO"; then :
15835
15836 lt_aix_libpath_sed='
15837 /Import File Strings/,/^$/ {
15838 /^0/ {
15839 s/^0 *\(.*\)$/\1/
15840 p
15841 }
15842 }'
15843 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15844 # Check for a 64-bit object if we didn't find anything.
15845 if test -z "$aix_libpath"; then
15846 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15847 fi
15848 fi
15849 rm -f core conftest.err conftest.$ac_objext \
15850 conftest$ac_exeext conftest.$ac_ext
15851 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15852
15853 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15854 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"
15855 else
15856 if test "$host_cpu" = ia64; then
15857 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15858 allow_undefined_flag="-z nodefs"
15859 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"
15860 else
15861 # Determine the default libpath from the value encoded in an
15862 # empty executable.
15863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15864 /* end confdefs.h. */
15865
15866 int
15867 main ()
15868 {
15869
15870 ;
15871 return 0;
15872 }
15873 _ACEOF
15874 if ac_fn_c_try_link "$LINENO"; then :
15875
15876 lt_aix_libpath_sed='
15877 /Import File Strings/,/^$/ {
15878 /^0/ {
15879 s/^0 *\(.*\)$/\1/
15880 p
15881 }
15882 }'
15883 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15884 # Check for a 64-bit object if we didn't find anything.
15885 if test -z "$aix_libpath"; then
15886 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15887 fi
15888 fi
15889 rm -f core conftest.err conftest.$ac_objext \
15890 conftest$ac_exeext conftest.$ac_ext
15891 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15892
15893 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15894 # Warning - without using the other run time loading flags,
15895 # -berok will link without error, but may produce a broken library.
15896 no_undefined_flag=' ${wl}-bernotok'
15897 allow_undefined_flag=' ${wl}-berok'
15898 if test "$with_gnu_ld" = yes; then
15899 # We only use this code for GNU lds that support --whole-archive.
15900 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15901 else
15902 # Exported symbols can be pulled into shared objects from archives
15903 whole_archive_flag_spec='$convenience'
15904 fi
15905 archive_cmds_need_lc=yes
15906 # This is similar to how AIX traditionally builds its shared libraries.
15907 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'
15908 fi
15909 fi
15910 ;;
15911
15912 amigaos*)
15913 case $host_cpu in
15914 powerpc)
15915 # see comment about AmigaOS4 .so support
15916 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15917 archive_expsym_cmds=''
15918 ;;
15919 m68k)
15920 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)'
15921 hardcode_libdir_flag_spec='-L$libdir'
15922 hardcode_minus_L=yes
15923 ;;
15924 esac
15925 ;;
15926
15927 bsdi[45]*)
15928 export_dynamic_flag_spec=-rdynamic
15929 ;;
15930
15931 cygwin* | mingw* | pw32* | cegcc*)
15932 # When not using gcc, we currently assume that we are using
15933 # Microsoft Visual C++.
15934 # hardcode_libdir_flag_spec is actually meaningless, as there is
15935 # no search path for DLLs.
15936 hardcode_libdir_flag_spec=' '
15937 allow_undefined_flag=unsupported
15938 # Tell ltmain to make .lib files, not .a files.
15939 libext=lib
15940 # Tell ltmain to make .dll files, not .so files.
15941 shrext_cmds=".dll"
15942 # FIXME: Setting linknames here is a bad hack.
15943 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15944 # The linker will automatically build a .lib file if we build a DLL.
15945 old_archive_from_new_cmds='true'
15946 # FIXME: Should let the user specify the lib program.
15947 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15948 fix_srcfile_path='`cygpath -w "$srcfile"`'
15949 enable_shared_with_static_runtimes=yes
15950 ;;
15951
15952 darwin* | rhapsody*)
15953
15954
15955 archive_cmds_need_lc=no
15956 hardcode_direct=no
15957 hardcode_automatic=yes
15958 hardcode_shlibpath_var=unsupported
15959 if test "$lt_cv_ld_force_load" = "yes"; then
15960 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\"`'
15961 else
15962 whole_archive_flag_spec=''
15963 fi
15964 link_all_deplibs=yes
15965 allow_undefined_flag="$_lt_dar_allow_undefined"
15966 case $cc_basename in
15967 ifort*) _lt_dar_can_shared=yes ;;
15968 *) _lt_dar_can_shared=$GCC ;;
15969 esac
15970 if test "$_lt_dar_can_shared" = "yes"; then
15971 output_verbose_link_cmd=func_echo_all
15972 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15973 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15974 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}"
15975 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}"
15976
15977 else
15978 ld_shlibs=no
15979 fi
15980
15981 ;;
15982
15983 dgux*)
15984 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15985 hardcode_libdir_flag_spec='-L$libdir'
15986 hardcode_shlibpath_var=no
15987 ;;
15988
15989 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15990 # support. Future versions do this automatically, but an explicit c++rt0.o
15991 # does not break anything, and helps significantly (at the cost of a little
15992 # extra space).
15993 freebsd2.2*)
15994 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15995 hardcode_libdir_flag_spec='-R$libdir'
15996 hardcode_direct=yes
15997 hardcode_shlibpath_var=no
15998 ;;
15999
16000 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16001 freebsd2*)
16002 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16003 hardcode_direct=yes
16004 hardcode_minus_L=yes
16005 hardcode_shlibpath_var=no
16006 ;;
16007
16008 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16009 freebsd* | dragonfly*)
16010 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16011 hardcode_libdir_flag_spec='-R$libdir'
16012 hardcode_direct=yes
16013 hardcode_shlibpath_var=no
16014 ;;
16015
16016 hpux9*)
16017 if test "$GCC" = yes; then
16018 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'
16019 else
16020 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'
16021 fi
16022 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16023 hardcode_libdir_separator=:
16024 hardcode_direct=yes
16025
16026 # hardcode_minus_L: Not really in the search PATH,
16027 # but as the default location of the library.
16028 hardcode_minus_L=yes
16029 export_dynamic_flag_spec='${wl}-E'
16030 ;;
16031
16032 hpux10*)
16033 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16034 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16035 else
16036 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16037 fi
16038 if test "$with_gnu_ld" = no; then
16039 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16040 hardcode_libdir_flag_spec_ld='+b $libdir'
16041 hardcode_libdir_separator=:
16042 hardcode_direct=yes
16043 hardcode_direct_absolute=yes
16044 export_dynamic_flag_spec='${wl}-E'
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 fi
16049 ;;
16050
16051 hpux11*)
16052 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16053 case $host_cpu in
16054 hppa*64*)
16055 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16056 ;;
16057 ia64*)
16058 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16059 ;;
16060 *)
16061 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16062 ;;
16063 esac
16064 else
16065 case $host_cpu in
16066 hppa*64*)
16067 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16068 ;;
16069 ia64*)
16070 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16071 ;;
16072 *)
16073
16074 # Older versions of the 11.00 compiler do not understand -b yet
16075 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16077 $as_echo_n "checking if $CC understands -b... " >&6; }
16078 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16079 $as_echo_n "(cached) " >&6
16080 else
16081 lt_cv_prog_compiler__b=no
16082 save_LDFLAGS="$LDFLAGS"
16083 LDFLAGS="$LDFLAGS -b"
16084 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16085 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16086 # The linker can only warn and ignore the option if not recognized
16087 # So say no if there are warnings
16088 if test -s conftest.err; then
16089 # Append any errors to the config.log.
16090 cat conftest.err 1>&5
16091 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16092 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16093 if diff conftest.exp conftest.er2 >/dev/null; then
16094 lt_cv_prog_compiler__b=yes
16095 fi
16096 else
16097 lt_cv_prog_compiler__b=yes
16098 fi
16099 fi
16100 $RM -r conftest*
16101 LDFLAGS="$save_LDFLAGS"
16102
16103 fi
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16105 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16106
16107 if test x"$lt_cv_prog_compiler__b" = xyes; then
16108 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16109 else
16110 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16111 fi
16112
16113 ;;
16114 esac
16115 fi
16116 if test "$with_gnu_ld" = no; then
16117 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16118 hardcode_libdir_separator=:
16119
16120 case $host_cpu in
16121 hppa*64*|ia64*)
16122 hardcode_direct=no
16123 hardcode_shlibpath_var=no
16124 ;;
16125 *)
16126 hardcode_direct=yes
16127 hardcode_direct_absolute=yes
16128 export_dynamic_flag_spec='${wl}-E'
16129
16130 # hardcode_minus_L: Not really in the search PATH,
16131 # but as the default location of the library.
16132 hardcode_minus_L=yes
16133 ;;
16134 esac
16135 fi
16136 ;;
16137
16138 irix5* | irix6* | nonstopux*)
16139 if test "$GCC" = yes; then
16140 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'
16141 # Try to use the -exported_symbol ld option, if it does not
16142 # work, assume that -exports_file does not work either and
16143 # implicitly export all symbols.
16144 save_LDFLAGS="$LDFLAGS"
16145 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16147 /* end confdefs.h. */
16148 int foo(void) {}
16149 _ACEOF
16150 if ac_fn_c_try_link "$LINENO"; then :
16151 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'
16152
16153 fi
16154 rm -f core conftest.err conftest.$ac_objext \
16155 conftest$ac_exeext conftest.$ac_ext
16156 LDFLAGS="$save_LDFLAGS"
16157 else
16158 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'
16159 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'
16160 fi
16161 archive_cmds_need_lc='no'
16162 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16163 hardcode_libdir_separator=:
16164 inherit_rpath=yes
16165 link_all_deplibs=yes
16166 ;;
16167
16168 netbsd*)
16169 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16170 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16171 else
16172 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16173 fi
16174 hardcode_libdir_flag_spec='-R$libdir'
16175 hardcode_direct=yes
16176 hardcode_shlibpath_var=no
16177 ;;
16178
16179 newsos6)
16180 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16181 hardcode_direct=yes
16182 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16183 hardcode_libdir_separator=:
16184 hardcode_shlibpath_var=no
16185 ;;
16186
16187 *nto* | *qnx*)
16188 ;;
16189
16190 openbsd*)
16191 if test -f /usr/libexec/ld.so; then
16192 hardcode_direct=yes
16193 hardcode_shlibpath_var=no
16194 hardcode_direct_absolute=yes
16195 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16196 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16197 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16198 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16199 export_dynamic_flag_spec='${wl}-E'
16200 else
16201 case $host_os in
16202 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16203 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16204 hardcode_libdir_flag_spec='-R$libdir'
16205 ;;
16206 *)
16207 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16208 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16209 ;;
16210 esac
16211 fi
16212 else
16213 ld_shlibs=no
16214 fi
16215 ;;
16216
16217 os2*)
16218 hardcode_libdir_flag_spec='-L$libdir'
16219 hardcode_minus_L=yes
16220 allow_undefined_flag=unsupported
16221 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'
16222 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16223 ;;
16224
16225 osf3*)
16226 if test "$GCC" = yes; then
16227 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16228 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'
16229 else
16230 allow_undefined_flag=' -expect_unresolved \*'
16231 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'
16232 fi
16233 archive_cmds_need_lc='no'
16234 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16235 hardcode_libdir_separator=:
16236 ;;
16237
16238 osf4* | osf5*) # as osf3* with the addition of -msym flag
16239 if test "$GCC" = yes; then
16240 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16241 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'
16242 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16243 else
16244 allow_undefined_flag=' -expect_unresolved \*'
16245 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'
16246 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~
16247 $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'
16248
16249 # Both c and cxx compiler support -rpath directly
16250 hardcode_libdir_flag_spec='-rpath $libdir'
16251 fi
16252 archive_cmds_need_lc='no'
16253 hardcode_libdir_separator=:
16254 ;;
16255
16256 solaris*)
16257 no_undefined_flag=' -z defs'
16258 if test "$GCC" = yes; then
16259 wlarc='${wl}'
16260 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16261 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16262 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16263 else
16264 case `$CC -V 2>&1` in
16265 *"Compilers 5.0"*)
16266 wlarc=''
16267 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16268 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16269 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16270 ;;
16271 *)
16272 wlarc='${wl}'
16273 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16274 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16275 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16276 ;;
16277 esac
16278 fi
16279 hardcode_libdir_flag_spec='-R$libdir'
16280 hardcode_shlibpath_var=no
16281 case $host_os in
16282 solaris2.[0-5] | solaris2.[0-5].*) ;;
16283 *)
16284 # The compiler driver will combine and reorder linker options,
16285 # but understands `-z linker_flag'. GCC discards it without `$wl',
16286 # but is careful enough not to reorder.
16287 # Supported since Solaris 2.6 (maybe 2.5.1?)
16288 if test "$GCC" = yes; then
16289 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16290 else
16291 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16292 fi
16293 ;;
16294 esac
16295 link_all_deplibs=yes
16296 ;;
16297
16298 sunos4*)
16299 if test "x$host_vendor" = xsequent; then
16300 # Use $CC to link under sequent, because it throws in some extra .o
16301 # files that make .init and .fini sections work.
16302 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16303 else
16304 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16305 fi
16306 hardcode_libdir_flag_spec='-L$libdir'
16307 hardcode_direct=yes
16308 hardcode_minus_L=yes
16309 hardcode_shlibpath_var=no
16310 ;;
16311
16312 sysv4)
16313 case $host_vendor in
16314 sni)
16315 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16316 hardcode_direct=yes # is this really true???
16317 ;;
16318 siemens)
16319 ## LD is ld it makes a PLAMLIB
16320 ## CC just makes a GrossModule.
16321 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16322 reload_cmds='$CC -r -o $output$reload_objs'
16323 hardcode_direct=no
16324 ;;
16325 motorola)
16326 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16327 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16328 ;;
16329 esac
16330 runpath_var='LD_RUN_PATH'
16331 hardcode_shlibpath_var=no
16332 ;;
16333
16334 sysv4.3*)
16335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16336 hardcode_shlibpath_var=no
16337 export_dynamic_flag_spec='-Bexport'
16338 ;;
16339
16340 sysv4*MP*)
16341 if test -d /usr/nec; then
16342 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16343 hardcode_shlibpath_var=no
16344 runpath_var=LD_RUN_PATH
16345 hardcode_runpath_var=yes
16346 ld_shlibs=yes
16347 fi
16348 ;;
16349
16350 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16351 no_undefined_flag='${wl}-z,text'
16352 archive_cmds_need_lc=no
16353 hardcode_shlibpath_var=no
16354 runpath_var='LD_RUN_PATH'
16355
16356 if test "$GCC" = yes; then
16357 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16358 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16359 else
16360 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16361 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16362 fi
16363 ;;
16364
16365 sysv5* | sco3.2v5* | sco5v6*)
16366 # Note: We can NOT use -z defs as we might desire, because we do not
16367 # link with -lc, and that would cause any symbols used from libc to
16368 # always be unresolved, which means just about no library would
16369 # ever link correctly. If we're not using GNU ld we use -z text
16370 # though, which does catch some bad symbols but isn't as heavy-handed
16371 # as -z defs.
16372 no_undefined_flag='${wl}-z,text'
16373 allow_undefined_flag='${wl}-z,nodefs'
16374 archive_cmds_need_lc=no
16375 hardcode_shlibpath_var=no
16376 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16377 hardcode_libdir_separator=':'
16378 link_all_deplibs=yes
16379 export_dynamic_flag_spec='${wl}-Bexport'
16380 runpath_var='LD_RUN_PATH'
16381
16382 if test "$GCC" = yes; then
16383 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16384 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16385 else
16386 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16387 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16388 fi
16389 ;;
16390
16391 uts4*)
16392 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16393 hardcode_libdir_flag_spec='-L$libdir'
16394 hardcode_shlibpath_var=no
16395 ;;
16396
16397 *)
16398 ld_shlibs=no
16399 ;;
16400 esac
16401
16402 if test x$host_vendor = xsni; then
16403 case $host in
16404 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16405 export_dynamic_flag_spec='${wl}-Blargedynsym'
16406 ;;
16407 esac
16408 fi
16409 fi
16410
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16412 $as_echo "$ld_shlibs" >&6; }
16413 test "$ld_shlibs" = no && can_build_shared=no
16414
16415 with_gnu_ld=$with_gnu_ld
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431 #
16432 # Do we need to explicitly link libc?
16433 #
16434 case "x$archive_cmds_need_lc" in
16435 x|xyes)
16436 # Assume -lc should be added
16437 archive_cmds_need_lc=yes
16438
16439 if test "$enable_shared" = yes && test "$GCC" = yes; then
16440 case $archive_cmds in
16441 *'~'*)
16442 # FIXME: we may have to deal with multi-command sequences.
16443 ;;
16444 '$CC '*)
16445 # Test whether the compiler implicitly links with -lc since on some
16446 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16447 # to ld, don't add -lc before -lgcc.
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16449 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16450 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16451 $as_echo_n "(cached) " >&6
16452 else
16453 $RM conftest*
16454 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16455
16456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16457 (eval $ac_compile) 2>&5
16458 ac_status=$?
16459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16460 test $ac_status = 0; } 2>conftest.err; then
16461 soname=conftest
16462 lib=conftest
16463 libobjs=conftest.$ac_objext
16464 deplibs=
16465 wl=$lt_prog_compiler_wl
16466 pic_flag=$lt_prog_compiler_pic
16467 compiler_flags=-v
16468 linker_flags=-v
16469 verstring=
16470 output_objdir=.
16471 libname=conftest
16472 lt_save_allow_undefined_flag=$allow_undefined_flag
16473 allow_undefined_flag=
16474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16475 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16476 ac_status=$?
16477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16478 test $ac_status = 0; }
16479 then
16480 lt_cv_archive_cmds_need_lc=no
16481 else
16482 lt_cv_archive_cmds_need_lc=yes
16483 fi
16484 allow_undefined_flag=$lt_save_allow_undefined_flag
16485 else
16486 cat conftest.err 1>&5
16487 fi
16488 $RM conftest*
16489
16490 fi
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16492 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16493 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16494 ;;
16495 esac
16496 fi
16497 ;;
16498 esac
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16657 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16658
16659 if test "$GCC" = yes; then
16660 case $host_os in
16661 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16662 *) lt_awk_arg="/^libraries:/" ;;
16663 esac
16664 case $host_os in
16665 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16666 *) lt_sed_strip_eq="s,=/,/,g" ;;
16667 esac
16668 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16669 case $lt_search_path_spec in
16670 *\;*)
16671 # if the path contains ";" then we assume it to be the separator
16672 # otherwise default to the standard path separator (i.e. ":") - it is
16673 # assumed that no part of a normal pathname contains ";" but that should
16674 # okay in the real world where ";" in dirpaths is itself problematic.
16675 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16676 ;;
16677 *)
16678 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16679 ;;
16680 esac
16681 # Ok, now we have the path, separated by spaces, we can step through it
16682 # and add multilib dir if necessary.
16683 lt_tmp_lt_search_path_spec=
16684 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16685 for lt_sys_path in $lt_search_path_spec; do
16686 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16687 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16688 else
16689 test -d "$lt_sys_path" && \
16690 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16691 fi
16692 done
16693 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16694 BEGIN {RS=" "; FS="/|\n";} {
16695 lt_foo="";
16696 lt_count=0;
16697 for (lt_i = NF; lt_i > 0; lt_i--) {
16698 if ($lt_i != "" && $lt_i != ".") {
16699 if ($lt_i == "..") {
16700 lt_count++;
16701 } else {
16702 if (lt_count == 0) {
16703 lt_foo="/" $lt_i lt_foo;
16704 } else {
16705 lt_count--;
16706 }
16707 }
16708 }
16709 }
16710 if (lt_foo != "") { lt_freq[lt_foo]++; }
16711 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16712 }'`
16713 # AWK program above erroneously prepends '/' to C:/dos/paths
16714 # for these hosts.
16715 case $host_os in
16716 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16717 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16718 esac
16719 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16720 else
16721 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16722 fi
16723 library_names_spec=
16724 libname_spec='lib$name'
16725 soname_spec=
16726 shrext_cmds=".so"
16727 postinstall_cmds=
16728 postuninstall_cmds=
16729 finish_cmds=
16730 finish_eval=
16731 shlibpath_var=
16732 shlibpath_overrides_runpath=unknown
16733 version_type=none
16734 dynamic_linker="$host_os ld.so"
16735 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16736 need_lib_prefix=unknown
16737 hardcode_into_libs=no
16738
16739 # when you set need_version to no, make sure it does not cause -set_version
16740 # flags to be left without arguments
16741 need_version=unknown
16742
16743 case $host_os in
16744 aix3*)
16745 version_type=linux
16746 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16747 shlibpath_var=LIBPATH
16748
16749 # AIX 3 has no versioning support, so we append a major version to the name.
16750 soname_spec='${libname}${release}${shared_ext}$major'
16751 ;;
16752
16753 aix[4-9]*)
16754 version_type=linux
16755 need_lib_prefix=no
16756 need_version=no
16757 hardcode_into_libs=yes
16758 if test "$host_cpu" = ia64; then
16759 # AIX 5 supports IA64
16760 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16761 shlibpath_var=LD_LIBRARY_PATH
16762 else
16763 # With GCC up to 2.95.x, collect2 would create an import file
16764 # for dependence libraries. The import file would start with
16765 # the line `#! .'. This would cause the generated library to
16766 # depend on `.', always an invalid library. This was fixed in
16767 # development snapshots of GCC prior to 3.0.
16768 case $host_os in
16769 aix4 | aix4.[01] | aix4.[01].*)
16770 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16771 echo ' yes '
16772 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16773 :
16774 else
16775 can_build_shared=no
16776 fi
16777 ;;
16778 esac
16779 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16780 # soname into executable. Probably we can add versioning support to
16781 # collect2, so additional links can be useful in future.
16782 if test "$aix_use_runtimelinking" = yes; then
16783 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16784 # instead of lib<name>.a to let people know that these are not
16785 # typical AIX shared libraries.
16786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16787 else
16788 # We preserve .a as extension for shared libraries through AIX4.2
16789 # and later when we are not doing run time linking.
16790 library_names_spec='${libname}${release}.a $libname.a'
16791 soname_spec='${libname}${release}${shared_ext}$major'
16792 fi
16793 shlibpath_var=LIBPATH
16794 fi
16795 ;;
16796
16797 amigaos*)
16798 case $host_cpu in
16799 powerpc)
16800 # Since July 2007 AmigaOS4 officially supports .so libraries.
16801 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16803 ;;
16804 m68k)
16805 library_names_spec='$libname.ixlibrary $libname.a'
16806 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16807 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'
16808 ;;
16809 esac
16810 ;;
16811
16812 beos*)
16813 library_names_spec='${libname}${shared_ext}'
16814 dynamic_linker="$host_os ld.so"
16815 shlibpath_var=LIBRARY_PATH
16816 ;;
16817
16818 bsdi[45]*)
16819 version_type=linux
16820 need_version=no
16821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16822 soname_spec='${libname}${release}${shared_ext}$major'
16823 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16824 shlibpath_var=LD_LIBRARY_PATH
16825 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16826 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16827 # the default ld.so.conf also contains /usr/contrib/lib and
16828 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16829 # libtool to hard-code these into programs
16830 ;;
16831
16832 cygwin* | mingw* | pw32* | cegcc*)
16833 version_type=windows
16834 shrext_cmds=".dll"
16835 need_version=no
16836 need_lib_prefix=no
16837
16838 case $GCC,$host_os in
16839 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16840 library_names_spec='$libname.dll.a'
16841 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16842 postinstall_cmds='base_file=`basename \${file}`~
16843 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16844 dldir=$destdir/`dirname \$dlpath`~
16845 test -d \$dldir || mkdir -p \$dldir~
16846 $install_prog $dir/$dlname \$dldir/$dlname~
16847 chmod a+x \$dldir/$dlname~
16848 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16849 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16850 fi'
16851 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16852 dlpath=$dir/\$dldll~
16853 $RM \$dlpath'
16854 shlibpath_overrides_runpath=yes
16855
16856 case $host_os in
16857 cygwin*)
16858 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16859 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16860
16861 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16862 ;;
16863 mingw* | cegcc*)
16864 # MinGW DLLs use traditional 'lib' prefix
16865 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16866 ;;
16867 pw32*)
16868 # pw32 DLLs use 'pw' prefix rather than 'lib'
16869 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16870 ;;
16871 esac
16872 ;;
16873
16874 *)
16875 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16876 ;;
16877 esac
16878 dynamic_linker='Win32 ld.exe'
16879 # FIXME: first we should search . and the directory the executable is in
16880 shlibpath_var=PATH
16881 ;;
16882
16883 darwin* | rhapsody*)
16884 dynamic_linker="$host_os dyld"
16885 version_type=darwin
16886 need_lib_prefix=no
16887 need_version=no
16888 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16889 soname_spec='${libname}${release}${major}$shared_ext'
16890 shlibpath_overrides_runpath=yes
16891 shlibpath_var=DYLD_LIBRARY_PATH
16892 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16893
16894 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16895 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16896 ;;
16897
16898 dgux*)
16899 version_type=linux
16900 need_lib_prefix=no
16901 need_version=no
16902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16903 soname_spec='${libname}${release}${shared_ext}$major'
16904 shlibpath_var=LD_LIBRARY_PATH
16905 ;;
16906
16907 freebsd* | dragonfly*)
16908 # DragonFly does not have aout. When/if they implement a new
16909 # versioning mechanism, adjust this.
16910 if test -x /usr/bin/objformat; then
16911 objformat=`/usr/bin/objformat`
16912 else
16913 case $host_os in
16914 freebsd[123]*) objformat=aout ;;
16915 *) objformat=elf ;;
16916 esac
16917 fi
16918 version_type=freebsd-$objformat
16919 case $version_type in
16920 freebsd-elf*)
16921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16922 need_version=no
16923 need_lib_prefix=no
16924 ;;
16925 freebsd-*)
16926 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16927 need_version=yes
16928 ;;
16929 esac
16930 shlibpath_var=LD_LIBRARY_PATH
16931 case $host_os in
16932 freebsd2*)
16933 shlibpath_overrides_runpath=yes
16934 ;;
16935 freebsd3.[01]* | freebsdelf3.[01]*)
16936 shlibpath_overrides_runpath=yes
16937 hardcode_into_libs=yes
16938 ;;
16939 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16940 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16941 shlibpath_overrides_runpath=no
16942 hardcode_into_libs=yes
16943 ;;
16944 *) # from 4.6 on, and DragonFly
16945 shlibpath_overrides_runpath=yes
16946 hardcode_into_libs=yes
16947 ;;
16948 esac
16949 ;;
16950
16951 gnu*)
16952 version_type=linux
16953 need_lib_prefix=no
16954 need_version=no
16955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16956 soname_spec='${libname}${release}${shared_ext}$major'
16957 shlibpath_var=LD_LIBRARY_PATH
16958 hardcode_into_libs=yes
16959 ;;
16960
16961 haiku*)
16962 version_type=linux
16963 need_lib_prefix=no
16964 need_version=no
16965 dynamic_linker="$host_os runtime_loader"
16966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16967 soname_spec='${libname}${release}${shared_ext}$major'
16968 shlibpath_var=LIBRARY_PATH
16969 shlibpath_overrides_runpath=yes
16970 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16971 hardcode_into_libs=yes
16972 ;;
16973
16974 hpux9* | hpux10* | hpux11*)
16975 # Give a soname corresponding to the major version so that dld.sl refuses to
16976 # link against other versions.
16977 version_type=sunos
16978 need_lib_prefix=no
16979 need_version=no
16980 case $host_cpu in
16981 ia64*)
16982 shrext_cmds='.so'
16983 hardcode_into_libs=yes
16984 dynamic_linker="$host_os dld.so"
16985 shlibpath_var=LD_LIBRARY_PATH
16986 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16988 soname_spec='${libname}${release}${shared_ext}$major'
16989 if test "X$HPUX_IA64_MODE" = X32; then
16990 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16991 else
16992 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16993 fi
16994 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16995 ;;
16996 hppa*64*)
16997 shrext_cmds='.sl'
16998 hardcode_into_libs=yes
16999 dynamic_linker="$host_os dld.sl"
17000 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17001 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17003 soname_spec='${libname}${release}${shared_ext}$major'
17004 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17005 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17006 ;;
17007 *)
17008 shrext_cmds='.sl'
17009 dynamic_linker="$host_os dld.sl"
17010 shlibpath_var=SHLIB_PATH
17011 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17013 soname_spec='${libname}${release}${shared_ext}$major'
17014 ;;
17015 esac
17016 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17017 postinstall_cmds='chmod 555 $lib'
17018 # or fails outright, so override atomically:
17019 install_override_mode=555
17020 ;;
17021
17022 interix[3-9]*)
17023 version_type=linux
17024 need_lib_prefix=no
17025 need_version=no
17026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17027 soname_spec='${libname}${release}${shared_ext}$major'
17028 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17029 shlibpath_var=LD_LIBRARY_PATH
17030 shlibpath_overrides_runpath=no
17031 hardcode_into_libs=yes
17032 ;;
17033
17034 irix5* | irix6* | nonstopux*)
17035 case $host_os in
17036 nonstopux*) version_type=nonstopux ;;
17037 *)
17038 if test "$lt_cv_prog_gnu_ld" = yes; then
17039 version_type=linux
17040 else
17041 version_type=irix
17042 fi ;;
17043 esac
17044 need_lib_prefix=no
17045 need_version=no
17046 soname_spec='${libname}${release}${shared_ext}$major'
17047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17048 case $host_os in
17049 irix5* | nonstopux*)
17050 libsuff= shlibsuff=
17051 ;;
17052 *)
17053 case $LD in # libtool.m4 will add one of these switches to LD
17054 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17055 libsuff= shlibsuff= libmagic=32-bit;;
17056 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17057 libsuff=32 shlibsuff=N32 libmagic=N32;;
17058 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17059 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17060 *) libsuff= shlibsuff= libmagic=never-match;;
17061 esac
17062 ;;
17063 esac
17064 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17065 shlibpath_overrides_runpath=no
17066 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17067 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17068 hardcode_into_libs=yes
17069 ;;
17070
17071 # No shared lib support for Linux oldld, aout, or coff.
17072 linux*oldld* | linux*aout* | linux*coff*)
17073 dynamic_linker=no
17074 ;;
17075
17076 # This must be Linux ELF.
17077 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17078 version_type=linux
17079 need_lib_prefix=no
17080 need_version=no
17081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17082 soname_spec='${libname}${release}${shared_ext}$major'
17083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17084 shlibpath_var=LD_LIBRARY_PATH
17085 shlibpath_overrides_runpath=no
17086
17087 # Some binutils ld are patched to set DT_RUNPATH
17088 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17089 $as_echo_n "(cached) " >&6
17090 else
17091 lt_cv_shlibpath_overrides_runpath=no
17092 save_LDFLAGS=$LDFLAGS
17093 save_libdir=$libdir
17094 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17095 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17097 /* end confdefs.h. */
17098
17099 int
17100 main ()
17101 {
17102
17103 ;
17104 return 0;
17105 }
17106 _ACEOF
17107 if ac_fn_c_try_link "$LINENO"; then :
17108 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17109 lt_cv_shlibpath_overrides_runpath=yes
17110 fi
17111 fi
17112 rm -f core conftest.err conftest.$ac_objext \
17113 conftest$ac_exeext conftest.$ac_ext
17114 LDFLAGS=$save_LDFLAGS
17115 libdir=$save_libdir
17116
17117 fi
17118
17119 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17120
17121 # This implies no fast_install, which is unacceptable.
17122 # Some rework will be needed to allow for fast_install
17123 # before this can be enabled.
17124 hardcode_into_libs=yes
17125
17126 # Append ld.so.conf contents to the search path
17127 if test -f /etc/ld.so.conf; then
17128 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' ' '`
17129 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17130 fi
17131
17132 # We used to test for /lib/ld.so.1 and disable shared libraries on
17133 # powerpc, because MkLinux only supported shared libraries with the
17134 # GNU dynamic linker. Since this was broken with cross compilers,
17135 # most powerpc-linux boxes support dynamic linking these days and
17136 # people can always --disable-shared, the test was removed, and we
17137 # assume the GNU/Linux dynamic linker is in use.
17138 dynamic_linker='GNU/Linux ld.so'
17139 ;;
17140
17141 netbsd*)
17142 version_type=sunos
17143 need_lib_prefix=no
17144 need_version=no
17145 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17147 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17148 dynamic_linker='NetBSD (a.out) ld.so'
17149 else
17150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17151 soname_spec='${libname}${release}${shared_ext}$major'
17152 dynamic_linker='NetBSD ld.elf_so'
17153 fi
17154 shlibpath_var=LD_LIBRARY_PATH
17155 shlibpath_overrides_runpath=yes
17156 hardcode_into_libs=yes
17157 ;;
17158
17159 newsos6)
17160 version_type=linux
17161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17162 shlibpath_var=LD_LIBRARY_PATH
17163 shlibpath_overrides_runpath=yes
17164 ;;
17165
17166 *nto* | *qnx*)
17167 version_type=qnx
17168 need_lib_prefix=no
17169 need_version=no
17170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17171 soname_spec='${libname}${release}${shared_ext}$major'
17172 shlibpath_var=LD_LIBRARY_PATH
17173 shlibpath_overrides_runpath=no
17174 hardcode_into_libs=yes
17175 dynamic_linker='ldqnx.so'
17176 ;;
17177
17178 openbsd*)
17179 version_type=sunos
17180 sys_lib_dlsearch_path_spec="/usr/lib"
17181 need_lib_prefix=no
17182 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17183 case $host_os in
17184 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17185 *) need_version=no ;;
17186 esac
17187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17188 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17189 shlibpath_var=LD_LIBRARY_PATH
17190 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17191 case $host_os in
17192 openbsd2.[89] | openbsd2.[89].*)
17193 shlibpath_overrides_runpath=no
17194 ;;
17195 *)
17196 shlibpath_overrides_runpath=yes
17197 ;;
17198 esac
17199 else
17200 shlibpath_overrides_runpath=yes
17201 fi
17202 ;;
17203
17204 os2*)
17205 libname_spec='$name'
17206 shrext_cmds=".dll"
17207 need_lib_prefix=no
17208 library_names_spec='$libname${shared_ext} $libname.a'
17209 dynamic_linker='OS/2 ld.exe'
17210 shlibpath_var=LIBPATH
17211 ;;
17212
17213 osf3* | osf4* | osf5*)
17214 version_type=osf
17215 need_lib_prefix=no
17216 need_version=no
17217 soname_spec='${libname}${release}${shared_ext}$major'
17218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17219 shlibpath_var=LD_LIBRARY_PATH
17220 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17221 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17222 ;;
17223
17224 rdos*)
17225 dynamic_linker=no
17226 ;;
17227
17228 solaris*)
17229 version_type=linux
17230 need_lib_prefix=no
17231 need_version=no
17232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17233 soname_spec='${libname}${release}${shared_ext}$major'
17234 shlibpath_var=LD_LIBRARY_PATH
17235 shlibpath_overrides_runpath=yes
17236 hardcode_into_libs=yes
17237 # ldd complains unless libraries are executable
17238 postinstall_cmds='chmod +x $lib'
17239 ;;
17240
17241 sunos4*)
17242 version_type=sunos
17243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17244 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17245 shlibpath_var=LD_LIBRARY_PATH
17246 shlibpath_overrides_runpath=yes
17247 if test "$with_gnu_ld" = yes; then
17248 need_lib_prefix=no
17249 fi
17250 need_version=yes
17251 ;;
17252
17253 sysv4 | sysv4.3*)
17254 version_type=linux
17255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17256 soname_spec='${libname}${release}${shared_ext}$major'
17257 shlibpath_var=LD_LIBRARY_PATH
17258 case $host_vendor in
17259 sni)
17260 shlibpath_overrides_runpath=no
17261 need_lib_prefix=no
17262 runpath_var=LD_RUN_PATH
17263 ;;
17264 siemens)
17265 need_lib_prefix=no
17266 ;;
17267 motorola)
17268 need_lib_prefix=no
17269 need_version=no
17270 shlibpath_overrides_runpath=no
17271 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17272 ;;
17273 esac
17274 ;;
17275
17276 sysv4*MP*)
17277 if test -d /usr/nec ;then
17278 version_type=linux
17279 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17280 soname_spec='$libname${shared_ext}.$major'
17281 shlibpath_var=LD_LIBRARY_PATH
17282 fi
17283 ;;
17284
17285 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17286 version_type=freebsd-elf
17287 need_lib_prefix=no
17288 need_version=no
17289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17290 soname_spec='${libname}${release}${shared_ext}$major'
17291 shlibpath_var=LD_LIBRARY_PATH
17292 shlibpath_overrides_runpath=yes
17293 hardcode_into_libs=yes
17294 if test "$with_gnu_ld" = yes; then
17295 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17296 else
17297 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17298 case $host_os in
17299 sco3.2v5*)
17300 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17301 ;;
17302 esac
17303 fi
17304 sys_lib_dlsearch_path_spec='/usr/lib'
17305 ;;
17306
17307 tpf*)
17308 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17309 version_type=linux
17310 need_lib_prefix=no
17311 need_version=no
17312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17313 shlibpath_var=LD_LIBRARY_PATH
17314 shlibpath_overrides_runpath=no
17315 hardcode_into_libs=yes
17316 ;;
17317
17318 uts4*)
17319 version_type=linux
17320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17321 soname_spec='${libname}${release}${shared_ext}$major'
17322 shlibpath_var=LD_LIBRARY_PATH
17323 ;;
17324
17325 *)
17326 dynamic_linker=no
17327 ;;
17328 esac
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17330 $as_echo "$dynamic_linker" >&6; }
17331 test "$dynamic_linker" = no && can_build_shared=no
17332
17333 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17334 if test "$GCC" = yes; then
17335 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17336 fi
17337
17338 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17339 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17340 fi
17341 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17342 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17343 fi
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17437 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17438 hardcode_action=
17439 if test -n "$hardcode_libdir_flag_spec" ||
17440 test -n "$runpath_var" ||
17441 test "X$hardcode_automatic" = "Xyes" ; then
17442
17443 # We can hardcode non-existent directories.
17444 if test "$hardcode_direct" != no &&
17445 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17446 # have to relink, otherwise we might link with an installed library
17447 # when we should be linking with a yet-to-be-installed one
17448 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17449 test "$hardcode_minus_L" != no; then
17450 # Linking always hardcodes the temporary library directory.
17451 hardcode_action=relink
17452 else
17453 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17454 hardcode_action=immediate
17455 fi
17456 else
17457 # We cannot hardcode anything, or else we can only hardcode existing
17458 # directories.
17459 hardcode_action=unsupported
17460 fi
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17462 $as_echo "$hardcode_action" >&6; }
17463
17464 if test "$hardcode_action" = relink ||
17465 test "$inherit_rpath" = yes; then
17466 # Fast installation is not supported
17467 enable_fast_install=no
17468 elif test "$shlibpath_overrides_runpath" = yes ||
17469 test "$enable_shared" = no; then
17470 # Fast installation is not necessary
17471 enable_fast_install=needless
17472 fi
17473
17474
17475
17476
17477
17478
17479 if test "x$enable_dlopen" != xyes; then
17480 enable_dlopen=unknown
17481 enable_dlopen_self=unknown
17482 enable_dlopen_self_static=unknown
17483 else
17484 lt_cv_dlopen=no
17485 lt_cv_dlopen_libs=
17486
17487 case $host_os in
17488 beos*)
17489 lt_cv_dlopen="load_add_on"
17490 lt_cv_dlopen_libs=
17491 lt_cv_dlopen_self=yes
17492 ;;
17493
17494 mingw* | pw32* | cegcc*)
17495 lt_cv_dlopen="LoadLibrary"
17496 lt_cv_dlopen_libs=
17497 ;;
17498
17499 cygwin*)
17500 lt_cv_dlopen="dlopen"
17501 lt_cv_dlopen_libs=
17502 ;;
17503
17504 darwin*)
17505 # if libdl is installed we need to link against it
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17507 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17508 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17509 $as_echo_n "(cached) " >&6
17510 else
17511 ac_check_lib_save_LIBS=$LIBS
17512 LIBS="-ldl $LIBS"
17513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17514 /* end confdefs.h. */
17515
17516 /* Override any GCC internal prototype to avoid an error.
17517 Use char because int might match the return type of a GCC
17518 builtin and then its argument prototype would still apply. */
17519 #ifdef __cplusplus
17520 extern "C"
17521 #endif
17522 char dlopen ();
17523 int
17524 main ()
17525 {
17526 return dlopen ();
17527 ;
17528 return 0;
17529 }
17530 _ACEOF
17531 if ac_fn_c_try_link "$LINENO"; then :
17532 ac_cv_lib_dl_dlopen=yes
17533 else
17534 ac_cv_lib_dl_dlopen=no
17535 fi
17536 rm -f core conftest.err conftest.$ac_objext \
17537 conftest$ac_exeext conftest.$ac_ext
17538 LIBS=$ac_check_lib_save_LIBS
17539 fi
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17541 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17542 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17543 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17544 else
17545
17546 lt_cv_dlopen="dyld"
17547 lt_cv_dlopen_libs=
17548 lt_cv_dlopen_self=yes
17549
17550 fi
17551
17552 ;;
17553
17554 *)
17555 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17556 if test "x$ac_cv_func_shl_load" = x""yes; then :
17557 lt_cv_dlopen="shl_load"
17558 else
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17560 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17561 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17562 $as_echo_n "(cached) " >&6
17563 else
17564 ac_check_lib_save_LIBS=$LIBS
17565 LIBS="-ldld $LIBS"
17566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17567 /* end confdefs.h. */
17568
17569 /* Override any GCC internal prototype to avoid an error.
17570 Use char because int might match the return type of a GCC
17571 builtin and then its argument prototype would still apply. */
17572 #ifdef __cplusplus
17573 extern "C"
17574 #endif
17575 char shl_load ();
17576 int
17577 main ()
17578 {
17579 return shl_load ();
17580 ;
17581 return 0;
17582 }
17583 _ACEOF
17584 if ac_fn_c_try_link "$LINENO"; then :
17585 ac_cv_lib_dld_shl_load=yes
17586 else
17587 ac_cv_lib_dld_shl_load=no
17588 fi
17589 rm -f core conftest.err conftest.$ac_objext \
17590 conftest$ac_exeext conftest.$ac_ext
17591 LIBS=$ac_check_lib_save_LIBS
17592 fi
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17594 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17595 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17596 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17597 else
17598 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17599 if test "x$ac_cv_func_dlopen" = x""yes; then :
17600 lt_cv_dlopen="dlopen"
17601 else
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17603 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17604 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17605 $as_echo_n "(cached) " >&6
17606 else
17607 ac_check_lib_save_LIBS=$LIBS
17608 LIBS="-ldl $LIBS"
17609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17610 /* end confdefs.h. */
17611
17612 /* Override any GCC internal prototype to avoid an error.
17613 Use char because int might match the return type of a GCC
17614 builtin and then its argument prototype would still apply. */
17615 #ifdef __cplusplus
17616 extern "C"
17617 #endif
17618 char dlopen ();
17619 int
17620 main ()
17621 {
17622 return dlopen ();
17623 ;
17624 return 0;
17625 }
17626 _ACEOF
17627 if ac_fn_c_try_link "$LINENO"; then :
17628 ac_cv_lib_dl_dlopen=yes
17629 else
17630 ac_cv_lib_dl_dlopen=no
17631 fi
17632 rm -f core conftest.err conftest.$ac_objext \
17633 conftest$ac_exeext conftest.$ac_ext
17634 LIBS=$ac_check_lib_save_LIBS
17635 fi
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17637 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17638 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17639 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17640 else
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17642 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17643 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17644 $as_echo_n "(cached) " >&6
17645 else
17646 ac_check_lib_save_LIBS=$LIBS
17647 LIBS="-lsvld $LIBS"
17648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17649 /* end confdefs.h. */
17650
17651 /* Override any GCC internal prototype to avoid an error.
17652 Use char because int might match the return type of a GCC
17653 builtin and then its argument prototype would still apply. */
17654 #ifdef __cplusplus
17655 extern "C"
17656 #endif
17657 char dlopen ();
17658 int
17659 main ()
17660 {
17661 return dlopen ();
17662 ;
17663 return 0;
17664 }
17665 _ACEOF
17666 if ac_fn_c_try_link "$LINENO"; then :
17667 ac_cv_lib_svld_dlopen=yes
17668 else
17669 ac_cv_lib_svld_dlopen=no
17670 fi
17671 rm -f core conftest.err conftest.$ac_objext \
17672 conftest$ac_exeext conftest.$ac_ext
17673 LIBS=$ac_check_lib_save_LIBS
17674 fi
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17676 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17677 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17678 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17679 else
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17681 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17682 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17683 $as_echo_n "(cached) " >&6
17684 else
17685 ac_check_lib_save_LIBS=$LIBS
17686 LIBS="-ldld $LIBS"
17687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17688 /* end confdefs.h. */
17689
17690 /* Override any GCC internal prototype to avoid an error.
17691 Use char because int might match the return type of a GCC
17692 builtin and then its argument prototype would still apply. */
17693 #ifdef __cplusplus
17694 extern "C"
17695 #endif
17696 char dld_link ();
17697 int
17698 main ()
17699 {
17700 return dld_link ();
17701 ;
17702 return 0;
17703 }
17704 _ACEOF
17705 if ac_fn_c_try_link "$LINENO"; then :
17706 ac_cv_lib_dld_dld_link=yes
17707 else
17708 ac_cv_lib_dld_dld_link=no
17709 fi
17710 rm -f core conftest.err conftest.$ac_objext \
17711 conftest$ac_exeext conftest.$ac_ext
17712 LIBS=$ac_check_lib_save_LIBS
17713 fi
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17715 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17716 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17717 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17718 fi
17719
17720
17721 fi
17722
17723
17724 fi
17725
17726
17727 fi
17728
17729
17730 fi
17731
17732
17733 fi
17734
17735 ;;
17736 esac
17737
17738 if test "x$lt_cv_dlopen" != xno; then
17739 enable_dlopen=yes
17740 else
17741 enable_dlopen=no
17742 fi
17743
17744 case $lt_cv_dlopen in
17745 dlopen)
17746 save_CPPFLAGS="$CPPFLAGS"
17747 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17748
17749 save_LDFLAGS="$LDFLAGS"
17750 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17751
17752 save_LIBS="$LIBS"
17753 LIBS="$lt_cv_dlopen_libs $LIBS"
17754
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17756 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17757 if test "${lt_cv_dlopen_self+set}" = set; then :
17758 $as_echo_n "(cached) " >&6
17759 else
17760 if test "$cross_compiling" = yes; then :
17761 lt_cv_dlopen_self=cross
17762 else
17763 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17764 lt_status=$lt_dlunknown
17765 cat > conftest.$ac_ext <<_LT_EOF
17766 #line 17766 "configure"
17767 #include "confdefs.h"
17768
17769 #if HAVE_DLFCN_H
17770 #include <dlfcn.h>
17771 #endif
17772
17773 #include <stdio.h>
17774
17775 #ifdef RTLD_GLOBAL
17776 # define LT_DLGLOBAL RTLD_GLOBAL
17777 #else
17778 # ifdef DL_GLOBAL
17779 # define LT_DLGLOBAL DL_GLOBAL
17780 # else
17781 # define LT_DLGLOBAL 0
17782 # endif
17783 #endif
17784
17785 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17786 find out it does not work in some platform. */
17787 #ifndef LT_DLLAZY_OR_NOW
17788 # ifdef RTLD_LAZY
17789 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17790 # else
17791 # ifdef DL_LAZY
17792 # define LT_DLLAZY_OR_NOW DL_LAZY
17793 # else
17794 # ifdef RTLD_NOW
17795 # define LT_DLLAZY_OR_NOW RTLD_NOW
17796 # else
17797 # ifdef DL_NOW
17798 # define LT_DLLAZY_OR_NOW DL_NOW
17799 # else
17800 # define LT_DLLAZY_OR_NOW 0
17801 # endif
17802 # endif
17803 # endif
17804 # endif
17805 #endif
17806
17807 /* When -fvisbility=hidden is used, assume the code has been annotated
17808 correspondingly for the symbols needed. */
17809 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17810 void fnord () __attribute__((visibility("default")));
17811 #endif
17812
17813 void fnord () { int i=42; }
17814 int main ()
17815 {
17816 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17817 int status = $lt_dlunknown;
17818
17819 if (self)
17820 {
17821 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17822 else
17823 {
17824 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17825 else puts (dlerror ());
17826 }
17827 /* dlclose (self); */
17828 }
17829 else
17830 puts (dlerror ());
17831
17832 return status;
17833 }
17834 _LT_EOF
17835 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17836 (eval $ac_link) 2>&5
17837 ac_status=$?
17838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17839 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17840 (./conftest; exit; ) >&5 2>/dev/null
17841 lt_status=$?
17842 case x$lt_status in
17843 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17844 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17845 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17846 esac
17847 else :
17848 # compilation failed
17849 lt_cv_dlopen_self=no
17850 fi
17851 fi
17852 rm -fr conftest*
17853
17854
17855 fi
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17857 $as_echo "$lt_cv_dlopen_self" >&6; }
17858
17859 if test "x$lt_cv_dlopen_self" = xyes; then
17860 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17862 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17863 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17864 $as_echo_n "(cached) " >&6
17865 else
17866 if test "$cross_compiling" = yes; then :
17867 lt_cv_dlopen_self_static=cross
17868 else
17869 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17870 lt_status=$lt_dlunknown
17871 cat > conftest.$ac_ext <<_LT_EOF
17872 #line 17872 "configure"
17873 #include "confdefs.h"
17874
17875 #if HAVE_DLFCN_H
17876 #include <dlfcn.h>
17877 #endif
17878
17879 #include <stdio.h>
17880
17881 #ifdef RTLD_GLOBAL
17882 # define LT_DLGLOBAL RTLD_GLOBAL
17883 #else
17884 # ifdef DL_GLOBAL
17885 # define LT_DLGLOBAL DL_GLOBAL
17886 # else
17887 # define LT_DLGLOBAL 0
17888 # endif
17889 #endif
17890
17891 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17892 find out it does not work in some platform. */
17893 #ifndef LT_DLLAZY_OR_NOW
17894 # ifdef RTLD_LAZY
17895 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17896 # else
17897 # ifdef DL_LAZY
17898 # define LT_DLLAZY_OR_NOW DL_LAZY
17899 # else
17900 # ifdef RTLD_NOW
17901 # define LT_DLLAZY_OR_NOW RTLD_NOW
17902 # else
17903 # ifdef DL_NOW
17904 # define LT_DLLAZY_OR_NOW DL_NOW
17905 # else
17906 # define LT_DLLAZY_OR_NOW 0
17907 # endif
17908 # endif
17909 # endif
17910 # endif
17911 #endif
17912
17913 /* When -fvisbility=hidden is used, assume the code has been annotated
17914 correspondingly for the symbols needed. */
17915 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17916 void fnord () __attribute__((visibility("default")));
17917 #endif
17918
17919 void fnord () { int i=42; }
17920 int main ()
17921 {
17922 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17923 int status = $lt_dlunknown;
17924
17925 if (self)
17926 {
17927 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17928 else
17929 {
17930 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17931 else puts (dlerror ());
17932 }
17933 /* dlclose (self); */
17934 }
17935 else
17936 puts (dlerror ());
17937
17938 return status;
17939 }
17940 _LT_EOF
17941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17942 (eval $ac_link) 2>&5
17943 ac_status=$?
17944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17945 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17946 (./conftest; exit; ) >&5 2>/dev/null
17947 lt_status=$?
17948 case x$lt_status in
17949 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17950 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17951 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17952 esac
17953 else :
17954 # compilation failed
17955 lt_cv_dlopen_self_static=no
17956 fi
17957 fi
17958 rm -fr conftest*
17959
17960
17961 fi
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17963 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17964 fi
17965
17966 CPPFLAGS="$save_CPPFLAGS"
17967 LDFLAGS="$save_LDFLAGS"
17968 LIBS="$save_LIBS"
17969 ;;
17970 esac
17971
17972 case $lt_cv_dlopen_self in
17973 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17974 *) enable_dlopen_self=unknown ;;
17975 esac
17976
17977 case $lt_cv_dlopen_self_static in
17978 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17979 *) enable_dlopen_self_static=unknown ;;
17980 esac
17981 fi
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999 striplib=
18000 old_striplib=
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18002 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18003 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18004 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18005 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18007 $as_echo "yes" >&6; }
18008 else
18009 # FIXME - insert some real tests, host_os isn't really good enough
18010 case $host_os in
18011 darwin*)
18012 if test -n "$STRIP" ; then
18013 striplib="$STRIP -x"
18014 old_striplib="$STRIP -S"
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18016 $as_echo "yes" >&6; }
18017 else
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18019 $as_echo "no" >&6; }
18020 fi
18021 ;;
18022 *)
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18024 $as_echo "no" >&6; }
18025 ;;
18026 esac
18027 fi
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040 # Report which library types will actually be built
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18042 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18044 $as_echo "$can_build_shared" >&6; }
18045
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18047 $as_echo_n "checking whether to build shared libraries... " >&6; }
18048 test "$can_build_shared" = "no" && enable_shared=no
18049
18050 # On AIX, shared libraries and static libraries use the same namespace, and
18051 # are all built from PIC.
18052 case $host_os in
18053 aix3*)
18054 test "$enable_shared" = yes && enable_static=no
18055 if test -n "$RANLIB"; then
18056 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18057 postinstall_cmds='$RANLIB $lib'
18058 fi
18059 ;;
18060
18061 aix[4-9]*)
18062 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18063 test "$enable_shared" = yes && enable_static=no
18064 fi
18065 ;;
18066 esac
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18068 $as_echo "$enable_shared" >&6; }
18069
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18071 $as_echo_n "checking whether to build static libraries... " >&6; }
18072 # Make sure either enable_shared or enable_static is yes.
18073 test "$enable_shared" = yes || enable_static=yes
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18075 $as_echo "$enable_static" >&6; }
18076
18077
18078
18079
18080 fi
18081 ac_ext=c
18082 ac_cpp='$CPP $CPPFLAGS'
18083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18086
18087 CC="$lt_save_CC"
18088
18089 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18090 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18091 (test "X$CXX" != "Xg++"))) ; then
18092 ac_ext=cpp
18093 ac_cpp='$CXXCPP $CPPFLAGS'
18094 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18095 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18096 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18098 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18099 if test -z "$CXXCPP"; then
18100 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18101 $as_echo_n "(cached) " >&6
18102 else
18103 # Double quotes because CXXCPP needs to be expanded
18104 for CXXCPP in "$CXX -E" "/lib/cpp"
18105 do
18106 ac_preproc_ok=false
18107 for ac_cxx_preproc_warn_flag in '' yes
18108 do
18109 # Use a header file that comes with gcc, so configuring glibc
18110 # with a fresh cross-compiler works.
18111 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18112 # <limits.h> exists even on freestanding compilers.
18113 # On the NeXT, cc -E runs the code through the compiler's parser,
18114 # not just through cpp. "Syntax error" is here to catch this case.
18115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18116 /* end confdefs.h. */
18117 #ifdef __STDC__
18118 # include <limits.h>
18119 #else
18120 # include <assert.h>
18121 #endif
18122 Syntax error
18123 _ACEOF
18124 if ac_fn_cxx_try_cpp "$LINENO"; then :
18125
18126 else
18127 # Broken: fails on valid input.
18128 continue
18129 fi
18130 rm -f conftest.err conftest.$ac_ext
18131
18132 # OK, works on sane cases. Now check whether nonexistent headers
18133 # can be detected and how.
18134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18135 /* end confdefs.h. */
18136 #include <ac_nonexistent.h>
18137 _ACEOF
18138 if ac_fn_cxx_try_cpp "$LINENO"; then :
18139 # Broken: success on invalid input.
18140 continue
18141 else
18142 # Passes both tests.
18143 ac_preproc_ok=:
18144 break
18145 fi
18146 rm -f conftest.err conftest.$ac_ext
18147
18148 done
18149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18150 rm -f conftest.err conftest.$ac_ext
18151 if $ac_preproc_ok; then :
18152 break
18153 fi
18154
18155 done
18156 ac_cv_prog_CXXCPP=$CXXCPP
18157
18158 fi
18159 CXXCPP=$ac_cv_prog_CXXCPP
18160 else
18161 ac_cv_prog_CXXCPP=$CXXCPP
18162 fi
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18164 $as_echo "$CXXCPP" >&6; }
18165 ac_preproc_ok=false
18166 for ac_cxx_preproc_warn_flag in '' yes
18167 do
18168 # Use a header file that comes with gcc, so configuring glibc
18169 # with a fresh cross-compiler works.
18170 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18171 # <limits.h> exists even on freestanding compilers.
18172 # On the NeXT, cc -E runs the code through the compiler's parser,
18173 # not just through cpp. "Syntax error" is here to catch this case.
18174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18175 /* end confdefs.h. */
18176 #ifdef __STDC__
18177 # include <limits.h>
18178 #else
18179 # include <assert.h>
18180 #endif
18181 Syntax error
18182 _ACEOF
18183 if ac_fn_cxx_try_cpp "$LINENO"; then :
18184
18185 else
18186 # Broken: fails on valid input.
18187 continue
18188 fi
18189 rm -f conftest.err conftest.$ac_ext
18190
18191 # OK, works on sane cases. Now check whether nonexistent headers
18192 # can be detected and how.
18193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18194 /* end confdefs.h. */
18195 #include <ac_nonexistent.h>
18196 _ACEOF
18197 if ac_fn_cxx_try_cpp "$LINENO"; then :
18198 # Broken: success on invalid input.
18199 continue
18200 else
18201 # Passes both tests.
18202 ac_preproc_ok=:
18203 break
18204 fi
18205 rm -f conftest.err conftest.$ac_ext
18206
18207 done
18208 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18209 rm -f conftest.err conftest.$ac_ext
18210 if $ac_preproc_ok; then :
18211
18212 else
18213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18215 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18216 See \`config.log' for more details." "$LINENO" 5; }
18217 fi
18218
18219 ac_ext=c
18220 ac_cpp='$CPP $CPPFLAGS'
18221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18224
18225 else
18226 _lt_caught_CXX_error=yes
18227 fi
18228
18229 ac_ext=cpp
18230 ac_cpp='$CXXCPP $CPPFLAGS'
18231 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18232 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18233 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18234
18235 archive_cmds_need_lc_CXX=no
18236 allow_undefined_flag_CXX=
18237 always_export_symbols_CXX=no
18238 archive_expsym_cmds_CXX=
18239 compiler_needs_object_CXX=no
18240 export_dynamic_flag_spec_CXX=
18241 hardcode_direct_CXX=no
18242 hardcode_direct_absolute_CXX=no
18243 hardcode_libdir_flag_spec_CXX=
18244 hardcode_libdir_flag_spec_ld_CXX=
18245 hardcode_libdir_separator_CXX=
18246 hardcode_minus_L_CXX=no
18247 hardcode_shlibpath_var_CXX=unsupported
18248 hardcode_automatic_CXX=no
18249 inherit_rpath_CXX=no
18250 module_cmds_CXX=
18251 module_expsym_cmds_CXX=
18252 link_all_deplibs_CXX=unknown
18253 old_archive_cmds_CXX=$old_archive_cmds
18254 reload_flag_CXX=$reload_flag
18255 reload_cmds_CXX=$reload_cmds
18256 no_undefined_flag_CXX=
18257 whole_archive_flag_spec_CXX=
18258 enable_shared_with_static_runtimes_CXX=no
18259
18260 # Source file extension for C++ test sources.
18261 ac_ext=cpp
18262
18263 # Object file extension for compiled C++ test sources.
18264 objext=o
18265 objext_CXX=$objext
18266
18267 # No sense in running all these tests if we already determined that
18268 # the CXX compiler isn't working. Some variables (like enable_shared)
18269 # are currently assumed to apply to all compilers on this platform,
18270 # and will be corrupted by setting them based on a non-working compiler.
18271 if test "$_lt_caught_CXX_error" != yes; then
18272 # Code to be used in simple compile tests
18273 lt_simple_compile_test_code="int some_variable = 0;"
18274
18275 # Code to be used in simple link tests
18276 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18277
18278 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18279
18280
18281
18282
18283
18284
18285 # If no C compiler was specified, use CC.
18286 LTCC=${LTCC-"$CC"}
18287
18288 # If no C compiler flags were specified, use CFLAGS.
18289 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18290
18291 # Allow CC to be a program name with arguments.
18292 compiler=$CC
18293
18294
18295 # save warnings/boilerplate of simple test code
18296 ac_outfile=conftest.$ac_objext
18297 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18298 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18299 _lt_compiler_boilerplate=`cat conftest.err`
18300 $RM conftest*
18301
18302 ac_outfile=conftest.$ac_objext
18303 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18304 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18305 _lt_linker_boilerplate=`cat conftest.err`
18306 $RM -r conftest*
18307
18308
18309 # Allow CC to be a program name with arguments.
18310 lt_save_CC=$CC
18311 lt_save_LD=$LD
18312 lt_save_GCC=$GCC
18313 GCC=$GXX
18314 lt_save_with_gnu_ld=$with_gnu_ld
18315 lt_save_path_LD=$lt_cv_path_LD
18316 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18317 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18318 else
18319 $as_unset lt_cv_prog_gnu_ld
18320 fi
18321 if test -n "${lt_cv_path_LDCXX+set}"; then
18322 lt_cv_path_LD=$lt_cv_path_LDCXX
18323 else
18324 $as_unset lt_cv_path_LD
18325 fi
18326 test -z "${LDCXX+set}" || LD=$LDCXX
18327 CC=${CXX-"c++"}
18328 compiler=$CC
18329 compiler_CXX=$CC
18330 for cc_temp in $compiler""; do
18331 case $cc_temp in
18332 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18333 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18334 \-*) ;;
18335 *) break;;
18336 esac
18337 done
18338 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18339
18340
18341 if test -n "$compiler"; then
18342 # We don't want -fno-exception when compiling C++ code, so set the
18343 # no_builtin_flag separately
18344 if test "$GXX" = yes; then
18345 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18346 else
18347 lt_prog_compiler_no_builtin_flag_CXX=
18348 fi
18349
18350 if test "$GXX" = yes; then
18351 # Set up default GNU C++ configuration
18352
18353
18354
18355 # Check whether --with-gnu-ld was given.
18356 if test "${with_gnu_ld+set}" = set; then :
18357 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18358 else
18359 with_gnu_ld=no
18360 fi
18361
18362 ac_prog=ld
18363 if test "$GCC" = yes; then
18364 # Check if gcc -print-prog-name=ld gives a path.
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18366 $as_echo_n "checking for ld used by $CC... " >&6; }
18367 case $host in
18368 *-*-mingw*)
18369 # gcc leaves a trailing carriage return which upsets mingw
18370 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18371 *)
18372 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18373 esac
18374 case $ac_prog in
18375 # Accept absolute paths.
18376 [\\/]* | ?:[\\/]*)
18377 re_direlt='/[^/][^/]*/\.\./'
18378 # Canonicalize the pathname of ld
18379 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18380 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18381 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18382 done
18383 test -z "$LD" && LD="$ac_prog"
18384 ;;
18385 "")
18386 # If it fails, then pretend we aren't using GCC.
18387 ac_prog=ld
18388 ;;
18389 *)
18390 # If it is relative, then search for the first ld in PATH.
18391 with_gnu_ld=unknown
18392 ;;
18393 esac
18394 elif test "$with_gnu_ld" = yes; then
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18396 $as_echo_n "checking for GNU ld... " >&6; }
18397 else
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18399 $as_echo_n "checking for non-GNU ld... " >&6; }
18400 fi
18401 if test "${lt_cv_path_LD+set}" = set; then :
18402 $as_echo_n "(cached) " >&6
18403 else
18404 if test -z "$LD"; then
18405 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18406 for ac_dir in $PATH; do
18407 IFS="$lt_save_ifs"
18408 test -z "$ac_dir" && ac_dir=.
18409 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18410 lt_cv_path_LD="$ac_dir/$ac_prog"
18411 # Check to see if the program is GNU ld. I'd rather use --version,
18412 # but apparently some variants of GNU ld only accept -v.
18413 # Break only if it was the GNU/non-GNU ld that we prefer.
18414 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18415 *GNU* | *'with BFD'*)
18416 test "$with_gnu_ld" != no && break
18417 ;;
18418 *)
18419 test "$with_gnu_ld" != yes && break
18420 ;;
18421 esac
18422 fi
18423 done
18424 IFS="$lt_save_ifs"
18425 else
18426 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18427 fi
18428 fi
18429
18430 LD="$lt_cv_path_LD"
18431 if test -n "$LD"; then
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18433 $as_echo "$LD" >&6; }
18434 else
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18436 $as_echo "no" >&6; }
18437 fi
18438 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18440 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18441 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18442 $as_echo_n "(cached) " >&6
18443 else
18444 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18445 case `$LD -v 2>&1 </dev/null` in
18446 *GNU* | *'with BFD'*)
18447 lt_cv_prog_gnu_ld=yes
18448 ;;
18449 *)
18450 lt_cv_prog_gnu_ld=no
18451 ;;
18452 esac
18453 fi
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18455 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18456 with_gnu_ld=$lt_cv_prog_gnu_ld
18457
18458
18459
18460
18461
18462
18463
18464 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18465 # archiving commands below assume that GNU ld is being used.
18466 if test "$with_gnu_ld" = yes; then
18467 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18468 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'
18469
18470 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18471 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18472
18473 # If archive_cmds runs LD, not CC, wlarc should be empty
18474 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18475 # investigate it a little bit more. (MM)
18476 wlarc='${wl}'
18477
18478 # ancient GNU ld didn't support --whole-archive et. al.
18479 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18480 $GREP 'no-whole-archive' > /dev/null; then
18481 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18482 else
18483 whole_archive_flag_spec_CXX=
18484 fi
18485 else
18486 with_gnu_ld=no
18487 wlarc=
18488
18489 # A generic and very simple default shared library creation
18490 # command for GNU C++ for the case where it uses the native
18491 # linker, instead of GNU ld. If possible, this setting should
18492 # overridden to take advantage of the native linker features on
18493 # the platform it is being used on.
18494 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18495 fi
18496
18497 # Commands to make compiler produce verbose output that lists
18498 # what "hidden" libraries, object files and flags are used when
18499 # linking a shared library.
18500 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18501
18502 else
18503 GXX=no
18504 with_gnu_ld=no
18505 wlarc=
18506 fi
18507
18508 # PORTME: fill in a description of your system's C++ link characteristics
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18510 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18511 ld_shlibs_CXX=yes
18512 case $host_os in
18513 aix3*)
18514 # FIXME: insert proper C++ library support
18515 ld_shlibs_CXX=no
18516 ;;
18517 aix[4-9]*)
18518 if test "$host_cpu" = ia64; then
18519 # On IA64, the linker does run time linking by default, so we don't
18520 # have to do anything special.
18521 aix_use_runtimelinking=no
18522 exp_sym_flag='-Bexport'
18523 no_entry_flag=""
18524 else
18525 aix_use_runtimelinking=no
18526
18527 # Test if we are trying to use run time linking or normal
18528 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18529 # need to do runtime linking.
18530 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18531 for ld_flag in $LDFLAGS; do
18532 case $ld_flag in
18533 *-brtl*)
18534 aix_use_runtimelinking=yes
18535 break
18536 ;;
18537 esac
18538 done
18539 ;;
18540 esac
18541
18542 exp_sym_flag='-bexport'
18543 no_entry_flag='-bnoentry'
18544 fi
18545
18546 # When large executables or shared objects are built, AIX ld can
18547 # have problems creating the table of contents. If linking a library
18548 # or program results in "error TOC overflow" add -mminimal-toc to
18549 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18550 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18551
18552 archive_cmds_CXX=''
18553 hardcode_direct_CXX=yes
18554 hardcode_direct_absolute_CXX=yes
18555 hardcode_libdir_separator_CXX=':'
18556 link_all_deplibs_CXX=yes
18557 file_list_spec_CXX='${wl}-f,'
18558
18559 if test "$GXX" = yes; then
18560 case $host_os in aix4.[012]|aix4.[012].*)
18561 # We only want to do this on AIX 4.2 and lower, the check
18562 # below for broken collect2 doesn't work under 4.3+
18563 collect2name=`${CC} -print-prog-name=collect2`
18564 if test -f "$collect2name" &&
18565 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18566 then
18567 # We have reworked collect2
18568 :
18569 else
18570 # We have old collect2
18571 hardcode_direct_CXX=unsupported
18572 # It fails to find uninstalled libraries when the uninstalled
18573 # path is not listed in the libpath. Setting hardcode_minus_L
18574 # to unsupported forces relinking
18575 hardcode_minus_L_CXX=yes
18576 hardcode_libdir_flag_spec_CXX='-L$libdir'
18577 hardcode_libdir_separator_CXX=
18578 fi
18579 esac
18580 shared_flag='-shared'
18581 if test "$aix_use_runtimelinking" = yes; then
18582 shared_flag="$shared_flag "'${wl}-G'
18583 fi
18584 else
18585 # not using gcc
18586 if test "$host_cpu" = ia64; then
18587 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18588 # chokes on -Wl,-G. The following line is correct:
18589 shared_flag='-G'
18590 else
18591 if test "$aix_use_runtimelinking" = yes; then
18592 shared_flag='${wl}-G'
18593 else
18594 shared_flag='${wl}-bM:SRE'
18595 fi
18596 fi
18597 fi
18598
18599 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18600 # It seems that -bexpall does not export symbols beginning with
18601 # underscore (_), so it is better to generate a list of symbols to
18602 # export.
18603 always_export_symbols_CXX=yes
18604 if test "$aix_use_runtimelinking" = yes; then
18605 # Warning - without using the other runtime loading flags (-brtl),
18606 # -berok will link without error, but may produce a broken library.
18607 allow_undefined_flag_CXX='-berok'
18608 # Determine the default libpath from the value encoded in an empty
18609 # executable.
18610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18611 /* end confdefs.h. */
18612
18613 int
18614 main ()
18615 {
18616
18617 ;
18618 return 0;
18619 }
18620 _ACEOF
18621 if ac_fn_cxx_try_link "$LINENO"; then :
18622
18623 lt_aix_libpath_sed='
18624 /Import File Strings/,/^$/ {
18625 /^0/ {
18626 s/^0 *\(.*\)$/\1/
18627 p
18628 }
18629 }'
18630 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18631 # Check for a 64-bit object if we didn't find anything.
18632 if test -z "$aix_libpath"; then
18633 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18634 fi
18635 fi
18636 rm -f core conftest.err conftest.$ac_objext \
18637 conftest$ac_exeext conftest.$ac_ext
18638 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18639
18640 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18641
18642 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"
18643 else
18644 if test "$host_cpu" = ia64; then
18645 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18646 allow_undefined_flag_CXX="-z nodefs"
18647 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"
18648 else
18649 # Determine the default libpath from the value encoded in an
18650 # empty executable.
18651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18652 /* end confdefs.h. */
18653
18654 int
18655 main ()
18656 {
18657
18658 ;
18659 return 0;
18660 }
18661 _ACEOF
18662 if ac_fn_cxx_try_link "$LINENO"; then :
18663
18664 lt_aix_libpath_sed='
18665 /Import File Strings/,/^$/ {
18666 /^0/ {
18667 s/^0 *\(.*\)$/\1/
18668 p
18669 }
18670 }'
18671 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18672 # Check for a 64-bit object if we didn't find anything.
18673 if test -z "$aix_libpath"; then
18674 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18675 fi
18676 fi
18677 rm -f core conftest.err conftest.$ac_objext \
18678 conftest$ac_exeext conftest.$ac_ext
18679 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18680
18681 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18682 # Warning - without using the other run time loading flags,
18683 # -berok will link without error, but may produce a broken library.
18684 no_undefined_flag_CXX=' ${wl}-bernotok'
18685 allow_undefined_flag_CXX=' ${wl}-berok'
18686 if test "$with_gnu_ld" = yes; then
18687 # We only use this code for GNU lds that support --whole-archive.
18688 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18689 else
18690 # Exported symbols can be pulled into shared objects from archives
18691 whole_archive_flag_spec_CXX='$convenience'
18692 fi
18693 archive_cmds_need_lc_CXX=yes
18694 # This is similar to how AIX traditionally builds its shared
18695 # libraries.
18696 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'
18697 fi
18698 fi
18699 ;;
18700
18701 beos*)
18702 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18703 allow_undefined_flag_CXX=unsupported
18704 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18705 # support --undefined. This deserves some investigation. FIXME
18706 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18707 else
18708 ld_shlibs_CXX=no
18709 fi
18710 ;;
18711
18712 chorus*)
18713 case $cc_basename in
18714 *)
18715 # FIXME: insert proper C++ library support
18716 ld_shlibs_CXX=no
18717 ;;
18718 esac
18719 ;;
18720
18721 cygwin* | mingw* | pw32* | cegcc*)
18722 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18723 # as there is no search path for DLLs.
18724 hardcode_libdir_flag_spec_CXX='-L$libdir'
18725 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18726 allow_undefined_flag_CXX=unsupported
18727 always_export_symbols_CXX=no
18728 enable_shared_with_static_runtimes_CXX=yes
18729
18730 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18731 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'
18732 # If the export-symbols file already is a .def file (1st line
18733 # is EXPORTS), use it as is; otherwise, prepend...
18734 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18735 cp $export_symbols $output_objdir/$soname.def;
18736 else
18737 echo EXPORTS > $output_objdir/$soname.def;
18738 cat $export_symbols >> $output_objdir/$soname.def;
18739 fi~
18740 $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'
18741 else
18742 ld_shlibs_CXX=no
18743 fi
18744 ;;
18745 darwin* | rhapsody*)
18746
18747
18748 archive_cmds_need_lc_CXX=no
18749 hardcode_direct_CXX=no
18750 hardcode_automatic_CXX=yes
18751 hardcode_shlibpath_var_CXX=unsupported
18752 if test "$lt_cv_ld_force_load" = "yes"; then
18753 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\"`'
18754 else
18755 whole_archive_flag_spec_CXX=''
18756 fi
18757 link_all_deplibs_CXX=yes
18758 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18759 case $cc_basename in
18760 ifort*) _lt_dar_can_shared=yes ;;
18761 *) _lt_dar_can_shared=$GCC ;;
18762 esac
18763 if test "$_lt_dar_can_shared" = "yes"; then
18764 output_verbose_link_cmd=func_echo_all
18765 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}"
18766 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18767 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}"
18768 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}"
18769 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18770 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}"
18771 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}"
18772 fi
18773
18774 else
18775 ld_shlibs_CXX=no
18776 fi
18777
18778 ;;
18779
18780 dgux*)
18781 case $cc_basename in
18782 ec++*)
18783 # FIXME: insert proper C++ library support
18784 ld_shlibs_CXX=no
18785 ;;
18786 ghcx*)
18787 # Green Hills C++ Compiler
18788 # FIXME: insert proper C++ library support
18789 ld_shlibs_CXX=no
18790 ;;
18791 *)
18792 # FIXME: insert proper C++ library support
18793 ld_shlibs_CXX=no
18794 ;;
18795 esac
18796 ;;
18797
18798 freebsd[12]*)
18799 # C++ shared libraries reported to be fairly broken before
18800 # switch to ELF
18801 ld_shlibs_CXX=no
18802 ;;
18803
18804 freebsd-elf*)
18805 archive_cmds_need_lc_CXX=no
18806 ;;
18807
18808 freebsd* | dragonfly*)
18809 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18810 # conventions
18811 ld_shlibs_CXX=yes
18812 ;;
18813
18814 gnu*)
18815 ;;
18816
18817 haiku*)
18818 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18819 link_all_deplibs_CXX=yes
18820 ;;
18821
18822 hpux9*)
18823 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18824 hardcode_libdir_separator_CXX=:
18825 export_dynamic_flag_spec_CXX='${wl}-E'
18826 hardcode_direct_CXX=yes
18827 hardcode_minus_L_CXX=yes # Not in the search PATH,
18828 # but as the default
18829 # location of the library.
18830
18831 case $cc_basename in
18832 CC*)
18833 # FIXME: insert proper C++ library support
18834 ld_shlibs_CXX=no
18835 ;;
18836 aCC*)
18837 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'
18838 # Commands to make compiler produce verbose output that lists
18839 # what "hidden" libraries, object files and flags are used when
18840 # linking a shared library.
18841 #
18842 # There doesn't appear to be a way to prevent this compiler from
18843 # explicitly linking system object files so we need to strip them
18844 # from the output so that they don't get included in the library
18845 # dependencies.
18846 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"'
18847 ;;
18848 *)
18849 if test "$GXX" = yes; then
18850 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'
18851 else
18852 # FIXME: insert proper C++ library support
18853 ld_shlibs_CXX=no
18854 fi
18855 ;;
18856 esac
18857 ;;
18858
18859 hpux10*|hpux11*)
18860 if test $with_gnu_ld = no; then
18861 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18862 hardcode_libdir_separator_CXX=:
18863
18864 case $host_cpu in
18865 hppa*64*|ia64*)
18866 ;;
18867 *)
18868 export_dynamic_flag_spec_CXX='${wl}-E'
18869 ;;
18870 esac
18871 fi
18872 case $host_cpu in
18873 hppa*64*|ia64*)
18874 hardcode_direct_CXX=no
18875 hardcode_shlibpath_var_CXX=no
18876 ;;
18877 *)
18878 hardcode_direct_CXX=yes
18879 hardcode_direct_absolute_CXX=yes
18880 hardcode_minus_L_CXX=yes # Not in the search PATH,
18881 # but as the default
18882 # location of the library.
18883 ;;
18884 esac
18885
18886 case $cc_basename in
18887 CC*)
18888 # FIXME: insert proper C++ library support
18889 ld_shlibs_CXX=no
18890 ;;
18891 aCC*)
18892 case $host_cpu in
18893 hppa*64*)
18894 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18895 ;;
18896 ia64*)
18897 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18898 ;;
18899 *)
18900 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18901 ;;
18902 esac
18903 # Commands to make compiler produce verbose output that lists
18904 # what "hidden" libraries, object files and flags are used when
18905 # linking a shared library.
18906 #
18907 # There doesn't appear to be a way to prevent this compiler from
18908 # explicitly linking system object files so we need to strip them
18909 # from the output so that they don't get included in the library
18910 # dependencies.
18911 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"'
18912 ;;
18913 *)
18914 if test "$GXX" = yes; then
18915 if test $with_gnu_ld = no; then
18916 case $host_cpu in
18917 hppa*64*)
18918 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18919 ;;
18920 ia64*)
18921 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18922 ;;
18923 *)
18924 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'
18925 ;;
18926 esac
18927 fi
18928 else
18929 # FIXME: insert proper C++ library support
18930 ld_shlibs_CXX=no
18931 fi
18932 ;;
18933 esac
18934 ;;
18935
18936 interix[3-9]*)
18937 hardcode_direct_CXX=no
18938 hardcode_shlibpath_var_CXX=no
18939 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18940 export_dynamic_flag_spec_CXX='${wl}-E'
18941 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18942 # Instead, shared libraries are loaded at an image base (0x10000000 by
18943 # default) and relocated if they conflict, which is a slow very memory
18944 # consuming and fragmenting process. To avoid this, we pick a random,
18945 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18946 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18947 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'
18948 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'
18949 ;;
18950 irix5* | irix6*)
18951 case $cc_basename in
18952 CC*)
18953 # SGI C++
18954 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'
18955
18956 # Archives containing C++ object files must be created using
18957 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18958 # necessary to make sure instantiated templates are included
18959 # in the archive.
18960 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18961 ;;
18962 *)
18963 if test "$GXX" = yes; then
18964 if test "$with_gnu_ld" = no; then
18965 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'
18966 else
18967 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'
18968 fi
18969 fi
18970 link_all_deplibs_CXX=yes
18971 ;;
18972 esac
18973 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18974 hardcode_libdir_separator_CXX=:
18975 inherit_rpath_CXX=yes
18976 ;;
18977
18978 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18979 case $cc_basename in
18980 KCC*)
18981 # Kuck and Associates, Inc. (KAI) C++ Compiler
18982
18983 # KCC will only create a shared library if the output file
18984 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18985 # to its proper name (with version) after linking.
18986 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'
18987 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'
18988 # Commands to make compiler produce verbose output that lists
18989 # what "hidden" libraries, object files and flags are used when
18990 # linking a shared library.
18991 #
18992 # There doesn't appear to be a way to prevent this compiler from
18993 # explicitly linking system object files so we need to strip them
18994 # from the output so that they don't get included in the library
18995 # dependencies.
18996 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"'
18997
18998 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18999 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19000
19001 # Archives containing C++ object files must be created using
19002 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19003 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19004 ;;
19005 icpc* | ecpc* )
19006 # Intel C++
19007 with_gnu_ld=yes
19008 # version 8.0 and above of icpc choke on multiply defined symbols
19009 # if we add $predep_objects and $postdep_objects, however 7.1 and
19010 # earlier do not add the objects themselves.
19011 case `$CC -V 2>&1` in
19012 *"Version 7."*)
19013 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19014 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'
19015 ;;
19016 *) # Version 8.0 or newer
19017 tmp_idyn=
19018 case $host_cpu in
19019 ia64*) tmp_idyn=' -i_dynamic';;
19020 esac
19021 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19022 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'
19023 ;;
19024 esac
19025 archive_cmds_need_lc_CXX=no
19026 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19027 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19028 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19029 ;;
19030 pgCC* | pgcpp*)
19031 # Portland Group C++ compiler
19032 case `$CC -V` in
19033 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19034 prelink_cmds_CXX='tpldir=Template.dir~
19035 rm -rf $tpldir~
19036 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19037 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19038 old_archive_cmds_CXX='tpldir=Template.dir~
19039 rm -rf $tpldir~
19040 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19041 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19042 $RANLIB $oldlib'
19043 archive_cmds_CXX='tpldir=Template.dir~
19044 rm -rf $tpldir~
19045 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19046 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19047 archive_expsym_cmds_CXX='tpldir=Template.dir~
19048 rm -rf $tpldir~
19049 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19050 $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'
19051 ;;
19052 *) # Version 6 and above use weak symbols
19053 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19054 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'
19055 ;;
19056 esac
19057
19058 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19059 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19060 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'
19061 ;;
19062 cxx*)
19063 # Compaq C++
19064 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19065 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'
19066
19067 runpath_var=LD_RUN_PATH
19068 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19069 hardcode_libdir_separator_CXX=:
19070
19071 # Commands to make compiler produce verbose output that lists
19072 # what "hidden" libraries, object files and flags are used when
19073 # linking a shared library.
19074 #
19075 # There doesn't appear to be a way to prevent this compiler from
19076 # explicitly linking system object files so we need to strip them
19077 # from the output so that they don't get included in the library
19078 # dependencies.
19079 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'
19080 ;;
19081 xl* | mpixl* | bgxl*)
19082 # IBM XL 8.0 on PPC, with GNU ld
19083 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19084 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19085 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19086 if test "x$supports_anon_versioning" = xyes; then
19087 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19088 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19089 echo "local: *; };" >> $output_objdir/$libname.ver~
19090 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19091 fi
19092 ;;
19093 *)
19094 case `$CC -V 2>&1 | sed 5q` in
19095 *Sun\ C*)
19096 # Sun C++ 5.9
19097 no_undefined_flag_CXX=' -zdefs'
19098 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19099 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'
19100 hardcode_libdir_flag_spec_CXX='-R$libdir'
19101 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'
19102 compiler_needs_object_CXX=yes
19103
19104 # Not sure whether something based on
19105 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19106 # would be better.
19107 output_verbose_link_cmd='func_echo_all'
19108
19109 # Archives containing C++ object files must be created using
19110 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19111 # necessary to make sure instantiated templates are included
19112 # in the archive.
19113 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19114 ;;
19115 esac
19116 ;;
19117 esac
19118 ;;
19119
19120 lynxos*)
19121 # FIXME: insert proper C++ library support
19122 ld_shlibs_CXX=no
19123 ;;
19124
19125 m88k*)
19126 # FIXME: insert proper C++ library support
19127 ld_shlibs_CXX=no
19128 ;;
19129
19130 mvs*)
19131 case $cc_basename in
19132 cxx*)
19133 # FIXME: insert proper C++ library support
19134 ld_shlibs_CXX=no
19135 ;;
19136 *)
19137 # FIXME: insert proper C++ library support
19138 ld_shlibs_CXX=no
19139 ;;
19140 esac
19141 ;;
19142
19143 netbsd*)
19144 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19145 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19146 wlarc=
19147 hardcode_libdir_flag_spec_CXX='-R$libdir'
19148 hardcode_direct_CXX=yes
19149 hardcode_shlibpath_var_CXX=no
19150 fi
19151 # Workaround some broken pre-1.5 toolchains
19152 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19153 ;;
19154
19155 *nto* | *qnx*)
19156 ld_shlibs_CXX=yes
19157 ;;
19158
19159 openbsd2*)
19160 # C++ shared libraries are fairly broken
19161 ld_shlibs_CXX=no
19162 ;;
19163
19164 openbsd*)
19165 if test -f /usr/libexec/ld.so; then
19166 hardcode_direct_CXX=yes
19167 hardcode_shlibpath_var_CXX=no
19168 hardcode_direct_absolute_CXX=yes
19169 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19170 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19171 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19172 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19173 export_dynamic_flag_spec_CXX='${wl}-E'
19174 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19175 fi
19176 output_verbose_link_cmd=func_echo_all
19177 else
19178 ld_shlibs_CXX=no
19179 fi
19180 ;;
19181
19182 osf3* | osf4* | osf5*)
19183 case $cc_basename in
19184 KCC*)
19185 # Kuck and Associates, Inc. (KAI) C++ Compiler
19186
19187 # KCC will only create a shared library if the output file
19188 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19189 # to its proper name (with version) after linking.
19190 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'
19191
19192 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19193 hardcode_libdir_separator_CXX=:
19194
19195 # Archives containing C++ object files must be created using
19196 # the KAI C++ compiler.
19197 case $host in
19198 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19199 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19200 esac
19201 ;;
19202 RCC*)
19203 # Rational C++ 2.4.1
19204 # FIXME: insert proper C++ library support
19205 ld_shlibs_CXX=no
19206 ;;
19207 cxx*)
19208 case $host in
19209 osf3*)
19210 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19211 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'
19212 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19213 ;;
19214 *)
19215 allow_undefined_flag_CXX=' -expect_unresolved \*'
19216 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'
19217 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19218 echo "-hidden">> $lib.exp~
19219 $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~
19220 $RM $lib.exp'
19221 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19222 ;;
19223 esac
19224
19225 hardcode_libdir_separator_CXX=:
19226
19227 # Commands to make compiler produce verbose output that lists
19228 # what "hidden" libraries, object files and flags are used when
19229 # linking a shared library.
19230 #
19231 # There doesn't appear to be a way to prevent this compiler from
19232 # explicitly linking system object files so we need to strip them
19233 # from the output so that they don't get included in the library
19234 # dependencies.
19235 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"'
19236 ;;
19237 *)
19238 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19239 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19240 case $host in
19241 osf3*)
19242 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'
19243 ;;
19244 *)
19245 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'
19246 ;;
19247 esac
19248
19249 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19250 hardcode_libdir_separator_CXX=:
19251
19252 # Commands to make compiler produce verbose output that lists
19253 # what "hidden" libraries, object files and flags are used when
19254 # linking a shared library.
19255 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19256
19257 else
19258 # FIXME: insert proper C++ library support
19259 ld_shlibs_CXX=no
19260 fi
19261 ;;
19262 esac
19263 ;;
19264
19265 psos*)
19266 # FIXME: insert proper C++ library support
19267 ld_shlibs_CXX=no
19268 ;;
19269
19270 sunos4*)
19271 case $cc_basename in
19272 CC*)
19273 # Sun C++ 4.x
19274 # FIXME: insert proper C++ library support
19275 ld_shlibs_CXX=no
19276 ;;
19277 lcc*)
19278 # Lucid
19279 # FIXME: insert proper C++ library support
19280 ld_shlibs_CXX=no
19281 ;;
19282 *)
19283 # FIXME: insert proper C++ library support
19284 ld_shlibs_CXX=no
19285 ;;
19286 esac
19287 ;;
19288
19289 solaris*)
19290 case $cc_basename in
19291 CC*)
19292 # Sun C++ 4.2, 5.x and Centerline C++
19293 archive_cmds_need_lc_CXX=yes
19294 no_undefined_flag_CXX=' -zdefs'
19295 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19296 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19297 $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'
19298
19299 hardcode_libdir_flag_spec_CXX='-R$libdir'
19300 hardcode_shlibpath_var_CXX=no
19301 case $host_os in
19302 solaris2.[0-5] | solaris2.[0-5].*) ;;
19303 *)
19304 # The compiler driver will combine and reorder linker options,
19305 # but understands `-z linker_flag'.
19306 # Supported since Solaris 2.6 (maybe 2.5.1?)
19307 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19308 ;;
19309 esac
19310 link_all_deplibs_CXX=yes
19311
19312 output_verbose_link_cmd='func_echo_all'
19313
19314 # Archives containing C++ object files must be created using
19315 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19316 # necessary to make sure instantiated templates are included
19317 # in the archive.
19318 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19319 ;;
19320 gcx*)
19321 # Green Hills C++ Compiler
19322 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19323
19324 # The C++ compiler must be used to create the archive.
19325 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19326 ;;
19327 *)
19328 # GNU C++ compiler with Solaris linker
19329 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19330 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19331 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19332 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19333 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19334 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19335
19336 # Commands to make compiler produce verbose output that lists
19337 # what "hidden" libraries, object files and flags are used when
19338 # linking a shared library.
19339 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19340 else
19341 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19342 # platform.
19343 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19344 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19345 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19346
19347 # Commands to make compiler produce verbose output that lists
19348 # what "hidden" libraries, object files and flags are used when
19349 # linking a shared library.
19350 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19351 fi
19352
19353 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19354 case $host_os in
19355 solaris2.[0-5] | solaris2.[0-5].*) ;;
19356 *)
19357 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19358 ;;
19359 esac
19360 fi
19361 ;;
19362 esac
19363 ;;
19364
19365 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19366 no_undefined_flag_CXX='${wl}-z,text'
19367 archive_cmds_need_lc_CXX=no
19368 hardcode_shlibpath_var_CXX=no
19369 runpath_var='LD_RUN_PATH'
19370
19371 case $cc_basename in
19372 CC*)
19373 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19374 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19375 ;;
19376 *)
19377 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19378 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19379 ;;
19380 esac
19381 ;;
19382
19383 sysv5* | sco3.2v5* | sco5v6*)
19384 # Note: We can NOT use -z defs as we might desire, because we do not
19385 # link with -lc, and that would cause any symbols used from libc to
19386 # always be unresolved, which means just about no library would
19387 # ever link correctly. If we're not using GNU ld we use -z text
19388 # though, which does catch some bad symbols but isn't as heavy-handed
19389 # as -z defs.
19390 no_undefined_flag_CXX='${wl}-z,text'
19391 allow_undefined_flag_CXX='${wl}-z,nodefs'
19392 archive_cmds_need_lc_CXX=no
19393 hardcode_shlibpath_var_CXX=no
19394 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19395 hardcode_libdir_separator_CXX=':'
19396 link_all_deplibs_CXX=yes
19397 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19398 runpath_var='LD_RUN_PATH'
19399
19400 case $cc_basename in
19401 CC*)
19402 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19403 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19404 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19405 '"$old_archive_cmds_CXX"
19406 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19407 '"$reload_cmds_CXX"
19408 ;;
19409 *)
19410 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19411 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19412 ;;
19413 esac
19414 ;;
19415
19416 tandem*)
19417 case $cc_basename in
19418 NCC*)
19419 # NonStop-UX NCC 3.20
19420 # FIXME: insert proper C++ library support
19421 ld_shlibs_CXX=no
19422 ;;
19423 *)
19424 # FIXME: insert proper C++ library support
19425 ld_shlibs_CXX=no
19426 ;;
19427 esac
19428 ;;
19429
19430 vxworks*)
19431 # FIXME: insert proper C++ library support
19432 ld_shlibs_CXX=no
19433 ;;
19434
19435 *)
19436 # FIXME: insert proper C++ library support
19437 ld_shlibs_CXX=no
19438 ;;
19439 esac
19440
19441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19442 $as_echo "$ld_shlibs_CXX" >&6; }
19443 test "$ld_shlibs_CXX" = no && can_build_shared=no
19444
19445 GCC_CXX="$GXX"
19446 LD_CXX="$LD"
19447
19448 ## CAVEAT EMPTOR:
19449 ## There is no encapsulation within the following macros, do not change
19450 ## the running order or otherwise move them around unless you know exactly
19451 ## what you are doing...
19452 # Dependencies to place before and after the object being linked:
19453 predep_objects_CXX=
19454 postdep_objects_CXX=
19455 predeps_CXX=
19456 postdeps_CXX=
19457 compiler_lib_search_path_CXX=
19458
19459 cat > conftest.$ac_ext <<_LT_EOF
19460 class Foo
19461 {
19462 public:
19463 Foo (void) { a = 0; }
19464 private:
19465 int a;
19466 };
19467 _LT_EOF
19468
19469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19470 (eval $ac_compile) 2>&5
19471 ac_status=$?
19472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19473 test $ac_status = 0; }; then
19474 # Parse the compiler output and extract the necessary
19475 # objects, libraries and library flags.
19476
19477 # Sentinel used to keep track of whether or not we are before
19478 # the conftest object file.
19479 pre_test_object_deps_done=no
19480
19481 for p in `eval "$output_verbose_link_cmd"`; do
19482 case $p in
19483
19484 -L* | -R* | -l*)
19485 # Some compilers place space between "-{L,R}" and the path.
19486 # Remove the space.
19487 if test $p = "-L" ||
19488 test $p = "-R"; then
19489 prev=$p
19490 continue
19491 else
19492 prev=
19493 fi
19494
19495 if test "$pre_test_object_deps_done" = no; then
19496 case $p in
19497 -L* | -R*)
19498 # Internal compiler library paths should come after those
19499 # provided the user. The postdeps already come after the
19500 # user supplied libs so there is no need to process them.
19501 if test -z "$compiler_lib_search_path_CXX"; then
19502 compiler_lib_search_path_CXX="${prev}${p}"
19503 else
19504 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19505 fi
19506 ;;
19507 # The "-l" case would never come before the object being
19508 # linked, so don't bother handling this case.
19509 esac
19510 else
19511 if test -z "$postdeps_CXX"; then
19512 postdeps_CXX="${prev}${p}"
19513 else
19514 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19515 fi
19516 fi
19517 ;;
19518
19519 *.$objext)
19520 # This assumes that the test object file only shows up
19521 # once in the compiler output.
19522 if test "$p" = "conftest.$objext"; then
19523 pre_test_object_deps_done=yes
19524 continue
19525 fi
19526
19527 if test "$pre_test_object_deps_done" = no; then
19528 if test -z "$predep_objects_CXX"; then
19529 predep_objects_CXX="$p"
19530 else
19531 predep_objects_CXX="$predep_objects_CXX $p"
19532 fi
19533 else
19534 if test -z "$postdep_objects_CXX"; then
19535 postdep_objects_CXX="$p"
19536 else
19537 postdep_objects_CXX="$postdep_objects_CXX $p"
19538 fi
19539 fi
19540 ;;
19541
19542 *) ;; # Ignore the rest.
19543
19544 esac
19545 done
19546
19547 # Clean up.
19548 rm -f a.out a.exe
19549 else
19550 echo "libtool.m4: error: problem compiling CXX test program"
19551 fi
19552
19553 $RM -f confest.$objext
19554
19555 # PORTME: override above test on systems where it is broken
19556 case $host_os in
19557 interix[3-9]*)
19558 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19559 # hack all around it, let's just trust "g++" to DTRT.
19560 predep_objects_CXX=
19561 postdep_objects_CXX=
19562 postdeps_CXX=
19563 ;;
19564
19565 linux*)
19566 case `$CC -V 2>&1 | sed 5q` in
19567 *Sun\ C*)
19568 # Sun C++ 5.9
19569
19570 # The more standards-conforming stlport4 library is
19571 # incompatible with the Cstd library. Avoid specifying
19572 # it if it's in CXXFLAGS. Ignore libCrun as
19573 # -library=stlport4 depends on it.
19574 case " $CXX $CXXFLAGS " in
19575 *" -library=stlport4 "*)
19576 solaris_use_stlport4=yes
19577 ;;
19578 esac
19579
19580 if test "$solaris_use_stlport4" != yes; then
19581 postdeps_CXX='-library=Cstd -library=Crun'
19582 fi
19583 ;;
19584 esac
19585 ;;
19586
19587 solaris*)
19588 case $cc_basename in
19589 CC*)
19590 # The more standards-conforming stlport4 library is
19591 # incompatible with the Cstd library. Avoid specifying
19592 # it if it's in CXXFLAGS. Ignore libCrun as
19593 # -library=stlport4 depends on it.
19594 case " $CXX $CXXFLAGS " in
19595 *" -library=stlport4 "*)
19596 solaris_use_stlport4=yes
19597 ;;
19598 esac
19599
19600 # Adding this requires a known-good setup of shared libraries for
19601 # Sun compiler versions before 5.6, else PIC objects from an old
19602 # archive will be linked into the output, leading to subtle bugs.
19603 if test "$solaris_use_stlport4" != yes; then
19604 postdeps_CXX='-library=Cstd -library=Crun'
19605 fi
19606 ;;
19607 esac
19608 ;;
19609 esac
19610
19611
19612 case " $postdeps_CXX " in
19613 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19614 esac
19615 compiler_lib_search_dirs_CXX=
19616 if test -n "${compiler_lib_search_path_CXX}"; then
19617 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19618 fi
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650 lt_prog_compiler_wl_CXX=
19651 lt_prog_compiler_pic_CXX=
19652 lt_prog_compiler_static_CXX=
19653
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19655 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19656
19657 # C++ specific cases for pic, static, wl, etc.
19658 if test "$GXX" = yes; then
19659 lt_prog_compiler_wl_CXX='-Wl,'
19660 lt_prog_compiler_static_CXX='-static'
19661
19662 case $host_os in
19663 aix*)
19664 # All AIX code is PIC.
19665 if test "$host_cpu" = ia64; then
19666 # AIX 5 now supports IA64 processor
19667 lt_prog_compiler_static_CXX='-Bstatic'
19668 fi
19669 ;;
19670
19671 amigaos*)
19672 case $host_cpu in
19673 powerpc)
19674 # see comment about AmigaOS4 .so support
19675 lt_prog_compiler_pic_CXX='-fPIC'
19676 ;;
19677 m68k)
19678 # FIXME: we need at least 68020 code to build shared libraries, but
19679 # adding the `-m68020' flag to GCC prevents building anything better,
19680 # like `-m68040'.
19681 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19682 ;;
19683 esac
19684 ;;
19685
19686 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19687 # PIC is the default for these OSes.
19688 ;;
19689 mingw* | cygwin* | os2* | pw32* | cegcc*)
19690 # This hack is so that the source file can tell whether it is being
19691 # built for inclusion in a dll (and should export symbols for example).
19692 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19693 # (--disable-auto-import) libraries
19694 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19695 ;;
19696 darwin* | rhapsody*)
19697 # PIC is the default on this platform
19698 # Common symbols not allowed in MH_DYLIB files
19699 lt_prog_compiler_pic_CXX='-fno-common'
19700 ;;
19701 *djgpp*)
19702 # DJGPP does not support shared libraries at all
19703 lt_prog_compiler_pic_CXX=
19704 ;;
19705 haiku*)
19706 # PIC is the default for Haiku.
19707 # The "-static" flag exists, but is broken.
19708 lt_prog_compiler_static_CXX=
19709 ;;
19710 interix[3-9]*)
19711 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19712 # Instead, we relocate shared libraries at runtime.
19713 ;;
19714 sysv4*MP*)
19715 if test -d /usr/nec; then
19716 lt_prog_compiler_pic_CXX=-Kconform_pic
19717 fi
19718 ;;
19719 hpux*)
19720 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19721 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19722 # sets the default TLS model and affects inlining.
19723 case $host_cpu in
19724 hppa*64*)
19725 ;;
19726 *)
19727 lt_prog_compiler_pic_CXX='-fPIC'
19728 ;;
19729 esac
19730 ;;
19731 *qnx* | *nto*)
19732 # QNX uses GNU C++, but need to define -shared option too, otherwise
19733 # it will coredump.
19734 lt_prog_compiler_pic_CXX='-fPIC -shared'
19735 ;;
19736 *)
19737 lt_prog_compiler_pic_CXX='-fPIC'
19738 ;;
19739 esac
19740 else
19741 case $host_os in
19742 aix[4-9]*)
19743 # All AIX code is PIC.
19744 if test "$host_cpu" = ia64; then
19745 # AIX 5 now supports IA64 processor
19746 lt_prog_compiler_static_CXX='-Bstatic'
19747 else
19748 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19749 fi
19750 ;;
19751 chorus*)
19752 case $cc_basename in
19753 cxch68*)
19754 # Green Hills C++ Compiler
19755 # _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"
19756 ;;
19757 esac
19758 ;;
19759 dgux*)
19760 case $cc_basename in
19761 ec++*)
19762 lt_prog_compiler_pic_CXX='-KPIC'
19763 ;;
19764 ghcx*)
19765 # Green Hills C++ Compiler
19766 lt_prog_compiler_pic_CXX='-pic'
19767 ;;
19768 *)
19769 ;;
19770 esac
19771 ;;
19772 freebsd* | dragonfly*)
19773 # FreeBSD uses GNU C++
19774 ;;
19775 hpux9* | hpux10* | hpux11*)
19776 case $cc_basename in
19777 CC*)
19778 lt_prog_compiler_wl_CXX='-Wl,'
19779 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19780 if test "$host_cpu" != ia64; then
19781 lt_prog_compiler_pic_CXX='+Z'
19782 fi
19783 ;;
19784 aCC*)
19785 lt_prog_compiler_wl_CXX='-Wl,'
19786 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19787 case $host_cpu in
19788 hppa*64*|ia64*)
19789 # +Z the default
19790 ;;
19791 *)
19792 lt_prog_compiler_pic_CXX='+Z'
19793 ;;
19794 esac
19795 ;;
19796 *)
19797 ;;
19798 esac
19799 ;;
19800 interix*)
19801 # This is c89, which is MS Visual C++ (no shared libs)
19802 # Anyone wants to do a port?
19803 ;;
19804 irix5* | irix6* | nonstopux*)
19805 case $cc_basename in
19806 CC*)
19807 lt_prog_compiler_wl_CXX='-Wl,'
19808 lt_prog_compiler_static_CXX='-non_shared'
19809 # CC pic flag -KPIC is the default.
19810 ;;
19811 *)
19812 ;;
19813 esac
19814 ;;
19815 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19816 case $cc_basename in
19817 KCC*)
19818 # KAI C++ Compiler
19819 lt_prog_compiler_wl_CXX='--backend -Wl,'
19820 lt_prog_compiler_pic_CXX='-fPIC'
19821 ;;
19822 ecpc* )
19823 # old Intel C++ for x86_64 which still supported -KPIC.
19824 lt_prog_compiler_wl_CXX='-Wl,'
19825 lt_prog_compiler_pic_CXX='-KPIC'
19826 lt_prog_compiler_static_CXX='-static'
19827 ;;
19828 icpc* )
19829 # Intel C++, used to be incompatible with GCC.
19830 # ICC 10 doesn't accept -KPIC any more.
19831 lt_prog_compiler_wl_CXX='-Wl,'
19832 lt_prog_compiler_pic_CXX='-fPIC'
19833 lt_prog_compiler_static_CXX='-static'
19834 ;;
19835 pgCC* | pgcpp*)
19836 # Portland Group C++ compiler
19837 lt_prog_compiler_wl_CXX='-Wl,'
19838 lt_prog_compiler_pic_CXX='-fpic'
19839 lt_prog_compiler_static_CXX='-Bstatic'
19840 ;;
19841 cxx*)
19842 # Compaq C++
19843 # Make sure the PIC flag is empty. It appears that all Alpha
19844 # Linux and Compaq Tru64 Unix objects are PIC.
19845 lt_prog_compiler_pic_CXX=
19846 lt_prog_compiler_static_CXX='-non_shared'
19847 ;;
19848 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19849 # IBM XL 8.0, 9.0 on PPC and BlueGene
19850 lt_prog_compiler_wl_CXX='-Wl,'
19851 lt_prog_compiler_pic_CXX='-qpic'
19852 lt_prog_compiler_static_CXX='-qstaticlink'
19853 ;;
19854 *)
19855 case `$CC -V 2>&1 | sed 5q` in
19856 *Sun\ C*)
19857 # Sun C++ 5.9
19858 lt_prog_compiler_pic_CXX='-KPIC'
19859 lt_prog_compiler_static_CXX='-Bstatic'
19860 lt_prog_compiler_wl_CXX='-Qoption ld '
19861 ;;
19862 esac
19863 ;;
19864 esac
19865 ;;
19866 lynxos*)
19867 ;;
19868 m88k*)
19869 ;;
19870 mvs*)
19871 case $cc_basename in
19872 cxx*)
19873 lt_prog_compiler_pic_CXX='-W c,exportall'
19874 ;;
19875 *)
19876 ;;
19877 esac
19878 ;;
19879 netbsd*)
19880 ;;
19881 *qnx* | *nto*)
19882 # QNX uses GNU C++, but need to define -shared option too, otherwise
19883 # it will coredump.
19884 lt_prog_compiler_pic_CXX='-fPIC -shared'
19885 ;;
19886 osf3* | osf4* | osf5*)
19887 case $cc_basename in
19888 KCC*)
19889 lt_prog_compiler_wl_CXX='--backend -Wl,'
19890 ;;
19891 RCC*)
19892 # Rational C++ 2.4.1
19893 lt_prog_compiler_pic_CXX='-pic'
19894 ;;
19895 cxx*)
19896 # Digital/Compaq C++
19897 lt_prog_compiler_wl_CXX='-Wl,'
19898 # Make sure the PIC flag is empty. It appears that all Alpha
19899 # Linux and Compaq Tru64 Unix objects are PIC.
19900 lt_prog_compiler_pic_CXX=
19901 lt_prog_compiler_static_CXX='-non_shared'
19902 ;;
19903 *)
19904 ;;
19905 esac
19906 ;;
19907 psos*)
19908 ;;
19909 solaris*)
19910 case $cc_basename in
19911 CC*)
19912 # Sun C++ 4.2, 5.x and Centerline C++
19913 lt_prog_compiler_pic_CXX='-KPIC'
19914 lt_prog_compiler_static_CXX='-Bstatic'
19915 lt_prog_compiler_wl_CXX='-Qoption ld '
19916 ;;
19917 gcx*)
19918 # Green Hills C++ Compiler
19919 lt_prog_compiler_pic_CXX='-PIC'
19920 ;;
19921 *)
19922 ;;
19923 esac
19924 ;;
19925 sunos4*)
19926 case $cc_basename in
19927 CC*)
19928 # Sun C++ 4.x
19929 lt_prog_compiler_pic_CXX='-pic'
19930 lt_prog_compiler_static_CXX='-Bstatic'
19931 ;;
19932 lcc*)
19933 # Lucid
19934 lt_prog_compiler_pic_CXX='-pic'
19935 ;;
19936 *)
19937 ;;
19938 esac
19939 ;;
19940 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19941 case $cc_basename in
19942 CC*)
19943 lt_prog_compiler_wl_CXX='-Wl,'
19944 lt_prog_compiler_pic_CXX='-KPIC'
19945 lt_prog_compiler_static_CXX='-Bstatic'
19946 ;;
19947 esac
19948 ;;
19949 tandem*)
19950 case $cc_basename in
19951 NCC*)
19952 # NonStop-UX NCC 3.20
19953 lt_prog_compiler_pic_CXX='-KPIC'
19954 ;;
19955 *)
19956 ;;
19957 esac
19958 ;;
19959 vxworks*)
19960 ;;
19961 *)
19962 lt_prog_compiler_can_build_shared_CXX=no
19963 ;;
19964 esac
19965 fi
19966
19967 case $host_os in
19968 # For platforms which do not support PIC, -DPIC is meaningless:
19969 *djgpp*)
19970 lt_prog_compiler_pic_CXX=
19971 ;;
19972 *)
19973 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19974 ;;
19975 esac
19976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19977 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19978
19979
19980
19981 #
19982 # Check to make sure the PIC flag actually works.
19983 #
19984 if test -n "$lt_prog_compiler_pic_CXX"; then
19985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19986 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19987 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19988 $as_echo_n "(cached) " >&6
19989 else
19990 lt_cv_prog_compiler_pic_works_CXX=no
19991 ac_outfile=conftest.$ac_objext
19992 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19993 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19994 # Insert the option either (1) after the last *FLAGS variable, or
19995 # (2) before a word containing "conftest.", or (3) at the end.
19996 # Note that $ac_compile itself does not contain backslashes and begins
19997 # with a dollar sign (not a hyphen), so the echo should work correctly.
19998 # The option is referenced via a variable to avoid confusing sed.
19999 lt_compile=`echo "$ac_compile" | $SED \
20000 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20001 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20002 -e 's:$: $lt_compiler_flag:'`
20003 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20004 (eval "$lt_compile" 2>conftest.err)
20005 ac_status=$?
20006 cat conftest.err >&5
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 if (exit $ac_status) && test -s "$ac_outfile"; then
20009 # The compiler can only warn and ignore the option if not recognized
20010 # So say no if there are warnings other than the usual output.
20011 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20012 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20013 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20014 lt_cv_prog_compiler_pic_works_CXX=yes
20015 fi
20016 fi
20017 $RM conftest*
20018
20019 fi
20020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20021 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20022
20023 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20024 case $lt_prog_compiler_pic_CXX in
20025 "" | " "*) ;;
20026 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20027 esac
20028 else
20029 lt_prog_compiler_pic_CXX=
20030 lt_prog_compiler_can_build_shared_CXX=no
20031 fi
20032
20033 fi
20034
20035
20036
20037 #
20038 # Check to make sure the static flag actually works.
20039 #
20040 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20042 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20043 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20044 $as_echo_n "(cached) " >&6
20045 else
20046 lt_cv_prog_compiler_static_works_CXX=no
20047 save_LDFLAGS="$LDFLAGS"
20048 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20049 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20050 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20051 # The linker can only warn and ignore the option if not recognized
20052 # So say no if there are warnings
20053 if test -s conftest.err; then
20054 # Append any errors to the config.log.
20055 cat conftest.err 1>&5
20056 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20057 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20058 if diff conftest.exp conftest.er2 >/dev/null; then
20059 lt_cv_prog_compiler_static_works_CXX=yes
20060 fi
20061 else
20062 lt_cv_prog_compiler_static_works_CXX=yes
20063 fi
20064 fi
20065 $RM -r conftest*
20066 LDFLAGS="$save_LDFLAGS"
20067
20068 fi
20069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20070 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20071
20072 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20073 :
20074 else
20075 lt_prog_compiler_static_CXX=
20076 fi
20077
20078
20079
20080
20081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20082 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20083 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20084 $as_echo_n "(cached) " >&6
20085 else
20086 lt_cv_prog_compiler_c_o_CXX=no
20087 $RM -r conftest 2>/dev/null
20088 mkdir conftest
20089 cd conftest
20090 mkdir out
20091 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20092
20093 lt_compiler_flag="-o out/conftest2.$ac_objext"
20094 # Insert the option either (1) after the last *FLAGS variable, or
20095 # (2) before a word containing "conftest.", or (3) at the end.
20096 # Note that $ac_compile itself does not contain backslashes and begins
20097 # with a dollar sign (not a hyphen), so the echo should work correctly.
20098 lt_compile=`echo "$ac_compile" | $SED \
20099 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20100 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20101 -e 's:$: $lt_compiler_flag:'`
20102 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20103 (eval "$lt_compile" 2>out/conftest.err)
20104 ac_status=$?
20105 cat out/conftest.err >&5
20106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20108 then
20109 # The compiler can only warn and ignore the option if not recognized
20110 # So say no if there are warnings
20111 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20112 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20113 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20114 lt_cv_prog_compiler_c_o_CXX=yes
20115 fi
20116 fi
20117 chmod u+w . 2>&5
20118 $RM conftest*
20119 # SGI C++ compiler will create directory out/ii_files/ for
20120 # template instantiation
20121 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20122 $RM out/* && rmdir out
20123 cd ..
20124 $RM -r conftest
20125 $RM conftest*
20126
20127 fi
20128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20129 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20130
20131
20132
20133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20134 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20135 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20136 $as_echo_n "(cached) " >&6
20137 else
20138 lt_cv_prog_compiler_c_o_CXX=no
20139 $RM -r conftest 2>/dev/null
20140 mkdir conftest
20141 cd conftest
20142 mkdir out
20143 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20144
20145 lt_compiler_flag="-o out/conftest2.$ac_objext"
20146 # Insert the option either (1) after the last *FLAGS variable, or
20147 # (2) before a word containing "conftest.", or (3) at the end.
20148 # Note that $ac_compile itself does not contain backslashes and begins
20149 # with a dollar sign (not a hyphen), so the echo should work correctly.
20150 lt_compile=`echo "$ac_compile" | $SED \
20151 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20152 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20153 -e 's:$: $lt_compiler_flag:'`
20154 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20155 (eval "$lt_compile" 2>out/conftest.err)
20156 ac_status=$?
20157 cat out/conftest.err >&5
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20160 then
20161 # The compiler can only warn and ignore the option if not recognized
20162 # So say no if there are warnings
20163 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20164 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20165 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20166 lt_cv_prog_compiler_c_o_CXX=yes
20167 fi
20168 fi
20169 chmod u+w . 2>&5
20170 $RM conftest*
20171 # SGI C++ compiler will create directory out/ii_files/ for
20172 # template instantiation
20173 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20174 $RM out/* && rmdir out
20175 cd ..
20176 $RM -r conftest
20177 $RM conftest*
20178
20179 fi
20180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20181 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20182
20183
20184
20185
20186 hard_links="nottested"
20187 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20188 # do not overwrite the value of need_locks provided by the user
20189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20190 $as_echo_n "checking if we can lock with hard links... " >&6; }
20191 hard_links=yes
20192 $RM conftest*
20193 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20194 touch conftest.a
20195 ln conftest.a conftest.b 2>&5 || hard_links=no
20196 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20198 $as_echo "$hard_links" >&6; }
20199 if test "$hard_links" = no; then
20200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20201 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20202 need_locks=warn
20203 fi
20204 else
20205 need_locks=no
20206 fi
20207
20208
20209
20210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20211 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20212
20213 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20214 case $host_os in
20215 aix[4-9]*)
20216 # If we're using GNU nm, then we don't want the "-C" option.
20217 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20218 # Also, AIX nm treats weak defined symbols like other global defined
20219 # symbols, whereas GNU nm marks them as "W".
20220 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20221 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'
20222 else
20223 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'
20224 fi
20225 ;;
20226 pw32*)
20227 export_symbols_cmds_CXX="$ltdll_cmds"
20228 ;;
20229 cygwin* | mingw* | cegcc*)
20230 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'
20231 ;;
20232 *)
20233 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20234 ;;
20235 esac
20236 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20237
20238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20239 $as_echo "$ld_shlibs_CXX" >&6; }
20240 test "$ld_shlibs_CXX" = no && can_build_shared=no
20241
20242 with_gnu_ld_CXX=$with_gnu_ld
20243
20244
20245
20246
20247
20248
20249 #
20250 # Do we need to explicitly link libc?
20251 #
20252 case "x$archive_cmds_need_lc_CXX" in
20253 x|xyes)
20254 # Assume -lc should be added
20255 archive_cmds_need_lc_CXX=yes
20256
20257 if test "$enable_shared" = yes && test "$GCC" = yes; then
20258 case $archive_cmds_CXX in
20259 *'~'*)
20260 # FIXME: we may have to deal with multi-command sequences.
20261 ;;
20262 '$CC '*)
20263 # Test whether the compiler implicitly links with -lc since on some
20264 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20265 # to ld, don't add -lc before -lgcc.
20266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20267 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20268 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20269 $as_echo_n "(cached) " >&6
20270 else
20271 $RM conftest*
20272 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20273
20274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20275 (eval $ac_compile) 2>&5
20276 ac_status=$?
20277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20278 test $ac_status = 0; } 2>conftest.err; then
20279 soname=conftest
20280 lib=conftest
20281 libobjs=conftest.$ac_objext
20282 deplibs=
20283 wl=$lt_prog_compiler_wl_CXX
20284 pic_flag=$lt_prog_compiler_pic_CXX
20285 compiler_flags=-v
20286 linker_flags=-v
20287 verstring=
20288 output_objdir=.
20289 libname=conftest
20290 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20291 allow_undefined_flag_CXX=
20292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20293 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20294 ac_status=$?
20295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20296 test $ac_status = 0; }
20297 then
20298 lt_cv_archive_cmds_need_lc_CXX=no
20299 else
20300 lt_cv_archive_cmds_need_lc_CXX=yes
20301 fi
20302 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20303 else
20304 cat conftest.err 1>&5
20305 fi
20306 $RM conftest*
20307
20308 fi
20309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20310 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20311 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20312 ;;
20313 esac
20314 fi
20315 ;;
20316 esac
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334
20335
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20382 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20383
20384 library_names_spec=
20385 libname_spec='lib$name'
20386 soname_spec=
20387 shrext_cmds=".so"
20388 postinstall_cmds=
20389 postuninstall_cmds=
20390 finish_cmds=
20391 finish_eval=
20392 shlibpath_var=
20393 shlibpath_overrides_runpath=unknown
20394 version_type=none
20395 dynamic_linker="$host_os ld.so"
20396 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20397 need_lib_prefix=unknown
20398 hardcode_into_libs=no
20399
20400 # when you set need_version to no, make sure it does not cause -set_version
20401 # flags to be left without arguments
20402 need_version=unknown
20403
20404 case $host_os in
20405 aix3*)
20406 version_type=linux
20407 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20408 shlibpath_var=LIBPATH
20409
20410 # AIX 3 has no versioning support, so we append a major version to the name.
20411 soname_spec='${libname}${release}${shared_ext}$major'
20412 ;;
20413
20414 aix[4-9]*)
20415 version_type=linux
20416 need_lib_prefix=no
20417 need_version=no
20418 hardcode_into_libs=yes
20419 if test "$host_cpu" = ia64; then
20420 # AIX 5 supports IA64
20421 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20422 shlibpath_var=LD_LIBRARY_PATH
20423 else
20424 # With GCC up to 2.95.x, collect2 would create an import file
20425 # for dependence libraries. The import file would start with
20426 # the line `#! .'. This would cause the generated library to
20427 # depend on `.', always an invalid library. This was fixed in
20428 # development snapshots of GCC prior to 3.0.
20429 case $host_os in
20430 aix4 | aix4.[01] | aix4.[01].*)
20431 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20432 echo ' yes '
20433 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20434 :
20435 else
20436 can_build_shared=no
20437 fi
20438 ;;
20439 esac
20440 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20441 # soname into executable. Probably we can add versioning support to
20442 # collect2, so additional links can be useful in future.
20443 if test "$aix_use_runtimelinking" = yes; then
20444 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20445 # instead of lib<name>.a to let people know that these are not
20446 # typical AIX shared libraries.
20447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20448 else
20449 # We preserve .a as extension for shared libraries through AIX4.2
20450 # and later when we are not doing run time linking.
20451 library_names_spec='${libname}${release}.a $libname.a'
20452 soname_spec='${libname}${release}${shared_ext}$major'
20453 fi
20454 shlibpath_var=LIBPATH
20455 fi
20456 ;;
20457
20458 amigaos*)
20459 case $host_cpu in
20460 powerpc)
20461 # Since July 2007 AmigaOS4 officially supports .so libraries.
20462 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20464 ;;
20465 m68k)
20466 library_names_spec='$libname.ixlibrary $libname.a'
20467 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20468 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'
20469 ;;
20470 esac
20471 ;;
20472
20473 beos*)
20474 library_names_spec='${libname}${shared_ext}'
20475 dynamic_linker="$host_os ld.so"
20476 shlibpath_var=LIBRARY_PATH
20477 ;;
20478
20479 bsdi[45]*)
20480 version_type=linux
20481 need_version=no
20482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20483 soname_spec='${libname}${release}${shared_ext}$major'
20484 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20485 shlibpath_var=LD_LIBRARY_PATH
20486 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20487 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20488 # the default ld.so.conf also contains /usr/contrib/lib and
20489 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20490 # libtool to hard-code these into programs
20491 ;;
20492
20493 cygwin* | mingw* | pw32* | cegcc*)
20494 version_type=windows
20495 shrext_cmds=".dll"
20496 need_version=no
20497 need_lib_prefix=no
20498
20499 case $GCC,$host_os in
20500 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20501 library_names_spec='$libname.dll.a'
20502 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20503 postinstall_cmds='base_file=`basename \${file}`~
20504 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20505 dldir=$destdir/`dirname \$dlpath`~
20506 test -d \$dldir || mkdir -p \$dldir~
20507 $install_prog $dir/$dlname \$dldir/$dlname~
20508 chmod a+x \$dldir/$dlname~
20509 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20510 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20511 fi'
20512 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20513 dlpath=$dir/\$dldll~
20514 $RM \$dlpath'
20515 shlibpath_overrides_runpath=yes
20516
20517 case $host_os in
20518 cygwin*)
20519 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20520 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20521
20522 ;;
20523 mingw* | cegcc*)
20524 # MinGW DLLs use traditional 'lib' prefix
20525 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20526 ;;
20527 pw32*)
20528 # pw32 DLLs use 'pw' prefix rather than 'lib'
20529 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20530 ;;
20531 esac
20532 ;;
20533
20534 *)
20535 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20536 ;;
20537 esac
20538 dynamic_linker='Win32 ld.exe'
20539 # FIXME: first we should search . and the directory the executable is in
20540 shlibpath_var=PATH
20541 ;;
20542
20543 darwin* | rhapsody*)
20544 dynamic_linker="$host_os dyld"
20545 version_type=darwin
20546 need_lib_prefix=no
20547 need_version=no
20548 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20549 soname_spec='${libname}${release}${major}$shared_ext'
20550 shlibpath_overrides_runpath=yes
20551 shlibpath_var=DYLD_LIBRARY_PATH
20552 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20553
20554 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20555 ;;
20556
20557 dgux*)
20558 version_type=linux
20559 need_lib_prefix=no
20560 need_version=no
20561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20562 soname_spec='${libname}${release}${shared_ext}$major'
20563 shlibpath_var=LD_LIBRARY_PATH
20564 ;;
20565
20566 freebsd* | dragonfly*)
20567 # DragonFly does not have aout. When/if they implement a new
20568 # versioning mechanism, adjust this.
20569 if test -x /usr/bin/objformat; then
20570 objformat=`/usr/bin/objformat`
20571 else
20572 case $host_os in
20573 freebsd[123]*) objformat=aout ;;
20574 *) objformat=elf ;;
20575 esac
20576 fi
20577 version_type=freebsd-$objformat
20578 case $version_type in
20579 freebsd-elf*)
20580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20581 need_version=no
20582 need_lib_prefix=no
20583 ;;
20584 freebsd-*)
20585 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20586 need_version=yes
20587 ;;
20588 esac
20589 shlibpath_var=LD_LIBRARY_PATH
20590 case $host_os in
20591 freebsd2*)
20592 shlibpath_overrides_runpath=yes
20593 ;;
20594 freebsd3.[01]* | freebsdelf3.[01]*)
20595 shlibpath_overrides_runpath=yes
20596 hardcode_into_libs=yes
20597 ;;
20598 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20599 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20600 shlibpath_overrides_runpath=no
20601 hardcode_into_libs=yes
20602 ;;
20603 *) # from 4.6 on, and DragonFly
20604 shlibpath_overrides_runpath=yes
20605 hardcode_into_libs=yes
20606 ;;
20607 esac
20608 ;;
20609
20610 gnu*)
20611 version_type=linux
20612 need_lib_prefix=no
20613 need_version=no
20614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20615 soname_spec='${libname}${release}${shared_ext}$major'
20616 shlibpath_var=LD_LIBRARY_PATH
20617 hardcode_into_libs=yes
20618 ;;
20619
20620 haiku*)
20621 version_type=linux
20622 need_lib_prefix=no
20623 need_version=no
20624 dynamic_linker="$host_os runtime_loader"
20625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20626 soname_spec='${libname}${release}${shared_ext}$major'
20627 shlibpath_var=LIBRARY_PATH
20628 shlibpath_overrides_runpath=yes
20629 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20630 hardcode_into_libs=yes
20631 ;;
20632
20633 hpux9* | hpux10* | hpux11*)
20634 # Give a soname corresponding to the major version so that dld.sl refuses to
20635 # link against other versions.
20636 version_type=sunos
20637 need_lib_prefix=no
20638 need_version=no
20639 case $host_cpu in
20640 ia64*)
20641 shrext_cmds='.so'
20642 hardcode_into_libs=yes
20643 dynamic_linker="$host_os dld.so"
20644 shlibpath_var=LD_LIBRARY_PATH
20645 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20647 soname_spec='${libname}${release}${shared_ext}$major'
20648 if test "X$HPUX_IA64_MODE" = X32; then
20649 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20650 else
20651 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20652 fi
20653 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20654 ;;
20655 hppa*64*)
20656 shrext_cmds='.sl'
20657 hardcode_into_libs=yes
20658 dynamic_linker="$host_os dld.sl"
20659 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20660 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20662 soname_spec='${libname}${release}${shared_ext}$major'
20663 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20664 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20665 ;;
20666 *)
20667 shrext_cmds='.sl'
20668 dynamic_linker="$host_os dld.sl"
20669 shlibpath_var=SHLIB_PATH
20670 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20672 soname_spec='${libname}${release}${shared_ext}$major'
20673 ;;
20674 esac
20675 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20676 postinstall_cmds='chmod 555 $lib'
20677 # or fails outright, so override atomically:
20678 install_override_mode=555
20679 ;;
20680
20681 interix[3-9]*)
20682 version_type=linux
20683 need_lib_prefix=no
20684 need_version=no
20685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20686 soname_spec='${libname}${release}${shared_ext}$major'
20687 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20688 shlibpath_var=LD_LIBRARY_PATH
20689 shlibpath_overrides_runpath=no
20690 hardcode_into_libs=yes
20691 ;;
20692
20693 irix5* | irix6* | nonstopux*)
20694 case $host_os in
20695 nonstopux*) version_type=nonstopux ;;
20696 *)
20697 if test "$lt_cv_prog_gnu_ld" = yes; then
20698 version_type=linux
20699 else
20700 version_type=irix
20701 fi ;;
20702 esac
20703 need_lib_prefix=no
20704 need_version=no
20705 soname_spec='${libname}${release}${shared_ext}$major'
20706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20707 case $host_os in
20708 irix5* | nonstopux*)
20709 libsuff= shlibsuff=
20710 ;;
20711 *)
20712 case $LD in # libtool.m4 will add one of these switches to LD
20713 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20714 libsuff= shlibsuff= libmagic=32-bit;;
20715 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20716 libsuff=32 shlibsuff=N32 libmagic=N32;;
20717 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20718 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20719 *) libsuff= shlibsuff= libmagic=never-match;;
20720 esac
20721 ;;
20722 esac
20723 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20724 shlibpath_overrides_runpath=no
20725 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20726 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20727 hardcode_into_libs=yes
20728 ;;
20729
20730 # No shared lib support for Linux oldld, aout, or coff.
20731 linux*oldld* | linux*aout* | linux*coff*)
20732 dynamic_linker=no
20733 ;;
20734
20735 # This must be Linux ELF.
20736 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20737 version_type=linux
20738 need_lib_prefix=no
20739 need_version=no
20740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20741 soname_spec='${libname}${release}${shared_ext}$major'
20742 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20743 shlibpath_var=LD_LIBRARY_PATH
20744 shlibpath_overrides_runpath=no
20745
20746 # Some binutils ld are patched to set DT_RUNPATH
20747 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20748 $as_echo_n "(cached) " >&6
20749 else
20750 lt_cv_shlibpath_overrides_runpath=no
20751 save_LDFLAGS=$LDFLAGS
20752 save_libdir=$libdir
20753 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20754 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20756 /* end confdefs.h. */
20757
20758 int
20759 main ()
20760 {
20761
20762 ;
20763 return 0;
20764 }
20765 _ACEOF
20766 if ac_fn_cxx_try_link "$LINENO"; then :
20767 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20768 lt_cv_shlibpath_overrides_runpath=yes
20769 fi
20770 fi
20771 rm -f core conftest.err conftest.$ac_objext \
20772 conftest$ac_exeext conftest.$ac_ext
20773 LDFLAGS=$save_LDFLAGS
20774 libdir=$save_libdir
20775
20776 fi
20777
20778 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20779
20780 # This implies no fast_install, which is unacceptable.
20781 # Some rework will be needed to allow for fast_install
20782 # before this can be enabled.
20783 hardcode_into_libs=yes
20784
20785 # Append ld.so.conf contents to the search path
20786 if test -f /etc/ld.so.conf; then
20787 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' ' '`
20788 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20789 fi
20790
20791 # We used to test for /lib/ld.so.1 and disable shared libraries on
20792 # powerpc, because MkLinux only supported shared libraries with the
20793 # GNU dynamic linker. Since this was broken with cross compilers,
20794 # most powerpc-linux boxes support dynamic linking these days and
20795 # people can always --disable-shared, the test was removed, and we
20796 # assume the GNU/Linux dynamic linker is in use.
20797 dynamic_linker='GNU/Linux ld.so'
20798 ;;
20799
20800 netbsd*)
20801 version_type=sunos
20802 need_lib_prefix=no
20803 need_version=no
20804 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20806 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20807 dynamic_linker='NetBSD (a.out) ld.so'
20808 else
20809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20810 soname_spec='${libname}${release}${shared_ext}$major'
20811 dynamic_linker='NetBSD ld.elf_so'
20812 fi
20813 shlibpath_var=LD_LIBRARY_PATH
20814 shlibpath_overrides_runpath=yes
20815 hardcode_into_libs=yes
20816 ;;
20817
20818 newsos6)
20819 version_type=linux
20820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20821 shlibpath_var=LD_LIBRARY_PATH
20822 shlibpath_overrides_runpath=yes
20823 ;;
20824
20825 *nto* | *qnx*)
20826 version_type=qnx
20827 need_lib_prefix=no
20828 need_version=no
20829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20830 soname_spec='${libname}${release}${shared_ext}$major'
20831 shlibpath_var=LD_LIBRARY_PATH
20832 shlibpath_overrides_runpath=no
20833 hardcode_into_libs=yes
20834 dynamic_linker='ldqnx.so'
20835 ;;
20836
20837 openbsd*)
20838 version_type=sunos
20839 sys_lib_dlsearch_path_spec="/usr/lib"
20840 need_lib_prefix=no
20841 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20842 case $host_os in
20843 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20844 *) need_version=no ;;
20845 esac
20846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20847 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20848 shlibpath_var=LD_LIBRARY_PATH
20849 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20850 case $host_os in
20851 openbsd2.[89] | openbsd2.[89].*)
20852 shlibpath_overrides_runpath=no
20853 ;;
20854 *)
20855 shlibpath_overrides_runpath=yes
20856 ;;
20857 esac
20858 else
20859 shlibpath_overrides_runpath=yes
20860 fi
20861 ;;
20862
20863 os2*)
20864 libname_spec='$name'
20865 shrext_cmds=".dll"
20866 need_lib_prefix=no
20867 library_names_spec='$libname${shared_ext} $libname.a'
20868 dynamic_linker='OS/2 ld.exe'
20869 shlibpath_var=LIBPATH
20870 ;;
20871
20872 osf3* | osf4* | osf5*)
20873 version_type=osf
20874 need_lib_prefix=no
20875 need_version=no
20876 soname_spec='${libname}${release}${shared_ext}$major'
20877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20878 shlibpath_var=LD_LIBRARY_PATH
20879 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20880 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20881 ;;
20882
20883 rdos*)
20884 dynamic_linker=no
20885 ;;
20886
20887 solaris*)
20888 version_type=linux
20889 need_lib_prefix=no
20890 need_version=no
20891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20892 soname_spec='${libname}${release}${shared_ext}$major'
20893 shlibpath_var=LD_LIBRARY_PATH
20894 shlibpath_overrides_runpath=yes
20895 hardcode_into_libs=yes
20896 # ldd complains unless libraries are executable
20897 postinstall_cmds='chmod +x $lib'
20898 ;;
20899
20900 sunos4*)
20901 version_type=sunos
20902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20903 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20904 shlibpath_var=LD_LIBRARY_PATH
20905 shlibpath_overrides_runpath=yes
20906 if test "$with_gnu_ld" = yes; then
20907 need_lib_prefix=no
20908 fi
20909 need_version=yes
20910 ;;
20911
20912 sysv4 | sysv4.3*)
20913 version_type=linux
20914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20915 soname_spec='${libname}${release}${shared_ext}$major'
20916 shlibpath_var=LD_LIBRARY_PATH
20917 case $host_vendor in
20918 sni)
20919 shlibpath_overrides_runpath=no
20920 need_lib_prefix=no
20921 runpath_var=LD_RUN_PATH
20922 ;;
20923 siemens)
20924 need_lib_prefix=no
20925 ;;
20926 motorola)
20927 need_lib_prefix=no
20928 need_version=no
20929 shlibpath_overrides_runpath=no
20930 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20931 ;;
20932 esac
20933 ;;
20934
20935 sysv4*MP*)
20936 if test -d /usr/nec ;then
20937 version_type=linux
20938 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20939 soname_spec='$libname${shared_ext}.$major'
20940 shlibpath_var=LD_LIBRARY_PATH
20941 fi
20942 ;;
20943
20944 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20945 version_type=freebsd-elf
20946 need_lib_prefix=no
20947 need_version=no
20948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20949 soname_spec='${libname}${release}${shared_ext}$major'
20950 shlibpath_var=LD_LIBRARY_PATH
20951 shlibpath_overrides_runpath=yes
20952 hardcode_into_libs=yes
20953 if test "$with_gnu_ld" = yes; then
20954 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20955 else
20956 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20957 case $host_os in
20958 sco3.2v5*)
20959 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20960 ;;
20961 esac
20962 fi
20963 sys_lib_dlsearch_path_spec='/usr/lib'
20964 ;;
20965
20966 tpf*)
20967 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20968 version_type=linux
20969 need_lib_prefix=no
20970 need_version=no
20971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20972 shlibpath_var=LD_LIBRARY_PATH
20973 shlibpath_overrides_runpath=no
20974 hardcode_into_libs=yes
20975 ;;
20976
20977 uts4*)
20978 version_type=linux
20979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20980 soname_spec='${libname}${release}${shared_ext}$major'
20981 shlibpath_var=LD_LIBRARY_PATH
20982 ;;
20983
20984 *)
20985 dynamic_linker=no
20986 ;;
20987 esac
20988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20989 $as_echo "$dynamic_linker" >&6; }
20990 test "$dynamic_linker" = no && can_build_shared=no
20991
20992 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20993 if test "$GCC" = yes; then
20994 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20995 fi
20996
20997 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20998 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20999 fi
21000 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21001 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21002 fi
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21042 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21043 hardcode_action_CXX=
21044 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21045 test -n "$runpath_var_CXX" ||
21046 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21047
21048 # We can hardcode non-existent directories.
21049 if test "$hardcode_direct_CXX" != no &&
21050 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21051 # have to relink, otherwise we might link with an installed library
21052 # when we should be linking with a yet-to-be-installed one
21053 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21054 test "$hardcode_minus_L_CXX" != no; then
21055 # Linking always hardcodes the temporary library directory.
21056 hardcode_action_CXX=relink
21057 else
21058 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21059 hardcode_action_CXX=immediate
21060 fi
21061 else
21062 # We cannot hardcode anything, or else we can only hardcode existing
21063 # directories.
21064 hardcode_action_CXX=unsupported
21065 fi
21066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21067 $as_echo "$hardcode_action_CXX" >&6; }
21068
21069 if test "$hardcode_action_CXX" = relink ||
21070 test "$inherit_rpath_CXX" = yes; then
21071 # Fast installation is not supported
21072 enable_fast_install=no
21073 elif test "$shlibpath_overrides_runpath" = yes ||
21074 test "$enable_shared" = no; then
21075 # Fast installation is not necessary
21076 enable_fast_install=needless
21077 fi
21078
21079
21080
21081
21082
21083
21084
21085 fi # test -n "$compiler"
21086
21087 CC=$lt_save_CC
21088 LDCXX=$LD
21089 LD=$lt_save_LD
21090 GCC=$lt_save_GCC
21091 with_gnu_ld=$lt_save_with_gnu_ld
21092 lt_cv_path_LDCXX=$lt_cv_path_LD
21093 lt_cv_path_LD=$lt_save_path_LD
21094 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21095 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21096 fi # test "$_lt_caught_CXX_error" != yes
21097
21098 ac_ext=c
21099 ac_cpp='$CPP $CPPFLAGS'
21100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21103
21104
21105
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119 # Only expand once:
21120
21121
21122
21123
21124
21125 # Identify the assembler which will work hand-in-glove with the newly
21126 # built GCC, so that we can examine its features. This is the assembler
21127 # which will be driven by the driver program.
21128 #
21129 # If build != host, and we aren't building gas in-tree, we identify a
21130 # build->target assembler and hope that it will have the same features
21131 # as the host->target assembler we'll be using.
21132 gcc_cv_gas_major_version=
21133 gcc_cv_gas_minor_version=
21134 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21135
21136 if test "${gcc_cv_as+set}" = set; then :
21137
21138 else
21139
21140 if test -x "$DEFAULT_ASSEMBLER"; then
21141 gcc_cv_as="$DEFAULT_ASSEMBLER"
21142 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21143 && test -f ../gas/Makefile \
21144 && test x$build = x$host; then
21145 gcc_cv_as=../gas/as-new$build_exeext
21146 elif test -x as$build_exeext; then
21147 # Build using assembler in the current directory.
21148 gcc_cv_as=./as$build_exeext
21149 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21150 gcc_cv_as="$AS_FOR_TARGET"
21151 else
21152 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21153 set dummy $AS_FOR_TARGET; ac_word=$2
21154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21155 $as_echo_n "checking for $ac_word... " >&6; }
21156 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21157 $as_echo_n "(cached) " >&6
21158 else
21159 case $gcc_cv_as in
21160 [\\/]* | ?:[\\/]*)
21161 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21162 ;;
21163 *)
21164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21165 for as_dir in $PATH
21166 do
21167 IFS=$as_save_IFS
21168 test -z "$as_dir" && as_dir=.
21169 for ac_exec_ext in '' $ac_executable_extensions; do
21170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21171 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21173 break 2
21174 fi
21175 done
21176 done
21177 IFS=$as_save_IFS
21178
21179 ;;
21180 esac
21181 fi
21182 gcc_cv_as=$ac_cv_path_gcc_cv_as
21183 if test -n "$gcc_cv_as"; then
21184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21185 $as_echo "$gcc_cv_as" >&6; }
21186 else
21187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21188 $as_echo "no" >&6; }
21189 fi
21190
21191
21192 fi
21193 fi
21194
21195 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21196
21197 case "$ORIGINAL_AS_FOR_TARGET" in
21198 ./as | ./as$build_exeext) ;;
21199 *) ac_config_files="$ac_config_files as:exec-tool.in"
21200 ;;
21201 esac
21202
21203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21204 $as_echo_n "checking what assembler to use... " >&6; }
21205 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21206 # Single tree build which includes gas. We want to prefer it
21207 # over whatever linker top-level may have detected, since
21208 # we'll use what we're building after installation anyway.
21209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21210 $as_echo "newly built gas" >&6; }
21211 in_tree_gas=yes
21212 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21213 for f in $gcc_cv_as_bfd_srcdir/configure \
21214 $gcc_cv_as_gas_srcdir/configure \
21215 $gcc_cv_as_gas_srcdir/configure.in \
21216 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21217 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21218 if test x$gcc_cv_gas_version != x; then
21219 break
21220 fi
21221 done
21222 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21223 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21224 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21225 case $gcc_cv_gas_patch_version in
21226 "") gcc_cv_gas_patch_version="0" ;;
21227 esac
21228 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21229 + $gcc_cv_gas_minor_version \) \* 1000 \
21230 + $gcc_cv_gas_patch_version`
21231
21232 in_tree_gas_is_elf=no
21233 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21234 || (grep 'obj_format = multi' ../gas/Makefile \
21235 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21236 then
21237 in_tree_gas_is_elf=yes
21238 fi
21239 else
21240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21241 $as_echo "$gcc_cv_as" >&6; }
21242 in_tree_gas=no
21243 fi
21244
21245 # Identify the linker which will work hand-in-glove with the newly
21246 # built GCC, so that we can examine its features. This is the linker
21247 # which will be driven by the driver program.
21248 #
21249 # If build != host, and we aren't building gas in-tree, we identify a
21250 # build->target linker and hope that it will have the same features
21251 # as the host->target linker we'll be using.
21252 gcc_cv_gld_major_version=
21253 gcc_cv_gld_minor_version=
21254 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21255 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21256
21257 if test "${gcc_cv_ld+set}" = set; then :
21258
21259 else
21260
21261 if test -x "$DEFAULT_LINKER"; then
21262 gcc_cv_ld="$DEFAULT_LINKER"
21263 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21264 && test -f ../ld/Makefile \
21265 && test x$build = x$host; then
21266 gcc_cv_ld=../ld/ld-new$build_exeext
21267 elif test -x collect-ld$build_exeext; then
21268 # Build using linker in the current directory.
21269 gcc_cv_ld=./collect-ld$build_exeext
21270 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21271 gcc_cv_ld="$LD_FOR_TARGET"
21272 else
21273 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21274 set dummy $LD_FOR_TARGET; ac_word=$2
21275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21276 $as_echo_n "checking for $ac_word... " >&6; }
21277 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21278 $as_echo_n "(cached) " >&6
21279 else
21280 case $gcc_cv_ld in
21281 [\\/]* | ?:[\\/]*)
21282 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21283 ;;
21284 *)
21285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21286 for as_dir in $PATH
21287 do
21288 IFS=$as_save_IFS
21289 test -z "$as_dir" && as_dir=.
21290 for ac_exec_ext in '' $ac_executable_extensions; do
21291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21292 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21294 break 2
21295 fi
21296 done
21297 done
21298 IFS=$as_save_IFS
21299
21300 ;;
21301 esac
21302 fi
21303 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21304 if test -n "$gcc_cv_ld"; then
21305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21306 $as_echo "$gcc_cv_ld" >&6; }
21307 else
21308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21309 $as_echo "no" >&6; }
21310 fi
21311
21312
21313 fi
21314 fi
21315
21316 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21317 PLUGIN_LD=`basename $gcc_cv_ld`
21318
21319 # Check whether --with-plugin-ld was given.
21320 if test "${with_plugin_ld+set}" = set; then :
21321 withval=$with_plugin_ld; if test x"$withval" != x; then
21322 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21323 PLUGIN_LD="$withval"
21324 fi
21325 fi
21326
21327
21328
21329 cat >>confdefs.h <<_ACEOF
21330 #define PLUGIN_LD "$PLUGIN_LD"
21331 _ACEOF
21332
21333
21334 # Check to see if we are using gold instead of ld
21335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21336 $as_echo_n "checking whether we are using gold... " >&6; }
21337 ld_is_gold=no
21338 if test x$gcc_cv_ld != x; then
21339 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21340 | grep "GNU gold" > /dev/null; then
21341 ld_is_gold=yes
21342 fi
21343 fi
21344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21345 $as_echo "$ld_is_gold" >&6; }
21346
21347 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21348
21349 case "$ORIGINAL_LD_FOR_TARGET" in
21350 ./collect-ld | ./collect-ld$build_exeext) ;;
21351 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21352 ;;
21353 esac
21354
21355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21356 $as_echo_n "checking what linker to use... " >&6; }
21357 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21358 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21359 # Single tree build which includes ld. We want to prefer it
21360 # over whatever linker top-level may have detected, since
21361 # we'll use what we're building after installation anyway.
21362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21363 $as_echo "newly built ld" >&6; }
21364 in_tree_ld=yes
21365 in_tree_ld_is_elf=no
21366 if (grep 'EMUL = .*elf' ../ld/Makefile \
21367 || grep 'EMUL = .*linux' ../ld/Makefile \
21368 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21369 in_tree_ld_is_elf=yes
21370 elif test "$ld_is_gold" = yes; then
21371 in_tree_ld_is_elf=yes
21372 fi
21373 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
21374 do
21375 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21376 if test x$gcc_cv_gld_version != x; then
21377 break
21378 fi
21379 done
21380 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21381 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21382 else
21383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21384 $as_echo "$gcc_cv_ld" >&6; }
21385 in_tree_ld=no
21386 fi
21387
21388 # Figure out what nm we will be using.
21389 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21390 if test "${gcc_cv_nm+set}" = set; then :
21391
21392 else
21393
21394 if test -f $gcc_cv_binutils_srcdir/configure.in \
21395 && test -f ../binutils/Makefile \
21396 && test x$build = x$host; then
21397 gcc_cv_nm=../binutils/nm-new$build_exeext
21398 elif test -x nm$build_exeext; then
21399 gcc_cv_nm=./nm$build_exeext
21400 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21401 gcc_cv_nm="$NM_FOR_TARGET"
21402 else
21403 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21404 set dummy $NM_FOR_TARGET; ac_word=$2
21405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21406 $as_echo_n "checking for $ac_word... " >&6; }
21407 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21408 $as_echo_n "(cached) " >&6
21409 else
21410 case $gcc_cv_nm in
21411 [\\/]* | ?:[\\/]*)
21412 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21413 ;;
21414 *)
21415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21416 for as_dir in $PATH
21417 do
21418 IFS=$as_save_IFS
21419 test -z "$as_dir" && as_dir=.
21420 for ac_exec_ext in '' $ac_executable_extensions; do
21421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21422 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21424 break 2
21425 fi
21426 done
21427 done
21428 IFS=$as_save_IFS
21429
21430 ;;
21431 esac
21432 fi
21433 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21434 if test -n "$gcc_cv_nm"; then
21435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21436 $as_echo "$gcc_cv_nm" >&6; }
21437 else
21438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21439 $as_echo "no" >&6; }
21440 fi
21441
21442
21443 fi
21444 fi
21445
21446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21447 $as_echo_n "checking what nm to use... " >&6; }
21448 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21449 # Single tree build which includes binutils.
21450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21451 $as_echo "newly built nm" >&6; }
21452 in_tree_nm=yes
21453 else
21454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21455 $as_echo "$gcc_cv_nm" >&6; }
21456 in_tree_nm=no
21457 fi
21458
21459 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21460
21461 case "$ORIGINAL_NM_FOR_TARGET" in
21462 ./nm | ./nm$build_exeext) ;;
21463 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21464 ;;
21465 esac
21466
21467
21468 # Figure out what objdump we will be using.
21469 if test "${gcc_cv_objdump+set}" = set; then :
21470
21471 else
21472
21473 if test -f $gcc_cv_binutils_srcdir/configure.in \
21474 && test -f ../binutils/Makefile \
21475 && test x$build = x$host; then
21476 # Single tree build which includes binutils.
21477 gcc_cv_objdump=../binutils/objdump$build_exeext
21478 elif test -x objdump$build_exeext; then
21479 gcc_cv_objdump=./objdump$build_exeext
21480 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21481 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21482 else
21483 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21484 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21486 $as_echo_n "checking for $ac_word... " >&6; }
21487 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21488 $as_echo_n "(cached) " >&6
21489 else
21490 case $gcc_cv_objdump in
21491 [\\/]* | ?:[\\/]*)
21492 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21493 ;;
21494 *)
21495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21496 for as_dir in $PATH
21497 do
21498 IFS=$as_save_IFS
21499 test -z "$as_dir" && as_dir=.
21500 for ac_exec_ext in '' $ac_executable_extensions; do
21501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21502 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21504 break 2
21505 fi
21506 done
21507 done
21508 IFS=$as_save_IFS
21509
21510 ;;
21511 esac
21512 fi
21513 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21514 if test -n "$gcc_cv_objdump"; then
21515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21516 $as_echo "$gcc_cv_objdump" >&6; }
21517 else
21518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21519 $as_echo "no" >&6; }
21520 fi
21521
21522
21523 fi
21524 fi
21525
21526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21527 $as_echo_n "checking what objdump to use... " >&6; }
21528 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21529 # Single tree build which includes binutils.
21530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21531 $as_echo "newly built objdump" >&6; }
21532 elif test x$gcc_cv_objdump = x; then
21533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21534 $as_echo "not found" >&6; }
21535 else
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21537 $as_echo "$gcc_cv_objdump" >&6; }
21538 fi
21539
21540 # Figure out what readelf we will be using.
21541 if test "${gcc_cv_readelf+set}" = set; then :
21542
21543 else
21544
21545 if test -f $gcc_cv_binutils_srcdir/configure.in \
21546 && test -f ../binutils/Makefile \
21547 && test x$build = x$host; then
21548 # Single tree build which includes binutils.
21549 gcc_cv_readelf=../binutils/readelf$build_exeext
21550 elif test -x readelf$build_exeext; then
21551 gcc_cv_readelf=./readelf$build_exeext
21552 else
21553 # Extract the first word of "readelf", so it can be a program name with args.
21554 set dummy readelf; ac_word=$2
21555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21556 $as_echo_n "checking for $ac_word... " >&6; }
21557 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21558 $as_echo_n "(cached) " >&6
21559 else
21560 case $gcc_cv_readelf in
21561 [\\/]* | ?:[\\/]*)
21562 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21563 ;;
21564 *)
21565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21566 for as_dir in $PATH
21567 do
21568 IFS=$as_save_IFS
21569 test -z "$as_dir" && as_dir=.
21570 for ac_exec_ext in '' $ac_executable_extensions; do
21571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21572 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21574 break 2
21575 fi
21576 done
21577 done
21578 IFS=$as_save_IFS
21579
21580 ;;
21581 esac
21582 fi
21583 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21584 if test -n "$gcc_cv_readelf"; then
21585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21586 $as_echo "$gcc_cv_readelf" >&6; }
21587 else
21588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21589 $as_echo "no" >&6; }
21590 fi
21591
21592
21593 fi
21594 fi
21595
21596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21597 $as_echo_n "checking what readelf to use... " >&6; }
21598 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21599 # Single tree build which includes binutils.
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21601 $as_echo "newly built readelf" >&6; }
21602 elif test x$gcc_cv_readelf = x; then
21603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21604 $as_echo "not found" >&6; }
21605 else
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21607 $as_echo "$gcc_cv_readelf" >&6; }
21608 fi
21609
21610 # Figure out what assembler alignment features are present.
21611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21612 $as_echo_n "checking assembler flags... " >&6; }
21613 if test "${gcc_cv_as_flags+set}" = set; then :
21614 $as_echo_n "(cached) " >&6
21615 else
21616 case "$target" in
21617 i[34567]86-*-linux*)
21618 gcc_cv_as_flags="--32"
21619 ;;
21620 powerpc*-*-darwin*)
21621 gcc_cv_as_flags="-arch ppc"
21622 ;;
21623 *)
21624 gcc_cv_as_flags=" "
21625 ;;
21626 esac
21627 fi
21628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21629 $as_echo "$gcc_cv_as_flags" >&6; }
21630
21631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21632 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21633 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21634 $as_echo_n "(cached) " >&6
21635 else
21636 gcc_cv_as_balign_and_p2align=no
21637 if test $in_tree_gas = yes; then
21638 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21639 then gcc_cv_as_balign_and_p2align=yes
21640 fi
21641 elif test x$gcc_cv_as != x; then
21642 $as_echo '.balign 4
21643 .p2align 2' > conftest.s
21644 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21646 (eval $ac_try) 2>&5
21647 ac_status=$?
21648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21649 test $ac_status = 0; }; }
21650 then
21651 gcc_cv_as_balign_and_p2align=yes
21652 else
21653 echo "configure: failed program was" >&5
21654 cat conftest.s >&5
21655 fi
21656 rm -f conftest.o conftest.s
21657 fi
21658 fi
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21660 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21661 if test $gcc_cv_as_balign_and_p2align = yes; then
21662
21663 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21664
21665 fi
21666
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21668 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21669 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21670 $as_echo_n "(cached) " >&6
21671 else
21672 gcc_cv_as_max_skip_p2align=no
21673 if test $in_tree_gas = yes; then
21674 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21675 then gcc_cv_as_max_skip_p2align=yes
21676 fi
21677 elif test x$gcc_cv_as != x; then
21678 $as_echo '.p2align 4,,7' > conftest.s
21679 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21681 (eval $ac_try) 2>&5
21682 ac_status=$?
21683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21684 test $ac_status = 0; }; }
21685 then
21686 gcc_cv_as_max_skip_p2align=yes
21687 else
21688 echo "configure: failed program was" >&5
21689 cat conftest.s >&5
21690 fi
21691 rm -f conftest.o conftest.s
21692 fi
21693 fi
21694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21695 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21696 if test $gcc_cv_as_max_skip_p2align = yes; then
21697
21698 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21699
21700 fi
21701
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21703 $as_echo_n "checking assembler for .literal16... " >&6; }
21704 if test "${gcc_cv_as_literal16+set}" = set; then :
21705 $as_echo_n "(cached) " >&6
21706 else
21707 gcc_cv_as_literal16=no
21708 if test $in_tree_gas = yes; then
21709 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21710 then gcc_cv_as_literal16=yes
21711 fi
21712 elif test x$gcc_cv_as != x; then
21713 $as_echo '.literal16' > conftest.s
21714 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21716 (eval $ac_try) 2>&5
21717 ac_status=$?
21718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21719 test $ac_status = 0; }; }
21720 then
21721 gcc_cv_as_literal16=yes
21722 else
21723 echo "configure: failed program was" >&5
21724 cat conftest.s >&5
21725 fi
21726 rm -f conftest.o conftest.s
21727 fi
21728 fi
21729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21730 $as_echo "$gcc_cv_as_literal16" >&6; }
21731 if test $gcc_cv_as_literal16 = yes; then
21732
21733 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21734
21735 fi
21736
21737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21738 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21739 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21740 $as_echo_n "(cached) " >&6
21741 else
21742 gcc_cv_as_subsection_m1=no
21743 if test $in_tree_gas = yes; then
21744 if test $in_tree_gas_is_elf = yes \
21745 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21746 then gcc_cv_as_subsection_m1=yes
21747 fi
21748 elif test x$gcc_cv_as != x; then
21749 $as_echo 'conftest_label1: .word 0
21750 .subsection -1
21751 conftest_label2: .word 0
21752 .previous' > conftest.s
21753 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21755 (eval $ac_try) 2>&5
21756 ac_status=$?
21757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21758 test $ac_status = 0; }; }
21759 then
21760 if test x$gcc_cv_nm != x; then
21761 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21762 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21763 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21764 then :
21765 else gcc_cv_as_subsection_m1=yes
21766 fi
21767 rm -f conftest.nm1 conftest.nm2
21768 fi
21769 else
21770 echo "configure: failed program was" >&5
21771 cat conftest.s >&5
21772 fi
21773 rm -f conftest.o conftest.s
21774 fi
21775 fi
21776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21777 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21778 if test $gcc_cv_as_subsection_m1 = yes; then
21779
21780 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21781
21782 fi
21783
21784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21785 $as_echo_n "checking assembler for .weak... " >&6; }
21786 if test "${gcc_cv_as_weak+set}" = set; then :
21787 $as_echo_n "(cached) " >&6
21788 else
21789 gcc_cv_as_weak=no
21790 if test $in_tree_gas = yes; then
21791 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21792 then gcc_cv_as_weak=yes
21793 fi
21794 elif test x$gcc_cv_as != x; then
21795 $as_echo ' .weak foobar' > conftest.s
21796 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21798 (eval $ac_try) 2>&5
21799 ac_status=$?
21800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21801 test $ac_status = 0; }; }
21802 then
21803 gcc_cv_as_weak=yes
21804 else
21805 echo "configure: failed program was" >&5
21806 cat conftest.s >&5
21807 fi
21808 rm -f conftest.o conftest.s
21809 fi
21810 fi
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21812 $as_echo "$gcc_cv_as_weak" >&6; }
21813 if test $gcc_cv_as_weak = yes; then
21814
21815 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21816
21817 fi
21818
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21820 $as_echo_n "checking assembler for .weakref... " >&6; }
21821 if test "${gcc_cv_as_weakref+set}" = set; then :
21822 $as_echo_n "(cached) " >&6
21823 else
21824 gcc_cv_as_weakref=no
21825 if test $in_tree_gas = yes; then
21826 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21827 then gcc_cv_as_weakref=yes
21828 fi
21829 elif test x$gcc_cv_as != x; then
21830 $as_echo ' .weakref foobar, barfnot' > conftest.s
21831 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21833 (eval $ac_try) 2>&5
21834 ac_status=$?
21835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21836 test $ac_status = 0; }; }
21837 then
21838 gcc_cv_as_weakref=yes
21839 else
21840 echo "configure: failed program was" >&5
21841 cat conftest.s >&5
21842 fi
21843 rm -f conftest.o conftest.s
21844 fi
21845 fi
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21847 $as_echo "$gcc_cv_as_weakref" >&6; }
21848 if test $gcc_cv_as_weakref = yes; then
21849
21850 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21851
21852 fi
21853
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21855 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21856 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21857 $as_echo_n "(cached) " >&6
21858 else
21859 gcc_cv_as_nsubspa_comdat=no
21860 if test $in_tree_gas = yes; then
21861 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21862 then gcc_cv_as_nsubspa_comdat=yes
21863 fi
21864 elif test x$gcc_cv_as != x; then
21865 $as_echo ' .SPACE $TEXT$
21866 .NSUBSPA $CODE$,COMDAT' > conftest.s
21867 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21869 (eval $ac_try) 2>&5
21870 ac_status=$?
21871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21872 test $ac_status = 0; }; }
21873 then
21874 gcc_cv_as_nsubspa_comdat=yes
21875 else
21876 echo "configure: failed program was" >&5
21877 cat conftest.s >&5
21878 fi
21879 rm -f conftest.o conftest.s
21880 fi
21881 fi
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21883 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21884 if test $gcc_cv_as_nsubspa_comdat = yes; then
21885
21886 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21887
21888 fi
21889
21890 # .hidden needs to be supported in both the assembler and the linker,
21891 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21892 # This is irritatingly difficult to feature test for; we have to check the
21893 # date string after the version number. If we've got an in-tree
21894 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21895 # to be safe.
21896 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21898 $as_echo_n "checking assembler for .hidden... " >&6; }
21899 if test "${gcc_cv_as_hidden+set}" = set; then :
21900 $as_echo_n "(cached) " >&6
21901 else
21902 gcc_cv_as_hidden=no
21903 if test $in_tree_gas = yes; then
21904 if test $in_tree_gas_is_elf = yes \
21905 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21906 then gcc_cv_as_hidden=yes
21907 fi
21908 elif test x$gcc_cv_as != x; then
21909 $as_echo ' .hidden foobar
21910 foobar:' > conftest.s
21911 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21913 (eval $ac_try) 2>&5
21914 ac_status=$?
21915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21916 test $ac_status = 0; }; }
21917 then
21918
21919 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21920 # STV_HIDDEN, so disable .hidden support if so.
21921 case "${target}" in
21922 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
21923 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21924 cat > conftest.s <<EOF
21925 .globl hidden
21926 .hidden hidden
21927 hidden:
21928 .globl default
21929 .set default,hidden
21930 EOF
21931 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
21932 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
21933 grep '\.hidden default' > /dev/null; then
21934 gcc_cv_as_hidden=no
21935 else
21936 gcc_cv_as_hidden=yes
21937 fi
21938 else
21939 # Assume bug is present if objdump is missing.
21940 gcc_cv_as_hidden=no
21941 fi
21942 ;;
21943 *)
21944 gcc_cv_as_hidden=yes
21945 ;;
21946 esac
21947 else
21948 echo "configure: failed program was" >&5
21949 cat conftest.s >&5
21950 fi
21951 rm -f conftest.o conftest.s
21952 fi
21953 fi
21954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21955 $as_echo "$gcc_cv_as_hidden" >&6; }
21956
21957 case "${target}" in
21958 *-*-darwin*)
21959 # Darwin as has some visibility support, though with a different syntax.
21960 gcc_cv_as_hidden=yes
21961 ;;
21962 esac
21963
21964 # gnu_indirect_function type is an extension proposed at
21965 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
21966 # selection of function implementation
21967 # Check whether --enable-gnu-indirect-function was given.
21968 if test "${enable_gnu_indirect_function+set}" = set; then :
21969 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
21970 yes | no) ;;
21971 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
21972 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
21973 esac
21974 else
21975 enable_gnu_indirect_function="$default_gnu_indirect_function"
21976 fi
21977
21978 if test x$enable_gnu_indirect_function = xyes; then
21979
21980 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
21981
21982 fi
21983
21984 if test $in_tree_ld != yes ; then
21985 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21986 if echo "$ld_ver" | grep GNU > /dev/null; then
21987 if test x"$ld_is_gold" = xyes; then
21988 # GNU gold --version looks like this:
21989 #
21990 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
21991 #
21992 # We extract the binutils version which is more familiar and specific
21993 # than the gold version.
21994 ld_vers=`echo $ld_ver | sed -n \
21995 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
21996 else
21997 # GNU ld --version looks like this:
21998 #
21999 # GNU ld (GNU Binutils) 2.21.51.20110225
22000 ld_vers=`echo $ld_ver | sed -n \
22001 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22002 fi
22003 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'`
22004 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22005 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22006 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22007 else
22008 case "${target}" in
22009 *-*-solaris2*)
22010 #
22011 # Solaris 2 ld -V output looks like this for a regular version:
22012 #
22013 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22014 #
22015 # but test versions add stuff at the end:
22016 #
22017 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22018 #
22019 ld_ver=`$gcc_cv_ld -V 2>&1`
22020 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22021 ld_vers=`echo $ld_ver | sed -n \
22022 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22023 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22024 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22025 fi
22026 ;;
22027 esac
22028 fi
22029 fi
22030
22031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22032 $as_echo_n "checking linker for .hidden support... " >&6; }
22033 if test "${gcc_cv_ld_hidden+set}" = set; then :
22034 $as_echo_n "(cached) " >&6
22035 else
22036 if test $in_tree_ld = yes ; then
22037 gcc_cv_ld_hidden=no
22038 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 \
22039 && test $in_tree_ld_is_elf = yes; then
22040 gcc_cv_ld_hidden=yes
22041 fi
22042 else
22043 gcc_cv_ld_hidden=yes
22044 if test x"$ld_is_gold" = xyes; then
22045 :
22046 elif echo "$ld_ver" | grep GNU > /dev/null; then
22047 if test 0"$ld_date" -lt 20020404; then
22048 if test -n "$ld_date"; then
22049 # If there was date string, but was earlier than 2002-04-04, fail
22050 gcc_cv_ld_hidden=no
22051 elif test -z "$ld_vers"; then
22052 # If there was no date string nor ld version number, something is wrong
22053 gcc_cv_ld_hidden=no
22054 else
22055 test -z "$ld_vers_patch" && ld_vers_patch=0
22056 if test "$ld_vers_major" -lt 2; then
22057 gcc_cv_ld_hidden=no
22058 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22059 gcc_cv_ld_hidden="no"
22060 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22061 gcc_cv_ld_hidden=no
22062 fi
22063 fi
22064 fi
22065 else
22066 case "${target}" in
22067 *-*-darwin*)
22068 # Darwin ld has some visibility support.
22069 gcc_cv_ld_hidden=yes
22070 ;;
22071 hppa64*-*-hpux* | ia64*-*-hpux*)
22072 gcc_cv_ld_hidden=yes
22073 ;;
22074 *-*-solaris2.8*)
22075 # .hidden support was backported to Solaris 8, starting with ld
22076 # version 1.276.
22077 if test "$ld_vers_minor" -ge 276; then
22078 gcc_cv_ld_hidden=yes
22079 else
22080 gcc_cv_ld_hidden=no
22081 fi
22082 ;;
22083 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22084 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22085 # .symbolic was only added in Solaris 9 12/02.
22086 gcc_cv_ld_hidden=yes
22087 ;;
22088 *)
22089 gcc_cv_ld_hidden=no
22090 ;;
22091 esac
22092 fi
22093 fi
22094 fi
22095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22096 $as_echo "$gcc_cv_ld_hidden" >&6; }
22097 libgcc_visibility=no
22098
22099
22100 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22101 libgcc_visibility=yes
22102
22103 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22104
22105 fi
22106
22107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22108 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22109 gcc_cv_ld_ro_rw_mix=unknown
22110 if test $in_tree_ld = yes ; then
22111 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 \
22112 && test $in_tree_ld_is_elf = yes; then
22113 gcc_cv_ld_ro_rw_mix=read-write
22114 fi
22115 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22116 echo '.section myfoosect, "a"' > conftest1.s
22117 echo '.section myfoosect, "aw"' > conftest2.s
22118 echo '.byte 1' >> conftest2.s
22119 echo '.section myfoosect, "a"' > conftest3.s
22120 echo '.byte 0' >> conftest3.s
22121 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22122 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22123 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22124 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22125 conftest2.o conftest3.o > /dev/null 2>&1; then
22126 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22127 | sed -e '/myfoosect/!d' -e N`
22128 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22129 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22130 gcc_cv_ld_ro_rw_mix=read-only
22131 else
22132 gcc_cv_ld_ro_rw_mix=read-write
22133 fi
22134 fi
22135 fi
22136 rm -f conftest.* conftest[123].*
22137 fi
22138 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22139
22140 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22141
22142 fi
22143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22144 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22145
22146 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22148 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22149 if test "${gcc_cv_as_leb128+set}" = set; then :
22150 $as_echo_n "(cached) " >&6
22151 else
22152 gcc_cv_as_leb128=no
22153 if test $in_tree_gas = yes; then
22154 if test $in_tree_gas_is_elf = yes \
22155 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22156 then gcc_cv_as_leb128=yes
22157 fi
22158 elif test x$gcc_cv_as != x; then
22159 $as_echo ' .data
22160 .uleb128 L2 - L1
22161 L1:
22162 .uleb128 1280
22163 .sleb128 -1010
22164 L2:' > conftest.s
22165 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22167 (eval $ac_try) 2>&5
22168 ac_status=$?
22169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22170 test $ac_status = 0; }; }
22171 then
22172 # GAS versions before 2.11 do not support uleb128,
22173 # despite appearing to.
22174 # ??? There exists an elf-specific test that will crash
22175 # the assembler. Perhaps it's better to figure out whether
22176 # arbitrary sections are supported and try the test.
22177 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22178 if echo "$as_ver" | grep GNU > /dev/null; then
22179 as_vers=`echo $as_ver | sed -n \
22180 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22181 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22182 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22183 if test $as_major -eq 2 && test $as_minor -lt 11
22184 then :
22185 else gcc_cv_as_leb128=yes
22186 fi
22187 fi
22188 else
22189 echo "configure: failed program was" >&5
22190 cat conftest.s >&5
22191 fi
22192 rm -f conftest.o conftest.s
22193 fi
22194 fi
22195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22196 $as_echo "$gcc_cv_as_leb128" >&6; }
22197 if test $gcc_cv_as_leb128 = yes; then
22198
22199 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22200
22201 fi
22202
22203 # Check if we have assembler support for unwind directives.
22204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22205 $as_echo_n "checking assembler for cfi directives... " >&6; }
22206 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22207 $as_echo_n "(cached) " >&6
22208 else
22209 gcc_cv_as_cfi_directive=no
22210 if test x$gcc_cv_as != x; then
22211 $as_echo ' .text
22212 .cfi_startproc
22213 .cfi_offset 0, 0
22214 .cfi_same_value 1
22215 .cfi_def_cfa 1, 2
22216 .cfi_escape 1, 2, 3, 4, 5
22217 .cfi_endproc' > conftest.s
22218 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22220 (eval $ac_try) 2>&5
22221 ac_status=$?
22222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22223 test $ac_status = 0; }; }
22224 then
22225 case "$target" in
22226 *-*-solaris*)
22227 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22228 # read-only and read-write sections, we need to make sure that the
22229 # assembler used emits read-write .eh_frame sections.
22230 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22231 if test "x$gcc_cv_objdump" != x; then
22232 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22233 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22234 gcc_cv_as_cfi_directive=no
22235 else
22236 case "$target" in
22237 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22238 # On Solaris/x86, make sure that GCC and gas agree on using
22239 # read-only .eh_frame sections for 64-bit.
22240 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22241 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22242 sed -e /.eh_frame/!d -e N | \
22243 grep READONLY > /dev/null; then
22244 gcc_cv_as_cfi_directive=yes
22245 else
22246 gcc_cv_as_cfi_directive=no
22247 fi
22248 ;;
22249 *)
22250 gcc_cv_as_cfi_directive=yes
22251 ;;
22252 esac
22253 fi
22254 else
22255 # no objdump, err on the side of caution
22256 gcc_cv_as_cfi_directive=no
22257 fi
22258 else
22259 gcc_cv_as_cfi_directive=yes
22260 fi
22261 ;;
22262 *-*-*)
22263 gcc_cv_as_cfi_directive=yes
22264 ;;
22265 esac
22266 else
22267 echo "configure: failed program was" >&5
22268 cat conftest.s >&5
22269 fi
22270 rm -f conftest.o conftest.s
22271 fi
22272 fi
22273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22274 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22275
22276 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22278 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22279 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22280 $as_echo_n "(cached) " >&6
22281 else
22282 gcc_cv_as_cfi_advance_working=no
22283 if test x$gcc_cv_as != x; then
22284 $as_echo ' .text
22285 .cfi_startproc
22286 .cfi_adjust_cfa_offset 64
22287 .skip 75040, 0
22288 .cfi_adjust_cfa_offset 128
22289 .cfi_endproc' > conftest.s
22290 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22292 (eval $ac_try) 2>&5
22293 ac_status=$?
22294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22295 test $ac_status = 0; }; }
22296 then
22297
22298 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22299 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22300 gcc_cv_as_cfi_advance_working=yes
22301 fi
22302
22303 else
22304 echo "configure: failed program was" >&5
22305 cat conftest.s >&5
22306 fi
22307 rm -f conftest.o conftest.s
22308 fi
22309 fi
22310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22311 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22312
22313 else
22314 # no objdump, err on the side of caution
22315 gcc_cv_as_cfi_advance_working=no
22316 fi
22317
22318
22319 cat >>confdefs.h <<_ACEOF
22320 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22321 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22322 _ACEOF
22323
22324
22325
22326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22327 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22328 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22329 $as_echo_n "(cached) " >&6
22330 else
22331 gcc_cv_as_cfi_personality_directive=no
22332 if test x$gcc_cv_as != x; then
22333 $as_echo ' .text
22334 .cfi_startproc
22335 .cfi_personality 0, symbol
22336 .cfi_endproc' > conftest.s
22337 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22339 (eval $ac_try) 2>&5
22340 ac_status=$?
22341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22342 test $ac_status = 0; }; }
22343 then
22344 gcc_cv_as_cfi_personality_directive=yes
22345 else
22346 echo "configure: failed program was" >&5
22347 cat conftest.s >&5
22348 fi
22349 rm -f conftest.o conftest.s
22350 fi
22351 fi
22352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22353 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22354
22355
22356 cat >>confdefs.h <<_ACEOF
22357 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22358 then echo 1; else echo 0; fi`
22359 _ACEOF
22360
22361
22362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22363 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22364 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22365 $as_echo_n "(cached) " >&6
22366 else
22367 gcc_cv_as_cfi_sections_directive=no
22368 if test x$gcc_cv_as != x; then
22369 $as_echo ' .text
22370 .cfi_sections .debug_frame, .eh_frame
22371 .cfi_startproc
22372 .cfi_endproc' > conftest.s
22373 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22375 (eval $ac_try) 2>&5
22376 ac_status=$?
22377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22378 test $ac_status = 0; }; }
22379 then
22380 case $target_os in
22381 win32 | pe | cygwin* | mingw32* | uwin*)
22382 # Need to check that we generated the correct relocation for the
22383 # .debug_frame section. This was fixed for binutils 2.21.
22384 gcc_cv_as_cfi_sections_directive=no
22385 if test "x$gcc_cv_objdump" != x; then
22386 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22387 grep secrel > /dev/null; then
22388 gcc_cv_as_cfi_sections_directive=yes
22389 fi
22390 fi
22391 ;;
22392 *)
22393 gcc_cv_as_cfi_sections_directive=yes
22394 ;;
22395 esac
22396 else
22397 echo "configure: failed program was" >&5
22398 cat conftest.s >&5
22399 fi
22400 rm -f conftest.o conftest.s
22401 fi
22402 fi
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22404 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22405
22406
22407
22408 cat >>confdefs.h <<_ACEOF
22409 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22410 then echo 1; else echo 0; fi`
22411 _ACEOF
22412
22413
22414 # GAS versions up to and including 2.11.0 may mis-optimize
22415 # .eh_frame data.
22416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22417 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22418 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22419 $as_echo_n "(cached) " >&6
22420 else
22421 gcc_cv_as_eh_frame=no
22422 if test $in_tree_gas = yes; then
22423 if test $in_tree_gas_is_elf = yes \
22424 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22425 then gcc_cv_as_eh_frame=yes
22426 fi
22427 elif test x$gcc_cv_as != x; then
22428 $as_echo ' .text
22429 .LFB1:
22430 .4byte 0
22431 .L1:
22432 .4byte 0
22433 .LFE1:
22434 .section .eh_frame,"aw",@progbits
22435 __FRAME_BEGIN__:
22436 .4byte .LECIE1-.LSCIE1
22437 .LSCIE1:
22438 .4byte 0x0
22439 .byte 0x1
22440 .ascii "z\0"
22441 .byte 0x1
22442 .byte 0x78
22443 .byte 0x1a
22444 .byte 0x0
22445 .byte 0x4
22446 .4byte 1
22447 .p2align 1
22448 .LECIE1:
22449 .LSFDE1:
22450 .4byte .LEFDE1-.LASFDE1
22451 .LASFDE1:
22452 .4byte .LASFDE1-__FRAME_BEGIN__
22453 .4byte .LFB1
22454 .4byte .LFE1-.LFB1
22455 .byte 0x4
22456 .4byte .LFE1-.LFB1
22457 .byte 0x4
22458 .4byte .L1-.LFB1
22459 .LEFDE1:' > conftest.s
22460 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22462 (eval $ac_try) 2>&5
22463 ac_status=$?
22464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22465 test $ac_status = 0; }; }
22466 then
22467 cat > conftest.lit <<EOF
22468 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22469 0010 01000000 12000000 18000000 00000000 ................
22470 0020 08000000 04080000 0044 .........D
22471 EOF
22472 cat > conftest.big <<EOF
22473 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22474 0010 00000001 00000012 00000018 00000000 ................
22475 0020 00000008 04000000 0844 .........D
22476 EOF
22477 # If the assembler didn't choke, and we can objdump,
22478 # and we got the correct data, then succeed.
22479 # The text in the here-document typically retains its unix-style line
22480 # endings, while the output of objdump will use host line endings.
22481 # Therefore, use diff -b for the comparisons.
22482 if test x$gcc_cv_objdump != x \
22483 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22484 | tail -3 > conftest.got \
22485 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22486 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22487 then
22488 gcc_cv_as_eh_frame=yes
22489 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22491 (eval $ac_try) 2>&5
22492 ac_status=$?
22493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22494 test $ac_status = 0; }; }; then
22495 gcc_cv_as_eh_frame=buggy
22496 else
22497 # Uh oh, what do we do now?
22498 gcc_cv_as_eh_frame=no
22499 fi
22500 else
22501 echo "configure: failed program was" >&5
22502 cat conftest.s >&5
22503 fi
22504 rm -f conftest.o conftest.s
22505 fi
22506 fi
22507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22508 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22509
22510
22511 if test $gcc_cv_as_eh_frame = buggy; then
22512
22513 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22514
22515 fi
22516
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22518 $as_echo_n "checking assembler for section merging support... " >&6; }
22519 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22520 $as_echo_n "(cached) " >&6
22521 else
22522 gcc_cv_as_shf_merge=no
22523 if test $in_tree_gas = yes; then
22524 if test $in_tree_gas_is_elf = yes \
22525 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22526 then gcc_cv_as_shf_merge=yes
22527 fi
22528 elif test x$gcc_cv_as != x; then
22529 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22530 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22532 (eval $ac_try) 2>&5
22533 ac_status=$?
22534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22535 test $ac_status = 0; }; }
22536 then
22537 gcc_cv_as_shf_merge=yes
22538 else
22539 echo "configure: failed program was" >&5
22540 cat conftest.s >&5
22541 fi
22542 rm -f conftest.o conftest.s
22543 fi
22544 fi
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22546 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22547
22548 if test $gcc_cv_as_shf_merge = no; then
22549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22550 $as_echo_n "checking assembler for section merging support... " >&6; }
22551 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22552 $as_echo_n "(cached) " >&6
22553 else
22554 gcc_cv_as_shf_merge=no
22555 if test $in_tree_gas = yes; then
22556 if test $in_tree_gas_is_elf = yes \
22557 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22558 then gcc_cv_as_shf_merge=yes
22559 fi
22560 elif test x$gcc_cv_as != x; then
22561 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22562 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22564 (eval $ac_try) 2>&5
22565 ac_status=$?
22566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22567 test $ac_status = 0; }; }
22568 then
22569 gcc_cv_as_shf_merge=yes
22570 else
22571 echo "configure: failed program was" >&5
22572 cat conftest.s >&5
22573 fi
22574 rm -f conftest.o conftest.s
22575 fi
22576 fi
22577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22578 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22579
22580 fi
22581
22582 cat >>confdefs.h <<_ACEOF
22583 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22584 _ACEOF
22585
22586
22587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22588 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22589 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22590 $as_echo_n "(cached) " >&6
22591 else
22592 gcc_cv_as_comdat_group=no
22593 if test $in_tree_gas = yes; then
22594 if test $in_tree_gas_is_elf = yes \
22595 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22596 then gcc_cv_as_comdat_group=yes
22597 fi
22598 elif test x$gcc_cv_as != x; then
22599 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22600 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22602 (eval $ac_try) 2>&5
22603 ac_status=$?
22604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22605 test $ac_status = 0; }; }
22606 then
22607 gcc_cv_as_comdat_group=yes
22608 else
22609 echo "configure: failed program was" >&5
22610 cat conftest.s >&5
22611 fi
22612 rm -f conftest.o conftest.s
22613 fi
22614 fi
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22616 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22617
22618 if test $gcc_cv_as_comdat_group = yes; then
22619 gcc_cv_as_comdat_group_percent=no
22620 gcc_cv_as_comdat_group_group=no
22621 else
22622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22623 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22624 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22625 $as_echo_n "(cached) " >&6
22626 else
22627 gcc_cv_as_comdat_group_percent=no
22628 if test $in_tree_gas = yes; then
22629 if test $in_tree_gas_is_elf = yes \
22630 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22631 then gcc_cv_as_comdat_group_percent=yes
22632 fi
22633 elif test x$gcc_cv_as != x; then
22634 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22635 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22637 (eval $ac_try) 2>&5
22638 ac_status=$?
22639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22640 test $ac_status = 0; }; }
22641 then
22642 gcc_cv_as_comdat_group_percent=yes
22643 else
22644 echo "configure: failed program was" >&5
22645 cat conftest.s >&5
22646 fi
22647 rm -f conftest.o conftest.s
22648 fi
22649 fi
22650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22651 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22652
22653 if test $gcc_cv_as_comdat_group_percent = yes; then
22654 gcc_cv_as_comdat_group_group=no
22655 else
22656 case "${target}" in
22657 # Sun as uses a completely different syntax.
22658 *-*-solaris2*)
22659 case "${target}" in
22660 sparc*-*-solaris2*)
22661 conftest_s='
22662 .group foo,".text%foo",#comdat
22663 .section ".text%foo", #alloc,#execinstr,#progbits
22664 .globl foo
22665 foo:
22666 '
22667 ;;
22668 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22669 conftest_s='
22670 .group foo,.text%foo,#comdat
22671 .section .text%foo, "ax", @progbits
22672 .globl foo
22673 foo:
22674 '
22675 ;;
22676 esac
22677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22678 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22679 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22680 $as_echo_n "(cached) " >&6
22681 else
22682 gcc_cv_as_comdat_group_group=no
22683 if test x$gcc_cv_as != x; then
22684 $as_echo "$conftest_s" > conftest.s
22685 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22687 (eval $ac_try) 2>&5
22688 ac_status=$?
22689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22690 test $ac_status = 0; }; }
22691 then
22692 gcc_cv_as_comdat_group_group=yes
22693 else
22694 echo "configure: failed program was" >&5
22695 cat conftest.s >&5
22696 fi
22697 rm -f conftest.o conftest.s
22698 fi
22699 fi
22700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22701 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22702
22703 ;;
22704 esac
22705 fi
22706 fi
22707 if test x"$ld_is_gold" = xyes; then
22708 comdat_group=yes
22709 elif test $in_tree_ld = yes ; then
22710 comdat_group=no
22711 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 \
22712 && test $in_tree_ld_is_elf = yes; then
22713 comdat_group=yes
22714 fi
22715 elif echo "$ld_ver" | grep GNU > /dev/null; then
22716 comdat_group=yes
22717 if test 0"$ld_date" -lt 20050308; then
22718 if test -n "$ld_date"; then
22719 # If there was date string, but was earlier than 2005-03-08, fail
22720 comdat_group=no
22721 elif test "$ld_vers_major" -lt 2; then
22722 comdat_group=no
22723 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22724 comdat_group=no
22725 fi
22726 fi
22727 else
22728 case "${target}" in
22729 *-*-solaris2.1[1-9]*)
22730 comdat_group=no
22731 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22732 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22733 # version 1.688.
22734 #
22735 # If using Sun as for COMDAT group as emitted by GCC, one needs at
22736 # least ld version 1.2267.
22737 if test "$ld_vers_major" -gt 1; then
22738 comdat_group=yes
22739 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
22740 comdat_group=yes
22741 elif test "$ld_vers_minor" -ge 2267; then
22742 comdat_group=yes
22743 fi
22744 ;;
22745 *)
22746 # Assume linkers other than GNU ld don't support COMDAT group.
22747 comdat_group=no
22748 ;;
22749 esac
22750 fi
22751 # Allow overriding the automatic COMDAT group tests above.
22752 # Check whether --enable-comdat was given.
22753 if test "${enable_comdat+set}" = set; then :
22754 enableval=$enable_comdat; comdat_group="$enable_comdat"
22755 fi
22756
22757 if test $comdat_group = no; then
22758 gcc_cv_as_comdat_group=no
22759 gcc_cv_as_comdat_group_percent=no
22760 gcc_cv_as_comdat_group_group=no
22761 fi
22762
22763 cat >>confdefs.h <<_ACEOF
22764 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
22765 || test $gcc_cv_as_comdat_group_percent = yes \
22766 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
22767 _ACEOF
22768
22769
22770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22771 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22772 if test "${gcc_cv_as_discriminator+set}" = set; then :
22773 $as_echo_n "(cached) " >&6
22774 else
22775 gcc_cv_as_discriminator=no
22776 if test $in_tree_gas = yes; then
22777 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22778 then gcc_cv_as_discriminator=yes
22779 fi
22780 elif test x$gcc_cv_as != x; then
22781 $as_echo ' .text
22782 .file 1 "conf.c"
22783 .loc 1 1 0 discriminator 1' > conftest.s
22784 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22786 (eval $ac_try) 2>&5
22787 ac_status=$?
22788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22789 test $ac_status = 0; }; }
22790 then
22791 gcc_cv_as_discriminator=yes
22792 else
22793 echo "configure: failed program was" >&5
22794 cat conftest.s >&5
22795 fi
22796 rm -f conftest.o conftest.s
22797 fi
22798 fi
22799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22800 $as_echo "$gcc_cv_as_discriminator" >&6; }
22801 if test $gcc_cv_as_discriminator = yes; then
22802
22803 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22804
22805 fi
22806
22807 # Thread-local storage - the check is heavily parameterized.
22808 conftest_s=
22809 tls_first_major=
22810 tls_first_minor=
22811 tls_as_opt=
22812 case "$target" in
22813 alpha*-*-*)
22814 conftest_s='
22815 .section ".tdata","awT",@progbits
22816 foo: .long 25
22817 .text
22818 ldq $27,__tls_get_addr($29) !literal!1
22819 lda $16,foo($29) !tlsgd!1
22820 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22821 ldq $27,__tls_get_addr($29) !literal!2
22822 lda $16,foo($29) !tlsldm!2
22823 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22824 ldq $1,foo($29) !gotdtprel
22825 ldah $2,foo($29) !dtprelhi
22826 lda $3,foo($2) !dtprello
22827 lda $4,foo($29) !dtprel
22828 ldq $1,foo($29) !gottprel
22829 ldah $2,foo($29) !tprelhi
22830 lda $3,foo($2) !tprello
22831 lda $4,foo($29) !tprel'
22832 tls_first_major=2
22833 tls_first_minor=13
22834 tls_as_opt=--fatal-warnings
22835 ;;
22836 cris-*-*|crisv32-*-*)
22837 conftest_s='
22838 .section ".tdata","awT",@progbits
22839 x: .long 25
22840 .text
22841 move.d x:IE,$r10
22842 nop'
22843 tls_first_major=2
22844 tls_first_minor=20
22845 tls_as_opt=--fatal-warnings
22846 ;;
22847 frv*-*-*)
22848 conftest_s='
22849 .section ".tdata","awT",@progbits
22850 x: .long 25
22851 .text
22852 call #gettlsoff(x)'
22853 tls_first_major=2
22854 tls_first_minor=14
22855 ;;
22856 hppa*-*-linux*)
22857 conftest_s='
22858 t1: .reg %r20
22859 t2: .reg %r21
22860 gp: .reg %r19
22861 .section ".tdata","awT",@progbits
22862 foo: .long 25
22863 .text
22864 .align 4
22865 addil LT%foo-$tls_gdidx$,gp
22866 ldo RT%foo-$tls_gdidx$(%r1),%arg0
22867 b __tls_get_addr
22868 nop
22869 addil LT%foo-$tls_ldidx$,gp
22870 b __tls_get_addr
22871 ldo RT%foo-$tls_ldidx$(%r1),%arg0
22872 addil LR%foo-$tls_dtpoff$,%ret0
22873 ldo RR%foo-$tls_dtpoff$(%r1),%t1
22874 mfctl %cr27,%t1
22875 addil LT%foo-$tls_ieoff$,gp
22876 ldw RT%foo-$tls_ieoff$(%r1),%t2
22877 add %t1,%t2,%t3
22878 mfctl %cr27,%t1
22879 addil LR%foo-$tls_leoff$,%t1
22880 ldo RR%foo-$tls_leoff$(%r1),%t2'
22881 tls_first_major=2
22882 tls_first_minor=15
22883 tls_as_opt=--fatal-warnings
22884 ;;
22885 arm*-*-*)
22886 conftest_s='
22887 .section ".tdata","awT",%progbits
22888 foo: .long 25
22889 .text
22890 .word foo(gottpoff)
22891 .word foo(tpoff)
22892 .word foo(tlsgd)
22893 .word foo(tlsldm)
22894 .word foo(tlsldo)'
22895 tls_first_major=2
22896 tls_first_minor=17
22897 ;;
22898 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
22899 case "$target" in
22900 i[34567]86-*-solaris2.*)
22901 on_solaris=yes
22902 tga_func=___tls_get_addr
22903 ;;
22904 x86_64-*-solaris2.1[0-9]*)
22905 on_solaris=yes
22906 tga_func=__tls_get_addr
22907 ;;
22908 *)
22909 on_solaris=no
22910 ;;
22911 esac
22912 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22913 conftest_s='
22914 .section .tdata,"awt",@progbits'
22915 tls_first_major=0
22916 tls_first_minor=0
22917
22918 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22919
22920 else
22921 conftest_s='
22922 .section ".tdata","awT",@progbits'
22923 tls_first_major=2
22924 tls_first_minor=14
22925 tls_as_opt="--fatal-warnings"
22926 fi
22927 conftest_s="$conftest_s
22928 foo: .long 25
22929 .text
22930 movl %gs:0, %eax
22931 leal foo@tlsgd(,%ebx,1), %eax
22932 leal foo@tlsldm(%ebx), %eax
22933 leal foo@dtpoff(%eax), %edx
22934 movl foo@gottpoff(%ebx), %eax
22935 subl foo@gottpoff(%ebx), %eax
22936 addl foo@gotntpoff(%ebx), %eax
22937 movl foo@indntpoff, %eax
22938 movl \$foo@tpoff, %eax
22939 subl \$foo@tpoff, %eax
22940 leal foo@ntpoff(%ecx), %eax"
22941 ;;
22942 x86_64-*-*)
22943 conftest_s='
22944 .section ".tdata","awT",@progbits
22945 foo: .long 25
22946 .text
22947 movq %fs:0, %rax
22948 leaq foo@TLSGD(%rip), %rdi
22949 leaq foo@TLSLD(%rip), %rdi
22950 leaq foo@DTPOFF(%rax), %rdx
22951 movq foo@GOTTPOFF(%rip), %rax
22952 movq $foo@TPOFF, %rax'
22953 tls_first_major=2
22954 tls_first_minor=14
22955 tls_as_opt=--fatal-warnings
22956 ;;
22957 ia64-*-*)
22958 conftest_s='
22959 .section ".tdata","awT",@progbits
22960 foo: data8 25
22961 .text
22962 addl r16 = @ltoff(@dtpmod(foo#)), gp
22963 addl r17 = @ltoff(@dtprel(foo#)), gp
22964 addl r18 = @ltoff(@tprel(foo#)), gp
22965 addl r19 = @dtprel(foo#), gp
22966 adds r21 = @dtprel(foo#), r13
22967 movl r23 = @dtprel(foo#)
22968 addl r20 = @tprel(foo#), gp
22969 adds r22 = @tprel(foo#), r13
22970 movl r24 = @tprel(foo#)'
22971 tls_first_major=2
22972 tls_first_minor=13
22973 tls_as_opt=--fatal-warnings
22974 ;;
22975 mips*-*-*)
22976 conftest_s='
22977 .section .tdata,"awT",@progbits
22978 x:
22979 .word 2
22980 .text
22981 addiu $4, $28, %tlsgd(x)
22982 addiu $4, $28, %tlsldm(x)
22983 lui $4, %dtprel_hi(x)
22984 addiu $4, $4, %dtprel_lo(x)
22985 lw $4, %gottprel(x)($28)
22986 lui $4, %tprel_hi(x)
22987 addiu $4, $4, %tprel_lo(x)'
22988 tls_first_major=2
22989 tls_first_minor=16
22990 tls_as_opt='-32 --fatal-warnings'
22991 ;;
22992 m68k-*-*)
22993 conftest_s='
22994 .section .tdata,"awT",@progbits
22995 x:
22996 .word 2
22997 .text
22998 foo:
22999 move.l x@TLSGD(%a5),%a0
23000 move.l x@TLSLDM(%a5),%a0
23001 move.l x@TLSLDO(%a5),%a0
23002 move.l x@TLSIE(%a5),%a0
23003 move.l x@TLSLE(%a5),%a0'
23004 tls_first_major=2
23005 tls_first_minor=19
23006 tls_as_opt='--fatal-warnings'
23007 ;;
23008 powerpc-*-*)
23009 conftest_s='
23010 .section ".tdata","awT",@progbits
23011 .align 2
23012 ld0: .space 4
23013 ld1: .space 4
23014 x1: .space 4
23015 x2: .space 4
23016 x3: .space 4
23017 .text
23018 addi 3,31,ld0@got@tlsgd
23019 bl __tls_get_addr
23020 addi 3,31,x1@got@tlsld
23021 bl __tls_get_addr
23022 addi 9,3,x1@dtprel
23023 addis 9,3,x2@dtprel@ha
23024 addi 9,9,x2@dtprel@l
23025 lwz 9,x3@got@tprel(31)
23026 add 9,9,x@tls
23027 addi 9,2,x1@tprel
23028 addis 9,2,x2@tprel@ha
23029 addi 9,9,x2@tprel@l'
23030 tls_first_major=2
23031 tls_first_minor=14
23032 tls_as_opt="-a32 --fatal-warnings"
23033 ;;
23034 powerpc64-*-*)
23035 conftest_s='
23036 .section ".tdata","awT",@progbits
23037 .align 3
23038 ld0: .space 8
23039 ld1: .space 8
23040 x1: .space 8
23041 x2: .space 8
23042 x3: .space 8
23043 .text
23044 addi 3,2,ld0@got@tlsgd
23045 bl .__tls_get_addr
23046 nop
23047 addi 3,2,ld1@toc
23048 bl .__tls_get_addr
23049 nop
23050 addi 3,2,x1@got@tlsld
23051 bl .__tls_get_addr
23052 nop
23053 addi 9,3,x1@dtprel
23054 bl .__tls_get_addr
23055 nop
23056 addis 9,3,x2@dtprel@ha
23057 addi 9,9,x2@dtprel@l
23058 bl .__tls_get_addr
23059 nop
23060 ld 9,x3@got@dtprel(2)
23061 add 9,9,3
23062 bl .__tls_get_addr
23063 nop'
23064 tls_first_major=2
23065 tls_first_minor=14
23066 tls_as_opt="-a64 --fatal-warnings"
23067 ;;
23068 s390-*-*)
23069 conftest_s='
23070 .section ".tdata","awT",@progbits
23071 foo: .long 25
23072 .text
23073 .long foo@TLSGD
23074 .long foo@TLSLDM
23075 .long foo@DTPOFF
23076 .long foo@NTPOFF
23077 .long foo@GOTNTPOFF
23078 .long foo@INDNTPOFF
23079 l %r1,foo@GOTNTPOFF(%r12)
23080 l %r1,0(%r1):tls_load:foo
23081 bas %r14,0(%r1,%r13):tls_gdcall:foo
23082 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23083 tls_first_major=2
23084 tls_first_minor=14
23085 tls_as_opt="-m31 --fatal-warnings"
23086 ;;
23087 s390x-*-*)
23088 conftest_s='
23089 .section ".tdata","awT",@progbits
23090 foo: .long 25
23091 .text
23092 .quad foo@TLSGD
23093 .quad foo@TLSLDM
23094 .quad foo@DTPOFF
23095 .quad foo@NTPOFF
23096 .quad foo@GOTNTPOFF
23097 lg %r1,foo@GOTNTPOFF(%r12)
23098 larl %r1,foo@INDNTPOFF
23099 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23100 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23101 tls_first_major=2
23102 tls_first_minor=14
23103 tls_as_opt="-m64 -Aesame --fatal-warnings"
23104 ;;
23105 sh-*-* | sh[34]-*-*)
23106 conftest_s='
23107 .section ".tdata","awT",@progbits
23108 foo: .long 25
23109 .text
23110 .long foo@TLSGD
23111 .long foo@TLSLDM
23112 .long foo@DTPOFF
23113 .long foo@GOTTPOFF
23114 .long foo@TPOFF'
23115 tls_first_major=2
23116 tls_first_minor=13
23117 tls_as_opt=--fatal-warnings
23118 ;;
23119 sparc*-*-*)
23120 case "$target" in
23121 sparc*-sun-solaris2.*)
23122 on_solaris=yes
23123 tga_func=__tls_get_addr
23124 ;;
23125 *)
23126 on_solaris=no
23127 ;;
23128 esac
23129 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23130 conftest_s='
23131 .section ".tdata",#alloc,#write,#tls'
23132 tls_first_major=0
23133 tls_first_minor=0
23134 else
23135 conftest_s='
23136 .section ".tdata","awT",@progbits'
23137 tls_first_major=2
23138 tls_first_minor=14
23139 tls_as_opt="-32 --fatal-warnings"
23140 fi
23141 conftest_s="$conftest_s
23142 foo: .long 25
23143 .text
23144 sethi %tgd_hi22(foo), %o0
23145 add %o0, %tgd_lo10(foo), %o1
23146 add %l7, %o1, %o0, %tgd_add(foo)
23147 call __tls_get_addr, %tgd_call(foo)
23148 sethi %tldm_hi22(foo), %l1
23149 add %l1, %tldm_lo10(foo), %l2
23150 add %l7, %l2, %o0, %tldm_add(foo)
23151 call __tls_get_addr, %tldm_call(foo)
23152 sethi %tldo_hix22(foo), %l3
23153 xor %l3, %tldo_lox10(foo), %l4
23154 add %o0, %l4, %l5, %tldo_add(foo)
23155 sethi %tie_hi22(foo), %o3
23156 add %o3, %tie_lo10(foo), %o3
23157 ld [%l7 + %o3], %o2, %tie_ld(foo)
23158 add %g7, %o2, %o4, %tie_add(foo)
23159 sethi %tle_hix22(foo), %l1
23160 xor %l1, %tle_lox10(foo), %o5
23161 ld [%g7 + %o5], %o1"
23162 ;;
23163 xtensa*-*-*)
23164 conftest_s='
23165 .section ".tdata","awT",@progbits
23166 foo: .long 25
23167 .text
23168 movi a8, foo@TLSFUNC
23169 movi a10, foo@TLSARG
23170 callx8.tls a8, foo@TLSCALL'
23171 tls_first_major=2
23172 tls_first_minor=19
23173 ;;
23174 esac
23175 set_have_as_tls=no
23176 if test "x$enable_tls" = xno ; then
23177 : # TLS explicitly disabled.
23178 elif test "x$enable_tls" = xyes ; then
23179 set_have_as_tls=yes # TLS explicitly enabled.
23180 elif test -z "$tls_first_major"; then
23181 : # If we don't have a check, assume no support.
23182 else
23183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23184 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23185 if test "${gcc_cv_as_tls+set}" = set; then :
23186 $as_echo_n "(cached) " >&6
23187 else
23188 gcc_cv_as_tls=no
23189 if test $in_tree_gas = yes; then
23190 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23191 then gcc_cv_as_tls=yes
23192 fi
23193 elif test x$gcc_cv_as != x; then
23194 $as_echo "$conftest_s" > conftest.s
23195 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23197 (eval $ac_try) 2>&5
23198 ac_status=$?
23199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23200 test $ac_status = 0; }; }
23201 then
23202 gcc_cv_as_tls=yes
23203 else
23204 echo "configure: failed program was" >&5
23205 cat conftest.s >&5
23206 fi
23207 rm -f conftest.o conftest.s
23208 fi
23209 fi
23210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23211 $as_echo "$gcc_cv_as_tls" >&6; }
23212 if test $gcc_cv_as_tls = yes; then
23213 set_have_as_tls=yes
23214 fi
23215 fi
23216 case "$target" in
23217 *-*-irix6*)
23218 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23219 # with TLS support are in use, native TLS cannot work.
23220 set_have_as_tls=no
23221 ;;
23222 *-*-osf*)
23223 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23224 # gld with TLS support are in use, native TLS cannot work.
23225 set_have_as_tls=no
23226 ;;
23227 # TLS was introduced in the Solaris 9 FCS release and backported to
23228 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
23229 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23230 # ld and GCC don't support any longer.
23231 *-*-solaris2.*)
23232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23233 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23234 ld_tls_support=no
23235 # Check ld and ld.so.1 TLS support.
23236 if echo "$ld_ver" | grep GNU > /dev/null; then
23237 # Assume all interesting versions of GNU ld have TLS support.
23238 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23239 ld_tls_support=yes
23240 else
23241 case "$target" in
23242 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23243 i?86-*-solaris2.8)
23244 min_tls_ld_vers_minor=280
23245 ;;
23246 # Solaris 8/SPARC ld has TLS support since version 1.272.
23247 sparc*-*-solaris2.8)
23248 min_tls_ld_vers_minor=272
23249 ;;
23250 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23251 i?86-*-solaris2.9)
23252 min_tls_ld_vers_minor=374
23253 ;;
23254 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23255 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23256 min_tls_ld_vers_minor=343
23257 ;;
23258 esac
23259 if test "$ld_vers_major" -gt 1 || \
23260 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23261 ld_tls_support=yes
23262 else
23263 set_have_as_tls=no
23264 fi
23265 fi
23266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23267 $as_echo "$ld_tls_support" >&6; }
23268
23269 save_LIBS="$LIBS"
23270 save_LDFLAGS="$LDFLAGS"
23271 LIBS=
23272 LDFLAGS=
23273
23274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23275 $as_echo_n "checking alternate thread library... " >&6; }
23276 case "$target" in
23277 # TLS support was backported to Solaris 8 patches, but only lives in
23278 # the alternate thread library which became the default in Solaris 9.
23279 # We want to always use that, irrespective of TLS support.
23280 *-*-solaris2.8)
23281 # Take multilib subdir into account. There's no spec to handle
23282 # this. The 64 symlink exists since Solaris 8.
23283 lwp_dir=/usr/lib/lwp
23284 lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23285 LDFLAGS="-L$lwp_dir -R$lwp_dir"
23286 ;;
23287 *-*-solaris2*)
23288 lwp_dir="none"
23289 lwp_spec=""
23290 ;;
23291 esac
23292 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23293
23294 cat >>confdefs.h <<_ACEOF
23295 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23296 _ACEOF
23297
23298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23299 $as_echo "$lwp_dir" >&6; }
23300
23301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23302 $as_echo_n "checking library containing $tga_func... " >&6; }
23303 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23304 # (32-bit x86) only lived in libthread, so check for that. Keep
23305 # set_have_as_tls if found, disable if not.
23306 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23308 $as_echo_n "checking for library containing $tga_func... " >&6; }
23309 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23310 $as_echo_n "(cached) " >&6
23311 else
23312 ac_func_search_save_LIBS=$LIBS
23313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23314 /* end confdefs.h. */
23315
23316 /* Override any GCC internal prototype to avoid an error.
23317 Use char because int might match the return type of a GCC
23318 builtin and then its argument prototype would still apply. */
23319 #ifdef __cplusplus
23320 extern "C"
23321 #endif
23322 char $tga_func ();
23323 int
23324 main ()
23325 {
23326 return $tga_func ();
23327 ;
23328 return 0;
23329 }
23330 _ACEOF
23331 for ac_lib in '' thread; do
23332 if test -z "$ac_lib"; then
23333 ac_res="none required"
23334 else
23335 ac_res=-l$ac_lib
23336 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23337 fi
23338 if ac_fn_c_try_link "$LINENO"; then :
23339 eval "$as_ac_Search=\$ac_res"
23340 fi
23341 rm -f core conftest.err conftest.$ac_objext \
23342 conftest$ac_exeext
23343 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23344 break
23345 fi
23346 done
23347 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23348
23349 else
23350 eval "$as_ac_Search=no"
23351 fi
23352 rm conftest.$ac_ext
23353 LIBS=$ac_func_search_save_LIBS
23354 fi
23355 eval ac_res=\$$as_ac_Search
23356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23357 $as_echo "$ac_res" >&6; }
23358 eval ac_res=\$$as_ac_Search
23359 if test "$ac_res" != no; then :
23360 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23361
23362 else
23363 set_have_as_tls=no
23364 fi
23365
23366 # Clear LIBS if we cannot support TLS.
23367 if test $set_have_as_tls = no; then
23368 LIBS=
23369 fi
23370 # Always define LIB_TLS_SPEC, even without TLS support.
23371
23372 cat >>confdefs.h <<_ACEOF
23373 #define LIB_TLS_SPEC "$LIBS"
23374 _ACEOF
23375
23376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23377 $as_echo "$LIBS" >&6; }
23378
23379 LIBS="$save_LIBS"
23380 LDFLAGS="$save_LDFLAGS"
23381 ;;
23382 esac
23383 if test $set_have_as_tls = yes ; then
23384
23385 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23386
23387 fi
23388
23389 # Target-specific assembler checks.
23390
23391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23392 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23393 gcc_cv_ld_static_dynamic=no
23394 gcc_cv_ld_static_option='-Bstatic'
23395 gcc_cv_ld_dynamic_option='-Bdynamic'
23396 if test $in_tree_ld = yes ; then
23397 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
23398 gcc_cv_ld_static_dynamic=yes
23399 fi
23400 elif test x$gcc_cv_ld != x; then
23401 # Check if linker supports -Bstatic/-Bdynamic option
23402 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23403 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23404 gcc_cv_ld_static_dynamic=yes
23405 else
23406 case "$target" in
23407 # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23408 alpha*-dec-osf*)
23409 gcc_cv_ld_static_dynamic=yes
23410 gcc_cv_ld_static_option="-noso"
23411 gcc_cv_ld_dynamic_option="-so_archive"
23412 ;;
23413 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23414 mips-sgi-irix6*)
23415 gcc_cv_ld_static_dynamic=yes
23416 ;;
23417 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23418 *-*-solaris2*)
23419 gcc_cv_ld_static_dynamic=yes
23420 ;;
23421 esac
23422 fi
23423 fi
23424 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23425
23426 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23427
23428
23429 cat >>confdefs.h <<_ACEOF
23430 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23431 _ACEOF
23432
23433
23434 cat >>confdefs.h <<_ACEOF
23435 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23436 _ACEOF
23437
23438 fi
23439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23440 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23441
23442 if test x"$demangler_in_ld" = xyes; then
23443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23444 $as_echo_n "checking linker --demangle support... " >&6; }
23445 gcc_cv_ld_demangle=no
23446 if test $in_tree_ld = yes; then
23447 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 \
23448 gcc_cv_ld_demangle=yes
23449 fi
23450 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23451 # Check if the GNU linker supports --demangle option
23452 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23453 gcc_cv_ld_demangle=yes
23454 fi
23455 fi
23456 if test x"$gcc_cv_ld_demangle" = xyes; then
23457
23458 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23459
23460 fi
23461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23462 $as_echo "$gcc_cv_ld_demangle" >&6; }
23463 fi
23464
23465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23466 $as_echo_n "checking linker plugin support... " >&6; }
23467 gcc_cv_lto_plugin=0
23468 if test -f liblto_plugin.la; then
23469 save_ld_ver="$ld_ver"
23470 save_ld_vers_major="$ld_vers_major"
23471 save_ld_vers_minor="$ld_vers_minor"
23472 save_ld_is_gold="$ld_is_gold"
23473
23474 ld_is_gold=no
23475
23476 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23477 ld_ver="GNU ld"
23478 # FIXME: ld_is_gold?
23479 ld_vers_major="$gcc_cv_gld_major_version"
23480 ld_vers_minor="$gcc_cv_gld_minor_version"
23481 else
23482 # Determine plugin linker version.
23483 # FIXME: Partial duplicate from above, generalize.
23484 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23485 if echo "$ld_ver" | grep GNU > /dev/null; then
23486 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23487 ld_is_gold=yes
23488 ld_vers=`echo $ld_ver | sed -n \
23489 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23490 else
23491 ld_vers=`echo $ld_ver | sed -n \
23492 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23493 fi
23494 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23495 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23496 fi
23497 fi
23498
23499 # Determine plugin support.
23500 if echo "$ld_ver" | grep GNU > /dev/null; then
23501 # Require GNU ld or gold 2.21+ for plugin support by default.
23502 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23503 gcc_cv_lto_plugin=2
23504 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23505 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23506 gcc_cv_lto_plugin=1
23507 fi
23508 fi
23509
23510 ld_ver="$save_ld_ver"
23511 ld_vers_major="$save_ld_vers_major"
23512 ld_vers_minor="$save_ld_vers_minor"
23513 ld_is_gold="$save_ld_is_gold"
23514 fi
23515
23516 cat >>confdefs.h <<_ACEOF
23517 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23518 _ACEOF
23519
23520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23521 $as_echo "$gcc_cv_lto_plugin" >&6; }
23522
23523 case "$target" in
23524 # All TARGET_ABI_OSF targets.
23525 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23527 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23528 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23529 $as_echo_n "(cached) " >&6
23530 else
23531 gcc_cv_as_alpha_explicit_relocs=no
23532 if test $in_tree_gas = yes; then
23533 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23534 then gcc_cv_as_alpha_explicit_relocs=yes
23535 fi
23536 elif test x$gcc_cv_as != x; then
23537 $as_echo ' .set nomacro
23538 .text
23539 extbl $3, $2, $3 !lituse_bytoff!1
23540 ldq $2, a($29) !literal!1
23541 ldq $4, b($29) !literal!2
23542 ldq_u $3, 0($2) !lituse_base!1
23543 ldq $27, f($29) !literal!5
23544 jsr $26, ($27), f !lituse_jsr!5
23545 ldah $29, 0($26) !gpdisp!3
23546 lda $0, c($29) !gprel
23547 ldah $1, d($29) !gprelhigh
23548 lda $1, d($1) !gprellow
23549 lda $29, 0($29) !gpdisp!3' > conftest.s
23550 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23552 (eval $ac_try) 2>&5
23553 ac_status=$?
23554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23555 test $ac_status = 0; }; }
23556 then
23557 gcc_cv_as_alpha_explicit_relocs=yes
23558 else
23559 echo "configure: failed program was" >&5
23560 cat conftest.s >&5
23561 fi
23562 rm -f conftest.o conftest.s
23563 fi
23564 fi
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23566 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23567 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23568
23569 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23570
23571 fi
23572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23573 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23574 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23575 $as_echo_n "(cached) " >&6
23576 else
23577 gcc_cv_as_alpha_jsrdirect_relocs=no
23578 if test $in_tree_gas = yes; then
23579 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23580 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23581 fi
23582 elif test x$gcc_cv_as != x; then
23583 $as_echo ' .set nomacro
23584 .text
23585 ldq $27, a($29) !literal!1
23586 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23587 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23589 (eval $ac_try) 2>&5
23590 ac_status=$?
23591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23592 test $ac_status = 0; }; }
23593 then
23594 gcc_cv_as_alpha_jsrdirect_relocs=yes
23595 else
23596 echo "configure: failed program was" >&5
23597 cat conftest.s >&5
23598 fi
23599 rm -f conftest.o conftest.s
23600 fi
23601 fi
23602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23603 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23604 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23605
23606 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23607
23608 fi
23609 ;;
23610
23611 cris-*-*)
23612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23613 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23614 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23615 $as_echo_n "(cached) " >&6
23616 else
23617 gcc_cv_as_cris_no_mul_bug=no
23618 if test $in_tree_gas = yes; then
23619 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23620 then gcc_cv_as_cris_no_mul_bug=yes
23621 fi
23622 elif test x$gcc_cv_as != x; then
23623 $as_echo '.text' > conftest.s
23624 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23626 (eval $ac_try) 2>&5
23627 ac_status=$?
23628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23629 test $ac_status = 0; }; }
23630 then
23631 gcc_cv_as_cris_no_mul_bug=yes
23632 else
23633 echo "configure: failed program was" >&5
23634 cat conftest.s >&5
23635 fi
23636 rm -f conftest.o conftest.s
23637 fi
23638 fi
23639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23640 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23641 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23642
23643 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23644
23645 fi
23646 ;;
23647
23648 sparc*-*-*)
23649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23650 $as_echo_n "checking assembler for .register... " >&6; }
23651 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23652 $as_echo_n "(cached) " >&6
23653 else
23654 gcc_cv_as_sparc_register_op=no
23655 if test x$gcc_cv_as != x; then
23656 $as_echo '.register %g2, #scratch' > conftest.s
23657 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23659 (eval $ac_try) 2>&5
23660 ac_status=$?
23661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23662 test $ac_status = 0; }; }
23663 then
23664 gcc_cv_as_sparc_register_op=yes
23665 else
23666 echo "configure: failed program was" >&5
23667 cat conftest.s >&5
23668 fi
23669 rm -f conftest.o conftest.s
23670 fi
23671 fi
23672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23673 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23674 if test $gcc_cv_as_sparc_register_op = yes; then
23675
23676 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23677
23678 fi
23679
23680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23681 $as_echo_n "checking assembler for -relax option... " >&6; }
23682 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23683 $as_echo_n "(cached) " >&6
23684 else
23685 gcc_cv_as_sparc_relax=no
23686 if test x$gcc_cv_as != x; then
23687 $as_echo '.text' > conftest.s
23688 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23690 (eval $ac_try) 2>&5
23691 ac_status=$?
23692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23693 test $ac_status = 0; }; }
23694 then
23695 gcc_cv_as_sparc_relax=yes
23696 else
23697 echo "configure: failed program was" >&5
23698 cat conftest.s >&5
23699 fi
23700 rm -f conftest.o conftest.s
23701 fi
23702 fi
23703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23704 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23705 if test $gcc_cv_as_sparc_relax = yes; then
23706
23707 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23708
23709 fi
23710
23711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23712 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23713 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23714 $as_echo_n "(cached) " >&6
23715 else
23716 gcc_cv_as_sparc_gotdata_op=no
23717 if test x$gcc_cv_as != x; then
23718 $as_echo '.text
23719 .align 4
23720 foo:
23721 nop
23722 bar:
23723 sethi %gdop_hix22(foo), %g1
23724 xor %g1, %gdop_lox10(foo), %g1
23725 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23726 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23728 (eval $ac_try) 2>&5
23729 ac_status=$?
23730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23731 test $ac_status = 0; }; }
23732 then
23733 if test x$gcc_cv_ld != x \
23734 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23735 if test x$gcc_cv_objdump != x; then
23736 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
23737 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
23738 gcc_cv_as_sparc_gotdata_op=no
23739 else
23740 gcc_cv_as_sparc_gotdata_op=yes
23741 fi
23742 fi
23743 fi
23744 rm -f conftest
23745 else
23746 echo "configure: failed program was" >&5
23747 cat conftest.s >&5
23748 fi
23749 rm -f conftest.o conftest.s
23750 fi
23751 fi
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23753 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23754 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23755
23756 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23757
23758 fi
23759
23760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23761 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23762 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23763 $as_echo_n "(cached) " >&6
23764 else
23765 gcc_cv_as_sparc_ua_pcrel=no
23766 if test x$gcc_cv_as != x; then
23767 $as_echo '.text
23768 foo:
23769 nop
23770 .data
23771 .align 4
23772 .byte 0
23773 .uaword %r_disp32(foo)' > conftest.s
23774 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23776 (eval $ac_try) 2>&5
23777 ac_status=$?
23778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23779 test $ac_status = 0; }; }
23780 then
23781 if test x$gcc_cv_ld != x \
23782 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23783 gcc_cv_as_sparc_ua_pcrel=yes
23784 fi
23785 rm -f conftest
23786 else
23787 echo "configure: failed program was" >&5
23788 cat conftest.s >&5
23789 fi
23790 rm -f conftest.o conftest.s
23791 fi
23792 fi
23793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23794 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23795 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23796
23797 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23798
23799
23800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23801 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23802 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23803 $as_echo_n "(cached) " >&6
23804 else
23805 gcc_cv_as_sparc_ua_pcrel_hidden=no
23806 if test x$gcc_cv_as != x; then
23807 $as_echo '.data
23808 .align 4
23809 .byte 0x31
23810 .uaword %r_disp32(foo)
23811 .byte 0x32, 0x33, 0x34
23812 .global foo
23813 .hidden foo
23814 foo:
23815 .skip 4' > conftest.s
23816 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23818 (eval $ac_try) 2>&5
23819 ac_status=$?
23820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23821 test $ac_status = 0; }; }
23822 then
23823 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
23824 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
23825 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
23826 | grep ' 31000000 07323334' > /dev/null 2>&1; then
23827 if $gcc_cv_objdump -R conftest 2> /dev/null \
23828 | grep 'DISP32' > /dev/null 2>&1; then
23829 :
23830 else
23831 gcc_cv_as_sparc_ua_pcrel_hidden=yes
23832 fi
23833 fi
23834 rm -f conftest
23835 else
23836 echo "configure: failed program was" >&5
23837 cat conftest.s >&5
23838 fi
23839 rm -f conftest.o conftest.s
23840 fi
23841 fi
23842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23843 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23844 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23845
23846 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23847
23848 fi
23849
23850 fi # unaligned pcrel relocs
23851
23852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
23853 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
23854 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
23855 $as_echo_n "(cached) " >&6
23856 else
23857 gcc_cv_as_sparc_offsetable_lo10=no
23858 if test x$gcc_cv_as != x; then
23859 $as_echo '.text
23860 or %g1, %lo(ab) + 12, %g1
23861 or %g1, %lo(ab + 12), %g1' > conftest.s
23862 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
23863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23864 (eval $ac_try) 2>&5
23865 ac_status=$?
23866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23867 test $ac_status = 0; }; }
23868 then
23869 if test x$gcc_cv_objdump != x \
23870 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
23871 | grep ' 82106000 82106000' > /dev/null 2>&1; then
23872 gcc_cv_as_sparc_offsetable_lo10=yes
23873 fi
23874 else
23875 echo "configure: failed program was" >&5
23876 cat conftest.s >&5
23877 fi
23878 rm -f conftest.o conftest.s
23879 fi
23880 fi
23881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23882 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23883 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23884
23885 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23886
23887 fi
23888 ;;
23889
23890 i[34567]86-*-* | x86_64-*-*)
23891 case $target_os in
23892 cygwin*)
23893 # Full C++ conformance when using a shared libstdc++-v3 requires some
23894 # support from the Cygwin DLL, which in more recent versions exports
23895 # wrappers to aid in interposing and redirecting operators new, delete,
23896 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
23897 # are configuring for a version of Cygwin that exports the wrappers.
23898 if test x$host = x$target; then
23899 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23900 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
23901 gcc_ac_cygwin_dll_wrappers=yes
23902 else
23903 gcc_ac_cygwin_dll_wrappers=no
23904 fi
23905
23906 else
23907 # Can't check presence of libc functions during cross-compile, so
23908 # we just have to assume we're building for an up-to-date target.
23909 gcc_ac_cygwin_dll_wrappers=yes
23910 fi
23911
23912 cat >>confdefs.h <<_ACEOF
23913 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23914 _ACEOF
23915
23916 esac
23917 case $target_os in
23918 cygwin* | pe | mingw32*)
23919 # Recent binutils allows the three-operand form of ".comm" on PE. This
23920 # definition is used unconditionally to initialise the default state of
23921 # the target option variable that governs usage of the feature.
23922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23923 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23924 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23925 $as_echo_n "(cached) " >&6
23926 else
23927 gcc_cv_as_comm_has_align=no
23928 if test $in_tree_gas = yes; then
23929 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23930 then gcc_cv_as_comm_has_align=yes
23931 fi
23932 elif test x$gcc_cv_as != x; then
23933 $as_echo '.comm foo,1,32' > conftest.s
23934 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23936 (eval $ac_try) 2>&5
23937 ac_status=$?
23938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23939 test $ac_status = 0; }; }
23940 then
23941 gcc_cv_as_comm_has_align=yes
23942 else
23943 echo "configure: failed program was" >&5
23944 cat conftest.s >&5
23945 fi
23946 rm -f conftest.o conftest.s
23947 fi
23948 fi
23949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
23950 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23951
23952
23953 cat >>confdefs.h <<_ACEOF
23954 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23955 _ACEOF
23956
23957 # Used for DWARF 2 in PE
23958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
23959 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
23960 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
23961 $as_echo_n "(cached) " >&6
23962 else
23963 gcc_cv_as_ix86_pe_secrel32=no
23964 if test $in_tree_gas = yes; then
23965 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23966 then gcc_cv_as_ix86_pe_secrel32=yes
23967 fi
23968 elif test x$gcc_cv_as != x; then
23969 $as_echo '.text
23970 foo: nop
23971 .data
23972 .secrel32 foo' > conftest.s
23973 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23975 (eval $ac_try) 2>&5
23976 ac_status=$?
23977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23978 test $ac_status = 0; }; }
23979 then
23980 if test x$gcc_cv_ld != x \
23981 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
23982 gcc_cv_as_ix86_pe_secrel32=yes
23983 fi
23984 rm -f conftest
23985 else
23986 echo "configure: failed program was" >&5
23987 cat conftest.s >&5
23988 fi
23989 rm -f conftest.o conftest.s
23990 fi
23991 fi
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
23993 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
23994 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
23995
23996 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
23997
23998 fi
23999 # Test if the assembler supports the extended form of the .section
24000 # directive that specifies section alignment. LTO support uses this,
24001 # but normally only after installation, so we warn but don't fail the
24002 # configure if LTO is enabled but the assembler does not support it.
24003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24004 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24005 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24006 $as_echo_n "(cached) " >&6
24007 else
24008 gcc_cv_as_section_has_align=no
24009 if test $in_tree_gas = yes; then
24010 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24011 then gcc_cv_as_section_has_align=yes
24012 fi
24013 elif test x$gcc_cv_as != x; then
24014 $as_echo '.section lto_test,"dr0"' > conftest.s
24015 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24017 (eval $ac_try) 2>&5
24018 ac_status=$?
24019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24020 test $ac_status = 0; }; }
24021 then
24022 gcc_cv_as_section_has_align=yes
24023 else
24024 echo "configure: failed program was" >&5
24025 cat conftest.s >&5
24026 fi
24027 rm -f conftest.o conftest.s
24028 fi
24029 fi
24030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24031 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24032
24033 if test x$gcc_cv_as_section_has_align != xyes; then
24034 case ",$enable_languages," in
24035 *,lto,*)
24036 { $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
24037 $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;}
24038 ;;
24039 esac
24040 fi
24041 ;;
24042 esac
24043
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24045 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24046 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24047 $as_echo_n "(cached) " >&6
24048 else
24049 gcc_cv_as_ix86_filds=no
24050 if test x$gcc_cv_as != x; then
24051 $as_echo 'filds mem; fists mem' > conftest.s
24052 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24053 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24054 (eval $ac_try) 2>&5
24055 ac_status=$?
24056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24057 test $ac_status = 0; }; }
24058 then
24059 gcc_cv_as_ix86_filds=yes
24060 else
24061 echo "configure: failed program was" >&5
24062 cat conftest.s >&5
24063 fi
24064 rm -f conftest.o conftest.s
24065 fi
24066 fi
24067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24068 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24069 if test $gcc_cv_as_ix86_filds = yes; then
24070
24071 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24072
24073 fi
24074
24075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24076 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24077 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24078 $as_echo_n "(cached) " >&6
24079 else
24080 gcc_cv_as_ix86_fildq=no
24081 if test x$gcc_cv_as != x; then
24082 $as_echo 'fildq mem; fistpq mem' > conftest.s
24083 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24085 (eval $ac_try) 2>&5
24086 ac_status=$?
24087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24088 test $ac_status = 0; }; }
24089 then
24090 gcc_cv_as_ix86_fildq=yes
24091 else
24092 echo "configure: failed program was" >&5
24093 cat conftest.s >&5
24094 fi
24095 rm -f conftest.o conftest.s
24096 fi
24097 fi
24098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24099 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24100 if test $gcc_cv_as_ix86_fildq = yes; then
24101
24102 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24103
24104 fi
24105
24106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24107 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24108 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24109 $as_echo_n "(cached) " >&6
24110 else
24111 gcc_cv_as_ix86_cmov_sun_syntax=no
24112 if test x$gcc_cv_as != x; then
24113 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24114 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24116 (eval $ac_try) 2>&5
24117 ac_status=$?
24118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24119 test $ac_status = 0; }; }
24120 then
24121 gcc_cv_as_ix86_cmov_sun_syntax=yes
24122 else
24123 echo "configure: failed program was" >&5
24124 cat conftest.s >&5
24125 fi
24126 rm -f conftest.o conftest.s
24127 fi
24128 fi
24129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24130 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24131 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24132
24133 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24134
24135 fi
24136
24137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24138 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24139 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24140 $as_echo_n "(cached) " >&6
24141 else
24142 gcc_cv_as_ix86_ffreep=no
24143 if test x$gcc_cv_as != x; then
24144 $as_echo 'ffreep %st(1)' > conftest.s
24145 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24147 (eval $ac_try) 2>&5
24148 ac_status=$?
24149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24150 test $ac_status = 0; }; }
24151 then
24152 gcc_cv_as_ix86_ffreep=yes
24153 else
24154 echo "configure: failed program was" >&5
24155 cat conftest.s >&5
24156 fi
24157 rm -f conftest.o conftest.s
24158 fi
24159 fi
24160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24161 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24162 if test $gcc_cv_as_ix86_ffreep = yes; then
24163
24164 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24165
24166 fi
24167
24168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24169 $as_echo_n "checking assembler for .quad directive... " >&6; }
24170 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24171 $as_echo_n "(cached) " >&6
24172 else
24173 gcc_cv_as_ix86_quad=no
24174 if test x$gcc_cv_as != x; then
24175 $as_echo '.quad 0' > conftest.s
24176 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24178 (eval $ac_try) 2>&5
24179 ac_status=$?
24180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24181 test $ac_status = 0; }; }
24182 then
24183 gcc_cv_as_ix86_quad=yes
24184 else
24185 echo "configure: failed program was" >&5
24186 cat conftest.s >&5
24187 fi
24188 rm -f conftest.o conftest.s
24189 fi
24190 fi
24191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24192 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24193 if test $gcc_cv_as_ix86_quad = yes; then
24194
24195 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24196
24197 fi
24198
24199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24200 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24201 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24202 $as_echo_n "(cached) " >&6
24203 else
24204 gcc_cv_as_ix86_sahf=no
24205 if test x$gcc_cv_as != x; then
24206 $as_echo '.code64
24207 sahf' > conftest.s
24208 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24210 (eval $ac_try) 2>&5
24211 ac_status=$?
24212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24213 test $ac_status = 0; }; }
24214 then
24215 gcc_cv_as_ix86_sahf=yes
24216 else
24217 echo "configure: failed program was" >&5
24218 cat conftest.s >&5
24219 fi
24220 rm -f conftest.o conftest.s
24221 fi
24222 fi
24223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24224 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24225 if test $gcc_cv_as_ix86_sahf = yes; then
24226
24227 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24228
24229 fi
24230
24231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24232 $as_echo_n "checking assembler for swap suffix... " >&6; }
24233 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24234 $as_echo_n "(cached) " >&6
24235 else
24236 gcc_cv_as_ix86_swap=no
24237 if test x$gcc_cv_as != x; then
24238 $as_echo 'movl.s %esp, %ebp' > conftest.s
24239 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24241 (eval $ac_try) 2>&5
24242 ac_status=$?
24243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24244 test $ac_status = 0; }; }
24245 then
24246 gcc_cv_as_ix86_swap=yes
24247 else
24248 echo "configure: failed program was" >&5
24249 cat conftest.s >&5
24250 fi
24251 rm -f conftest.o conftest.s
24252 fi
24253 fi
24254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24255 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24256 if test $gcc_cv_as_ix86_swap = yes; then
24257
24258 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24259
24260 fi
24261
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24263 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24264 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24265 $as_echo_n "(cached) " >&6
24266 else
24267 gcc_cv_as_ix86_diff_sect_delta=no
24268 if test x$gcc_cv_as != x; then
24269 $as_echo '.section .rodata
24270 .L1:
24271 .long .L2-.L1
24272 .long .L3-.L1
24273 .text
24274 .L3: nop
24275 .L2: nop' > conftest.s
24276 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24278 (eval $ac_try) 2>&5
24279 ac_status=$?
24280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24281 test $ac_status = 0; }; }
24282 then
24283 gcc_cv_as_ix86_diff_sect_delta=yes
24284 else
24285 echo "configure: failed program was" >&5
24286 cat conftest.s >&5
24287 fi
24288 rm -f conftest.o conftest.s
24289 fi
24290 fi
24291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24292 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24293 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24294
24295 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24296
24297 fi
24298
24299 # These two are used unconditionally by i386.[ch]; it is to be defined
24300 # to 1 if the feature is present, 0 otherwise.
24301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24302 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24303 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24304 $as_echo_n "(cached) " >&6
24305 else
24306 gcc_cv_as_ix86_gotoff_in_data=no
24307 if test $in_tree_gas = yes; then
24308 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24309 then gcc_cv_as_ix86_gotoff_in_data=yes
24310 fi
24311 elif test x$gcc_cv_as != x; then
24312 $as_echo ' .text
24313 .L0:
24314 nop
24315 .data
24316 .long .L0@GOTOFF' > conftest.s
24317 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24319 (eval $ac_try) 2>&5
24320 ac_status=$?
24321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24322 test $ac_status = 0; }; }
24323 then
24324 gcc_cv_as_ix86_gotoff_in_data=yes
24325 else
24326 echo "configure: failed program was" >&5
24327 cat conftest.s >&5
24328 fi
24329 rm -f conftest.o conftest.s
24330 fi
24331 fi
24332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24333 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24334
24335
24336 cat >>confdefs.h <<_ACEOF
24337 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24338 _ACEOF
24339
24340
24341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24342 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24343 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24344 $as_echo_n "(cached) " >&6
24345 else
24346 gcc_cv_as_ix86_rep_lock_prefix=no
24347 if test x$gcc_cv_as != x; then
24348 $as_echo 'rep movsl
24349 lock addl %edi, (%eax,%esi)
24350 lock orl $0, (%esp)' > conftest.s
24351 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24353 (eval $ac_try) 2>&5
24354 ac_status=$?
24355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24356 test $ac_status = 0; }; }
24357 then
24358 gcc_cv_as_ix86_rep_lock_prefix=yes
24359 else
24360 echo "configure: failed program was" >&5
24361 cat conftest.s >&5
24362 fi
24363 rm -f conftest.o conftest.s
24364 fi
24365 fi
24366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24367 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24368 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24369
24370 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24371
24372 fi
24373
24374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24375 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24376 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24377 $as_echo_n "(cached) " >&6
24378 else
24379 gcc_cv_as_ix86_tlsgdplt=no
24380 if test x$gcc_cv_as != x; then
24381 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24382 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24383 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24384 (eval $ac_try) 2>&5
24385 ac_status=$?
24386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24387 test $ac_status = 0; }; }
24388 then
24389 gcc_cv_as_ix86_tlsgdplt=yes
24390 else
24391 echo "configure: failed program was" >&5
24392 cat conftest.s >&5
24393 fi
24394 rm -f conftest.o conftest.s
24395 fi
24396 fi
24397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24398 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24399 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24400
24401 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24402
24403 fi
24404
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24406 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24407 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24408 $as_echo_n "(cached) " >&6
24409 else
24410 gcc_cv_as_ix86_tlsldmplt=no
24411 if test x$gcc_cv_as != x; then
24412 $as_echo 'call tls_ld@tlsldmplt' > conftest.s
24413 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24415 (eval $ac_try) 2>&5
24416 ac_status=$?
24417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24418 test $ac_status = 0; }; }
24419 then
24420 gcc_cv_as_ix86_tlsldmplt=yes
24421 else
24422 echo "configure: failed program was" >&5
24423 cat conftest.s >&5
24424 fi
24425 rm -f conftest.o conftest.s
24426 fi
24427 fi
24428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24429 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24430 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24431
24432 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24433
24434 fi
24435
24436 ;;
24437
24438 ia64*-*-*)
24439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24440 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24441 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24442 $as_echo_n "(cached) " >&6
24443 else
24444 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24445 if test $in_tree_gas = yes; then
24446 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24447 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24448 fi
24449 elif test x$gcc_cv_as != x; then
24450 $as_echo ' .text
24451 addl r15 = @ltoffx(x#), gp
24452 ;;
24453 ld8.mov r16 = [r15], x#' > conftest.s
24454 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24456 (eval $ac_try) 2>&5
24457 ac_status=$?
24458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24459 test $ac_status = 0; }; }
24460 then
24461 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24462 else
24463 echo "configure: failed program was" >&5
24464 cat conftest.s >&5
24465 fi
24466 rm -f conftest.o conftest.s
24467 fi
24468 fi
24469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24470 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24471 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24472
24473 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24474
24475 fi
24476
24477 ;;
24478
24479 powerpc*-*-*)
24480 case $target in
24481 *-*-aix*) conftest_s=' .machine "pwr5"
24482 .csect .text[PR]
24483 mfcr 3,128';;
24484 *-*-darwin*)
24485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24486 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24487 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24488 $as_echo_n "(cached) " >&6
24489 else
24490 gcc_cv_as_machine_directive=no
24491 if test x$gcc_cv_as != x; then
24492 $as_echo ' .machine ppc7400' > conftest.s
24493 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24495 (eval $ac_try) 2>&5
24496 ac_status=$?
24497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24498 test $ac_status = 0; }; }
24499 then
24500 gcc_cv_as_machine_directive=yes
24501 else
24502 echo "configure: failed program was" >&5
24503 cat conftest.s >&5
24504 fi
24505 rm -f conftest.o conftest.s
24506 fi
24507 fi
24508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24509 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24510
24511 if test x$gcc_cv_as_machine_directive != xyes; then
24512 echo "*** This target requires an assembler supporting \".machine\"" >&2
24513 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24514 test x$build = x$target && exit 1
24515 fi
24516 conftest_s=' .text
24517 mfcr r3,128';;
24518 *) conftest_s=' .machine power4
24519 .text
24520 mfcr 3,128';;
24521 esac
24522
24523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24524 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24525 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24526 $as_echo_n "(cached) " >&6
24527 else
24528 gcc_cv_as_powerpc_mfcrf=no
24529 if test $in_tree_gas = yes; then
24530 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24531 then gcc_cv_as_powerpc_mfcrf=yes
24532 fi
24533 elif test x$gcc_cv_as != x; then
24534 $as_echo "$conftest_s" > conftest.s
24535 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24537 (eval $ac_try) 2>&5
24538 ac_status=$?
24539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24540 test $ac_status = 0; }; }
24541 then
24542 gcc_cv_as_powerpc_mfcrf=yes
24543 else
24544 echo "configure: failed program was" >&5
24545 cat conftest.s >&5
24546 fi
24547 rm -f conftest.o conftest.s
24548 fi
24549 fi
24550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24551 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24552 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24553
24554 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24555
24556 fi
24557
24558 case $target in
24559 *-*-aix*) conftest_s=' .machine "pwr5"
24560 .csect .text[PR]
24561 popcntb 3,3';;
24562 *) conftest_s=' .machine power5
24563 .text
24564 popcntb 3,3';;
24565 esac
24566
24567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24568 $as_echo_n "checking assembler for popcntb support... " >&6; }
24569 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24570 $as_echo_n "(cached) " >&6
24571 else
24572 gcc_cv_as_powerpc_popcntb=no
24573 if test $in_tree_gas = yes; then
24574 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24575 then gcc_cv_as_powerpc_popcntb=yes
24576 fi
24577 elif test x$gcc_cv_as != x; then
24578 $as_echo "$conftest_s" > conftest.s
24579 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24581 (eval $ac_try) 2>&5
24582 ac_status=$?
24583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24584 test $ac_status = 0; }; }
24585 then
24586 gcc_cv_as_powerpc_popcntb=yes
24587 else
24588 echo "configure: failed program was" >&5
24589 cat conftest.s >&5
24590 fi
24591 rm -f conftest.o conftest.s
24592 fi
24593 fi
24594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24595 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24596 if test $gcc_cv_as_powerpc_popcntb = yes; then
24597
24598 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24599
24600 fi
24601
24602 case $target in
24603 *-*-aix*) conftest_s=' .machine "pwr5x"
24604 .csect .text[PR]
24605 frin 1,1';;
24606 *) conftest_s=' .machine power5
24607 .text
24608 frin 1,1';;
24609 esac
24610
24611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24612 $as_echo_n "checking assembler for fp round support... " >&6; }
24613 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24614 $as_echo_n "(cached) " >&6
24615 else
24616 gcc_cv_as_powerpc_fprnd=no
24617 if test $in_tree_gas = yes; then
24618 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24619 then gcc_cv_as_powerpc_fprnd=yes
24620 fi
24621 elif test x$gcc_cv_as != x; then
24622 $as_echo "$conftest_s" > conftest.s
24623 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24625 (eval $ac_try) 2>&5
24626 ac_status=$?
24627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24628 test $ac_status = 0; }; }
24629 then
24630 gcc_cv_as_powerpc_fprnd=yes
24631 else
24632 echo "configure: failed program was" >&5
24633 cat conftest.s >&5
24634 fi
24635 rm -f conftest.o conftest.s
24636 fi
24637 fi
24638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24639 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24640 if test $gcc_cv_as_powerpc_fprnd = yes; then
24641
24642 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24643
24644 fi
24645
24646 case $target in
24647 *-*-aix*) conftest_s=' .machine "pwr6"
24648 .csect .text[PR]
24649 mffgpr 1,3';;
24650 *) conftest_s=' .machine power6
24651 .text
24652 mffgpr 1,3';;
24653 esac
24654
24655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24656 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24657 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24658 $as_echo_n "(cached) " >&6
24659 else
24660 gcc_cv_as_powerpc_mfpgpr=no
24661 if test $in_tree_gas = yes; then
24662 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24663 then gcc_cv_as_powerpc_mfpgpr=yes
24664 fi
24665 elif test x$gcc_cv_as != x; then
24666 $as_echo "$conftest_s" > conftest.s
24667 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24669 (eval $ac_try) 2>&5
24670 ac_status=$?
24671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24672 test $ac_status = 0; }; }
24673 then
24674 gcc_cv_as_powerpc_mfpgpr=yes
24675 else
24676 echo "configure: failed program was" >&5
24677 cat conftest.s >&5
24678 fi
24679 rm -f conftest.o conftest.s
24680 fi
24681 fi
24682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
24683 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24684 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24685
24686 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24687
24688 fi
24689
24690 case $target in
24691 *-*-aix*) conftest_s=' .csect .text[PR]
24692 LCF..0:
24693 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24694 *-*-darwin*)
24695 conftest_s=' .text
24696 LCF0:
24697 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24698 *) conftest_s=' .text
24699 .LCF0:
24700 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24701 esac
24702
24703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24704 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24705 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24706 $as_echo_n "(cached) " >&6
24707 else
24708 gcc_cv_as_powerpc_rel16=no
24709 if test $in_tree_gas = yes; then
24710 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24711 then gcc_cv_as_powerpc_rel16=yes
24712 fi
24713 elif test x$gcc_cv_as != x; then
24714 $as_echo "$conftest_s" > conftest.s
24715 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24717 (eval $ac_try) 2>&5
24718 ac_status=$?
24719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24720 test $ac_status = 0; }; }
24721 then
24722 gcc_cv_as_powerpc_rel16=yes
24723 else
24724 echo "configure: failed program was" >&5
24725 cat conftest.s >&5
24726 fi
24727 rm -f conftest.o conftest.s
24728 fi
24729 fi
24730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24731 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24732 if test $gcc_cv_as_powerpc_rel16 = yes; then
24733
24734 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24735
24736 fi
24737
24738 case $target in
24739 *-*-aix*) conftest_s=' .machine "pwr6"
24740 .csect .text[PR]
24741 cmpb 3,4,5';;
24742 *) conftest_s=' .machine power6
24743 .text
24744 cmpb 3,4,5';;
24745 esac
24746
24747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24748 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24749 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24750 $as_echo_n "(cached) " >&6
24751 else
24752 gcc_cv_as_powerpc_cmpb=no
24753 if test $in_tree_gas = yes; then
24754 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24755 then gcc_cv_as_powerpc_cmpb=yes
24756 fi
24757 elif test x$gcc_cv_as != x; then
24758 $as_echo "$conftest_s" > conftest.s
24759 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -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_powerpc_cmpb=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_powerpc_cmpb" >&5
24775 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
24776 if test $gcc_cv_as_powerpc_cmpb = yes; then
24777
24778 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
24779
24780 fi
24781
24782 case $target in
24783 *-*-aix*) conftest_s=' .machine "pwr6"
24784 .csect .text[PR]
24785 dadd 1,2,3';;
24786 *) conftest_s=' .machine power6
24787 .text
24788 dadd 1,2,3';;
24789 esac
24790
24791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
24792 $as_echo_n "checking assembler for decimal float support... " >&6; }
24793 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
24794 $as_echo_n "(cached) " >&6
24795 else
24796 gcc_cv_as_powerpc_dfp=no
24797 if test $in_tree_gas = yes; then
24798 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24799 then gcc_cv_as_powerpc_dfp=yes
24800 fi
24801 elif test x$gcc_cv_as != x; then
24802 $as_echo "$conftest_s" > conftest.s
24803 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24805 (eval $ac_try) 2>&5
24806 ac_status=$?
24807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24808 test $ac_status = 0; }; }
24809 then
24810 gcc_cv_as_powerpc_dfp=yes
24811 else
24812 echo "configure: failed program was" >&5
24813 cat conftest.s >&5
24814 fi
24815 rm -f conftest.o conftest.s
24816 fi
24817 fi
24818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
24819 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
24820 if test $gcc_cv_as_powerpc_dfp = yes; then
24821
24822 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
24823
24824 fi
24825
24826 case $target in
24827 *-*-aix*) conftest_s=' .machine "pwr7"
24828 .csect .text[PR]
24829 lxvd2x 1,2,3';;
24830 *) conftest_s=' .machine power7
24831 .text
24832 lxvd2x 1,2,3';;
24833 esac
24834
24835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
24836 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
24837 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
24838 $as_echo_n "(cached) " >&6
24839 else
24840 gcc_cv_as_powerpc_vsx=no
24841 if test $in_tree_gas = yes; then
24842 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24843 then gcc_cv_as_powerpc_vsx=yes
24844 fi
24845 elif test x$gcc_cv_as != x; then
24846 $as_echo "$conftest_s" > conftest.s
24847 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24849 (eval $ac_try) 2>&5
24850 ac_status=$?
24851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24852 test $ac_status = 0; }; }
24853 then
24854 gcc_cv_as_powerpc_vsx=yes
24855 else
24856 echo "configure: failed program was" >&5
24857 cat conftest.s >&5
24858 fi
24859 rm -f conftest.o conftest.s
24860 fi
24861 fi
24862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
24863 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
24864 if test $gcc_cv_as_powerpc_vsx = yes; then
24865
24866 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
24867
24868 fi
24869
24870 case $target in
24871 *-*-aix*) conftest_s=' .machine "pwr7"
24872 .csect .text[PR]
24873 popcntd 3,3';;
24874 *) conftest_s=' .machine power7
24875 .text
24876 popcntd 3,3';;
24877 esac
24878
24879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
24880 $as_echo_n "checking assembler for popcntd support... " >&6; }
24881 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
24882 $as_echo_n "(cached) " >&6
24883 else
24884 gcc_cv_as_powerpc_popcntd=no
24885 if test $in_tree_gas = yes; then
24886 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24887 then gcc_cv_as_powerpc_popcntd=yes
24888 fi
24889 elif test x$gcc_cv_as != x; then
24890 $as_echo "$conftest_s" > conftest.s
24891 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24893 (eval $ac_try) 2>&5
24894 ac_status=$?
24895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24896 test $ac_status = 0; }; }
24897 then
24898 gcc_cv_as_powerpc_popcntd=yes
24899 else
24900 echo "configure: failed program was" >&5
24901 cat conftest.s >&5
24902 fi
24903 rm -f conftest.o conftest.s
24904 fi
24905 fi
24906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
24907 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
24908 if test $gcc_cv_as_powerpc_popcntd = yes; then
24909
24910 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
24911
24912 fi
24913
24914 case $target in
24915 *-*-aix*) conftest_s=' .csect .text[PR]
24916 lwsync';;
24917 *) conftest_s=' .text
24918 lwsync';;
24919 esac
24920
24921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
24922 $as_echo_n "checking assembler for lwsync support... " >&6; }
24923 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
24924 $as_echo_n "(cached) " >&6
24925 else
24926 gcc_cv_as_powerpc_lwsync=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_lwsync=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 -a32 -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_lwsync=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_lwsync" >&5
24949 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24950 if test $gcc_cv_as_powerpc_lwsync = yes; then
24951
24952 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24953
24954 fi
24955
24956 case $target in
24957 *-*-aix*) conftest_s=' .machine "476"
24958 .csect .text[PR]
24959 dci 0';;
24960 *) conftest_s=' .machine "476"
24961 .text
24962 dci 0';;
24963 esac
24964
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
24966 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
24967 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
24968 $as_echo_n "(cached) " >&6
24969 else
24970 gcc_cv_as_powerpc_dci=no
24971 if test $in_tree_gas = yes; then
24972 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
24973 then gcc_cv_as_powerpc_dci=yes
24974 fi
24975 elif test x$gcc_cv_as != x; then
24976 $as_echo "$conftest_s" > conftest.s
24977 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24979 (eval $ac_try) 2>&5
24980 ac_status=$?
24981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24982 test $ac_status = 0; }; }
24983 then
24984 gcc_cv_as_powerpc_dci=yes
24985 else
24986 echo "configure: failed program was" >&5
24987 cat conftest.s >&5
24988 fi
24989 rm -f conftest.o conftest.s
24990 fi
24991 fi
24992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
24993 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
24994 if test $gcc_cv_as_powerpc_dci = yes; then
24995
24996 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
24997
24998 fi
24999
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25001 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25002 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25003 $as_echo_n "(cached) " >&6
25004 else
25005 gcc_cv_as_powerpc_gnu_attribute=no
25006 if test $in_tree_gas = yes; then
25007 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25008 then gcc_cv_as_powerpc_gnu_attribute=yes
25009 fi
25010 elif test x$gcc_cv_as != x; then
25011 $as_echo '.gnu_attribute 4,1' > conftest.s
25012 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25014 (eval $ac_try) 2>&5
25015 ac_status=$?
25016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25017 test $ac_status = 0; }; }
25018 then
25019 gcc_cv_as_powerpc_gnu_attribute=yes
25020 else
25021 echo "configure: failed program was" >&5
25022 cat conftest.s >&5
25023 fi
25024 rm -f conftest.o conftest.s
25025 fi
25026 fi
25027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25028 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25029 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25030
25031 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25032
25033 fi
25034
25035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25036 $as_echo_n "checking assembler for tls marker support... " >&6; }
25037 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25038 $as_echo_n "(cached) " >&6
25039 else
25040 gcc_cv_as_powerpc_tls_markers=no
25041 if test $in_tree_gas = yes; then
25042 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25043 then gcc_cv_as_powerpc_tls_markers=yes
25044 fi
25045 elif test x$gcc_cv_as != x; then
25046 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25047 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25049 (eval $ac_try) 2>&5
25050 ac_status=$?
25051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25052 test $ac_status = 0; }; }
25053 then
25054 gcc_cv_as_powerpc_tls_markers=yes
25055 else
25056 echo "configure: failed program was" >&5
25057 cat conftest.s >&5
25058 fi
25059 rm -f conftest.o conftest.s
25060 fi
25061 fi
25062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25063 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25064 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25065
25066 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25067
25068 fi
25069
25070 case $target in
25071 *-*-aix*)
25072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25073 $as_echo_n "checking assembler for .ref support... " >&6; }
25074 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25075 $as_echo_n "(cached) " >&6
25076 else
25077 gcc_cv_as_aix_ref=no
25078 if test $in_tree_gas = yes; then
25079 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25080 then :
25081 fi
25082 elif test x$gcc_cv_as != x; then
25083 $as_echo ' .csect stuff[rw]
25084 stuff:
25085 .long 1
25086 .extern sym
25087 .ref sym
25088 ' > conftest.s
25089 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25091 (eval $ac_try) 2>&5
25092 ac_status=$?
25093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25094 test $ac_status = 0; }; }
25095 then
25096 gcc_cv_as_aix_ref=yes
25097 else
25098 echo "configure: failed program was" >&5
25099 cat conftest.s >&5
25100 fi
25101 rm -f conftest.o conftest.s
25102 fi
25103 fi
25104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25105 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25106 if test $gcc_cv_as_aix_ref = yes; then
25107
25108 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25109
25110 fi
25111 ;;
25112 esac
25113 ;;
25114
25115 mips*-*-*)
25116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25117 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25118 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25119 $as_echo_n "(cached) " >&6
25120 else
25121 gcc_cv_as_mips_explicit_relocs=no
25122 if test $in_tree_gas = yes; then
25123 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25124 then gcc_cv_as_mips_explicit_relocs=yes
25125 fi
25126 elif test x$gcc_cv_as != x; then
25127 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25128 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25130 (eval $ac_try) 2>&5
25131 ac_status=$?
25132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25133 test $ac_status = 0; }; }
25134 then
25135 gcc_cv_as_mips_explicit_relocs=yes
25136 else
25137 echo "configure: failed program was" >&5
25138 cat conftest.s >&5
25139 fi
25140 rm -f conftest.o conftest.s
25141 fi
25142 fi
25143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25144 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25145 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25146 if test x$target_cpu_default = x
25147 then target_cpu_default=MASK_EXPLICIT_RELOCS
25148 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25149 fi
25150 fi
25151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25152 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25153 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25154 $as_echo_n "(cached) " >&6
25155 else
25156 gcc_cv_as_mips_no_shared=no
25157 if test $in_tree_gas = yes; then
25158 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25159 then gcc_cv_as_mips_no_shared=yes
25160 fi
25161 elif test x$gcc_cv_as != x; then
25162 $as_echo 'nop' > conftest.s
25163 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25165 (eval $ac_try) 2>&5
25166 ac_status=$?
25167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25168 test $ac_status = 0; }; }
25169 then
25170 gcc_cv_as_mips_no_shared=yes
25171 else
25172 echo "configure: failed program was" >&5
25173 cat conftest.s >&5
25174 fi
25175 rm -f conftest.o conftest.s
25176 fi
25177 fi
25178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25179 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25180 if test $gcc_cv_as_mips_no_shared = yes; then
25181
25182 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25183
25184 fi
25185
25186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25187 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25188 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25189 $as_echo_n "(cached) " >&6
25190 else
25191 gcc_cv_as_mips_gnu_attribute=no
25192 if test $in_tree_gas = yes; then
25193 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25194 then gcc_cv_as_mips_gnu_attribute=yes
25195 fi
25196 elif test x$gcc_cv_as != x; then
25197 $as_echo '.gnu_attribute 4,1' > conftest.s
25198 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25200 (eval $ac_try) 2>&5
25201 ac_status=$?
25202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25203 test $ac_status = 0; }; }
25204 then
25205 gcc_cv_as_mips_gnu_attribute=yes
25206 else
25207 echo "configure: failed program was" >&5
25208 cat conftest.s >&5
25209 fi
25210 rm -f conftest.o conftest.s
25211 fi
25212 fi
25213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25214 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25215 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25216
25217 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25218
25219 fi
25220
25221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25222 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25223 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25224 $as_echo_n "(cached) " >&6
25225 else
25226 gcc_cv_as_mips_dtprelword=no
25227 if test $in_tree_gas = yes; then
25228 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25229 then gcc_cv_as_mips_dtprelword=yes
25230 fi
25231 elif test x$gcc_cv_as != x; then
25232 $as_echo '.section .tdata,"awT",@progbits
25233 x:
25234 .word 2
25235 .text
25236 .dtprelword x+0x8000' > conftest.s
25237 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25239 (eval $ac_try) 2>&5
25240 ac_status=$?
25241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25242 test $ac_status = 0; }; }
25243 then
25244 gcc_cv_as_mips_dtprelword=yes
25245 else
25246 echo "configure: failed program was" >&5
25247 cat conftest.s >&5
25248 fi
25249 rm -f conftest.o conftest.s
25250 fi
25251 fi
25252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25253 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25254 if test $gcc_cv_as_mips_dtprelword = yes; then
25255
25256 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25257
25258 fi
25259
25260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25261 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25262 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25263 $as_echo_n "(cached) " >&6
25264 else
25265 gcc_cv_as_mips_dspr1_mult=no
25266 if test x$gcc_cv_as != x; then
25267 $as_echo ' .set mips32r2
25268 .set nodspr2
25269 .set dsp
25270 madd $ac3,$4,$5
25271 maddu $ac3,$4,$5
25272 msub $ac3,$4,$5
25273 msubu $ac3,$4,$5
25274 mult $ac3,$4,$5
25275 multu $ac3,$4,$5' > conftest.s
25276 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25278 (eval $ac_try) 2>&5
25279 ac_status=$?
25280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25281 test $ac_status = 0; }; }
25282 then
25283 gcc_cv_as_mips_dspr1_mult=yes
25284 else
25285 echo "configure: failed program was" >&5
25286 cat conftest.s >&5
25287 fi
25288 rm -f conftest.o conftest.s
25289 fi
25290 fi
25291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25292 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25293 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25294
25295 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25296
25297 fi
25298
25299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25300 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25301 gcc_cv_as_ld_jalr_reloc=no
25302 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25303 if test $in_tree_ld = yes ; then
25304 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 \
25305 && test $in_tree_ld_is_elf = yes; then
25306 gcc_cv_as_ld_jalr_reloc=yes
25307 fi
25308 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25309 echo ' .ent x' > conftest.s
25310 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25311 echo ' ld $25,%call16(y)($28)' >> conftest.s
25312 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25313 echo '1: jalr $25' >> conftest.s
25314 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25315 echo '1: jalr $25' >> conftest.s
25316 echo ' .end x' >> conftest.s
25317 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25318 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25319 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25320 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25321 gcc_cv_as_ld_jalr_reloc=yes
25322 fi
25323 fi
25324 rm -f conftest.*
25325 fi
25326 fi
25327 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25328 if test x$target_cpu_default = x; then
25329 target_cpu_default=MASK_RELAX_PIC_CALLS
25330 else
25331 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25332 fi
25333 fi
25334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25335 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25336
25337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25338 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25339 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25340 $as_echo_n "(cached) " >&6
25341 else
25342 gcc_cv_ld_mips_personality_relaxation=no
25343 if test $in_tree_ld = yes ; then
25344 if test "$gcc_cv_gld_major_version" -eq 2 \
25345 -a "$gcc_cv_gld_minor_version" -ge 21 \
25346 -o "$gcc_cv_gld_major_version" -gt 2; then
25347 gcc_cv_ld_mips_personality_relaxation=yes
25348 fi
25349 elif test x$gcc_cv_as != x \
25350 -a x$gcc_cv_ld != x \
25351 -a x$gcc_cv_readelf != x ; then
25352 cat > conftest.s <<EOF
25353 .cfi_startproc
25354 .cfi_personality 0x80,indirect_ptr
25355 .ent test
25356 test:
25357 nop
25358 .end test
25359 .cfi_endproc
25360
25361 .section .data,"aw",@progbits
25362 indirect_ptr:
25363 .dc.a personality
25364 EOF
25365 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25366 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25367 if $gcc_cv_readelf -d conftest 2>&1 \
25368 | grep TEXTREL > /dev/null 2>&1; then
25369 :
25370 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25371 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25372 :
25373 else
25374 gcc_cv_ld_mips_personality_relaxation=yes
25375 fi
25376 fi
25377 fi
25378 rm -f conftest.s conftest.o conftest
25379 fi
25380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25381 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25382 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25383
25384 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25385
25386 fi
25387 ;;
25388 esac
25389
25390 # Mips and HP-UX need the GNU assembler.
25391 # Linux on IA64 might be able to use the Intel assembler.
25392
25393 case "$target" in
25394 mips*-*-* | *-*-hpux* )
25395 if test x$gas_flag = xyes \
25396 || test x"$host" != x"$build" \
25397 || test ! -x "$gcc_cv_as" \
25398 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25399 :
25400 else
25401 echo "*** This configuration requires the GNU assembler" >&2
25402 exit 1
25403 fi
25404 ;;
25405 esac
25406
25407 # ??? Not all targets support dwarf2 debug_line, even within a version
25408 # of gas. Moreover, we need to emit a valid instruction to trigger any
25409 # info to the output file. So, as supported targets are added to gas 2.11,
25410 # add some instruction here to (also) show we expect this might work.
25411 # ??? Once 2.11 is released, probably need to add first known working
25412 # version to the per-target configury.
25413 case "$cpu_type" in
25414 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25415 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
25416 insn="nop"
25417 ;;
25418 ia64 | s390)
25419 insn="nop 0"
25420 ;;
25421 mmix)
25422 insn="swym 0"
25423 ;;
25424 esac
25425 if test x"$insn" != x; then
25426 conftest_s="\
25427 .file 1 \"conftest.s\"
25428 .loc 1 3 0
25429 $insn"
25430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25431 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25432 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25433 $as_echo_n "(cached) " >&6
25434 else
25435 gcc_cv_as_dwarf2_debug_line=no
25436 if test $in_tree_gas = yes; then
25437 if test $in_tree_gas_is_elf = yes \
25438 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25439 then gcc_cv_as_dwarf2_debug_line=yes
25440 fi
25441 elif test x$gcc_cv_as != x; then
25442 $as_echo "$conftest_s" > conftest.s
25443 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25445 (eval $ac_try) 2>&5
25446 ac_status=$?
25447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25448 test $ac_status = 0; }; }
25449 then
25450 if test x$gcc_cv_objdump != x \
25451 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25452 | grep debug_line > /dev/null 2>&1; then
25453 gcc_cv_as_dwarf2_debug_line=yes
25454 fi
25455 else
25456 echo "configure: failed program was" >&5
25457 cat conftest.s >&5
25458 fi
25459 rm -f conftest.o conftest.s
25460 fi
25461 fi
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25463 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25464
25465
25466 # The .debug_line file table must be in the exact order that
25467 # we specified the files, since these indices are also used
25468 # by DW_AT_decl_file. Approximate this test by testing if
25469 # the assembler bitches if the same index is assigned twice.
25470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25471 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25472 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25473 $as_echo_n "(cached) " >&6
25474 else
25475 gcc_cv_as_dwarf2_file_buggy=no
25476 if test x$gcc_cv_as != x; then
25477 $as_echo ' .file 1 "foo.s"
25478 .file 1 "bar.s"' > conftest.s
25479 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25481 (eval $ac_try) 2>&5
25482 ac_status=$?
25483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25484 test $ac_status = 0; }; }
25485 then
25486 gcc_cv_as_dwarf2_file_buggy=yes
25487 else
25488 echo "configure: failed program was" >&5
25489 cat conftest.s >&5
25490 fi
25491 rm -f conftest.o conftest.s
25492 fi
25493 fi
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25495 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25496
25497
25498 if test $gcc_cv_as_dwarf2_debug_line = yes \
25499 && test $gcc_cv_as_dwarf2_file_buggy = no; then
25500
25501 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25502
25503 fi
25504
25505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25506 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25507 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25508 $as_echo_n "(cached) " >&6
25509 else
25510 gcc_cv_as_gdwarf2_flag=no
25511 if test $in_tree_gas = yes; then
25512 if test $in_tree_gas_is_elf = yes \
25513 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25514 then gcc_cv_as_gdwarf2_flag=yes
25515 fi
25516 elif test x$gcc_cv_as != x; then
25517 $as_echo "$insn" > conftest.s
25518 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25520 (eval $ac_try) 2>&5
25521 ac_status=$?
25522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25523 test $ac_status = 0; }; }
25524 then
25525 gcc_cv_as_gdwarf2_flag=yes
25526 else
25527 echo "configure: failed program was" >&5
25528 cat conftest.s >&5
25529 fi
25530 rm -f conftest.o conftest.s
25531 fi
25532 fi
25533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25534 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25535 if test $gcc_cv_as_gdwarf2_flag = yes; then
25536
25537 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25538
25539 fi
25540
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25542 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25543 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25544 $as_echo_n "(cached) " >&6
25545 else
25546 gcc_cv_as_gstabs_flag=no
25547 if test $in_tree_gas = yes; then
25548 if test $in_tree_gas_is_elf = yes \
25549 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25550 then gcc_cv_as_gstabs_flag=yes
25551 fi
25552 elif test x$gcc_cv_as != x; then
25553 $as_echo "$insn" > conftest.s
25554 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25556 (eval $ac_try) 2>&5
25557 ac_status=$?
25558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25559 test $ac_status = 0; }; }
25560 then
25561 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25562 # and warns about it, but still exits successfully. So check for
25563 # this.
25564 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25566 (eval $ac_try) 2>&5
25567 ac_status=$?
25568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25569 test $ac_status = 0; }; }
25570 then :
25571 else gcc_cv_as_gstabs_flag=yes
25572 fi
25573 else
25574 echo "configure: failed program was" >&5
25575 cat conftest.s >&5
25576 fi
25577 rm -f conftest.o conftest.s
25578 fi
25579 fi
25580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25581 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25582 if test $gcc_cv_as_gstabs_flag = yes; then
25583
25584 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25585
25586 fi
25587
25588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25589 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25590 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25591 $as_echo_n "(cached) " >&6
25592 else
25593 gcc_cv_as_debug_prefix_map_flag=no
25594 if test $in_tree_gas = yes; then
25595 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25596 then gcc_cv_as_debug_prefix_map_flag=yes
25597 fi
25598 elif test x$gcc_cv_as != x; then
25599 $as_echo "$insn" > conftest.s
25600 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25602 (eval $ac_try) 2>&5
25603 ac_status=$?
25604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25605 test $ac_status = 0; }; }
25606 then
25607 gcc_cv_as_debug_prefix_map_flag=yes
25608 else
25609 echo "configure: failed program was" >&5
25610 cat conftest.s >&5
25611 fi
25612 rm -f conftest.o conftest.s
25613 fi
25614 fi
25615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25616 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25617 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25618
25619 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25620
25621 fi
25622 fi
25623
25624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25625 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25626 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25627 $as_echo_n "(cached) " >&6
25628 else
25629 gcc_cv_as_lcomm_with_alignment=no
25630 if test x$gcc_cv_as != x; then
25631 $as_echo '.lcomm bar,4,16' > conftest.s
25632 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25634 (eval $ac_try) 2>&5
25635 ac_status=$?
25636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25637 test $ac_status = 0; }; }
25638 then
25639 gcc_cv_as_lcomm_with_alignment=yes
25640 else
25641 echo "configure: failed program was" >&5
25642 cat conftest.s >&5
25643 fi
25644 rm -f conftest.o conftest.s
25645 fi
25646 fi
25647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
25648 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25649 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25650
25651 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
25652
25653 fi
25654
25655 # Check whether --enable-gnu-unique-object was given.
25656 if test "${enable_gnu_unique_object+set}" = set; then :
25657 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
25658 yes | no) ;;
25659 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
25660 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25661 esac
25662 else
25663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
25664 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
25665 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
25666 $as_echo_n "(cached) " >&6
25667 else
25668 gcc_cv_as_gnu_unique_object=no
25669 if test $in_tree_gas = yes; then
25670 if test $in_tree_gas_is_elf = yes \
25671 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25672 then gcc_cv_as_gnu_unique_object=yes
25673 fi
25674 elif test x$gcc_cv_as != x; then
25675 $as_echo '.type foo, @gnu_unique_object' > conftest.s
25676 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25678 (eval $ac_try) 2>&5
25679 ac_status=$?
25680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25681 test $ac_status = 0; }; }
25682 then
25683 gcc_cv_as_gnu_unique_object=yes
25684 else
25685 echo "configure: failed program was" >&5
25686 cat conftest.s >&5
25687 fi
25688 rm -f conftest.o conftest.s
25689 fi
25690 fi
25691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
25692 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
25693 if test $gcc_cv_as_gnu_unique_object = yes; then
25694 # Also check for ld.so support, i.e. glibc 2.11 or higher.
25695 if test x$host = x$build -a x$host = x$target &&
25696 ldd --version 2>/dev/null &&
25697 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25698 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
25699 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25700 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
25701 if test "$glibcnum" -ge 2011 ; then
25702 enable_gnu_unique_object=yes
25703 fi
25704 fi
25705 fi
25706 fi
25707
25708 if test x$enable_gnu_unique_object = xyes; then
25709
25710 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25711
25712 fi
25713
25714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25715 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25716 if test "${gcc_cv_as_line_zero+set}" = set; then :
25717 $as_echo_n "(cached) " >&6
25718 else
25719 gcc_cv_as_line_zero=no
25720 if test $in_tree_gas = yes; then
25721 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25722 then gcc_cv_as_line_zero=yes
25723 fi
25724 elif test "x$gcc_cv_as" != x; then
25725 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25726 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25728 (eval $ac_try) 2>&5
25729 ac_status=$?
25730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25731 test $ac_status = 0; }; } &&
25732 test "x`cat conftest.out`" = x
25733 then
25734 gcc_cv_as_line_zero=yes
25735 else
25736 echo "configure: failed program was" >&5
25737 cat conftest.s >&5
25738 echo "configure: error output was" >&5
25739 cat conftest.out >&5
25740 fi
25741 rm -f conftest.o conftest.s conftest.out
25742 fi
25743 fi
25744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
25745 $as_echo "$gcc_cv_as_line_zero" >&6; }
25746 if test "x$gcc_cv_as_line_zero" = xyes; then
25747
25748 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
25749
25750 fi
25751
25752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
25753 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
25754 gcc_cv_ld_eh_frame_hdr=no
25755 if test $in_tree_ld = yes ; then
25756 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 \
25757 && test $in_tree_ld_is_elf = yes; then
25758 gcc_cv_ld_eh_frame_hdr=yes
25759 fi
25760 elif test x$gcc_cv_ld != x; then
25761 if echo "$ld_ver" | grep GNU > /dev/null; then
25762 # Check if linker supports --eh-frame-hdr option
25763 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
25764 gcc_cv_ld_eh_frame_hdr=yes
25765 fi
25766 else
25767 case "$target" in
25768 *-*-solaris2*)
25769 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
25770 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
25771 gcc_cv_ld_eh_frame_hdr=yes
25772 fi
25773 ;;
25774 esac
25775 fi
25776 fi
25777
25778 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
25779
25780 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
25781
25782 fi
25783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
25784 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
25785
25786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
25787 $as_echo_n "checking linker position independent executable support... " >&6; }
25788 gcc_cv_ld_pie=no
25789 if test $in_tree_ld = yes ; then
25790 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 \
25791 && test $in_tree_ld_is_elf = yes; then
25792 gcc_cv_ld_pie=yes
25793 fi
25794 elif test x$gcc_cv_ld != x; then
25795 # Check if linker supports -pie option
25796 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
25797 gcc_cv_ld_pie=yes
25798 fi
25799 fi
25800 if test x"$gcc_cv_ld_pie" = xyes; then
25801
25802 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
25803
25804 fi
25805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
25806 $as_echo "$gcc_cv_ld_pie" >&6; }
25807
25808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
25809 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
25810 gcc_cv_ld_eh_gc_sections=no
25811 if test $in_tree_ld = yes ; then
25812 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 \
25813 && test $in_tree_ld_is_elf = yes; then
25814 gcc_cv_ld_eh_gc_sections=yes
25815 fi
25816 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
25817 cat > conftest.s <<EOF
25818 .section .text
25819 .globl _start
25820 .type _start, @function
25821 _start:
25822 .long foo
25823 .size _start, .-_start
25824 .section .text.foo,"ax",@progbits
25825 .type foo, @function
25826 foo:
25827 .long 0
25828 .size foo, .-foo
25829 .section .gcc_except_table.foo,"a",@progbits
25830 .L0:
25831 .long 0
25832 .section .eh_frame,"a",@progbits
25833 .long .L0
25834 EOF
25835 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25836 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25837 | grep "gc-sections option ignored" > /dev/null; then
25838 gcc_cv_ld_eh_gc_sections=no
25839 elif $gcc_cv_objdump -h conftest 2> /dev/null \
25840 | grep gcc_except_table > /dev/null; then
25841 gcc_cv_ld_eh_gc_sections=yes
25842 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
25843 if test x$gcc_cv_as_comdat_group != xyes; then
25844 gcc_cv_ld_eh_gc_sections=no
25845 cat > conftest.s <<EOF
25846 .section .text
25847 .globl _start
25848 .type _start, @function
25849 _start:
25850 .long foo
25851 .size _start, .-_start
25852 .section .gnu.linkonce.t.foo,"ax",@progbits
25853 .type foo, @function
25854 foo:
25855 .long 0
25856 .size foo, .-foo
25857 .section .gcc_except_table.foo,"a",@progbits
25858 .L0:
25859 .long 0
25860 .section .eh_frame,"a",@progbits
25861 .long .L0
25862 EOF
25863 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25864 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25865 | grep "gc-sections option ignored" > /dev/null; then
25866 gcc_cv_ld_eh_gc_sections=no
25867 elif $gcc_cv_objdump -h conftest 2> /dev/null \
25868 | grep gcc_except_table > /dev/null; then
25869 gcc_cv_ld_eh_gc_sections=yes
25870 fi
25871 fi
25872 fi
25873 fi
25874 fi
25875 rm -f conftest.s conftest.o conftest
25876 fi
25877 case "$target" in
25878 hppa*-*-linux*)
25879 # ??? This apparently exposes a binutils bug with PC-relative relocations.
25880 gcc_cv_ld_eh_gc_sections=no
25881 ;;
25882 esac
25883 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
25884
25885 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
25886
25887 fi
25888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
25889 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
25890
25891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
25892 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
25893 gcc_cv_ld_eh_gc_sections_bug=no
25894 if test $in_tree_ld = yes ; then
25895 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 \
25896 && test $in_tree_ld_is_elf = yes; then
25897 gcc_cv_ld_eh_gc_sections_bug=yes
25898 fi
25899 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
25900 gcc_cv_ld_eh_gc_sections_bug=yes
25901 cat > conftest.s <<EOF
25902 .section .text
25903 .globl _start
25904 .type _start, @function
25905 _start:
25906 .long foo
25907 .size _start, .-_start
25908 .section .text.startup.foo,"ax",@progbits
25909 .type foo, @function
25910 foo:
25911 .long 0
25912 .size foo, .-foo
25913 .section .gcc_except_table.foo,"a",@progbits
25914 .L0:
25915 .long 0
25916 .section .eh_frame,"a",@progbits
25917 .long .L0
25918 EOF
25919 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25920 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25921 | grep "gc-sections option ignored" > /dev/null; then
25922 :
25923 elif $gcc_cv_objdump -h conftest 2> /dev/null \
25924 | grep gcc_except_table > /dev/null; then
25925 gcc_cv_ld_eh_gc_sections_bug=no
25926 fi
25927 fi
25928 rm -f conftest.s conftest.o conftest
25929 fi
25930 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
25931
25932 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
25933
25934 fi
25935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
25936 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
25937
25938 # --------
25939 # UNSORTED
25940 # --------
25941
25942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
25943 $as_echo_n "checking linker --as-needed support... " >&6; }
25944 if test "${gcc_cv_ld_as_needed+set}" = set; then :
25945 $as_echo_n "(cached) " >&6
25946 else
25947 gcc_cv_ld_as_needed=no
25948 if test $in_tree_ld = yes ; then
25949 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 \
25950 && test $in_tree_ld_is_elf = yes; then
25951 gcc_cv_ld_as_needed=yes
25952 fi
25953 elif test x$gcc_cv_ld != x; then
25954 # Check if linker supports --as-needed and --no-as-needed options
25955 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
25956 gcc_cv_ld_as_needed=yes
25957 fi
25958 fi
25959
25960 fi
25961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
25962 $as_echo "$gcc_cv_ld_as_needed" >&6; }
25963 if test x"$gcc_cv_ld_as_needed" = xyes; then
25964
25965 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
25966
25967 fi
25968
25969 case "$target:$tm_file" in
25970 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
25971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
25972 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
25973 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
25974 $as_echo_n "(cached) " >&6
25975 else
25976 gcc_cv_ld_no_dot_syms=no
25977 if test $in_tree_ld = yes ; then
25978 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
25979 gcc_cv_ld_no_dot_syms=yes
25980 fi
25981 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25982 cat > conftest1.s <<EOF
25983 .text
25984 bl .foo
25985 EOF
25986 cat > conftest2.s <<EOF
25987 .section ".opd","aw"
25988 .align 3
25989 .globl foo
25990 .type foo,@function
25991 foo:
25992 .quad .LEfoo,.TOC.@tocbase,0
25993 .text
25994 .LEfoo:
25995 blr
25996 .size foo,.-.LEfoo
25997 EOF
25998 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
25999 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26000 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26001 gcc_cv_ld_no_dot_syms=yes
26002 fi
26003 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26004 fi
26005
26006 fi
26007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26008 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26009 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26010
26011 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26012
26013 fi
26014
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26016 $as_echo_n "checking linker large toc support... " >&6; }
26017 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26018 $as_echo_n "(cached) " >&6
26019 else
26020 gcc_cv_ld_large_toc=no
26021 if test $in_tree_ld = yes ; then
26022 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
26023 gcc_cv_ld_large_toc=yes
26024 fi
26025 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26026 cat > conftest.s <<EOF
26027 .section ".tbss","awT",@nobits
26028 .align 3
26029 ie0: .space 8
26030 .global _start
26031 .text
26032 _start:
26033 addis 9,13,ie0@got@tprel@ha
26034 ld 9,ie0@got@tprel@l(9)
26035 EOF
26036 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26037 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26038 gcc_cv_ld_large_toc=yes
26039 fi
26040 rm -f conftest conftest.o conftest.s
26041 fi
26042
26043 fi
26044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26045 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26046 if test x"$gcc_cv_ld_large_toc" = xyes; then
26047
26048 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26049
26050 fi
26051 ;;
26052 esac
26053
26054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26055 $as_echo_n "checking linker --build-id support... " >&6; }
26056 if test "${gcc_cv_ld_buildid+set}" = set; then :
26057 $as_echo_n "(cached) " >&6
26058 else
26059 gcc_cv_ld_buildid=no
26060 if test $in_tree_ld = yes ; then
26061 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26062 "$gcc_cv_gld_minor_version" -ge 18 -o \
26063 "$gcc_cv_gld_major_version" -gt 2 \
26064 && test $in_tree_ld_is_elf = yes; then
26065 gcc_cv_ld_buildid=yes
26066 fi
26067 elif test x$gcc_cv_ld != x; then
26068 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26069 gcc_cv_ld_buildid=yes
26070 fi
26071 fi
26072 fi
26073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26074 $as_echo "$gcc_cv_ld_buildid" >&6; }
26075 if test x"$gcc_cv_ld_buildid" = xyes; then
26076
26077 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26078
26079 fi
26080
26081 # Check whether --enable-linker-build-id was given.
26082 if test "${enable_linker_build_id+set}" = set; then :
26083 enableval=$enable_linker_build_id;
26084 else
26085 enable_linker_build_id=no
26086 fi
26087
26088
26089 if test x"$enable_linker_build_id" = xyes; then
26090 if test x"$gcc_cv_ld_buildid" = xyes; then
26091
26092 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26093
26094 else
26095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26096 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26097 fi
26098 fi
26099
26100 # In binutils 2.21, GNU ld gained support for new emulations fully
26101 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26103 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26104 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26105 $as_echo_n "(cached) " >&6
26106 else
26107 gcc_cv_ld_sol2_emulation=no
26108 if test $in_tree_ld = yes ; then
26109 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26110 "$gcc_cv_gld_minor_version" -ge 21 -o \
26111 "$gcc_cv_gld_major_version" -gt 2 \
26112 && test $in_tree_ld_is_elf = yes; then
26113 gcc_cv_ld_sol2_emulation=yes
26114 fi
26115 elif test x$gcc_cv_ld != x; then
26116 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26117 grep _sol2 > /dev/null; then
26118 gcc_cv_ld_sol2_emulation=yes
26119 fi
26120 fi
26121 fi
26122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26123 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26124 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26125
26126 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26127
26128 fi
26129
26130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26131 $as_echo_n "checking linker --sysroot support... " >&6; }
26132 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26133 $as_echo_n "(cached) " >&6
26134 else
26135 gcc_cv_ld_sysroot=no
26136 if test $in_tree_ld = yes ; then
26137 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
26138 gcc_cv_ld_sysroot=yes
26139 fi
26140 elif test x$gcc_cv_ld != x; then
26141 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26142 gcc_cv_ld_sysroot=yes
26143 fi
26144 fi
26145 fi
26146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26147 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26148 if test x"$gcc_cv_ld_sysroot" = xyes; then
26149
26150 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26151
26152 fi
26153
26154 if test x$with_sysroot = x && test x$host = x$target \
26155 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26156 && test "$prefix" != "NONE"; then
26157
26158 cat >>confdefs.h <<_ACEOF
26159 #define PREFIX_INCLUDE_DIR "$prefix/include"
26160 _ACEOF
26161
26162 fi
26163
26164 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26165 if test "x$with_headers" != x; then
26166 target_header_dir=$with_headers
26167 elif test "x$with_sysroot" = x; then
26168 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
26169 elif test "x$with_build_sysroot" != "x"; then
26170 target_header_dir="${with_build_sysroot}/usr/include"
26171 elif test "x$with_sysroot" = xyes; then
26172 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
26173 else
26174 target_header_dir="${with_sysroot}/usr/include"
26175 fi
26176 else
26177 target_header_dir=/usr/include
26178 fi
26179
26180 # Test for stack protector support in target C library.
26181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26182 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26183 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26184 $as_echo_n "(cached) " >&6
26185 else
26186 gcc_cv_libc_provides_ssp=no
26187 case "$target" in
26188 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26189 # glibc 2.4 and later provides __stack_chk_fail and
26190 # either __stack_chk_guard, or TLS access to stack guard canary.
26191 if test -f $target_header_dir/features.h \
26192 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26193 $target_header_dir/features.h > /dev/null; then
26194 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26195 $target_header_dir/features.h > /dev/null; then
26196 gcc_cv_libc_provides_ssp=yes
26197 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26198 $target_header_dir/features.h > /dev/null \
26199 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26200 $target_header_dir/features.h > /dev/null; then
26201 gcc_cv_libc_provides_ssp=yes
26202 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26203 $target_header_dir/features.h > /dev/null && \
26204 test -f $target_header_dir/bits/uClibc_config.h && \
26205 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26206 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26207 gcc_cv_libc_provides_ssp=yes
26208 fi
26209 fi
26210 ;;
26211 *-*-gnu*)
26212 # Avoid complicated tests (see
26213 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26214 # simply assert that glibc does provide this, which is true for all
26215 # realistically usable GNU/Hurd configurations.
26216 gcc_cv_libc_provides_ssp=yes;;
26217 *-*-darwin* | *-*-freebsd*)
26218 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26219 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26220 gcc_cv_libc_provides_ssp=yes
26221 else
26222 echo "no __stack_chk_fail on this target"
26223 fi
26224
26225 ;;
26226 *) gcc_cv_libc_provides_ssp=no ;;
26227 esac
26228 fi
26229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26230 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26231
26232 if test x$gcc_cv_libc_provides_ssp = xyes; then
26233
26234 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26235
26236 fi
26237
26238 # Test for <sys/sdt.h> on the target.
26239
26240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26241 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26242 have_sys_sdt_h=no
26243 if test -f $target_header_dir/sys/sdt.h; then
26244
26245 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26246
26247 fi
26248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26249 $as_echo "$have_sys_sdt_h" >&6; }
26250
26251 # Check if TFmode long double should be used by default or not.
26252 # Some glibc targets used DFmode long double, but with glibc 2.4
26253 # and later they can use TFmode.
26254 case "$target" in
26255 powerpc*-*-linux* | \
26256 sparc*-*-linux* | \
26257 s390*-*-linux* | \
26258 alpha*-*-linux*)
26259
26260 # Check whether --with-long-double-128 was given.
26261 if test "${with_long_double_128+set}" = set; then :
26262 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26263 else
26264 gcc_cv_target_ldbl128=no
26265 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26266 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26267 && gcc_cv_target_ldbl128=yes
26268
26269 fi
26270
26271 ;;
26272 esac
26273 if test x$gcc_cv_target_ldbl128 = xyes; then
26274
26275 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26276
26277 fi
26278
26279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26280 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26281 gcc_cv_target_dl_iterate_phdr=unknown
26282 case "$target" in
26283 *-*-solaris2*)
26284 # <link.h> needs both a dl_iterate_phdr declaration and support for
26285 # compilation with largefile support.
26286 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26287 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26288 gcc_cv_target_dl_iterate_phdr=yes
26289 else
26290 gcc_cv_target_dl_iterate_phdr=no
26291 fi
26292 ;;
26293 esac
26294
26295 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26296
26297 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26298
26299 fi
26300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26301 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26302
26303 # Find out what GC implementation we want, or may, use.
26304
26305 # Check whether --with-gc was given.
26306 if test "${with_gc+set}" = set; then :
26307 withval=$with_gc; case "$withval" in
26308 page)
26309 GGC=ggc-$withval
26310 ;;
26311 zone)
26312 GGC=ggc-$withval
26313
26314 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26315
26316 ;;
26317 *)
26318 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26319 ;;
26320 esac
26321 else
26322 GGC=ggc-page
26323 fi
26324
26325
26326 echo "Using $GGC for garbage collection."
26327
26328 # Libraries to use on the host. This will normally be set by the top
26329 # level Makefile. Here we simply capture the value for our Makefile.
26330 if test -z "${HOST_LIBS+set}"; then
26331 HOST_LIBS=
26332 fi
26333
26334
26335 # Use the system's zlib library.
26336 zlibdir=-L../zlib
26337 zlibinc="-I\$(srcdir)/../zlib"
26338
26339 # Check whether --with-system-zlib was given.
26340 if test "${with_system_zlib+set}" = set; then :
26341 withval=$with_system_zlib; zlibdir=
26342 zlibinc=
26343
26344 fi
26345
26346
26347
26348
26349
26350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26351 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26352 # Check whether --enable-maintainer-mode was given.
26353 if test "${enable_maintainer_mode+set}" = set; then :
26354 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26355 else
26356 maintainer_mode=no
26357 fi
26358
26359
26360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26361 $as_echo "$maintainer_mode" >&6; }
26362
26363 if test "$maintainer_mode" = "yes"; then
26364 MAINT=''
26365 else
26366 MAINT='#'
26367 fi
26368
26369 # --------------
26370 # Language hooks
26371 # --------------
26372
26373 # Make empty files to contain the specs and options for each language.
26374 # Then add #include lines to for a compiler that has specs and/or options.
26375
26376 subdirs=
26377 lang_opt_files=
26378 lang_specs_files=
26379 lang_tree_files=
26380 # These (without "all_") are set in each config-lang.in.
26381 # `language' must be a single word so is spelled singularly.
26382 all_languages=
26383 all_compilers=
26384 all_outputs='Makefile'
26385 # List of language makefile fragments.
26386 all_lang_makefrags=
26387 # Additional files for gengtype
26388 all_gtfiles="$target_gtfiles"
26389
26390 # These are the languages that are set in --enable-languages,
26391 # and are available in the GCC tree.
26392 all_selected_languages=
26393
26394 # Add the language fragments.
26395 # Languages are added via two mechanisms. Some information must be
26396 # recorded in makefile variables, these are defined in config-lang.in.
26397 # We accumulate them and plug them into the main Makefile.
26398 # The other mechanism is a set of hooks for each of the main targets
26399 # like `clean', `install', etc.
26400
26401 language_hooks="Make-hooks"
26402
26403 for lang in ${srcdir}/*/config-lang.in
26404 do
26405 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26406
26407 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26408 if test "x$lang_alias" = x
26409 then
26410 echo "$lang doesn't set \$language." 1>&2
26411 exit 1
26412 fi
26413 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26414 subdirs="$subdirs $subdir"
26415
26416 # $gcc_subdir is where the gcc integration files are to be found
26417 # for a language, both for internal compiler purposes (compiler
26418 # sources implementing front-end to GCC tree converters), and for
26419 # build infrastructure purposes (Make-lang.in, etc.)
26420 #
26421 # This will be <subdir> (relative to $srcdir) if a line like
26422 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26423 # is found in <langdir>/config-lang.in, and will remain <langdir>
26424 # otherwise.
26425 #
26426 # Except for the language alias (fetched above), the regular
26427 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26428 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26429 # only this and the language alias.
26430
26431 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26432 if [ "$gcc_subdir" = "" ]; then
26433 gcc_subdir="$subdir"
26434 fi
26435
26436 case ",$enable_languages," in
26437 *,$lang_alias,*)
26438 all_selected_languages="$all_selected_languages $lang_alias"
26439 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26440 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26441 fi
26442 ;;
26443 esac
26444
26445 language=
26446 boot_language=
26447 compilers=
26448 outputs=
26449 gtfiles=
26450 subdir_requires=
26451 . ${srcdir}/$gcc_subdir/config-lang.in
26452 if test "x$language" = x
26453 then
26454 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26455 exit 1
26456 fi
26457
26458 ok=:
26459 case ",$enable_languages," in
26460 *,$lang_alias,*) ;;
26461 *)
26462 for i in $subdir_requires; do
26463 test -f "${srcdir}/$i/config-lang.in" && continue
26464 ok=false
26465 break
26466 done
26467 ;;
26468 esac
26469 $ok || continue
26470
26471 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26472 if test -f $srcdir/$gcc_subdir/lang.opt; then
26473 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26474 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26475 fi
26476 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26477 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26478 fi
26479 all_languages="$all_languages $language"
26480 all_compilers="$all_compilers $compilers"
26481 all_outputs="$all_outputs $outputs"
26482 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26483 case ",$enable_languages," in
26484 *,lto,*)
26485
26486 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26487
26488 enable_lto=yes
26489
26490 ;;
26491 *) ;;
26492 esac
26493 done
26494
26495 # Pick up gtfiles for c
26496 gtfiles=
26497 . ${srcdir}/c-config-lang.in
26498 all_gtfiles="$all_gtfiles [c] $gtfiles"
26499
26500 check_languages=
26501 for language in $all_selected_languages
26502 do
26503 check_languages="$check_languages check-$language"
26504 done
26505
26506 # We link each language in with a set of hooks, reached indirectly via
26507 # lang.${target}. Only do so for selected languages.
26508
26509 rm -f Make-hooks
26510 touch Make-hooks
26511 target_list="all.cross start.encap rest.encap tags \
26512 install-common install-man install-info install-pdf install-html dvi \
26513 pdf html uninstall info man srcextra srcman srcinfo \
26514 mostlyclean clean distclean maintainer-clean install-plugin"
26515
26516 for t in $target_list
26517 do
26518 x=
26519 for lang in $all_selected_languages
26520 do
26521 x="$x $lang.$t"
26522 done
26523 echo "lang.$t: $x" >> Make-hooks
26524 done
26525
26526 # --------
26527 # Option include files
26528 # --------
26529
26530 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26531 option_includes="option-includes.mk"
26532
26533
26534 # --------
26535 # UNSORTED
26536 # --------
26537
26538 # Create .gdbinit.
26539
26540 echo "dir ." > .gdbinit
26541 echo "dir ${srcdir}" >> .gdbinit
26542 if test x$gdb_needs_out_file_path = xyes
26543 then
26544 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26545 fi
26546 if test "x$subdirs" != x; then
26547 for s in $subdirs
26548 do
26549 echo "dir ${srcdir}/$s" >> .gdbinit
26550 done
26551 fi
26552 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26553
26554 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26555
26556
26557
26558 # Find a directory in which to install a shared libgcc.
26559
26560 # Check whether --enable-version-specific-runtime-libs was given.
26561 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26562 enableval=$enable_version_specific_runtime_libs;
26563 fi
26564
26565
26566
26567 # Check whether --with-slibdir was given.
26568 if test "${with_slibdir+set}" = set; then :
26569 withval=$with_slibdir; slibdir="$with_slibdir"
26570 else
26571 if test "${enable_version_specific_runtime_libs+set}" = set; then
26572 slibdir='$(libsubdir)'
26573 elif test "$host" != "$target"; then
26574 slibdir='$(build_tooldir)/lib'
26575 else
26576 slibdir='$(libdir)'
26577 fi
26578 fi
26579
26580
26581
26582 # Substitute configuration variables
26583
26584
26585
26586
26587
26588
26589
26590
26591
26592
26593
26594
26595
26596
26597
26598
26599
26600
26601
26602
26603
26604
26605
26606
26607
26608
26609
26610
26611
26612
26613
26614
26615
26616
26617
26618
26619
26620
26621
26622
26623
26624
26625
26626
26627
26628
26629
26630
26631
26632
26633
26634
26635
26636
26637
26638
26639
26640
26641
26642
26643
26644
26645
26646
26647
26648
26649 # Echo link setup.
26650 if test x${build} = x${host} ; then
26651 if test x${host} = x${target} ; then
26652 echo "Links are now set up to build a native compiler for ${target}." 1>&2
26653 else
26654 echo "Links are now set up to build a cross-compiler" 1>&2
26655 echo " from ${host} to ${target}." 1>&2
26656 fi
26657 else
26658 if test x${host} = x${target} ; then
26659 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
26660 echo " for ${target}." 1>&2
26661 else
26662 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
26663 echo " from ${host} to ${target}." 1>&2
26664 fi
26665 fi
26666
26667
26668
26669
26670
26671
26672
26673
26674
26675 if test "x${CLOOGLIBS}" != "x" ; then
26676
26677 $as_echo "#define HAVE_cloog 1" >>confdefs.h
26678
26679 fi
26680
26681 # Check for plugin support
26682 # Check whether --enable-plugin was given.
26683 if test "${enable_plugin+set}" = set; then :
26684 enableval=$enable_plugin; enable_plugin=$enableval
26685 else
26686 enable_plugin=yes; default_plugin=yes
26687 fi
26688
26689
26690 pluginlibs=
26691
26692 case "${host}" in
26693 *-*-darwin*)
26694 if test x$build = x$host; then
26695 export_sym_check="nm${exeext} -g"
26696 elif test x$host = x$target; then
26697 export_sym_check="$gcc_cv_nm -g"
26698 else
26699 export_sym_check=
26700 fi
26701 ;;
26702 *)
26703 if test x$build = x$host; then
26704 export_sym_check="objdump${exeext} -T"
26705 elif test x$host = x$target; then
26706 export_sym_check="$gcc_cv_objdump -T"
26707 else
26708 export_sym_check=
26709 fi
26710 ;;
26711 esac
26712
26713 if test x"$enable_plugin" = x"yes"; then
26714
26715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
26716 $as_echo_n "checking for exported symbols... " >&6; }
26717 if test "x$export_sym_check" != x; then
26718 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
26719 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
26720 if $export_sym_check conftest | grep foobar > /dev/null; then
26721 : # No need to use a flag
26722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26723 $as_echo "yes" >&6; }
26724 else
26725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26726 $as_echo "yes" >&6; }
26727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
26728 $as_echo_n "checking for -rdynamic... " >&6; }
26729 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
26730 if $export_sym_check conftest | grep foobar > /dev/null; then
26731 plugin_rdynamic=yes
26732 pluginlibs="-rdynamic"
26733 else
26734 plugin_rdynamic=no
26735 enable_plugin=no
26736 fi
26737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
26738 $as_echo "$plugin_rdynamic" >&6; }
26739 fi
26740 else
26741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
26742 $as_echo "unable to check" >&6; }
26743 fi
26744
26745 # Check -ldl
26746 saved_LIBS="$LIBS"
26747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
26748 $as_echo_n "checking for library containing dlopen... " >&6; }
26749 if test "${ac_cv_search_dlopen+set}" = set; then :
26750 $as_echo_n "(cached) " >&6
26751 else
26752 ac_func_search_save_LIBS=$LIBS
26753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26754 /* end confdefs.h. */
26755
26756 /* Override any GCC internal prototype to avoid an error.
26757 Use char because int might match the return type of a GCC
26758 builtin and then its argument prototype would still apply. */
26759 #ifdef __cplusplus
26760 extern "C"
26761 #endif
26762 char dlopen ();
26763 int
26764 main ()
26765 {
26766 return dlopen ();
26767 ;
26768 return 0;
26769 }
26770 _ACEOF
26771 for ac_lib in '' dl; do
26772 if test -z "$ac_lib"; then
26773 ac_res="none required"
26774 else
26775 ac_res=-l$ac_lib
26776 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26777 fi
26778 if ac_fn_c_try_link "$LINENO"; then :
26779 ac_cv_search_dlopen=$ac_res
26780 fi
26781 rm -f core conftest.err conftest.$ac_objext \
26782 conftest$ac_exeext
26783 if test "${ac_cv_search_dlopen+set}" = set; then :
26784 break
26785 fi
26786 done
26787 if test "${ac_cv_search_dlopen+set}" = set; then :
26788
26789 else
26790 ac_cv_search_dlopen=no
26791 fi
26792 rm conftest.$ac_ext
26793 LIBS=$ac_func_search_save_LIBS
26794 fi
26795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
26796 $as_echo "$ac_cv_search_dlopen" >&6; }
26797 ac_res=$ac_cv_search_dlopen
26798 if test "$ac_res" != no; then :
26799 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26800
26801 fi
26802
26803 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
26804 pluginlibs="$pluginlibs -ldl"
26805 fi
26806 LIBS="$saved_LIBS"
26807
26808 # Check that we can build shared objects with -fPIC -shared
26809 saved_LDFLAGS="$LDFLAGS"
26810 saved_CFLAGS="$CFLAGS"
26811 case "${host}" in
26812 *-*-darwin*)
26813 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
26814 CFLAGS="$CFLAGS -fPIC"
26815 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
26816 ;;
26817 *)
26818 CFLAGS="$CFLAGS -fPIC"
26819 LDFLAGS="$LDFLAGS -fPIC -shared"
26820 ;;
26821 esac
26822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
26823 $as_echo_n "checking for -fPIC -shared... " >&6; }
26824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26825 /* end confdefs.h. */
26826 extern int X;
26827 int
26828 main ()
26829 {
26830 return X == 0;
26831 ;
26832 return 0;
26833 }
26834 _ACEOF
26835 if ac_fn_c_try_link "$LINENO"; then :
26836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26837 $as_echo "yes" >&6; }; have_pic_shared=yes
26838 else
26839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26840 $as_echo "no" >&6; }; have_pic_shared=no
26841 fi
26842 rm -f core conftest.err conftest.$ac_objext \
26843 conftest$ac_exeext conftest.$ac_ext
26844 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
26845 pluginlibs=
26846 enable_plugin=no
26847 fi
26848 LDFLAGS="$saved_LDFLAGS"
26849 CFLAGS="$saved_CFLAGS"
26850
26851 # If plugin support had been requested but not available, fail.
26852 if test x"$enable_plugin" = x"no" ; then
26853 if test x"$default_plugin" != x"yes"; then
26854 as_fn_error "
26855 Building GCC with plugin support requires a host that supports
26856 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
26857 fi
26858 fi
26859 fi
26860
26861
26862
26863 if test x"$enable_plugin" = x"yes"; then
26864
26865 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
26866
26867 fi
26868
26869
26870 # Check whether --enable-libquadmath-support was given.
26871 if test "${enable_libquadmath_support+set}" = set; then :
26872 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
26873 else
26874 ENABLE_LIBQUADMATH_SUPPORT=yes
26875 fi
26876
26877 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
26878
26879 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
26880
26881 fi
26882
26883
26884 # Specify what hash style to use by default.
26885
26886 # Check whether --with-linker-hash-style was given.
26887 if test "${with_linker_hash_style+set}" = set; then :
26888 withval=$with_linker_hash_style; case x"$withval" in
26889 xsysv)
26890 LINKER_HASH_STYLE=sysv
26891 ;;
26892 xgnu)
26893 LINKER_HASH_STYLE=gnu
26894 ;;
26895 xboth)
26896 LINKER_HASH_STYLE=both
26897 ;;
26898 *)
26899 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
26900 ;;
26901 esac
26902 else
26903 LINKER_HASH_STYLE=''
26904 fi
26905
26906 if test x"${LINKER_HASH_STYLE}" != x; then
26907
26908 cat >>confdefs.h <<_ACEOF
26909 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
26910 _ACEOF
26911
26912 fi
26913
26914 # Configure the subdirectories
26915 # AC_CONFIG_SUBDIRS($subdirs)
26916
26917 # Create the Makefile
26918 # and configure language subdirectories
26919 ac_config_files="$ac_config_files $all_outputs"
26920
26921
26922 ac_config_commands="$ac_config_commands default"
26923
26924 cat >confcache <<\_ACEOF
26925 # This file is a shell script that caches the results of configure
26926 # tests run on this system so they can be shared between configure
26927 # scripts and configure runs, see configure's option --config-cache.
26928 # It is not useful on other systems. If it contains results you don't
26929 # want to keep, you may remove or edit it.
26930 #
26931 # config.status only pays attention to the cache file if you give it
26932 # the --recheck option to rerun configure.
26933 #
26934 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26935 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26936 # following values.
26937
26938 _ACEOF
26939
26940 # The following way of writing the cache mishandles newlines in values,
26941 # but we know of no workaround that is simple, portable, and efficient.
26942 # So, we kill variables containing newlines.
26943 # Ultrix sh set writes to stderr and can't be redirected directly,
26944 # and sets the high bit in the cache file unless we assign to the vars.
26945 (
26946 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26947 eval ac_val=\$$ac_var
26948 case $ac_val in #(
26949 *${as_nl}*)
26950 case $ac_var in #(
26951 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26952 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26953 esac
26954 case $ac_var in #(
26955 _ | IFS | as_nl) ;; #(
26956 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26957 *) { eval $ac_var=; unset $ac_var;} ;;
26958 esac ;;
26959 esac
26960 done
26961
26962 (set) 2>&1 |
26963 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26964 *${as_nl}ac_space=\ *)
26965 # `set' does not quote correctly, so add quotes: double-quote
26966 # substitution turns \\\\ into \\, and sed turns \\ into \.
26967 sed -n \
26968 "s/'/'\\\\''/g;
26969 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26970 ;; #(
26971 *)
26972 # `set' quotes correctly as required by POSIX, so do not add quotes.
26973 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26974 ;;
26975 esac |
26976 sort
26977 ) |
26978 sed '
26979 /^ac_cv_env_/b end
26980 t clear
26981 :clear
26982 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26983 t end
26984 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26985 :end' >>confcache
26986 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26987 if test -w "$cache_file"; then
26988 test "x$cache_file" != "x/dev/null" &&
26989 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26990 $as_echo "$as_me: updating cache $cache_file" >&6;}
26991 cat confcache >$cache_file
26992 else
26993 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26994 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26995 fi
26996 fi
26997 rm -f confcache
26998
26999 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27000 # Let make expand exec_prefix.
27001 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27002
27003 DEFS=-DHAVE_CONFIG_H
27004
27005 ac_libobjs=
27006 ac_ltlibobjs=
27007 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27008 # 1. Remove the extension, and $U if already installed.
27009 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27010 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27011 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27012 # will be set to the directory where LIBOBJS objects are built.
27013 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27014 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27015 done
27016 LIBOBJS=$ac_libobjs
27017
27018 LTLIBOBJS=$ac_ltlibobjs
27019
27020
27021
27022
27023 : ${CONFIG_STATUS=./config.status}
27024 ac_write_fail=0
27025 ac_clean_files_save=$ac_clean_files
27026 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27027 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27028 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27029 as_write_fail=0
27030 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27031 #! $SHELL
27032 # Generated by $as_me.
27033 # Run this file to recreate the current configuration.
27034 # Compiler output produced by configure, useful for debugging
27035 # configure, is in config.log if it exists.
27036
27037 debug=false
27038 ac_cs_recheck=false
27039 ac_cs_silent=false
27040
27041 SHELL=\${CONFIG_SHELL-$SHELL}
27042 export SHELL
27043 _ASEOF
27044 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27045 ## -------------------- ##
27046 ## M4sh Initialization. ##
27047 ## -------------------- ##
27048
27049 # Be more Bourne compatible
27050 DUALCASE=1; export DUALCASE # for MKS sh
27051 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27052 emulate sh
27053 NULLCMD=:
27054 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27055 # is contrary to our usage. Disable this feature.
27056 alias -g '${1+"$@"}'='"$@"'
27057 setopt NO_GLOB_SUBST
27058 else
27059 case `(set -o) 2>/dev/null` in #(
27060 *posix*) :
27061 set -o posix ;; #(
27062 *) :
27063 ;;
27064 esac
27065 fi
27066
27067
27068 as_nl='
27069 '
27070 export as_nl
27071 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27072 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27073 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27074 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27075 # Prefer a ksh shell builtin over an external printf program on Solaris,
27076 # but without wasting forks for bash or zsh.
27077 if test -z "$BASH_VERSION$ZSH_VERSION" \
27078 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27079 as_echo='print -r --'
27080 as_echo_n='print -rn --'
27081 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27082 as_echo='printf %s\n'
27083 as_echo_n='printf %s'
27084 else
27085 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27086 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27087 as_echo_n='/usr/ucb/echo -n'
27088 else
27089 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27090 as_echo_n_body='eval
27091 arg=$1;
27092 case $arg in #(
27093 *"$as_nl"*)
27094 expr "X$arg" : "X\\(.*\\)$as_nl";
27095 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27096 esac;
27097 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27098 '
27099 export as_echo_n_body
27100 as_echo_n='sh -c $as_echo_n_body as_echo'
27101 fi
27102 export as_echo_body
27103 as_echo='sh -c $as_echo_body as_echo'
27104 fi
27105
27106 # The user is always right.
27107 if test "${PATH_SEPARATOR+set}" != set; then
27108 PATH_SEPARATOR=:
27109 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27110 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27111 PATH_SEPARATOR=';'
27112 }
27113 fi
27114
27115
27116 # IFS
27117 # We need space, tab and new line, in precisely that order. Quoting is
27118 # there to prevent editors from complaining about space-tab.
27119 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27120 # splitting by setting IFS to empty value.)
27121 IFS=" "" $as_nl"
27122
27123 # Find who we are. Look in the path if we contain no directory separator.
27124 case $0 in #((
27125 *[\\/]* ) as_myself=$0 ;;
27126 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27127 for as_dir in $PATH
27128 do
27129 IFS=$as_save_IFS
27130 test -z "$as_dir" && as_dir=.
27131 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27132 done
27133 IFS=$as_save_IFS
27134
27135 ;;
27136 esac
27137 # We did not find ourselves, most probably we were run as `sh COMMAND'
27138 # in which case we are not to be found in the path.
27139 if test "x$as_myself" = x; then
27140 as_myself=$0
27141 fi
27142 if test ! -f "$as_myself"; then
27143 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27144 exit 1
27145 fi
27146
27147 # Unset variables that we do not need and which cause bugs (e.g. in
27148 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27149 # suppresses any "Segmentation fault" message there. '((' could
27150 # trigger a bug in pdksh 5.2.14.
27151 for as_var in BASH_ENV ENV MAIL MAILPATH
27152 do eval test x\${$as_var+set} = xset \
27153 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27154 done
27155 PS1='$ '
27156 PS2='> '
27157 PS4='+ '
27158
27159 # NLS nuisances.
27160 LC_ALL=C
27161 export LC_ALL
27162 LANGUAGE=C
27163 export LANGUAGE
27164
27165 # CDPATH.
27166 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27167
27168
27169 # as_fn_error ERROR [LINENO LOG_FD]
27170 # ---------------------------------
27171 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27172 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27173 # script with status $?, using 1 if that was 0.
27174 as_fn_error ()
27175 {
27176 as_status=$?; test $as_status -eq 0 && as_status=1
27177 if test "$3"; then
27178 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27179 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27180 fi
27181 $as_echo "$as_me: error: $1" >&2
27182 as_fn_exit $as_status
27183 } # as_fn_error
27184
27185
27186 # as_fn_set_status STATUS
27187 # -----------------------
27188 # Set $? to STATUS, without forking.
27189 as_fn_set_status ()
27190 {
27191 return $1
27192 } # as_fn_set_status
27193
27194 # as_fn_exit STATUS
27195 # -----------------
27196 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27197 as_fn_exit ()
27198 {
27199 set +e
27200 as_fn_set_status $1
27201 exit $1
27202 } # as_fn_exit
27203
27204 # as_fn_unset VAR
27205 # ---------------
27206 # Portably unset VAR.
27207 as_fn_unset ()
27208 {
27209 { eval $1=; unset $1;}
27210 }
27211 as_unset=as_fn_unset
27212 # as_fn_append VAR VALUE
27213 # ----------------------
27214 # Append the text in VALUE to the end of the definition contained in VAR. Take
27215 # advantage of any shell optimizations that allow amortized linear growth over
27216 # repeated appends, instead of the typical quadratic growth present in naive
27217 # implementations.
27218 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27219 eval 'as_fn_append ()
27220 {
27221 eval $1+=\$2
27222 }'
27223 else
27224 as_fn_append ()
27225 {
27226 eval $1=\$$1\$2
27227 }
27228 fi # as_fn_append
27229
27230 # as_fn_arith ARG...
27231 # ------------------
27232 # Perform arithmetic evaluation on the ARGs, and store the result in the
27233 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27234 # must be portable across $(()) and expr.
27235 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27236 eval 'as_fn_arith ()
27237 {
27238 as_val=$(( $* ))
27239 }'
27240 else
27241 as_fn_arith ()
27242 {
27243 as_val=`expr "$@" || test $? -eq 1`
27244 }
27245 fi # as_fn_arith
27246
27247
27248 if expr a : '\(a\)' >/dev/null 2>&1 &&
27249 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27250 as_expr=expr
27251 else
27252 as_expr=false
27253 fi
27254
27255 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27256 as_basename=basename
27257 else
27258 as_basename=false
27259 fi
27260
27261 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27262 as_dirname=dirname
27263 else
27264 as_dirname=false
27265 fi
27266
27267 as_me=`$as_basename -- "$0" ||
27268 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27269 X"$0" : 'X\(//\)$' \| \
27270 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27271 $as_echo X/"$0" |
27272 sed '/^.*\/\([^/][^/]*\)\/*$/{
27273 s//\1/
27274 q
27275 }
27276 /^X\/\(\/\/\)$/{
27277 s//\1/
27278 q
27279 }
27280 /^X\/\(\/\).*/{
27281 s//\1/
27282 q
27283 }
27284 s/.*/./; q'`
27285
27286 # Avoid depending upon Character Ranges.
27287 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27288 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27289 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27290 as_cr_digits='0123456789'
27291 as_cr_alnum=$as_cr_Letters$as_cr_digits
27292
27293 ECHO_C= ECHO_N= ECHO_T=
27294 case `echo -n x` in #(((((
27295 -n*)
27296 case `echo 'xy\c'` in
27297 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27298 xy) ECHO_C='\c';;
27299 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27300 ECHO_T=' ';;
27301 esac;;
27302 *)
27303 ECHO_N='-n';;
27304 esac
27305
27306 rm -f conf$$ conf$$.exe conf$$.file
27307 if test -d conf$$.dir; then
27308 rm -f conf$$.dir/conf$$.file
27309 else
27310 rm -f conf$$.dir
27311 mkdir conf$$.dir 2>/dev/null
27312 fi
27313 if (echo >conf$$.file) 2>/dev/null; then
27314 if ln -s conf$$.file conf$$ 2>/dev/null; then
27315 as_ln_s='ln -s'
27316 # ... but there are two gotchas:
27317 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27318 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27319 # In both cases, we have to default to `cp -p'.
27320 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27321 as_ln_s='cp -p'
27322 elif ln conf$$.file conf$$ 2>/dev/null; then
27323 as_ln_s=ln
27324 else
27325 as_ln_s='cp -p'
27326 fi
27327 else
27328 as_ln_s='cp -p'
27329 fi
27330 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27331 rmdir conf$$.dir 2>/dev/null
27332
27333
27334 # as_fn_mkdir_p
27335 # -------------
27336 # Create "$as_dir" as a directory, including parents if necessary.
27337 as_fn_mkdir_p ()
27338 {
27339
27340 case $as_dir in #(
27341 -*) as_dir=./$as_dir;;
27342 esac
27343 test -d "$as_dir" || eval $as_mkdir_p || {
27344 as_dirs=
27345 while :; do
27346 case $as_dir in #(
27347 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27348 *) as_qdir=$as_dir;;
27349 esac
27350 as_dirs="'$as_qdir' $as_dirs"
27351 as_dir=`$as_dirname -- "$as_dir" ||
27352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27353 X"$as_dir" : 'X\(//\)[^/]' \| \
27354 X"$as_dir" : 'X\(//\)$' \| \
27355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27356 $as_echo X"$as_dir" |
27357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27358 s//\1/
27359 q
27360 }
27361 /^X\(\/\/\)[^/].*/{
27362 s//\1/
27363 q
27364 }
27365 /^X\(\/\/\)$/{
27366 s//\1/
27367 q
27368 }
27369 /^X\(\/\).*/{
27370 s//\1/
27371 q
27372 }
27373 s/.*/./; q'`
27374 test -d "$as_dir" && break
27375 done
27376 test -z "$as_dirs" || eval "mkdir $as_dirs"
27377 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27378
27379
27380 } # as_fn_mkdir_p
27381 if mkdir -p . 2>/dev/null; then
27382 as_mkdir_p='mkdir -p "$as_dir"'
27383 else
27384 test -d ./-p && rmdir ./-p
27385 as_mkdir_p=false
27386 fi
27387
27388 if test -x / >/dev/null 2>&1; then
27389 as_test_x='test -x'
27390 else
27391 if ls -dL / >/dev/null 2>&1; then
27392 as_ls_L_option=L
27393 else
27394 as_ls_L_option=
27395 fi
27396 as_test_x='
27397 eval sh -c '\''
27398 if test -d "$1"; then
27399 test -d "$1/.";
27400 else
27401 case $1 in #(
27402 -*)set "./$1";;
27403 esac;
27404 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27405 ???[sx]*):;;*)false;;esac;fi
27406 '\'' sh
27407 '
27408 fi
27409 as_executable_p=$as_test_x
27410
27411 # Sed expression to map a string onto a valid CPP name.
27412 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27413
27414 # Sed expression to map a string onto a valid variable name.
27415 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27416
27417
27418 exec 6>&1
27419 ## ----------------------------------- ##
27420 ## Main body of $CONFIG_STATUS script. ##
27421 ## ----------------------------------- ##
27422 _ASEOF
27423 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27424
27425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27426 # Save the log message, to keep $0 and so on meaningful, and to
27427 # report actual input values of CONFIG_FILES etc. instead of their
27428 # values after options handling.
27429 ac_log="
27430 This file was extended by $as_me, which was
27431 generated by GNU Autoconf 2.64. Invocation command line was
27432
27433 CONFIG_FILES = $CONFIG_FILES
27434 CONFIG_HEADERS = $CONFIG_HEADERS
27435 CONFIG_LINKS = $CONFIG_LINKS
27436 CONFIG_COMMANDS = $CONFIG_COMMANDS
27437 $ $0 $@
27438
27439 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27440 "
27441
27442 _ACEOF
27443
27444 case $ac_config_files in *"
27445 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27446 esac
27447
27448 case $ac_config_headers in *"
27449 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27450 esac
27451
27452
27453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27454 # Files that config.status was made for.
27455 config_files="$ac_config_files"
27456 config_headers="$ac_config_headers"
27457 config_commands="$ac_config_commands"
27458
27459 _ACEOF
27460
27461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27462 ac_cs_usage="\
27463 \`$as_me' instantiates files and other configuration actions
27464 from templates according to the current configuration. Unless the files
27465 and actions are specified as TAGs, all are instantiated by default.
27466
27467 Usage: $0 [OPTION]... [TAG]...
27468
27469 -h, --help print this help, then exit
27470 -V, --version print version number and configuration settings, then exit
27471 -q, --quiet, --silent
27472 do not print progress messages
27473 -d, --debug don't remove temporary files
27474 --recheck update $as_me by reconfiguring in the same conditions
27475 --file=FILE[:TEMPLATE]
27476 instantiate the configuration file FILE
27477 --header=FILE[:TEMPLATE]
27478 instantiate the configuration header FILE
27479
27480 Configuration files:
27481 $config_files
27482
27483 Configuration headers:
27484 $config_headers
27485
27486 Configuration commands:
27487 $config_commands
27488
27489 Report bugs to the package provider."
27490
27491 _ACEOF
27492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27493 ac_cs_version="\\
27494 config.status
27495 configured by $0, generated by GNU Autoconf 2.64,
27496 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27497
27498 Copyright (C) 2009 Free Software Foundation, Inc.
27499 This config.status script is free software; the Free Software Foundation
27500 gives unlimited permission to copy, distribute and modify it."
27501
27502 ac_pwd='$ac_pwd'
27503 srcdir='$srcdir'
27504 AWK='$AWK'
27505 test -n "\$AWK" || AWK=awk
27506 _ACEOF
27507
27508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27509 # The default lists apply if the user does not specify any file.
27510 ac_need_defaults=:
27511 while test $# != 0
27512 do
27513 case $1 in
27514 --*=*)
27515 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27516 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27517 ac_shift=:
27518 ;;
27519 *)
27520 ac_option=$1
27521 ac_optarg=$2
27522 ac_shift=shift
27523 ;;
27524 esac
27525
27526 case $ac_option in
27527 # Handling of the options.
27528 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27529 ac_cs_recheck=: ;;
27530 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27531 $as_echo "$ac_cs_version"; exit ;;
27532 --debug | --debu | --deb | --de | --d | -d )
27533 debug=: ;;
27534 --file | --fil | --fi | --f )
27535 $ac_shift
27536 case $ac_optarg in
27537 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27538 esac
27539 as_fn_append CONFIG_FILES " '$ac_optarg'"
27540 ac_need_defaults=false;;
27541 --header | --heade | --head | --hea )
27542 $ac_shift
27543 case $ac_optarg in
27544 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27545 esac
27546 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27547 ac_need_defaults=false;;
27548 --he | --h)
27549 # Conflict between --help and --header
27550 as_fn_error "ambiguous option: \`$1'
27551 Try \`$0 --help' for more information.";;
27552 --help | --hel | -h )
27553 $as_echo "$ac_cs_usage"; exit ;;
27554 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27555 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27556 ac_cs_silent=: ;;
27557
27558 # This is an error.
27559 -*) as_fn_error "unrecognized option: \`$1'
27560 Try \`$0 --help' for more information." ;;
27561
27562 *) as_fn_append ac_config_targets " $1"
27563 ac_need_defaults=false ;;
27564
27565 esac
27566 shift
27567 done
27568
27569 ac_configure_extra_args=
27570
27571 if $ac_cs_silent; then
27572 exec 6>/dev/null
27573 ac_configure_extra_args="$ac_configure_extra_args --silent"
27574 fi
27575
27576 _ACEOF
27577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27578 if \$ac_cs_recheck; then
27579 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27580 shift
27581 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27582 CONFIG_SHELL='$SHELL'
27583 export CONFIG_SHELL
27584 exec "\$@"
27585 fi
27586
27587 _ACEOF
27588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27589 exec 5>>config.log
27590 {
27591 echo
27592 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27593 ## Running $as_me. ##
27594 _ASBOX
27595 $as_echo "$ac_log"
27596 } >&5
27597
27598 _ACEOF
27599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27600 #
27601 # INIT-COMMANDS
27602 #
27603 subdirs='$subdirs'
27604
27605 _ACEOF
27606
27607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27608
27609 # Handling of arguments.
27610 for ac_config_target in $ac_config_targets
27611 do
27612 case $ac_config_target in
27613 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
27614 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
27615 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27616 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
27617 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
27618 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27619
27620 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27621 esac
27622 done
27623
27624
27625 # If the user did not use the arguments to specify the items to instantiate,
27626 # then the envvar interface is used. Set only those that are not.
27627 # We use the long form for the default assignment because of an extremely
27628 # bizarre bug on SunOS 4.1.3.
27629 if $ac_need_defaults; then
27630 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27631 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27632 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27633 fi
27634
27635 # Have a temporary directory for convenience. Make it in the build tree
27636 # simply because there is no reason against having it here, and in addition,
27637 # creating and moving files from /tmp can sometimes cause problems.
27638 # Hook for its removal unless debugging.
27639 # Note that there is a small window in which the directory will not be cleaned:
27640 # after its creation but before its name has been assigned to `$tmp'.
27641 $debug ||
27642 {
27643 tmp=
27644 trap 'exit_status=$?
27645 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27646 ' 0
27647 trap 'as_fn_exit 1' 1 2 13 15
27648 }
27649 # Create a (secure) tmp directory for tmp files.
27650
27651 {
27652 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27653 test -n "$tmp" && test -d "$tmp"
27654 } ||
27655 {
27656 tmp=./conf$$-$RANDOM
27657 (umask 077 && mkdir "$tmp")
27658 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27659
27660 # Set up the scripts for CONFIG_FILES section.
27661 # No need to generate them if there are no CONFIG_FILES.
27662 # This happens for instance with `./config.status config.h'.
27663 if test -n "$CONFIG_FILES"; then
27664
27665 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27666 ac_cs_awk_getline=:
27667 ac_cs_awk_pipe_init=
27668 ac_cs_awk_read_file='
27669 while ((getline aline < (F[key])) > 0)
27670 print(aline)
27671 close(F[key])'
27672 ac_cs_awk_pipe_fini=
27673 else
27674 ac_cs_awk_getline=false
27675 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27676 ac_cs_awk_read_file='
27677 print "|#_!!_#|"
27678 print "cat " F[key] " &&"
27679 '$ac_cs_awk_pipe_init
27680 # The final `:' finishes the AND list.
27681 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27682 fi
27683 ac_cr=`echo X | tr X '\015'`
27684 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27685 # But we know of no other shell where ac_cr would be empty at this
27686 # point, so we can use a bashism as a fallback.
27687 if test "x$ac_cr" = x; then
27688 eval ac_cr=\$\'\\r\'
27689 fi
27690 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27691 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27692 ac_cs_awk_cr='\r'
27693 else
27694 ac_cs_awk_cr=$ac_cr
27695 fi
27696
27697 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27698 _ACEOF
27699
27700 # Create commands to substitute file output variables.
27701 {
27702 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27703 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27704 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27705 echo "_ACAWK" &&
27706 echo "_ACEOF"
27707 } >conf$$files.sh &&
27708 . ./conf$$files.sh ||
27709 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27710 rm -f conf$$files.sh
27711
27712 {
27713 echo "cat >conf$$subs.awk <<_ACEOF" &&
27714 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27715 echo "_ACEOF"
27716 } >conf$$subs.sh ||
27717 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27718 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27719 ac_delim='%!_!# '
27720 for ac_last_try in false false false false false :; do
27721 . ./conf$$subs.sh ||
27722 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27723
27724 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27725 if test $ac_delim_n = $ac_delim_num; then
27726 break
27727 elif $ac_last_try; then
27728 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27729 else
27730 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27731 fi
27732 done
27733 rm -f conf$$subs.sh
27734
27735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27736 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27737 _ACEOF
27738 sed -n '
27739 h
27740 s/^/S["/; s/!.*/"]=/
27741 p
27742 g
27743 s/^[^!]*!//
27744 :repl
27745 t repl
27746 s/'"$ac_delim"'$//
27747 t delim
27748 :nl
27749 h
27750 s/\(.\{148\}\).*/\1/
27751 t more1
27752 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27753 p
27754 n
27755 b repl
27756 :more1
27757 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27758 p
27759 g
27760 s/.\{148\}//
27761 t nl
27762 :delim
27763 h
27764 s/\(.\{148\}\).*/\1/
27765 t more2
27766 s/["\\]/\\&/g; s/^/"/; s/$/"/
27767 p
27768 b
27769 :more2
27770 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27771 p
27772 g
27773 s/.\{148\}//
27774 t delim
27775 ' <conf$$subs.awk | sed '
27776 /^[^""]/{
27777 N
27778 s/\n//
27779 }
27780 ' >>$CONFIG_STATUS || ac_write_fail=1
27781 rm -f conf$$subs.awk
27782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27783 _ACAWK
27784 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27785 for (key in S) S_is_set[key] = 1
27786 FS = "\a"
27787 \$ac_cs_awk_pipe_init
27788 }
27789 {
27790 line = $ 0
27791 nfields = split(line, field, "@")
27792 substed = 0
27793 len = length(field[1])
27794 for (i = 2; i < nfields; i++) {
27795 key = field[i]
27796 keylen = length(key)
27797 if (S_is_set[key]) {
27798 value = S[key]
27799 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27800 len += length(value) + length(field[++i])
27801 substed = 1
27802 } else
27803 len += 1 + keylen
27804 }
27805 if (nfields == 3 && !substed) {
27806 key = field[2]
27807 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27808 \$ac_cs_awk_read_file
27809 next
27810 }
27811 }
27812 print line
27813 }
27814 \$ac_cs_awk_pipe_fini
27815 _ACAWK
27816 _ACEOF
27817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27818 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27819 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27820 else
27821 cat
27822 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27823 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27824 _ACEOF
27825
27826 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27827 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27828 # trailing colons and then remove the whole line if VPATH becomes empty
27829 # (actually we leave an empty line to preserve line numbers).
27830 if test "x$srcdir" = x.; then
27831 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27832 s/:*\$(srcdir):*/:/
27833 s/:*\${srcdir}:*/:/
27834 s/:*@srcdir@:*/:/
27835 s/^\([^=]*=[ ]*\):*/\1/
27836 s/:*$//
27837 s/^[^=]*=[ ]*$//
27838 }'
27839 fi
27840
27841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27842 fi # test -n "$CONFIG_FILES"
27843
27844 # Set up the scripts for CONFIG_HEADERS section.
27845 # No need to generate them if there are no CONFIG_HEADERS.
27846 # This happens for instance with `./config.status Makefile'.
27847 if test -n "$CONFIG_HEADERS"; then
27848 cat >"$tmp/defines.awk" <<\_ACAWK ||
27849 BEGIN {
27850 _ACEOF
27851
27852 # Transform confdefs.h into an awk script `defines.awk', embedded as
27853 # here-document in config.status, that substitutes the proper values into
27854 # config.h.in to produce config.h.
27855
27856 # Create a delimiter string that does not exist in confdefs.h, to ease
27857 # handling of long lines.
27858 ac_delim='%!_!# '
27859 for ac_last_try in false false :; do
27860 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27861 if test -z "$ac_t"; then
27862 break
27863 elif $ac_last_try; then
27864 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27865 else
27866 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27867 fi
27868 done
27869
27870 # For the awk script, D is an array of macro values keyed by name,
27871 # likewise P contains macro parameters if any. Preserve backslash
27872 # newline sequences.
27873
27874 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27875 sed -n '
27876 s/.\{148\}/&'"$ac_delim"'/g
27877 t rset
27878 :rset
27879 s/^[ ]*#[ ]*define[ ][ ]*/ /
27880 t def
27881 d
27882 :def
27883 s/\\$//
27884 t bsnl
27885 s/["\\]/\\&/g
27886 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27887 D["\1"]=" \3"/p
27888 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27889 d
27890 :bsnl
27891 s/["\\]/\\&/g
27892 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27893 D["\1"]=" \3\\\\\\n"\\/p
27894 t cont
27895 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27896 t cont
27897 d
27898 :cont
27899 n
27900 s/.\{148\}/&'"$ac_delim"'/g
27901 t clear
27902 :clear
27903 s/\\$//
27904 t bsnlc
27905 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27906 d
27907 :bsnlc
27908 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27909 b cont
27910 ' <confdefs.h | sed '
27911 s/'"$ac_delim"'/"\\\
27912 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27913
27914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27915 for (key in D) D_is_set[key] = 1
27916 FS = "\a"
27917 }
27918 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27919 line = \$ 0
27920 split(line, arg, " ")
27921 if (arg[1] == "#") {
27922 defundef = arg[2]
27923 mac1 = arg[3]
27924 } else {
27925 defundef = substr(arg[1], 2)
27926 mac1 = arg[2]
27927 }
27928 split(mac1, mac2, "(") #)
27929 macro = mac2[1]
27930 prefix = substr(line, 1, index(line, defundef) - 1)
27931 if (D_is_set[macro]) {
27932 # Preserve the white space surrounding the "#".
27933 print prefix "define", macro P[macro] D[macro]
27934 next
27935 } else {
27936 # Replace #undef with comments. This is necessary, for example,
27937 # in the case of _POSIX_SOURCE, which is predefined and required
27938 # on some systems where configure will not decide to define it.
27939 if (defundef == "undef") {
27940 print "/*", prefix defundef, macro, "*/"
27941 next
27942 }
27943 }
27944 }
27945 { print }
27946 _ACAWK
27947 _ACEOF
27948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27949 as_fn_error "could not setup config headers machinery" "$LINENO" 5
27950 fi # test -n "$CONFIG_HEADERS"
27951
27952
27953 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27954 shift
27955 for ac_tag
27956 do
27957 case $ac_tag in
27958 :[FHLC]) ac_mode=$ac_tag; continue;;
27959 esac
27960 case $ac_mode$ac_tag in
27961 :[FHL]*:*);;
27962 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27963 :[FH]-) ac_tag=-:-;;
27964 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27965 esac
27966 ac_save_IFS=$IFS
27967 IFS=:
27968 set x $ac_tag
27969 IFS=$ac_save_IFS
27970 shift
27971 ac_file=$1
27972 shift
27973
27974 case $ac_mode in
27975 :L) ac_source=$1;;
27976 :[FH])
27977 ac_file_inputs=
27978 for ac_f
27979 do
27980 case $ac_f in
27981 -) ac_f="$tmp/stdin";;
27982 *) # Look for the file first in the build tree, then in the source tree
27983 # (if the path is not absolute). The absolute path cannot be DOS-style,
27984 # because $ac_f cannot contain `:'.
27985 test -f "$ac_f" ||
27986 case $ac_f in
27987 [\\/$]*) false;;
27988 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27989 esac ||
27990 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27991 esac
27992 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27993 as_fn_append ac_file_inputs " '$ac_f'"
27994 done
27995
27996 # Let's still pretend it is `configure' which instantiates (i.e., don't
27997 # use $as_me), people would be surprised to read:
27998 # /* config.h. Generated by config.status. */
27999 configure_input='Generated from '`
28000 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28001 `' by configure.'
28002 if test x"$ac_file" != x-; then
28003 configure_input="$ac_file. $configure_input"
28004 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28005 $as_echo "$as_me: creating $ac_file" >&6;}
28006 fi
28007 # Neutralize special characters interpreted by sed in replacement strings.
28008 case $configure_input in #(
28009 *\&* | *\|* | *\\* )
28010 ac_sed_conf_input=`$as_echo "$configure_input" |
28011 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28012 *) ac_sed_conf_input=$configure_input;;
28013 esac
28014
28015 case $ac_tag in
28016 *:-:* | *:-) cat >"$tmp/stdin" \
28017 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28018 esac
28019 ;;
28020 esac
28021
28022 ac_dir=`$as_dirname -- "$ac_file" ||
28023 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28024 X"$ac_file" : 'X\(//\)[^/]' \| \
28025 X"$ac_file" : 'X\(//\)$' \| \
28026 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28027 $as_echo X"$ac_file" |
28028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28029 s//\1/
28030 q
28031 }
28032 /^X\(\/\/\)[^/].*/{
28033 s//\1/
28034 q
28035 }
28036 /^X\(\/\/\)$/{
28037 s//\1/
28038 q
28039 }
28040 /^X\(\/\).*/{
28041 s//\1/
28042 q
28043 }
28044 s/.*/./; q'`
28045 as_dir="$ac_dir"; as_fn_mkdir_p
28046 ac_builddir=.
28047
28048 case "$ac_dir" in
28049 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28050 *)
28051 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28052 # A ".." for each directory in $ac_dir_suffix.
28053 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28054 case $ac_top_builddir_sub in
28055 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28056 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28057 esac ;;
28058 esac
28059 ac_abs_top_builddir=$ac_pwd
28060 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28061 # for backward compatibility:
28062 ac_top_builddir=$ac_top_build_prefix
28063
28064 case $srcdir in
28065 .) # We are building in place.
28066 ac_srcdir=.
28067 ac_top_srcdir=$ac_top_builddir_sub
28068 ac_abs_top_srcdir=$ac_pwd ;;
28069 [\\/]* | ?:[\\/]* ) # Absolute name.
28070 ac_srcdir=$srcdir$ac_dir_suffix;
28071 ac_top_srcdir=$srcdir
28072 ac_abs_top_srcdir=$srcdir ;;
28073 *) # Relative name.
28074 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28075 ac_top_srcdir=$ac_top_build_prefix$srcdir
28076 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28077 esac
28078 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28079
28080
28081 case $ac_mode in
28082 :F)
28083 #
28084 # CONFIG_FILE
28085 #
28086
28087 _ACEOF
28088
28089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28090 # If the template does not know about datarootdir, expand it.
28091 # FIXME: This hack should be removed a few years after 2.60.
28092 ac_datarootdir_hack=; ac_datarootdir_seen=
28093 ac_sed_dataroot='
28094 /datarootdir/ {
28095 p
28096 q
28097 }
28098 /@datadir@/p
28099 /@docdir@/p
28100 /@infodir@/p
28101 /@localedir@/p
28102 /@mandir@/p'
28103 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28104 *datarootdir*) ac_datarootdir_seen=yes;;
28105 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28107 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28108 _ACEOF
28109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28110 ac_datarootdir_hack='
28111 s&@datadir@&$datadir&g
28112 s&@docdir@&$docdir&g
28113 s&@infodir@&$infodir&g
28114 s&@localedir@&$localedir&g
28115 s&@mandir@&$mandir&g
28116 s&\\\${datarootdir}&$datarootdir&g' ;;
28117 esac
28118 _ACEOF
28119
28120 # Neutralize VPATH when `$srcdir' = `.'.
28121 # Shell code in configure.ac might set extrasub.
28122 # FIXME: do we really want to maintain this feature?
28123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28124 ac_sed_extra="$ac_vpsub
28125 $extrasub
28126 _ACEOF
28127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28128 :t
28129 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28130 s|@configure_input@|$ac_sed_conf_input|;t t
28131 s&@top_builddir@&$ac_top_builddir_sub&;t t
28132 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28133 s&@srcdir@&$ac_srcdir&;t t
28134 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28135 s&@top_srcdir@&$ac_top_srcdir&;t t
28136 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28137 s&@builddir@&$ac_builddir&;t t
28138 s&@abs_builddir@&$ac_abs_builddir&;t t
28139 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28140 $ac_datarootdir_hack
28141 "
28142 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28143 if $ac_cs_awk_getline; then
28144 $AWK -f "$tmp/subs.awk"
28145 else
28146 $AWK -f "$tmp/subs.awk" | $SHELL
28147 fi >$tmp/out \
28148 || as_fn_error "could not create $ac_file" "$LINENO" 5
28149
28150 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28151 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28152 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28154 which seems to be undefined. Please make sure it is defined." >&5
28155 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28156 which seems to be undefined. Please make sure it is defined." >&2;}
28157
28158 rm -f "$tmp/stdin"
28159 case $ac_file in
28160 -) cat "$tmp/out" && rm -f "$tmp/out";;
28161 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28162 esac \
28163 || as_fn_error "could not create $ac_file" "$LINENO" 5
28164 ;;
28165 :H)
28166 #
28167 # CONFIG_HEADER
28168 #
28169 if test x"$ac_file" != x-; then
28170 {
28171 $as_echo "/* $configure_input */" \
28172 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28173 } >"$tmp/config.h" \
28174 || as_fn_error "could not create $ac_file" "$LINENO" 5
28175 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28176 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28177 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28178 else
28179 rm -f "$ac_file"
28180 mv "$tmp/config.h" "$ac_file" \
28181 || as_fn_error "could not create $ac_file" "$LINENO" 5
28182 fi
28183 else
28184 $as_echo "/* $configure_input */" \
28185 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28186 || as_fn_error "could not create -" "$LINENO" 5
28187 fi
28188 ;;
28189
28190 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28191 $as_echo "$as_me: executing $ac_file commands" >&6;}
28192 ;;
28193 esac
28194
28195
28196 case $ac_file$ac_mode in
28197 "as":F) chmod +x as ;;
28198 "collect-ld":F) chmod +x collect-ld ;;
28199 "nm":F) chmod +x nm ;;
28200 "default":C)
28201 case ${CONFIG_HEADERS} in
28202 *auto-host.h:config.in*)
28203 echo > cstamp-h ;;
28204 esac
28205 # Make sure all the subdirs exist.
28206 for d in $subdirs doc build common c-family
28207 do
28208 test -d $d || mkdir $d
28209 done
28210 ;;
28211
28212 esac
28213 done # for ac_tag
28214
28215
28216 as_fn_exit 0
28217 _ACEOF
28218 ac_clean_files=$ac_clean_files_save
28219
28220 test $ac_write_fail = 0 ||
28221 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28222
28223
28224 # configure is writing to config.log, and then calls config.status.
28225 # config.status does its own redirection, appending to config.log.
28226 # Unfortunately, on DOS this fails, as config.log is still kept open
28227 # by configure, so config.status won't be able to write to it; its
28228 # output is simply discarded. So we exec the FD to /dev/null,
28229 # effectively closing config.log, so it can be properly (re)opened and
28230 # appended to by config.status. When coming back to configure, we
28231 # need to make the FD available again.
28232 if test "$no_create" != yes; then
28233 ac_cs_success=:
28234 ac_config_status_args=
28235 test "$silent" = yes &&
28236 ac_config_status_args="$ac_config_status_args --quiet"
28237 exec 5>/dev/null
28238 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28239 exec 5>>config.log
28240 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28241 # would make configure fail if this is the last instruction.
28242 $ac_cs_success || as_fn_exit $?
28243 fi
28244 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28246 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28247 fi
28248
28249