configure.ac (*-*-solaris2*): Add -lrt to THREADLIBS.
[gcc.git] / boehm-gc / 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
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || 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="gcj_mlc.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='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 toolexeclibdir
606 toolexecdir
607 O0_CFLAGS
608 addtests
609 addlibs
610 addincludes
611 addobjs
612 AM_CPPFLAGS
613 CPLUSPLUS_FALSE
614 CPLUSPLUS_TRUE
615 target_all
616 EXTRA_TEST_LIBS
617 extra_ldflags_libgc
618 POWERPC_DARWIN_FALSE
619 POWERPC_DARWIN_TRUE
620 THREADLIBS
621 CXXCPP
622 CPP
623 OTOOL64
624 OTOOL
625 LIPO
626 NMEDIT
627 DSYMUTIL
628 OBJDUMP
629 LN_S
630 NM
631 ac_ct_DUMPBIN
632 DUMPBIN
633 LD
634 FGREP
635 EGREP
636 GREP
637 SED
638 LIBTOOL
639 GC_CFLAGS
640 MAINT
641 MAINTAINER_MODE_FALSE
642 MAINTAINER_MODE_TRUE
643 RANLIB
644 AR
645 AS
646 CCASFLAGS
647 CCAS
648 am__fastdepCXX_FALSE
649 am__fastdepCXX_TRUE
650 CXXDEPMODE
651 ac_ct_CXX
652 CXXFLAGS
653 CXX
654 am__fastdepCC_FALSE
655 am__fastdepCC_TRUE
656 CCDEPMODE
657 AMDEPBACKSLASH
658 AMDEP_FALSE
659 AMDEP_TRUE
660 am__quote
661 am__include
662 DEPDIR
663 OBJEXT
664 EXEEXT
665 ac_ct_CC
666 CPPFLAGS
667 LDFLAGS
668 CFLAGS
669 CC
670 am__untar
671 am__tar
672 AMTAR
673 am__leading_dot
674 SET_MAKE
675 AWK
676 mkdir_p
677 MKDIR_P
678 INSTALL_STRIP_PROGRAM
679 STRIP
680 install_sh
681 MAKEINFO
682 AUTOHEADER
683 AUTOMAKE
684 AUTOCONF
685 ACLOCAL
686 VERSION
687 PACKAGE
688 CYGPATH_W
689 am__isrc
690 INSTALL_DATA
691 INSTALL_SCRIPT
692 INSTALL_PROGRAM
693 mkinstalldirs
694 target_noncanonical
695 target_os
696 target_vendor
697 target_cpu
698 target
699 host_os
700 host_vendor
701 host_cpu
702 host
703 build_os
704 build_vendor
705 build_cpu
706 build
707 multi_basedir
708 target_alias
709 host_alias
710 build_alias
711 LIBS
712 ECHO_T
713 ECHO_N
714 ECHO_C
715 DEFS
716 mandir
717 localedir
718 libdir
719 psdir
720 pdfdir
721 dvidir
722 htmldir
723 infodir
724 docdir
725 oldincludedir
726 includedir
727 localstatedir
728 sharedstatedir
729 sysconfdir
730 datadir
731 datarootdir
732 libexecdir
733 sbindir
734 bindir
735 program_transform_name
736 prefix
737 exec_prefix
738 PACKAGE_URL
739 PACKAGE_BUGREPORT
740 PACKAGE_STRING
741 PACKAGE_VERSION
742 PACKAGE_TARNAME
743 PACKAGE_NAME
744 PATH_SEPARATOR
745 SHELL'
746 ac_subst_files=''
747 ac_user_opts='
748 enable_option_checking
749 enable_multilib
750 enable_dependency_tracking
751 enable_maintainer_mode
752 enable_shared
753 enable_static
754 with_pic
755 enable_fast_install
756 with_gnu_ld
757 enable_libtool_lock
758 with_target_subdir
759 with_cross_host
760 enable_parallel_mark
761 with_ecos
762 enable_gc_debug
763 '
764 ac_precious_vars='build_alias
765 host_alias
766 target_alias
767 CPP
768 CPPFLAGS
769 CXXCPP'
770
771
772 # Initialize some variables set by options.
773 ac_init_help=
774 ac_init_version=false
775 ac_unrecognized_opts=
776 ac_unrecognized_sep=
777 # The variables have the same names as the options, with
778 # dashes changed to underlines.
779 cache_file=/dev/null
780 exec_prefix=NONE
781 no_create=
782 no_recursion=
783 prefix=NONE
784 program_prefix=NONE
785 program_suffix=NONE
786 program_transform_name=s,x,x,
787 silent=
788 site=
789 srcdir=
790 verbose=
791 x_includes=NONE
792 x_libraries=NONE
793
794 # Installation directory options.
795 # These are left unexpanded so users can "make install exec_prefix=/foo"
796 # and all the variables that are supposed to be based on exec_prefix
797 # by default will actually change.
798 # Use braces instead of parens because sh, perl, etc. also accept them.
799 # (The list follows the same order as the GNU Coding Standards.)
800 bindir='${exec_prefix}/bin'
801 sbindir='${exec_prefix}/sbin'
802 libexecdir='${exec_prefix}/libexec'
803 datarootdir='${prefix}/share'
804 datadir='${datarootdir}'
805 sysconfdir='${prefix}/etc'
806 sharedstatedir='${prefix}/com'
807 localstatedir='${prefix}/var'
808 includedir='${prefix}/include'
809 oldincludedir='/usr/include'
810 docdir='${datarootdir}/doc/${PACKAGE}'
811 infodir='${datarootdir}/info'
812 htmldir='${docdir}'
813 dvidir='${docdir}'
814 pdfdir='${docdir}'
815 psdir='${docdir}'
816 libdir='${exec_prefix}/lib'
817 localedir='${datarootdir}/locale'
818 mandir='${datarootdir}/man'
819
820 ac_prev=
821 ac_dashdash=
822 for ac_option
823 do
824 # If the previous option needs an argument, assign it.
825 if test -n "$ac_prev"; then
826 eval $ac_prev=\$ac_option
827 ac_prev=
828 continue
829 fi
830
831 case $ac_option in
832 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
833 *) ac_optarg=yes ;;
834 esac
835
836 # Accept the important Cygnus configure options, so we can diagnose typos.
837
838 case $ac_dashdash$ac_option in
839 --)
840 ac_dashdash=yes ;;
841
842 -bindir | --bindir | --bindi | --bind | --bin | --bi)
843 ac_prev=bindir ;;
844 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
845 bindir=$ac_optarg ;;
846
847 -build | --build | --buil | --bui | --bu)
848 ac_prev=build_alias ;;
849 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
850 build_alias=$ac_optarg ;;
851
852 -cache-file | --cache-file | --cache-fil | --cache-fi \
853 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
854 ac_prev=cache_file ;;
855 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
856 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
857 cache_file=$ac_optarg ;;
858
859 --config-cache | -C)
860 cache_file=config.cache ;;
861
862 -datadir | --datadir | --datadi | --datad)
863 ac_prev=datadir ;;
864 -datadir=* | --datadir=* | --datadi=* | --datad=*)
865 datadir=$ac_optarg ;;
866
867 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
868 | --dataroo | --dataro | --datar)
869 ac_prev=datarootdir ;;
870 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
871 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
872 datarootdir=$ac_optarg ;;
873
874 -disable-* | --disable-*)
875 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878 as_fn_error "invalid feature name: $ac_useropt"
879 ac_useropt_orig=$ac_useropt
880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881 case $ac_user_opts in
882 *"
883 "enable_$ac_useropt"
884 "*) ;;
885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
886 ac_unrecognized_sep=', ';;
887 esac
888 eval enable_$ac_useropt=no ;;
889
890 -docdir | --docdir | --docdi | --doc | --do)
891 ac_prev=docdir ;;
892 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
893 docdir=$ac_optarg ;;
894
895 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896 ac_prev=dvidir ;;
897 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
898 dvidir=$ac_optarg ;;
899
900 -enable-* | --enable-*)
901 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904 as_fn_error "invalid feature name: $ac_useropt"
905 ac_useropt_orig=$ac_useropt
906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907 case $ac_user_opts in
908 *"
909 "enable_$ac_useropt"
910 "*) ;;
911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
912 ac_unrecognized_sep=', ';;
913 esac
914 eval enable_$ac_useropt=\$ac_optarg ;;
915
916 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
917 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
918 | --exec | --exe | --ex)
919 ac_prev=exec_prefix ;;
920 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
921 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
922 | --exec=* | --exe=* | --ex=*)
923 exec_prefix=$ac_optarg ;;
924
925 -gas | --gas | --ga | --g)
926 # Obsolete; use --with-gas.
927 with_gas=yes ;;
928
929 -help | --help | --hel | --he | -h)
930 ac_init_help=long ;;
931 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
932 ac_init_help=recursive ;;
933 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
934 ac_init_help=short ;;
935
936 -host | --host | --hos | --ho)
937 ac_prev=host_alias ;;
938 -host=* | --host=* | --hos=* | --ho=*)
939 host_alias=$ac_optarg ;;
940
941 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
942 ac_prev=htmldir ;;
943 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
944 | --ht=*)
945 htmldir=$ac_optarg ;;
946
947 -includedir | --includedir | --includedi | --included | --include \
948 | --includ | --inclu | --incl | --inc)
949 ac_prev=includedir ;;
950 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
951 | --includ=* | --inclu=* | --incl=* | --inc=*)
952 includedir=$ac_optarg ;;
953
954 -infodir | --infodir | --infodi | --infod | --info | --inf)
955 ac_prev=infodir ;;
956 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
957 infodir=$ac_optarg ;;
958
959 -libdir | --libdir | --libdi | --libd)
960 ac_prev=libdir ;;
961 -libdir=* | --libdir=* | --libdi=* | --libd=*)
962 libdir=$ac_optarg ;;
963
964 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
965 | --libexe | --libex | --libe)
966 ac_prev=libexecdir ;;
967 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
968 | --libexe=* | --libex=* | --libe=*)
969 libexecdir=$ac_optarg ;;
970
971 -localedir | --localedir | --localedi | --localed | --locale)
972 ac_prev=localedir ;;
973 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
974 localedir=$ac_optarg ;;
975
976 -localstatedir | --localstatedir | --localstatedi | --localstated \
977 | --localstate | --localstat | --localsta | --localst | --locals)
978 ac_prev=localstatedir ;;
979 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
980 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
981 localstatedir=$ac_optarg ;;
982
983 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
984 ac_prev=mandir ;;
985 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
986 mandir=$ac_optarg ;;
987
988 -nfp | --nfp | --nf)
989 # Obsolete; use --without-fp.
990 with_fp=no ;;
991
992 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
993 | --no-cr | --no-c | -n)
994 no_create=yes ;;
995
996 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
997 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
998 no_recursion=yes ;;
999
1000 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1001 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1002 | --oldin | --oldi | --old | --ol | --o)
1003 ac_prev=oldincludedir ;;
1004 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1005 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1006 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1007 oldincludedir=$ac_optarg ;;
1008
1009 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1010 ac_prev=prefix ;;
1011 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1012 prefix=$ac_optarg ;;
1013
1014 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1015 | --program-pre | --program-pr | --program-p)
1016 ac_prev=program_prefix ;;
1017 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1018 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1019 program_prefix=$ac_optarg ;;
1020
1021 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1022 | --program-suf | --program-su | --program-s)
1023 ac_prev=program_suffix ;;
1024 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1025 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1026 program_suffix=$ac_optarg ;;
1027
1028 -program-transform-name | --program-transform-name \
1029 | --program-transform-nam | --program-transform-na \
1030 | --program-transform-n | --program-transform- \
1031 | --program-transform | --program-transfor \
1032 | --program-transfo | --program-transf \
1033 | --program-trans | --program-tran \
1034 | --progr-tra | --program-tr | --program-t)
1035 ac_prev=program_transform_name ;;
1036 -program-transform-name=* | --program-transform-name=* \
1037 | --program-transform-nam=* | --program-transform-na=* \
1038 | --program-transform-n=* | --program-transform-=* \
1039 | --program-transform=* | --program-transfor=* \
1040 | --program-transfo=* | --program-transf=* \
1041 | --program-trans=* | --program-tran=* \
1042 | --progr-tra=* | --program-tr=* | --program-t=*)
1043 program_transform_name=$ac_optarg ;;
1044
1045 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1046 ac_prev=pdfdir ;;
1047 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1048 pdfdir=$ac_optarg ;;
1049
1050 -psdir | --psdir | --psdi | --psd | --ps)
1051 ac_prev=psdir ;;
1052 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1053 psdir=$ac_optarg ;;
1054
1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1057 silent=yes ;;
1058
1059 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1060 ac_prev=sbindir ;;
1061 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1062 | --sbi=* | --sb=*)
1063 sbindir=$ac_optarg ;;
1064
1065 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1066 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1067 | --sharedst | --shareds | --shared | --share | --shar \
1068 | --sha | --sh)
1069 ac_prev=sharedstatedir ;;
1070 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1071 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1072 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1073 | --sha=* | --sh=*)
1074 sharedstatedir=$ac_optarg ;;
1075
1076 -site | --site | --sit)
1077 ac_prev=site ;;
1078 -site=* | --site=* | --sit=*)
1079 site=$ac_optarg ;;
1080
1081 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1082 ac_prev=srcdir ;;
1083 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1084 srcdir=$ac_optarg ;;
1085
1086 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1087 | --syscon | --sysco | --sysc | --sys | --sy)
1088 ac_prev=sysconfdir ;;
1089 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1090 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1091 sysconfdir=$ac_optarg ;;
1092
1093 -target | --target | --targe | --targ | --tar | --ta | --t)
1094 ac_prev=target_alias ;;
1095 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1096 target_alias=$ac_optarg ;;
1097
1098 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1099 verbose=yes ;;
1100
1101 -version | --version | --versio | --versi | --vers | -V)
1102 ac_init_version=: ;;
1103
1104 -with-* | --with-*)
1105 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 as_fn_error "invalid package name: $ac_useropt"
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1112 *"
1113 "with_$ac_useropt"
1114 "*) ;;
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1117 esac
1118 eval with_$ac_useropt=\$ac_optarg ;;
1119
1120 -without-* | --without-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error "invalid package name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1128 *"
1129 "with_$ac_useropt"
1130 "*) ;;
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1133 esac
1134 eval with_$ac_useropt=no ;;
1135
1136 --x)
1137 # Obsolete; use --with-x.
1138 with_x=yes ;;
1139
1140 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1141 | --x-incl | --x-inc | --x-in | --x-i)
1142 ac_prev=x_includes ;;
1143 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1144 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1145 x_includes=$ac_optarg ;;
1146
1147 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1148 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1149 ac_prev=x_libraries ;;
1150 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1151 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1152 x_libraries=$ac_optarg ;;
1153
1154 -*) as_fn_error "unrecognized option: \`$ac_option'
1155 Try \`$0 --help' for more information."
1156 ;;
1157
1158 *=*)
1159 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1160 # Reject names that are not valid shell variable names.
1161 case $ac_envvar in #(
1162 '' | [0-9]* | *[!_$as_cr_alnum]* )
1163 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1164 esac
1165 eval $ac_envvar=\$ac_optarg
1166 export $ac_envvar ;;
1167
1168 *)
1169 # FIXME: should be removed in autoconf 3.0.
1170 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1171 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1173 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1174 ;;
1175
1176 esac
1177 done
1178
1179 if test -n "$ac_prev"; then
1180 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1181 as_fn_error "missing argument to $ac_option"
1182 fi
1183
1184 if test -n "$ac_unrecognized_opts"; then
1185 case $enable_option_checking in
1186 no) ;;
1187 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1188 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1189 esac
1190 fi
1191
1192 # Check all directory arguments for consistency.
1193 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1194 datadir sysconfdir sharedstatedir localstatedir includedir \
1195 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1196 libdir localedir mandir
1197 do
1198 eval ac_val=\$$ac_var
1199 # Remove trailing slashes.
1200 case $ac_val in
1201 */ )
1202 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1203 eval $ac_var=\$ac_val;;
1204 esac
1205 # Be sure to have absolute directory names.
1206 case $ac_val in
1207 [\\/$]* | ?:[\\/]* ) continue;;
1208 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1209 esac
1210 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1211 done
1212
1213 # There might be people who depend on the old broken behavior: `$host'
1214 # used to hold the argument of --host etc.
1215 # FIXME: To remove some day.
1216 build=$build_alias
1217 host=$host_alias
1218 target=$target_alias
1219
1220 # FIXME: To remove some day.
1221 if test "x$host_alias" != x; then
1222 if test "x$build_alias" = x; then
1223 cross_compiling=maybe
1224 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1225 If a cross compiler is detected then cross compile mode will be used." >&2
1226 elif test "x$build_alias" != "x$host_alias"; then
1227 cross_compiling=yes
1228 fi
1229 fi
1230
1231 ac_tool_prefix=
1232 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1233
1234 test "$silent" = yes && exec 6>/dev/null
1235
1236
1237 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1238 ac_ls_di=`ls -di .` &&
1239 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1240 as_fn_error "working directory cannot be determined"
1241 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1242 as_fn_error "pwd does not report name of working directory"
1243
1244
1245 # Find the source files, if location was not specified.
1246 if test -z "$srcdir"; then
1247 ac_srcdir_defaulted=yes
1248 # Try the directory containing this script, then the parent directory.
1249 ac_confdir=`$as_dirname -- "$as_myself" ||
1250 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1251 X"$as_myself" : 'X\(//\)[^/]' \| \
1252 X"$as_myself" : 'X\(//\)$' \| \
1253 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1254 $as_echo X"$as_myself" |
1255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1256 s//\1/
1257 q
1258 }
1259 /^X\(\/\/\)[^/].*/{
1260 s//\1/
1261 q
1262 }
1263 /^X\(\/\/\)$/{
1264 s//\1/
1265 q
1266 }
1267 /^X\(\/\).*/{
1268 s//\1/
1269 q
1270 }
1271 s/.*/./; q'`
1272 srcdir=$ac_confdir
1273 if test ! -r "$srcdir/$ac_unique_file"; then
1274 srcdir=..
1275 fi
1276 else
1277 ac_srcdir_defaulted=no
1278 fi
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1281 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1282 fi
1283 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1284 ac_abs_confdir=`(
1285 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1286 pwd)`
1287 # When building in place, set srcdir=.
1288 if test "$ac_abs_confdir" = "$ac_pwd"; then
1289 srcdir=.
1290 fi
1291 # Remove unnecessary trailing slashes from srcdir.
1292 # Double slashes in file names in object file debugging info
1293 # mess up M-x gdb in Emacs.
1294 case $srcdir in
1295 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1296 esac
1297 for ac_var in $ac_precious_vars; do
1298 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1299 eval ac_env_${ac_var}_value=\$${ac_var}
1300 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1302 done
1303
1304 #
1305 # Report the --help message.
1306 #
1307 if test "$ac_init_help" = "long"; then
1308 # Omit some internal or obsolete options to make the list less imposing.
1309 # This message is too long to be a string in the A/UX 3.1 sh.
1310 cat <<_ACEOF
1311 \`configure' configures this package to adapt to many kinds of systems.
1312
1313 Usage: $0 [OPTION]... [VAR=VALUE]...
1314
1315 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1316 VAR=VALUE. See below for descriptions of some of the useful variables.
1317
1318 Defaults for the options are specified in brackets.
1319
1320 Configuration:
1321 -h, --help display this help and exit
1322 --help=short display options specific to this package
1323 --help=recursive display the short help of all the included packages
1324 -V, --version display version information and exit
1325 -q, --quiet, --silent do not print \`checking...' messages
1326 --cache-file=FILE cache test results in FILE [disabled]
1327 -C, --config-cache alias for \`--cache-file=config.cache'
1328 -n, --no-create do not create output files
1329 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1330
1331 Installation directories:
1332 --prefix=PREFIX install architecture-independent files in PREFIX
1333 [$ac_default_prefix]
1334 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1335 [PREFIX]
1336
1337 By default, \`make install' will install all the files in
1338 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1339 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1340 for instance \`--prefix=\$HOME'.
1341
1342 For better control, use the options below.
1343
1344 Fine tuning of the installation directories:
1345 --bindir=DIR user executables [EPREFIX/bin]
1346 --sbindir=DIR system admin executables [EPREFIX/sbin]
1347 --libexecdir=DIR program executables [EPREFIX/libexec]
1348 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1349 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1350 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1351 --libdir=DIR object code libraries [EPREFIX/lib]
1352 --includedir=DIR C header files [PREFIX/include]
1353 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1354 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1355 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1356 --infodir=DIR info documentation [DATAROOTDIR/info]
1357 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1358 --mandir=DIR man documentation [DATAROOTDIR/man]
1359 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1360 --htmldir=DIR html documentation [DOCDIR]
1361 --dvidir=DIR dvi documentation [DOCDIR]
1362 --pdfdir=DIR pdf documentation [DOCDIR]
1363 --psdir=DIR ps documentation [DOCDIR]
1364 _ACEOF
1365
1366 cat <<\_ACEOF
1367
1368 Program names:
1369 --program-prefix=PREFIX prepend PREFIX to installed program names
1370 --program-suffix=SUFFIX append SUFFIX to installed program names
1371 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1372
1373 System types:
1374 --build=BUILD configure for building on BUILD [guessed]
1375 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1376 --target=TARGET configure for building compilers for TARGET [HOST]
1377 _ACEOF
1378 fi
1379
1380 if test -n "$ac_init_help"; then
1381
1382 cat <<\_ACEOF
1383
1384 Optional Features:
1385 --disable-option-checking ignore unrecognized --enable/--with options
1386 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1387 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1388 --enable-multilib build many library versions (default)
1389 --disable-dependency-tracking speeds up one-time build
1390 --enable-dependency-tracking do not reject slow dependency extractors
1391 --enable-maintainer-mode enable make rules and dependencies not useful
1392 (and sometimes confusing) to the casual installer
1393 --enable-shared[=PKGS] build shared libraries [default=yes]
1394 --enable-static[=PKGS] build static libraries [default=yes]
1395 --enable-fast-install[=PKGS]
1396 optimize for fast installation [default=yes]
1397 --disable-libtool-lock avoid locking (might break parallel builds)
1398 --enable-parallel-mark parallelize marking and free list construction
1399 --enable-gc-debug include full support for pointer backtracing etc.
1400
1401 Optional Packages:
1402 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1403 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1404 --with-pic try to use only PIC/non-PIC objects [default=use
1405 both]
1406 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1407 --with-target-subdir=SUBDIR
1408 configuring with a cross compiler
1409 --with-cross-host=HOST configuring with a cross compiler
1410 --with-ecos enable runtime eCos target support
1411
1412 Some influential environment variables:
1413 CC C compiler command
1414 CFLAGS C compiler flags
1415 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1416 nonstandard directory <lib dir>
1417 LIBS libraries to pass to the linker, e.g. -l<library>
1418 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1419 you have headers in a nonstandard directory <include dir>
1420 CXX C++ compiler command
1421 CXXFLAGS C++ compiler flags
1422 CPP C preprocessor
1423 CXXCPP C++ preprocessor
1424
1425 Use these variables to override the choices made by `configure' or to help
1426 it to find libraries and programs with nonstandard names/locations.
1427
1428 Report bugs to the package provider.
1429 _ACEOF
1430 ac_status=$?
1431 fi
1432
1433 if test "$ac_init_help" = "recursive"; then
1434 # If there are subdirs, report their specific --help.
1435 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1436 test -d "$ac_dir" ||
1437 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1438 continue
1439 ac_builddir=.
1440
1441 case "$ac_dir" in
1442 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443 *)
1444 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1445 # A ".." for each directory in $ac_dir_suffix.
1446 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1447 case $ac_top_builddir_sub in
1448 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1450 esac ;;
1451 esac
1452 ac_abs_top_builddir=$ac_pwd
1453 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1454 # for backward compatibility:
1455 ac_top_builddir=$ac_top_build_prefix
1456
1457 case $srcdir in
1458 .) # We are building in place.
1459 ac_srcdir=.
1460 ac_top_srcdir=$ac_top_builddir_sub
1461 ac_abs_top_srcdir=$ac_pwd ;;
1462 [\\/]* | ?:[\\/]* ) # Absolute name.
1463 ac_srcdir=$srcdir$ac_dir_suffix;
1464 ac_top_srcdir=$srcdir
1465 ac_abs_top_srcdir=$srcdir ;;
1466 *) # Relative name.
1467 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1468 ac_top_srcdir=$ac_top_build_prefix$srcdir
1469 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1470 esac
1471 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1472
1473 cd "$ac_dir" || { ac_status=$?; continue; }
1474 # Check for guested configure.
1475 if test -f "$ac_srcdir/configure.gnu"; then
1476 echo &&
1477 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1478 elif test -f "$ac_srcdir/configure"; then
1479 echo &&
1480 $SHELL "$ac_srcdir/configure" --help=recursive
1481 else
1482 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1483 fi || ac_status=$?
1484 cd "$ac_pwd" || { ac_status=$?; break; }
1485 done
1486 fi
1487
1488 test -n "$ac_init_help" && exit $ac_status
1489 if $ac_init_version; then
1490 cat <<\_ACEOF
1491 configure
1492 generated by GNU Autoconf 2.64
1493
1494 Copyright (C) 2009 Free Software Foundation, Inc.
1495 This configure script is free software; the Free Software Foundation
1496 gives unlimited permission to copy, distribute and modify it.
1497 _ACEOF
1498 exit
1499 fi
1500
1501 ## ------------------------ ##
1502 ## Autoconf initialization. ##
1503 ## ------------------------ ##
1504
1505 # ac_fn_c_try_compile LINENO
1506 # --------------------------
1507 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1508 ac_fn_c_try_compile ()
1509 {
1510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1511 rm -f conftest.$ac_objext
1512 if { { ac_try="$ac_compile"
1513 case "(($ac_try" in
1514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1515 *) ac_try_echo=$ac_try;;
1516 esac
1517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1518 $as_echo "$ac_try_echo"; } >&5
1519 (eval "$ac_compile") 2>conftest.err
1520 ac_status=$?
1521 if test -s conftest.err; then
1522 grep -v '^ *+' conftest.err >conftest.er1
1523 cat conftest.er1 >&5
1524 mv -f conftest.er1 conftest.err
1525 fi
1526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1527 test $ac_status = 0; } && {
1528 test -z "$ac_c_werror_flag" ||
1529 test ! -s conftest.err
1530 } && test -s conftest.$ac_objext; then :
1531 ac_retval=0
1532 else
1533 $as_echo "$as_me: failed program was:" >&5
1534 sed 's/^/| /' conftest.$ac_ext >&5
1535
1536 ac_retval=1
1537 fi
1538 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1539 return $ac_retval
1540
1541 } # ac_fn_c_try_compile
1542
1543 # ac_fn_cxx_try_compile LINENO
1544 # ----------------------------
1545 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1546 ac_fn_cxx_try_compile ()
1547 {
1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549 rm -f conftest.$ac_objext
1550 if { { ac_try="$ac_compile"
1551 case "(($ac_try" in
1552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553 *) ac_try_echo=$ac_try;;
1554 esac
1555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556 $as_echo "$ac_try_echo"; } >&5
1557 (eval "$ac_compile") 2>conftest.err
1558 ac_status=$?
1559 if test -s conftest.err; then
1560 grep -v '^ *+' conftest.err >conftest.er1
1561 cat conftest.er1 >&5
1562 mv -f conftest.er1 conftest.err
1563 fi
1564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565 test $ac_status = 0; } && {
1566 test -z "$ac_cxx_werror_flag" ||
1567 test ! -s conftest.err
1568 } && test -s conftest.$ac_objext; then :
1569 ac_retval=0
1570 else
1571 $as_echo "$as_me: failed program was:" >&5
1572 sed 's/^/| /' conftest.$ac_ext >&5
1573
1574 ac_retval=1
1575 fi
1576 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1577 return $ac_retval
1578
1579 } # ac_fn_cxx_try_compile
1580
1581 # ac_fn_c_try_link LINENO
1582 # -----------------------
1583 # Try to link conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_link ()
1585 {
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 rm -f conftest.$ac_objext conftest$ac_exeext
1588 if { { ac_try="$ac_link"
1589 case "(($ac_try" in
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1592 esac
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_link") 2>conftest.err
1596 ac_status=$?
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1601 fi
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } && {
1604 test -z "$ac_c_werror_flag" ||
1605 test ! -s conftest.err
1606 } && test -s conftest$ac_exeext && {
1607 test "$cross_compiling" = yes ||
1608 $as_test_x conftest$ac_exeext
1609 }; then :
1610 ac_retval=0
1611 else
1612 $as_echo "$as_me: failed program was:" >&5
1613 sed 's/^/| /' conftest.$ac_ext >&5
1614
1615 ac_retval=1
1616 fi
1617 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1618 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1619 # interfere with the next link command; also delete a directory that is
1620 # left behind by Apple's compiler. We do this before executing the actions.
1621 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1622 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1623 return $ac_retval
1624
1625 } # ac_fn_c_try_link
1626
1627 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1628 # -------------------------------------------------------
1629 # Tests whether HEADER exists and can be compiled using the include files in
1630 # INCLUDES, setting the cache variable VAR accordingly.
1631 ac_fn_c_check_header_compile ()
1632 {
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1635 $as_echo_n "checking for $2... " >&6; }
1636 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1637 $as_echo_n "(cached) " >&6
1638 else
1639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1640 /* end confdefs.h. */
1641 $4
1642 #include <$2>
1643 _ACEOF
1644 if ac_fn_c_try_compile "$LINENO"; then :
1645 eval "$3=yes"
1646 else
1647 eval "$3=no"
1648 fi
1649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1650 fi
1651 eval ac_res=\$$3
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653 $as_echo "$ac_res" >&6; }
1654 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1655
1656 } # ac_fn_c_check_header_compile
1657
1658 # ac_fn_c_try_cpp LINENO
1659 # ----------------------
1660 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1661 ac_fn_c_try_cpp ()
1662 {
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 if { { ac_try="$ac_cpp conftest.$ac_ext"
1665 case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1672 ac_status=$?
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1677 fi
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } >/dev/null && {
1680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 }; then :
1683 ac_retval=0
1684 else
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1687
1688 ac_retval=1
1689 fi
1690 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1691 return $ac_retval
1692
1693 } # ac_fn_c_try_cpp
1694
1695 # ac_fn_c_try_run LINENO
1696 # ----------------------
1697 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1698 # that executables *can* be run.
1699 ac_fn_c_try_run ()
1700 {
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 if { { ac_try="$ac_link"
1703 case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_link") 2>&5
1710 ac_status=$?
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1713 { { case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_try") 2>&5
1720 ac_status=$?
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; }; }; then :
1723 ac_retval=0
1724 else
1725 $as_echo "$as_me: program exited with status $ac_status" >&5
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 ac_retval=$ac_status
1730 fi
1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1733 return $ac_retval
1734
1735 } # ac_fn_c_try_run
1736
1737 # ac_fn_c_check_func LINENO FUNC VAR
1738 # ----------------------------------
1739 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1740 ac_fn_c_check_func ()
1741 {
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1746 $as_echo_n "(cached) " >&6
1747 else
1748 if test x$gcc_no_link = xyes; then
1749 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1750 fi
1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1752 /* end confdefs.h. */
1753 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1755 #define $2 innocuous_$2
1756
1757 /* System header to define __stub macros and hopefully few prototypes,
1758 which can conflict with char $2 (); below.
1759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1760 <limits.h> exists even on freestanding compilers. */
1761
1762 #ifdef __STDC__
1763 # include <limits.h>
1764 #else
1765 # include <assert.h>
1766 #endif
1767
1768 #undef $2
1769
1770 /* Override any GCC internal prototype to avoid an error.
1771 Use char because int might match the return type of a GCC
1772 builtin and then its argument prototype would still apply. */
1773 #ifdef __cplusplus
1774 extern "C"
1775 #endif
1776 char $2 ();
1777 /* The GNU C library defines this for functions which it implements
1778 to always fail with ENOSYS. Some functions are actually named
1779 something starting with __ and the normal name is an alias. */
1780 #if defined __stub_$2 || defined __stub___$2
1781 choke me
1782 #endif
1783
1784 int
1785 main ()
1786 {
1787 return $2 ();
1788 ;
1789 return 0;
1790 }
1791 _ACEOF
1792 if ac_fn_c_try_link "$LINENO"; then :
1793 eval "$3=yes"
1794 else
1795 eval "$3=no"
1796 fi
1797 rm -f core conftest.err conftest.$ac_objext \
1798 conftest$ac_exeext conftest.$ac_ext
1799 fi
1800 eval ac_res=\$$3
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802 $as_echo "$ac_res" >&6; }
1803 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804
1805 } # ac_fn_c_check_func
1806
1807 # ac_fn_cxx_try_cpp LINENO
1808 # ------------------------
1809 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1810 ac_fn_cxx_try_cpp ()
1811 {
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 if { { ac_try="$ac_cpp conftest.$ac_ext"
1814 case "(($ac_try" in
1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1817 esac
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1821 ac_status=$?
1822 if test -s conftest.err; then
1823 grep -v '^ *+' conftest.err >conftest.er1
1824 cat conftest.er1 >&5
1825 mv -f conftest.er1 conftest.err
1826 fi
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } >/dev/null && {
1829 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1830 test ! -s conftest.err
1831 }; then :
1832 ac_retval=0
1833 else
1834 $as_echo "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.$ac_ext >&5
1836
1837 ac_retval=1
1838 fi
1839 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1840 return $ac_retval
1841
1842 } # ac_fn_cxx_try_cpp
1843
1844 # ac_fn_cxx_try_link LINENO
1845 # -------------------------
1846 # Try to link conftest.$ac_ext, and return whether this succeeded.
1847 ac_fn_cxx_try_link ()
1848 {
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 rm -f conftest.$ac_objext conftest$ac_exeext
1851 if { { ac_try="$ac_link"
1852 case "(($ac_try" in
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1855 esac
1856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 $as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_link") 2>conftest.err
1859 ac_status=$?
1860 if test -s conftest.err; then
1861 grep -v '^ *+' conftest.err >conftest.er1
1862 cat conftest.er1 >&5
1863 mv -f conftest.er1 conftest.err
1864 fi
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } && {
1867 test -z "$ac_cxx_werror_flag" ||
1868 test ! -s conftest.err
1869 } && test -s conftest$ac_exeext && {
1870 test "$cross_compiling" = yes ||
1871 $as_test_x conftest$ac_exeext
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 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1881 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1882 # interfere with the next link command; also delete a directory that is
1883 # left behind by Apple's compiler. We do this before executing the actions.
1884 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1885 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1886 return $ac_retval
1887
1888 } # ac_fn_cxx_try_link
1889
1890 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1891 # ----------------------------------------------------
1892 # Tries to find if the field MEMBER exists in type AGGR, after including
1893 # INCLUDES, setting cache variable VAR accordingly.
1894 ac_fn_c_check_member ()
1895 {
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1898 $as_echo_n "checking for $2.$3... " >&6; }
1899 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1900 $as_echo_n "(cached) " >&6
1901 else
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h. */
1904 $5
1905 int
1906 main ()
1907 {
1908 static $2 ac_aggr;
1909 if (ac_aggr.$3)
1910 return 0;
1911 ;
1912 return 0;
1913 }
1914 _ACEOF
1915 if ac_fn_c_try_compile "$LINENO"; then :
1916 eval "$4=yes"
1917 else
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1920 $5
1921 int
1922 main ()
1923 {
1924 static $2 ac_aggr;
1925 if (sizeof ac_aggr.$3)
1926 return 0;
1927 ;
1928 return 0;
1929 }
1930 _ACEOF
1931 if ac_fn_c_try_compile "$LINENO"; then :
1932 eval "$4=yes"
1933 else
1934 eval "$4=no"
1935 fi
1936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937 fi
1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939 fi
1940 eval ac_res=\$$4
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942 $as_echo "$ac_res" >&6; }
1943 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1944
1945 } # ac_fn_c_check_member
1946
1947 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1948 # -------------------------------------------------------
1949 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1950 # the include files in INCLUDES and setting the cache variable VAR
1951 # accordingly.
1952 ac_fn_c_check_header_mongrel ()
1953 {
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957 $as_echo_n "checking for $2... " >&6; }
1958 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1959 $as_echo_n "(cached) " >&6
1960 fi
1961 eval ac_res=\$$3
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963 $as_echo "$ac_res" >&6; }
1964 else
1965 # Is the header compilable?
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1967 $as_echo_n "checking $2 usability... " >&6; }
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1970 $4
1971 #include <$2>
1972 _ACEOF
1973 if ac_fn_c_try_compile "$LINENO"; then :
1974 ac_header_compiler=yes
1975 else
1976 ac_header_compiler=no
1977 fi
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1980 $as_echo "$ac_header_compiler" >&6; }
1981
1982 # Is the header present?
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1984 $as_echo_n "checking $2 presence... " >&6; }
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1987 #include <$2>
1988 _ACEOF
1989 if ac_fn_c_try_cpp "$LINENO"; then :
1990 ac_header_preproc=yes
1991 else
1992 ac_header_preproc=no
1993 fi
1994 rm -f conftest.err conftest.$ac_ext
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1996 $as_echo "$ac_header_preproc" >&6; }
1997
1998 # So? What about this header?
1999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2000 yes:no: )
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2002 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2004 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2005 ;;
2006 no:yes:* )
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2008 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2010 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2012 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2014 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2016 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2017 ;;
2018 esac
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2020 $as_echo_n "checking for $2... " >&6; }
2021 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2022 $as_echo_n "(cached) " >&6
2023 else
2024 eval "$3=\$ac_header_compiler"
2025 fi
2026 eval ac_res=\$$3
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028 $as_echo "$ac_res" >&6; }
2029 fi
2030 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2031
2032 } # ac_fn_c_check_header_mongrel
2033 cat >config.log <<_ACEOF
2034 This file contains any messages produced by compilers while
2035 running configure, to aid debugging if configure makes a mistake.
2036
2037 It was created by $as_me, which was
2038 generated by GNU Autoconf 2.64. Invocation command line was
2039
2040 $ $0 $@
2041
2042 _ACEOF
2043 exec 5>>config.log
2044 {
2045 cat <<_ASUNAME
2046 ## --------- ##
2047 ## Platform. ##
2048 ## --------- ##
2049
2050 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2051 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2052 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2053 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2054 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2055
2056 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2057 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2058
2059 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2060 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2061 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2062 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2063 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2064 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2065 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2066
2067 _ASUNAME
2068
2069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070 for as_dir in $PATH
2071 do
2072 IFS=$as_save_IFS
2073 test -z "$as_dir" && as_dir=.
2074 $as_echo "PATH: $as_dir"
2075 done
2076 IFS=$as_save_IFS
2077
2078 } >&5
2079
2080 cat >&5 <<_ACEOF
2081
2082
2083 ## ----------- ##
2084 ## Core tests. ##
2085 ## ----------- ##
2086
2087 _ACEOF
2088
2089
2090 # Keep a trace of the command line.
2091 # Strip out --no-create and --no-recursion so they do not pile up.
2092 # Strip out --silent because we don't want to record it for future runs.
2093 # Also quote any args containing shell meta-characters.
2094 # Make two passes to allow for proper duplicate-argument suppression.
2095 ac_configure_args=
2096 ac_configure_args0=
2097 ac_configure_args1=
2098 ac_must_keep_next=false
2099 for ac_pass in 1 2
2100 do
2101 for ac_arg
2102 do
2103 case $ac_arg in
2104 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2106 | -silent | --silent | --silen | --sile | --sil)
2107 continue ;;
2108 *\'*)
2109 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2110 esac
2111 case $ac_pass in
2112 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2113 2)
2114 as_fn_append ac_configure_args1 " '$ac_arg'"
2115 if test $ac_must_keep_next = true; then
2116 ac_must_keep_next=false # Got value, back to normal.
2117 else
2118 case $ac_arg in
2119 *=* | --config-cache | -C | -disable-* | --disable-* \
2120 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2121 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2122 | -with-* | --with-* | -without-* | --without-* | --x)
2123 case "$ac_configure_args0 " in
2124 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2125 esac
2126 ;;
2127 -* ) ac_must_keep_next=true ;;
2128 esac
2129 fi
2130 as_fn_append ac_configure_args " '$ac_arg'"
2131 ;;
2132 esac
2133 done
2134 done
2135 { ac_configure_args0=; unset ac_configure_args0;}
2136 { ac_configure_args1=; unset ac_configure_args1;}
2137
2138 # When interrupted or exit'd, cleanup temporary files, and complete
2139 # config.log. We remove comments because anyway the quotes in there
2140 # would cause problems or look ugly.
2141 # WARNING: Use '\'' to represent an apostrophe within the trap.
2142 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2143 trap 'exit_status=$?
2144 # Save into config.log some information that might help in debugging.
2145 {
2146 echo
2147
2148 cat <<\_ASBOX
2149 ## ---------------- ##
2150 ## Cache variables. ##
2151 ## ---------------- ##
2152 _ASBOX
2153 echo
2154 # The following way of writing the cache mishandles newlines in values,
2155 (
2156 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2157 eval ac_val=\$$ac_var
2158 case $ac_val in #(
2159 *${as_nl}*)
2160 case $ac_var in #(
2161 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2162 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2163 esac
2164 case $ac_var in #(
2165 _ | IFS | as_nl) ;; #(
2166 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2167 *) { eval $ac_var=; unset $ac_var;} ;;
2168 esac ;;
2169 esac
2170 done
2171 (set) 2>&1 |
2172 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2173 *${as_nl}ac_space=\ *)
2174 sed -n \
2175 "s/'\''/'\''\\\\'\'''\''/g;
2176 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2177 ;; #(
2178 *)
2179 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2180 ;;
2181 esac |
2182 sort
2183 )
2184 echo
2185
2186 cat <<\_ASBOX
2187 ## ----------------- ##
2188 ## Output variables. ##
2189 ## ----------------- ##
2190 _ASBOX
2191 echo
2192 for ac_var in $ac_subst_vars
2193 do
2194 eval ac_val=\$$ac_var
2195 case $ac_val in
2196 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2197 esac
2198 $as_echo "$ac_var='\''$ac_val'\''"
2199 done | sort
2200 echo
2201
2202 if test -n "$ac_subst_files"; then
2203 cat <<\_ASBOX
2204 ## ------------------- ##
2205 ## File substitutions. ##
2206 ## ------------------- ##
2207 _ASBOX
2208 echo
2209 for ac_var in $ac_subst_files
2210 do
2211 eval ac_val=\$$ac_var
2212 case $ac_val in
2213 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2214 esac
2215 $as_echo "$ac_var='\''$ac_val'\''"
2216 done | sort
2217 echo
2218 fi
2219
2220 if test -s confdefs.h; then
2221 cat <<\_ASBOX
2222 ## ----------- ##
2223 ## confdefs.h. ##
2224 ## ----------- ##
2225 _ASBOX
2226 echo
2227 cat confdefs.h
2228 echo
2229 fi
2230 test "$ac_signal" != 0 &&
2231 $as_echo "$as_me: caught signal $ac_signal"
2232 $as_echo "$as_me: exit $exit_status"
2233 } >&5
2234 rm -f core *.core core.conftest.* &&
2235 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2236 exit $exit_status
2237 ' 0
2238 for ac_signal in 1 2 13 15; do
2239 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2240 done
2241 ac_signal=0
2242
2243 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2244 rm -f -r conftest* confdefs.h
2245
2246 $as_echo "/* confdefs.h */" > confdefs.h
2247
2248 # Predefined preprocessor variables.
2249
2250 cat >>confdefs.h <<_ACEOF
2251 #define PACKAGE_NAME "$PACKAGE_NAME"
2252 _ACEOF
2253
2254 cat >>confdefs.h <<_ACEOF
2255 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2256 _ACEOF
2257
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2260 _ACEOF
2261
2262 cat >>confdefs.h <<_ACEOF
2263 #define PACKAGE_STRING "$PACKAGE_STRING"
2264 _ACEOF
2265
2266 cat >>confdefs.h <<_ACEOF
2267 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2268 _ACEOF
2269
2270 cat >>confdefs.h <<_ACEOF
2271 #define PACKAGE_URL "$PACKAGE_URL"
2272 _ACEOF
2273
2274
2275 # Let the site file select an alternate cache file if it wants to.
2276 # Prefer an explicitly selected file to automatically selected ones.
2277 ac_site_file1=NONE
2278 ac_site_file2=NONE
2279 if test -n "$CONFIG_SITE"; then
2280 ac_site_file1=$CONFIG_SITE
2281 elif test "x$prefix" != xNONE; then
2282 ac_site_file1=$prefix/share/config.site
2283 ac_site_file2=$prefix/etc/config.site
2284 else
2285 ac_site_file1=$ac_default_prefix/share/config.site
2286 ac_site_file2=$ac_default_prefix/etc/config.site
2287 fi
2288 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2289 do
2290 test "x$ac_site_file" = xNONE && continue
2291 if test -r "$ac_site_file"; then
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2293 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2294 sed 's/^/| /' "$ac_site_file" >&5
2295 . "$ac_site_file"
2296 fi
2297 done
2298
2299 if test -r "$cache_file"; then
2300 # Some versions of bash will fail to source /dev/null (special
2301 # files actually), so we avoid doing that.
2302 if test -f "$cache_file"; then
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2304 $as_echo "$as_me: loading cache $cache_file" >&6;}
2305 case $cache_file in
2306 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2307 *) . "./$cache_file";;
2308 esac
2309 fi
2310 else
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2312 $as_echo "$as_me: creating cache $cache_file" >&6;}
2313 >$cache_file
2314 fi
2315
2316 # Check that the precious variables saved in the cache have kept the same
2317 # value.
2318 ac_cache_corrupted=false
2319 for ac_var in $ac_precious_vars; do
2320 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2321 eval ac_new_set=\$ac_env_${ac_var}_set
2322 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2323 eval ac_new_val=\$ac_env_${ac_var}_value
2324 case $ac_old_set,$ac_new_set in
2325 set,)
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2327 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2328 ac_cache_corrupted=: ;;
2329 ,set)
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2331 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2332 ac_cache_corrupted=: ;;
2333 ,);;
2334 *)
2335 if test "x$ac_old_val" != "x$ac_new_val"; then
2336 # differences in whitespace do not lead to failure.
2337 ac_old_val_w=`echo x $ac_old_val`
2338 ac_new_val_w=`echo x $ac_new_val`
2339 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2341 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2342 ac_cache_corrupted=:
2343 else
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2345 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2346 eval $ac_var=\$ac_old_val
2347 fi
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2349 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2351 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2352 fi;;
2353 esac
2354 # Pass precious variables to config.status.
2355 if test "$ac_new_set" = set; then
2356 case $ac_new_val in
2357 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2358 *) ac_arg=$ac_var=$ac_new_val ;;
2359 esac
2360 case " $ac_configure_args " in
2361 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2362 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2363 esac
2364 fi
2365 done
2366 if $ac_cache_corrupted; then
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2370 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2371 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2372 fi
2373 ## -------------------- ##
2374 ## Main body of script. ##
2375 ## -------------------- ##
2376
2377 ac_ext=c
2378 ac_cpp='$CPP $CPPFLAGS'
2379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2382
2383
2384
2385
2386
2387
2388 # This works around the fact that libtool configuration may change LD
2389 # for this particular configuration, but some shells, instead of
2390 # keeping the changes in LD private, export them just because LD is
2391 # exported.
2392 ORIGINAL_LD_FOR_MULTILIBS=$LD
2393
2394 # Default to --enable-multilib
2395 # Check whether --enable-multilib was given.
2396 if test "${enable_multilib+set}" = set; then :
2397 enableval=$enable_multilib; case "$enableval" in
2398 yes) multilib=yes ;;
2399 no) multilib=no ;;
2400 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2401 esac
2402 else
2403 multilib=yes
2404 fi
2405
2406
2407 # We may get other options which we leave undocumented:
2408 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2409 # See config-ml.in if you want the gory details.
2410
2411 if test "$srcdir" = "."; then
2412 if test "$with_target_subdir" != "."; then
2413 multi_basedir="$srcdir/$with_multisrctop../.."
2414 else
2415 multi_basedir="$srcdir/$with_multisrctop.."
2416 fi
2417 else
2418 multi_basedir="$srcdir/.."
2419 fi
2420
2421
2422 # Even if the default multilib is not a cross compilation,
2423 # it may be that some of the other multilibs are.
2424 if test $cross_compiling = no && test $multilib = yes \
2425 && test "x${with_multisubdir}" != x ; then
2426 cross_compiling=maybe
2427 fi
2428
2429 ac_config_commands="$ac_config_commands default-1"
2430
2431
2432 ac_aux_dir=
2433 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2434 for ac_t in install-sh install.sh shtool; do
2435 if test -f "$ac_dir/$ac_t"; then
2436 ac_aux_dir=$ac_dir
2437 ac_install_sh="$ac_aux_dir/$ac_t -c"
2438 break 2
2439 fi
2440 done
2441 done
2442 if test -z "$ac_aux_dir"; then
2443 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2444 fi
2445
2446 # These three variables are undocumented and unsupported,
2447 # and are intended to be withdrawn in a future Autoconf release.
2448 # They can cause serious problems if a builder's source tree is in a directory
2449 # whose full name contains unusual characters.
2450 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2451 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2452 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2453
2454
2455 # Make sure we can run config.sub.
2456 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2457 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2458
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2460 $as_echo_n "checking build system type... " >&6; }
2461 if test "${ac_cv_build+set}" = set; then :
2462 $as_echo_n "(cached) " >&6
2463 else
2464 ac_build_alias=$build_alias
2465 test "x$ac_build_alias" = x &&
2466 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2467 test "x$ac_build_alias" = x &&
2468 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2469 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2470 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2471
2472 fi
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2474 $as_echo "$ac_cv_build" >&6; }
2475 case $ac_cv_build in
2476 *-*-*) ;;
2477 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2478 esac
2479 build=$ac_cv_build
2480 ac_save_IFS=$IFS; IFS='-'
2481 set x $ac_cv_build
2482 shift
2483 build_cpu=$1
2484 build_vendor=$2
2485 shift; shift
2486 # Remember, the first character of IFS is used to create $*,
2487 # except with old shells:
2488 build_os=$*
2489 IFS=$ac_save_IFS
2490 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2491
2492
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2494 $as_echo_n "checking host system type... " >&6; }
2495 if test "${ac_cv_host+set}" = set; then :
2496 $as_echo_n "(cached) " >&6
2497 else
2498 if test "x$host_alias" = x; then
2499 ac_cv_host=$ac_cv_build
2500 else
2501 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2502 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2503 fi
2504
2505 fi
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2507 $as_echo "$ac_cv_host" >&6; }
2508 case $ac_cv_host in
2509 *-*-*) ;;
2510 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2511 esac
2512 host=$ac_cv_host
2513 ac_save_IFS=$IFS; IFS='-'
2514 set x $ac_cv_host
2515 shift
2516 host_cpu=$1
2517 host_vendor=$2
2518 shift; shift
2519 # Remember, the first character of IFS is used to create $*,
2520 # except with old shells:
2521 host_os=$*
2522 IFS=$ac_save_IFS
2523 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2524
2525
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2527 $as_echo_n "checking target system type... " >&6; }
2528 if test "${ac_cv_target+set}" = set; then :
2529 $as_echo_n "(cached) " >&6
2530 else
2531 if test "x$target_alias" = x; then
2532 ac_cv_target=$ac_cv_host
2533 else
2534 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2535 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2536 fi
2537
2538 fi
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2540 $as_echo "$ac_cv_target" >&6; }
2541 case $ac_cv_target in
2542 *-*-*) ;;
2543 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2544 esac
2545 target=$ac_cv_target
2546 ac_save_IFS=$IFS; IFS='-'
2547 set x $ac_cv_target
2548 shift
2549 target_cpu=$1
2550 target_vendor=$2
2551 shift; shift
2552 # Remember, the first character of IFS is used to create $*,
2553 # except with old shells:
2554 target_os=$*
2555 IFS=$ac_save_IFS
2556 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2557
2558
2559 # The aliases save the names the user supplied, while $host etc.
2560 # will get canonicalized.
2561 test -n "$target_alias" &&
2562 test "$program_prefix$program_suffix$program_transform_name" = \
2563 NONENONEs,x,x, &&
2564 program_prefix=${target_alias}-
2565
2566 # Get the 'noncanonical' system names.
2567 case ${build_alias} in
2568 "") build_noncanonical=${build} ;;
2569 *) build_noncanonical=${build_alias} ;;
2570 esac
2571
2572 case ${host_alias} in
2573 "") host_noncanonical=${build_noncanonical} ;;
2574 *) host_noncanonical=${host_alias} ;;
2575 esac
2576
2577 case ${target_alias} in
2578 "") target_noncanonical=${host_noncanonical} ;;
2579 *) target_noncanonical=${target_alias} ;;
2580 esac
2581
2582
2583
2584
2585 # This works around an automake problem.
2586 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
2587
2588
2589 am__api_version='1.11'
2590
2591 # Find a good install program. We prefer a C program (faster),
2592 # so one script is as good as another. But avoid the broken or
2593 # incompatible versions:
2594 # SysV /etc/install, /usr/sbin/install
2595 # SunOS /usr/etc/install
2596 # IRIX /sbin/install
2597 # AIX /bin/install
2598 # AmigaOS /C/install, which installs bootblocks on floppy discs
2599 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2600 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2601 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2602 # OS/2's system install, which has a completely different semantic
2603 # ./install, which can be erroneously created by make from ./install.sh.
2604 # Reject install programs that cannot install multiple files.
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2606 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2607 if test -z "$INSTALL"; then
2608 if test "${ac_cv_path_install+set}" = set; then :
2609 $as_echo_n "(cached) " >&6
2610 else
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH
2613 do
2614 IFS=$as_save_IFS
2615 test -z "$as_dir" && as_dir=.
2616 # Account for people who put trailing slashes in PATH elements.
2617 case $as_dir/ in #((
2618 ./ | .// | /[cC]/* | \
2619 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2620 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2621 /usr/ucb/* ) ;;
2622 *)
2623 # OSF1 and SCO ODT 3.0 have their own names for install.
2624 # Don't use installbsd from OSF since it installs stuff as root
2625 # by default.
2626 for ac_prog in ginstall scoinst install; do
2627 for ac_exec_ext in '' $ac_executable_extensions; do
2628 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2629 if test $ac_prog = install &&
2630 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2631 # AIX install. It has an incompatible calling convention.
2632 :
2633 elif test $ac_prog = install &&
2634 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2635 # program-specific install script used by HP pwplus--don't use.
2636 :
2637 else
2638 rm -rf conftest.one conftest.two conftest.dir
2639 echo one > conftest.one
2640 echo two > conftest.two
2641 mkdir conftest.dir
2642 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2643 test -s conftest.one && test -s conftest.two &&
2644 test -s conftest.dir/conftest.one &&
2645 test -s conftest.dir/conftest.two
2646 then
2647 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2648 break 3
2649 fi
2650 fi
2651 fi
2652 done
2653 done
2654 ;;
2655 esac
2656
2657 done
2658 IFS=$as_save_IFS
2659
2660 rm -rf conftest.one conftest.two conftest.dir
2661
2662 fi
2663 if test "${ac_cv_path_install+set}" = set; then
2664 INSTALL=$ac_cv_path_install
2665 else
2666 # As a last resort, use the slow shell script. Don't cache a
2667 # value for INSTALL within a source directory, because that will
2668 # break other packages using the cache if that directory is
2669 # removed, or if the value is a relative name.
2670 INSTALL=$ac_install_sh
2671 fi
2672 fi
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2674 $as_echo "$INSTALL" >&6; }
2675
2676 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2677 # It thinks the first close brace ends the variable substitution.
2678 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2679
2680 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2681
2682 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2683
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2685 $as_echo_n "checking whether build environment is sane... " >&6; }
2686 # Just in case
2687 sleep 1
2688 echo timestamp > conftest.file
2689 # Reject unsafe characters in $srcdir or the absolute working directory
2690 # name. Accept space and tab only in the latter.
2691 am_lf='
2692 '
2693 case `pwd` in
2694 *[\\\"\#\$\&\'\`$am_lf]*)
2695 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2696 esac
2697 case $srcdir in
2698 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2699 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2700 esac
2701
2702 # Do `set' in a subshell so we don't clobber the current shell's
2703 # arguments. Must try -L first in case configure is actually a
2704 # symlink; some systems play weird games with the mod time of symlinks
2705 # (eg FreeBSD returns the mod time of the symlink's containing
2706 # directory).
2707 if (
2708 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2709 if test "$*" = "X"; then
2710 # -L didn't work.
2711 set X `ls -t "$srcdir/configure" conftest.file`
2712 fi
2713 rm -f conftest.file
2714 if test "$*" != "X $srcdir/configure conftest.file" \
2715 && test "$*" != "X conftest.file $srcdir/configure"; then
2716
2717 # If neither matched, then we have a broken ls. This can happen
2718 # if, for instance, CONFIG_SHELL is bash and it inherits a
2719 # broken ls alias from the environment. This has actually
2720 # happened. Such a system could not be considered "sane".
2721 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2722 alias in your environment" "$LINENO" 5
2723 fi
2724
2725 test "$2" = conftest.file
2726 )
2727 then
2728 # Ok.
2729 :
2730 else
2731 as_fn_error "newly created file is older than distributed files!
2732 Check your system clock" "$LINENO" 5
2733 fi
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2735 $as_echo "yes" >&6; }
2736 test "$program_prefix" != NONE &&
2737 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2738 # Use a double $ so make ignores it.
2739 test "$program_suffix" != NONE &&
2740 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2741 # Double any \ or $.
2742 # By default was `s,x,x', remove it if useless.
2743 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2744 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2745
2746 # expand $ac_aux_dir to an absolute path
2747 am_aux_dir=`cd $ac_aux_dir && pwd`
2748
2749 if test x"${MISSING+set}" != xset; then
2750 case $am_aux_dir in
2751 *\ * | *\ *)
2752 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2753 *)
2754 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2755 esac
2756 fi
2757 # Use eval to expand $SHELL
2758 if eval "$MISSING --run true"; then
2759 am_missing_run="$MISSING --run "
2760 else
2761 am_missing_run=
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2763 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2764 fi
2765
2766 if test x"${install_sh}" != xset; then
2767 case $am_aux_dir in
2768 *\ * | *\ *)
2769 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2770 *)
2771 install_sh="\${SHELL} $am_aux_dir/install-sh"
2772 esac
2773 fi
2774
2775 # Installed binaries are usually stripped using `strip' when the user
2776 # run `make install-strip'. However `strip' might not be the right
2777 # tool to use in cross-compilation environments, therefore Automake
2778 # will honor the `STRIP' environment variable to overrule this program.
2779 if test "$cross_compiling" != no; then
2780 if test -n "$ac_tool_prefix"; then
2781 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2782 set dummy ${ac_tool_prefix}strip; ac_word=$2
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2784 $as_echo_n "checking for $ac_word... " >&6; }
2785 if test "${ac_cv_prog_STRIP+set}" = set; then :
2786 $as_echo_n "(cached) " >&6
2787 else
2788 if test -n "$STRIP"; then
2789 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2790 else
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 for as_dir in $PATH
2793 do
2794 IFS=$as_save_IFS
2795 test -z "$as_dir" && as_dir=.
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2798 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2800 break 2
2801 fi
2802 done
2803 done
2804 IFS=$as_save_IFS
2805
2806 fi
2807 fi
2808 STRIP=$ac_cv_prog_STRIP
2809 if test -n "$STRIP"; then
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2811 $as_echo "$STRIP" >&6; }
2812 else
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2814 $as_echo "no" >&6; }
2815 fi
2816
2817
2818 fi
2819 if test -z "$ac_cv_prog_STRIP"; then
2820 ac_ct_STRIP=$STRIP
2821 # Extract the first word of "strip", so it can be a program name with args.
2822 set dummy strip; ac_word=$2
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2824 $as_echo_n "checking for $ac_word... " >&6; }
2825 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2826 $as_echo_n "(cached) " >&6
2827 else
2828 if test -n "$ac_ct_STRIP"; then
2829 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2830 else
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 for as_dir in $PATH
2833 do
2834 IFS=$as_save_IFS
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2838 ac_cv_prog_ac_ct_STRIP="strip"
2839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 break 2
2841 fi
2842 done
2843 done
2844 IFS=$as_save_IFS
2845
2846 fi
2847 fi
2848 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2849 if test -n "$ac_ct_STRIP"; then
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2851 $as_echo "$ac_ct_STRIP" >&6; }
2852 else
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854 $as_echo "no" >&6; }
2855 fi
2856
2857 if test "x$ac_ct_STRIP" = x; then
2858 STRIP=":"
2859 else
2860 case $cross_compiling:$ac_tool_warned in
2861 yes:)
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2864 ac_tool_warned=yes ;;
2865 esac
2866 STRIP=$ac_ct_STRIP
2867 fi
2868 else
2869 STRIP="$ac_cv_prog_STRIP"
2870 fi
2871
2872 fi
2873 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2874
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2876 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2877 if test -z "$MKDIR_P"; then
2878 if test "${ac_cv_path_mkdir+set}" = set; then :
2879 $as_echo_n "(cached) " >&6
2880 else
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2883 do
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
2886 for ac_prog in mkdir gmkdir; do
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2889 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2890 'mkdir (GNU coreutils) '* | \
2891 'mkdir (coreutils) '* | \
2892 'mkdir (fileutils) '4.1*)
2893 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2894 break 3;;
2895 esac
2896 done
2897 done
2898 done
2899 IFS=$as_save_IFS
2900
2901 fi
2902
2903 if test "${ac_cv_path_mkdir+set}" = set; then
2904 MKDIR_P="$ac_cv_path_mkdir -p"
2905 else
2906 # As a last resort, use the slow shell script. Don't cache a
2907 # value for MKDIR_P within a source directory, because that will
2908 # break other packages using the cache if that directory is
2909 # removed, or if the value is a relative name.
2910 test -d ./--version && rmdir ./--version
2911 MKDIR_P="$ac_install_sh -d"
2912 fi
2913 fi
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2915 $as_echo "$MKDIR_P" >&6; }
2916
2917 mkdir_p="$MKDIR_P"
2918 case $mkdir_p in
2919 [\\/$]* | ?:[\\/]*) ;;
2920 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2921 esac
2922
2923 for ac_prog in gawk mawk nawk awk
2924 do
2925 # Extract the first word of "$ac_prog", so it can be a program name with args.
2926 set dummy $ac_prog; ac_word=$2
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2928 $as_echo_n "checking for $ac_word... " >&6; }
2929 if test "${ac_cv_prog_AWK+set}" = set; then :
2930 $as_echo_n "(cached) " >&6
2931 else
2932 if test -n "$AWK"; then
2933 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2934 else
2935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 for as_dir in $PATH
2937 do
2938 IFS=$as_save_IFS
2939 test -z "$as_dir" && as_dir=.
2940 for ac_exec_ext in '' $ac_executable_extensions; do
2941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2942 ac_cv_prog_AWK="$ac_prog"
2943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 break 2
2945 fi
2946 done
2947 done
2948 IFS=$as_save_IFS
2949
2950 fi
2951 fi
2952 AWK=$ac_cv_prog_AWK
2953 if test -n "$AWK"; then
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2955 $as_echo "$AWK" >&6; }
2956 else
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2958 $as_echo "no" >&6; }
2959 fi
2960
2961
2962 test -n "$AWK" && break
2963 done
2964
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2966 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2967 set x ${MAKE-make}
2968 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2969 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2970 $as_echo_n "(cached) " >&6
2971 else
2972 cat >conftest.make <<\_ACEOF
2973 SHELL = /bin/sh
2974 all:
2975 @echo '@@@%%%=$(MAKE)=@@@%%%'
2976 _ACEOF
2977 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2978 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2979 *@@@%%%=?*=@@@%%%*)
2980 eval ac_cv_prog_make_${ac_make}_set=yes;;
2981 *)
2982 eval ac_cv_prog_make_${ac_make}_set=no;;
2983 esac
2984 rm -f conftest.make
2985 fi
2986 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2988 $as_echo "yes" >&6; }
2989 SET_MAKE=
2990 else
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992 $as_echo "no" >&6; }
2993 SET_MAKE="MAKE=${MAKE-make}"
2994 fi
2995
2996 rm -rf .tst 2>/dev/null
2997 mkdir .tst 2>/dev/null
2998 if test -d .tst; then
2999 am__leading_dot=.
3000 else
3001 am__leading_dot=_
3002 fi
3003 rmdir .tst 2>/dev/null
3004
3005 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3006 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3007 # is not polluted with repeated "-I."
3008 am__isrc=' -I$(srcdir)'
3009 # test to see if srcdir already configured
3010 if test -f $srcdir/config.status; then
3011 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3012 fi
3013 fi
3014
3015 # test whether we have cygpath
3016 if test -z "$CYGPATH_W"; then
3017 if (cygpath --version) >/dev/null 2>/dev/null; then
3018 CYGPATH_W='cygpath -w'
3019 else
3020 CYGPATH_W=echo
3021 fi
3022 fi
3023
3024
3025 # Define the identity of the package.
3026 PACKAGE=gc
3027 VERSION=6.6
3028
3029
3030 # Some tools Automake needs.
3031
3032 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3033
3034
3035 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3036
3037
3038 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3039
3040
3041 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3042
3043
3044 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3045
3046 # We need awk for the "check" target. The system "awk" is bad on
3047 # some platforms.
3048 # Always define AMTAR for backward compatibility.
3049
3050 AMTAR=${AMTAR-"${am_missing_run}tar"}
3051
3052 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3053
3054
3055
3056
3057
3058
3059 # The autoconf 2.5x version of the no-executables hack.
3060
3061
3062 # Yak. We must force CC and CXX to /not/ be precious variables; otherwise
3063 # the wrong, non-multilib-adjusted value will be used in multilibs.
3064 # As a side effect, we have to subst CFLAGS and CXXFLAGS ourselves.
3065
3066
3067
3068 ac_ext=c
3069 ac_cpp='$CPP $CPPFLAGS'
3070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3073 if test -n "$ac_tool_prefix"; then
3074 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3075 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if test "${ac_cv_prog_CC+set}" = set; then :
3079 $as_echo_n "(cached) " >&6
3080 else
3081 if test -n "$CC"; then
3082 ac_cv_prog_CC="$CC" # Let the user override the test.
3083 else
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3086 do
3087 IFS=$as_save_IFS
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 break 2
3094 fi
3095 done
3096 done
3097 IFS=$as_save_IFS
3098
3099 fi
3100 fi
3101 CC=$ac_cv_prog_CC
3102 if test -n "$CC"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3104 $as_echo "$CC" >&6; }
3105 else
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 $as_echo "no" >&6; }
3108 fi
3109
3110
3111 fi
3112 if test -z "$ac_cv_prog_CC"; then
3113 ac_ct_CC=$CC
3114 # Extract the first word of "gcc", so it can be a program name with args.
3115 set dummy gcc; ac_word=$2
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117 $as_echo_n "checking for $ac_word... " >&6; }
3118 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3119 $as_echo_n "(cached) " >&6
3120 else
3121 if test -n "$ac_ct_CC"; then
3122 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3123 else
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125 for as_dir in $PATH
3126 do
3127 IFS=$as_save_IFS
3128 test -z "$as_dir" && as_dir=.
3129 for ac_exec_ext in '' $ac_executable_extensions; do
3130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3131 ac_cv_prog_ac_ct_CC="gcc"
3132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3133 break 2
3134 fi
3135 done
3136 done
3137 IFS=$as_save_IFS
3138
3139 fi
3140 fi
3141 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3142 if test -n "$ac_ct_CC"; then
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3144 $as_echo "$ac_ct_CC" >&6; }
3145 else
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3148 fi
3149
3150 if test "x$ac_ct_CC" = x; then
3151 CC=""
3152 else
3153 case $cross_compiling:$ac_tool_warned in
3154 yes:)
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3157 ac_tool_warned=yes ;;
3158 esac
3159 CC=$ac_ct_CC
3160 fi
3161 else
3162 CC="$ac_cv_prog_CC"
3163 fi
3164
3165 if test -z "$CC"; then
3166 if test -n "$ac_tool_prefix"; then
3167 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3168 set dummy ${ac_tool_prefix}cc; ac_word=$2
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3170 $as_echo_n "checking for $ac_word... " >&6; }
3171 if test "${ac_cv_prog_CC+set}" = set; then :
3172 $as_echo_n "(cached) " >&6
3173 else
3174 if test -n "$CC"; then
3175 ac_cv_prog_CC="$CC" # Let the user override the test.
3176 else
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 for as_dir in $PATH
3179 do
3180 IFS=$as_save_IFS
3181 test -z "$as_dir" && as_dir=.
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3184 ac_cv_prog_CC="${ac_tool_prefix}cc"
3185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3186 break 2
3187 fi
3188 done
3189 done
3190 IFS=$as_save_IFS
3191
3192 fi
3193 fi
3194 CC=$ac_cv_prog_CC
3195 if test -n "$CC"; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3197 $as_echo "$CC" >&6; }
3198 else
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3201 fi
3202
3203
3204 fi
3205 fi
3206 if test -z "$CC"; then
3207 # Extract the first word of "cc", so it can be a program name with args.
3208 set dummy cc; ac_word=$2
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210 $as_echo_n "checking for $ac_word... " >&6; }
3211 if test "${ac_cv_prog_CC+set}" = set; then :
3212 $as_echo_n "(cached) " >&6
3213 else
3214 if test -n "$CC"; then
3215 ac_cv_prog_CC="$CC" # Let the user override the test.
3216 else
3217 ac_prog_rejected=no
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 for as_dir in $PATH
3220 do
3221 IFS=$as_save_IFS
3222 test -z "$as_dir" && as_dir=.
3223 for ac_exec_ext in '' $ac_executable_extensions; do
3224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3225 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3226 ac_prog_rejected=yes
3227 continue
3228 fi
3229 ac_cv_prog_CC="cc"
3230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3231 break 2
3232 fi
3233 done
3234 done
3235 IFS=$as_save_IFS
3236
3237 if test $ac_prog_rejected = yes; then
3238 # We found a bogon in the path, so make sure we never use it.
3239 set dummy $ac_cv_prog_CC
3240 shift
3241 if test $# != 0; then
3242 # We chose a different compiler from the bogus one.
3243 # However, it has the same basename, so the bogon will be chosen
3244 # first if we set CC to just the basename; use the full file name.
3245 shift
3246 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3247 fi
3248 fi
3249 fi
3250 fi
3251 CC=$ac_cv_prog_CC
3252 if test -n "$CC"; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3254 $as_echo "$CC" >&6; }
3255 else
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3258 fi
3259
3260
3261 fi
3262 if test -z "$CC"; then
3263 if test -n "$ac_tool_prefix"; then
3264 for ac_prog in cl.exe
3265 do
3266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 $as_echo_n "checking for $ac_word... " >&6; }
3270 if test "${ac_cv_prog_CC+set}" = set; then :
3271 $as_echo_n "(cached) " >&6
3272 else
3273 if test -n "$CC"; then
3274 ac_cv_prog_CC="$CC" # Let the user override the test.
3275 else
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $PATH
3278 do
3279 IFS=$as_save_IFS
3280 test -z "$as_dir" && as_dir=.
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3283 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285 break 2
3286 fi
3287 done
3288 done
3289 IFS=$as_save_IFS
3290
3291 fi
3292 fi
3293 CC=$ac_cv_prog_CC
3294 if test -n "$CC"; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3296 $as_echo "$CC" >&6; }
3297 else
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3300 fi
3301
3302
3303 test -n "$CC" && break
3304 done
3305 fi
3306 if test -z "$CC"; then
3307 ac_ct_CC=$CC
3308 for ac_prog in cl.exe
3309 do
3310 # Extract the first word of "$ac_prog", so it can be a program name with args.
3311 set dummy $ac_prog; ac_word=$2
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3313 $as_echo_n "checking for $ac_word... " >&6; }
3314 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3315 $as_echo_n "(cached) " >&6
3316 else
3317 if test -n "$ac_ct_CC"; then
3318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3319 else
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3322 do
3323 IFS=$as_save_IFS
3324 test -z "$as_dir" && as_dir=.
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3327 ac_cv_prog_ac_ct_CC="$ac_prog"
3328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 break 2
3330 fi
3331 done
3332 done
3333 IFS=$as_save_IFS
3334
3335 fi
3336 fi
3337 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3338 if test -n "$ac_ct_CC"; then
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3340 $as_echo "$ac_ct_CC" >&6; }
3341 else
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343 $as_echo "no" >&6; }
3344 fi
3345
3346
3347 test -n "$ac_ct_CC" && break
3348 done
3349
3350 if test "x$ac_ct_CC" = x; then
3351 CC=""
3352 else
3353 case $cross_compiling:$ac_tool_warned in
3354 yes:)
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3357 ac_tool_warned=yes ;;
3358 esac
3359 CC=$ac_ct_CC
3360 fi
3361 fi
3362
3363 fi
3364
3365
3366 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3368 as_fn_error "no acceptable C compiler found in \$PATH
3369 See \`config.log' for more details." "$LINENO" 5; }
3370
3371 # Provide some information about the compiler.
3372 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3373 set X $ac_compile
3374 ac_compiler=$2
3375 for ac_option in --version -v -V -qversion; do
3376 { { ac_try="$ac_compiler $ac_option >&5"
3377 case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380 esac
3381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382 $as_echo "$ac_try_echo"; } >&5
3383 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3384 ac_status=$?
3385 if test -s conftest.err; then
3386 sed '10a\
3387 ... rest of stderr output deleted ...
3388 10q' conftest.err >conftest.er1
3389 cat conftest.er1 >&5
3390 rm -f conftest.er1 conftest.err
3391 fi
3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393 test $ac_status = 0; }
3394 done
3395
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h. */
3398
3399 int
3400 main ()
3401 {
3402
3403 ;
3404 return 0;
3405 }
3406 _ACEOF
3407 # FIXME: Cleanup?
3408 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3409 (eval $ac_link) 2>&5
3410 ac_status=$?
3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412 test $ac_status = 0; }; then :
3413 gcc_no_link=no
3414 else
3415 gcc_no_link=yes
3416 fi
3417 if test x$gcc_no_link = xyes; then
3418 # Setting cross_compile will disable run tests; it will
3419 # also disable AC_CHECK_FILE but that's generally
3420 # correct if we can't link.
3421 cross_compiling=yes
3422 EXEEXT=
3423 else
3424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3425 /* end confdefs.h. */
3426
3427 int
3428 main ()
3429 {
3430
3431 ;
3432 return 0;
3433 }
3434 _ACEOF
3435 ac_clean_files_save=$ac_clean_files
3436 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3437 # Try to create an executable without -o first, disregard a.out.
3438 # It will help us diagnose broken compilers, and finding out an intuition
3439 # of exeext.
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3441 $as_echo_n "checking for C compiler default output file name... " >&6; }
3442 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3443
3444 # The possible output files:
3445 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3446
3447 ac_rmfiles=
3448 for ac_file in $ac_files
3449 do
3450 case $ac_file in
3451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3452 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3453 esac
3454 done
3455 rm -f $ac_rmfiles
3456
3457 if { { ac_try="$ac_link_default"
3458 case "(($ac_try" in
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3461 esac
3462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3463 $as_echo "$ac_try_echo"; } >&5
3464 (eval "$ac_link_default") 2>&5
3465 ac_status=$?
3466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3467 test $ac_status = 0; }; then :
3468 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3469 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3470 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3471 # so that the user can short-circuit this test for compilers unknown to
3472 # Autoconf.
3473 for ac_file in $ac_files ''
3474 do
3475 test -f "$ac_file" || continue
3476 case $ac_file in
3477 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3478 ;;
3479 [ab].out )
3480 # We found the default executable, but exeext='' is most
3481 # certainly right.
3482 break;;
3483 *.* )
3484 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3485 then :; else
3486 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3487 fi
3488 # We set ac_cv_exeext here because the later test for it is not
3489 # safe: cross compilers may not add the suffix if given an `-o'
3490 # argument, so we may need to know it at that point already.
3491 # Even if this section looks crufty: it has the advantage of
3492 # actually working.
3493 break;;
3494 * )
3495 break;;
3496 esac
3497 done
3498 test "$ac_cv_exeext" = no && ac_cv_exeext=
3499
3500 else
3501 ac_file=''
3502 fi
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3504 $as_echo "$ac_file" >&6; }
3505 if test -z "$ac_file"; then :
3506 $as_echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3508
3509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3511 { as_fn_set_status 77
3512 as_fn_error "C compiler cannot create executables
3513 See \`config.log' for more details." "$LINENO" 5; }; }
3514 fi
3515 ac_exeext=$ac_cv_exeext
3516
3517 # Check that the compiler produces executables we can run. If not, either
3518 # the compiler is broken, or we cross compile.
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3520 $as_echo_n "checking whether the C compiler works... " >&6; }
3521 # If not cross compiling, check that we can run a simple program.
3522 if test "$cross_compiling" != yes; then
3523 if { ac_try='./$ac_file'
3524 { { case "(($ac_try" in
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3527 esac
3528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3529 $as_echo "$ac_try_echo"; } >&5
3530 (eval "$ac_try") 2>&5
3531 ac_status=$?
3532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3533 test $ac_status = 0; }; }; then
3534 cross_compiling=no
3535 else
3536 if test "$cross_compiling" = maybe; then
3537 cross_compiling=yes
3538 else
3539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3541 as_fn_error "cannot run C compiled programs.
3542 If you meant to cross compile, use \`--host'.
3543 See \`config.log' for more details." "$LINENO" 5; }
3544 fi
3545 fi
3546 fi
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3548 $as_echo "yes" >&6; }
3549
3550 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3551 ac_clean_files=$ac_clean_files_save
3552 # Check that the compiler produces executables we can run. If not, either
3553 # the compiler is broken, or we cross compile.
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3555 $as_echo_n "checking whether we are cross compiling... " >&6; }
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3557 $as_echo "$cross_compiling" >&6; }
3558
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3560 $as_echo_n "checking for suffix of executables... " >&6; }
3561 if { { ac_try="$ac_link"
3562 case "(($ac_try" in
3563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564 *) ac_try_echo=$ac_try;;
3565 esac
3566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3567 $as_echo "$ac_try_echo"; } >&5
3568 (eval "$ac_link") 2>&5
3569 ac_status=$?
3570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3571 test $ac_status = 0; }; then :
3572 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3573 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3574 # work properly (i.e., refer to `conftest.exe'), while it won't with
3575 # `rm'.
3576 for ac_file in conftest.exe conftest conftest.*; do
3577 test -f "$ac_file" || continue
3578 case $ac_file in
3579 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3580 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3581 break;;
3582 * ) break;;
3583 esac
3584 done
3585 else
3586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3588 as_fn_error "cannot compute suffix of executables: cannot compile and link
3589 See \`config.log' for more details." "$LINENO" 5; }
3590 fi
3591 rm -f conftest$ac_cv_exeext
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3593 $as_echo "$ac_cv_exeext" >&6; }
3594
3595 rm -f conftest.$ac_ext
3596 EXEEXT=$ac_cv_exeext
3597 ac_exeext=$EXEEXT
3598 fi
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3600 $as_echo_n "checking for suffix of object files... " >&6; }
3601 if test "${ac_cv_objext+set}" = set; then :
3602 $as_echo_n "(cached) " >&6
3603 else
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3606
3607 int
3608 main ()
3609 {
3610
3611 ;
3612 return 0;
3613 }
3614 _ACEOF
3615 rm -f conftest.o conftest.obj
3616 if { { ac_try="$ac_compile"
3617 case "(($ac_try" in
3618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619 *) ac_try_echo=$ac_try;;
3620 esac
3621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3622 $as_echo "$ac_try_echo"; } >&5
3623 (eval "$ac_compile") 2>&5
3624 ac_status=$?
3625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3626 test $ac_status = 0; }; then :
3627 for ac_file in conftest.o conftest.obj conftest.*; do
3628 test -f "$ac_file" || continue;
3629 case $ac_file in
3630 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3631 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3632 break;;
3633 esac
3634 done
3635 else
3636 $as_echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3638
3639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3641 as_fn_error "cannot compute suffix of object files: cannot compile
3642 See \`config.log' for more details." "$LINENO" 5; }
3643 fi
3644 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3645 fi
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3647 $as_echo "$ac_cv_objext" >&6; }
3648 OBJEXT=$ac_cv_objext
3649 ac_objext=$OBJEXT
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3651 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3652 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3653 $as_echo_n "(cached) " >&6
3654 else
3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656 /* end confdefs.h. */
3657
3658 int
3659 main ()
3660 {
3661 #ifndef __GNUC__
3662 choke me
3663 #endif
3664
3665 ;
3666 return 0;
3667 }
3668 _ACEOF
3669 if ac_fn_c_try_compile "$LINENO"; then :
3670 ac_compiler_gnu=yes
3671 else
3672 ac_compiler_gnu=no
3673 fi
3674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3675 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3676
3677 fi
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3679 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3680 if test $ac_compiler_gnu = yes; then
3681 GCC=yes
3682 else
3683 GCC=
3684 fi
3685 ac_test_CFLAGS=${CFLAGS+set}
3686 ac_save_CFLAGS=$CFLAGS
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3688 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3689 if test "${ac_cv_prog_cc_g+set}" = set; then :
3690 $as_echo_n "(cached) " >&6
3691 else
3692 ac_save_c_werror_flag=$ac_c_werror_flag
3693 ac_c_werror_flag=yes
3694 ac_cv_prog_cc_g=no
3695 CFLAGS="-g"
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h. */
3698
3699 int
3700 main ()
3701 {
3702
3703 ;
3704 return 0;
3705 }
3706 _ACEOF
3707 if ac_fn_c_try_compile "$LINENO"; then :
3708 ac_cv_prog_cc_g=yes
3709 else
3710 CFLAGS=""
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3713
3714 int
3715 main ()
3716 {
3717
3718 ;
3719 return 0;
3720 }
3721 _ACEOF
3722 if ac_fn_c_try_compile "$LINENO"; then :
3723
3724 else
3725 ac_c_werror_flag=$ac_save_c_werror_flag
3726 CFLAGS="-g"
3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3729
3730 int
3731 main ()
3732 {
3733
3734 ;
3735 return 0;
3736 }
3737 _ACEOF
3738 if ac_fn_c_try_compile "$LINENO"; then :
3739 ac_cv_prog_cc_g=yes
3740 fi
3741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742 fi
3743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744 fi
3745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746 ac_c_werror_flag=$ac_save_c_werror_flag
3747 fi
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3749 $as_echo "$ac_cv_prog_cc_g" >&6; }
3750 if test "$ac_test_CFLAGS" = set; then
3751 CFLAGS=$ac_save_CFLAGS
3752 elif test $ac_cv_prog_cc_g = yes; then
3753 if test "$GCC" = yes; then
3754 CFLAGS="-g -O2"
3755 else
3756 CFLAGS="-g"
3757 fi
3758 else
3759 if test "$GCC" = yes; then
3760 CFLAGS="-O2"
3761 else
3762 CFLAGS=
3763 fi
3764 fi
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3766 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3767 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3768 $as_echo_n "(cached) " >&6
3769 else
3770 ac_cv_prog_cc_c89=no
3771 ac_save_CC=$CC
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3774 #include <stdarg.h>
3775 #include <stdio.h>
3776 #include <sys/types.h>
3777 #include <sys/stat.h>
3778 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3779 struct buf { int x; };
3780 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3781 static char *e (p, i)
3782 char **p;
3783 int i;
3784 {
3785 return p[i];
3786 }
3787 static char *f (char * (*g) (char **, int), char **p, ...)
3788 {
3789 char *s;
3790 va_list v;
3791 va_start (v,p);
3792 s = g (p, va_arg (v,int));
3793 va_end (v);
3794 return s;
3795 }
3796
3797 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3798 function prototypes and stuff, but not '\xHH' hex character constants.
3799 These don't provoke an error unfortunately, instead are silently treated
3800 as 'x'. The following induces an error, until -std is added to get
3801 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3802 array size at least. It's necessary to write '\x00'==0 to get something
3803 that's true only with -std. */
3804 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3805
3806 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3807 inside strings and character constants. */
3808 #define FOO(x) 'x'
3809 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3810
3811 int test (int i, double x);
3812 struct s1 {int (*f) (int a);};
3813 struct s2 {int (*f) (double a);};
3814 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3815 int argc;
3816 char **argv;
3817 int
3818 main ()
3819 {
3820 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3821 ;
3822 return 0;
3823 }
3824 _ACEOF
3825 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3826 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3827 do
3828 CC="$ac_save_CC $ac_arg"
3829 if ac_fn_c_try_compile "$LINENO"; then :
3830 ac_cv_prog_cc_c89=$ac_arg
3831 fi
3832 rm -f core conftest.err conftest.$ac_objext
3833 test "x$ac_cv_prog_cc_c89" != "xno" && break
3834 done
3835 rm -f conftest.$ac_ext
3836 CC=$ac_save_CC
3837
3838 fi
3839 # AC_CACHE_VAL
3840 case "x$ac_cv_prog_cc_c89" in
3841 x)
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3843 $as_echo "none needed" >&6; } ;;
3844 xno)
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3846 $as_echo "unsupported" >&6; } ;;
3847 *)
3848 CC="$CC $ac_cv_prog_cc_c89"
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3850 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3851 esac
3852 if test "x$ac_cv_prog_cc_c89" != xno; then :
3853
3854 fi
3855
3856 ac_ext=c
3857 ac_cpp='$CPP $CPPFLAGS'
3858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3861 DEPDIR="${am__leading_dot}deps"
3862
3863 ac_config_commands="$ac_config_commands depfiles"
3864
3865
3866 am_make=${MAKE-make}
3867 cat > confinc << 'END'
3868 am__doit:
3869 @echo this is the am__doit target
3870 .PHONY: am__doit
3871 END
3872 # If we don't find an include directive, just comment out the code.
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3874 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3875 am__include="#"
3876 am__quote=
3877 _am_result=none
3878 # First try GNU make style include.
3879 echo "include confinc" > confmf
3880 # Ignore all kinds of additional output from `make'.
3881 case `$am_make -s -f confmf 2> /dev/null` in #(
3882 *the\ am__doit\ target*)
3883 am__include=include
3884 am__quote=
3885 _am_result=GNU
3886 ;;
3887 esac
3888 # Now try BSD make style include.
3889 if test "$am__include" = "#"; then
3890 echo '.include "confinc"' > confmf
3891 case `$am_make -s -f confmf 2> /dev/null` in #(
3892 *the\ am__doit\ target*)
3893 am__include=.include
3894 am__quote="\""
3895 _am_result=BSD
3896 ;;
3897 esac
3898 fi
3899
3900
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3902 $as_echo "$_am_result" >&6; }
3903 rm -f confinc confmf
3904
3905 # Check whether --enable-dependency-tracking was given.
3906 if test "${enable_dependency_tracking+set}" = set; then :
3907 enableval=$enable_dependency_tracking;
3908 fi
3909
3910 if test "x$enable_dependency_tracking" != xno; then
3911 am_depcomp="$ac_aux_dir/depcomp"
3912 AMDEPBACKSLASH='\'
3913 fi
3914 if test "x$enable_dependency_tracking" != xno; then
3915 AMDEP_TRUE=
3916 AMDEP_FALSE='#'
3917 else
3918 AMDEP_TRUE='#'
3919 AMDEP_FALSE=
3920 fi
3921
3922
3923
3924 depcc="$CC" am_compiler_list=
3925
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3927 $as_echo_n "checking dependency style of $depcc... " >&6; }
3928 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3929 $as_echo_n "(cached) " >&6
3930 else
3931 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3932 # We make a subdir and do the tests there. Otherwise we can end up
3933 # making bogus files that we don't know about and never remove. For
3934 # instance it was reported that on HP-UX the gcc test will end up
3935 # making a dummy file named `D' -- because `-MD' means `put the output
3936 # in D'.
3937 mkdir conftest.dir
3938 # Copy depcomp to subdir because otherwise we won't find it if we're
3939 # using a relative directory.
3940 cp "$am_depcomp" conftest.dir
3941 cd conftest.dir
3942 # We will build objects and dependencies in a subdirectory because
3943 # it helps to detect inapplicable dependency modes. For instance
3944 # both Tru64's cc and ICC support -MD to output dependencies as a
3945 # side effect of compilation, but ICC will put the dependencies in
3946 # the current directory while Tru64 will put them in the object
3947 # directory.
3948 mkdir sub
3949
3950 am_cv_CC_dependencies_compiler_type=none
3951 if test "$am_compiler_list" = ""; then
3952 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3953 fi
3954 am__universal=false
3955 case " $depcc " in #(
3956 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3957 esac
3958
3959 for depmode in $am_compiler_list; do
3960 # Setup a source with many dependencies, because some compilers
3961 # like to wrap large dependency lists on column 80 (with \), and
3962 # we should not choose a depcomp mode which is confused by this.
3963 #
3964 # We need to recreate these files for each test, as the compiler may
3965 # overwrite some of them when testing with obscure command lines.
3966 # This happens at least with the AIX C compiler.
3967 : > sub/conftest.c
3968 for i in 1 2 3 4 5 6; do
3969 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3970 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3971 # Solaris 8's {/usr,}/bin/sh.
3972 touch sub/conftst$i.h
3973 done
3974 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3975
3976 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3977 # mode. It turns out that the SunPro C++ compiler does not properly
3978 # handle `-M -o', and we need to detect this. Also, some Intel
3979 # versions had trouble with output in subdirs
3980 am__obj=sub/conftest.${OBJEXT-o}
3981 am__minus_obj="-o $am__obj"
3982 case $depmode in
3983 gcc)
3984 # This depmode causes a compiler race in universal mode.
3985 test "$am__universal" = false || continue
3986 ;;
3987 nosideeffect)
3988 # after this tag, mechanisms are not by side-effect, so they'll
3989 # only be used when explicitly requested
3990 if test "x$enable_dependency_tracking" = xyes; then
3991 continue
3992 else
3993 break
3994 fi
3995 ;;
3996 msvisualcpp | msvcmsys)
3997 # This compiler won't grok `-c -o', but also, the minuso test has
3998 # not run yet. These depmodes are late enough in the game, and
3999 # so weak that their functioning should not be impacted.
4000 am__obj=conftest.${OBJEXT-o}
4001 am__minus_obj=
4002 ;;
4003 none) break ;;
4004 esac
4005 if depmode=$depmode \
4006 source=sub/conftest.c object=$am__obj \
4007 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4008 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4009 >/dev/null 2>conftest.err &&
4010 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4011 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4012 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4013 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4014 # icc doesn't choke on unknown options, it will just issue warnings
4015 # or remarks (even with -Werror). So we grep stderr for any message
4016 # that says an option was ignored or not supported.
4017 # When given -MP, icc 7.0 and 7.1 complain thusly:
4018 # icc: Command line warning: ignoring option '-M'; no argument required
4019 # The diagnosis changed in icc 8.0:
4020 # icc: Command line remark: option '-MP' not supported
4021 if (grep 'ignoring option' conftest.err ||
4022 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4023 am_cv_CC_dependencies_compiler_type=$depmode
4024 break
4025 fi
4026 fi
4027 done
4028
4029 cd ..
4030 rm -rf conftest.dir
4031 else
4032 am_cv_CC_dependencies_compiler_type=none
4033 fi
4034
4035 fi
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4037 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4038 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4039
4040 if
4041 test "x$enable_dependency_tracking" != xno \
4042 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4043 am__fastdepCC_TRUE=
4044 am__fastdepCC_FALSE='#'
4045 else
4046 am__fastdepCC_TRUE='#'
4047 am__fastdepCC_FALSE=
4048 fi
4049
4050
4051 ac_ext=cpp
4052 ac_cpp='$CXXCPP $CPPFLAGS'
4053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4056 if test -z "$CXX"; then
4057 if test -n "$CCC"; then
4058 CXX=$CCC
4059 else
4060 if test -n "$ac_tool_prefix"; then
4061 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4062 do
4063 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4064 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4066 $as_echo_n "checking for $ac_word... " >&6; }
4067 if test "${ac_cv_prog_CXX+set}" = set; then :
4068 $as_echo_n "(cached) " >&6
4069 else
4070 if test -n "$CXX"; then
4071 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4072 else
4073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074 for as_dir in $PATH
4075 do
4076 IFS=$as_save_IFS
4077 test -z "$as_dir" && as_dir=.
4078 for ac_exec_ext in '' $ac_executable_extensions; do
4079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4080 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4082 break 2
4083 fi
4084 done
4085 done
4086 IFS=$as_save_IFS
4087
4088 fi
4089 fi
4090 CXX=$ac_cv_prog_CXX
4091 if test -n "$CXX"; then
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4093 $as_echo "$CXX" >&6; }
4094 else
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4096 $as_echo "no" >&6; }
4097 fi
4098
4099
4100 test -n "$CXX" && break
4101 done
4102 fi
4103 if test -z "$CXX"; then
4104 ac_ct_CXX=$CXX
4105 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4106 do
4107 # Extract the first word of "$ac_prog", so it can be a program name with args.
4108 set dummy $ac_prog; ac_word=$2
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4110 $as_echo_n "checking for $ac_word... " >&6; }
4111 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4112 $as_echo_n "(cached) " >&6
4113 else
4114 if test -n "$ac_ct_CXX"; then
4115 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4116 else
4117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118 for as_dir in $PATH
4119 do
4120 IFS=$as_save_IFS
4121 test -z "$as_dir" && as_dir=.
4122 for ac_exec_ext in '' $ac_executable_extensions; do
4123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4124 ac_cv_prog_ac_ct_CXX="$ac_prog"
4125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4126 break 2
4127 fi
4128 done
4129 done
4130 IFS=$as_save_IFS
4131
4132 fi
4133 fi
4134 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4135 if test -n "$ac_ct_CXX"; then
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4137 $as_echo "$ac_ct_CXX" >&6; }
4138 else
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4140 $as_echo "no" >&6; }
4141 fi
4142
4143
4144 test -n "$ac_ct_CXX" && break
4145 done
4146
4147 if test "x$ac_ct_CXX" = x; then
4148 CXX="g++"
4149 else
4150 case $cross_compiling:$ac_tool_warned in
4151 yes:)
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4154 ac_tool_warned=yes ;;
4155 esac
4156 CXX=$ac_ct_CXX
4157 fi
4158 fi
4159
4160 fi
4161 fi
4162 # Provide some information about the compiler.
4163 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4164 set X $ac_compile
4165 ac_compiler=$2
4166 for ac_option in --version -v -V -qversion; do
4167 { { ac_try="$ac_compiler $ac_option >&5"
4168 case "(($ac_try" in
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4171 esac
4172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4173 $as_echo "$ac_try_echo"; } >&5
4174 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4175 ac_status=$?
4176 if test -s conftest.err; then
4177 sed '10a\
4178 ... rest of stderr output deleted ...
4179 10q' conftest.err >conftest.er1
4180 cat conftest.er1 >&5
4181 rm -f conftest.er1 conftest.err
4182 fi
4183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4184 test $ac_status = 0; }
4185 done
4186
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4188 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4189 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4190 $as_echo_n "(cached) " >&6
4191 else
4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h. */
4194
4195 int
4196 main ()
4197 {
4198 #ifndef __GNUC__
4199 choke me
4200 #endif
4201
4202 ;
4203 return 0;
4204 }
4205 _ACEOF
4206 if ac_fn_cxx_try_compile "$LINENO"; then :
4207 ac_compiler_gnu=yes
4208 else
4209 ac_compiler_gnu=no
4210 fi
4211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4212 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4213
4214 fi
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4216 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4217 if test $ac_compiler_gnu = yes; then
4218 GXX=yes
4219 else
4220 GXX=
4221 fi
4222 ac_test_CXXFLAGS=${CXXFLAGS+set}
4223 ac_save_CXXFLAGS=$CXXFLAGS
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4225 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4226 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4227 $as_echo_n "(cached) " >&6
4228 else
4229 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4230 ac_cxx_werror_flag=yes
4231 ac_cv_prog_cxx_g=no
4232 CXXFLAGS="-g"
4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234 /* end confdefs.h. */
4235
4236 int
4237 main ()
4238 {
4239
4240 ;
4241 return 0;
4242 }
4243 _ACEOF
4244 if ac_fn_cxx_try_compile "$LINENO"; then :
4245 ac_cv_prog_cxx_g=yes
4246 else
4247 CXXFLAGS=""
4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h. */
4250
4251 int
4252 main ()
4253 {
4254
4255 ;
4256 return 0;
4257 }
4258 _ACEOF
4259 if ac_fn_cxx_try_compile "$LINENO"; then :
4260
4261 else
4262 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4263 CXXFLAGS="-g"
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 if ac_fn_cxx_try_compile "$LINENO"; then :
4276 ac_cv_prog_cxx_g=yes
4277 fi
4278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4279 fi
4280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4281 fi
4282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4283 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4284 fi
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4286 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4287 if test "$ac_test_CXXFLAGS" = set; then
4288 CXXFLAGS=$ac_save_CXXFLAGS
4289 elif test $ac_cv_prog_cxx_g = yes; then
4290 if test "$GXX" = yes; then
4291 CXXFLAGS="-g -O2"
4292 else
4293 CXXFLAGS="-g"
4294 fi
4295 else
4296 if test "$GXX" = yes; then
4297 CXXFLAGS="-O2"
4298 else
4299 CXXFLAGS=
4300 fi
4301 fi
4302 ac_ext=c
4303 ac_cpp='$CPP $CPPFLAGS'
4304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4307
4308 depcc="$CXX" am_compiler_list=
4309
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4311 $as_echo_n "checking dependency style of $depcc... " >&6; }
4312 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4313 $as_echo_n "(cached) " >&6
4314 else
4315 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4316 # We make a subdir and do the tests there. Otherwise we can end up
4317 # making bogus files that we don't know about and never remove. For
4318 # instance it was reported that on HP-UX the gcc test will end up
4319 # making a dummy file named `D' -- because `-MD' means `put the output
4320 # in D'.
4321 mkdir conftest.dir
4322 # Copy depcomp to subdir because otherwise we won't find it if we're
4323 # using a relative directory.
4324 cp "$am_depcomp" conftest.dir
4325 cd conftest.dir
4326 # We will build objects and dependencies in a subdirectory because
4327 # it helps to detect inapplicable dependency modes. For instance
4328 # both Tru64's cc and ICC support -MD to output dependencies as a
4329 # side effect of compilation, but ICC will put the dependencies in
4330 # the current directory while Tru64 will put them in the object
4331 # directory.
4332 mkdir sub
4333
4334 am_cv_CXX_dependencies_compiler_type=none
4335 if test "$am_compiler_list" = ""; then
4336 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4337 fi
4338 am__universal=false
4339 case " $depcc " in #(
4340 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4341 esac
4342
4343 for depmode in $am_compiler_list; do
4344 # Setup a source with many dependencies, because some compilers
4345 # like to wrap large dependency lists on column 80 (with \), and
4346 # we should not choose a depcomp mode which is confused by this.
4347 #
4348 # We need to recreate these files for each test, as the compiler may
4349 # overwrite some of them when testing with obscure command lines.
4350 # This happens at least with the AIX C compiler.
4351 : > sub/conftest.c
4352 for i in 1 2 3 4 5 6; do
4353 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4354 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4355 # Solaris 8's {/usr,}/bin/sh.
4356 touch sub/conftst$i.h
4357 done
4358 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4359
4360 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4361 # mode. It turns out that the SunPro C++ compiler does not properly
4362 # handle `-M -o', and we need to detect this. Also, some Intel
4363 # versions had trouble with output in subdirs
4364 am__obj=sub/conftest.${OBJEXT-o}
4365 am__minus_obj="-o $am__obj"
4366 case $depmode in
4367 gcc)
4368 # This depmode causes a compiler race in universal mode.
4369 test "$am__universal" = false || continue
4370 ;;
4371 nosideeffect)
4372 # after this tag, mechanisms are not by side-effect, so they'll
4373 # only be used when explicitly requested
4374 if test "x$enable_dependency_tracking" = xyes; then
4375 continue
4376 else
4377 break
4378 fi
4379 ;;
4380 msvisualcpp | msvcmsys)
4381 # This compiler won't grok `-c -o', but also, the minuso test has
4382 # not run yet. These depmodes are late enough in the game, and
4383 # so weak that their functioning should not be impacted.
4384 am__obj=conftest.${OBJEXT-o}
4385 am__minus_obj=
4386 ;;
4387 none) break ;;
4388 esac
4389 if depmode=$depmode \
4390 source=sub/conftest.c object=$am__obj \
4391 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4392 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4393 >/dev/null 2>conftest.err &&
4394 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4395 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4396 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4397 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4398 # icc doesn't choke on unknown options, it will just issue warnings
4399 # or remarks (even with -Werror). So we grep stderr for any message
4400 # that says an option was ignored or not supported.
4401 # When given -MP, icc 7.0 and 7.1 complain thusly:
4402 # icc: Command line warning: ignoring option '-M'; no argument required
4403 # The diagnosis changed in icc 8.0:
4404 # icc: Command line remark: option '-MP' not supported
4405 if (grep 'ignoring option' conftest.err ||
4406 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4407 am_cv_CXX_dependencies_compiler_type=$depmode
4408 break
4409 fi
4410 fi
4411 done
4412
4413 cd ..
4414 rm -rf conftest.dir
4415 else
4416 am_cv_CXX_dependencies_compiler_type=none
4417 fi
4418
4419 fi
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4421 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4422 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4423
4424 if
4425 test "x$enable_dependency_tracking" != xno \
4426 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4427 am__fastdepCXX_TRUE=
4428 am__fastdepCXX_FALSE='#'
4429 else
4430 am__fastdepCXX_TRUE='#'
4431 am__fastdepCXX_FALSE=
4432 fi
4433
4434
4435
4436
4437 if test "x$CC" != xcc; then
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4439 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4440 else
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4442 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4443 fi
4444 set dummy $CC; ac_cc=`$as_echo "$2" |
4445 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4446 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4447 $as_echo_n "(cached) " >&6
4448 else
4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4451
4452 int
4453 main ()
4454 {
4455
4456 ;
4457 return 0;
4458 }
4459 _ACEOF
4460 # Make sure it works both with $CC and with simple cc.
4461 # We do the test twice because some compilers refuse to overwrite an
4462 # existing .o file with -o, though they will create one.
4463 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4464 rm -f conftest2.*
4465 if { { case "(($ac_try" in
4466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467 *) ac_try_echo=$ac_try;;
4468 esac
4469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4470 $as_echo "$ac_try_echo"; } >&5
4471 (eval "$ac_try") 2>&5
4472 ac_status=$?
4473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4474 test $ac_status = 0; } &&
4475 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477 *) ac_try_echo=$ac_try;;
4478 esac
4479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4480 $as_echo "$ac_try_echo"; } >&5
4481 (eval "$ac_try") 2>&5
4482 ac_status=$?
4483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4484 test $ac_status = 0; };
4485 then
4486 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4487 if test "x$CC" != xcc; then
4488 # Test first that cc exists at all.
4489 if { ac_try='cc -c conftest.$ac_ext >&5'
4490 { { case "(($ac_try" in
4491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4492 *) ac_try_echo=$ac_try;;
4493 esac
4494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4495 $as_echo "$ac_try_echo"; } >&5
4496 (eval "$ac_try") 2>&5
4497 ac_status=$?
4498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4499 test $ac_status = 0; }; }; then
4500 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4501 rm -f conftest2.*
4502 if { { case "(($ac_try" in
4503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504 *) ac_try_echo=$ac_try;;
4505 esac
4506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4507 $as_echo "$ac_try_echo"; } >&5
4508 (eval "$ac_try") 2>&5
4509 ac_status=$?
4510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4511 test $ac_status = 0; } &&
4512 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514 *) ac_try_echo=$ac_try;;
4515 esac
4516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4517 $as_echo "$ac_try_echo"; } >&5
4518 (eval "$ac_try") 2>&5
4519 ac_status=$?
4520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4521 test $ac_status = 0; };
4522 then
4523 # cc works too.
4524 :
4525 else
4526 # cc exists but doesn't like -o.
4527 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4528 fi
4529 fi
4530 fi
4531 else
4532 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4533 fi
4534 rm -f core conftest*
4535
4536 fi
4537 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4539 $as_echo "yes" >&6; }
4540 else
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4543
4544 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4545
4546 fi
4547
4548 # FIXME: we rely on the cache variable name because
4549 # there is no other way.
4550 set dummy $CC
4551 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4552 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4553 if test "$am_t" != yes; then
4554 # Losing compiler, so override with the script.
4555 # FIXME: It is wrong to rewrite CC.
4556 # But if we don't then we get into trouble of one sort or another.
4557 # A longer-term fix would be to have automake use am__CC in this case,
4558 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4559 CC="$am_aux_dir/compile $CC"
4560 fi
4561
4562
4563
4564
4565
4566
4567 # Newer automakes demand CCAS and CCASFLAGS.
4568 : ${CCAS='$(CC)'}
4569 : ${CCASFLAGS='$(CFLAGS)'}
4570
4571
4572
4573 if test -n "$ac_tool_prefix"; then
4574 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4575 set dummy ${ac_tool_prefix}as; ac_word=$2
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4577 $as_echo_n "checking for $ac_word... " >&6; }
4578 if test "${ac_cv_prog_AS+set}" = set; then :
4579 $as_echo_n "(cached) " >&6
4580 else
4581 if test -n "$AS"; then
4582 ac_cv_prog_AS="$AS" # Let the user override the test.
4583 else
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH
4586 do
4587 IFS=$as_save_IFS
4588 test -z "$as_dir" && as_dir=.
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4591 ac_cv_prog_AS="${ac_tool_prefix}as"
4592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4593 break 2
4594 fi
4595 done
4596 done
4597 IFS=$as_save_IFS
4598
4599 fi
4600 fi
4601 AS=$ac_cv_prog_AS
4602 if test -n "$AS"; then
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4604 $as_echo "$AS" >&6; }
4605 else
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607 $as_echo "no" >&6; }
4608 fi
4609
4610
4611 fi
4612 if test -z "$ac_cv_prog_AS"; then
4613 ac_ct_AS=$AS
4614 # Extract the first word of "as", so it can be a program name with args.
4615 set dummy as; ac_word=$2
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4617 $as_echo_n "checking for $ac_word... " >&6; }
4618 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
4619 $as_echo_n "(cached) " >&6
4620 else
4621 if test -n "$ac_ct_AS"; then
4622 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4623 else
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 for as_dir in $PATH
4626 do
4627 IFS=$as_save_IFS
4628 test -z "$as_dir" && as_dir=.
4629 for ac_exec_ext in '' $ac_executable_extensions; do
4630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4631 ac_cv_prog_ac_ct_AS="as"
4632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4633 break 2
4634 fi
4635 done
4636 done
4637 IFS=$as_save_IFS
4638
4639 fi
4640 fi
4641 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4642 if test -n "$ac_ct_AS"; then
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4644 $as_echo "$ac_ct_AS" >&6; }
4645 else
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4647 $as_echo "no" >&6; }
4648 fi
4649
4650 if test "x$ac_ct_AS" = x; then
4651 AS=""
4652 else
4653 case $cross_compiling:$ac_tool_warned in
4654 yes:)
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4657 ac_tool_warned=yes ;;
4658 esac
4659 AS=$ac_ct_AS
4660 fi
4661 else
4662 AS="$ac_cv_prog_AS"
4663 fi
4664
4665 if test -n "$ac_tool_prefix"; then
4666 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4667 set dummy ${ac_tool_prefix}ar; ac_word=$2
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4669 $as_echo_n "checking for $ac_word... " >&6; }
4670 if test "${ac_cv_prog_AR+set}" = set; then :
4671 $as_echo_n "(cached) " >&6
4672 else
4673 if test -n "$AR"; then
4674 ac_cv_prog_AR="$AR" # Let the user override the test.
4675 else
4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677 for as_dir in $PATH
4678 do
4679 IFS=$as_save_IFS
4680 test -z "$as_dir" && as_dir=.
4681 for ac_exec_ext in '' $ac_executable_extensions; do
4682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4683 ac_cv_prog_AR="${ac_tool_prefix}ar"
4684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4685 break 2
4686 fi
4687 done
4688 done
4689 IFS=$as_save_IFS
4690
4691 fi
4692 fi
4693 AR=$ac_cv_prog_AR
4694 if test -n "$AR"; then
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4696 $as_echo "$AR" >&6; }
4697 else
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4699 $as_echo "no" >&6; }
4700 fi
4701
4702
4703 fi
4704 if test -z "$ac_cv_prog_AR"; then
4705 ac_ct_AR=$AR
4706 # Extract the first word of "ar", so it can be a program name with args.
4707 set dummy ar; ac_word=$2
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4709 $as_echo_n "checking for $ac_word... " >&6; }
4710 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4711 $as_echo_n "(cached) " >&6
4712 else
4713 if test -n "$ac_ct_AR"; then
4714 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4715 else
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 for as_dir in $PATH
4718 do
4719 IFS=$as_save_IFS
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4723 ac_cv_prog_ac_ct_AR="ar"
4724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4725 break 2
4726 fi
4727 done
4728 done
4729 IFS=$as_save_IFS
4730
4731 fi
4732 fi
4733 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4734 if test -n "$ac_ct_AR"; then
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4736 $as_echo "$ac_ct_AR" >&6; }
4737 else
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4739 $as_echo "no" >&6; }
4740 fi
4741
4742 if test "x$ac_ct_AR" = x; then
4743 AR=""
4744 else
4745 case $cross_compiling:$ac_tool_warned in
4746 yes:)
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4749 ac_tool_warned=yes ;;
4750 esac
4751 AR=$ac_ct_AR
4752 fi
4753 else
4754 AR="$ac_cv_prog_AR"
4755 fi
4756
4757 if test -n "$ac_tool_prefix"; then
4758 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4759 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4761 $as_echo_n "checking for $ac_word... " >&6; }
4762 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4763 $as_echo_n "(cached) " >&6
4764 else
4765 if test -n "$RANLIB"; then
4766 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4767 else
4768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769 for as_dir in $PATH
4770 do
4771 IFS=$as_save_IFS
4772 test -z "$as_dir" && as_dir=.
4773 for ac_exec_ext in '' $ac_executable_extensions; do
4774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4775 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4777 break 2
4778 fi
4779 done
4780 done
4781 IFS=$as_save_IFS
4782
4783 fi
4784 fi
4785 RANLIB=$ac_cv_prog_RANLIB
4786 if test -n "$RANLIB"; then
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4788 $as_echo "$RANLIB" >&6; }
4789 else
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4791 $as_echo "no" >&6; }
4792 fi
4793
4794
4795 fi
4796 if test -z "$ac_cv_prog_RANLIB"; then
4797 ac_ct_RANLIB=$RANLIB
4798 # Extract the first word of "ranlib", so it can be a program name with args.
4799 set dummy ranlib; ac_word=$2
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4801 $as_echo_n "checking for $ac_word... " >&6; }
4802 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4803 $as_echo_n "(cached) " >&6
4804 else
4805 if test -n "$ac_ct_RANLIB"; then
4806 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4807 else
4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 for as_dir in $PATH
4810 do
4811 IFS=$as_save_IFS
4812 test -z "$as_dir" && as_dir=.
4813 for ac_exec_ext in '' $ac_executable_extensions; do
4814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4815 ac_cv_prog_ac_ct_RANLIB="ranlib"
4816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 break 2
4818 fi
4819 done
4820 done
4821 IFS=$as_save_IFS
4822
4823 fi
4824 fi
4825 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4826 if test -n "$ac_ct_RANLIB"; then
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4828 $as_echo "$ac_ct_RANLIB" >&6; }
4829 else
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831 $as_echo "no" >&6; }
4832 fi
4833
4834 if test "x$ac_ct_RANLIB" = x; then
4835 RANLIB=":"
4836 else
4837 case $cross_compiling:$ac_tool_warned in
4838 yes:)
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4841 ac_tool_warned=yes ;;
4842 esac
4843 RANLIB=$ac_ct_RANLIB
4844 fi
4845 else
4846 RANLIB="$ac_cv_prog_RANLIB"
4847 fi
4848
4849
4850
4851
4852
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4854 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4855 # Check whether --enable-maintainer-mode was given.
4856 if test "${enable_maintainer_mode+set}" = set; then :
4857 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4858 else
4859 USE_MAINTAINER_MODE=no
4860 fi
4861
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4863 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4864 if test $USE_MAINTAINER_MODE = yes; then
4865 MAINTAINER_MODE_TRUE=
4866 MAINTAINER_MODE_FALSE='#'
4867 else
4868 MAINTAINER_MODE_TRUE='#'
4869 MAINTAINER_MODE_FALSE=
4870 fi
4871
4872 MAINT=$MAINTAINER_MODE_TRUE
4873
4874
4875
4876 . ${srcdir}/configure.host
4877
4878 case ${gc_basedir} in
4879 /* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;;
4880 *) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
4881 esac
4882
4883 gc_cflags="${gc_cflags} -Iinclude -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
4884 case "${host}" in
4885 *-*-cygwin32*)
4886 gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
4887 ;;
4888 esac
4889
4890 case "${host}" in
4891 *-*-mingw*)
4892 gc_cflags="${gc_cflags} -DGC_BUILD=1"
4893 ;;
4894 esac
4895
4896
4897 GC_CFLAGS=${gc_cflags}
4898
4899
4900 case `pwd` in
4901 *\ * | *\ *)
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4903 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4904 esac
4905
4906
4907
4908 macro_version='2.2.7a'
4909 macro_revision='1.3134'
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923 ltmain="$ac_aux_dir/ltmain.sh"
4924
4925 # Backslashify metacharacters that are still active within
4926 # double-quoted strings.
4927 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4928
4929 # Same as above, but do not quote variable references.
4930 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4931
4932 # Sed substitution to delay expansion of an escaped shell variable in a
4933 # double_quote_subst'ed string.
4934 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4935
4936 # Sed substitution to delay expansion of an escaped single quote.
4937 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4938
4939 # Sed substitution to avoid accidental globbing in evaled expressions
4940 no_glob_subst='s/\*/\\\*/g'
4941
4942 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4943 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4944 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4945
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4947 $as_echo_n "checking how to print strings... " >&6; }
4948 # Test print first, because it will be a builtin if present.
4949 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4950 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4951 ECHO='print -r --'
4952 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4953 ECHO='printf %s\n'
4954 else
4955 # Use this function as a fallback that always works.
4956 func_fallback_echo ()
4957 {
4958 eval 'cat <<_LTECHO_EOF
4959 $1
4960 _LTECHO_EOF'
4961 }
4962 ECHO='func_fallback_echo'
4963 fi
4964
4965 # func_echo_all arg...
4966 # Invoke $ECHO with all args, space-separated.
4967 func_echo_all ()
4968 {
4969 $ECHO ""
4970 }
4971
4972 case "$ECHO" in
4973 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4974 $as_echo "printf" >&6; } ;;
4975 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4976 $as_echo "print -r" >&6; } ;;
4977 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4978 $as_echo "cat" >&6; } ;;
4979 esac
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4995 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4996 if test "${ac_cv_path_SED+set}" = set; then :
4997 $as_echo_n "(cached) " >&6
4998 else
4999 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5000 for ac_i in 1 2 3 4 5 6 7; do
5001 ac_script="$ac_script$as_nl$ac_script"
5002 done
5003 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5004 { ac_script=; unset ac_script;}
5005 if test -z "$SED"; then
5006 ac_path_SED_found=false
5007 # Loop through the user's path and test for each of PROGNAME-LIST
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $PATH
5010 do
5011 IFS=$as_save_IFS
5012 test -z "$as_dir" && as_dir=.
5013 for ac_prog in sed gsed; do
5014 for ac_exec_ext in '' $ac_executable_extensions; do
5015 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5016 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5017 # Check for GNU ac_path_SED and select it if it is found.
5018 # Check for GNU $ac_path_SED
5019 case `"$ac_path_SED" --version 2>&1` in
5020 *GNU*)
5021 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5022 *)
5023 ac_count=0
5024 $as_echo_n 0123456789 >"conftest.in"
5025 while :
5026 do
5027 cat "conftest.in" "conftest.in" >"conftest.tmp"
5028 mv "conftest.tmp" "conftest.in"
5029 cp "conftest.in" "conftest.nl"
5030 $as_echo '' >> "conftest.nl"
5031 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5032 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5033 as_fn_arith $ac_count + 1 && ac_count=$as_val
5034 if test $ac_count -gt ${ac_path_SED_max-0}; then
5035 # Best one so far, save it but keep looking for a better one
5036 ac_cv_path_SED="$ac_path_SED"
5037 ac_path_SED_max=$ac_count
5038 fi
5039 # 10*(2^10) chars as input seems more than enough
5040 test $ac_count -gt 10 && break
5041 done
5042 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5043 esac
5044
5045 $ac_path_SED_found && break 3
5046 done
5047 done
5048 done
5049 IFS=$as_save_IFS
5050 if test -z "$ac_cv_path_SED"; then
5051 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5052 fi
5053 else
5054 ac_cv_path_SED=$SED
5055 fi
5056
5057 fi
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5059 $as_echo "$ac_cv_path_SED" >&6; }
5060 SED="$ac_cv_path_SED"
5061 rm -f conftest.sed
5062
5063 test -z "$SED" && SED=sed
5064 Xsed="$SED -e 1s/^X//"
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5077 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5078 if test "${ac_cv_path_GREP+set}" = set; then :
5079 $as_echo_n "(cached) " >&6
5080 else
5081 if test -z "$GREP"; then
5082 ac_path_GREP_found=false
5083 # Loop through the user's path and test for each of PROGNAME-LIST
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5086 do
5087 IFS=$as_save_IFS
5088 test -z "$as_dir" && as_dir=.
5089 for ac_prog in grep ggrep; do
5090 for ac_exec_ext in '' $ac_executable_extensions; do
5091 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5092 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5093 # Check for GNU ac_path_GREP and select it if it is found.
5094 # Check for GNU $ac_path_GREP
5095 case `"$ac_path_GREP" --version 2>&1` in
5096 *GNU*)
5097 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5098 *)
5099 ac_count=0
5100 $as_echo_n 0123456789 >"conftest.in"
5101 while :
5102 do
5103 cat "conftest.in" "conftest.in" >"conftest.tmp"
5104 mv "conftest.tmp" "conftest.in"
5105 cp "conftest.in" "conftest.nl"
5106 $as_echo 'GREP' >> "conftest.nl"
5107 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5108 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5109 as_fn_arith $ac_count + 1 && ac_count=$as_val
5110 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5111 # Best one so far, save it but keep looking for a better one
5112 ac_cv_path_GREP="$ac_path_GREP"
5113 ac_path_GREP_max=$ac_count
5114 fi
5115 # 10*(2^10) chars as input seems more than enough
5116 test $ac_count -gt 10 && break
5117 done
5118 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5119 esac
5120
5121 $ac_path_GREP_found && break 3
5122 done
5123 done
5124 done
5125 IFS=$as_save_IFS
5126 if test -z "$ac_cv_path_GREP"; then
5127 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5128 fi
5129 else
5130 ac_cv_path_GREP=$GREP
5131 fi
5132
5133 fi
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5135 $as_echo "$ac_cv_path_GREP" >&6; }
5136 GREP="$ac_cv_path_GREP"
5137
5138
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5140 $as_echo_n "checking for egrep... " >&6; }
5141 if test "${ac_cv_path_EGREP+set}" = set; then :
5142 $as_echo_n "(cached) " >&6
5143 else
5144 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5145 then ac_cv_path_EGREP="$GREP -E"
5146 else
5147 if test -z "$EGREP"; then
5148 ac_path_EGREP_found=false
5149 # Loop through the user's path and test for each of PROGNAME-LIST
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5152 do
5153 IFS=$as_save_IFS
5154 test -z "$as_dir" && as_dir=.
5155 for ac_prog in egrep; do
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5158 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5159 # Check for GNU ac_path_EGREP and select it if it is found.
5160 # Check for GNU $ac_path_EGREP
5161 case `"$ac_path_EGREP" --version 2>&1` in
5162 *GNU*)
5163 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5164 *)
5165 ac_count=0
5166 $as_echo_n 0123456789 >"conftest.in"
5167 while :
5168 do
5169 cat "conftest.in" "conftest.in" >"conftest.tmp"
5170 mv "conftest.tmp" "conftest.in"
5171 cp "conftest.in" "conftest.nl"
5172 $as_echo 'EGREP' >> "conftest.nl"
5173 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5174 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5175 as_fn_arith $ac_count + 1 && ac_count=$as_val
5176 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5177 # Best one so far, save it but keep looking for a better one
5178 ac_cv_path_EGREP="$ac_path_EGREP"
5179 ac_path_EGREP_max=$ac_count
5180 fi
5181 # 10*(2^10) chars as input seems more than enough
5182 test $ac_count -gt 10 && break
5183 done
5184 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5185 esac
5186
5187 $ac_path_EGREP_found && break 3
5188 done
5189 done
5190 done
5191 IFS=$as_save_IFS
5192 if test -z "$ac_cv_path_EGREP"; then
5193 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5194 fi
5195 else
5196 ac_cv_path_EGREP=$EGREP
5197 fi
5198
5199 fi
5200 fi
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5202 $as_echo "$ac_cv_path_EGREP" >&6; }
5203 EGREP="$ac_cv_path_EGREP"
5204
5205
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5207 $as_echo_n "checking for fgrep... " >&6; }
5208 if test "${ac_cv_path_FGREP+set}" = set; then :
5209 $as_echo_n "(cached) " >&6
5210 else
5211 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5212 then ac_cv_path_FGREP="$GREP -F"
5213 else
5214 if test -z "$FGREP"; then
5215 ac_path_FGREP_found=false
5216 # Loop through the user's path and test for each of PROGNAME-LIST
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5219 do
5220 IFS=$as_save_IFS
5221 test -z "$as_dir" && as_dir=.
5222 for ac_prog in fgrep; do
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5225 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5226 # Check for GNU ac_path_FGREP and select it if it is found.
5227 # Check for GNU $ac_path_FGREP
5228 case `"$ac_path_FGREP" --version 2>&1` in
5229 *GNU*)
5230 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5231 *)
5232 ac_count=0
5233 $as_echo_n 0123456789 >"conftest.in"
5234 while :
5235 do
5236 cat "conftest.in" "conftest.in" >"conftest.tmp"
5237 mv "conftest.tmp" "conftest.in"
5238 cp "conftest.in" "conftest.nl"
5239 $as_echo 'FGREP' >> "conftest.nl"
5240 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5241 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5242 as_fn_arith $ac_count + 1 && ac_count=$as_val
5243 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5244 # Best one so far, save it but keep looking for a better one
5245 ac_cv_path_FGREP="$ac_path_FGREP"
5246 ac_path_FGREP_max=$ac_count
5247 fi
5248 # 10*(2^10) chars as input seems more than enough
5249 test $ac_count -gt 10 && break
5250 done
5251 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5252 esac
5253
5254 $ac_path_FGREP_found && break 3
5255 done
5256 done
5257 done
5258 IFS=$as_save_IFS
5259 if test -z "$ac_cv_path_FGREP"; then
5260 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5261 fi
5262 else
5263 ac_cv_path_FGREP=$FGREP
5264 fi
5265
5266 fi
5267 fi
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5269 $as_echo "$ac_cv_path_FGREP" >&6; }
5270 FGREP="$ac_cv_path_FGREP"
5271
5272
5273 test -z "$GREP" && GREP=grep
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293 # Check whether --with-gnu-ld was given.
5294 if test "${with_gnu_ld+set}" = set; then :
5295 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5296 else
5297 with_gnu_ld=no
5298 fi
5299
5300 ac_prog=ld
5301 if test "$GCC" = yes; then
5302 # Check if gcc -print-prog-name=ld gives a path.
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5304 $as_echo_n "checking for ld used by $CC... " >&6; }
5305 case $host in
5306 *-*-mingw*)
5307 # gcc leaves a trailing carriage return which upsets mingw
5308 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5309 *)
5310 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5311 esac
5312 case $ac_prog in
5313 # Accept absolute paths.
5314 [\\/]* | ?:[\\/]*)
5315 re_direlt='/[^/][^/]*/\.\./'
5316 # Canonicalize the pathname of ld
5317 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5318 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5319 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5320 done
5321 test -z "$LD" && LD="$ac_prog"
5322 ;;
5323 "")
5324 # If it fails, then pretend we aren't using GCC.
5325 ac_prog=ld
5326 ;;
5327 *)
5328 # If it is relative, then search for the first ld in PATH.
5329 with_gnu_ld=unknown
5330 ;;
5331 esac
5332 elif test "$with_gnu_ld" = yes; then
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5334 $as_echo_n "checking for GNU ld... " >&6; }
5335 else
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5337 $as_echo_n "checking for non-GNU ld... " >&6; }
5338 fi
5339 if test "${lt_cv_path_LD+set}" = set; then :
5340 $as_echo_n "(cached) " >&6
5341 else
5342 if test -z "$LD"; then
5343 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5344 for ac_dir in $PATH; do
5345 IFS="$lt_save_ifs"
5346 test -z "$ac_dir" && ac_dir=.
5347 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5348 lt_cv_path_LD="$ac_dir/$ac_prog"
5349 # Check to see if the program is GNU ld. I'd rather use --version,
5350 # but apparently some variants of GNU ld only accept -v.
5351 # Break only if it was the GNU/non-GNU ld that we prefer.
5352 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5353 *GNU* | *'with BFD'*)
5354 test "$with_gnu_ld" != no && break
5355 ;;
5356 *)
5357 test "$with_gnu_ld" != yes && break
5358 ;;
5359 esac
5360 fi
5361 done
5362 IFS="$lt_save_ifs"
5363 else
5364 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5365 fi
5366 fi
5367
5368 LD="$lt_cv_path_LD"
5369 if test -n "$LD"; then
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5371 $as_echo "$LD" >&6; }
5372 else
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5374 $as_echo "no" >&6; }
5375 fi
5376 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5378 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5379 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5380 $as_echo_n "(cached) " >&6
5381 else
5382 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5383 case `$LD -v 2>&1 </dev/null` in
5384 *GNU* | *'with BFD'*)
5385 lt_cv_prog_gnu_ld=yes
5386 ;;
5387 *)
5388 lt_cv_prog_gnu_ld=no
5389 ;;
5390 esac
5391 fi
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5393 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5394 with_gnu_ld=$lt_cv_prog_gnu_ld
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5405 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5406 if test "${lt_cv_path_NM+set}" = set; then :
5407 $as_echo_n "(cached) " >&6
5408 else
5409 if test -n "$NM"; then
5410 # Let the user override the test.
5411 lt_cv_path_NM="$NM"
5412 else
5413 lt_nm_to_check="${ac_tool_prefix}nm"
5414 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5415 lt_nm_to_check="$lt_nm_to_check nm"
5416 fi
5417 for lt_tmp_nm in $lt_nm_to_check; do
5418 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5419 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5420 IFS="$lt_save_ifs"
5421 test -z "$ac_dir" && ac_dir=.
5422 tmp_nm="$ac_dir/$lt_tmp_nm"
5423 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5424 # Check to see if the nm accepts a BSD-compat flag.
5425 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5426 # nm: unknown option "B" ignored
5427 # Tru64's nm complains that /dev/null is an invalid object file
5428 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5429 */dev/null* | *'Invalid file or object type'*)
5430 lt_cv_path_NM="$tmp_nm -B"
5431 break
5432 ;;
5433 *)
5434 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5435 */dev/null*)
5436 lt_cv_path_NM="$tmp_nm -p"
5437 break
5438 ;;
5439 *)
5440 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5441 continue # so that we can try to find one that supports BSD flags
5442 ;;
5443 esac
5444 ;;
5445 esac
5446 fi
5447 done
5448 IFS="$lt_save_ifs"
5449 done
5450 : ${lt_cv_path_NM=no}
5451 fi
5452 fi
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5454 $as_echo "$lt_cv_path_NM" >&6; }
5455 if test "$lt_cv_path_NM" != "no"; then
5456 NM="$lt_cv_path_NM"
5457 else
5458 # Didn't find any BSD compatible name lister, look for dumpbin.
5459 if test -n "$DUMPBIN"; then :
5460 # Let the user override the test.
5461 else
5462 if test -n "$ac_tool_prefix"; then
5463 for ac_prog in dumpbin "link -dump"
5464 do
5465 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5466 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5468 $as_echo_n "checking for $ac_word... " >&6; }
5469 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5470 $as_echo_n "(cached) " >&6
5471 else
5472 if test -n "$DUMPBIN"; then
5473 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5474 else
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 for as_dir in $PATH
5477 do
5478 IFS=$as_save_IFS
5479 test -z "$as_dir" && as_dir=.
5480 for ac_exec_ext in '' $ac_executable_extensions; do
5481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5482 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5484 break 2
5485 fi
5486 done
5487 done
5488 IFS=$as_save_IFS
5489
5490 fi
5491 fi
5492 DUMPBIN=$ac_cv_prog_DUMPBIN
5493 if test -n "$DUMPBIN"; then
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5495 $as_echo "$DUMPBIN" >&6; }
5496 else
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498 $as_echo "no" >&6; }
5499 fi
5500
5501
5502 test -n "$DUMPBIN" && break
5503 done
5504 fi
5505 if test -z "$DUMPBIN"; then
5506 ac_ct_DUMPBIN=$DUMPBIN
5507 for ac_prog in dumpbin "link -dump"
5508 do
5509 # Extract the first word of "$ac_prog", so it can be a program name with args.
5510 set dummy $ac_prog; ac_word=$2
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512 $as_echo_n "checking for $ac_word... " >&6; }
5513 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5514 $as_echo_n "(cached) " >&6
5515 else
5516 if test -n "$ac_ct_DUMPBIN"; then
5517 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5518 else
5519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520 for as_dir in $PATH
5521 do
5522 IFS=$as_save_IFS
5523 test -z "$as_dir" && as_dir=.
5524 for ac_exec_ext in '' $ac_executable_extensions; do
5525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5526 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5528 break 2
5529 fi
5530 done
5531 done
5532 IFS=$as_save_IFS
5533
5534 fi
5535 fi
5536 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5537 if test -n "$ac_ct_DUMPBIN"; then
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5539 $as_echo "$ac_ct_DUMPBIN" >&6; }
5540 else
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542 $as_echo "no" >&6; }
5543 fi
5544
5545
5546 test -n "$ac_ct_DUMPBIN" && break
5547 done
5548
5549 if test "x$ac_ct_DUMPBIN" = x; then
5550 DUMPBIN=":"
5551 else
5552 case $cross_compiling:$ac_tool_warned in
5553 yes:)
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5556 ac_tool_warned=yes ;;
5557 esac
5558 DUMPBIN=$ac_ct_DUMPBIN
5559 fi
5560 fi
5561
5562 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5563 *COFF*)
5564 DUMPBIN="$DUMPBIN -symbols"
5565 ;;
5566 *)
5567 DUMPBIN=:
5568 ;;
5569 esac
5570 fi
5571
5572 if test "$DUMPBIN" != ":"; then
5573 NM="$DUMPBIN"
5574 fi
5575 fi
5576 test -z "$NM" && NM=nm
5577
5578
5579
5580
5581
5582
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5584 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5585 if test "${lt_cv_nm_interface+set}" = set; then :
5586 $as_echo_n "(cached) " >&6
5587 else
5588 lt_cv_nm_interface="BSD nm"
5589 echo "int some_variable = 0;" > conftest.$ac_ext
5590 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5591 (eval "$ac_compile" 2>conftest.err)
5592 cat conftest.err >&5
5593 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5594 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5595 cat conftest.err >&5
5596 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5597 cat conftest.out >&5
5598 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5599 lt_cv_nm_interface="MS dumpbin"
5600 fi
5601 rm -f conftest*
5602 fi
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5604 $as_echo "$lt_cv_nm_interface" >&6; }
5605
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5607 $as_echo_n "checking whether ln -s works... " >&6; }
5608 LN_S=$as_ln_s
5609 if test "$LN_S" = "ln -s"; then
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5611 $as_echo "yes" >&6; }
5612 else
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5614 $as_echo "no, using $LN_S" >&6; }
5615 fi
5616
5617 # find the maximum length of command line arguments
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5619 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5620 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5621 $as_echo_n "(cached) " >&6
5622 else
5623 i=0
5624 teststring="ABCD"
5625
5626 case $build_os in
5627 msdosdjgpp*)
5628 # On DJGPP, this test can blow up pretty badly due to problems in libc
5629 # (any single argument exceeding 2000 bytes causes a buffer overrun
5630 # during glob expansion). Even if it were fixed, the result of this
5631 # check would be larger than it should be.
5632 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5633 ;;
5634
5635 gnu*)
5636 # Under GNU Hurd, this test is not required because there is
5637 # no limit to the length of command line arguments.
5638 # Libtool will interpret -1 as no limit whatsoever
5639 lt_cv_sys_max_cmd_len=-1;
5640 ;;
5641
5642 cygwin* | mingw* | cegcc*)
5643 # On Win9x/ME, this test blows up -- it succeeds, but takes
5644 # about 5 minutes as the teststring grows exponentially.
5645 # Worse, since 9x/ME are not pre-emptively multitasking,
5646 # you end up with a "frozen" computer, even though with patience
5647 # the test eventually succeeds (with a max line length of 256k).
5648 # Instead, let's just punt: use the minimum linelength reported by
5649 # all of the supported platforms: 8192 (on NT/2K/XP).
5650 lt_cv_sys_max_cmd_len=8192;
5651 ;;
5652
5653 mint*)
5654 # On MiNT this can take a long time and run out of memory.
5655 lt_cv_sys_max_cmd_len=8192;
5656 ;;
5657
5658 amigaos*)
5659 # On AmigaOS with pdksh, this test takes hours, literally.
5660 # So we just punt and use a minimum line length of 8192.
5661 lt_cv_sys_max_cmd_len=8192;
5662 ;;
5663
5664 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5665 # This has been around since 386BSD, at least. Likely further.
5666 if test -x /sbin/sysctl; then
5667 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5668 elif test -x /usr/sbin/sysctl; then
5669 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5670 else
5671 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5672 fi
5673 # And add a safety zone
5674 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5675 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5676 ;;
5677
5678 interix*)
5679 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5680 lt_cv_sys_max_cmd_len=196608
5681 ;;
5682
5683 osf*)
5684 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5685 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5686 # nice to cause kernel panics so lets avoid the loop below.
5687 # First set a reasonable default.
5688 lt_cv_sys_max_cmd_len=16384
5689 #
5690 if test -x /sbin/sysconfig; then
5691 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5692 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5693 esac
5694 fi
5695 ;;
5696 sco3.2v5*)
5697 lt_cv_sys_max_cmd_len=102400
5698 ;;
5699 sysv5* | sco5v6* | sysv4.2uw2*)
5700 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5701 if test -n "$kargmax"; then
5702 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5703 else
5704 lt_cv_sys_max_cmd_len=32768
5705 fi
5706 ;;
5707 *)
5708 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5709 if test -n "$lt_cv_sys_max_cmd_len"; then
5710 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5711 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5712 else
5713 # Make teststring a little bigger before we do anything with it.
5714 # a 1K string should be a reasonable start.
5715 for i in 1 2 3 4 5 6 7 8 ; do
5716 teststring=$teststring$teststring
5717 done
5718 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5719 # If test is not a shell built-in, we'll probably end up computing a
5720 # maximum length that is only half of the actual maximum length, but
5721 # we can't tell.
5722 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5723 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5724 test $i != 17 # 1/2 MB should be enough
5725 do
5726 i=`expr $i + 1`
5727 teststring=$teststring$teststring
5728 done
5729 # Only check the string length outside the loop.
5730 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5731 teststring=
5732 # Add a significant safety factor because C++ compilers can tack on
5733 # massive amounts of additional arguments before passing them to the
5734 # linker. It appears as though 1/2 is a usable value.
5735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5736 fi
5737 ;;
5738 esac
5739
5740 fi
5741
5742 if test -n $lt_cv_sys_max_cmd_len ; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5744 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5745 else
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5747 $as_echo "none" >&6; }
5748 fi
5749 max_cmd_len=$lt_cv_sys_max_cmd_len
5750
5751
5752
5753
5754
5755
5756 : ${CP="cp -f"}
5757 : ${MV="mv -f"}
5758 : ${RM="rm -f"}
5759
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5761 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5762 # Try some XSI features
5763 xsi_shell=no
5764 ( _lt_dummy="a/b/c"
5765 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5766 = c,a/b,, \
5767 && eval 'test $(( 1 + 1 )) -eq 2 \
5768 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5769 && xsi_shell=yes
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5771 $as_echo "$xsi_shell" >&6; }
5772
5773
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5775 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5776 lt_shell_append=no
5777 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5778 >/dev/null 2>&1 \
5779 && lt_shell_append=yes
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5781 $as_echo "$lt_shell_append" >&6; }
5782
5783
5784 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5785 lt_unset=unset
5786 else
5787 lt_unset=false
5788 fi
5789
5790
5791
5792
5793
5794 # test EBCDIC or ASCII
5795 case `echo X|tr X '\101'` in
5796 A) # ASCII based system
5797 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5798 lt_SP2NL='tr \040 \012'
5799 lt_NL2SP='tr \015\012 \040\040'
5800 ;;
5801 *) # EBCDIC based system
5802 lt_SP2NL='tr \100 \n'
5803 lt_NL2SP='tr \r\n \100\100'
5804 ;;
5805 esac
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5816 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5817 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5818 $as_echo_n "(cached) " >&6
5819 else
5820 lt_cv_ld_reload_flag='-r'
5821 fi
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5823 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5824 reload_flag=$lt_cv_ld_reload_flag
5825 case $reload_flag in
5826 "" | " "*) ;;
5827 *) reload_flag=" $reload_flag" ;;
5828 esac
5829 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5830 case $host_os in
5831 darwin*)
5832 if test "$GCC" = yes; then
5833 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5834 else
5835 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5836 fi
5837 ;;
5838 esac
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848 if test -n "$ac_tool_prefix"; then
5849 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5850 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5852 $as_echo_n "checking for $ac_word... " >&6; }
5853 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5854 $as_echo_n "(cached) " >&6
5855 else
5856 if test -n "$OBJDUMP"; then
5857 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5858 else
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 for as_dir in $PATH
5861 do
5862 IFS=$as_save_IFS
5863 test -z "$as_dir" && as_dir=.
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5866 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 break 2
5869 fi
5870 done
5871 done
5872 IFS=$as_save_IFS
5873
5874 fi
5875 fi
5876 OBJDUMP=$ac_cv_prog_OBJDUMP
5877 if test -n "$OBJDUMP"; then
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5879 $as_echo "$OBJDUMP" >&6; }
5880 else
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5882 $as_echo "no" >&6; }
5883 fi
5884
5885
5886 fi
5887 if test -z "$ac_cv_prog_OBJDUMP"; then
5888 ac_ct_OBJDUMP=$OBJDUMP
5889 # Extract the first word of "objdump", so it can be a program name with args.
5890 set dummy objdump; ac_word=$2
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5892 $as_echo_n "checking for $ac_word... " >&6; }
5893 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5894 $as_echo_n "(cached) " >&6
5895 else
5896 if test -n "$ac_ct_OBJDUMP"; then
5897 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5898 else
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 for as_dir in $PATH
5901 do
5902 IFS=$as_save_IFS
5903 test -z "$as_dir" && as_dir=.
5904 for ac_exec_ext in '' $ac_executable_extensions; do
5905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5906 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5908 break 2
5909 fi
5910 done
5911 done
5912 IFS=$as_save_IFS
5913
5914 fi
5915 fi
5916 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5917 if test -n "$ac_ct_OBJDUMP"; then
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5919 $as_echo "$ac_ct_OBJDUMP" >&6; }
5920 else
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922 $as_echo "no" >&6; }
5923 fi
5924
5925 if test "x$ac_ct_OBJDUMP" = x; then
5926 OBJDUMP="false"
5927 else
5928 case $cross_compiling:$ac_tool_warned in
5929 yes:)
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5932 ac_tool_warned=yes ;;
5933 esac
5934 OBJDUMP=$ac_ct_OBJDUMP
5935 fi
5936 else
5937 OBJDUMP="$ac_cv_prog_OBJDUMP"
5938 fi
5939
5940 test -z "$OBJDUMP" && OBJDUMP=objdump
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5951 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5952 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5953 $as_echo_n "(cached) " >&6
5954 else
5955 lt_cv_file_magic_cmd='$MAGIC_CMD'
5956 lt_cv_file_magic_test_file=
5957 lt_cv_deplibs_check_method='unknown'
5958 # Need to set the preceding variable on all platforms that support
5959 # interlibrary dependencies.
5960 # 'none' -- dependencies not supported.
5961 # `unknown' -- same as none, but documents that we really don't know.
5962 # 'pass_all' -- all dependencies passed with no checks.
5963 # 'test_compile' -- check by making test program.
5964 # 'file_magic [[regex]]' -- check by looking for files in library path
5965 # which responds to the $file_magic_cmd with a given extended regex.
5966 # If you have `file' or equivalent on your system and you're not sure
5967 # whether `pass_all' will *always* work, you probably want this one.
5968
5969 case $host_os in
5970 aix[4-9]*)
5971 lt_cv_deplibs_check_method=pass_all
5972 ;;
5973
5974 beos*)
5975 lt_cv_deplibs_check_method=pass_all
5976 ;;
5977
5978 bsdi[45]*)
5979 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5980 lt_cv_file_magic_cmd='/usr/bin/file -L'
5981 lt_cv_file_magic_test_file=/shlib/libc.so
5982 ;;
5983
5984 cygwin*)
5985 # func_win32_libid is a shell function defined in ltmain.sh
5986 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5987 lt_cv_file_magic_cmd='func_win32_libid'
5988 ;;
5989
5990 mingw* | pw32*)
5991 # Base MSYS/MinGW do not provide the 'file' command needed by
5992 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5993 # unless we find 'file', for example because we are cross-compiling.
5994 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5995 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5996 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5997 lt_cv_file_magic_cmd='func_win32_libid'
5998 else
5999 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6000 lt_cv_file_magic_cmd='$OBJDUMP -f'
6001 fi
6002 ;;
6003
6004 cegcc*)
6005 # use the weaker test based on 'objdump'. See mingw*.
6006 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6007 lt_cv_file_magic_cmd='$OBJDUMP -f'
6008 ;;
6009
6010 darwin* | rhapsody*)
6011 lt_cv_deplibs_check_method=pass_all
6012 ;;
6013
6014 freebsd* | dragonfly*)
6015 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6016 case $host_cpu in
6017 i*86 )
6018 # Not sure whether the presence of OpenBSD here was a mistake.
6019 # Let's accept both of them until this is cleared up.
6020 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6021 lt_cv_file_magic_cmd=/usr/bin/file
6022 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6023 ;;
6024 esac
6025 else
6026 lt_cv_deplibs_check_method=pass_all
6027 fi
6028 ;;
6029
6030 gnu*)
6031 lt_cv_deplibs_check_method=pass_all
6032 ;;
6033
6034 haiku*)
6035 lt_cv_deplibs_check_method=pass_all
6036 ;;
6037
6038 hpux10.20* | hpux11*)
6039 lt_cv_file_magic_cmd=/usr/bin/file
6040 case $host_cpu in
6041 ia64*)
6042 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6043 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6044 ;;
6045 hppa*64*)
6046 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]'
6047 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6048 ;;
6049 *)
6050 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6051 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6052 ;;
6053 esac
6054 ;;
6055
6056 interix[3-9]*)
6057 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6058 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6059 ;;
6060
6061 irix5* | irix6* | nonstopux*)
6062 case $LD in
6063 *-32|*"-32 ") libmagic=32-bit;;
6064 *-n32|*"-n32 ") libmagic=N32;;
6065 *-64|*"-64 ") libmagic=64-bit;;
6066 *) libmagic=never-match;;
6067 esac
6068 lt_cv_deplibs_check_method=pass_all
6069 ;;
6070
6071 # This must be Linux ELF.
6072 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6073 lt_cv_deplibs_check_method=pass_all
6074 ;;
6075
6076 netbsd*)
6077 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6078 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6079 else
6080 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6081 fi
6082 ;;
6083
6084 newos6*)
6085 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6086 lt_cv_file_magic_cmd=/usr/bin/file
6087 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6088 ;;
6089
6090 *nto* | *qnx*)
6091 lt_cv_deplibs_check_method=pass_all
6092 ;;
6093
6094 openbsd*)
6095 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6096 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6097 else
6098 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6099 fi
6100 ;;
6101
6102 osf3* | osf4* | osf5*)
6103 lt_cv_deplibs_check_method=pass_all
6104 ;;
6105
6106 rdos*)
6107 lt_cv_deplibs_check_method=pass_all
6108 ;;
6109
6110 solaris*)
6111 lt_cv_deplibs_check_method=pass_all
6112 ;;
6113
6114 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6115 lt_cv_deplibs_check_method=pass_all
6116 ;;
6117
6118 sysv4 | sysv4.3*)
6119 case $host_vendor in
6120 motorola)
6121 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]'
6122 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6123 ;;
6124 ncr)
6125 lt_cv_deplibs_check_method=pass_all
6126 ;;
6127 sequent)
6128 lt_cv_file_magic_cmd='/bin/file'
6129 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6130 ;;
6131 sni)
6132 lt_cv_file_magic_cmd='/bin/file'
6133 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6134 lt_cv_file_magic_test_file=/lib/libc.so
6135 ;;
6136 siemens)
6137 lt_cv_deplibs_check_method=pass_all
6138 ;;
6139 pc)
6140 lt_cv_deplibs_check_method=pass_all
6141 ;;
6142 esac
6143 ;;
6144
6145 tpf*)
6146 lt_cv_deplibs_check_method=pass_all
6147 ;;
6148 esac
6149
6150 fi
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6152 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6153 file_magic_cmd=$lt_cv_file_magic_cmd
6154 deplibs_check_method=$lt_cv_deplibs_check_method
6155 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168 if test -n "$ac_tool_prefix"; then
6169 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6170 set dummy ${ac_tool_prefix}ar; ac_word=$2
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6172 $as_echo_n "checking for $ac_word... " >&6; }
6173 if test "${ac_cv_prog_AR+set}" = set; then :
6174 $as_echo_n "(cached) " >&6
6175 else
6176 if test -n "$AR"; then
6177 ac_cv_prog_AR="$AR" # Let the user override the test.
6178 else
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180 for as_dir in $PATH
6181 do
6182 IFS=$as_save_IFS
6183 test -z "$as_dir" && as_dir=.
6184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6186 ac_cv_prog_AR="${ac_tool_prefix}ar"
6187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6188 break 2
6189 fi
6190 done
6191 done
6192 IFS=$as_save_IFS
6193
6194 fi
6195 fi
6196 AR=$ac_cv_prog_AR
6197 if test -n "$AR"; then
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6199 $as_echo "$AR" >&6; }
6200 else
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6202 $as_echo "no" >&6; }
6203 fi
6204
6205
6206 fi
6207 if test -z "$ac_cv_prog_AR"; then
6208 ac_ct_AR=$AR
6209 # Extract the first word of "ar", so it can be a program name with args.
6210 set dummy ar; ac_word=$2
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6212 $as_echo_n "checking for $ac_word... " >&6; }
6213 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6214 $as_echo_n "(cached) " >&6
6215 else
6216 if test -n "$ac_ct_AR"; then
6217 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6218 else
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 for as_dir in $PATH
6221 do
6222 IFS=$as_save_IFS
6223 test -z "$as_dir" && as_dir=.
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6226 ac_cv_prog_ac_ct_AR="ar"
6227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6228 break 2
6229 fi
6230 done
6231 done
6232 IFS=$as_save_IFS
6233
6234 fi
6235 fi
6236 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6237 if test -n "$ac_ct_AR"; then
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6239 $as_echo "$ac_ct_AR" >&6; }
6240 else
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242 $as_echo "no" >&6; }
6243 fi
6244
6245 if test "x$ac_ct_AR" = x; then
6246 AR="false"
6247 else
6248 case $cross_compiling:$ac_tool_warned in
6249 yes:)
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6252 ac_tool_warned=yes ;;
6253 esac
6254 AR=$ac_ct_AR
6255 fi
6256 else
6257 AR="$ac_cv_prog_AR"
6258 fi
6259
6260 test -z "$AR" && AR=ar
6261 test -z "$AR_FLAGS" && AR_FLAGS=cru
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273 if test -n "$ac_tool_prefix"; then
6274 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6275 set dummy ${ac_tool_prefix}strip; ac_word=$2
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277 $as_echo_n "checking for $ac_word... " >&6; }
6278 if test "${ac_cv_prog_STRIP+set}" = set; then :
6279 $as_echo_n "(cached) " >&6
6280 else
6281 if test -n "$STRIP"; then
6282 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6283 else
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 for as_dir in $PATH
6286 do
6287 IFS=$as_save_IFS
6288 test -z "$as_dir" && as_dir=.
6289 for ac_exec_ext in '' $ac_executable_extensions; do
6290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6291 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6293 break 2
6294 fi
6295 done
6296 done
6297 IFS=$as_save_IFS
6298
6299 fi
6300 fi
6301 STRIP=$ac_cv_prog_STRIP
6302 if test -n "$STRIP"; then
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6304 $as_echo "$STRIP" >&6; }
6305 else
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307 $as_echo "no" >&6; }
6308 fi
6309
6310
6311 fi
6312 if test -z "$ac_cv_prog_STRIP"; then
6313 ac_ct_STRIP=$STRIP
6314 # Extract the first word of "strip", so it can be a program name with args.
6315 set dummy strip; ac_word=$2
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317 $as_echo_n "checking for $ac_word... " >&6; }
6318 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6319 $as_echo_n "(cached) " >&6
6320 else
6321 if test -n "$ac_ct_STRIP"; then
6322 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6323 else
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325 for as_dir in $PATH
6326 do
6327 IFS=$as_save_IFS
6328 test -z "$as_dir" && as_dir=.
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6331 ac_cv_prog_ac_ct_STRIP="strip"
6332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6333 break 2
6334 fi
6335 done
6336 done
6337 IFS=$as_save_IFS
6338
6339 fi
6340 fi
6341 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6342 if test -n "$ac_ct_STRIP"; then
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6344 $as_echo "$ac_ct_STRIP" >&6; }
6345 else
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347 $as_echo "no" >&6; }
6348 fi
6349
6350 if test "x$ac_ct_STRIP" = x; then
6351 STRIP=":"
6352 else
6353 case $cross_compiling:$ac_tool_warned in
6354 yes:)
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6357 ac_tool_warned=yes ;;
6358 esac
6359 STRIP=$ac_ct_STRIP
6360 fi
6361 else
6362 STRIP="$ac_cv_prog_STRIP"
6363 fi
6364
6365 test -z "$STRIP" && STRIP=:
6366
6367
6368
6369
6370
6371
6372 if test -n "$ac_tool_prefix"; then
6373 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6374 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6376 $as_echo_n "checking for $ac_word... " >&6; }
6377 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6378 $as_echo_n "(cached) " >&6
6379 else
6380 if test -n "$RANLIB"; then
6381 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6382 else
6383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384 for as_dir in $PATH
6385 do
6386 IFS=$as_save_IFS
6387 test -z "$as_dir" && as_dir=.
6388 for ac_exec_ext in '' $ac_executable_extensions; do
6389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6390 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6392 break 2
6393 fi
6394 done
6395 done
6396 IFS=$as_save_IFS
6397
6398 fi
6399 fi
6400 RANLIB=$ac_cv_prog_RANLIB
6401 if test -n "$RANLIB"; then
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6403 $as_echo "$RANLIB" >&6; }
6404 else
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6406 $as_echo "no" >&6; }
6407 fi
6408
6409
6410 fi
6411 if test -z "$ac_cv_prog_RANLIB"; then
6412 ac_ct_RANLIB=$RANLIB
6413 # Extract the first word of "ranlib", so it can be a program name with args.
6414 set dummy ranlib; ac_word=$2
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416 $as_echo_n "checking for $ac_word... " >&6; }
6417 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6418 $as_echo_n "(cached) " >&6
6419 else
6420 if test -n "$ac_ct_RANLIB"; then
6421 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6422 else
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 for as_dir in $PATH
6425 do
6426 IFS=$as_save_IFS
6427 test -z "$as_dir" && as_dir=.
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6430 ac_cv_prog_ac_ct_RANLIB="ranlib"
6431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6432 break 2
6433 fi
6434 done
6435 done
6436 IFS=$as_save_IFS
6437
6438 fi
6439 fi
6440 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6441 if test -n "$ac_ct_RANLIB"; then
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6443 $as_echo "$ac_ct_RANLIB" >&6; }
6444 else
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446 $as_echo "no" >&6; }
6447 fi
6448
6449 if test "x$ac_ct_RANLIB" = x; then
6450 RANLIB=":"
6451 else
6452 case $cross_compiling:$ac_tool_warned in
6453 yes:)
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6456 ac_tool_warned=yes ;;
6457 esac
6458 RANLIB=$ac_ct_RANLIB
6459 fi
6460 else
6461 RANLIB="$ac_cv_prog_RANLIB"
6462 fi
6463
6464 test -z "$RANLIB" && RANLIB=:
6465
6466
6467
6468
6469
6470
6471 # Determine commands to create old-style static archives.
6472 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6473 old_postinstall_cmds='chmod 644 $oldlib'
6474 old_postuninstall_cmds=
6475
6476 if test -n "$RANLIB"; then
6477 case $host_os in
6478 openbsd*)
6479 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6480 ;;
6481 *)
6482 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6483 ;;
6484 esac
6485 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6486 fi
6487
6488 case $host_os in
6489 darwin*)
6490 lock_old_archive_extraction=yes ;;
6491 *)
6492 lock_old_archive_extraction=no ;;
6493 esac
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533 # If no C compiler was specified, use CC.
6534 LTCC=${LTCC-"$CC"}
6535
6536 # If no C compiler flags were specified, use CFLAGS.
6537 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6538
6539 # Allow CC to be a program name with arguments.
6540 compiler=$CC
6541
6542
6543 # Check for command to grab the raw symbol name followed by C symbol from nm.
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6545 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6546 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6547 $as_echo_n "(cached) " >&6
6548 else
6549
6550 # These are sane defaults that work on at least a few old systems.
6551 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6552
6553 # Character class describing NM global symbol codes.
6554 symcode='[BCDEGRST]'
6555
6556 # Regexp to match symbols that can be accessed directly from C.
6557 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6558
6559 # Define system-specific variables.
6560 case $host_os in
6561 aix*)
6562 symcode='[BCDT]'
6563 ;;
6564 cygwin* | mingw* | pw32* | cegcc*)
6565 symcode='[ABCDGISTW]'
6566 ;;
6567 hpux*)
6568 if test "$host_cpu" = ia64; then
6569 symcode='[ABCDEGRST]'
6570 fi
6571 ;;
6572 irix* | nonstopux*)
6573 symcode='[BCDEGRST]'
6574 ;;
6575 osf*)
6576 symcode='[BCDEGQRST]'
6577 ;;
6578 solaris*)
6579 symcode='[BDRT]'
6580 ;;
6581 sco3.2v5*)
6582 symcode='[DT]'
6583 ;;
6584 sysv4.2uw2*)
6585 symcode='[DT]'
6586 ;;
6587 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6588 symcode='[ABDT]'
6589 ;;
6590 sysv4)
6591 symcode='[DFNSTU]'
6592 ;;
6593 esac
6594
6595 # If we're using GNU nm, then use its standard symbol codes.
6596 case `$NM -V 2>&1` in
6597 *GNU* | *'with BFD'*)
6598 symcode='[ABCDGIRSTW]' ;;
6599 esac
6600
6601 # Transform an extracted symbol line into a proper C declaration.
6602 # Some systems (esp. on ia64) link data and code symbols differently,
6603 # so use this general approach.
6604 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6605
6606 # Transform an extracted symbol line into symbol name and symbol address
6607 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6608 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'"
6609
6610 # Handle CRLF in mingw tool chain
6611 opt_cr=
6612 case $build_os in
6613 mingw*)
6614 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6615 ;;
6616 esac
6617
6618 # Try without a prefix underscore, then with it.
6619 for ac_symprfx in "" "_"; do
6620
6621 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6622 symxfrm="\\1 $ac_symprfx\\2 \\2"
6623
6624 # Write the raw and C identifiers.
6625 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6626 # Fake it for dumpbin and say T for any non-static function
6627 # and D for any global variable.
6628 # Also find C++ and __fastcall symbols from MSVC++,
6629 # which start with @ or ?.
6630 lt_cv_sys_global_symbol_pipe="$AWK '"\
6631 " {last_section=section; section=\$ 3};"\
6632 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6633 " \$ 0!~/External *\|/{next};"\
6634 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6635 " {if(hide[section]) next};"\
6636 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6637 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6638 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6639 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6640 " ' prfx=^$ac_symprfx"
6641 else
6642 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6643 fi
6644
6645 # Check to see that the pipe works correctly.
6646 pipe_works=no
6647
6648 rm -f conftest*
6649 cat > conftest.$ac_ext <<_LT_EOF
6650 #ifdef __cplusplus
6651 extern "C" {
6652 #endif
6653 char nm_test_var;
6654 void nm_test_func(void);
6655 void nm_test_func(void){}
6656 #ifdef __cplusplus
6657 }
6658 #endif
6659 int main(){nm_test_var='a';nm_test_func();return(0);}
6660 _LT_EOF
6661
6662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6663 (eval $ac_compile) 2>&5
6664 ac_status=$?
6665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6666 test $ac_status = 0; }; then
6667 # Now try to grab the symbols.
6668 nlist=conftest.nm
6669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6670 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6671 ac_status=$?
6672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6673 test $ac_status = 0; } && test -s "$nlist"; then
6674 # Try sorting and uniquifying the output.
6675 if sort "$nlist" | uniq > "$nlist"T; then
6676 mv -f "$nlist"T "$nlist"
6677 else
6678 rm -f "$nlist"T
6679 fi
6680
6681 # Make sure that we snagged all the symbols we need.
6682 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6683 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6684 cat <<_LT_EOF > conftest.$ac_ext
6685 #ifdef __cplusplus
6686 extern "C" {
6687 #endif
6688
6689 _LT_EOF
6690 # Now generate the symbol file.
6691 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6692
6693 cat <<_LT_EOF >> conftest.$ac_ext
6694
6695 /* The mapping between symbol names and symbols. */
6696 const struct {
6697 const char *name;
6698 void *address;
6699 }
6700 lt__PROGRAM__LTX_preloaded_symbols[] =
6701 {
6702 { "@PROGRAM@", (void *) 0 },
6703 _LT_EOF
6704 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6705 cat <<\_LT_EOF >> conftest.$ac_ext
6706 {0, (void *) 0}
6707 };
6708
6709 /* This works around a problem in FreeBSD linker */
6710 #ifdef FREEBSD_WORKAROUND
6711 static const void *lt_preloaded_setup() {
6712 return lt__PROGRAM__LTX_preloaded_symbols;
6713 }
6714 #endif
6715
6716 #ifdef __cplusplus
6717 }
6718 #endif
6719 _LT_EOF
6720 # Now try linking the two files.
6721 mv conftest.$ac_objext conftstm.$ac_objext
6722 lt_save_LIBS="$LIBS"
6723 lt_save_CFLAGS="$CFLAGS"
6724 LIBS="conftstm.$ac_objext"
6725 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6727 (eval $ac_link) 2>&5
6728 ac_status=$?
6729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6730 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6731 pipe_works=yes
6732 fi
6733 LIBS="$lt_save_LIBS"
6734 CFLAGS="$lt_save_CFLAGS"
6735 else
6736 echo "cannot find nm_test_func in $nlist" >&5
6737 fi
6738 else
6739 echo "cannot find nm_test_var in $nlist" >&5
6740 fi
6741 else
6742 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6743 fi
6744 else
6745 echo "$progname: failed program was:" >&5
6746 cat conftest.$ac_ext >&5
6747 fi
6748 rm -rf conftest* conftst*
6749
6750 # Do not use the global_symbol_pipe unless it works.
6751 if test "$pipe_works" = yes; then
6752 break
6753 else
6754 lt_cv_sys_global_symbol_pipe=
6755 fi
6756 done
6757
6758 fi
6759
6760 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6761 lt_cv_sys_global_symbol_to_cdecl=
6762 fi
6763 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6765 $as_echo "failed" >&6; }
6766 else
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6768 $as_echo "ok" >&6; }
6769 fi
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793 # Check whether --enable-libtool-lock was given.
6794 if test "${enable_libtool_lock+set}" = set; then :
6795 enableval=$enable_libtool_lock;
6796 fi
6797
6798 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6799
6800 # Some flags need to be propagated to the compiler or linker for good
6801 # libtool support.
6802 case $host in
6803 ia64-*-hpux*)
6804 # Find out which ABI we are using.
6805 echo 'int i;' > conftest.$ac_ext
6806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6807 (eval $ac_compile) 2>&5
6808 ac_status=$?
6809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6810 test $ac_status = 0; }; then
6811 case `/usr/bin/file conftest.$ac_objext` in
6812 *ELF-32*)
6813 HPUX_IA64_MODE="32"
6814 ;;
6815 *ELF-64*)
6816 HPUX_IA64_MODE="64"
6817 ;;
6818 esac
6819 fi
6820 rm -rf conftest*
6821 ;;
6822 *-*-irix6*)
6823 # Find out which ABI we are using.
6824 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6826 (eval $ac_compile) 2>&5
6827 ac_status=$?
6828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6829 test $ac_status = 0; }; then
6830 if test "$lt_cv_prog_gnu_ld" = yes; then
6831 case `/usr/bin/file conftest.$ac_objext` in
6832 *32-bit*)
6833 LD="${LD-ld} -melf32bsmip"
6834 ;;
6835 *N32*)
6836 LD="${LD-ld} -melf32bmipn32"
6837 ;;
6838 *64-bit*)
6839 LD="${LD-ld} -melf64bmip"
6840 ;;
6841 esac
6842 else
6843 case `/usr/bin/file conftest.$ac_objext` in
6844 *32-bit*)
6845 LD="${LD-ld} -32"
6846 ;;
6847 *N32*)
6848 LD="${LD-ld} -n32"
6849 ;;
6850 *64-bit*)
6851 LD="${LD-ld} -64"
6852 ;;
6853 esac
6854 fi
6855 fi
6856 rm -rf conftest*
6857 ;;
6858
6859 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6860 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6861 # Find out which ABI we are using.
6862 echo 'int i;' > conftest.$ac_ext
6863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6864 (eval $ac_compile) 2>&5
6865 ac_status=$?
6866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6867 test $ac_status = 0; }; then
6868 case `/usr/bin/file conftest.o` in
6869 *32-bit*)
6870 case $host in
6871 x86_64-*kfreebsd*-gnu)
6872 LD="${LD-ld} -m elf_i386_fbsd"
6873 ;;
6874 x86_64-*linux*)
6875 LD="${LD-ld} -m elf_i386"
6876 ;;
6877 ppc64-*linux*|powerpc64-*linux*)
6878 LD="${LD-ld} -m elf32ppclinux"
6879 ;;
6880 s390x-*linux*)
6881 LD="${LD-ld} -m elf_s390"
6882 ;;
6883 sparc64-*linux*)
6884 LD="${LD-ld} -m elf32_sparc"
6885 ;;
6886 esac
6887 ;;
6888 *64-bit*)
6889 case $host in
6890 x86_64-*kfreebsd*-gnu)
6891 LD="${LD-ld} -m elf_x86_64_fbsd"
6892 ;;
6893 x86_64-*linux*)
6894 LD="${LD-ld} -m elf_x86_64"
6895 ;;
6896 ppc*-*linux*|powerpc*-*linux*)
6897 LD="${LD-ld} -m elf64ppc"
6898 ;;
6899 s390*-*linux*|s390*-*tpf*)
6900 LD="${LD-ld} -m elf64_s390"
6901 ;;
6902 sparc*-*linux*)
6903 LD="${LD-ld} -m elf64_sparc"
6904 ;;
6905 esac
6906 ;;
6907 esac
6908 fi
6909 rm -rf conftest*
6910 ;;
6911
6912 *-*-sco3.2v5*)
6913 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6914 SAVE_CFLAGS="$CFLAGS"
6915 CFLAGS="$CFLAGS -belf"
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6917 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6918 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6919 $as_echo_n "(cached) " >&6
6920 else
6921 ac_ext=c
6922 ac_cpp='$CPP $CPPFLAGS'
6923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6926
6927 if test x$gcc_no_link = xyes; then
6928 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6929 fi
6930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h. */
6932
6933 int
6934 main ()
6935 {
6936
6937 ;
6938 return 0;
6939 }
6940 _ACEOF
6941 if ac_fn_c_try_link "$LINENO"; then :
6942 lt_cv_cc_needs_belf=yes
6943 else
6944 lt_cv_cc_needs_belf=no
6945 fi
6946 rm -f core conftest.err conftest.$ac_objext \
6947 conftest$ac_exeext conftest.$ac_ext
6948 ac_ext=c
6949 ac_cpp='$CPP $CPPFLAGS'
6950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6953
6954 fi
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6956 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6957 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6958 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6959 CFLAGS="$SAVE_CFLAGS"
6960 fi
6961 ;;
6962 sparc*-*solaris*)
6963 # Find out which ABI we are using.
6964 echo 'int i;' > conftest.$ac_ext
6965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6966 (eval $ac_compile) 2>&5
6967 ac_status=$?
6968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6969 test $ac_status = 0; }; then
6970 case `/usr/bin/file conftest.o` in
6971 *64-bit*)
6972 case $lt_cv_prog_gnu_ld in
6973 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6974 *)
6975 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6976 LD="${LD-ld} -64"
6977 fi
6978 ;;
6979 esac
6980 ;;
6981 esac
6982 fi
6983 rm -rf conftest*
6984 ;;
6985 esac
6986
6987 need_locks="$enable_libtool_lock"
6988
6989
6990 case $host_os in
6991 rhapsody* | darwin*)
6992 if test -n "$ac_tool_prefix"; then
6993 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6994 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6996 $as_echo_n "checking for $ac_word... " >&6; }
6997 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6998 $as_echo_n "(cached) " >&6
6999 else
7000 if test -n "$DSYMUTIL"; then
7001 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7002 else
7003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004 for as_dir in $PATH
7005 do
7006 IFS=$as_save_IFS
7007 test -z "$as_dir" && as_dir=.
7008 for ac_exec_ext in '' $ac_executable_extensions; do
7009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7010 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7012 break 2
7013 fi
7014 done
7015 done
7016 IFS=$as_save_IFS
7017
7018 fi
7019 fi
7020 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7021 if test -n "$DSYMUTIL"; then
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7023 $as_echo "$DSYMUTIL" >&6; }
7024 else
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7026 $as_echo "no" >&6; }
7027 fi
7028
7029
7030 fi
7031 if test -z "$ac_cv_prog_DSYMUTIL"; then
7032 ac_ct_DSYMUTIL=$DSYMUTIL
7033 # Extract the first word of "dsymutil", so it can be a program name with args.
7034 set dummy dsymutil; ac_word=$2
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7036 $as_echo_n "checking for $ac_word... " >&6; }
7037 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7038 $as_echo_n "(cached) " >&6
7039 else
7040 if test -n "$ac_ct_DSYMUTIL"; then
7041 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7042 else
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 for as_dir in $PATH
7045 do
7046 IFS=$as_save_IFS
7047 test -z "$as_dir" && as_dir=.
7048 for ac_exec_ext in '' $ac_executable_extensions; do
7049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7050 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7052 break 2
7053 fi
7054 done
7055 done
7056 IFS=$as_save_IFS
7057
7058 fi
7059 fi
7060 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7061 if test -n "$ac_ct_DSYMUTIL"; then
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7063 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7064 else
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066 $as_echo "no" >&6; }
7067 fi
7068
7069 if test "x$ac_ct_DSYMUTIL" = x; then
7070 DSYMUTIL=":"
7071 else
7072 case $cross_compiling:$ac_tool_warned in
7073 yes:)
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7076 ac_tool_warned=yes ;;
7077 esac
7078 DSYMUTIL=$ac_ct_DSYMUTIL
7079 fi
7080 else
7081 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7082 fi
7083
7084 if test -n "$ac_tool_prefix"; then
7085 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7086 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7088 $as_echo_n "checking for $ac_word... " >&6; }
7089 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7090 $as_echo_n "(cached) " >&6
7091 else
7092 if test -n "$NMEDIT"; then
7093 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7094 else
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 for as_dir in $PATH
7097 do
7098 IFS=$as_save_IFS
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7102 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 break 2
7105 fi
7106 done
7107 done
7108 IFS=$as_save_IFS
7109
7110 fi
7111 fi
7112 NMEDIT=$ac_cv_prog_NMEDIT
7113 if test -n "$NMEDIT"; then
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7115 $as_echo "$NMEDIT" >&6; }
7116 else
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118 $as_echo "no" >&6; }
7119 fi
7120
7121
7122 fi
7123 if test -z "$ac_cv_prog_NMEDIT"; then
7124 ac_ct_NMEDIT=$NMEDIT
7125 # Extract the first word of "nmedit", so it can be a program name with args.
7126 set dummy nmedit; ac_word=$2
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7128 $as_echo_n "checking for $ac_word... " >&6; }
7129 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7130 $as_echo_n "(cached) " >&6
7131 else
7132 if test -n "$ac_ct_NMEDIT"; then
7133 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7134 else
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138 IFS=$as_save_IFS
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7142 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 break 2
7145 fi
7146 done
7147 done
7148 IFS=$as_save_IFS
7149
7150 fi
7151 fi
7152 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7153 if test -n "$ac_ct_NMEDIT"; then
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7155 $as_echo "$ac_ct_NMEDIT" >&6; }
7156 else
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158 $as_echo "no" >&6; }
7159 fi
7160
7161 if test "x$ac_ct_NMEDIT" = x; then
7162 NMEDIT=":"
7163 else
7164 case $cross_compiling:$ac_tool_warned in
7165 yes:)
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7168 ac_tool_warned=yes ;;
7169 esac
7170 NMEDIT=$ac_ct_NMEDIT
7171 fi
7172 else
7173 NMEDIT="$ac_cv_prog_NMEDIT"
7174 fi
7175
7176 if test -n "$ac_tool_prefix"; then
7177 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7178 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7180 $as_echo_n "checking for $ac_word... " >&6; }
7181 if test "${ac_cv_prog_LIPO+set}" = set; then :
7182 $as_echo_n "(cached) " >&6
7183 else
7184 if test -n "$LIPO"; then
7185 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7186 else
7187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188 for as_dir in $PATH
7189 do
7190 IFS=$as_save_IFS
7191 test -z "$as_dir" && as_dir=.
7192 for ac_exec_ext in '' $ac_executable_extensions; do
7193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7194 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7196 break 2
7197 fi
7198 done
7199 done
7200 IFS=$as_save_IFS
7201
7202 fi
7203 fi
7204 LIPO=$ac_cv_prog_LIPO
7205 if test -n "$LIPO"; then
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7207 $as_echo "$LIPO" >&6; }
7208 else
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7210 $as_echo "no" >&6; }
7211 fi
7212
7213
7214 fi
7215 if test -z "$ac_cv_prog_LIPO"; then
7216 ac_ct_LIPO=$LIPO
7217 # Extract the first word of "lipo", so it can be a program name with args.
7218 set dummy lipo; ac_word=$2
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7220 $as_echo_n "checking for $ac_word... " >&6; }
7221 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7222 $as_echo_n "(cached) " >&6
7223 else
7224 if test -n "$ac_ct_LIPO"; then
7225 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7226 else
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 for as_dir in $PATH
7229 do
7230 IFS=$as_save_IFS
7231 test -z "$as_dir" && as_dir=.
7232 for ac_exec_ext in '' $ac_executable_extensions; do
7233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7234 ac_cv_prog_ac_ct_LIPO="lipo"
7235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7236 break 2
7237 fi
7238 done
7239 done
7240 IFS=$as_save_IFS
7241
7242 fi
7243 fi
7244 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7245 if test -n "$ac_ct_LIPO"; then
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7247 $as_echo "$ac_ct_LIPO" >&6; }
7248 else
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7250 $as_echo "no" >&6; }
7251 fi
7252
7253 if test "x$ac_ct_LIPO" = x; then
7254 LIPO=":"
7255 else
7256 case $cross_compiling:$ac_tool_warned in
7257 yes:)
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7260 ac_tool_warned=yes ;;
7261 esac
7262 LIPO=$ac_ct_LIPO
7263 fi
7264 else
7265 LIPO="$ac_cv_prog_LIPO"
7266 fi
7267
7268 if test -n "$ac_tool_prefix"; then
7269 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7270 set dummy ${ac_tool_prefix}otool; ac_word=$2
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7272 $as_echo_n "checking for $ac_word... " >&6; }
7273 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7274 $as_echo_n "(cached) " >&6
7275 else
7276 if test -n "$OTOOL"; then
7277 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7278 else
7279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280 for as_dir in $PATH
7281 do
7282 IFS=$as_save_IFS
7283 test -z "$as_dir" && as_dir=.
7284 for ac_exec_ext in '' $ac_executable_extensions; do
7285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7286 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7288 break 2
7289 fi
7290 done
7291 done
7292 IFS=$as_save_IFS
7293
7294 fi
7295 fi
7296 OTOOL=$ac_cv_prog_OTOOL
7297 if test -n "$OTOOL"; then
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7299 $as_echo "$OTOOL" >&6; }
7300 else
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7302 $as_echo "no" >&6; }
7303 fi
7304
7305
7306 fi
7307 if test -z "$ac_cv_prog_OTOOL"; then
7308 ac_ct_OTOOL=$OTOOL
7309 # Extract the first word of "otool", so it can be a program name with args.
7310 set dummy otool; ac_word=$2
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7312 $as_echo_n "checking for $ac_word... " >&6; }
7313 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7314 $as_echo_n "(cached) " >&6
7315 else
7316 if test -n "$ac_ct_OTOOL"; then
7317 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7318 else
7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 for as_dir in $PATH
7321 do
7322 IFS=$as_save_IFS
7323 test -z "$as_dir" && as_dir=.
7324 for ac_exec_ext in '' $ac_executable_extensions; do
7325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7326 ac_cv_prog_ac_ct_OTOOL="otool"
7327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 break 2
7329 fi
7330 done
7331 done
7332 IFS=$as_save_IFS
7333
7334 fi
7335 fi
7336 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7337 if test -n "$ac_ct_OTOOL"; then
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7339 $as_echo "$ac_ct_OTOOL" >&6; }
7340 else
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342 $as_echo "no" >&6; }
7343 fi
7344
7345 if test "x$ac_ct_OTOOL" = x; then
7346 OTOOL=":"
7347 else
7348 case $cross_compiling:$ac_tool_warned in
7349 yes:)
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7352 ac_tool_warned=yes ;;
7353 esac
7354 OTOOL=$ac_ct_OTOOL
7355 fi
7356 else
7357 OTOOL="$ac_cv_prog_OTOOL"
7358 fi
7359
7360 if test -n "$ac_tool_prefix"; then
7361 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7362 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7364 $as_echo_n "checking for $ac_word... " >&6; }
7365 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7366 $as_echo_n "(cached) " >&6
7367 else
7368 if test -n "$OTOOL64"; then
7369 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7370 else
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 for as_dir in $PATH
7373 do
7374 IFS=$as_save_IFS
7375 test -z "$as_dir" && as_dir=.
7376 for ac_exec_ext in '' $ac_executable_extensions; do
7377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7378 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7380 break 2
7381 fi
7382 done
7383 done
7384 IFS=$as_save_IFS
7385
7386 fi
7387 fi
7388 OTOOL64=$ac_cv_prog_OTOOL64
7389 if test -n "$OTOOL64"; then
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7391 $as_echo "$OTOOL64" >&6; }
7392 else
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7394 $as_echo "no" >&6; }
7395 fi
7396
7397
7398 fi
7399 if test -z "$ac_cv_prog_OTOOL64"; then
7400 ac_ct_OTOOL64=$OTOOL64
7401 # Extract the first word of "otool64", so it can be a program name with args.
7402 set dummy otool64; ac_word=$2
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404 $as_echo_n "checking for $ac_word... " >&6; }
7405 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7406 $as_echo_n "(cached) " >&6
7407 else
7408 if test -n "$ac_ct_OTOOL64"; then
7409 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7410 else
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 for as_dir in $PATH
7413 do
7414 IFS=$as_save_IFS
7415 test -z "$as_dir" && as_dir=.
7416 for ac_exec_ext in '' $ac_executable_extensions; do
7417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7418 ac_cv_prog_ac_ct_OTOOL64="otool64"
7419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7420 break 2
7421 fi
7422 done
7423 done
7424 IFS=$as_save_IFS
7425
7426 fi
7427 fi
7428 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7429 if test -n "$ac_ct_OTOOL64"; then
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7431 $as_echo "$ac_ct_OTOOL64" >&6; }
7432 else
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 $as_echo "no" >&6; }
7435 fi
7436
7437 if test "x$ac_ct_OTOOL64" = x; then
7438 OTOOL64=":"
7439 else
7440 case $cross_compiling:$ac_tool_warned in
7441 yes:)
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7444 ac_tool_warned=yes ;;
7445 esac
7446 OTOOL64=$ac_ct_OTOOL64
7447 fi
7448 else
7449 OTOOL64="$ac_cv_prog_OTOOL64"
7450 fi
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7479 $as_echo_n "checking for -single_module linker flag... " >&6; }
7480 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7481 $as_echo_n "(cached) " >&6
7482 else
7483 lt_cv_apple_cc_single_mod=no
7484 if test -z "${LT_MULTI_MODULE}"; then
7485 # By default we will add the -single_module flag. You can override
7486 # by either setting the environment variable LT_MULTI_MODULE
7487 # non-empty at configure time, or by adding -multi_module to the
7488 # link flags.
7489 rm -rf libconftest.dylib*
7490 echo "int foo(void){return 1;}" > conftest.c
7491 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7492 -dynamiclib -Wl,-single_module conftest.c" >&5
7493 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7494 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7495 _lt_result=$?
7496 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7497 lt_cv_apple_cc_single_mod=yes
7498 else
7499 cat conftest.err >&5
7500 fi
7501 rm -rf libconftest.dylib*
7502 rm -f conftest.*
7503 fi
7504 fi
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7506 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7508 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7509 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7510 $as_echo_n "(cached) " >&6
7511 else
7512 lt_cv_ld_exported_symbols_list=no
7513 save_LDFLAGS=$LDFLAGS
7514 echo "_main" > conftest.sym
7515 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7516 if test x$gcc_no_link = xyes; then
7517 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7518 fi
7519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520 /* end confdefs.h. */
7521
7522 int
7523 main ()
7524 {
7525
7526 ;
7527 return 0;
7528 }
7529 _ACEOF
7530 if ac_fn_c_try_link "$LINENO"; then :
7531 lt_cv_ld_exported_symbols_list=yes
7532 else
7533 lt_cv_ld_exported_symbols_list=no
7534 fi
7535 rm -f core conftest.err conftest.$ac_objext \
7536 conftest$ac_exeext conftest.$ac_ext
7537 LDFLAGS="$save_LDFLAGS"
7538
7539 fi
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7541 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7543 $as_echo_n "checking for -force_load linker flag... " >&6; }
7544 if test "${lt_cv_ld_force_load+set}" = set; then :
7545 $as_echo_n "(cached) " >&6
7546 else
7547 lt_cv_ld_force_load=no
7548 cat > conftest.c << _LT_EOF
7549 int forced_loaded() { return 2;}
7550 _LT_EOF
7551 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7552 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7553 echo "$AR cru libconftest.a conftest.o" >&5
7554 $AR cru libconftest.a conftest.o 2>&5
7555 cat > conftest.c << _LT_EOF
7556 int main() { return 0;}
7557 _LT_EOF
7558 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7559 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7560 _lt_result=$?
7561 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7562 lt_cv_ld_force_load=yes
7563 else
7564 cat conftest.err >&5
7565 fi
7566 rm -f conftest.err libconftest.a conftest conftest.c
7567 rm -rf conftest.dSYM
7568
7569 fi
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7571 $as_echo "$lt_cv_ld_force_load" >&6; }
7572 case $host_os in
7573 rhapsody* | darwin1.[012])
7574 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7575 darwin1.*)
7576 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7577 darwin*) # darwin 5.x on
7578 # if running on 10.5 or later, the deployment target defaults
7579 # to the OS version, if on x86, and 10.4, the deployment
7580 # target defaults to 10.4. Don't you love it?
7581 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7582 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7583 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7584 10.[012]*)
7585 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7586 10.*)
7587 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7588 esac
7589 ;;
7590 esac
7591 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7592 _lt_dar_single_mod='$single_module'
7593 fi
7594 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7595 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7596 else
7597 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7598 fi
7599 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7600 _lt_dsymutil='~$DSYMUTIL $lib || :'
7601 else
7602 _lt_dsymutil=
7603 fi
7604 ;;
7605 esac
7606
7607 ac_ext=c
7608 ac_cpp='$CPP $CPPFLAGS'
7609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7613 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7614 # On Suns, sometimes $CPP names a directory.
7615 if test -n "$CPP" && test -d "$CPP"; then
7616 CPP=
7617 fi
7618 if test -z "$CPP"; then
7619 if test "${ac_cv_prog_CPP+set}" = set; then :
7620 $as_echo_n "(cached) " >&6
7621 else
7622 # Double quotes because CPP needs to be expanded
7623 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7624 do
7625 ac_preproc_ok=false
7626 for ac_c_preproc_warn_flag in '' yes
7627 do
7628 # Use a header file that comes with gcc, so configuring glibc
7629 # with a fresh cross-compiler works.
7630 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7631 # <limits.h> exists even on freestanding compilers.
7632 # On the NeXT, cc -E runs the code through the compiler's parser,
7633 # not just through cpp. "Syntax error" is here to catch this case.
7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h. */
7636 #ifdef __STDC__
7637 # include <limits.h>
7638 #else
7639 # include <assert.h>
7640 #endif
7641 Syntax error
7642 _ACEOF
7643 if ac_fn_c_try_cpp "$LINENO"; then :
7644
7645 else
7646 # Broken: fails on valid input.
7647 continue
7648 fi
7649 rm -f conftest.err conftest.$ac_ext
7650
7651 # OK, works on sane cases. Now check whether nonexistent headers
7652 # can be detected and how.
7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654 /* end confdefs.h. */
7655 #include <ac_nonexistent.h>
7656 _ACEOF
7657 if ac_fn_c_try_cpp "$LINENO"; then :
7658 # Broken: success on invalid input.
7659 continue
7660 else
7661 # Passes both tests.
7662 ac_preproc_ok=:
7663 break
7664 fi
7665 rm -f conftest.err conftest.$ac_ext
7666
7667 done
7668 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7669 rm -f conftest.err conftest.$ac_ext
7670 if $ac_preproc_ok; then :
7671 break
7672 fi
7673
7674 done
7675 ac_cv_prog_CPP=$CPP
7676
7677 fi
7678 CPP=$ac_cv_prog_CPP
7679 else
7680 ac_cv_prog_CPP=$CPP
7681 fi
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7683 $as_echo "$CPP" >&6; }
7684 ac_preproc_ok=false
7685 for ac_c_preproc_warn_flag in '' yes
7686 do
7687 # Use a header file that comes with gcc, so configuring glibc
7688 # with a fresh cross-compiler works.
7689 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7690 # <limits.h> exists even on freestanding compilers.
7691 # On the NeXT, cc -E runs the code through the compiler's parser,
7692 # not just through cpp. "Syntax error" is here to catch this case.
7693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694 /* end confdefs.h. */
7695 #ifdef __STDC__
7696 # include <limits.h>
7697 #else
7698 # include <assert.h>
7699 #endif
7700 Syntax error
7701 _ACEOF
7702 if ac_fn_c_try_cpp "$LINENO"; then :
7703
7704 else
7705 # Broken: fails on valid input.
7706 continue
7707 fi
7708 rm -f conftest.err conftest.$ac_ext
7709
7710 # OK, works on sane cases. Now check whether nonexistent headers
7711 # can be detected and how.
7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713 /* end confdefs.h. */
7714 #include <ac_nonexistent.h>
7715 _ACEOF
7716 if ac_fn_c_try_cpp "$LINENO"; then :
7717 # Broken: success on invalid input.
7718 continue
7719 else
7720 # Passes both tests.
7721 ac_preproc_ok=:
7722 break
7723 fi
7724 rm -f conftest.err conftest.$ac_ext
7725
7726 done
7727 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7728 rm -f conftest.err conftest.$ac_ext
7729 if $ac_preproc_ok; then :
7730
7731 else
7732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7734 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7735 See \`config.log' for more details." "$LINENO" 5; }
7736 fi
7737
7738 ac_ext=c
7739 ac_cpp='$CPP $CPPFLAGS'
7740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7743
7744
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7746 $as_echo_n "checking for ANSI C header files... " >&6; }
7747 if test "${ac_cv_header_stdc+set}" = set; then :
7748 $as_echo_n "(cached) " >&6
7749 else
7750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751 /* end confdefs.h. */
7752 #include <stdlib.h>
7753 #include <stdarg.h>
7754 #include <string.h>
7755 #include <float.h>
7756
7757 int
7758 main ()
7759 {
7760
7761 ;
7762 return 0;
7763 }
7764 _ACEOF
7765 if ac_fn_c_try_compile "$LINENO"; then :
7766 ac_cv_header_stdc=yes
7767 else
7768 ac_cv_header_stdc=no
7769 fi
7770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7771
7772 if test $ac_cv_header_stdc = yes; then
7773 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775 /* end confdefs.h. */
7776 #include <string.h>
7777
7778 _ACEOF
7779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7780 $EGREP "memchr" >/dev/null 2>&1; then :
7781
7782 else
7783 ac_cv_header_stdc=no
7784 fi
7785 rm -f conftest*
7786
7787 fi
7788
7789 if test $ac_cv_header_stdc = yes; then
7790 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7792 /* end confdefs.h. */
7793 #include <stdlib.h>
7794
7795 _ACEOF
7796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7797 $EGREP "free" >/dev/null 2>&1; then :
7798
7799 else
7800 ac_cv_header_stdc=no
7801 fi
7802 rm -f conftest*
7803
7804 fi
7805
7806 if test $ac_cv_header_stdc = yes; then
7807 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7808 if test "$cross_compiling" = yes; then :
7809 :
7810 else
7811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812 /* end confdefs.h. */
7813 #include <ctype.h>
7814 #include <stdlib.h>
7815 #if ((' ' & 0x0FF) == 0x020)
7816 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7817 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7818 #else
7819 # define ISLOWER(c) \
7820 (('a' <= (c) && (c) <= 'i') \
7821 || ('j' <= (c) && (c) <= 'r') \
7822 || ('s' <= (c) && (c) <= 'z'))
7823 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7824 #endif
7825
7826 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7827 int
7828 main ()
7829 {
7830 int i;
7831 for (i = 0; i < 256; i++)
7832 if (XOR (islower (i), ISLOWER (i))
7833 || toupper (i) != TOUPPER (i))
7834 return 2;
7835 return 0;
7836 }
7837 _ACEOF
7838 if ac_fn_c_try_run "$LINENO"; then :
7839
7840 else
7841 ac_cv_header_stdc=no
7842 fi
7843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7844 conftest.$ac_objext conftest.beam conftest.$ac_ext
7845 fi
7846
7847 fi
7848 fi
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7850 $as_echo "$ac_cv_header_stdc" >&6; }
7851 if test $ac_cv_header_stdc = yes; then
7852
7853 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7854
7855 fi
7856
7857 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7858 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7859 inttypes.h stdint.h unistd.h
7860 do :
7861 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7862 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7863 "
7864 eval as_val=\$$as_ac_Header
7865 if test "x$as_val" = x""yes; then :
7866 cat >>confdefs.h <<_ACEOF
7867 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7868 _ACEOF
7869
7870 fi
7871
7872 done
7873
7874
7875 for ac_header in dlfcn.h
7876 do :
7877 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7878 "
7879 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7880 cat >>confdefs.h <<_ACEOF
7881 #define HAVE_DLFCN_H 1
7882 _ACEOF
7883
7884 fi
7885
7886 done
7887
7888
7889
7890
7891
7892
7893 # Set options
7894
7895
7896
7897 enable_dlopen=no
7898
7899
7900 enable_win32_dll=no
7901
7902
7903 # Check whether --enable-shared was given.
7904 if test "${enable_shared+set}" = set; then :
7905 enableval=$enable_shared; p=${PACKAGE-default}
7906 case $enableval in
7907 yes) enable_shared=yes ;;
7908 no) enable_shared=no ;;
7909 *)
7910 enable_shared=no
7911 # Look at the argument we got. We use all the common list separators.
7912 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7913 for pkg in $enableval; do
7914 IFS="$lt_save_ifs"
7915 if test "X$pkg" = "X$p"; then
7916 enable_shared=yes
7917 fi
7918 done
7919 IFS="$lt_save_ifs"
7920 ;;
7921 esac
7922 else
7923 enable_shared=yes
7924 fi
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934 # Check whether --enable-static was given.
7935 if test "${enable_static+set}" = set; then :
7936 enableval=$enable_static; p=${PACKAGE-default}
7937 case $enableval in
7938 yes) enable_static=yes ;;
7939 no) enable_static=no ;;
7940 *)
7941 enable_static=no
7942 # Look at the argument we got. We use all the common list separators.
7943 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7944 for pkg in $enableval; do
7945 IFS="$lt_save_ifs"
7946 if test "X$pkg" = "X$p"; then
7947 enable_static=yes
7948 fi
7949 done
7950 IFS="$lt_save_ifs"
7951 ;;
7952 esac
7953 else
7954 enable_static=yes
7955 fi
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966 # Check whether --with-pic was given.
7967 if test "${with_pic+set}" = set; then :
7968 withval=$with_pic; pic_mode="$withval"
7969 else
7970 pic_mode=default
7971 fi
7972
7973
7974 test -z "$pic_mode" && pic_mode=default
7975
7976
7977
7978
7979
7980
7981
7982 # Check whether --enable-fast-install was given.
7983 if test "${enable_fast_install+set}" = set; then :
7984 enableval=$enable_fast_install; p=${PACKAGE-default}
7985 case $enableval in
7986 yes) enable_fast_install=yes ;;
7987 no) enable_fast_install=no ;;
7988 *)
7989 enable_fast_install=no
7990 # Look at the argument we got. We use all the common list separators.
7991 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7992 for pkg in $enableval; do
7993 IFS="$lt_save_ifs"
7994 if test "X$pkg" = "X$p"; then
7995 enable_fast_install=yes
7996 fi
7997 done
7998 IFS="$lt_save_ifs"
7999 ;;
8000 esac
8001 else
8002 enable_fast_install=yes
8003 fi
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015 # This can be used to rebuild libtool when needed
8016 LIBTOOL_DEPS="$ltmain"
8017
8018 # Always use our own libtool.
8019 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046 test -z "$LN_S" && LN_S="ln -s"
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061 if test -n "${ZSH_VERSION+set}" ; then
8062 setopt NO_GLOB_SUBST
8063 fi
8064
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8066 $as_echo_n "checking for objdir... " >&6; }
8067 if test "${lt_cv_objdir+set}" = set; then :
8068 $as_echo_n "(cached) " >&6
8069 else
8070 rm -f .libs 2>/dev/null
8071 mkdir .libs 2>/dev/null
8072 if test -d .libs; then
8073 lt_cv_objdir=.libs
8074 else
8075 # MS-DOS does not allow filenames that begin with a dot.
8076 lt_cv_objdir=_libs
8077 fi
8078 rmdir .libs 2>/dev/null
8079 fi
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8081 $as_echo "$lt_cv_objdir" >&6; }
8082 objdir=$lt_cv_objdir
8083
8084
8085
8086
8087
8088 cat >>confdefs.h <<_ACEOF
8089 #define LT_OBJDIR "$lt_cv_objdir/"
8090 _ACEOF
8091
8092
8093
8094
8095 case $host_os in
8096 aix3*)
8097 # AIX sometimes has problems with the GCC collect2 program. For some
8098 # reason, if we set the COLLECT_NAMES environment variable, the problems
8099 # vanish in a puff of smoke.
8100 if test "X${COLLECT_NAMES+set}" != Xset; then
8101 COLLECT_NAMES=
8102 export COLLECT_NAMES
8103 fi
8104 ;;
8105 esac
8106
8107 # Global variables:
8108 ofile=libtool
8109 can_build_shared=yes
8110
8111 # All known linkers require a `.a' archive for static linking (except MSVC,
8112 # which needs '.lib').
8113 libext=a
8114
8115 with_gnu_ld="$lt_cv_prog_gnu_ld"
8116
8117 old_CC="$CC"
8118 old_CFLAGS="$CFLAGS"
8119
8120 # Set sane defaults for various variables
8121 test -z "$CC" && CC=cc
8122 test -z "$LTCC" && LTCC=$CC
8123 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8124 test -z "$LD" && LD=ld
8125 test -z "$ac_objext" && ac_objext=o
8126
8127 for cc_temp in $compiler""; do
8128 case $cc_temp in
8129 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8130 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8131 \-*) ;;
8132 *) break;;
8133 esac
8134 done
8135 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8136
8137
8138 # Only perform the check for file, if the check method requires it
8139 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8140 case $deplibs_check_method in
8141 file_magic*)
8142 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8144 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8145 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8146 $as_echo_n "(cached) " >&6
8147 else
8148 case $MAGIC_CMD in
8149 [\\/*] | ?:[\\/]*)
8150 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8151 ;;
8152 *)
8153 lt_save_MAGIC_CMD="$MAGIC_CMD"
8154 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8155 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8156 for ac_dir in $ac_dummy; do
8157 IFS="$lt_save_ifs"
8158 test -z "$ac_dir" && ac_dir=.
8159 if test -f $ac_dir/${ac_tool_prefix}file; then
8160 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8161 if test -n "$file_magic_test_file"; then
8162 case $deplibs_check_method in
8163 "file_magic "*)
8164 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8165 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8166 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8167 $EGREP "$file_magic_regex" > /dev/null; then
8168 :
8169 else
8170 cat <<_LT_EOF 1>&2
8171
8172 *** Warning: the command libtool uses to detect shared libraries,
8173 *** $file_magic_cmd, produces output that libtool cannot recognize.
8174 *** The result is that libtool may fail to recognize shared libraries
8175 *** as such. This will affect the creation of libtool libraries that
8176 *** depend on shared libraries, but programs linked with such libtool
8177 *** libraries will work regardless of this problem. Nevertheless, you
8178 *** may want to report the problem to your system manager and/or to
8179 *** bug-libtool@gnu.org
8180
8181 _LT_EOF
8182 fi ;;
8183 esac
8184 fi
8185 break
8186 fi
8187 done
8188 IFS="$lt_save_ifs"
8189 MAGIC_CMD="$lt_save_MAGIC_CMD"
8190 ;;
8191 esac
8192 fi
8193
8194 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8195 if test -n "$MAGIC_CMD"; then
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8197 $as_echo "$MAGIC_CMD" >&6; }
8198 else
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200 $as_echo "no" >&6; }
8201 fi
8202
8203
8204
8205
8206
8207 if test -z "$lt_cv_path_MAGIC_CMD"; then
8208 if test -n "$ac_tool_prefix"; then
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8210 $as_echo_n "checking for file... " >&6; }
8211 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8212 $as_echo_n "(cached) " >&6
8213 else
8214 case $MAGIC_CMD in
8215 [\\/*] | ?:[\\/]*)
8216 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8217 ;;
8218 *)
8219 lt_save_MAGIC_CMD="$MAGIC_CMD"
8220 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8221 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8222 for ac_dir in $ac_dummy; do
8223 IFS="$lt_save_ifs"
8224 test -z "$ac_dir" && ac_dir=.
8225 if test -f $ac_dir/file; then
8226 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8227 if test -n "$file_magic_test_file"; then
8228 case $deplibs_check_method in
8229 "file_magic "*)
8230 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8231 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8232 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8233 $EGREP "$file_magic_regex" > /dev/null; then
8234 :
8235 else
8236 cat <<_LT_EOF 1>&2
8237
8238 *** Warning: the command libtool uses to detect shared libraries,
8239 *** $file_magic_cmd, produces output that libtool cannot recognize.
8240 *** The result is that libtool may fail to recognize shared libraries
8241 *** as such. This will affect the creation of libtool libraries that
8242 *** depend on shared libraries, but programs linked with such libtool
8243 *** libraries will work regardless of this problem. Nevertheless, you
8244 *** may want to report the problem to your system manager and/or to
8245 *** bug-libtool@gnu.org
8246
8247 _LT_EOF
8248 fi ;;
8249 esac
8250 fi
8251 break
8252 fi
8253 done
8254 IFS="$lt_save_ifs"
8255 MAGIC_CMD="$lt_save_MAGIC_CMD"
8256 ;;
8257 esac
8258 fi
8259
8260 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8261 if test -n "$MAGIC_CMD"; then
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8263 $as_echo "$MAGIC_CMD" >&6; }
8264 else
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266 $as_echo "no" >&6; }
8267 fi
8268
8269
8270 else
8271 MAGIC_CMD=:
8272 fi
8273 fi
8274
8275 fi
8276 ;;
8277 esac
8278
8279 # Use C for the default configuration in the libtool script
8280
8281 lt_save_CC="$CC"
8282 ac_ext=c
8283 ac_cpp='$CPP $CPPFLAGS'
8284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8287
8288
8289 # Source file extension for C test sources.
8290 ac_ext=c
8291
8292 # Object file extension for compiled C test sources.
8293 objext=o
8294 objext=$objext
8295
8296 # Code to be used in simple compile tests
8297 lt_simple_compile_test_code="int some_variable = 0;"
8298
8299 # Code to be used in simple link tests
8300 lt_simple_link_test_code='int main(){return(0);}'
8301
8302
8303
8304
8305
8306
8307
8308 # If no C compiler was specified, use CC.
8309 LTCC=${LTCC-"$CC"}
8310
8311 # If no C compiler flags were specified, use CFLAGS.
8312 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8313
8314 # Allow CC to be a program name with arguments.
8315 compiler=$CC
8316
8317 # Save the default compiler, since it gets overwritten when the other
8318 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8319 compiler_DEFAULT=$CC
8320
8321 # save warnings/boilerplate of simple test code
8322 ac_outfile=conftest.$ac_objext
8323 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8324 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8325 _lt_compiler_boilerplate=`cat conftest.err`
8326 $RM conftest*
8327
8328 ac_outfile=conftest.$ac_objext
8329 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8330 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8331 _lt_linker_boilerplate=`cat conftest.err`
8332 $RM -r conftest*
8333
8334
8335 ## CAVEAT EMPTOR:
8336 ## There is no encapsulation within the following macros, do not change
8337 ## the running order or otherwise move them around unless you know exactly
8338 ## what you are doing...
8339 if test -n "$compiler"; then
8340
8341 lt_prog_compiler_no_builtin_flag=
8342
8343 if test "$GCC" = yes; then
8344 case $cc_basename in
8345 nvcc*)
8346 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8347 *)
8348 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8349 esac
8350
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8352 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8353 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8354 $as_echo_n "(cached) " >&6
8355 else
8356 lt_cv_prog_compiler_rtti_exceptions=no
8357 ac_outfile=conftest.$ac_objext
8358 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8359 lt_compiler_flag="-fno-rtti -fno-exceptions"
8360 # Insert the option either (1) after the last *FLAGS variable, or
8361 # (2) before a word containing "conftest.", or (3) at the end.
8362 # Note that $ac_compile itself does not contain backslashes and begins
8363 # with a dollar sign (not a hyphen), so the echo should work correctly.
8364 # The option is referenced via a variable to avoid confusing sed.
8365 lt_compile=`echo "$ac_compile" | $SED \
8366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8368 -e 's:$: $lt_compiler_flag:'`
8369 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8370 (eval "$lt_compile" 2>conftest.err)
8371 ac_status=$?
8372 cat conftest.err >&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 if (exit $ac_status) && test -s "$ac_outfile"; then
8375 # The compiler can only warn and ignore the option if not recognized
8376 # So say no if there are warnings other than the usual output.
8377 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8378 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8379 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8380 lt_cv_prog_compiler_rtti_exceptions=yes
8381 fi
8382 fi
8383 $RM conftest*
8384
8385 fi
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8387 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8388
8389 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8390 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8391 else
8392 :
8393 fi
8394
8395 fi
8396
8397
8398
8399
8400
8401
8402 lt_prog_compiler_wl=
8403 lt_prog_compiler_pic=
8404 lt_prog_compiler_static=
8405
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8407 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8408
8409 if test "$GCC" = yes; then
8410 lt_prog_compiler_wl='-Wl,'
8411 lt_prog_compiler_static='-static'
8412
8413 case $host_os in
8414 aix*)
8415 # All AIX code is PIC.
8416 if test "$host_cpu" = ia64; then
8417 # AIX 5 now supports IA64 processor
8418 lt_prog_compiler_static='-Bstatic'
8419 fi
8420 ;;
8421
8422 amigaos*)
8423 case $host_cpu in
8424 powerpc)
8425 # see comment about AmigaOS4 .so support
8426 lt_prog_compiler_pic='-fPIC'
8427 ;;
8428 m68k)
8429 # FIXME: we need at least 68020 code to build shared libraries, but
8430 # adding the `-m68020' flag to GCC prevents building anything better,
8431 # like `-m68040'.
8432 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8433 ;;
8434 esac
8435 ;;
8436
8437 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8438 # PIC is the default for these OSes.
8439 ;;
8440
8441 mingw* | cygwin* | pw32* | os2* | cegcc*)
8442 # This hack is so that the source file can tell whether it is being
8443 # built for inclusion in a dll (and should export symbols for example).
8444 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8445 # (--disable-auto-import) libraries
8446 lt_prog_compiler_pic='-DDLL_EXPORT'
8447 ;;
8448
8449 darwin* | rhapsody*)
8450 # PIC is the default on this platform
8451 # Common symbols not allowed in MH_DYLIB files
8452 lt_prog_compiler_pic='-fno-common'
8453 ;;
8454
8455 haiku*)
8456 # PIC is the default for Haiku.
8457 # The "-static" flag exists, but is broken.
8458 lt_prog_compiler_static=
8459 ;;
8460
8461 hpux*)
8462 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8463 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8464 # sets the default TLS model and affects inlining.
8465 case $host_cpu in
8466 hppa*64*)
8467 # +Z the default
8468 ;;
8469 *)
8470 lt_prog_compiler_pic='-fPIC'
8471 ;;
8472 esac
8473 ;;
8474
8475 interix[3-9]*)
8476 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8477 # Instead, we relocate shared libraries at runtime.
8478 ;;
8479
8480 msdosdjgpp*)
8481 # Just because we use GCC doesn't mean we suddenly get shared libraries
8482 # on systems that don't support them.
8483 lt_prog_compiler_can_build_shared=no
8484 enable_shared=no
8485 ;;
8486
8487 *nto* | *qnx*)
8488 # QNX uses GNU C++, but need to define -shared option too, otherwise
8489 # it will coredump.
8490 lt_prog_compiler_pic='-fPIC -shared'
8491 ;;
8492
8493 sysv4*MP*)
8494 if test -d /usr/nec; then
8495 lt_prog_compiler_pic=-Kconform_pic
8496 fi
8497 ;;
8498
8499 *)
8500 lt_prog_compiler_pic='-fPIC'
8501 ;;
8502 esac
8503
8504 case $cc_basename in
8505 nvcc*) # Cuda Compiler Driver 2.2
8506 lt_prog_compiler_wl='-Xlinker '
8507 lt_prog_compiler_pic='-Xcompiler -fPIC'
8508 ;;
8509 esac
8510 else
8511 # PORTME Check for flag to pass linker flags through the system compiler.
8512 case $host_os in
8513 aix*)
8514 lt_prog_compiler_wl='-Wl,'
8515 if test "$host_cpu" = ia64; then
8516 # AIX 5 now supports IA64 processor
8517 lt_prog_compiler_static='-Bstatic'
8518 else
8519 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8520 fi
8521 ;;
8522
8523 mingw* | cygwin* | pw32* | os2* | cegcc*)
8524 # This hack is so that the source file can tell whether it is being
8525 # built for inclusion in a dll (and should export symbols for example).
8526 lt_prog_compiler_pic='-DDLL_EXPORT'
8527 ;;
8528
8529 hpux9* | hpux10* | hpux11*)
8530 lt_prog_compiler_wl='-Wl,'
8531 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8532 # not for PA HP-UX.
8533 case $host_cpu in
8534 hppa*64*|ia64*)
8535 # +Z the default
8536 ;;
8537 *)
8538 lt_prog_compiler_pic='+Z'
8539 ;;
8540 esac
8541 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8542 lt_prog_compiler_static='${wl}-a ${wl}archive'
8543 ;;
8544
8545 irix5* | irix6* | nonstopux*)
8546 lt_prog_compiler_wl='-Wl,'
8547 # PIC (with -KPIC) is the default.
8548 lt_prog_compiler_static='-non_shared'
8549 ;;
8550
8551 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8552 case $cc_basename in
8553 # old Intel for x86_64 which still supported -KPIC.
8554 ecc*)
8555 lt_prog_compiler_wl='-Wl,'
8556 lt_prog_compiler_pic='-KPIC'
8557 lt_prog_compiler_static='-static'
8558 ;;
8559 # icc used to be incompatible with GCC.
8560 # ICC 10 doesn't accept -KPIC any more.
8561 icc* | ifort*)
8562 lt_prog_compiler_wl='-Wl,'
8563 lt_prog_compiler_pic='-fPIC'
8564 lt_prog_compiler_static='-static'
8565 ;;
8566 # Lahey Fortran 8.1.
8567 lf95*)
8568 lt_prog_compiler_wl='-Wl,'
8569 lt_prog_compiler_pic='--shared'
8570 lt_prog_compiler_static='--static'
8571 ;;
8572 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8573 # Portland Group compilers (*not* the Pentium gcc compiler,
8574 # which looks to be a dead project)
8575 lt_prog_compiler_wl='-Wl,'
8576 lt_prog_compiler_pic='-fpic'
8577 lt_prog_compiler_static='-Bstatic'
8578 ;;
8579 ccc*)
8580 lt_prog_compiler_wl='-Wl,'
8581 # All Alpha code is PIC.
8582 lt_prog_compiler_static='-non_shared'
8583 ;;
8584 xl* | bgxl* | bgf* | mpixl*)
8585 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8586 lt_prog_compiler_wl='-Wl,'
8587 lt_prog_compiler_pic='-qpic'
8588 lt_prog_compiler_static='-qstaticlink'
8589 ;;
8590 *)
8591 case `$CC -V 2>&1 | sed 5q` in
8592 *Sun\ F* | *Sun*Fortran*)
8593 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8594 lt_prog_compiler_pic='-KPIC'
8595 lt_prog_compiler_static='-Bstatic'
8596 lt_prog_compiler_wl=''
8597 ;;
8598 *Sun\ C*)
8599 # Sun C 5.9
8600 lt_prog_compiler_pic='-KPIC'
8601 lt_prog_compiler_static='-Bstatic'
8602 lt_prog_compiler_wl='-Wl,'
8603 ;;
8604 esac
8605 ;;
8606 esac
8607 ;;
8608
8609 newsos6)
8610 lt_prog_compiler_pic='-KPIC'
8611 lt_prog_compiler_static='-Bstatic'
8612 ;;
8613
8614 *nto* | *qnx*)
8615 # QNX uses GNU C++, but need to define -shared option too, otherwise
8616 # it will coredump.
8617 lt_prog_compiler_pic='-fPIC -shared'
8618 ;;
8619
8620 osf3* | osf4* | osf5*)
8621 lt_prog_compiler_wl='-Wl,'
8622 # All OSF/1 code is PIC.
8623 lt_prog_compiler_static='-non_shared'
8624 ;;
8625
8626 rdos*)
8627 lt_prog_compiler_static='-non_shared'
8628 ;;
8629
8630 solaris*)
8631 lt_prog_compiler_pic='-KPIC'
8632 lt_prog_compiler_static='-Bstatic'
8633 case $cc_basename in
8634 f77* | f90* | f95*)
8635 lt_prog_compiler_wl='-Qoption ld ';;
8636 *)
8637 lt_prog_compiler_wl='-Wl,';;
8638 esac
8639 ;;
8640
8641 sunos4*)
8642 lt_prog_compiler_wl='-Qoption ld '
8643 lt_prog_compiler_pic='-PIC'
8644 lt_prog_compiler_static='-Bstatic'
8645 ;;
8646
8647 sysv4 | sysv4.2uw2* | sysv4.3*)
8648 lt_prog_compiler_wl='-Wl,'
8649 lt_prog_compiler_pic='-KPIC'
8650 lt_prog_compiler_static='-Bstatic'
8651 ;;
8652
8653 sysv4*MP*)
8654 if test -d /usr/nec ;then
8655 lt_prog_compiler_pic='-Kconform_pic'
8656 lt_prog_compiler_static='-Bstatic'
8657 fi
8658 ;;
8659
8660 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8661 lt_prog_compiler_wl='-Wl,'
8662 lt_prog_compiler_pic='-KPIC'
8663 lt_prog_compiler_static='-Bstatic'
8664 ;;
8665
8666 unicos*)
8667 lt_prog_compiler_wl='-Wl,'
8668 lt_prog_compiler_can_build_shared=no
8669 ;;
8670
8671 uts4*)
8672 lt_prog_compiler_pic='-pic'
8673 lt_prog_compiler_static='-Bstatic'
8674 ;;
8675
8676 *)
8677 lt_prog_compiler_can_build_shared=no
8678 ;;
8679 esac
8680 fi
8681
8682 case $host_os in
8683 # For platforms which do not support PIC, -DPIC is meaningless:
8684 *djgpp*)
8685 lt_prog_compiler_pic=
8686 ;;
8687 *)
8688 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8689 ;;
8690 esac
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8692 $as_echo "$lt_prog_compiler_pic" >&6; }
8693
8694
8695
8696
8697
8698
8699 #
8700 # Check to make sure the PIC flag actually works.
8701 #
8702 if test -n "$lt_prog_compiler_pic"; then
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8704 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8705 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8706 $as_echo_n "(cached) " >&6
8707 else
8708 lt_cv_prog_compiler_pic_works=no
8709 ac_outfile=conftest.$ac_objext
8710 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8711 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8712 # Insert the option either (1) after the last *FLAGS variable, or
8713 # (2) before a word containing "conftest.", or (3) at the end.
8714 # Note that $ac_compile itself does not contain backslashes and begins
8715 # with a dollar sign (not a hyphen), so the echo should work correctly.
8716 # The option is referenced via a variable to avoid confusing sed.
8717 lt_compile=`echo "$ac_compile" | $SED \
8718 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8719 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8720 -e 's:$: $lt_compiler_flag:'`
8721 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8722 (eval "$lt_compile" 2>conftest.err)
8723 ac_status=$?
8724 cat conftest.err >&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 if (exit $ac_status) && test -s "$ac_outfile"; then
8727 # The compiler can only warn and ignore the option if not recognized
8728 # So say no if there are warnings other than the usual output.
8729 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8730 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8731 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8732 lt_cv_prog_compiler_pic_works=yes
8733 fi
8734 fi
8735 $RM conftest*
8736
8737 fi
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8739 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8740
8741 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8742 case $lt_prog_compiler_pic in
8743 "" | " "*) ;;
8744 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8745 esac
8746 else
8747 lt_prog_compiler_pic=
8748 lt_prog_compiler_can_build_shared=no
8749 fi
8750
8751 fi
8752
8753
8754
8755
8756
8757
8758 #
8759 # Check to make sure the static flag actually works.
8760 #
8761 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8763 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8764 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8765 $as_echo_n "(cached) " >&6
8766 else
8767 lt_cv_prog_compiler_static_works=no
8768 save_LDFLAGS="$LDFLAGS"
8769 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8770 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8771 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8772 # The linker can only warn and ignore the option if not recognized
8773 # So say no if there are warnings
8774 if test -s conftest.err; then
8775 # Append any errors to the config.log.
8776 cat conftest.err 1>&5
8777 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8778 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8779 if diff conftest.exp conftest.er2 >/dev/null; then
8780 lt_cv_prog_compiler_static_works=yes
8781 fi
8782 else
8783 lt_cv_prog_compiler_static_works=yes
8784 fi
8785 fi
8786 $RM -r conftest*
8787 LDFLAGS="$save_LDFLAGS"
8788
8789 fi
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8791 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8792
8793 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8794 :
8795 else
8796 lt_prog_compiler_static=
8797 fi
8798
8799
8800
8801
8802
8803
8804
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8806 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8807 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8808 $as_echo_n "(cached) " >&6
8809 else
8810 lt_cv_prog_compiler_c_o=no
8811 $RM -r conftest 2>/dev/null
8812 mkdir conftest
8813 cd conftest
8814 mkdir out
8815 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8816
8817 lt_compiler_flag="-o out/conftest2.$ac_objext"
8818 # Insert the option either (1) after the last *FLAGS variable, or
8819 # (2) before a word containing "conftest.", or (3) at the end.
8820 # Note that $ac_compile itself does not contain backslashes and begins
8821 # with a dollar sign (not a hyphen), so the echo should work correctly.
8822 lt_compile=`echo "$ac_compile" | $SED \
8823 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8824 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8825 -e 's:$: $lt_compiler_flag:'`
8826 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8827 (eval "$lt_compile" 2>out/conftest.err)
8828 ac_status=$?
8829 cat out/conftest.err >&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8832 then
8833 # The compiler can only warn and ignore the option if not recognized
8834 # So say no if there are warnings
8835 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8836 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8837 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8838 lt_cv_prog_compiler_c_o=yes
8839 fi
8840 fi
8841 chmod u+w . 2>&5
8842 $RM conftest*
8843 # SGI C++ compiler will create directory out/ii_files/ for
8844 # template instantiation
8845 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8846 $RM out/* && rmdir out
8847 cd ..
8848 $RM -r conftest
8849 $RM conftest*
8850
8851 fi
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8853 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8854
8855
8856
8857
8858
8859
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8861 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8862 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8863 $as_echo_n "(cached) " >&6
8864 else
8865 lt_cv_prog_compiler_c_o=no
8866 $RM -r conftest 2>/dev/null
8867 mkdir conftest
8868 cd conftest
8869 mkdir out
8870 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8871
8872 lt_compiler_flag="-o out/conftest2.$ac_objext"
8873 # Insert the option either (1) after the last *FLAGS variable, or
8874 # (2) before a word containing "conftest.", or (3) at the end.
8875 # Note that $ac_compile itself does not contain backslashes and begins
8876 # with a dollar sign (not a hyphen), so the echo should work correctly.
8877 lt_compile=`echo "$ac_compile" | $SED \
8878 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8879 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8880 -e 's:$: $lt_compiler_flag:'`
8881 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8882 (eval "$lt_compile" 2>out/conftest.err)
8883 ac_status=$?
8884 cat out/conftest.err >&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8887 then
8888 # The compiler can only warn and ignore the option if not recognized
8889 # So say no if there are warnings
8890 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8891 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8892 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8893 lt_cv_prog_compiler_c_o=yes
8894 fi
8895 fi
8896 chmod u+w . 2>&5
8897 $RM conftest*
8898 # SGI C++ compiler will create directory out/ii_files/ for
8899 # template instantiation
8900 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8901 $RM out/* && rmdir out
8902 cd ..
8903 $RM -r conftest
8904 $RM conftest*
8905
8906 fi
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8908 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8909
8910
8911
8912
8913 hard_links="nottested"
8914 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8915 # do not overwrite the value of need_locks provided by the user
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8917 $as_echo_n "checking if we can lock with hard links... " >&6; }
8918 hard_links=yes
8919 $RM conftest*
8920 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8921 touch conftest.a
8922 ln conftest.a conftest.b 2>&5 || hard_links=no
8923 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8925 $as_echo "$hard_links" >&6; }
8926 if test "$hard_links" = no; then
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8928 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8929 need_locks=warn
8930 fi
8931 else
8932 need_locks=no
8933 fi
8934
8935
8936
8937
8938
8939
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8941 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8942
8943 runpath_var=
8944 allow_undefined_flag=
8945 always_export_symbols=no
8946 archive_cmds=
8947 archive_expsym_cmds=
8948 compiler_needs_object=no
8949 enable_shared_with_static_runtimes=no
8950 export_dynamic_flag_spec=
8951 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8952 hardcode_automatic=no
8953 hardcode_direct=no
8954 hardcode_direct_absolute=no
8955 hardcode_libdir_flag_spec=
8956 hardcode_libdir_flag_spec_ld=
8957 hardcode_libdir_separator=
8958 hardcode_minus_L=no
8959 hardcode_shlibpath_var=unsupported
8960 inherit_rpath=no
8961 link_all_deplibs=unknown
8962 module_cmds=
8963 module_expsym_cmds=
8964 old_archive_from_new_cmds=
8965 old_archive_from_expsyms_cmds=
8966 thread_safe_flag_spec=
8967 whole_archive_flag_spec=
8968 # include_expsyms should be a list of space-separated symbols to be *always*
8969 # included in the symbol list
8970 include_expsyms=
8971 # exclude_expsyms can be an extended regexp of symbols to exclude
8972 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8973 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8974 # as well as any symbol that contains `d'.
8975 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8976 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8977 # platforms (ab)use it in PIC code, but their linkers get confused if
8978 # the symbol is explicitly referenced. Since portable code cannot
8979 # rely on this symbol name, it's probably fine to never include it in
8980 # preloaded symbol tables.
8981 # Exclude shared library initialization/finalization symbols.
8982 extract_expsyms_cmds=
8983
8984 case $host_os in
8985 cygwin* | mingw* | pw32* | cegcc*)
8986 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8987 # When not using gcc, we currently assume that we are using
8988 # Microsoft Visual C++.
8989 if test "$GCC" != yes; then
8990 with_gnu_ld=no
8991 fi
8992 ;;
8993 interix*)
8994 # we just hope/assume this is gcc and not c89 (= MSVC++)
8995 with_gnu_ld=yes
8996 ;;
8997 openbsd*)
8998 with_gnu_ld=no
8999 ;;
9000 esac
9001
9002 ld_shlibs=yes
9003
9004 # On some targets, GNU ld is compatible enough with the native linker
9005 # that we're better off using the native interface for both.
9006 lt_use_gnu_ld_interface=no
9007 if test "$with_gnu_ld" = yes; then
9008 case $host_os in
9009 aix*)
9010 # The AIX port of GNU ld has always aspired to compatibility
9011 # with the native linker. However, as the warning in the GNU ld
9012 # block says, versions before 2.19.5* couldn't really create working
9013 # shared libraries, regardless of the interface used.
9014 case `$LD -v 2>&1` in
9015 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9016 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9017 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9018 *)
9019 lt_use_gnu_ld_interface=yes
9020 ;;
9021 esac
9022 ;;
9023 *)
9024 lt_use_gnu_ld_interface=yes
9025 ;;
9026 esac
9027 fi
9028
9029 if test "$lt_use_gnu_ld_interface" = yes; then
9030 # If archive_cmds runs LD, not CC, wlarc should be empty
9031 wlarc='${wl}'
9032
9033 # Set some defaults for GNU ld with shared library support. These
9034 # are reset later if shared libraries are not supported. Putting them
9035 # here allows them to be overridden if necessary.
9036 runpath_var=LD_RUN_PATH
9037 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9038 export_dynamic_flag_spec='${wl}--export-dynamic'
9039 # ancient GNU ld didn't support --whole-archive et. al.
9040 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9041 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9042 else
9043 whole_archive_flag_spec=
9044 fi
9045 supports_anon_versioning=no
9046 case `$LD -v 2>&1` in
9047 *GNU\ gold*) supports_anon_versioning=yes ;;
9048 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9049 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9050 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9051 *\ 2.11.*) ;; # other 2.11 versions
9052 *) supports_anon_versioning=yes ;;
9053 esac
9054
9055 # See if GNU ld supports shared libraries.
9056 case $host_os in
9057 aix[3-9]*)
9058 # On AIX/PPC, the GNU linker is very broken
9059 if test "$host_cpu" != ia64; then
9060 ld_shlibs=no
9061 cat <<_LT_EOF 1>&2
9062
9063 *** Warning: the GNU linker, at least up to release 2.19, is reported
9064 *** to be unable to reliably create shared libraries on AIX.
9065 *** Therefore, libtool is disabling shared libraries support. If you
9066 *** really care for shared libraries, you may want to install binutils
9067 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9068 *** You will then need to restart the configuration process.
9069
9070 _LT_EOF
9071 fi
9072 ;;
9073
9074 amigaos*)
9075 case $host_cpu in
9076 powerpc)
9077 # see comment about AmigaOS4 .so support
9078 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9079 archive_expsym_cmds=''
9080 ;;
9081 m68k)
9082 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)'
9083 hardcode_libdir_flag_spec='-L$libdir'
9084 hardcode_minus_L=yes
9085 ;;
9086 esac
9087 ;;
9088
9089 beos*)
9090 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9091 allow_undefined_flag=unsupported
9092 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9093 # support --undefined. This deserves some investigation. FIXME
9094 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9095 else
9096 ld_shlibs=no
9097 fi
9098 ;;
9099
9100 cygwin* | mingw* | pw32* | cegcc*)
9101 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9102 # as there is no search path for DLLs.
9103 hardcode_libdir_flag_spec='-L$libdir'
9104 export_dynamic_flag_spec='${wl}--export-all-symbols'
9105 allow_undefined_flag=unsupported
9106 always_export_symbols=no
9107 enable_shared_with_static_runtimes=yes
9108 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9109
9110 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9111 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9112 # If the export-symbols file already is a .def file (1st line
9113 # is EXPORTS), use it as is; otherwise, prepend...
9114 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9115 cp $export_symbols $output_objdir/$soname.def;
9116 else
9117 echo EXPORTS > $output_objdir/$soname.def;
9118 cat $export_symbols >> $output_objdir/$soname.def;
9119 fi~
9120 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9121 else
9122 ld_shlibs=no
9123 fi
9124 ;;
9125
9126 haiku*)
9127 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9128 link_all_deplibs=yes
9129 ;;
9130
9131 interix[3-9]*)
9132 hardcode_direct=no
9133 hardcode_shlibpath_var=no
9134 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9135 export_dynamic_flag_spec='${wl}-E'
9136 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9137 # Instead, shared libraries are loaded at an image base (0x10000000 by
9138 # default) and relocated if they conflict, which is a slow very memory
9139 # consuming and fragmenting process. To avoid this, we pick a random,
9140 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9141 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9142 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9143 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'
9144 ;;
9145
9146 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9147 tmp_diet=no
9148 if test "$host_os" = linux-dietlibc; then
9149 case $cc_basename in
9150 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9151 esac
9152 fi
9153 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9154 && test "$tmp_diet" = no
9155 then
9156 tmp_addflag=
9157 tmp_sharedflag='-shared'
9158 case $cc_basename,$host_cpu in
9159 pgcc*) # Portland Group C compiler
9160 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'
9161 tmp_addflag=' $pic_flag'
9162 ;;
9163 pgf77* | pgf90* | pgf95* | pgfortran*)
9164 # Portland Group f77 and f90 compilers
9165 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'
9166 tmp_addflag=' $pic_flag -Mnomain' ;;
9167 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9168 tmp_addflag=' -i_dynamic' ;;
9169 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9170 tmp_addflag=' -i_dynamic -nofor_main' ;;
9171 ifc* | ifort*) # Intel Fortran compiler
9172 tmp_addflag=' -nofor_main' ;;
9173 lf95*) # Lahey Fortran 8.1
9174 whole_archive_flag_spec=
9175 tmp_sharedflag='--shared' ;;
9176 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9177 tmp_sharedflag='-qmkshrobj'
9178 tmp_addflag= ;;
9179 nvcc*) # Cuda Compiler Driver 2.2
9180 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'
9181 compiler_needs_object=yes
9182 ;;
9183 esac
9184 case `$CC -V 2>&1 | sed 5q` in
9185 *Sun\ C*) # Sun C 5.9
9186 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'
9187 compiler_needs_object=yes
9188 tmp_sharedflag='-G' ;;
9189 *Sun\ F*) # Sun Fortran 8.3
9190 tmp_sharedflag='-G' ;;
9191 esac
9192 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9193
9194 if test "x$supports_anon_versioning" = xyes; then
9195 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9196 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9197 echo "local: *; };" >> $output_objdir/$libname.ver~
9198 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9199 fi
9200
9201 case $cc_basename in
9202 xlf* | bgf* | bgxlf* | mpixlf*)
9203 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9204 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9205 hardcode_libdir_flag_spec=
9206 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9207 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9208 if test "x$supports_anon_versioning" = xyes; then
9209 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9210 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9211 echo "local: *; };" >> $output_objdir/$libname.ver~
9212 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9213 fi
9214 ;;
9215 esac
9216 else
9217 ld_shlibs=no
9218 fi
9219 ;;
9220
9221 netbsd*)
9222 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9223 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9224 wlarc=
9225 else
9226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9227 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9228 fi
9229 ;;
9230
9231 solaris*)
9232 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9233 ld_shlibs=no
9234 cat <<_LT_EOF 1>&2
9235
9236 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9237 *** create shared libraries on Solaris systems. Therefore, libtool
9238 *** is disabling shared libraries support. We urge you to upgrade GNU
9239 *** binutils to release 2.9.1 or newer. Another option is to modify
9240 *** your PATH or compiler configuration so that the native linker is
9241 *** used, and then restart.
9242
9243 _LT_EOF
9244 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9245 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9246 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9247 else
9248 ld_shlibs=no
9249 fi
9250 ;;
9251
9252 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9253 case `$LD -v 2>&1` in
9254 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9255 ld_shlibs=no
9256 cat <<_LT_EOF 1>&2
9257
9258 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9259 *** reliably create shared libraries on SCO systems. Therefore, libtool
9260 *** is disabling shared libraries support. We urge you to upgrade GNU
9261 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9262 *** your PATH or compiler configuration so that the native linker is
9263 *** used, and then restart.
9264
9265 _LT_EOF
9266 ;;
9267 *)
9268 # For security reasons, it is highly recommended that you always
9269 # use absolute paths for naming shared libraries, and exclude the
9270 # DT_RUNPATH tag from executables and libraries. But doing so
9271 # requires that you compile everything twice, which is a pain.
9272 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9273 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9274 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9275 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9276 else
9277 ld_shlibs=no
9278 fi
9279 ;;
9280 esac
9281 ;;
9282
9283 sunos4*)
9284 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9285 wlarc=
9286 hardcode_direct=yes
9287 hardcode_shlibpath_var=no
9288 ;;
9289
9290 *)
9291 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9292 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9293 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9294 else
9295 ld_shlibs=no
9296 fi
9297 ;;
9298 esac
9299
9300 if test "$ld_shlibs" = no; then
9301 runpath_var=
9302 hardcode_libdir_flag_spec=
9303 export_dynamic_flag_spec=
9304 whole_archive_flag_spec=
9305 fi
9306 else
9307 # PORTME fill in a description of your system's linker (not GNU ld)
9308 case $host_os in
9309 aix3*)
9310 allow_undefined_flag=unsupported
9311 always_export_symbols=yes
9312 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'
9313 # Note: this linker hardcodes the directories in LIBPATH if there
9314 # are no directories specified by -L.
9315 hardcode_minus_L=yes
9316 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9317 # Neither direct hardcoding nor static linking is supported with a
9318 # broken collect2.
9319 hardcode_direct=unsupported
9320 fi
9321 ;;
9322
9323 aix[4-9]*)
9324 if test "$host_cpu" = ia64; then
9325 # On IA64, the linker does run time linking by default, so we don't
9326 # have to do anything special.
9327 aix_use_runtimelinking=no
9328 exp_sym_flag='-Bexport'
9329 no_entry_flag=""
9330 else
9331 # If we're using GNU nm, then we don't want the "-C" option.
9332 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9333 # Also, AIX nm treats weak defined symbols like other global
9334 # defined symbols, whereas GNU nm marks them as "W".
9335 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9336 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'
9337 else
9338 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'
9339 fi
9340 aix_use_runtimelinking=no
9341
9342 # Test if we are trying to use run time linking or normal
9343 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9344 # need to do runtime linking.
9345 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9346 for ld_flag in $LDFLAGS; do
9347 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9348 aix_use_runtimelinking=yes
9349 break
9350 fi
9351 done
9352 ;;
9353 esac
9354
9355 exp_sym_flag='-bexport'
9356 no_entry_flag='-bnoentry'
9357 fi
9358
9359 # When large executables or shared objects are built, AIX ld can
9360 # have problems creating the table of contents. If linking a library
9361 # or program results in "error TOC overflow" add -mminimal-toc to
9362 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9363 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9364
9365 archive_cmds=''
9366 hardcode_direct=yes
9367 hardcode_direct_absolute=yes
9368 hardcode_libdir_separator=':'
9369 link_all_deplibs=yes
9370 file_list_spec='${wl}-f,'
9371
9372 if test "$GCC" = yes; then
9373 case $host_os in aix4.[012]|aix4.[012].*)
9374 # We only want to do this on AIX 4.2 and lower, the check
9375 # below for broken collect2 doesn't work under 4.3+
9376 collect2name=`${CC} -print-prog-name=collect2`
9377 if test -f "$collect2name" &&
9378 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9379 then
9380 # We have reworked collect2
9381 :
9382 else
9383 # We have old collect2
9384 hardcode_direct=unsupported
9385 # It fails to find uninstalled libraries when the uninstalled
9386 # path is not listed in the libpath. Setting hardcode_minus_L
9387 # to unsupported forces relinking
9388 hardcode_minus_L=yes
9389 hardcode_libdir_flag_spec='-L$libdir'
9390 hardcode_libdir_separator=
9391 fi
9392 ;;
9393 esac
9394 shared_flag='-shared'
9395 if test "$aix_use_runtimelinking" = yes; then
9396 shared_flag="$shared_flag "'${wl}-G'
9397 fi
9398 else
9399 # not using gcc
9400 if test "$host_cpu" = ia64; then
9401 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9402 # chokes on -Wl,-G. The following line is correct:
9403 shared_flag='-G'
9404 else
9405 if test "$aix_use_runtimelinking" = yes; then
9406 shared_flag='${wl}-G'
9407 else
9408 shared_flag='${wl}-bM:SRE'
9409 fi
9410 fi
9411 fi
9412
9413 export_dynamic_flag_spec='${wl}-bexpall'
9414 # It seems that -bexpall does not export symbols beginning with
9415 # underscore (_), so it is better to generate a list of symbols to export.
9416 always_export_symbols=yes
9417 if test "$aix_use_runtimelinking" = yes; then
9418 # Warning - without using the other runtime loading flags (-brtl),
9419 # -berok will link without error, but may produce a broken library.
9420 allow_undefined_flag='-berok'
9421 # Determine the default libpath from the value encoded in an
9422 # empty executable.
9423 if test x$gcc_no_link = xyes; then
9424 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9425 fi
9426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9427 /* end confdefs.h. */
9428
9429 int
9430 main ()
9431 {
9432
9433 ;
9434 return 0;
9435 }
9436 _ACEOF
9437 if ac_fn_c_try_link "$LINENO"; then :
9438
9439 lt_aix_libpath_sed='
9440 /Import File Strings/,/^$/ {
9441 /^0/ {
9442 s/^0 *\(.*\)$/\1/
9443 p
9444 }
9445 }'
9446 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9447 # Check for a 64-bit object if we didn't find anything.
9448 if test -z "$aix_libpath"; then
9449 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9450 fi
9451 fi
9452 rm -f core conftest.err conftest.$ac_objext \
9453 conftest$ac_exeext conftest.$ac_ext
9454 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9455
9456 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9457 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"
9458 else
9459 if test "$host_cpu" = ia64; then
9460 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9461 allow_undefined_flag="-z nodefs"
9462 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"
9463 else
9464 # Determine the default libpath from the value encoded in an
9465 # empty executable.
9466 if test x$gcc_no_link = xyes; then
9467 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9468 fi
9469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9470 /* end confdefs.h. */
9471
9472 int
9473 main ()
9474 {
9475
9476 ;
9477 return 0;
9478 }
9479 _ACEOF
9480 if ac_fn_c_try_link "$LINENO"; then :
9481
9482 lt_aix_libpath_sed='
9483 /Import File Strings/,/^$/ {
9484 /^0/ {
9485 s/^0 *\(.*\)$/\1/
9486 p
9487 }
9488 }'
9489 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9490 # Check for a 64-bit object if we didn't find anything.
9491 if test -z "$aix_libpath"; then
9492 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9493 fi
9494 fi
9495 rm -f core conftest.err conftest.$ac_objext \
9496 conftest$ac_exeext conftest.$ac_ext
9497 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9498
9499 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9500 # Warning - without using the other run time loading flags,
9501 # -berok will link without error, but may produce a broken library.
9502 no_undefined_flag=' ${wl}-bernotok'
9503 allow_undefined_flag=' ${wl}-berok'
9504 if test "$with_gnu_ld" = yes; then
9505 # We only use this code for GNU lds that support --whole-archive.
9506 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9507 else
9508 # Exported symbols can be pulled into shared objects from archives
9509 whole_archive_flag_spec='$convenience'
9510 fi
9511 archive_cmds_need_lc=yes
9512 # This is similar to how AIX traditionally builds its shared libraries.
9513 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'
9514 fi
9515 fi
9516 ;;
9517
9518 amigaos*)
9519 case $host_cpu in
9520 powerpc)
9521 # see comment about AmigaOS4 .so support
9522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9523 archive_expsym_cmds=''
9524 ;;
9525 m68k)
9526 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)'
9527 hardcode_libdir_flag_spec='-L$libdir'
9528 hardcode_minus_L=yes
9529 ;;
9530 esac
9531 ;;
9532
9533 bsdi[45]*)
9534 export_dynamic_flag_spec=-rdynamic
9535 ;;
9536
9537 cygwin* | mingw* | pw32* | cegcc*)
9538 # When not using gcc, we currently assume that we are using
9539 # Microsoft Visual C++.
9540 # hardcode_libdir_flag_spec is actually meaningless, as there is
9541 # no search path for DLLs.
9542 hardcode_libdir_flag_spec=' '
9543 allow_undefined_flag=unsupported
9544 # Tell ltmain to make .lib files, not .a files.
9545 libext=lib
9546 # Tell ltmain to make .dll files, not .so files.
9547 shrext_cmds=".dll"
9548 # FIXME: Setting linknames here is a bad hack.
9549 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9550 # The linker will automatically build a .lib file if we build a DLL.
9551 old_archive_from_new_cmds='true'
9552 # FIXME: Should let the user specify the lib program.
9553 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9554 fix_srcfile_path='`cygpath -w "$srcfile"`'
9555 enable_shared_with_static_runtimes=yes
9556 ;;
9557
9558 darwin* | rhapsody*)
9559
9560
9561 archive_cmds_need_lc=no
9562 hardcode_direct=no
9563 hardcode_automatic=yes
9564 hardcode_shlibpath_var=unsupported
9565 if test "$lt_cv_ld_force_load" = "yes"; then
9566 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\"`'
9567 else
9568 whole_archive_flag_spec=''
9569 fi
9570 link_all_deplibs=yes
9571 allow_undefined_flag="$_lt_dar_allow_undefined"
9572 case $cc_basename in
9573 ifort*) _lt_dar_can_shared=yes ;;
9574 *) _lt_dar_can_shared=$GCC ;;
9575 esac
9576 if test "$_lt_dar_can_shared" = "yes"; then
9577 output_verbose_link_cmd=func_echo_all
9578 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9579 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9580 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}"
9581 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}"
9582
9583 else
9584 ld_shlibs=no
9585 fi
9586
9587 ;;
9588
9589 dgux*)
9590 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9591 hardcode_libdir_flag_spec='-L$libdir'
9592 hardcode_shlibpath_var=no
9593 ;;
9594
9595 freebsd1*)
9596 ld_shlibs=no
9597 ;;
9598
9599 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9600 # support. Future versions do this automatically, but an explicit c++rt0.o
9601 # does not break anything, and helps significantly (at the cost of a little
9602 # extra space).
9603 freebsd2.2*)
9604 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9605 hardcode_libdir_flag_spec='-R$libdir'
9606 hardcode_direct=yes
9607 hardcode_shlibpath_var=no
9608 ;;
9609
9610 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9611 freebsd2*)
9612 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9613 hardcode_direct=yes
9614 hardcode_minus_L=yes
9615 hardcode_shlibpath_var=no
9616 ;;
9617
9618 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9619 freebsd* | dragonfly*)
9620 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9621 hardcode_libdir_flag_spec='-R$libdir'
9622 hardcode_direct=yes
9623 hardcode_shlibpath_var=no
9624 ;;
9625
9626 hpux9*)
9627 if test "$GCC" = yes; then
9628 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'
9629 else
9630 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'
9631 fi
9632 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9633 hardcode_libdir_separator=:
9634 hardcode_direct=yes
9635
9636 # hardcode_minus_L: Not really in the search PATH,
9637 # but as the default location of the library.
9638 hardcode_minus_L=yes
9639 export_dynamic_flag_spec='${wl}-E'
9640 ;;
9641
9642 hpux10*)
9643 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9644 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9645 else
9646 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9647 fi
9648 if test "$with_gnu_ld" = no; then
9649 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9650 hardcode_libdir_flag_spec_ld='+b $libdir'
9651 hardcode_libdir_separator=:
9652 hardcode_direct=yes
9653 hardcode_direct_absolute=yes
9654 export_dynamic_flag_spec='${wl}-E'
9655 # hardcode_minus_L: Not really in the search PATH,
9656 # but as the default location of the library.
9657 hardcode_minus_L=yes
9658 fi
9659 ;;
9660
9661 hpux11*)
9662 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9663 case $host_cpu in
9664 hppa*64*)
9665 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9666 ;;
9667 ia64*)
9668 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9669 ;;
9670 *)
9671 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9672 ;;
9673 esac
9674 else
9675 case $host_cpu in
9676 hppa*64*)
9677 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9678 ;;
9679 ia64*)
9680 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9681 ;;
9682 *)
9683
9684 # Older versions of the 11.00 compiler do not understand -b yet
9685 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9687 $as_echo_n "checking if $CC understands -b... " >&6; }
9688 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9689 $as_echo_n "(cached) " >&6
9690 else
9691 lt_cv_prog_compiler__b=no
9692 save_LDFLAGS="$LDFLAGS"
9693 LDFLAGS="$LDFLAGS -b"
9694 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9695 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9696 # The linker can only warn and ignore the option if not recognized
9697 # So say no if there are warnings
9698 if test -s conftest.err; then
9699 # Append any errors to the config.log.
9700 cat conftest.err 1>&5
9701 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9702 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9703 if diff conftest.exp conftest.er2 >/dev/null; then
9704 lt_cv_prog_compiler__b=yes
9705 fi
9706 else
9707 lt_cv_prog_compiler__b=yes
9708 fi
9709 fi
9710 $RM -r conftest*
9711 LDFLAGS="$save_LDFLAGS"
9712
9713 fi
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9715 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9716
9717 if test x"$lt_cv_prog_compiler__b" = xyes; then
9718 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9719 else
9720 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9721 fi
9722
9723 ;;
9724 esac
9725 fi
9726 if test "$with_gnu_ld" = no; then
9727 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9728 hardcode_libdir_separator=:
9729
9730 case $host_cpu in
9731 hppa*64*|ia64*)
9732 hardcode_direct=no
9733 hardcode_shlibpath_var=no
9734 ;;
9735 *)
9736 hardcode_direct=yes
9737 hardcode_direct_absolute=yes
9738 export_dynamic_flag_spec='${wl}-E'
9739
9740 # hardcode_minus_L: Not really in the search PATH,
9741 # but as the default location of the library.
9742 hardcode_minus_L=yes
9743 ;;
9744 esac
9745 fi
9746 ;;
9747
9748 irix5* | irix6* | nonstopux*)
9749 if test "$GCC" = yes; then
9750 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'
9751 # Try to use the -exported_symbol ld option, if it does not
9752 # work, assume that -exports_file does not work either and
9753 # implicitly export all symbols.
9754 save_LDFLAGS="$LDFLAGS"
9755 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9756 if test x$gcc_no_link = xyes; then
9757 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9758 fi
9759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9760 /* end confdefs.h. */
9761 int foo(void) {}
9762 _ACEOF
9763 if ac_fn_c_try_link "$LINENO"; then :
9764 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'
9765
9766 fi
9767 rm -f core conftest.err conftest.$ac_objext \
9768 conftest$ac_exeext conftest.$ac_ext
9769 LDFLAGS="$save_LDFLAGS"
9770 else
9771 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'
9772 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'
9773 fi
9774 archive_cmds_need_lc='no'
9775 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9776 hardcode_libdir_separator=:
9777 inherit_rpath=yes
9778 link_all_deplibs=yes
9779 ;;
9780
9781 netbsd*)
9782 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9783 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9784 else
9785 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9786 fi
9787 hardcode_libdir_flag_spec='-R$libdir'
9788 hardcode_direct=yes
9789 hardcode_shlibpath_var=no
9790 ;;
9791
9792 newsos6)
9793 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9794 hardcode_direct=yes
9795 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9796 hardcode_libdir_separator=:
9797 hardcode_shlibpath_var=no
9798 ;;
9799
9800 *nto* | *qnx*)
9801 ;;
9802
9803 openbsd*)
9804 if test -f /usr/libexec/ld.so; then
9805 hardcode_direct=yes
9806 hardcode_shlibpath_var=no
9807 hardcode_direct_absolute=yes
9808 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9809 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9810 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9811 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9812 export_dynamic_flag_spec='${wl}-E'
9813 else
9814 case $host_os in
9815 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9816 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9817 hardcode_libdir_flag_spec='-R$libdir'
9818 ;;
9819 *)
9820 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9821 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9822 ;;
9823 esac
9824 fi
9825 else
9826 ld_shlibs=no
9827 fi
9828 ;;
9829
9830 os2*)
9831 hardcode_libdir_flag_spec='-L$libdir'
9832 hardcode_minus_L=yes
9833 allow_undefined_flag=unsupported
9834 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'
9835 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9836 ;;
9837
9838 osf3*)
9839 if test "$GCC" = yes; then
9840 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9841 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'
9842 else
9843 allow_undefined_flag=' -expect_unresolved \*'
9844 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'
9845 fi
9846 archive_cmds_need_lc='no'
9847 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9848 hardcode_libdir_separator=:
9849 ;;
9850
9851 osf4* | osf5*) # as osf3* with the addition of -msym flag
9852 if test "$GCC" = yes; then
9853 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9854 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'
9855 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9856 else
9857 allow_undefined_flag=' -expect_unresolved \*'
9858 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'
9859 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~
9860 $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'
9861
9862 # Both c and cxx compiler support -rpath directly
9863 hardcode_libdir_flag_spec='-rpath $libdir'
9864 fi
9865 archive_cmds_need_lc='no'
9866 hardcode_libdir_separator=:
9867 ;;
9868
9869 solaris*)
9870 no_undefined_flag=' -z defs'
9871 if test "$GCC" = yes; then
9872 wlarc='${wl}'
9873 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9874 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9875 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9876 else
9877 case `$CC -V 2>&1` in
9878 *"Compilers 5.0"*)
9879 wlarc=''
9880 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9881 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9882 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9883 ;;
9884 *)
9885 wlarc='${wl}'
9886 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9887 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9888 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9889 ;;
9890 esac
9891 fi
9892 hardcode_libdir_flag_spec='-R$libdir'
9893 hardcode_shlibpath_var=no
9894 case $host_os in
9895 solaris2.[0-5] | solaris2.[0-5].*) ;;
9896 *)
9897 # The compiler driver will combine and reorder linker options,
9898 # but understands `-z linker_flag'. GCC discards it without `$wl',
9899 # but is careful enough not to reorder.
9900 # Supported since Solaris 2.6 (maybe 2.5.1?)
9901 if test "$GCC" = yes; then
9902 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9903 else
9904 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9905 fi
9906 ;;
9907 esac
9908 link_all_deplibs=yes
9909 ;;
9910
9911 sunos4*)
9912 if test "x$host_vendor" = xsequent; then
9913 # Use $CC to link under sequent, because it throws in some extra .o
9914 # files that make .init and .fini sections work.
9915 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9916 else
9917 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9918 fi
9919 hardcode_libdir_flag_spec='-L$libdir'
9920 hardcode_direct=yes
9921 hardcode_minus_L=yes
9922 hardcode_shlibpath_var=no
9923 ;;
9924
9925 sysv4)
9926 case $host_vendor in
9927 sni)
9928 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9929 hardcode_direct=yes # is this really true???
9930 ;;
9931 siemens)
9932 ## LD is ld it makes a PLAMLIB
9933 ## CC just makes a GrossModule.
9934 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9935 reload_cmds='$CC -r -o $output$reload_objs'
9936 hardcode_direct=no
9937 ;;
9938 motorola)
9939 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9940 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9941 ;;
9942 esac
9943 runpath_var='LD_RUN_PATH'
9944 hardcode_shlibpath_var=no
9945 ;;
9946
9947 sysv4.3*)
9948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9949 hardcode_shlibpath_var=no
9950 export_dynamic_flag_spec='-Bexport'
9951 ;;
9952
9953 sysv4*MP*)
9954 if test -d /usr/nec; then
9955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9956 hardcode_shlibpath_var=no
9957 runpath_var=LD_RUN_PATH
9958 hardcode_runpath_var=yes
9959 ld_shlibs=yes
9960 fi
9961 ;;
9962
9963 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9964 no_undefined_flag='${wl}-z,text'
9965 archive_cmds_need_lc=no
9966 hardcode_shlibpath_var=no
9967 runpath_var='LD_RUN_PATH'
9968
9969 if test "$GCC" = yes; then
9970 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9971 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9972 else
9973 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9974 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9975 fi
9976 ;;
9977
9978 sysv5* | sco3.2v5* | sco5v6*)
9979 # Note: We can NOT use -z defs as we might desire, because we do not
9980 # link with -lc, and that would cause any symbols used from libc to
9981 # always be unresolved, which means just about no library would
9982 # ever link correctly. If we're not using GNU ld we use -z text
9983 # though, which does catch some bad symbols but isn't as heavy-handed
9984 # as -z defs.
9985 no_undefined_flag='${wl}-z,text'
9986 allow_undefined_flag='${wl}-z,nodefs'
9987 archive_cmds_need_lc=no
9988 hardcode_shlibpath_var=no
9989 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9990 hardcode_libdir_separator=':'
9991 link_all_deplibs=yes
9992 export_dynamic_flag_spec='${wl}-Bexport'
9993 runpath_var='LD_RUN_PATH'
9994
9995 if test "$GCC" = yes; then
9996 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9997 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9998 else
9999 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10000 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10001 fi
10002 ;;
10003
10004 uts4*)
10005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10006 hardcode_libdir_flag_spec='-L$libdir'
10007 hardcode_shlibpath_var=no
10008 ;;
10009
10010 *)
10011 ld_shlibs=no
10012 ;;
10013 esac
10014
10015 if test x$host_vendor = xsni; then
10016 case $host in
10017 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10018 export_dynamic_flag_spec='${wl}-Blargedynsym'
10019 ;;
10020 esac
10021 fi
10022 fi
10023
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10025 $as_echo "$ld_shlibs" >&6; }
10026 test "$ld_shlibs" = no && can_build_shared=no
10027
10028 with_gnu_ld=$with_gnu_ld
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044 #
10045 # Do we need to explicitly link libc?
10046 #
10047 case "x$archive_cmds_need_lc" in
10048 x|xyes)
10049 # Assume -lc should be added
10050 archive_cmds_need_lc=yes
10051
10052 if test "$enable_shared" = yes && test "$GCC" = yes; then
10053 case $archive_cmds in
10054 *'~'*)
10055 # FIXME: we may have to deal with multi-command sequences.
10056 ;;
10057 '$CC '*)
10058 # Test whether the compiler implicitly links with -lc since on some
10059 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10060 # to ld, don't add -lc before -lgcc.
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10062 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10063 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10064 $as_echo_n "(cached) " >&6
10065 else
10066 $RM conftest*
10067 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10068
10069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10070 (eval $ac_compile) 2>&5
10071 ac_status=$?
10072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10073 test $ac_status = 0; } 2>conftest.err; then
10074 soname=conftest
10075 lib=conftest
10076 libobjs=conftest.$ac_objext
10077 deplibs=
10078 wl=$lt_prog_compiler_wl
10079 pic_flag=$lt_prog_compiler_pic
10080 compiler_flags=-v
10081 linker_flags=-v
10082 verstring=
10083 output_objdir=.
10084 libname=conftest
10085 lt_save_allow_undefined_flag=$allow_undefined_flag
10086 allow_undefined_flag=
10087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10088 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10089 ac_status=$?
10090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10091 test $ac_status = 0; }
10092 then
10093 lt_cv_archive_cmds_need_lc=no
10094 else
10095 lt_cv_archive_cmds_need_lc=yes
10096 fi
10097 allow_undefined_flag=$lt_save_allow_undefined_flag
10098 else
10099 cat conftest.err 1>&5
10100 fi
10101 $RM conftest*
10102
10103 fi
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10105 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10106 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10107 ;;
10108 esac
10109 fi
10110 ;;
10111 esac
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10270 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10271
10272 if test "$GCC" = yes; then
10273 case $host_os in
10274 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10275 *) lt_awk_arg="/^libraries:/" ;;
10276 esac
10277 case $host_os in
10278 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10279 *) lt_sed_strip_eq="s,=/,/,g" ;;
10280 esac
10281 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10282 case $lt_search_path_spec in
10283 *\;*)
10284 # if the path contains ";" then we assume it to be the separator
10285 # otherwise default to the standard path separator (i.e. ":") - it is
10286 # assumed that no part of a normal pathname contains ";" but that should
10287 # okay in the real world where ";" in dirpaths is itself problematic.
10288 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10289 ;;
10290 *)
10291 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10292 ;;
10293 esac
10294 # Ok, now we have the path, separated by spaces, we can step through it
10295 # and add multilib dir if necessary.
10296 lt_tmp_lt_search_path_spec=
10297 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10298 for lt_sys_path in $lt_search_path_spec; do
10299 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10300 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10301 else
10302 test -d "$lt_sys_path" && \
10303 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10304 fi
10305 done
10306 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10307 BEGIN {RS=" "; FS="/|\n";} {
10308 lt_foo="";
10309 lt_count=0;
10310 for (lt_i = NF; lt_i > 0; lt_i--) {
10311 if ($lt_i != "" && $lt_i != ".") {
10312 if ($lt_i == "..") {
10313 lt_count++;
10314 } else {
10315 if (lt_count == 0) {
10316 lt_foo="/" $lt_i lt_foo;
10317 } else {
10318 lt_count--;
10319 }
10320 }
10321 }
10322 }
10323 if (lt_foo != "") { lt_freq[lt_foo]++; }
10324 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10325 }'`
10326 # AWK program above erroneously prepends '/' to C:/dos/paths
10327 # for these hosts.
10328 case $host_os in
10329 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10330 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10331 esac
10332 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10333 else
10334 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10335 fi
10336 library_names_spec=
10337 libname_spec='lib$name'
10338 soname_spec=
10339 shrext_cmds=".so"
10340 postinstall_cmds=
10341 postuninstall_cmds=
10342 finish_cmds=
10343 finish_eval=
10344 shlibpath_var=
10345 shlibpath_overrides_runpath=unknown
10346 version_type=none
10347 dynamic_linker="$host_os ld.so"
10348 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10349 need_lib_prefix=unknown
10350 hardcode_into_libs=no
10351
10352 # when you set need_version to no, make sure it does not cause -set_version
10353 # flags to be left without arguments
10354 need_version=unknown
10355
10356 case $host_os in
10357 aix3*)
10358 version_type=linux
10359 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10360 shlibpath_var=LIBPATH
10361
10362 # AIX 3 has no versioning support, so we append a major version to the name.
10363 soname_spec='${libname}${release}${shared_ext}$major'
10364 ;;
10365
10366 aix[4-9]*)
10367 version_type=linux
10368 need_lib_prefix=no
10369 need_version=no
10370 hardcode_into_libs=yes
10371 if test "$host_cpu" = ia64; then
10372 # AIX 5 supports IA64
10373 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10374 shlibpath_var=LD_LIBRARY_PATH
10375 else
10376 # With GCC up to 2.95.x, collect2 would create an import file
10377 # for dependence libraries. The import file would start with
10378 # the line `#! .'. This would cause the generated library to
10379 # depend on `.', always an invalid library. This was fixed in
10380 # development snapshots of GCC prior to 3.0.
10381 case $host_os in
10382 aix4 | aix4.[01] | aix4.[01].*)
10383 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10384 echo ' yes '
10385 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10386 :
10387 else
10388 can_build_shared=no
10389 fi
10390 ;;
10391 esac
10392 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10393 # soname into executable. Probably we can add versioning support to
10394 # collect2, so additional links can be useful in future.
10395 if test "$aix_use_runtimelinking" = yes; then
10396 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10397 # instead of lib<name>.a to let people know that these are not
10398 # typical AIX shared libraries.
10399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10400 else
10401 # We preserve .a as extension for shared libraries through AIX4.2
10402 # and later when we are not doing run time linking.
10403 library_names_spec='${libname}${release}.a $libname.a'
10404 soname_spec='${libname}${release}${shared_ext}$major'
10405 fi
10406 shlibpath_var=LIBPATH
10407 fi
10408 ;;
10409
10410 amigaos*)
10411 case $host_cpu in
10412 powerpc)
10413 # Since July 2007 AmigaOS4 officially supports .so libraries.
10414 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10416 ;;
10417 m68k)
10418 library_names_spec='$libname.ixlibrary $libname.a'
10419 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10420 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'
10421 ;;
10422 esac
10423 ;;
10424
10425 beos*)
10426 library_names_spec='${libname}${shared_ext}'
10427 dynamic_linker="$host_os ld.so"
10428 shlibpath_var=LIBRARY_PATH
10429 ;;
10430
10431 bsdi[45]*)
10432 version_type=linux
10433 need_version=no
10434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10435 soname_spec='${libname}${release}${shared_ext}$major'
10436 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10437 shlibpath_var=LD_LIBRARY_PATH
10438 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10439 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10440 # the default ld.so.conf also contains /usr/contrib/lib and
10441 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10442 # libtool to hard-code these into programs
10443 ;;
10444
10445 cygwin* | mingw* | pw32* | cegcc*)
10446 version_type=windows
10447 shrext_cmds=".dll"
10448 need_version=no
10449 need_lib_prefix=no
10450
10451 case $GCC,$host_os in
10452 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10453 library_names_spec='$libname.dll.a'
10454 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10455 postinstall_cmds='base_file=`basename \${file}`~
10456 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10457 dldir=$destdir/`dirname \$dlpath`~
10458 test -d \$dldir || mkdir -p \$dldir~
10459 $install_prog $dir/$dlname \$dldir/$dlname~
10460 chmod a+x \$dldir/$dlname~
10461 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10462 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10463 fi'
10464 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10465 dlpath=$dir/\$dldll~
10466 $RM \$dlpath'
10467 shlibpath_overrides_runpath=yes
10468
10469 case $host_os in
10470 cygwin*)
10471 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10472 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10473
10474 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10475 ;;
10476 mingw* | cegcc*)
10477 # MinGW DLLs use traditional 'lib' prefix
10478 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10479 ;;
10480 pw32*)
10481 # pw32 DLLs use 'pw' prefix rather than 'lib'
10482 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10483 ;;
10484 esac
10485 ;;
10486
10487 *)
10488 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10489 ;;
10490 esac
10491 dynamic_linker='Win32 ld.exe'
10492 # FIXME: first we should search . and the directory the executable is in
10493 shlibpath_var=PATH
10494 ;;
10495
10496 darwin* | rhapsody*)
10497 dynamic_linker="$host_os dyld"
10498 version_type=darwin
10499 need_lib_prefix=no
10500 need_version=no
10501 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10502 soname_spec='${libname}${release}${major}$shared_ext'
10503 shlibpath_overrides_runpath=yes
10504 shlibpath_var=DYLD_LIBRARY_PATH
10505 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10506
10507 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10508 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10509 ;;
10510
10511 dgux*)
10512 version_type=linux
10513 need_lib_prefix=no
10514 need_version=no
10515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10516 soname_spec='${libname}${release}${shared_ext}$major'
10517 shlibpath_var=LD_LIBRARY_PATH
10518 ;;
10519
10520 freebsd1*)
10521 dynamic_linker=no
10522 ;;
10523
10524 freebsd* | dragonfly*)
10525 # DragonFly does not have aout. When/if they implement a new
10526 # versioning mechanism, adjust this.
10527 if test -x /usr/bin/objformat; then
10528 objformat=`/usr/bin/objformat`
10529 else
10530 case $host_os in
10531 freebsd[123]*) objformat=aout ;;
10532 *) objformat=elf ;;
10533 esac
10534 fi
10535 version_type=freebsd-$objformat
10536 case $version_type in
10537 freebsd-elf*)
10538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10539 need_version=no
10540 need_lib_prefix=no
10541 ;;
10542 freebsd-*)
10543 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10544 need_version=yes
10545 ;;
10546 esac
10547 shlibpath_var=LD_LIBRARY_PATH
10548 case $host_os in
10549 freebsd2*)
10550 shlibpath_overrides_runpath=yes
10551 ;;
10552 freebsd3.[01]* | freebsdelf3.[01]*)
10553 shlibpath_overrides_runpath=yes
10554 hardcode_into_libs=yes
10555 ;;
10556 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10557 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10558 shlibpath_overrides_runpath=no
10559 hardcode_into_libs=yes
10560 ;;
10561 *) # from 4.6 on, and DragonFly
10562 shlibpath_overrides_runpath=yes
10563 hardcode_into_libs=yes
10564 ;;
10565 esac
10566 ;;
10567
10568 gnu*)
10569 version_type=linux
10570 need_lib_prefix=no
10571 need_version=no
10572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10573 soname_spec='${libname}${release}${shared_ext}$major'
10574 shlibpath_var=LD_LIBRARY_PATH
10575 hardcode_into_libs=yes
10576 ;;
10577
10578 haiku*)
10579 version_type=linux
10580 need_lib_prefix=no
10581 need_version=no
10582 dynamic_linker="$host_os runtime_loader"
10583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10584 soname_spec='${libname}${release}${shared_ext}$major'
10585 shlibpath_var=LIBRARY_PATH
10586 shlibpath_overrides_runpath=yes
10587 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10588 hardcode_into_libs=yes
10589 ;;
10590
10591 hpux9* | hpux10* | hpux11*)
10592 # Give a soname corresponding to the major version so that dld.sl refuses to
10593 # link against other versions.
10594 version_type=sunos
10595 need_lib_prefix=no
10596 need_version=no
10597 case $host_cpu in
10598 ia64*)
10599 shrext_cmds='.so'
10600 hardcode_into_libs=yes
10601 dynamic_linker="$host_os dld.so"
10602 shlibpath_var=LD_LIBRARY_PATH
10603 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10605 soname_spec='${libname}${release}${shared_ext}$major'
10606 if test "X$HPUX_IA64_MODE" = X32; then
10607 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10608 else
10609 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10610 fi
10611 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10612 ;;
10613 hppa*64*)
10614 shrext_cmds='.sl'
10615 hardcode_into_libs=yes
10616 dynamic_linker="$host_os dld.sl"
10617 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10618 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10620 soname_spec='${libname}${release}${shared_ext}$major'
10621 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10622 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10623 ;;
10624 *)
10625 shrext_cmds='.sl'
10626 dynamic_linker="$host_os dld.sl"
10627 shlibpath_var=SHLIB_PATH
10628 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10630 soname_spec='${libname}${release}${shared_ext}$major'
10631 ;;
10632 esac
10633 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10634 postinstall_cmds='chmod 555 $lib'
10635 # or fails outright, so override atomically:
10636 install_override_mode=555
10637 ;;
10638
10639 interix[3-9]*)
10640 version_type=linux
10641 need_lib_prefix=no
10642 need_version=no
10643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10644 soname_spec='${libname}${release}${shared_ext}$major'
10645 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10646 shlibpath_var=LD_LIBRARY_PATH
10647 shlibpath_overrides_runpath=no
10648 hardcode_into_libs=yes
10649 ;;
10650
10651 irix5* | irix6* | nonstopux*)
10652 case $host_os in
10653 nonstopux*) version_type=nonstopux ;;
10654 *)
10655 if test "$lt_cv_prog_gnu_ld" = yes; then
10656 version_type=linux
10657 else
10658 version_type=irix
10659 fi ;;
10660 esac
10661 need_lib_prefix=no
10662 need_version=no
10663 soname_spec='${libname}${release}${shared_ext}$major'
10664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10665 case $host_os in
10666 irix5* | nonstopux*)
10667 libsuff= shlibsuff=
10668 ;;
10669 *)
10670 case $LD in # libtool.m4 will add one of these switches to LD
10671 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10672 libsuff= shlibsuff= libmagic=32-bit;;
10673 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10674 libsuff=32 shlibsuff=N32 libmagic=N32;;
10675 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10676 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10677 *) libsuff= shlibsuff= libmagic=never-match;;
10678 esac
10679 ;;
10680 esac
10681 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10682 shlibpath_overrides_runpath=no
10683 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10684 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10685 hardcode_into_libs=yes
10686 ;;
10687
10688 # No shared lib support for Linux oldld, aout, or coff.
10689 linux*oldld* | linux*aout* | linux*coff*)
10690 dynamic_linker=no
10691 ;;
10692
10693 # This must be Linux ELF.
10694 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10695 version_type=linux
10696 need_lib_prefix=no
10697 need_version=no
10698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10699 soname_spec='${libname}${release}${shared_ext}$major'
10700 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10701 shlibpath_var=LD_LIBRARY_PATH
10702 shlibpath_overrides_runpath=no
10703
10704 # Some binutils ld are patched to set DT_RUNPATH
10705 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10706 $as_echo_n "(cached) " >&6
10707 else
10708 lt_cv_shlibpath_overrides_runpath=no
10709 save_LDFLAGS=$LDFLAGS
10710 save_libdir=$libdir
10711 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10712 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10713 if test x$gcc_no_link = xyes; then
10714 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10715 fi
10716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717 /* end confdefs.h. */
10718
10719 int
10720 main ()
10721 {
10722
10723 ;
10724 return 0;
10725 }
10726 _ACEOF
10727 if ac_fn_c_try_link "$LINENO"; then :
10728 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10729 lt_cv_shlibpath_overrides_runpath=yes
10730 fi
10731 fi
10732 rm -f core conftest.err conftest.$ac_objext \
10733 conftest$ac_exeext conftest.$ac_ext
10734 LDFLAGS=$save_LDFLAGS
10735 libdir=$save_libdir
10736
10737 fi
10738
10739 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10740
10741 # This implies no fast_install, which is unacceptable.
10742 # Some rework will be needed to allow for fast_install
10743 # before this can be enabled.
10744 hardcode_into_libs=yes
10745
10746 # Append ld.so.conf contents to the search path
10747 if test -f /etc/ld.so.conf; then
10748 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' ' '`
10749 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10750 fi
10751
10752 # We used to test for /lib/ld.so.1 and disable shared libraries on
10753 # powerpc, because MkLinux only supported shared libraries with the
10754 # GNU dynamic linker. Since this was broken with cross compilers,
10755 # most powerpc-linux boxes support dynamic linking these days and
10756 # people can always --disable-shared, the test was removed, and we
10757 # assume the GNU/Linux dynamic linker is in use.
10758 dynamic_linker='GNU/Linux ld.so'
10759 ;;
10760
10761 netbsd*)
10762 version_type=sunos
10763 need_lib_prefix=no
10764 need_version=no
10765 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10767 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10768 dynamic_linker='NetBSD (a.out) ld.so'
10769 else
10770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10771 soname_spec='${libname}${release}${shared_ext}$major'
10772 dynamic_linker='NetBSD ld.elf_so'
10773 fi
10774 shlibpath_var=LD_LIBRARY_PATH
10775 shlibpath_overrides_runpath=yes
10776 hardcode_into_libs=yes
10777 ;;
10778
10779 newsos6)
10780 version_type=linux
10781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10782 shlibpath_var=LD_LIBRARY_PATH
10783 shlibpath_overrides_runpath=yes
10784 ;;
10785
10786 *nto* | *qnx*)
10787 version_type=qnx
10788 need_lib_prefix=no
10789 need_version=no
10790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10791 soname_spec='${libname}${release}${shared_ext}$major'
10792 shlibpath_var=LD_LIBRARY_PATH
10793 shlibpath_overrides_runpath=no
10794 hardcode_into_libs=yes
10795 dynamic_linker='ldqnx.so'
10796 ;;
10797
10798 openbsd*)
10799 version_type=sunos
10800 sys_lib_dlsearch_path_spec="/usr/lib"
10801 need_lib_prefix=no
10802 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10803 case $host_os in
10804 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10805 *) need_version=no ;;
10806 esac
10807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10808 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10809 shlibpath_var=LD_LIBRARY_PATH
10810 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10811 case $host_os in
10812 openbsd2.[89] | openbsd2.[89].*)
10813 shlibpath_overrides_runpath=no
10814 ;;
10815 *)
10816 shlibpath_overrides_runpath=yes
10817 ;;
10818 esac
10819 else
10820 shlibpath_overrides_runpath=yes
10821 fi
10822 ;;
10823
10824 os2*)
10825 libname_spec='$name'
10826 shrext_cmds=".dll"
10827 need_lib_prefix=no
10828 library_names_spec='$libname${shared_ext} $libname.a'
10829 dynamic_linker='OS/2 ld.exe'
10830 shlibpath_var=LIBPATH
10831 ;;
10832
10833 osf3* | osf4* | osf5*)
10834 version_type=osf
10835 need_lib_prefix=no
10836 need_version=no
10837 soname_spec='${libname}${release}${shared_ext}$major'
10838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10839 shlibpath_var=LD_LIBRARY_PATH
10840 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10841 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10842 ;;
10843
10844 rdos*)
10845 dynamic_linker=no
10846 ;;
10847
10848 solaris*)
10849 version_type=linux
10850 need_lib_prefix=no
10851 need_version=no
10852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10853 soname_spec='${libname}${release}${shared_ext}$major'
10854 shlibpath_var=LD_LIBRARY_PATH
10855 shlibpath_overrides_runpath=yes
10856 hardcode_into_libs=yes
10857 # ldd complains unless libraries are executable
10858 postinstall_cmds='chmod +x $lib'
10859 ;;
10860
10861 sunos4*)
10862 version_type=sunos
10863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10864 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10865 shlibpath_var=LD_LIBRARY_PATH
10866 shlibpath_overrides_runpath=yes
10867 if test "$with_gnu_ld" = yes; then
10868 need_lib_prefix=no
10869 fi
10870 need_version=yes
10871 ;;
10872
10873 sysv4 | sysv4.3*)
10874 version_type=linux
10875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10876 soname_spec='${libname}${release}${shared_ext}$major'
10877 shlibpath_var=LD_LIBRARY_PATH
10878 case $host_vendor in
10879 sni)
10880 shlibpath_overrides_runpath=no
10881 need_lib_prefix=no
10882 runpath_var=LD_RUN_PATH
10883 ;;
10884 siemens)
10885 need_lib_prefix=no
10886 ;;
10887 motorola)
10888 need_lib_prefix=no
10889 need_version=no
10890 shlibpath_overrides_runpath=no
10891 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10892 ;;
10893 esac
10894 ;;
10895
10896 sysv4*MP*)
10897 if test -d /usr/nec ;then
10898 version_type=linux
10899 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10900 soname_spec='$libname${shared_ext}.$major'
10901 shlibpath_var=LD_LIBRARY_PATH
10902 fi
10903 ;;
10904
10905 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10906 version_type=freebsd-elf
10907 need_lib_prefix=no
10908 need_version=no
10909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10910 soname_spec='${libname}${release}${shared_ext}$major'
10911 shlibpath_var=LD_LIBRARY_PATH
10912 shlibpath_overrides_runpath=yes
10913 hardcode_into_libs=yes
10914 if test "$with_gnu_ld" = yes; then
10915 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10916 else
10917 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10918 case $host_os in
10919 sco3.2v5*)
10920 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10921 ;;
10922 esac
10923 fi
10924 sys_lib_dlsearch_path_spec='/usr/lib'
10925 ;;
10926
10927 tpf*)
10928 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10929 version_type=linux
10930 need_lib_prefix=no
10931 need_version=no
10932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10933 shlibpath_var=LD_LIBRARY_PATH
10934 shlibpath_overrides_runpath=no
10935 hardcode_into_libs=yes
10936 ;;
10937
10938 uts4*)
10939 version_type=linux
10940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10941 soname_spec='${libname}${release}${shared_ext}$major'
10942 shlibpath_var=LD_LIBRARY_PATH
10943 ;;
10944
10945 *)
10946 dynamic_linker=no
10947 ;;
10948 esac
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10950 $as_echo "$dynamic_linker" >&6; }
10951 test "$dynamic_linker" = no && can_build_shared=no
10952
10953 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10954 if test "$GCC" = yes; then
10955 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10956 fi
10957
10958 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10959 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10960 fi
10961 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10962 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10963 fi
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11057 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11058 hardcode_action=
11059 if test -n "$hardcode_libdir_flag_spec" ||
11060 test -n "$runpath_var" ||
11061 test "X$hardcode_automatic" = "Xyes" ; then
11062
11063 # We can hardcode non-existent directories.
11064 if test "$hardcode_direct" != no &&
11065 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11066 # have to relink, otherwise we might link with an installed library
11067 # when we should be linking with a yet-to-be-installed one
11068 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11069 test "$hardcode_minus_L" != no; then
11070 # Linking always hardcodes the temporary library directory.
11071 hardcode_action=relink
11072 else
11073 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11074 hardcode_action=immediate
11075 fi
11076 else
11077 # We cannot hardcode anything, or else we can only hardcode existing
11078 # directories.
11079 hardcode_action=unsupported
11080 fi
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11082 $as_echo "$hardcode_action" >&6; }
11083
11084 if test "$hardcode_action" = relink ||
11085 test "$inherit_rpath" = yes; then
11086 # Fast installation is not supported
11087 enable_fast_install=no
11088 elif test "$shlibpath_overrides_runpath" = yes ||
11089 test "$enable_shared" = no; then
11090 # Fast installation is not necessary
11091 enable_fast_install=needless
11092 fi
11093
11094
11095
11096
11097
11098
11099 if test "x$enable_dlopen" != xyes; then
11100 enable_dlopen=unknown
11101 enable_dlopen_self=unknown
11102 enable_dlopen_self_static=unknown
11103 else
11104 lt_cv_dlopen=no
11105 lt_cv_dlopen_libs=
11106
11107 case $host_os in
11108 beos*)
11109 lt_cv_dlopen="load_add_on"
11110 lt_cv_dlopen_libs=
11111 lt_cv_dlopen_self=yes
11112 ;;
11113
11114 mingw* | pw32* | cegcc*)
11115 lt_cv_dlopen="LoadLibrary"
11116 lt_cv_dlopen_libs=
11117 ;;
11118
11119 cygwin*)
11120 lt_cv_dlopen="dlopen"
11121 lt_cv_dlopen_libs=
11122 ;;
11123
11124 darwin*)
11125 # if libdl is installed we need to link against it
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11127 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11128 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11129 $as_echo_n "(cached) " >&6
11130 else
11131 ac_check_lib_save_LIBS=$LIBS
11132 LIBS="-ldl $LIBS"
11133 if test x$gcc_no_link = xyes; then
11134 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11135 fi
11136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11137 /* end confdefs.h. */
11138
11139 /* Override any GCC internal prototype to avoid an error.
11140 Use char because int might match the return type of a GCC
11141 builtin and then its argument prototype would still apply. */
11142 #ifdef __cplusplus
11143 extern "C"
11144 #endif
11145 char dlopen ();
11146 int
11147 main ()
11148 {
11149 return dlopen ();
11150 ;
11151 return 0;
11152 }
11153 _ACEOF
11154 if ac_fn_c_try_link "$LINENO"; then :
11155 ac_cv_lib_dl_dlopen=yes
11156 else
11157 ac_cv_lib_dl_dlopen=no
11158 fi
11159 rm -f core conftest.err conftest.$ac_objext \
11160 conftest$ac_exeext conftest.$ac_ext
11161 LIBS=$ac_check_lib_save_LIBS
11162 fi
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11164 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11165 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11166 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11167 else
11168
11169 lt_cv_dlopen="dyld"
11170 lt_cv_dlopen_libs=
11171 lt_cv_dlopen_self=yes
11172
11173 fi
11174
11175 ;;
11176
11177 *)
11178 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11179 if test "x$ac_cv_func_shl_load" = x""yes; then :
11180 lt_cv_dlopen="shl_load"
11181 else
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11183 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11184 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11185 $as_echo_n "(cached) " >&6
11186 else
11187 ac_check_lib_save_LIBS=$LIBS
11188 LIBS="-ldld $LIBS"
11189 if test x$gcc_no_link = xyes; then
11190 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11191 fi
11192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11193 /* end confdefs.h. */
11194
11195 /* Override any GCC internal prototype to avoid an error.
11196 Use char because int might match the return type of a GCC
11197 builtin and then its argument prototype would still apply. */
11198 #ifdef __cplusplus
11199 extern "C"
11200 #endif
11201 char shl_load ();
11202 int
11203 main ()
11204 {
11205 return shl_load ();
11206 ;
11207 return 0;
11208 }
11209 _ACEOF
11210 if ac_fn_c_try_link "$LINENO"; then :
11211 ac_cv_lib_dld_shl_load=yes
11212 else
11213 ac_cv_lib_dld_shl_load=no
11214 fi
11215 rm -f core conftest.err conftest.$ac_objext \
11216 conftest$ac_exeext conftest.$ac_ext
11217 LIBS=$ac_check_lib_save_LIBS
11218 fi
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11220 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11221 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11222 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11223 else
11224 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11225 if test "x$ac_cv_func_dlopen" = x""yes; then :
11226 lt_cv_dlopen="dlopen"
11227 else
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11229 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11230 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11231 $as_echo_n "(cached) " >&6
11232 else
11233 ac_check_lib_save_LIBS=$LIBS
11234 LIBS="-ldl $LIBS"
11235 if test x$gcc_no_link = xyes; then
11236 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11237 fi
11238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11239 /* end confdefs.h. */
11240
11241 /* Override any GCC internal prototype to avoid an error.
11242 Use char because int might match the return type of a GCC
11243 builtin and then its argument prototype would still apply. */
11244 #ifdef __cplusplus
11245 extern "C"
11246 #endif
11247 char dlopen ();
11248 int
11249 main ()
11250 {
11251 return dlopen ();
11252 ;
11253 return 0;
11254 }
11255 _ACEOF
11256 if ac_fn_c_try_link "$LINENO"; then :
11257 ac_cv_lib_dl_dlopen=yes
11258 else
11259 ac_cv_lib_dl_dlopen=no
11260 fi
11261 rm -f core conftest.err conftest.$ac_objext \
11262 conftest$ac_exeext conftest.$ac_ext
11263 LIBS=$ac_check_lib_save_LIBS
11264 fi
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11266 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11267 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11268 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11269 else
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11271 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11272 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11273 $as_echo_n "(cached) " >&6
11274 else
11275 ac_check_lib_save_LIBS=$LIBS
11276 LIBS="-lsvld $LIBS"
11277 if test x$gcc_no_link = xyes; then
11278 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11279 fi
11280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11281 /* end confdefs.h. */
11282
11283 /* Override any GCC internal prototype to avoid an error.
11284 Use char because int might match the return type of a GCC
11285 builtin and then its argument prototype would still apply. */
11286 #ifdef __cplusplus
11287 extern "C"
11288 #endif
11289 char dlopen ();
11290 int
11291 main ()
11292 {
11293 return dlopen ();
11294 ;
11295 return 0;
11296 }
11297 _ACEOF
11298 if ac_fn_c_try_link "$LINENO"; then :
11299 ac_cv_lib_svld_dlopen=yes
11300 else
11301 ac_cv_lib_svld_dlopen=no
11302 fi
11303 rm -f core conftest.err conftest.$ac_objext \
11304 conftest$ac_exeext conftest.$ac_ext
11305 LIBS=$ac_check_lib_save_LIBS
11306 fi
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11308 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11309 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11310 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11311 else
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11313 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11314 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11315 $as_echo_n "(cached) " >&6
11316 else
11317 ac_check_lib_save_LIBS=$LIBS
11318 LIBS="-ldld $LIBS"
11319 if test x$gcc_no_link = xyes; then
11320 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11321 fi
11322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11323 /* end confdefs.h. */
11324
11325 /* Override any GCC internal prototype to avoid an error.
11326 Use char because int might match the return type of a GCC
11327 builtin and then its argument prototype would still apply. */
11328 #ifdef __cplusplus
11329 extern "C"
11330 #endif
11331 char dld_link ();
11332 int
11333 main ()
11334 {
11335 return dld_link ();
11336 ;
11337 return 0;
11338 }
11339 _ACEOF
11340 if ac_fn_c_try_link "$LINENO"; then :
11341 ac_cv_lib_dld_dld_link=yes
11342 else
11343 ac_cv_lib_dld_dld_link=no
11344 fi
11345 rm -f core conftest.err conftest.$ac_objext \
11346 conftest$ac_exeext conftest.$ac_ext
11347 LIBS=$ac_check_lib_save_LIBS
11348 fi
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11350 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11351 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11352 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11353 fi
11354
11355
11356 fi
11357
11358
11359 fi
11360
11361
11362 fi
11363
11364
11365 fi
11366
11367
11368 fi
11369
11370 ;;
11371 esac
11372
11373 if test "x$lt_cv_dlopen" != xno; then
11374 enable_dlopen=yes
11375 else
11376 enable_dlopen=no
11377 fi
11378
11379 case $lt_cv_dlopen in
11380 dlopen)
11381 save_CPPFLAGS="$CPPFLAGS"
11382 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11383
11384 save_LDFLAGS="$LDFLAGS"
11385 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11386
11387 save_LIBS="$LIBS"
11388 LIBS="$lt_cv_dlopen_libs $LIBS"
11389
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11391 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11392 if test "${lt_cv_dlopen_self+set}" = set; then :
11393 $as_echo_n "(cached) " >&6
11394 else
11395 if test "$cross_compiling" = yes; then :
11396 lt_cv_dlopen_self=cross
11397 else
11398 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11399 lt_status=$lt_dlunknown
11400 cat > conftest.$ac_ext <<_LT_EOF
11401 #line 11401 "configure"
11402 #include "confdefs.h"
11403
11404 #if HAVE_DLFCN_H
11405 #include <dlfcn.h>
11406 #endif
11407
11408 #include <stdio.h>
11409
11410 #ifdef RTLD_GLOBAL
11411 # define LT_DLGLOBAL RTLD_GLOBAL
11412 #else
11413 # ifdef DL_GLOBAL
11414 # define LT_DLGLOBAL DL_GLOBAL
11415 # else
11416 # define LT_DLGLOBAL 0
11417 # endif
11418 #endif
11419
11420 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11421 find out it does not work in some platform. */
11422 #ifndef LT_DLLAZY_OR_NOW
11423 # ifdef RTLD_LAZY
11424 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11425 # else
11426 # ifdef DL_LAZY
11427 # define LT_DLLAZY_OR_NOW DL_LAZY
11428 # else
11429 # ifdef RTLD_NOW
11430 # define LT_DLLAZY_OR_NOW RTLD_NOW
11431 # else
11432 # ifdef DL_NOW
11433 # define LT_DLLAZY_OR_NOW DL_NOW
11434 # else
11435 # define LT_DLLAZY_OR_NOW 0
11436 # endif
11437 # endif
11438 # endif
11439 # endif
11440 #endif
11441
11442 /* When -fvisbility=hidden is used, assume the code has been annotated
11443 correspondingly for the symbols needed. */
11444 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11445 void fnord () __attribute__((visibility("default")));
11446 #endif
11447
11448 void fnord () { int i=42; }
11449 int main ()
11450 {
11451 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11452 int status = $lt_dlunknown;
11453
11454 if (self)
11455 {
11456 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11457 else
11458 {
11459 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11460 else puts (dlerror ());
11461 }
11462 /* dlclose (self); */
11463 }
11464 else
11465 puts (dlerror ());
11466
11467 return status;
11468 }
11469 _LT_EOF
11470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11471 (eval $ac_link) 2>&5
11472 ac_status=$?
11473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11474 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11475 (./conftest; exit; ) >&5 2>/dev/null
11476 lt_status=$?
11477 case x$lt_status in
11478 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11479 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11480 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11481 esac
11482 else :
11483 # compilation failed
11484 lt_cv_dlopen_self=no
11485 fi
11486 fi
11487 rm -fr conftest*
11488
11489
11490 fi
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11492 $as_echo "$lt_cv_dlopen_self" >&6; }
11493
11494 if test "x$lt_cv_dlopen_self" = xyes; then
11495 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11497 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11498 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11499 $as_echo_n "(cached) " >&6
11500 else
11501 if test "$cross_compiling" = yes; then :
11502 lt_cv_dlopen_self_static=cross
11503 else
11504 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11505 lt_status=$lt_dlunknown
11506 cat > conftest.$ac_ext <<_LT_EOF
11507 #line 11507 "configure"
11508 #include "confdefs.h"
11509
11510 #if HAVE_DLFCN_H
11511 #include <dlfcn.h>
11512 #endif
11513
11514 #include <stdio.h>
11515
11516 #ifdef RTLD_GLOBAL
11517 # define LT_DLGLOBAL RTLD_GLOBAL
11518 #else
11519 # ifdef DL_GLOBAL
11520 # define LT_DLGLOBAL DL_GLOBAL
11521 # else
11522 # define LT_DLGLOBAL 0
11523 # endif
11524 #endif
11525
11526 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11527 find out it does not work in some platform. */
11528 #ifndef LT_DLLAZY_OR_NOW
11529 # ifdef RTLD_LAZY
11530 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11531 # else
11532 # ifdef DL_LAZY
11533 # define LT_DLLAZY_OR_NOW DL_LAZY
11534 # else
11535 # ifdef RTLD_NOW
11536 # define LT_DLLAZY_OR_NOW RTLD_NOW
11537 # else
11538 # ifdef DL_NOW
11539 # define LT_DLLAZY_OR_NOW DL_NOW
11540 # else
11541 # define LT_DLLAZY_OR_NOW 0
11542 # endif
11543 # endif
11544 # endif
11545 # endif
11546 #endif
11547
11548 /* When -fvisbility=hidden is used, assume the code has been annotated
11549 correspondingly for the symbols needed. */
11550 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11551 void fnord () __attribute__((visibility("default")));
11552 #endif
11553
11554 void fnord () { int i=42; }
11555 int main ()
11556 {
11557 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11558 int status = $lt_dlunknown;
11559
11560 if (self)
11561 {
11562 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11563 else
11564 {
11565 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11566 else puts (dlerror ());
11567 }
11568 /* dlclose (self); */
11569 }
11570 else
11571 puts (dlerror ());
11572
11573 return status;
11574 }
11575 _LT_EOF
11576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11577 (eval $ac_link) 2>&5
11578 ac_status=$?
11579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11580 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11581 (./conftest; exit; ) >&5 2>/dev/null
11582 lt_status=$?
11583 case x$lt_status in
11584 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11585 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11586 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11587 esac
11588 else :
11589 # compilation failed
11590 lt_cv_dlopen_self_static=no
11591 fi
11592 fi
11593 rm -fr conftest*
11594
11595
11596 fi
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11598 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11599 fi
11600
11601 CPPFLAGS="$save_CPPFLAGS"
11602 LDFLAGS="$save_LDFLAGS"
11603 LIBS="$save_LIBS"
11604 ;;
11605 esac
11606
11607 case $lt_cv_dlopen_self in
11608 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11609 *) enable_dlopen_self=unknown ;;
11610 esac
11611
11612 case $lt_cv_dlopen_self_static in
11613 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11614 *) enable_dlopen_self_static=unknown ;;
11615 esac
11616 fi
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634 striplib=
11635 old_striplib=
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11637 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11638 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11639 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11640 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11642 $as_echo "yes" >&6; }
11643 else
11644 # FIXME - insert some real tests, host_os isn't really good enough
11645 case $host_os in
11646 darwin*)
11647 if test -n "$STRIP" ; then
11648 striplib="$STRIP -x"
11649 old_striplib="$STRIP -S"
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11651 $as_echo "yes" >&6; }
11652 else
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654 $as_echo "no" >&6; }
11655 fi
11656 ;;
11657 *)
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11659 $as_echo "no" >&6; }
11660 ;;
11661 esac
11662 fi
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675 # Report which library types will actually be built
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11677 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11679 $as_echo "$can_build_shared" >&6; }
11680
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11682 $as_echo_n "checking whether to build shared libraries... " >&6; }
11683 test "$can_build_shared" = "no" && enable_shared=no
11684
11685 # On AIX, shared libraries and static libraries use the same namespace, and
11686 # are all built from PIC.
11687 case $host_os in
11688 aix3*)
11689 test "$enable_shared" = yes && enable_static=no
11690 if test -n "$RANLIB"; then
11691 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11692 postinstall_cmds='$RANLIB $lib'
11693 fi
11694 ;;
11695
11696 aix[4-9]*)
11697 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11698 test "$enable_shared" = yes && enable_static=no
11699 fi
11700 ;;
11701 esac
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11703 $as_echo "$enable_shared" >&6; }
11704
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11706 $as_echo_n "checking whether to build static libraries... " >&6; }
11707 # Make sure either enable_shared or enable_static is yes.
11708 test "$enable_shared" = yes || enable_static=yes
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11710 $as_echo "$enable_static" >&6; }
11711
11712
11713
11714
11715 fi
11716 ac_ext=c
11717 ac_cpp='$CPP $CPPFLAGS'
11718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11721
11722 CC="$lt_save_CC"
11723
11724 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11725 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11726 (test "X$CXX" != "Xg++"))) ; then
11727 ac_ext=cpp
11728 ac_cpp='$CXXCPP $CPPFLAGS'
11729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11733 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11734 if test -z "$CXXCPP"; then
11735 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11736 $as_echo_n "(cached) " >&6
11737 else
11738 # Double quotes because CXXCPP needs to be expanded
11739 for CXXCPP in "$CXX -E" "/lib/cpp"
11740 do
11741 ac_preproc_ok=false
11742 for ac_cxx_preproc_warn_flag in '' yes
11743 do
11744 # Use a header file that comes with gcc, so configuring glibc
11745 # with a fresh cross-compiler works.
11746 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11747 # <limits.h> exists even on freestanding compilers.
11748 # On the NeXT, cc -E runs the code through the compiler's parser,
11749 # not just through cpp. "Syntax error" is here to catch this case.
11750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11751 /* end confdefs.h. */
11752 #ifdef __STDC__
11753 # include <limits.h>
11754 #else
11755 # include <assert.h>
11756 #endif
11757 Syntax error
11758 _ACEOF
11759 if ac_fn_cxx_try_cpp "$LINENO"; then :
11760
11761 else
11762 # Broken: fails on valid input.
11763 continue
11764 fi
11765 rm -f conftest.err conftest.$ac_ext
11766
11767 # OK, works on sane cases. Now check whether nonexistent headers
11768 # can be detected and how.
11769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11770 /* end confdefs.h. */
11771 #include <ac_nonexistent.h>
11772 _ACEOF
11773 if ac_fn_cxx_try_cpp "$LINENO"; then :
11774 # Broken: success on invalid input.
11775 continue
11776 else
11777 # Passes both tests.
11778 ac_preproc_ok=:
11779 break
11780 fi
11781 rm -f conftest.err conftest.$ac_ext
11782
11783 done
11784 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11785 rm -f conftest.err conftest.$ac_ext
11786 if $ac_preproc_ok; then :
11787 break
11788 fi
11789
11790 done
11791 ac_cv_prog_CXXCPP=$CXXCPP
11792
11793 fi
11794 CXXCPP=$ac_cv_prog_CXXCPP
11795 else
11796 ac_cv_prog_CXXCPP=$CXXCPP
11797 fi
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11799 $as_echo "$CXXCPP" >&6; }
11800 ac_preproc_ok=false
11801 for ac_cxx_preproc_warn_flag in '' yes
11802 do
11803 # Use a header file that comes with gcc, so configuring glibc
11804 # with a fresh cross-compiler works.
11805 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11806 # <limits.h> exists even on freestanding compilers.
11807 # On the NeXT, cc -E runs the code through the compiler's parser,
11808 # not just through cpp. "Syntax error" is here to catch this case.
11809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11810 /* end confdefs.h. */
11811 #ifdef __STDC__
11812 # include <limits.h>
11813 #else
11814 # include <assert.h>
11815 #endif
11816 Syntax error
11817 _ACEOF
11818 if ac_fn_cxx_try_cpp "$LINENO"; then :
11819
11820 else
11821 # Broken: fails on valid input.
11822 continue
11823 fi
11824 rm -f conftest.err conftest.$ac_ext
11825
11826 # OK, works on sane cases. Now check whether nonexistent headers
11827 # can be detected and how.
11828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11829 /* end confdefs.h. */
11830 #include <ac_nonexistent.h>
11831 _ACEOF
11832 if ac_fn_cxx_try_cpp "$LINENO"; then :
11833 # Broken: success on invalid input.
11834 continue
11835 else
11836 # Passes both tests.
11837 ac_preproc_ok=:
11838 break
11839 fi
11840 rm -f conftest.err conftest.$ac_ext
11841
11842 done
11843 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11844 rm -f conftest.err conftest.$ac_ext
11845 if $ac_preproc_ok; then :
11846
11847 else
11848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11850 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11851 See \`config.log' for more details." "$LINENO" 5; }
11852 fi
11853
11854 ac_ext=c
11855 ac_cpp='$CPP $CPPFLAGS'
11856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11859
11860 else
11861 _lt_caught_CXX_error=yes
11862 fi
11863
11864 ac_ext=cpp
11865 ac_cpp='$CXXCPP $CPPFLAGS'
11866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11869
11870 archive_cmds_need_lc_CXX=no
11871 allow_undefined_flag_CXX=
11872 always_export_symbols_CXX=no
11873 archive_expsym_cmds_CXX=
11874 compiler_needs_object_CXX=no
11875 export_dynamic_flag_spec_CXX=
11876 hardcode_direct_CXX=no
11877 hardcode_direct_absolute_CXX=no
11878 hardcode_libdir_flag_spec_CXX=
11879 hardcode_libdir_flag_spec_ld_CXX=
11880 hardcode_libdir_separator_CXX=
11881 hardcode_minus_L_CXX=no
11882 hardcode_shlibpath_var_CXX=unsupported
11883 hardcode_automatic_CXX=no
11884 inherit_rpath_CXX=no
11885 module_cmds_CXX=
11886 module_expsym_cmds_CXX=
11887 link_all_deplibs_CXX=unknown
11888 old_archive_cmds_CXX=$old_archive_cmds
11889 reload_flag_CXX=$reload_flag
11890 reload_cmds_CXX=$reload_cmds
11891 no_undefined_flag_CXX=
11892 whole_archive_flag_spec_CXX=
11893 enable_shared_with_static_runtimes_CXX=no
11894
11895 # Source file extension for C++ test sources.
11896 ac_ext=cpp
11897
11898 # Object file extension for compiled C++ test sources.
11899 objext=o
11900 objext_CXX=$objext
11901
11902 # No sense in running all these tests if we already determined that
11903 # the CXX compiler isn't working. Some variables (like enable_shared)
11904 # are currently assumed to apply to all compilers on this platform,
11905 # and will be corrupted by setting them based on a non-working compiler.
11906 if test "$_lt_caught_CXX_error" != yes; then
11907 # Code to be used in simple compile tests
11908 lt_simple_compile_test_code="int some_variable = 0;"
11909
11910 # Code to be used in simple link tests
11911 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11912
11913 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11914
11915
11916
11917
11918
11919
11920 # If no C compiler was specified, use CC.
11921 LTCC=${LTCC-"$CC"}
11922
11923 # If no C compiler flags were specified, use CFLAGS.
11924 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11925
11926 # Allow CC to be a program name with arguments.
11927 compiler=$CC
11928
11929
11930 # save warnings/boilerplate of simple test code
11931 ac_outfile=conftest.$ac_objext
11932 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11933 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11934 _lt_compiler_boilerplate=`cat conftest.err`
11935 $RM conftest*
11936
11937 ac_outfile=conftest.$ac_objext
11938 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11939 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11940 _lt_linker_boilerplate=`cat conftest.err`
11941 $RM -r conftest*
11942
11943
11944 # Allow CC to be a program name with arguments.
11945 lt_save_CC=$CC
11946 lt_save_LD=$LD
11947 lt_save_GCC=$GCC
11948 GCC=$GXX
11949 lt_save_with_gnu_ld=$with_gnu_ld
11950 lt_save_path_LD=$lt_cv_path_LD
11951 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11952 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11953 else
11954 $as_unset lt_cv_prog_gnu_ld
11955 fi
11956 if test -n "${lt_cv_path_LDCXX+set}"; then
11957 lt_cv_path_LD=$lt_cv_path_LDCXX
11958 else
11959 $as_unset lt_cv_path_LD
11960 fi
11961 test -z "${LDCXX+set}" || LD=$LDCXX
11962 CC=${CXX-"c++"}
11963 compiler=$CC
11964 compiler_CXX=$CC
11965 for cc_temp in $compiler""; do
11966 case $cc_temp in
11967 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11968 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11969 \-*) ;;
11970 *) break;;
11971 esac
11972 done
11973 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11974
11975
11976 if test -n "$compiler"; then
11977 # We don't want -fno-exception when compiling C++ code, so set the
11978 # no_builtin_flag separately
11979 if test "$GXX" = yes; then
11980 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11981 else
11982 lt_prog_compiler_no_builtin_flag_CXX=
11983 fi
11984
11985 if test "$GXX" = yes; then
11986 # Set up default GNU C++ configuration
11987
11988
11989
11990 # Check whether --with-gnu-ld was given.
11991 if test "${with_gnu_ld+set}" = set; then :
11992 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11993 else
11994 with_gnu_ld=no
11995 fi
11996
11997 ac_prog=ld
11998 if test "$GCC" = yes; then
11999 # Check if gcc -print-prog-name=ld gives a path.
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12001 $as_echo_n "checking for ld used by $CC... " >&6; }
12002 case $host in
12003 *-*-mingw*)
12004 # gcc leaves a trailing carriage return which upsets mingw
12005 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12006 *)
12007 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12008 esac
12009 case $ac_prog in
12010 # Accept absolute paths.
12011 [\\/]* | ?:[\\/]*)
12012 re_direlt='/[^/][^/]*/\.\./'
12013 # Canonicalize the pathname of ld
12014 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12015 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12016 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12017 done
12018 test -z "$LD" && LD="$ac_prog"
12019 ;;
12020 "")
12021 # If it fails, then pretend we aren't using GCC.
12022 ac_prog=ld
12023 ;;
12024 *)
12025 # If it is relative, then search for the first ld in PATH.
12026 with_gnu_ld=unknown
12027 ;;
12028 esac
12029 elif test "$with_gnu_ld" = yes; then
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12031 $as_echo_n "checking for GNU ld... " >&6; }
12032 else
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12034 $as_echo_n "checking for non-GNU ld... " >&6; }
12035 fi
12036 if test "${lt_cv_path_LD+set}" = set; then :
12037 $as_echo_n "(cached) " >&6
12038 else
12039 if test -z "$LD"; then
12040 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12041 for ac_dir in $PATH; do
12042 IFS="$lt_save_ifs"
12043 test -z "$ac_dir" && ac_dir=.
12044 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12045 lt_cv_path_LD="$ac_dir/$ac_prog"
12046 # Check to see if the program is GNU ld. I'd rather use --version,
12047 # but apparently some variants of GNU ld only accept -v.
12048 # Break only if it was the GNU/non-GNU ld that we prefer.
12049 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12050 *GNU* | *'with BFD'*)
12051 test "$with_gnu_ld" != no && break
12052 ;;
12053 *)
12054 test "$with_gnu_ld" != yes && break
12055 ;;
12056 esac
12057 fi
12058 done
12059 IFS="$lt_save_ifs"
12060 else
12061 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12062 fi
12063 fi
12064
12065 LD="$lt_cv_path_LD"
12066 if test -n "$LD"; then
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12068 $as_echo "$LD" >&6; }
12069 else
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12071 $as_echo "no" >&6; }
12072 fi
12073 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12075 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12076 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12077 $as_echo_n "(cached) " >&6
12078 else
12079 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12080 case `$LD -v 2>&1 </dev/null` in
12081 *GNU* | *'with BFD'*)
12082 lt_cv_prog_gnu_ld=yes
12083 ;;
12084 *)
12085 lt_cv_prog_gnu_ld=no
12086 ;;
12087 esac
12088 fi
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12090 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12091 with_gnu_ld=$lt_cv_prog_gnu_ld
12092
12093
12094
12095
12096
12097
12098
12099 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12100 # archiving commands below assume that GNU ld is being used.
12101 if test "$with_gnu_ld" = yes; then
12102 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12103 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'
12104
12105 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12106 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12107
12108 # If archive_cmds runs LD, not CC, wlarc should be empty
12109 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12110 # investigate it a little bit more. (MM)
12111 wlarc='${wl}'
12112
12113 # ancient GNU ld didn't support --whole-archive et. al.
12114 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12115 $GREP 'no-whole-archive' > /dev/null; then
12116 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12117 else
12118 whole_archive_flag_spec_CXX=
12119 fi
12120 else
12121 with_gnu_ld=no
12122 wlarc=
12123
12124 # A generic and very simple default shared library creation
12125 # command for GNU C++ for the case where it uses the native
12126 # linker, instead of GNU ld. If possible, this setting should
12127 # overridden to take advantage of the native linker features on
12128 # the platform it is being used on.
12129 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12130 fi
12131
12132 # Commands to make compiler produce verbose output that lists
12133 # what "hidden" libraries, object files and flags are used when
12134 # linking a shared library.
12135 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12136
12137 else
12138 GXX=no
12139 with_gnu_ld=no
12140 wlarc=
12141 fi
12142
12143 # PORTME: fill in a description of your system's C++ link characteristics
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12145 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12146 ld_shlibs_CXX=yes
12147 case $host_os in
12148 aix3*)
12149 # FIXME: insert proper C++ library support
12150 ld_shlibs_CXX=no
12151 ;;
12152 aix[4-9]*)
12153 if test "$host_cpu" = ia64; then
12154 # On IA64, the linker does run time linking by default, so we don't
12155 # have to do anything special.
12156 aix_use_runtimelinking=no
12157 exp_sym_flag='-Bexport'
12158 no_entry_flag=""
12159 else
12160 aix_use_runtimelinking=no
12161
12162 # Test if we are trying to use run time linking or normal
12163 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12164 # need to do runtime linking.
12165 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12166 for ld_flag in $LDFLAGS; do
12167 case $ld_flag in
12168 *-brtl*)
12169 aix_use_runtimelinking=yes
12170 break
12171 ;;
12172 esac
12173 done
12174 ;;
12175 esac
12176
12177 exp_sym_flag='-bexport'
12178 no_entry_flag='-bnoentry'
12179 fi
12180
12181 # When large executables or shared objects are built, AIX ld can
12182 # have problems creating the table of contents. If linking a library
12183 # or program results in "error TOC overflow" add -mminimal-toc to
12184 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12185 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12186
12187 archive_cmds_CXX=''
12188 hardcode_direct_CXX=yes
12189 hardcode_direct_absolute_CXX=yes
12190 hardcode_libdir_separator_CXX=':'
12191 link_all_deplibs_CXX=yes
12192 file_list_spec_CXX='${wl}-f,'
12193
12194 if test "$GXX" = yes; then
12195 case $host_os in aix4.[012]|aix4.[012].*)
12196 # We only want to do this on AIX 4.2 and lower, the check
12197 # below for broken collect2 doesn't work under 4.3+
12198 collect2name=`${CC} -print-prog-name=collect2`
12199 if test -f "$collect2name" &&
12200 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12201 then
12202 # We have reworked collect2
12203 :
12204 else
12205 # We have old collect2
12206 hardcode_direct_CXX=unsupported
12207 # It fails to find uninstalled libraries when the uninstalled
12208 # path is not listed in the libpath. Setting hardcode_minus_L
12209 # to unsupported forces relinking
12210 hardcode_minus_L_CXX=yes
12211 hardcode_libdir_flag_spec_CXX='-L$libdir'
12212 hardcode_libdir_separator_CXX=
12213 fi
12214 esac
12215 shared_flag='-shared'
12216 if test "$aix_use_runtimelinking" = yes; then
12217 shared_flag="$shared_flag "'${wl}-G'
12218 fi
12219 else
12220 # not using gcc
12221 if test "$host_cpu" = ia64; then
12222 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12223 # chokes on -Wl,-G. The following line is correct:
12224 shared_flag='-G'
12225 else
12226 if test "$aix_use_runtimelinking" = yes; then
12227 shared_flag='${wl}-G'
12228 else
12229 shared_flag='${wl}-bM:SRE'
12230 fi
12231 fi
12232 fi
12233
12234 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12235 # It seems that -bexpall does not export symbols beginning with
12236 # underscore (_), so it is better to generate a list of symbols to
12237 # export.
12238 always_export_symbols_CXX=yes
12239 if test "$aix_use_runtimelinking" = yes; then
12240 # Warning - without using the other runtime loading flags (-brtl),
12241 # -berok will link without error, but may produce a broken library.
12242 allow_undefined_flag_CXX='-berok'
12243 # Determine the default libpath from the value encoded in an empty
12244 # executable.
12245 if test x$gcc_no_link = xyes; then
12246 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12247 fi
12248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12249 /* end confdefs.h. */
12250
12251 int
12252 main ()
12253 {
12254
12255 ;
12256 return 0;
12257 }
12258 _ACEOF
12259 if ac_fn_cxx_try_link "$LINENO"; then :
12260
12261 lt_aix_libpath_sed='
12262 /Import File Strings/,/^$/ {
12263 /^0/ {
12264 s/^0 *\(.*\)$/\1/
12265 p
12266 }
12267 }'
12268 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12269 # Check for a 64-bit object if we didn't find anything.
12270 if test -z "$aix_libpath"; then
12271 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12272 fi
12273 fi
12274 rm -f core conftest.err conftest.$ac_objext \
12275 conftest$ac_exeext conftest.$ac_ext
12276 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12277
12278 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12279
12280 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"
12281 else
12282 if test "$host_cpu" = ia64; then
12283 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12284 allow_undefined_flag_CXX="-z nodefs"
12285 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"
12286 else
12287 # Determine the default libpath from the value encoded in an
12288 # empty executable.
12289 if test x$gcc_no_link = xyes; then
12290 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12291 fi
12292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12293 /* end confdefs.h. */
12294
12295 int
12296 main ()
12297 {
12298
12299 ;
12300 return 0;
12301 }
12302 _ACEOF
12303 if ac_fn_cxx_try_link "$LINENO"; then :
12304
12305 lt_aix_libpath_sed='
12306 /Import File Strings/,/^$/ {
12307 /^0/ {
12308 s/^0 *\(.*\)$/\1/
12309 p
12310 }
12311 }'
12312 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12313 # Check for a 64-bit object if we didn't find anything.
12314 if test -z "$aix_libpath"; then
12315 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12316 fi
12317 fi
12318 rm -f core conftest.err conftest.$ac_objext \
12319 conftest$ac_exeext conftest.$ac_ext
12320 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12321
12322 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12323 # Warning - without using the other run time loading flags,
12324 # -berok will link without error, but may produce a broken library.
12325 no_undefined_flag_CXX=' ${wl}-bernotok'
12326 allow_undefined_flag_CXX=' ${wl}-berok'
12327 if test "$with_gnu_ld" = yes; then
12328 # We only use this code for GNU lds that support --whole-archive.
12329 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12330 else
12331 # Exported symbols can be pulled into shared objects from archives
12332 whole_archive_flag_spec_CXX='$convenience'
12333 fi
12334 archive_cmds_need_lc_CXX=yes
12335 # This is similar to how AIX traditionally builds its shared
12336 # libraries.
12337 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'
12338 fi
12339 fi
12340 ;;
12341
12342 beos*)
12343 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12344 allow_undefined_flag_CXX=unsupported
12345 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12346 # support --undefined. This deserves some investigation. FIXME
12347 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12348 else
12349 ld_shlibs_CXX=no
12350 fi
12351 ;;
12352
12353 chorus*)
12354 case $cc_basename in
12355 *)
12356 # FIXME: insert proper C++ library support
12357 ld_shlibs_CXX=no
12358 ;;
12359 esac
12360 ;;
12361
12362 cygwin* | mingw* | pw32* | cegcc*)
12363 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12364 # as there is no search path for DLLs.
12365 hardcode_libdir_flag_spec_CXX='-L$libdir'
12366 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12367 allow_undefined_flag_CXX=unsupported
12368 always_export_symbols_CXX=no
12369 enable_shared_with_static_runtimes_CXX=yes
12370
12371 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12372 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'
12373 # If the export-symbols file already is a .def file (1st line
12374 # is EXPORTS), use it as is; otherwise, prepend...
12375 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12376 cp $export_symbols $output_objdir/$soname.def;
12377 else
12378 echo EXPORTS > $output_objdir/$soname.def;
12379 cat $export_symbols >> $output_objdir/$soname.def;
12380 fi~
12381 $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'
12382 else
12383 ld_shlibs_CXX=no
12384 fi
12385 ;;
12386 darwin* | rhapsody*)
12387
12388
12389 archive_cmds_need_lc_CXX=no
12390 hardcode_direct_CXX=no
12391 hardcode_automatic_CXX=yes
12392 hardcode_shlibpath_var_CXX=unsupported
12393 if test "$lt_cv_ld_force_load" = "yes"; then
12394 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\"`'
12395 else
12396 whole_archive_flag_spec_CXX=''
12397 fi
12398 link_all_deplibs_CXX=yes
12399 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12400 case $cc_basename in
12401 ifort*) _lt_dar_can_shared=yes ;;
12402 *) _lt_dar_can_shared=$GCC ;;
12403 esac
12404 if test "$_lt_dar_can_shared" = "yes"; then
12405 output_verbose_link_cmd=func_echo_all
12406 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}"
12407 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12408 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}"
12409 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}"
12410 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12411 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}"
12412 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}"
12413 fi
12414
12415 else
12416 ld_shlibs_CXX=no
12417 fi
12418
12419 ;;
12420
12421 dgux*)
12422 case $cc_basename in
12423 ec++*)
12424 # FIXME: insert proper C++ library support
12425 ld_shlibs_CXX=no
12426 ;;
12427 ghcx*)
12428 # Green Hills C++ Compiler
12429 # FIXME: insert proper C++ library support
12430 ld_shlibs_CXX=no
12431 ;;
12432 *)
12433 # FIXME: insert proper C++ library support
12434 ld_shlibs_CXX=no
12435 ;;
12436 esac
12437 ;;
12438
12439 freebsd[12]*)
12440 # C++ shared libraries reported to be fairly broken before
12441 # switch to ELF
12442 ld_shlibs_CXX=no
12443 ;;
12444
12445 freebsd-elf*)
12446 archive_cmds_need_lc_CXX=no
12447 ;;
12448
12449 freebsd* | dragonfly*)
12450 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12451 # conventions
12452 ld_shlibs_CXX=yes
12453 ;;
12454
12455 gnu*)
12456 ;;
12457
12458 haiku*)
12459 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12460 link_all_deplibs_CXX=yes
12461 ;;
12462
12463 hpux9*)
12464 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12465 hardcode_libdir_separator_CXX=:
12466 export_dynamic_flag_spec_CXX='${wl}-E'
12467 hardcode_direct_CXX=yes
12468 hardcode_minus_L_CXX=yes # Not in the search PATH,
12469 # but as the default
12470 # location of the library.
12471
12472 case $cc_basename in
12473 CC*)
12474 # FIXME: insert proper C++ library support
12475 ld_shlibs_CXX=no
12476 ;;
12477 aCC*)
12478 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'
12479 # Commands to make compiler produce verbose output that lists
12480 # what "hidden" libraries, object files and flags are used when
12481 # linking a shared library.
12482 #
12483 # There doesn't appear to be a way to prevent this compiler from
12484 # explicitly linking system object files so we need to strip them
12485 # from the output so that they don't get included in the library
12486 # dependencies.
12487 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"'
12488 ;;
12489 *)
12490 if test "$GXX" = yes; then
12491 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'
12492 else
12493 # FIXME: insert proper C++ library support
12494 ld_shlibs_CXX=no
12495 fi
12496 ;;
12497 esac
12498 ;;
12499
12500 hpux10*|hpux11*)
12501 if test $with_gnu_ld = no; then
12502 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12503 hardcode_libdir_separator_CXX=:
12504
12505 case $host_cpu in
12506 hppa*64*|ia64*)
12507 ;;
12508 *)
12509 export_dynamic_flag_spec_CXX='${wl}-E'
12510 ;;
12511 esac
12512 fi
12513 case $host_cpu in
12514 hppa*64*|ia64*)
12515 hardcode_direct_CXX=no
12516 hardcode_shlibpath_var_CXX=no
12517 ;;
12518 *)
12519 hardcode_direct_CXX=yes
12520 hardcode_direct_absolute_CXX=yes
12521 hardcode_minus_L_CXX=yes # Not in the search PATH,
12522 # but as the default
12523 # location of the library.
12524 ;;
12525 esac
12526
12527 case $cc_basename in
12528 CC*)
12529 # FIXME: insert proper C++ library support
12530 ld_shlibs_CXX=no
12531 ;;
12532 aCC*)
12533 case $host_cpu in
12534 hppa*64*)
12535 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12536 ;;
12537 ia64*)
12538 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12539 ;;
12540 *)
12541 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12542 ;;
12543 esac
12544 # Commands to make compiler produce verbose output that lists
12545 # what "hidden" libraries, object files and flags are used when
12546 # linking a shared library.
12547 #
12548 # There doesn't appear to be a way to prevent this compiler from
12549 # explicitly linking system object files so we need to strip them
12550 # from the output so that they don't get included in the library
12551 # dependencies.
12552 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"'
12553 ;;
12554 *)
12555 if test "$GXX" = yes; then
12556 if test $with_gnu_ld = no; then
12557 case $host_cpu in
12558 hppa*64*)
12559 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12560 ;;
12561 ia64*)
12562 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12563 ;;
12564 *)
12565 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'
12566 ;;
12567 esac
12568 fi
12569 else
12570 # FIXME: insert proper C++ library support
12571 ld_shlibs_CXX=no
12572 fi
12573 ;;
12574 esac
12575 ;;
12576
12577 interix[3-9]*)
12578 hardcode_direct_CXX=no
12579 hardcode_shlibpath_var_CXX=no
12580 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12581 export_dynamic_flag_spec_CXX='${wl}-E'
12582 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12583 # Instead, shared libraries are loaded at an image base (0x10000000 by
12584 # default) and relocated if they conflict, which is a slow very memory
12585 # consuming and fragmenting process. To avoid this, we pick a random,
12586 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12587 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12588 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'
12589 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'
12590 ;;
12591 irix5* | irix6*)
12592 case $cc_basename in
12593 CC*)
12594 # SGI C++
12595 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'
12596
12597 # Archives containing C++ object files must be created using
12598 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12599 # necessary to make sure instantiated templates are included
12600 # in the archive.
12601 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12602 ;;
12603 *)
12604 if test "$GXX" = yes; then
12605 if test "$with_gnu_ld" = no; then
12606 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'
12607 else
12608 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'
12609 fi
12610 fi
12611 link_all_deplibs_CXX=yes
12612 ;;
12613 esac
12614 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12615 hardcode_libdir_separator_CXX=:
12616 inherit_rpath_CXX=yes
12617 ;;
12618
12619 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12620 case $cc_basename in
12621 KCC*)
12622 # Kuck and Associates, Inc. (KAI) C++ Compiler
12623
12624 # KCC will only create a shared library if the output file
12625 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12626 # to its proper name (with version) after linking.
12627 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'
12628 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'
12629 # Commands to make compiler produce verbose output that lists
12630 # what "hidden" libraries, object files and flags are used when
12631 # linking a shared library.
12632 #
12633 # There doesn't appear to be a way to prevent this compiler from
12634 # explicitly linking system object files so we need to strip them
12635 # from the output so that they don't get included in the library
12636 # dependencies.
12637 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"'
12638
12639 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12640 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12641
12642 # Archives containing C++ object files must be created using
12643 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12644 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12645 ;;
12646 icpc* | ecpc* )
12647 # Intel C++
12648 with_gnu_ld=yes
12649 # version 8.0 and above of icpc choke on multiply defined symbols
12650 # if we add $predep_objects and $postdep_objects, however 7.1 and
12651 # earlier do not add the objects themselves.
12652 case `$CC -V 2>&1` in
12653 *"Version 7."*)
12654 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12655 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'
12656 ;;
12657 *) # Version 8.0 or newer
12658 tmp_idyn=
12659 case $host_cpu in
12660 ia64*) tmp_idyn=' -i_dynamic';;
12661 esac
12662 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12663 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'
12664 ;;
12665 esac
12666 archive_cmds_need_lc_CXX=no
12667 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12668 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12669 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12670 ;;
12671 pgCC* | pgcpp*)
12672 # Portland Group C++ compiler
12673 case `$CC -V` in
12674 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12675 prelink_cmds_CXX='tpldir=Template.dir~
12676 rm -rf $tpldir~
12677 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12678 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12679 old_archive_cmds_CXX='tpldir=Template.dir~
12680 rm -rf $tpldir~
12681 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12682 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12683 $RANLIB $oldlib'
12684 archive_cmds_CXX='tpldir=Template.dir~
12685 rm -rf $tpldir~
12686 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12687 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12688 archive_expsym_cmds_CXX='tpldir=Template.dir~
12689 rm -rf $tpldir~
12690 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12691 $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'
12692 ;;
12693 *) # Version 6 and above use weak symbols
12694 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12695 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'
12696 ;;
12697 esac
12698
12699 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12700 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12701 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'
12702 ;;
12703 cxx*)
12704 # Compaq C++
12705 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12706 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'
12707
12708 runpath_var=LD_RUN_PATH
12709 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12710 hardcode_libdir_separator_CXX=:
12711
12712 # Commands to make compiler produce verbose output that lists
12713 # what "hidden" libraries, object files and flags are used when
12714 # linking a shared library.
12715 #
12716 # There doesn't appear to be a way to prevent this compiler from
12717 # explicitly linking system object files so we need to strip them
12718 # from the output so that they don't get included in the library
12719 # dependencies.
12720 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'
12721 ;;
12722 xl* | mpixl* | bgxl*)
12723 # IBM XL 8.0 on PPC, with GNU ld
12724 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12725 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12726 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12727 if test "x$supports_anon_versioning" = xyes; then
12728 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12729 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12730 echo "local: *; };" >> $output_objdir/$libname.ver~
12731 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12732 fi
12733 ;;
12734 *)
12735 case `$CC -V 2>&1 | sed 5q` in
12736 *Sun\ C*)
12737 # Sun C++ 5.9
12738 no_undefined_flag_CXX=' -zdefs'
12739 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12740 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'
12741 hardcode_libdir_flag_spec_CXX='-R$libdir'
12742 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'
12743 compiler_needs_object_CXX=yes
12744
12745 # Not sure whether something based on
12746 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12747 # would be better.
12748 output_verbose_link_cmd='func_echo_all'
12749
12750 # Archives containing C++ object files must be created using
12751 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12752 # necessary to make sure instantiated templates are included
12753 # in the archive.
12754 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12755 ;;
12756 esac
12757 ;;
12758 esac
12759 ;;
12760
12761 lynxos*)
12762 # FIXME: insert proper C++ library support
12763 ld_shlibs_CXX=no
12764 ;;
12765
12766 m88k*)
12767 # FIXME: insert proper C++ library support
12768 ld_shlibs_CXX=no
12769 ;;
12770
12771 mvs*)
12772 case $cc_basename in
12773 cxx*)
12774 # FIXME: insert proper C++ library support
12775 ld_shlibs_CXX=no
12776 ;;
12777 *)
12778 # FIXME: insert proper C++ library support
12779 ld_shlibs_CXX=no
12780 ;;
12781 esac
12782 ;;
12783
12784 netbsd*)
12785 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12786 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12787 wlarc=
12788 hardcode_libdir_flag_spec_CXX='-R$libdir'
12789 hardcode_direct_CXX=yes
12790 hardcode_shlibpath_var_CXX=no
12791 fi
12792 # Workaround some broken pre-1.5 toolchains
12793 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12794 ;;
12795
12796 *nto* | *qnx*)
12797 ld_shlibs_CXX=yes
12798 ;;
12799
12800 openbsd2*)
12801 # C++ shared libraries are fairly broken
12802 ld_shlibs_CXX=no
12803 ;;
12804
12805 openbsd*)
12806 if test -f /usr/libexec/ld.so; then
12807 hardcode_direct_CXX=yes
12808 hardcode_shlibpath_var_CXX=no
12809 hardcode_direct_absolute_CXX=yes
12810 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12811 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12812 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12813 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12814 export_dynamic_flag_spec_CXX='${wl}-E'
12815 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12816 fi
12817 output_verbose_link_cmd=func_echo_all
12818 else
12819 ld_shlibs_CXX=no
12820 fi
12821 ;;
12822
12823 osf3* | osf4* | osf5*)
12824 case $cc_basename in
12825 KCC*)
12826 # Kuck and Associates, Inc. (KAI) C++ Compiler
12827
12828 # KCC will only create a shared library if the output file
12829 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12830 # to its proper name (with version) after linking.
12831 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'
12832
12833 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12834 hardcode_libdir_separator_CXX=:
12835
12836 # Archives containing C++ object files must be created using
12837 # the KAI C++ compiler.
12838 case $host in
12839 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12840 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12841 esac
12842 ;;
12843 RCC*)
12844 # Rational C++ 2.4.1
12845 # FIXME: insert proper C++ library support
12846 ld_shlibs_CXX=no
12847 ;;
12848 cxx*)
12849 case $host in
12850 osf3*)
12851 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12852 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'
12853 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12854 ;;
12855 *)
12856 allow_undefined_flag_CXX=' -expect_unresolved \*'
12857 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'
12858 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12859 echo "-hidden">> $lib.exp~
12860 $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~
12861 $RM $lib.exp'
12862 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12863 ;;
12864 esac
12865
12866 hardcode_libdir_separator_CXX=:
12867
12868 # Commands to make compiler produce verbose output that lists
12869 # what "hidden" libraries, object files and flags are used when
12870 # linking a shared library.
12871 #
12872 # There doesn't appear to be a way to prevent this compiler from
12873 # explicitly linking system object files so we need to strip them
12874 # from the output so that they don't get included in the library
12875 # dependencies.
12876 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"'
12877 ;;
12878 *)
12879 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12880 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12881 case $host in
12882 osf3*)
12883 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'
12884 ;;
12885 *)
12886 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'
12887 ;;
12888 esac
12889
12890 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12891 hardcode_libdir_separator_CXX=:
12892
12893 # Commands to make compiler produce verbose output that lists
12894 # what "hidden" libraries, object files and flags are used when
12895 # linking a shared library.
12896 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12897
12898 else
12899 # FIXME: insert proper C++ library support
12900 ld_shlibs_CXX=no
12901 fi
12902 ;;
12903 esac
12904 ;;
12905
12906 psos*)
12907 # FIXME: insert proper C++ library support
12908 ld_shlibs_CXX=no
12909 ;;
12910
12911 sunos4*)
12912 case $cc_basename in
12913 CC*)
12914 # Sun C++ 4.x
12915 # FIXME: insert proper C++ library support
12916 ld_shlibs_CXX=no
12917 ;;
12918 lcc*)
12919 # Lucid
12920 # FIXME: insert proper C++ library support
12921 ld_shlibs_CXX=no
12922 ;;
12923 *)
12924 # FIXME: insert proper C++ library support
12925 ld_shlibs_CXX=no
12926 ;;
12927 esac
12928 ;;
12929
12930 solaris*)
12931 case $cc_basename in
12932 CC*)
12933 # Sun C++ 4.2, 5.x and Centerline C++
12934 archive_cmds_need_lc_CXX=yes
12935 no_undefined_flag_CXX=' -zdefs'
12936 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12937 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12938 $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'
12939
12940 hardcode_libdir_flag_spec_CXX='-R$libdir'
12941 hardcode_shlibpath_var_CXX=no
12942 case $host_os in
12943 solaris2.[0-5] | solaris2.[0-5].*) ;;
12944 *)
12945 # The compiler driver will combine and reorder linker options,
12946 # but understands `-z linker_flag'.
12947 # Supported since Solaris 2.6 (maybe 2.5.1?)
12948 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12949 ;;
12950 esac
12951 link_all_deplibs_CXX=yes
12952
12953 output_verbose_link_cmd='func_echo_all'
12954
12955 # Archives containing C++ object files must be created using
12956 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12957 # necessary to make sure instantiated templates are included
12958 # in the archive.
12959 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12960 ;;
12961 gcx*)
12962 # Green Hills C++ Compiler
12963 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12964
12965 # The C++ compiler must be used to create the archive.
12966 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12967 ;;
12968 *)
12969 # GNU C++ compiler with Solaris linker
12970 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12971 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12972 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12973 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12974 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12975 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12976
12977 # Commands to make compiler produce verbose output that lists
12978 # what "hidden" libraries, object files and flags are used when
12979 # linking a shared library.
12980 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12981 else
12982 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12983 # platform.
12984 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12985 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12986 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12987
12988 # Commands to make compiler produce verbose output that lists
12989 # what "hidden" libraries, object files and flags are used when
12990 # linking a shared library.
12991 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12992 fi
12993
12994 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12995 case $host_os in
12996 solaris2.[0-5] | solaris2.[0-5].*) ;;
12997 *)
12998 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12999 ;;
13000 esac
13001 fi
13002 ;;
13003 esac
13004 ;;
13005
13006 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13007 no_undefined_flag_CXX='${wl}-z,text'
13008 archive_cmds_need_lc_CXX=no
13009 hardcode_shlibpath_var_CXX=no
13010 runpath_var='LD_RUN_PATH'
13011
13012 case $cc_basename in
13013 CC*)
13014 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13015 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13016 ;;
13017 *)
13018 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13019 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13020 ;;
13021 esac
13022 ;;
13023
13024 sysv5* | sco3.2v5* | sco5v6*)
13025 # Note: We can NOT use -z defs as we might desire, because we do not
13026 # link with -lc, and that would cause any symbols used from libc to
13027 # always be unresolved, which means just about no library would
13028 # ever link correctly. If we're not using GNU ld we use -z text
13029 # though, which does catch some bad symbols but isn't as heavy-handed
13030 # as -z defs.
13031 no_undefined_flag_CXX='${wl}-z,text'
13032 allow_undefined_flag_CXX='${wl}-z,nodefs'
13033 archive_cmds_need_lc_CXX=no
13034 hardcode_shlibpath_var_CXX=no
13035 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13036 hardcode_libdir_separator_CXX=':'
13037 link_all_deplibs_CXX=yes
13038 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13039 runpath_var='LD_RUN_PATH'
13040
13041 case $cc_basename in
13042 CC*)
13043 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13044 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13045 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13046 '"$old_archive_cmds_CXX"
13047 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13048 '"$reload_cmds_CXX"
13049 ;;
13050 *)
13051 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13052 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13053 ;;
13054 esac
13055 ;;
13056
13057 tandem*)
13058 case $cc_basename in
13059 NCC*)
13060 # NonStop-UX NCC 3.20
13061 # FIXME: insert proper C++ library support
13062 ld_shlibs_CXX=no
13063 ;;
13064 *)
13065 # FIXME: insert proper C++ library support
13066 ld_shlibs_CXX=no
13067 ;;
13068 esac
13069 ;;
13070
13071 vxworks*)
13072 # FIXME: insert proper C++ library support
13073 ld_shlibs_CXX=no
13074 ;;
13075
13076 *)
13077 # FIXME: insert proper C++ library support
13078 ld_shlibs_CXX=no
13079 ;;
13080 esac
13081
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13083 $as_echo "$ld_shlibs_CXX" >&6; }
13084 test "$ld_shlibs_CXX" = no && can_build_shared=no
13085
13086 GCC_CXX="$GXX"
13087 LD_CXX="$LD"
13088
13089 ## CAVEAT EMPTOR:
13090 ## There is no encapsulation within the following macros, do not change
13091 ## the running order or otherwise move them around unless you know exactly
13092 ## what you are doing...
13093 # Dependencies to place before and after the object being linked:
13094 predep_objects_CXX=
13095 postdep_objects_CXX=
13096 predeps_CXX=
13097 postdeps_CXX=
13098 compiler_lib_search_path_CXX=
13099
13100 cat > conftest.$ac_ext <<_LT_EOF
13101 class Foo
13102 {
13103 public:
13104 Foo (void) { a = 0; }
13105 private:
13106 int a;
13107 };
13108 _LT_EOF
13109
13110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13111 (eval $ac_compile) 2>&5
13112 ac_status=$?
13113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13114 test $ac_status = 0; }; then
13115 # Parse the compiler output and extract the necessary
13116 # objects, libraries and library flags.
13117
13118 # Sentinel used to keep track of whether or not we are before
13119 # the conftest object file.
13120 pre_test_object_deps_done=no
13121
13122 for p in `eval "$output_verbose_link_cmd"`; do
13123 case $p in
13124
13125 -L* | -R* | -l*)
13126 # Some compilers place space between "-{L,R}" and the path.
13127 # Remove the space.
13128 if test $p = "-L" ||
13129 test $p = "-R"; then
13130 prev=$p
13131 continue
13132 else
13133 prev=
13134 fi
13135
13136 if test "$pre_test_object_deps_done" = no; then
13137 case $p in
13138 -L* | -R*)
13139 # Internal compiler library paths should come after those
13140 # provided the user. The postdeps already come after the
13141 # user supplied libs so there is no need to process them.
13142 if test -z "$compiler_lib_search_path_CXX"; then
13143 compiler_lib_search_path_CXX="${prev}${p}"
13144 else
13145 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13146 fi
13147 ;;
13148 # The "-l" case would never come before the object being
13149 # linked, so don't bother handling this case.
13150 esac
13151 else
13152 if test -z "$postdeps_CXX"; then
13153 postdeps_CXX="${prev}${p}"
13154 else
13155 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13156 fi
13157 fi
13158 ;;
13159
13160 *.$objext)
13161 # This assumes that the test object file only shows up
13162 # once in the compiler output.
13163 if test "$p" = "conftest.$objext"; then
13164 pre_test_object_deps_done=yes
13165 continue
13166 fi
13167
13168 if test "$pre_test_object_deps_done" = no; then
13169 if test -z "$predep_objects_CXX"; then
13170 predep_objects_CXX="$p"
13171 else
13172 predep_objects_CXX="$predep_objects_CXX $p"
13173 fi
13174 else
13175 if test -z "$postdep_objects_CXX"; then
13176 postdep_objects_CXX="$p"
13177 else
13178 postdep_objects_CXX="$postdep_objects_CXX $p"
13179 fi
13180 fi
13181 ;;
13182
13183 *) ;; # Ignore the rest.
13184
13185 esac
13186 done
13187
13188 # Clean up.
13189 rm -f a.out a.exe
13190 else
13191 echo "libtool.m4: error: problem compiling CXX test program"
13192 fi
13193
13194 $RM -f confest.$objext
13195
13196 # PORTME: override above test on systems where it is broken
13197 case $host_os in
13198 interix[3-9]*)
13199 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13200 # hack all around it, let's just trust "g++" to DTRT.
13201 predep_objects_CXX=
13202 postdep_objects_CXX=
13203 postdeps_CXX=
13204 ;;
13205
13206 linux*)
13207 case `$CC -V 2>&1 | sed 5q` in
13208 *Sun\ C*)
13209 # Sun C++ 5.9
13210
13211 # The more standards-conforming stlport4 library is
13212 # incompatible with the Cstd library. Avoid specifying
13213 # it if it's in CXXFLAGS. Ignore libCrun as
13214 # -library=stlport4 depends on it.
13215 case " $CXX $CXXFLAGS " in
13216 *" -library=stlport4 "*)
13217 solaris_use_stlport4=yes
13218 ;;
13219 esac
13220
13221 if test "$solaris_use_stlport4" != yes; then
13222 postdeps_CXX='-library=Cstd -library=Crun'
13223 fi
13224 ;;
13225 esac
13226 ;;
13227
13228 solaris*)
13229 case $cc_basename in
13230 CC*)
13231 # The more standards-conforming stlport4 library is
13232 # incompatible with the Cstd library. Avoid specifying
13233 # it if it's in CXXFLAGS. Ignore libCrun as
13234 # -library=stlport4 depends on it.
13235 case " $CXX $CXXFLAGS " in
13236 *" -library=stlport4 "*)
13237 solaris_use_stlport4=yes
13238 ;;
13239 esac
13240
13241 # Adding this requires a known-good setup of shared libraries for
13242 # Sun compiler versions before 5.6, else PIC objects from an old
13243 # archive will be linked into the output, leading to subtle bugs.
13244 if test "$solaris_use_stlport4" != yes; then
13245 postdeps_CXX='-library=Cstd -library=Crun'
13246 fi
13247 ;;
13248 esac
13249 ;;
13250 esac
13251
13252
13253 case " $postdeps_CXX " in
13254 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13255 esac
13256 compiler_lib_search_dirs_CXX=
13257 if test -n "${compiler_lib_search_path_CXX}"; then
13258 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13259 fi
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291 lt_prog_compiler_wl_CXX=
13292 lt_prog_compiler_pic_CXX=
13293 lt_prog_compiler_static_CXX=
13294
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13296 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13297
13298 # C++ specific cases for pic, static, wl, etc.
13299 if test "$GXX" = yes; then
13300 lt_prog_compiler_wl_CXX='-Wl,'
13301 lt_prog_compiler_static_CXX='-static'
13302
13303 case $host_os in
13304 aix*)
13305 # All AIX code is PIC.
13306 if test "$host_cpu" = ia64; then
13307 # AIX 5 now supports IA64 processor
13308 lt_prog_compiler_static_CXX='-Bstatic'
13309 fi
13310 ;;
13311
13312 amigaos*)
13313 case $host_cpu in
13314 powerpc)
13315 # see comment about AmigaOS4 .so support
13316 lt_prog_compiler_pic_CXX='-fPIC'
13317 ;;
13318 m68k)
13319 # FIXME: we need at least 68020 code to build shared libraries, but
13320 # adding the `-m68020' flag to GCC prevents building anything better,
13321 # like `-m68040'.
13322 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13323 ;;
13324 esac
13325 ;;
13326
13327 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13328 # PIC is the default for these OSes.
13329 ;;
13330 mingw* | cygwin* | os2* | pw32* | cegcc*)
13331 # This hack is so that the source file can tell whether it is being
13332 # built for inclusion in a dll (and should export symbols for example).
13333 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13334 # (--disable-auto-import) libraries
13335 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13336 ;;
13337 darwin* | rhapsody*)
13338 # PIC is the default on this platform
13339 # Common symbols not allowed in MH_DYLIB files
13340 lt_prog_compiler_pic_CXX='-fno-common'
13341 ;;
13342 *djgpp*)
13343 # DJGPP does not support shared libraries at all
13344 lt_prog_compiler_pic_CXX=
13345 ;;
13346 haiku*)
13347 # PIC is the default for Haiku.
13348 # The "-static" flag exists, but is broken.
13349 lt_prog_compiler_static_CXX=
13350 ;;
13351 interix[3-9]*)
13352 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13353 # Instead, we relocate shared libraries at runtime.
13354 ;;
13355 sysv4*MP*)
13356 if test -d /usr/nec; then
13357 lt_prog_compiler_pic_CXX=-Kconform_pic
13358 fi
13359 ;;
13360 hpux*)
13361 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13362 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13363 # sets the default TLS model and affects inlining.
13364 case $host_cpu in
13365 hppa*64*)
13366 ;;
13367 *)
13368 lt_prog_compiler_pic_CXX='-fPIC'
13369 ;;
13370 esac
13371 ;;
13372 *qnx* | *nto*)
13373 # QNX uses GNU C++, but need to define -shared option too, otherwise
13374 # it will coredump.
13375 lt_prog_compiler_pic_CXX='-fPIC -shared'
13376 ;;
13377 *)
13378 lt_prog_compiler_pic_CXX='-fPIC'
13379 ;;
13380 esac
13381 else
13382 case $host_os in
13383 aix[4-9]*)
13384 # All AIX code is PIC.
13385 if test "$host_cpu" = ia64; then
13386 # AIX 5 now supports IA64 processor
13387 lt_prog_compiler_static_CXX='-Bstatic'
13388 else
13389 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13390 fi
13391 ;;
13392 chorus*)
13393 case $cc_basename in
13394 cxch68*)
13395 # Green Hills C++ Compiler
13396 # _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"
13397 ;;
13398 esac
13399 ;;
13400 dgux*)
13401 case $cc_basename in
13402 ec++*)
13403 lt_prog_compiler_pic_CXX='-KPIC'
13404 ;;
13405 ghcx*)
13406 # Green Hills C++ Compiler
13407 lt_prog_compiler_pic_CXX='-pic'
13408 ;;
13409 *)
13410 ;;
13411 esac
13412 ;;
13413 freebsd* | dragonfly*)
13414 # FreeBSD uses GNU C++
13415 ;;
13416 hpux9* | hpux10* | hpux11*)
13417 case $cc_basename in
13418 CC*)
13419 lt_prog_compiler_wl_CXX='-Wl,'
13420 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13421 if test "$host_cpu" != ia64; then
13422 lt_prog_compiler_pic_CXX='+Z'
13423 fi
13424 ;;
13425 aCC*)
13426 lt_prog_compiler_wl_CXX='-Wl,'
13427 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13428 case $host_cpu in
13429 hppa*64*|ia64*)
13430 # +Z the default
13431 ;;
13432 *)
13433 lt_prog_compiler_pic_CXX='+Z'
13434 ;;
13435 esac
13436 ;;
13437 *)
13438 ;;
13439 esac
13440 ;;
13441 interix*)
13442 # This is c89, which is MS Visual C++ (no shared libs)
13443 # Anyone wants to do a port?
13444 ;;
13445 irix5* | irix6* | nonstopux*)
13446 case $cc_basename in
13447 CC*)
13448 lt_prog_compiler_wl_CXX='-Wl,'
13449 lt_prog_compiler_static_CXX='-non_shared'
13450 # CC pic flag -KPIC is the default.
13451 ;;
13452 *)
13453 ;;
13454 esac
13455 ;;
13456 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13457 case $cc_basename in
13458 KCC*)
13459 # KAI C++ Compiler
13460 lt_prog_compiler_wl_CXX='--backend -Wl,'
13461 lt_prog_compiler_pic_CXX='-fPIC'
13462 ;;
13463 ecpc* )
13464 # old Intel C++ for x86_64 which still supported -KPIC.
13465 lt_prog_compiler_wl_CXX='-Wl,'
13466 lt_prog_compiler_pic_CXX='-KPIC'
13467 lt_prog_compiler_static_CXX='-static'
13468 ;;
13469 icpc* )
13470 # Intel C++, used to be incompatible with GCC.
13471 # ICC 10 doesn't accept -KPIC any more.
13472 lt_prog_compiler_wl_CXX='-Wl,'
13473 lt_prog_compiler_pic_CXX='-fPIC'
13474 lt_prog_compiler_static_CXX='-static'
13475 ;;
13476 pgCC* | pgcpp*)
13477 # Portland Group C++ compiler
13478 lt_prog_compiler_wl_CXX='-Wl,'
13479 lt_prog_compiler_pic_CXX='-fpic'
13480 lt_prog_compiler_static_CXX='-Bstatic'
13481 ;;
13482 cxx*)
13483 # Compaq C++
13484 # Make sure the PIC flag is empty. It appears that all Alpha
13485 # Linux and Compaq Tru64 Unix objects are PIC.
13486 lt_prog_compiler_pic_CXX=
13487 lt_prog_compiler_static_CXX='-non_shared'
13488 ;;
13489 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13490 # IBM XL 8.0, 9.0 on PPC and BlueGene
13491 lt_prog_compiler_wl_CXX='-Wl,'
13492 lt_prog_compiler_pic_CXX='-qpic'
13493 lt_prog_compiler_static_CXX='-qstaticlink'
13494 ;;
13495 *)
13496 case `$CC -V 2>&1 | sed 5q` in
13497 *Sun\ C*)
13498 # Sun C++ 5.9
13499 lt_prog_compiler_pic_CXX='-KPIC'
13500 lt_prog_compiler_static_CXX='-Bstatic'
13501 lt_prog_compiler_wl_CXX='-Qoption ld '
13502 ;;
13503 esac
13504 ;;
13505 esac
13506 ;;
13507 lynxos*)
13508 ;;
13509 m88k*)
13510 ;;
13511 mvs*)
13512 case $cc_basename in
13513 cxx*)
13514 lt_prog_compiler_pic_CXX='-W c,exportall'
13515 ;;
13516 *)
13517 ;;
13518 esac
13519 ;;
13520 netbsd*)
13521 ;;
13522 *qnx* | *nto*)
13523 # QNX uses GNU C++, but need to define -shared option too, otherwise
13524 # it will coredump.
13525 lt_prog_compiler_pic_CXX='-fPIC -shared'
13526 ;;
13527 osf3* | osf4* | osf5*)
13528 case $cc_basename in
13529 KCC*)
13530 lt_prog_compiler_wl_CXX='--backend -Wl,'
13531 ;;
13532 RCC*)
13533 # Rational C++ 2.4.1
13534 lt_prog_compiler_pic_CXX='-pic'
13535 ;;
13536 cxx*)
13537 # Digital/Compaq C++
13538 lt_prog_compiler_wl_CXX='-Wl,'
13539 # Make sure the PIC flag is empty. It appears that all Alpha
13540 # Linux and Compaq Tru64 Unix objects are PIC.
13541 lt_prog_compiler_pic_CXX=
13542 lt_prog_compiler_static_CXX='-non_shared'
13543 ;;
13544 *)
13545 ;;
13546 esac
13547 ;;
13548 psos*)
13549 ;;
13550 solaris*)
13551 case $cc_basename in
13552 CC*)
13553 # Sun C++ 4.2, 5.x and Centerline C++
13554 lt_prog_compiler_pic_CXX='-KPIC'
13555 lt_prog_compiler_static_CXX='-Bstatic'
13556 lt_prog_compiler_wl_CXX='-Qoption ld '
13557 ;;
13558 gcx*)
13559 # Green Hills C++ Compiler
13560 lt_prog_compiler_pic_CXX='-PIC'
13561 ;;
13562 *)
13563 ;;
13564 esac
13565 ;;
13566 sunos4*)
13567 case $cc_basename in
13568 CC*)
13569 # Sun C++ 4.x
13570 lt_prog_compiler_pic_CXX='-pic'
13571 lt_prog_compiler_static_CXX='-Bstatic'
13572 ;;
13573 lcc*)
13574 # Lucid
13575 lt_prog_compiler_pic_CXX='-pic'
13576 ;;
13577 *)
13578 ;;
13579 esac
13580 ;;
13581 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13582 case $cc_basename in
13583 CC*)
13584 lt_prog_compiler_wl_CXX='-Wl,'
13585 lt_prog_compiler_pic_CXX='-KPIC'
13586 lt_prog_compiler_static_CXX='-Bstatic'
13587 ;;
13588 esac
13589 ;;
13590 tandem*)
13591 case $cc_basename in
13592 NCC*)
13593 # NonStop-UX NCC 3.20
13594 lt_prog_compiler_pic_CXX='-KPIC'
13595 ;;
13596 *)
13597 ;;
13598 esac
13599 ;;
13600 vxworks*)
13601 ;;
13602 *)
13603 lt_prog_compiler_can_build_shared_CXX=no
13604 ;;
13605 esac
13606 fi
13607
13608 case $host_os in
13609 # For platforms which do not support PIC, -DPIC is meaningless:
13610 *djgpp*)
13611 lt_prog_compiler_pic_CXX=
13612 ;;
13613 *)
13614 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13615 ;;
13616 esac
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13618 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13619
13620
13621
13622 #
13623 # Check to make sure the PIC flag actually works.
13624 #
13625 if test -n "$lt_prog_compiler_pic_CXX"; then
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13627 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13628 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13629 $as_echo_n "(cached) " >&6
13630 else
13631 lt_cv_prog_compiler_pic_works_CXX=no
13632 ac_outfile=conftest.$ac_objext
13633 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13634 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13635 # Insert the option either (1) after the last *FLAGS variable, or
13636 # (2) before a word containing "conftest.", or (3) at the end.
13637 # Note that $ac_compile itself does not contain backslashes and begins
13638 # with a dollar sign (not a hyphen), so the echo should work correctly.
13639 # The option is referenced via a variable to avoid confusing sed.
13640 lt_compile=`echo "$ac_compile" | $SED \
13641 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13642 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13643 -e 's:$: $lt_compiler_flag:'`
13644 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13645 (eval "$lt_compile" 2>conftest.err)
13646 ac_status=$?
13647 cat conftest.err >&5
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 if (exit $ac_status) && test -s "$ac_outfile"; then
13650 # The compiler can only warn and ignore the option if not recognized
13651 # So say no if there are warnings other than the usual output.
13652 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13654 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13655 lt_cv_prog_compiler_pic_works_CXX=yes
13656 fi
13657 fi
13658 $RM conftest*
13659
13660 fi
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13662 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13663
13664 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13665 case $lt_prog_compiler_pic_CXX in
13666 "" | " "*) ;;
13667 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13668 esac
13669 else
13670 lt_prog_compiler_pic_CXX=
13671 lt_prog_compiler_can_build_shared_CXX=no
13672 fi
13673
13674 fi
13675
13676
13677
13678 #
13679 # Check to make sure the static flag actually works.
13680 #
13681 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13683 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13684 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13685 $as_echo_n "(cached) " >&6
13686 else
13687 lt_cv_prog_compiler_static_works_CXX=no
13688 save_LDFLAGS="$LDFLAGS"
13689 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13690 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13691 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13692 # The linker can only warn and ignore the option if not recognized
13693 # So say no if there are warnings
13694 if test -s conftest.err; then
13695 # Append any errors to the config.log.
13696 cat conftest.err 1>&5
13697 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13698 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13699 if diff conftest.exp conftest.er2 >/dev/null; then
13700 lt_cv_prog_compiler_static_works_CXX=yes
13701 fi
13702 else
13703 lt_cv_prog_compiler_static_works_CXX=yes
13704 fi
13705 fi
13706 $RM -r conftest*
13707 LDFLAGS="$save_LDFLAGS"
13708
13709 fi
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13711 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13712
13713 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13714 :
13715 else
13716 lt_prog_compiler_static_CXX=
13717 fi
13718
13719
13720
13721
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13723 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13724 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13725 $as_echo_n "(cached) " >&6
13726 else
13727 lt_cv_prog_compiler_c_o_CXX=no
13728 $RM -r conftest 2>/dev/null
13729 mkdir conftest
13730 cd conftest
13731 mkdir out
13732 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13733
13734 lt_compiler_flag="-o out/conftest2.$ac_objext"
13735 # Insert the option either (1) after the last *FLAGS variable, or
13736 # (2) before a word containing "conftest.", or (3) at the end.
13737 # Note that $ac_compile itself does not contain backslashes and begins
13738 # with a dollar sign (not a hyphen), so the echo should work correctly.
13739 lt_compile=`echo "$ac_compile" | $SED \
13740 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13741 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13742 -e 's:$: $lt_compiler_flag:'`
13743 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13744 (eval "$lt_compile" 2>out/conftest.err)
13745 ac_status=$?
13746 cat out/conftest.err >&5
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13749 then
13750 # The compiler can only warn and ignore the option if not recognized
13751 # So say no if there are warnings
13752 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13753 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13754 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13755 lt_cv_prog_compiler_c_o_CXX=yes
13756 fi
13757 fi
13758 chmod u+w . 2>&5
13759 $RM conftest*
13760 # SGI C++ compiler will create directory out/ii_files/ for
13761 # template instantiation
13762 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13763 $RM out/* && rmdir out
13764 cd ..
13765 $RM -r conftest
13766 $RM conftest*
13767
13768 fi
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13770 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13771
13772
13773
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13775 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13776 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13777 $as_echo_n "(cached) " >&6
13778 else
13779 lt_cv_prog_compiler_c_o_CXX=no
13780 $RM -r conftest 2>/dev/null
13781 mkdir conftest
13782 cd conftest
13783 mkdir out
13784 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13785
13786 lt_compiler_flag="-o out/conftest2.$ac_objext"
13787 # Insert the option either (1) after the last *FLAGS variable, or
13788 # (2) before a word containing "conftest.", or (3) at the end.
13789 # Note that $ac_compile itself does not contain backslashes and begins
13790 # with a dollar sign (not a hyphen), so the echo should work correctly.
13791 lt_compile=`echo "$ac_compile" | $SED \
13792 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13794 -e 's:$: $lt_compiler_flag:'`
13795 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13796 (eval "$lt_compile" 2>out/conftest.err)
13797 ac_status=$?
13798 cat out/conftest.err >&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13801 then
13802 # The compiler can only warn and ignore the option if not recognized
13803 # So say no if there are warnings
13804 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13805 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13806 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13807 lt_cv_prog_compiler_c_o_CXX=yes
13808 fi
13809 fi
13810 chmod u+w . 2>&5
13811 $RM conftest*
13812 # SGI C++ compiler will create directory out/ii_files/ for
13813 # template instantiation
13814 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13815 $RM out/* && rmdir out
13816 cd ..
13817 $RM -r conftest
13818 $RM conftest*
13819
13820 fi
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13822 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13823
13824
13825
13826
13827 hard_links="nottested"
13828 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13829 # do not overwrite the value of need_locks provided by the user
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13831 $as_echo_n "checking if we can lock with hard links... " >&6; }
13832 hard_links=yes
13833 $RM conftest*
13834 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13835 touch conftest.a
13836 ln conftest.a conftest.b 2>&5 || hard_links=no
13837 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13839 $as_echo "$hard_links" >&6; }
13840 if test "$hard_links" = no; then
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13842 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13843 need_locks=warn
13844 fi
13845 else
13846 need_locks=no
13847 fi
13848
13849
13850
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13852 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13853
13854 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13855 case $host_os in
13856 aix[4-9]*)
13857 # If we're using GNU nm, then we don't want the "-C" option.
13858 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13859 # Also, AIX nm treats weak defined symbols like other global defined
13860 # symbols, whereas GNU nm marks them as "W".
13861 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13862 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'
13863 else
13864 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'
13865 fi
13866 ;;
13867 pw32*)
13868 export_symbols_cmds_CXX="$ltdll_cmds"
13869 ;;
13870 cygwin* | mingw* | cegcc*)
13871 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'
13872 ;;
13873 *)
13874 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13875 ;;
13876 esac
13877 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13878
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13880 $as_echo "$ld_shlibs_CXX" >&6; }
13881 test "$ld_shlibs_CXX" = no && can_build_shared=no
13882
13883 with_gnu_ld_CXX=$with_gnu_ld
13884
13885
13886
13887
13888
13889
13890 #
13891 # Do we need to explicitly link libc?
13892 #
13893 case "x$archive_cmds_need_lc_CXX" in
13894 x|xyes)
13895 # Assume -lc should be added
13896 archive_cmds_need_lc_CXX=yes
13897
13898 if test "$enable_shared" = yes && test "$GCC" = yes; then
13899 case $archive_cmds_CXX in
13900 *'~'*)
13901 # FIXME: we may have to deal with multi-command sequences.
13902 ;;
13903 '$CC '*)
13904 # Test whether the compiler implicitly links with -lc since on some
13905 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13906 # to ld, don't add -lc before -lgcc.
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13908 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13909 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13910 $as_echo_n "(cached) " >&6
13911 else
13912 $RM conftest*
13913 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13914
13915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13916 (eval $ac_compile) 2>&5
13917 ac_status=$?
13918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13919 test $ac_status = 0; } 2>conftest.err; then
13920 soname=conftest
13921 lib=conftest
13922 libobjs=conftest.$ac_objext
13923 deplibs=
13924 wl=$lt_prog_compiler_wl_CXX
13925 pic_flag=$lt_prog_compiler_pic_CXX
13926 compiler_flags=-v
13927 linker_flags=-v
13928 verstring=
13929 output_objdir=.
13930 libname=conftest
13931 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13932 allow_undefined_flag_CXX=
13933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13934 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13935 ac_status=$?
13936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13937 test $ac_status = 0; }
13938 then
13939 lt_cv_archive_cmds_need_lc_CXX=no
13940 else
13941 lt_cv_archive_cmds_need_lc_CXX=yes
13942 fi
13943 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13944 else
13945 cat conftest.err 1>&5
13946 fi
13947 $RM conftest*
13948
13949 fi
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13951 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13952 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13953 ;;
13954 esac
13955 fi
13956 ;;
13957 esac
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14023 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14024
14025 library_names_spec=
14026 libname_spec='lib$name'
14027 soname_spec=
14028 shrext_cmds=".so"
14029 postinstall_cmds=
14030 postuninstall_cmds=
14031 finish_cmds=
14032 finish_eval=
14033 shlibpath_var=
14034 shlibpath_overrides_runpath=unknown
14035 version_type=none
14036 dynamic_linker="$host_os ld.so"
14037 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14038 need_lib_prefix=unknown
14039 hardcode_into_libs=no
14040
14041 # when you set need_version to no, make sure it does not cause -set_version
14042 # flags to be left without arguments
14043 need_version=unknown
14044
14045 case $host_os in
14046 aix3*)
14047 version_type=linux
14048 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14049 shlibpath_var=LIBPATH
14050
14051 # AIX 3 has no versioning support, so we append a major version to the name.
14052 soname_spec='${libname}${release}${shared_ext}$major'
14053 ;;
14054
14055 aix[4-9]*)
14056 version_type=linux
14057 need_lib_prefix=no
14058 need_version=no
14059 hardcode_into_libs=yes
14060 if test "$host_cpu" = ia64; then
14061 # AIX 5 supports IA64
14062 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14063 shlibpath_var=LD_LIBRARY_PATH
14064 else
14065 # With GCC up to 2.95.x, collect2 would create an import file
14066 # for dependence libraries. The import file would start with
14067 # the line `#! .'. This would cause the generated library to
14068 # depend on `.', always an invalid library. This was fixed in
14069 # development snapshots of GCC prior to 3.0.
14070 case $host_os in
14071 aix4 | aix4.[01] | aix4.[01].*)
14072 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14073 echo ' yes '
14074 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14075 :
14076 else
14077 can_build_shared=no
14078 fi
14079 ;;
14080 esac
14081 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14082 # soname into executable. Probably we can add versioning support to
14083 # collect2, so additional links can be useful in future.
14084 if test "$aix_use_runtimelinking" = yes; then
14085 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14086 # instead of lib<name>.a to let people know that these are not
14087 # typical AIX shared libraries.
14088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14089 else
14090 # We preserve .a as extension for shared libraries through AIX4.2
14091 # and later when we are not doing run time linking.
14092 library_names_spec='${libname}${release}.a $libname.a'
14093 soname_spec='${libname}${release}${shared_ext}$major'
14094 fi
14095 shlibpath_var=LIBPATH
14096 fi
14097 ;;
14098
14099 amigaos*)
14100 case $host_cpu in
14101 powerpc)
14102 # Since July 2007 AmigaOS4 officially supports .so libraries.
14103 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14105 ;;
14106 m68k)
14107 library_names_spec='$libname.ixlibrary $libname.a'
14108 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14109 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'
14110 ;;
14111 esac
14112 ;;
14113
14114 beos*)
14115 library_names_spec='${libname}${shared_ext}'
14116 dynamic_linker="$host_os ld.so"
14117 shlibpath_var=LIBRARY_PATH
14118 ;;
14119
14120 bsdi[45]*)
14121 version_type=linux
14122 need_version=no
14123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14124 soname_spec='${libname}${release}${shared_ext}$major'
14125 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14126 shlibpath_var=LD_LIBRARY_PATH
14127 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14128 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14129 # the default ld.so.conf also contains /usr/contrib/lib and
14130 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14131 # libtool to hard-code these into programs
14132 ;;
14133
14134 cygwin* | mingw* | pw32* | cegcc*)
14135 version_type=windows
14136 shrext_cmds=".dll"
14137 need_version=no
14138 need_lib_prefix=no
14139
14140 case $GCC,$host_os in
14141 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14142 library_names_spec='$libname.dll.a'
14143 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14144 postinstall_cmds='base_file=`basename \${file}`~
14145 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14146 dldir=$destdir/`dirname \$dlpath`~
14147 test -d \$dldir || mkdir -p \$dldir~
14148 $install_prog $dir/$dlname \$dldir/$dlname~
14149 chmod a+x \$dldir/$dlname~
14150 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14151 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14152 fi'
14153 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14154 dlpath=$dir/\$dldll~
14155 $RM \$dlpath'
14156 shlibpath_overrides_runpath=yes
14157
14158 case $host_os in
14159 cygwin*)
14160 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14161 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14162
14163 ;;
14164 mingw* | cegcc*)
14165 # MinGW DLLs use traditional 'lib' prefix
14166 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14167 ;;
14168 pw32*)
14169 # pw32 DLLs use 'pw' prefix rather than 'lib'
14170 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14171 ;;
14172 esac
14173 ;;
14174
14175 *)
14176 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14177 ;;
14178 esac
14179 dynamic_linker='Win32 ld.exe'
14180 # FIXME: first we should search . and the directory the executable is in
14181 shlibpath_var=PATH
14182 ;;
14183
14184 darwin* | rhapsody*)
14185 dynamic_linker="$host_os dyld"
14186 version_type=darwin
14187 need_lib_prefix=no
14188 need_version=no
14189 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14190 soname_spec='${libname}${release}${major}$shared_ext'
14191 shlibpath_overrides_runpath=yes
14192 shlibpath_var=DYLD_LIBRARY_PATH
14193 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14194
14195 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14196 ;;
14197
14198 dgux*)
14199 version_type=linux
14200 need_lib_prefix=no
14201 need_version=no
14202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14203 soname_spec='${libname}${release}${shared_ext}$major'
14204 shlibpath_var=LD_LIBRARY_PATH
14205 ;;
14206
14207 freebsd1*)
14208 dynamic_linker=no
14209 ;;
14210
14211 freebsd* | dragonfly*)
14212 # DragonFly does not have aout. When/if they implement a new
14213 # versioning mechanism, adjust this.
14214 if test -x /usr/bin/objformat; then
14215 objformat=`/usr/bin/objformat`
14216 else
14217 case $host_os in
14218 freebsd[123]*) objformat=aout ;;
14219 *) objformat=elf ;;
14220 esac
14221 fi
14222 version_type=freebsd-$objformat
14223 case $version_type in
14224 freebsd-elf*)
14225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14226 need_version=no
14227 need_lib_prefix=no
14228 ;;
14229 freebsd-*)
14230 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14231 need_version=yes
14232 ;;
14233 esac
14234 shlibpath_var=LD_LIBRARY_PATH
14235 case $host_os in
14236 freebsd2*)
14237 shlibpath_overrides_runpath=yes
14238 ;;
14239 freebsd3.[01]* | freebsdelf3.[01]*)
14240 shlibpath_overrides_runpath=yes
14241 hardcode_into_libs=yes
14242 ;;
14243 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14244 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14245 shlibpath_overrides_runpath=no
14246 hardcode_into_libs=yes
14247 ;;
14248 *) # from 4.6 on, and DragonFly
14249 shlibpath_overrides_runpath=yes
14250 hardcode_into_libs=yes
14251 ;;
14252 esac
14253 ;;
14254
14255 gnu*)
14256 version_type=linux
14257 need_lib_prefix=no
14258 need_version=no
14259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14260 soname_spec='${libname}${release}${shared_ext}$major'
14261 shlibpath_var=LD_LIBRARY_PATH
14262 hardcode_into_libs=yes
14263 ;;
14264
14265 haiku*)
14266 version_type=linux
14267 need_lib_prefix=no
14268 need_version=no
14269 dynamic_linker="$host_os runtime_loader"
14270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14271 soname_spec='${libname}${release}${shared_ext}$major'
14272 shlibpath_var=LIBRARY_PATH
14273 shlibpath_overrides_runpath=yes
14274 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14275 hardcode_into_libs=yes
14276 ;;
14277
14278 hpux9* | hpux10* | hpux11*)
14279 # Give a soname corresponding to the major version so that dld.sl refuses to
14280 # link against other versions.
14281 version_type=sunos
14282 need_lib_prefix=no
14283 need_version=no
14284 case $host_cpu in
14285 ia64*)
14286 shrext_cmds='.so'
14287 hardcode_into_libs=yes
14288 dynamic_linker="$host_os dld.so"
14289 shlibpath_var=LD_LIBRARY_PATH
14290 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14292 soname_spec='${libname}${release}${shared_ext}$major'
14293 if test "X$HPUX_IA64_MODE" = X32; then
14294 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14295 else
14296 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14297 fi
14298 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14299 ;;
14300 hppa*64*)
14301 shrext_cmds='.sl'
14302 hardcode_into_libs=yes
14303 dynamic_linker="$host_os dld.sl"
14304 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14305 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14307 soname_spec='${libname}${release}${shared_ext}$major'
14308 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14309 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14310 ;;
14311 *)
14312 shrext_cmds='.sl'
14313 dynamic_linker="$host_os dld.sl"
14314 shlibpath_var=SHLIB_PATH
14315 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14317 soname_spec='${libname}${release}${shared_ext}$major'
14318 ;;
14319 esac
14320 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14321 postinstall_cmds='chmod 555 $lib'
14322 # or fails outright, so override atomically:
14323 install_override_mode=555
14324 ;;
14325
14326 interix[3-9]*)
14327 version_type=linux
14328 need_lib_prefix=no
14329 need_version=no
14330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14331 soname_spec='${libname}${release}${shared_ext}$major'
14332 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14333 shlibpath_var=LD_LIBRARY_PATH
14334 shlibpath_overrides_runpath=no
14335 hardcode_into_libs=yes
14336 ;;
14337
14338 irix5* | irix6* | nonstopux*)
14339 case $host_os in
14340 nonstopux*) version_type=nonstopux ;;
14341 *)
14342 if test "$lt_cv_prog_gnu_ld" = yes; then
14343 version_type=linux
14344 else
14345 version_type=irix
14346 fi ;;
14347 esac
14348 need_lib_prefix=no
14349 need_version=no
14350 soname_spec='${libname}${release}${shared_ext}$major'
14351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14352 case $host_os in
14353 irix5* | nonstopux*)
14354 libsuff= shlibsuff=
14355 ;;
14356 *)
14357 case $LD in # libtool.m4 will add one of these switches to LD
14358 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14359 libsuff= shlibsuff= libmagic=32-bit;;
14360 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14361 libsuff=32 shlibsuff=N32 libmagic=N32;;
14362 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14363 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14364 *) libsuff= shlibsuff= libmagic=never-match;;
14365 esac
14366 ;;
14367 esac
14368 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14369 shlibpath_overrides_runpath=no
14370 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14371 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14372 hardcode_into_libs=yes
14373 ;;
14374
14375 # No shared lib support for Linux oldld, aout, or coff.
14376 linux*oldld* | linux*aout* | linux*coff*)
14377 dynamic_linker=no
14378 ;;
14379
14380 # This must be Linux ELF.
14381 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14382 version_type=linux
14383 need_lib_prefix=no
14384 need_version=no
14385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14386 soname_spec='${libname}${release}${shared_ext}$major'
14387 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14388 shlibpath_var=LD_LIBRARY_PATH
14389 shlibpath_overrides_runpath=no
14390
14391 # Some binutils ld are patched to set DT_RUNPATH
14392 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14393 $as_echo_n "(cached) " >&6
14394 else
14395 lt_cv_shlibpath_overrides_runpath=no
14396 save_LDFLAGS=$LDFLAGS
14397 save_libdir=$libdir
14398 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14399 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14400 if test x$gcc_no_link = xyes; then
14401 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14402 fi
14403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14404 /* end confdefs.h. */
14405
14406 int
14407 main ()
14408 {
14409
14410 ;
14411 return 0;
14412 }
14413 _ACEOF
14414 if ac_fn_cxx_try_link "$LINENO"; then :
14415 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14416 lt_cv_shlibpath_overrides_runpath=yes
14417 fi
14418 fi
14419 rm -f core conftest.err conftest.$ac_objext \
14420 conftest$ac_exeext conftest.$ac_ext
14421 LDFLAGS=$save_LDFLAGS
14422 libdir=$save_libdir
14423
14424 fi
14425
14426 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14427
14428 # This implies no fast_install, which is unacceptable.
14429 # Some rework will be needed to allow for fast_install
14430 # before this can be enabled.
14431 hardcode_into_libs=yes
14432
14433 # Append ld.so.conf contents to the search path
14434 if test -f /etc/ld.so.conf; then
14435 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' ' '`
14436 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14437 fi
14438
14439 # We used to test for /lib/ld.so.1 and disable shared libraries on
14440 # powerpc, because MkLinux only supported shared libraries with the
14441 # GNU dynamic linker. Since this was broken with cross compilers,
14442 # most powerpc-linux boxes support dynamic linking these days and
14443 # people can always --disable-shared, the test was removed, and we
14444 # assume the GNU/Linux dynamic linker is in use.
14445 dynamic_linker='GNU/Linux ld.so'
14446 ;;
14447
14448 netbsd*)
14449 version_type=sunos
14450 need_lib_prefix=no
14451 need_version=no
14452 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14455 dynamic_linker='NetBSD (a.out) ld.so'
14456 else
14457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14458 soname_spec='${libname}${release}${shared_ext}$major'
14459 dynamic_linker='NetBSD ld.elf_so'
14460 fi
14461 shlibpath_var=LD_LIBRARY_PATH
14462 shlibpath_overrides_runpath=yes
14463 hardcode_into_libs=yes
14464 ;;
14465
14466 newsos6)
14467 version_type=linux
14468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14469 shlibpath_var=LD_LIBRARY_PATH
14470 shlibpath_overrides_runpath=yes
14471 ;;
14472
14473 *nto* | *qnx*)
14474 version_type=qnx
14475 need_lib_prefix=no
14476 need_version=no
14477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14478 soname_spec='${libname}${release}${shared_ext}$major'
14479 shlibpath_var=LD_LIBRARY_PATH
14480 shlibpath_overrides_runpath=no
14481 hardcode_into_libs=yes
14482 dynamic_linker='ldqnx.so'
14483 ;;
14484
14485 openbsd*)
14486 version_type=sunos
14487 sys_lib_dlsearch_path_spec="/usr/lib"
14488 need_lib_prefix=no
14489 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14490 case $host_os in
14491 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14492 *) need_version=no ;;
14493 esac
14494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14495 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14496 shlibpath_var=LD_LIBRARY_PATH
14497 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14498 case $host_os in
14499 openbsd2.[89] | openbsd2.[89].*)
14500 shlibpath_overrides_runpath=no
14501 ;;
14502 *)
14503 shlibpath_overrides_runpath=yes
14504 ;;
14505 esac
14506 else
14507 shlibpath_overrides_runpath=yes
14508 fi
14509 ;;
14510
14511 os2*)
14512 libname_spec='$name'
14513 shrext_cmds=".dll"
14514 need_lib_prefix=no
14515 library_names_spec='$libname${shared_ext} $libname.a'
14516 dynamic_linker='OS/2 ld.exe'
14517 shlibpath_var=LIBPATH
14518 ;;
14519
14520 osf3* | osf4* | osf5*)
14521 version_type=osf
14522 need_lib_prefix=no
14523 need_version=no
14524 soname_spec='${libname}${release}${shared_ext}$major'
14525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14526 shlibpath_var=LD_LIBRARY_PATH
14527 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14528 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14529 ;;
14530
14531 rdos*)
14532 dynamic_linker=no
14533 ;;
14534
14535 solaris*)
14536 version_type=linux
14537 need_lib_prefix=no
14538 need_version=no
14539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14540 soname_spec='${libname}${release}${shared_ext}$major'
14541 shlibpath_var=LD_LIBRARY_PATH
14542 shlibpath_overrides_runpath=yes
14543 hardcode_into_libs=yes
14544 # ldd complains unless libraries are executable
14545 postinstall_cmds='chmod +x $lib'
14546 ;;
14547
14548 sunos4*)
14549 version_type=sunos
14550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14551 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14552 shlibpath_var=LD_LIBRARY_PATH
14553 shlibpath_overrides_runpath=yes
14554 if test "$with_gnu_ld" = yes; then
14555 need_lib_prefix=no
14556 fi
14557 need_version=yes
14558 ;;
14559
14560 sysv4 | sysv4.3*)
14561 version_type=linux
14562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14563 soname_spec='${libname}${release}${shared_ext}$major'
14564 shlibpath_var=LD_LIBRARY_PATH
14565 case $host_vendor in
14566 sni)
14567 shlibpath_overrides_runpath=no
14568 need_lib_prefix=no
14569 runpath_var=LD_RUN_PATH
14570 ;;
14571 siemens)
14572 need_lib_prefix=no
14573 ;;
14574 motorola)
14575 need_lib_prefix=no
14576 need_version=no
14577 shlibpath_overrides_runpath=no
14578 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14579 ;;
14580 esac
14581 ;;
14582
14583 sysv4*MP*)
14584 if test -d /usr/nec ;then
14585 version_type=linux
14586 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14587 soname_spec='$libname${shared_ext}.$major'
14588 shlibpath_var=LD_LIBRARY_PATH
14589 fi
14590 ;;
14591
14592 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14593 version_type=freebsd-elf
14594 need_lib_prefix=no
14595 need_version=no
14596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14597 soname_spec='${libname}${release}${shared_ext}$major'
14598 shlibpath_var=LD_LIBRARY_PATH
14599 shlibpath_overrides_runpath=yes
14600 hardcode_into_libs=yes
14601 if test "$with_gnu_ld" = yes; then
14602 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14603 else
14604 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14605 case $host_os in
14606 sco3.2v5*)
14607 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14608 ;;
14609 esac
14610 fi
14611 sys_lib_dlsearch_path_spec='/usr/lib'
14612 ;;
14613
14614 tpf*)
14615 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14616 version_type=linux
14617 need_lib_prefix=no
14618 need_version=no
14619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14620 shlibpath_var=LD_LIBRARY_PATH
14621 shlibpath_overrides_runpath=no
14622 hardcode_into_libs=yes
14623 ;;
14624
14625 uts4*)
14626 version_type=linux
14627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14628 soname_spec='${libname}${release}${shared_ext}$major'
14629 shlibpath_var=LD_LIBRARY_PATH
14630 ;;
14631
14632 *)
14633 dynamic_linker=no
14634 ;;
14635 esac
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14637 $as_echo "$dynamic_linker" >&6; }
14638 test "$dynamic_linker" = no && can_build_shared=no
14639
14640 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14641 if test "$GCC" = yes; then
14642 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14643 fi
14644
14645 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14646 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14647 fi
14648 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14649 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14650 fi
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14690 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14691 hardcode_action_CXX=
14692 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14693 test -n "$runpath_var_CXX" ||
14694 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14695
14696 # We can hardcode non-existent directories.
14697 if test "$hardcode_direct_CXX" != no &&
14698 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14699 # have to relink, otherwise we might link with an installed library
14700 # when we should be linking with a yet-to-be-installed one
14701 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14702 test "$hardcode_minus_L_CXX" != no; then
14703 # Linking always hardcodes the temporary library directory.
14704 hardcode_action_CXX=relink
14705 else
14706 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14707 hardcode_action_CXX=immediate
14708 fi
14709 else
14710 # We cannot hardcode anything, or else we can only hardcode existing
14711 # directories.
14712 hardcode_action_CXX=unsupported
14713 fi
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14715 $as_echo "$hardcode_action_CXX" >&6; }
14716
14717 if test "$hardcode_action_CXX" = relink ||
14718 test "$inherit_rpath_CXX" = yes; then
14719 # Fast installation is not supported
14720 enable_fast_install=no
14721 elif test "$shlibpath_overrides_runpath" = yes ||
14722 test "$enable_shared" = no; then
14723 # Fast installation is not necessary
14724 enable_fast_install=needless
14725 fi
14726
14727
14728
14729
14730
14731
14732
14733 fi # test -n "$compiler"
14734
14735 CC=$lt_save_CC
14736 LDCXX=$LD
14737 LD=$lt_save_LD
14738 GCC=$lt_save_GCC
14739 with_gnu_ld=$lt_save_with_gnu_ld
14740 lt_cv_path_LDCXX=$lt_cv_path_LD
14741 lt_cv_path_LD=$lt_save_path_LD
14742 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14743 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14744 fi # test "$_lt_caught_CXX_error" != yes
14745
14746 ac_ext=c
14747 ac_cpp='$CPP $CPPFLAGS'
14748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764 ac_config_commands="$ac_config_commands libtool"
14765
14766
14767
14768
14769 # Only expand once:
14770
14771
14772
14773
14774 # Check whether --with-target-subdir was given.
14775 if test "${with_target_subdir+set}" = set; then :
14776 withval=$with_target_subdir;
14777 fi
14778
14779
14780 # Check whether --with-cross-host was given.
14781 if test "${with_cross_host+set}" = set; then :
14782 withval=$with_cross_host;
14783 fi
14784
14785
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
14787 $as_echo_n "checking for thread model used by GCC... " >&6; }
14788 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
14789 if test -z "$THREADS"; then
14790 THREADS=no
14791 fi
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
14793 $as_echo "$THREADS" >&6; }
14794
14795 # Check whether --enable-parallel-mark was given.
14796 if test "${enable_parallel_mark+set}" = set; then :
14797 enableval=$enable_parallel_mark; case "$THREADS" in
14798 no | none | single)
14799 as_fn_error "Parallel mark requires --enable-threads=x spec" "$LINENO" 5
14800 ;;
14801 esac
14802
14803 fi
14804
14805
14806 AM_CPPFLAGS="-I`cd $srcdir && ${PWDCMD-pwd}`/include"
14807 THREADLIBS=
14808 case "$THREADS" in
14809 no | none | single)
14810 THREADS=none
14811 ;;
14812 posix | posix95 | pthreads)
14813 THREADS=posix
14814 THREADLIBS=-lpthread
14815 case "$host" in
14816 x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
14817
14818 $as_echo "#define GC_LINUX_THREADS 1" >>confdefs.h
14819
14820
14821 $as_echo "#define _REENTRANT 1" >>confdefs.h
14822
14823 if test "${enable_parallel_mark}" = yes; then
14824
14825 $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
14826
14827 fi
14828
14829 $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
14830
14831 ;;
14832 *-*-linux*)
14833 $as_echo "#define GC_LINUX_THREADS 1" >>confdefs.h
14834
14835 $as_echo "#define _REENTRANT 1" >>confdefs.h
14836
14837 ;;
14838 *-*-aix*)
14839
14840 $as_echo "#define GC_AIX_THREADS 1" >>confdefs.h
14841
14842 $as_echo "#define _REENTRANT 1" >>confdefs.h
14843
14844 ;;
14845 *-*-hpux11*)
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
14847 $as_echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
14848
14849 $as_echo "#define GC_HPUX_THREADS 1" >>confdefs.h
14850
14851
14852 $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
14853
14854 if test "${enable_parallel_mark}" = yes; then
14855 $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
14856
14857 fi
14858 $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
14859
14860 THREADLIBS="-lpthread -lrt"
14861 # HPUX needs REENTRANT for the _r calls.
14862
14863 $as_echo "#define _REENTRANT 1" >>confdefs.h
14864
14865 ;;
14866 *-*-hpux10*)
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
14868 $as_echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
14869 ;;
14870 *-*-kfreebsd*-gnu)
14871 $as_echo "#define GC_FREEBSD_THREADS 1" >>confdefs.h
14872
14873 INCLUDES="$INCLUDES -pthread"
14874 THREADDLLIBS=-pthread
14875 $as_echo "#define _REENTRANT 1" >>confdefs.h
14876
14877 if test "${enable_parallel_mark}" = yes; then
14878 $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
14879
14880 fi
14881 $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
14882
14883
14884 $as_echo "#define USE_COMPILER_TLS 1" >>confdefs.h
14885
14886 ;;
14887 *-*-freebsd*)
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
14889 $as_echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
14890
14891 $as_echo "#define GC_FREEBSD_THREADS 1" >>confdefs.h
14892
14893 AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
14894 THREADLIBS=-pthread
14895 ;;
14896 *-*-solaris2.8*)
14897
14898 $as_echo "#define GC_SOLARIS_PTHREADS 1" >>confdefs.h
14899
14900 # Need to use alternate thread library, otherwise gctest hangs
14901 # on Solaris 8.
14902 multi_os_directory=`$CC -print-multi-os-directory`
14903 THREADLIBS="-L/usr/lib/lwp/$multi_os_directory \
14904 -R/usr/lib/lwp/$multi_os_directory -lpthread -lthread -lrt"
14905 ;;
14906 *-*-solaris2*)
14907
14908 $as_echo "#define GC_SOLARIS_PTHREADS 1" >>confdefs.h
14909
14910 # The alternate thread library was only introduced in Solaris 8 and
14911 # became the default in Solaris 9, so no need for the special code
14912 # above otherwise.
14913 # nanosleep, sched_yield, and sem_* only live in librt before
14914 # Solaris 11.
14915 THREADLIBS="-lpthread -lrt"
14916 ;;
14917 *-*-irix*)
14918
14919 $as_echo "#define GC_IRIX_THREADS 1" >>confdefs.h
14920
14921 ;;
14922 *-*-cygwin*)
14923
14924 $as_echo "#define GC_WIN32_THREADS 1" >>confdefs.h
14925
14926 ;;
14927 *-*-darwin*)
14928
14929 $as_echo "#define GC_DARWIN_THREADS 1" >>confdefs.h
14930
14931 $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
14932
14933 if test "${enable_parallel_mark}" = yes; then
14934 $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
14935
14936 fi
14937 ;;
14938 *-*-osf*)
14939
14940 $as_echo "#define GC_OSF1_THREADS 1" >>confdefs.h
14941
14942 if test "${enable_parallel_mark}" = yes; then
14943 $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
14944
14945 $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
14946
14947 # May want to enable it in other cases, too.
14948 # Measurements havent yet been done.
14949 fi
14950 AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
14951 THREADLIBS="-lpthread -lrt"
14952 ;;
14953 esac
14954 ;;
14955 win32)
14956 $as_echo "#define GC_WIN32_THREADS 1" >>confdefs.h
14957
14958 ;;
14959 dgux386)
14960 THREADS=dgux386
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADLIBS" >&5
14962 $as_echo "$THREADLIBS" >&6; }
14963 # Use pthread GCC switch
14964 THREADLIBS=-pthread
14965 if test "${enable_parallel_mark}" = yes; then
14966 $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
14967
14968 fi
14969 $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
14970
14971
14972 $as_echo "#define GC_DGUX386_THREADS 1" >>confdefs.h
14973
14974
14975 $as_echo "#define DGUX_THREADS 1" >>confdefs.h
14976
14977 # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
14978 AM_CPPFLAGS="-pthread $AM_CPPFLAGS"
14979 ;;
14980 aix)
14981 THREADS=posix
14982 THREADLIBS=-lpthread
14983 $as_echo "#define GC_AIX_THREADS 1" >>confdefs.h
14984
14985 $as_echo "#define _REENTRANT 1" >>confdefs.h
14986
14987 ;;
14988 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
14989 as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
14990 ;;
14991 *)
14992 as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
14993 ;;
14994 esac
14995
14996
14997 case "$host" in
14998 powerpc-*-darwin*)
14999 powerpc_darwin=true
15000 ;;
15001 esac
15002 if test x$powerpc_darwin = xtrue; then
15003 POWERPC_DARWIN_TRUE=
15004 POWERPC_DARWIN_FALSE='#'
15005 else
15006 POWERPC_DARWIN_TRUE='#'
15007 POWERPC_DARWIN_FALSE=
15008 fi
15009
15010
15011 # Darwin needs a few extra special tests to deal with variation in the
15012 # system headers.
15013 case "$host" in
15014 powerpc*-*-darwin*)
15015 ac_fn_c_check_member "$LINENO" "ppc_thread_state_t" "r0" "ac_cv_member_ppc_thread_state_t_r0" "#include <mach/thread_status.h>
15016 "
15017 if test "x$ac_cv_member_ppc_thread_state_t_r0" = x""yes; then :
15018
15019 $as_echo "#define HAS_PPC_THREAD_STATE_R0 1" >>confdefs.h
15020
15021 fi
15022
15023 ac_fn_c_check_member "$LINENO" "ppc_thread_state_t" "__r0" "ac_cv_member_ppc_thread_state_t___r0" "#include <mach/thread_status.h>
15024 "
15025 if test "x$ac_cv_member_ppc_thread_state_t___r0" = x""yes; then :
15026
15027 $as_echo "#define HAS_PPC_THREAD_STATE___R0 1" >>confdefs.h
15028
15029 fi
15030
15031 ac_fn_c_check_member "$LINENO" "ppc_thread_state64_t" "r0" "ac_cv_member_ppc_thread_state64_t_r0" "#include <mach/thread_status.h>
15032 "
15033 if test "x$ac_cv_member_ppc_thread_state64_t_r0" = x""yes; then :
15034
15035 $as_echo "#define HAS_PPC_THREAD_STATE64_R0 1" >>confdefs.h
15036
15037 fi
15038
15039 ac_fn_c_check_member "$LINENO" "ppc_thread_state64_t" "__r0" "ac_cv_member_ppc_thread_state64_t___r0" "#include <mach/thread_status.h>
15040 "
15041 if test "x$ac_cv_member_ppc_thread_state64_t___r0" = x""yes; then :
15042
15043 $as_echo "#define HAS_PPC_THREAD_STATE64___R0 1" >>confdefs.h
15044
15045 fi
15046
15047 ;;
15048 i?86*-*-darwin*)
15049 ac_fn_c_check_member "$LINENO" "x86_thread_state32_t" "eax" "ac_cv_member_x86_thread_state32_t_eax" "#include <sys/cdefs.h>
15050 #include <mach/thread_status.h>
15051 "
15052 if test "x$ac_cv_member_x86_thread_state32_t_eax" = x""yes; then :
15053
15054 $as_echo "#define HAS_X86_THREAD_STATE32_EAX 1" >>confdefs.h
15055
15056 fi
15057
15058 ac_fn_c_check_member "$LINENO" "x86_thread_state32_t" "__eax" "ac_cv_member_x86_thread_state32_t___eax" "#include <sys/cdefs.h>
15059 #include <mach/thread_status.h>
15060 "
15061 if test "x$ac_cv_member_x86_thread_state32_t___eax" = x""yes; then :
15062
15063 $as_echo "#define HAS_X86_THREAD_STATE32___EAX 1" >>confdefs.h
15064
15065 fi
15066
15067 ;;
15068 x86_64-*-darwin*)
15069 ac_fn_c_check_member "$LINENO" "x86_thread_state64_t" "rax" "ac_cv_member_x86_thread_state64_t_rax" "#include <sys/cdefs.h>
15070 #include <mach/thread_status.h>
15071 "
15072 if test "x$ac_cv_member_x86_thread_state64_t_rax" = x""yes; then :
15073
15074 $as_echo "#define HAS_X86_THREAD_STATE64_RAX 1" >>confdefs.h
15075
15076 fi
15077
15078 ac_fn_c_check_member "$LINENO" "x86_thread_state64_t" "__rax" "ac_cv_member_x86_thread_state64_t___rax" "#include <sys/cdefs.h>
15079 #include <mach/thread_status.h>
15080 "
15081 if test "x$ac_cv_member_x86_thread_state64_t___rax" = x""yes; then :
15082
15083 $as_echo "#define HAS_X86_THREAD_STATE64___RAX 1" >>confdefs.h
15084
15085 fi
15086
15087 ;;
15088 *) ;;
15089 esac
15090
15091 # We never want libdl on darwin. It is a fake libdl that just ends up making
15092 # dyld calls anyway
15093 case "$host" in
15094 *-*-darwin*) ;;
15095 *)
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15097 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15098 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15099 $as_echo_n "(cached) " >&6
15100 else
15101 ac_check_lib_save_LIBS=$LIBS
15102 LIBS="-ldl $LIBS"
15103 if test x$gcc_no_link = xyes; then
15104 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15105 fi
15106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15107 /* end confdefs.h. */
15108
15109 /* Override any GCC internal prototype to avoid an error.
15110 Use char because int might match the return type of a GCC
15111 builtin and then its argument prototype would still apply. */
15112 #ifdef __cplusplus
15113 extern "C"
15114 #endif
15115 char dlopen ();
15116 int
15117 main ()
15118 {
15119 return dlopen ();
15120 ;
15121 return 0;
15122 }
15123 _ACEOF
15124 if ac_fn_c_try_link "$LINENO"; then :
15125 ac_cv_lib_dl_dlopen=yes
15126 else
15127 ac_cv_lib_dl_dlopen=no
15128 fi
15129 rm -f core conftest.err conftest.$ac_objext \
15130 conftest$ac_exeext conftest.$ac_ext
15131 LIBS=$ac_check_lib_save_LIBS
15132 fi
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15134 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15135 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15136 EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
15137 fi
15138
15139 ;;
15140 esac
15141
15142 # extra LD Flags which are required for targets
15143 case "${host}" in
15144 *-*-darwin*)
15145 extra_ldflags_libgc=-Wl,-single_module
15146 ;;
15147 esac
15148
15149
15150
15151
15152 target_all=libgcjgc.la
15153
15154
15155 TARGET_ECOS="no"
15156
15157 # Check whether --with-ecos was given.
15158 if test "${with_ecos+set}" = set; then :
15159 withval=$with_ecos; TARGET_ECOS="$with_ecos"
15160
15161 fi
15162
15163
15164 addobjs=
15165 addlibs=
15166 addincludes=
15167 addtests=
15168 case "$TARGET_ECOS" in
15169 no)
15170 ;;
15171 *)
15172
15173 $as_echo "#define ECOS 1" >>confdefs.h
15174
15175 AM_CPPFLAGS="${AM_CPPFLAGS} -I${TARGET_ECOS}/include"
15176 addobjs="$addobjs ecos.lo"
15177 ;;
15178 esac
15179
15180 if test "${enable_cplusplus}" = yes; then
15181 addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
15182 addtests="$addtests test_cpp"
15183 fi
15184
15185 if test "${enable_cplusplus}" = yes; then
15186 CPLUSPLUS_TRUE=
15187 CPLUSPLUS_FALSE='#'
15188 else
15189 CPLUSPLUS_TRUE='#'
15190 CPLUSPLUS_FALSE=
15191 fi
15192
15193
15194
15195
15196
15197
15198 # Configuration of shared libraries
15199 #
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15201 $as_echo_n "checking whether to build shared libraries... " >&6; }
15202 # Check whether --enable-shared was given.
15203 if test "${enable_shared+set}" = set; then :
15204 enableval=$enable_shared; p=${PACKAGE-default}
15205 case $enableval in
15206 yes) enable_shared=yes ;;
15207 no) enable_shared=no ;;
15208 *)
15209 enable_shared=no
15210 # Look at the argument we got. We use all the common list separators.
15211 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15212 for pkg in $enableval; do
15213 IFS="$lt_save_ifs"
15214 if test "X$pkg" = "X$p"; then
15215 enable_shared=yes
15216 fi
15217 done
15218 IFS="$lt_save_ifs"
15219 ;;
15220 esac
15221 else
15222 enable_shared=yes
15223 fi
15224
15225
15226
15227
15228
15229
15230
15231 case "$host" in
15232 alpha-*-openbsd*)
15233 enable_shared=no
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15235 $as_echo "no" >&6; }
15236 ;;
15237 *)
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15239 $as_echo "yes" >&6; }
15240 ;;
15241 esac
15242
15243 # Checks for pthreads functions
15244 #
15245 oldLIBS="$LIBS"
15246 LIBS="$LIBS $THREADLIBS"
15247 for ac_func in pthread_getattr_np
15248 do :
15249 ac_fn_c_check_func "$LINENO" "pthread_getattr_np" "ac_cv_func_pthread_getattr_np"
15250 if test "x$ac_cv_func_pthread_getattr_np" = x""yes; then :
15251 cat >>confdefs.h <<_ACEOF
15252 #define HAVE_PTHREAD_GETATTR_NP 1
15253 _ACEOF
15254
15255 fi
15256 done
15257
15258 LIBS="$oldLIBS"
15259
15260 # Configuration of machine-dependent code
15261 #
15262 # Set NO_EXECUTE_PERMISSION by default because gcj already uses
15263 # ffi_closure_{alloc,free} which takes care of allocating trampolines
15264 # in executable memory.
15265 #
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which machine-dependent code should be used" >&5
15267 $as_echo_n "checking which machine-dependent code should be used... " >&6; }
15268 machdep=
15269 case "$host" in
15270 alpha*-*-openbsd*)
15271 machdep="alpha_mach_dep.lo"
15272 if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
15274 $as_echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
15275 fi
15276 ;;
15277 alpha*-*-linux*)
15278 machdep="alpha_mach_dep.lo"
15279 ;;
15280 i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
15281
15282 $as_echo "#define SOLARIS25_PROC_VDB_BUG_FIXED 1" >>confdefs.h
15283
15284 ;;
15285 mipstx39-*-elf*)
15286 machdep="mips_ultrix_mach_dep.lo"
15287
15288 $as_echo "#define STACKBASE __stackbase" >>confdefs.h
15289
15290
15291 $as_echo "#define DATASTART_IS_ETEXT 1" >>confdefs.h
15292
15293 ;;
15294 mips-dec-ultrix*)
15295 machdep="mips_ultrix_mach-dep.lo"
15296 ;;
15297 mips-nec-sysv*|mips-unknown-sysv*)
15298 ;;
15299 mips*-*-linux*)
15300 ;;
15301 mips-*-*)
15302 machdep="mips_sgi_mach_dep.lo"
15303 ;;
15304 sparc-*-netbsd*)
15305 machdep="sparc_netbsd_mach_dep.lo"
15306 ;;
15307 sparc-sun-solaris2.3)
15308 machdep="sparc_mach_dep.lo"
15309
15310 $as_echo "#define SUNOS53_SHARED_LIB 1" >>confdefs.h
15311
15312 ;;
15313 sparc*-sun-solaris2.*)
15314 machdep="sparc_mach_dep.lo"
15315 ;;
15316 ia64-*-*)
15317 machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
15318 ;;
15319 esac
15320
15321 $as_echo "#define NO_EXECUTE_PERMISSION 1" >>confdefs.h
15322
15323 if test x"$machdep" = x; then
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $machdep" >&5
15325 $as_echo "$machdep" >&6; }
15326 machdep="mach_dep.lo"
15327 fi
15328 addobjs="$addobjs $machdep"
15329
15330
15331
15332
15333
15334 #
15335 # Check for AViiON Machines running DGUX
15336 #
15337 ac_is_dgux=no
15338 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
15339 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
15340 ac_is_dgux=yes
15341 fi
15342
15343
15344
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if host is AViiON running DGUX" >&5
15346 $as_echo_n "checking if host is AViiON running DGUX... " >&6; }
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_is_dgux" >&5
15348 $as_echo "$ac_is_dgux" >&6; }
15349 ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
15350 if test $ac_is_dgux = yes; then
15351 if test "$enable_full_debug" = "yes"; then
15352 GC_CFLAGS="$GC_CFLAGS -mstandard"
15353 fi
15354 GC_CFLAGS="$GC_CFLAGS -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend"
15355 fi
15356
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC optimization should be disabled" >&5
15358 $as_echo_n "checking whether GCC optimization should be disabled... " >&6; }
15359 O0_CFLAGS=
15360 case "$host" in
15361 *aix*) test "$GCC" = yes && O0_CFLAGS=-O0 ;;
15362 *) ;;
15363 esac
15364 if test x"$O0_CFLAGS" != x; then
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15366 $as_echo "yes" >&6; }
15367 else
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15369 $as_echo "no" >&6; }
15370 fi
15371
15372
15373
15374 $as_echo "#define SILENT 1" >>confdefs.h
15375
15376
15377 $as_echo "#define NO_SIGNALS 1" >>confdefs.h
15378
15379
15380 $as_echo "#define ALL_INTERIOR_POINTERS 1" >>confdefs.h
15381
15382
15383
15384 $as_echo "#define JAVA_FINALIZATION 1" >>confdefs.h
15385
15386
15387 $as_echo "#define GC_GCJ_SUPPORT 1" >>confdefs.h
15388
15389
15390 $as_echo "#define ATOMIC_UNCOLLECTABLE 1" >>confdefs.h
15391
15392
15393 # Check whether --enable-gc-debug was given.
15394 if test "${enable_gc_debug+set}" = set; then :
15395 enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&5
15397 $as_echo "$as_me: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
15398
15399 $as_echo "#define KEEP_BACK_PTRS 1" >>confdefs.h
15400
15401
15402 $as_echo "#define DBG_HDRS_ALL 1" >>confdefs.h
15403
15404 case $host in
15405 ia64-*-linux* )
15406
15407 $as_echo "#define MAKE_BACK_GRAPH 1" >>confdefs.h
15408
15409 ;;
15410 x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
15411 $as_echo "#define MAKE_BACK_GRAPH 1" >>confdefs.h
15412
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
15414 $as_echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
15415
15416 $as_echo "#define SAVE_CALL_COUNT 8" >>confdefs.h
15417
15418 ;;
15419 i345686-*-dgux*)
15420 $as_echo "#define MAKE_BACK_GRAPH 1" >>confdefs.h
15421
15422 ;;
15423 esac
15424 fi
15425 fi
15426
15427
15428 if test "${gc_use_mmap}" = "yes"; then
15429
15430 $as_echo "#define USE_MMAP 1" >>confdefs.h
15431
15432 fi
15433
15434 if test -n "$with_cross_host" &&
15435 test x"$with_cross_host" != x"no"; then
15436 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
15437 toolexeclibdir='$(toolexecdir)/lib'
15438 else
15439 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
15440 toolexeclibdir='$(libdir)'
15441 fi
15442 multi_os_directory=`$CC -print-multi-os-directory`
15443 case $multi_os_directory in
15444 .) ;; # Avoid trailing /.
15445 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
15446 esac
15447
15448
15449
15450 if test "${multilib}" = "yes"; then
15451 multilib_arg="--enable-multilib"
15452 else
15453 multilib_arg=
15454 fi
15455
15456 ac_config_headers="$ac_config_headers include/gc_config.h include/gc_ext_config.h"
15457
15458
15459 ac_config_files="$ac_config_files Makefile include/Makefile threads.mk"
15460
15461 cat >confcache <<\_ACEOF
15462 # This file is a shell script that caches the results of configure
15463 # tests run on this system so they can be shared between configure
15464 # scripts and configure runs, see configure's option --config-cache.
15465 # It is not useful on other systems. If it contains results you don't
15466 # want to keep, you may remove or edit it.
15467 #
15468 # config.status only pays attention to the cache file if you give it
15469 # the --recheck option to rerun configure.
15470 #
15471 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15472 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15473 # following values.
15474
15475 _ACEOF
15476
15477 # The following way of writing the cache mishandles newlines in values,
15478 # but we know of no workaround that is simple, portable, and efficient.
15479 # So, we kill variables containing newlines.
15480 # Ultrix sh set writes to stderr and can't be redirected directly,
15481 # and sets the high bit in the cache file unless we assign to the vars.
15482 (
15483 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15484 eval ac_val=\$$ac_var
15485 case $ac_val in #(
15486 *${as_nl}*)
15487 case $ac_var in #(
15488 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15489 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15490 esac
15491 case $ac_var in #(
15492 _ | IFS | as_nl) ;; #(
15493 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15494 *) { eval $ac_var=; unset $ac_var;} ;;
15495 esac ;;
15496 esac
15497 done
15498
15499 (set) 2>&1 |
15500 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15501 *${as_nl}ac_space=\ *)
15502 # `set' does not quote correctly, so add quotes: double-quote
15503 # substitution turns \\\\ into \\, and sed turns \\ into \.
15504 sed -n \
15505 "s/'/'\\\\''/g;
15506 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15507 ;; #(
15508 *)
15509 # `set' quotes correctly as required by POSIX, so do not add quotes.
15510 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15511 ;;
15512 esac |
15513 sort
15514 ) |
15515 sed '
15516 /^ac_cv_env_/b end
15517 t clear
15518 :clear
15519 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15520 t end
15521 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15522 :end' >>confcache
15523 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15524 if test -w "$cache_file"; then
15525 test "x$cache_file" != "x/dev/null" &&
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15527 $as_echo "$as_me: updating cache $cache_file" >&6;}
15528 cat confcache >$cache_file
15529 else
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15531 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15532 fi
15533 fi
15534 rm -f confcache
15535
15536 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15537 # Let make expand exec_prefix.
15538 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15539
15540 DEFS=-DHAVE_CONFIG_H
15541
15542 ac_libobjs=
15543 ac_ltlibobjs=
15544 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15545 # 1. Remove the extension, and $U if already installed.
15546 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15547 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15548 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15549 # will be set to the directory where LIBOBJS objects are built.
15550 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15551 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15552 done
15553 LIBOBJS=$ac_libobjs
15554
15555 LTLIBOBJS=$ac_ltlibobjs
15556
15557
15558 if test -n "$EXEEXT"; then
15559 am__EXEEXT_TRUE=
15560 am__EXEEXT_FALSE='#'
15561 else
15562 am__EXEEXT_TRUE='#'
15563 am__EXEEXT_FALSE=
15564 fi
15565
15566 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15567 as_fn_error "conditional \"AMDEP\" was never defined.
15568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15569 fi
15570 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15571 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15573 fi
15574 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15575 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15577 fi
15578 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15579 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15581 fi
15582 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
15583 as_fn_error "conditional \"POWERPC_DARWIN\" was never defined.
15584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15585 fi
15586 if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then
15587 as_fn_error "conditional \"CPLUSPLUS\" was never defined.
15588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15589 fi
15590
15591 : ${CONFIG_STATUS=./config.status}
15592 ac_write_fail=0
15593 ac_clean_files_save=$ac_clean_files
15594 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15596 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15597 as_write_fail=0
15598 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15599 #! $SHELL
15600 # Generated by $as_me.
15601 # Run this file to recreate the current configuration.
15602 # Compiler output produced by configure, useful for debugging
15603 # configure, is in config.log if it exists.
15604
15605 debug=false
15606 ac_cs_recheck=false
15607 ac_cs_silent=false
15608
15609 SHELL=\${CONFIG_SHELL-$SHELL}
15610 export SHELL
15611 _ASEOF
15612 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15613 ## -------------------- ##
15614 ## M4sh Initialization. ##
15615 ## -------------------- ##
15616
15617 # Be more Bourne compatible
15618 DUALCASE=1; export DUALCASE # for MKS sh
15619 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15620 emulate sh
15621 NULLCMD=:
15622 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15623 # is contrary to our usage. Disable this feature.
15624 alias -g '${1+"$@"}'='"$@"'
15625 setopt NO_GLOB_SUBST
15626 else
15627 case `(set -o) 2>/dev/null` in #(
15628 *posix*) :
15629 set -o posix ;; #(
15630 *) :
15631 ;;
15632 esac
15633 fi
15634
15635
15636 as_nl='
15637 '
15638 export as_nl
15639 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15640 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15641 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15642 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15643 # Prefer a ksh shell builtin over an external printf program on Solaris,
15644 # but without wasting forks for bash or zsh.
15645 if test -z "$BASH_VERSION$ZSH_VERSION" \
15646 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15647 as_echo='print -r --'
15648 as_echo_n='print -rn --'
15649 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15650 as_echo='printf %s\n'
15651 as_echo_n='printf %s'
15652 else
15653 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15654 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15655 as_echo_n='/usr/ucb/echo -n'
15656 else
15657 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15658 as_echo_n_body='eval
15659 arg=$1;
15660 case $arg in #(
15661 *"$as_nl"*)
15662 expr "X$arg" : "X\\(.*\\)$as_nl";
15663 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15664 esac;
15665 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15666 '
15667 export as_echo_n_body
15668 as_echo_n='sh -c $as_echo_n_body as_echo'
15669 fi
15670 export as_echo_body
15671 as_echo='sh -c $as_echo_body as_echo'
15672 fi
15673
15674 # The user is always right.
15675 if test "${PATH_SEPARATOR+set}" != set; then
15676 PATH_SEPARATOR=:
15677 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15678 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15679 PATH_SEPARATOR=';'
15680 }
15681 fi
15682
15683
15684 # IFS
15685 # We need space, tab and new line, in precisely that order. Quoting is
15686 # there to prevent editors from complaining about space-tab.
15687 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15688 # splitting by setting IFS to empty value.)
15689 IFS=" "" $as_nl"
15690
15691 # Find who we are. Look in the path if we contain no directory separator.
15692 case $0 in #((
15693 *[\\/]* ) as_myself=$0 ;;
15694 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15695 for as_dir in $PATH
15696 do
15697 IFS=$as_save_IFS
15698 test -z "$as_dir" && as_dir=.
15699 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15700 done
15701 IFS=$as_save_IFS
15702
15703 ;;
15704 esac
15705 # We did not find ourselves, most probably we were run as `sh COMMAND'
15706 # in which case we are not to be found in the path.
15707 if test "x$as_myself" = x; then
15708 as_myself=$0
15709 fi
15710 if test ! -f "$as_myself"; then
15711 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15712 exit 1
15713 fi
15714
15715 # Unset variables that we do not need and which cause bugs (e.g. in
15716 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15717 # suppresses any "Segmentation fault" message there. '((' could
15718 # trigger a bug in pdksh 5.2.14.
15719 for as_var in BASH_ENV ENV MAIL MAILPATH
15720 do eval test x\${$as_var+set} = xset \
15721 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15722 done
15723 PS1='$ '
15724 PS2='> '
15725 PS4='+ '
15726
15727 # NLS nuisances.
15728 LC_ALL=C
15729 export LC_ALL
15730 LANGUAGE=C
15731 export LANGUAGE
15732
15733 # CDPATH.
15734 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15735
15736
15737 # as_fn_error ERROR [LINENO LOG_FD]
15738 # ---------------------------------
15739 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15740 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15741 # script with status $?, using 1 if that was 0.
15742 as_fn_error ()
15743 {
15744 as_status=$?; test $as_status -eq 0 && as_status=1
15745 if test "$3"; then
15746 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15747 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15748 fi
15749 $as_echo "$as_me: error: $1" >&2
15750 as_fn_exit $as_status
15751 } # as_fn_error
15752
15753
15754 # as_fn_set_status STATUS
15755 # -----------------------
15756 # Set $? to STATUS, without forking.
15757 as_fn_set_status ()
15758 {
15759 return $1
15760 } # as_fn_set_status
15761
15762 # as_fn_exit STATUS
15763 # -----------------
15764 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15765 as_fn_exit ()
15766 {
15767 set +e
15768 as_fn_set_status $1
15769 exit $1
15770 } # as_fn_exit
15771
15772 # as_fn_unset VAR
15773 # ---------------
15774 # Portably unset VAR.
15775 as_fn_unset ()
15776 {
15777 { eval $1=; unset $1;}
15778 }
15779 as_unset=as_fn_unset
15780 # as_fn_append VAR VALUE
15781 # ----------------------
15782 # Append the text in VALUE to the end of the definition contained in VAR. Take
15783 # advantage of any shell optimizations that allow amortized linear growth over
15784 # repeated appends, instead of the typical quadratic growth present in naive
15785 # implementations.
15786 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15787 eval 'as_fn_append ()
15788 {
15789 eval $1+=\$2
15790 }'
15791 else
15792 as_fn_append ()
15793 {
15794 eval $1=\$$1\$2
15795 }
15796 fi # as_fn_append
15797
15798 # as_fn_arith ARG...
15799 # ------------------
15800 # Perform arithmetic evaluation on the ARGs, and store the result in the
15801 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15802 # must be portable across $(()) and expr.
15803 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15804 eval 'as_fn_arith ()
15805 {
15806 as_val=$(( $* ))
15807 }'
15808 else
15809 as_fn_arith ()
15810 {
15811 as_val=`expr "$@" || test $? -eq 1`
15812 }
15813 fi # as_fn_arith
15814
15815
15816 if expr a : '\(a\)' >/dev/null 2>&1 &&
15817 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15818 as_expr=expr
15819 else
15820 as_expr=false
15821 fi
15822
15823 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15824 as_basename=basename
15825 else
15826 as_basename=false
15827 fi
15828
15829 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15830 as_dirname=dirname
15831 else
15832 as_dirname=false
15833 fi
15834
15835 as_me=`$as_basename -- "$0" ||
15836 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15837 X"$0" : 'X\(//\)$' \| \
15838 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15839 $as_echo X/"$0" |
15840 sed '/^.*\/\([^/][^/]*\)\/*$/{
15841 s//\1/
15842 q
15843 }
15844 /^X\/\(\/\/\)$/{
15845 s//\1/
15846 q
15847 }
15848 /^X\/\(\/\).*/{
15849 s//\1/
15850 q
15851 }
15852 s/.*/./; q'`
15853
15854 # Avoid depending upon Character Ranges.
15855 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15856 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15857 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15858 as_cr_digits='0123456789'
15859 as_cr_alnum=$as_cr_Letters$as_cr_digits
15860
15861 ECHO_C= ECHO_N= ECHO_T=
15862 case `echo -n x` in #(((((
15863 -n*)
15864 case `echo 'xy\c'` in
15865 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15866 xy) ECHO_C='\c';;
15867 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15868 ECHO_T=' ';;
15869 esac;;
15870 *)
15871 ECHO_N='-n';;
15872 esac
15873
15874 rm -f conf$$ conf$$.exe conf$$.file
15875 if test -d conf$$.dir; then
15876 rm -f conf$$.dir/conf$$.file
15877 else
15878 rm -f conf$$.dir
15879 mkdir conf$$.dir 2>/dev/null
15880 fi
15881 if (echo >conf$$.file) 2>/dev/null; then
15882 if ln -s conf$$.file conf$$ 2>/dev/null; then
15883 as_ln_s='ln -s'
15884 # ... but there are two gotchas:
15885 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15886 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15887 # In both cases, we have to default to `cp -p'.
15888 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15889 as_ln_s='cp -p'
15890 elif ln conf$$.file conf$$ 2>/dev/null; then
15891 as_ln_s=ln
15892 else
15893 as_ln_s='cp -p'
15894 fi
15895 else
15896 as_ln_s='cp -p'
15897 fi
15898 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15899 rmdir conf$$.dir 2>/dev/null
15900
15901
15902 # as_fn_mkdir_p
15903 # -------------
15904 # Create "$as_dir" as a directory, including parents if necessary.
15905 as_fn_mkdir_p ()
15906 {
15907
15908 case $as_dir in #(
15909 -*) as_dir=./$as_dir;;
15910 esac
15911 test -d "$as_dir" || eval $as_mkdir_p || {
15912 as_dirs=
15913 while :; do
15914 case $as_dir in #(
15915 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15916 *) as_qdir=$as_dir;;
15917 esac
15918 as_dirs="'$as_qdir' $as_dirs"
15919 as_dir=`$as_dirname -- "$as_dir" ||
15920 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15921 X"$as_dir" : 'X\(//\)[^/]' \| \
15922 X"$as_dir" : 'X\(//\)$' \| \
15923 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15924 $as_echo X"$as_dir" |
15925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15926 s//\1/
15927 q
15928 }
15929 /^X\(\/\/\)[^/].*/{
15930 s//\1/
15931 q
15932 }
15933 /^X\(\/\/\)$/{
15934 s//\1/
15935 q
15936 }
15937 /^X\(\/\).*/{
15938 s//\1/
15939 q
15940 }
15941 s/.*/./; q'`
15942 test -d "$as_dir" && break
15943 done
15944 test -z "$as_dirs" || eval "mkdir $as_dirs"
15945 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15946
15947
15948 } # as_fn_mkdir_p
15949 if mkdir -p . 2>/dev/null; then
15950 as_mkdir_p='mkdir -p "$as_dir"'
15951 else
15952 test -d ./-p && rmdir ./-p
15953 as_mkdir_p=false
15954 fi
15955
15956 if test -x / >/dev/null 2>&1; then
15957 as_test_x='test -x'
15958 else
15959 if ls -dL / >/dev/null 2>&1; then
15960 as_ls_L_option=L
15961 else
15962 as_ls_L_option=
15963 fi
15964 as_test_x='
15965 eval sh -c '\''
15966 if test -d "$1"; then
15967 test -d "$1/.";
15968 else
15969 case $1 in #(
15970 -*)set "./$1";;
15971 esac;
15972 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15973 ???[sx]*):;;*)false;;esac;fi
15974 '\'' sh
15975 '
15976 fi
15977 as_executable_p=$as_test_x
15978
15979 # Sed expression to map a string onto a valid CPP name.
15980 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15981
15982 # Sed expression to map a string onto a valid variable name.
15983 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15984
15985
15986 exec 6>&1
15987 ## ----------------------------------- ##
15988 ## Main body of $CONFIG_STATUS script. ##
15989 ## ----------------------------------- ##
15990 _ASEOF
15991 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15992
15993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15994 # Save the log message, to keep $0 and so on meaningful, and to
15995 # report actual input values of CONFIG_FILES etc. instead of their
15996 # values after options handling.
15997 ac_log="
15998 This file was extended by $as_me, which was
15999 generated by GNU Autoconf 2.64. Invocation command line was
16000
16001 CONFIG_FILES = $CONFIG_FILES
16002 CONFIG_HEADERS = $CONFIG_HEADERS
16003 CONFIG_LINKS = $CONFIG_LINKS
16004 CONFIG_COMMANDS = $CONFIG_COMMANDS
16005 $ $0 $@
16006
16007 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16008 "
16009
16010 _ACEOF
16011
16012 case $ac_config_files in *"
16013 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16014 esac
16015
16016 case $ac_config_headers in *"
16017 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16018 esac
16019
16020
16021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16022 # Files that config.status was made for.
16023 config_files="$ac_config_files"
16024 config_headers="$ac_config_headers"
16025 config_commands="$ac_config_commands"
16026
16027 _ACEOF
16028
16029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16030 ac_cs_usage="\
16031 \`$as_me' instantiates files and other configuration actions
16032 from templates according to the current configuration. Unless the files
16033 and actions are specified as TAGs, all are instantiated by default.
16034
16035 Usage: $0 [OPTION]... [TAG]...
16036
16037 -h, --help print this help, then exit
16038 -V, --version print version number and configuration settings, then exit
16039 -q, --quiet, --silent
16040 do not print progress messages
16041 -d, --debug don't remove temporary files
16042 --recheck update $as_me by reconfiguring in the same conditions
16043 --file=FILE[:TEMPLATE]
16044 instantiate the configuration file FILE
16045 --header=FILE[:TEMPLATE]
16046 instantiate the configuration header FILE
16047
16048 Configuration files:
16049 $config_files
16050
16051 Configuration headers:
16052 $config_headers
16053
16054 Configuration commands:
16055 $config_commands
16056
16057 Report bugs to the package provider."
16058
16059 _ACEOF
16060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16061 ac_cs_version="\\
16062 config.status
16063 configured by $0, generated by GNU Autoconf 2.64,
16064 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16065
16066 Copyright (C) 2009 Free Software Foundation, Inc.
16067 This config.status script is free software; the Free Software Foundation
16068 gives unlimited permission to copy, distribute and modify it."
16069
16070 ac_pwd='$ac_pwd'
16071 srcdir='$srcdir'
16072 INSTALL='$INSTALL'
16073 MKDIR_P='$MKDIR_P'
16074 AWK='$AWK'
16075 test -n "\$AWK" || AWK=awk
16076 _ACEOF
16077
16078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16079 # The default lists apply if the user does not specify any file.
16080 ac_need_defaults=:
16081 while test $# != 0
16082 do
16083 case $1 in
16084 --*=*)
16085 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16086 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16087 ac_shift=:
16088 ;;
16089 *)
16090 ac_option=$1
16091 ac_optarg=$2
16092 ac_shift=shift
16093 ;;
16094 esac
16095
16096 case $ac_option in
16097 # Handling of the options.
16098 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16099 ac_cs_recheck=: ;;
16100 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16101 $as_echo "$ac_cs_version"; exit ;;
16102 --debug | --debu | --deb | --de | --d | -d )
16103 debug=: ;;
16104 --file | --fil | --fi | --f )
16105 $ac_shift
16106 case $ac_optarg in
16107 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16108 esac
16109 as_fn_append CONFIG_FILES " '$ac_optarg'"
16110 ac_need_defaults=false;;
16111 --header | --heade | --head | --hea )
16112 $ac_shift
16113 case $ac_optarg in
16114 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16115 esac
16116 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16117 ac_need_defaults=false;;
16118 --he | --h)
16119 # Conflict between --help and --header
16120 as_fn_error "ambiguous option: \`$1'
16121 Try \`$0 --help' for more information.";;
16122 --help | --hel | -h )
16123 $as_echo "$ac_cs_usage"; exit ;;
16124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16125 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16126 ac_cs_silent=: ;;
16127
16128 # This is an error.
16129 -*) as_fn_error "unrecognized option: \`$1'
16130 Try \`$0 --help' for more information." ;;
16131
16132 *) as_fn_append ac_config_targets " $1"
16133 ac_need_defaults=false ;;
16134
16135 esac
16136 shift
16137 done
16138
16139 ac_configure_extra_args=
16140
16141 if $ac_cs_silent; then
16142 exec 6>/dev/null
16143 ac_configure_extra_args="$ac_configure_extra_args --silent"
16144 fi
16145
16146 _ACEOF
16147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16148 if \$ac_cs_recheck; then
16149 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16150 shift
16151 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16152 CONFIG_SHELL='$SHELL'
16153 export CONFIG_SHELL
16154 exec "\$@"
16155 fi
16156
16157 _ACEOF
16158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16159 exec 5>>config.log
16160 {
16161 echo
16162 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16163 ## Running $as_me. ##
16164 _ASBOX
16165 $as_echo "$ac_log"
16166 } >&5
16167
16168 _ACEOF
16169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16170 #
16171 # INIT-COMMANDS
16172 #
16173
16174 srcdir="$srcdir"
16175 host="$host"
16176 target="$target"
16177 with_multisubdir="$with_multisubdir"
16178 with_multisrctop="$with_multisrctop"
16179 with_target_subdir="$with_target_subdir"
16180 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16181 multi_basedir="$multi_basedir"
16182 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16183 CC="$CC"
16184 CXX="$CXX"
16185 GFORTRAN="$GFORTRAN"
16186 GCJ="$GCJ"
16187 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16188
16189
16190 # The HP-UX ksh and POSIX shell print the target directory to stdout
16191 # if CDPATH is set.
16192 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16193
16194 sed_quote_subst='$sed_quote_subst'
16195 double_quote_subst='$double_quote_subst'
16196 delay_variable_subst='$delay_variable_subst'
16197 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16198 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16199 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16200 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16201 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16202 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16203 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16204 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16205 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16206 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16207 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16208 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16209 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16210 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16211 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16212 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16213 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16214 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16215 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16216 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16217 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16218 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16219 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16220 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16221 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16222 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16223 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16224 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16225 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16226 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16227 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16228 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16229 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16230 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16231 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16232 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16233 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16234 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16235 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16236 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16237 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16238 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16239 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16240 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16241 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16242 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16243 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16244 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16245 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16246 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16247 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16248 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16249 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16250 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16251 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16252 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16253 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16254 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16255 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16256 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16257 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16258 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16259 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16260 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16261 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16262 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16263 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16264 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16265 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16266 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16267 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16268 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16269 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16270 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16271 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16272 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16273 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16274 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16275 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16276 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16277 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16278 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16279 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16280 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16281 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16282 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16283 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16284 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16285 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16286 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16287 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16288 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16289 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16290 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16291 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16292 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16293 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16294 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16295 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16296 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16297 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16298 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16299 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16300 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16301 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16302 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16303 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16304 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16305 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16306 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16307 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16308 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16309 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16310 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16311 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16312 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16313 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16314 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16315 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16316 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16317 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16318 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16319 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16320 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16321 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16322 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16323 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16324 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16325 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16326 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16327 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16328 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16329 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16330 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16331 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16332 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16333 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16334 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16335 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16336 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16337 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16338 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16339 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16340 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16341 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16342 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16343 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16344 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16345 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16346 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16347 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16348 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16349 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16350 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16351 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16352 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16353 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16354 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16355 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16356 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16357 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16358 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16359 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16360 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16361 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16362 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16363 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16364 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16365 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16366 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16367 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16368 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16369 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16370 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16371 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16372
16373 LTCC='$LTCC'
16374 LTCFLAGS='$LTCFLAGS'
16375 compiler='$compiler_DEFAULT'
16376
16377 # A function that is used when there is no print builtin or printf.
16378 func_fallback_echo ()
16379 {
16380 eval 'cat <<_LTECHO_EOF
16381 \$1
16382 _LTECHO_EOF'
16383 }
16384
16385 # Quote evaled strings.
16386 for var in SHELL \
16387 ECHO \
16388 SED \
16389 GREP \
16390 EGREP \
16391 FGREP \
16392 LD \
16393 NM \
16394 LN_S \
16395 lt_SP2NL \
16396 lt_NL2SP \
16397 reload_flag \
16398 OBJDUMP \
16399 deplibs_check_method \
16400 file_magic_cmd \
16401 AR \
16402 AR_FLAGS \
16403 STRIP \
16404 RANLIB \
16405 CC \
16406 CFLAGS \
16407 compiler \
16408 lt_cv_sys_global_symbol_pipe \
16409 lt_cv_sys_global_symbol_to_cdecl \
16410 lt_cv_sys_global_symbol_to_c_name_address \
16411 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16412 lt_prog_compiler_no_builtin_flag \
16413 lt_prog_compiler_wl \
16414 lt_prog_compiler_pic \
16415 lt_prog_compiler_static \
16416 lt_cv_prog_compiler_c_o \
16417 need_locks \
16418 DSYMUTIL \
16419 NMEDIT \
16420 LIPO \
16421 OTOOL \
16422 OTOOL64 \
16423 shrext_cmds \
16424 export_dynamic_flag_spec \
16425 whole_archive_flag_spec \
16426 compiler_needs_object \
16427 with_gnu_ld \
16428 allow_undefined_flag \
16429 no_undefined_flag \
16430 hardcode_libdir_flag_spec \
16431 hardcode_libdir_flag_spec_ld \
16432 hardcode_libdir_separator \
16433 fix_srcfile_path \
16434 exclude_expsyms \
16435 include_expsyms \
16436 file_list_spec \
16437 variables_saved_for_relink \
16438 libname_spec \
16439 library_names_spec \
16440 soname_spec \
16441 install_override_mode \
16442 finish_eval \
16443 old_striplib \
16444 striplib \
16445 compiler_lib_search_dirs \
16446 predep_objects \
16447 postdep_objects \
16448 predeps \
16449 postdeps \
16450 compiler_lib_search_path \
16451 LD_CXX \
16452 reload_flag_CXX \
16453 compiler_CXX \
16454 lt_prog_compiler_no_builtin_flag_CXX \
16455 lt_prog_compiler_wl_CXX \
16456 lt_prog_compiler_pic_CXX \
16457 lt_prog_compiler_static_CXX \
16458 lt_cv_prog_compiler_c_o_CXX \
16459 export_dynamic_flag_spec_CXX \
16460 whole_archive_flag_spec_CXX \
16461 compiler_needs_object_CXX \
16462 with_gnu_ld_CXX \
16463 allow_undefined_flag_CXX \
16464 no_undefined_flag_CXX \
16465 hardcode_libdir_flag_spec_CXX \
16466 hardcode_libdir_flag_spec_ld_CXX \
16467 hardcode_libdir_separator_CXX \
16468 fix_srcfile_path_CXX \
16469 exclude_expsyms_CXX \
16470 include_expsyms_CXX \
16471 file_list_spec_CXX \
16472 compiler_lib_search_dirs_CXX \
16473 predep_objects_CXX \
16474 postdep_objects_CXX \
16475 predeps_CXX \
16476 postdeps_CXX \
16477 compiler_lib_search_path_CXX; do
16478 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16479 *[\\\\\\\`\\"\\\$]*)
16480 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16481 ;;
16482 *)
16483 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16484 ;;
16485 esac
16486 done
16487
16488 # Double-quote double-evaled strings.
16489 for var in reload_cmds \
16490 old_postinstall_cmds \
16491 old_postuninstall_cmds \
16492 old_archive_cmds \
16493 extract_expsyms_cmds \
16494 old_archive_from_new_cmds \
16495 old_archive_from_expsyms_cmds \
16496 archive_cmds \
16497 archive_expsym_cmds \
16498 module_cmds \
16499 module_expsym_cmds \
16500 export_symbols_cmds \
16501 prelink_cmds \
16502 postinstall_cmds \
16503 postuninstall_cmds \
16504 finish_cmds \
16505 sys_lib_search_path_spec \
16506 sys_lib_dlsearch_path_spec \
16507 reload_cmds_CXX \
16508 old_archive_cmds_CXX \
16509 old_archive_from_new_cmds_CXX \
16510 old_archive_from_expsyms_cmds_CXX \
16511 archive_cmds_CXX \
16512 archive_expsym_cmds_CXX \
16513 module_cmds_CXX \
16514 module_expsym_cmds_CXX \
16515 export_symbols_cmds_CXX \
16516 prelink_cmds_CXX; do
16517 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16518 *[\\\\\\\`\\"\\\$]*)
16519 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16520 ;;
16521 *)
16522 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16523 ;;
16524 esac
16525 done
16526
16527 ac_aux_dir='$ac_aux_dir'
16528 xsi_shell='$xsi_shell'
16529 lt_shell_append='$lt_shell_append'
16530
16531 # See if we are running on zsh, and set the options which allow our
16532 # commands through without removal of \ escapes INIT.
16533 if test -n "\${ZSH_VERSION+set}" ; then
16534 setopt NO_GLOB_SUBST
16535 fi
16536
16537
16538 PACKAGE='$PACKAGE'
16539 VERSION='$VERSION'
16540 TIMESTAMP='$TIMESTAMP'
16541 RM='$RM'
16542 ofile='$ofile'
16543
16544
16545
16546
16547
16548
16549 _ACEOF
16550
16551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16552
16553 # Handling of arguments.
16554 for ac_config_target in $ac_config_targets
16555 do
16556 case $ac_config_target in
16557 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16558 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16559 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16560 "include/gc_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/gc_config.h" ;;
16561 "include/gc_ext_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/gc_ext_config.h" ;;
16562 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16563 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16564 "threads.mk") CONFIG_FILES="$CONFIG_FILES threads.mk" ;;
16565
16566 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16567 esac
16568 done
16569
16570
16571 # If the user did not use the arguments to specify the items to instantiate,
16572 # then the envvar interface is used. Set only those that are not.
16573 # We use the long form for the default assignment because of an extremely
16574 # bizarre bug on SunOS 4.1.3.
16575 if $ac_need_defaults; then
16576 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16577 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16578 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16579 fi
16580
16581 # Have a temporary directory for convenience. Make it in the build tree
16582 # simply because there is no reason against having it here, and in addition,
16583 # creating and moving files from /tmp can sometimes cause problems.
16584 # Hook for its removal unless debugging.
16585 # Note that there is a small window in which the directory will not be cleaned:
16586 # after its creation but before its name has been assigned to `$tmp'.
16587 $debug ||
16588 {
16589 tmp=
16590 trap 'exit_status=$?
16591 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16592 ' 0
16593 trap 'as_fn_exit 1' 1 2 13 15
16594 }
16595 # Create a (secure) tmp directory for tmp files.
16596
16597 {
16598 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16599 test -n "$tmp" && test -d "$tmp"
16600 } ||
16601 {
16602 tmp=./conf$$-$RANDOM
16603 (umask 077 && mkdir "$tmp")
16604 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16605
16606 # Set up the scripts for CONFIG_FILES section.
16607 # No need to generate them if there are no CONFIG_FILES.
16608 # This happens for instance with `./config.status config.h'.
16609 if test -n "$CONFIG_FILES"; then
16610
16611
16612 ac_cr=`echo X | tr X '\015'`
16613 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16614 # But we know of no other shell where ac_cr would be empty at this
16615 # point, so we can use a bashism as a fallback.
16616 if test "x$ac_cr" = x; then
16617 eval ac_cr=\$\'\\r\'
16618 fi
16619 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16620 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16621 ac_cs_awk_cr='\r'
16622 else
16623 ac_cs_awk_cr=$ac_cr
16624 fi
16625
16626 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16627 _ACEOF
16628
16629
16630 {
16631 echo "cat >conf$$subs.awk <<_ACEOF" &&
16632 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16633 echo "_ACEOF"
16634 } >conf$$subs.sh ||
16635 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16636 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16637 ac_delim='%!_!# '
16638 for ac_last_try in false false false false false :; do
16639 . ./conf$$subs.sh ||
16640 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16641
16642 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16643 if test $ac_delim_n = $ac_delim_num; then
16644 break
16645 elif $ac_last_try; then
16646 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16647 else
16648 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16649 fi
16650 done
16651 rm -f conf$$subs.sh
16652
16653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16654 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16655 _ACEOF
16656 sed -n '
16657 h
16658 s/^/S["/; s/!.*/"]=/
16659 p
16660 g
16661 s/^[^!]*!//
16662 :repl
16663 t repl
16664 s/'"$ac_delim"'$//
16665 t delim
16666 :nl
16667 h
16668 s/\(.\{148\}\).*/\1/
16669 t more1
16670 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16671 p
16672 n
16673 b repl
16674 :more1
16675 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16676 p
16677 g
16678 s/.\{148\}//
16679 t nl
16680 :delim
16681 h
16682 s/\(.\{148\}\).*/\1/
16683 t more2
16684 s/["\\]/\\&/g; s/^/"/; s/$/"/
16685 p
16686 b
16687 :more2
16688 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16689 p
16690 g
16691 s/.\{148\}//
16692 t delim
16693 ' <conf$$subs.awk | sed '
16694 /^[^""]/{
16695 N
16696 s/\n//
16697 }
16698 ' >>$CONFIG_STATUS || ac_write_fail=1
16699 rm -f conf$$subs.awk
16700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16701 _ACAWK
16702 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16703 for (key in S) S_is_set[key] = 1
16704 FS = "\a"
16705
16706 }
16707 {
16708 line = $ 0
16709 nfields = split(line, field, "@")
16710 substed = 0
16711 len = length(field[1])
16712 for (i = 2; i < nfields; i++) {
16713 key = field[i]
16714 keylen = length(key)
16715 if (S_is_set[key]) {
16716 value = S[key]
16717 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16718 len += length(value) + length(field[++i])
16719 substed = 1
16720 } else
16721 len += 1 + keylen
16722 }
16723
16724 print line
16725 }
16726
16727 _ACAWK
16728 _ACEOF
16729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16730 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16731 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16732 else
16733 cat
16734 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16735 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16736 _ACEOF
16737
16738 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16739 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16740 # trailing colons and then remove the whole line if VPATH becomes empty
16741 # (actually we leave an empty line to preserve line numbers).
16742 if test "x$srcdir" = x.; then
16743 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16744 s/:*\$(srcdir):*/:/
16745 s/:*\${srcdir}:*/:/
16746 s/:*@srcdir@:*/:/
16747 s/^\([^=]*=[ ]*\):*/\1/
16748 s/:*$//
16749 s/^[^=]*=[ ]*$//
16750 }'
16751 fi
16752
16753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16754 fi # test -n "$CONFIG_FILES"
16755
16756 # Set up the scripts for CONFIG_HEADERS section.
16757 # No need to generate them if there are no CONFIG_HEADERS.
16758 # This happens for instance with `./config.status Makefile'.
16759 if test -n "$CONFIG_HEADERS"; then
16760 cat >"$tmp/defines.awk" <<\_ACAWK ||
16761 BEGIN {
16762 _ACEOF
16763
16764 # Transform confdefs.h into an awk script `defines.awk', embedded as
16765 # here-document in config.status, that substitutes the proper values into
16766 # config.h.in to produce config.h.
16767
16768 # Create a delimiter string that does not exist in confdefs.h, to ease
16769 # handling of long lines.
16770 ac_delim='%!_!# '
16771 for ac_last_try in false false :; do
16772 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16773 if test -z "$ac_t"; then
16774 break
16775 elif $ac_last_try; then
16776 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16777 else
16778 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16779 fi
16780 done
16781
16782 # For the awk script, D is an array of macro values keyed by name,
16783 # likewise P contains macro parameters if any. Preserve backslash
16784 # newline sequences.
16785
16786 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16787 sed -n '
16788 s/.\{148\}/&'"$ac_delim"'/g
16789 t rset
16790 :rset
16791 s/^[ ]*#[ ]*define[ ][ ]*/ /
16792 t def
16793 d
16794 :def
16795 s/\\$//
16796 t bsnl
16797 s/["\\]/\\&/g
16798 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16799 D["\1"]=" \3"/p
16800 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16801 d
16802 :bsnl
16803 s/["\\]/\\&/g
16804 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16805 D["\1"]=" \3\\\\\\n"\\/p
16806 t cont
16807 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16808 t cont
16809 d
16810 :cont
16811 n
16812 s/.\{148\}/&'"$ac_delim"'/g
16813 t clear
16814 :clear
16815 s/\\$//
16816 t bsnlc
16817 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16818 d
16819 :bsnlc
16820 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16821 b cont
16822 ' <confdefs.h | sed '
16823 s/'"$ac_delim"'/"\\\
16824 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16825
16826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16827 for (key in D) D_is_set[key] = 1
16828 FS = "\a"
16829 }
16830 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16831 line = \$ 0
16832 split(line, arg, " ")
16833 if (arg[1] == "#") {
16834 defundef = arg[2]
16835 mac1 = arg[3]
16836 } else {
16837 defundef = substr(arg[1], 2)
16838 mac1 = arg[2]
16839 }
16840 split(mac1, mac2, "(") #)
16841 macro = mac2[1]
16842 prefix = substr(line, 1, index(line, defundef) - 1)
16843 if (D_is_set[macro]) {
16844 # Preserve the white space surrounding the "#".
16845 print prefix "define", macro P[macro] D[macro]
16846 next
16847 } else {
16848 # Replace #undef with comments. This is necessary, for example,
16849 # in the case of _POSIX_SOURCE, which is predefined and required
16850 # on some systems where configure will not decide to define it.
16851 if (defundef == "undef") {
16852 print "/*", prefix defundef, macro, "*/"
16853 next
16854 }
16855 }
16856 }
16857 { print }
16858 _ACAWK
16859 _ACEOF
16860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16861 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16862 fi # test -n "$CONFIG_HEADERS"
16863
16864
16865 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16866 shift
16867 for ac_tag
16868 do
16869 case $ac_tag in
16870 :[FHLC]) ac_mode=$ac_tag; continue;;
16871 esac
16872 case $ac_mode$ac_tag in
16873 :[FHL]*:*);;
16874 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16875 :[FH]-) ac_tag=-:-;;
16876 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16877 esac
16878 ac_save_IFS=$IFS
16879 IFS=:
16880 set x $ac_tag
16881 IFS=$ac_save_IFS
16882 shift
16883 ac_file=$1
16884 shift
16885
16886 case $ac_mode in
16887 :L) ac_source=$1;;
16888 :[FH])
16889 ac_file_inputs=
16890 for ac_f
16891 do
16892 case $ac_f in
16893 -) ac_f="$tmp/stdin";;
16894 *) # Look for the file first in the build tree, then in the source tree
16895 # (if the path is not absolute). The absolute path cannot be DOS-style,
16896 # because $ac_f cannot contain `:'.
16897 test -f "$ac_f" ||
16898 case $ac_f in
16899 [\\/$]*) false;;
16900 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16901 esac ||
16902 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16903 esac
16904 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16905 as_fn_append ac_file_inputs " '$ac_f'"
16906 done
16907
16908 # Let's still pretend it is `configure' which instantiates (i.e., don't
16909 # use $as_me), people would be surprised to read:
16910 # /* config.h. Generated by config.status. */
16911 configure_input='Generated from '`
16912 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16913 `' by configure.'
16914 if test x"$ac_file" != x-; then
16915 configure_input="$ac_file. $configure_input"
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16917 $as_echo "$as_me: creating $ac_file" >&6;}
16918 fi
16919 # Neutralize special characters interpreted by sed in replacement strings.
16920 case $configure_input in #(
16921 *\&* | *\|* | *\\* )
16922 ac_sed_conf_input=`$as_echo "$configure_input" |
16923 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16924 *) ac_sed_conf_input=$configure_input;;
16925 esac
16926
16927 case $ac_tag in
16928 *:-:* | *:-) cat >"$tmp/stdin" \
16929 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16930 esac
16931 ;;
16932 esac
16933
16934 ac_dir=`$as_dirname -- "$ac_file" ||
16935 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16936 X"$ac_file" : 'X\(//\)[^/]' \| \
16937 X"$ac_file" : 'X\(//\)$' \| \
16938 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16939 $as_echo X"$ac_file" |
16940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16941 s//\1/
16942 q
16943 }
16944 /^X\(\/\/\)[^/].*/{
16945 s//\1/
16946 q
16947 }
16948 /^X\(\/\/\)$/{
16949 s//\1/
16950 q
16951 }
16952 /^X\(\/\).*/{
16953 s//\1/
16954 q
16955 }
16956 s/.*/./; q'`
16957 as_dir="$ac_dir"; as_fn_mkdir_p
16958 ac_builddir=.
16959
16960 case "$ac_dir" in
16961 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16962 *)
16963 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16964 # A ".." for each directory in $ac_dir_suffix.
16965 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16966 case $ac_top_builddir_sub in
16967 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16968 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16969 esac ;;
16970 esac
16971 ac_abs_top_builddir=$ac_pwd
16972 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16973 # for backward compatibility:
16974 ac_top_builddir=$ac_top_build_prefix
16975
16976 case $srcdir in
16977 .) # We are building in place.
16978 ac_srcdir=.
16979 ac_top_srcdir=$ac_top_builddir_sub
16980 ac_abs_top_srcdir=$ac_pwd ;;
16981 [\\/]* | ?:[\\/]* ) # Absolute name.
16982 ac_srcdir=$srcdir$ac_dir_suffix;
16983 ac_top_srcdir=$srcdir
16984 ac_abs_top_srcdir=$srcdir ;;
16985 *) # Relative name.
16986 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16987 ac_top_srcdir=$ac_top_build_prefix$srcdir
16988 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16989 esac
16990 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16991
16992
16993 case $ac_mode in
16994 :F)
16995 #
16996 # CONFIG_FILE
16997 #
16998
16999 case $INSTALL in
17000 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17001 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17002 esac
17003 ac_MKDIR_P=$MKDIR_P
17004 case $MKDIR_P in
17005 [\\/$]* | ?:[\\/]* ) ;;
17006 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17007 esac
17008 _ACEOF
17009
17010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17011 # If the template does not know about datarootdir, expand it.
17012 # FIXME: This hack should be removed a few years after 2.60.
17013 ac_datarootdir_hack=; ac_datarootdir_seen=
17014 ac_sed_dataroot='
17015 /datarootdir/ {
17016 p
17017 q
17018 }
17019 /@datadir@/p
17020 /@docdir@/p
17021 /@infodir@/p
17022 /@localedir@/p
17023 /@mandir@/p'
17024 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17025 *datarootdir*) ac_datarootdir_seen=yes;;
17026 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17028 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17029 _ACEOF
17030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17031 ac_datarootdir_hack='
17032 s&@datadir@&$datadir&g
17033 s&@docdir@&$docdir&g
17034 s&@infodir@&$infodir&g
17035 s&@localedir@&$localedir&g
17036 s&@mandir@&$mandir&g
17037 s&\\\${datarootdir}&$datarootdir&g' ;;
17038 esac
17039 _ACEOF
17040
17041 # Neutralize VPATH when `$srcdir' = `.'.
17042 # Shell code in configure.ac might set extrasub.
17043 # FIXME: do we really want to maintain this feature?
17044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17045 ac_sed_extra="$ac_vpsub
17046 $extrasub
17047 _ACEOF
17048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17049 :t
17050 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17051 s|@configure_input@|$ac_sed_conf_input|;t t
17052 s&@top_builddir@&$ac_top_builddir_sub&;t t
17053 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17054 s&@srcdir@&$ac_srcdir&;t t
17055 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17056 s&@top_srcdir@&$ac_top_srcdir&;t t
17057 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17058 s&@builddir@&$ac_builddir&;t t
17059 s&@abs_builddir@&$ac_abs_builddir&;t t
17060 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17061 s&@INSTALL@&$ac_INSTALL&;t t
17062 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17063 $ac_datarootdir_hack
17064 "
17065 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17066 || as_fn_error "could not create $ac_file" "$LINENO" 5
17067
17068 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17069 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17070 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17072 which seems to be undefined. Please make sure it is defined." >&5
17073 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17074 which seems to be undefined. Please make sure it is defined." >&2;}
17075
17076 rm -f "$tmp/stdin"
17077 case $ac_file in
17078 -) cat "$tmp/out" && rm -f "$tmp/out";;
17079 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17080 esac \
17081 || as_fn_error "could not create $ac_file" "$LINENO" 5
17082 ;;
17083 :H)
17084 #
17085 # CONFIG_HEADER
17086 #
17087 if test x"$ac_file" != x-; then
17088 {
17089 $as_echo "/* $configure_input */" \
17090 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17091 } >"$tmp/config.h" \
17092 || as_fn_error "could not create $ac_file" "$LINENO" 5
17093 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17095 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17096 else
17097 rm -f "$ac_file"
17098 mv "$tmp/config.h" "$ac_file" \
17099 || as_fn_error "could not create $ac_file" "$LINENO" 5
17100 fi
17101 else
17102 $as_echo "/* $configure_input */" \
17103 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17104 || as_fn_error "could not create -" "$LINENO" 5
17105 fi
17106 # Compute "$ac_file"'s index in $config_headers.
17107 _am_arg="$ac_file"
17108 _am_stamp_count=1
17109 for _am_header in $config_headers :; do
17110 case $_am_header in
17111 $_am_arg | $_am_arg:* )
17112 break ;;
17113 * )
17114 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17115 esac
17116 done
17117 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17118 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17119 X"$_am_arg" : 'X\(//\)[^/]' \| \
17120 X"$_am_arg" : 'X\(//\)$' \| \
17121 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17122 $as_echo X"$_am_arg" |
17123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17124 s//\1/
17125 q
17126 }
17127 /^X\(\/\/\)[^/].*/{
17128 s//\1/
17129 q
17130 }
17131 /^X\(\/\/\)$/{
17132 s//\1/
17133 q
17134 }
17135 /^X\(\/\).*/{
17136 s//\1/
17137 q
17138 }
17139 s/.*/./; q'`/stamp-h$_am_stamp_count
17140 ;;
17141
17142 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17143 $as_echo "$as_me: executing $ac_file commands" >&6;}
17144 ;;
17145 esac
17146
17147
17148 case $ac_file$ac_mode in
17149 "default-1":C)
17150 # Only add multilib support code if we just rebuilt the top-level
17151 # Makefile.
17152 case " $CONFIG_FILES " in
17153 *" Makefile "*)
17154 ac_file=Makefile . ${multi_basedir}/config-ml.in
17155 ;;
17156 esac ;;
17157 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17158 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17159 # are listed without --file. Let's play safe and only enable the eval
17160 # if we detect the quoting.
17161 case $CONFIG_FILES in
17162 *\'*) eval set x "$CONFIG_FILES" ;;
17163 *) set x $CONFIG_FILES ;;
17164 esac
17165 shift
17166 for mf
17167 do
17168 # Strip MF so we end up with the name of the file.
17169 mf=`echo "$mf" | sed -e 's/:.*$//'`
17170 # Check whether this is an Automake generated Makefile or not.
17171 # We used to match only the files named `Makefile.in', but
17172 # some people rename them; so instead we look at the file content.
17173 # Grep'ing the first line is not enough: some people post-process
17174 # each Makefile.in and add a new line on top of each file to say so.
17175 # Grep'ing the whole file is not good either: AIX grep has a line
17176 # limit of 2048, but all sed's we know have understand at least 4000.
17177 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17178 dirpart=`$as_dirname -- "$mf" ||
17179 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17180 X"$mf" : 'X\(//\)[^/]' \| \
17181 X"$mf" : 'X\(//\)$' \| \
17182 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17183 $as_echo X"$mf" |
17184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17185 s//\1/
17186 q
17187 }
17188 /^X\(\/\/\)[^/].*/{
17189 s//\1/
17190 q
17191 }
17192 /^X\(\/\/\)$/{
17193 s//\1/
17194 q
17195 }
17196 /^X\(\/\).*/{
17197 s//\1/
17198 q
17199 }
17200 s/.*/./; q'`
17201 else
17202 continue
17203 fi
17204 # Extract the definition of DEPDIR, am__include, and am__quote
17205 # from the Makefile without running `make'.
17206 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17207 test -z "$DEPDIR" && continue
17208 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17209 test -z "am__include" && continue
17210 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17211 # When using ansi2knr, U may be empty or an underscore; expand it
17212 U=`sed -n 's/^U = //p' < "$mf"`
17213 # Find all dependency output files, they are included files with
17214 # $(DEPDIR) in their names. We invoke sed twice because it is the
17215 # simplest approach to changing $(DEPDIR) to its actual value in the
17216 # expansion.
17217 for file in `sed -n "
17218 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17219 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17220 # Make sure the directory exists.
17221 test -f "$dirpart/$file" && continue
17222 fdir=`$as_dirname -- "$file" ||
17223 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17224 X"$file" : 'X\(//\)[^/]' \| \
17225 X"$file" : 'X\(//\)$' \| \
17226 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17227 $as_echo X"$file" |
17228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17229 s//\1/
17230 q
17231 }
17232 /^X\(\/\/\)[^/].*/{
17233 s//\1/
17234 q
17235 }
17236 /^X\(\/\/\)$/{
17237 s//\1/
17238 q
17239 }
17240 /^X\(\/\).*/{
17241 s//\1/
17242 q
17243 }
17244 s/.*/./; q'`
17245 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17246 # echo "creating $dirpart/$file"
17247 echo '# dummy' > "$dirpart/$file"
17248 done
17249 done
17250 }
17251 ;;
17252 "libtool":C)
17253
17254 # See if we are running on zsh, and set the options which allow our
17255 # commands through without removal of \ escapes.
17256 if test -n "${ZSH_VERSION+set}" ; then
17257 setopt NO_GLOB_SUBST
17258 fi
17259
17260 cfgfile="${ofile}T"
17261 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17262 $RM "$cfgfile"
17263
17264 cat <<_LT_EOF >> "$cfgfile"
17265 #! $SHELL
17266
17267 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17268 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17269 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17270 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17271 #
17272 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17273 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17274 # Written by Gordon Matzigkeit, 1996
17275 #
17276 # This file is part of GNU Libtool.
17277 #
17278 # GNU Libtool is free software; you can redistribute it and/or
17279 # modify it under the terms of the GNU General Public License as
17280 # published by the Free Software Foundation; either version 2 of
17281 # the License, or (at your option) any later version.
17282 #
17283 # As a special exception to the GNU General Public License,
17284 # if you distribute this file as part of a program or library that
17285 # is built using GNU Libtool, you may include this file under the
17286 # same distribution terms that you use for the rest of that program.
17287 #
17288 # GNU Libtool is distributed in the hope that it will be useful,
17289 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17290 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17291 # GNU General Public License for more details.
17292 #
17293 # You should have received a copy of the GNU General Public License
17294 # along with GNU Libtool; see the file COPYING. If not, a copy
17295 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17296 # obtained by writing to the Free Software Foundation, Inc.,
17297 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17298
17299
17300 # The names of the tagged configurations supported by this script.
17301 available_tags="CXX "
17302
17303 # ### BEGIN LIBTOOL CONFIG
17304
17305 # Which release of libtool.m4 was used?
17306 macro_version=$macro_version
17307 macro_revision=$macro_revision
17308
17309 # Whether or not to build shared libraries.
17310 build_libtool_libs=$enable_shared
17311
17312 # Whether or not to build static libraries.
17313 build_old_libs=$enable_static
17314
17315 # What type of objects to build.
17316 pic_mode=$pic_mode
17317
17318 # Whether or not to optimize for fast installation.
17319 fast_install=$enable_fast_install
17320
17321 # Shell to use when invoking shell scripts.
17322 SHELL=$lt_SHELL
17323
17324 # An echo program that protects backslashes.
17325 ECHO=$lt_ECHO
17326
17327 # The host system.
17328 host_alias=$host_alias
17329 host=$host
17330 host_os=$host_os
17331
17332 # The build system.
17333 build_alias=$build_alias
17334 build=$build
17335 build_os=$build_os
17336
17337 # A sed program that does not truncate output.
17338 SED=$lt_SED
17339
17340 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17341 Xsed="\$SED -e 1s/^X//"
17342
17343 # A grep program that handles long lines.
17344 GREP=$lt_GREP
17345
17346 # An ERE matcher.
17347 EGREP=$lt_EGREP
17348
17349 # A literal string matcher.
17350 FGREP=$lt_FGREP
17351
17352 # A BSD- or MS-compatible name lister.
17353 NM=$lt_NM
17354
17355 # Whether we need soft or hard links.
17356 LN_S=$lt_LN_S
17357
17358 # What is the maximum length of a command?
17359 max_cmd_len=$max_cmd_len
17360
17361 # Object file suffix (normally "o").
17362 objext=$ac_objext
17363
17364 # Executable file suffix (normally "").
17365 exeext=$exeext
17366
17367 # whether the shell understands "unset".
17368 lt_unset=$lt_unset
17369
17370 # turn spaces into newlines.
17371 SP2NL=$lt_lt_SP2NL
17372
17373 # turn newlines into spaces.
17374 NL2SP=$lt_lt_NL2SP
17375
17376 # An object symbol dumper.
17377 OBJDUMP=$lt_OBJDUMP
17378
17379 # Method to check whether dependent libraries are shared objects.
17380 deplibs_check_method=$lt_deplibs_check_method
17381
17382 # Command to use when deplibs_check_method == "file_magic".
17383 file_magic_cmd=$lt_file_magic_cmd
17384
17385 # The archiver.
17386 AR=$lt_AR
17387 AR_FLAGS=$lt_AR_FLAGS
17388
17389 # A symbol stripping program.
17390 STRIP=$lt_STRIP
17391
17392 # Commands used to install an old-style archive.
17393 RANLIB=$lt_RANLIB
17394 old_postinstall_cmds=$lt_old_postinstall_cmds
17395 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17396
17397 # Whether to use a lock for old archive extraction.
17398 lock_old_archive_extraction=$lock_old_archive_extraction
17399
17400 # A C compiler.
17401 LTCC=$lt_CC
17402
17403 # LTCC compiler flags.
17404 LTCFLAGS=$lt_CFLAGS
17405
17406 # Take the output of nm and produce a listing of raw symbols and C names.
17407 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17408
17409 # Transform the output of nm in a proper C declaration.
17410 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17411
17412 # Transform the output of nm in a C name address pair.
17413 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17414
17415 # Transform the output of nm in a C name address pair when lib prefix is needed.
17416 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17417
17418 # The name of the directory that contains temporary libtool files.
17419 objdir=$objdir
17420
17421 # Used to examine libraries when file_magic_cmd begins with "file".
17422 MAGIC_CMD=$MAGIC_CMD
17423
17424 # Must we lock files when doing compilation?
17425 need_locks=$lt_need_locks
17426
17427 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17428 DSYMUTIL=$lt_DSYMUTIL
17429
17430 # Tool to change global to local symbols on Mac OS X.
17431 NMEDIT=$lt_NMEDIT
17432
17433 # Tool to manipulate fat objects and archives on Mac OS X.
17434 LIPO=$lt_LIPO
17435
17436 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17437 OTOOL=$lt_OTOOL
17438
17439 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17440 OTOOL64=$lt_OTOOL64
17441
17442 # Old archive suffix (normally "a").
17443 libext=$libext
17444
17445 # Shared library suffix (normally ".so").
17446 shrext_cmds=$lt_shrext_cmds
17447
17448 # The commands to extract the exported symbol list from a shared archive.
17449 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17450
17451 # Variables whose values should be saved in libtool wrapper scripts and
17452 # restored at link time.
17453 variables_saved_for_relink=$lt_variables_saved_for_relink
17454
17455 # Do we need the "lib" prefix for modules?
17456 need_lib_prefix=$need_lib_prefix
17457
17458 # Do we need a version for libraries?
17459 need_version=$need_version
17460
17461 # Library versioning type.
17462 version_type=$version_type
17463
17464 # Shared library runtime path variable.
17465 runpath_var=$runpath_var
17466
17467 # Shared library path variable.
17468 shlibpath_var=$shlibpath_var
17469
17470 # Is shlibpath searched before the hard-coded library search path?
17471 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17472
17473 # Format of library name prefix.
17474 libname_spec=$lt_libname_spec
17475
17476 # List of archive names. First name is the real one, the rest are links.
17477 # The last name is the one that the linker finds with -lNAME
17478 library_names_spec=$lt_library_names_spec
17479
17480 # The coded name of the library, if different from the real name.
17481 soname_spec=$lt_soname_spec
17482
17483 # Permission mode override for installation of shared libraries.
17484 install_override_mode=$lt_install_override_mode
17485
17486 # Command to use after installation of a shared archive.
17487 postinstall_cmds=$lt_postinstall_cmds
17488
17489 # Command to use after uninstallation of a shared archive.
17490 postuninstall_cmds=$lt_postuninstall_cmds
17491
17492 # Commands used to finish a libtool library installation in a directory.
17493 finish_cmds=$lt_finish_cmds
17494
17495 # As "finish_cmds", except a single script fragment to be evaled but
17496 # not shown.
17497 finish_eval=$lt_finish_eval
17498
17499 # Whether we should hardcode library paths into libraries.
17500 hardcode_into_libs=$hardcode_into_libs
17501
17502 # Compile-time system search path for libraries.
17503 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17504
17505 # Run-time system search path for libraries.
17506 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17507
17508 # Whether dlopen is supported.
17509 dlopen_support=$enable_dlopen
17510
17511 # Whether dlopen of programs is supported.
17512 dlopen_self=$enable_dlopen_self
17513
17514 # Whether dlopen of statically linked programs is supported.
17515 dlopen_self_static=$enable_dlopen_self_static
17516
17517 # Commands to strip libraries.
17518 old_striplib=$lt_old_striplib
17519 striplib=$lt_striplib
17520
17521
17522 # The linker used to build libraries.
17523 LD=$lt_LD
17524
17525 # How to create reloadable object files.
17526 reload_flag=$lt_reload_flag
17527 reload_cmds=$lt_reload_cmds
17528
17529 # Commands used to build an old-style archive.
17530 old_archive_cmds=$lt_old_archive_cmds
17531
17532 # A language specific compiler.
17533 CC=$lt_compiler
17534
17535 # Is the compiler the GNU compiler?
17536 with_gcc=$GCC
17537
17538 # Compiler flag to turn off builtin functions.
17539 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17540
17541 # How to pass a linker flag through the compiler.
17542 wl=$lt_lt_prog_compiler_wl
17543
17544 # Additional compiler flags for building library objects.
17545 pic_flag=$lt_lt_prog_compiler_pic
17546
17547 # Compiler flag to prevent dynamic linking.
17548 link_static_flag=$lt_lt_prog_compiler_static
17549
17550 # Does compiler simultaneously support -c and -o options?
17551 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17552
17553 # Whether or not to add -lc for building shared libraries.
17554 build_libtool_need_lc=$archive_cmds_need_lc
17555
17556 # Whether or not to disallow shared libs when runtime libs are static.
17557 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17558
17559 # Compiler flag to allow reflexive dlopens.
17560 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17561
17562 # Compiler flag to generate shared objects directly from archives.
17563 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17564
17565 # Whether the compiler copes with passing no objects directly.
17566 compiler_needs_object=$lt_compiler_needs_object
17567
17568 # Create an old-style archive from a shared archive.
17569 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17570
17571 # Create a temporary old-style archive to link instead of a shared archive.
17572 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17573
17574 # Commands used to build a shared archive.
17575 archive_cmds=$lt_archive_cmds
17576 archive_expsym_cmds=$lt_archive_expsym_cmds
17577
17578 # Commands used to build a loadable module if different from building
17579 # a shared archive.
17580 module_cmds=$lt_module_cmds
17581 module_expsym_cmds=$lt_module_expsym_cmds
17582
17583 # Whether we are building with GNU ld or not.
17584 with_gnu_ld=$lt_with_gnu_ld
17585
17586 # Flag that allows shared libraries with undefined symbols to be built.
17587 allow_undefined_flag=$lt_allow_undefined_flag
17588
17589 # Flag that enforces no undefined symbols.
17590 no_undefined_flag=$lt_no_undefined_flag
17591
17592 # Flag to hardcode \$libdir into a binary during linking.
17593 # This must work even if \$libdir does not exist
17594 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17595
17596 # If ld is used when linking, flag to hardcode \$libdir into a binary
17597 # during linking. This must work even if \$libdir does not exist.
17598 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17599
17600 # Whether we need a single "-rpath" flag with a separated argument.
17601 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17602
17603 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17604 # DIR into the resulting binary.
17605 hardcode_direct=$hardcode_direct
17606
17607 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17608 # DIR into the resulting binary and the resulting library dependency is
17609 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17610 # library is relocated.
17611 hardcode_direct_absolute=$hardcode_direct_absolute
17612
17613 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17614 # into the resulting binary.
17615 hardcode_minus_L=$hardcode_minus_L
17616
17617 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17618 # into the resulting binary.
17619 hardcode_shlibpath_var=$hardcode_shlibpath_var
17620
17621 # Set to "yes" if building a shared library automatically hardcodes DIR
17622 # into the library and all subsequent libraries and executables linked
17623 # against it.
17624 hardcode_automatic=$hardcode_automatic
17625
17626 # Set to yes if linker adds runtime paths of dependent libraries
17627 # to runtime path list.
17628 inherit_rpath=$inherit_rpath
17629
17630 # Whether libtool must link a program against all its dependency libraries.
17631 link_all_deplibs=$link_all_deplibs
17632
17633 # Fix the shell variable \$srcfile for the compiler.
17634 fix_srcfile_path=$lt_fix_srcfile_path
17635
17636 # Set to "yes" if exported symbols are required.
17637 always_export_symbols=$always_export_symbols
17638
17639 # The commands to list exported symbols.
17640 export_symbols_cmds=$lt_export_symbols_cmds
17641
17642 # Symbols that should not be listed in the preloaded symbols.
17643 exclude_expsyms=$lt_exclude_expsyms
17644
17645 # Symbols that must always be exported.
17646 include_expsyms=$lt_include_expsyms
17647
17648 # Commands necessary for linking programs (against libraries) with templates.
17649 prelink_cmds=$lt_prelink_cmds
17650
17651 # Specify filename containing input files.
17652 file_list_spec=$lt_file_list_spec
17653
17654 # How to hardcode a shared library path into an executable.
17655 hardcode_action=$hardcode_action
17656
17657 # The directories searched by this compiler when creating a shared library.
17658 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17659
17660 # Dependencies to place before and after the objects being linked to
17661 # create a shared library.
17662 predep_objects=$lt_predep_objects
17663 postdep_objects=$lt_postdep_objects
17664 predeps=$lt_predeps
17665 postdeps=$lt_postdeps
17666
17667 # The library search path used internally by the compiler when linking
17668 # a shared library.
17669 compiler_lib_search_path=$lt_compiler_lib_search_path
17670
17671 # ### END LIBTOOL CONFIG
17672
17673 _LT_EOF
17674
17675 case $host_os in
17676 aix3*)
17677 cat <<\_LT_EOF >> "$cfgfile"
17678 # AIX sometimes has problems with the GCC collect2 program. For some
17679 # reason, if we set the COLLECT_NAMES environment variable, the problems
17680 # vanish in a puff of smoke.
17681 if test "X${COLLECT_NAMES+set}" != Xset; then
17682 COLLECT_NAMES=
17683 export COLLECT_NAMES
17684 fi
17685 _LT_EOF
17686 ;;
17687 esac
17688
17689
17690 ltmain="$ac_aux_dir/ltmain.sh"
17691
17692
17693 # We use sed instead of cat because bash on DJGPP gets confused if
17694 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17695 # text mode, it properly converts lines to CR/LF. This bash problem
17696 # is reportedly fixed, but why not run on old versions too?
17697 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17698 || (rm -f "$cfgfile"; exit 1)
17699
17700 case $xsi_shell in
17701 yes)
17702 cat << \_LT_EOF >> "$cfgfile"
17703
17704 # func_dirname file append nondir_replacement
17705 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17706 # otherwise set result to NONDIR_REPLACEMENT.
17707 func_dirname ()
17708 {
17709 case ${1} in
17710 */*) func_dirname_result="${1%/*}${2}" ;;
17711 * ) func_dirname_result="${3}" ;;
17712 esac
17713 }
17714
17715 # func_basename file
17716 func_basename ()
17717 {
17718 func_basename_result="${1##*/}"
17719 }
17720
17721 # func_dirname_and_basename file append nondir_replacement
17722 # perform func_basename and func_dirname in a single function
17723 # call:
17724 # dirname: Compute the dirname of FILE. If nonempty,
17725 # add APPEND to the result, otherwise set result
17726 # to NONDIR_REPLACEMENT.
17727 # value returned in "$func_dirname_result"
17728 # basename: Compute filename of FILE.
17729 # value retuned in "$func_basename_result"
17730 # Implementation must be kept synchronized with func_dirname
17731 # and func_basename. For efficiency, we do not delegate to
17732 # those functions but instead duplicate the functionality here.
17733 func_dirname_and_basename ()
17734 {
17735 case ${1} in
17736 */*) func_dirname_result="${1%/*}${2}" ;;
17737 * ) func_dirname_result="${3}" ;;
17738 esac
17739 func_basename_result="${1##*/}"
17740 }
17741
17742 # func_stripname prefix suffix name
17743 # strip PREFIX and SUFFIX off of NAME.
17744 # PREFIX and SUFFIX must not contain globbing or regex special
17745 # characters, hashes, percent signs, but SUFFIX may contain a leading
17746 # dot (in which case that matches only a dot).
17747 func_stripname ()
17748 {
17749 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17750 # positional parameters, so assign one to ordinary parameter first.
17751 func_stripname_result=${3}
17752 func_stripname_result=${func_stripname_result#"${1}"}
17753 func_stripname_result=${func_stripname_result%"${2}"}
17754 }
17755
17756 # func_opt_split
17757 func_opt_split ()
17758 {
17759 func_opt_split_opt=${1%%=*}
17760 func_opt_split_arg=${1#*=}
17761 }
17762
17763 # func_lo2o object
17764 func_lo2o ()
17765 {
17766 case ${1} in
17767 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17768 *) func_lo2o_result=${1} ;;
17769 esac
17770 }
17771
17772 # func_xform libobj-or-source
17773 func_xform ()
17774 {
17775 func_xform_result=${1%.*}.lo
17776 }
17777
17778 # func_arith arithmetic-term...
17779 func_arith ()
17780 {
17781 func_arith_result=$(( $* ))
17782 }
17783
17784 # func_len string
17785 # STRING may not start with a hyphen.
17786 func_len ()
17787 {
17788 func_len_result=${#1}
17789 }
17790
17791 _LT_EOF
17792 ;;
17793 *) # Bourne compatible functions.
17794 cat << \_LT_EOF >> "$cfgfile"
17795
17796 # func_dirname file append nondir_replacement
17797 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17798 # otherwise set result to NONDIR_REPLACEMENT.
17799 func_dirname ()
17800 {
17801 # Extract subdirectory from the argument.
17802 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17803 if test "X$func_dirname_result" = "X${1}"; then
17804 func_dirname_result="${3}"
17805 else
17806 func_dirname_result="$func_dirname_result${2}"
17807 fi
17808 }
17809
17810 # func_basename file
17811 func_basename ()
17812 {
17813 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17814 }
17815
17816
17817 # func_stripname prefix suffix name
17818 # strip PREFIX and SUFFIX off of NAME.
17819 # PREFIX and SUFFIX must not contain globbing or regex special
17820 # characters, hashes, percent signs, but SUFFIX may contain a leading
17821 # dot (in which case that matches only a dot).
17822 # func_strip_suffix prefix name
17823 func_stripname ()
17824 {
17825 case ${2} in
17826 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17827 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17828 esac
17829 }
17830
17831 # sed scripts:
17832 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17833 my_sed_long_arg='1s/^-[^=]*=//'
17834
17835 # func_opt_split
17836 func_opt_split ()
17837 {
17838 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17839 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17840 }
17841
17842 # func_lo2o object
17843 func_lo2o ()
17844 {
17845 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17846 }
17847
17848 # func_xform libobj-or-source
17849 func_xform ()
17850 {
17851 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17852 }
17853
17854 # func_arith arithmetic-term...
17855 func_arith ()
17856 {
17857 func_arith_result=`expr "$@"`
17858 }
17859
17860 # func_len string
17861 # STRING may not start with a hyphen.
17862 func_len ()
17863 {
17864 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17865 }
17866
17867 _LT_EOF
17868 esac
17869
17870 case $lt_shell_append in
17871 yes)
17872 cat << \_LT_EOF >> "$cfgfile"
17873
17874 # func_append var value
17875 # Append VALUE to the end of shell variable VAR.
17876 func_append ()
17877 {
17878 eval "$1+=\$2"
17879 }
17880 _LT_EOF
17881 ;;
17882 *)
17883 cat << \_LT_EOF >> "$cfgfile"
17884
17885 # func_append var value
17886 # Append VALUE to the end of shell variable VAR.
17887 func_append ()
17888 {
17889 eval "$1=\$$1\$2"
17890 }
17891
17892 _LT_EOF
17893 ;;
17894 esac
17895
17896
17897 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17898 || (rm -f "$cfgfile"; exit 1)
17899
17900 mv -f "$cfgfile" "$ofile" ||
17901 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17902 chmod +x "$ofile"
17903
17904
17905 cat <<_LT_EOF >> "$ofile"
17906
17907 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17908
17909 # The linker used to build libraries.
17910 LD=$lt_LD_CXX
17911
17912 # How to create reloadable object files.
17913 reload_flag=$lt_reload_flag_CXX
17914 reload_cmds=$lt_reload_cmds_CXX
17915
17916 # Commands used to build an old-style archive.
17917 old_archive_cmds=$lt_old_archive_cmds_CXX
17918
17919 # A language specific compiler.
17920 CC=$lt_compiler_CXX
17921
17922 # Is the compiler the GNU compiler?
17923 with_gcc=$GCC_CXX
17924
17925 # Compiler flag to turn off builtin functions.
17926 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17927
17928 # How to pass a linker flag through the compiler.
17929 wl=$lt_lt_prog_compiler_wl_CXX
17930
17931 # Additional compiler flags for building library objects.
17932 pic_flag=$lt_lt_prog_compiler_pic_CXX
17933
17934 # Compiler flag to prevent dynamic linking.
17935 link_static_flag=$lt_lt_prog_compiler_static_CXX
17936
17937 # Does compiler simultaneously support -c and -o options?
17938 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17939
17940 # Whether or not to add -lc for building shared libraries.
17941 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17942
17943 # Whether or not to disallow shared libs when runtime libs are static.
17944 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17945
17946 # Compiler flag to allow reflexive dlopens.
17947 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17948
17949 # Compiler flag to generate shared objects directly from archives.
17950 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17951
17952 # Whether the compiler copes with passing no objects directly.
17953 compiler_needs_object=$lt_compiler_needs_object_CXX
17954
17955 # Create an old-style archive from a shared archive.
17956 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17957
17958 # Create a temporary old-style archive to link instead of a shared archive.
17959 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17960
17961 # Commands used to build a shared archive.
17962 archive_cmds=$lt_archive_cmds_CXX
17963 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17964
17965 # Commands used to build a loadable module if different from building
17966 # a shared archive.
17967 module_cmds=$lt_module_cmds_CXX
17968 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17969
17970 # Whether we are building with GNU ld or not.
17971 with_gnu_ld=$lt_with_gnu_ld_CXX
17972
17973 # Flag that allows shared libraries with undefined symbols to be built.
17974 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17975
17976 # Flag that enforces no undefined symbols.
17977 no_undefined_flag=$lt_no_undefined_flag_CXX
17978
17979 # Flag to hardcode \$libdir into a binary during linking.
17980 # This must work even if \$libdir does not exist
17981 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17982
17983 # If ld is used when linking, flag to hardcode \$libdir into a binary
17984 # during linking. This must work even if \$libdir does not exist.
17985 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17986
17987 # Whether we need a single "-rpath" flag with a separated argument.
17988 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17989
17990 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17991 # DIR into the resulting binary.
17992 hardcode_direct=$hardcode_direct_CXX
17993
17994 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17995 # DIR into the resulting binary and the resulting library dependency is
17996 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17997 # library is relocated.
17998 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17999
18000 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18001 # into the resulting binary.
18002 hardcode_minus_L=$hardcode_minus_L_CXX
18003
18004 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18005 # into the resulting binary.
18006 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18007
18008 # Set to "yes" if building a shared library automatically hardcodes DIR
18009 # into the library and all subsequent libraries and executables linked
18010 # against it.
18011 hardcode_automatic=$hardcode_automatic_CXX
18012
18013 # Set to yes if linker adds runtime paths of dependent libraries
18014 # to runtime path list.
18015 inherit_rpath=$inherit_rpath_CXX
18016
18017 # Whether libtool must link a program against all its dependency libraries.
18018 link_all_deplibs=$link_all_deplibs_CXX
18019
18020 # Fix the shell variable \$srcfile for the compiler.
18021 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18022
18023 # Set to "yes" if exported symbols are required.
18024 always_export_symbols=$always_export_symbols_CXX
18025
18026 # The commands to list exported symbols.
18027 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18028
18029 # Symbols that should not be listed in the preloaded symbols.
18030 exclude_expsyms=$lt_exclude_expsyms_CXX
18031
18032 # Symbols that must always be exported.
18033 include_expsyms=$lt_include_expsyms_CXX
18034
18035 # Commands necessary for linking programs (against libraries) with templates.
18036 prelink_cmds=$lt_prelink_cmds_CXX
18037
18038 # Specify filename containing input files.
18039 file_list_spec=$lt_file_list_spec_CXX
18040
18041 # How to hardcode a shared library path into an executable.
18042 hardcode_action=$hardcode_action_CXX
18043
18044 # The directories searched by this compiler when creating a shared library.
18045 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18046
18047 # Dependencies to place before and after the objects being linked to
18048 # create a shared library.
18049 predep_objects=$lt_predep_objects_CXX
18050 postdep_objects=$lt_postdep_objects_CXX
18051 predeps=$lt_predeps_CXX
18052 postdeps=$lt_postdeps_CXX
18053
18054 # The library search path used internally by the compiler when linking
18055 # a shared library.
18056 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18057
18058 # ### END LIBTOOL TAG CONFIG: CXX
18059 _LT_EOF
18060
18061 ;;
18062
18063 esac
18064 done # for ac_tag
18065
18066
18067 as_fn_exit 0
18068 _ACEOF
18069 ac_clean_files=$ac_clean_files_save
18070
18071 test $ac_write_fail = 0 ||
18072 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18073
18074
18075 # configure is writing to config.log, and then calls config.status.
18076 # config.status does its own redirection, appending to config.log.
18077 # Unfortunately, on DOS this fails, as config.log is still kept open
18078 # by configure, so config.status won't be able to write to it; its
18079 # output is simply discarded. So we exec the FD to /dev/null,
18080 # effectively closing config.log, so it can be properly (re)opened and
18081 # appended to by config.status. When coming back to configure, we
18082 # need to make the FD available again.
18083 if test "$no_create" != yes; then
18084 ac_cs_success=:
18085 ac_config_status_args=
18086 test "$silent" = yes &&
18087 ac_config_status_args="$ac_config_status_args --quiet"
18088 exec 5>/dev/null
18089 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18090 exec 5>>config.log
18091 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18092 # would make configure fail if this is the last instruction.
18093 $ac_cs_success || as_fn_exit $?
18094 fi
18095 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18097 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18098 fi
18099