Expand PMF_FN_* macros.
[netbsd-mini2440.git] / external / bsd / atf / dist / configure
bloba9adad9a70ceae5a4625d7a672c4e13cee7a9d31
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for Automated Testing Framework 0.7.
5 # Report bugs to <atf-devel@NetBSD.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
16 # Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc.
17 ## -------------------- ##
18 ## M4sh Initialization. ##
19 ## -------------------- ##
21 # Be more Bourne compatible
22 DUALCASE=1; export DUALCASE # for MKS sh
23 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 emulate sh
25 NULLCMD=:
26 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27 # is contrary to our usage. Disable this feature.
28 alias -g '${1+"$@"}'='"$@"'
29 setopt NO_GLOB_SUBST
30 else
31 case `(set -o) 2>/dev/null` in #(
32 *posix*) :
33 set -o posix ;; #(
34 *) :
36 esac
40 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 # Prefer a ksh shell builtin over an external printf program on Solaris,
48 # but without wasting forks for bash or zsh.
49 if test -z "$BASH_VERSION$ZSH_VERSION" \
50 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='print -r --'
52 as_echo_n='print -rn --'
53 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54 as_echo='printf %s\n'
55 as_echo_n='printf %s'
56 else
57 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
58 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
59 as_echo_n='/usr/ucb/echo -n'
60 else
61 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 as_echo_n_body='eval
63 arg=$1;
64 case $arg in #(
65 *"$as_nl"*)
66 expr "X$arg" : "X\\(.*\\)$as_nl";
67 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68 esac;
69 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
71 export as_echo_n_body
72 as_echo_n='sh -c $as_echo_n_body as_echo'
74 export as_echo_body
75 as_echo='sh -c $as_echo_body as_echo'
78 # The user is always right.
79 if test "${PATH_SEPARATOR+set}" != set; then
80 PATH_SEPARATOR=:
81 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
82 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 PATH_SEPARATOR=';'
88 # IFS
89 # We need space, tab and new line, in precisely that order. Quoting is
90 # there to prevent editors from complaining about space-tab.
91 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
92 # splitting by setting IFS to empty value.)
93 IFS=" "" $as_nl"
95 # Find who we are. Look in the path if we contain no directory separator.
96 case $0 in #((
97 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 for as_dir in $PATH
101 IFS=$as_save_IFS
102 test -z "$as_dir" && as_dir=.
103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 done
105 IFS=$as_save_IFS
108 esac
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
112 as_myself=$0
114 if test ! -f "$as_myself"; then
115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 exit 1
119 # Unset variables that we do not need and which cause bugs (e.g. in
120 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
121 # suppresses any "Segmentation fault" message there. '((' could
122 # trigger a bug in pdksh 5.2.14.
123 for as_var in BASH_ENV ENV MAIL MAILPATH
124 do eval test x\${$as_var+set} = xset \
125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
126 done
127 PS1='$ '
128 PS2='> '
129 PS4='+ '
131 # NLS nuisances.
132 LC_ALL=C
133 export LC_ALL
134 LANGUAGE=C
135 export LANGUAGE
137 # CDPATH.
138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 emulate sh
143 NULLCMD=:
144 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145 # is contrary to our usage. Disable this feature.
146 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 setopt NO_GLOB_SUBST
148 else
149 case \`(set -o) 2>/dev/null\` in #(
150 *posix*) :
151 set -o posix ;; #(
152 *) :
154 esac
157 as_required="as_fn_return () { (exit \$1); }
158 as_fn_success () { as_fn_return 0; }
159 as_fn_failure () { as_fn_return 1; }
160 as_fn_ret_success () { return 0; }
161 as_fn_ret_failure () { return 1; }
163 exitcode=0
164 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 else
171 exitcode=1; echo positional parameters were not saved.
173 test x\$exitcode = x0 || exit 1"
174 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test \$(( 1 + 1 )) = 2 || exit 1"
179 if (eval "$as_required") 2>/dev/null; then :
180 as_have_required=yes
181 else
182 as_have_required=no
184 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186 else
187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 as_found=false
189 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191 IFS=$as_save_IFS
192 test -z "$as_dir" && as_dir=.
193 as_found=:
194 case $as_dir in #(
196 for as_base in sh bash ksh sh5; do
197 # Try only shells that exist, to save several forks.
198 as_shell=$as_dir/$as_base
199 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
200 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 CONFIG_SHELL=$as_shell as_have_required=yes
202 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 break 2
206 done;;
207 esac
208 as_found=false
209 done
210 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
211 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
212 CONFIG_SHELL=$SHELL as_have_required=yes
213 fi; }
214 IFS=$as_save_IFS
217 if test "x$CONFIG_SHELL" != x; then :
218 # We cannot yet assume a decent shell, so we have to provide a
219 # neutralization value for shells without unset; and this also
220 # works around shells that cannot unset nonexistent variables.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 if test x$as_have_required = xno; then :
229 $as_echo "$0: This script requires a shell more modern than all"
230 $as_echo "$0: the shells that I found on your system."
231 if test x${ZSH_VERSION+set} = xset ; then
232 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
233 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
234 else
235 $as_echo "$0: Please tell bug-autoconf@gnu.org and
236 $0: atf-devel@NetBSD.org about your system, including any
237 $0: error possibly output before this message. Then install
238 $0: a modern shell, or manually run the script under such a
239 $0: shell if you do have one."
241 exit 1
245 SHELL=${CONFIG_SHELL-/bin/sh}
246 export SHELL
247 # Unset more variables known to interfere with behavior of common tools.
248 CLICOLOR_FORCE= GREP_OPTIONS=
249 unset CLICOLOR_FORCE GREP_OPTIONS
251 ## --------------------- ##
252 ## M4sh Shell Functions. ##
253 ## --------------------- ##
254 # as_fn_unset VAR
255 # ---------------
256 # Portably unset VAR.
257 as_fn_unset ()
259 { eval $1=; unset $1;}
261 as_unset=as_fn_unset
263 # as_fn_set_status STATUS
264 # -----------------------
265 # Set $? to STATUS, without forking.
266 as_fn_set_status ()
268 return $1
269 } # as_fn_set_status
271 # as_fn_exit STATUS
272 # -----------------
273 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
274 as_fn_exit ()
276 set +e
277 as_fn_set_status $1
278 exit $1
279 } # as_fn_exit
281 # as_fn_mkdir_p
282 # -------------
283 # Create "$as_dir" as a directory, including parents if necessary.
284 as_fn_mkdir_p ()
287 case $as_dir in #(
288 -*) as_dir=./$as_dir;;
289 esac
290 test -d "$as_dir" || eval $as_mkdir_p || {
291 as_dirs=
292 while :; do
293 case $as_dir in #(
294 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 *) as_qdir=$as_dir;;
296 esac
297 as_dirs="'$as_qdir' $as_dirs"
298 as_dir=`$as_dirname -- "$as_dir" ||
299 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
300 X"$as_dir" : 'X\(//\)[^/]' \| \
301 X"$as_dir" : 'X\(//\)$' \| \
302 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
303 $as_echo X"$as_dir" |
304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
305 s//\1/
308 /^X\(\/\/\)[^/].*/{
309 s//\1/
312 /^X\(\/\/\)$/{
313 s//\1/
316 /^X\(\/\).*/{
317 s//\1/
320 s/.*/./; q'`
321 test -d "$as_dir" && break
322 done
323 test -z "$as_dirs" || eval "mkdir $as_dirs"
324 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
327 } # as_fn_mkdir_p
328 # as_fn_append VAR VALUE
329 # ----------------------
330 # Append the text in VALUE to the end of the definition contained in VAR. Take
331 # advantage of any shell optimizations that allow amortized linear growth over
332 # repeated appends, instead of the typical quadratic growth present in naive
333 # implementations.
334 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
335 eval 'as_fn_append ()
337 eval $1+=\$2
339 else
340 as_fn_append ()
342 eval $1=\$$1\$2
344 fi # as_fn_append
346 # as_fn_arith ARG...
347 # ------------------
348 # Perform arithmetic evaluation on the ARGs, and store the result in the
349 # global $as_val. Take advantage of shells that can avoid forks. The arguments
350 # must be portable across $(()) and expr.
351 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352 eval 'as_fn_arith ()
354 as_val=$(( $* ))
356 else
357 as_fn_arith ()
359 as_val=`expr "$@" || test $? -eq 1`
361 fi # as_fn_arith
364 # as_fn_error ERROR [LINENO LOG_FD]
365 # ---------------------------------
366 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
367 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
368 # script with status $?, using 1 if that was 0.
369 as_fn_error ()
371 as_status=$?; test $as_status -eq 0 && as_status=1
372 if test "$3"; then
373 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
374 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 $as_echo "$as_me: error: $1" >&2
377 as_fn_exit $as_status
378 } # as_fn_error
380 if expr a : '\(a\)' >/dev/null 2>&1 &&
381 test "X`expr 00001 : '.*\(...\)'`" = X001; then
382 as_expr=expr
383 else
384 as_expr=false
387 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 as_basename=basename
389 else
390 as_basename=false
393 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
394 as_dirname=dirname
395 else
396 as_dirname=false
399 as_me=`$as_basename -- "$0" ||
400 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
401 X"$0" : 'X\(//\)$' \| \
402 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
403 $as_echo X/"$0" |
404 sed '/^.*\/\([^/][^/]*\)\/*$/{
405 s//\1/
408 /^X\/\(\/\/\)$/{
409 s//\1/
412 /^X\/\(\/\).*/{
413 s//\1/
416 s/.*/./; q'`
418 # Avoid depending upon Character Ranges.
419 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
420 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
421 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
422 as_cr_digits='0123456789'
423 as_cr_alnum=$as_cr_Letters$as_cr_digits
426 as_lineno_1=$LINENO as_lineno_1a=$LINENO
427 as_lineno_2=$LINENO as_lineno_2a=$LINENO
428 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
429 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
430 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
431 sed -n '
433 /[$]LINENO/=
434 ' <$as_myself |
435 sed '
436 s/[$]LINENO.*/&-/
437 t lineno
439 :lineno
441 :loop
442 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
443 t loop
444 s/-\n.*//
445 ' >$as_me.lineno &&
446 chmod +x "$as_me.lineno" ||
447 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449 # Don't try to exec as it changes $[0], causing all sort of problems
450 # (the dirname of $[0] is not the place where we might find the
451 # original and so on. Autoconf is especially sensitive to this).
452 . "./$as_me.lineno"
453 # Exit status is that of the last command.
454 exit
457 ECHO_C= ECHO_N= ECHO_T=
458 case `echo -n x` in #(((((
459 -n*)
460 case `echo 'xy\c'` in
461 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
462 xy) ECHO_C='\c';;
463 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
464 ECHO_T=' ';;
465 esac;;
467 ECHO_N='-n';;
468 esac
470 rm -f conf$$ conf$$.exe conf$$.file
471 if test -d conf$$.dir; then
472 rm -f conf$$.dir/conf$$.file
473 else
474 rm -f conf$$.dir
475 mkdir conf$$.dir 2>/dev/null
477 if (echo >conf$$.file) 2>/dev/null; then
478 if ln -s conf$$.file conf$$ 2>/dev/null; then
479 as_ln_s='ln -s'
480 # ... but there are two gotchas:
481 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
482 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
483 # In both cases, we have to default to `cp -p'.
484 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
485 as_ln_s='cp -p'
486 elif ln conf$$.file conf$$ 2>/dev/null; then
487 as_ln_s=ln
488 else
489 as_ln_s='cp -p'
491 else
492 as_ln_s='cp -p'
494 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
495 rmdir conf$$.dir 2>/dev/null
497 if mkdir -p . 2>/dev/null; then
498 as_mkdir_p='mkdir -p "$as_dir"'
499 else
500 test -d ./-p && rmdir ./-p
501 as_mkdir_p=false
504 if test -x / >/dev/null 2>&1; then
505 as_test_x='test -x'
506 else
507 if ls -dL / >/dev/null 2>&1; then
508 as_ls_L_option=L
509 else
510 as_ls_L_option=
512 as_test_x='
513 eval sh -c '\''
514 if test -d "$1"; then
515 test -d "$1/.";
516 else
517 case $1 in #(
518 -*)set "./$1";;
519 esac;
520 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
521 ???[sx]*):;;*)false;;esac;fi
522 '\'' sh
525 as_executable_p=$as_test_x
527 # Sed expression to map a string onto a valid CPP name.
528 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530 # Sed expression to map a string onto a valid variable name.
531 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535 # Check that we are running under the correct shell.
536 SHELL=${CONFIG_SHELL-/bin/sh}
538 case X$lt_ECHO in
539 X*--fallback-echo)
540 # Remove one level of quotation (which was required for Make).
541 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
543 esac
545 ECHO=${lt_ECHO-echo}
546 if test "X$1" = X--no-reexec; then
547 # Discard the --no-reexec flag, and continue.
548 shift
549 elif test "X$1" = X--fallback-echo; then
550 # Avoid inline document here, it may be left over
552 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
553 # Yippee, $ECHO works!
555 else
556 # Restart under the correct shell.
557 exec $SHELL "$0" --no-reexec ${1+"$@"}
560 if test "X$1" = X--fallback-echo; then
561 # used as fallback echo
562 shift
563 cat <<_LT_EOF
565 _LT_EOF
566 exit 0
569 # The HP-UX ksh and POSIX shell print the target directory to stdout
570 # if CDPATH is set.
571 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
573 if test -z "$lt_ECHO"; then
574 if test "X${echo_test_string+set}" != Xset; then
575 # find a string as large as possible, as long as the shell can cope with it
576 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
577 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
578 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
579 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
580 then
581 break
583 done
586 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
587 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
588 test "X$echo_testing_string" = "X$echo_test_string"; then
590 else
591 # The Solaris, AIX, and Digital Unix default echo programs unquote
592 # backslashes. This makes it impossible to quote backslashes using
593 # echo "$something" | sed 's/\\/\\\\/g'
595 # So, first we look for a working echo in the user's PATH.
597 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
598 for dir in $PATH /usr/ucb; do
599 IFS="$lt_save_ifs"
600 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
601 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
602 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
603 test "X$echo_testing_string" = "X$echo_test_string"; then
604 ECHO="$dir/echo"
605 break
607 done
608 IFS="$lt_save_ifs"
610 if test "X$ECHO" = Xecho; then
611 # We didn't find a better echo, so look for alternatives.
612 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
613 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
614 test "X$echo_testing_string" = "X$echo_test_string"; then
615 # This shell has a builtin print -r that does the trick.
616 ECHO='print -r'
617 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
618 test "X$CONFIG_SHELL" != X/bin/ksh; then
619 # If we have ksh, try running configure again with it.
620 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
621 export ORIGINAL_CONFIG_SHELL
622 CONFIG_SHELL=/bin/ksh
623 export CONFIG_SHELL
624 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
625 else
626 # Try using printf.
627 ECHO='printf %s\n'
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 # Cool, printf works
633 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
634 test "X$echo_testing_string" = 'X\t' &&
635 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
636 test "X$echo_testing_string" = "X$echo_test_string"; then
637 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
638 export CONFIG_SHELL
639 SHELL="$CONFIG_SHELL"
640 export SHELL
641 ECHO="$CONFIG_SHELL $0 --fallback-echo"
642 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
643 test "X$echo_testing_string" = 'X\t' &&
644 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$CONFIG_SHELL $0 --fallback-echo"
647 else
648 # maybe with a smaller string...
649 prev=:
651 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
652 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
653 then
654 break
656 prev="$cmd"
657 done
659 if test "$prev" != 'sed 50q "$0"'; then
660 echo_test_string=`eval $prev`
661 export echo_test_string
662 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
663 else
664 # Oops. We lost completely, so just stick with echo.
665 ECHO=echo
673 # Copy echo and quote the copy suitably for passing to libtool from
674 # the Makefile, instead of quoting the original, which is used later.
675 lt_ECHO=$ECHO
676 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
677 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
683 test -n "$DJDIR" || exec 7<&0 </dev/null
684 exec 6>&1
686 # Name of the host.
687 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
688 # so uname gets run too.
689 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
692 # Initializations.
694 ac_default_prefix=/usr/local
695 ac_clean_files=
696 ac_config_libobj_dir=.
697 LIBOBJS=
698 cross_compiling=no
699 subdirs=
700 MFLAGS=
701 MAKEFLAGS=
703 # Identity of this package.
704 PACKAGE_NAME='Automated Testing Framework'
705 PACKAGE_TARNAME='atf'
706 PACKAGE_VERSION='0.7'
707 PACKAGE_STRING='Automated Testing Framework 0.7'
708 PACKAGE_BUGREPORT='atf-devel@NetBSD.org'
709 PACKAGE_URL='http://www.NetBSD.org/~jmmv/atf/'
711 ac_unique_file="atf-c.h"
712 # Factoring default headers for most tests.
713 ac_includes_default="\
714 #include <stdio.h>
715 #ifdef HAVE_SYS_TYPES_H
716 # include <sys/types.h>
717 #endif
718 #ifdef HAVE_SYS_STAT_H
719 # include <sys/stat.h>
720 #endif
721 #ifdef STDC_HEADERS
722 # include <stdlib.h>
723 # include <stddef.h>
724 #else
725 # ifdef HAVE_STDLIB_H
726 # include <stdlib.h>
727 # endif
728 #endif
729 #ifdef HAVE_STRING_H
730 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
731 # include <memory.h>
732 # endif
733 # include <string.h>
734 #endif
735 #ifdef HAVE_STRINGS_H
736 # include <strings.h>
737 #endif
738 #ifdef HAVE_INTTYPES_H
739 # include <inttypes.h>
740 #endif
741 #ifdef HAVE_STDINT_H
742 # include <stdint.h>
743 #endif
744 #ifdef HAVE_UNISTD_H
745 # include <unistd.h>
746 #endif"
748 ac_subst_vars='am__EXEEXT_FALSE
749 am__EXEEXT_TRUE
750 LTLIBOBJS
751 LIBOBJS
752 ATF_M4
754 ATF_SHELL
755 atf_xsldir
756 atf_pkgconfigdir
757 atf_egdir
758 atf_dtddir
759 atf_cssdir
760 ATF_WORKDIR
761 atf_confdir
762 ATF_CONFSUBDIR
763 atf_machine
764 atf_arch
765 DOC_BUILD_FALSE
766 DOC_BUILD_TRUE
767 DOC_BUILD
768 XML_CATALOG_FILE
769 XSLTPROC
770 XMLLINT
771 XMLCATALOG
772 TIDY
773 LINKS
774 ATF_BUILD_CXXFLAGS
775 ATF_BUILD_CXX
776 ATF_BUILD_CPPFLAGS
777 ATF_BUILD_CPP
778 ATF_BUILD_CFLAGS
779 ATF_BUILD_CC
780 ATTRIBUTE_NORETURN
781 CXXCPP
782 am__fastdepCXX_FALSE
783 am__fastdepCXX_TRUE
784 CXXDEPMODE
785 ac_ct_CXX
786 CXXFLAGS
789 OTOOL64
790 OTOOL
791 LIPO
792 NMEDIT
793 DSYMUTIL
794 lt_ECHO
795 RANLIB
797 OBJDUMP
798 LN_S
800 ac_ct_DUMPBIN
801 DUMPBIN
803 FGREP
804 EGREP
805 GREP
807 am__fastdepCC_FALSE
808 am__fastdepCC_TRUE
809 CCDEPMODE
810 AMDEPBACKSLASH
811 AMDEP_FALSE
812 AMDEP_TRUE
813 am__quote
814 am__include
815 DEPDIR
816 OBJEXT
817 EXEEXT
818 ac_ct_CC
819 CPPFLAGS
820 LDFLAGS
821 CFLAGS
823 LIBTOOL
824 am__untar
825 am__tar
826 AMTAR
827 am__leading_dot
828 SET_MAKE
830 mkdir_p
831 MKDIR_P
832 INSTALL_STRIP_PROGRAM
833 STRIP
834 install_sh
835 MAKEINFO
836 AUTOHEADER
837 AUTOMAKE
838 AUTOCONF
839 ACLOCAL
840 VERSION
841 PACKAGE
842 CYGPATH_W
843 am__isrc
844 INSTALL_DATA
845 INSTALL_SCRIPT
846 INSTALL_PROGRAM
847 target_os
848 target_vendor
849 target_cpu
850 target
851 host_os
852 host_vendor
853 host_cpu
854 host
855 build_os
856 build_vendor
857 build_cpu
858 build
859 target_alias
860 host_alias
861 build_alias
862 LIBS
863 ECHO_T
864 ECHO_N
865 ECHO_C
866 DEFS
867 mandir
868 localedir
869 libdir
870 psdir
871 pdfdir
872 dvidir
873 htmldir
874 infodir
875 docdir
876 oldincludedir
877 includedir
878 localstatedir
879 sharedstatedir
880 sysconfdir
881 datadir
882 datarootdir
883 libexecdir
884 sbindir
885 bindir
886 program_transform_name
887 prefix
888 exec_prefix
889 PACKAGE_URL
890 PACKAGE_BUGREPORT
891 PACKAGE_STRING
892 PACKAGE_VERSION
893 PACKAGE_TARNAME
894 PACKAGE_NAME
895 PATH_SEPARATOR
896 SHELL'
897 ac_subst_files=''
898 ac_user_opts='
899 enable_option_checking
900 enable_unstable_shared
901 enable_shared
902 enable_static
903 with_pic
904 enable_fast_install
905 enable_dependency_tracking
906 with_gnu_ld
907 enable_libtool_lock
908 enable_developer
909 enable_doc_build
911 ac_precious_vars='build_alias
912 host_alias
913 target_alias
915 CFLAGS
916 LDFLAGS
917 LIBS
918 CPPFLAGS
921 CXXFLAGS
923 CXXCPP
924 ATF_BUILD_CC
925 ATF_BUILD_CFLAGS
926 ATF_BUILD_CPP
927 ATF_BUILD_CPPFLAGS
928 ATF_BUILD_CXX
929 ATF_BUILD_CXXFLAGS
930 LINKS
931 TIDY
932 XMLCATALOG
933 XMLLINT
934 XSLTPROC
935 XML_CATALOG_FILE
936 ATF_CONFSUBDIR
937 ATF_WORKDIR
938 ATF_SHELL
939 ATF_M4'
942 # Initialize some variables set by options.
943 ac_init_help=
944 ac_init_version=false
945 ac_unrecognized_opts=
946 ac_unrecognized_sep=
947 # The variables have the same names as the options, with
948 # dashes changed to underlines.
949 cache_file=/dev/null
950 exec_prefix=NONE
951 no_create=
952 no_recursion=
953 prefix=NONE
954 program_prefix=NONE
955 program_suffix=NONE
956 program_transform_name=s,x,x,
957 silent=
958 site=
959 srcdir=
960 verbose=
961 x_includes=NONE
962 x_libraries=NONE
964 # Installation directory options.
965 # These are left unexpanded so users can "make install exec_prefix=/foo"
966 # and all the variables that are supposed to be based on exec_prefix
967 # by default will actually change.
968 # Use braces instead of parens because sh, perl, etc. also accept them.
969 # (The list follows the same order as the GNU Coding Standards.)
970 bindir='${exec_prefix}/bin'
971 sbindir='${exec_prefix}/sbin'
972 libexecdir='${exec_prefix}/libexec'
973 datarootdir='${prefix}/share'
974 datadir='${datarootdir}'
975 sysconfdir='${prefix}/etc'
976 sharedstatedir='${prefix}/com'
977 localstatedir='${prefix}/var'
978 includedir='${prefix}/include'
979 oldincludedir='/usr/include'
980 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
981 infodir='${datarootdir}/info'
982 htmldir='${docdir}'
983 dvidir='${docdir}'
984 pdfdir='${docdir}'
985 psdir='${docdir}'
986 libdir='${exec_prefix}/lib'
987 localedir='${datarootdir}/locale'
988 mandir='${datarootdir}/man'
990 ac_prev=
991 ac_dashdash=
992 for ac_option
994 # If the previous option needs an argument, assign it.
995 if test -n "$ac_prev"; then
996 eval $ac_prev=\$ac_option
997 ac_prev=
998 continue
1001 case $ac_option in
1002 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1003 *) ac_optarg=yes ;;
1004 esac
1006 # Accept the important Cygnus configure options, so we can diagnose typos.
1008 case $ac_dashdash$ac_option in
1010 ac_dashdash=yes ;;
1012 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1013 ac_prev=bindir ;;
1014 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1015 bindir=$ac_optarg ;;
1017 -build | --build | --buil | --bui | --bu)
1018 ac_prev=build_alias ;;
1019 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1020 build_alias=$ac_optarg ;;
1022 -cache-file | --cache-file | --cache-fil | --cache-fi \
1023 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1024 ac_prev=cache_file ;;
1025 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1026 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1027 cache_file=$ac_optarg ;;
1029 --config-cache | -C)
1030 cache_file=config.cache ;;
1032 -datadir | --datadir | --datadi | --datad)
1033 ac_prev=datadir ;;
1034 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1035 datadir=$ac_optarg ;;
1037 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1038 | --dataroo | --dataro | --datar)
1039 ac_prev=datarootdir ;;
1040 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1041 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1042 datarootdir=$ac_optarg ;;
1044 -disable-* | --disable-*)
1045 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048 as_fn_error "invalid feature name: $ac_useropt"
1049 ac_useropt_orig=$ac_useropt
1050 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1053 "enable_$ac_useropt"
1054 "*) ;;
1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1056 ac_unrecognized_sep=', ';;
1057 esac
1058 eval enable_$ac_useropt=no ;;
1060 -docdir | --docdir | --docdi | --doc | --do)
1061 ac_prev=docdir ;;
1062 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063 docdir=$ac_optarg ;;
1065 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1066 ac_prev=dvidir ;;
1067 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068 dvidir=$ac_optarg ;;
1070 -enable-* | --enable-*)
1071 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074 as_fn_error "invalid feature name: $ac_useropt"
1075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1079 "enable_$ac_useropt"
1080 "*) ;;
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
1083 esac
1084 eval enable_$ac_useropt=\$ac_optarg ;;
1086 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1087 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1088 | --exec | --exe | --ex)
1089 ac_prev=exec_prefix ;;
1090 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1091 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1092 | --exec=* | --exe=* | --ex=*)
1093 exec_prefix=$ac_optarg ;;
1095 -gas | --gas | --ga | --g)
1096 # Obsolete; use --with-gas.
1097 with_gas=yes ;;
1099 -help | --help | --hel | --he | -h)
1100 ac_init_help=long ;;
1101 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1102 ac_init_help=recursive ;;
1103 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1104 ac_init_help=short ;;
1106 -host | --host | --hos | --ho)
1107 ac_prev=host_alias ;;
1108 -host=* | --host=* | --hos=* | --ho=*)
1109 host_alias=$ac_optarg ;;
1111 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1112 ac_prev=htmldir ;;
1113 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1114 | --ht=*)
1115 htmldir=$ac_optarg ;;
1117 -includedir | --includedir | --includedi | --included | --include \
1118 | --includ | --inclu | --incl | --inc)
1119 ac_prev=includedir ;;
1120 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1121 | --includ=* | --inclu=* | --incl=* | --inc=*)
1122 includedir=$ac_optarg ;;
1124 -infodir | --infodir | --infodi | --infod | --info | --inf)
1125 ac_prev=infodir ;;
1126 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1127 infodir=$ac_optarg ;;
1129 -libdir | --libdir | --libdi | --libd)
1130 ac_prev=libdir ;;
1131 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1132 libdir=$ac_optarg ;;
1134 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1135 | --libexe | --libex | --libe)
1136 ac_prev=libexecdir ;;
1137 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1138 | --libexe=* | --libex=* | --libe=*)
1139 libexecdir=$ac_optarg ;;
1141 -localedir | --localedir | --localedi | --localed | --locale)
1142 ac_prev=localedir ;;
1143 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1144 localedir=$ac_optarg ;;
1146 -localstatedir | --localstatedir | --localstatedi | --localstated \
1147 | --localstate | --localstat | --localsta | --localst | --locals)
1148 ac_prev=localstatedir ;;
1149 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1150 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1151 localstatedir=$ac_optarg ;;
1153 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1154 ac_prev=mandir ;;
1155 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1156 mandir=$ac_optarg ;;
1158 -nfp | --nfp | --nf)
1159 # Obsolete; use --without-fp.
1160 with_fp=no ;;
1162 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1163 | --no-cr | --no-c | -n)
1164 no_create=yes ;;
1166 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1168 no_recursion=yes ;;
1170 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1171 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1172 | --oldin | --oldi | --old | --ol | --o)
1173 ac_prev=oldincludedir ;;
1174 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1175 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1176 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1177 oldincludedir=$ac_optarg ;;
1179 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1180 ac_prev=prefix ;;
1181 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1182 prefix=$ac_optarg ;;
1184 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1185 | --program-pre | --program-pr | --program-p)
1186 ac_prev=program_prefix ;;
1187 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1188 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1189 program_prefix=$ac_optarg ;;
1191 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1192 | --program-suf | --program-su | --program-s)
1193 ac_prev=program_suffix ;;
1194 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1195 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1196 program_suffix=$ac_optarg ;;
1198 -program-transform-name | --program-transform-name \
1199 | --program-transform-nam | --program-transform-na \
1200 | --program-transform-n | --program-transform- \
1201 | --program-transform | --program-transfor \
1202 | --program-transfo | --program-transf \
1203 | --program-trans | --program-tran \
1204 | --progr-tra | --program-tr | --program-t)
1205 ac_prev=program_transform_name ;;
1206 -program-transform-name=* | --program-transform-name=* \
1207 | --program-transform-nam=* | --program-transform-na=* \
1208 | --program-transform-n=* | --program-transform-=* \
1209 | --program-transform=* | --program-transfor=* \
1210 | --program-transfo=* | --program-transf=* \
1211 | --program-trans=* | --program-tran=* \
1212 | --progr-tra=* | --program-tr=* | --program-t=*)
1213 program_transform_name=$ac_optarg ;;
1215 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1216 ac_prev=pdfdir ;;
1217 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1218 pdfdir=$ac_optarg ;;
1220 -psdir | --psdir | --psdi | --psd | --ps)
1221 ac_prev=psdir ;;
1222 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1223 psdir=$ac_optarg ;;
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1227 silent=yes ;;
1229 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1230 ac_prev=sbindir ;;
1231 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1232 | --sbi=* | --sb=*)
1233 sbindir=$ac_optarg ;;
1235 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1236 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1237 | --sharedst | --shareds | --shared | --share | --shar \
1238 | --sha | --sh)
1239 ac_prev=sharedstatedir ;;
1240 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1241 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1242 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1243 | --sha=* | --sh=*)
1244 sharedstatedir=$ac_optarg ;;
1246 -site | --site | --sit)
1247 ac_prev=site ;;
1248 -site=* | --site=* | --sit=*)
1249 site=$ac_optarg ;;
1251 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1252 ac_prev=srcdir ;;
1253 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1254 srcdir=$ac_optarg ;;
1256 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1257 | --syscon | --sysco | --sysc | --sys | --sy)
1258 ac_prev=sysconfdir ;;
1259 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1260 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1261 sysconfdir=$ac_optarg ;;
1263 -target | --target | --targe | --targ | --tar | --ta | --t)
1264 ac_prev=target_alias ;;
1265 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1266 target_alias=$ac_optarg ;;
1268 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1269 verbose=yes ;;
1271 -version | --version | --versio | --versi | --vers | -V)
1272 ac_init_version=: ;;
1274 -with-* | --with-*)
1275 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278 as_fn_error "invalid package name: $ac_useropt"
1279 ac_useropt_orig=$ac_useropt
1280 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281 case $ac_user_opts in
1283 "with_$ac_useropt"
1284 "*) ;;
1285 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1286 ac_unrecognized_sep=', ';;
1287 esac
1288 eval with_$ac_useropt=\$ac_optarg ;;
1290 -without-* | --without-*)
1291 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294 as_fn_error "invalid package name: $ac_useropt"
1295 ac_useropt_orig=$ac_useropt
1296 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297 case $ac_user_opts in
1299 "with_$ac_useropt"
1300 "*) ;;
1301 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1302 ac_unrecognized_sep=', ';;
1303 esac
1304 eval with_$ac_useropt=no ;;
1306 --x)
1307 # Obsolete; use --with-x.
1308 with_x=yes ;;
1310 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311 | --x-incl | --x-inc | --x-in | --x-i)
1312 ac_prev=x_includes ;;
1313 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315 x_includes=$ac_optarg ;;
1317 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319 ac_prev=x_libraries ;;
1320 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322 x_libraries=$ac_optarg ;;
1324 -*) as_fn_error "unrecognized option: \`$ac_option'
1325 Try \`$0 --help' for more information."
1328 *=*)
1329 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330 # Reject names that are not valid shell variable names.
1331 case $ac_envvar in #(
1332 '' | [0-9]* | *[!_$as_cr_alnum]* )
1333 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1334 esac
1335 eval $ac_envvar=\$ac_optarg
1336 export $ac_envvar ;;
1339 # FIXME: should be removed in autoconf 3.0.
1340 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1346 esac
1347 done
1349 if test -n "$ac_prev"; then
1350 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351 as_fn_error "missing argument to $ac_option"
1354 if test -n "$ac_unrecognized_opts"; then
1355 case $enable_option_checking in
1356 no) ;;
1357 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1358 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1359 esac
1362 # Check all directory arguments for consistency.
1363 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364 datadir sysconfdir sharedstatedir localstatedir includedir \
1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366 libdir localedir mandir
1368 eval ac_val=\$$ac_var
1369 # Remove trailing slashes.
1370 case $ac_val in
1371 */ )
1372 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1373 eval $ac_var=\$ac_val;;
1374 esac
1375 # Be sure to have absolute directory names.
1376 case $ac_val in
1377 [\\/$]* | ?:[\\/]* ) continue;;
1378 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1379 esac
1380 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1381 done
1383 # There might be people who depend on the old broken behavior: `$host'
1384 # used to hold the argument of --host etc.
1385 # FIXME: To remove some day.
1386 build=$build_alias
1387 host=$host_alias
1388 target=$target_alias
1390 # FIXME: To remove some day.
1391 if test "x$host_alias" != x; then
1392 if test "x$build_alias" = x; then
1393 cross_compiling=maybe
1394 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1395 If a cross compiler is detected then cross compile mode will be used." >&2
1396 elif test "x$build_alias" != "x$host_alias"; then
1397 cross_compiling=yes
1401 ac_tool_prefix=
1402 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1404 test "$silent" = yes && exec 6>/dev/null
1407 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1408 ac_ls_di=`ls -di .` &&
1409 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1410 as_fn_error "working directory cannot be determined"
1411 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1412 as_fn_error "pwd does not report name of working directory"
1415 # Find the source files, if location was not specified.
1416 if test -z "$srcdir"; then
1417 ac_srcdir_defaulted=yes
1418 # Try the directory containing this script, then the parent directory.
1419 ac_confdir=`$as_dirname -- "$as_myself" ||
1420 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1421 X"$as_myself" : 'X\(//\)[^/]' \| \
1422 X"$as_myself" : 'X\(//\)$' \| \
1423 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1424 $as_echo X"$as_myself" |
1425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1426 s//\1/
1429 /^X\(\/\/\)[^/].*/{
1430 s//\1/
1433 /^X\(\/\/\)$/{
1434 s//\1/
1437 /^X\(\/\).*/{
1438 s//\1/
1441 s/.*/./; q'`
1442 srcdir=$ac_confdir
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1444 srcdir=..
1446 else
1447 ac_srcdir_defaulted=no
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1450 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1451 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1453 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1454 ac_abs_confdir=`(
1455 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1456 pwd)`
1457 # When building in place, set srcdir=.
1458 if test "$ac_abs_confdir" = "$ac_pwd"; then
1459 srcdir=.
1461 # Remove unnecessary trailing slashes from srcdir.
1462 # Double slashes in file names in object file debugging info
1463 # mess up M-x gdb in Emacs.
1464 case $srcdir in
1465 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1466 esac
1467 for ac_var in $ac_precious_vars; do
1468 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1469 eval ac_env_${ac_var}_value=\$${ac_var}
1470 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1472 done
1475 # Report the --help message.
1477 if test "$ac_init_help" = "long"; then
1478 # Omit some internal or obsolete options to make the list less imposing.
1479 # This message is too long to be a string in the A/UX 3.1 sh.
1480 cat <<_ACEOF
1481 \`configure' configures Automated Testing Framework 0.7 to adapt to many kinds of systems.
1483 Usage: $0 [OPTION]... [VAR=VALUE]...
1485 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1486 VAR=VALUE. See below for descriptions of some of the useful variables.
1488 Defaults for the options are specified in brackets.
1490 Configuration:
1491 -h, --help display this help and exit
1492 --help=short display options specific to this package
1493 --help=recursive display the short help of all the included packages
1494 -V, --version display version information and exit
1495 -q, --quiet, --silent do not print \`checking...' messages
1496 --cache-file=FILE cache test results in FILE [disabled]
1497 -C, --config-cache alias for \`--cache-file=config.cache'
1498 -n, --no-create do not create output files
1499 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1501 Installation directories:
1502 --prefix=PREFIX install architecture-independent files in PREFIX
1503 [$ac_default_prefix]
1504 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1505 [PREFIX]
1507 By default, \`make install' will install all the files in
1508 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1509 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1510 for instance \`--prefix=\$HOME'.
1512 For better control, use the options below.
1514 Fine tuning of the installation directories:
1515 --bindir=DIR user executables [EPREFIX/bin]
1516 --sbindir=DIR system admin executables [EPREFIX/sbin]
1517 --libexecdir=DIR program executables [EPREFIX/libexec]
1518 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1519 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1520 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1521 --libdir=DIR object code libraries [EPREFIX/lib]
1522 --includedir=DIR C header files [PREFIX/include]
1523 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1524 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1525 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1526 --infodir=DIR info documentation [DATAROOTDIR/info]
1527 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1528 --mandir=DIR man documentation [DATAROOTDIR/man]
1529 --docdir=DIR documentation root [DATAROOTDIR/doc/atf]
1530 --htmldir=DIR html documentation [DOCDIR]
1531 --dvidir=DIR dvi documentation [DOCDIR]
1532 --pdfdir=DIR pdf documentation [DOCDIR]
1533 --psdir=DIR ps documentation [DOCDIR]
1534 _ACEOF
1536 cat <<\_ACEOF
1538 Program names:
1539 --program-prefix=PREFIX prepend PREFIX to installed program names
1540 --program-suffix=SUFFIX append SUFFIX to installed program names
1541 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1543 System types:
1544 --build=BUILD configure for building on BUILD [guessed]
1545 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1546 --target=TARGET configure for building compilers for TARGET [HOST]
1547 _ACEOF
1550 if test -n "$ac_init_help"; then
1551 case $ac_init_help in
1552 short | recursive ) echo "Configuration of Automated Testing Framework 0.7:";;
1553 esac
1554 cat <<\_ACEOF
1556 Optional Features:
1557 --disable-option-checking ignore unrecognized --enable/--with options
1558 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1559 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1560 --enable-unstable-shared
1561 Enables the build of shared libraries with unstable
1562 ABIs/APIs
1563 --enable-shared[=PKGS] build shared libraries [default=yes]
1564 --enable-static[=PKGS] build static libraries [default=yes]
1565 --enable-fast-install[=PKGS]
1566 optimize for fast installation [default=yes]
1567 --disable-dependency-tracking speeds up one-time build
1568 --enable-dependency-tracking do not reject slow dependency extractors
1569 --disable-libtool-lock avoid locking (might break parallel builds)
1570 --enable-developer enable developer features
1571 --enable-doc-build enable building of documentation
1573 Optional Packages:
1574 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1575 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1576 --with-pic try to use only PIC/non-PIC objects [default=use
1577 both]
1578 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1580 Some influential environment variables:
1581 CC C compiler command
1582 CFLAGS C compiler flags
1583 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1584 nonstandard directory <lib dir>
1585 LIBS libraries to pass to the linker, e.g. -l<library>
1586 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1587 you have headers in a nonstandard directory <include dir>
1588 CPP C preprocessor
1589 CXX C++ compiler command
1590 CXXFLAGS C++ compiler flags
1591 CXXCPP C++ preprocessor
1592 ATF_BUILD_CC
1593 C compiler to use at runtime
1594 ATF_BUILD_CFLAGS
1595 C compiler flags to use at runtime
1596 ATF_BUILD_CPP
1597 C/C++ preprocessor to use at runtime
1598 ATF_BUILD_CPPFLAGS
1599 C/C++ preprocessor flags to use at runtime
1600 ATF_BUILD_CXX
1601 C++ compiler to use at runtime
1602 ATF_BUILD_CXXFLAGS
1603 C++ compiler flags to use at runtime
1604 LINKS Absolute path to the links tool; build-time only
1605 TIDY Absolute path to the tidy tool; build-time only
1606 XMLCATALOG Absolute path to the xmlcatalog tool; build-time only
1607 XMLLINT Absolute path to the xmllint tool; build-time only
1608 XSLTPROC Absolute path to the xsltproc tool; build-time only
1609 XML_CATALOG_FILE
1610 XML catalog to use (default: /etc/xml/catalog)
1611 ATF_CONFSUBDIR
1612 Subdirectory of sysconfdir under which to look for files
1613 ATF_WORKDIR Default location to use for ATF work directories
1614 ATF_SHELL Location of the POSIX shell interpreter to use
1615 ATF_M4 M4 tool to generate GNU Automake files
1617 Use these variables to override the choices made by `configure' or to help
1618 it to find libraries and programs with nonstandard names/locations.
1620 Report bugs to <atf-devel@NetBSD.org>.
1621 Automated Testing Framework home page: <http://www.NetBSD.org/~jmmv/atf/>.
1622 _ACEOF
1623 ac_status=$?
1626 if test "$ac_init_help" = "recursive"; then
1627 # If there are subdirs, report their specific --help.
1628 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1629 test -d "$ac_dir" ||
1630 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1631 continue
1632 ac_builddir=.
1634 case "$ac_dir" in
1635 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1638 # A ".." for each directory in $ac_dir_suffix.
1639 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1640 case $ac_top_builddir_sub in
1641 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1642 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1643 esac ;;
1644 esac
1645 ac_abs_top_builddir=$ac_pwd
1646 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1647 # for backward compatibility:
1648 ac_top_builddir=$ac_top_build_prefix
1650 case $srcdir in
1651 .) # We are building in place.
1652 ac_srcdir=.
1653 ac_top_srcdir=$ac_top_builddir_sub
1654 ac_abs_top_srcdir=$ac_pwd ;;
1655 [\\/]* | ?:[\\/]* ) # Absolute name.
1656 ac_srcdir=$srcdir$ac_dir_suffix;
1657 ac_top_srcdir=$srcdir
1658 ac_abs_top_srcdir=$srcdir ;;
1659 *) # Relative name.
1660 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1661 ac_top_srcdir=$ac_top_build_prefix$srcdir
1662 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1663 esac
1664 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1666 cd "$ac_dir" || { ac_status=$?; continue; }
1667 # Check for guested configure.
1668 if test -f "$ac_srcdir/configure.gnu"; then
1669 echo &&
1670 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1671 elif test -f "$ac_srcdir/configure"; then
1672 echo &&
1673 $SHELL "$ac_srcdir/configure" --help=recursive
1674 else
1675 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1676 fi || ac_status=$?
1677 cd "$ac_pwd" || { ac_status=$?; break; }
1678 done
1681 test -n "$ac_init_help" && exit $ac_status
1682 if $ac_init_version; then
1683 cat <<\_ACEOF
1684 Automated Testing Framework configure 0.7
1685 generated by GNU Autoconf 2.65
1687 Copyright (C) 2009 Free Software Foundation, Inc.
1688 This configure script is free software; the Free Software Foundation
1689 gives unlimited permission to copy, distribute and modify it.
1691 Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc.
1692 _ACEOF
1693 exit
1696 ## ------------------------ ##
1697 ## Autoconf initialization. ##
1698 ## ------------------------ ##
1700 # ac_fn_c_try_compile LINENO
1701 # --------------------------
1702 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1703 ac_fn_c_try_compile ()
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 rm -f conftest.$ac_objext
1707 if { { ac_try="$ac_compile"
1708 case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_compile") 2>conftest.err
1715 ac_status=$?
1716 if test -s conftest.err; then
1717 grep -v '^ *+' conftest.err >conftest.er1
1718 cat conftest.er1 >&5
1719 mv -f conftest.er1 conftest.err
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } && {
1723 test -z "$ac_c_werror_flag" ||
1724 test ! -s conftest.err
1725 } && test -s conftest.$ac_objext; then :
1726 ac_retval=0
1727 else
1728 $as_echo "$as_me: failed program was:" >&5
1729 sed 's/^/| /' conftest.$ac_ext >&5
1731 ac_retval=1
1733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1734 as_fn_set_status $ac_retval
1736 } # ac_fn_c_try_compile
1738 # ac_fn_c_try_link LINENO
1739 # -----------------------
1740 # Try to link conftest.$ac_ext, and return whether this succeeded.
1741 ac_fn_c_try_link ()
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 rm -f conftest.$ac_objext conftest$ac_exeext
1745 if { { ac_try="$ac_link"
1746 case "(($ac_try" in
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1749 esac
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_link") 2>conftest.err
1753 ac_status=$?
1754 if test -s conftest.err; then
1755 grep -v '^ *+' conftest.err >conftest.er1
1756 cat conftest.er1 >&5
1757 mv -f conftest.er1 conftest.err
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } && {
1761 test -z "$ac_c_werror_flag" ||
1762 test ! -s conftest.err
1763 } && test -s conftest$ac_exeext && {
1764 test "$cross_compiling" = yes ||
1765 $as_test_x conftest$ac_exeext
1766 }; then :
1767 ac_retval=0
1768 else
1769 $as_echo "$as_me: failed program was:" >&5
1770 sed 's/^/| /' conftest.$ac_ext >&5
1772 ac_retval=1
1774 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1775 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1776 # interfere with the next link command; also delete a directory that is
1777 # left behind by Apple's compiler. We do this before executing the actions.
1778 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1779 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1780 as_fn_set_status $ac_retval
1782 } # ac_fn_c_try_link
1784 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1785 # -------------------------------------------------------
1786 # Tests whether HEADER exists and can be compiled using the include files in
1787 # INCLUDES, setting the cache variable VAR accordingly.
1788 ac_fn_c_check_header_compile ()
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792 $as_echo_n "checking for $2... " >&6; }
1793 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1794 $as_echo_n "(cached) " >&6
1795 else
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h. */
1799 #include <$2>
1800 _ACEOF
1801 if ac_fn_c_try_compile "$LINENO"; then :
1802 eval "$3=yes"
1803 else
1804 eval "$3=no"
1806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1808 eval ac_res=\$$3
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 $as_echo "$ac_res" >&6; }
1811 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1813 } # ac_fn_c_check_header_compile
1815 # ac_fn_c_try_cpp LINENO
1816 # ----------------------
1817 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1818 ac_fn_c_try_cpp ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 if { { ac_try="$ac_cpp conftest.$ac_ext"
1822 case "(($ac_try" in
1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824 *) ac_try_echo=$ac_try;;
1825 esac
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1829 ac_status=$?
1830 if test -s conftest.err; then
1831 grep -v '^ *+' conftest.err >conftest.er1
1832 cat conftest.er1 >&5
1833 mv -f conftest.er1 conftest.err
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } >/dev/null && {
1837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1838 test ! -s conftest.err
1839 }; then :
1840 ac_retval=0
1841 else
1842 $as_echo "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.$ac_ext >&5
1845 ac_retval=1
1847 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848 as_fn_set_status $ac_retval
1850 } # ac_fn_c_try_cpp
1852 # ac_fn_c_try_run LINENO
1853 # ----------------------
1854 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1855 # that executables *can* be run.
1856 ac_fn_c_try_run ()
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 if { { ac_try="$ac_link"
1860 case "(($ac_try" in
1861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1862 *) ac_try_echo=$ac_try;;
1863 esac
1864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1865 $as_echo "$ac_try_echo"; } >&5
1866 (eval "$ac_link") 2>&5
1867 ac_status=$?
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1870 { { case "(($ac_try" in
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1873 esac
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_try") 2>&5
1877 ac_status=$?
1878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879 test $ac_status = 0; }; }; then :
1880 ac_retval=0
1881 else
1882 $as_echo "$as_me: program exited with status $ac_status" >&5
1883 $as_echo "$as_me: failed program was:" >&5
1884 sed 's/^/| /' conftest.$ac_ext >&5
1886 ac_retval=$ac_status
1888 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1889 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1890 as_fn_set_status $ac_retval
1892 } # ac_fn_c_try_run
1894 # ac_fn_c_check_func LINENO FUNC VAR
1895 # ----------------------------------
1896 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1897 ac_fn_c_check_func ()
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1903 $as_echo_n "(cached) " >&6
1904 else
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1907 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1909 #define $2 innocuous_$2
1911 /* System header to define __stub macros and hopefully few prototypes,
1912 which can conflict with char $2 (); below.
1913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1914 <limits.h> exists even on freestanding compilers. */
1916 #ifdef __STDC__
1917 # include <limits.h>
1918 #else
1919 # include <assert.h>
1920 #endif
1922 #undef $2
1924 /* Override any GCC internal prototype to avoid an error.
1925 Use char because int might match the return type of a GCC
1926 builtin and then its argument prototype would still apply. */
1927 #ifdef __cplusplus
1928 extern "C"
1929 #endif
1930 char $2 ();
1931 /* The GNU C library defines this for functions which it implements
1932 to always fail with ENOSYS. Some functions are actually named
1933 something starting with __ and the normal name is an alias. */
1934 #if defined __stub_$2 || defined __stub___$2
1935 choke me
1936 #endif
1939 main ()
1941 return $2 ();
1943 return 0;
1945 _ACEOF
1946 if ac_fn_c_try_link "$LINENO"; then :
1947 eval "$3=yes"
1948 else
1949 eval "$3=no"
1951 rm -f core conftest.err conftest.$ac_objext \
1952 conftest$ac_exeext conftest.$ac_ext
1954 eval ac_res=\$$3
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1959 } # ac_fn_c_check_func
1961 # ac_fn_cxx_try_compile LINENO
1962 # ----------------------------
1963 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1964 ac_fn_cxx_try_compile ()
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 rm -f conftest.$ac_objext
1968 if { { ac_try="$ac_compile"
1969 case "(($ac_try" in
1970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1971 *) ac_try_echo=$ac_try;;
1972 esac
1973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974 $as_echo "$ac_try_echo"; } >&5
1975 (eval "$ac_compile") 2>conftest.err
1976 ac_status=$?
1977 if test -s conftest.err; then
1978 grep -v '^ *+' conftest.err >conftest.er1
1979 cat conftest.er1 >&5
1980 mv -f conftest.er1 conftest.err
1982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983 test $ac_status = 0; } && {
1984 test -z "$ac_cxx_werror_flag" ||
1985 test ! -s conftest.err
1986 } && test -s conftest.$ac_objext; then :
1987 ac_retval=0
1988 else
1989 $as_echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1992 ac_retval=1
1994 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1995 as_fn_set_status $ac_retval
1997 } # ac_fn_cxx_try_compile
1999 # ac_fn_cxx_try_cpp LINENO
2000 # ------------------------
2001 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2002 ac_fn_cxx_try_cpp ()
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 if { { ac_try="$ac_cpp conftest.$ac_ext"
2006 case "(($ac_try" in
2007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2008 *) ac_try_echo=$ac_try;;
2009 esac
2010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2011 $as_echo "$ac_try_echo"; } >&5
2012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2013 ac_status=$?
2014 if test -s conftest.err; then
2015 grep -v '^ *+' conftest.err >conftest.er1
2016 cat conftest.er1 >&5
2017 mv -f conftest.er1 conftest.err
2019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2020 test $ac_status = 0; } >/dev/null && {
2021 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2022 test ! -s conftest.err
2023 }; then :
2024 ac_retval=0
2025 else
2026 $as_echo "$as_me: failed program was:" >&5
2027 sed 's/^/| /' conftest.$ac_ext >&5
2029 ac_retval=1
2031 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2032 as_fn_set_status $ac_retval
2034 } # ac_fn_cxx_try_cpp
2036 # ac_fn_cxx_try_link LINENO
2037 # -------------------------
2038 # Try to link conftest.$ac_ext, and return whether this succeeded.
2039 ac_fn_cxx_try_link ()
2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042 rm -f conftest.$ac_objext conftest$ac_exeext
2043 if { { ac_try="$ac_link"
2044 case "(($ac_try" in
2045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2046 *) ac_try_echo=$ac_try;;
2047 esac
2048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2049 $as_echo "$ac_try_echo"; } >&5
2050 (eval "$ac_link") 2>conftest.err
2051 ac_status=$?
2052 if test -s conftest.err; then
2053 grep -v '^ *+' conftest.err >conftest.er1
2054 cat conftest.er1 >&5
2055 mv -f conftest.er1 conftest.err
2057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2058 test $ac_status = 0; } && {
2059 test -z "$ac_cxx_werror_flag" ||
2060 test ! -s conftest.err
2061 } && test -s conftest$ac_exeext && {
2062 test "$cross_compiling" = yes ||
2063 $as_test_x conftest$ac_exeext
2064 }; then :
2065 ac_retval=0
2066 else
2067 $as_echo "$as_me: failed program was:" >&5
2068 sed 's/^/| /' conftest.$ac_ext >&5
2070 ac_retval=1
2072 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2073 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2074 # interfere with the next link command; also delete a directory that is
2075 # left behind by Apple's compiler. We do this before executing the actions.
2076 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2077 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2078 as_fn_set_status $ac_retval
2080 } # ac_fn_cxx_try_link
2082 # ac_fn_cxx_try_run LINENO
2083 # ------------------------
2084 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2085 # that executables *can* be run.
2086 ac_fn_cxx_try_run ()
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 if { { ac_try="$ac_link"
2090 case "(($ac_try" in
2091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092 *) ac_try_echo=$ac_try;;
2093 esac
2094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2095 $as_echo "$ac_try_echo"; } >&5
2096 (eval "$ac_link") 2>&5
2097 ac_status=$?
2098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2099 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2100 { { case "(($ac_try" in
2101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102 *) ac_try_echo=$ac_try;;
2103 esac
2104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2105 $as_echo "$ac_try_echo"; } >&5
2106 (eval "$ac_try") 2>&5
2107 ac_status=$?
2108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2109 test $ac_status = 0; }; }; then :
2110 ac_retval=0
2111 else
2112 $as_echo "$as_me: program exited with status $ac_status" >&5
2113 $as_echo "$as_me: failed program was:" >&5
2114 sed 's/^/| /' conftest.$ac_ext >&5
2116 ac_retval=$ac_status
2118 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2119 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2120 as_fn_set_status $ac_retval
2122 } # ac_fn_cxx_try_run
2124 # ac_fn_cxx_check_func LINENO FUNC VAR
2125 # ------------------------------------
2126 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2127 ac_fn_cxx_check_func ()
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2131 $as_echo_n "checking for $2... " >&6; }
2132 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2133 $as_echo_n "(cached) " >&6
2134 else
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2137 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2138 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2139 #define $2 innocuous_$2
2141 /* System header to define __stub macros and hopefully few prototypes,
2142 which can conflict with char $2 (); below.
2143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2144 <limits.h> exists even on freestanding compilers. */
2146 #ifdef __STDC__
2147 # include <limits.h>
2148 #else
2149 # include <assert.h>
2150 #endif
2152 #undef $2
2154 /* Override any GCC internal prototype to avoid an error.
2155 Use char because int might match the return type of a GCC
2156 builtin and then its argument prototype would still apply. */
2157 #ifdef __cplusplus
2158 extern "C"
2159 #endif
2160 char $2 ();
2161 /* The GNU C library defines this for functions which it implements
2162 to always fail with ENOSYS. Some functions are actually named
2163 something starting with __ and the normal name is an alias. */
2164 #if defined __stub_$2 || defined __stub___$2
2165 choke me
2166 #endif
2169 main ()
2171 return $2 ();
2173 return 0;
2175 _ACEOF
2176 if ac_fn_cxx_try_link "$LINENO"; then :
2177 eval "$3=yes"
2178 else
2179 eval "$3=no"
2181 rm -f core conftest.err conftest.$ac_objext \
2182 conftest$ac_exeext conftest.$ac_ext
2184 eval ac_res=\$$3
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2186 $as_echo "$ac_res" >&6; }
2187 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2189 } # ac_fn_cxx_check_func
2190 cat >config.log <<_ACEOF
2191 This file contains any messages produced by compilers while
2192 running configure, to aid debugging if configure makes a mistake.
2194 It was created by Automated Testing Framework $as_me 0.7, which was
2195 generated by GNU Autoconf 2.65. Invocation command line was
2197 $ $0 $@
2199 _ACEOF
2200 exec 5>>config.log
2202 cat <<_ASUNAME
2203 ## --------- ##
2204 ## Platform. ##
2205 ## --------- ##
2207 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2208 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2209 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2210 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2211 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2213 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2214 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2216 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2217 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2218 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2219 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2220 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2221 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2222 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2224 _ASUNAME
2226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227 for as_dir in $PATH
2229 IFS=$as_save_IFS
2230 test -z "$as_dir" && as_dir=.
2231 $as_echo "PATH: $as_dir"
2232 done
2233 IFS=$as_save_IFS
2235 } >&5
2237 cat >&5 <<_ACEOF
2240 ## ----------- ##
2241 ## Core tests. ##
2242 ## ----------- ##
2244 _ACEOF
2247 # Keep a trace of the command line.
2248 # Strip out --no-create and --no-recursion so they do not pile up.
2249 # Strip out --silent because we don't want to record it for future runs.
2250 # Also quote any args containing shell meta-characters.
2251 # Make two passes to allow for proper duplicate-argument suppression.
2252 ac_configure_args=
2253 ac_configure_args0=
2254 ac_configure_args1=
2255 ac_must_keep_next=false
2256 for ac_pass in 1 2
2258 for ac_arg
2260 case $ac_arg in
2261 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2263 | -silent | --silent | --silen | --sile | --sil)
2264 continue ;;
2265 *\'*)
2266 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2267 esac
2268 case $ac_pass in
2269 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2271 as_fn_append ac_configure_args1 " '$ac_arg'"
2272 if test $ac_must_keep_next = true; then
2273 ac_must_keep_next=false # Got value, back to normal.
2274 else
2275 case $ac_arg in
2276 *=* | --config-cache | -C | -disable-* | --disable-* \
2277 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2278 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2279 | -with-* | --with-* | -without-* | --without-* | --x)
2280 case "$ac_configure_args0 " in
2281 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2282 esac
2284 -* ) ac_must_keep_next=true ;;
2285 esac
2287 as_fn_append ac_configure_args " '$ac_arg'"
2289 esac
2290 done
2291 done
2292 { ac_configure_args0=; unset ac_configure_args0;}
2293 { ac_configure_args1=; unset ac_configure_args1;}
2295 # When interrupted or exit'd, cleanup temporary files, and complete
2296 # config.log. We remove comments because anyway the quotes in there
2297 # would cause problems or look ugly.
2298 # WARNING: Use '\'' to represent an apostrophe within the trap.
2299 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2300 trap 'exit_status=$?
2301 # Save into config.log some information that might help in debugging.
2303 echo
2305 cat <<\_ASBOX
2306 ## ---------------- ##
2307 ## Cache variables. ##
2308 ## ---------------- ##
2309 _ASBOX
2310 echo
2311 # The following way of writing the cache mishandles newlines in values,
2313 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2314 eval ac_val=\$$ac_var
2315 case $ac_val in #(
2316 *${as_nl}*)
2317 case $ac_var in #(
2318 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2319 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2320 esac
2321 case $ac_var in #(
2322 _ | IFS | as_nl) ;; #(
2323 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2324 *) { eval $ac_var=; unset $ac_var;} ;;
2325 esac ;;
2326 esac
2327 done
2328 (set) 2>&1 |
2329 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2330 *${as_nl}ac_space=\ *)
2331 sed -n \
2332 "s/'\''/'\''\\\\'\'''\''/g;
2333 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2334 ;; #(
2336 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2338 esac |
2339 sort
2341 echo
2343 cat <<\_ASBOX
2344 ## ----------------- ##
2345 ## Output variables. ##
2346 ## ----------------- ##
2347 _ASBOX
2348 echo
2349 for ac_var in $ac_subst_vars
2351 eval ac_val=\$$ac_var
2352 case $ac_val in
2353 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2354 esac
2355 $as_echo "$ac_var='\''$ac_val'\''"
2356 done | sort
2357 echo
2359 if test -n "$ac_subst_files"; then
2360 cat <<\_ASBOX
2361 ## ------------------- ##
2362 ## File substitutions. ##
2363 ## ------------------- ##
2364 _ASBOX
2365 echo
2366 for ac_var in $ac_subst_files
2368 eval ac_val=\$$ac_var
2369 case $ac_val in
2370 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2371 esac
2372 $as_echo "$ac_var='\''$ac_val'\''"
2373 done | sort
2374 echo
2377 if test -s confdefs.h; then
2378 cat <<\_ASBOX
2379 ## ----------- ##
2380 ## confdefs.h. ##
2381 ## ----------- ##
2382 _ASBOX
2383 echo
2384 cat confdefs.h
2385 echo
2387 test "$ac_signal" != 0 &&
2388 $as_echo "$as_me: caught signal $ac_signal"
2389 $as_echo "$as_me: exit $exit_status"
2390 } >&5
2391 rm -f core *.core core.conftest.* &&
2392 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2393 exit $exit_status
2395 for ac_signal in 1 2 13 15; do
2396 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2397 done
2398 ac_signal=0
2400 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2401 rm -f -r conftest* confdefs.h
2403 $as_echo "/* confdefs.h */" > confdefs.h
2405 # Predefined preprocessor variables.
2407 cat >>confdefs.h <<_ACEOF
2408 #define PACKAGE_NAME "$PACKAGE_NAME"
2409 _ACEOF
2411 cat >>confdefs.h <<_ACEOF
2412 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2413 _ACEOF
2415 cat >>confdefs.h <<_ACEOF
2416 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2417 _ACEOF
2419 cat >>confdefs.h <<_ACEOF
2420 #define PACKAGE_STRING "$PACKAGE_STRING"
2421 _ACEOF
2423 cat >>confdefs.h <<_ACEOF
2424 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2425 _ACEOF
2427 cat >>confdefs.h <<_ACEOF
2428 #define PACKAGE_URL "$PACKAGE_URL"
2429 _ACEOF
2432 # Let the site file select an alternate cache file if it wants to.
2433 # Prefer an explicitly selected file to automatically selected ones.
2434 ac_site_file1=NONE
2435 ac_site_file2=NONE
2436 if test -n "$CONFIG_SITE"; then
2437 ac_site_file1=$CONFIG_SITE
2438 elif test "x$prefix" != xNONE; then
2439 ac_site_file1=$prefix/share/config.site
2440 ac_site_file2=$prefix/etc/config.site
2441 else
2442 ac_site_file1=$ac_default_prefix/share/config.site
2443 ac_site_file2=$ac_default_prefix/etc/config.site
2445 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2447 test "x$ac_site_file" = xNONE && continue
2448 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2450 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2451 sed 's/^/| /' "$ac_site_file" >&5
2452 . "$ac_site_file"
2454 done
2456 if test -r "$cache_file"; then
2457 # Some versions of bash will fail to source /dev/null (special files
2458 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2459 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2461 $as_echo "$as_me: loading cache $cache_file" >&6;}
2462 case $cache_file in
2463 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2464 *) . "./$cache_file";;
2465 esac
2467 else
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2469 $as_echo "$as_me: creating cache $cache_file" >&6;}
2470 >$cache_file
2473 # Check that the precious variables saved in the cache have kept the same
2474 # value.
2475 ac_cache_corrupted=false
2476 for ac_var in $ac_precious_vars; do
2477 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2478 eval ac_new_set=\$ac_env_${ac_var}_set
2479 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2480 eval ac_new_val=\$ac_env_${ac_var}_value
2481 case $ac_old_set,$ac_new_set in
2482 set,)
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2484 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2485 ac_cache_corrupted=: ;;
2486 ,set)
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2488 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2489 ac_cache_corrupted=: ;;
2490 ,);;
2492 if test "x$ac_old_val" != "x$ac_new_val"; then
2493 # differences in whitespace do not lead to failure.
2494 ac_old_val_w=`echo x $ac_old_val`
2495 ac_new_val_w=`echo x $ac_new_val`
2496 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2498 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2499 ac_cache_corrupted=:
2500 else
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2502 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2503 eval $ac_var=\$ac_old_val
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2506 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2508 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2509 fi;;
2510 esac
2511 # Pass precious variables to config.status.
2512 if test "$ac_new_set" = set; then
2513 case $ac_new_val in
2514 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2515 *) ac_arg=$ac_var=$ac_new_val ;;
2516 esac
2517 case " $ac_configure_args " in
2518 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2519 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2520 esac
2522 done
2523 if $ac_cache_corrupted; then
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2527 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2528 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2530 ## -------------------- ##
2531 ## Main body of script. ##
2532 ## -------------------- ##
2534 ac_ext=c
2535 ac_cpp='$CPP $CPPFLAGS'
2536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2544 $as_echo "#define PACKAGE_COPYRIGHT \"Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc.\"" >>confdefs.h
2546 ac_aux_dir=
2547 for ac_dir in admin "$srcdir"/admin; do
2548 for ac_t in install-sh install.sh shtool; do
2549 if test -f "$ac_dir/$ac_t"; then
2550 ac_aux_dir=$ac_dir
2551 ac_install_sh="$ac_aux_dir/$ac_t -c"
2552 break 2
2554 done
2555 done
2556 if test -z "$ac_aux_dir"; then
2557 as_fn_error "cannot find install-sh, install.sh, or shtool in admin \"$srcdir\"/admin" "$LINENO" 5
2560 # These three variables are undocumented and unsupported,
2561 # and are intended to be withdrawn in a future Autoconf release.
2562 # They can cause serious problems if a builder's source tree is in a directory
2563 # whose full name contains unusual characters.
2564 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2565 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2566 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2569 ac_config_headers="$ac_config_headers bconfig.h"
2573 ac_config_commands="$ac_config_commands tests/bootstrap/atconfig"
2576 # Make sure we can run config.sub.
2577 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2578 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2581 $as_echo_n "checking build system type... " >&6; }
2582 if test "${ac_cv_build+set}" = set; then :
2583 $as_echo_n "(cached) " >&6
2584 else
2585 ac_build_alias=$build_alias
2586 test "x$ac_build_alias" = x &&
2587 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2588 test "x$ac_build_alias" = x &&
2589 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2590 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2591 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2595 $as_echo "$ac_cv_build" >&6; }
2596 case $ac_cv_build in
2597 *-*-*) ;;
2598 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2599 esac
2600 build=$ac_cv_build
2601 ac_save_IFS=$IFS; IFS='-'
2602 set x $ac_cv_build
2603 shift
2604 build_cpu=$1
2605 build_vendor=$2
2606 shift; shift
2607 # Remember, the first character of IFS is used to create $*,
2608 # except with old shells:
2609 build_os=$*
2610 IFS=$ac_save_IFS
2611 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2615 $as_echo_n "checking host system type... " >&6; }
2616 if test "${ac_cv_host+set}" = set; then :
2617 $as_echo_n "(cached) " >&6
2618 else
2619 if test "x$host_alias" = x; then
2620 ac_cv_host=$ac_cv_build
2621 else
2622 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2623 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2628 $as_echo "$ac_cv_host" >&6; }
2629 case $ac_cv_host in
2630 *-*-*) ;;
2631 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2632 esac
2633 host=$ac_cv_host
2634 ac_save_IFS=$IFS; IFS='-'
2635 set x $ac_cv_host
2636 shift
2637 host_cpu=$1
2638 host_vendor=$2
2639 shift; shift
2640 # Remember, the first character of IFS is used to create $*,
2641 # except with old shells:
2642 host_os=$*
2643 IFS=$ac_save_IFS
2644 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2648 $as_echo_n "checking target system type... " >&6; }
2649 if test "${ac_cv_target+set}" = set; then :
2650 $as_echo_n "(cached) " >&6
2651 else
2652 if test "x$target_alias" = x; then
2653 ac_cv_target=$ac_cv_host
2654 else
2655 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2656 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2661 $as_echo "$ac_cv_target" >&6; }
2662 case $ac_cv_target in
2663 *-*-*) ;;
2664 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2665 esac
2666 target=$ac_cv_target
2667 ac_save_IFS=$IFS; IFS='-'
2668 set x $ac_cv_target
2669 shift
2670 target_cpu=$1
2671 target_vendor=$2
2672 shift; shift
2673 # Remember, the first character of IFS is used to create $*,
2674 # except with old shells:
2675 target_os=$*
2676 IFS=$ac_save_IFS
2677 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2680 # The aliases save the names the user supplied, while $host etc.
2681 # will get canonicalized.
2682 test -n "$target_alias" &&
2683 test "$program_prefix$program_suffix$program_transform_name" = \
2684 NONENONEs,x,x, &&
2685 program_prefix=${target_alias}-
2687 am__api_version='1.11'
2689 # Find a good install program. We prefer a C program (faster),
2690 # so one script is as good as another. But avoid the broken or
2691 # incompatible versions:
2692 # SysV /etc/install, /usr/sbin/install
2693 # SunOS /usr/etc/install
2694 # IRIX /sbin/install
2695 # AIX /bin/install
2696 # AmigaOS /C/install, which installs bootblocks on floppy discs
2697 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2698 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2699 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2700 # OS/2's system install, which has a completely different semantic
2701 # ./install, which can be erroneously created by make from ./install.sh.
2702 # Reject install programs that cannot install multiple files.
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2704 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2705 if test -z "$INSTALL"; then
2706 if test "${ac_cv_path_install+set}" = set; then :
2707 $as_echo_n "(cached) " >&6
2708 else
2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 for as_dir in $PATH
2712 IFS=$as_save_IFS
2713 test -z "$as_dir" && as_dir=.
2714 # Account for people who put trailing slashes in PATH elements.
2715 case $as_dir/ in #((
2716 ./ | .// | /[cC]/* | \
2717 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2718 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2719 /usr/ucb/* ) ;;
2721 # OSF1 and SCO ODT 3.0 have their own names for install.
2722 # Don't use installbsd from OSF since it installs stuff as root
2723 # by default.
2724 for ac_prog in ginstall scoinst install; do
2725 for ac_exec_ext in '' $ac_executable_extensions; do
2726 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2727 if test $ac_prog = install &&
2728 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2729 # AIX install. It has an incompatible calling convention.
2731 elif test $ac_prog = install &&
2732 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2733 # program-specific install script used by HP pwplus--don't use.
2735 else
2736 rm -rf conftest.one conftest.two conftest.dir
2737 echo one > conftest.one
2738 echo two > conftest.two
2739 mkdir conftest.dir
2740 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2741 test -s conftest.one && test -s conftest.two &&
2742 test -s conftest.dir/conftest.one &&
2743 test -s conftest.dir/conftest.two
2744 then
2745 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2746 break 3
2750 done
2751 done
2753 esac
2755 done
2756 IFS=$as_save_IFS
2758 rm -rf conftest.one conftest.two conftest.dir
2761 if test "${ac_cv_path_install+set}" = set; then
2762 INSTALL=$ac_cv_path_install
2763 else
2764 # As a last resort, use the slow shell script. Don't cache a
2765 # value for INSTALL within a source directory, because that will
2766 # break other packages using the cache if that directory is
2767 # removed, or if the value is a relative name.
2768 INSTALL=$ac_install_sh
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2772 $as_echo "$INSTALL" >&6; }
2774 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2775 # It thinks the first close brace ends the variable substitution.
2776 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2778 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2780 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2783 $as_echo_n "checking whether build environment is sane... " >&6; }
2784 # Just in case
2785 sleep 1
2786 echo timestamp > conftest.file
2787 # Reject unsafe characters in $srcdir or the absolute working directory
2788 # name. Accept space and tab only in the latter.
2789 am_lf='
2791 case `pwd` in
2792 *[\\\"\#\$\&\'\`$am_lf]*)
2793 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2794 esac
2795 case $srcdir in
2796 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2797 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2798 esac
2800 # Do `set' in a subshell so we don't clobber the current shell's
2801 # arguments. Must try -L first in case configure is actually a
2802 # symlink; some systems play weird games with the mod time of symlinks
2803 # (eg FreeBSD returns the mod time of the symlink's containing
2804 # directory).
2805 if (
2806 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2807 if test "$*" = "X"; then
2808 # -L didn't work.
2809 set X `ls -t "$srcdir/configure" conftest.file`
2811 rm -f conftest.file
2812 if test "$*" != "X $srcdir/configure conftest.file" \
2813 && test "$*" != "X conftest.file $srcdir/configure"; then
2815 # If neither matched, then we have a broken ls. This can happen
2816 # if, for instance, CONFIG_SHELL is bash and it inherits a
2817 # broken ls alias from the environment. This has actually
2818 # happened. Such a system could not be considered "sane".
2819 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2820 alias in your environment" "$LINENO" 5
2823 test "$2" = conftest.file
2825 then
2826 # Ok.
2828 else
2829 as_fn_error "newly created file is older than distributed files!
2830 Check your system clock" "$LINENO" 5
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2833 $as_echo "yes" >&6; }
2834 test "$program_prefix" != NONE &&
2835 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2836 # Use a double $ so make ignores it.
2837 test "$program_suffix" != NONE &&
2838 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2839 # Double any \ or $.
2840 # By default was `s,x,x', remove it if useless.
2841 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2842 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2844 # expand $ac_aux_dir to an absolute path
2845 am_aux_dir=`cd $ac_aux_dir && pwd`
2847 if test x"${MISSING+set}" != xset; then
2848 case $am_aux_dir in
2849 *\ * | *\ *)
2850 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2852 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2853 esac
2855 # Use eval to expand $SHELL
2856 if eval "$MISSING --run true"; then
2857 am_missing_run="$MISSING --run "
2858 else
2859 am_missing_run=
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2861 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2864 if test x"${install_sh}" != xset; then
2865 case $am_aux_dir in
2866 *\ * | *\ *)
2867 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2869 install_sh="\${SHELL} $am_aux_dir/install-sh"
2870 esac
2873 # Installed binaries are usually stripped using `strip' when the user
2874 # run `make install-strip'. However `strip' might not be the right
2875 # tool to use in cross-compilation environments, therefore Automake
2876 # will honor the `STRIP' environment variable to overrule this program.
2877 if test "$cross_compiling" != no; then
2878 if test -n "$ac_tool_prefix"; then
2879 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2880 set dummy ${ac_tool_prefix}strip; ac_word=$2
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882 $as_echo_n "checking for $ac_word... " >&6; }
2883 if test "${ac_cv_prog_STRIP+set}" = set; then :
2884 $as_echo_n "(cached) " >&6
2885 else
2886 if test -n "$STRIP"; then
2887 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2888 else
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 for as_dir in $PATH
2892 IFS=$as_save_IFS
2893 test -z "$as_dir" && as_dir=.
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898 break 2
2900 done
2901 done
2902 IFS=$as_save_IFS
2906 STRIP=$ac_cv_prog_STRIP
2907 if test -n "$STRIP"; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2909 $as_echo "$STRIP" >&6; }
2910 else
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 $as_echo "no" >&6; }
2917 if test -z "$ac_cv_prog_STRIP"; then
2918 ac_ct_STRIP=$STRIP
2919 # Extract the first word of "strip", so it can be a program name with args.
2920 set dummy strip; ac_word=$2
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2922 $as_echo_n "checking for $ac_word... " >&6; }
2923 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2924 $as_echo_n "(cached) " >&6
2925 else
2926 if test -n "$ac_ct_STRIP"; then
2927 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2928 else
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 for as_dir in $PATH
2932 IFS=$as_save_IFS
2933 test -z "$as_dir" && as_dir=.
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2936 ac_cv_prog_ac_ct_STRIP="strip"
2937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 break 2
2940 done
2941 done
2942 IFS=$as_save_IFS
2946 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2947 if test -n "$ac_ct_STRIP"; then
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2949 $as_echo "$ac_ct_STRIP" >&6; }
2950 else
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952 $as_echo "no" >&6; }
2955 if test "x$ac_ct_STRIP" = x; then
2956 STRIP=":"
2957 else
2958 case $cross_compiling:$ac_tool_warned in
2959 yes:)
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2962 ac_tool_warned=yes ;;
2963 esac
2964 STRIP=$ac_ct_STRIP
2966 else
2967 STRIP="$ac_cv_prog_STRIP"
2971 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2974 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2975 if test -z "$MKDIR_P"; then
2976 if test "${ac_cv_path_mkdir+set}" = set; then :
2977 $as_echo_n "(cached) " >&6
2978 else
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2982 IFS=$as_save_IFS
2983 test -z "$as_dir" && as_dir=.
2984 for ac_prog in mkdir gmkdir; do
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2987 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2988 'mkdir (GNU coreutils) '* | \
2989 'mkdir (coreutils) '* | \
2990 'mkdir (fileutils) '4.1*)
2991 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2992 break 3;;
2993 esac
2994 done
2995 done
2996 done
2997 IFS=$as_save_IFS
3001 test -d ./--version && rmdir ./--version
3002 if test "${ac_cv_path_mkdir+set}" = set; then
3003 MKDIR_P="$ac_cv_path_mkdir -p"
3004 else
3005 # As a last resort, use the slow shell script. Don't cache a
3006 # value for MKDIR_P within a source directory, because that will
3007 # break other packages using the cache if that directory is
3008 # removed, or if the value is a relative name.
3009 MKDIR_P="$ac_install_sh -d"
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3013 $as_echo "$MKDIR_P" >&6; }
3015 mkdir_p="$MKDIR_P"
3016 case $mkdir_p in
3017 [\\/$]* | ?:[\\/]*) ;;
3018 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3019 esac
3021 for ac_prog in gawk mawk nawk awk
3023 # Extract the first word of "$ac_prog", so it can be a program name with args.
3024 set dummy $ac_prog; ac_word=$2
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 $as_echo_n "checking for $ac_word... " >&6; }
3027 if test "${ac_cv_prog_AWK+set}" = set; then :
3028 $as_echo_n "(cached) " >&6
3029 else
3030 if test -n "$AWK"; then
3031 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3032 else
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3040 ac_cv_prog_AWK="$ac_prog"
3041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 break 2
3044 done
3045 done
3046 IFS=$as_save_IFS
3050 AWK=$ac_cv_prog_AWK
3051 if test -n "$AWK"; then
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3053 $as_echo "$AWK" >&6; }
3054 else
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056 $as_echo "no" >&6; }
3060 test -n "$AWK" && break
3061 done
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3064 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3065 set x ${MAKE-make}
3066 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3067 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3068 $as_echo_n "(cached) " >&6
3069 else
3070 cat >conftest.make <<\_ACEOF
3071 SHELL = /bin/sh
3072 all:
3073 @echo '@@@%%%=$(MAKE)=@@@%%%'
3074 _ACEOF
3075 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3076 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3077 *@@@%%%=?*=@@@%%%*)
3078 eval ac_cv_prog_make_${ac_make}_set=yes;;
3080 eval ac_cv_prog_make_${ac_make}_set=no;;
3081 esac
3082 rm -f conftest.make
3084 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3086 $as_echo "yes" >&6; }
3087 SET_MAKE=
3088 else
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090 $as_echo "no" >&6; }
3091 SET_MAKE="MAKE=${MAKE-make}"
3094 rm -rf .tst 2>/dev/null
3095 mkdir .tst 2>/dev/null
3096 if test -d .tst; then
3097 am__leading_dot=.
3098 else
3099 am__leading_dot=_
3101 rmdir .tst 2>/dev/null
3103 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3104 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3105 # is not polluted with repeated "-I."
3106 am__isrc=' -I$(srcdir)'
3107 # test to see if srcdir already configured
3108 if test -f $srcdir/config.status; then
3109 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3113 # test whether we have cygpath
3114 if test -z "$CYGPATH_W"; then
3115 if (cygpath --version) >/dev/null 2>/dev/null; then
3116 CYGPATH_W='cygpath -w'
3117 else
3118 CYGPATH_W=echo
3123 # Define the identity of the package.
3124 PACKAGE='atf'
3125 VERSION='0.7'
3128 cat >>confdefs.h <<_ACEOF
3129 #define PACKAGE "$PACKAGE"
3130 _ACEOF
3133 cat >>confdefs.h <<_ACEOF
3134 #define VERSION "$VERSION"
3135 _ACEOF
3137 # Some tools Automake needs.
3139 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3142 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3145 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3148 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3151 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3153 # We need awk for the "check" target. The system "awk" is bad on
3154 # some platforms.
3155 # Always define AMTAR for backward compatibility.
3157 AMTAR=${AMTAR-"${am_missing_run}tar"}
3159 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3166 # Check whether --enable-unstable-shared was given.
3167 if test "${enable_unstable_shared+set}" = set; then :
3168 enableval=$enable_unstable_shared; case $enableval in
3169 yes|no) enable_shared=${enableval} ;;
3170 *) enable_shared=${enableval} ;;
3171 esac
3172 else
3173 enable_shared=no
3177 case `pwd` in
3178 *\ * | *\ *)
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3180 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3181 esac
3185 macro_version='2.2.6b'
3186 macro_revision='1.3017'
3200 ltmain="$ac_aux_dir/ltmain.sh"
3202 DEPDIR="${am__leading_dot}deps"
3204 ac_config_commands="$ac_config_commands depfiles"
3207 am_make=${MAKE-make}
3208 cat > confinc << 'END'
3209 am__doit:
3210 @echo this is the am__doit target
3211 .PHONY: am__doit
3213 # If we don't find an include directive, just comment out the code.
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3215 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3216 am__include="#"
3217 am__quote=
3218 _am_result=none
3219 # First try GNU make style include.
3220 echo "include confinc" > confmf
3221 # Ignore all kinds of additional output from `make'.
3222 case `$am_make -s -f confmf 2> /dev/null` in #(
3223 *the\ am__doit\ target*)
3224 am__include=include
3225 am__quote=
3226 _am_result=GNU
3228 esac
3229 # Now try BSD make style include.
3230 if test "$am__include" = "#"; then
3231 echo '.include "confinc"' > confmf
3232 case `$am_make -s -f confmf 2> /dev/null` in #(
3233 *the\ am__doit\ target*)
3234 am__include=.include
3235 am__quote="\""
3236 _am_result=BSD
3238 esac
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3243 $as_echo "$_am_result" >&6; }
3244 rm -f confinc confmf
3246 # Check whether --enable-dependency-tracking was given.
3247 if test "${enable_dependency_tracking+set}" = set; then :
3248 enableval=$enable_dependency_tracking;
3251 if test "x$enable_dependency_tracking" != xno; then
3252 am_depcomp="$ac_aux_dir/depcomp"
3253 AMDEPBACKSLASH='\'
3255 if test "x$enable_dependency_tracking" != xno; then
3256 AMDEP_TRUE=
3257 AMDEP_FALSE='#'
3258 else
3259 AMDEP_TRUE='#'
3260 AMDEP_FALSE=
3264 ac_ext=c
3265 ac_cpp='$CPP $CPPFLAGS'
3266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3269 if test -n "$ac_tool_prefix"; then
3270 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3271 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3273 $as_echo_n "checking for $ac_word... " >&6; }
3274 if test "${ac_cv_prog_CC+set}" = set; then :
3275 $as_echo_n "(cached) " >&6
3276 else
3277 if test -n "$CC"; then
3278 ac_cv_prog_CC="$CC" # Let the user override the test.
3279 else
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 for as_dir in $PATH
3283 IFS=$as_save_IFS
3284 test -z "$as_dir" && as_dir=.
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3287 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3289 break 2
3291 done
3292 done
3293 IFS=$as_save_IFS
3297 CC=$ac_cv_prog_CC
3298 if test -n "$CC"; then
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3300 $as_echo "$CC" >&6; }
3301 else
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303 $as_echo "no" >&6; }
3308 if test -z "$ac_cv_prog_CC"; then
3309 ac_ct_CC=$CC
3310 # Extract the first word of "gcc", so it can be a program name with args.
3311 set dummy gcc; 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
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="gcc"
3328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 break 2
3331 done
3332 done
3333 IFS=$as_save_IFS
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; }
3346 if test "x$ac_ct_CC" = x; then
3347 CC=""
3348 else
3349 case $cross_compiling:$ac_tool_warned in
3350 yes:)
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3353 ac_tool_warned=yes ;;
3354 esac
3355 CC=$ac_ct_CC
3357 else
3358 CC="$ac_cv_prog_CC"
3361 if test -z "$CC"; then
3362 if test -n "$ac_tool_prefix"; then
3363 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3364 set dummy ${ac_tool_prefix}cc; ac_word=$2
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3366 $as_echo_n "checking for $ac_word... " >&6; }
3367 if test "${ac_cv_prog_CC+set}" = set; then :
3368 $as_echo_n "(cached) " >&6
3369 else
3370 if test -n "$CC"; then
3371 ac_cv_prog_CC="$CC" # Let the user override the test.
3372 else
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 for as_dir in $PATH
3376 IFS=$as_save_IFS
3377 test -z "$as_dir" && as_dir=.
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3380 ac_cv_prog_CC="${ac_tool_prefix}cc"
3381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3382 break 2
3384 done
3385 done
3386 IFS=$as_save_IFS
3390 CC=$ac_cv_prog_CC
3391 if test -n "$CC"; then
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3393 $as_echo "$CC" >&6; }
3394 else
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396 $as_echo "no" >&6; }
3402 if test -z "$CC"; then
3403 # Extract the first word of "cc", so it can be a program name with args.
3404 set dummy cc; ac_word=$2
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3406 $as_echo_n "checking for $ac_word... " >&6; }
3407 if test "${ac_cv_prog_CC+set}" = set; then :
3408 $as_echo_n "(cached) " >&6
3409 else
3410 if test -n "$CC"; then
3411 ac_cv_prog_CC="$CC" # Let the user override the test.
3412 else
3413 ac_prog_rejected=no
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415 for as_dir in $PATH
3417 IFS=$as_save_IFS
3418 test -z "$as_dir" && as_dir=.
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3421 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3422 ac_prog_rejected=yes
3423 continue
3425 ac_cv_prog_CC="cc"
3426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3427 break 2
3429 done
3430 done
3431 IFS=$as_save_IFS
3433 if test $ac_prog_rejected = yes; then
3434 # We found a bogon in the path, so make sure we never use it.
3435 set dummy $ac_cv_prog_CC
3436 shift
3437 if test $# != 0; then
3438 # We chose a different compiler from the bogus one.
3439 # However, it has the same basename, so the bogon will be chosen
3440 # first if we set CC to just the basename; use the full file name.
3441 shift
3442 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3447 CC=$ac_cv_prog_CC
3448 if test -n "$CC"; then
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3450 $as_echo "$CC" >&6; }
3451 else
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3458 if test -z "$CC"; then
3459 if test -n "$ac_tool_prefix"; then
3460 for ac_prog in cl.exe
3462 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3463 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465 $as_echo_n "checking for $ac_word... " >&6; }
3466 if test "${ac_cv_prog_CC+set}" = set; then :
3467 $as_echo_n "(cached) " >&6
3468 else
3469 if test -n "$CC"; then
3470 ac_cv_prog_CC="$CC" # Let the user override the test.
3471 else
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH
3475 IFS=$as_save_IFS
3476 test -z "$as_dir" && as_dir=.
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3479 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3481 break 2
3483 done
3484 done
3485 IFS=$as_save_IFS
3489 CC=$ac_cv_prog_CC
3490 if test -n "$CC"; then
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3492 $as_echo "$CC" >&6; }
3493 else
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 $as_echo "no" >&6; }
3499 test -n "$CC" && break
3500 done
3502 if test -z "$CC"; then
3503 ac_ct_CC=$CC
3504 for ac_prog in cl.exe
3506 # Extract the first word of "$ac_prog", so it can be a program name with args.
3507 set dummy $ac_prog; ac_word=$2
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3509 $as_echo_n "checking for $ac_word... " >&6; }
3510 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3511 $as_echo_n "(cached) " >&6
3512 else
3513 if test -n "$ac_ct_CC"; then
3514 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3515 else
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 for as_dir in $PATH
3519 IFS=$as_save_IFS
3520 test -z "$as_dir" && as_dir=.
3521 for ac_exec_ext in '' $ac_executable_extensions; do
3522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3523 ac_cv_prog_ac_ct_CC="$ac_prog"
3524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3525 break 2
3527 done
3528 done
3529 IFS=$as_save_IFS
3533 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3534 if test -n "$ac_ct_CC"; then
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3536 $as_echo "$ac_ct_CC" >&6; }
3537 else
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539 $as_echo "no" >&6; }
3543 test -n "$ac_ct_CC" && break
3544 done
3546 if test "x$ac_ct_CC" = x; then
3547 CC=""
3548 else
3549 case $cross_compiling:$ac_tool_warned in
3550 yes:)
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3553 ac_tool_warned=yes ;;
3554 esac
3555 CC=$ac_ct_CC
3562 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3564 as_fn_error "no acceptable C compiler found in \$PATH
3565 See \`config.log' for more details." "$LINENO" 5; }
3567 # Provide some information about the compiler.
3568 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3569 set X $ac_compile
3570 ac_compiler=$2
3571 for ac_option in --version -v -V -qversion; do
3572 { { ac_try="$ac_compiler $ac_option >&5"
3573 case "(($ac_try" in
3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3576 esac
3577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3578 $as_echo "$ac_try_echo"; } >&5
3579 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3580 ac_status=$?
3581 if test -s conftest.err; then
3582 sed '10a\
3583 ... rest of stderr output deleted ...
3584 10q' conftest.err >conftest.er1
3585 cat conftest.er1 >&5
3587 rm -f conftest.er1 conftest.err
3588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3589 test $ac_status = 0; }
3590 done
3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h. */
3596 main ()
3600 return 0;
3602 _ACEOF
3603 ac_clean_files_save=$ac_clean_files
3604 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3605 # Try to create an executable without -o first, disregard a.out.
3606 # It will help us diagnose broken compilers, and finding out an intuition
3607 # of exeext.
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3609 $as_echo_n "checking whether the C compiler works... " >&6; }
3610 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3612 # The possible output files:
3613 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3615 ac_rmfiles=
3616 for ac_file in $ac_files
3618 case $ac_file in
3619 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3620 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3621 esac
3622 done
3623 rm -f $ac_rmfiles
3625 if { { ac_try="$ac_link_default"
3626 case "(($ac_try" in
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3629 esac
3630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3631 $as_echo "$ac_try_echo"; } >&5
3632 (eval "$ac_link_default") 2>&5
3633 ac_status=$?
3634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3635 test $ac_status = 0; }; then :
3636 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3637 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3638 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3639 # so that the user can short-circuit this test for compilers unknown to
3640 # Autoconf.
3641 for ac_file in $ac_files ''
3643 test -f "$ac_file" || continue
3644 case $ac_file in
3645 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3647 [ab].out )
3648 # We found the default executable, but exeext='' is most
3649 # certainly right.
3650 break;;
3651 *.* )
3652 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3653 then :; else
3654 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3656 # We set ac_cv_exeext here because the later test for it is not
3657 # safe: cross compilers may not add the suffix if given an `-o'
3658 # argument, so we may need to know it at that point already.
3659 # Even if this section looks crufty: it has the advantage of
3660 # actually working.
3661 break;;
3663 break;;
3664 esac
3665 done
3666 test "$ac_cv_exeext" = no && ac_cv_exeext=
3668 else
3669 ac_file=''
3671 if test -z "$ac_file"; then :
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673 $as_echo "no" >&6; }
3674 $as_echo "$as_me: failed program was:" >&5
3675 sed 's/^/| /' conftest.$ac_ext >&5
3677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3679 { as_fn_set_status 77
3680 as_fn_error "C compiler cannot create executables
3681 See \`config.log' for more details." "$LINENO" 5; }; }
3682 else
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3684 $as_echo "yes" >&6; }
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3687 $as_echo_n "checking for C compiler default output file name... " >&6; }
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3689 $as_echo "$ac_file" >&6; }
3690 ac_exeext=$ac_cv_exeext
3692 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3693 ac_clean_files=$ac_clean_files_save
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3695 $as_echo_n "checking for suffix of executables... " >&6; }
3696 if { { ac_try="$ac_link"
3697 case "(($ac_try" in
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3700 esac
3701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3702 $as_echo "$ac_try_echo"; } >&5
3703 (eval "$ac_link") 2>&5
3704 ac_status=$?
3705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3706 test $ac_status = 0; }; then :
3707 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3708 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3709 # work properly (i.e., refer to `conftest.exe'), while it won't with
3710 # `rm'.
3711 for ac_file in conftest.exe conftest conftest.*; do
3712 test -f "$ac_file" || continue
3713 case $ac_file in
3714 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3715 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3716 break;;
3717 * ) break;;
3718 esac
3719 done
3720 else
3721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3723 as_fn_error "cannot compute suffix of executables: cannot compile and link
3724 See \`config.log' for more details." "$LINENO" 5; }
3726 rm -f conftest conftest$ac_cv_exeext
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3728 $as_echo "$ac_cv_exeext" >&6; }
3730 rm -f conftest.$ac_ext
3731 EXEEXT=$ac_cv_exeext
3732 ac_exeext=$EXEEXT
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h. */
3735 #include <stdio.h>
3737 main ()
3739 FILE *f = fopen ("conftest.out", "w");
3740 return ferror (f) || fclose (f) != 0;
3743 return 0;
3745 _ACEOF
3746 ac_clean_files="$ac_clean_files conftest.out"
3747 # Check that the compiler produces executables we can run. If not, either
3748 # the compiler is broken, or we cross compile.
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3750 $as_echo_n "checking whether we are cross compiling... " >&6; }
3751 if test "$cross_compiling" != yes; then
3752 { { ac_try="$ac_link"
3753 case "(($ac_try" in
3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3756 esac
3757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3758 $as_echo "$ac_try_echo"; } >&5
3759 (eval "$ac_link") 2>&5
3760 ac_status=$?
3761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3762 test $ac_status = 0; }
3763 if { ac_try='./conftest$ac_cv_exeext'
3764 { { case "(($ac_try" in
3765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766 *) ac_try_echo=$ac_try;;
3767 esac
3768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769 $as_echo "$ac_try_echo"; } >&5
3770 (eval "$ac_try") 2>&5
3771 ac_status=$?
3772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773 test $ac_status = 0; }; }; then
3774 cross_compiling=no
3775 else
3776 if test "$cross_compiling" = maybe; then
3777 cross_compiling=yes
3778 else
3779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3781 as_fn_error "cannot run C compiled programs.
3782 If you meant to cross compile, use \`--host'.
3783 See \`config.log' for more details." "$LINENO" 5; }
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3788 $as_echo "$cross_compiling" >&6; }
3790 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3791 ac_clean_files=$ac_clean_files_save
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3793 $as_echo_n "checking for suffix of object files... " >&6; }
3794 if test "${ac_cv_objext+set}" = set; then :
3795 $as_echo_n "(cached) " >&6
3796 else
3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h. */
3801 main ()
3805 return 0;
3807 _ACEOF
3808 rm -f conftest.o conftest.obj
3809 if { { ac_try="$ac_compile"
3810 case "(($ac_try" in
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3813 esac
3814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815 $as_echo "$ac_try_echo"; } >&5
3816 (eval "$ac_compile") 2>&5
3817 ac_status=$?
3818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3819 test $ac_status = 0; }; then :
3820 for ac_file in conftest.o conftest.obj conftest.*; do
3821 test -f "$ac_file" || continue;
3822 case $ac_file in
3823 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3824 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3825 break;;
3826 esac
3827 done
3828 else
3829 $as_echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3834 as_fn_error "cannot compute suffix of object files: cannot compile
3835 See \`config.log' for more details." "$LINENO" 5; }
3837 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3840 $as_echo "$ac_cv_objext" >&6; }
3841 OBJEXT=$ac_cv_objext
3842 ac_objext=$OBJEXT
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3844 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3845 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3846 $as_echo_n "(cached) " >&6
3847 else
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h. */
3852 main ()
3854 #ifndef __GNUC__
3855 choke me
3856 #endif
3859 return 0;
3861 _ACEOF
3862 if ac_fn_c_try_compile "$LINENO"; then :
3863 ac_compiler_gnu=yes
3864 else
3865 ac_compiler_gnu=no
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3872 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3873 if test $ac_compiler_gnu = yes; then
3874 GCC=yes
3875 else
3876 GCC=
3878 ac_test_CFLAGS=${CFLAGS+set}
3879 ac_save_CFLAGS=$CFLAGS
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3881 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3882 if test "${ac_cv_prog_cc_g+set}" = set; then :
3883 $as_echo_n "(cached) " >&6
3884 else
3885 ac_save_c_werror_flag=$ac_c_werror_flag
3886 ac_c_werror_flag=yes
3887 ac_cv_prog_cc_g=no
3888 CFLAGS="-g"
3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h. */
3893 main ()
3897 return 0;
3899 _ACEOF
3900 if ac_fn_c_try_compile "$LINENO"; then :
3901 ac_cv_prog_cc_g=yes
3902 else
3903 CFLAGS=""
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h. */
3908 main ()
3912 return 0;
3914 _ACEOF
3915 if ac_fn_c_try_compile "$LINENO"; then :
3917 else
3918 ac_c_werror_flag=$ac_save_c_werror_flag
3919 CFLAGS="-g"
3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h. */
3924 main ()
3928 return 0;
3930 _ACEOF
3931 if ac_fn_c_try_compile "$LINENO"; then :
3932 ac_cv_prog_cc_g=yes
3934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3939 ac_c_werror_flag=$ac_save_c_werror_flag
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3942 $as_echo "$ac_cv_prog_cc_g" >&6; }
3943 if test "$ac_test_CFLAGS" = set; then
3944 CFLAGS=$ac_save_CFLAGS
3945 elif test $ac_cv_prog_cc_g = yes; then
3946 if test "$GCC" = yes; then
3947 CFLAGS="-g -O2"
3948 else
3949 CFLAGS="-g"
3951 else
3952 if test "$GCC" = yes; then
3953 CFLAGS="-O2"
3954 else
3955 CFLAGS=
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3959 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3960 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3961 $as_echo_n "(cached) " >&6
3962 else
3963 ac_cv_prog_cc_c89=no
3964 ac_save_CC=$CC
3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h. */
3967 #include <stdarg.h>
3968 #include <stdio.h>
3969 #include <sys/types.h>
3970 #include <sys/stat.h>
3971 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3972 struct buf { int x; };
3973 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3974 static char *e (p, i)
3975 char **p;
3976 int i;
3978 return p[i];
3980 static char *f (char * (*g) (char **, int), char **p, ...)
3982 char *s;
3983 va_list v;
3984 va_start (v,p);
3985 s = g (p, va_arg (v,int));
3986 va_end (v);
3987 return s;
3990 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3991 function prototypes and stuff, but not '\xHH' hex character constants.
3992 These don't provoke an error unfortunately, instead are silently treated
3993 as 'x'. The following induces an error, until -std is added to get
3994 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3995 array size at least. It's necessary to write '\x00'==0 to get something
3996 that's true only with -std. */
3997 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3999 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4000 inside strings and character constants. */
4001 #define FOO(x) 'x'
4002 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4004 int test (int i, double x);
4005 struct s1 {int (*f) (int a);};
4006 struct s2 {int (*f) (double a);};
4007 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4008 int argc;
4009 char **argv;
4011 main ()
4013 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4015 return 0;
4017 _ACEOF
4018 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4019 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4021 CC="$ac_save_CC $ac_arg"
4022 if ac_fn_c_try_compile "$LINENO"; then :
4023 ac_cv_prog_cc_c89=$ac_arg
4025 rm -f core conftest.err conftest.$ac_objext
4026 test "x$ac_cv_prog_cc_c89" != "xno" && break
4027 done
4028 rm -f conftest.$ac_ext
4029 CC=$ac_save_CC
4032 # AC_CACHE_VAL
4033 case "x$ac_cv_prog_cc_c89" in
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4036 $as_echo "none needed" >&6; } ;;
4037 xno)
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4039 $as_echo "unsupported" >&6; } ;;
4041 CC="$CC $ac_cv_prog_cc_c89"
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4043 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4044 esac
4045 if test "x$ac_cv_prog_cc_c89" != xno; then :
4049 ac_ext=c
4050 ac_cpp='$CPP $CPPFLAGS'
4051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4055 depcc="$CC" am_compiler_list=
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4058 $as_echo_n "checking dependency style of $depcc... " >&6; }
4059 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4060 $as_echo_n "(cached) " >&6
4061 else
4062 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4063 # We make a subdir and do the tests there. Otherwise we can end up
4064 # making bogus files that we don't know about and never remove. For
4065 # instance it was reported that on HP-UX the gcc test will end up
4066 # making a dummy file named `D' -- because `-MD' means `put the output
4067 # in D'.
4068 mkdir conftest.dir
4069 # Copy depcomp to subdir because otherwise we won't find it if we're
4070 # using a relative directory.
4071 cp "$am_depcomp" conftest.dir
4072 cd conftest.dir
4073 # We will build objects and dependencies in a subdirectory because
4074 # it helps to detect inapplicable dependency modes. For instance
4075 # both Tru64's cc and ICC support -MD to output dependencies as a
4076 # side effect of compilation, but ICC will put the dependencies in
4077 # the current directory while Tru64 will put them in the object
4078 # directory.
4079 mkdir sub
4081 am_cv_CC_dependencies_compiler_type=none
4082 if test "$am_compiler_list" = ""; then
4083 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4085 am__universal=false
4086 case " $depcc " in #(
4087 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4088 esac
4090 for depmode in $am_compiler_list; do
4091 # Setup a source with many dependencies, because some compilers
4092 # like to wrap large dependency lists on column 80 (with \), and
4093 # we should not choose a depcomp mode which is confused by this.
4095 # We need to recreate these files for each test, as the compiler may
4096 # overwrite some of them when testing with obscure command lines.
4097 # This happens at least with the AIX C compiler.
4098 : > sub/conftest.c
4099 for i in 1 2 3 4 5 6; do
4100 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4101 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4102 # Solaris 8's {/usr,}/bin/sh.
4103 touch sub/conftst$i.h
4104 done
4105 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4107 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4108 # mode. It turns out that the SunPro C++ compiler does not properly
4109 # handle `-M -o', and we need to detect this. Also, some Intel
4110 # versions had trouble with output in subdirs
4111 am__obj=sub/conftest.${OBJEXT-o}
4112 am__minus_obj="-o $am__obj"
4113 case $depmode in
4114 gcc)
4115 # This depmode causes a compiler race in universal mode.
4116 test "$am__universal" = false || continue
4118 nosideeffect)
4119 # after this tag, mechanisms are not by side-effect, so they'll
4120 # only be used when explicitly requested
4121 if test "x$enable_dependency_tracking" = xyes; then
4122 continue
4123 else
4124 break
4127 msvisualcpp | msvcmsys)
4128 # This compiler won't grok `-c -o', but also, the minuso test has
4129 # not run yet. These depmodes are late enough in the game, and
4130 # so weak that their functioning should not be impacted.
4131 am__obj=conftest.${OBJEXT-o}
4132 am__minus_obj=
4134 none) break ;;
4135 esac
4136 if depmode=$depmode \
4137 source=sub/conftest.c object=$am__obj \
4138 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4139 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4140 >/dev/null 2>conftest.err &&
4141 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4142 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4143 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4144 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4145 # icc doesn't choke on unknown options, it will just issue warnings
4146 # or remarks (even with -Werror). So we grep stderr for any message
4147 # that says an option was ignored or not supported.
4148 # When given -MP, icc 7.0 and 7.1 complain thusly:
4149 # icc: Command line warning: ignoring option '-M'; no argument required
4150 # The diagnosis changed in icc 8.0:
4151 # icc: Command line remark: option '-MP' not supported
4152 if (grep 'ignoring option' conftest.err ||
4153 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4154 am_cv_CC_dependencies_compiler_type=$depmode
4155 break
4158 done
4160 cd ..
4161 rm -rf conftest.dir
4162 else
4163 am_cv_CC_dependencies_compiler_type=none
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4168 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4169 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4172 test "x$enable_dependency_tracking" != xno \
4173 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4174 am__fastdepCC_TRUE=
4175 am__fastdepCC_FALSE='#'
4176 else
4177 am__fastdepCC_TRUE='#'
4178 am__fastdepCC_FALSE=
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4183 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4184 if test "${ac_cv_path_SED+set}" = set; then :
4185 $as_echo_n "(cached) " >&6
4186 else
4187 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4188 for ac_i in 1 2 3 4 5 6 7; do
4189 ac_script="$ac_script$as_nl$ac_script"
4190 done
4191 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4192 { ac_script=; unset ac_script;}
4193 if test -z "$SED"; then
4194 ac_path_SED_found=false
4195 # Loop through the user's path and test for each of PROGNAME-LIST
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 for as_dir in $PATH
4199 IFS=$as_save_IFS
4200 test -z "$as_dir" && as_dir=.
4201 for ac_prog in sed gsed; do
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4204 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4205 # Check for GNU ac_path_SED and select it if it is found.
4206 # Check for GNU $ac_path_SED
4207 case `"$ac_path_SED" --version 2>&1` in
4208 *GNU*)
4209 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4211 ac_count=0
4212 $as_echo_n 0123456789 >"conftest.in"
4213 while :
4215 cat "conftest.in" "conftest.in" >"conftest.tmp"
4216 mv "conftest.tmp" "conftest.in"
4217 cp "conftest.in" "conftest.nl"
4218 $as_echo '' >> "conftest.nl"
4219 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4220 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4221 as_fn_arith $ac_count + 1 && ac_count=$as_val
4222 if test $ac_count -gt ${ac_path_SED_max-0}; then
4223 # Best one so far, save it but keep looking for a better one
4224 ac_cv_path_SED="$ac_path_SED"
4225 ac_path_SED_max=$ac_count
4227 # 10*(2^10) chars as input seems more than enough
4228 test $ac_count -gt 10 && break
4229 done
4230 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4231 esac
4233 $ac_path_SED_found && break 3
4234 done
4235 done
4236 done
4237 IFS=$as_save_IFS
4238 if test -z "$ac_cv_path_SED"; then
4239 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4241 else
4242 ac_cv_path_SED=$SED
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4247 $as_echo "$ac_cv_path_SED" >&6; }
4248 SED="$ac_cv_path_SED"
4249 rm -f conftest.sed
4251 test -z "$SED" && SED=sed
4252 Xsed="$SED -e 1s/^X//"
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4265 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4266 if test "${ac_cv_path_GREP+set}" = set; then :
4267 $as_echo_n "(cached) " >&6
4268 else
4269 if test -z "$GREP"; then
4270 ac_path_GREP_found=false
4271 # Loop through the user's path and test for each of PROGNAME-LIST
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
4277 for ac_prog in grep ggrep; do
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4280 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4281 # Check for GNU ac_path_GREP and select it if it is found.
4282 # Check for GNU $ac_path_GREP
4283 case `"$ac_path_GREP" --version 2>&1` in
4284 *GNU*)
4285 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4287 ac_count=0
4288 $as_echo_n 0123456789 >"conftest.in"
4289 while :
4291 cat "conftest.in" "conftest.in" >"conftest.tmp"
4292 mv "conftest.tmp" "conftest.in"
4293 cp "conftest.in" "conftest.nl"
4294 $as_echo 'GREP' >> "conftest.nl"
4295 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4296 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4297 as_fn_arith $ac_count + 1 && ac_count=$as_val
4298 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4299 # Best one so far, save it but keep looking for a better one
4300 ac_cv_path_GREP="$ac_path_GREP"
4301 ac_path_GREP_max=$ac_count
4303 # 10*(2^10) chars as input seems more than enough
4304 test $ac_count -gt 10 && break
4305 done
4306 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4307 esac
4309 $ac_path_GREP_found && break 3
4310 done
4311 done
4312 done
4313 IFS=$as_save_IFS
4314 if test -z "$ac_cv_path_GREP"; then
4315 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4317 else
4318 ac_cv_path_GREP=$GREP
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4323 $as_echo "$ac_cv_path_GREP" >&6; }
4324 GREP="$ac_cv_path_GREP"
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4328 $as_echo_n "checking for egrep... " >&6; }
4329 if test "${ac_cv_path_EGREP+set}" = set; then :
4330 $as_echo_n "(cached) " >&6
4331 else
4332 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4333 then ac_cv_path_EGREP="$GREP -E"
4334 else
4335 if test -z "$EGREP"; then
4336 ac_path_EGREP_found=false
4337 # Loop through the user's path and test for each of PROGNAME-LIST
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4341 IFS=$as_save_IFS
4342 test -z "$as_dir" && as_dir=.
4343 for ac_prog in egrep; do
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4346 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4347 # Check for GNU ac_path_EGREP and select it if it is found.
4348 # Check for GNU $ac_path_EGREP
4349 case `"$ac_path_EGREP" --version 2>&1` in
4350 *GNU*)
4351 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4353 ac_count=0
4354 $as_echo_n 0123456789 >"conftest.in"
4355 while :
4357 cat "conftest.in" "conftest.in" >"conftest.tmp"
4358 mv "conftest.tmp" "conftest.in"
4359 cp "conftest.in" "conftest.nl"
4360 $as_echo 'EGREP' >> "conftest.nl"
4361 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4362 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4363 as_fn_arith $ac_count + 1 && ac_count=$as_val
4364 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4365 # Best one so far, save it but keep looking for a better one
4366 ac_cv_path_EGREP="$ac_path_EGREP"
4367 ac_path_EGREP_max=$ac_count
4369 # 10*(2^10) chars as input seems more than enough
4370 test $ac_count -gt 10 && break
4371 done
4372 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4373 esac
4375 $ac_path_EGREP_found && break 3
4376 done
4377 done
4378 done
4379 IFS=$as_save_IFS
4380 if test -z "$ac_cv_path_EGREP"; then
4381 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4383 else
4384 ac_cv_path_EGREP=$EGREP
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4390 $as_echo "$ac_cv_path_EGREP" >&6; }
4391 EGREP="$ac_cv_path_EGREP"
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4395 $as_echo_n "checking for fgrep... " >&6; }
4396 if test "${ac_cv_path_FGREP+set}" = set; then :
4397 $as_echo_n "(cached) " >&6
4398 else
4399 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4400 then ac_cv_path_FGREP="$GREP -F"
4401 else
4402 if test -z "$FGREP"; then
4403 ac_path_FGREP_found=false
4404 # Loop through the user's path and test for each of PROGNAME-LIST
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
4410 for ac_prog in fgrep; do
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4413 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4414 # Check for GNU ac_path_FGREP and select it if it is found.
4415 # Check for GNU $ac_path_FGREP
4416 case `"$ac_path_FGREP" --version 2>&1` in
4417 *GNU*)
4418 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4420 ac_count=0
4421 $as_echo_n 0123456789 >"conftest.in"
4422 while :
4424 cat "conftest.in" "conftest.in" >"conftest.tmp"
4425 mv "conftest.tmp" "conftest.in"
4426 cp "conftest.in" "conftest.nl"
4427 $as_echo 'FGREP' >> "conftest.nl"
4428 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4429 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4430 as_fn_arith $ac_count + 1 && ac_count=$as_val
4431 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4432 # Best one so far, save it but keep looking for a better one
4433 ac_cv_path_FGREP="$ac_path_FGREP"
4434 ac_path_FGREP_max=$ac_count
4436 # 10*(2^10) chars as input seems more than enough
4437 test $ac_count -gt 10 && break
4438 done
4439 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4440 esac
4442 $ac_path_FGREP_found && break 3
4443 done
4444 done
4445 done
4446 IFS=$as_save_IFS
4447 if test -z "$ac_cv_path_FGREP"; then
4448 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4450 else
4451 ac_cv_path_FGREP=$FGREP
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4457 $as_echo "$ac_cv_path_FGREP" >&6; }
4458 FGREP="$ac_cv_path_FGREP"
4461 test -z "$GREP" && GREP=grep
4481 # Check whether --with-gnu-ld was given.
4482 if test "${with_gnu_ld+set}" = set; then :
4483 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4484 else
4485 with_gnu_ld=no
4488 ac_prog=ld
4489 if test "$GCC" = yes; then
4490 # Check if gcc -print-prog-name=ld gives a path.
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4492 $as_echo_n "checking for ld used by $CC... " >&6; }
4493 case $host in
4494 *-*-mingw*)
4495 # gcc leaves a trailing carriage return which upsets mingw
4496 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4498 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4499 esac
4500 case $ac_prog in
4501 # Accept absolute paths.
4502 [\\/]* | ?:[\\/]*)
4503 re_direlt='/[^/][^/]*/\.\./'
4504 # Canonicalize the pathname of ld
4505 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4506 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4507 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4508 done
4509 test -z "$LD" && LD="$ac_prog"
4512 # If it fails, then pretend we aren't using GCC.
4513 ac_prog=ld
4516 # If it is relative, then search for the first ld in PATH.
4517 with_gnu_ld=unknown
4519 esac
4520 elif test "$with_gnu_ld" = yes; then
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4522 $as_echo_n "checking for GNU ld... " >&6; }
4523 else
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4525 $as_echo_n "checking for non-GNU ld... " >&6; }
4527 if test "${lt_cv_path_LD+set}" = set; then :
4528 $as_echo_n "(cached) " >&6
4529 else
4530 if test -z "$LD"; then
4531 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4532 for ac_dir in $PATH; do
4533 IFS="$lt_save_ifs"
4534 test -z "$ac_dir" && ac_dir=.
4535 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4536 lt_cv_path_LD="$ac_dir/$ac_prog"
4537 # Check to see if the program is GNU ld. I'd rather use --version,
4538 # but apparently some variants of GNU ld only accept -v.
4539 # Break only if it was the GNU/non-GNU ld that we prefer.
4540 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4541 *GNU* | *'with BFD'*)
4542 test "$with_gnu_ld" != no && break
4545 test "$with_gnu_ld" != yes && break
4547 esac
4549 done
4550 IFS="$lt_save_ifs"
4551 else
4552 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4556 LD="$lt_cv_path_LD"
4557 if test -n "$LD"; then
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4559 $as_echo "$LD" >&6; }
4560 else
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4562 $as_echo "no" >&6; }
4564 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4566 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4567 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4568 $as_echo_n "(cached) " >&6
4569 else
4570 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4571 case `$LD -v 2>&1 </dev/null` in
4572 *GNU* | *'with BFD'*)
4573 lt_cv_prog_gnu_ld=yes
4576 lt_cv_prog_gnu_ld=no
4578 esac
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4581 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4582 with_gnu_ld=$lt_cv_prog_gnu_ld
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4593 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4594 if test "${lt_cv_path_NM+set}" = set; then :
4595 $as_echo_n "(cached) " >&6
4596 else
4597 if test -n "$NM"; then
4598 # Let the user override the test.
4599 lt_cv_path_NM="$NM"
4600 else
4601 lt_nm_to_check="${ac_tool_prefix}nm"
4602 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4603 lt_nm_to_check="$lt_nm_to_check nm"
4605 for lt_tmp_nm in $lt_nm_to_check; do
4606 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4607 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4608 IFS="$lt_save_ifs"
4609 test -z "$ac_dir" && ac_dir=.
4610 tmp_nm="$ac_dir/$lt_tmp_nm"
4611 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4612 # Check to see if the nm accepts a BSD-compat flag.
4613 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4614 # nm: unknown option "B" ignored
4615 # Tru64's nm complains that /dev/null is an invalid object file
4616 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4617 */dev/null* | *'Invalid file or object type'*)
4618 lt_cv_path_NM="$tmp_nm -B"
4619 break
4622 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4623 */dev/null*)
4624 lt_cv_path_NM="$tmp_nm -p"
4625 break
4628 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4629 continue # so that we can try to find one that supports BSD flags
4631 esac
4633 esac
4635 done
4636 IFS="$lt_save_ifs"
4637 done
4638 : ${lt_cv_path_NM=no}
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4642 $as_echo "$lt_cv_path_NM" >&6; }
4643 if test "$lt_cv_path_NM" != "no"; then
4644 NM="$lt_cv_path_NM"
4645 else
4646 # Didn't find any BSD compatible name lister, look for dumpbin.
4647 if test -n "$ac_tool_prefix"; then
4648 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4651 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4653 $as_echo_n "checking for $ac_word... " >&6; }
4654 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4655 $as_echo_n "(cached) " >&6
4656 else
4657 if test -n "$DUMPBIN"; then
4658 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4659 else
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH
4663 IFS=$as_save_IFS
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4667 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 break 2
4671 done
4672 done
4673 IFS=$as_save_IFS
4677 DUMPBIN=$ac_cv_prog_DUMPBIN
4678 if test -n "$DUMPBIN"; then
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4680 $as_echo "$DUMPBIN" >&6; }
4681 else
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683 $as_echo "no" >&6; }
4687 test -n "$DUMPBIN" && break
4688 done
4690 if test -z "$DUMPBIN"; then
4691 ac_ct_DUMPBIN=$DUMPBIN
4692 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4694 # Extract the first word of "$ac_prog", so it can be a program name with args.
4695 set dummy $ac_prog; ac_word=$2
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4697 $as_echo_n "checking for $ac_word... " >&6; }
4698 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4699 $as_echo_n "(cached) " >&6
4700 else
4701 if test -n "$ac_ct_DUMPBIN"; then
4702 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4703 else
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 for as_dir in $PATH
4707 IFS=$as_save_IFS
4708 test -z "$as_dir" && as_dir=.
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4711 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 break 2
4715 done
4716 done
4717 IFS=$as_save_IFS
4721 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4722 if test -n "$ac_ct_DUMPBIN"; then
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4724 $as_echo "$ac_ct_DUMPBIN" >&6; }
4725 else
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4727 $as_echo "no" >&6; }
4731 test -n "$ac_ct_DUMPBIN" && break
4732 done
4734 if test "x$ac_ct_DUMPBIN" = x; then
4735 DUMPBIN=":"
4736 else
4737 case $cross_compiling:$ac_tool_warned in
4738 yes:)
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4741 ac_tool_warned=yes ;;
4742 esac
4743 DUMPBIN=$ac_ct_DUMPBIN
4748 if test "$DUMPBIN" != ":"; then
4749 NM="$DUMPBIN"
4752 test -z "$NM" && NM=nm
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4760 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4761 if test "${lt_cv_nm_interface+set}" = set; then :
4762 $as_echo_n "(cached) " >&6
4763 else
4764 lt_cv_nm_interface="BSD nm"
4765 echo "int some_variable = 0;" > conftest.$ac_ext
4766 (eval echo "\"\$as_me:4766: $ac_compile\"" >&5)
4767 (eval "$ac_compile" 2>conftest.err)
4768 cat conftest.err >&5
4769 (eval echo "\"\$as_me:4769: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4770 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4771 cat conftest.err >&5
4772 (eval echo "\"\$as_me:4772: output\"" >&5)
4773 cat conftest.out >&5
4774 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4775 lt_cv_nm_interface="MS dumpbin"
4777 rm -f conftest*
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4780 $as_echo "$lt_cv_nm_interface" >&6; }
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4783 $as_echo_n "checking whether ln -s works... " >&6; }
4784 LN_S=$as_ln_s
4785 if test "$LN_S" = "ln -s"; then
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4787 $as_echo "yes" >&6; }
4788 else
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4790 $as_echo "no, using $LN_S" >&6; }
4793 # find the maximum length of command line arguments
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4795 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4796 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4797 $as_echo_n "(cached) " >&6
4798 else
4800 teststring="ABCD"
4802 case $build_os in
4803 msdosdjgpp*)
4804 # On DJGPP, this test can blow up pretty badly due to problems in libc
4805 # (any single argument exceeding 2000 bytes causes a buffer overrun
4806 # during glob expansion). Even if it were fixed, the result of this
4807 # check would be larger than it should be.
4808 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4811 gnu*)
4812 # Under GNU Hurd, this test is not required because there is
4813 # no limit to the length of command line arguments.
4814 # Libtool will interpret -1 as no limit whatsoever
4815 lt_cv_sys_max_cmd_len=-1;
4818 cygwin* | mingw* | cegcc*)
4819 # On Win9x/ME, this test blows up -- it succeeds, but takes
4820 # about 5 minutes as the teststring grows exponentially.
4821 # Worse, since 9x/ME are not pre-emptively multitasking,
4822 # you end up with a "frozen" computer, even though with patience
4823 # the test eventually succeeds (with a max line length of 256k).
4824 # Instead, let's just punt: use the minimum linelength reported by
4825 # all of the supported platforms: 8192 (on NT/2K/XP).
4826 lt_cv_sys_max_cmd_len=8192;
4829 amigaos*)
4830 # On AmigaOS with pdksh, this test takes hours, literally.
4831 # So we just punt and use a minimum line length of 8192.
4832 lt_cv_sys_max_cmd_len=8192;
4835 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4836 # This has been around since 386BSD, at least. Likely further.
4837 if test -x /sbin/sysctl; then
4838 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4839 elif test -x /usr/sbin/sysctl; then
4840 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4841 else
4842 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4844 # And add a safety zone
4845 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4846 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4849 interix*)
4850 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4851 lt_cv_sys_max_cmd_len=196608
4854 osf*)
4855 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4856 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4857 # nice to cause kernel panics so lets avoid the loop below.
4858 # First set a reasonable default.
4859 lt_cv_sys_max_cmd_len=16384
4861 if test -x /sbin/sysconfig; then
4862 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4863 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4864 esac
4867 sco3.2v5*)
4868 lt_cv_sys_max_cmd_len=102400
4870 sysv5* | sco5v6* | sysv4.2uw2*)
4871 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4872 if test -n "$kargmax"; then
4873 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4874 else
4875 lt_cv_sys_max_cmd_len=32768
4879 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4880 if test -n "$lt_cv_sys_max_cmd_len"; then
4881 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4882 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4883 else
4884 # Make teststring a little bigger before we do anything with it.
4885 # a 1K string should be a reasonable start.
4886 for i in 1 2 3 4 5 6 7 8 ; do
4887 teststring=$teststring$teststring
4888 done
4889 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4890 # If test is not a shell built-in, we'll probably end up computing a
4891 # maximum length that is only half of the actual maximum length, but
4892 # we can't tell.
4893 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4894 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4895 test $i != 17 # 1/2 MB should be enough
4897 i=`expr $i + 1`
4898 teststring=$teststring$teststring
4899 done
4900 # Only check the string length outside the loop.
4901 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4902 teststring=
4903 # Add a significant safety factor because C++ compilers can tack on
4904 # massive amounts of additional arguments before passing them to the
4905 # linker. It appears as though 1/2 is a usable value.
4906 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4909 esac
4913 if test -n $lt_cv_sys_max_cmd_len ; then
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4915 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4916 else
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4918 $as_echo "none" >&6; }
4920 max_cmd_len=$lt_cv_sys_max_cmd_len
4927 : ${CP="cp -f"}
4928 : ${MV="mv -f"}
4929 : ${RM="rm -f"}
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4932 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4933 # Try some XSI features
4934 xsi_shell=no
4935 ( _lt_dummy="a/b/c"
4936 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4937 = c,a/b,, \
4938 && eval 'test $(( 1 + 1 )) -eq 2 \
4939 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4940 && xsi_shell=yes
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4942 $as_echo "$xsi_shell" >&6; }
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4946 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4947 lt_shell_append=no
4948 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4949 >/dev/null 2>&1 \
4950 && lt_shell_append=yes
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4952 $as_echo "$lt_shell_append" >&6; }
4955 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4956 lt_unset=unset
4957 else
4958 lt_unset=false
4965 # test EBCDIC or ASCII
4966 case `echo X|tr X '\101'` in
4967 A) # ASCII based system
4968 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4969 lt_SP2NL='tr \040 \012'
4970 lt_NL2SP='tr \015\012 \040\040'
4972 *) # EBCDIC based system
4973 lt_SP2NL='tr \100 \n'
4974 lt_NL2SP='tr \r\n \100\100'
4976 esac
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4987 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4988 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4989 $as_echo_n "(cached) " >&6
4990 else
4991 lt_cv_ld_reload_flag='-r'
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4994 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4995 reload_flag=$lt_cv_ld_reload_flag
4996 case $reload_flag in
4997 "" | " "*) ;;
4998 *) reload_flag=" $reload_flag" ;;
4999 esac
5000 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5001 case $host_os in
5002 darwin*)
5003 if test "$GCC" = yes; then
5004 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5005 else
5006 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5009 esac
5019 if test -n "$ac_tool_prefix"; then
5020 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5021 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5023 $as_echo_n "checking for $ac_word... " >&6; }
5024 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5025 $as_echo_n "(cached) " >&6
5026 else
5027 if test -n "$OBJDUMP"; then
5028 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5029 else
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 for as_dir in $PATH
5033 IFS=$as_save_IFS
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5037 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5039 break 2
5041 done
5042 done
5043 IFS=$as_save_IFS
5047 OBJDUMP=$ac_cv_prog_OBJDUMP
5048 if test -n "$OBJDUMP"; then
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5050 $as_echo "$OBJDUMP" >&6; }
5051 else
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053 $as_echo "no" >&6; }
5058 if test -z "$ac_cv_prog_OBJDUMP"; then
5059 ac_ct_OBJDUMP=$OBJDUMP
5060 # Extract the first word of "objdump", so it can be a program name with args.
5061 set dummy objdump; ac_word=$2
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5063 $as_echo_n "checking for $ac_word... " >&6; }
5064 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5065 $as_echo_n "(cached) " >&6
5066 else
5067 if test -n "$ac_ct_OBJDUMP"; then
5068 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5069 else
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5073 IFS=$as_save_IFS
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5077 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 break 2
5081 done
5082 done
5083 IFS=$as_save_IFS
5087 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5088 if test -n "$ac_ct_OBJDUMP"; then
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5090 $as_echo "$ac_ct_OBJDUMP" >&6; }
5091 else
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093 $as_echo "no" >&6; }
5096 if test "x$ac_ct_OBJDUMP" = x; then
5097 OBJDUMP="false"
5098 else
5099 case $cross_compiling:$ac_tool_warned in
5100 yes:)
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5103 ac_tool_warned=yes ;;
5104 esac
5105 OBJDUMP=$ac_ct_OBJDUMP
5107 else
5108 OBJDUMP="$ac_cv_prog_OBJDUMP"
5111 test -z "$OBJDUMP" && OBJDUMP=objdump
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5122 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5123 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5124 $as_echo_n "(cached) " >&6
5125 else
5126 lt_cv_file_magic_cmd='$MAGIC_CMD'
5127 lt_cv_file_magic_test_file=
5128 lt_cv_deplibs_check_method='unknown'
5129 # Need to set the preceding variable on all platforms that support
5130 # interlibrary dependencies.
5131 # 'none' -- dependencies not supported.
5132 # `unknown' -- same as none, but documents that we really don't know.
5133 # 'pass_all' -- all dependencies passed with no checks.
5134 # 'test_compile' -- check by making test program.
5135 # 'file_magic [[regex]]' -- check by looking for files in library path
5136 # which responds to the $file_magic_cmd with a given extended regex.
5137 # If you have `file' or equivalent on your system and you're not sure
5138 # whether `pass_all' will *always* work, you probably want this one.
5140 case $host_os in
5141 aix[4-9]*)
5142 lt_cv_deplibs_check_method=pass_all
5145 beos*)
5146 lt_cv_deplibs_check_method=pass_all
5149 bsdi[45]*)
5150 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5151 lt_cv_file_magic_cmd='/usr/bin/file -L'
5152 lt_cv_file_magic_test_file=/shlib/libc.so
5155 cygwin*)
5156 # func_win32_libid is a shell function defined in ltmain.sh
5157 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5158 lt_cv_file_magic_cmd='func_win32_libid'
5161 mingw* | pw32*)
5162 # Base MSYS/MinGW do not provide the 'file' command needed by
5163 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5164 # unless we find 'file', for example because we are cross-compiling.
5165 if ( file / ) >/dev/null 2>&1; then
5166 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5167 lt_cv_file_magic_cmd='func_win32_libid'
5168 else
5169 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5170 lt_cv_file_magic_cmd='$OBJDUMP -f'
5174 cegcc)
5175 # use the weaker test based on 'objdump'. See mingw*.
5176 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5177 lt_cv_file_magic_cmd='$OBJDUMP -f'
5180 darwin* | rhapsody*)
5181 lt_cv_deplibs_check_method=pass_all
5184 freebsd* | dragonfly*)
5185 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5186 case $host_cpu in
5187 i*86 )
5188 # Not sure whether the presence of OpenBSD here was a mistake.
5189 # Let's accept both of them until this is cleared up.
5190 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5191 lt_cv_file_magic_cmd=/usr/bin/file
5192 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5194 esac
5195 else
5196 lt_cv_deplibs_check_method=pass_all
5200 gnu*)
5201 lt_cv_deplibs_check_method=pass_all
5204 hpux10.20* | hpux11*)
5205 lt_cv_file_magic_cmd=/usr/bin/file
5206 case $host_cpu in
5207 ia64*)
5208 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5209 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5211 hppa*64*)
5212 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5213 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5216 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5217 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5219 esac
5222 interix[3-9]*)
5223 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5224 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5227 irix5* | irix6* | nonstopux*)
5228 case $LD in
5229 *-32|*"-32 ") libmagic=32-bit;;
5230 *-n32|*"-n32 ") libmagic=N32;;
5231 *-64|*"-64 ") libmagic=64-bit;;
5232 *) libmagic=never-match;;
5233 esac
5234 lt_cv_deplibs_check_method=pass_all
5237 # This must be Linux ELF.
5238 linux* | k*bsd*-gnu)
5239 lt_cv_deplibs_check_method=pass_all
5242 netbsd*)
5243 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5244 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5245 else
5246 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5250 newos6*)
5251 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5252 lt_cv_file_magic_cmd=/usr/bin/file
5253 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5256 *nto* | *qnx*)
5257 lt_cv_deplibs_check_method=pass_all
5260 openbsd*)
5261 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5262 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5263 else
5264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5268 osf3* | osf4* | osf5*)
5269 lt_cv_deplibs_check_method=pass_all
5272 rdos*)
5273 lt_cv_deplibs_check_method=pass_all
5276 solaris*)
5277 lt_cv_deplibs_check_method=pass_all
5280 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5281 lt_cv_deplibs_check_method=pass_all
5284 sysv4 | sysv4.3*)
5285 case $host_vendor in
5286 motorola)
5287 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]'
5288 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5290 ncr)
5291 lt_cv_deplibs_check_method=pass_all
5293 sequent)
5294 lt_cv_file_magic_cmd='/bin/file'
5295 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5297 sni)
5298 lt_cv_file_magic_cmd='/bin/file'
5299 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5300 lt_cv_file_magic_test_file=/lib/libc.so
5302 siemens)
5303 lt_cv_deplibs_check_method=pass_all
5306 lt_cv_deplibs_check_method=pass_all
5308 esac
5311 tpf*)
5312 lt_cv_deplibs_check_method=pass_all
5314 esac
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5318 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5319 file_magic_cmd=$lt_cv_file_magic_cmd
5320 deplibs_check_method=$lt_cv_deplibs_check_method
5321 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5334 if test -n "$ac_tool_prefix"; then
5335 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5336 set dummy ${ac_tool_prefix}ar; ac_word=$2
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338 $as_echo_n "checking for $ac_word... " >&6; }
5339 if test "${ac_cv_prog_AR+set}" = set; then :
5340 $as_echo_n "(cached) " >&6
5341 else
5342 if test -n "$AR"; then
5343 ac_cv_prog_AR="$AR" # Let the user override the test.
5344 else
5345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346 for as_dir in $PATH
5348 IFS=$as_save_IFS
5349 test -z "$as_dir" && as_dir=.
5350 for ac_exec_ext in '' $ac_executable_extensions; do
5351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5352 ac_cv_prog_AR="${ac_tool_prefix}ar"
5353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5354 break 2
5356 done
5357 done
5358 IFS=$as_save_IFS
5362 AR=$ac_cv_prog_AR
5363 if test -n "$AR"; then
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5365 $as_echo "$AR" >&6; }
5366 else
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368 $as_echo "no" >&6; }
5373 if test -z "$ac_cv_prog_AR"; then
5374 ac_ct_AR=$AR
5375 # Extract the first word of "ar", so it can be a program name with args.
5376 set dummy ar; ac_word=$2
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5378 $as_echo_n "checking for $ac_word... " >&6; }
5379 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5380 $as_echo_n "(cached) " >&6
5381 else
5382 if test -n "$ac_ct_AR"; then
5383 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5384 else
5385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386 for as_dir in $PATH
5388 IFS=$as_save_IFS
5389 test -z "$as_dir" && as_dir=.
5390 for ac_exec_ext in '' $ac_executable_extensions; do
5391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5392 ac_cv_prog_ac_ct_AR="ar"
5393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5394 break 2
5396 done
5397 done
5398 IFS=$as_save_IFS
5402 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5403 if test -n "$ac_ct_AR"; then
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5405 $as_echo "$ac_ct_AR" >&6; }
5406 else
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5411 if test "x$ac_ct_AR" = x; then
5412 AR="false"
5413 else
5414 case $cross_compiling:$ac_tool_warned in
5415 yes:)
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5418 ac_tool_warned=yes ;;
5419 esac
5420 AR=$ac_ct_AR
5422 else
5423 AR="$ac_cv_prog_AR"
5426 test -z "$AR" && AR=ar
5427 test -z "$AR_FLAGS" && AR_FLAGS=cru
5439 if test -n "$ac_tool_prefix"; then
5440 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5441 set dummy ${ac_tool_prefix}strip; ac_word=$2
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5443 $as_echo_n "checking for $ac_word... " >&6; }
5444 if test "${ac_cv_prog_STRIP+set}" = set; then :
5445 $as_echo_n "(cached) " >&6
5446 else
5447 if test -n "$STRIP"; then
5448 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5449 else
5450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451 for as_dir in $PATH
5453 IFS=$as_save_IFS
5454 test -z "$as_dir" && as_dir=.
5455 for ac_exec_ext in '' $ac_executable_extensions; do
5456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5457 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5459 break 2
5461 done
5462 done
5463 IFS=$as_save_IFS
5467 STRIP=$ac_cv_prog_STRIP
5468 if test -n "$STRIP"; then
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5470 $as_echo "$STRIP" >&6; }
5471 else
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5473 $as_echo "no" >&6; }
5478 if test -z "$ac_cv_prog_STRIP"; then
5479 ac_ct_STRIP=$STRIP
5480 # Extract the first word of "strip", so it can be a program name with args.
5481 set dummy strip; ac_word=$2
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5483 $as_echo_n "checking for $ac_word... " >&6; }
5484 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5485 $as_echo_n "(cached) " >&6
5486 else
5487 if test -n "$ac_ct_STRIP"; then
5488 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5489 else
5490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491 for as_dir in $PATH
5493 IFS=$as_save_IFS
5494 test -z "$as_dir" && as_dir=.
5495 for ac_exec_ext in '' $ac_executable_extensions; do
5496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5497 ac_cv_prog_ac_ct_STRIP="strip"
5498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5499 break 2
5501 done
5502 done
5503 IFS=$as_save_IFS
5507 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5508 if test -n "$ac_ct_STRIP"; then
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5510 $as_echo "$ac_ct_STRIP" >&6; }
5511 else
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5513 $as_echo "no" >&6; }
5516 if test "x$ac_ct_STRIP" = x; then
5517 STRIP=":"
5518 else
5519 case $cross_compiling:$ac_tool_warned in
5520 yes:)
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5523 ac_tool_warned=yes ;;
5524 esac
5525 STRIP=$ac_ct_STRIP
5527 else
5528 STRIP="$ac_cv_prog_STRIP"
5531 test -z "$STRIP" && STRIP=:
5538 if test -n "$ac_tool_prefix"; then
5539 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5540 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5542 $as_echo_n "checking for $ac_word... " >&6; }
5543 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5544 $as_echo_n "(cached) " >&6
5545 else
5546 if test -n "$RANLIB"; then
5547 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5548 else
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH
5552 IFS=$as_save_IFS
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5556 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 break 2
5560 done
5561 done
5562 IFS=$as_save_IFS
5566 RANLIB=$ac_cv_prog_RANLIB
5567 if test -n "$RANLIB"; then
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5569 $as_echo "$RANLIB" >&6; }
5570 else
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572 $as_echo "no" >&6; }
5577 if test -z "$ac_cv_prog_RANLIB"; then
5578 ac_ct_RANLIB=$RANLIB
5579 # Extract the first word of "ranlib", so it can be a program name with args.
5580 set dummy ranlib; ac_word=$2
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5582 $as_echo_n "checking for $ac_word... " >&6; }
5583 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5584 $as_echo_n "(cached) " >&6
5585 else
5586 if test -n "$ac_ct_RANLIB"; then
5587 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5588 else
5589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590 for as_dir in $PATH
5592 IFS=$as_save_IFS
5593 test -z "$as_dir" && as_dir=.
5594 for ac_exec_ext in '' $ac_executable_extensions; do
5595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5596 ac_cv_prog_ac_ct_RANLIB="ranlib"
5597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5598 break 2
5600 done
5601 done
5602 IFS=$as_save_IFS
5606 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5607 if test -n "$ac_ct_RANLIB"; then
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5609 $as_echo "$ac_ct_RANLIB" >&6; }
5610 else
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612 $as_echo "no" >&6; }
5615 if test "x$ac_ct_RANLIB" = x; then
5616 RANLIB=":"
5617 else
5618 case $cross_compiling:$ac_tool_warned in
5619 yes:)
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5622 ac_tool_warned=yes ;;
5623 esac
5624 RANLIB=$ac_ct_RANLIB
5626 else
5627 RANLIB="$ac_cv_prog_RANLIB"
5630 test -z "$RANLIB" && RANLIB=:
5637 # Determine commands to create old-style static archives.
5638 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5639 old_postinstall_cmds='chmod 644 $oldlib'
5640 old_postuninstall_cmds=
5642 if test -n "$RANLIB"; then
5643 case $host_os in
5644 openbsd*)
5645 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5648 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5650 esac
5651 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5687 # If no C compiler was specified, use CC.
5688 LTCC=${LTCC-"$CC"}
5690 # If no C compiler flags were specified, use CFLAGS.
5691 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5693 # Allow CC to be a program name with arguments.
5694 compiler=$CC
5697 # Check for command to grab the raw symbol name followed by C symbol from nm.
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5699 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5700 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5701 $as_echo_n "(cached) " >&6
5702 else
5704 # These are sane defaults that work on at least a few old systems.
5705 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5707 # Character class describing NM global symbol codes.
5708 symcode='[BCDEGRST]'
5710 # Regexp to match symbols that can be accessed directly from C.
5711 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5713 # Define system-specific variables.
5714 case $host_os in
5715 aix*)
5716 symcode='[BCDT]'
5718 cygwin* | mingw* | pw32* | cegcc*)
5719 symcode='[ABCDGISTW]'
5721 hpux*)
5722 if test "$host_cpu" = ia64; then
5723 symcode='[ABCDEGRST]'
5726 irix* | nonstopux*)
5727 symcode='[BCDEGRST]'
5729 osf*)
5730 symcode='[BCDEGQRST]'
5732 solaris*)
5733 symcode='[BDRT]'
5735 sco3.2v5*)
5736 symcode='[DT]'
5738 sysv4.2uw2*)
5739 symcode='[DT]'
5741 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5742 symcode='[ABDT]'
5744 sysv4)
5745 symcode='[DFNSTU]'
5747 esac
5749 # If we're using GNU nm, then use its standard symbol codes.
5750 case `$NM -V 2>&1` in
5751 *GNU* | *'with BFD'*)
5752 symcode='[ABCDGIRSTW]' ;;
5753 esac
5755 # Transform an extracted symbol line into a proper C declaration.
5756 # Some systems (esp. on ia64) link data and code symbols differently,
5757 # so use this general approach.
5758 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5760 # Transform an extracted symbol line into symbol name and symbol address
5761 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5762 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'"
5764 # Handle CRLF in mingw tool chain
5765 opt_cr=
5766 case $build_os in
5767 mingw*)
5768 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5770 esac
5772 # Try without a prefix underscore, then with it.
5773 for ac_symprfx in "" "_"; do
5775 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5776 symxfrm="\\1 $ac_symprfx\\2 \\2"
5778 # Write the raw and C identifiers.
5779 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5780 # Fake it for dumpbin and say T for any non-static function
5781 # and D for any global variable.
5782 # Also find C++ and __fastcall symbols from MSVC++,
5783 # which start with @ or ?.
5784 lt_cv_sys_global_symbol_pipe="$AWK '"\
5785 " {last_section=section; section=\$ 3};"\
5786 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5787 " \$ 0!~/External *\|/{next};"\
5788 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5789 " {if(hide[section]) next};"\
5790 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5791 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5792 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5793 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5794 " ' prfx=^$ac_symprfx"
5795 else
5796 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5799 # Check to see that the pipe works correctly.
5800 pipe_works=no
5802 rm -f conftest*
5803 cat > conftest.$ac_ext <<_LT_EOF
5804 #ifdef __cplusplus
5805 extern "C" {
5806 #endif
5807 char nm_test_var;
5808 void nm_test_func(void);
5809 void nm_test_func(void){}
5810 #ifdef __cplusplus
5812 #endif
5813 int main(){nm_test_var='a';nm_test_func();return(0);}
5814 _LT_EOF
5816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5817 (eval $ac_compile) 2>&5
5818 ac_status=$?
5819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5820 test $ac_status = 0; }; then
5821 # Now try to grab the symbols.
5822 nlist=conftest.nm
5823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5824 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5825 ac_status=$?
5826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5827 test $ac_status = 0; } && test -s "$nlist"; then
5828 # Try sorting and uniquifying the output.
5829 if sort "$nlist" | uniq > "$nlist"T; then
5830 mv -f "$nlist"T "$nlist"
5831 else
5832 rm -f "$nlist"T
5835 # Make sure that we snagged all the symbols we need.
5836 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5837 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5838 cat <<_LT_EOF > conftest.$ac_ext
5839 #ifdef __cplusplus
5840 extern "C" {
5841 #endif
5843 _LT_EOF
5844 # Now generate the symbol file.
5845 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5847 cat <<_LT_EOF >> conftest.$ac_ext
5849 /* The mapping between symbol names and symbols. */
5850 const struct {
5851 const char *name;
5852 void *address;
5854 lt__PROGRAM__LTX_preloaded_symbols[] =
5856 { "@PROGRAM@", (void *) 0 },
5857 _LT_EOF
5858 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5859 cat <<\_LT_EOF >> conftest.$ac_ext
5860 {0, (void *) 0}
5863 /* This works around a problem in FreeBSD linker */
5864 #ifdef FREEBSD_WORKAROUND
5865 static const void *lt_preloaded_setup() {
5866 return lt__PROGRAM__LTX_preloaded_symbols;
5868 #endif
5870 #ifdef __cplusplus
5872 #endif
5873 _LT_EOF
5874 # Now try linking the two files.
5875 mv conftest.$ac_objext conftstm.$ac_objext
5876 lt_save_LIBS="$LIBS"
5877 lt_save_CFLAGS="$CFLAGS"
5878 LIBS="conftstm.$ac_objext"
5879 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5881 (eval $ac_link) 2>&5
5882 ac_status=$?
5883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5884 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5885 pipe_works=yes
5887 LIBS="$lt_save_LIBS"
5888 CFLAGS="$lt_save_CFLAGS"
5889 else
5890 echo "cannot find nm_test_func in $nlist" >&5
5892 else
5893 echo "cannot find nm_test_var in $nlist" >&5
5895 else
5896 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5898 else
5899 echo "$progname: failed program was:" >&5
5900 cat conftest.$ac_ext >&5
5902 rm -rf conftest* conftst*
5904 # Do not use the global_symbol_pipe unless it works.
5905 if test "$pipe_works" = yes; then
5906 break
5907 else
5908 lt_cv_sys_global_symbol_pipe=
5910 done
5914 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5915 lt_cv_sys_global_symbol_to_cdecl=
5917 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5919 $as_echo "failed" >&6; }
5920 else
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5922 $as_echo "ok" >&6; }
5947 # Check whether --enable-libtool-lock was given.
5948 if test "${enable_libtool_lock+set}" = set; then :
5949 enableval=$enable_libtool_lock;
5952 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5954 # Some flags need to be propagated to the compiler or linker for good
5955 # libtool support.
5956 case $host in
5957 ia64-*-hpux*)
5958 # Find out which ABI we are using.
5959 echo 'int i;' > conftest.$ac_ext
5960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5961 (eval $ac_compile) 2>&5
5962 ac_status=$?
5963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5964 test $ac_status = 0; }; then
5965 case `/usr/bin/file conftest.$ac_objext` in
5966 *ELF-32*)
5967 HPUX_IA64_MODE="32"
5969 *ELF-64*)
5970 HPUX_IA64_MODE="64"
5972 esac
5974 rm -rf conftest*
5976 *-*-irix6*)
5977 # Find out which ABI we are using.
5978 echo '#line 5978 "configure"' > conftest.$ac_ext
5979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5980 (eval $ac_compile) 2>&5
5981 ac_status=$?
5982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5983 test $ac_status = 0; }; then
5984 if test "$lt_cv_prog_gnu_ld" = yes; then
5985 case `/usr/bin/file conftest.$ac_objext` in
5986 *32-bit*)
5987 LD="${LD-ld} -melf32bsmip"
5989 *N32*)
5990 LD="${LD-ld} -melf32bmipn32"
5992 *64-bit*)
5993 LD="${LD-ld} -melf64bmip"
5995 esac
5996 else
5997 case `/usr/bin/file conftest.$ac_objext` in
5998 *32-bit*)
5999 LD="${LD-ld} -32"
6001 *N32*)
6002 LD="${LD-ld} -n32"
6004 *64-bit*)
6005 LD="${LD-ld} -64"
6007 esac
6010 rm -rf conftest*
6013 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6014 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6015 # Find out which ABI we are using.
6016 echo 'int i;' > conftest.$ac_ext
6017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6018 (eval $ac_compile) 2>&5
6019 ac_status=$?
6020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6021 test $ac_status = 0; }; then
6022 case `/usr/bin/file conftest.o` in
6023 *32-bit*)
6024 case $host in
6025 x86_64-*kfreebsd*-gnu)
6026 LD="${LD-ld} -m elf_i386_fbsd"
6028 x86_64-*linux*)
6029 LD="${LD-ld} -m elf_i386"
6031 ppc64-*linux*|powerpc64-*linux*)
6032 LD="${LD-ld} -m elf32ppclinux"
6034 s390x-*linux*)
6035 LD="${LD-ld} -m elf_s390"
6037 sparc64-*linux*)
6038 LD="${LD-ld} -m elf32_sparc"
6040 esac
6042 *64-bit*)
6043 case $host in
6044 x86_64-*kfreebsd*-gnu)
6045 LD="${LD-ld} -m elf_x86_64_fbsd"
6047 x86_64-*linux*)
6048 LD="${LD-ld} -m elf_x86_64"
6050 ppc*-*linux*|powerpc*-*linux*)
6051 LD="${LD-ld} -m elf64ppc"
6053 s390*-*linux*|s390*-*tpf*)
6054 LD="${LD-ld} -m elf64_s390"
6056 sparc*-*linux*)
6057 LD="${LD-ld} -m elf64_sparc"
6059 esac
6061 esac
6063 rm -rf conftest*
6066 *-*-sco3.2v5*)
6067 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6068 SAVE_CFLAGS="$CFLAGS"
6069 CFLAGS="$CFLAGS -belf"
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6071 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6072 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6073 $as_echo_n "(cached) " >&6
6074 else
6075 ac_ext=c
6076 ac_cpp='$CPP $CPPFLAGS'
6077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082 /* end confdefs.h. */
6085 main ()
6089 return 0;
6091 _ACEOF
6092 if ac_fn_c_try_link "$LINENO"; then :
6093 lt_cv_cc_needs_belf=yes
6094 else
6095 lt_cv_cc_needs_belf=no
6097 rm -f core conftest.err conftest.$ac_objext \
6098 conftest$ac_exeext conftest.$ac_ext
6099 ac_ext=c
6100 ac_cpp='$CPP $CPPFLAGS'
6101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6107 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6108 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6109 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6110 CFLAGS="$SAVE_CFLAGS"
6113 sparc*-*solaris*)
6114 # Find out which ABI we are using.
6115 echo 'int i;' > conftest.$ac_ext
6116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6117 (eval $ac_compile) 2>&5
6118 ac_status=$?
6119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6120 test $ac_status = 0; }; then
6121 case `/usr/bin/file conftest.o` in
6122 *64-bit*)
6123 case $lt_cv_prog_gnu_ld in
6124 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6126 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6127 LD="${LD-ld} -64"
6130 esac
6132 esac
6134 rm -rf conftest*
6136 esac
6138 need_locks="$enable_libtool_lock"
6141 case $host_os in
6142 rhapsody* | darwin*)
6143 if test -n "$ac_tool_prefix"; then
6144 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6145 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6147 $as_echo_n "checking for $ac_word... " >&6; }
6148 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6149 $as_echo_n "(cached) " >&6
6150 else
6151 if test -n "$DSYMUTIL"; then
6152 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6153 else
6154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 for as_dir in $PATH
6157 IFS=$as_save_IFS
6158 test -z "$as_dir" && as_dir=.
6159 for ac_exec_ext in '' $ac_executable_extensions; do
6160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6161 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6163 break 2
6165 done
6166 done
6167 IFS=$as_save_IFS
6171 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6172 if test -n "$DSYMUTIL"; then
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6174 $as_echo "$DSYMUTIL" >&6; }
6175 else
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6177 $as_echo "no" >&6; }
6182 if test -z "$ac_cv_prog_DSYMUTIL"; then
6183 ac_ct_DSYMUTIL=$DSYMUTIL
6184 # Extract the first word of "dsymutil", so it can be a program name with args.
6185 set dummy dsymutil; ac_word=$2
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187 $as_echo_n "checking for $ac_word... " >&6; }
6188 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6189 $as_echo_n "(cached) " >&6
6190 else
6191 if test -n "$ac_ct_DSYMUTIL"; then
6192 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6193 else
6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 for as_dir in $PATH
6197 IFS=$as_save_IFS
6198 test -z "$as_dir" && as_dir=.
6199 for ac_exec_ext in '' $ac_executable_extensions; do
6200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6201 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6203 break 2
6205 done
6206 done
6207 IFS=$as_save_IFS
6211 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6212 if test -n "$ac_ct_DSYMUTIL"; then
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6214 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6215 else
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217 $as_echo "no" >&6; }
6220 if test "x$ac_ct_DSYMUTIL" = x; then
6221 DSYMUTIL=":"
6222 else
6223 case $cross_compiling:$ac_tool_warned in
6224 yes:)
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6227 ac_tool_warned=yes ;;
6228 esac
6229 DSYMUTIL=$ac_ct_DSYMUTIL
6231 else
6232 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6235 if test -n "$ac_tool_prefix"; then
6236 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6237 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6239 $as_echo_n "checking for $ac_word... " >&6; }
6240 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6241 $as_echo_n "(cached) " >&6
6242 else
6243 if test -n "$NMEDIT"; then
6244 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6245 else
6246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 for as_dir in $PATH
6249 IFS=$as_save_IFS
6250 test -z "$as_dir" && as_dir=.
6251 for ac_exec_ext in '' $ac_executable_extensions; do
6252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6253 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6255 break 2
6257 done
6258 done
6259 IFS=$as_save_IFS
6263 NMEDIT=$ac_cv_prog_NMEDIT
6264 if test -n "$NMEDIT"; then
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6266 $as_echo "$NMEDIT" >&6; }
6267 else
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6269 $as_echo "no" >&6; }
6274 if test -z "$ac_cv_prog_NMEDIT"; then
6275 ac_ct_NMEDIT=$NMEDIT
6276 # Extract the first word of "nmedit", so it can be a program name with args.
6277 set dummy nmedit; ac_word=$2
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6279 $as_echo_n "checking for $ac_word... " >&6; }
6280 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6281 $as_echo_n "(cached) " >&6
6282 else
6283 if test -n "$ac_ct_NMEDIT"; then
6284 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6285 else
6286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287 for as_dir in $PATH
6289 IFS=$as_save_IFS
6290 test -z "$as_dir" && as_dir=.
6291 for ac_exec_ext in '' $ac_executable_extensions; do
6292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6293 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6295 break 2
6297 done
6298 done
6299 IFS=$as_save_IFS
6303 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6304 if test -n "$ac_ct_NMEDIT"; then
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6306 $as_echo "$ac_ct_NMEDIT" >&6; }
6307 else
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6309 $as_echo "no" >&6; }
6312 if test "x$ac_ct_NMEDIT" = x; then
6313 NMEDIT=":"
6314 else
6315 case $cross_compiling:$ac_tool_warned in
6316 yes:)
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6319 ac_tool_warned=yes ;;
6320 esac
6321 NMEDIT=$ac_ct_NMEDIT
6323 else
6324 NMEDIT="$ac_cv_prog_NMEDIT"
6327 if test -n "$ac_tool_prefix"; then
6328 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6329 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6331 $as_echo_n "checking for $ac_word... " >&6; }
6332 if test "${ac_cv_prog_LIPO+set}" = set; then :
6333 $as_echo_n "(cached) " >&6
6334 else
6335 if test -n "$LIPO"; then
6336 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6337 else
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 for as_dir in $PATH
6341 IFS=$as_save_IFS
6342 test -z "$as_dir" && as_dir=.
6343 for ac_exec_ext in '' $ac_executable_extensions; do
6344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6345 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6347 break 2
6349 done
6350 done
6351 IFS=$as_save_IFS
6355 LIPO=$ac_cv_prog_LIPO
6356 if test -n "$LIPO"; then
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6358 $as_echo "$LIPO" >&6; }
6359 else
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6361 $as_echo "no" >&6; }
6366 if test -z "$ac_cv_prog_LIPO"; then
6367 ac_ct_LIPO=$LIPO
6368 # Extract the first word of "lipo", so it can be a program name with args.
6369 set dummy lipo; ac_word=$2
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6371 $as_echo_n "checking for $ac_word... " >&6; }
6372 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6373 $as_echo_n "(cached) " >&6
6374 else
6375 if test -n "$ac_ct_LIPO"; then
6376 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6377 else
6378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 for as_dir in $PATH
6381 IFS=$as_save_IFS
6382 test -z "$as_dir" && as_dir=.
6383 for ac_exec_ext in '' $ac_executable_extensions; do
6384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6385 ac_cv_prog_ac_ct_LIPO="lipo"
6386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6387 break 2
6389 done
6390 done
6391 IFS=$as_save_IFS
6395 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6396 if test -n "$ac_ct_LIPO"; then
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6398 $as_echo "$ac_ct_LIPO" >&6; }
6399 else
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401 $as_echo "no" >&6; }
6404 if test "x$ac_ct_LIPO" = x; then
6405 LIPO=":"
6406 else
6407 case $cross_compiling:$ac_tool_warned in
6408 yes:)
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6411 ac_tool_warned=yes ;;
6412 esac
6413 LIPO=$ac_ct_LIPO
6415 else
6416 LIPO="$ac_cv_prog_LIPO"
6419 if test -n "$ac_tool_prefix"; then
6420 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6421 set dummy ${ac_tool_prefix}otool; ac_word=$2
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6423 $as_echo_n "checking for $ac_word... " >&6; }
6424 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6425 $as_echo_n "(cached) " >&6
6426 else
6427 if test -n "$OTOOL"; then
6428 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6429 else
6430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431 for as_dir in $PATH
6433 IFS=$as_save_IFS
6434 test -z "$as_dir" && as_dir=.
6435 for ac_exec_ext in '' $ac_executable_extensions; do
6436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6437 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6439 break 2
6441 done
6442 done
6443 IFS=$as_save_IFS
6447 OTOOL=$ac_cv_prog_OTOOL
6448 if test -n "$OTOOL"; then
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6450 $as_echo "$OTOOL" >&6; }
6451 else
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6453 $as_echo "no" >&6; }
6458 if test -z "$ac_cv_prog_OTOOL"; then
6459 ac_ct_OTOOL=$OTOOL
6460 # Extract the first word of "otool", so it can be a program name with args.
6461 set dummy otool; ac_word=$2
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6463 $as_echo_n "checking for $ac_word... " >&6; }
6464 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6465 $as_echo_n "(cached) " >&6
6466 else
6467 if test -n "$ac_ct_OTOOL"; then
6468 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6469 else
6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 for as_dir in $PATH
6473 IFS=$as_save_IFS
6474 test -z "$as_dir" && as_dir=.
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6477 ac_cv_prog_ac_ct_OTOOL="otool"
6478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6479 break 2
6481 done
6482 done
6483 IFS=$as_save_IFS
6487 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6488 if test -n "$ac_ct_OTOOL"; then
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6490 $as_echo "$ac_ct_OTOOL" >&6; }
6491 else
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6493 $as_echo "no" >&6; }
6496 if test "x$ac_ct_OTOOL" = x; then
6497 OTOOL=":"
6498 else
6499 case $cross_compiling:$ac_tool_warned in
6500 yes:)
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6503 ac_tool_warned=yes ;;
6504 esac
6505 OTOOL=$ac_ct_OTOOL
6507 else
6508 OTOOL="$ac_cv_prog_OTOOL"
6511 if test -n "$ac_tool_prefix"; then
6512 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6513 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6515 $as_echo_n "checking for $ac_word... " >&6; }
6516 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6517 $as_echo_n "(cached) " >&6
6518 else
6519 if test -n "$OTOOL64"; then
6520 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6521 else
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 for as_dir in $PATH
6525 IFS=$as_save_IFS
6526 test -z "$as_dir" && as_dir=.
6527 for ac_exec_ext in '' $ac_executable_extensions; do
6528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6529 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6531 break 2
6533 done
6534 done
6535 IFS=$as_save_IFS
6539 OTOOL64=$ac_cv_prog_OTOOL64
6540 if test -n "$OTOOL64"; then
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6542 $as_echo "$OTOOL64" >&6; }
6543 else
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545 $as_echo "no" >&6; }
6550 if test -z "$ac_cv_prog_OTOOL64"; then
6551 ac_ct_OTOOL64=$OTOOL64
6552 # Extract the first word of "otool64", so it can be a program name with args.
6553 set dummy otool64; ac_word=$2
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6555 $as_echo_n "checking for $ac_word... " >&6; }
6556 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6557 $as_echo_n "(cached) " >&6
6558 else
6559 if test -n "$ac_ct_OTOOL64"; then
6560 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6561 else
6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 for as_dir in $PATH
6565 IFS=$as_save_IFS
6566 test -z "$as_dir" && as_dir=.
6567 for ac_exec_ext in '' $ac_executable_extensions; do
6568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6569 ac_cv_prog_ac_ct_OTOOL64="otool64"
6570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6571 break 2
6573 done
6574 done
6575 IFS=$as_save_IFS
6579 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6580 if test -n "$ac_ct_OTOOL64"; then
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6582 $as_echo "$ac_ct_OTOOL64" >&6; }
6583 else
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6585 $as_echo "no" >&6; }
6588 if test "x$ac_ct_OTOOL64" = x; then
6589 OTOOL64=":"
6590 else
6591 case $cross_compiling:$ac_tool_warned in
6592 yes:)
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6595 ac_tool_warned=yes ;;
6596 esac
6597 OTOOL64=$ac_ct_OTOOL64
6599 else
6600 OTOOL64="$ac_cv_prog_OTOOL64"
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6630 $as_echo_n "checking for -single_module linker flag... " >&6; }
6631 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6632 $as_echo_n "(cached) " >&6
6633 else
6634 lt_cv_apple_cc_single_mod=no
6635 if test -z "${LT_MULTI_MODULE}"; then
6636 # By default we will add the -single_module flag. You can override
6637 # by either setting the environment variable LT_MULTI_MODULE
6638 # non-empty at configure time, or by adding -multi_module to the
6639 # link flags.
6640 rm -rf libconftest.dylib*
6641 echo "int foo(void){return 1;}" > conftest.c
6642 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6643 -dynamiclib -Wl,-single_module conftest.c" >&5
6644 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6645 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6646 _lt_result=$?
6647 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6648 lt_cv_apple_cc_single_mod=yes
6649 else
6650 cat conftest.err >&5
6652 rm -rf libconftest.dylib*
6653 rm -f conftest.*
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6657 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6659 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6660 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6661 $as_echo_n "(cached) " >&6
6662 else
6663 lt_cv_ld_exported_symbols_list=no
6664 save_LDFLAGS=$LDFLAGS
6665 echo "_main" > conftest.sym
6666 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668 /* end confdefs.h. */
6671 main ()
6675 return 0;
6677 _ACEOF
6678 if ac_fn_c_try_link "$LINENO"; then :
6679 lt_cv_ld_exported_symbols_list=yes
6680 else
6681 lt_cv_ld_exported_symbols_list=no
6683 rm -f core conftest.err conftest.$ac_objext \
6684 conftest$ac_exeext conftest.$ac_ext
6685 LDFLAGS="$save_LDFLAGS"
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6689 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6690 case $host_os in
6691 rhapsody* | darwin1.[012])
6692 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6693 darwin1.*)
6694 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6695 darwin*) # darwin 5.x on
6696 # if running on 10.5 or later, the deployment target defaults
6697 # to the OS version, if on x86, and 10.4, the deployment
6698 # target defaults to 10.4. Don't you love it?
6699 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6700 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6701 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6702 10.[012]*)
6703 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6704 10.*)
6705 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6706 esac
6708 esac
6709 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6710 _lt_dar_single_mod='$single_module'
6712 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6713 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6714 else
6715 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6717 if test "$DSYMUTIL" != ":"; then
6718 _lt_dsymutil='~$DSYMUTIL $lib || :'
6719 else
6720 _lt_dsymutil=
6723 esac
6725 ac_ext=c
6726 ac_cpp='$CPP $CPPFLAGS'
6727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6731 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6732 # On Suns, sometimes $CPP names a directory.
6733 if test -n "$CPP" && test -d "$CPP"; then
6734 CPP=
6736 if test -z "$CPP"; then
6737 if test "${ac_cv_prog_CPP+set}" = set; then :
6738 $as_echo_n "(cached) " >&6
6739 else
6740 # Double quotes because CPP needs to be expanded
6741 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6743 ac_preproc_ok=false
6744 for ac_c_preproc_warn_flag in '' yes
6746 # Use a header file that comes with gcc, so configuring glibc
6747 # with a fresh cross-compiler works.
6748 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6749 # <limits.h> exists even on freestanding compilers.
6750 # On the NeXT, cc -E runs the code through the compiler's parser,
6751 # not just through cpp. "Syntax error" is here to catch this case.
6752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6753 /* end confdefs.h. */
6754 #ifdef __STDC__
6755 # include <limits.h>
6756 #else
6757 # include <assert.h>
6758 #endif
6759 Syntax error
6760 _ACEOF
6761 if ac_fn_c_try_cpp "$LINENO"; then :
6763 else
6764 # Broken: fails on valid input.
6765 continue
6767 rm -f conftest.err conftest.$ac_ext
6769 # OK, works on sane cases. Now check whether nonexistent headers
6770 # can be detected and how.
6771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6772 /* end confdefs.h. */
6773 #include <ac_nonexistent.h>
6774 _ACEOF
6775 if ac_fn_c_try_cpp "$LINENO"; then :
6776 # Broken: success on invalid input.
6777 continue
6778 else
6779 # Passes both tests.
6780 ac_preproc_ok=:
6781 break
6783 rm -f conftest.err conftest.$ac_ext
6785 done
6786 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6787 rm -f conftest.err conftest.$ac_ext
6788 if $ac_preproc_ok; then :
6789 break
6792 done
6793 ac_cv_prog_CPP=$CPP
6796 CPP=$ac_cv_prog_CPP
6797 else
6798 ac_cv_prog_CPP=$CPP
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6801 $as_echo "$CPP" >&6; }
6802 ac_preproc_ok=false
6803 for ac_c_preproc_warn_flag in '' yes
6805 # Use a header file that comes with gcc, so configuring glibc
6806 # with a fresh cross-compiler works.
6807 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6808 # <limits.h> exists even on freestanding compilers.
6809 # On the NeXT, cc -E runs the code through the compiler's parser,
6810 # not just through cpp. "Syntax error" is here to catch this case.
6811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812 /* end confdefs.h. */
6813 #ifdef __STDC__
6814 # include <limits.h>
6815 #else
6816 # include <assert.h>
6817 #endif
6818 Syntax error
6819 _ACEOF
6820 if ac_fn_c_try_cpp "$LINENO"; then :
6822 else
6823 # Broken: fails on valid input.
6824 continue
6826 rm -f conftest.err conftest.$ac_ext
6828 # OK, works on sane cases. Now check whether nonexistent headers
6829 # can be detected and how.
6830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6831 /* end confdefs.h. */
6832 #include <ac_nonexistent.h>
6833 _ACEOF
6834 if ac_fn_c_try_cpp "$LINENO"; then :
6835 # Broken: success on invalid input.
6836 continue
6837 else
6838 # Passes both tests.
6839 ac_preproc_ok=:
6840 break
6842 rm -f conftest.err conftest.$ac_ext
6844 done
6845 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6846 rm -f conftest.err conftest.$ac_ext
6847 if $ac_preproc_ok; then :
6849 else
6850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6852 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6853 See \`config.log' for more details." "$LINENO" 5; }
6856 ac_ext=c
6857 ac_cpp='$CPP $CPPFLAGS'
6858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6864 $as_echo_n "checking for ANSI C header files... " >&6; }
6865 if test "${ac_cv_header_stdc+set}" = set; then :
6866 $as_echo_n "(cached) " >&6
6867 else
6868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869 /* end confdefs.h. */
6870 #include <stdlib.h>
6871 #include <stdarg.h>
6872 #include <string.h>
6873 #include <float.h>
6876 main ()
6880 return 0;
6882 _ACEOF
6883 if ac_fn_c_try_compile "$LINENO"; then :
6884 ac_cv_header_stdc=yes
6885 else
6886 ac_cv_header_stdc=no
6888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6890 if test $ac_cv_header_stdc = yes; then
6891 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893 /* end confdefs.h. */
6894 #include <string.h>
6896 _ACEOF
6897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6898 $EGREP "memchr" >/dev/null 2>&1; then :
6900 else
6901 ac_cv_header_stdc=no
6903 rm -f conftest*
6907 if test $ac_cv_header_stdc = yes; then
6908 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910 /* end confdefs.h. */
6911 #include <stdlib.h>
6913 _ACEOF
6914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6915 $EGREP "free" >/dev/null 2>&1; then :
6917 else
6918 ac_cv_header_stdc=no
6920 rm -f conftest*
6924 if test $ac_cv_header_stdc = yes; then
6925 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6926 if test "$cross_compiling" = yes; then :
6928 else
6929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h. */
6931 #include <ctype.h>
6932 #include <stdlib.h>
6933 #if ((' ' & 0x0FF) == 0x020)
6934 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6935 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6936 #else
6937 # define ISLOWER(c) \
6938 (('a' <= (c) && (c) <= 'i') \
6939 || ('j' <= (c) && (c) <= 'r') \
6940 || ('s' <= (c) && (c) <= 'z'))
6941 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6942 #endif
6944 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6946 main ()
6948 int i;
6949 for (i = 0; i < 256; i++)
6950 if (XOR (islower (i), ISLOWER (i))
6951 || toupper (i) != TOUPPER (i))
6952 return 2;
6953 return 0;
6955 _ACEOF
6956 if ac_fn_c_try_run "$LINENO"; then :
6958 else
6959 ac_cv_header_stdc=no
6961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6962 conftest.$ac_objext conftest.beam conftest.$ac_ext
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6968 $as_echo "$ac_cv_header_stdc" >&6; }
6969 if test $ac_cv_header_stdc = yes; then
6971 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6975 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6976 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6977 inttypes.h stdint.h unistd.h
6978 do :
6979 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6980 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6982 eval as_val=\$$as_ac_Header
6983 if test "x$as_val" = x""yes; then :
6984 cat >>confdefs.h <<_ACEOF
6985 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6986 _ACEOF
6990 done
6993 for ac_header in dlfcn.h
6994 do :
6995 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6997 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6998 cat >>confdefs.h <<_ACEOF
6999 #define HAVE_DLFCN_H 1
7000 _ACEOF
7004 done
7008 # Set options
7012 enable_dlopen=no
7015 enable_win32_dll=no
7018 # Check whether --enable-shared was given.
7019 if test "${enable_shared+set}" = set; then :
7020 enableval=$enable_shared; p=${PACKAGE-default}
7021 case $enableval in
7022 yes) enable_shared=yes ;;
7023 no) enable_shared=no ;;
7025 enable_shared=no
7026 # Look at the argument we got. We use all the common list separators.
7027 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7028 for pkg in $enableval; do
7029 IFS="$lt_save_ifs"
7030 if test "X$pkg" = "X$p"; then
7031 enable_shared=yes
7033 done
7034 IFS="$lt_save_ifs"
7036 esac
7037 else
7038 enable_shared=yes
7049 # Check whether --enable-static was given.
7050 if test "${enable_static+set}" = set; then :
7051 enableval=$enable_static; p=${PACKAGE-default}
7052 case $enableval in
7053 yes) enable_static=yes ;;
7054 no) enable_static=no ;;
7056 enable_static=no
7057 # Look at the argument we got. We use all the common list separators.
7058 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7059 for pkg in $enableval; do
7060 IFS="$lt_save_ifs"
7061 if test "X$pkg" = "X$p"; then
7062 enable_static=yes
7064 done
7065 IFS="$lt_save_ifs"
7067 esac
7068 else
7069 enable_static=yes
7081 # Check whether --with-pic was given.
7082 if test "${with_pic+set}" = set; then :
7083 withval=$with_pic; pic_mode="$withval"
7084 else
7085 pic_mode=default
7089 test -z "$pic_mode" && pic_mode=default
7097 # Check whether --enable-fast-install was given.
7098 if test "${enable_fast_install+set}" = set; then :
7099 enableval=$enable_fast_install; p=${PACKAGE-default}
7100 case $enableval in
7101 yes) enable_fast_install=yes ;;
7102 no) enable_fast_install=no ;;
7104 enable_fast_install=no
7105 # Look at the argument we got. We use all the common list separators.
7106 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7107 for pkg in $enableval; do
7108 IFS="$lt_save_ifs"
7109 if test "X$pkg" = "X$p"; then
7110 enable_fast_install=yes
7112 done
7113 IFS="$lt_save_ifs"
7115 esac
7116 else
7117 enable_fast_install=yes
7130 # This can be used to rebuild libtool when needed
7131 LIBTOOL_DEPS="$ltmain"
7133 # Always use our own libtool.
7134 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7160 test -z "$LN_S" && LN_S="ln -s"
7175 if test -n "${ZSH_VERSION+set}" ; then
7176 setopt NO_GLOB_SUBST
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7180 $as_echo_n "checking for objdir... " >&6; }
7181 if test "${lt_cv_objdir+set}" = set; then :
7182 $as_echo_n "(cached) " >&6
7183 else
7184 rm -f .libs 2>/dev/null
7185 mkdir .libs 2>/dev/null
7186 if test -d .libs; then
7187 lt_cv_objdir=.libs
7188 else
7189 # MS-DOS does not allow filenames that begin with a dot.
7190 lt_cv_objdir=_libs
7192 rmdir .libs 2>/dev/null
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7195 $as_echo "$lt_cv_objdir" >&6; }
7196 objdir=$lt_cv_objdir
7202 cat >>confdefs.h <<_ACEOF
7203 #define LT_OBJDIR "$lt_cv_objdir/"
7204 _ACEOF
7222 case $host_os in
7223 aix3*)
7224 # AIX sometimes has problems with the GCC collect2 program. For some
7225 # reason, if we set the COLLECT_NAMES environment variable, the problems
7226 # vanish in a puff of smoke.
7227 if test "X${COLLECT_NAMES+set}" != Xset; then
7228 COLLECT_NAMES=
7229 export COLLECT_NAMES
7232 esac
7234 # Sed substitution that helps us do robust quoting. It backslashifies
7235 # metacharacters that are still active within double-quoted strings.
7236 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7238 # Same as above, but do not quote variable references.
7239 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7241 # Sed substitution to delay expansion of an escaped shell variable in a
7242 # double_quote_subst'ed string.
7243 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7245 # Sed substitution to delay expansion of an escaped single quote.
7246 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7248 # Sed substitution to avoid accidental globbing in evaled expressions
7249 no_glob_subst='s/\*/\\\*/g'
7251 # Global variables:
7252 ofile=libtool
7253 can_build_shared=yes
7255 # All known linkers require a `.a' archive for static linking (except MSVC,
7256 # which needs '.lib').
7257 libext=a
7259 with_gnu_ld="$lt_cv_prog_gnu_ld"
7261 old_CC="$CC"
7262 old_CFLAGS="$CFLAGS"
7264 # Set sane defaults for various variables
7265 test -z "$CC" && CC=cc
7266 test -z "$LTCC" && LTCC=$CC
7267 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7268 test -z "$LD" && LD=ld
7269 test -z "$ac_objext" && ac_objext=o
7271 for cc_temp in $compiler""; do
7272 case $cc_temp in
7273 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7274 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7275 \-*) ;;
7276 *) break;;
7277 esac
7278 done
7279 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7282 # Only perform the check for file, if the check method requires it
7283 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7284 case $deplibs_check_method in
7285 file_magic*)
7286 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7288 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7289 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7290 $as_echo_n "(cached) " >&6
7291 else
7292 case $MAGIC_CMD in
7293 [\\/*] | ?:[\\/]*)
7294 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7297 lt_save_MAGIC_CMD="$MAGIC_CMD"
7298 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7299 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7300 for ac_dir in $ac_dummy; do
7301 IFS="$lt_save_ifs"
7302 test -z "$ac_dir" && ac_dir=.
7303 if test -f $ac_dir/${ac_tool_prefix}file; then
7304 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7305 if test -n "$file_magic_test_file"; then
7306 case $deplibs_check_method in
7307 "file_magic "*)
7308 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7309 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7310 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7311 $EGREP "$file_magic_regex" > /dev/null; then
7313 else
7314 cat <<_LT_EOF 1>&2
7316 *** Warning: the command libtool uses to detect shared libraries,
7317 *** $file_magic_cmd, produces output that libtool cannot recognize.
7318 *** The result is that libtool may fail to recognize shared libraries
7319 *** as such. This will affect the creation of libtool libraries that
7320 *** depend on shared libraries, but programs linked with such libtool
7321 *** libraries will work regardless of this problem. Nevertheless, you
7322 *** may want to report the problem to your system manager and/or to
7323 *** bug-libtool@gnu.org
7325 _LT_EOF
7326 fi ;;
7327 esac
7329 break
7331 done
7332 IFS="$lt_save_ifs"
7333 MAGIC_CMD="$lt_save_MAGIC_CMD"
7335 esac
7338 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7339 if test -n "$MAGIC_CMD"; then
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7341 $as_echo "$MAGIC_CMD" >&6; }
7342 else
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7344 $as_echo "no" >&6; }
7351 if test -z "$lt_cv_path_MAGIC_CMD"; then
7352 if test -n "$ac_tool_prefix"; then
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7354 $as_echo_n "checking for file... " >&6; }
7355 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7356 $as_echo_n "(cached) " >&6
7357 else
7358 case $MAGIC_CMD in
7359 [\\/*] | ?:[\\/]*)
7360 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7363 lt_save_MAGIC_CMD="$MAGIC_CMD"
7364 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7365 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7366 for ac_dir in $ac_dummy; do
7367 IFS="$lt_save_ifs"
7368 test -z "$ac_dir" && ac_dir=.
7369 if test -f $ac_dir/file; then
7370 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7371 if test -n "$file_magic_test_file"; then
7372 case $deplibs_check_method in
7373 "file_magic "*)
7374 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7375 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7376 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7377 $EGREP "$file_magic_regex" > /dev/null; then
7379 else
7380 cat <<_LT_EOF 1>&2
7382 *** Warning: the command libtool uses to detect shared libraries,
7383 *** $file_magic_cmd, produces output that libtool cannot recognize.
7384 *** The result is that libtool may fail to recognize shared libraries
7385 *** as such. This will affect the creation of libtool libraries that
7386 *** depend on shared libraries, but programs linked with such libtool
7387 *** libraries will work regardless of this problem. Nevertheless, you
7388 *** may want to report the problem to your system manager and/or to
7389 *** bug-libtool@gnu.org
7391 _LT_EOF
7392 fi ;;
7393 esac
7395 break
7397 done
7398 IFS="$lt_save_ifs"
7399 MAGIC_CMD="$lt_save_MAGIC_CMD"
7401 esac
7404 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7405 if test -n "$MAGIC_CMD"; then
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7407 $as_echo "$MAGIC_CMD" >&6; }
7408 else
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410 $as_echo "no" >&6; }
7414 else
7415 MAGIC_CMD=:
7421 esac
7423 # Use C for the default configuration in the libtool script
7425 lt_save_CC="$CC"
7426 ac_ext=c
7427 ac_cpp='$CPP $CPPFLAGS'
7428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7433 # Source file extension for C test sources.
7434 ac_ext=c
7436 # Object file extension for compiled C test sources.
7437 objext=o
7438 objext=$objext
7440 # Code to be used in simple compile tests
7441 lt_simple_compile_test_code="int some_variable = 0;"
7443 # Code to be used in simple link tests
7444 lt_simple_link_test_code='int main(){return(0);}'
7452 # If no C compiler was specified, use CC.
7453 LTCC=${LTCC-"$CC"}
7455 # If no C compiler flags were specified, use CFLAGS.
7456 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7458 # Allow CC to be a program name with arguments.
7459 compiler=$CC
7461 # Save the default compiler, since it gets overwritten when the other
7462 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7463 compiler_DEFAULT=$CC
7465 # save warnings/boilerplate of simple test code
7466 ac_outfile=conftest.$ac_objext
7467 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7468 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7469 _lt_compiler_boilerplate=`cat conftest.err`
7470 $RM conftest*
7472 ac_outfile=conftest.$ac_objext
7473 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7474 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7475 _lt_linker_boilerplate=`cat conftest.err`
7476 $RM -r conftest*
7479 ## CAVEAT EMPTOR:
7480 ## There is no encapsulation within the following macros, do not change
7481 ## the running order or otherwise move them around unless you know exactly
7482 ## what you are doing...
7483 if test -n "$compiler"; then
7485 lt_prog_compiler_no_builtin_flag=
7487 if test "$GCC" = yes; then
7488 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7491 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7492 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7493 $as_echo_n "(cached) " >&6
7494 else
7495 lt_cv_prog_compiler_rtti_exceptions=no
7496 ac_outfile=conftest.$ac_objext
7497 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7498 lt_compiler_flag="-fno-rtti -fno-exceptions"
7499 # Insert the option either (1) after the last *FLAGS variable, or
7500 # (2) before a word containing "conftest.", or (3) at the end.
7501 # Note that $ac_compile itself does not contain backslashes and begins
7502 # with a dollar sign (not a hyphen), so the echo should work correctly.
7503 # The option is referenced via a variable to avoid confusing sed.
7504 lt_compile=`echo "$ac_compile" | $SED \
7505 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7507 -e 's:$: $lt_compiler_flag:'`
7508 (eval echo "\"\$as_me:7508: $lt_compile\"" >&5)
7509 (eval "$lt_compile" 2>conftest.err)
7510 ac_status=$?
7511 cat conftest.err >&5
7512 echo "$as_me:7512: \$? = $ac_status" >&5
7513 if (exit $ac_status) && test -s "$ac_outfile"; then
7514 # The compiler can only warn and ignore the option if not recognized
7515 # So say no if there are warnings other than the usual output.
7516 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7517 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7518 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7519 lt_cv_prog_compiler_rtti_exceptions=yes
7522 $RM conftest*
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7526 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7528 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7529 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7530 else
7541 lt_prog_compiler_wl=
7542 lt_prog_compiler_pic=
7543 lt_prog_compiler_static=
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7546 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7548 if test "$GCC" = yes; then
7549 lt_prog_compiler_wl='-Wl,'
7550 lt_prog_compiler_static='-static'
7552 case $host_os in
7553 aix*)
7554 # All AIX code is PIC.
7555 if test "$host_cpu" = ia64; then
7556 # AIX 5 now supports IA64 processor
7557 lt_prog_compiler_static='-Bstatic'
7561 amigaos*)
7562 case $host_cpu in
7563 powerpc)
7564 # see comment about AmigaOS4 .so support
7565 lt_prog_compiler_pic='-fPIC'
7567 m68k)
7568 # FIXME: we need at least 68020 code to build shared libraries, but
7569 # adding the `-m68020' flag to GCC prevents building anything better,
7570 # like `-m68040'.
7571 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7573 esac
7576 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7577 # PIC is the default for these OSes.
7580 mingw* | cygwin* | pw32* | os2* | cegcc*)
7581 # This hack is so that the source file can tell whether it is being
7582 # built for inclusion in a dll (and should export symbols for example).
7583 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7584 # (--disable-auto-import) libraries
7585 lt_prog_compiler_pic='-DDLL_EXPORT'
7588 darwin* | rhapsody*)
7589 # PIC is the default on this platform
7590 # Common symbols not allowed in MH_DYLIB files
7591 lt_prog_compiler_pic='-fno-common'
7594 hpux*)
7595 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7596 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7597 # sets the default TLS model and affects inlining.
7598 case $host_cpu in
7599 hppa*64*)
7600 # +Z the default
7603 lt_prog_compiler_pic='-fPIC'
7605 esac
7608 interix[3-9]*)
7609 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7610 # Instead, we relocate shared libraries at runtime.
7613 msdosdjgpp*)
7614 # Just because we use GCC doesn't mean we suddenly get shared libraries
7615 # on systems that don't support them.
7616 lt_prog_compiler_can_build_shared=no
7617 enable_shared=no
7620 *nto* | *qnx*)
7621 # QNX uses GNU C++, but need to define -shared option too, otherwise
7622 # it will coredump.
7623 lt_prog_compiler_pic='-fPIC -shared'
7626 sysv4*MP*)
7627 if test -d /usr/nec; then
7628 lt_prog_compiler_pic=-Kconform_pic
7633 lt_prog_compiler_pic='-fPIC'
7635 esac
7636 else
7637 # PORTME Check for flag to pass linker flags through the system compiler.
7638 case $host_os in
7639 aix*)
7640 lt_prog_compiler_wl='-Wl,'
7641 if test "$host_cpu" = ia64; then
7642 # AIX 5 now supports IA64 processor
7643 lt_prog_compiler_static='-Bstatic'
7644 else
7645 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7649 mingw* | cygwin* | pw32* | os2* | cegcc*)
7650 # This hack is so that the source file can tell whether it is being
7651 # built for inclusion in a dll (and should export symbols for example).
7652 lt_prog_compiler_pic='-DDLL_EXPORT'
7655 hpux9* | hpux10* | hpux11*)
7656 lt_prog_compiler_wl='-Wl,'
7657 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7658 # not for PA HP-UX.
7659 case $host_cpu in
7660 hppa*64*|ia64*)
7661 # +Z the default
7664 lt_prog_compiler_pic='+Z'
7666 esac
7667 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7668 lt_prog_compiler_static='${wl}-a ${wl}archive'
7671 irix5* | irix6* | nonstopux*)
7672 lt_prog_compiler_wl='-Wl,'
7673 # PIC (with -KPIC) is the default.
7674 lt_prog_compiler_static='-non_shared'
7677 linux* | k*bsd*-gnu)
7678 case $cc_basename in
7679 # old Intel for x86_64 which still supported -KPIC.
7680 ecc*)
7681 lt_prog_compiler_wl='-Wl,'
7682 lt_prog_compiler_pic='-KPIC'
7683 lt_prog_compiler_static='-static'
7685 # icc used to be incompatible with GCC.
7686 # ICC 10 doesn't accept -KPIC any more.
7687 icc* | ifort*)
7688 lt_prog_compiler_wl='-Wl,'
7689 lt_prog_compiler_pic='-fPIC'
7690 lt_prog_compiler_static='-static'
7692 # Lahey Fortran 8.1.
7693 lf95*)
7694 lt_prog_compiler_wl='-Wl,'
7695 lt_prog_compiler_pic='--shared'
7696 lt_prog_compiler_static='--static'
7698 pgcc* | pgf77* | pgf90* | pgf95*)
7699 # Portland Group compilers (*not* the Pentium gcc compiler,
7700 # which looks to be a dead project)
7701 lt_prog_compiler_wl='-Wl,'
7702 lt_prog_compiler_pic='-fpic'
7703 lt_prog_compiler_static='-Bstatic'
7705 ccc*)
7706 lt_prog_compiler_wl='-Wl,'
7707 # All Alpha code is PIC.
7708 lt_prog_compiler_static='-non_shared'
7710 xl*)
7711 # IBM XL C 8.0/Fortran 10.1 on PPC
7712 lt_prog_compiler_wl='-Wl,'
7713 lt_prog_compiler_pic='-qpic'
7714 lt_prog_compiler_static='-qstaticlink'
7717 case `$CC -V 2>&1 | sed 5q` in
7718 *Sun\ C*)
7719 # Sun C 5.9
7720 lt_prog_compiler_pic='-KPIC'
7721 lt_prog_compiler_static='-Bstatic'
7722 lt_prog_compiler_wl='-Wl,'
7724 *Sun\ F*)
7725 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7726 lt_prog_compiler_pic='-KPIC'
7727 lt_prog_compiler_static='-Bstatic'
7728 lt_prog_compiler_wl=''
7730 esac
7732 esac
7735 newsos6)
7736 lt_prog_compiler_pic='-KPIC'
7737 lt_prog_compiler_static='-Bstatic'
7740 *nto* | *qnx*)
7741 # QNX uses GNU C++, but need to define -shared option too, otherwise
7742 # it will coredump.
7743 lt_prog_compiler_pic='-fPIC -shared'
7746 osf3* | osf4* | osf5*)
7747 lt_prog_compiler_wl='-Wl,'
7748 # All OSF/1 code is PIC.
7749 lt_prog_compiler_static='-non_shared'
7752 rdos*)
7753 lt_prog_compiler_static='-non_shared'
7756 solaris*)
7757 lt_prog_compiler_pic='-KPIC'
7758 lt_prog_compiler_static='-Bstatic'
7759 case $cc_basename in
7760 f77* | f90* | f95*)
7761 lt_prog_compiler_wl='-Qoption ld ';;
7763 lt_prog_compiler_wl='-Wl,';;
7764 esac
7767 sunos4*)
7768 lt_prog_compiler_wl='-Qoption ld '
7769 lt_prog_compiler_pic='-PIC'
7770 lt_prog_compiler_static='-Bstatic'
7773 sysv4 | sysv4.2uw2* | sysv4.3*)
7774 lt_prog_compiler_wl='-Wl,'
7775 lt_prog_compiler_pic='-KPIC'
7776 lt_prog_compiler_static='-Bstatic'
7779 sysv4*MP*)
7780 if test -d /usr/nec ;then
7781 lt_prog_compiler_pic='-Kconform_pic'
7782 lt_prog_compiler_static='-Bstatic'
7786 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7787 lt_prog_compiler_wl='-Wl,'
7788 lt_prog_compiler_pic='-KPIC'
7789 lt_prog_compiler_static='-Bstatic'
7792 unicos*)
7793 lt_prog_compiler_wl='-Wl,'
7794 lt_prog_compiler_can_build_shared=no
7797 uts4*)
7798 lt_prog_compiler_pic='-pic'
7799 lt_prog_compiler_static='-Bstatic'
7803 lt_prog_compiler_can_build_shared=no
7805 esac
7808 case $host_os in
7809 # For platforms which do not support PIC, -DPIC is meaningless:
7810 *djgpp*)
7811 lt_prog_compiler_pic=
7814 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7816 esac
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7818 $as_echo "$lt_prog_compiler_pic" >&6; }
7826 # Check to make sure the PIC flag actually works.
7828 if test -n "$lt_prog_compiler_pic"; then
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7830 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7831 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7832 $as_echo_n "(cached) " >&6
7833 else
7834 lt_cv_prog_compiler_pic_works=no
7835 ac_outfile=conftest.$ac_objext
7836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7837 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7838 # Insert the option either (1) after the last *FLAGS variable, or
7839 # (2) before a word containing "conftest.", or (3) at the end.
7840 # Note that $ac_compile itself does not contain backslashes and begins
7841 # with a dollar sign (not a hyphen), so the echo should work correctly.
7842 # The option is referenced via a variable to avoid confusing sed.
7843 lt_compile=`echo "$ac_compile" | $SED \
7844 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7845 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7846 -e 's:$: $lt_compiler_flag:'`
7847 (eval echo "\"\$as_me:7847: $lt_compile\"" >&5)
7848 (eval "$lt_compile" 2>conftest.err)
7849 ac_status=$?
7850 cat conftest.err >&5
7851 echo "$as_me:7851: \$? = $ac_status" >&5
7852 if (exit $ac_status) && test -s "$ac_outfile"; then
7853 # The compiler can only warn and ignore the option if not recognized
7854 # So say no if there are warnings other than the usual output.
7855 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7856 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7857 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7858 lt_cv_prog_compiler_pic_works=yes
7861 $RM conftest*
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7865 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7867 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7868 case $lt_prog_compiler_pic in
7869 "" | " "*) ;;
7870 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7871 esac
7872 else
7873 lt_prog_compiler_pic=
7874 lt_prog_compiler_can_build_shared=no
7885 # Check to make sure the static flag actually works.
7887 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7889 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7890 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7891 $as_echo_n "(cached) " >&6
7892 else
7893 lt_cv_prog_compiler_static_works=no
7894 save_LDFLAGS="$LDFLAGS"
7895 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7896 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7897 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7898 # The linker can only warn and ignore the option if not recognized
7899 # So say no if there are warnings
7900 if test -s conftest.err; then
7901 # Append any errors to the config.log.
7902 cat conftest.err 1>&5
7903 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7904 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7905 if diff conftest.exp conftest.er2 >/dev/null; then
7906 lt_cv_prog_compiler_static_works=yes
7908 else
7909 lt_cv_prog_compiler_static_works=yes
7912 $RM -r conftest*
7913 LDFLAGS="$save_LDFLAGS"
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7917 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7919 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7921 else
7922 lt_prog_compiler_static=
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7932 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7933 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7934 $as_echo_n "(cached) " >&6
7935 else
7936 lt_cv_prog_compiler_c_o=no
7937 $RM -r conftest 2>/dev/null
7938 mkdir conftest
7939 cd conftest
7940 mkdir out
7941 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7943 lt_compiler_flag="-o out/conftest2.$ac_objext"
7944 # Insert the option either (1) after the last *FLAGS variable, or
7945 # (2) before a word containing "conftest.", or (3) at the end.
7946 # Note that $ac_compile itself does not contain backslashes and begins
7947 # with a dollar sign (not a hyphen), so the echo should work correctly.
7948 lt_compile=`echo "$ac_compile" | $SED \
7949 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7950 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7951 -e 's:$: $lt_compiler_flag:'`
7952 (eval echo "\"\$as_me:7952: $lt_compile\"" >&5)
7953 (eval "$lt_compile" 2>out/conftest.err)
7954 ac_status=$?
7955 cat out/conftest.err >&5
7956 echo "$as_me:7956: \$? = $ac_status" >&5
7957 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7958 then
7959 # The compiler can only warn and ignore the option if not recognized
7960 # So say no if there are warnings
7961 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7962 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7963 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7964 lt_cv_prog_compiler_c_o=yes
7967 chmod u+w . 2>&5
7968 $RM conftest*
7969 # SGI C++ compiler will create directory out/ii_files/ for
7970 # template instantiation
7971 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7972 $RM out/* && rmdir out
7973 cd ..
7974 $RM -r conftest
7975 $RM conftest*
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7979 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7987 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7988 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7989 $as_echo_n "(cached) " >&6
7990 else
7991 lt_cv_prog_compiler_c_o=no
7992 $RM -r conftest 2>/dev/null
7993 mkdir conftest
7994 cd conftest
7995 mkdir out
7996 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7998 lt_compiler_flag="-o out/conftest2.$ac_objext"
7999 # Insert the option either (1) after the last *FLAGS variable, or
8000 # (2) before a word containing "conftest.", or (3) at the end.
8001 # Note that $ac_compile itself does not contain backslashes and begins
8002 # with a dollar sign (not a hyphen), so the echo should work correctly.
8003 lt_compile=`echo "$ac_compile" | $SED \
8004 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8005 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8006 -e 's:$: $lt_compiler_flag:'`
8007 (eval echo "\"\$as_me:8007: $lt_compile\"" >&5)
8008 (eval "$lt_compile" 2>out/conftest.err)
8009 ac_status=$?
8010 cat out/conftest.err >&5
8011 echo "$as_me:8011: \$? = $ac_status" >&5
8012 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8013 then
8014 # The compiler can only warn and ignore the option if not recognized
8015 # So say no if there are warnings
8016 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8017 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8018 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8019 lt_cv_prog_compiler_c_o=yes
8022 chmod u+w . 2>&5
8023 $RM conftest*
8024 # SGI C++ compiler will create directory out/ii_files/ for
8025 # template instantiation
8026 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8027 $RM out/* && rmdir out
8028 cd ..
8029 $RM -r conftest
8030 $RM conftest*
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8034 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8039 hard_links="nottested"
8040 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8041 # do not overwrite the value of need_locks provided by the user
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8043 $as_echo_n "checking if we can lock with hard links... " >&6; }
8044 hard_links=yes
8045 $RM conftest*
8046 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8047 touch conftest.a
8048 ln conftest.a conftest.b 2>&5 || hard_links=no
8049 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8051 $as_echo "$hard_links" >&6; }
8052 if test "$hard_links" = no; then
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8054 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8055 need_locks=warn
8057 else
8058 need_locks=no
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8067 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8069 runpath_var=
8070 allow_undefined_flag=
8071 always_export_symbols=no
8072 archive_cmds=
8073 archive_expsym_cmds=
8074 compiler_needs_object=no
8075 enable_shared_with_static_runtimes=no
8076 export_dynamic_flag_spec=
8077 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8078 hardcode_automatic=no
8079 hardcode_direct=no
8080 hardcode_direct_absolute=no
8081 hardcode_libdir_flag_spec=
8082 hardcode_libdir_flag_spec_ld=
8083 hardcode_libdir_separator=
8084 hardcode_minus_L=no
8085 hardcode_shlibpath_var=unsupported
8086 inherit_rpath=no
8087 link_all_deplibs=unknown
8088 module_cmds=
8089 module_expsym_cmds=
8090 old_archive_from_new_cmds=
8091 old_archive_from_expsyms_cmds=
8092 thread_safe_flag_spec=
8093 whole_archive_flag_spec=
8094 # include_expsyms should be a list of space-separated symbols to be *always*
8095 # included in the symbol list
8096 include_expsyms=
8097 # exclude_expsyms can be an extended regexp of symbols to exclude
8098 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8099 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8100 # as well as any symbol that contains `d'.
8101 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8102 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8103 # platforms (ab)use it in PIC code, but their linkers get confused if
8104 # the symbol is explicitly referenced. Since portable code cannot
8105 # rely on this symbol name, it's probably fine to never include it in
8106 # preloaded symbol tables.
8107 # Exclude shared library initialization/finalization symbols.
8108 extract_expsyms_cmds=
8110 case $host_os in
8111 cygwin* | mingw* | pw32* | cegcc*)
8112 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8113 # When not using gcc, we currently assume that we are using
8114 # Microsoft Visual C++.
8115 if test "$GCC" != yes; then
8116 with_gnu_ld=no
8119 interix*)
8120 # we just hope/assume this is gcc and not c89 (= MSVC++)
8121 with_gnu_ld=yes
8123 openbsd*)
8124 with_gnu_ld=no
8126 esac
8128 ld_shlibs=yes
8129 if test "$with_gnu_ld" = yes; then
8130 # If archive_cmds runs LD, not CC, wlarc should be empty
8131 wlarc='${wl}'
8133 # Set some defaults for GNU ld with shared library support. These
8134 # are reset later if shared libraries are not supported. Putting them
8135 # here allows them to be overridden if necessary.
8136 runpath_var=LD_RUN_PATH
8137 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8138 export_dynamic_flag_spec='${wl}--export-dynamic'
8139 # ancient GNU ld didn't support --whole-archive et. al.
8140 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8141 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8142 else
8143 whole_archive_flag_spec=
8145 supports_anon_versioning=no
8146 case `$LD -v 2>&1` in
8147 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8148 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8149 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8150 *\ 2.11.*) ;; # other 2.11 versions
8151 *) supports_anon_versioning=yes ;;
8152 esac
8154 # See if GNU ld supports shared libraries.
8155 case $host_os in
8156 aix[3-9]*)
8157 # On AIX/PPC, the GNU linker is very broken
8158 if test "$host_cpu" != ia64; then
8159 ld_shlibs=no
8160 cat <<_LT_EOF 1>&2
8162 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8163 *** to be unable to reliably create shared libraries on AIX.
8164 *** Therefore, libtool is disabling shared libraries support. If you
8165 *** really care for shared libraries, you may want to modify your PATH
8166 *** so that a non-GNU linker is found, and then restart.
8168 _LT_EOF
8172 amigaos*)
8173 case $host_cpu in
8174 powerpc)
8175 # see comment about AmigaOS4 .so support
8176 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8177 archive_expsym_cmds=''
8179 m68k)
8180 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)'
8181 hardcode_libdir_flag_spec='-L$libdir'
8182 hardcode_minus_L=yes
8184 esac
8187 beos*)
8188 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8189 allow_undefined_flag=unsupported
8190 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8191 # support --undefined. This deserves some investigation. FIXME
8192 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8193 else
8194 ld_shlibs=no
8198 cygwin* | mingw* | pw32* | cegcc*)
8199 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8200 # as there is no search path for DLLs.
8201 hardcode_libdir_flag_spec='-L$libdir'
8202 allow_undefined_flag=unsupported
8203 always_export_symbols=no
8204 enable_shared_with_static_runtimes=yes
8205 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8207 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8208 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8209 # If the export-symbols file already is a .def file (1st line
8210 # is EXPORTS), use it as is; otherwise, prepend...
8211 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8212 cp $export_symbols $output_objdir/$soname.def;
8213 else
8214 echo EXPORTS > $output_objdir/$soname.def;
8215 cat $export_symbols >> $output_objdir/$soname.def;
8217 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8218 else
8219 ld_shlibs=no
8223 interix[3-9]*)
8224 hardcode_direct=no
8225 hardcode_shlibpath_var=no
8226 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8227 export_dynamic_flag_spec='${wl}-E'
8228 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8229 # Instead, shared libraries are loaded at an image base (0x10000000 by
8230 # default) and relocated if they conflict, which is a slow very memory
8231 # consuming and fragmenting process. To avoid this, we pick a random,
8232 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8233 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8234 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8235 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'
8238 gnu* | linux* | tpf* | k*bsd*-gnu)
8239 tmp_diet=no
8240 if test "$host_os" = linux-dietlibc; then
8241 case $cc_basename in
8242 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8243 esac
8245 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8246 && test "$tmp_diet" = no
8247 then
8248 tmp_addflag=
8249 tmp_sharedflag='-shared'
8250 case $cc_basename,$host_cpu in
8251 pgcc*) # Portland Group C compiler
8252 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8253 tmp_addflag=' $pic_flag'
8255 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8256 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8257 tmp_addflag=' $pic_flag -Mnomain' ;;
8258 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8259 tmp_addflag=' -i_dynamic' ;;
8260 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8261 tmp_addflag=' -i_dynamic -nofor_main' ;;
8262 ifc* | ifort*) # Intel Fortran compiler
8263 tmp_addflag=' -nofor_main' ;;
8264 lf95*) # Lahey Fortran 8.1
8265 whole_archive_flag_spec=
8266 tmp_sharedflag='--shared' ;;
8267 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8268 tmp_sharedflag='-qmkshrobj'
8269 tmp_addflag= ;;
8270 esac
8271 case `$CC -V 2>&1 | sed 5q` in
8272 *Sun\ C*) # Sun C 5.9
8273 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8274 compiler_needs_object=yes
8275 tmp_sharedflag='-G' ;;
8276 *Sun\ F*) # Sun Fortran 8.3
8277 tmp_sharedflag='-G' ;;
8278 esac
8279 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8281 if test "x$supports_anon_versioning" = xyes; then
8282 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8283 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8284 echo "local: *; };" >> $output_objdir/$libname.ver~
8285 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8288 case $cc_basename in
8289 xlf*)
8290 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8291 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8292 hardcode_libdir_flag_spec=
8293 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8294 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8295 if test "x$supports_anon_versioning" = xyes; then
8296 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8297 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8298 echo "local: *; };" >> $output_objdir/$libname.ver~
8299 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8302 esac
8303 else
8304 ld_shlibs=no
8308 netbsd*)
8309 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8310 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8311 wlarc=
8312 else
8313 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8314 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8318 solaris*)
8319 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8320 ld_shlibs=no
8321 cat <<_LT_EOF 1>&2
8323 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8324 *** create shared libraries on Solaris systems. Therefore, libtool
8325 *** is disabling shared libraries support. We urge you to upgrade GNU
8326 *** binutils to release 2.9.1 or newer. Another option is to modify
8327 *** your PATH or compiler configuration so that the native linker is
8328 *** used, and then restart.
8330 _LT_EOF
8331 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8333 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8334 else
8335 ld_shlibs=no
8339 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8340 case `$LD -v 2>&1` in
8341 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8342 ld_shlibs=no
8343 cat <<_LT_EOF 1>&2
8345 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8346 *** reliably create shared libraries on SCO systems. Therefore, libtool
8347 *** is disabling shared libraries support. We urge you to upgrade GNU
8348 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8349 *** your PATH or compiler configuration so that the native linker is
8350 *** used, and then restart.
8352 _LT_EOF
8355 # For security reasons, it is highly recommended that you always
8356 # use absolute paths for naming shared libraries, and exclude the
8357 # DT_RUNPATH tag from executables and libraries. But doing so
8358 # requires that you compile everything twice, which is a pain.
8359 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8360 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8361 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8362 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8363 else
8364 ld_shlibs=no
8367 esac
8370 sunos4*)
8371 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8372 wlarc=
8373 hardcode_direct=yes
8374 hardcode_shlibpath_var=no
8378 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8379 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8380 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8381 else
8382 ld_shlibs=no
8385 esac
8387 if test "$ld_shlibs" = no; then
8388 runpath_var=
8389 hardcode_libdir_flag_spec=
8390 export_dynamic_flag_spec=
8391 whole_archive_flag_spec=
8393 else
8394 # PORTME fill in a description of your system's linker (not GNU ld)
8395 case $host_os in
8396 aix3*)
8397 allow_undefined_flag=unsupported
8398 always_export_symbols=yes
8399 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'
8400 # Note: this linker hardcodes the directories in LIBPATH if there
8401 # are no directories specified by -L.
8402 hardcode_minus_L=yes
8403 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8404 # Neither direct hardcoding nor static linking is supported with a
8405 # broken collect2.
8406 hardcode_direct=unsupported
8410 aix[4-9]*)
8411 if test "$host_cpu" = ia64; then
8412 # On IA64, the linker does run time linking by default, so we don't
8413 # have to do anything special.
8414 aix_use_runtimelinking=no
8415 exp_sym_flag='-Bexport'
8416 no_entry_flag=""
8417 else
8418 # If we're using GNU nm, then we don't want the "-C" option.
8419 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8420 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8421 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8422 else
8423 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'
8425 aix_use_runtimelinking=no
8427 # Test if we are trying to use run time linking or normal
8428 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8429 # need to do runtime linking.
8430 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8431 for ld_flag in $LDFLAGS; do
8432 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8433 aix_use_runtimelinking=yes
8434 break
8436 done
8438 esac
8440 exp_sym_flag='-bexport'
8441 no_entry_flag='-bnoentry'
8444 # When large executables or shared objects are built, AIX ld can
8445 # have problems creating the table of contents. If linking a library
8446 # or program results in "error TOC overflow" add -mminimal-toc to
8447 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8448 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8450 archive_cmds=''
8451 hardcode_direct=yes
8452 hardcode_direct_absolute=yes
8453 hardcode_libdir_separator=':'
8454 link_all_deplibs=yes
8455 file_list_spec='${wl}-f,'
8457 if test "$GCC" = yes; then
8458 case $host_os in aix4.[012]|aix4.[012].*)
8459 # We only want to do this on AIX 4.2 and lower, the check
8460 # below for broken collect2 doesn't work under 4.3+
8461 collect2name=`${CC} -print-prog-name=collect2`
8462 if test -f "$collect2name" &&
8463 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8464 then
8465 # We have reworked collect2
8467 else
8468 # We have old collect2
8469 hardcode_direct=unsupported
8470 # It fails to find uninstalled libraries when the uninstalled
8471 # path is not listed in the libpath. Setting hardcode_minus_L
8472 # to unsupported forces relinking
8473 hardcode_minus_L=yes
8474 hardcode_libdir_flag_spec='-L$libdir'
8475 hardcode_libdir_separator=
8478 esac
8479 shared_flag='-shared'
8480 if test "$aix_use_runtimelinking" = yes; then
8481 shared_flag="$shared_flag "'${wl}-G'
8483 else
8484 # not using gcc
8485 if test "$host_cpu" = ia64; then
8486 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8487 # chokes on -Wl,-G. The following line is correct:
8488 shared_flag='-G'
8489 else
8490 if test "$aix_use_runtimelinking" = yes; then
8491 shared_flag='${wl}-G'
8492 else
8493 shared_flag='${wl}-bM:SRE'
8498 export_dynamic_flag_spec='${wl}-bexpall'
8499 # It seems that -bexpall does not export symbols beginning with
8500 # underscore (_), so it is better to generate a list of symbols to export.
8501 always_export_symbols=yes
8502 if test "$aix_use_runtimelinking" = yes; then
8503 # Warning - without using the other runtime loading flags (-brtl),
8504 # -berok will link without error, but may produce a broken library.
8505 allow_undefined_flag='-berok'
8506 # Determine the default libpath from the value encoded in an
8507 # empty executable.
8508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509 /* end confdefs.h. */
8512 main ()
8516 return 0;
8518 _ACEOF
8519 if ac_fn_c_try_link "$LINENO"; then :
8521 lt_aix_libpath_sed='
8522 /Import File Strings/,/^$/ {
8523 /^0/ {
8524 s/^0 *\(.*\)$/\1/
8528 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8529 # Check for a 64-bit object if we didn't find anything.
8530 if test -z "$aix_libpath"; then
8531 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8534 rm -f core conftest.err conftest.$ac_objext \
8535 conftest$ac_exeext conftest.$ac_ext
8536 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8538 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8539 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8540 else
8541 if test "$host_cpu" = ia64; then
8542 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8543 allow_undefined_flag="-z nodefs"
8544 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"
8545 else
8546 # Determine the default libpath from the value encoded in an
8547 # empty executable.
8548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549 /* end confdefs.h. */
8552 main ()
8556 return 0;
8558 _ACEOF
8559 if ac_fn_c_try_link "$LINENO"; then :
8561 lt_aix_libpath_sed='
8562 /Import File Strings/,/^$/ {
8563 /^0/ {
8564 s/^0 *\(.*\)$/\1/
8568 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8569 # Check for a 64-bit object if we didn't find anything.
8570 if test -z "$aix_libpath"; then
8571 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8574 rm -f core conftest.err conftest.$ac_objext \
8575 conftest$ac_exeext conftest.$ac_ext
8576 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8578 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8579 # Warning - without using the other run time loading flags,
8580 # -berok will link without error, but may produce a broken library.
8581 no_undefined_flag=' ${wl}-bernotok'
8582 allow_undefined_flag=' ${wl}-berok'
8583 # Exported symbols can be pulled into shared objects from archives
8584 whole_archive_flag_spec='$convenience'
8585 archive_cmds_need_lc=yes
8586 # This is similar to how AIX traditionally builds its shared libraries.
8587 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'
8592 amigaos*)
8593 case $host_cpu in
8594 powerpc)
8595 # see comment about AmigaOS4 .so support
8596 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8597 archive_expsym_cmds=''
8599 m68k)
8600 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)'
8601 hardcode_libdir_flag_spec='-L$libdir'
8602 hardcode_minus_L=yes
8604 esac
8607 bsdi[45]*)
8608 export_dynamic_flag_spec=-rdynamic
8611 cygwin* | mingw* | pw32* | cegcc*)
8612 # When not using gcc, we currently assume that we are using
8613 # Microsoft Visual C++.
8614 # hardcode_libdir_flag_spec is actually meaningless, as there is
8615 # no search path for DLLs.
8616 hardcode_libdir_flag_spec=' '
8617 allow_undefined_flag=unsupported
8618 # Tell ltmain to make .lib files, not .a files.
8619 libext=lib
8620 # Tell ltmain to make .dll files, not .so files.
8621 shrext_cmds=".dll"
8622 # FIXME: Setting linknames here is a bad hack.
8623 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8624 # The linker will automatically build a .lib file if we build a DLL.
8625 old_archive_from_new_cmds='true'
8626 # FIXME: Should let the user specify the lib program.
8627 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8628 fix_srcfile_path='`cygpath -w "$srcfile"`'
8629 enable_shared_with_static_runtimes=yes
8632 darwin* | rhapsody*)
8635 archive_cmds_need_lc=no
8636 hardcode_direct=no
8637 hardcode_automatic=yes
8638 hardcode_shlibpath_var=unsupported
8639 whole_archive_flag_spec=''
8640 link_all_deplibs=yes
8641 allow_undefined_flag="$_lt_dar_allow_undefined"
8642 case $cc_basename in
8643 ifort*) _lt_dar_can_shared=yes ;;
8644 *) _lt_dar_can_shared=$GCC ;;
8645 esac
8646 if test "$_lt_dar_can_shared" = "yes"; then
8647 output_verbose_link_cmd=echo
8648 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8649 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8650 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}"
8651 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}"
8653 else
8654 ld_shlibs=no
8659 dgux*)
8660 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8661 hardcode_libdir_flag_spec='-L$libdir'
8662 hardcode_shlibpath_var=no
8665 freebsd1*)
8666 ld_shlibs=no
8669 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8670 # support. Future versions do this automatically, but an explicit c++rt0.o
8671 # does not break anything, and helps significantly (at the cost of a little
8672 # extra space).
8673 freebsd2.2*)
8674 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8675 hardcode_libdir_flag_spec='-R$libdir'
8676 hardcode_direct=yes
8677 hardcode_shlibpath_var=no
8680 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8681 freebsd2*)
8682 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8683 hardcode_direct=yes
8684 hardcode_minus_L=yes
8685 hardcode_shlibpath_var=no
8688 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8689 freebsd* | dragonfly*)
8690 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8691 hardcode_libdir_flag_spec='-R$libdir'
8692 hardcode_direct=yes
8693 hardcode_shlibpath_var=no
8696 hpux9*)
8697 if test "$GCC" = yes; then
8698 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'
8699 else
8700 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'
8702 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8703 hardcode_libdir_separator=:
8704 hardcode_direct=yes
8706 # hardcode_minus_L: Not really in the search PATH,
8707 # but as the default location of the library.
8708 hardcode_minus_L=yes
8709 export_dynamic_flag_spec='${wl}-E'
8712 hpux10*)
8713 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8714 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8715 else
8716 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8718 if test "$with_gnu_ld" = no; then
8719 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8720 hardcode_libdir_flag_spec_ld='+b $libdir'
8721 hardcode_libdir_separator=:
8722 hardcode_direct=yes
8723 hardcode_direct_absolute=yes
8724 export_dynamic_flag_spec='${wl}-E'
8725 # hardcode_minus_L: Not really in the search PATH,
8726 # but as the default location of the library.
8727 hardcode_minus_L=yes
8731 hpux11*)
8732 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8733 case $host_cpu in
8734 hppa*64*)
8735 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8737 ia64*)
8738 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8741 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8743 esac
8744 else
8745 case $host_cpu in
8746 hppa*64*)
8747 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8749 ia64*)
8750 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8753 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8755 esac
8757 if test "$with_gnu_ld" = no; then
8758 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8759 hardcode_libdir_separator=:
8761 case $host_cpu in
8762 hppa*64*|ia64*)
8763 hardcode_direct=no
8764 hardcode_shlibpath_var=no
8767 hardcode_direct=yes
8768 hardcode_direct_absolute=yes
8769 export_dynamic_flag_spec='${wl}-E'
8771 # hardcode_minus_L: Not really in the search PATH,
8772 # but as the default location of the library.
8773 hardcode_minus_L=yes
8775 esac
8779 irix5* | irix6* | nonstopux*)
8780 if test "$GCC" = yes; then
8781 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8782 # Try to use the -exported_symbol ld option, if it does not
8783 # work, assume that -exports_file does not work either and
8784 # implicitly export all symbols.
8785 save_LDFLAGS="$LDFLAGS"
8786 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h. */
8789 int foo(void) {}
8790 _ACEOF
8791 if ac_fn_c_try_link "$LINENO"; then :
8792 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8795 rm -f core conftest.err conftest.$ac_objext \
8796 conftest$ac_exeext conftest.$ac_ext
8797 LDFLAGS="$save_LDFLAGS"
8798 else
8799 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8800 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8802 archive_cmds_need_lc='no'
8803 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8804 hardcode_libdir_separator=:
8805 inherit_rpath=yes
8806 link_all_deplibs=yes
8809 netbsd*)
8810 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8811 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8812 else
8813 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8815 hardcode_libdir_flag_spec='-R$libdir'
8816 hardcode_direct=yes
8817 hardcode_shlibpath_var=no
8820 newsos6)
8821 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8822 hardcode_direct=yes
8823 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8824 hardcode_libdir_separator=:
8825 hardcode_shlibpath_var=no
8828 *nto* | *qnx*)
8831 openbsd*)
8832 if test -f /usr/libexec/ld.so; then
8833 hardcode_direct=yes
8834 hardcode_shlibpath_var=no
8835 hardcode_direct_absolute=yes
8836 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8837 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8838 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8839 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8840 export_dynamic_flag_spec='${wl}-E'
8841 else
8842 case $host_os in
8843 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8844 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8845 hardcode_libdir_flag_spec='-R$libdir'
8848 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8849 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8851 esac
8853 else
8854 ld_shlibs=no
8858 os2*)
8859 hardcode_libdir_flag_spec='-L$libdir'
8860 hardcode_minus_L=yes
8861 allow_undefined_flag=unsupported
8862 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'
8863 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8866 osf3*)
8867 if test "$GCC" = yes; then
8868 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8869 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8870 else
8871 allow_undefined_flag=' -expect_unresolved \*'
8872 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8874 archive_cmds_need_lc='no'
8875 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8876 hardcode_libdir_separator=:
8879 osf4* | osf5*) # as osf3* with the addition of -msym flag
8880 if test "$GCC" = yes; then
8881 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8882 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8883 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8884 else
8885 allow_undefined_flag=' -expect_unresolved \*'
8886 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8887 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~
8888 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8890 # Both c and cxx compiler support -rpath directly
8891 hardcode_libdir_flag_spec='-rpath $libdir'
8893 archive_cmds_need_lc='no'
8894 hardcode_libdir_separator=:
8897 solaris*)
8898 no_undefined_flag=' -z defs'
8899 if test "$GCC" = yes; then
8900 wlarc='${wl}'
8901 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8902 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8903 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8904 else
8905 case `$CC -V 2>&1` in
8906 *"Compilers 5.0"*)
8907 wlarc=''
8908 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8909 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8910 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8913 wlarc='${wl}'
8914 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8915 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8916 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8918 esac
8920 hardcode_libdir_flag_spec='-R$libdir'
8921 hardcode_shlibpath_var=no
8922 case $host_os in
8923 solaris2.[0-5] | solaris2.[0-5].*) ;;
8925 # The compiler driver will combine and reorder linker options,
8926 # but understands `-z linker_flag'. GCC discards it without `$wl',
8927 # but is careful enough not to reorder.
8928 # Supported since Solaris 2.6 (maybe 2.5.1?)
8929 if test "$GCC" = yes; then
8930 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8931 else
8932 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8935 esac
8936 link_all_deplibs=yes
8939 sunos4*)
8940 if test "x$host_vendor" = xsequent; then
8941 # Use $CC to link under sequent, because it throws in some extra .o
8942 # files that make .init and .fini sections work.
8943 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8944 else
8945 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8947 hardcode_libdir_flag_spec='-L$libdir'
8948 hardcode_direct=yes
8949 hardcode_minus_L=yes
8950 hardcode_shlibpath_var=no
8953 sysv4)
8954 case $host_vendor in
8955 sni)
8956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8957 hardcode_direct=yes # is this really true???
8959 siemens)
8960 ## LD is ld it makes a PLAMLIB
8961 ## CC just makes a GrossModule.
8962 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8963 reload_cmds='$CC -r -o $output$reload_objs'
8964 hardcode_direct=no
8966 motorola)
8967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8968 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8970 esac
8971 runpath_var='LD_RUN_PATH'
8972 hardcode_shlibpath_var=no
8975 sysv4.3*)
8976 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8977 hardcode_shlibpath_var=no
8978 export_dynamic_flag_spec='-Bexport'
8981 sysv4*MP*)
8982 if test -d /usr/nec; then
8983 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8984 hardcode_shlibpath_var=no
8985 runpath_var=LD_RUN_PATH
8986 hardcode_runpath_var=yes
8987 ld_shlibs=yes
8991 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8992 no_undefined_flag='${wl}-z,text'
8993 archive_cmds_need_lc=no
8994 hardcode_shlibpath_var=no
8995 runpath_var='LD_RUN_PATH'
8997 if test "$GCC" = yes; then
8998 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8999 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9000 else
9001 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9002 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9006 sysv5* | sco3.2v5* | sco5v6*)
9007 # Note: We can NOT use -z defs as we might desire, because we do not
9008 # link with -lc, and that would cause any symbols used from libc to
9009 # always be unresolved, which means just about no library would
9010 # ever link correctly. If we're not using GNU ld we use -z text
9011 # though, which does catch some bad symbols but isn't as heavy-handed
9012 # as -z defs.
9013 no_undefined_flag='${wl}-z,text'
9014 allow_undefined_flag='${wl}-z,nodefs'
9015 archive_cmds_need_lc=no
9016 hardcode_shlibpath_var=no
9017 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9018 hardcode_libdir_separator=':'
9019 link_all_deplibs=yes
9020 export_dynamic_flag_spec='${wl}-Bexport'
9021 runpath_var='LD_RUN_PATH'
9023 if test "$GCC" = yes; then
9024 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9025 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9026 else
9027 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9028 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9032 uts4*)
9033 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9034 hardcode_libdir_flag_spec='-L$libdir'
9035 hardcode_shlibpath_var=no
9039 ld_shlibs=no
9041 esac
9043 if test x$host_vendor = xsni; then
9044 case $host in
9045 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9046 export_dynamic_flag_spec='${wl}-Blargedynsym'
9048 esac
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9053 $as_echo "$ld_shlibs" >&6; }
9054 test "$ld_shlibs" = no && can_build_shared=no
9056 with_gnu_ld=$with_gnu_ld
9073 # Do we need to explicitly link libc?
9075 case "x$archive_cmds_need_lc" in
9076 x|xyes)
9077 # Assume -lc should be added
9078 archive_cmds_need_lc=yes
9080 if test "$enable_shared" = yes && test "$GCC" = yes; then
9081 case $archive_cmds in
9082 *'~'*)
9083 # FIXME: we may have to deal with multi-command sequences.
9085 '$CC '*)
9086 # Test whether the compiler implicitly links with -lc since on some
9087 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9088 # to ld, don't add -lc before -lgcc.
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9090 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9091 $RM conftest*
9092 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9095 (eval $ac_compile) 2>&5
9096 ac_status=$?
9097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9098 test $ac_status = 0; } 2>conftest.err; then
9099 soname=conftest
9100 lib=conftest
9101 libobjs=conftest.$ac_objext
9102 deplibs=
9103 wl=$lt_prog_compiler_wl
9104 pic_flag=$lt_prog_compiler_pic
9105 compiler_flags=-v
9106 linker_flags=-v
9107 verstring=
9108 output_objdir=.
9109 libname=conftest
9110 lt_save_allow_undefined_flag=$allow_undefined_flag
9111 allow_undefined_flag=
9112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9113 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9114 ac_status=$?
9115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9116 test $ac_status = 0; }
9117 then
9118 archive_cmds_need_lc=no
9119 else
9120 archive_cmds_need_lc=yes
9122 allow_undefined_flag=$lt_save_allow_undefined_flag
9123 else
9124 cat conftest.err 1>&5
9126 $RM conftest*
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9128 $as_echo "$archive_cmds_need_lc" >&6; }
9130 esac
9133 esac
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9292 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9294 if test "$GCC" = yes; then
9295 case $host_os in
9296 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9297 *) lt_awk_arg="/^libraries:/" ;;
9298 esac
9299 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9300 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9301 # if the path contains ";" then we assume it to be the separator
9302 # otherwise default to the standard path separator (i.e. ":") - it is
9303 # assumed that no part of a normal pathname contains ";" but that should
9304 # okay in the real world where ";" in dirpaths is itself problematic.
9305 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9306 else
9307 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9309 # Ok, now we have the path, separated by spaces, we can step through it
9310 # and add multilib dir if necessary.
9311 lt_tmp_lt_search_path_spec=
9312 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9313 for lt_sys_path in $lt_search_path_spec; do
9314 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9315 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9316 else
9317 test -d "$lt_sys_path" && \
9318 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9320 done
9321 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9322 BEGIN {RS=" "; FS="/|\n";} {
9323 lt_foo="";
9324 lt_count=0;
9325 for (lt_i = NF; lt_i > 0; lt_i--) {
9326 if ($lt_i != "" && $lt_i != ".") {
9327 if ($lt_i == "..") {
9328 lt_count++;
9329 } else {
9330 if (lt_count == 0) {
9331 lt_foo="/" $lt_i lt_foo;
9332 } else {
9333 lt_count--;
9338 if (lt_foo != "") { lt_freq[lt_foo]++; }
9339 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9341 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9342 else
9343 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9345 library_names_spec=
9346 libname_spec='lib$name'
9347 soname_spec=
9348 shrext_cmds=".so"
9349 postinstall_cmds=
9350 postuninstall_cmds=
9351 finish_cmds=
9352 finish_eval=
9353 shlibpath_var=
9354 shlibpath_overrides_runpath=unknown
9355 version_type=none
9356 dynamic_linker="$host_os ld.so"
9357 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9358 need_lib_prefix=unknown
9359 hardcode_into_libs=no
9361 # when you set need_version to no, make sure it does not cause -set_version
9362 # flags to be left without arguments
9363 need_version=unknown
9365 case $host_os in
9366 aix3*)
9367 version_type=linux
9368 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9369 shlibpath_var=LIBPATH
9371 # AIX 3 has no versioning support, so we append a major version to the name.
9372 soname_spec='${libname}${release}${shared_ext}$major'
9375 aix[4-9]*)
9376 version_type=linux
9377 need_lib_prefix=no
9378 need_version=no
9379 hardcode_into_libs=yes
9380 if test "$host_cpu" = ia64; then
9381 # AIX 5 supports IA64
9382 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9383 shlibpath_var=LD_LIBRARY_PATH
9384 else
9385 # With GCC up to 2.95.x, collect2 would create an import file
9386 # for dependence libraries. The import file would start with
9387 # the line `#! .'. This would cause the generated library to
9388 # depend on `.', always an invalid library. This was fixed in
9389 # development snapshots of GCC prior to 3.0.
9390 case $host_os in
9391 aix4 | aix4.[01] | aix4.[01].*)
9392 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9393 echo ' yes '
9394 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9396 else
9397 can_build_shared=no
9400 esac
9401 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9402 # soname into executable. Probably we can add versioning support to
9403 # collect2, so additional links can be useful in future.
9404 if test "$aix_use_runtimelinking" = yes; then
9405 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9406 # instead of lib<name>.a to let people know that these are not
9407 # typical AIX shared libraries.
9408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9409 else
9410 # We preserve .a as extension for shared libraries through AIX4.2
9411 # and later when we are not doing run time linking.
9412 library_names_spec='${libname}${release}.a $libname.a'
9413 soname_spec='${libname}${release}${shared_ext}$major'
9415 shlibpath_var=LIBPATH
9419 amigaos*)
9420 case $host_cpu in
9421 powerpc)
9422 # Since July 2007 AmigaOS4 officially supports .so libraries.
9423 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9426 m68k)
9427 library_names_spec='$libname.ixlibrary $libname.a'
9428 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9429 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9431 esac
9434 beos*)
9435 library_names_spec='${libname}${shared_ext}'
9436 dynamic_linker="$host_os ld.so"
9437 shlibpath_var=LIBRARY_PATH
9440 bsdi[45]*)
9441 version_type=linux
9442 need_version=no
9443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9444 soname_spec='${libname}${release}${shared_ext}$major'
9445 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9446 shlibpath_var=LD_LIBRARY_PATH
9447 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9448 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9449 # the default ld.so.conf also contains /usr/contrib/lib and
9450 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9451 # libtool to hard-code these into programs
9454 cygwin* | mingw* | pw32* | cegcc*)
9455 version_type=windows
9456 shrext_cmds=".dll"
9457 need_version=no
9458 need_lib_prefix=no
9460 case $GCC,$host_os in
9461 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9462 library_names_spec='$libname.dll.a'
9463 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9464 postinstall_cmds='base_file=`basename \${file}`~
9465 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9466 dldir=$destdir/`dirname \$dlpath`~
9467 test -d \$dldir || mkdir -p \$dldir~
9468 $install_prog $dir/$dlname \$dldir/$dlname~
9469 chmod a+x \$dldir/$dlname~
9470 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9471 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9473 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9474 dlpath=$dir/\$dldll~
9475 $RM \$dlpath'
9476 shlibpath_overrides_runpath=yes
9478 case $host_os in
9479 cygwin*)
9480 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9481 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9482 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9484 mingw* | cegcc*)
9485 # MinGW DLLs use traditional 'lib' prefix
9486 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9487 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9488 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9489 # It is most probably a Windows format PATH printed by
9490 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9491 # path with ; separators, and with drive letters. We can handle the
9492 # drive letters (cygwin fileutils understands them), so leave them,
9493 # especially as we might pass files found there to a mingw objdump,
9494 # which wouldn't understand a cygwinified path. Ahh.
9495 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9496 else
9497 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9500 pw32*)
9501 # pw32 DLLs use 'pw' prefix rather than 'lib'
9502 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9504 esac
9508 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9510 esac
9511 dynamic_linker='Win32 ld.exe'
9512 # FIXME: first we should search . and the directory the executable is in
9513 shlibpath_var=PATH
9516 darwin* | rhapsody*)
9517 dynamic_linker="$host_os dyld"
9518 version_type=darwin
9519 need_lib_prefix=no
9520 need_version=no
9521 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9522 soname_spec='${libname}${release}${major}$shared_ext'
9523 shlibpath_overrides_runpath=yes
9524 shlibpath_var=DYLD_LIBRARY_PATH
9525 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9527 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9528 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9531 dgux*)
9532 version_type=linux
9533 need_lib_prefix=no
9534 need_version=no
9535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9536 soname_spec='${libname}${release}${shared_ext}$major'
9537 shlibpath_var=LD_LIBRARY_PATH
9540 freebsd1*)
9541 dynamic_linker=no
9544 freebsd* | dragonfly*)
9545 # DragonFly does not have aout. When/if they implement a new
9546 # versioning mechanism, adjust this.
9547 if test -x /usr/bin/objformat; then
9548 objformat=`/usr/bin/objformat`
9549 else
9550 case $host_os in
9551 freebsd[123]*) objformat=aout ;;
9552 *) objformat=elf ;;
9553 esac
9555 version_type=freebsd-$objformat
9556 case $version_type in
9557 freebsd-elf*)
9558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9559 need_version=no
9560 need_lib_prefix=no
9562 freebsd-*)
9563 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9564 need_version=yes
9566 esac
9567 shlibpath_var=LD_LIBRARY_PATH
9568 case $host_os in
9569 freebsd2*)
9570 shlibpath_overrides_runpath=yes
9572 freebsd3.[01]* | freebsdelf3.[01]*)
9573 shlibpath_overrides_runpath=yes
9574 hardcode_into_libs=yes
9576 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9577 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9578 shlibpath_overrides_runpath=no
9579 hardcode_into_libs=yes
9581 *) # from 4.6 on, and DragonFly
9582 shlibpath_overrides_runpath=yes
9583 hardcode_into_libs=yes
9585 esac
9588 gnu*)
9589 version_type=linux
9590 need_lib_prefix=no
9591 need_version=no
9592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9593 soname_spec='${libname}${release}${shared_ext}$major'
9594 shlibpath_var=LD_LIBRARY_PATH
9595 hardcode_into_libs=yes
9598 hpux9* | hpux10* | hpux11*)
9599 # Give a soname corresponding to the major version so that dld.sl refuses to
9600 # link against other versions.
9601 version_type=sunos
9602 need_lib_prefix=no
9603 need_version=no
9604 case $host_cpu in
9605 ia64*)
9606 shrext_cmds='.so'
9607 hardcode_into_libs=yes
9608 dynamic_linker="$host_os dld.so"
9609 shlibpath_var=LD_LIBRARY_PATH
9610 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9612 soname_spec='${libname}${release}${shared_ext}$major'
9613 if test "X$HPUX_IA64_MODE" = X32; then
9614 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9615 else
9616 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9618 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9620 hppa*64*)
9621 shrext_cmds='.sl'
9622 hardcode_into_libs=yes
9623 dynamic_linker="$host_os dld.sl"
9624 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9625 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9627 soname_spec='${libname}${release}${shared_ext}$major'
9628 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9629 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9632 shrext_cmds='.sl'
9633 dynamic_linker="$host_os dld.sl"
9634 shlibpath_var=SHLIB_PATH
9635 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9637 soname_spec='${libname}${release}${shared_ext}$major'
9639 esac
9640 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9641 postinstall_cmds='chmod 555 $lib'
9644 interix[3-9]*)
9645 version_type=linux
9646 need_lib_prefix=no
9647 need_version=no
9648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9649 soname_spec='${libname}${release}${shared_ext}$major'
9650 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9651 shlibpath_var=LD_LIBRARY_PATH
9652 shlibpath_overrides_runpath=no
9653 hardcode_into_libs=yes
9656 irix5* | irix6* | nonstopux*)
9657 case $host_os in
9658 nonstopux*) version_type=nonstopux ;;
9660 if test "$lt_cv_prog_gnu_ld" = yes; then
9661 version_type=linux
9662 else
9663 version_type=irix
9664 fi ;;
9665 esac
9666 need_lib_prefix=no
9667 need_version=no
9668 soname_spec='${libname}${release}${shared_ext}$major'
9669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9670 case $host_os in
9671 irix5* | nonstopux*)
9672 libsuff= shlibsuff=
9675 case $LD in # libtool.m4 will add one of these switches to LD
9676 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9677 libsuff= shlibsuff= libmagic=32-bit;;
9678 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9679 libsuff=32 shlibsuff=N32 libmagic=N32;;
9680 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9681 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9682 *) libsuff= shlibsuff= libmagic=never-match;;
9683 esac
9685 esac
9686 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9687 shlibpath_overrides_runpath=no
9688 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9689 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9690 hardcode_into_libs=yes
9693 # No shared lib support for Linux oldld, aout, or coff.
9694 linux*oldld* | linux*aout* | linux*coff*)
9695 dynamic_linker=no
9698 # This must be Linux ELF.
9699 linux* | k*bsd*-gnu)
9700 version_type=linux
9701 need_lib_prefix=no
9702 need_version=no
9703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9704 soname_spec='${libname}${release}${shared_ext}$major'
9705 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9706 shlibpath_var=LD_LIBRARY_PATH
9707 shlibpath_overrides_runpath=no
9708 # Some binutils ld are patched to set DT_RUNPATH
9709 save_LDFLAGS=$LDFLAGS
9710 save_libdir=$libdir
9711 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9712 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714 /* end confdefs.h. */
9717 main ()
9721 return 0;
9723 _ACEOF
9724 if ac_fn_c_try_link "$LINENO"; then :
9725 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9726 shlibpath_overrides_runpath=yes
9729 rm -f core conftest.err conftest.$ac_objext \
9730 conftest$ac_exeext conftest.$ac_ext
9731 LDFLAGS=$save_LDFLAGS
9732 libdir=$save_libdir
9734 # This implies no fast_install, which is unacceptable.
9735 # Some rework will be needed to allow for fast_install
9736 # before this can be enabled.
9737 hardcode_into_libs=yes
9739 # Append ld.so.conf contents to the search path
9740 if test -f /etc/ld.so.conf; then
9741 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;/^$/d' | tr '\n' ' '`
9742 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9745 # We used to test for /lib/ld.so.1 and disable shared libraries on
9746 # powerpc, because MkLinux only supported shared libraries with the
9747 # GNU dynamic linker. Since this was broken with cross compilers,
9748 # most powerpc-linux boxes support dynamic linking these days and
9749 # people can always --disable-shared, the test was removed, and we
9750 # assume the GNU/Linux dynamic linker is in use.
9751 dynamic_linker='GNU/Linux ld.so'
9754 netbsd*)
9755 version_type=sunos
9756 need_lib_prefix=no
9757 need_version=no
9758 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9760 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9761 dynamic_linker='NetBSD (a.out) ld.so'
9762 else
9763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9764 soname_spec='${libname}${release}${shared_ext}$major'
9765 dynamic_linker='NetBSD ld.elf_so'
9767 shlibpath_var=LD_LIBRARY_PATH
9768 shlibpath_overrides_runpath=yes
9769 hardcode_into_libs=yes
9772 newsos6)
9773 version_type=linux
9774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9775 shlibpath_var=LD_LIBRARY_PATH
9776 shlibpath_overrides_runpath=yes
9779 *nto* | *qnx*)
9780 version_type=qnx
9781 need_lib_prefix=no
9782 need_version=no
9783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9784 soname_spec='${libname}${release}${shared_ext}$major'
9785 shlibpath_var=LD_LIBRARY_PATH
9786 shlibpath_overrides_runpath=no
9787 hardcode_into_libs=yes
9788 dynamic_linker='ldqnx.so'
9791 openbsd*)
9792 version_type=sunos
9793 sys_lib_dlsearch_path_spec="/usr/lib"
9794 need_lib_prefix=no
9795 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9796 case $host_os in
9797 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9798 *) need_version=no ;;
9799 esac
9800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9801 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9802 shlibpath_var=LD_LIBRARY_PATH
9803 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9804 case $host_os in
9805 openbsd2.[89] | openbsd2.[89].*)
9806 shlibpath_overrides_runpath=no
9809 shlibpath_overrides_runpath=yes
9811 esac
9812 else
9813 shlibpath_overrides_runpath=yes
9817 os2*)
9818 libname_spec='$name'
9819 shrext_cmds=".dll"
9820 need_lib_prefix=no
9821 library_names_spec='$libname${shared_ext} $libname.a'
9822 dynamic_linker='OS/2 ld.exe'
9823 shlibpath_var=LIBPATH
9826 osf3* | osf4* | osf5*)
9827 version_type=osf
9828 need_lib_prefix=no
9829 need_version=no
9830 soname_spec='${libname}${release}${shared_ext}$major'
9831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9832 shlibpath_var=LD_LIBRARY_PATH
9833 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9834 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9837 rdos*)
9838 dynamic_linker=no
9841 solaris*)
9842 version_type=linux
9843 need_lib_prefix=no
9844 need_version=no
9845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9846 soname_spec='${libname}${release}${shared_ext}$major'
9847 shlibpath_var=LD_LIBRARY_PATH
9848 shlibpath_overrides_runpath=yes
9849 hardcode_into_libs=yes
9850 # ldd complains unless libraries are executable
9851 postinstall_cmds='chmod +x $lib'
9854 sunos4*)
9855 version_type=sunos
9856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9857 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9858 shlibpath_var=LD_LIBRARY_PATH
9859 shlibpath_overrides_runpath=yes
9860 if test "$with_gnu_ld" = yes; then
9861 need_lib_prefix=no
9863 need_version=yes
9866 sysv4 | sysv4.3*)
9867 version_type=linux
9868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9869 soname_spec='${libname}${release}${shared_ext}$major'
9870 shlibpath_var=LD_LIBRARY_PATH
9871 case $host_vendor in
9872 sni)
9873 shlibpath_overrides_runpath=no
9874 need_lib_prefix=no
9875 runpath_var=LD_RUN_PATH
9877 siemens)
9878 need_lib_prefix=no
9880 motorola)
9881 need_lib_prefix=no
9882 need_version=no
9883 shlibpath_overrides_runpath=no
9884 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9886 esac
9889 sysv4*MP*)
9890 if test -d /usr/nec ;then
9891 version_type=linux
9892 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9893 soname_spec='$libname${shared_ext}.$major'
9894 shlibpath_var=LD_LIBRARY_PATH
9898 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9899 version_type=freebsd-elf
9900 need_lib_prefix=no
9901 need_version=no
9902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9903 soname_spec='${libname}${release}${shared_ext}$major'
9904 shlibpath_var=LD_LIBRARY_PATH
9905 shlibpath_overrides_runpath=yes
9906 hardcode_into_libs=yes
9907 if test "$with_gnu_ld" = yes; then
9908 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9909 else
9910 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9911 case $host_os in
9912 sco3.2v5*)
9913 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9915 esac
9917 sys_lib_dlsearch_path_spec='/usr/lib'
9920 tpf*)
9921 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9922 version_type=linux
9923 need_lib_prefix=no
9924 need_version=no
9925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9926 shlibpath_var=LD_LIBRARY_PATH
9927 shlibpath_overrides_runpath=no
9928 hardcode_into_libs=yes
9931 uts4*)
9932 version_type=linux
9933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9934 soname_spec='${libname}${release}${shared_ext}$major'
9935 shlibpath_var=LD_LIBRARY_PATH
9939 dynamic_linker=no
9941 esac
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9943 $as_echo "$dynamic_linker" >&6; }
9944 test "$dynamic_linker" = no && can_build_shared=no
9946 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9947 if test "$GCC" = yes; then
9948 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9951 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9952 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9954 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9955 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10045 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10046 hardcode_action=
10047 if test -n "$hardcode_libdir_flag_spec" ||
10048 test -n "$runpath_var" ||
10049 test "X$hardcode_automatic" = "Xyes" ; then
10051 # We can hardcode non-existent directories.
10052 if test "$hardcode_direct" != no &&
10053 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10054 # have to relink, otherwise we might link with an installed library
10055 # when we should be linking with a yet-to-be-installed one
10056 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10057 test "$hardcode_minus_L" != no; then
10058 # Linking always hardcodes the temporary library directory.
10059 hardcode_action=relink
10060 else
10061 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10062 hardcode_action=immediate
10064 else
10065 # We cannot hardcode anything, or else we can only hardcode existing
10066 # directories.
10067 hardcode_action=unsupported
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10070 $as_echo "$hardcode_action" >&6; }
10072 if test "$hardcode_action" = relink ||
10073 test "$inherit_rpath" = yes; then
10074 # Fast installation is not supported
10075 enable_fast_install=no
10076 elif test "$shlibpath_overrides_runpath" = yes ||
10077 test "$enable_shared" = no; then
10078 # Fast installation is not necessary
10079 enable_fast_install=needless
10087 if test "x$enable_dlopen" != xyes; then
10088 enable_dlopen=unknown
10089 enable_dlopen_self=unknown
10090 enable_dlopen_self_static=unknown
10091 else
10092 lt_cv_dlopen=no
10093 lt_cv_dlopen_libs=
10095 case $host_os in
10096 beos*)
10097 lt_cv_dlopen="load_add_on"
10098 lt_cv_dlopen_libs=
10099 lt_cv_dlopen_self=yes
10102 mingw* | pw32* | cegcc*)
10103 lt_cv_dlopen="LoadLibrary"
10104 lt_cv_dlopen_libs=
10107 cygwin*)
10108 lt_cv_dlopen="dlopen"
10109 lt_cv_dlopen_libs=
10112 darwin*)
10113 # if libdl is installed we need to link against it
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10115 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10116 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10117 $as_echo_n "(cached) " >&6
10118 else
10119 ac_check_lib_save_LIBS=$LIBS
10120 LIBS="-ldl $LIBS"
10121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10122 /* end confdefs.h. */
10124 /* Override any GCC internal prototype to avoid an error.
10125 Use char because int might match the return type of a GCC
10126 builtin and then its argument prototype would still apply. */
10127 #ifdef __cplusplus
10128 extern "C"
10129 #endif
10130 char dlopen ();
10132 main ()
10134 return dlopen ();
10136 return 0;
10138 _ACEOF
10139 if ac_fn_c_try_link "$LINENO"; then :
10140 ac_cv_lib_dl_dlopen=yes
10141 else
10142 ac_cv_lib_dl_dlopen=no
10144 rm -f core conftest.err conftest.$ac_objext \
10145 conftest$ac_exeext conftest.$ac_ext
10146 LIBS=$ac_check_lib_save_LIBS
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10149 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10150 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10151 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10152 else
10154 lt_cv_dlopen="dyld"
10155 lt_cv_dlopen_libs=
10156 lt_cv_dlopen_self=yes
10163 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10164 if test "x$ac_cv_func_shl_load" = x""yes; then :
10165 lt_cv_dlopen="shl_load"
10166 else
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10168 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10169 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10170 $as_echo_n "(cached) " >&6
10171 else
10172 ac_check_lib_save_LIBS=$LIBS
10173 LIBS="-ldld $LIBS"
10174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10175 /* end confdefs.h. */
10177 /* Override any GCC internal prototype to avoid an error.
10178 Use char because int might match the return type of a GCC
10179 builtin and then its argument prototype would still apply. */
10180 #ifdef __cplusplus
10181 extern "C"
10182 #endif
10183 char shl_load ();
10185 main ()
10187 return shl_load ();
10189 return 0;
10191 _ACEOF
10192 if ac_fn_c_try_link "$LINENO"; then :
10193 ac_cv_lib_dld_shl_load=yes
10194 else
10195 ac_cv_lib_dld_shl_load=no
10197 rm -f core conftest.err conftest.$ac_objext \
10198 conftest$ac_exeext conftest.$ac_ext
10199 LIBS=$ac_check_lib_save_LIBS
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10202 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10203 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10204 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10205 else
10206 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10207 if test "x$ac_cv_func_dlopen" = x""yes; then :
10208 lt_cv_dlopen="dlopen"
10209 else
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10211 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10212 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10213 $as_echo_n "(cached) " >&6
10214 else
10215 ac_check_lib_save_LIBS=$LIBS
10216 LIBS="-ldl $LIBS"
10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10218 /* end confdefs.h. */
10220 /* Override any GCC internal prototype to avoid an error.
10221 Use char because int might match the return type of a GCC
10222 builtin and then its argument prototype would still apply. */
10223 #ifdef __cplusplus
10224 extern "C"
10225 #endif
10226 char dlopen ();
10228 main ()
10230 return dlopen ();
10232 return 0;
10234 _ACEOF
10235 if ac_fn_c_try_link "$LINENO"; then :
10236 ac_cv_lib_dl_dlopen=yes
10237 else
10238 ac_cv_lib_dl_dlopen=no
10240 rm -f core conftest.err conftest.$ac_objext \
10241 conftest$ac_exeext conftest.$ac_ext
10242 LIBS=$ac_check_lib_save_LIBS
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10245 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10246 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10247 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10248 else
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10250 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10251 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10252 $as_echo_n "(cached) " >&6
10253 else
10254 ac_check_lib_save_LIBS=$LIBS
10255 LIBS="-lsvld $LIBS"
10256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10257 /* end confdefs.h. */
10259 /* Override any GCC internal prototype to avoid an error.
10260 Use char because int might match the return type of a GCC
10261 builtin and then its argument prototype would still apply. */
10262 #ifdef __cplusplus
10263 extern "C"
10264 #endif
10265 char dlopen ();
10267 main ()
10269 return dlopen ();
10271 return 0;
10273 _ACEOF
10274 if ac_fn_c_try_link "$LINENO"; then :
10275 ac_cv_lib_svld_dlopen=yes
10276 else
10277 ac_cv_lib_svld_dlopen=no
10279 rm -f core conftest.err conftest.$ac_objext \
10280 conftest$ac_exeext conftest.$ac_ext
10281 LIBS=$ac_check_lib_save_LIBS
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10284 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10285 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10286 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10287 else
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10289 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10290 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10291 $as_echo_n "(cached) " >&6
10292 else
10293 ac_check_lib_save_LIBS=$LIBS
10294 LIBS="-ldld $LIBS"
10295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10296 /* end confdefs.h. */
10298 /* Override any GCC internal prototype to avoid an error.
10299 Use char because int might match the return type of a GCC
10300 builtin and then its argument prototype would still apply. */
10301 #ifdef __cplusplus
10302 extern "C"
10303 #endif
10304 char dld_link ();
10306 main ()
10308 return dld_link ();
10310 return 0;
10312 _ACEOF
10313 if ac_fn_c_try_link "$LINENO"; then :
10314 ac_cv_lib_dld_dld_link=yes
10315 else
10316 ac_cv_lib_dld_dld_link=no
10318 rm -f core conftest.err conftest.$ac_objext \
10319 conftest$ac_exeext conftest.$ac_ext
10320 LIBS=$ac_check_lib_save_LIBS
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10323 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10324 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10325 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10344 esac
10346 if test "x$lt_cv_dlopen" != xno; then
10347 enable_dlopen=yes
10348 else
10349 enable_dlopen=no
10352 case $lt_cv_dlopen in
10353 dlopen)
10354 save_CPPFLAGS="$CPPFLAGS"
10355 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10357 save_LDFLAGS="$LDFLAGS"
10358 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10360 save_LIBS="$LIBS"
10361 LIBS="$lt_cv_dlopen_libs $LIBS"
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10364 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10365 if test "${lt_cv_dlopen_self+set}" = set; then :
10366 $as_echo_n "(cached) " >&6
10367 else
10368 if test "$cross_compiling" = yes; then :
10369 lt_cv_dlopen_self=cross
10370 else
10371 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10372 lt_status=$lt_dlunknown
10373 cat > conftest.$ac_ext <<_LT_EOF
10374 #line 10374 "configure"
10375 #include "confdefs.h"
10377 #if HAVE_DLFCN_H
10378 #include <dlfcn.h>
10379 #endif
10381 #include <stdio.h>
10383 #ifdef RTLD_GLOBAL
10384 # define LT_DLGLOBAL RTLD_GLOBAL
10385 #else
10386 # ifdef DL_GLOBAL
10387 # define LT_DLGLOBAL DL_GLOBAL
10388 # else
10389 # define LT_DLGLOBAL 0
10390 # endif
10391 #endif
10393 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10394 find out it does not work in some platform. */
10395 #ifndef LT_DLLAZY_OR_NOW
10396 # ifdef RTLD_LAZY
10397 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10398 # else
10399 # ifdef DL_LAZY
10400 # define LT_DLLAZY_OR_NOW DL_LAZY
10401 # else
10402 # ifdef RTLD_NOW
10403 # define LT_DLLAZY_OR_NOW RTLD_NOW
10404 # else
10405 # ifdef DL_NOW
10406 # define LT_DLLAZY_OR_NOW DL_NOW
10407 # else
10408 # define LT_DLLAZY_OR_NOW 0
10409 # endif
10410 # endif
10411 # endif
10412 # endif
10413 #endif
10415 void fnord() { int i=42;}
10416 int main ()
10418 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10419 int status = $lt_dlunknown;
10421 if (self)
10423 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10424 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10425 /* dlclose (self); */
10427 else
10428 puts (dlerror ());
10430 return status;
10432 _LT_EOF
10433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10434 (eval $ac_link) 2>&5
10435 ac_status=$?
10436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10437 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10438 (./conftest; exit; ) >&5 2>/dev/null
10439 lt_status=$?
10440 case x$lt_status in
10441 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10442 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10443 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10444 esac
10445 else :
10446 # compilation failed
10447 lt_cv_dlopen_self=no
10450 rm -fr conftest*
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10455 $as_echo "$lt_cv_dlopen_self" >&6; }
10457 if test "x$lt_cv_dlopen_self" = xyes; then
10458 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10460 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10461 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10462 $as_echo_n "(cached) " >&6
10463 else
10464 if test "$cross_compiling" = yes; then :
10465 lt_cv_dlopen_self_static=cross
10466 else
10467 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10468 lt_status=$lt_dlunknown
10469 cat > conftest.$ac_ext <<_LT_EOF
10470 #line 10470 "configure"
10471 #include "confdefs.h"
10473 #if HAVE_DLFCN_H
10474 #include <dlfcn.h>
10475 #endif
10477 #include <stdio.h>
10479 #ifdef RTLD_GLOBAL
10480 # define LT_DLGLOBAL RTLD_GLOBAL
10481 #else
10482 # ifdef DL_GLOBAL
10483 # define LT_DLGLOBAL DL_GLOBAL
10484 # else
10485 # define LT_DLGLOBAL 0
10486 # endif
10487 #endif
10489 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10490 find out it does not work in some platform. */
10491 #ifndef LT_DLLAZY_OR_NOW
10492 # ifdef RTLD_LAZY
10493 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10494 # else
10495 # ifdef DL_LAZY
10496 # define LT_DLLAZY_OR_NOW DL_LAZY
10497 # else
10498 # ifdef RTLD_NOW
10499 # define LT_DLLAZY_OR_NOW RTLD_NOW
10500 # else
10501 # ifdef DL_NOW
10502 # define LT_DLLAZY_OR_NOW DL_NOW
10503 # else
10504 # define LT_DLLAZY_OR_NOW 0
10505 # endif
10506 # endif
10507 # endif
10508 # endif
10509 #endif
10511 void fnord() { int i=42;}
10512 int main ()
10514 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10515 int status = $lt_dlunknown;
10517 if (self)
10519 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10520 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10521 /* dlclose (self); */
10523 else
10524 puts (dlerror ());
10526 return status;
10528 _LT_EOF
10529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10530 (eval $ac_link) 2>&5
10531 ac_status=$?
10532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10533 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10534 (./conftest; exit; ) >&5 2>/dev/null
10535 lt_status=$?
10536 case x$lt_status in
10537 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10538 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10539 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10540 esac
10541 else :
10542 # compilation failed
10543 lt_cv_dlopen_self_static=no
10546 rm -fr conftest*
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10551 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10554 CPPFLAGS="$save_CPPFLAGS"
10555 LDFLAGS="$save_LDFLAGS"
10556 LIBS="$save_LIBS"
10558 esac
10560 case $lt_cv_dlopen_self in
10561 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10562 *) enable_dlopen_self=unknown ;;
10563 esac
10565 case $lt_cv_dlopen_self_static in
10566 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10567 *) enable_dlopen_self_static=unknown ;;
10568 esac
10587 striplib=
10588 old_striplib=
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10590 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10591 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10592 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10593 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10595 $as_echo "yes" >&6; }
10596 else
10597 # FIXME - insert some real tests, host_os isn't really good enough
10598 case $host_os in
10599 darwin*)
10600 if test -n "$STRIP" ; then
10601 striplib="$STRIP -x"
10602 old_striplib="$STRIP -S"
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10604 $as_echo "yes" >&6; }
10605 else
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10607 $as_echo "no" >&6; }
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10612 $as_echo "no" >&6; }
10614 esac
10628 # Report which library types will actually be built
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10630 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10632 $as_echo "$can_build_shared" >&6; }
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10635 $as_echo_n "checking whether to build shared libraries... " >&6; }
10636 test "$can_build_shared" = "no" && enable_shared=no
10638 # On AIX, shared libraries and static libraries use the same namespace, and
10639 # are all built from PIC.
10640 case $host_os in
10641 aix3*)
10642 test "$enable_shared" = yes && enable_static=no
10643 if test -n "$RANLIB"; then
10644 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10645 postinstall_cmds='$RANLIB $lib'
10649 aix[4-9]*)
10650 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10651 test "$enable_shared" = yes && enable_static=no
10654 esac
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10656 $as_echo "$enable_shared" >&6; }
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10659 $as_echo_n "checking whether to build static libraries... " >&6; }
10660 # Make sure either enable_shared or enable_static is yes.
10661 test "$enable_shared" = yes || enable_static=yes
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10663 $as_echo "$enable_static" >&6; }
10669 ac_ext=c
10670 ac_cpp='$CPP $CPPFLAGS'
10671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10675 CC="$lt_save_CC"
10689 ac_config_commands="$ac_config_commands libtool"
10694 # Only expand once:
10699 ac_ext=c
10700 ac_cpp='$CPP $CPPFLAGS'
10701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10705 ac_ext=c
10706 ac_cpp='$CPP $CPPFLAGS'
10707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10710 if test -n "$ac_tool_prefix"; then
10711 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10712 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10714 $as_echo_n "checking for $ac_word... " >&6; }
10715 if test "${ac_cv_prog_CC+set}" = set; then :
10716 $as_echo_n "(cached) " >&6
10717 else
10718 if test -n "$CC"; then
10719 ac_cv_prog_CC="$CC" # Let the user override the test.
10720 else
10721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10722 for as_dir in $PATH
10724 IFS=$as_save_IFS
10725 test -z "$as_dir" && as_dir=.
10726 for ac_exec_ext in '' $ac_executable_extensions; do
10727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10728 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10730 break 2
10732 done
10733 done
10734 IFS=$as_save_IFS
10738 CC=$ac_cv_prog_CC
10739 if test -n "$CC"; then
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10741 $as_echo "$CC" >&6; }
10742 else
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10744 $as_echo "no" >&6; }
10749 if test -z "$ac_cv_prog_CC"; then
10750 ac_ct_CC=$CC
10751 # Extract the first word of "gcc", so it can be a program name with args.
10752 set dummy gcc; ac_word=$2
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10754 $as_echo_n "checking for $ac_word... " >&6; }
10755 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10756 $as_echo_n "(cached) " >&6
10757 else
10758 if test -n "$ac_ct_CC"; then
10759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10760 else
10761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10762 for as_dir in $PATH
10764 IFS=$as_save_IFS
10765 test -z "$as_dir" && as_dir=.
10766 for ac_exec_ext in '' $ac_executable_extensions; do
10767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10768 ac_cv_prog_ac_ct_CC="gcc"
10769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10770 break 2
10772 done
10773 done
10774 IFS=$as_save_IFS
10778 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10779 if test -n "$ac_ct_CC"; then
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10781 $as_echo "$ac_ct_CC" >&6; }
10782 else
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10784 $as_echo "no" >&6; }
10787 if test "x$ac_ct_CC" = x; then
10788 CC=""
10789 else
10790 case $cross_compiling:$ac_tool_warned in
10791 yes:)
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10794 ac_tool_warned=yes ;;
10795 esac
10796 CC=$ac_ct_CC
10798 else
10799 CC="$ac_cv_prog_CC"
10802 if test -z "$CC"; then
10803 if test -n "$ac_tool_prefix"; then
10804 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10805 set dummy ${ac_tool_prefix}cc; ac_word=$2
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10807 $as_echo_n "checking for $ac_word... " >&6; }
10808 if test "${ac_cv_prog_CC+set}" = set; then :
10809 $as_echo_n "(cached) " >&6
10810 else
10811 if test -n "$CC"; then
10812 ac_cv_prog_CC="$CC" # Let the user override the test.
10813 else
10814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10815 for as_dir in $PATH
10817 IFS=$as_save_IFS
10818 test -z "$as_dir" && as_dir=.
10819 for ac_exec_ext in '' $ac_executable_extensions; do
10820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10821 ac_cv_prog_CC="${ac_tool_prefix}cc"
10822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10823 break 2
10825 done
10826 done
10827 IFS=$as_save_IFS
10831 CC=$ac_cv_prog_CC
10832 if test -n "$CC"; then
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10834 $as_echo "$CC" >&6; }
10835 else
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10837 $as_echo "no" >&6; }
10843 if test -z "$CC"; then
10844 # Extract the first word of "cc", so it can be a program name with args.
10845 set dummy cc; ac_word=$2
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10847 $as_echo_n "checking for $ac_word... " >&6; }
10848 if test "${ac_cv_prog_CC+set}" = set; then :
10849 $as_echo_n "(cached) " >&6
10850 else
10851 if test -n "$CC"; then
10852 ac_cv_prog_CC="$CC" # Let the user override the test.
10853 else
10854 ac_prog_rejected=no
10855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10856 for as_dir in $PATH
10858 IFS=$as_save_IFS
10859 test -z "$as_dir" && as_dir=.
10860 for ac_exec_ext in '' $ac_executable_extensions; do
10861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10862 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10863 ac_prog_rejected=yes
10864 continue
10866 ac_cv_prog_CC="cc"
10867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10868 break 2
10870 done
10871 done
10872 IFS=$as_save_IFS
10874 if test $ac_prog_rejected = yes; then
10875 # We found a bogon in the path, so make sure we never use it.
10876 set dummy $ac_cv_prog_CC
10877 shift
10878 if test $# != 0; then
10879 # We chose a different compiler from the bogus one.
10880 # However, it has the same basename, so the bogon will be chosen
10881 # first if we set CC to just the basename; use the full file name.
10882 shift
10883 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10888 CC=$ac_cv_prog_CC
10889 if test -n "$CC"; then
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10891 $as_echo "$CC" >&6; }
10892 else
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10894 $as_echo "no" >&6; }
10899 if test -z "$CC"; then
10900 if test -n "$ac_tool_prefix"; then
10901 for ac_prog in cl.exe
10903 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10904 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10906 $as_echo_n "checking for $ac_word... " >&6; }
10907 if test "${ac_cv_prog_CC+set}" = set; then :
10908 $as_echo_n "(cached) " >&6
10909 else
10910 if test -n "$CC"; then
10911 ac_cv_prog_CC="$CC" # Let the user override the test.
10912 else
10913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10914 for as_dir in $PATH
10916 IFS=$as_save_IFS
10917 test -z "$as_dir" && as_dir=.
10918 for ac_exec_ext in '' $ac_executable_extensions; do
10919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10920 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10922 break 2
10924 done
10925 done
10926 IFS=$as_save_IFS
10930 CC=$ac_cv_prog_CC
10931 if test -n "$CC"; then
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10933 $as_echo "$CC" >&6; }
10934 else
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10936 $as_echo "no" >&6; }
10940 test -n "$CC" && break
10941 done
10943 if test -z "$CC"; then
10944 ac_ct_CC=$CC
10945 for ac_prog in cl.exe
10947 # Extract the first word of "$ac_prog", so it can be a program name with args.
10948 set dummy $ac_prog; ac_word=$2
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10950 $as_echo_n "checking for $ac_word... " >&6; }
10951 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10952 $as_echo_n "(cached) " >&6
10953 else
10954 if test -n "$ac_ct_CC"; then
10955 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10956 else
10957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10958 for as_dir in $PATH
10960 IFS=$as_save_IFS
10961 test -z "$as_dir" && as_dir=.
10962 for ac_exec_ext in '' $ac_executable_extensions; do
10963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10964 ac_cv_prog_ac_ct_CC="$ac_prog"
10965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10966 break 2
10968 done
10969 done
10970 IFS=$as_save_IFS
10974 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10975 if test -n "$ac_ct_CC"; then
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10977 $as_echo "$ac_ct_CC" >&6; }
10978 else
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10980 $as_echo "no" >&6; }
10984 test -n "$ac_ct_CC" && break
10985 done
10987 if test "x$ac_ct_CC" = x; then
10988 CC=""
10989 else
10990 case $cross_compiling:$ac_tool_warned in
10991 yes:)
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10994 ac_tool_warned=yes ;;
10995 esac
10996 CC=$ac_ct_CC
11003 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11005 as_fn_error "no acceptable C compiler found in \$PATH
11006 See \`config.log' for more details." "$LINENO" 5; }
11008 # Provide some information about the compiler.
11009 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11010 set X $ac_compile
11011 ac_compiler=$2
11012 for ac_option in --version -v -V -qversion; do
11013 { { ac_try="$ac_compiler $ac_option >&5"
11014 case "(($ac_try" in
11015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016 *) ac_try_echo=$ac_try;;
11017 esac
11018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11019 $as_echo "$ac_try_echo"; } >&5
11020 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11021 ac_status=$?
11022 if test -s conftest.err; then
11023 sed '10a\
11024 ... rest of stderr output deleted ...
11025 10q' conftest.err >conftest.er1
11026 cat conftest.er1 >&5
11028 rm -f conftest.er1 conftest.err
11029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11030 test $ac_status = 0; }
11031 done
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11034 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11035 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11036 $as_echo_n "(cached) " >&6
11037 else
11038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11039 /* end confdefs.h. */
11042 main ()
11044 #ifndef __GNUC__
11045 choke me
11046 #endif
11049 return 0;
11051 _ACEOF
11052 if ac_fn_c_try_compile "$LINENO"; then :
11053 ac_compiler_gnu=yes
11054 else
11055 ac_compiler_gnu=no
11057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11058 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11062 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11063 if test $ac_compiler_gnu = yes; then
11064 GCC=yes
11065 else
11066 GCC=
11068 ac_test_CFLAGS=${CFLAGS+set}
11069 ac_save_CFLAGS=$CFLAGS
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11071 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11072 if test "${ac_cv_prog_cc_g+set}" = set; then :
11073 $as_echo_n "(cached) " >&6
11074 else
11075 ac_save_c_werror_flag=$ac_c_werror_flag
11076 ac_c_werror_flag=yes
11077 ac_cv_prog_cc_g=no
11078 CFLAGS="-g"
11079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11080 /* end confdefs.h. */
11083 main ()
11087 return 0;
11089 _ACEOF
11090 if ac_fn_c_try_compile "$LINENO"; then :
11091 ac_cv_prog_cc_g=yes
11092 else
11093 CFLAGS=""
11094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11095 /* end confdefs.h. */
11098 main ()
11102 return 0;
11104 _ACEOF
11105 if ac_fn_c_try_compile "$LINENO"; then :
11107 else
11108 ac_c_werror_flag=$ac_save_c_werror_flag
11109 CFLAGS="-g"
11110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11111 /* end confdefs.h. */
11114 main ()
11118 return 0;
11120 _ACEOF
11121 if ac_fn_c_try_compile "$LINENO"; then :
11122 ac_cv_prog_cc_g=yes
11124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11129 ac_c_werror_flag=$ac_save_c_werror_flag
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11132 $as_echo "$ac_cv_prog_cc_g" >&6; }
11133 if test "$ac_test_CFLAGS" = set; then
11134 CFLAGS=$ac_save_CFLAGS
11135 elif test $ac_cv_prog_cc_g = yes; then
11136 if test "$GCC" = yes; then
11137 CFLAGS="-g -O2"
11138 else
11139 CFLAGS="-g"
11141 else
11142 if test "$GCC" = yes; then
11143 CFLAGS="-O2"
11144 else
11145 CFLAGS=
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11149 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11150 if test "${ac_cv_prog_cc_c89+set}" = set; then :
11151 $as_echo_n "(cached) " >&6
11152 else
11153 ac_cv_prog_cc_c89=no
11154 ac_save_CC=$CC
11155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11156 /* end confdefs.h. */
11157 #include <stdarg.h>
11158 #include <stdio.h>
11159 #include <sys/types.h>
11160 #include <sys/stat.h>
11161 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11162 struct buf { int x; };
11163 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11164 static char *e (p, i)
11165 char **p;
11166 int i;
11168 return p[i];
11170 static char *f (char * (*g) (char **, int), char **p, ...)
11172 char *s;
11173 va_list v;
11174 va_start (v,p);
11175 s = g (p, va_arg (v,int));
11176 va_end (v);
11177 return s;
11180 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11181 function prototypes and stuff, but not '\xHH' hex character constants.
11182 These don't provoke an error unfortunately, instead are silently treated
11183 as 'x'. The following induces an error, until -std is added to get
11184 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11185 array size at least. It's necessary to write '\x00'==0 to get something
11186 that's true only with -std. */
11187 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11189 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11190 inside strings and character constants. */
11191 #define FOO(x) 'x'
11192 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11194 int test (int i, double x);
11195 struct s1 {int (*f) (int a);};
11196 struct s2 {int (*f) (double a);};
11197 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11198 int argc;
11199 char **argv;
11201 main ()
11203 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11205 return 0;
11207 _ACEOF
11208 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11209 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11211 CC="$ac_save_CC $ac_arg"
11212 if ac_fn_c_try_compile "$LINENO"; then :
11213 ac_cv_prog_cc_c89=$ac_arg
11215 rm -f core conftest.err conftest.$ac_objext
11216 test "x$ac_cv_prog_cc_c89" != "xno" && break
11217 done
11218 rm -f conftest.$ac_ext
11219 CC=$ac_save_CC
11222 # AC_CACHE_VAL
11223 case "x$ac_cv_prog_cc_c89" in
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11226 $as_echo "none needed" >&6; } ;;
11227 xno)
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11229 $as_echo "unsupported" >&6; } ;;
11231 CC="$CC $ac_cv_prog_cc_c89"
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11233 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11234 esac
11235 if test "x$ac_cv_prog_cc_c89" != xno; then :
11239 ac_ext=c
11240 ac_cpp='$CPP $CPPFLAGS'
11241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11245 depcc="$CC" am_compiler_list=
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11248 $as_echo_n "checking dependency style of $depcc... " >&6; }
11249 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11250 $as_echo_n "(cached) " >&6
11251 else
11252 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11253 # We make a subdir and do the tests there. Otherwise we can end up
11254 # making bogus files that we don't know about and never remove. For
11255 # instance it was reported that on HP-UX the gcc test will end up
11256 # making a dummy file named `D' -- because `-MD' means `put the output
11257 # in D'.
11258 mkdir conftest.dir
11259 # Copy depcomp to subdir because otherwise we won't find it if we're
11260 # using a relative directory.
11261 cp "$am_depcomp" conftest.dir
11262 cd conftest.dir
11263 # We will build objects and dependencies in a subdirectory because
11264 # it helps to detect inapplicable dependency modes. For instance
11265 # both Tru64's cc and ICC support -MD to output dependencies as a
11266 # side effect of compilation, but ICC will put the dependencies in
11267 # the current directory while Tru64 will put them in the object
11268 # directory.
11269 mkdir sub
11271 am_cv_CC_dependencies_compiler_type=none
11272 if test "$am_compiler_list" = ""; then
11273 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11275 am__universal=false
11276 case " $depcc " in #(
11277 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11278 esac
11280 for depmode in $am_compiler_list; do
11281 # Setup a source with many dependencies, because some compilers
11282 # like to wrap large dependency lists on column 80 (with \), and
11283 # we should not choose a depcomp mode which is confused by this.
11285 # We need to recreate these files for each test, as the compiler may
11286 # overwrite some of them when testing with obscure command lines.
11287 # This happens at least with the AIX C compiler.
11288 : > sub/conftest.c
11289 for i in 1 2 3 4 5 6; do
11290 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11291 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11292 # Solaris 8's {/usr,}/bin/sh.
11293 touch sub/conftst$i.h
11294 done
11295 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11297 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11298 # mode. It turns out that the SunPro C++ compiler does not properly
11299 # handle `-M -o', and we need to detect this. Also, some Intel
11300 # versions had trouble with output in subdirs
11301 am__obj=sub/conftest.${OBJEXT-o}
11302 am__minus_obj="-o $am__obj"
11303 case $depmode in
11304 gcc)
11305 # This depmode causes a compiler race in universal mode.
11306 test "$am__universal" = false || continue
11308 nosideeffect)
11309 # after this tag, mechanisms are not by side-effect, so they'll
11310 # only be used when explicitly requested
11311 if test "x$enable_dependency_tracking" = xyes; then
11312 continue
11313 else
11314 break
11317 msvisualcpp | msvcmsys)
11318 # This compiler won't grok `-c -o', but also, the minuso test has
11319 # not run yet. These depmodes are late enough in the game, and
11320 # so weak that their functioning should not be impacted.
11321 am__obj=conftest.${OBJEXT-o}
11322 am__minus_obj=
11324 none) break ;;
11325 esac
11326 if depmode=$depmode \
11327 source=sub/conftest.c object=$am__obj \
11328 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11329 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11330 >/dev/null 2>conftest.err &&
11331 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11332 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11333 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11334 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11335 # icc doesn't choke on unknown options, it will just issue warnings
11336 # or remarks (even with -Werror). So we grep stderr for any message
11337 # that says an option was ignored or not supported.
11338 # When given -MP, icc 7.0 and 7.1 complain thusly:
11339 # icc: Command line warning: ignoring option '-M'; no argument required
11340 # The diagnosis changed in icc 8.0:
11341 # icc: Command line remark: option '-MP' not supported
11342 if (grep 'ignoring option' conftest.err ||
11343 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11344 am_cv_CC_dependencies_compiler_type=$depmode
11345 break
11348 done
11350 cd ..
11351 rm -rf conftest.dir
11352 else
11353 am_cv_CC_dependencies_compiler_type=none
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11358 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11359 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11362 test "x$enable_dependency_tracking" != xno \
11363 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11364 am__fastdepCC_TRUE=
11365 am__fastdepCC_FALSE='#'
11366 else
11367 am__fastdepCC_TRUE='#'
11368 am__fastdepCC_FALSE=
11372 if test "x$CC" != xcc; then
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11374 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11375 else
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11377 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11379 set dummy $CC; ac_cc=`$as_echo "$2" |
11380 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11381 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
11382 $as_echo_n "(cached) " >&6
11383 else
11384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11385 /* end confdefs.h. */
11388 main ()
11392 return 0;
11394 _ACEOF
11395 # Make sure it works both with $CC and with simple cc.
11396 # We do the test twice because some compilers refuse to overwrite an
11397 # existing .o file with -o, though they will create one.
11398 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11399 rm -f conftest2.*
11400 if { { case "(($ac_try" in
11401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11402 *) ac_try_echo=$ac_try;;
11403 esac
11404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11405 $as_echo "$ac_try_echo"; } >&5
11406 (eval "$ac_try") 2>&5
11407 ac_status=$?
11408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11409 test $ac_status = 0; } &&
11410 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11412 *) ac_try_echo=$ac_try;;
11413 esac
11414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11415 $as_echo "$ac_try_echo"; } >&5
11416 (eval "$ac_try") 2>&5
11417 ac_status=$?
11418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11419 test $ac_status = 0; };
11420 then
11421 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11422 if test "x$CC" != xcc; then
11423 # Test first that cc exists at all.
11424 if { ac_try='cc -c conftest.$ac_ext >&5'
11425 { { case "(($ac_try" in
11426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11427 *) ac_try_echo=$ac_try;;
11428 esac
11429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11430 $as_echo "$ac_try_echo"; } >&5
11431 (eval "$ac_try") 2>&5
11432 ac_status=$?
11433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11434 test $ac_status = 0; }; }; then
11435 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11436 rm -f conftest2.*
11437 if { { case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11440 esac
11441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11442 $as_echo "$ac_try_echo"; } >&5
11443 (eval "$ac_try") 2>&5
11444 ac_status=$?
11445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11446 test $ac_status = 0; } &&
11447 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11449 *) ac_try_echo=$ac_try;;
11450 esac
11451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11452 $as_echo "$ac_try_echo"; } >&5
11453 (eval "$ac_try") 2>&5
11454 ac_status=$?
11455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11456 test $ac_status = 0; };
11457 then
11458 # cc works too.
11460 else
11461 # cc exists but doesn't like -o.
11462 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11466 else
11467 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11469 rm -f core conftest*
11472 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11474 $as_echo "yes" >&6; }
11475 else
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11477 $as_echo "no" >&6; }
11479 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11483 # FIXME: we rely on the cache variable name because
11484 # there is no other way.
11485 set dummy $CC
11486 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11487 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11488 if test "$am_t" != yes; then
11489 # Losing compiler, so override with the script.
11490 # FIXME: It is wrong to rewrite CC.
11491 # But if we don't then we get into trouble of one sort or another.
11492 # A longer-term fix would be to have automake use am__CC in this case,
11493 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11494 CC="$am_aux_dir/compile $CC"
11499 ac_ext=cpp
11500 ac_cpp='$CXXCPP $CPPFLAGS'
11501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11505 ac_ext=cpp
11506 ac_cpp='$CXXCPP $CPPFLAGS'
11507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11510 if test -z "$CXX"; then
11511 if test -n "$CCC"; then
11512 CXX=$CCC
11513 else
11514 if test -n "$ac_tool_prefix"; then
11515 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11517 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11518 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11520 $as_echo_n "checking for $ac_word... " >&6; }
11521 if test "${ac_cv_prog_CXX+set}" = set; then :
11522 $as_echo_n "(cached) " >&6
11523 else
11524 if test -n "$CXX"; then
11525 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11526 else
11527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11528 for as_dir in $PATH
11530 IFS=$as_save_IFS
11531 test -z "$as_dir" && as_dir=.
11532 for ac_exec_ext in '' $ac_executable_extensions; do
11533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11534 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11536 break 2
11538 done
11539 done
11540 IFS=$as_save_IFS
11544 CXX=$ac_cv_prog_CXX
11545 if test -n "$CXX"; then
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11547 $as_echo "$CXX" >&6; }
11548 else
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550 $as_echo "no" >&6; }
11554 test -n "$CXX" && break
11555 done
11557 if test -z "$CXX"; then
11558 ac_ct_CXX=$CXX
11559 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11561 # Extract the first word of "$ac_prog", so it can be a program name with args.
11562 set dummy $ac_prog; ac_word=$2
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11564 $as_echo_n "checking for $ac_word... " >&6; }
11565 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11566 $as_echo_n "(cached) " >&6
11567 else
11568 if test -n "$ac_ct_CXX"; then
11569 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11570 else
11571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11572 for as_dir in $PATH
11574 IFS=$as_save_IFS
11575 test -z "$as_dir" && as_dir=.
11576 for ac_exec_ext in '' $ac_executable_extensions; do
11577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11578 ac_cv_prog_ac_ct_CXX="$ac_prog"
11579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11580 break 2
11582 done
11583 done
11584 IFS=$as_save_IFS
11588 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11589 if test -n "$ac_ct_CXX"; then
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11591 $as_echo "$ac_ct_CXX" >&6; }
11592 else
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11594 $as_echo "no" >&6; }
11598 test -n "$ac_ct_CXX" && break
11599 done
11601 if test "x$ac_ct_CXX" = x; then
11602 CXX="g++"
11603 else
11604 case $cross_compiling:$ac_tool_warned in
11605 yes:)
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11608 ac_tool_warned=yes ;;
11609 esac
11610 CXX=$ac_ct_CXX
11616 # Provide some information about the compiler.
11617 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11618 set X $ac_compile
11619 ac_compiler=$2
11620 for ac_option in --version -v -V -qversion; do
11621 { { ac_try="$ac_compiler $ac_option >&5"
11622 case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11625 esac
11626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11627 $as_echo "$ac_try_echo"; } >&5
11628 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11629 ac_status=$?
11630 if test -s conftest.err; then
11631 sed '10a\
11632 ... rest of stderr output deleted ...
11633 10q' conftest.err >conftest.er1
11634 cat conftest.er1 >&5
11636 rm -f conftest.er1 conftest.err
11637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11638 test $ac_status = 0; }
11639 done
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11642 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11643 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11644 $as_echo_n "(cached) " >&6
11645 else
11646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11647 /* end confdefs.h. */
11650 main ()
11652 #ifndef __GNUC__
11653 choke me
11654 #endif
11657 return 0;
11659 _ACEOF
11660 if ac_fn_cxx_try_compile "$LINENO"; then :
11661 ac_compiler_gnu=yes
11662 else
11663 ac_compiler_gnu=no
11665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11666 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11670 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11671 if test $ac_compiler_gnu = yes; then
11672 GXX=yes
11673 else
11674 GXX=
11676 ac_test_CXXFLAGS=${CXXFLAGS+set}
11677 ac_save_CXXFLAGS=$CXXFLAGS
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11679 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11680 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11681 $as_echo_n "(cached) " >&6
11682 else
11683 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11684 ac_cxx_werror_flag=yes
11685 ac_cv_prog_cxx_g=no
11686 CXXFLAGS="-g"
11687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688 /* end confdefs.h. */
11691 main ()
11695 return 0;
11697 _ACEOF
11698 if ac_fn_cxx_try_compile "$LINENO"; then :
11699 ac_cv_prog_cxx_g=yes
11700 else
11701 CXXFLAGS=""
11702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11703 /* end confdefs.h. */
11706 main ()
11710 return 0;
11712 _ACEOF
11713 if ac_fn_cxx_try_compile "$LINENO"; then :
11715 else
11716 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11717 CXXFLAGS="-g"
11718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11719 /* end confdefs.h. */
11722 main ()
11726 return 0;
11728 _ACEOF
11729 if ac_fn_cxx_try_compile "$LINENO"; then :
11730 ac_cv_prog_cxx_g=yes
11732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11737 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11740 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11741 if test "$ac_test_CXXFLAGS" = set; then
11742 CXXFLAGS=$ac_save_CXXFLAGS
11743 elif test $ac_cv_prog_cxx_g = yes; then
11744 if test "$GXX" = yes; then
11745 CXXFLAGS="-g -O2"
11746 else
11747 CXXFLAGS="-g"
11749 else
11750 if test "$GXX" = yes; then
11751 CXXFLAGS="-O2"
11752 else
11753 CXXFLAGS=
11756 ac_ext=cpp
11757 ac_cpp='$CXXCPP $CPPFLAGS'
11758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11762 depcc="$CXX" am_compiler_list=
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11765 $as_echo_n "checking dependency style of $depcc... " >&6; }
11766 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11767 $as_echo_n "(cached) " >&6
11768 else
11769 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11770 # We make a subdir and do the tests there. Otherwise we can end up
11771 # making bogus files that we don't know about and never remove. For
11772 # instance it was reported that on HP-UX the gcc test will end up
11773 # making a dummy file named `D' -- because `-MD' means `put the output
11774 # in D'.
11775 mkdir conftest.dir
11776 # Copy depcomp to subdir because otherwise we won't find it if we're
11777 # using a relative directory.
11778 cp "$am_depcomp" conftest.dir
11779 cd conftest.dir
11780 # We will build objects and dependencies in a subdirectory because
11781 # it helps to detect inapplicable dependency modes. For instance
11782 # both Tru64's cc and ICC support -MD to output dependencies as a
11783 # side effect of compilation, but ICC will put the dependencies in
11784 # the current directory while Tru64 will put them in the object
11785 # directory.
11786 mkdir sub
11788 am_cv_CXX_dependencies_compiler_type=none
11789 if test "$am_compiler_list" = ""; then
11790 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11792 am__universal=false
11793 case " $depcc " in #(
11794 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11795 esac
11797 for depmode in $am_compiler_list; do
11798 # Setup a source with many dependencies, because some compilers
11799 # like to wrap large dependency lists on column 80 (with \), and
11800 # we should not choose a depcomp mode which is confused by this.
11802 # We need to recreate these files for each test, as the compiler may
11803 # overwrite some of them when testing with obscure command lines.
11804 # This happens at least with the AIX C compiler.
11805 : > sub/conftest.c
11806 for i in 1 2 3 4 5 6; do
11807 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11808 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11809 # Solaris 8's {/usr,}/bin/sh.
11810 touch sub/conftst$i.h
11811 done
11812 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11814 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11815 # mode. It turns out that the SunPro C++ compiler does not properly
11816 # handle `-M -o', and we need to detect this. Also, some Intel
11817 # versions had trouble with output in subdirs
11818 am__obj=sub/conftest.${OBJEXT-o}
11819 am__minus_obj="-o $am__obj"
11820 case $depmode in
11821 gcc)
11822 # This depmode causes a compiler race in universal mode.
11823 test "$am__universal" = false || continue
11825 nosideeffect)
11826 # after this tag, mechanisms are not by side-effect, so they'll
11827 # only be used when explicitly requested
11828 if test "x$enable_dependency_tracking" = xyes; then
11829 continue
11830 else
11831 break
11834 msvisualcpp | msvcmsys)
11835 # This compiler won't grok `-c -o', but also, the minuso test has
11836 # not run yet. These depmodes are late enough in the game, and
11837 # so weak that their functioning should not be impacted.
11838 am__obj=conftest.${OBJEXT-o}
11839 am__minus_obj=
11841 none) break ;;
11842 esac
11843 if depmode=$depmode \
11844 source=sub/conftest.c object=$am__obj \
11845 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11846 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11847 >/dev/null 2>conftest.err &&
11848 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11849 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11850 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11851 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11852 # icc doesn't choke on unknown options, it will just issue warnings
11853 # or remarks (even with -Werror). So we grep stderr for any message
11854 # that says an option was ignored or not supported.
11855 # When given -MP, icc 7.0 and 7.1 complain thusly:
11856 # icc: Command line warning: ignoring option '-M'; no argument required
11857 # The diagnosis changed in icc 8.0:
11858 # icc: Command line remark: option '-MP' not supported
11859 if (grep 'ignoring option' conftest.err ||
11860 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11861 am_cv_CXX_dependencies_compiler_type=$depmode
11862 break
11865 done
11867 cd ..
11868 rm -rf conftest.dir
11869 else
11870 am_cv_CXX_dependencies_compiler_type=none
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11875 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11876 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11879 test "x$enable_dependency_tracking" != xno \
11880 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11881 am__fastdepCXX_TRUE=
11882 am__fastdepCXX_FALSE='#'
11883 else
11884 am__fastdepCXX_TRUE='#'
11885 am__fastdepCXX_FALSE=
11890 ac_ext=cpp
11891 ac_cpp='$CXXCPP $CPPFLAGS'
11892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11895 if test -z "$CXX"; then
11896 if test -n "$CCC"; then
11897 CXX=$CCC
11898 else
11899 if test -n "$ac_tool_prefix"; then
11900 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11902 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11903 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11905 $as_echo_n "checking for $ac_word... " >&6; }
11906 if test "${ac_cv_prog_CXX+set}" = set; then :
11907 $as_echo_n "(cached) " >&6
11908 else
11909 if test -n "$CXX"; then
11910 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11911 else
11912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11913 for as_dir in $PATH
11915 IFS=$as_save_IFS
11916 test -z "$as_dir" && as_dir=.
11917 for ac_exec_ext in '' $ac_executable_extensions; do
11918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11919 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11921 break 2
11923 done
11924 done
11925 IFS=$as_save_IFS
11929 CXX=$ac_cv_prog_CXX
11930 if test -n "$CXX"; then
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11932 $as_echo "$CXX" >&6; }
11933 else
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11935 $as_echo "no" >&6; }
11939 test -n "$CXX" && break
11940 done
11942 if test -z "$CXX"; then
11943 ac_ct_CXX=$CXX
11944 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11946 # Extract the first word of "$ac_prog", so it can be a program name with args.
11947 set dummy $ac_prog; ac_word=$2
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11949 $as_echo_n "checking for $ac_word... " >&6; }
11950 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11951 $as_echo_n "(cached) " >&6
11952 else
11953 if test -n "$ac_ct_CXX"; then
11954 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11955 else
11956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11957 for as_dir in $PATH
11959 IFS=$as_save_IFS
11960 test -z "$as_dir" && as_dir=.
11961 for ac_exec_ext in '' $ac_executable_extensions; do
11962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11963 ac_cv_prog_ac_ct_CXX="$ac_prog"
11964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11965 break 2
11967 done
11968 done
11969 IFS=$as_save_IFS
11973 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11974 if test -n "$ac_ct_CXX"; then
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11976 $as_echo "$ac_ct_CXX" >&6; }
11977 else
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979 $as_echo "no" >&6; }
11983 test -n "$ac_ct_CXX" && break
11984 done
11986 if test "x$ac_ct_CXX" = x; then
11987 CXX="g++"
11988 else
11989 case $cross_compiling:$ac_tool_warned in
11990 yes:)
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11993 ac_tool_warned=yes ;;
11994 esac
11995 CXX=$ac_ct_CXX
12001 # Provide some information about the compiler.
12002 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12003 set X $ac_compile
12004 ac_compiler=$2
12005 for ac_option in --version -v -V -qversion; do
12006 { { ac_try="$ac_compiler $ac_option >&5"
12007 case "(($ac_try" in
12008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009 *) ac_try_echo=$ac_try;;
12010 esac
12011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12012 $as_echo "$ac_try_echo"; } >&5
12013 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12014 ac_status=$?
12015 if test -s conftest.err; then
12016 sed '10a\
12017 ... rest of stderr output deleted ...
12018 10q' conftest.err >conftest.er1
12019 cat conftest.er1 >&5
12021 rm -f conftest.er1 conftest.err
12022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12023 test $ac_status = 0; }
12024 done
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12027 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12028 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
12029 $as_echo_n "(cached) " >&6
12030 else
12031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12032 /* end confdefs.h. */
12035 main ()
12037 #ifndef __GNUC__
12038 choke me
12039 #endif
12042 return 0;
12044 _ACEOF
12045 if ac_fn_cxx_try_compile "$LINENO"; then :
12046 ac_compiler_gnu=yes
12047 else
12048 ac_compiler_gnu=no
12050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12051 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12055 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12056 if test $ac_compiler_gnu = yes; then
12057 GXX=yes
12058 else
12059 GXX=
12061 ac_test_CXXFLAGS=${CXXFLAGS+set}
12062 ac_save_CXXFLAGS=$CXXFLAGS
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12064 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12065 if test "${ac_cv_prog_cxx_g+set}" = set; then :
12066 $as_echo_n "(cached) " >&6
12067 else
12068 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12069 ac_cxx_werror_flag=yes
12070 ac_cv_prog_cxx_g=no
12071 CXXFLAGS="-g"
12072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h. */
12076 main ()
12080 return 0;
12082 _ACEOF
12083 if ac_fn_cxx_try_compile "$LINENO"; then :
12084 ac_cv_prog_cxx_g=yes
12085 else
12086 CXXFLAGS=""
12087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12088 /* end confdefs.h. */
12091 main ()
12095 return 0;
12097 _ACEOF
12098 if ac_fn_cxx_try_compile "$LINENO"; then :
12100 else
12101 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12102 CXXFLAGS="-g"
12103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12104 /* end confdefs.h. */
12107 main ()
12111 return 0;
12113 _ACEOF
12114 if ac_fn_cxx_try_compile "$LINENO"; then :
12115 ac_cv_prog_cxx_g=yes
12117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12122 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12125 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12126 if test "$ac_test_CXXFLAGS" = set; then
12127 CXXFLAGS=$ac_save_CXXFLAGS
12128 elif test $ac_cv_prog_cxx_g = yes; then
12129 if test "$GXX" = yes; then
12130 CXXFLAGS="-g -O2"
12131 else
12132 CXXFLAGS="-g"
12134 else
12135 if test "$GXX" = yes; then
12136 CXXFLAGS="-O2"
12137 else
12138 CXXFLAGS=
12141 ac_ext=cpp
12142 ac_cpp='$CXXCPP $CPPFLAGS'
12143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12147 depcc="$CXX" am_compiler_list=
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12150 $as_echo_n "checking dependency style of $depcc... " >&6; }
12151 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
12152 $as_echo_n "(cached) " >&6
12153 else
12154 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12155 # We make a subdir and do the tests there. Otherwise we can end up
12156 # making bogus files that we don't know about and never remove. For
12157 # instance it was reported that on HP-UX the gcc test will end up
12158 # making a dummy file named `D' -- because `-MD' means `put the output
12159 # in D'.
12160 mkdir conftest.dir
12161 # Copy depcomp to subdir because otherwise we won't find it if we're
12162 # using a relative directory.
12163 cp "$am_depcomp" conftest.dir
12164 cd conftest.dir
12165 # We will build objects and dependencies in a subdirectory because
12166 # it helps to detect inapplicable dependency modes. For instance
12167 # both Tru64's cc and ICC support -MD to output dependencies as a
12168 # side effect of compilation, but ICC will put the dependencies in
12169 # the current directory while Tru64 will put them in the object
12170 # directory.
12171 mkdir sub
12173 am_cv_CXX_dependencies_compiler_type=none
12174 if test "$am_compiler_list" = ""; then
12175 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12177 am__universal=false
12178 case " $depcc " in #(
12179 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12180 esac
12182 for depmode in $am_compiler_list; do
12183 # Setup a source with many dependencies, because some compilers
12184 # like to wrap large dependency lists on column 80 (with \), and
12185 # we should not choose a depcomp mode which is confused by this.
12187 # We need to recreate these files for each test, as the compiler may
12188 # overwrite some of them when testing with obscure command lines.
12189 # This happens at least with the AIX C compiler.
12190 : > sub/conftest.c
12191 for i in 1 2 3 4 5 6; do
12192 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12193 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12194 # Solaris 8's {/usr,}/bin/sh.
12195 touch sub/conftst$i.h
12196 done
12197 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12199 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12200 # mode. It turns out that the SunPro C++ compiler does not properly
12201 # handle `-M -o', and we need to detect this. Also, some Intel
12202 # versions had trouble with output in subdirs
12203 am__obj=sub/conftest.${OBJEXT-o}
12204 am__minus_obj="-o $am__obj"
12205 case $depmode in
12206 gcc)
12207 # This depmode causes a compiler race in universal mode.
12208 test "$am__universal" = false || continue
12210 nosideeffect)
12211 # after this tag, mechanisms are not by side-effect, so they'll
12212 # only be used when explicitly requested
12213 if test "x$enable_dependency_tracking" = xyes; then
12214 continue
12215 else
12216 break
12219 msvisualcpp | msvcmsys)
12220 # This compiler won't grok `-c -o', but also, the minuso test has
12221 # not run yet. These depmodes are late enough in the game, and
12222 # so weak that their functioning should not be impacted.
12223 am__obj=conftest.${OBJEXT-o}
12224 am__minus_obj=
12226 none) break ;;
12227 esac
12228 if depmode=$depmode \
12229 source=sub/conftest.c object=$am__obj \
12230 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12231 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12232 >/dev/null 2>conftest.err &&
12233 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12234 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12235 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12236 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12237 # icc doesn't choke on unknown options, it will just issue warnings
12238 # or remarks (even with -Werror). So we grep stderr for any message
12239 # that says an option was ignored or not supported.
12240 # When given -MP, icc 7.0 and 7.1 complain thusly:
12241 # icc: Command line warning: ignoring option '-M'; no argument required
12242 # The diagnosis changed in icc 8.0:
12243 # icc: Command line remark: option '-MP' not supported
12244 if (grep 'ignoring option' conftest.err ||
12245 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12246 am_cv_CXX_dependencies_compiler_type=$depmode
12247 break
12250 done
12252 cd ..
12253 rm -rf conftest.dir
12254 else
12255 am_cv_CXX_dependencies_compiler_type=none
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12260 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12261 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12264 test "x$enable_dependency_tracking" != xno \
12265 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12266 am__fastdepCXX_TRUE=
12267 am__fastdepCXX_FALSE='#'
12268 else
12269 am__fastdepCXX_TRUE='#'
12270 am__fastdepCXX_FALSE=
12274 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12275 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12276 (test "X$CXX" != "Xg++"))) ; then
12277 ac_ext=cpp
12278 ac_cpp='$CXXCPP $CPPFLAGS'
12279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12283 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12284 if test -z "$CXXCPP"; then
12285 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12286 $as_echo_n "(cached) " >&6
12287 else
12288 # Double quotes because CXXCPP needs to be expanded
12289 for CXXCPP in "$CXX -E" "/lib/cpp"
12291 ac_preproc_ok=false
12292 for ac_cxx_preproc_warn_flag in '' yes
12294 # Use a header file that comes with gcc, so configuring glibc
12295 # with a fresh cross-compiler works.
12296 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12297 # <limits.h> exists even on freestanding compilers.
12298 # On the NeXT, cc -E runs the code through the compiler's parser,
12299 # not just through cpp. "Syntax error" is here to catch this case.
12300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12301 /* end confdefs.h. */
12302 #ifdef __STDC__
12303 # include <limits.h>
12304 #else
12305 # include <assert.h>
12306 #endif
12307 Syntax error
12308 _ACEOF
12309 if ac_fn_cxx_try_cpp "$LINENO"; then :
12311 else
12312 # Broken: fails on valid input.
12313 continue
12315 rm -f conftest.err conftest.$ac_ext
12317 # OK, works on sane cases. Now check whether nonexistent headers
12318 # can be detected and how.
12319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12320 /* end confdefs.h. */
12321 #include <ac_nonexistent.h>
12322 _ACEOF
12323 if ac_fn_cxx_try_cpp "$LINENO"; then :
12324 # Broken: success on invalid input.
12325 continue
12326 else
12327 # Passes both tests.
12328 ac_preproc_ok=:
12329 break
12331 rm -f conftest.err conftest.$ac_ext
12333 done
12334 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12335 rm -f conftest.err conftest.$ac_ext
12336 if $ac_preproc_ok; then :
12337 break
12340 done
12341 ac_cv_prog_CXXCPP=$CXXCPP
12344 CXXCPP=$ac_cv_prog_CXXCPP
12345 else
12346 ac_cv_prog_CXXCPP=$CXXCPP
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12349 $as_echo "$CXXCPP" >&6; }
12350 ac_preproc_ok=false
12351 for ac_cxx_preproc_warn_flag in '' yes
12353 # Use a header file that comes with gcc, so configuring glibc
12354 # with a fresh cross-compiler works.
12355 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12356 # <limits.h> exists even on freestanding compilers.
12357 # On the NeXT, cc -E runs the code through the compiler's parser,
12358 # not just through cpp. "Syntax error" is here to catch this case.
12359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360 /* end confdefs.h. */
12361 #ifdef __STDC__
12362 # include <limits.h>
12363 #else
12364 # include <assert.h>
12365 #endif
12366 Syntax error
12367 _ACEOF
12368 if ac_fn_cxx_try_cpp "$LINENO"; then :
12370 else
12371 # Broken: fails on valid input.
12372 continue
12374 rm -f conftest.err conftest.$ac_ext
12376 # OK, works on sane cases. Now check whether nonexistent headers
12377 # can be detected and how.
12378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379 /* end confdefs.h. */
12380 #include <ac_nonexistent.h>
12381 _ACEOF
12382 if ac_fn_cxx_try_cpp "$LINENO"; then :
12383 # Broken: success on invalid input.
12384 continue
12385 else
12386 # Passes both tests.
12387 ac_preproc_ok=:
12388 break
12390 rm -f conftest.err conftest.$ac_ext
12392 done
12393 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12394 rm -f conftest.err conftest.$ac_ext
12395 if $ac_preproc_ok; then :
12397 else
12398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12400 _lt_caught_CXX_error=yes; }
12403 ac_ext=cpp
12404 ac_cpp='$CXXCPP $CPPFLAGS'
12405 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12406 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12407 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12409 else
12410 _lt_caught_CXX_error=yes
12416 ac_ext=cpp
12417 ac_cpp='$CXXCPP $CPPFLAGS'
12418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12422 archive_cmds_need_lc_CXX=no
12423 allow_undefined_flag_CXX=
12424 always_export_symbols_CXX=no
12425 archive_expsym_cmds_CXX=
12426 compiler_needs_object_CXX=no
12427 export_dynamic_flag_spec_CXX=
12428 hardcode_direct_CXX=no
12429 hardcode_direct_absolute_CXX=no
12430 hardcode_libdir_flag_spec_CXX=
12431 hardcode_libdir_flag_spec_ld_CXX=
12432 hardcode_libdir_separator_CXX=
12433 hardcode_minus_L_CXX=no
12434 hardcode_shlibpath_var_CXX=unsupported
12435 hardcode_automatic_CXX=no
12436 inherit_rpath_CXX=no
12437 module_cmds_CXX=
12438 module_expsym_cmds_CXX=
12439 link_all_deplibs_CXX=unknown
12440 old_archive_cmds_CXX=$old_archive_cmds
12441 no_undefined_flag_CXX=
12442 whole_archive_flag_spec_CXX=
12443 enable_shared_with_static_runtimes_CXX=no
12445 # Source file extension for C++ test sources.
12446 ac_ext=cpp
12448 # Object file extension for compiled C++ test sources.
12449 objext=o
12450 objext_CXX=$objext
12452 # No sense in running all these tests if we already determined that
12453 # the CXX compiler isn't working. Some variables (like enable_shared)
12454 # are currently assumed to apply to all compilers on this platform,
12455 # and will be corrupted by setting them based on a non-working compiler.
12456 if test "$_lt_caught_CXX_error" != yes; then
12457 # Code to be used in simple compile tests
12458 lt_simple_compile_test_code="int some_variable = 0;"
12460 # Code to be used in simple link tests
12461 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12463 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12470 # If no C compiler was specified, use CC.
12471 LTCC=${LTCC-"$CC"}
12473 # If no C compiler flags were specified, use CFLAGS.
12474 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12476 # Allow CC to be a program name with arguments.
12477 compiler=$CC
12480 # save warnings/boilerplate of simple test code
12481 ac_outfile=conftest.$ac_objext
12482 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12483 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12484 _lt_compiler_boilerplate=`cat conftest.err`
12485 $RM conftest*
12487 ac_outfile=conftest.$ac_objext
12488 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12489 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12490 _lt_linker_boilerplate=`cat conftest.err`
12491 $RM -r conftest*
12494 # Allow CC to be a program name with arguments.
12495 lt_save_CC=$CC
12496 lt_save_LD=$LD
12497 lt_save_GCC=$GCC
12498 GCC=$GXX
12499 lt_save_with_gnu_ld=$with_gnu_ld
12500 lt_save_path_LD=$lt_cv_path_LD
12501 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12502 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12503 else
12504 $as_unset lt_cv_prog_gnu_ld
12506 if test -n "${lt_cv_path_LDCXX+set}"; then
12507 lt_cv_path_LD=$lt_cv_path_LDCXX
12508 else
12509 $as_unset lt_cv_path_LD
12511 test -z "${LDCXX+set}" || LD=$LDCXX
12512 CC=${CXX-"c++"}
12513 compiler=$CC
12514 compiler_CXX=$CC
12515 for cc_temp in $compiler""; do
12516 case $cc_temp in
12517 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12518 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12519 \-*) ;;
12520 *) break;;
12521 esac
12522 done
12523 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12526 if test -n "$compiler"; then
12527 # We don't want -fno-exception when compiling C++ code, so set the
12528 # no_builtin_flag separately
12529 if test "$GXX" = yes; then
12530 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12531 else
12532 lt_prog_compiler_no_builtin_flag_CXX=
12535 if test "$GXX" = yes; then
12536 # Set up default GNU C++ configuration
12540 # Check whether --with-gnu-ld was given.
12541 if test "${with_gnu_ld+set}" = set; then :
12542 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12543 else
12544 with_gnu_ld=no
12547 ac_prog=ld
12548 if test "$GCC" = yes; then
12549 # Check if gcc -print-prog-name=ld gives a path.
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12551 $as_echo_n "checking for ld used by $CC... " >&6; }
12552 case $host in
12553 *-*-mingw*)
12554 # gcc leaves a trailing carriage return which upsets mingw
12555 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12557 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12558 esac
12559 case $ac_prog in
12560 # Accept absolute paths.
12561 [\\/]* | ?:[\\/]*)
12562 re_direlt='/[^/][^/]*/\.\./'
12563 # Canonicalize the pathname of ld
12564 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12565 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12566 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12567 done
12568 test -z "$LD" && LD="$ac_prog"
12571 # If it fails, then pretend we aren't using GCC.
12572 ac_prog=ld
12575 # If it is relative, then search for the first ld in PATH.
12576 with_gnu_ld=unknown
12578 esac
12579 elif test "$with_gnu_ld" = yes; then
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12581 $as_echo_n "checking for GNU ld... " >&6; }
12582 else
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12584 $as_echo_n "checking for non-GNU ld... " >&6; }
12586 if test "${lt_cv_path_LD+set}" = set; then :
12587 $as_echo_n "(cached) " >&6
12588 else
12589 if test -z "$LD"; then
12590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12591 for ac_dir in $PATH; do
12592 IFS="$lt_save_ifs"
12593 test -z "$ac_dir" && ac_dir=.
12594 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12595 lt_cv_path_LD="$ac_dir/$ac_prog"
12596 # Check to see if the program is GNU ld. I'd rather use --version,
12597 # but apparently some variants of GNU ld only accept -v.
12598 # Break only if it was the GNU/non-GNU ld that we prefer.
12599 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12600 *GNU* | *'with BFD'*)
12601 test "$with_gnu_ld" != no && break
12604 test "$with_gnu_ld" != yes && break
12606 esac
12608 done
12609 IFS="$lt_save_ifs"
12610 else
12611 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12615 LD="$lt_cv_path_LD"
12616 if test -n "$LD"; then
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12618 $as_echo "$LD" >&6; }
12619 else
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12621 $as_echo "no" >&6; }
12623 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12625 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12626 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12627 $as_echo_n "(cached) " >&6
12628 else
12629 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12630 case `$LD -v 2>&1 </dev/null` in
12631 *GNU* | *'with BFD'*)
12632 lt_cv_prog_gnu_ld=yes
12635 lt_cv_prog_gnu_ld=no
12637 esac
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12640 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12641 with_gnu_ld=$lt_cv_prog_gnu_ld
12649 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12650 # archiving commands below assume that GNU ld is being used.
12651 if test "$with_gnu_ld" = yes; then
12652 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12653 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'
12655 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12656 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12658 # If archive_cmds runs LD, not CC, wlarc should be empty
12659 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12660 # investigate it a little bit more. (MM)
12661 wlarc='${wl}'
12663 # ancient GNU ld didn't support --whole-archive et. al.
12664 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12665 $GREP 'no-whole-archive' > /dev/null; then
12666 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12667 else
12668 whole_archive_flag_spec_CXX=
12670 else
12671 with_gnu_ld=no
12672 wlarc=
12674 # A generic and very simple default shared library creation
12675 # command for GNU C++ for the case where it uses the native
12676 # linker, instead of GNU ld. If possible, this setting should
12677 # overridden to take advantage of the native linker features on
12678 # the platform it is being used on.
12679 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12682 # Commands to make compiler produce verbose output that lists
12683 # what "hidden" libraries, object files and flags are used when
12684 # linking a shared library.
12685 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12687 else
12688 GXX=no
12689 with_gnu_ld=no
12690 wlarc=
12693 # PORTME: fill in a description of your system's C++ link characteristics
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12695 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12696 ld_shlibs_CXX=yes
12697 case $host_os in
12698 aix3*)
12699 # FIXME: insert proper C++ library support
12700 ld_shlibs_CXX=no
12702 aix[4-9]*)
12703 if test "$host_cpu" = ia64; then
12704 # On IA64, the linker does run time linking by default, so we don't
12705 # have to do anything special.
12706 aix_use_runtimelinking=no
12707 exp_sym_flag='-Bexport'
12708 no_entry_flag=""
12709 else
12710 aix_use_runtimelinking=no
12712 # Test if we are trying to use run time linking or normal
12713 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12714 # need to do runtime linking.
12715 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12716 for ld_flag in $LDFLAGS; do
12717 case $ld_flag in
12718 *-brtl*)
12719 aix_use_runtimelinking=yes
12720 break
12722 esac
12723 done
12725 esac
12727 exp_sym_flag='-bexport'
12728 no_entry_flag='-bnoentry'
12731 # When large executables or shared objects are built, AIX ld can
12732 # have problems creating the table of contents. If linking a library
12733 # or program results in "error TOC overflow" add -mminimal-toc to
12734 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12735 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12737 archive_cmds_CXX=''
12738 hardcode_direct_CXX=yes
12739 hardcode_direct_absolute_CXX=yes
12740 hardcode_libdir_separator_CXX=':'
12741 link_all_deplibs_CXX=yes
12742 file_list_spec_CXX='${wl}-f,'
12744 if test "$GXX" = yes; then
12745 case $host_os in aix4.[012]|aix4.[012].*)
12746 # We only want to do this on AIX 4.2 and lower, the check
12747 # below for broken collect2 doesn't work under 4.3+
12748 collect2name=`${CC} -print-prog-name=collect2`
12749 if test -f "$collect2name" &&
12750 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12751 then
12752 # We have reworked collect2
12754 else
12755 # We have old collect2
12756 hardcode_direct_CXX=unsupported
12757 # It fails to find uninstalled libraries when the uninstalled
12758 # path is not listed in the libpath. Setting hardcode_minus_L
12759 # to unsupported forces relinking
12760 hardcode_minus_L_CXX=yes
12761 hardcode_libdir_flag_spec_CXX='-L$libdir'
12762 hardcode_libdir_separator_CXX=
12764 esac
12765 shared_flag='-shared'
12766 if test "$aix_use_runtimelinking" = yes; then
12767 shared_flag="$shared_flag "'${wl}-G'
12769 else
12770 # not using gcc
12771 if test "$host_cpu" = ia64; then
12772 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12773 # chokes on -Wl,-G. The following line is correct:
12774 shared_flag='-G'
12775 else
12776 if test "$aix_use_runtimelinking" = yes; then
12777 shared_flag='${wl}-G'
12778 else
12779 shared_flag='${wl}-bM:SRE'
12784 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12785 # It seems that -bexpall does not export symbols beginning with
12786 # underscore (_), so it is better to generate a list of symbols to
12787 # export.
12788 always_export_symbols_CXX=yes
12789 if test "$aix_use_runtimelinking" = yes; then
12790 # Warning - without using the other runtime loading flags (-brtl),
12791 # -berok will link without error, but may produce a broken library.
12792 allow_undefined_flag_CXX='-berok'
12793 # Determine the default libpath from the value encoded in an empty
12794 # executable.
12795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12796 /* end confdefs.h. */
12799 main ()
12803 return 0;
12805 _ACEOF
12806 if ac_fn_cxx_try_link "$LINENO"; then :
12808 lt_aix_libpath_sed='
12809 /Import File Strings/,/^$/ {
12810 /^0/ {
12811 s/^0 *\(.*\)$/\1/
12815 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12816 # Check for a 64-bit object if we didn't find anything.
12817 if test -z "$aix_libpath"; then
12818 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12821 rm -f core conftest.err conftest.$ac_objext \
12822 conftest$ac_exeext conftest.$ac_ext
12823 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12825 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12827 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12828 else
12829 if test "$host_cpu" = ia64; then
12830 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12831 allow_undefined_flag_CXX="-z nodefs"
12832 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"
12833 else
12834 # Determine the default libpath from the value encoded in an
12835 # empty executable.
12836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12837 /* end confdefs.h. */
12840 main ()
12844 return 0;
12846 _ACEOF
12847 if ac_fn_cxx_try_link "$LINENO"; then :
12849 lt_aix_libpath_sed='
12850 /Import File Strings/,/^$/ {
12851 /^0/ {
12852 s/^0 *\(.*\)$/\1/
12856 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12857 # Check for a 64-bit object if we didn't find anything.
12858 if test -z "$aix_libpath"; then
12859 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12862 rm -f core conftest.err conftest.$ac_objext \
12863 conftest$ac_exeext conftest.$ac_ext
12864 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12866 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12867 # Warning - without using the other run time loading flags,
12868 # -berok will link without error, but may produce a broken library.
12869 no_undefined_flag_CXX=' ${wl}-bernotok'
12870 allow_undefined_flag_CXX=' ${wl}-berok'
12871 # Exported symbols can be pulled into shared objects from archives
12872 whole_archive_flag_spec_CXX='$convenience'
12873 archive_cmds_need_lc_CXX=yes
12874 # This is similar to how AIX traditionally builds its shared
12875 # libraries.
12876 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'
12881 beos*)
12882 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12883 allow_undefined_flag_CXX=unsupported
12884 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12885 # support --undefined. This deserves some investigation. FIXME
12886 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12887 else
12888 ld_shlibs_CXX=no
12892 chorus*)
12893 case $cc_basename in
12895 # FIXME: insert proper C++ library support
12896 ld_shlibs_CXX=no
12898 esac
12901 cygwin* | mingw* | pw32* | cegcc*)
12902 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12903 # as there is no search path for DLLs.
12904 hardcode_libdir_flag_spec_CXX='-L$libdir'
12905 allow_undefined_flag_CXX=unsupported
12906 always_export_symbols_CXX=no
12907 enable_shared_with_static_runtimes_CXX=yes
12909 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12910 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'
12911 # If the export-symbols file already is a .def file (1st line
12912 # is EXPORTS), use it as is; otherwise, prepend...
12913 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12914 cp $export_symbols $output_objdir/$soname.def;
12915 else
12916 echo EXPORTS > $output_objdir/$soname.def;
12917 cat $export_symbols >> $output_objdir/$soname.def;
12919 $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'
12920 else
12921 ld_shlibs_CXX=no
12924 darwin* | rhapsody*)
12927 archive_cmds_need_lc_CXX=no
12928 hardcode_direct_CXX=no
12929 hardcode_automatic_CXX=yes
12930 hardcode_shlibpath_var_CXX=unsupported
12931 whole_archive_flag_spec_CXX=''
12932 link_all_deplibs_CXX=yes
12933 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12934 case $cc_basename in
12935 ifort*) _lt_dar_can_shared=yes ;;
12936 *) _lt_dar_can_shared=$GCC ;;
12937 esac
12938 if test "$_lt_dar_can_shared" = "yes"; then
12939 output_verbose_link_cmd=echo
12940 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}"
12941 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12942 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}"
12943 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}"
12944 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12945 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}"
12946 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}"
12949 else
12950 ld_shlibs_CXX=no
12955 dgux*)
12956 case $cc_basename in
12957 ec++*)
12958 # FIXME: insert proper C++ library support
12959 ld_shlibs_CXX=no
12961 ghcx*)
12962 # Green Hills C++ Compiler
12963 # FIXME: insert proper C++ library support
12964 ld_shlibs_CXX=no
12967 # FIXME: insert proper C++ library support
12968 ld_shlibs_CXX=no
12970 esac
12973 freebsd[12]*)
12974 # C++ shared libraries reported to be fairly broken before
12975 # switch to ELF
12976 ld_shlibs_CXX=no
12979 freebsd-elf*)
12980 archive_cmds_need_lc_CXX=no
12983 freebsd* | dragonfly*)
12984 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12985 # conventions
12986 ld_shlibs_CXX=yes
12989 gnu*)
12992 hpux9*)
12993 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12994 hardcode_libdir_separator_CXX=:
12995 export_dynamic_flag_spec_CXX='${wl}-E'
12996 hardcode_direct_CXX=yes
12997 hardcode_minus_L_CXX=yes # Not in the search PATH,
12998 # but as the default
12999 # location of the library.
13001 case $cc_basename in
13002 CC*)
13003 # FIXME: insert proper C++ library support
13004 ld_shlibs_CXX=no
13006 aCC*)
13007 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'
13008 # Commands to make compiler produce verbose output that lists
13009 # what "hidden" libraries, object files and flags are used when
13010 # linking a shared library.
13012 # There doesn't appear to be a way to prevent this compiler from
13013 # explicitly linking system object files so we need to strip them
13014 # from the output so that they don't get included in the library
13015 # dependencies.
13016 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; $ECHO "X$list" | $Xsed'
13019 if test "$GXX" = yes; then
13020 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'
13021 else
13022 # FIXME: insert proper C++ library support
13023 ld_shlibs_CXX=no
13026 esac
13029 hpux10*|hpux11*)
13030 if test $with_gnu_ld = no; then
13031 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13032 hardcode_libdir_separator_CXX=:
13034 case $host_cpu in
13035 hppa*64*|ia64*)
13038 export_dynamic_flag_spec_CXX='${wl}-E'
13040 esac
13042 case $host_cpu in
13043 hppa*64*|ia64*)
13044 hardcode_direct_CXX=no
13045 hardcode_shlibpath_var_CXX=no
13048 hardcode_direct_CXX=yes
13049 hardcode_direct_absolute_CXX=yes
13050 hardcode_minus_L_CXX=yes # Not in the search PATH,
13051 # but as the default
13052 # location of the library.
13054 esac
13056 case $cc_basename in
13057 CC*)
13058 # FIXME: insert proper C++ library support
13059 ld_shlibs_CXX=no
13061 aCC*)
13062 case $host_cpu in
13063 hppa*64*)
13064 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13066 ia64*)
13067 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13070 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13072 esac
13073 # Commands to make compiler produce verbose output that lists
13074 # what "hidden" libraries, object files and flags are used when
13075 # linking a shared library.
13077 # There doesn't appear to be a way to prevent this compiler from
13078 # explicitly linking system object files so we need to strip them
13079 # from the output so that they don't get included in the library
13080 # dependencies.
13081 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; $ECHO "X$list" | $Xsed'
13084 if test "$GXX" = yes; then
13085 if test $with_gnu_ld = no; then
13086 case $host_cpu in
13087 hppa*64*)
13088 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13090 ia64*)
13091 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13094 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'
13096 esac
13098 else
13099 # FIXME: insert proper C++ library support
13100 ld_shlibs_CXX=no
13103 esac
13106 interix[3-9]*)
13107 hardcode_direct_CXX=no
13108 hardcode_shlibpath_var_CXX=no
13109 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13110 export_dynamic_flag_spec_CXX='${wl}-E'
13111 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13112 # Instead, shared libraries are loaded at an image base (0x10000000 by
13113 # default) and relocated if they conflict, which is a slow very memory
13114 # consuming and fragmenting process. To avoid this, we pick a random,
13115 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13116 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13117 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'
13118 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'
13120 irix5* | irix6*)
13121 case $cc_basename in
13122 CC*)
13123 # SGI C++
13124 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13126 # Archives containing C++ object files must be created using
13127 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13128 # necessary to make sure instantiated templates are included
13129 # in the archive.
13130 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13133 if test "$GXX" = yes; then
13134 if test "$with_gnu_ld" = no; then
13135 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13136 else
13137 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13140 link_all_deplibs_CXX=yes
13142 esac
13143 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13144 hardcode_libdir_separator_CXX=:
13145 inherit_rpath_CXX=yes
13148 linux* | k*bsd*-gnu)
13149 case $cc_basename in
13150 KCC*)
13151 # Kuck and Associates, Inc. (KAI) C++ Compiler
13153 # KCC will only create a shared library if the output file
13154 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13155 # to its proper name (with version) after linking.
13156 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'
13157 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'
13158 # Commands to make compiler produce verbose output that lists
13159 # what "hidden" libraries, object files and flags are used when
13160 # linking a shared library.
13162 # There doesn't appear to be a way to prevent this compiler from
13163 # explicitly linking system object files so we need to strip them
13164 # from the output so that they don't get included in the library
13165 # dependencies.
13166 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; $ECHO "X$list" | $Xsed'
13168 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13169 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13171 # Archives containing C++ object files must be created using
13172 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13173 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13175 icpc* | ecpc* )
13176 # Intel C++
13177 with_gnu_ld=yes
13178 # version 8.0 and above of icpc choke on multiply defined symbols
13179 # if we add $predep_objects and $postdep_objects, however 7.1 and
13180 # earlier do not add the objects themselves.
13181 case `$CC -V 2>&1` in
13182 *"Version 7."*)
13183 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13184 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'
13186 *) # Version 8.0 or newer
13187 tmp_idyn=
13188 case $host_cpu in
13189 ia64*) tmp_idyn=' -i_dynamic';;
13190 esac
13191 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13192 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'
13194 esac
13195 archive_cmds_need_lc_CXX=no
13196 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13197 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13198 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13200 pgCC* | pgcpp*)
13201 # Portland Group C++ compiler
13202 case `$CC -V` in
13203 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13204 prelink_cmds_CXX='tpldir=Template.dir~
13205 rm -rf $tpldir~
13206 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13207 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13208 old_archive_cmds_CXX='tpldir=Template.dir~
13209 rm -rf $tpldir~
13210 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13211 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13212 $RANLIB $oldlib'
13213 archive_cmds_CXX='tpldir=Template.dir~
13214 rm -rf $tpldir~
13215 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13216 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13217 archive_expsym_cmds_CXX='tpldir=Template.dir~
13218 rm -rf $tpldir~
13219 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13220 $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'
13222 *) # Version 6 will use weak symbols
13223 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13224 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'
13226 esac
13228 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13229 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13230 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13232 cxx*)
13233 # Compaq C++
13234 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13235 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'
13237 runpath_var=LD_RUN_PATH
13238 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13239 hardcode_libdir_separator_CXX=:
13241 # Commands to make compiler produce verbose output that lists
13242 # what "hidden" libraries, object files and flags are used when
13243 # linking a shared library.
13245 # There doesn't appear to be a way to prevent this compiler from
13246 # explicitly linking system object files so we need to strip them
13247 # from the output so that they don't get included in the library
13248 # dependencies.
13249 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13251 xl*)
13252 # IBM XL 8.0 on PPC, with GNU ld
13253 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13254 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13255 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13256 if test "x$supports_anon_versioning" = xyes; then
13257 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13258 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13259 echo "local: *; };" >> $output_objdir/$libname.ver~
13260 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13264 case `$CC -V 2>&1 | sed 5q` in
13265 *Sun\ C*)
13266 # Sun C++ 5.9
13267 no_undefined_flag_CXX=' -zdefs'
13268 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13269 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'
13270 hardcode_libdir_flag_spec_CXX='-R$libdir'
13271 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13272 compiler_needs_object_CXX=yes
13274 # Not sure whether something based on
13275 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13276 # would be better.
13277 output_verbose_link_cmd='echo'
13279 # Archives containing C++ object files must be created using
13280 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13281 # necessary to make sure instantiated templates are included
13282 # in the archive.
13283 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13285 esac
13287 esac
13290 lynxos*)
13291 # FIXME: insert proper C++ library support
13292 ld_shlibs_CXX=no
13295 m88k*)
13296 # FIXME: insert proper C++ library support
13297 ld_shlibs_CXX=no
13300 mvs*)
13301 case $cc_basename in
13302 cxx*)
13303 # FIXME: insert proper C++ library support
13304 ld_shlibs_CXX=no
13307 # FIXME: insert proper C++ library support
13308 ld_shlibs_CXX=no
13310 esac
13313 netbsd*)
13314 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13315 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13316 wlarc=
13317 hardcode_libdir_flag_spec_CXX='-R$libdir'
13318 hardcode_direct_CXX=yes
13319 hardcode_shlibpath_var_CXX=no
13321 # Workaround some broken pre-1.5 toolchains
13322 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13325 *nto* | *qnx*)
13326 ld_shlibs_CXX=yes
13329 openbsd2*)
13330 # C++ shared libraries are fairly broken
13331 ld_shlibs_CXX=no
13334 openbsd*)
13335 if test -f /usr/libexec/ld.so; then
13336 hardcode_direct_CXX=yes
13337 hardcode_shlibpath_var_CXX=no
13338 hardcode_direct_absolute_CXX=yes
13339 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13340 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13341 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13342 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13343 export_dynamic_flag_spec_CXX='${wl}-E'
13344 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13346 output_verbose_link_cmd=echo
13347 else
13348 ld_shlibs_CXX=no
13352 osf3* | osf4* | osf5*)
13353 case $cc_basename in
13354 KCC*)
13355 # Kuck and Associates, Inc. (KAI) C++ Compiler
13357 # KCC will only create a shared library if the output file
13358 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13359 # to its proper name (with version) after linking.
13360 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'
13362 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13363 hardcode_libdir_separator_CXX=:
13365 # Archives containing C++ object files must be created using
13366 # the KAI C++ compiler.
13367 case $host in
13368 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13369 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13370 esac
13372 RCC*)
13373 # Rational C++ 2.4.1
13374 # FIXME: insert proper C++ library support
13375 ld_shlibs_CXX=no
13377 cxx*)
13378 case $host in
13379 osf3*)
13380 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13381 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13382 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13385 allow_undefined_flag_CXX=' -expect_unresolved \*'
13386 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13387 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13388 echo "-hidden">> $lib.exp~
13389 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13390 $RM $lib.exp'
13391 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13393 esac
13395 hardcode_libdir_separator_CXX=:
13397 # Commands to make compiler produce verbose output that lists
13398 # what "hidden" libraries, object files and flags are used when
13399 # linking a shared library.
13401 # There doesn't appear to be a way to prevent this compiler from
13402 # explicitly linking system object files so we need to strip them
13403 # from the output so that they don't get included in the library
13404 # dependencies.
13405 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13408 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13409 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13410 case $host in
13411 osf3*)
13412 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13415 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" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13417 esac
13419 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13420 hardcode_libdir_separator_CXX=:
13422 # Commands to make compiler produce verbose output that lists
13423 # what "hidden" libraries, object files and flags are used when
13424 # linking a shared library.
13425 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13427 else
13428 # FIXME: insert proper C++ library support
13429 ld_shlibs_CXX=no
13432 esac
13435 psos*)
13436 # FIXME: insert proper C++ library support
13437 ld_shlibs_CXX=no
13440 sunos4*)
13441 case $cc_basename in
13442 CC*)
13443 # Sun C++ 4.x
13444 # FIXME: insert proper C++ library support
13445 ld_shlibs_CXX=no
13447 lcc*)
13448 # Lucid
13449 # FIXME: insert proper C++ library support
13450 ld_shlibs_CXX=no
13453 # FIXME: insert proper C++ library support
13454 ld_shlibs_CXX=no
13456 esac
13459 solaris*)
13460 case $cc_basename in
13461 CC*)
13462 # Sun C++ 4.2, 5.x and Centerline C++
13463 archive_cmds_need_lc_CXX=yes
13464 no_undefined_flag_CXX=' -zdefs'
13465 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13466 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13467 $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'
13469 hardcode_libdir_flag_spec_CXX='-R$libdir'
13470 hardcode_shlibpath_var_CXX=no
13471 case $host_os in
13472 solaris2.[0-5] | solaris2.[0-5].*) ;;
13474 # The compiler driver will combine and reorder linker options,
13475 # but understands `-z linker_flag'.
13476 # Supported since Solaris 2.6 (maybe 2.5.1?)
13477 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13479 esac
13480 link_all_deplibs_CXX=yes
13482 output_verbose_link_cmd='echo'
13484 # Archives containing C++ object files must be created using
13485 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13486 # necessary to make sure instantiated templates are included
13487 # in the archive.
13488 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13490 gcx*)
13491 # Green Hills C++ Compiler
13492 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13494 # The C++ compiler must be used to create the archive.
13495 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13498 # GNU C++ compiler with Solaris linker
13499 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13500 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13501 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13502 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13503 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13504 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13506 # Commands to make compiler produce verbose output that lists
13507 # what "hidden" libraries, object files and flags are used when
13508 # linking a shared library.
13509 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13510 else
13511 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13512 # platform.
13513 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13514 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13515 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13517 # Commands to make compiler produce verbose output that lists
13518 # what "hidden" libraries, object files and flags are used when
13519 # linking a shared library.
13520 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13523 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13524 case $host_os in
13525 solaris2.[0-5] | solaris2.[0-5].*) ;;
13527 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13529 esac
13532 esac
13535 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13536 no_undefined_flag_CXX='${wl}-z,text'
13537 archive_cmds_need_lc_CXX=no
13538 hardcode_shlibpath_var_CXX=no
13539 runpath_var='LD_RUN_PATH'
13541 case $cc_basename in
13542 CC*)
13543 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13544 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13547 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13548 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13550 esac
13553 sysv5* | sco3.2v5* | sco5v6*)
13554 # Note: We can NOT use -z defs as we might desire, because we do not
13555 # link with -lc, and that would cause any symbols used from libc to
13556 # always be unresolved, which means just about no library would
13557 # ever link correctly. If we're not using GNU ld we use -z text
13558 # though, which does catch some bad symbols but isn't as heavy-handed
13559 # as -z defs.
13560 no_undefined_flag_CXX='${wl}-z,text'
13561 allow_undefined_flag_CXX='${wl}-z,nodefs'
13562 archive_cmds_need_lc_CXX=no
13563 hardcode_shlibpath_var_CXX=no
13564 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13565 hardcode_libdir_separator_CXX=':'
13566 link_all_deplibs_CXX=yes
13567 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13568 runpath_var='LD_RUN_PATH'
13570 case $cc_basename in
13571 CC*)
13572 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13573 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13576 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13577 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13579 esac
13582 tandem*)
13583 case $cc_basename in
13584 NCC*)
13585 # NonStop-UX NCC 3.20
13586 # FIXME: insert proper C++ library support
13587 ld_shlibs_CXX=no
13590 # FIXME: insert proper C++ library support
13591 ld_shlibs_CXX=no
13593 esac
13596 vxworks*)
13597 # FIXME: insert proper C++ library support
13598 ld_shlibs_CXX=no
13602 # FIXME: insert proper C++ library support
13603 ld_shlibs_CXX=no
13605 esac
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13608 $as_echo "$ld_shlibs_CXX" >&6; }
13609 test "$ld_shlibs_CXX" = no && can_build_shared=no
13611 GCC_CXX="$GXX"
13612 LD_CXX="$LD"
13614 ## CAVEAT EMPTOR:
13615 ## There is no encapsulation within the following macros, do not change
13616 ## the running order or otherwise move them around unless you know exactly
13617 ## what you are doing...
13618 # Dependencies to place before and after the object being linked:
13619 predep_objects_CXX=
13620 postdep_objects_CXX=
13621 predeps_CXX=
13622 postdeps_CXX=
13623 compiler_lib_search_path_CXX=
13625 cat > conftest.$ac_ext <<_LT_EOF
13626 class Foo
13628 public:
13629 Foo (void) { a = 0; }
13630 private:
13631 int a;
13633 _LT_EOF
13635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13636 (eval $ac_compile) 2>&5
13637 ac_status=$?
13638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13639 test $ac_status = 0; }; then
13640 # Parse the compiler output and extract the necessary
13641 # objects, libraries and library flags.
13643 # Sentinel used to keep track of whether or not we are before
13644 # the conftest object file.
13645 pre_test_object_deps_done=no
13647 for p in `eval "$output_verbose_link_cmd"`; do
13648 case $p in
13650 -L* | -R* | -l*)
13651 # Some compilers place space between "-{L,R}" and the path.
13652 # Remove the space.
13653 if test $p = "-L" ||
13654 test $p = "-R"; then
13655 prev=$p
13656 continue
13657 else
13658 prev=
13661 if test "$pre_test_object_deps_done" = no; then
13662 case $p in
13663 -L* | -R*)
13664 # Internal compiler library paths should come after those
13665 # provided the user. The postdeps already come after the
13666 # user supplied libs so there is no need to process them.
13667 if test -z "$compiler_lib_search_path_CXX"; then
13668 compiler_lib_search_path_CXX="${prev}${p}"
13669 else
13670 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13673 # The "-l" case would never come before the object being
13674 # linked, so don't bother handling this case.
13675 esac
13676 else
13677 if test -z "$postdeps_CXX"; then
13678 postdeps_CXX="${prev}${p}"
13679 else
13680 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13685 *.$objext)
13686 # This assumes that the test object file only shows up
13687 # once in the compiler output.
13688 if test "$p" = "conftest.$objext"; then
13689 pre_test_object_deps_done=yes
13690 continue
13693 if test "$pre_test_object_deps_done" = no; then
13694 if test -z "$predep_objects_CXX"; then
13695 predep_objects_CXX="$p"
13696 else
13697 predep_objects_CXX="$predep_objects_CXX $p"
13699 else
13700 if test -z "$postdep_objects_CXX"; then
13701 postdep_objects_CXX="$p"
13702 else
13703 postdep_objects_CXX="$postdep_objects_CXX $p"
13708 *) ;; # Ignore the rest.
13710 esac
13711 done
13713 # Clean up.
13714 rm -f a.out a.exe
13715 else
13716 echo "libtool.m4: error: problem compiling CXX test program"
13719 $RM -f confest.$objext
13721 # PORTME: override above test on systems where it is broken
13722 case $host_os in
13723 interix[3-9]*)
13724 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13725 # hack all around it, let's just trust "g++" to DTRT.
13726 predep_objects_CXX=
13727 postdep_objects_CXX=
13728 postdeps_CXX=
13731 linux*)
13732 case `$CC -V 2>&1 | sed 5q` in
13733 *Sun\ C*)
13734 # Sun C++ 5.9
13736 # The more standards-conforming stlport4 library is
13737 # incompatible with the Cstd library. Avoid specifying
13738 # it if it's in CXXFLAGS. Ignore libCrun as
13739 # -library=stlport4 depends on it.
13740 case " $CXX $CXXFLAGS " in
13741 *" -library=stlport4 "*)
13742 solaris_use_stlport4=yes
13744 esac
13746 if test "$solaris_use_stlport4" != yes; then
13747 postdeps_CXX='-library=Cstd -library=Crun'
13750 esac
13753 solaris*)
13754 case $cc_basename in
13755 CC*)
13756 # The more standards-conforming stlport4 library is
13757 # incompatible with the Cstd library. Avoid specifying
13758 # it if it's in CXXFLAGS. Ignore libCrun as
13759 # -library=stlport4 depends on it.
13760 case " $CXX $CXXFLAGS " in
13761 *" -library=stlport4 "*)
13762 solaris_use_stlport4=yes
13764 esac
13766 # Adding this requires a known-good setup of shared libraries for
13767 # Sun compiler versions before 5.6, else PIC objects from an old
13768 # archive will be linked into the output, leading to subtle bugs.
13769 if test "$solaris_use_stlport4" != yes; then
13770 postdeps_CXX='-library=Cstd -library=Crun'
13773 esac
13775 esac
13778 case " $postdeps_CXX " in
13779 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13780 esac
13781 compiler_lib_search_dirs_CXX=
13782 if test -n "${compiler_lib_search_path_CXX}"; then
13783 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13816 lt_prog_compiler_wl_CXX=
13817 lt_prog_compiler_pic_CXX=
13818 lt_prog_compiler_static_CXX=
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13821 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13823 # C++ specific cases for pic, static, wl, etc.
13824 if test "$GXX" = yes; then
13825 lt_prog_compiler_wl_CXX='-Wl,'
13826 lt_prog_compiler_static_CXX='-static'
13828 case $host_os in
13829 aix*)
13830 # All AIX code is PIC.
13831 if test "$host_cpu" = ia64; then
13832 # AIX 5 now supports IA64 processor
13833 lt_prog_compiler_static_CXX='-Bstatic'
13837 amigaos*)
13838 case $host_cpu in
13839 powerpc)
13840 # see comment about AmigaOS4 .so support
13841 lt_prog_compiler_pic_CXX='-fPIC'
13843 m68k)
13844 # FIXME: we need at least 68020 code to build shared libraries, but
13845 # adding the `-m68020' flag to GCC prevents building anything better,
13846 # like `-m68040'.
13847 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13849 esac
13852 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13853 # PIC is the default for these OSes.
13855 mingw* | cygwin* | os2* | pw32* | cegcc*)
13856 # This hack is so that the source file can tell whether it is being
13857 # built for inclusion in a dll (and should export symbols for example).
13858 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13859 # (--disable-auto-import) libraries
13860 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13862 darwin* | rhapsody*)
13863 # PIC is the default on this platform
13864 # Common symbols not allowed in MH_DYLIB files
13865 lt_prog_compiler_pic_CXX='-fno-common'
13867 *djgpp*)
13868 # DJGPP does not support shared libraries at all
13869 lt_prog_compiler_pic_CXX=
13871 interix[3-9]*)
13872 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13873 # Instead, we relocate shared libraries at runtime.
13875 sysv4*MP*)
13876 if test -d /usr/nec; then
13877 lt_prog_compiler_pic_CXX=-Kconform_pic
13880 hpux*)
13881 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13882 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13883 # sets the default TLS model and affects inlining.
13884 case $host_cpu in
13885 hppa*64*)
13888 lt_prog_compiler_pic_CXX='-fPIC'
13890 esac
13892 *qnx* | *nto*)
13893 # QNX uses GNU C++, but need to define -shared option too, otherwise
13894 # it will coredump.
13895 lt_prog_compiler_pic_CXX='-fPIC -shared'
13898 lt_prog_compiler_pic_CXX='-fPIC'
13900 esac
13901 else
13902 case $host_os in
13903 aix[4-9]*)
13904 # All AIX code is PIC.
13905 if test "$host_cpu" = ia64; then
13906 # AIX 5 now supports IA64 processor
13907 lt_prog_compiler_static_CXX='-Bstatic'
13908 else
13909 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13912 chorus*)
13913 case $cc_basename in
13914 cxch68*)
13915 # Green Hills C++ Compiler
13916 # _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"
13918 esac
13920 dgux*)
13921 case $cc_basename in
13922 ec++*)
13923 lt_prog_compiler_pic_CXX='-KPIC'
13925 ghcx*)
13926 # Green Hills C++ Compiler
13927 lt_prog_compiler_pic_CXX='-pic'
13931 esac
13933 freebsd* | dragonfly*)
13934 # FreeBSD uses GNU C++
13936 hpux9* | hpux10* | hpux11*)
13937 case $cc_basename in
13938 CC*)
13939 lt_prog_compiler_wl_CXX='-Wl,'
13940 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13941 if test "$host_cpu" != ia64; then
13942 lt_prog_compiler_pic_CXX='+Z'
13945 aCC*)
13946 lt_prog_compiler_wl_CXX='-Wl,'
13947 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13948 case $host_cpu in
13949 hppa*64*|ia64*)
13950 # +Z the default
13953 lt_prog_compiler_pic_CXX='+Z'
13955 esac
13959 esac
13961 interix*)
13962 # This is c89, which is MS Visual C++ (no shared libs)
13963 # Anyone wants to do a port?
13965 irix5* | irix6* | nonstopux*)
13966 case $cc_basename in
13967 CC*)
13968 lt_prog_compiler_wl_CXX='-Wl,'
13969 lt_prog_compiler_static_CXX='-non_shared'
13970 # CC pic flag -KPIC is the default.
13974 esac
13976 linux* | k*bsd*-gnu)
13977 case $cc_basename in
13978 KCC*)
13979 # KAI C++ Compiler
13980 lt_prog_compiler_wl_CXX='--backend -Wl,'
13981 lt_prog_compiler_pic_CXX='-fPIC'
13983 ecpc* )
13984 # old Intel C++ for x86_64 which still supported -KPIC.
13985 lt_prog_compiler_wl_CXX='-Wl,'
13986 lt_prog_compiler_pic_CXX='-KPIC'
13987 lt_prog_compiler_static_CXX='-static'
13989 icpc* )
13990 # Intel C++, used to be incompatible with GCC.
13991 # ICC 10 doesn't accept -KPIC any more.
13992 lt_prog_compiler_wl_CXX='-Wl,'
13993 lt_prog_compiler_pic_CXX='-fPIC'
13994 lt_prog_compiler_static_CXX='-static'
13996 pgCC* | pgcpp*)
13997 # Portland Group C++ compiler
13998 lt_prog_compiler_wl_CXX='-Wl,'
13999 lt_prog_compiler_pic_CXX='-fpic'
14000 lt_prog_compiler_static_CXX='-Bstatic'
14002 cxx*)
14003 # Compaq C++
14004 # Make sure the PIC flag is empty. It appears that all Alpha
14005 # Linux and Compaq Tru64 Unix objects are PIC.
14006 lt_prog_compiler_pic_CXX=
14007 lt_prog_compiler_static_CXX='-non_shared'
14009 xlc* | xlC*)
14010 # IBM XL 8.0 on PPC
14011 lt_prog_compiler_wl_CXX='-Wl,'
14012 lt_prog_compiler_pic_CXX='-qpic'
14013 lt_prog_compiler_static_CXX='-qstaticlink'
14016 case `$CC -V 2>&1 | sed 5q` in
14017 *Sun\ C*)
14018 # Sun C++ 5.9
14019 lt_prog_compiler_pic_CXX='-KPIC'
14020 lt_prog_compiler_static_CXX='-Bstatic'
14021 lt_prog_compiler_wl_CXX='-Qoption ld '
14023 esac
14025 esac
14027 lynxos*)
14029 m88k*)
14031 mvs*)
14032 case $cc_basename in
14033 cxx*)
14034 lt_prog_compiler_pic_CXX='-W c,exportall'
14038 esac
14040 netbsd*)
14042 *qnx* | *nto*)
14043 # QNX uses GNU C++, but need to define -shared option too, otherwise
14044 # it will coredump.
14045 lt_prog_compiler_pic_CXX='-fPIC -shared'
14047 osf3* | osf4* | osf5*)
14048 case $cc_basename in
14049 KCC*)
14050 lt_prog_compiler_wl_CXX='--backend -Wl,'
14052 RCC*)
14053 # Rational C++ 2.4.1
14054 lt_prog_compiler_pic_CXX='-pic'
14056 cxx*)
14057 # Digital/Compaq C++
14058 lt_prog_compiler_wl_CXX='-Wl,'
14059 # Make sure the PIC flag is empty. It appears that all Alpha
14060 # Linux and Compaq Tru64 Unix objects are PIC.
14061 lt_prog_compiler_pic_CXX=
14062 lt_prog_compiler_static_CXX='-non_shared'
14066 esac
14068 psos*)
14070 solaris*)
14071 case $cc_basename in
14072 CC*)
14073 # Sun C++ 4.2, 5.x and Centerline C++
14074 lt_prog_compiler_pic_CXX='-KPIC'
14075 lt_prog_compiler_static_CXX='-Bstatic'
14076 lt_prog_compiler_wl_CXX='-Qoption ld '
14078 gcx*)
14079 # Green Hills C++ Compiler
14080 lt_prog_compiler_pic_CXX='-PIC'
14084 esac
14086 sunos4*)
14087 case $cc_basename in
14088 CC*)
14089 # Sun C++ 4.x
14090 lt_prog_compiler_pic_CXX='-pic'
14091 lt_prog_compiler_static_CXX='-Bstatic'
14093 lcc*)
14094 # Lucid
14095 lt_prog_compiler_pic_CXX='-pic'
14099 esac
14101 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14102 case $cc_basename in
14103 CC*)
14104 lt_prog_compiler_wl_CXX='-Wl,'
14105 lt_prog_compiler_pic_CXX='-KPIC'
14106 lt_prog_compiler_static_CXX='-Bstatic'
14108 esac
14110 tandem*)
14111 case $cc_basename in
14112 NCC*)
14113 # NonStop-UX NCC 3.20
14114 lt_prog_compiler_pic_CXX='-KPIC'
14118 esac
14120 vxworks*)
14123 lt_prog_compiler_can_build_shared_CXX=no
14125 esac
14128 case $host_os in
14129 # For platforms which do not support PIC, -DPIC is meaningless:
14130 *djgpp*)
14131 lt_prog_compiler_pic_CXX=
14134 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14136 esac
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14138 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14143 # Check to make sure the PIC flag actually works.
14145 if test -n "$lt_prog_compiler_pic_CXX"; then
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14147 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14148 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14149 $as_echo_n "(cached) " >&6
14150 else
14151 lt_cv_prog_compiler_pic_works_CXX=no
14152 ac_outfile=conftest.$ac_objext
14153 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14154 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14155 # Insert the option either (1) after the last *FLAGS variable, or
14156 # (2) before a word containing "conftest.", or (3) at the end.
14157 # Note that $ac_compile itself does not contain backslashes and begins
14158 # with a dollar sign (not a hyphen), so the echo should work correctly.
14159 # The option is referenced via a variable to avoid confusing sed.
14160 lt_compile=`echo "$ac_compile" | $SED \
14161 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14162 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14163 -e 's:$: $lt_compiler_flag:'`
14164 (eval echo "\"\$as_me:14164: $lt_compile\"" >&5)
14165 (eval "$lt_compile" 2>conftest.err)
14166 ac_status=$?
14167 cat conftest.err >&5
14168 echo "$as_me:14168: \$? = $ac_status" >&5
14169 if (exit $ac_status) && test -s "$ac_outfile"; then
14170 # The compiler can only warn and ignore the option if not recognized
14171 # So say no if there are warnings other than the usual output.
14172 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14173 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14174 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14175 lt_cv_prog_compiler_pic_works_CXX=yes
14178 $RM conftest*
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14182 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14184 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14185 case $lt_prog_compiler_pic_CXX in
14186 "" | " "*) ;;
14187 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14188 esac
14189 else
14190 lt_prog_compiler_pic_CXX=
14191 lt_prog_compiler_can_build_shared_CXX=no
14199 # Check to make sure the static flag actually works.
14201 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14203 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14204 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14205 $as_echo_n "(cached) " >&6
14206 else
14207 lt_cv_prog_compiler_static_works_CXX=no
14208 save_LDFLAGS="$LDFLAGS"
14209 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14210 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14211 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14212 # The linker can only warn and ignore the option if not recognized
14213 # So say no if there are warnings
14214 if test -s conftest.err; then
14215 # Append any errors to the config.log.
14216 cat conftest.err 1>&5
14217 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14218 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14219 if diff conftest.exp conftest.er2 >/dev/null; then
14220 lt_cv_prog_compiler_static_works_CXX=yes
14222 else
14223 lt_cv_prog_compiler_static_works_CXX=yes
14226 $RM -r conftest*
14227 LDFLAGS="$save_LDFLAGS"
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14231 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14233 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14235 else
14236 lt_prog_compiler_static_CXX=
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14243 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14244 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14245 $as_echo_n "(cached) " >&6
14246 else
14247 lt_cv_prog_compiler_c_o_CXX=no
14248 $RM -r conftest 2>/dev/null
14249 mkdir conftest
14250 cd conftest
14251 mkdir out
14252 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14254 lt_compiler_flag="-o out/conftest2.$ac_objext"
14255 # Insert the option either (1) after the last *FLAGS variable, or
14256 # (2) before a word containing "conftest.", or (3) at the end.
14257 # Note that $ac_compile itself does not contain backslashes and begins
14258 # with a dollar sign (not a hyphen), so the echo should work correctly.
14259 lt_compile=`echo "$ac_compile" | $SED \
14260 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14261 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14262 -e 's:$: $lt_compiler_flag:'`
14263 (eval echo "\"\$as_me:14263: $lt_compile\"" >&5)
14264 (eval "$lt_compile" 2>out/conftest.err)
14265 ac_status=$?
14266 cat out/conftest.err >&5
14267 echo "$as_me:14267: \$? = $ac_status" >&5
14268 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14269 then
14270 # The compiler can only warn and ignore the option if not recognized
14271 # So say no if there are warnings
14272 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14273 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14274 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14275 lt_cv_prog_compiler_c_o_CXX=yes
14278 chmod u+w . 2>&5
14279 $RM conftest*
14280 # SGI C++ compiler will create directory out/ii_files/ for
14281 # template instantiation
14282 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14283 $RM out/* && rmdir out
14284 cd ..
14285 $RM -r conftest
14286 $RM conftest*
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14290 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14295 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14296 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14297 $as_echo_n "(cached) " >&6
14298 else
14299 lt_cv_prog_compiler_c_o_CXX=no
14300 $RM -r conftest 2>/dev/null
14301 mkdir conftest
14302 cd conftest
14303 mkdir out
14304 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14306 lt_compiler_flag="-o out/conftest2.$ac_objext"
14307 # Insert the option either (1) after the last *FLAGS variable, or
14308 # (2) before a word containing "conftest.", or (3) at the end.
14309 # Note that $ac_compile itself does not contain backslashes and begins
14310 # with a dollar sign (not a hyphen), so the echo should work correctly.
14311 lt_compile=`echo "$ac_compile" | $SED \
14312 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14314 -e 's:$: $lt_compiler_flag:'`
14315 (eval echo "\"\$as_me:14315: $lt_compile\"" >&5)
14316 (eval "$lt_compile" 2>out/conftest.err)
14317 ac_status=$?
14318 cat out/conftest.err >&5
14319 echo "$as_me:14319: \$? = $ac_status" >&5
14320 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14321 then
14322 # The compiler can only warn and ignore the option if not recognized
14323 # So say no if there are warnings
14324 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14325 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14326 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14327 lt_cv_prog_compiler_c_o_CXX=yes
14330 chmod u+w . 2>&5
14331 $RM conftest*
14332 # SGI C++ compiler will create directory out/ii_files/ for
14333 # template instantiation
14334 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14335 $RM out/* && rmdir out
14336 cd ..
14337 $RM -r conftest
14338 $RM conftest*
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14342 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14347 hard_links="nottested"
14348 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14349 # do not overwrite the value of need_locks provided by the user
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14351 $as_echo_n "checking if we can lock with hard links... " >&6; }
14352 hard_links=yes
14353 $RM conftest*
14354 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14355 touch conftest.a
14356 ln conftest.a conftest.b 2>&5 || hard_links=no
14357 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14359 $as_echo "$hard_links" >&6; }
14360 if test "$hard_links" = no; then
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14362 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14363 need_locks=warn
14365 else
14366 need_locks=no
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14372 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14374 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14375 case $host_os in
14376 aix[4-9]*)
14377 # If we're using GNU nm, then we don't want the "-C" option.
14378 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14379 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14380 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14381 else
14382 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'
14385 pw32*)
14386 export_symbols_cmds_CXX="$ltdll_cmds"
14388 cygwin* | mingw* | cegcc*)
14389 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'
14392 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14394 esac
14395 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14398 $as_echo "$ld_shlibs_CXX" >&6; }
14399 test "$ld_shlibs_CXX" = no && can_build_shared=no
14401 with_gnu_ld_CXX=$with_gnu_ld
14409 # Do we need to explicitly link libc?
14411 case "x$archive_cmds_need_lc_CXX" in
14412 x|xyes)
14413 # Assume -lc should be added
14414 archive_cmds_need_lc_CXX=yes
14416 if test "$enable_shared" = yes && test "$GCC" = yes; then
14417 case $archive_cmds_CXX in
14418 *'~'*)
14419 # FIXME: we may have to deal with multi-command sequences.
14421 '$CC '*)
14422 # Test whether the compiler implicitly links with -lc since on some
14423 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14424 # to ld, don't add -lc before -lgcc.
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14426 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14427 $RM conftest*
14428 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14431 (eval $ac_compile) 2>&5
14432 ac_status=$?
14433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14434 test $ac_status = 0; } 2>conftest.err; then
14435 soname=conftest
14436 lib=conftest
14437 libobjs=conftest.$ac_objext
14438 deplibs=
14439 wl=$lt_prog_compiler_wl_CXX
14440 pic_flag=$lt_prog_compiler_pic_CXX
14441 compiler_flags=-v
14442 linker_flags=-v
14443 verstring=
14444 output_objdir=.
14445 libname=conftest
14446 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14447 allow_undefined_flag_CXX=
14448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14449 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14450 ac_status=$?
14451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14452 test $ac_status = 0; }
14453 then
14454 archive_cmds_need_lc_CXX=no
14455 else
14456 archive_cmds_need_lc_CXX=yes
14458 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14459 else
14460 cat conftest.err 1>&5
14462 $RM conftest*
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14464 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14466 esac
14469 esac
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14535 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14537 library_names_spec=
14538 libname_spec='lib$name'
14539 soname_spec=
14540 shrext_cmds=".so"
14541 postinstall_cmds=
14542 postuninstall_cmds=
14543 finish_cmds=
14544 finish_eval=
14545 shlibpath_var=
14546 shlibpath_overrides_runpath=unknown
14547 version_type=none
14548 dynamic_linker="$host_os ld.so"
14549 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14550 need_lib_prefix=unknown
14551 hardcode_into_libs=no
14553 # when you set need_version to no, make sure it does not cause -set_version
14554 # flags to be left without arguments
14555 need_version=unknown
14557 case $host_os in
14558 aix3*)
14559 version_type=linux
14560 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14561 shlibpath_var=LIBPATH
14563 # AIX 3 has no versioning support, so we append a major version to the name.
14564 soname_spec='${libname}${release}${shared_ext}$major'
14567 aix[4-9]*)
14568 version_type=linux
14569 need_lib_prefix=no
14570 need_version=no
14571 hardcode_into_libs=yes
14572 if test "$host_cpu" = ia64; then
14573 # AIX 5 supports IA64
14574 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14575 shlibpath_var=LD_LIBRARY_PATH
14576 else
14577 # With GCC up to 2.95.x, collect2 would create an import file
14578 # for dependence libraries. The import file would start with
14579 # the line `#! .'. This would cause the generated library to
14580 # depend on `.', always an invalid library. This was fixed in
14581 # development snapshots of GCC prior to 3.0.
14582 case $host_os in
14583 aix4 | aix4.[01] | aix4.[01].*)
14584 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14585 echo ' yes '
14586 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14588 else
14589 can_build_shared=no
14592 esac
14593 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14594 # soname into executable. Probably we can add versioning support to
14595 # collect2, so additional links can be useful in future.
14596 if test "$aix_use_runtimelinking" = yes; then
14597 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14598 # instead of lib<name>.a to let people know that these are not
14599 # typical AIX shared libraries.
14600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14601 else
14602 # We preserve .a as extension for shared libraries through AIX4.2
14603 # and later when we are not doing run time linking.
14604 library_names_spec='${libname}${release}.a $libname.a'
14605 soname_spec='${libname}${release}${shared_ext}$major'
14607 shlibpath_var=LIBPATH
14611 amigaos*)
14612 case $host_cpu in
14613 powerpc)
14614 # Since July 2007 AmigaOS4 officially supports .so libraries.
14615 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14618 m68k)
14619 library_names_spec='$libname.ixlibrary $libname.a'
14620 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14621 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
14623 esac
14626 beos*)
14627 library_names_spec='${libname}${shared_ext}'
14628 dynamic_linker="$host_os ld.so"
14629 shlibpath_var=LIBRARY_PATH
14632 bsdi[45]*)
14633 version_type=linux
14634 need_version=no
14635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14636 soname_spec='${libname}${release}${shared_ext}$major'
14637 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14638 shlibpath_var=LD_LIBRARY_PATH
14639 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14640 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14641 # the default ld.so.conf also contains /usr/contrib/lib and
14642 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14643 # libtool to hard-code these into programs
14646 cygwin* | mingw* | pw32* | cegcc*)
14647 version_type=windows
14648 shrext_cmds=".dll"
14649 need_version=no
14650 need_lib_prefix=no
14652 case $GCC,$host_os in
14653 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14654 library_names_spec='$libname.dll.a'
14655 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14656 postinstall_cmds='base_file=`basename \${file}`~
14657 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14658 dldir=$destdir/`dirname \$dlpath`~
14659 test -d \$dldir || mkdir -p \$dldir~
14660 $install_prog $dir/$dlname \$dldir/$dlname~
14661 chmod a+x \$dldir/$dlname~
14662 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14663 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14665 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14666 dlpath=$dir/\$dldll~
14667 $RM \$dlpath'
14668 shlibpath_overrides_runpath=yes
14670 case $host_os in
14671 cygwin*)
14672 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14673 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14674 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14676 mingw* | cegcc*)
14677 # MinGW DLLs use traditional 'lib' prefix
14678 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14679 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14680 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14681 # It is most probably a Windows format PATH printed by
14682 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14683 # path with ; separators, and with drive letters. We can handle the
14684 # drive letters (cygwin fileutils understands them), so leave them,
14685 # especially as we might pass files found there to a mingw objdump,
14686 # which wouldn't understand a cygwinified path. Ahh.
14687 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14688 else
14689 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14692 pw32*)
14693 # pw32 DLLs use 'pw' prefix rather than 'lib'
14694 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14696 esac
14700 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14702 esac
14703 dynamic_linker='Win32 ld.exe'
14704 # FIXME: first we should search . and the directory the executable is in
14705 shlibpath_var=PATH
14708 darwin* | rhapsody*)
14709 dynamic_linker="$host_os dyld"
14710 version_type=darwin
14711 need_lib_prefix=no
14712 need_version=no
14713 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14714 soname_spec='${libname}${release}${major}$shared_ext'
14715 shlibpath_overrides_runpath=yes
14716 shlibpath_var=DYLD_LIBRARY_PATH
14717 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14719 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14722 dgux*)
14723 version_type=linux
14724 need_lib_prefix=no
14725 need_version=no
14726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14727 soname_spec='${libname}${release}${shared_ext}$major'
14728 shlibpath_var=LD_LIBRARY_PATH
14731 freebsd1*)
14732 dynamic_linker=no
14735 freebsd* | dragonfly*)
14736 # DragonFly does not have aout. When/if they implement a new
14737 # versioning mechanism, adjust this.
14738 if test -x /usr/bin/objformat; then
14739 objformat=`/usr/bin/objformat`
14740 else
14741 case $host_os in
14742 freebsd[123]*) objformat=aout ;;
14743 *) objformat=elf ;;
14744 esac
14746 version_type=freebsd-$objformat
14747 case $version_type in
14748 freebsd-elf*)
14749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14750 need_version=no
14751 need_lib_prefix=no
14753 freebsd-*)
14754 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14755 need_version=yes
14757 esac
14758 shlibpath_var=LD_LIBRARY_PATH
14759 case $host_os in
14760 freebsd2*)
14761 shlibpath_overrides_runpath=yes
14763 freebsd3.[01]* | freebsdelf3.[01]*)
14764 shlibpath_overrides_runpath=yes
14765 hardcode_into_libs=yes
14767 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14768 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14769 shlibpath_overrides_runpath=no
14770 hardcode_into_libs=yes
14772 *) # from 4.6 on, and DragonFly
14773 shlibpath_overrides_runpath=yes
14774 hardcode_into_libs=yes
14776 esac
14779 gnu*)
14780 version_type=linux
14781 need_lib_prefix=no
14782 need_version=no
14783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14784 soname_spec='${libname}${release}${shared_ext}$major'
14785 shlibpath_var=LD_LIBRARY_PATH
14786 hardcode_into_libs=yes
14789 hpux9* | hpux10* | hpux11*)
14790 # Give a soname corresponding to the major version so that dld.sl refuses to
14791 # link against other versions.
14792 version_type=sunos
14793 need_lib_prefix=no
14794 need_version=no
14795 case $host_cpu in
14796 ia64*)
14797 shrext_cmds='.so'
14798 hardcode_into_libs=yes
14799 dynamic_linker="$host_os dld.so"
14800 shlibpath_var=LD_LIBRARY_PATH
14801 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14803 soname_spec='${libname}${release}${shared_ext}$major'
14804 if test "X$HPUX_IA64_MODE" = X32; then
14805 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14806 else
14807 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14809 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14811 hppa*64*)
14812 shrext_cmds='.sl'
14813 hardcode_into_libs=yes
14814 dynamic_linker="$host_os dld.sl"
14815 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14816 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14818 soname_spec='${libname}${release}${shared_ext}$major'
14819 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14820 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14823 shrext_cmds='.sl'
14824 dynamic_linker="$host_os dld.sl"
14825 shlibpath_var=SHLIB_PATH
14826 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14828 soname_spec='${libname}${release}${shared_ext}$major'
14830 esac
14831 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14832 postinstall_cmds='chmod 555 $lib'
14835 interix[3-9]*)
14836 version_type=linux
14837 need_lib_prefix=no
14838 need_version=no
14839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14840 soname_spec='${libname}${release}${shared_ext}$major'
14841 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14842 shlibpath_var=LD_LIBRARY_PATH
14843 shlibpath_overrides_runpath=no
14844 hardcode_into_libs=yes
14847 irix5* | irix6* | nonstopux*)
14848 case $host_os in
14849 nonstopux*) version_type=nonstopux ;;
14851 if test "$lt_cv_prog_gnu_ld" = yes; then
14852 version_type=linux
14853 else
14854 version_type=irix
14855 fi ;;
14856 esac
14857 need_lib_prefix=no
14858 need_version=no
14859 soname_spec='${libname}${release}${shared_ext}$major'
14860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14861 case $host_os in
14862 irix5* | nonstopux*)
14863 libsuff= shlibsuff=
14866 case $LD in # libtool.m4 will add one of these switches to LD
14867 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14868 libsuff= shlibsuff= libmagic=32-bit;;
14869 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14870 libsuff=32 shlibsuff=N32 libmagic=N32;;
14871 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14872 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14873 *) libsuff= shlibsuff= libmagic=never-match;;
14874 esac
14876 esac
14877 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14878 shlibpath_overrides_runpath=no
14879 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14880 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14881 hardcode_into_libs=yes
14884 # No shared lib support for Linux oldld, aout, or coff.
14885 linux*oldld* | linux*aout* | linux*coff*)
14886 dynamic_linker=no
14889 # This must be Linux ELF.
14890 linux* | k*bsd*-gnu)
14891 version_type=linux
14892 need_lib_prefix=no
14893 need_version=no
14894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14895 soname_spec='${libname}${release}${shared_ext}$major'
14896 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14897 shlibpath_var=LD_LIBRARY_PATH
14898 shlibpath_overrides_runpath=no
14899 # Some binutils ld are patched to set DT_RUNPATH
14900 save_LDFLAGS=$LDFLAGS
14901 save_libdir=$libdir
14902 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14903 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14905 /* end confdefs.h. */
14908 main ()
14912 return 0;
14914 _ACEOF
14915 if ac_fn_cxx_try_link "$LINENO"; then :
14916 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14917 shlibpath_overrides_runpath=yes
14920 rm -f core conftest.err conftest.$ac_objext \
14921 conftest$ac_exeext conftest.$ac_ext
14922 LDFLAGS=$save_LDFLAGS
14923 libdir=$save_libdir
14925 # This implies no fast_install, which is unacceptable.
14926 # Some rework will be needed to allow for fast_install
14927 # before this can be enabled.
14928 hardcode_into_libs=yes
14930 # Append ld.so.conf contents to the search path
14931 if test -f /etc/ld.so.conf; then
14932 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;/^$/d' | tr '\n' ' '`
14933 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14936 # We used to test for /lib/ld.so.1 and disable shared libraries on
14937 # powerpc, because MkLinux only supported shared libraries with the
14938 # GNU dynamic linker. Since this was broken with cross compilers,
14939 # most powerpc-linux boxes support dynamic linking these days and
14940 # people can always --disable-shared, the test was removed, and we
14941 # assume the GNU/Linux dynamic linker is in use.
14942 dynamic_linker='GNU/Linux ld.so'
14945 netbsd*)
14946 version_type=sunos
14947 need_lib_prefix=no
14948 need_version=no
14949 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14951 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14952 dynamic_linker='NetBSD (a.out) ld.so'
14953 else
14954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14955 soname_spec='${libname}${release}${shared_ext}$major'
14956 dynamic_linker='NetBSD ld.elf_so'
14958 shlibpath_var=LD_LIBRARY_PATH
14959 shlibpath_overrides_runpath=yes
14960 hardcode_into_libs=yes
14963 newsos6)
14964 version_type=linux
14965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14966 shlibpath_var=LD_LIBRARY_PATH
14967 shlibpath_overrides_runpath=yes
14970 *nto* | *qnx*)
14971 version_type=qnx
14972 need_lib_prefix=no
14973 need_version=no
14974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14975 soname_spec='${libname}${release}${shared_ext}$major'
14976 shlibpath_var=LD_LIBRARY_PATH
14977 shlibpath_overrides_runpath=no
14978 hardcode_into_libs=yes
14979 dynamic_linker='ldqnx.so'
14982 openbsd*)
14983 version_type=sunos
14984 sys_lib_dlsearch_path_spec="/usr/lib"
14985 need_lib_prefix=no
14986 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14987 case $host_os in
14988 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14989 *) need_version=no ;;
14990 esac
14991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14992 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14993 shlibpath_var=LD_LIBRARY_PATH
14994 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14995 case $host_os in
14996 openbsd2.[89] | openbsd2.[89].*)
14997 shlibpath_overrides_runpath=no
15000 shlibpath_overrides_runpath=yes
15002 esac
15003 else
15004 shlibpath_overrides_runpath=yes
15008 os2*)
15009 libname_spec='$name'
15010 shrext_cmds=".dll"
15011 need_lib_prefix=no
15012 library_names_spec='$libname${shared_ext} $libname.a'
15013 dynamic_linker='OS/2 ld.exe'
15014 shlibpath_var=LIBPATH
15017 osf3* | osf4* | osf5*)
15018 version_type=osf
15019 need_lib_prefix=no
15020 need_version=no
15021 soname_spec='${libname}${release}${shared_ext}$major'
15022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15023 shlibpath_var=LD_LIBRARY_PATH
15024 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15025 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15028 rdos*)
15029 dynamic_linker=no
15032 solaris*)
15033 version_type=linux
15034 need_lib_prefix=no
15035 need_version=no
15036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15037 soname_spec='${libname}${release}${shared_ext}$major'
15038 shlibpath_var=LD_LIBRARY_PATH
15039 shlibpath_overrides_runpath=yes
15040 hardcode_into_libs=yes
15041 # ldd complains unless libraries are executable
15042 postinstall_cmds='chmod +x $lib'
15045 sunos4*)
15046 version_type=sunos
15047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15048 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15049 shlibpath_var=LD_LIBRARY_PATH
15050 shlibpath_overrides_runpath=yes
15051 if test "$with_gnu_ld" = yes; then
15052 need_lib_prefix=no
15054 need_version=yes
15057 sysv4 | sysv4.3*)
15058 version_type=linux
15059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15060 soname_spec='${libname}${release}${shared_ext}$major'
15061 shlibpath_var=LD_LIBRARY_PATH
15062 case $host_vendor in
15063 sni)
15064 shlibpath_overrides_runpath=no
15065 need_lib_prefix=no
15066 runpath_var=LD_RUN_PATH
15068 siemens)
15069 need_lib_prefix=no
15071 motorola)
15072 need_lib_prefix=no
15073 need_version=no
15074 shlibpath_overrides_runpath=no
15075 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15077 esac
15080 sysv4*MP*)
15081 if test -d /usr/nec ;then
15082 version_type=linux
15083 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15084 soname_spec='$libname${shared_ext}.$major'
15085 shlibpath_var=LD_LIBRARY_PATH
15089 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15090 version_type=freebsd-elf
15091 need_lib_prefix=no
15092 need_version=no
15093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15094 soname_spec='${libname}${release}${shared_ext}$major'
15095 shlibpath_var=LD_LIBRARY_PATH
15096 shlibpath_overrides_runpath=yes
15097 hardcode_into_libs=yes
15098 if test "$with_gnu_ld" = yes; then
15099 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15100 else
15101 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15102 case $host_os in
15103 sco3.2v5*)
15104 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15106 esac
15108 sys_lib_dlsearch_path_spec='/usr/lib'
15111 tpf*)
15112 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15113 version_type=linux
15114 need_lib_prefix=no
15115 need_version=no
15116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15117 shlibpath_var=LD_LIBRARY_PATH
15118 shlibpath_overrides_runpath=no
15119 hardcode_into_libs=yes
15122 uts4*)
15123 version_type=linux
15124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15125 soname_spec='${libname}${release}${shared_ext}$major'
15126 shlibpath_var=LD_LIBRARY_PATH
15130 dynamic_linker=no
15132 esac
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15134 $as_echo "$dynamic_linker" >&6; }
15135 test "$dynamic_linker" = no && can_build_shared=no
15137 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15138 if test "$GCC" = yes; then
15139 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15142 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15143 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15145 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15146 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15185 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15186 hardcode_action_CXX=
15187 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15188 test -n "$runpath_var_CXX" ||
15189 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15191 # We can hardcode non-existent directories.
15192 if test "$hardcode_direct_CXX" != no &&
15193 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15194 # have to relink, otherwise we might link with an installed library
15195 # when we should be linking with a yet-to-be-installed one
15196 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15197 test "$hardcode_minus_L_CXX" != no; then
15198 # Linking always hardcodes the temporary library directory.
15199 hardcode_action_CXX=relink
15200 else
15201 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15202 hardcode_action_CXX=immediate
15204 else
15205 # We cannot hardcode anything, or else we can only hardcode existing
15206 # directories.
15207 hardcode_action_CXX=unsupported
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15210 $as_echo "$hardcode_action_CXX" >&6; }
15212 if test "$hardcode_action_CXX" = relink ||
15213 test "$inherit_rpath_CXX" = yes; then
15214 # Fast installation is not supported
15215 enable_fast_install=no
15216 elif test "$shlibpath_overrides_runpath" = yes ||
15217 test "$enable_shared" = no; then
15218 # Fast installation is not necessary
15219 enable_fast_install=needless
15228 fi # test -n "$compiler"
15230 CC=$lt_save_CC
15231 LDCXX=$LD
15232 LD=$lt_save_LD
15233 GCC=$lt_save_GCC
15234 with_gnu_ld=$lt_save_with_gnu_ld
15235 lt_cv_path_LDCXX=$lt_cv_path_LD
15236 lt_cv_path_LD=$lt_save_path_LD
15237 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15238 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15239 fi # test "$_lt_caught_CXX_error" != yes
15241 ac_ext=cpp
15242 ac_cpp='$CXXCPP $CPPFLAGS'
15243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15250 # Check whether --enable-developer was given.
15251 if test "${enable_developer+set}" = set; then :
15252 enableval=$enable_developer;
15253 else
15254 case ${PACKAGE_VERSION} in
15255 0.*|*99*|*alpha*|*beta*)
15256 enable_developer=yes
15259 enable_developer=no
15261 esac
15265 if test ${enable_developer} = yes; then
15266 try_c_cxx_flags="-g \
15267 -Wall \
15268 -Wcast-qual \
15269 -Werror \
15270 -Wextra \
15271 -Wno-unused-parameter \
15272 -Wpointer-arith \
15273 -Wredundant-decls \
15274 -Wreturn-type \
15275 -Wshadow \
15276 -Wsign-compare \
15277 -Wswitch \
15278 -Wwrite-strings"
15280 try_c_flags="-Wmissing-prototypes \
15281 -Wno-traditional \
15282 -Wstrict-prototypes"
15284 try_cxx_flags="-Wabi \
15285 -Wctor-dtor-privacy \
15286 -Wno-deprecated \
15287 -Wno-non-template-friend \
15288 -Wno-pmf-conversions \
15289 -Wnon-virtual-dtor \
15290 -Woverloaded-virtual \
15291 -Wreorder \
15292 -Wsign-promo \
15293 -Wsynth"
15296 # The following flags should also be enabled but cannot be. Reasons
15297 # given below.
15299 # -Wold-style-cast: Raises errors when using TIOCGWINSZ, at least under
15300 # Mac OS X. This is due to the way _IOR is defined.
15302 else
15303 try_c_cxx_flags="-DNDEBUG"
15305 try_c_cxx_flags="${try_c_cxx_flags} -D_FORTIFY_SOURCE=2"
15308 valid_cflags=
15309 for f in ${try_c_cxx_flags} ${try_c_flags}; do
15311 ac_ext=c
15312 ac_cpp='$CPP $CPPFLAGS'
15313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports ${f}" >&5
15318 $as_echo_n "checking whether ${CC} supports ${f}... " >&6; }
15319 saved_cflags="${CFLAGS}"
15320 valid_cflag=no
15321 CFLAGS="${CFLAGS} ${f}"
15322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15323 /* end confdefs.h. */
15324 int main(void) { return 0; }
15325 _ACEOF
15326 if ac_fn_c_try_link "$LINENO"; then :
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15328 $as_echo "yes" >&6; }
15329 valid_cflag=yes
15330 else
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15332 $as_echo "no" >&6; }
15334 rm -f core conftest.err conftest.$ac_objext \
15335 conftest$ac_exeext conftest.$ac_ext
15336 CFLAGS="${saved_cflags}"
15337 ac_ext=cpp
15338 ac_cpp='$CXXCPP $CPPFLAGS'
15339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15344 if test ${valid_cflag} = yes; then
15345 valid_cflags="${valid_cflags} ${f}"
15348 done
15349 if test -n "${valid_cflags}"; then
15350 CFLAGS="${CFLAGS} ${valid_cflags}"
15354 valid_cxxflags=
15355 for f in ${try_c_cxx_flags} ${try_cxx_flags}; do
15357 ac_ext=cpp
15358 ac_cpp='$CXXCPP $CPPFLAGS'
15359 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15360 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15361 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports ${f}" >&5
15364 $as_echo_n "checking whether ${CXX} supports ${f}... " >&6; }
15365 saved_cxxflags="${CXXFLAGS}"
15366 valid_cxxflag=no
15367 CXXFLAGS="${CXXFLAGS} ${f}"
15368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15369 /* end confdefs.h. */
15370 int main(void) { return 0; }
15371 _ACEOF
15372 if ac_fn_cxx_try_link "$LINENO"; then :
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15374 $as_echo "yes" >&6; }
15375 valid_cxxflag=yes
15376 else
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15378 $as_echo "no" >&6; }
15380 rm -f core conftest.err conftest.$ac_objext \
15381 conftest$ac_exeext conftest.$ac_ext
15382 CXXFLAGS="${saved_cxxflags}"
15383 ac_ext=cpp
15384 ac_cpp='$CXXCPP $CPPFLAGS'
15385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15390 if test ${valid_cxxflag} = yes; then
15391 valid_cxxflags="${valid_cxxflags} ${f}"
15394 done
15395 if test -n "${valid_cxxflags}"; then
15396 CXXFLAGS="${CXXFLAGS} ${valid_cxxflags}"
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is in std" >&5
15405 $as_echo_n "checking whether vsnprintf is in std... " >&6; }
15406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15407 /* end confdefs.h. */
15408 #include <cstdarg>
15409 #include <cstdio>
15410 int main(void) {
15411 va_list ap;
15412 char* buf = NULL;
15413 const char* fmt = NULL;
15414 std::vsnprintf(buf, 0, fmt, ap);
15416 return 0;
15418 _ACEOF
15419 if ac_fn_cxx_try_compile "$LINENO"; then :
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15421 $as_echo "yes" >&6; }
15423 $as_echo "#define HAVE_VSNPRINTF_IN_STD 1" >>confdefs.h
15425 else
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15427 $as_echo "no" >&6; }
15430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt allows a + sign for POSIX behavior" >&5
15435 $as_echo_n "checking whether getopt allows a + sign for POSIX behavior... " >&6; }
15436 if test "$cross_compiling" = yes; then :
15437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15439 as_fn_error "cannot run test program while cross compiling
15440 See \`config.log' for more details." "$LINENO" 5; }
15441 else
15442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15443 /* end confdefs.h. */
15445 #include <stdlib.h>
15446 #include <string.h>
15447 #include <unistd.h>
15450 main(void)
15452 int argc = 4;
15453 char* argv[5] = {
15454 strdup("conftest"),
15455 strdup("-+"),
15456 strdup("-a"),
15457 strdup("bar"),
15458 NULL
15460 int ch;
15461 int seen_a = 0, seen_plus = 0;
15463 while ((ch = getopt(argc, argv, "+a:")) != -1) {
15464 switch (ch) {
15465 case 'a':
15466 seen_a = 1;
15467 break;
15469 case '+':
15470 seen_plus = 1;
15471 break;
15473 case '?':
15474 default:
15479 return (seen_a && !seen_plus) ? EXIT_SUCCESS : EXIT_FAILURE;
15482 _ACEOF
15483 if ac_fn_cxx_try_run "$LINENO"; then :
15484 getopt_allows_plus=yes
15486 $as_echo "#define HAVE_GNU_GETOPT 1" >>confdefs.h
15488 else
15489 getopt_allows_plus=no
15491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15492 conftest.$ac_objext conftest.beam conftest.$ac_ext
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${getopt_allows_plus}" >&5
15496 $as_echo "${getopt_allows_plus}" >&6; }
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((noreturn)) is supported" >&5
15500 $as_echo_n "checking whether __attribute__((noreturn)) is supported... " >&6; }
15501 if test "$cross_compiling" = yes; then :
15502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15504 as_fn_error "cannot run test program while cross compiling
15505 See \`config.log' for more details." "$LINENO" 5; }
15506 else
15507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15508 /* end confdefs.h. */
15509 int main(void)
15511 #if ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2)
15512 return 0;
15513 #else
15514 return 1;
15515 #endif
15518 _ACEOF
15519 if ac_fn_cxx_try_run "$LINENO"; then :
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15521 $as_echo "yes" >&6; }
15522 value="__attribute__((noreturn))"
15523 else
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15525 $as_echo "no" >&6; }
15526 value=""
15529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15530 conftest.$ac_objext conftest.beam conftest.$ac_ext
15533 ATTRIBUTE_NORETURN=${value}
15537 for ac_func in putenv setenv unsetenv
15538 do :
15539 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15540 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
15541 eval as_val=\$$as_ac_var
15542 if test "x$as_val" = x""yes; then :
15543 cat >>confdefs.h <<_ACEOF
15544 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15545 _ACEOF
15548 done
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv is in std" >&5
15554 $as_echo_n "checking whether putenv is in std... " >&6; }
15555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15556 /* end confdefs.h. */
15557 #include <cstdio>
15558 int main(void) {
15559 std::putenv("a=b");
15561 return 0;
15563 _ACEOF
15564 if ac_fn_cxx_try_compile "$LINENO"; then :
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15566 $as_echo "yes" >&6; }
15568 $as_echo "#define HAVE_PUTENV_IN_STD 1" >>confdefs.h
15570 else
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15572 $as_echo "no" >&6; }
15575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv is in std" >&5
15581 $as_echo_n "checking whether setenv is in std... " >&6; }
15582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15583 /* end confdefs.h. */
15584 #include <cstdio>
15585 int main(void) {
15586 std::setenv("a", "b");
15588 return 0;
15590 _ACEOF
15591 if ac_fn_cxx_try_compile "$LINENO"; then :
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15593 $as_echo "yes" >&6; }
15595 $as_echo "#define HAVE_SETENV_IN_STD 1" >>confdefs.h
15597 else
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15599 $as_echo "no" >&6; }
15602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv is in std" >&5
15608 $as_echo_n "checking whether unsetenv is in std... " >&6; }
15609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15610 /* end confdefs.h. */
15611 #include <cstdio>
15612 int main(void) {
15613 std::unsetenv("a");
15615 return 0;
15617 _ACEOF
15618 if ac_fn_cxx_try_compile "$LINENO"; then :
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15620 $as_echo "yes" >&6; }
15622 $as_echo "#define HAVE_UNSETENV_IN_STD 1" >>confdefs.h
15624 else
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15626 $as_echo "no" >&6; }
15629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether basename takes a constant pointer" >&5
15635 $as_echo_n "checking whether basename takes a constant pointer... " >&6; }
15636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15637 /* end confdefs.h. */
15638 #include <libgen.h>
15639 int main(void) {
15640 const char* s = "/foo/bar/";
15641 (void)::basename(s);
15643 _ACEOF
15644 if ac_fn_cxx_try_compile "$LINENO"; then :
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15646 $as_echo "yes" >&6; }
15648 $as_echo "#define HAVE_CONST_BASENAME 1" >>confdefs.h
15650 else
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15652 $as_echo "no" >&6; }
15654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirname takes a constant pointer" >&5
15657 $as_echo_n "checking whether dirname takes a constant pointer... " >&6; }
15658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15659 /* end confdefs.h. */
15660 #include <libgen.h>
15661 int main(void) {
15662 const char* s = "/foo/bar/";
15663 (void)::dirname(s);
15665 _ACEOF
15666 if ac_fn_cxx_try_compile "$LINENO"; then :
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15668 $as_echo "yes" >&6; }
15670 $as_echo "#define HAVE_CONST_DIRNAME 1" >>confdefs.h
15672 else
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15674 $as_echo "no" >&6; }
15676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd(NULL, 0) works" >&5
15679 $as_echo_n "checking whether getcwd(NULL, 0) works... " >&6; }
15680 if test "$cross_compiling" = yes; then :
15681 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15683 as_fn_error "cannot run test program while cross compiling
15684 See \`config.log' for more details." "$LINENO" 5; }
15685 else
15686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15687 /* end confdefs.h. */
15688 #include <stdlib.h>
15689 #include <unistd.h>
15690 int main(void) {
15691 char *cwd = getcwd(NULL, 0);
15692 return (cwd != NULL) ? EXIT_SUCCESS : EXIT_FAILURE;
15694 _ACEOF
15695 if ac_fn_cxx_try_run "$LINENO"; then :
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15697 $as_echo "yes" >&6; }
15699 $as_echo "#define HAVE_GETCWD_DYN 1" >>confdefs.h
15701 else
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15703 $as_echo "no" >&6; }
15705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15706 conftest.$ac_objext conftest.beam conftest.$ac_ext
15710 for ac_func in unmount
15711 do :
15712 ac_fn_cxx_check_func "$LINENO" "unmount" "ac_cv_func_unmount"
15713 if test "x$ac_cv_func_unmount" = x""yes; then :
15714 cat >>confdefs.h <<_ACEOF
15715 #define HAVE_UNMOUNT 1
15716 _ACEOF
15719 done
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is in std" >&5
15726 $as_echo_n "checking whether snprintf is in std... " >&6; }
15727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15728 /* end confdefs.h. */
15729 #include <cstdio>
15730 int main(void) {
15731 char buf;
15732 std::snprintf(&buf, 1, "");
15734 return 0;
15736 _ACEOF
15737 if ac_fn_cxx_try_compile "$LINENO"; then :
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15739 $as_echo "yes" >&6; }
15741 $as_echo "#define HAVE_SNPRINTF_IN_STD 1" >>confdefs.h
15743 else
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15745 $as_echo "no" >&6; }
15748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the last valid signal" >&5
15754 $as_echo_n "checking for the last valid signal... " >&6; }
15755 if test "$cross_compiling" = yes; then :
15756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15758 as_fn_error "cannot run test program while cross compiling
15759 See \`config.log' for more details." "$LINENO" 5; }
15760 else
15761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15762 /* end confdefs.h. */
15764 #include <err.h>
15765 #include <errno.h>
15766 #include <signal.h>
15767 #include <stdio.h>
15768 #include <stdio.h>
15769 #include <stdlib.h>
15772 main(void)
15774 int i;
15775 FILE *f;
15777 i = 0;
15778 while (i < 1024) {
15779 i++;
15780 if (i != SIGKILL && i != SIGSTOP) {
15781 struct sigaction sa;
15782 int ret;
15784 sa.sa_handler = SIG_IGN;
15785 sigemptyset(&sa.sa_mask);
15786 sa.sa_flags = 0;
15788 ret = sigaction(i, &sa, NULL);
15789 if (ret == -1) {
15790 if (errno == EINVAL) {
15791 i--;
15792 break;
15793 } else
15794 err(EXIT_FAILURE, "sigaction failed");
15798 if (i == 100)
15799 errx(EXIT_FAILURE, "too much signals");
15801 f = fopen("conftest.cnt", "w");
15802 if (f == NULL)
15803 err(EXIT_FAILURE, "failed to open file");
15805 fprintf(f, "%d\n", i);
15806 fclose(f);
15808 return EXIT_SUCCESS;
15811 _ACEOF
15812 if ac_fn_cxx_try_run "$LINENO"; then :
15813 if test ! -f conftest.cnt; then
15814 last_signo=15
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed; assuming ${last_signo}" >&5
15816 $as_echo "failed; assuming ${last_signo}" >&6; }
15817 else
15818 last_signo=$(cat conftest.cnt)
15819 rm -f conftest.cnt
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${last_signo}" >&5
15821 $as_echo "${last_signo}" >&6; }
15823 else
15824 last_signo=15
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed; assuming ${last_signo}" >&5
15826 $as_echo "failed; assuming ${last_signo}" >&6; }
15828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15829 conftest.$ac_objext conftest.beam conftest.$ac_ext
15833 cat >>confdefs.h <<_ACEOF
15834 #define LAST_SIGNO ${last_signo}
15835 _ACEOF
15841 test x"${ATF_BUILD_CC-unset}" = x"unset" && ATF_BUILD_CC="${CC}"
15846 test x"${ATF_BUILD_CFLAGS-unset}" = x"unset" && ATF_BUILD_CFLAGS="${CFLAGS}"
15851 test x"${ATF_BUILD_CPP-unset}" = x"unset" && ATF_BUILD_CPP="${CPP}"
15856 test x"${ATF_BUILD_CPPFLAGS-unset}" = x"unset" && ATF_BUILD_CPPFLAGS="${CPPFLAGS}"
15861 test x"${ATF_BUILD_CXX-unset}" = x"unset" && ATF_BUILD_CXX="${CXX}"
15866 test x"${ATF_BUILD_CXXFLAGS-unset}" = x"unset" && ATF_BUILD_CXXFLAGS="${CXXFLAGS}"
15873 # Check whether --enable-doc-build was given.
15874 if test "${enable_doc_build+set}" = set; then :
15875 enableval=$enable_doc_build;
15876 else
15877 enable_doc_build=no
15881 case "${enable_doc_build}" in
15882 yes|no)
15885 as_fn_error "Invalid argument for --enable-doc-build" "$LINENO" 5
15887 esac
15890 if test ${enable_doc_build} = yes; then
15893 # Extract the first word of "links", so it can be a program name with args.
15894 set dummy links; ac_word=$2
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15896 $as_echo_n "checking for $ac_word... " >&6; }
15897 if test "${ac_cv_path_LINKS+set}" = set; then :
15898 $as_echo_n "(cached) " >&6
15899 else
15900 case $LINKS in
15901 [\\/]* | ?:[\\/]*)
15902 ac_cv_path_LINKS="$LINKS" # Let the user override the test with a path.
15905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15906 for as_dir in $PATH
15908 IFS=$as_save_IFS
15909 test -z "$as_dir" && as_dir=.
15910 for ac_exec_ext in '' $ac_executable_extensions; do
15911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15912 ac_cv_path_LINKS="$as_dir/$ac_word$ac_exec_ext"
15913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15914 break 2
15916 done
15917 done
15918 IFS=$as_save_IFS
15921 esac
15923 LINKS=$ac_cv_path_LINKS
15924 if test -n "$LINKS"; then
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKS" >&5
15926 $as_echo "$LINKS" >&6; }
15927 else
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15929 $as_echo "no" >&6; }
15933 if test "${LINKS:-empty}" = empty; then
15934 as_fn_error "links could not be found" "$LINENO" 5
15939 # Extract the first word of "tidy", so it can be a program name with args.
15940 set dummy tidy; ac_word=$2
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15942 $as_echo_n "checking for $ac_word... " >&6; }
15943 if test "${ac_cv_path_TIDY+set}" = set; then :
15944 $as_echo_n "(cached) " >&6
15945 else
15946 case $TIDY in
15947 [\\/]* | ?:[\\/]*)
15948 ac_cv_path_TIDY="$TIDY" # Let the user override the test with a path.
15951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15952 for as_dir in $PATH
15954 IFS=$as_save_IFS
15955 test -z "$as_dir" && as_dir=.
15956 for ac_exec_ext in '' $ac_executable_extensions; do
15957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15958 ac_cv_path_TIDY="$as_dir/$ac_word$ac_exec_ext"
15959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15960 break 2
15962 done
15963 done
15964 IFS=$as_save_IFS
15967 esac
15969 TIDY=$ac_cv_path_TIDY
15970 if test -n "$TIDY"; then
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIDY" >&5
15972 $as_echo "$TIDY" >&6; }
15973 else
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15975 $as_echo "no" >&6; }
15979 if test "${TIDY:-empty}" = empty; then
15980 as_fn_error "tidy could not be found" "$LINENO" 5
15985 # Extract the first word of "xmlcatalog", so it can be a program name with args.
15986 set dummy xmlcatalog; ac_word=$2
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15988 $as_echo_n "checking for $ac_word... " >&6; }
15989 if test "${ac_cv_path_XMLCATALOG+set}" = set; then :
15990 $as_echo_n "(cached) " >&6
15991 else
15992 case $XMLCATALOG in
15993 [\\/]* | ?:[\\/]*)
15994 ac_cv_path_XMLCATALOG="$XMLCATALOG" # Let the user override the test with a path.
15997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15998 for as_dir in $PATH
16000 IFS=$as_save_IFS
16001 test -z "$as_dir" && as_dir=.
16002 for ac_exec_ext in '' $ac_executable_extensions; do
16003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16004 ac_cv_path_XMLCATALOG="$as_dir/$ac_word$ac_exec_ext"
16005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16006 break 2
16008 done
16009 done
16010 IFS=$as_save_IFS
16013 esac
16015 XMLCATALOG=$ac_cv_path_XMLCATALOG
16016 if test -n "$XMLCATALOG"; then
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLCATALOG" >&5
16018 $as_echo "$XMLCATALOG" >&6; }
16019 else
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16021 $as_echo "no" >&6; }
16025 if test "${XMLCATALOG:-empty}" = empty; then
16026 as_fn_error "xmlcatalog could not be found" "$LINENO" 5
16031 # Extract the first word of "xmllint", so it can be a program name with args.
16032 set dummy xmllint; ac_word=$2
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16034 $as_echo_n "checking for $ac_word... " >&6; }
16035 if test "${ac_cv_path_XMLLINT+set}" = set; then :
16036 $as_echo_n "(cached) " >&6
16037 else
16038 case $XMLLINT in
16039 [\\/]* | ?:[\\/]*)
16040 ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
16043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16044 for as_dir in $PATH
16046 IFS=$as_save_IFS
16047 test -z "$as_dir" && as_dir=.
16048 for ac_exec_ext in '' $ac_executable_extensions; do
16049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16050 ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
16051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16052 break 2
16054 done
16055 done
16056 IFS=$as_save_IFS
16059 esac
16061 XMLLINT=$ac_cv_path_XMLLINT
16062 if test -n "$XMLLINT"; then
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
16064 $as_echo "$XMLLINT" >&6; }
16065 else
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16067 $as_echo "no" >&6; }
16071 if test "${XMLLINT:-empty}" = empty; then
16072 as_fn_error "xmllint could not be found" "$LINENO" 5
16077 # Extract the first word of "xsltproc", so it can be a program name with args.
16078 set dummy xsltproc; ac_word=$2
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16080 $as_echo_n "checking for $ac_word... " >&6; }
16081 if test "${ac_cv_path_XSLTPROC+set}" = set; then :
16082 $as_echo_n "(cached) " >&6
16083 else
16084 case $XSLTPROC in
16085 [\\/]* | ?:[\\/]*)
16086 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
16089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16090 for as_dir in $PATH
16092 IFS=$as_save_IFS
16093 test -z "$as_dir" && as_dir=.
16094 for ac_exec_ext in '' $ac_executable_extensions; do
16095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16096 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
16097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16098 break 2
16100 done
16101 done
16102 IFS=$as_save_IFS
16105 esac
16107 XSLTPROC=$ac_cv_path_XSLTPROC
16108 if test -n "$XSLTPROC"; then
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
16110 $as_echo "$XSLTPROC" >&6; }
16111 else
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16113 $as_echo "no" >&6; }
16117 if test "${XSLTPROC:-empty}" = empty; then
16118 as_fn_error "xsltproc could not be found" "$LINENO" 5
16124 : ${XML_CATALOG_FILE:=/etc/xml/catalog}
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTD -//OASIS//DTD Simplified DocBook XML V1.1//EN" >&5
16127 $as_echo_n "checking for DTD -//OASIS//DTD Simplified DocBook XML V1.1//EN... " >&6; }
16128 XML_CATALOG_FILES= ${XMLCATALOG} ${XML_CATALOG_FILE} '-//OASIS//DTD Simplified DocBook XML V1.1//EN' \
16129 >conftest.out 2>&1
16130 if test ${?} -ne 0; then
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16132 $as_echo "no" >&6; }
16133 echo "XML catalog: ${XML_CATALOG_FILE}"
16134 echo "xmlcatalog output:"
16135 cat conftest.out
16136 as_fn_error "Could not find the '-//OASIS//DTD Simplified DocBook XML V1.1//EN' DTD" "$LINENO" 5
16137 else
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16139 $as_echo "yes" >&6; }
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: Building documentation: ${enable_doc_build}" >&5
16145 $as_echo "$as_me: Building documentation: ${enable_doc_build}" >&6;}
16146 if test ${enable_doc_build} = no; then
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'make dist' won't work if documentation is edited" >&5
16148 $as_echo "$as_me: WARNING: 'make dist' won't work if documentation is edited" >&2;}
16151 DOC_BUILD=${enable_doc_build}
16153 if test ${enable_doc_build} = yes; then
16154 DOC_BUILD_TRUE=
16155 DOC_BUILD_FALSE='#'
16156 else
16157 DOC_BUILD_TRUE='#'
16158 DOC_BUILD_FALSE=
16164 machine=${target_cpu}
16166 case ${machine} in
16167 i[3-9]86)
16168 arch=i386
16170 x86_64)
16171 arch=amd64
16174 arch=${machine}
16176 esac
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: Machine type: ${machine}, architecture: ${arch}" >&5
16179 $as_echo "$as_me: Machine type: ${machine}, architecture: ${arch}" >&6;}
16180 atf_arch=${arch}
16182 atf_machine=${machine}
16187 if test x"${ATF_CONFSUBDIR-unset}" = x"unset"; then
16188 ATF_CONFSUBDIR=atf
16189 else
16190 case ${ATF_CONFSUBDIR} in
16192 as_fn_error "ATF_CONFSUBDIR must hold a relative path" "$LINENO" 5
16196 esac
16198 if test x"${ATF_CONFSUBDIR}" = x""; then
16199 atf_confdir=\${sysconfdir}
16201 else
16202 atf_confdir=\${sysconfdir}/${ATF_CONFSUBDIR}
16207 if test x"${ATF_WORKDIR}" = x""; then
16208 for t in /tmp /var/tmp; do
16209 if test -d ${t}; then
16210 ATF_WORKDIR=${t}
16211 break
16213 done
16214 if test x"${ATF_WORKDIR}" = x""; then
16215 as_fn_error "Could not guess a value for ATF_WORKDIR" "$LINENO" 5
16217 else
16218 case ${ATF_WORKDIR} in
16222 as_fn_error "ATF_WORKDIR must hold an absolute path" "$LINENO" 5
16224 esac
16227 atf_cssdir=\${datadir}/examples/atf
16229 atf_dtddir=\${datadir}/xml/atf
16231 atf_egdir=\${datadir}/examples/atf
16233 atf_pkgconfigdir=\${libdir}/pkgconfig
16235 atf_xsldir=\${datadir}/xsl/atf
16240 if test x"${ATF_SHELL}" = x""; then
16241 for ac_prog in bash sh
16243 # Extract the first word of "$ac_prog", so it can be a program name with args.
16244 set dummy $ac_prog; ac_word=$2
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16246 $as_echo_n "checking for $ac_word... " >&6; }
16247 if test "${ac_cv_path_ATF_SHELL+set}" = set; then :
16248 $as_echo_n "(cached) " >&6
16249 else
16250 case $ATF_SHELL in
16251 [\\/]* | ?:[\\/]*)
16252 ac_cv_path_ATF_SHELL="$ATF_SHELL" # Let the user override the test with a path.
16255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16256 for as_dir in $PATH
16258 IFS=$as_save_IFS
16259 test -z "$as_dir" && as_dir=.
16260 for ac_exec_ext in '' $ac_executable_extensions; do
16261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16262 ac_cv_path_ATF_SHELL="$as_dir/$ac_word$ac_exec_ext"
16263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16264 break 2
16266 done
16267 done
16268 IFS=$as_save_IFS
16271 esac
16273 ATF_SHELL=$ac_cv_path_ATF_SHELL
16274 if test -n "$ATF_SHELL"; then
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ATF_SHELL" >&5
16276 $as_echo "$ATF_SHELL" >&6; }
16277 else
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16279 $as_echo "no" >&6; }
16283 test -n "$ATF_SHELL" && break
16284 done
16286 else
16287 case ${ATF_SHELL} in
16291 as_fn_error "ATF_SHELL must hold an absolute path" "$LINENO" 5
16293 esac
16295 if test x"${ATF_SHELL}" = x""; then
16296 as_fn_error "No POSIX shell interpreter found; maybe set ATF_SHELL?" "$LINENO" 5
16300 # Extract the first word of "mtn", so it can be a program name with args.
16301 set dummy mtn; ac_word=$2
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16303 $as_echo_n "checking for $ac_word... " >&6; }
16304 if test "${ac_cv_path_MTN+set}" = set; then :
16305 $as_echo_n "(cached) " >&6
16306 else
16307 case $MTN in
16308 [\\/]* | ?:[\\/]*)
16309 ac_cv_path_MTN="$MTN" # Let the user override the test with a path.
16312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16313 for as_dir in $PATH
16315 IFS=$as_save_IFS
16316 test -z "$as_dir" && as_dir=.
16317 for ac_exec_ext in '' $ac_executable_extensions; do
16318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16319 ac_cv_path_MTN="$as_dir/$ac_word$ac_exec_ext"
16320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16321 break 2
16323 done
16324 done
16325 IFS=$as_save_IFS
16328 esac
16330 MTN=$ac_cv_path_MTN
16331 if test -n "$MTN"; then
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTN" >&5
16333 $as_echo "$MTN" >&6; }
16334 else
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16336 $as_echo "no" >&6; }
16343 test x"${ATF_M4-unset}" = x"unset" && ATF_M4="m4"
16348 ac_config_files="$ac_config_files Makefile atf-c/defs.h"
16350 cat >confcache <<\_ACEOF
16351 # This file is a shell script that caches the results of configure
16352 # tests run on this system so they can be shared between configure
16353 # scripts and configure runs, see configure's option --config-cache.
16354 # It is not useful on other systems. If it contains results you don't
16355 # want to keep, you may remove or edit it.
16357 # config.status only pays attention to the cache file if you give it
16358 # the --recheck option to rerun configure.
16360 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16361 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16362 # following values.
16364 _ACEOF
16366 # The following way of writing the cache mishandles newlines in values,
16367 # but we know of no workaround that is simple, portable, and efficient.
16368 # So, we kill variables containing newlines.
16369 # Ultrix sh set writes to stderr and can't be redirected directly,
16370 # and sets the high bit in the cache file unless we assign to the vars.
16372 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16373 eval ac_val=\$$ac_var
16374 case $ac_val in #(
16375 *${as_nl}*)
16376 case $ac_var in #(
16377 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16378 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16379 esac
16380 case $ac_var in #(
16381 _ | IFS | as_nl) ;; #(
16382 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16383 *) { eval $ac_var=; unset $ac_var;} ;;
16384 esac ;;
16385 esac
16386 done
16388 (set) 2>&1 |
16389 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16390 *${as_nl}ac_space=\ *)
16391 # `set' does not quote correctly, so add quotes: double-quote
16392 # substitution turns \\\\ into \\, and sed turns \\ into \.
16393 sed -n \
16394 "s/'/'\\\\''/g;
16395 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16396 ;; #(
16398 # `set' quotes correctly as required by POSIX, so do not add quotes.
16399 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16401 esac |
16402 sort
16404 sed '
16405 /^ac_cv_env_/b end
16406 t clear
16407 :clear
16408 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16409 t end
16410 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16411 :end' >>confcache
16412 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16413 if test -w "$cache_file"; then
16414 test "x$cache_file" != "x/dev/null" &&
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16416 $as_echo "$as_me: updating cache $cache_file" >&6;}
16417 cat confcache >$cache_file
16418 else
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16420 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16423 rm -f confcache
16425 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16426 # Let make expand exec_prefix.
16427 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16429 DEFS=-DHAVE_CONFIG_H
16431 ac_libobjs=
16432 ac_ltlibobjs=
16433 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16434 # 1. Remove the extension, and $U if already installed.
16435 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16436 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16437 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16438 # will be set to the directory where LIBOBJS objects are built.
16439 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16440 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16441 done
16442 LIBOBJS=$ac_libobjs
16444 LTLIBOBJS=$ac_ltlibobjs
16447 if test -n "$EXEEXT"; then
16448 am__EXEEXT_TRUE=
16449 am__EXEEXT_FALSE='#'
16450 else
16451 am__EXEEXT_TRUE='#'
16452 am__EXEEXT_FALSE=
16455 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16456 as_fn_error "conditional \"AMDEP\" was never defined.
16457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16459 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16460 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16463 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16464 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16467 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16468 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16471 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16472 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16475 if test -z "${DOC_BUILD_TRUE}" && test -z "${DOC_BUILD_FALSE}"; then
16476 as_fn_error "conditional \"DOC_BUILD\" was never defined.
16477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16480 : ${CONFIG_STATUS=./config.status}
16481 ac_write_fail=0
16482 ac_clean_files_save=$ac_clean_files
16483 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16485 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16486 as_write_fail=0
16487 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16488 #! $SHELL
16489 # Generated by $as_me.
16490 # Run this file to recreate the current configuration.
16491 # Compiler output produced by configure, useful for debugging
16492 # configure, is in config.log if it exists.
16494 debug=false
16495 ac_cs_recheck=false
16496 ac_cs_silent=false
16498 SHELL=\${CONFIG_SHELL-$SHELL}
16499 export SHELL
16500 _ASEOF
16501 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16502 ## -------------------- ##
16503 ## M4sh Initialization. ##
16504 ## -------------------- ##
16506 # Be more Bourne compatible
16507 DUALCASE=1; export DUALCASE # for MKS sh
16508 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16509 emulate sh
16510 NULLCMD=:
16511 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16512 # is contrary to our usage. Disable this feature.
16513 alias -g '${1+"$@"}'='"$@"'
16514 setopt NO_GLOB_SUBST
16515 else
16516 case `(set -o) 2>/dev/null` in #(
16517 *posix*) :
16518 set -o posix ;; #(
16519 *) :
16521 esac
16525 as_nl='
16527 export as_nl
16528 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16529 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16530 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16531 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16532 # Prefer a ksh shell builtin over an external printf program on Solaris,
16533 # but without wasting forks for bash or zsh.
16534 if test -z "$BASH_VERSION$ZSH_VERSION" \
16535 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16536 as_echo='print -r --'
16537 as_echo_n='print -rn --'
16538 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16539 as_echo='printf %s\n'
16540 as_echo_n='printf %s'
16541 else
16542 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16543 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16544 as_echo_n='/usr/ucb/echo -n'
16545 else
16546 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16547 as_echo_n_body='eval
16548 arg=$1;
16549 case $arg in #(
16550 *"$as_nl"*)
16551 expr "X$arg" : "X\\(.*\\)$as_nl";
16552 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16553 esac;
16554 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16556 export as_echo_n_body
16557 as_echo_n='sh -c $as_echo_n_body as_echo'
16559 export as_echo_body
16560 as_echo='sh -c $as_echo_body as_echo'
16563 # The user is always right.
16564 if test "${PATH_SEPARATOR+set}" != set; then
16565 PATH_SEPARATOR=:
16566 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16567 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16568 PATH_SEPARATOR=';'
16573 # IFS
16574 # We need space, tab and new line, in precisely that order. Quoting is
16575 # there to prevent editors from complaining about space-tab.
16576 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16577 # splitting by setting IFS to empty value.)
16578 IFS=" "" $as_nl"
16580 # Find who we are. Look in the path if we contain no directory separator.
16581 case $0 in #((
16582 *[\\/]* ) as_myself=$0 ;;
16583 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16584 for as_dir in $PATH
16586 IFS=$as_save_IFS
16587 test -z "$as_dir" && as_dir=.
16588 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16589 done
16590 IFS=$as_save_IFS
16593 esac
16594 # We did not find ourselves, most probably we were run as `sh COMMAND'
16595 # in which case we are not to be found in the path.
16596 if test "x$as_myself" = x; then
16597 as_myself=$0
16599 if test ! -f "$as_myself"; then
16600 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16601 exit 1
16604 # Unset variables that we do not need and which cause bugs (e.g. in
16605 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16606 # suppresses any "Segmentation fault" message there. '((' could
16607 # trigger a bug in pdksh 5.2.14.
16608 for as_var in BASH_ENV ENV MAIL MAILPATH
16609 do eval test x\${$as_var+set} = xset \
16610 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16611 done
16612 PS1='$ '
16613 PS2='> '
16614 PS4='+ '
16616 # NLS nuisances.
16617 LC_ALL=C
16618 export LC_ALL
16619 LANGUAGE=C
16620 export LANGUAGE
16622 # CDPATH.
16623 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16626 # as_fn_error ERROR [LINENO LOG_FD]
16627 # ---------------------------------
16628 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16629 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16630 # script with status $?, using 1 if that was 0.
16631 as_fn_error ()
16633 as_status=$?; test $as_status -eq 0 && as_status=1
16634 if test "$3"; then
16635 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16636 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16638 $as_echo "$as_me: error: $1" >&2
16639 as_fn_exit $as_status
16640 } # as_fn_error
16643 # as_fn_set_status STATUS
16644 # -----------------------
16645 # Set $? to STATUS, without forking.
16646 as_fn_set_status ()
16648 return $1
16649 } # as_fn_set_status
16651 # as_fn_exit STATUS
16652 # -----------------
16653 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16654 as_fn_exit ()
16656 set +e
16657 as_fn_set_status $1
16658 exit $1
16659 } # as_fn_exit
16661 # as_fn_unset VAR
16662 # ---------------
16663 # Portably unset VAR.
16664 as_fn_unset ()
16666 { eval $1=; unset $1;}
16668 as_unset=as_fn_unset
16669 # as_fn_append VAR VALUE
16670 # ----------------------
16671 # Append the text in VALUE to the end of the definition contained in VAR. Take
16672 # advantage of any shell optimizations that allow amortized linear growth over
16673 # repeated appends, instead of the typical quadratic growth present in naive
16674 # implementations.
16675 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16676 eval 'as_fn_append ()
16678 eval $1+=\$2
16680 else
16681 as_fn_append ()
16683 eval $1=\$$1\$2
16685 fi # as_fn_append
16687 # as_fn_arith ARG...
16688 # ------------------
16689 # Perform arithmetic evaluation on the ARGs, and store the result in the
16690 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16691 # must be portable across $(()) and expr.
16692 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16693 eval 'as_fn_arith ()
16695 as_val=$(( $* ))
16697 else
16698 as_fn_arith ()
16700 as_val=`expr "$@" || test $? -eq 1`
16702 fi # as_fn_arith
16705 if expr a : '\(a\)' >/dev/null 2>&1 &&
16706 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16707 as_expr=expr
16708 else
16709 as_expr=false
16712 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16713 as_basename=basename
16714 else
16715 as_basename=false
16718 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16719 as_dirname=dirname
16720 else
16721 as_dirname=false
16724 as_me=`$as_basename -- "$0" ||
16725 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16726 X"$0" : 'X\(//\)$' \| \
16727 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16728 $as_echo X/"$0" |
16729 sed '/^.*\/\([^/][^/]*\)\/*$/{
16730 s//\1/
16733 /^X\/\(\/\/\)$/{
16734 s//\1/
16737 /^X\/\(\/\).*/{
16738 s//\1/
16741 s/.*/./; q'`
16743 # Avoid depending upon Character Ranges.
16744 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16745 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16746 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16747 as_cr_digits='0123456789'
16748 as_cr_alnum=$as_cr_Letters$as_cr_digits
16750 ECHO_C= ECHO_N= ECHO_T=
16751 case `echo -n x` in #(((((
16752 -n*)
16753 case `echo 'xy\c'` in
16754 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16755 xy) ECHO_C='\c';;
16756 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16757 ECHO_T=' ';;
16758 esac;;
16760 ECHO_N='-n';;
16761 esac
16763 rm -f conf$$ conf$$.exe conf$$.file
16764 if test -d conf$$.dir; then
16765 rm -f conf$$.dir/conf$$.file
16766 else
16767 rm -f conf$$.dir
16768 mkdir conf$$.dir 2>/dev/null
16770 if (echo >conf$$.file) 2>/dev/null; then
16771 if ln -s conf$$.file conf$$ 2>/dev/null; then
16772 as_ln_s='ln -s'
16773 # ... but there are two gotchas:
16774 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16775 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16776 # In both cases, we have to default to `cp -p'.
16777 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16778 as_ln_s='cp -p'
16779 elif ln conf$$.file conf$$ 2>/dev/null; then
16780 as_ln_s=ln
16781 else
16782 as_ln_s='cp -p'
16784 else
16785 as_ln_s='cp -p'
16787 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16788 rmdir conf$$.dir 2>/dev/null
16791 # as_fn_mkdir_p
16792 # -------------
16793 # Create "$as_dir" as a directory, including parents if necessary.
16794 as_fn_mkdir_p ()
16797 case $as_dir in #(
16798 -*) as_dir=./$as_dir;;
16799 esac
16800 test -d "$as_dir" || eval $as_mkdir_p || {
16801 as_dirs=
16802 while :; do
16803 case $as_dir in #(
16804 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16805 *) as_qdir=$as_dir;;
16806 esac
16807 as_dirs="'$as_qdir' $as_dirs"
16808 as_dir=`$as_dirname -- "$as_dir" ||
16809 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16810 X"$as_dir" : 'X\(//\)[^/]' \| \
16811 X"$as_dir" : 'X\(//\)$' \| \
16812 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16813 $as_echo X"$as_dir" |
16814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16815 s//\1/
16818 /^X\(\/\/\)[^/].*/{
16819 s//\1/
16822 /^X\(\/\/\)$/{
16823 s//\1/
16826 /^X\(\/\).*/{
16827 s//\1/
16830 s/.*/./; q'`
16831 test -d "$as_dir" && break
16832 done
16833 test -z "$as_dirs" || eval "mkdir $as_dirs"
16834 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16837 } # as_fn_mkdir_p
16838 if mkdir -p . 2>/dev/null; then
16839 as_mkdir_p='mkdir -p "$as_dir"'
16840 else
16841 test -d ./-p && rmdir ./-p
16842 as_mkdir_p=false
16845 if test -x / >/dev/null 2>&1; then
16846 as_test_x='test -x'
16847 else
16848 if ls -dL / >/dev/null 2>&1; then
16849 as_ls_L_option=L
16850 else
16851 as_ls_L_option=
16853 as_test_x='
16854 eval sh -c '\''
16855 if test -d "$1"; then
16856 test -d "$1/.";
16857 else
16858 case $1 in #(
16859 -*)set "./$1";;
16860 esac;
16861 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16862 ???[sx]*):;;*)false;;esac;fi
16863 '\'' sh
16866 as_executable_p=$as_test_x
16868 # Sed expression to map a string onto a valid CPP name.
16869 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16871 # Sed expression to map a string onto a valid variable name.
16872 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16875 exec 6>&1
16876 ## ----------------------------------- ##
16877 ## Main body of $CONFIG_STATUS script. ##
16878 ## ----------------------------------- ##
16879 _ASEOF
16880 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16883 # Save the log message, to keep $0 and so on meaningful, and to
16884 # report actual input values of CONFIG_FILES etc. instead of their
16885 # values after options handling.
16886 ac_log="
16887 This file was extended by Automated Testing Framework $as_me 0.7, which was
16888 generated by GNU Autoconf 2.65. Invocation command line was
16890 CONFIG_FILES = $CONFIG_FILES
16891 CONFIG_HEADERS = $CONFIG_HEADERS
16892 CONFIG_LINKS = $CONFIG_LINKS
16893 CONFIG_COMMANDS = $CONFIG_COMMANDS
16894 $ $0 $@
16896 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16899 _ACEOF
16901 case $ac_config_files in *"
16902 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16903 esac
16905 case $ac_config_headers in *"
16906 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16907 esac
16910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16911 # Files that config.status was made for.
16912 config_files="$ac_config_files"
16913 config_headers="$ac_config_headers"
16914 config_commands="$ac_config_commands"
16916 _ACEOF
16918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16919 ac_cs_usage="\
16920 \`$as_me' instantiates files and other configuration actions
16921 from templates according to the current configuration. Unless the files
16922 and actions are specified as TAGs, all are instantiated by default.
16924 Usage: $0 [OPTION]... [TAG]...
16926 -h, --help print this help, then exit
16927 -V, --version print version number and configuration settings, then exit
16928 --config print configuration, then exit
16929 -q, --quiet, --silent
16930 do not print progress messages
16931 -d, --debug don't remove temporary files
16932 --recheck update $as_me by reconfiguring in the same conditions
16933 --file=FILE[:TEMPLATE]
16934 instantiate the configuration file FILE
16935 --header=FILE[:TEMPLATE]
16936 instantiate the configuration header FILE
16938 Configuration files:
16939 $config_files
16941 Configuration headers:
16942 $config_headers
16944 Configuration commands:
16945 $config_commands
16947 Report bugs to <atf-devel@NetBSD.org>.
16948 Automated Testing Framework home page: <http://www.NetBSD.org/~jmmv/atf/>."
16950 _ACEOF
16951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16952 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16953 ac_cs_version="\\
16954 Automated Testing Framework config.status 0.7
16955 configured by $0, generated by GNU Autoconf 2.65,
16956 with options \\"\$ac_cs_config\\"
16958 Copyright (C) 2009 Free Software Foundation, Inc.
16959 This config.status script is free software; the Free Software Foundation
16960 gives unlimited permission to copy, distribute and modify it."
16962 ac_pwd='$ac_pwd'
16963 srcdir='$srcdir'
16964 INSTALL='$INSTALL'
16965 MKDIR_P='$MKDIR_P'
16966 AWK='$AWK'
16967 test -n "\$AWK" || AWK=awk
16968 _ACEOF
16970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16971 # The default lists apply if the user does not specify any file.
16972 ac_need_defaults=:
16973 while test $# != 0
16975 case $1 in
16976 --*=*)
16977 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16978 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16979 ac_shift=:
16982 ac_option=$1
16983 ac_optarg=$2
16984 ac_shift=shift
16986 esac
16988 case $ac_option in
16989 # Handling of the options.
16990 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16991 ac_cs_recheck=: ;;
16992 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16993 $as_echo "$ac_cs_version"; exit ;;
16994 --config | --confi | --conf | --con | --co | --c )
16995 $as_echo "$ac_cs_config"; exit ;;
16996 --debug | --debu | --deb | --de | --d | -d )
16997 debug=: ;;
16998 --file | --fil | --fi | --f )
16999 $ac_shift
17000 case $ac_optarg in
17001 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17002 esac
17003 as_fn_append CONFIG_FILES " '$ac_optarg'"
17004 ac_need_defaults=false;;
17005 --header | --heade | --head | --hea )
17006 $ac_shift
17007 case $ac_optarg in
17008 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17009 esac
17010 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17011 ac_need_defaults=false;;
17012 --he | --h)
17013 # Conflict between --help and --header
17014 as_fn_error "ambiguous option: \`$1'
17015 Try \`$0 --help' for more information.";;
17016 --help | --hel | -h )
17017 $as_echo "$ac_cs_usage"; exit ;;
17018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17019 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17020 ac_cs_silent=: ;;
17022 # This is an error.
17023 -*) as_fn_error "unrecognized option: \`$1'
17024 Try \`$0 --help' for more information." ;;
17026 *) as_fn_append ac_config_targets " $1"
17027 ac_need_defaults=false ;;
17029 esac
17030 shift
17031 done
17033 ac_configure_extra_args=
17035 if $ac_cs_silent; then
17036 exec 6>/dev/null
17037 ac_configure_extra_args="$ac_configure_extra_args --silent"
17040 _ACEOF
17041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17042 if \$ac_cs_recheck; then
17043 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17044 shift
17045 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17046 CONFIG_SHELL='$SHELL'
17047 export CONFIG_SHELL
17048 exec "\$@"
17051 _ACEOF
17052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17053 exec 5>>config.log
17055 echo
17056 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17057 ## Running $as_me. ##
17058 _ASBOX
17059 $as_echo "$ac_log"
17060 } >&5
17062 _ACEOF
17063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17065 # INIT-COMMANDS
17068 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17071 # The HP-UX ksh and POSIX shell print the target directory to stdout
17072 # if CDPATH is set.
17073 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17075 sed_quote_subst='$sed_quote_subst'
17076 double_quote_subst='$double_quote_subst'
17077 delay_variable_subst='$delay_variable_subst'
17078 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17079 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17080 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17081 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17082 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17083 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17084 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17085 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17086 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17087 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17088 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17089 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17090 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17091 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17092 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17093 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17094 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17095 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17096 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17097 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17098 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17099 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17100 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17101 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17102 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17103 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17104 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17105 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17106 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17107 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17108 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17109 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17110 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17111 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17112 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17113 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17114 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17115 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17116 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17117 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17118 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17119 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17120 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17121 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17122 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
17123 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17124 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17125 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17126 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17127 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17128 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17129 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17130 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17131 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17132 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17133 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17134 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17135 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17136 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17137 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17138 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17139 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17140 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17141 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17142 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17143 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17144 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17145 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17146 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17147 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17148 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17149 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17150 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17151 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17152 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17153 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17154 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17155 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17156 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17157 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17158 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17159 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17160 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17161 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17162 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17163 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17164 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17165 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17166 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17167 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17168 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17169 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17170 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17171 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17172 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17173 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17174 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17175 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17176 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17177 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17178 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17179 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17180 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17181 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17182 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17183 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17184 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17185 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17186 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17187 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17188 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17189 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17190 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17191 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17192 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17193 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17194 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17195 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17196 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17197 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17198 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17199 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17200 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17201 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17202 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17203 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17204 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17205 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17206 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17207 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17208 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17209 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17210 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17211 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17212 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17213 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17214 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17215 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17216 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17217 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17218 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17219 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17220 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17221 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17222 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17223 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17224 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17225 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17226 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17227 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17228 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17229 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17230 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17231 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17232 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17233 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17234 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17235 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17236 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17237 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17238 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17239 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17240 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17241 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17242 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17243 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17244 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17245 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17246 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17247 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17248 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17250 LTCC='$LTCC'
17251 LTCFLAGS='$LTCFLAGS'
17252 compiler='$compiler_DEFAULT'
17254 # Quote evaled strings.
17255 for var in SED \
17256 GREP \
17257 EGREP \
17258 FGREP \
17259 LD \
17260 NM \
17261 LN_S \
17262 lt_SP2NL \
17263 lt_NL2SP \
17264 reload_flag \
17265 OBJDUMP \
17266 deplibs_check_method \
17267 file_magic_cmd \
17268 AR \
17269 AR_FLAGS \
17270 STRIP \
17271 RANLIB \
17272 CC \
17273 CFLAGS \
17274 compiler \
17275 lt_cv_sys_global_symbol_pipe \
17276 lt_cv_sys_global_symbol_to_cdecl \
17277 lt_cv_sys_global_symbol_to_c_name_address \
17278 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17279 SHELL \
17280 ECHO \
17281 lt_prog_compiler_no_builtin_flag \
17282 lt_prog_compiler_wl \
17283 lt_prog_compiler_pic \
17284 lt_prog_compiler_static \
17285 lt_cv_prog_compiler_c_o \
17286 need_locks \
17287 DSYMUTIL \
17288 NMEDIT \
17289 LIPO \
17290 OTOOL \
17291 OTOOL64 \
17292 shrext_cmds \
17293 export_dynamic_flag_spec \
17294 whole_archive_flag_spec \
17295 compiler_needs_object \
17296 with_gnu_ld \
17297 allow_undefined_flag \
17298 no_undefined_flag \
17299 hardcode_libdir_flag_spec \
17300 hardcode_libdir_flag_spec_ld \
17301 hardcode_libdir_separator \
17302 fix_srcfile_path \
17303 exclude_expsyms \
17304 include_expsyms \
17305 file_list_spec \
17306 variables_saved_for_relink \
17307 libname_spec \
17308 library_names_spec \
17309 soname_spec \
17310 finish_eval \
17311 old_striplib \
17312 striplib \
17313 compiler_lib_search_dirs \
17314 predep_objects \
17315 postdep_objects \
17316 predeps \
17317 postdeps \
17318 compiler_lib_search_path \
17319 LD_CXX \
17320 compiler_CXX \
17321 lt_prog_compiler_no_builtin_flag_CXX \
17322 lt_prog_compiler_wl_CXX \
17323 lt_prog_compiler_pic_CXX \
17324 lt_prog_compiler_static_CXX \
17325 lt_cv_prog_compiler_c_o_CXX \
17326 export_dynamic_flag_spec_CXX \
17327 whole_archive_flag_spec_CXX \
17328 compiler_needs_object_CXX \
17329 with_gnu_ld_CXX \
17330 allow_undefined_flag_CXX \
17331 no_undefined_flag_CXX \
17332 hardcode_libdir_flag_spec_CXX \
17333 hardcode_libdir_flag_spec_ld_CXX \
17334 hardcode_libdir_separator_CXX \
17335 fix_srcfile_path_CXX \
17336 exclude_expsyms_CXX \
17337 include_expsyms_CXX \
17338 file_list_spec_CXX \
17339 compiler_lib_search_dirs_CXX \
17340 predep_objects_CXX \
17341 postdep_objects_CXX \
17342 predeps_CXX \
17343 postdeps_CXX \
17344 compiler_lib_search_path_CXX; do
17345 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17346 *[\\\\\\\`\\"\\\$]*)
17347 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17350 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17352 esac
17353 done
17355 # Double-quote double-evaled strings.
17356 for var in reload_cmds \
17357 old_postinstall_cmds \
17358 old_postuninstall_cmds \
17359 old_archive_cmds \
17360 extract_expsyms_cmds \
17361 old_archive_from_new_cmds \
17362 old_archive_from_expsyms_cmds \
17363 archive_cmds \
17364 archive_expsym_cmds \
17365 module_cmds \
17366 module_expsym_cmds \
17367 export_symbols_cmds \
17368 prelink_cmds \
17369 postinstall_cmds \
17370 postuninstall_cmds \
17371 finish_cmds \
17372 sys_lib_search_path_spec \
17373 sys_lib_dlsearch_path_spec \
17374 old_archive_cmds_CXX \
17375 old_archive_from_new_cmds_CXX \
17376 old_archive_from_expsyms_cmds_CXX \
17377 archive_cmds_CXX \
17378 archive_expsym_cmds_CXX \
17379 module_cmds_CXX \
17380 module_expsym_cmds_CXX \
17381 export_symbols_cmds_CXX \
17382 prelink_cmds_CXX; do
17383 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17384 *[\\\\\\\`\\"\\\$]*)
17385 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17388 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17390 esac
17391 done
17393 # Fix-up fallback echo if it was mangled by the above quoting rules.
17394 case \$lt_ECHO in
17395 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17397 esac
17399 ac_aux_dir='$ac_aux_dir'
17400 xsi_shell='$xsi_shell'
17401 lt_shell_append='$lt_shell_append'
17403 # See if we are running on zsh, and set the options which allow our
17404 # commands through without removal of \ escapes INIT.
17405 if test -n "\${ZSH_VERSION+set}" ; then
17406 setopt NO_GLOB_SUBST
17410 PACKAGE='$PACKAGE'
17411 VERSION='$VERSION'
17412 TIMESTAMP='$TIMESTAMP'
17413 RM='$RM'
17414 ofile='$ofile'
17421 _ACEOF
17423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17425 # Handling of arguments.
17426 for ac_config_target in $ac_config_targets
17428 case $ac_config_target in
17429 "bconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS bconfig.h" ;;
17430 "tests/bootstrap/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/bootstrap/atconfig" ;;
17431 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17432 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17433 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17434 "atf-c/defs.h") CONFIG_FILES="$CONFIG_FILES atf-c/defs.h" ;;
17436 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17437 esac
17438 done
17441 # If the user did not use the arguments to specify the items to instantiate,
17442 # then the envvar interface is used. Set only those that are not.
17443 # We use the long form for the default assignment because of an extremely
17444 # bizarre bug on SunOS 4.1.3.
17445 if $ac_need_defaults; then
17446 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17447 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17448 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17451 # Have a temporary directory for convenience. Make it in the build tree
17452 # simply because there is no reason against having it here, and in addition,
17453 # creating and moving files from /tmp can sometimes cause problems.
17454 # Hook for its removal unless debugging.
17455 # Note that there is a small window in which the directory will not be cleaned:
17456 # after its creation but before its name has been assigned to `$tmp'.
17457 $debug ||
17459 tmp=
17460 trap 'exit_status=$?
17461 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17463 trap 'as_fn_exit 1' 1 2 13 15
17465 # Create a (secure) tmp directory for tmp files.
17468 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17469 test -n "$tmp" && test -d "$tmp"
17470 } ||
17472 tmp=./conf$$-$RANDOM
17473 (umask 077 && mkdir "$tmp")
17474 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17476 # Set up the scripts for CONFIG_FILES section.
17477 # No need to generate them if there are no CONFIG_FILES.
17478 # This happens for instance with `./config.status config.h'.
17479 if test -n "$CONFIG_FILES"; then
17482 ac_cr=`echo X | tr X '\015'`
17483 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17484 # But we know of no other shell where ac_cr would be empty at this
17485 # point, so we can use a bashism as a fallback.
17486 if test "x$ac_cr" = x; then
17487 eval ac_cr=\$\'\\r\'
17489 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17490 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17491 ac_cs_awk_cr='\r'
17492 else
17493 ac_cs_awk_cr=$ac_cr
17496 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17497 _ACEOF
17501 echo "cat >conf$$subs.awk <<_ACEOF" &&
17502 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17503 echo "_ACEOF"
17504 } >conf$$subs.sh ||
17505 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17506 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17507 ac_delim='%!_!# '
17508 for ac_last_try in false false false false false :; do
17509 . ./conf$$subs.sh ||
17510 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17512 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17513 if test $ac_delim_n = $ac_delim_num; then
17514 break
17515 elif $ac_last_try; then
17516 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17517 else
17518 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17520 done
17521 rm -f conf$$subs.sh
17523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17524 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17525 _ACEOF
17526 sed -n '
17528 s/^/S["/; s/!.*/"]=/
17531 s/^[^!]*!//
17532 :repl
17533 t repl
17534 s/'"$ac_delim"'$//
17535 t delim
17538 s/\(.\{148\}\)..*/\1/
17539 t more1
17540 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17543 b repl
17544 :more1
17545 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17548 s/.\{148\}//
17549 t nl
17550 :delim
17552 s/\(.\{148\}\)..*/\1/
17553 t more2
17554 s/["\\]/\\&/g; s/^/"/; s/$/"/
17557 :more2
17558 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17561 s/.\{148\}//
17562 t delim
17563 ' <conf$$subs.awk | sed '
17564 /^[^""]/{
17566 s/\n//
17568 ' >>$CONFIG_STATUS || ac_write_fail=1
17569 rm -f conf$$subs.awk
17570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17571 _ACAWK
17572 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17573 for (key in S) S_is_set[key] = 1
17574 FS = "\a"
17578 line = $ 0
17579 nfields = split(line, field, "@")
17580 substed = 0
17581 len = length(field[1])
17582 for (i = 2; i < nfields; i++) {
17583 key = field[i]
17584 keylen = length(key)
17585 if (S_is_set[key]) {
17586 value = S[key]
17587 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17588 len += length(value) + length(field[++i])
17589 substed = 1
17590 } else
17591 len += 1 + keylen
17594 print line
17597 _ACAWK
17598 _ACEOF
17599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17600 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17601 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17602 else
17604 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17605 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17606 _ACEOF
17608 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17609 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17610 # trailing colons and then remove the whole line if VPATH becomes empty
17611 # (actually we leave an empty line to preserve line numbers).
17612 if test "x$srcdir" = x.; then
17613 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17614 s/:*\$(srcdir):*/:/
17615 s/:*\${srcdir}:*/:/
17616 s/:*@srcdir@:*/:/
17617 s/^\([^=]*=[ ]*\):*/\1/
17618 s/:*$//
17619 s/^[^=]*=[ ]*$//
17623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17624 fi # test -n "$CONFIG_FILES"
17626 # Set up the scripts for CONFIG_HEADERS section.
17627 # No need to generate them if there are no CONFIG_HEADERS.
17628 # This happens for instance with `./config.status Makefile'.
17629 if test -n "$CONFIG_HEADERS"; then
17630 cat >"$tmp/defines.awk" <<\_ACAWK ||
17631 BEGIN {
17632 _ACEOF
17634 # Transform confdefs.h into an awk script `defines.awk', embedded as
17635 # here-document in config.status, that substitutes the proper values into
17636 # config.h.in to produce config.h.
17638 # Create a delimiter string that does not exist in confdefs.h, to ease
17639 # handling of long lines.
17640 ac_delim='%!_!# '
17641 for ac_last_try in false false :; do
17642 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17643 if test -z "$ac_t"; then
17644 break
17645 elif $ac_last_try; then
17646 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17647 else
17648 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17650 done
17652 # For the awk script, D is an array of macro values keyed by name,
17653 # likewise P contains macro parameters if any. Preserve backslash
17654 # newline sequences.
17656 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17657 sed -n '
17658 s/.\{148\}/&'"$ac_delim"'/g
17659 t rset
17660 :rset
17661 s/^[ ]*#[ ]*define[ ][ ]*/ /
17662 t def
17664 :def
17665 s/\\$//
17666 t bsnl
17667 s/["\\]/\\&/g
17668 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17669 D["\1"]=" \3"/p
17670 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17672 :bsnl
17673 s/["\\]/\\&/g
17674 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17675 D["\1"]=" \3\\\\\\n"\\/p
17676 t cont
17677 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17678 t cont
17680 :cont
17682 s/.\{148\}/&'"$ac_delim"'/g
17683 t clear
17684 :clear
17685 s/\\$//
17686 t bsnlc
17687 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17689 :bsnlc
17690 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17691 b cont
17692 ' <confdefs.h | sed '
17693 s/'"$ac_delim"'/"\\\
17694 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17697 for (key in D) D_is_set[key] = 1
17698 FS = "\a"
17700 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17701 line = \$ 0
17702 split(line, arg, " ")
17703 if (arg[1] == "#") {
17704 defundef = arg[2]
17705 mac1 = arg[3]
17706 } else {
17707 defundef = substr(arg[1], 2)
17708 mac1 = arg[2]
17710 split(mac1, mac2, "(") #)
17711 macro = mac2[1]
17712 prefix = substr(line, 1, index(line, defundef) - 1)
17713 if (D_is_set[macro]) {
17714 # Preserve the white space surrounding the "#".
17715 print prefix "define", macro P[macro] D[macro]
17716 next
17717 } else {
17718 # Replace #undef with comments. This is necessary, for example,
17719 # in the case of _POSIX_SOURCE, which is predefined and required
17720 # on some systems where configure will not decide to define it.
17721 if (defundef == "undef") {
17722 print "/*", prefix defundef, macro, "*/"
17723 next
17727 { print }
17728 _ACAWK
17729 _ACEOF
17730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17731 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17732 fi # test -n "$CONFIG_HEADERS"
17735 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17736 shift
17737 for ac_tag
17739 case $ac_tag in
17740 :[FHLC]) ac_mode=$ac_tag; continue;;
17741 esac
17742 case $ac_mode$ac_tag in
17743 :[FHL]*:*);;
17744 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17745 :[FH]-) ac_tag=-:-;;
17746 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17747 esac
17748 ac_save_IFS=$IFS
17749 IFS=:
17750 set x $ac_tag
17751 IFS=$ac_save_IFS
17752 shift
17753 ac_file=$1
17754 shift
17756 case $ac_mode in
17757 :L) ac_source=$1;;
17758 :[FH])
17759 ac_file_inputs=
17760 for ac_f
17762 case $ac_f in
17763 -) ac_f="$tmp/stdin";;
17764 *) # Look for the file first in the build tree, then in the source tree
17765 # (if the path is not absolute). The absolute path cannot be DOS-style,
17766 # because $ac_f cannot contain `:'.
17767 test -f "$ac_f" ||
17768 case $ac_f in
17769 [\\/$]*) false;;
17770 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17771 esac ||
17772 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17773 esac
17774 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17775 as_fn_append ac_file_inputs " '$ac_f'"
17776 done
17778 # Let's still pretend it is `configure' which instantiates (i.e., don't
17779 # use $as_me), people would be surprised to read:
17780 # /* config.h. Generated by config.status. */
17781 configure_input='Generated from '`
17782 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17783 `' by configure.'
17784 if test x"$ac_file" != x-; then
17785 configure_input="$ac_file. $configure_input"
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17787 $as_echo "$as_me: creating $ac_file" >&6;}
17789 # Neutralize special characters interpreted by sed in replacement strings.
17790 case $configure_input in #(
17791 *\&* | *\|* | *\\* )
17792 ac_sed_conf_input=`$as_echo "$configure_input" |
17793 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17794 *) ac_sed_conf_input=$configure_input;;
17795 esac
17797 case $ac_tag in
17798 *:-:* | *:-) cat >"$tmp/stdin" \
17799 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17800 esac
17802 esac
17804 ac_dir=`$as_dirname -- "$ac_file" ||
17805 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17806 X"$ac_file" : 'X\(//\)[^/]' \| \
17807 X"$ac_file" : 'X\(//\)$' \| \
17808 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17809 $as_echo X"$ac_file" |
17810 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17811 s//\1/
17814 /^X\(\/\/\)[^/].*/{
17815 s//\1/
17818 /^X\(\/\/\)$/{
17819 s//\1/
17822 /^X\(\/\).*/{
17823 s//\1/
17826 s/.*/./; q'`
17827 as_dir="$ac_dir"; as_fn_mkdir_p
17828 ac_builddir=.
17830 case "$ac_dir" in
17831 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17833 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17834 # A ".." for each directory in $ac_dir_suffix.
17835 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17836 case $ac_top_builddir_sub in
17837 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17838 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17839 esac ;;
17840 esac
17841 ac_abs_top_builddir=$ac_pwd
17842 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17843 # for backward compatibility:
17844 ac_top_builddir=$ac_top_build_prefix
17846 case $srcdir in
17847 .) # We are building in place.
17848 ac_srcdir=.
17849 ac_top_srcdir=$ac_top_builddir_sub
17850 ac_abs_top_srcdir=$ac_pwd ;;
17851 [\\/]* | ?:[\\/]* ) # Absolute name.
17852 ac_srcdir=$srcdir$ac_dir_suffix;
17853 ac_top_srcdir=$srcdir
17854 ac_abs_top_srcdir=$srcdir ;;
17855 *) # Relative name.
17856 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17857 ac_top_srcdir=$ac_top_build_prefix$srcdir
17858 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17859 esac
17860 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17863 case $ac_mode in
17866 # CONFIG_FILE
17869 case $INSTALL in
17870 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17871 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17872 esac
17873 ac_MKDIR_P=$MKDIR_P
17874 case $MKDIR_P in
17875 [\\/$]* | ?:[\\/]* ) ;;
17876 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17877 esac
17878 _ACEOF
17880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17881 # If the template does not know about datarootdir, expand it.
17882 # FIXME: This hack should be removed a few years after 2.60.
17883 ac_datarootdir_hack=; ac_datarootdir_seen=
17884 ac_sed_dataroot='
17885 /datarootdir/ {
17889 /@datadir@/p
17890 /@docdir@/p
17891 /@infodir@/p
17892 /@localedir@/p
17893 /@mandir@/p'
17894 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17895 *datarootdir*) ac_datarootdir_seen=yes;;
17896 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17898 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17899 _ACEOF
17900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17901 ac_datarootdir_hack='
17902 s&@datadir@&$datadir&g
17903 s&@docdir@&$docdir&g
17904 s&@infodir@&$infodir&g
17905 s&@localedir@&$localedir&g
17906 s&@mandir@&$mandir&g
17907 s&\\\${datarootdir}&$datarootdir&g' ;;
17908 esac
17909 _ACEOF
17911 # Neutralize VPATH when `$srcdir' = `.'.
17912 # Shell code in configure.ac might set extrasub.
17913 # FIXME: do we really want to maintain this feature?
17914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17915 ac_sed_extra="$ac_vpsub
17916 $extrasub
17917 _ACEOF
17918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17920 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17921 s|@configure_input@|$ac_sed_conf_input|;t t
17922 s&@top_builddir@&$ac_top_builddir_sub&;t t
17923 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17924 s&@srcdir@&$ac_srcdir&;t t
17925 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17926 s&@top_srcdir@&$ac_top_srcdir&;t t
17927 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17928 s&@builddir@&$ac_builddir&;t t
17929 s&@abs_builddir@&$ac_abs_builddir&;t t
17930 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17931 s&@INSTALL@&$ac_INSTALL&;t t
17932 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17933 $ac_datarootdir_hack
17935 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17936 || as_fn_error "could not create $ac_file" "$LINENO" 5
17938 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17939 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17940 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17942 which seems to be undefined. Please make sure it is defined." >&5
17943 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17944 which seems to be undefined. Please make sure it is defined." >&2;}
17946 rm -f "$tmp/stdin"
17947 case $ac_file in
17948 -) cat "$tmp/out" && rm -f "$tmp/out";;
17949 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17950 esac \
17951 || as_fn_error "could not create $ac_file" "$LINENO" 5
17955 # CONFIG_HEADER
17957 if test x"$ac_file" != x-; then
17959 $as_echo "/* $configure_input */" \
17960 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17961 } >"$tmp/config.h" \
17962 || as_fn_error "could not create $ac_file" "$LINENO" 5
17963 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17965 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17966 else
17967 rm -f "$ac_file"
17968 mv "$tmp/config.h" "$ac_file" \
17969 || as_fn_error "could not create $ac_file" "$LINENO" 5
17971 else
17972 $as_echo "/* $configure_input */" \
17973 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17974 || as_fn_error "could not create -" "$LINENO" 5
17976 # Compute "$ac_file"'s index in $config_headers.
17977 _am_arg="$ac_file"
17978 _am_stamp_count=1
17979 for _am_header in $config_headers :; do
17980 case $_am_header in
17981 $_am_arg | $_am_arg:* )
17982 break ;;
17984 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17985 esac
17986 done
17987 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17988 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17989 X"$_am_arg" : 'X\(//\)[^/]' \| \
17990 X"$_am_arg" : 'X\(//\)$' \| \
17991 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17992 $as_echo X"$_am_arg" |
17993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17994 s//\1/
17997 /^X\(\/\/\)[^/].*/{
17998 s//\1/
18001 /^X\(\/\/\)$/{
18002 s//\1/
18005 /^X\(\/\).*/{
18006 s//\1/
18009 s/.*/./; q'`/stamp-h$_am_stamp_count
18012 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18013 $as_echo "$as_me: executing $ac_file commands" >&6;}
18015 esac
18018 case $ac_file$ac_mode in
18019 "tests/bootstrap/atconfig":C) cat >tests/bootstrap/atconfig <<ATEOF
18020 # Configurable variable values for building test suites.
18021 # Generated by $0.
18022 # Copyright (C) 2009 Free Software Foundation, Inc.
18024 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
18025 at_testdir='tests/bootstrap'
18026 abs_builddir='$ac_abs_builddir'
18027 at_srcdir='$ac_srcdir'
18028 abs_srcdir='$ac_abs_srcdir'
18029 at_top_srcdir='$ac_top_srcdir'
18030 abs_top_srcdir='$ac_abs_top_srcdir'
18031 at_top_build_prefix='$ac_top_build_prefix'
18032 abs_top_builddir='$ac_abs_top_builddir'
18034 # Backward compatibility with Autotest <= 2.59b:
18035 at_top_builddir=\$at_top_build_prefix
18037 AUTOTEST_PATH='tests/bootstrap'
18039 SHELL=\${CONFIG_SHELL-'$SHELL'}
18040 ATEOF
18042 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18043 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18044 # are listed without --file. Let's play safe and only enable the eval
18045 # if we detect the quoting.
18046 case $CONFIG_FILES in
18047 *\'*) eval set x "$CONFIG_FILES" ;;
18048 *) set x $CONFIG_FILES ;;
18049 esac
18050 shift
18051 for mf
18053 # Strip MF so we end up with the name of the file.
18054 mf=`echo "$mf" | sed -e 's/:.*$//'`
18055 # Check whether this is an Automake generated Makefile or not.
18056 # We used to match only the files named `Makefile.in', but
18057 # some people rename them; so instead we look at the file content.
18058 # Grep'ing the first line is not enough: some people post-process
18059 # each Makefile.in and add a new line on top of each file to say so.
18060 # Grep'ing the whole file is not good either: AIX grep has a line
18061 # limit of 2048, but all sed's we know have understand at least 4000.
18062 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18063 dirpart=`$as_dirname -- "$mf" ||
18064 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18065 X"$mf" : 'X\(//\)[^/]' \| \
18066 X"$mf" : 'X\(//\)$' \| \
18067 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18068 $as_echo X"$mf" |
18069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18070 s//\1/
18073 /^X\(\/\/\)[^/].*/{
18074 s//\1/
18077 /^X\(\/\/\)$/{
18078 s//\1/
18081 /^X\(\/\).*/{
18082 s//\1/
18085 s/.*/./; q'`
18086 else
18087 continue
18089 # Extract the definition of DEPDIR, am__include, and am__quote
18090 # from the Makefile without running `make'.
18091 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18092 test -z "$DEPDIR" && continue
18093 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18094 test -z "am__include" && continue
18095 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18096 # When using ansi2knr, U may be empty or an underscore; expand it
18097 U=`sed -n 's/^U = //p' < "$mf"`
18098 # Find all dependency output files, they are included files with
18099 # $(DEPDIR) in their names. We invoke sed twice because it is the
18100 # simplest approach to changing $(DEPDIR) to its actual value in the
18101 # expansion.
18102 for file in `sed -n "
18103 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18104 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18105 # Make sure the directory exists.
18106 test -f "$dirpart/$file" && continue
18107 fdir=`$as_dirname -- "$file" ||
18108 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18109 X"$file" : 'X\(//\)[^/]' \| \
18110 X"$file" : 'X\(//\)$' \| \
18111 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18112 $as_echo X"$file" |
18113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18114 s//\1/
18117 /^X\(\/\/\)[^/].*/{
18118 s//\1/
18121 /^X\(\/\/\)$/{
18122 s//\1/
18125 /^X\(\/\).*/{
18126 s//\1/
18129 s/.*/./; q'`
18130 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18131 # echo "creating $dirpart/$file"
18132 echo '# dummy' > "$dirpart/$file"
18133 done
18134 done
18137 "libtool":C)
18139 # See if we are running on zsh, and set the options which allow our
18140 # commands through without removal of \ escapes.
18141 if test -n "${ZSH_VERSION+set}" ; then
18142 setopt NO_GLOB_SUBST
18145 cfgfile="${ofile}T"
18146 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18147 $RM "$cfgfile"
18149 cat <<_LT_EOF >> "$cfgfile"
18150 #! $SHELL
18152 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18153 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18154 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18155 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18157 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18158 # 2006, 2007, 2008 Free Software Foundation, Inc.
18159 # Written by Gordon Matzigkeit, 1996
18161 # This file is part of GNU Libtool.
18163 # GNU Libtool is free software; you can redistribute it and/or
18164 # modify it under the terms of the GNU General Public License as
18165 # published by the Free Software Foundation; either version 2 of
18166 # the License, or (at your option) any later version.
18168 # As a special exception to the GNU General Public License,
18169 # if you distribute this file as part of a program or library that
18170 # is built using GNU Libtool, you may include this file under the
18171 # same distribution terms that you use for the rest of that program.
18173 # GNU Libtool is distributed in the hope that it will be useful,
18174 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18175 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18176 # GNU General Public License for more details.
18178 # You should have received a copy of the GNU General Public License
18179 # along with GNU Libtool; see the file COPYING. If not, a copy
18180 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18181 # obtained by writing to the Free Software Foundation, Inc.,
18182 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18185 # The names of the tagged configurations supported by this script.
18186 available_tags="CXX "
18188 # ### BEGIN LIBTOOL CONFIG
18190 # Which release of libtool.m4 was used?
18191 macro_version=$macro_version
18192 macro_revision=$macro_revision
18194 # Whether or not to build shared libraries.
18195 build_libtool_libs=$enable_shared
18197 # Whether or not to build static libraries.
18198 build_old_libs=$enable_static
18200 # What type of objects to build.
18201 pic_mode=$pic_mode
18203 # Whether or not to optimize for fast installation.
18204 fast_install=$enable_fast_install
18206 # The host system.
18207 host_alias=$host_alias
18208 host=$host
18209 host_os=$host_os
18211 # The build system.
18212 build_alias=$build_alias
18213 build=$build
18214 build_os=$build_os
18216 # A sed program that does not truncate output.
18217 SED=$lt_SED
18219 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18220 Xsed="\$SED -e 1s/^X//"
18222 # A grep program that handles long lines.
18223 GREP=$lt_GREP
18225 # An ERE matcher.
18226 EGREP=$lt_EGREP
18228 # A literal string matcher.
18229 FGREP=$lt_FGREP
18231 # A BSD- or MS-compatible name lister.
18232 NM=$lt_NM
18234 # Whether we need soft or hard links.
18235 LN_S=$lt_LN_S
18237 # What is the maximum length of a command?
18238 max_cmd_len=$max_cmd_len
18240 # Object file suffix (normally "o").
18241 objext=$ac_objext
18243 # Executable file suffix (normally "").
18244 exeext=$exeext
18246 # whether the shell understands "unset".
18247 lt_unset=$lt_unset
18249 # turn spaces into newlines.
18250 SP2NL=$lt_lt_SP2NL
18252 # turn newlines into spaces.
18253 NL2SP=$lt_lt_NL2SP
18255 # How to create reloadable object files.
18256 reload_flag=$lt_reload_flag
18257 reload_cmds=$lt_reload_cmds
18259 # An object symbol dumper.
18260 OBJDUMP=$lt_OBJDUMP
18262 # Method to check whether dependent libraries are shared objects.
18263 deplibs_check_method=$lt_deplibs_check_method
18265 # Command to use when deplibs_check_method == "file_magic".
18266 file_magic_cmd=$lt_file_magic_cmd
18268 # The archiver.
18269 AR=$lt_AR
18270 AR_FLAGS=$lt_AR_FLAGS
18272 # A symbol stripping program.
18273 STRIP=$lt_STRIP
18275 # Commands used to install an old-style archive.
18276 RANLIB=$lt_RANLIB
18277 old_postinstall_cmds=$lt_old_postinstall_cmds
18278 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18280 # A C compiler.
18281 LTCC=$lt_CC
18283 # LTCC compiler flags.
18284 LTCFLAGS=$lt_CFLAGS
18286 # Take the output of nm and produce a listing of raw symbols and C names.
18287 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18289 # Transform the output of nm in a proper C declaration.
18290 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18292 # Transform the output of nm in a C name address pair.
18293 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18295 # Transform the output of nm in a C name address pair when lib prefix is needed.
18296 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18298 # The name of the directory that contains temporary libtool files.
18299 objdir=$objdir
18301 # Shell to use when invoking shell scripts.
18302 SHELL=$lt_SHELL
18304 # An echo program that does not interpret backslashes.
18305 ECHO=$lt_ECHO
18307 # Used to examine libraries when file_magic_cmd begins with "file".
18308 MAGIC_CMD=$MAGIC_CMD
18310 # Must we lock files when doing compilation?
18311 need_locks=$lt_need_locks
18313 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18314 DSYMUTIL=$lt_DSYMUTIL
18316 # Tool to change global to local symbols on Mac OS X.
18317 NMEDIT=$lt_NMEDIT
18319 # Tool to manipulate fat objects and archives on Mac OS X.
18320 LIPO=$lt_LIPO
18322 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18323 OTOOL=$lt_OTOOL
18325 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18326 OTOOL64=$lt_OTOOL64
18328 # Old archive suffix (normally "a").
18329 libext=$libext
18331 # Shared library suffix (normally ".so").
18332 shrext_cmds=$lt_shrext_cmds
18334 # The commands to extract the exported symbol list from a shared archive.
18335 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18337 # Variables whose values should be saved in libtool wrapper scripts and
18338 # restored at link time.
18339 variables_saved_for_relink=$lt_variables_saved_for_relink
18341 # Do we need the "lib" prefix for modules?
18342 need_lib_prefix=$need_lib_prefix
18344 # Do we need a version for libraries?
18345 need_version=$need_version
18347 # Library versioning type.
18348 version_type=$version_type
18350 # Shared library runtime path variable.
18351 runpath_var=$runpath_var
18353 # Shared library path variable.
18354 shlibpath_var=$shlibpath_var
18356 # Is shlibpath searched before the hard-coded library search path?
18357 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18359 # Format of library name prefix.
18360 libname_spec=$lt_libname_spec
18362 # List of archive names. First name is the real one, the rest are links.
18363 # The last name is the one that the linker finds with -lNAME
18364 library_names_spec=$lt_library_names_spec
18366 # The coded name of the library, if different from the real name.
18367 soname_spec=$lt_soname_spec
18369 # Command to use after installation of a shared archive.
18370 postinstall_cmds=$lt_postinstall_cmds
18372 # Command to use after uninstallation of a shared archive.
18373 postuninstall_cmds=$lt_postuninstall_cmds
18375 # Commands used to finish a libtool library installation in a directory.
18376 finish_cmds=$lt_finish_cmds
18378 # As "finish_cmds", except a single script fragment to be evaled but
18379 # not shown.
18380 finish_eval=$lt_finish_eval
18382 # Whether we should hardcode library paths into libraries.
18383 hardcode_into_libs=$hardcode_into_libs
18385 # Compile-time system search path for libraries.
18386 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18388 # Run-time system search path for libraries.
18389 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18391 # Whether dlopen is supported.
18392 dlopen_support=$enable_dlopen
18394 # Whether dlopen of programs is supported.
18395 dlopen_self=$enable_dlopen_self
18397 # Whether dlopen of statically linked programs is supported.
18398 dlopen_self_static=$enable_dlopen_self_static
18400 # Commands to strip libraries.
18401 old_striplib=$lt_old_striplib
18402 striplib=$lt_striplib
18405 # The linker used to build libraries.
18406 LD=$lt_LD
18408 # Commands used to build an old-style archive.
18409 old_archive_cmds=$lt_old_archive_cmds
18411 # A language specific compiler.
18412 CC=$lt_compiler
18414 # Is the compiler the GNU compiler?
18415 with_gcc=$GCC
18417 # Compiler flag to turn off builtin functions.
18418 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18420 # How to pass a linker flag through the compiler.
18421 wl=$lt_lt_prog_compiler_wl
18423 # Additional compiler flags for building library objects.
18424 pic_flag=$lt_lt_prog_compiler_pic
18426 # Compiler flag to prevent dynamic linking.
18427 link_static_flag=$lt_lt_prog_compiler_static
18429 # Does compiler simultaneously support -c and -o options?
18430 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18432 # Whether or not to add -lc for building shared libraries.
18433 build_libtool_need_lc=$archive_cmds_need_lc
18435 # Whether or not to disallow shared libs when runtime libs are static.
18436 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18438 # Compiler flag to allow reflexive dlopens.
18439 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18441 # Compiler flag to generate shared objects directly from archives.
18442 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18444 # Whether the compiler copes with passing no objects directly.
18445 compiler_needs_object=$lt_compiler_needs_object
18447 # Create an old-style archive from a shared archive.
18448 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18450 # Create a temporary old-style archive to link instead of a shared archive.
18451 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18453 # Commands used to build a shared archive.
18454 archive_cmds=$lt_archive_cmds
18455 archive_expsym_cmds=$lt_archive_expsym_cmds
18457 # Commands used to build a loadable module if different from building
18458 # a shared archive.
18459 module_cmds=$lt_module_cmds
18460 module_expsym_cmds=$lt_module_expsym_cmds
18462 # Whether we are building with GNU ld or not.
18463 with_gnu_ld=$lt_with_gnu_ld
18465 # Flag that allows shared libraries with undefined symbols to be built.
18466 allow_undefined_flag=$lt_allow_undefined_flag
18468 # Flag that enforces no undefined symbols.
18469 no_undefined_flag=$lt_no_undefined_flag
18471 # Flag to hardcode \$libdir into a binary during linking.
18472 # This must work even if \$libdir does not exist
18473 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18475 # If ld is used when linking, flag to hardcode \$libdir into a binary
18476 # during linking. This must work even if \$libdir does not exist.
18477 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18479 # Whether we need a single "-rpath" flag with a separated argument.
18480 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18482 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18483 # DIR into the resulting binary.
18484 hardcode_direct=$hardcode_direct
18486 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18487 # DIR into the resulting binary and the resulting library dependency is
18488 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18489 # library is relocated.
18490 hardcode_direct_absolute=$hardcode_direct_absolute
18492 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18493 # into the resulting binary.
18494 hardcode_minus_L=$hardcode_minus_L
18496 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18497 # into the resulting binary.
18498 hardcode_shlibpath_var=$hardcode_shlibpath_var
18500 # Set to "yes" if building a shared library automatically hardcodes DIR
18501 # into the library and all subsequent libraries and executables linked
18502 # against it.
18503 hardcode_automatic=$hardcode_automatic
18505 # Set to yes if linker adds runtime paths of dependent libraries
18506 # to runtime path list.
18507 inherit_rpath=$inherit_rpath
18509 # Whether libtool must link a program against all its dependency libraries.
18510 link_all_deplibs=$link_all_deplibs
18512 # Fix the shell variable \$srcfile for the compiler.
18513 fix_srcfile_path=$lt_fix_srcfile_path
18515 # Set to "yes" if exported symbols are required.
18516 always_export_symbols=$always_export_symbols
18518 # The commands to list exported symbols.
18519 export_symbols_cmds=$lt_export_symbols_cmds
18521 # Symbols that should not be listed in the preloaded symbols.
18522 exclude_expsyms=$lt_exclude_expsyms
18524 # Symbols that must always be exported.
18525 include_expsyms=$lt_include_expsyms
18527 # Commands necessary for linking programs (against libraries) with templates.
18528 prelink_cmds=$lt_prelink_cmds
18530 # Specify filename containing input files.
18531 file_list_spec=$lt_file_list_spec
18533 # How to hardcode a shared library path into an executable.
18534 hardcode_action=$hardcode_action
18536 # The directories searched by this compiler when creating a shared library.
18537 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18539 # Dependencies to place before and after the objects being linked to
18540 # create a shared library.
18541 predep_objects=$lt_predep_objects
18542 postdep_objects=$lt_postdep_objects
18543 predeps=$lt_predeps
18544 postdeps=$lt_postdeps
18546 # The library search path used internally by the compiler when linking
18547 # a shared library.
18548 compiler_lib_search_path=$lt_compiler_lib_search_path
18550 # ### END LIBTOOL CONFIG
18552 _LT_EOF
18554 case $host_os in
18555 aix3*)
18556 cat <<\_LT_EOF >> "$cfgfile"
18557 # AIX sometimes has problems with the GCC collect2 program. For some
18558 # reason, if we set the COLLECT_NAMES environment variable, the problems
18559 # vanish in a puff of smoke.
18560 if test "X${COLLECT_NAMES+set}" != Xset; then
18561 COLLECT_NAMES=
18562 export COLLECT_NAMES
18564 _LT_EOF
18566 esac
18569 ltmain="$ac_aux_dir/ltmain.sh"
18572 # We use sed instead of cat because bash on DJGPP gets confused if
18573 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18574 # text mode, it properly converts lines to CR/LF. This bash problem
18575 # is reportedly fixed, but why not run on old versions too?
18576 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18577 || (rm -f "$cfgfile"; exit 1)
18579 case $xsi_shell in
18580 yes)
18581 cat << \_LT_EOF >> "$cfgfile"
18583 # func_dirname file append nondir_replacement
18584 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18585 # otherwise set result to NONDIR_REPLACEMENT.
18586 func_dirname ()
18588 case ${1} in
18589 */*) func_dirname_result="${1%/*}${2}" ;;
18590 * ) func_dirname_result="${3}" ;;
18591 esac
18594 # func_basename file
18595 func_basename ()
18597 func_basename_result="${1##*/}"
18600 # func_dirname_and_basename file append nondir_replacement
18601 # perform func_basename and func_dirname in a single function
18602 # call:
18603 # dirname: Compute the dirname of FILE. If nonempty,
18604 # add APPEND to the result, otherwise set result
18605 # to NONDIR_REPLACEMENT.
18606 # value returned in "$func_dirname_result"
18607 # basename: Compute filename of FILE.
18608 # value retuned in "$func_basename_result"
18609 # Implementation must be kept synchronized with func_dirname
18610 # and func_basename. For efficiency, we do not delegate to
18611 # those functions but instead duplicate the functionality here.
18612 func_dirname_and_basename ()
18614 case ${1} in
18615 */*) func_dirname_result="${1%/*}${2}" ;;
18616 * ) func_dirname_result="${3}" ;;
18617 esac
18618 func_basename_result="${1##*/}"
18621 # func_stripname prefix suffix name
18622 # strip PREFIX and SUFFIX off of NAME.
18623 # PREFIX and SUFFIX must not contain globbing or regex special
18624 # characters, hashes, percent signs, but SUFFIX may contain a leading
18625 # dot (in which case that matches only a dot).
18626 func_stripname ()
18628 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18629 # positional parameters, so assign one to ordinary parameter first.
18630 func_stripname_result=${3}
18631 func_stripname_result=${func_stripname_result#"${1}"}
18632 func_stripname_result=${func_stripname_result%"${2}"}
18635 # func_opt_split
18636 func_opt_split ()
18638 func_opt_split_opt=${1%%=*}
18639 func_opt_split_arg=${1#*=}
18642 # func_lo2o object
18643 func_lo2o ()
18645 case ${1} in
18646 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18647 *) func_lo2o_result=${1} ;;
18648 esac
18651 # func_xform libobj-or-source
18652 func_xform ()
18654 func_xform_result=${1%.*}.lo
18657 # func_arith arithmetic-term...
18658 func_arith ()
18660 func_arith_result=$(( $* ))
18663 # func_len string
18664 # STRING may not start with a hyphen.
18665 func_len ()
18667 func_len_result=${#1}
18670 _LT_EOF
18672 *) # Bourne compatible functions.
18673 cat << \_LT_EOF >> "$cfgfile"
18675 # func_dirname file append nondir_replacement
18676 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18677 # otherwise set result to NONDIR_REPLACEMENT.
18678 func_dirname ()
18680 # Extract subdirectory from the argument.
18681 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18682 if test "X$func_dirname_result" = "X${1}"; then
18683 func_dirname_result="${3}"
18684 else
18685 func_dirname_result="$func_dirname_result${2}"
18689 # func_basename file
18690 func_basename ()
18692 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18696 # func_stripname prefix suffix name
18697 # strip PREFIX and SUFFIX off of NAME.
18698 # PREFIX and SUFFIX must not contain globbing or regex special
18699 # characters, hashes, percent signs, but SUFFIX may contain a leading
18700 # dot (in which case that matches only a dot).
18701 # func_strip_suffix prefix name
18702 func_stripname ()
18704 case ${2} in
18705 .*) func_stripname_result=`$ECHO "X${3}" \
18706 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18707 *) func_stripname_result=`$ECHO "X${3}" \
18708 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18709 esac
18712 # sed scripts:
18713 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18714 my_sed_long_arg='1s/^-[^=]*=//'
18716 # func_opt_split
18717 func_opt_split ()
18719 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18720 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18723 # func_lo2o object
18724 func_lo2o ()
18726 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18729 # func_xform libobj-or-source
18730 func_xform ()
18732 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18735 # func_arith arithmetic-term...
18736 func_arith ()
18738 func_arith_result=`expr "$@"`
18741 # func_len string
18742 # STRING may not start with a hyphen.
18743 func_len ()
18745 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18748 _LT_EOF
18749 esac
18751 case $lt_shell_append in
18752 yes)
18753 cat << \_LT_EOF >> "$cfgfile"
18755 # func_append var value
18756 # Append VALUE to the end of shell variable VAR.
18757 func_append ()
18759 eval "$1+=\$2"
18761 _LT_EOF
18764 cat << \_LT_EOF >> "$cfgfile"
18766 # func_append var value
18767 # Append VALUE to the end of shell variable VAR.
18768 func_append ()
18770 eval "$1=\$$1\$2"
18773 _LT_EOF
18775 esac
18778 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18779 || (rm -f "$cfgfile"; exit 1)
18781 mv -f "$cfgfile" "$ofile" ||
18782 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18783 chmod +x "$ofile"
18786 cat <<_LT_EOF >> "$ofile"
18788 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18790 # The linker used to build libraries.
18791 LD=$lt_LD_CXX
18793 # Commands used to build an old-style archive.
18794 old_archive_cmds=$lt_old_archive_cmds_CXX
18796 # A language specific compiler.
18797 CC=$lt_compiler_CXX
18799 # Is the compiler the GNU compiler?
18800 with_gcc=$GCC_CXX
18802 # Compiler flag to turn off builtin functions.
18803 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18805 # How to pass a linker flag through the compiler.
18806 wl=$lt_lt_prog_compiler_wl_CXX
18808 # Additional compiler flags for building library objects.
18809 pic_flag=$lt_lt_prog_compiler_pic_CXX
18811 # Compiler flag to prevent dynamic linking.
18812 link_static_flag=$lt_lt_prog_compiler_static_CXX
18814 # Does compiler simultaneously support -c and -o options?
18815 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18817 # Whether or not to add -lc for building shared libraries.
18818 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18820 # Whether or not to disallow shared libs when runtime libs are static.
18821 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18823 # Compiler flag to allow reflexive dlopens.
18824 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18826 # Compiler flag to generate shared objects directly from archives.
18827 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18829 # Whether the compiler copes with passing no objects directly.
18830 compiler_needs_object=$lt_compiler_needs_object_CXX
18832 # Create an old-style archive from a shared archive.
18833 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18835 # Create a temporary old-style archive to link instead of a shared archive.
18836 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18838 # Commands used to build a shared archive.
18839 archive_cmds=$lt_archive_cmds_CXX
18840 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18842 # Commands used to build a loadable module if different from building
18843 # a shared archive.
18844 module_cmds=$lt_module_cmds_CXX
18845 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18847 # Whether we are building with GNU ld or not.
18848 with_gnu_ld=$lt_with_gnu_ld_CXX
18850 # Flag that allows shared libraries with undefined symbols to be built.
18851 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18853 # Flag that enforces no undefined symbols.
18854 no_undefined_flag=$lt_no_undefined_flag_CXX
18856 # Flag to hardcode \$libdir into a binary during linking.
18857 # This must work even if \$libdir does not exist
18858 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18860 # If ld is used when linking, flag to hardcode \$libdir into a binary
18861 # during linking. This must work even if \$libdir does not exist.
18862 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18864 # Whether we need a single "-rpath" flag with a separated argument.
18865 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18867 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18868 # DIR into the resulting binary.
18869 hardcode_direct=$hardcode_direct_CXX
18871 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18872 # DIR into the resulting binary and the resulting library dependency is
18873 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18874 # library is relocated.
18875 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18877 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18878 # into the resulting binary.
18879 hardcode_minus_L=$hardcode_minus_L_CXX
18881 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18882 # into the resulting binary.
18883 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18885 # Set to "yes" if building a shared library automatically hardcodes DIR
18886 # into the library and all subsequent libraries and executables linked
18887 # against it.
18888 hardcode_automatic=$hardcode_automatic_CXX
18890 # Set to yes if linker adds runtime paths of dependent libraries
18891 # to runtime path list.
18892 inherit_rpath=$inherit_rpath_CXX
18894 # Whether libtool must link a program against all its dependency libraries.
18895 link_all_deplibs=$link_all_deplibs_CXX
18897 # Fix the shell variable \$srcfile for the compiler.
18898 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18900 # Set to "yes" if exported symbols are required.
18901 always_export_symbols=$always_export_symbols_CXX
18903 # The commands to list exported symbols.
18904 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18906 # Symbols that should not be listed in the preloaded symbols.
18907 exclude_expsyms=$lt_exclude_expsyms_CXX
18909 # Symbols that must always be exported.
18910 include_expsyms=$lt_include_expsyms_CXX
18912 # Commands necessary for linking programs (against libraries) with templates.
18913 prelink_cmds=$lt_prelink_cmds_CXX
18915 # Specify filename containing input files.
18916 file_list_spec=$lt_file_list_spec_CXX
18918 # How to hardcode a shared library path into an executable.
18919 hardcode_action=$hardcode_action_CXX
18921 # The directories searched by this compiler when creating a shared library.
18922 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18924 # Dependencies to place before and after the objects being linked to
18925 # create a shared library.
18926 predep_objects=$lt_predep_objects_CXX
18927 postdep_objects=$lt_postdep_objects_CXX
18928 predeps=$lt_predeps_CXX
18929 postdeps=$lt_postdeps_CXX
18931 # The library search path used internally by the compiler when linking
18932 # a shared library.
18933 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18935 # ### END LIBTOOL TAG CONFIG: CXX
18936 _LT_EOF
18940 esac
18941 done # for ac_tag
18944 as_fn_exit 0
18945 _ACEOF
18946 ac_clean_files=$ac_clean_files_save
18948 test $ac_write_fail = 0 ||
18949 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18952 # configure is writing to config.log, and then calls config.status.
18953 # config.status does its own redirection, appending to config.log.
18954 # Unfortunately, on DOS this fails, as config.log is still kept open
18955 # by configure, so config.status won't be able to write to it; its
18956 # output is simply discarded. So we exec the FD to /dev/null,
18957 # effectively closing config.log, so it can be properly (re)opened and
18958 # appended to by config.status. When coming back to configure, we
18959 # need to make the FD available again.
18960 if test "$no_create" != yes; then
18961 ac_cs_success=:
18962 ac_config_status_args=
18963 test "$silent" = yes &&
18964 ac_config_status_args="$ac_config_status_args --quiet"
18965 exec 5>/dev/null
18966 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18967 exec 5>>config.log
18968 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18969 # would make configure fail if this is the last instruction.
18970 $ac_cs_success || as_fn_exit $?
18972 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18974 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18978 if test ${enable_shared} = yes; then
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Shared libraries with unstable ABIs/APIs have been enabled." >&5
18980 $as_echo "$as_me: WARNING: Shared libraries with unstable ABIs/APIs have been enabled." >&2;}
18981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please do not install them as part of a binary package." >&5
18982 $as_echo "$as_me: WARNING: Please do not install them as part of a binary package." >&2;}