Remove building with NOCRYPTO option
[minix.git] / external / bsd / bind / dist / unit / atf-src / configure
blob714a79414e02996ad02bd3c980c3f9ab66219850
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Automated Testing Framework 0.17.
5 # Report bugs to <atf-devel@NetBSD.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
14 # Copyright (c) 2007-2012 The NetBSD Foundation, Inc.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 # Use a proper internal environment variable to ensure we don't fall
140 # into an infinite loop, continuously re-executing ourselves.
141 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
142 _as_can_reexec=no; export _as_can_reexec;
143 # We cannot yet assume a decent shell, so we have to provide a
144 # neutralization value for shells without unset; and this also
145 # works around shells that cannot unset nonexistent variables.
146 # Preserve -v and -x to the replacement shell.
147 BASH_ENV=/dev/null
148 ENV=/dev/null
149 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150 case $- in # ((((
151 *v*x* | *x*v* ) as_opts=-vx ;;
152 *v* ) as_opts=-v ;;
153 *x* ) as_opts=-x ;;
154 * ) as_opts= ;;
155 esac
156 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157 # Admittedly, this is quite paranoid, since all the known shells bail
158 # out after a failed `exec'.
159 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 as_fn_exit 255
162 # We don't want this to propagate to other subprocesses.
163 { _as_can_reexec=; unset _as_can_reexec;}
164 if test "x$CONFIG_SHELL" = x; then
165 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 emulate sh
167 NULLCMD=:
168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169 # is contrary to our usage. Disable this feature.
170 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 setopt NO_GLOB_SUBST
172 else
173 case \`(set -o) 2>/dev/null\` in #(
174 *posix*) :
175 set -o posix ;; #(
176 *) :
178 esac
181 as_required="as_fn_return () { (exit \$1); }
182 as_fn_success () { as_fn_return 0; }
183 as_fn_failure () { as_fn_return 1; }
184 as_fn_ret_success () { return 0; }
185 as_fn_ret_failure () { return 1; }
187 exitcode=0
188 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
194 else
195 exitcode=1; echo positional parameters were not saved.
197 test x\$exitcode = x0 || exit 1
198 test -x / || exit 1"
199 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
200 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
201 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
202 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
203 test \$(( 1 + 1 )) = 2 || exit 1"
204 if (eval "$as_required") 2>/dev/null; then :
205 as_have_required=yes
206 else
207 as_have_required=no
209 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
211 else
212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
213 as_found=false
214 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
216 IFS=$as_save_IFS
217 test -z "$as_dir" && as_dir=.
218 as_found=:
219 case $as_dir in #(
221 for as_base in sh bash ksh sh5; do
222 # Try only shells that exist, to save several forks.
223 as_shell=$as_dir/$as_base
224 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
225 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
228 break 2
231 done;;
232 esac
233 as_found=false
234 done
235 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
236 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
237 CONFIG_SHELL=$SHELL as_have_required=yes
238 fi; }
239 IFS=$as_save_IFS
242 if test "x$CONFIG_SHELL" != x; then :
243 export CONFIG_SHELL
244 # We cannot yet assume a decent shell, so we have to provide a
245 # neutralization value for shells without unset; and this also
246 # works around shells that cannot unset nonexistent variables.
247 # Preserve -v and -x to the replacement shell.
248 BASH_ENV=/dev/null
249 ENV=/dev/null
250 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
251 case $- in # ((((
252 *v*x* | *x*v* ) as_opts=-vx ;;
253 *v* ) as_opts=-v ;;
254 *x* ) as_opts=-x ;;
255 * ) as_opts= ;;
256 esac
257 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
258 # Admittedly, this is quite paranoid, since all the known shells bail
259 # out after a failed `exec'.
260 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
261 exit 255
264 if test x$as_have_required = xno; then :
265 $as_echo "$0: This script requires a shell more modern than all"
266 $as_echo "$0: the shells that I found on your system."
267 if test x${ZSH_VERSION+set} = xset ; then
268 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
269 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
270 else
271 $as_echo "$0: Please tell bug-autoconf@gnu.org and
272 $0: atf-devel@NetBSD.org about your system, including any
273 $0: error possibly output before this message. Then install
274 $0: a modern shell, or manually run the script under such a
275 $0: shell if you do have one."
277 exit 1
281 SHELL=${CONFIG_SHELL-/bin/sh}
282 export SHELL
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE= GREP_OPTIONS=
285 unset CLICOLOR_FORCE GREP_OPTIONS
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
290 # as_fn_unset VAR
291 # ---------------
292 # Portably unset VAR.
293 as_fn_unset ()
295 { eval $1=; unset $1;}
297 as_unset=as_fn_unset
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
302 as_fn_set_status ()
304 return $1
305 } # as_fn_set_status
307 # as_fn_exit STATUS
308 # -----------------
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
310 as_fn_exit ()
312 set +e
313 as_fn_set_status $1
314 exit $1
315 } # as_fn_exit
317 # as_fn_mkdir_p
318 # -------------
319 # Create "$as_dir" as a directory, including parents if necessary.
320 as_fn_mkdir_p ()
323 case $as_dir in #(
324 -*) as_dir=./$as_dir;;
325 esac
326 test -d "$as_dir" || eval $as_mkdir_p || {
327 as_dirs=
328 while :; do
329 case $as_dir in #(
330 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 *) as_qdir=$as_dir;;
332 esac
333 as_dirs="'$as_qdir' $as_dirs"
334 as_dir=`$as_dirname -- "$as_dir" ||
335 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
336 X"$as_dir" : 'X\(//\)[^/]' \| \
337 X"$as_dir" : 'X\(//\)$' \| \
338 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
339 $as_echo X"$as_dir" |
340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
341 s//\1/
344 /^X\(\/\/\)[^/].*/{
345 s//\1/
348 /^X\(\/\/\)$/{
349 s//\1/
352 /^X\(\/\).*/{
353 s//\1/
356 s/.*/./; q'`
357 test -d "$as_dir" && break
358 done
359 test -z "$as_dirs" || eval "mkdir $as_dirs"
360 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
363 } # as_fn_mkdir_p
365 # as_fn_executable_p FILE
366 # -----------------------
367 # Test if FILE is an executable regular file.
368 as_fn_executable_p ()
370 test -f "$1" && test -x "$1"
371 } # as_fn_executable_p
372 # as_fn_append VAR VALUE
373 # ----------------------
374 # Append the text in VALUE to the end of the definition contained in VAR. Take
375 # advantage of any shell optimizations that allow amortized linear growth over
376 # repeated appends, instead of the typical quadratic growth present in naive
377 # implementations.
378 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
379 eval 'as_fn_append ()
381 eval $1+=\$2
383 else
384 as_fn_append ()
386 eval $1=\$$1\$2
388 fi # as_fn_append
390 # as_fn_arith ARG...
391 # ------------------
392 # Perform arithmetic evaluation on the ARGs, and store the result in the
393 # global $as_val. Take advantage of shells that can avoid forks. The arguments
394 # must be portable across $(()) and expr.
395 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
396 eval 'as_fn_arith ()
398 as_val=$(( $* ))
400 else
401 as_fn_arith ()
403 as_val=`expr "$@" || test $? -eq 1`
405 fi # as_fn_arith
408 # as_fn_error STATUS ERROR [LINENO LOG_FD]
409 # ----------------------------------------
410 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
411 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
412 # script with STATUS, using 1 if that was 0.
413 as_fn_error ()
415 as_status=$1; test $as_status -eq 0 && as_status=1
416 if test "$4"; then
417 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
418 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
420 $as_echo "$as_me: error: $2" >&2
421 as_fn_exit $as_status
422 } # as_fn_error
424 if expr a : '\(a\)' >/dev/null 2>&1 &&
425 test "X`expr 00001 : '.*\(...\)'`" = X001; then
426 as_expr=expr
427 else
428 as_expr=false
431 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 as_basename=basename
433 else
434 as_basename=false
437 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438 as_dirname=dirname
439 else
440 as_dirname=false
443 as_me=`$as_basename -- "$0" ||
444 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
445 X"$0" : 'X\(//\)$' \| \
446 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
447 $as_echo X/"$0" |
448 sed '/^.*\/\([^/][^/]*\)\/*$/{
449 s//\1/
452 /^X\/\(\/\/\)$/{
453 s//\1/
456 /^X\/\(\/\).*/{
457 s//\1/
460 s/.*/./; q'`
462 # Avoid depending upon Character Ranges.
463 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
464 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
465 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
466 as_cr_digits='0123456789'
467 as_cr_alnum=$as_cr_Letters$as_cr_digits
470 as_lineno_1=$LINENO as_lineno_1a=$LINENO
471 as_lineno_2=$LINENO as_lineno_2a=$LINENO
472 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
473 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
474 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
475 sed -n '
477 /[$]LINENO/=
478 ' <$as_myself |
479 sed '
480 s/[$]LINENO.*/&-/
481 t lineno
483 :lineno
485 :loop
486 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
487 t loop
488 s/-\n.*//
489 ' >$as_me.lineno &&
490 chmod +x "$as_me.lineno" ||
491 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
493 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
494 # already done that, so ensure we don't try to do so again and fall
495 # in an infinite loop. This has already happened in practice.
496 _as_can_reexec=no; export _as_can_reexec
497 # Don't try to exec as it changes $[0], causing all sort of problems
498 # (the dirname of $[0] is not the place where we might find the
499 # original and so on. Autoconf is especially sensitive to this).
500 . "./$as_me.lineno"
501 # Exit status is that of the last command.
502 exit
505 ECHO_C= ECHO_N= ECHO_T=
506 case `echo -n x` in #(((((
507 -n*)
508 case `echo 'xy\c'` in
509 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
510 xy) ECHO_C='\c';;
511 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
512 ECHO_T=' ';;
513 esac;;
515 ECHO_N='-n';;
516 esac
518 rm -f conf$$ conf$$.exe conf$$.file
519 if test -d conf$$.dir; then
520 rm -f conf$$.dir/conf$$.file
521 else
522 rm -f conf$$.dir
523 mkdir conf$$.dir 2>/dev/null
525 if (echo >conf$$.file) 2>/dev/null; then
526 if ln -s conf$$.file conf$$ 2>/dev/null; then
527 as_ln_s='ln -s'
528 # ... but there are two gotchas:
529 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
530 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
531 # In both cases, we have to default to `cp -pR'.
532 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
533 as_ln_s='cp -pR'
534 elif ln conf$$.file conf$$ 2>/dev/null; then
535 as_ln_s=ln
536 else
537 as_ln_s='cp -pR'
539 else
540 as_ln_s='cp -pR'
542 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
543 rmdir conf$$.dir 2>/dev/null
545 if mkdir -p . 2>/dev/null; then
546 as_mkdir_p='mkdir -p "$as_dir"'
547 else
548 test -d ./-p && rmdir ./-p
549 as_mkdir_p=false
552 as_test_x='test -x'
553 as_executable_p=as_fn_executable_p
555 # Sed expression to map a string onto a valid CPP name.
556 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
558 # Sed expression to map a string onto a valid variable name.
559 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563 # Check that we are running under the correct shell.
564 SHELL=${CONFIG_SHELL-/bin/sh}
566 case X$lt_ECHO in
567 X*--fallback-echo)
568 # Remove one level of quotation (which was required for Make).
569 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
571 esac
573 ECHO=${lt_ECHO-echo}
574 if test "X$1" = X--no-reexec; then
575 # Discard the --no-reexec flag, and continue.
576 shift
577 elif test "X$1" = X--fallback-echo; then
578 # Avoid inline document here, it may be left over
580 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
581 # Yippee, $ECHO works!
583 else
584 # Restart under the correct shell.
585 exec $SHELL "$0" --no-reexec ${1+"$@"}
588 if test "X$1" = X--fallback-echo; then
589 # used as fallback echo
590 shift
591 cat <<_LT_EOF
593 _LT_EOF
594 exit 0
597 # The HP-UX ksh and POSIX shell print the target directory to stdout
598 # if CDPATH is set.
599 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
601 if test -z "$lt_ECHO"; then
602 if test "X${echo_test_string+set}" != Xset; then
603 # find a string as large as possible, as long as the shell can cope with it
604 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
605 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
606 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
607 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
608 then
609 break
611 done
614 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
615 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
616 test "X$echo_testing_string" = "X$echo_test_string"; then
618 else
619 # The Solaris, AIX, and Digital Unix default echo programs unquote
620 # backslashes. This makes it impossible to quote backslashes using
621 # echo "$something" | sed 's/\\/\\\\/g'
623 # So, first we look for a working echo in the user's PATH.
625 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
626 for dir in $PATH /usr/ucb; do
627 IFS="$lt_save_ifs"
628 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
629 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
630 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 ECHO="$dir/echo"
633 break
635 done
636 IFS="$lt_save_ifs"
638 if test "X$ECHO" = Xecho; then
639 # We didn't find a better echo, so look for alternatives.
640 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
641 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
642 test "X$echo_testing_string" = "X$echo_test_string"; then
643 # This shell has a builtin print -r that does the trick.
644 ECHO='print -r'
645 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
646 test "X$CONFIG_SHELL" != X/bin/ksh; then
647 # If we have ksh, try running configure again with it.
648 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
649 export ORIGINAL_CONFIG_SHELL
650 CONFIG_SHELL=/bin/ksh
651 export CONFIG_SHELL
652 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
653 else
654 # Try using printf.
655 ECHO='printf %s\n'
656 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
657 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
658 test "X$echo_testing_string" = "X$echo_test_string"; then
659 # Cool, printf works
661 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
666 export CONFIG_SHELL
667 SHELL="$CONFIG_SHELL"
668 export SHELL
669 ECHO="$CONFIG_SHELL $0 --fallback-echo"
670 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
671 test "X$echo_testing_string" = 'X\t' &&
672 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
673 test "X$echo_testing_string" = "X$echo_test_string"; then
674 ECHO="$CONFIG_SHELL $0 --fallback-echo"
675 else
676 # maybe with a smaller string...
677 prev=:
679 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
680 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
681 then
682 break
684 prev="$cmd"
685 done
687 if test "$prev" != 'sed 50q "$0"'; then
688 echo_test_string=`eval $prev`
689 export echo_test_string
690 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
691 else
692 # Oops. We lost completely, so just stick with echo.
693 ECHO=echo
701 # Copy echo and quote the copy suitably for passing to libtool from
702 # the Makefile, instead of quoting the original, which is used later.
703 lt_ECHO=$ECHO
704 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
705 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
711 test -n "$DJDIR" || exec 7<&0 </dev/null
712 exec 6>&1
714 # Name of the host.
715 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
716 # so uname gets run too.
717 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
720 # Initializations.
722 ac_default_prefix=/usr/local
723 ac_clean_files=
724 ac_config_libobj_dir=.
725 LIBOBJS=
726 cross_compiling=no
727 subdirs=
728 MFLAGS=
729 MAKEFLAGS=
731 # Identity of this package.
732 PACKAGE_NAME='Automated Testing Framework'
733 PACKAGE_TARNAME='atf'
734 PACKAGE_VERSION='0.17'
735 PACKAGE_STRING='Automated Testing Framework 0.17'
736 PACKAGE_BUGREPORT='atf-devel@NetBSD.org'
737 PACKAGE_URL='http://code.google.com/p/kyua/wiki/ATF'
739 ac_unique_file="atf-c.h"
740 # Factoring default headers for most tests.
741 ac_includes_default="\
742 #include <stdio.h>
743 #ifdef HAVE_SYS_TYPES_H
744 # include <sys/types.h>
745 #endif
746 #ifdef HAVE_SYS_STAT_H
747 # include <sys/stat.h>
748 #endif
749 #ifdef STDC_HEADERS
750 # include <stdlib.h>
751 # include <stddef.h>
752 #else
753 # ifdef HAVE_STDLIB_H
754 # include <stdlib.h>
755 # endif
756 #endif
757 #ifdef HAVE_STRING_H
758 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759 # include <memory.h>
760 # endif
761 # include <string.h>
762 #endif
763 #ifdef HAVE_STRINGS_H
764 # include <strings.h>
765 #endif
766 #ifdef HAVE_INTTYPES_H
767 # include <inttypes.h>
768 #endif
769 #ifdef HAVE_STDINT_H
770 # include <stdint.h>
771 #endif
772 #ifdef HAVE_UNISTD_H
773 # include <unistd.h>
774 #endif"
776 ac_subst_vars='am__EXEEXT_FALSE
777 am__EXEEXT_TRUE
778 LTLIBOBJS
779 LIBOBJS
781 HAVE_KYUA_FALSE
782 HAVE_KYUA_TRUE
783 KYUA
785 ATF_SHELL
786 atf_xsldir
787 atf_pkgconfigdir
788 atf_egdir
789 atf_dtddir
790 atf_cssdir
791 atf_aclocaldir
792 ATF_WORKDIR
793 atf_confdir
794 ATF_CONFSUBDIR
795 atf_machine
796 atf_arch
797 target_srcdir
798 ATF_BUILD_CXXFLAGS
799 ATF_BUILD_CXX
800 ATF_BUILD_CPPFLAGS
801 ATF_BUILD_CPP
802 ATF_BUILD_CFLAGS
803 ATF_BUILD_CC
804 ATTRIBUTE_UNUSED
805 ATTRIBUTE_NORETURN
806 ATTRIBUTE_FORMAT_PRINTF
807 CXXCPP
808 am__fastdepCXX_FALSE
809 am__fastdepCXX_TRUE
810 CXXDEPMODE
811 ac_ct_CXX
812 CXXFLAGS
814 ENABLE_TOOLS_FALSE
815 ENABLE_TOOLS_TRUE
816 ENABLE_TOOLS
818 OTOOL64
819 OTOOL
820 LIPO
821 NMEDIT
822 DSYMUTIL
823 lt_ECHO
824 RANLIB
826 OBJDUMP
827 LN_S
829 ac_ct_DUMPBIN
830 DUMPBIN
832 FGREP
833 EGREP
834 GREP
836 am__fastdepCC_FALSE
837 am__fastdepCC_TRUE
838 CCDEPMODE
839 am__nodep
840 AMDEPBACKSLASH
841 AMDEP_FALSE
842 AMDEP_TRUE
843 am__quote
844 am__include
845 DEPDIR
846 OBJEXT
847 EXEEXT
848 ac_ct_CC
849 CPPFLAGS
850 LDFLAGS
851 CFLAGS
853 LIBTOOL
854 am__untar
855 am__tar
856 AMTAR
857 am__leading_dot
858 SET_MAKE
860 mkdir_p
861 MKDIR_P
862 INSTALL_STRIP_PROGRAM
863 STRIP
864 install_sh
865 MAKEINFO
866 AUTOHEADER
867 AUTOMAKE
868 AUTOCONF
869 ACLOCAL
870 VERSION
871 PACKAGE
872 CYGPATH_W
873 am__isrc
874 INSTALL_DATA
875 INSTALL_SCRIPT
876 INSTALL_PROGRAM
877 target_os
878 target_vendor
879 target_cpu
880 target
881 host_os
882 host_vendor
883 host_cpu
884 host
885 build_os
886 build_vendor
887 build_cpu
888 build
889 target_alias
890 host_alias
891 build_alias
892 LIBS
893 ECHO_T
894 ECHO_N
895 ECHO_C
896 DEFS
897 mandir
898 localedir
899 libdir
900 psdir
901 pdfdir
902 dvidir
903 htmldir
904 infodir
905 docdir
906 oldincludedir
907 includedir
908 localstatedir
909 sharedstatedir
910 sysconfdir
911 datadir
912 datarootdir
913 libexecdir
914 sbindir
915 bindir
916 program_transform_name
917 prefix
918 exec_prefix
919 PACKAGE_URL
920 PACKAGE_BUGREPORT
921 PACKAGE_STRING
922 PACKAGE_VERSION
923 PACKAGE_TARNAME
924 PACKAGE_NAME
925 PATH_SEPARATOR
926 SHELL'
927 ac_subst_files=''
928 ac_user_opts='
929 enable_option_checking
930 enable_shared
931 enable_static
932 with_pic
933 enable_fast_install
934 enable_dependency_tracking
935 with_gnu_ld
936 enable_libtool_lock
937 enable_tools
938 enable_developer
940 ac_precious_vars='build_alias
941 host_alias
942 target_alias
944 CFLAGS
945 LDFLAGS
946 LIBS
947 CPPFLAGS
950 CXXFLAGS
952 CXXCPP
953 ATF_BUILD_CC
954 ATF_BUILD_CFLAGS
955 ATF_BUILD_CPP
956 ATF_BUILD_CPPFLAGS
957 ATF_BUILD_CXX
958 ATF_BUILD_CXXFLAGS
959 ATF_CONFSUBDIR
960 ATF_WORKDIR
961 ATF_SHELL'
964 # Initialize some variables set by options.
965 ac_init_help=
966 ac_init_version=false
967 ac_unrecognized_opts=
968 ac_unrecognized_sep=
969 # The variables have the same names as the options, with
970 # dashes changed to underlines.
971 cache_file=/dev/null
972 exec_prefix=NONE
973 no_create=
974 no_recursion=
975 prefix=NONE
976 program_prefix=NONE
977 program_suffix=NONE
978 program_transform_name=s,x,x,
979 silent=
980 site=
981 srcdir=
982 verbose=
983 x_includes=NONE
984 x_libraries=NONE
986 # Installation directory options.
987 # These are left unexpanded so users can "make install exec_prefix=/foo"
988 # and all the variables that are supposed to be based on exec_prefix
989 # by default will actually change.
990 # Use braces instead of parens because sh, perl, etc. also accept them.
991 # (The list follows the same order as the GNU Coding Standards.)
992 bindir='${exec_prefix}/bin'
993 sbindir='${exec_prefix}/sbin'
994 libexecdir='${exec_prefix}/libexec'
995 datarootdir='${prefix}/share'
996 datadir='${datarootdir}'
997 sysconfdir='${prefix}/etc'
998 sharedstatedir='${prefix}/com'
999 localstatedir='${prefix}/var'
1000 includedir='${prefix}/include'
1001 oldincludedir='/usr/include'
1002 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1003 infodir='${datarootdir}/info'
1004 htmldir='${docdir}'
1005 dvidir='${docdir}'
1006 pdfdir='${docdir}'
1007 psdir='${docdir}'
1008 libdir='${exec_prefix}/lib'
1009 localedir='${datarootdir}/locale'
1010 mandir='${datarootdir}/man'
1012 ac_prev=
1013 ac_dashdash=
1014 for ac_option
1016 # If the previous option needs an argument, assign it.
1017 if test -n "$ac_prev"; then
1018 eval $ac_prev=\$ac_option
1019 ac_prev=
1020 continue
1023 case $ac_option in
1024 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1025 *=) ac_optarg= ;;
1026 *) ac_optarg=yes ;;
1027 esac
1029 # Accept the important Cygnus configure options, so we can diagnose typos.
1031 case $ac_dashdash$ac_option in
1033 ac_dashdash=yes ;;
1035 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1036 ac_prev=bindir ;;
1037 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1038 bindir=$ac_optarg ;;
1040 -build | --build | --buil | --bui | --bu)
1041 ac_prev=build_alias ;;
1042 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1043 build_alias=$ac_optarg ;;
1045 -cache-file | --cache-file | --cache-fil | --cache-fi \
1046 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1047 ac_prev=cache_file ;;
1048 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1049 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1050 cache_file=$ac_optarg ;;
1052 --config-cache | -C)
1053 cache_file=config.cache ;;
1055 -datadir | --datadir | --datadi | --datad)
1056 ac_prev=datadir ;;
1057 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1058 datadir=$ac_optarg ;;
1060 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1061 | --dataroo | --dataro | --datar)
1062 ac_prev=datarootdir ;;
1063 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1064 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1065 datarootdir=$ac_optarg ;;
1067 -disable-* | --disable-*)
1068 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071 as_fn_error $? "invalid feature name: $ac_useropt"
1072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1076 "enable_$ac_useropt"
1077 "*) ;;
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
1080 esac
1081 eval enable_$ac_useropt=no ;;
1083 -docdir | --docdir | --docdi | --doc | --do)
1084 ac_prev=docdir ;;
1085 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1086 docdir=$ac_optarg ;;
1088 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1089 ac_prev=dvidir ;;
1090 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1091 dvidir=$ac_optarg ;;
1093 -enable-* | --enable-*)
1094 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097 as_fn_error $? "invalid feature name: $ac_useropt"
1098 ac_useropt_orig=$ac_useropt
1099 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100 case $ac_user_opts in
1102 "enable_$ac_useropt"
1103 "*) ;;
1104 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1105 ac_unrecognized_sep=', ';;
1106 esac
1107 eval enable_$ac_useropt=\$ac_optarg ;;
1109 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1110 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1111 | --exec | --exe | --ex)
1112 ac_prev=exec_prefix ;;
1113 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1114 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1115 | --exec=* | --exe=* | --ex=*)
1116 exec_prefix=$ac_optarg ;;
1118 -gas | --gas | --ga | --g)
1119 # Obsolete; use --with-gas.
1120 with_gas=yes ;;
1122 -help | --help | --hel | --he | -h)
1123 ac_init_help=long ;;
1124 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1125 ac_init_help=recursive ;;
1126 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1127 ac_init_help=short ;;
1129 -host | --host | --hos | --ho)
1130 ac_prev=host_alias ;;
1131 -host=* | --host=* | --hos=* | --ho=*)
1132 host_alias=$ac_optarg ;;
1134 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1135 ac_prev=htmldir ;;
1136 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1137 | --ht=*)
1138 htmldir=$ac_optarg ;;
1140 -includedir | --includedir | --includedi | --included | --include \
1141 | --includ | --inclu | --incl | --inc)
1142 ac_prev=includedir ;;
1143 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1144 | --includ=* | --inclu=* | --incl=* | --inc=*)
1145 includedir=$ac_optarg ;;
1147 -infodir | --infodir | --infodi | --infod | --info | --inf)
1148 ac_prev=infodir ;;
1149 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1150 infodir=$ac_optarg ;;
1152 -libdir | --libdir | --libdi | --libd)
1153 ac_prev=libdir ;;
1154 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1155 libdir=$ac_optarg ;;
1157 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1158 | --libexe | --libex | --libe)
1159 ac_prev=libexecdir ;;
1160 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1161 | --libexe=* | --libex=* | --libe=*)
1162 libexecdir=$ac_optarg ;;
1164 -localedir | --localedir | --localedi | --localed | --locale)
1165 ac_prev=localedir ;;
1166 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1167 localedir=$ac_optarg ;;
1169 -localstatedir | --localstatedir | --localstatedi | --localstated \
1170 | --localstate | --localstat | --localsta | --localst | --locals)
1171 ac_prev=localstatedir ;;
1172 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1173 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1174 localstatedir=$ac_optarg ;;
1176 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1177 ac_prev=mandir ;;
1178 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1179 mandir=$ac_optarg ;;
1181 -nfp | --nfp | --nf)
1182 # Obsolete; use --without-fp.
1183 with_fp=no ;;
1185 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1186 | --no-cr | --no-c | -n)
1187 no_create=yes ;;
1189 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1190 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1191 no_recursion=yes ;;
1193 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1194 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1195 | --oldin | --oldi | --old | --ol | --o)
1196 ac_prev=oldincludedir ;;
1197 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1198 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1199 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1200 oldincludedir=$ac_optarg ;;
1202 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1203 ac_prev=prefix ;;
1204 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1205 prefix=$ac_optarg ;;
1207 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1208 | --program-pre | --program-pr | --program-p)
1209 ac_prev=program_prefix ;;
1210 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1211 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1212 program_prefix=$ac_optarg ;;
1214 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1215 | --program-suf | --program-su | --program-s)
1216 ac_prev=program_suffix ;;
1217 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1218 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1219 program_suffix=$ac_optarg ;;
1221 -program-transform-name | --program-transform-name \
1222 | --program-transform-nam | --program-transform-na \
1223 | --program-transform-n | --program-transform- \
1224 | --program-transform | --program-transfor \
1225 | --program-transfo | --program-transf \
1226 | --program-trans | --program-tran \
1227 | --progr-tra | --program-tr | --program-t)
1228 ac_prev=program_transform_name ;;
1229 -program-transform-name=* | --program-transform-name=* \
1230 | --program-transform-nam=* | --program-transform-na=* \
1231 | --program-transform-n=* | --program-transform-=* \
1232 | --program-transform=* | --program-transfor=* \
1233 | --program-transfo=* | --program-transf=* \
1234 | --program-trans=* | --program-tran=* \
1235 | --progr-tra=* | --program-tr=* | --program-t=*)
1236 program_transform_name=$ac_optarg ;;
1238 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1239 ac_prev=pdfdir ;;
1240 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1241 pdfdir=$ac_optarg ;;
1243 -psdir | --psdir | --psdi | --psd | --ps)
1244 ac_prev=psdir ;;
1245 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1246 psdir=$ac_optarg ;;
1248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249 | -silent | --silent | --silen | --sile | --sil)
1250 silent=yes ;;
1252 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1253 ac_prev=sbindir ;;
1254 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1255 | --sbi=* | --sb=*)
1256 sbindir=$ac_optarg ;;
1258 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1259 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1260 | --sharedst | --shareds | --shared | --share | --shar \
1261 | --sha | --sh)
1262 ac_prev=sharedstatedir ;;
1263 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1264 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1265 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1266 | --sha=* | --sh=*)
1267 sharedstatedir=$ac_optarg ;;
1269 -site | --site | --sit)
1270 ac_prev=site ;;
1271 -site=* | --site=* | --sit=*)
1272 site=$ac_optarg ;;
1274 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1275 ac_prev=srcdir ;;
1276 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1277 srcdir=$ac_optarg ;;
1279 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1280 | --syscon | --sysco | --sysc | --sys | --sy)
1281 ac_prev=sysconfdir ;;
1282 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1283 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1284 sysconfdir=$ac_optarg ;;
1286 -target | --target | --targe | --targ | --tar | --ta | --t)
1287 ac_prev=target_alias ;;
1288 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1289 target_alias=$ac_optarg ;;
1291 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1292 verbose=yes ;;
1294 -version | --version | --versio | --versi | --vers | -V)
1295 ac_init_version=: ;;
1297 -with-* | --with-*)
1298 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301 as_fn_error $? "invalid package name: $ac_useropt"
1302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1306 "with_$ac_useropt"
1307 "*) ;;
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1310 esac
1311 eval with_$ac_useropt=\$ac_optarg ;;
1313 -without-* | --without-*)
1314 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1315 # Reject names that are not valid shell variable names.
1316 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317 as_fn_error $? "invalid package name: $ac_useropt"
1318 ac_useropt_orig=$ac_useropt
1319 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1320 case $ac_user_opts in
1322 "with_$ac_useropt"
1323 "*) ;;
1324 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1325 ac_unrecognized_sep=', ';;
1326 esac
1327 eval with_$ac_useropt=no ;;
1329 --x)
1330 # Obsolete; use --with-x.
1331 with_x=yes ;;
1333 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1334 | --x-incl | --x-inc | --x-in | --x-i)
1335 ac_prev=x_includes ;;
1336 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1337 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1338 x_includes=$ac_optarg ;;
1340 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1341 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1342 ac_prev=x_libraries ;;
1343 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1344 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1345 x_libraries=$ac_optarg ;;
1347 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1348 Try \`$0 --help' for more information"
1351 *=*)
1352 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1353 # Reject names that are not valid shell variable names.
1354 case $ac_envvar in #(
1355 '' | [0-9]* | *[!_$as_cr_alnum]* )
1356 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1357 esac
1358 eval $ac_envvar=\$ac_optarg
1359 export $ac_envvar ;;
1362 # FIXME: should be removed in autoconf 3.0.
1363 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1364 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1365 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1366 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1369 esac
1370 done
1372 if test -n "$ac_prev"; then
1373 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1374 as_fn_error $? "missing argument to $ac_option"
1377 if test -n "$ac_unrecognized_opts"; then
1378 case $enable_option_checking in
1379 no) ;;
1380 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1381 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1382 esac
1385 # Check all directory arguments for consistency.
1386 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1387 datadir sysconfdir sharedstatedir localstatedir includedir \
1388 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1389 libdir localedir mandir
1391 eval ac_val=\$$ac_var
1392 # Remove trailing slashes.
1393 case $ac_val in
1394 */ )
1395 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1396 eval $ac_var=\$ac_val;;
1397 esac
1398 # Be sure to have absolute directory names.
1399 case $ac_val in
1400 [\\/$]* | ?:[\\/]* ) continue;;
1401 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1402 esac
1403 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1404 done
1406 # There might be people who depend on the old broken behavior: `$host'
1407 # used to hold the argument of --host etc.
1408 # FIXME: To remove some day.
1409 build=$build_alias
1410 host=$host_alias
1411 target=$target_alias
1413 # FIXME: To remove some day.
1414 if test "x$host_alias" != x; then
1415 if test "x$build_alias" = x; then
1416 cross_compiling=maybe
1417 elif test "x$build_alias" != "x$host_alias"; then
1418 cross_compiling=yes
1422 ac_tool_prefix=
1423 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1425 test "$silent" = yes && exec 6>/dev/null
1428 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1429 ac_ls_di=`ls -di .` &&
1430 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1431 as_fn_error $? "working directory cannot be determined"
1432 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1433 as_fn_error $? "pwd does not report name of working directory"
1436 # Find the source files, if location was not specified.
1437 if test -z "$srcdir"; then
1438 ac_srcdir_defaulted=yes
1439 # Try the directory containing this script, then the parent directory.
1440 ac_confdir=`$as_dirname -- "$as_myself" ||
1441 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1442 X"$as_myself" : 'X\(//\)[^/]' \| \
1443 X"$as_myself" : 'X\(//\)$' \| \
1444 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1445 $as_echo X"$as_myself" |
1446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1447 s//\1/
1450 /^X\(\/\/\)[^/].*/{
1451 s//\1/
1454 /^X\(\/\/\)$/{
1455 s//\1/
1458 /^X\(\/\).*/{
1459 s//\1/
1462 s/.*/./; q'`
1463 srcdir=$ac_confdir
1464 if test ! -r "$srcdir/$ac_unique_file"; then
1465 srcdir=..
1467 else
1468 ac_srcdir_defaulted=no
1470 if test ! -r "$srcdir/$ac_unique_file"; then
1471 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1472 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1474 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1475 ac_abs_confdir=`(
1476 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1477 pwd)`
1478 # When building in place, set srcdir=.
1479 if test "$ac_abs_confdir" = "$ac_pwd"; then
1480 srcdir=.
1482 # Remove unnecessary trailing slashes from srcdir.
1483 # Double slashes in file names in object file debugging info
1484 # mess up M-x gdb in Emacs.
1485 case $srcdir in
1486 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1487 esac
1488 for ac_var in $ac_precious_vars; do
1489 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1490 eval ac_env_${ac_var}_value=\$${ac_var}
1491 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1492 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1493 done
1496 # Report the --help message.
1498 if test "$ac_init_help" = "long"; then
1499 # Omit some internal or obsolete options to make the list less imposing.
1500 # This message is too long to be a string in the A/UX 3.1 sh.
1501 cat <<_ACEOF
1502 \`configure' configures Automated Testing Framework 0.17 to adapt to many kinds of systems.
1504 Usage: $0 [OPTION]... [VAR=VALUE]...
1506 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1507 VAR=VALUE. See below for descriptions of some of the useful variables.
1509 Defaults for the options are specified in brackets.
1511 Configuration:
1512 -h, --help display this help and exit
1513 --help=short display options specific to this package
1514 --help=recursive display the short help of all the included packages
1515 -V, --version display version information and exit
1516 -q, --quiet, --silent do not print \`checking ...' messages
1517 --cache-file=FILE cache test results in FILE [disabled]
1518 -C, --config-cache alias for \`--cache-file=config.cache'
1519 -n, --no-create do not create output files
1520 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1522 Installation directories:
1523 --prefix=PREFIX install architecture-independent files in PREFIX
1524 [$ac_default_prefix]
1525 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1526 [PREFIX]
1528 By default, \`make install' will install all the files in
1529 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1530 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1531 for instance \`--prefix=\$HOME'.
1533 For better control, use the options below.
1535 Fine tuning of the installation directories:
1536 --bindir=DIR user executables [EPREFIX/bin]
1537 --sbindir=DIR system admin executables [EPREFIX/sbin]
1538 --libexecdir=DIR program executables [EPREFIX/libexec]
1539 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1540 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1541 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1542 --libdir=DIR object code libraries [EPREFIX/lib]
1543 --includedir=DIR C header files [PREFIX/include]
1544 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1545 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1546 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1547 --infodir=DIR info documentation [DATAROOTDIR/info]
1548 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1549 --mandir=DIR man documentation [DATAROOTDIR/man]
1550 --docdir=DIR documentation root [DATAROOTDIR/doc/atf]
1551 --htmldir=DIR html documentation [DOCDIR]
1552 --dvidir=DIR dvi documentation [DOCDIR]
1553 --pdfdir=DIR pdf documentation [DOCDIR]
1554 --psdir=DIR ps documentation [DOCDIR]
1555 _ACEOF
1557 cat <<\_ACEOF
1559 Program names:
1560 --program-prefix=PREFIX prepend PREFIX to installed program names
1561 --program-suffix=SUFFIX append SUFFIX to installed program names
1562 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1564 System types:
1565 --build=BUILD configure for building on BUILD [guessed]
1566 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1567 --target=TARGET configure for building compilers for TARGET [HOST]
1568 _ACEOF
1571 if test -n "$ac_init_help"; then
1572 case $ac_init_help in
1573 short | recursive ) echo "Configuration of Automated Testing Framework 0.17:";;
1574 esac
1575 cat <<\_ACEOF
1577 Optional Features:
1578 --disable-option-checking ignore unrecognized --enable/--with options
1579 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1580 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1581 --enable-shared[=PKGS] build shared libraries [default=yes]
1582 --enable-static[=PKGS] build static libraries [default=yes]
1583 --enable-fast-install[=PKGS]
1584 optimize for fast installation [default=yes]
1585 --enable-dependency-tracking
1586 do not reject slow dependency extractors
1587 --disable-dependency-tracking
1588 speeds up one-time build
1589 --disable-libtool-lock avoid locking (might break parallel builds)
1590 --enable-tools Enables the build of the deprecated ATF tools
1591 --enable-developer enable developer features
1593 Optional Packages:
1594 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1595 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1596 --with-pic try to use only PIC/non-PIC objects [default=use
1597 both]
1598 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1600 Some influential environment variables:
1601 CC C compiler command
1602 CFLAGS C compiler flags
1603 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1604 nonstandard directory <lib dir>
1605 LIBS libraries to pass to the linker, e.g. -l<library>
1606 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1607 you have headers in a nonstandard directory <include dir>
1608 CPP C preprocessor
1609 CXX C++ compiler command
1610 CXXFLAGS C++ compiler flags
1611 CXXCPP C++ preprocessor
1612 ATF_BUILD_CC
1613 C compiler to use at runtime
1614 ATF_BUILD_CFLAGS
1615 C compiler flags to use at runtime
1616 ATF_BUILD_CPP
1617 C/C++ preprocessor to use at runtime
1618 ATF_BUILD_CPPFLAGS
1619 C/C++ preprocessor flags to use at runtime
1620 ATF_BUILD_CXX
1621 C++ compiler to use at runtime
1622 ATF_BUILD_CXXFLAGS
1623 C++ compiler flags to use at runtime
1624 ATF_CONFSUBDIR
1625 Subdirectory of sysconfdir under which to look for files
1626 ATF_WORKDIR Default location to use for ATF work directories
1627 ATF_SHELL Location of the POSIX shell interpreter to use
1629 Use these variables to override the choices made by `configure' or to help
1630 it to find libraries and programs with nonstandard names/locations.
1632 Report bugs to <atf-devel@NetBSD.org>.
1633 Automated Testing Framework home page: <http://code.google.com/p/kyua/wiki/ATF>.
1634 _ACEOF
1635 ac_status=$?
1638 if test "$ac_init_help" = "recursive"; then
1639 # If there are subdirs, report their specific --help.
1640 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1641 test -d "$ac_dir" ||
1642 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1643 continue
1644 ac_builddir=.
1646 case "$ac_dir" in
1647 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1649 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1650 # A ".." for each directory in $ac_dir_suffix.
1651 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1652 case $ac_top_builddir_sub in
1653 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1655 esac ;;
1656 esac
1657 ac_abs_top_builddir=$ac_pwd
1658 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1659 # for backward compatibility:
1660 ac_top_builddir=$ac_top_build_prefix
1662 case $srcdir in
1663 .) # We are building in place.
1664 ac_srcdir=.
1665 ac_top_srcdir=$ac_top_builddir_sub
1666 ac_abs_top_srcdir=$ac_pwd ;;
1667 [\\/]* | ?:[\\/]* ) # Absolute name.
1668 ac_srcdir=$srcdir$ac_dir_suffix;
1669 ac_top_srcdir=$srcdir
1670 ac_abs_top_srcdir=$srcdir ;;
1671 *) # Relative name.
1672 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1673 ac_top_srcdir=$ac_top_build_prefix$srcdir
1674 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1675 esac
1676 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1678 cd "$ac_dir" || { ac_status=$?; continue; }
1679 # Check for guested configure.
1680 if test -f "$ac_srcdir/configure.gnu"; then
1681 echo &&
1682 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1683 elif test -f "$ac_srcdir/configure"; then
1684 echo &&
1685 $SHELL "$ac_srcdir/configure" --help=recursive
1686 else
1687 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1688 fi || ac_status=$?
1689 cd "$ac_pwd" || { ac_status=$?; break; }
1690 done
1693 test -n "$ac_init_help" && exit $ac_status
1694 if $ac_init_version; then
1695 cat <<\_ACEOF
1696 Automated Testing Framework configure 0.17
1697 generated by GNU Autoconf 2.69
1699 Copyright (C) 2012 Free Software Foundation, Inc.
1700 This configure script is free software; the Free Software Foundation
1701 gives unlimited permission to copy, distribute and modify it.
1703 Copyright (c) 2007-2012 The NetBSD Foundation, Inc.
1704 _ACEOF
1705 exit
1708 ## ------------------------ ##
1709 ## Autoconf initialization. ##
1710 ## ------------------------ ##
1712 # ac_fn_c_try_compile LINENO
1713 # --------------------------
1714 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1715 ac_fn_c_try_compile ()
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 rm -f conftest.$ac_objext
1719 if { { ac_try="$ac_compile"
1720 case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_compile") 2>conftest.err
1727 ac_status=$?
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } && {
1735 test -z "$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1737 } && test -s conftest.$ac_objext; then :
1738 ac_retval=0
1739 else
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1743 ac_retval=1
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 as_fn_set_status $ac_retval
1748 } # ac_fn_c_try_compile
1750 # ac_fn_c_try_link LINENO
1751 # -----------------------
1752 # Try to link conftest.$ac_ext, and return whether this succeeded.
1753 ac_fn_c_try_link ()
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 rm -f conftest.$ac_objext conftest$ac_exeext
1757 if { { ac_try="$ac_link"
1758 case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_link") 2>conftest.err
1765 ac_status=$?
1766 if test -s conftest.err; then
1767 grep -v '^ *+' conftest.err >conftest.er1
1768 cat conftest.er1 >&5
1769 mv -f conftest.er1 conftest.err
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } && {
1773 test -z "$ac_c_werror_flag" ||
1774 test ! -s conftest.err
1775 } && test -s conftest$ac_exeext && {
1776 test "$cross_compiling" = yes ||
1777 test -x conftest$ac_exeext
1778 }; then :
1779 ac_retval=0
1780 else
1781 $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1784 ac_retval=1
1786 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1787 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1788 # interfere with the next link command; also delete a directory that is
1789 # left behind by Apple's compiler. We do this before executing the actions.
1790 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792 as_fn_set_status $ac_retval
1794 } # ac_fn_c_try_link
1796 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1797 # -------------------------------------------------------
1798 # Tests whether HEADER exists and can be compiled using the include files in
1799 # INCLUDES, setting the cache variable VAR accordingly.
1800 ac_fn_c_check_header_compile ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if eval \${$3+:} false; then :
1806 $as_echo_n "(cached) " >&6
1807 else
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1811 #include <$2>
1812 _ACEOF
1813 if ac_fn_c_try_compile "$LINENO"; then :
1814 eval "$3=yes"
1815 else
1816 eval "$3=no"
1818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820 eval ac_res=\$$3
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 } # ac_fn_c_check_header_compile
1827 # ac_fn_c_try_cpp LINENO
1828 # ----------------------
1829 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1830 ac_fn_c_try_cpp ()
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 if { { ac_try="$ac_cpp conftest.$ac_ext"
1834 case "(($ac_try" in
1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1837 esac
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1841 ac_status=$?
1842 if test -s conftest.err; then
1843 grep -v '^ *+' conftest.err >conftest.er1
1844 cat conftest.er1 >&5
1845 mv -f conftest.er1 conftest.err
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; } > conftest.i && {
1849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1850 test ! -s conftest.err
1851 }; then :
1852 ac_retval=0
1853 else
1854 $as_echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.$ac_ext >&5
1857 ac_retval=1
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860 as_fn_set_status $ac_retval
1862 } # ac_fn_c_try_cpp
1864 # ac_fn_c_try_run LINENO
1865 # ----------------------
1866 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1867 # that executables *can* be run.
1868 ac_fn_c_try_run ()
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 if { { ac_try="$ac_link"
1872 case "(($ac_try" in
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1875 esac
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_link") 2>&5
1879 ac_status=$?
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1882 { { case "(($ac_try" in
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1885 esac
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_try") 2>&5
1889 ac_status=$?
1890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891 test $ac_status = 0; }; }; then :
1892 ac_retval=0
1893 else
1894 $as_echo "$as_me: program exited with status $ac_status" >&5
1895 $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1898 ac_retval=$ac_status
1900 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
1904 } # ac_fn_c_try_run
1906 # ac_fn_c_check_func LINENO FUNC VAR
1907 # ----------------------------------
1908 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1909 ac_fn_c_check_func ()
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913 $as_echo_n "checking for $2... " >&6; }
1914 if eval \${$3+:} false; then :
1915 $as_echo_n "(cached) " >&6
1916 else
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1919 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1921 #define $2 innocuous_$2
1923 /* System header to define __stub macros and hopefully few prototypes,
1924 which can conflict with char $2 (); below.
1925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1926 <limits.h> exists even on freestanding compilers. */
1928 #ifdef __STDC__
1929 # include <limits.h>
1930 #else
1931 # include <assert.h>
1932 #endif
1934 #undef $2
1936 /* Override any GCC internal prototype to avoid an error.
1937 Use char because int might match the return type of a GCC
1938 builtin and then its argument prototype would still apply. */
1939 #ifdef __cplusplus
1940 extern "C"
1941 #endif
1942 char $2 ();
1943 /* The GNU C library defines this for functions which it implements
1944 to always fail with ENOSYS. Some functions are actually named
1945 something starting with __ and the normal name is an alias. */
1946 #if defined __stub_$2 || defined __stub___$2
1947 choke me
1948 #endif
1951 main ()
1953 return $2 ();
1955 return 0;
1957 _ACEOF
1958 if ac_fn_c_try_link "$LINENO"; then :
1959 eval "$3=yes"
1960 else
1961 eval "$3=no"
1963 rm -f core conftest.err conftest.$ac_objext \
1964 conftest$ac_exeext conftest.$ac_ext
1966 eval ac_res=\$$3
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971 } # ac_fn_c_check_func
1973 # ac_fn_cxx_try_compile LINENO
1974 # ----------------------------
1975 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1976 ac_fn_cxx_try_compile ()
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 rm -f conftest.$ac_objext
1980 if { { ac_try="$ac_compile"
1981 case "(($ac_try" in
1982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1983 *) ac_try_echo=$ac_try;;
1984 esac
1985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 $as_echo "$ac_try_echo"; } >&5
1987 (eval "$ac_compile") 2>conftest.err
1988 ac_status=$?
1989 if test -s conftest.err; then
1990 grep -v '^ *+' conftest.err >conftest.er1
1991 cat conftest.er1 >&5
1992 mv -f conftest.er1 conftest.err
1994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1995 test $ac_status = 0; } && {
1996 test -z "$ac_cxx_werror_flag" ||
1997 test ! -s conftest.err
1998 } && test -s conftest.$ac_objext; then :
1999 ac_retval=0
2000 else
2001 $as_echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2004 ac_retval=1
2006 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007 as_fn_set_status $ac_retval
2009 } # ac_fn_cxx_try_compile
2011 # ac_fn_cxx_try_cpp LINENO
2012 # ------------------------
2013 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2014 ac_fn_cxx_try_cpp ()
2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017 if { { ac_try="$ac_cpp conftest.$ac_ext"
2018 case "(($ac_try" in
2019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2020 *) ac_try_echo=$ac_try;;
2021 esac
2022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2023 $as_echo "$ac_try_echo"; } >&5
2024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2025 ac_status=$?
2026 if test -s conftest.err; then
2027 grep -v '^ *+' conftest.err >conftest.er1
2028 cat conftest.er1 >&5
2029 mv -f conftest.er1 conftest.err
2031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032 test $ac_status = 0; } > conftest.i && {
2033 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2034 test ! -s conftest.err
2035 }; then :
2036 ac_retval=0
2037 else
2038 $as_echo "$as_me: failed program was:" >&5
2039 sed 's/^/| /' conftest.$ac_ext >&5
2041 ac_retval=1
2043 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044 as_fn_set_status $ac_retval
2046 } # ac_fn_cxx_try_cpp
2048 # ac_fn_cxx_try_link LINENO
2049 # -------------------------
2050 # Try to link conftest.$ac_ext, and return whether this succeeded.
2051 ac_fn_cxx_try_link ()
2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054 rm -f conftest.$ac_objext conftest$ac_exeext
2055 if { { ac_try="$ac_link"
2056 case "(($ac_try" in
2057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2058 *) ac_try_echo=$ac_try;;
2059 esac
2060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2061 $as_echo "$ac_try_echo"; } >&5
2062 (eval "$ac_link") 2>conftest.err
2063 ac_status=$?
2064 if test -s conftest.err; then
2065 grep -v '^ *+' conftest.err >conftest.er1
2066 cat conftest.er1 >&5
2067 mv -f conftest.er1 conftest.err
2069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2070 test $ac_status = 0; } && {
2071 test -z "$ac_cxx_werror_flag" ||
2072 test ! -s conftest.err
2073 } && test -s conftest$ac_exeext && {
2074 test "$cross_compiling" = yes ||
2075 test -x conftest$ac_exeext
2076 }; then :
2077 ac_retval=0
2078 else
2079 $as_echo "$as_me: failed program was:" >&5
2080 sed 's/^/| /' conftest.$ac_ext >&5
2082 ac_retval=1
2084 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2085 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2086 # interfere with the next link command; also delete a directory that is
2087 # left behind by Apple's compiler. We do this before executing the actions.
2088 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2089 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090 as_fn_set_status $ac_retval
2092 } # ac_fn_cxx_try_link
2094 # ac_fn_cxx_try_run LINENO
2095 # ------------------------
2096 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2097 # that executables *can* be run.
2098 ac_fn_cxx_try_run ()
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 if { { ac_try="$ac_link"
2102 case "(($ac_try" in
2103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104 *) ac_try_echo=$ac_try;;
2105 esac
2106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2107 $as_echo "$ac_try_echo"; } >&5
2108 (eval "$ac_link") 2>&5
2109 ac_status=$?
2110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2111 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2112 { { case "(($ac_try" in
2113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2114 *) ac_try_echo=$ac_try;;
2115 esac
2116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2117 $as_echo "$ac_try_echo"; } >&5
2118 (eval "$ac_try") 2>&5
2119 ac_status=$?
2120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2121 test $ac_status = 0; }; }; then :
2122 ac_retval=0
2123 else
2124 $as_echo "$as_me: program exited with status $ac_status" >&5
2125 $as_echo "$as_me: failed program was:" >&5
2126 sed 's/^/| /' conftest.$ac_ext >&5
2128 ac_retval=$ac_status
2130 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132 as_fn_set_status $ac_retval
2134 } # ac_fn_cxx_try_run
2136 # ac_fn_cxx_check_func LINENO FUNC VAR
2137 # ------------------------------------
2138 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2139 ac_fn_cxx_check_func ()
2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2143 $as_echo_n "checking for $2... " >&6; }
2144 if eval \${$3+:} false; then :
2145 $as_echo_n "(cached) " >&6
2146 else
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2149 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2151 #define $2 innocuous_$2
2153 /* System header to define __stub macros and hopefully few prototypes,
2154 which can conflict with char $2 (); below.
2155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2156 <limits.h> exists even on freestanding compilers. */
2158 #ifdef __STDC__
2159 # include <limits.h>
2160 #else
2161 # include <assert.h>
2162 #endif
2164 #undef $2
2166 /* Override any GCC internal prototype to avoid an error.
2167 Use char because int might match the return type of a GCC
2168 builtin and then its argument prototype would still apply. */
2169 #ifdef __cplusplus
2170 extern "C"
2171 #endif
2172 char $2 ();
2173 /* The GNU C library defines this for functions which it implements
2174 to always fail with ENOSYS. Some functions are actually named
2175 something starting with __ and the normal name is an alias. */
2176 #if defined __stub_$2 || defined __stub___$2
2177 choke me
2178 #endif
2181 main ()
2183 return $2 ();
2185 return 0;
2187 _ACEOF
2188 if ac_fn_cxx_try_link "$LINENO"; then :
2189 eval "$3=yes"
2190 else
2191 eval "$3=no"
2193 rm -f core conftest.err conftest.$ac_objext \
2194 conftest$ac_exeext conftest.$ac_ext
2196 eval ac_res=\$$3
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2198 $as_echo "$ac_res" >&6; }
2199 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2201 } # ac_fn_cxx_check_func
2203 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2204 # ---------------------------------------------
2205 # Tests whether TYPE exists after having included INCLUDES, setting cache
2206 # variable VAR accordingly.
2207 ac_fn_cxx_check_type ()
2209 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2211 $as_echo_n "checking for $2... " >&6; }
2212 if eval \${$3+:} false; then :
2213 $as_echo_n "(cached) " >&6
2214 else
2215 eval "$3=no"
2216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217 /* end confdefs.h. */
2220 main ()
2222 if (sizeof ($2))
2223 return 0;
2225 return 0;
2227 _ACEOF
2228 if ac_fn_cxx_try_compile "$LINENO"; then :
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2233 main ()
2235 if (sizeof (($2)))
2236 return 0;
2238 return 0;
2240 _ACEOF
2241 if ac_fn_cxx_try_compile "$LINENO"; then :
2243 else
2244 eval "$3=yes"
2246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2250 eval ac_res=\$$3
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2252 $as_echo "$ac_res" >&6; }
2253 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2255 } # ac_fn_cxx_check_type
2256 cat >config.log <<_ACEOF
2257 This file contains any messages produced by compilers while
2258 running configure, to aid debugging if configure makes a mistake.
2260 It was created by Automated Testing Framework $as_me 0.17, which was
2261 generated by GNU Autoconf 2.69. Invocation command line was
2263 $ $0 $@
2265 _ACEOF
2266 exec 5>>config.log
2268 cat <<_ASUNAME
2269 ## --------- ##
2270 ## Platform. ##
2271 ## --------- ##
2273 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2274 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2275 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2276 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2277 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2279 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2280 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2282 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2283 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2284 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2285 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2286 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2287 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2288 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2290 _ASUNAME
2292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2293 for as_dir in $PATH
2295 IFS=$as_save_IFS
2296 test -z "$as_dir" && as_dir=.
2297 $as_echo "PATH: $as_dir"
2298 done
2299 IFS=$as_save_IFS
2301 } >&5
2303 cat >&5 <<_ACEOF
2306 ## ----------- ##
2307 ## Core tests. ##
2308 ## ----------- ##
2310 _ACEOF
2313 # Keep a trace of the command line.
2314 # Strip out --no-create and --no-recursion so they do not pile up.
2315 # Strip out --silent because we don't want to record it for future runs.
2316 # Also quote any args containing shell meta-characters.
2317 # Make two passes to allow for proper duplicate-argument suppression.
2318 ac_configure_args=
2319 ac_configure_args0=
2320 ac_configure_args1=
2321 ac_must_keep_next=false
2322 for ac_pass in 1 2
2324 for ac_arg
2326 case $ac_arg in
2327 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2328 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2329 | -silent | --silent | --silen | --sile | --sil)
2330 continue ;;
2331 *\'*)
2332 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2333 esac
2334 case $ac_pass in
2335 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2337 as_fn_append ac_configure_args1 " '$ac_arg'"
2338 if test $ac_must_keep_next = true; then
2339 ac_must_keep_next=false # Got value, back to normal.
2340 else
2341 case $ac_arg in
2342 *=* | --config-cache | -C | -disable-* | --disable-* \
2343 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2344 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2345 | -with-* | --with-* | -without-* | --without-* | --x)
2346 case "$ac_configure_args0 " in
2347 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2348 esac
2350 -* ) ac_must_keep_next=true ;;
2351 esac
2353 as_fn_append ac_configure_args " '$ac_arg'"
2355 esac
2356 done
2357 done
2358 { ac_configure_args0=; unset ac_configure_args0;}
2359 { ac_configure_args1=; unset ac_configure_args1;}
2361 # When interrupted or exit'd, cleanup temporary files, and complete
2362 # config.log. We remove comments because anyway the quotes in there
2363 # would cause problems or look ugly.
2364 # WARNING: Use '\'' to represent an apostrophe within the trap.
2365 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2366 trap 'exit_status=$?
2367 # Save into config.log some information that might help in debugging.
2369 echo
2371 $as_echo "## ---------------- ##
2372 ## Cache variables. ##
2373 ## ---------------- ##"
2374 echo
2375 # The following way of writing the cache mishandles newlines in values,
2377 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2378 eval ac_val=\$$ac_var
2379 case $ac_val in #(
2380 *${as_nl}*)
2381 case $ac_var in #(
2382 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2383 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2384 esac
2385 case $ac_var in #(
2386 _ | IFS | as_nl) ;; #(
2387 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2388 *) { eval $ac_var=; unset $ac_var;} ;;
2389 esac ;;
2390 esac
2391 done
2392 (set) 2>&1 |
2393 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2394 *${as_nl}ac_space=\ *)
2395 sed -n \
2396 "s/'\''/'\''\\\\'\'''\''/g;
2397 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2398 ;; #(
2400 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2402 esac |
2403 sort
2405 echo
2407 $as_echo "## ----------------- ##
2408 ## Output variables. ##
2409 ## ----------------- ##"
2410 echo
2411 for ac_var in $ac_subst_vars
2413 eval ac_val=\$$ac_var
2414 case $ac_val in
2415 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2416 esac
2417 $as_echo "$ac_var='\''$ac_val'\''"
2418 done | sort
2419 echo
2421 if test -n "$ac_subst_files"; then
2422 $as_echo "## ------------------- ##
2423 ## File substitutions. ##
2424 ## ------------------- ##"
2425 echo
2426 for ac_var in $ac_subst_files
2428 eval ac_val=\$$ac_var
2429 case $ac_val in
2430 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2431 esac
2432 $as_echo "$ac_var='\''$ac_val'\''"
2433 done | sort
2434 echo
2437 if test -s confdefs.h; then
2438 $as_echo "## ----------- ##
2439 ## confdefs.h. ##
2440 ## ----------- ##"
2441 echo
2442 cat confdefs.h
2443 echo
2445 test "$ac_signal" != 0 &&
2446 $as_echo "$as_me: caught signal $ac_signal"
2447 $as_echo "$as_me: exit $exit_status"
2448 } >&5
2449 rm -f core *.core core.conftest.* &&
2450 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2451 exit $exit_status
2453 for ac_signal in 1 2 13 15; do
2454 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2455 done
2456 ac_signal=0
2458 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2459 rm -f -r conftest* confdefs.h
2461 $as_echo "/* confdefs.h */" > confdefs.h
2463 # Predefined preprocessor variables.
2465 cat >>confdefs.h <<_ACEOF
2466 #define PACKAGE_NAME "$PACKAGE_NAME"
2467 _ACEOF
2469 cat >>confdefs.h <<_ACEOF
2470 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2471 _ACEOF
2473 cat >>confdefs.h <<_ACEOF
2474 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2475 _ACEOF
2477 cat >>confdefs.h <<_ACEOF
2478 #define PACKAGE_STRING "$PACKAGE_STRING"
2479 _ACEOF
2481 cat >>confdefs.h <<_ACEOF
2482 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2483 _ACEOF
2485 cat >>confdefs.h <<_ACEOF
2486 #define PACKAGE_URL "$PACKAGE_URL"
2487 _ACEOF
2490 # Let the site file select an alternate cache file if it wants to.
2491 # Prefer an explicitly selected file to automatically selected ones.
2492 ac_site_file1=NONE
2493 ac_site_file2=NONE
2494 if test -n "$CONFIG_SITE"; then
2495 # We do not want a PATH search for config.site.
2496 case $CONFIG_SITE in #((
2497 -*) ac_site_file1=./$CONFIG_SITE;;
2498 */*) ac_site_file1=$CONFIG_SITE;;
2499 *) ac_site_file1=./$CONFIG_SITE;;
2500 esac
2501 elif test "x$prefix" != xNONE; then
2502 ac_site_file1=$prefix/share/config.site
2503 ac_site_file2=$prefix/etc/config.site
2504 else
2505 ac_site_file1=$ac_default_prefix/share/config.site
2506 ac_site_file2=$ac_default_prefix/etc/config.site
2508 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2510 test "x$ac_site_file" = xNONE && continue
2511 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2513 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2514 sed 's/^/| /' "$ac_site_file" >&5
2515 . "$ac_site_file" \
2516 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2518 as_fn_error $? "failed to load site script $ac_site_file
2519 See \`config.log' for more details" "$LINENO" 5; }
2521 done
2523 if test -r "$cache_file"; then
2524 # Some versions of bash will fail to source /dev/null (special files
2525 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2526 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2528 $as_echo "$as_me: loading cache $cache_file" >&6;}
2529 case $cache_file in
2530 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2531 *) . "./$cache_file";;
2532 esac
2534 else
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2536 $as_echo "$as_me: creating cache $cache_file" >&6;}
2537 >$cache_file
2540 # Check that the precious variables saved in the cache have kept the same
2541 # value.
2542 ac_cache_corrupted=false
2543 for ac_var in $ac_precious_vars; do
2544 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2545 eval ac_new_set=\$ac_env_${ac_var}_set
2546 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2547 eval ac_new_val=\$ac_env_${ac_var}_value
2548 case $ac_old_set,$ac_new_set in
2549 set,)
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2551 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2552 ac_cache_corrupted=: ;;
2553 ,set)
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2555 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2556 ac_cache_corrupted=: ;;
2557 ,);;
2559 if test "x$ac_old_val" != "x$ac_new_val"; then
2560 # differences in whitespace do not lead to failure.
2561 ac_old_val_w=`echo x $ac_old_val`
2562 ac_new_val_w=`echo x $ac_new_val`
2563 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2565 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2566 ac_cache_corrupted=:
2567 else
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2569 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2570 eval $ac_var=\$ac_old_val
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2573 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2575 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2576 fi;;
2577 esac
2578 # Pass precious variables to config.status.
2579 if test "$ac_new_set" = set; then
2580 case $ac_new_val in
2581 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2582 *) ac_arg=$ac_var=$ac_new_val ;;
2583 esac
2584 case " $ac_configure_args " in
2585 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2586 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2587 esac
2589 done
2590 if $ac_cache_corrupted; then
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2594 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2595 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2597 ## -------------------- ##
2598 ## Main body of script. ##
2599 ## -------------------- ##
2601 ac_ext=c
2602 ac_cpp='$CPP $CPPFLAGS'
2603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2611 $as_echo "#define PACKAGE_COPYRIGHT \"Copyright (c) 2007-2012 The NetBSD Foundation, Inc.\"" >>confdefs.h
2613 ac_aux_dir=
2614 for ac_dir in admin "$srcdir"/admin; do
2615 if test -f "$ac_dir/install-sh"; then
2616 ac_aux_dir=$ac_dir
2617 ac_install_sh="$ac_aux_dir/install-sh -c"
2618 break
2619 elif test -f "$ac_dir/install.sh"; then
2620 ac_aux_dir=$ac_dir
2621 ac_install_sh="$ac_aux_dir/install.sh -c"
2622 break
2623 elif test -f "$ac_dir/shtool"; then
2624 ac_aux_dir=$ac_dir
2625 ac_install_sh="$ac_aux_dir/shtool install -c"
2626 break
2628 done
2629 if test -z "$ac_aux_dir"; then
2630 as_fn_error $? "cannot find install-sh, install.sh, or shtool in admin \"$srcdir\"/admin" "$LINENO" 5
2633 # These three variables are undocumented and unsupported,
2634 # and are intended to be withdrawn in a future Autoconf release.
2635 # They can cause serious problems if a builder's source tree is in a directory
2636 # whose full name contains unusual characters.
2637 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2638 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2639 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2642 ac_config_headers="$ac_config_headers bconfig.h"
2646 ac_config_commands="$ac_config_commands bootstrap/atconfig"
2649 # Make sure we can run config.sub.
2650 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2651 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2654 $as_echo_n "checking build system type... " >&6; }
2655 if ${ac_cv_build+:} false; then :
2656 $as_echo_n "(cached) " >&6
2657 else
2658 ac_build_alias=$build_alias
2659 test "x$ac_build_alias" = x &&
2660 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2661 test "x$ac_build_alias" = x &&
2662 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2663 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2664 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2668 $as_echo "$ac_cv_build" >&6; }
2669 case $ac_cv_build in
2670 *-*-*) ;;
2671 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2672 esac
2673 build=$ac_cv_build
2674 ac_save_IFS=$IFS; IFS='-'
2675 set x $ac_cv_build
2676 shift
2677 build_cpu=$1
2678 build_vendor=$2
2679 shift; shift
2680 # Remember, the first character of IFS is used to create $*,
2681 # except with old shells:
2682 build_os=$*
2683 IFS=$ac_save_IFS
2684 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2688 $as_echo_n "checking host system type... " >&6; }
2689 if ${ac_cv_host+:} false; then :
2690 $as_echo_n "(cached) " >&6
2691 else
2692 if test "x$host_alias" = x; then
2693 ac_cv_host=$ac_cv_build
2694 else
2695 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2696 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2701 $as_echo "$ac_cv_host" >&6; }
2702 case $ac_cv_host in
2703 *-*-*) ;;
2704 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2705 esac
2706 host=$ac_cv_host
2707 ac_save_IFS=$IFS; IFS='-'
2708 set x $ac_cv_host
2709 shift
2710 host_cpu=$1
2711 host_vendor=$2
2712 shift; shift
2713 # Remember, the first character of IFS is used to create $*,
2714 # except with old shells:
2715 host_os=$*
2716 IFS=$ac_save_IFS
2717 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2721 $as_echo_n "checking target system type... " >&6; }
2722 if ${ac_cv_target+:} false; then :
2723 $as_echo_n "(cached) " >&6
2724 else
2725 if test "x$target_alias" = x; then
2726 ac_cv_target=$ac_cv_host
2727 else
2728 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2729 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2734 $as_echo "$ac_cv_target" >&6; }
2735 case $ac_cv_target in
2736 *-*-*) ;;
2737 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2738 esac
2739 target=$ac_cv_target
2740 ac_save_IFS=$IFS; IFS='-'
2741 set x $ac_cv_target
2742 shift
2743 target_cpu=$1
2744 target_vendor=$2
2745 shift; shift
2746 # Remember, the first character of IFS is used to create $*,
2747 # except with old shells:
2748 target_os=$*
2749 IFS=$ac_save_IFS
2750 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2753 # The aliases save the names the user supplied, while $host etc.
2754 # will get canonicalized.
2755 test -n "$target_alias" &&
2756 test "$program_prefix$program_suffix$program_transform_name" = \
2757 NONENONEs,x,x, &&
2758 program_prefix=${target_alias}-
2760 am__api_version='1.12'
2762 # Find a good install program. We prefer a C program (faster),
2763 # so one script is as good as another. But avoid the broken or
2764 # incompatible versions:
2765 # SysV /etc/install, /usr/sbin/install
2766 # SunOS /usr/etc/install
2767 # IRIX /sbin/install
2768 # AIX /bin/install
2769 # AmigaOS /C/install, which installs bootblocks on floppy discs
2770 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2771 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2772 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2773 # OS/2's system install, which has a completely different semantic
2774 # ./install, which can be erroneously created by make from ./install.sh.
2775 # Reject install programs that cannot install multiple files.
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2777 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2778 if test -z "$INSTALL"; then
2779 if ${ac_cv_path_install+:} false; then :
2780 $as_echo_n "(cached) " >&6
2781 else
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 for as_dir in $PATH
2785 IFS=$as_save_IFS
2786 test -z "$as_dir" && as_dir=.
2787 # Account for people who put trailing slashes in PATH elements.
2788 case $as_dir/ in #((
2789 ./ | .// | /[cC]/* | \
2790 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2791 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2792 /usr/ucb/* ) ;;
2794 # OSF1 and SCO ODT 3.0 have their own names for install.
2795 # Don't use installbsd from OSF since it installs stuff as root
2796 # by default.
2797 for ac_prog in ginstall scoinst install; do
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2800 if test $ac_prog = install &&
2801 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2802 # AIX install. It has an incompatible calling convention.
2804 elif test $ac_prog = install &&
2805 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2806 # program-specific install script used by HP pwplus--don't use.
2808 else
2809 rm -rf conftest.one conftest.two conftest.dir
2810 echo one > conftest.one
2811 echo two > conftest.two
2812 mkdir conftest.dir
2813 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2814 test -s conftest.one && test -s conftest.two &&
2815 test -s conftest.dir/conftest.one &&
2816 test -s conftest.dir/conftest.two
2817 then
2818 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2819 break 3
2823 done
2824 done
2826 esac
2828 done
2829 IFS=$as_save_IFS
2831 rm -rf conftest.one conftest.two conftest.dir
2834 if test "${ac_cv_path_install+set}" = set; then
2835 INSTALL=$ac_cv_path_install
2836 else
2837 # As a last resort, use the slow shell script. Don't cache a
2838 # value for INSTALL within a source directory, because that will
2839 # break other packages using the cache if that directory is
2840 # removed, or if the value is a relative name.
2841 INSTALL=$ac_install_sh
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2845 $as_echo "$INSTALL" >&6; }
2847 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2848 # It thinks the first close brace ends the variable substitution.
2849 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2851 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2853 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2856 $as_echo_n "checking whether build environment is sane... " >&6; }
2857 # Reject unsafe characters in $srcdir or the absolute working directory
2858 # name. Accept space and tab only in the latter.
2859 am_lf='
2861 case `pwd` in
2862 *[\\\"\#\$\&\'\`$am_lf]*)
2863 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2864 esac
2865 case $srcdir in
2866 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2867 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2868 esac
2870 # Do 'set' in a subshell so we don't clobber the current shell's
2871 # arguments. Must try -L first in case configure is actually a
2872 # symlink; some systems play weird games with the mod time of symlinks
2873 # (eg FreeBSD returns the mod time of the symlink's containing
2874 # directory).
2875 if (
2876 am_has_slept=no
2877 for am_try in 1 2; do
2878 echo "timestamp, slept: $am_has_slept" > conftest.file
2879 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2880 if test "$*" = "X"; then
2881 # -L didn't work.
2882 set X `ls -t "$srcdir/configure" conftest.file`
2884 if test "$*" != "X $srcdir/configure conftest.file" \
2885 && test "$*" != "X conftest.file $srcdir/configure"; then
2887 # If neither matched, then we have a broken ls. This can happen
2888 # if, for instance, CONFIG_SHELL is bash and it inherits a
2889 # broken ls alias from the environment. This has actually
2890 # happened. Such a system could not be considered "sane".
2891 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2892 alias in your environment" "$LINENO" 5
2894 if test "$2" = conftest.file || test $am_try -eq 2; then
2895 break
2897 # Just in case.
2898 sleep 1
2899 am_has_slept=yes
2900 done
2901 test "$2" = conftest.file
2903 then
2904 # Ok.
2906 else
2907 as_fn_error $? "newly created file is older than distributed files!
2908 Check your system clock" "$LINENO" 5
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2911 $as_echo "yes" >&6; }
2912 # If we didn't sleep, we still need to ensure time stamps of config.status and
2913 # generated files are strictly newer.
2914 am_sleep_pid=
2915 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2916 ( sleep 1 ) &
2917 am_sleep_pid=$!
2920 rm -f conftest.file
2922 test "$program_prefix" != NONE &&
2923 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2924 # Use a double $ so make ignores it.
2925 test "$program_suffix" != NONE &&
2926 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2927 # Double any \ or $.
2928 # By default was `s,x,x', remove it if useless.
2929 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2930 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2932 # expand $ac_aux_dir to an absolute path
2933 am_aux_dir=`cd $ac_aux_dir && pwd`
2935 if test x"${MISSING+set}" != xset; then
2936 case $am_aux_dir in
2937 *\ * | *\ *)
2938 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2940 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2941 esac
2943 # Use eval to expand $SHELL
2944 if eval "$MISSING --run true"; then
2945 am_missing_run="$MISSING --run "
2946 else
2947 am_missing_run=
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2949 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2952 if test x"${install_sh}" != xset; then
2953 case $am_aux_dir in
2954 *\ * | *\ *)
2955 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2957 install_sh="\${SHELL} $am_aux_dir/install-sh"
2958 esac
2961 # Installed binaries are usually stripped using 'strip' when the user
2962 # run "make install-strip". However 'strip' might not be the right
2963 # tool to use in cross-compilation environments, therefore Automake
2964 # will honor the 'STRIP' environment variable to overrule this program.
2965 if test "$cross_compiling" != no; then
2966 if test -n "$ac_tool_prefix"; then
2967 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2968 set dummy ${ac_tool_prefix}strip; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if ${ac_cv_prog_STRIP+:} false; then :
2972 $as_echo_n "(cached) " >&6
2973 else
2974 if test -n "$STRIP"; then
2975 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2976 else
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2980 IFS=$as_save_IFS
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2984 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 break 2
2988 done
2989 done
2990 IFS=$as_save_IFS
2994 STRIP=$ac_cv_prog_STRIP
2995 if test -n "$STRIP"; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2997 $as_echo "$STRIP" >&6; }
2998 else
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3005 if test -z "$ac_cv_prog_STRIP"; then
3006 ac_ct_STRIP=$STRIP
3007 # Extract the first word of "strip", so it can be a program name with args.
3008 set dummy strip; ac_word=$2
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010 $as_echo_n "checking for $ac_word... " >&6; }
3011 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3012 $as_echo_n "(cached) " >&6
3013 else
3014 if test -n "$ac_ct_STRIP"; then
3015 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3016 else
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 for as_dir in $PATH
3020 IFS=$as_save_IFS
3021 test -z "$as_dir" && as_dir=.
3022 for ac_exec_ext in '' $ac_executable_extensions; do
3023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3024 ac_cv_prog_ac_ct_STRIP="strip"
3025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 break 2
3028 done
3029 done
3030 IFS=$as_save_IFS
3034 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3035 if test -n "$ac_ct_STRIP"; then
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3037 $as_echo "$ac_ct_STRIP" >&6; }
3038 else
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040 $as_echo "no" >&6; }
3043 if test "x$ac_ct_STRIP" = x; then
3044 STRIP=":"
3045 else
3046 case $cross_compiling:$ac_tool_warned in
3047 yes:)
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3050 ac_tool_warned=yes ;;
3051 esac
3052 STRIP=$ac_ct_STRIP
3054 else
3055 STRIP="$ac_cv_prog_STRIP"
3059 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3062 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3063 if test -z "$MKDIR_P"; then
3064 if ${ac_cv_path_mkdir+:} false; then :
3065 $as_echo_n "(cached) " >&6
3066 else
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3070 IFS=$as_save_IFS
3071 test -z "$as_dir" && as_dir=.
3072 for ac_prog in mkdir gmkdir; do
3073 for ac_exec_ext in '' $ac_executable_extensions; do
3074 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3075 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3076 'mkdir (GNU coreutils) '* | \
3077 'mkdir (coreutils) '* | \
3078 'mkdir (fileutils) '4.1*)
3079 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3080 break 3;;
3081 esac
3082 done
3083 done
3084 done
3085 IFS=$as_save_IFS
3089 test -d ./--version && rmdir ./--version
3090 if test "${ac_cv_path_mkdir+set}" = set; then
3091 MKDIR_P="$ac_cv_path_mkdir -p"
3092 else
3093 # As a last resort, use the slow shell script. Don't cache a
3094 # value for MKDIR_P within a source directory, because that will
3095 # break other packages using the cache if that directory is
3096 # removed, or if the value is a relative name.
3097 MKDIR_P="$ac_install_sh -d"
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3101 $as_echo "$MKDIR_P" >&6; }
3103 for ac_prog in gawk mawk nawk awk
3105 # Extract the first word of "$ac_prog", so it can be a program name with args.
3106 set dummy $ac_prog; ac_word=$2
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108 $as_echo_n "checking for $ac_word... " >&6; }
3109 if ${ac_cv_prog_AWK+:} false; then :
3110 $as_echo_n "(cached) " >&6
3111 else
3112 if test -n "$AWK"; then
3113 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3114 else
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH
3118 IFS=$as_save_IFS
3119 test -z "$as_dir" && as_dir=.
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122 ac_cv_prog_AWK="$ac_prog"
3123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 break 2
3126 done
3127 done
3128 IFS=$as_save_IFS
3132 AWK=$ac_cv_prog_AWK
3133 if test -n "$AWK"; then
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3135 $as_echo "$AWK" >&6; }
3136 else
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138 $as_echo "no" >&6; }
3142 test -n "$AWK" && break
3143 done
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3146 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3147 set x ${MAKE-make}
3148 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3149 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3150 $as_echo_n "(cached) " >&6
3151 else
3152 cat >conftest.make <<\_ACEOF
3153 SHELL = /bin/sh
3154 all:
3155 @echo '@@@%%%=$(MAKE)=@@@%%%'
3156 _ACEOF
3157 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3158 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3159 *@@@%%%=?*=@@@%%%*)
3160 eval ac_cv_prog_make_${ac_make}_set=yes;;
3162 eval ac_cv_prog_make_${ac_make}_set=no;;
3163 esac
3164 rm -f conftest.make
3166 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3168 $as_echo "yes" >&6; }
3169 SET_MAKE=
3170 else
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 $as_echo "no" >&6; }
3173 SET_MAKE="MAKE=${MAKE-make}"
3176 rm -rf .tst 2>/dev/null
3177 mkdir .tst 2>/dev/null
3178 if test -d .tst; then
3179 am__leading_dot=.
3180 else
3181 am__leading_dot=_
3183 rmdir .tst 2>/dev/null
3185 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3186 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3187 # is not polluted with repeated "-I."
3188 am__isrc=' -I$(srcdir)'
3189 # test to see if srcdir already configured
3190 if test -f $srcdir/config.status; then
3191 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3195 # test whether we have cygpath
3196 if test -z "$CYGPATH_W"; then
3197 if (cygpath --version) >/dev/null 2>/dev/null; then
3198 CYGPATH_W='cygpath -w'
3199 else
3200 CYGPATH_W=echo
3205 # Define the identity of the package.
3206 PACKAGE='atf'
3207 VERSION='0.17'
3210 cat >>confdefs.h <<_ACEOF
3211 #define PACKAGE "$PACKAGE"
3212 _ACEOF
3215 cat >>confdefs.h <<_ACEOF
3216 #define VERSION "$VERSION"
3217 _ACEOF
3219 # Some tools Automake needs.
3221 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3224 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3227 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3230 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3233 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3235 # For better backward compatibility. To be removed once Automake 1.9.x
3236 # dies out for good. For more background, see:
3237 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3238 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3239 mkdir_p='$(MKDIR_P)'
3241 # We need awk for the "check" target. The system "awk" is bad on
3242 # some platforms.
3243 # Always define AMTAR for backward compatibility. Yes, it's still used
3244 # in the wild :-( We should find a proper way to deprecate it ...
3245 AMTAR='$${TAR-tar}'
3247 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3254 case `pwd` in
3255 *\ * | *\ *)
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3257 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3258 esac
3262 macro_version='2.2.6b'
3263 macro_revision='1.3017'
3277 ltmain="$ac_aux_dir/ltmain.sh"
3279 DEPDIR="${am__leading_dot}deps"
3281 ac_config_commands="$ac_config_commands depfiles"
3284 am_make=${MAKE-make}
3285 cat > confinc << 'END'
3286 am__doit:
3287 @echo this is the am__doit target
3288 .PHONY: am__doit
3290 # If we don't find an include directive, just comment out the code.
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3292 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3293 am__include="#"
3294 am__quote=
3295 _am_result=none
3296 # First try GNU make style include.
3297 echo "include confinc" > confmf
3298 # Ignore all kinds of additional output from 'make'.
3299 case `$am_make -s -f confmf 2> /dev/null` in #(
3300 *the\ am__doit\ target*)
3301 am__include=include
3302 am__quote=
3303 _am_result=GNU
3305 esac
3306 # Now try BSD make style include.
3307 if test "$am__include" = "#"; then
3308 echo '.include "confinc"' > confmf
3309 case `$am_make -s -f confmf 2> /dev/null` in #(
3310 *the\ am__doit\ target*)
3311 am__include=.include
3312 am__quote="\""
3313 _am_result=BSD
3315 esac
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3320 $as_echo "$_am_result" >&6; }
3321 rm -f confinc confmf
3323 # Check whether --enable-dependency-tracking was given.
3324 if test "${enable_dependency_tracking+set}" = set; then :
3325 enableval=$enable_dependency_tracking;
3328 if test "x$enable_dependency_tracking" != xno; then
3329 am_depcomp="$ac_aux_dir/depcomp"
3330 AMDEPBACKSLASH='\'
3331 am__nodep='_no'
3333 if test "x$enable_dependency_tracking" != xno; then
3334 AMDEP_TRUE=
3335 AMDEP_FALSE='#'
3336 else
3337 AMDEP_TRUE='#'
3338 AMDEP_FALSE=
3342 ac_ext=c
3343 ac_cpp='$CPP $CPPFLAGS'
3344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3347 if test -n "$ac_tool_prefix"; then
3348 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3349 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3351 $as_echo_n "checking for $ac_word... " >&6; }
3352 if ${ac_cv_prog_CC+:} false; then :
3353 $as_echo_n "(cached) " >&6
3354 else
3355 if test -n "$CC"; then
3356 ac_cv_prog_CC="$CC" # Let the user override the test.
3357 else
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359 for as_dir in $PATH
3361 IFS=$as_save_IFS
3362 test -z "$as_dir" && as_dir=.
3363 for ac_exec_ext in '' $ac_executable_extensions; do
3364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3365 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3367 break 2
3369 done
3370 done
3371 IFS=$as_save_IFS
3375 CC=$ac_cv_prog_CC
3376 if test -n "$CC"; then
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3378 $as_echo "$CC" >&6; }
3379 else
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381 $as_echo "no" >&6; }
3386 if test -z "$ac_cv_prog_CC"; then
3387 ac_ct_CC=$CC
3388 # Extract the first word of "gcc", so it can be a program name with args.
3389 set dummy gcc; ac_word=$2
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391 $as_echo_n "checking for $ac_word... " >&6; }
3392 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3393 $as_echo_n "(cached) " >&6
3394 else
3395 if test -n "$ac_ct_CC"; then
3396 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3397 else
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3401 IFS=$as_save_IFS
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405 ac_cv_prog_ac_ct_CC="gcc"
3406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3407 break 2
3409 done
3410 done
3411 IFS=$as_save_IFS
3415 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3416 if test -n "$ac_ct_CC"; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3418 $as_echo "$ac_ct_CC" >&6; }
3419 else
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 $as_echo "no" >&6; }
3424 if test "x$ac_ct_CC" = x; then
3425 CC=""
3426 else
3427 case $cross_compiling:$ac_tool_warned in
3428 yes:)
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3431 ac_tool_warned=yes ;;
3432 esac
3433 CC=$ac_ct_CC
3435 else
3436 CC="$ac_cv_prog_CC"
3439 if test -z "$CC"; then
3440 if test -n "$ac_tool_prefix"; then
3441 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3442 set dummy ${ac_tool_prefix}cc; ac_word=$2
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3444 $as_echo_n "checking for $ac_word... " >&6; }
3445 if ${ac_cv_prog_CC+:} false; then :
3446 $as_echo_n "(cached) " >&6
3447 else
3448 if test -n "$CC"; then
3449 ac_cv_prog_CC="$CC" # Let the user override the test.
3450 else
3451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452 for as_dir in $PATH
3454 IFS=$as_save_IFS
3455 test -z "$as_dir" && as_dir=.
3456 for ac_exec_ext in '' $ac_executable_extensions; do
3457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3458 ac_cv_prog_CC="${ac_tool_prefix}cc"
3459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 break 2
3462 done
3463 done
3464 IFS=$as_save_IFS
3468 CC=$ac_cv_prog_CC
3469 if test -n "$CC"; then
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3471 $as_echo "$CC" >&6; }
3472 else
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474 $as_echo "no" >&6; }
3480 if test -z "$CC"; then
3481 # Extract the first word of "cc", so it can be a program name with args.
3482 set dummy cc; ac_word=$2
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3484 $as_echo_n "checking for $ac_word... " >&6; }
3485 if ${ac_cv_prog_CC+:} false; then :
3486 $as_echo_n "(cached) " >&6
3487 else
3488 if test -n "$CC"; then
3489 ac_cv_prog_CC="$CC" # Let the user override the test.
3490 else
3491 ac_prog_rejected=no
3492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493 for as_dir in $PATH
3495 IFS=$as_save_IFS
3496 test -z "$as_dir" && as_dir=.
3497 for ac_exec_ext in '' $ac_executable_extensions; do
3498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3499 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3500 ac_prog_rejected=yes
3501 continue
3503 ac_cv_prog_CC="cc"
3504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3505 break 2
3507 done
3508 done
3509 IFS=$as_save_IFS
3511 if test $ac_prog_rejected = yes; then
3512 # We found a bogon in the path, so make sure we never use it.
3513 set dummy $ac_cv_prog_CC
3514 shift
3515 if test $# != 0; then
3516 # We chose a different compiler from the bogus one.
3517 # However, it has the same basename, so the bogon will be chosen
3518 # first if we set CC to just the basename; use the full file name.
3519 shift
3520 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3525 CC=$ac_cv_prog_CC
3526 if test -n "$CC"; then
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3528 $as_echo "$CC" >&6; }
3529 else
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3536 if test -z "$CC"; then
3537 if test -n "$ac_tool_prefix"; then
3538 for ac_prog in cl.exe
3540 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3541 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 $as_echo_n "checking for $ac_word... " >&6; }
3544 if ${ac_cv_prog_CC+:} false; then :
3545 $as_echo_n "(cached) " >&6
3546 else
3547 if test -n "$CC"; then
3548 ac_cv_prog_CC="$CC" # Let the user override the test.
3549 else
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3553 IFS=$as_save_IFS
3554 test -z "$as_dir" && as_dir=.
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3559 break 2
3561 done
3562 done
3563 IFS=$as_save_IFS
3567 CC=$ac_cv_prog_CC
3568 if test -n "$CC"; then
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3570 $as_echo "$CC" >&6; }
3571 else
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 $as_echo "no" >&6; }
3577 test -n "$CC" && break
3578 done
3580 if test -z "$CC"; then
3581 ac_ct_CC=$CC
3582 for ac_prog in cl.exe
3584 # Extract the first word of "$ac_prog", so it can be a program name with args.
3585 set dummy $ac_prog; ac_word=$2
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587 $as_echo_n "checking for $ac_word... " >&6; }
3588 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3589 $as_echo_n "(cached) " >&6
3590 else
3591 if test -n "$ac_ct_CC"; then
3592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3593 else
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH
3597 IFS=$as_save_IFS
3598 test -z "$as_dir" && as_dir=.
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3601 ac_cv_prog_ac_ct_CC="$ac_prog"
3602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 break 2
3605 done
3606 done
3607 IFS=$as_save_IFS
3611 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3612 if test -n "$ac_ct_CC"; then
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3614 $as_echo "$ac_ct_CC" >&6; }
3615 else
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 $as_echo "no" >&6; }
3621 test -n "$ac_ct_CC" && break
3622 done
3624 if test "x$ac_ct_CC" = x; then
3625 CC=""
3626 else
3627 case $cross_compiling:$ac_tool_warned in
3628 yes:)
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3631 ac_tool_warned=yes ;;
3632 esac
3633 CC=$ac_ct_CC
3640 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3642 as_fn_error $? "no acceptable C compiler found in \$PATH
3643 See \`config.log' for more details" "$LINENO" 5; }
3645 # Provide some information about the compiler.
3646 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3647 set X $ac_compile
3648 ac_compiler=$2
3649 for ac_option in --version -v -V -qversion; do
3650 { { ac_try="$ac_compiler $ac_option >&5"
3651 case "(($ac_try" in
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3654 esac
3655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3656 $as_echo "$ac_try_echo"; } >&5
3657 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3658 ac_status=$?
3659 if test -s conftest.err; then
3660 sed '10a\
3661 ... rest of stderr output deleted ...
3662 10q' conftest.err >conftest.er1
3663 cat conftest.er1 >&5
3665 rm -f conftest.er1 conftest.err
3666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3667 test $ac_status = 0; }
3668 done
3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h. */
3674 main ()
3678 return 0;
3680 _ACEOF
3681 ac_clean_files_save=$ac_clean_files
3682 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3683 # Try to create an executable without -o first, disregard a.out.
3684 # It will help us diagnose broken compilers, and finding out an intuition
3685 # of exeext.
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3687 $as_echo_n "checking whether the C compiler works... " >&6; }
3688 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3690 # The possible output files:
3691 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3693 ac_rmfiles=
3694 for ac_file in $ac_files
3696 case $ac_file in
3697 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3698 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3699 esac
3700 done
3701 rm -f $ac_rmfiles
3703 if { { ac_try="$ac_link_default"
3704 case "(($ac_try" in
3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3707 esac
3708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3709 $as_echo "$ac_try_echo"; } >&5
3710 (eval "$ac_link_default") 2>&5
3711 ac_status=$?
3712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3713 test $ac_status = 0; }; then :
3714 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3715 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3716 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3717 # so that the user can short-circuit this test for compilers unknown to
3718 # Autoconf.
3719 for ac_file in $ac_files ''
3721 test -f "$ac_file" || continue
3722 case $ac_file in
3723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3725 [ab].out )
3726 # We found the default executable, but exeext='' is most
3727 # certainly right.
3728 break;;
3729 *.* )
3730 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3731 then :; else
3732 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3734 # We set ac_cv_exeext here because the later test for it is not
3735 # safe: cross compilers may not add the suffix if given an `-o'
3736 # argument, so we may need to know it at that point already.
3737 # Even if this section looks crufty: it has the advantage of
3738 # actually working.
3739 break;;
3741 break;;
3742 esac
3743 done
3744 test "$ac_cv_exeext" = no && ac_cv_exeext=
3746 else
3747 ac_file=''
3749 if test -z "$ac_file"; then :
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3751 $as_echo "no" >&6; }
3752 $as_echo "$as_me: failed program was:" >&5
3753 sed 's/^/| /' conftest.$ac_ext >&5
3755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3757 as_fn_error 77 "C compiler cannot create executables
3758 See \`config.log' for more details" "$LINENO" 5; }
3759 else
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3761 $as_echo "yes" >&6; }
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3764 $as_echo_n "checking for C compiler default output file name... " >&6; }
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3766 $as_echo "$ac_file" >&6; }
3767 ac_exeext=$ac_cv_exeext
3769 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3770 ac_clean_files=$ac_clean_files_save
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3772 $as_echo_n "checking for suffix of executables... " >&6; }
3773 if { { ac_try="$ac_link"
3774 case "(($ac_try" in
3775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3776 *) ac_try_echo=$ac_try;;
3777 esac
3778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3779 $as_echo "$ac_try_echo"; } >&5
3780 (eval "$ac_link") 2>&5
3781 ac_status=$?
3782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3783 test $ac_status = 0; }; then :
3784 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3785 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3786 # work properly (i.e., refer to `conftest.exe'), while it won't with
3787 # `rm'.
3788 for ac_file in conftest.exe conftest conftest.*; do
3789 test -f "$ac_file" || continue
3790 case $ac_file in
3791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3792 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3793 break;;
3794 * ) break;;
3795 esac
3796 done
3797 else
3798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3800 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3801 See \`config.log' for more details" "$LINENO" 5; }
3803 rm -f conftest conftest$ac_cv_exeext
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3805 $as_echo "$ac_cv_exeext" >&6; }
3807 rm -f conftest.$ac_ext
3808 EXEEXT=$ac_cv_exeext
3809 ac_exeext=$EXEEXT
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3812 #include <stdio.h>
3814 main ()
3816 FILE *f = fopen ("conftest.out", "w");
3817 return ferror (f) || fclose (f) != 0;
3820 return 0;
3822 _ACEOF
3823 ac_clean_files="$ac_clean_files conftest.out"
3824 # Check that the compiler produces executables we can run. If not, either
3825 # the compiler is broken, or we cross compile.
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3827 $as_echo_n "checking whether we are cross compiling... " >&6; }
3828 if test "$cross_compiling" != yes; then
3829 { { ac_try="$ac_link"
3830 case "(($ac_try" in
3831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832 *) ac_try_echo=$ac_try;;
3833 esac
3834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3835 $as_echo "$ac_try_echo"; } >&5
3836 (eval "$ac_link") 2>&5
3837 ac_status=$?
3838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3839 test $ac_status = 0; }
3840 if { ac_try='./conftest$ac_cv_exeext'
3841 { { case "(($ac_try" in
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3844 esac
3845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3846 $as_echo "$ac_try_echo"; } >&5
3847 (eval "$ac_try") 2>&5
3848 ac_status=$?
3849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3850 test $ac_status = 0; }; }; then
3851 cross_compiling=no
3852 else
3853 if test "$cross_compiling" = maybe; then
3854 cross_compiling=yes
3855 else
3856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3858 as_fn_error $? "cannot run C compiled programs.
3859 If you meant to cross compile, use \`--host'.
3860 See \`config.log' for more details" "$LINENO" 5; }
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3865 $as_echo "$cross_compiling" >&6; }
3867 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3868 ac_clean_files=$ac_clean_files_save
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3870 $as_echo_n "checking for suffix of object files... " >&6; }
3871 if ${ac_cv_objext+:} false; then :
3872 $as_echo_n "(cached) " >&6
3873 else
3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h. */
3878 main ()
3882 return 0;
3884 _ACEOF
3885 rm -f conftest.o conftest.obj
3886 if { { ac_try="$ac_compile"
3887 case "(($ac_try" in
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3890 esac
3891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3892 $as_echo "$ac_try_echo"; } >&5
3893 (eval "$ac_compile") 2>&5
3894 ac_status=$?
3895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3896 test $ac_status = 0; }; then :
3897 for ac_file in conftest.o conftest.obj conftest.*; do
3898 test -f "$ac_file" || continue;
3899 case $ac_file in
3900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3901 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3902 break;;
3903 esac
3904 done
3905 else
3906 $as_echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.$ac_ext >&5
3909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3911 as_fn_error $? "cannot compute suffix of object files: cannot compile
3912 See \`config.log' for more details" "$LINENO" 5; }
3914 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3917 $as_echo "$ac_cv_objext" >&6; }
3918 OBJEXT=$ac_cv_objext
3919 ac_objext=$OBJEXT
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3921 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3922 if ${ac_cv_c_compiler_gnu+:} false; then :
3923 $as_echo_n "(cached) " >&6
3924 else
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3929 main ()
3931 #ifndef __GNUC__
3932 choke me
3933 #endif
3936 return 0;
3938 _ACEOF
3939 if ac_fn_c_try_compile "$LINENO"; then :
3940 ac_compiler_gnu=yes
3941 else
3942 ac_compiler_gnu=no
3944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3949 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3950 if test $ac_compiler_gnu = yes; then
3951 GCC=yes
3952 else
3953 GCC=
3955 ac_test_CFLAGS=${CFLAGS+set}
3956 ac_save_CFLAGS=$CFLAGS
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3958 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3959 if ${ac_cv_prog_cc_g+:} false; then :
3960 $as_echo_n "(cached) " >&6
3961 else
3962 ac_save_c_werror_flag=$ac_c_werror_flag
3963 ac_c_werror_flag=yes
3964 ac_cv_prog_cc_g=no
3965 CFLAGS="-g"
3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h. */
3970 main ()
3974 return 0;
3976 _ACEOF
3977 if ac_fn_c_try_compile "$LINENO"; then :
3978 ac_cv_prog_cc_g=yes
3979 else
3980 CFLAGS=""
3981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982 /* end confdefs.h. */
3985 main ()
3989 return 0;
3991 _ACEOF
3992 if ac_fn_c_try_compile "$LINENO"; then :
3994 else
3995 ac_c_werror_flag=$ac_save_c_werror_flag
3996 CFLAGS="-g"
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h. */
4001 main ()
4005 return 0;
4007 _ACEOF
4008 if ac_fn_c_try_compile "$LINENO"; then :
4009 ac_cv_prog_cc_g=yes
4011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016 ac_c_werror_flag=$ac_save_c_werror_flag
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4019 $as_echo "$ac_cv_prog_cc_g" >&6; }
4020 if test "$ac_test_CFLAGS" = set; then
4021 CFLAGS=$ac_save_CFLAGS
4022 elif test $ac_cv_prog_cc_g = yes; then
4023 if test "$GCC" = yes; then
4024 CFLAGS="-g -O2"
4025 else
4026 CFLAGS="-g"
4028 else
4029 if test "$GCC" = yes; then
4030 CFLAGS="-O2"
4031 else
4032 CFLAGS=
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4036 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4037 if ${ac_cv_prog_cc_c89+:} false; then :
4038 $as_echo_n "(cached) " >&6
4039 else
4040 ac_cv_prog_cc_c89=no
4041 ac_save_CC=$CC
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h. */
4044 #include <stdarg.h>
4045 #include <stdio.h>
4046 struct stat;
4047 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4048 struct buf { int x; };
4049 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4050 static char *e (p, i)
4051 char **p;
4052 int i;
4054 return p[i];
4056 static char *f (char * (*g) (char **, int), char **p, ...)
4058 char *s;
4059 va_list v;
4060 va_start (v,p);
4061 s = g (p, va_arg (v,int));
4062 va_end (v);
4063 return s;
4066 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4067 function prototypes and stuff, but not '\xHH' hex character constants.
4068 These don't provoke an error unfortunately, instead are silently treated
4069 as 'x'. The following induces an error, until -std is added to get
4070 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4071 array size at least. It's necessary to write '\x00'==0 to get something
4072 that's true only with -std. */
4073 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4075 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4076 inside strings and character constants. */
4077 #define FOO(x) 'x'
4078 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4080 int test (int i, double x);
4081 struct s1 {int (*f) (int a);};
4082 struct s2 {int (*f) (double a);};
4083 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4084 int argc;
4085 char **argv;
4087 main ()
4089 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4091 return 0;
4093 _ACEOF
4094 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4095 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4097 CC="$ac_save_CC $ac_arg"
4098 if ac_fn_c_try_compile "$LINENO"; then :
4099 ac_cv_prog_cc_c89=$ac_arg
4101 rm -f core conftest.err conftest.$ac_objext
4102 test "x$ac_cv_prog_cc_c89" != "xno" && break
4103 done
4104 rm -f conftest.$ac_ext
4105 CC=$ac_save_CC
4108 # AC_CACHE_VAL
4109 case "x$ac_cv_prog_cc_c89" in
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4112 $as_echo "none needed" >&6; } ;;
4113 xno)
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4115 $as_echo "unsupported" >&6; } ;;
4117 CC="$CC $ac_cv_prog_cc_c89"
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4119 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4120 esac
4121 if test "x$ac_cv_prog_cc_c89" != xno; then :
4125 ac_ext=c
4126 ac_cpp='$CPP $CPPFLAGS'
4127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4131 depcc="$CC" am_compiler_list=
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4134 $as_echo_n "checking dependency style of $depcc... " >&6; }
4135 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4136 $as_echo_n "(cached) " >&6
4137 else
4138 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4139 # We make a subdir and do the tests there. Otherwise we can end up
4140 # making bogus files that we don't know about and never remove. For
4141 # instance it was reported that on HP-UX the gcc test will end up
4142 # making a dummy file named 'D' -- because '-MD' means "put the output
4143 # in D".
4144 rm -rf conftest.dir
4145 mkdir conftest.dir
4146 # Copy depcomp to subdir because otherwise we won't find it if we're
4147 # using a relative directory.
4148 cp "$am_depcomp" conftest.dir
4149 cd conftest.dir
4150 # We will build objects and dependencies in a subdirectory because
4151 # it helps to detect inapplicable dependency modes. For instance
4152 # both Tru64's cc and ICC support -MD to output dependencies as a
4153 # side effect of compilation, but ICC will put the dependencies in
4154 # the current directory while Tru64 will put them in the object
4155 # directory.
4156 mkdir sub
4158 am_cv_CC_dependencies_compiler_type=none
4159 if test "$am_compiler_list" = ""; then
4160 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4162 am__universal=false
4163 case " $depcc " in #(
4164 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4165 esac
4167 for depmode in $am_compiler_list; do
4168 # Setup a source with many dependencies, because some compilers
4169 # like to wrap large dependency lists on column 80 (with \), and
4170 # we should not choose a depcomp mode which is confused by this.
4172 # We need to recreate these files for each test, as the compiler may
4173 # overwrite some of them when testing with obscure command lines.
4174 # This happens at least with the AIX C compiler.
4175 : > sub/conftest.c
4176 for i in 1 2 3 4 5 6; do
4177 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4178 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4179 # Solaris 10 /bin/sh.
4180 echo '/* dummy */' > sub/conftst$i.h
4181 done
4182 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4184 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4185 # mode. It turns out that the SunPro C++ compiler does not properly
4186 # handle '-M -o', and we need to detect this. Also, some Intel
4187 # versions had trouble with output in subdirs.
4188 am__obj=sub/conftest.${OBJEXT-o}
4189 am__minus_obj="-o $am__obj"
4190 case $depmode in
4191 gcc)
4192 # This depmode causes a compiler race in universal mode.
4193 test "$am__universal" = false || continue
4195 nosideeffect)
4196 # After this tag, mechanisms are not by side-effect, so they'll
4197 # only be used when explicitly requested.
4198 if test "x$enable_dependency_tracking" = xyes; then
4199 continue
4200 else
4201 break
4204 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4205 # This compiler won't grok '-c -o', but also, the minuso test has
4206 # not run yet. These depmodes are late enough in the game, and
4207 # so weak that their functioning should not be impacted.
4208 am__obj=conftest.${OBJEXT-o}
4209 am__minus_obj=
4211 none) break ;;
4212 esac
4213 if depmode=$depmode \
4214 source=sub/conftest.c object=$am__obj \
4215 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4216 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4217 >/dev/null 2>conftest.err &&
4218 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4219 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4220 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4221 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4222 # icc doesn't choke on unknown options, it will just issue warnings
4223 # or remarks (even with -Werror). So we grep stderr for any message
4224 # that says an option was ignored or not supported.
4225 # When given -MP, icc 7.0 and 7.1 complain thusly:
4226 # icc: Command line warning: ignoring option '-M'; no argument required
4227 # The diagnosis changed in icc 8.0:
4228 # icc: Command line remark: option '-MP' not supported
4229 if (grep 'ignoring option' conftest.err ||
4230 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4231 am_cv_CC_dependencies_compiler_type=$depmode
4232 break
4235 done
4237 cd ..
4238 rm -rf conftest.dir
4239 else
4240 am_cv_CC_dependencies_compiler_type=none
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4245 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4246 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4249 test "x$enable_dependency_tracking" != xno \
4250 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4251 am__fastdepCC_TRUE=
4252 am__fastdepCC_FALSE='#'
4253 else
4254 am__fastdepCC_TRUE='#'
4255 am__fastdepCC_FALSE=
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4260 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4261 if ${ac_cv_path_SED+:} false; then :
4262 $as_echo_n "(cached) " >&6
4263 else
4264 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4265 for ac_i in 1 2 3 4 5 6 7; do
4266 ac_script="$ac_script$as_nl$ac_script"
4267 done
4268 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4269 { ac_script=; unset ac_script;}
4270 if test -z "$SED"; then
4271 ac_path_SED_found=false
4272 # Loop through the user's path and test for each of PROGNAME-LIST
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_prog in sed gsed; do
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4281 as_fn_executable_p "$ac_path_SED" || continue
4282 # Check for GNU ac_path_SED and select it if it is found.
4283 # Check for GNU $ac_path_SED
4284 case `"$ac_path_SED" --version 2>&1` in
4285 *GNU*)
4286 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4288 ac_count=0
4289 $as_echo_n 0123456789 >"conftest.in"
4290 while :
4292 cat "conftest.in" "conftest.in" >"conftest.tmp"
4293 mv "conftest.tmp" "conftest.in"
4294 cp "conftest.in" "conftest.nl"
4295 $as_echo '' >> "conftest.nl"
4296 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4297 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4298 as_fn_arith $ac_count + 1 && ac_count=$as_val
4299 if test $ac_count -gt ${ac_path_SED_max-0}; then
4300 # Best one so far, save it but keep looking for a better one
4301 ac_cv_path_SED="$ac_path_SED"
4302 ac_path_SED_max=$ac_count
4304 # 10*(2^10) chars as input seems more than enough
4305 test $ac_count -gt 10 && break
4306 done
4307 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4308 esac
4310 $ac_path_SED_found && break 3
4311 done
4312 done
4313 done
4314 IFS=$as_save_IFS
4315 if test -z "$ac_cv_path_SED"; then
4316 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4318 else
4319 ac_cv_path_SED=$SED
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4324 $as_echo "$ac_cv_path_SED" >&6; }
4325 SED="$ac_cv_path_SED"
4326 rm -f conftest.sed
4328 test -z "$SED" && SED=sed
4329 Xsed="$SED -e 1s/^X//"
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4342 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4343 if ${ac_cv_path_GREP+:} false; then :
4344 $as_echo_n "(cached) " >&6
4345 else
4346 if test -z "$GREP"; then
4347 ac_path_GREP_found=false
4348 # Loop through the user's path and test for each of PROGNAME-LIST
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4352 IFS=$as_save_IFS
4353 test -z "$as_dir" && as_dir=.
4354 for ac_prog in grep ggrep; do
4355 for ac_exec_ext in '' $ac_executable_extensions; do
4356 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4357 as_fn_executable_p "$ac_path_GREP" || continue
4358 # Check for GNU ac_path_GREP and select it if it is found.
4359 # Check for GNU $ac_path_GREP
4360 case `"$ac_path_GREP" --version 2>&1` in
4361 *GNU*)
4362 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4364 ac_count=0
4365 $as_echo_n 0123456789 >"conftest.in"
4366 while :
4368 cat "conftest.in" "conftest.in" >"conftest.tmp"
4369 mv "conftest.tmp" "conftest.in"
4370 cp "conftest.in" "conftest.nl"
4371 $as_echo 'GREP' >> "conftest.nl"
4372 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4373 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4374 as_fn_arith $ac_count + 1 && ac_count=$as_val
4375 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4376 # Best one so far, save it but keep looking for a better one
4377 ac_cv_path_GREP="$ac_path_GREP"
4378 ac_path_GREP_max=$ac_count
4380 # 10*(2^10) chars as input seems more than enough
4381 test $ac_count -gt 10 && break
4382 done
4383 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4384 esac
4386 $ac_path_GREP_found && break 3
4387 done
4388 done
4389 done
4390 IFS=$as_save_IFS
4391 if test -z "$ac_cv_path_GREP"; then
4392 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4394 else
4395 ac_cv_path_GREP=$GREP
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4400 $as_echo "$ac_cv_path_GREP" >&6; }
4401 GREP="$ac_cv_path_GREP"
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4405 $as_echo_n "checking for egrep... " >&6; }
4406 if ${ac_cv_path_EGREP+:} false; then :
4407 $as_echo_n "(cached) " >&6
4408 else
4409 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4410 then ac_cv_path_EGREP="$GREP -E"
4411 else
4412 if test -z "$EGREP"; then
4413 ac_path_EGREP_found=false
4414 # Loop through the user's path and test for each of PROGNAME-LIST
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
4420 for ac_prog in egrep; do
4421 for ac_exec_ext in '' $ac_executable_extensions; do
4422 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4423 as_fn_executable_p "$ac_path_EGREP" || continue
4424 # Check for GNU ac_path_EGREP and select it if it is found.
4425 # Check for GNU $ac_path_EGREP
4426 case `"$ac_path_EGREP" --version 2>&1` in
4427 *GNU*)
4428 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4430 ac_count=0
4431 $as_echo_n 0123456789 >"conftest.in"
4432 while :
4434 cat "conftest.in" "conftest.in" >"conftest.tmp"
4435 mv "conftest.tmp" "conftest.in"
4436 cp "conftest.in" "conftest.nl"
4437 $as_echo 'EGREP' >> "conftest.nl"
4438 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4439 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4440 as_fn_arith $ac_count + 1 && ac_count=$as_val
4441 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4442 # Best one so far, save it but keep looking for a better one
4443 ac_cv_path_EGREP="$ac_path_EGREP"
4444 ac_path_EGREP_max=$ac_count
4446 # 10*(2^10) chars as input seems more than enough
4447 test $ac_count -gt 10 && break
4448 done
4449 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4450 esac
4452 $ac_path_EGREP_found && break 3
4453 done
4454 done
4455 done
4456 IFS=$as_save_IFS
4457 if test -z "$ac_cv_path_EGREP"; then
4458 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4460 else
4461 ac_cv_path_EGREP=$EGREP
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4467 $as_echo "$ac_cv_path_EGREP" >&6; }
4468 EGREP="$ac_cv_path_EGREP"
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4472 $as_echo_n "checking for fgrep... " >&6; }
4473 if ${ac_cv_path_FGREP+:} false; then :
4474 $as_echo_n "(cached) " >&6
4475 else
4476 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4477 then ac_cv_path_FGREP="$GREP -F"
4478 else
4479 if test -z "$FGREP"; then
4480 ac_path_FGREP_found=false
4481 # Loop through the user's path and test for each of PROGNAME-LIST
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4485 IFS=$as_save_IFS
4486 test -z "$as_dir" && as_dir=.
4487 for ac_prog in fgrep; do
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4490 as_fn_executable_p "$ac_path_FGREP" || continue
4491 # Check for GNU ac_path_FGREP and select it if it is found.
4492 # Check for GNU $ac_path_FGREP
4493 case `"$ac_path_FGREP" --version 2>&1` in
4494 *GNU*)
4495 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4497 ac_count=0
4498 $as_echo_n 0123456789 >"conftest.in"
4499 while :
4501 cat "conftest.in" "conftest.in" >"conftest.tmp"
4502 mv "conftest.tmp" "conftest.in"
4503 cp "conftest.in" "conftest.nl"
4504 $as_echo 'FGREP' >> "conftest.nl"
4505 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4506 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4507 as_fn_arith $ac_count + 1 && ac_count=$as_val
4508 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4509 # Best one so far, save it but keep looking for a better one
4510 ac_cv_path_FGREP="$ac_path_FGREP"
4511 ac_path_FGREP_max=$ac_count
4513 # 10*(2^10) chars as input seems more than enough
4514 test $ac_count -gt 10 && break
4515 done
4516 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4517 esac
4519 $ac_path_FGREP_found && break 3
4520 done
4521 done
4522 done
4523 IFS=$as_save_IFS
4524 if test -z "$ac_cv_path_FGREP"; then
4525 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4527 else
4528 ac_cv_path_FGREP=$FGREP
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4534 $as_echo "$ac_cv_path_FGREP" >&6; }
4535 FGREP="$ac_cv_path_FGREP"
4538 test -z "$GREP" && GREP=grep
4558 # Check whether --with-gnu-ld was given.
4559 if test "${with_gnu_ld+set}" = set; then :
4560 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4561 else
4562 with_gnu_ld=no
4565 ac_prog=ld
4566 if test "$GCC" = yes; then
4567 # Check if gcc -print-prog-name=ld gives a path.
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4569 $as_echo_n "checking for ld used by $CC... " >&6; }
4570 case $host in
4571 *-*-mingw*)
4572 # gcc leaves a trailing carriage return which upsets mingw
4573 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4575 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4576 esac
4577 case $ac_prog in
4578 # Accept absolute paths.
4579 [\\/]* | ?:[\\/]*)
4580 re_direlt='/[^/][^/]*/\.\./'
4581 # Canonicalize the pathname of ld
4582 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4583 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4584 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4585 done
4586 test -z "$LD" && LD="$ac_prog"
4589 # If it fails, then pretend we aren't using GCC.
4590 ac_prog=ld
4593 # If it is relative, then search for the first ld in PATH.
4594 with_gnu_ld=unknown
4596 esac
4597 elif test "$with_gnu_ld" = yes; then
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4599 $as_echo_n "checking for GNU ld... " >&6; }
4600 else
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4602 $as_echo_n "checking for non-GNU ld... " >&6; }
4604 if ${lt_cv_path_LD+:} false; then :
4605 $as_echo_n "(cached) " >&6
4606 else
4607 if test -z "$LD"; then
4608 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4609 for ac_dir in $PATH; do
4610 IFS="$lt_save_ifs"
4611 test -z "$ac_dir" && ac_dir=.
4612 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4613 lt_cv_path_LD="$ac_dir/$ac_prog"
4614 # Check to see if the program is GNU ld. I'd rather use --version,
4615 # but apparently some variants of GNU ld only accept -v.
4616 # Break only if it was the GNU/non-GNU ld that we prefer.
4617 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4618 *GNU* | *'with BFD'*)
4619 test "$with_gnu_ld" != no && break
4622 test "$with_gnu_ld" != yes && break
4624 esac
4626 done
4627 IFS="$lt_save_ifs"
4628 else
4629 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4633 LD="$lt_cv_path_LD"
4634 if test -n "$LD"; then
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4636 $as_echo "$LD" >&6; }
4637 else
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4639 $as_echo "no" >&6; }
4641 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4643 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4644 if ${lt_cv_prog_gnu_ld+:} false; then :
4645 $as_echo_n "(cached) " >&6
4646 else
4647 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4648 case `$LD -v 2>&1 </dev/null` in
4649 *GNU* | *'with BFD'*)
4650 lt_cv_prog_gnu_ld=yes
4653 lt_cv_prog_gnu_ld=no
4655 esac
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4658 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4659 with_gnu_ld=$lt_cv_prog_gnu_ld
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4670 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4671 if ${lt_cv_path_NM+:} false; then :
4672 $as_echo_n "(cached) " >&6
4673 else
4674 if test -n "$NM"; then
4675 # Let the user override the test.
4676 lt_cv_path_NM="$NM"
4677 else
4678 lt_nm_to_check="${ac_tool_prefix}nm"
4679 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4680 lt_nm_to_check="$lt_nm_to_check nm"
4682 for lt_tmp_nm in $lt_nm_to_check; do
4683 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4684 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4685 IFS="$lt_save_ifs"
4686 test -z "$ac_dir" && ac_dir=.
4687 tmp_nm="$ac_dir/$lt_tmp_nm"
4688 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4689 # Check to see if the nm accepts a BSD-compat flag.
4690 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4691 # nm: unknown option "B" ignored
4692 # Tru64's nm complains that /dev/null is an invalid object file
4693 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4694 */dev/null* | *'Invalid file or object type'*)
4695 lt_cv_path_NM="$tmp_nm -B"
4696 break
4699 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4700 */dev/null*)
4701 lt_cv_path_NM="$tmp_nm -p"
4702 break
4705 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4706 continue # so that we can try to find one that supports BSD flags
4708 esac
4710 esac
4712 done
4713 IFS="$lt_save_ifs"
4714 done
4715 : ${lt_cv_path_NM=no}
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4719 $as_echo "$lt_cv_path_NM" >&6; }
4720 if test "$lt_cv_path_NM" != "no"; then
4721 NM="$lt_cv_path_NM"
4722 else
4723 # Didn't find any BSD compatible name lister, look for dumpbin.
4724 if test -n "$ac_tool_prefix"; then
4725 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4727 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4728 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4730 $as_echo_n "checking for $ac_word... " >&6; }
4731 if ${ac_cv_prog_DUMPBIN+:} false; then :
4732 $as_echo_n "(cached) " >&6
4733 else
4734 if test -n "$DUMPBIN"; then
4735 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4736 else
4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 for as_dir in $PATH
4740 IFS=$as_save_IFS
4741 test -z "$as_dir" && as_dir=.
4742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4744 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4746 break 2
4748 done
4749 done
4750 IFS=$as_save_IFS
4754 DUMPBIN=$ac_cv_prog_DUMPBIN
4755 if test -n "$DUMPBIN"; then
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4757 $as_echo "$DUMPBIN" >&6; }
4758 else
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4760 $as_echo "no" >&6; }
4764 test -n "$DUMPBIN" && break
4765 done
4767 if test -z "$DUMPBIN"; then
4768 ac_ct_DUMPBIN=$DUMPBIN
4769 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4771 # Extract the first word of "$ac_prog", so it can be a program name with args.
4772 set dummy $ac_prog; ac_word=$2
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4774 $as_echo_n "checking for $ac_word... " >&6; }
4775 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4776 $as_echo_n "(cached) " >&6
4777 else
4778 if test -n "$ac_ct_DUMPBIN"; then
4779 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4780 else
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 for as_dir in $PATH
4784 IFS=$as_save_IFS
4785 test -z "$as_dir" && as_dir=.
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4788 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4790 break 2
4792 done
4793 done
4794 IFS=$as_save_IFS
4798 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4799 if test -n "$ac_ct_DUMPBIN"; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4801 $as_echo "$ac_ct_DUMPBIN" >&6; }
4802 else
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804 $as_echo "no" >&6; }
4808 test -n "$ac_ct_DUMPBIN" && break
4809 done
4811 if test "x$ac_ct_DUMPBIN" = x; then
4812 DUMPBIN=":"
4813 else
4814 case $cross_compiling:$ac_tool_warned in
4815 yes:)
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4818 ac_tool_warned=yes ;;
4819 esac
4820 DUMPBIN=$ac_ct_DUMPBIN
4825 if test "$DUMPBIN" != ":"; then
4826 NM="$DUMPBIN"
4829 test -z "$NM" && NM=nm
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4837 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4838 if ${lt_cv_nm_interface+:} false; then :
4839 $as_echo_n "(cached) " >&6
4840 else
4841 lt_cv_nm_interface="BSD nm"
4842 echo "int some_variable = 0;" > conftest.$ac_ext
4843 (eval echo "\"\$as_me:4843: $ac_compile\"" >&5)
4844 (eval "$ac_compile" 2>conftest.err)
4845 cat conftest.err >&5
4846 (eval echo "\"\$as_me:4846: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4847 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4848 cat conftest.err >&5
4849 (eval echo "\"\$as_me:4849: output\"" >&5)
4850 cat conftest.out >&5
4851 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4852 lt_cv_nm_interface="MS dumpbin"
4854 rm -f conftest*
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4857 $as_echo "$lt_cv_nm_interface" >&6; }
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4860 $as_echo_n "checking whether ln -s works... " >&6; }
4861 LN_S=$as_ln_s
4862 if test "$LN_S" = "ln -s"; then
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4864 $as_echo "yes" >&6; }
4865 else
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4867 $as_echo "no, using $LN_S" >&6; }
4870 # find the maximum length of command line arguments
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4872 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4873 if ${lt_cv_sys_max_cmd_len+:} false; then :
4874 $as_echo_n "(cached) " >&6
4875 else
4877 teststring="ABCD"
4879 case $build_os in
4880 msdosdjgpp*)
4881 # On DJGPP, this test can blow up pretty badly due to problems in libc
4882 # (any single argument exceeding 2000 bytes causes a buffer overrun
4883 # during glob expansion). Even if it were fixed, the result of this
4884 # check would be larger than it should be.
4885 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4888 gnu*)
4889 # Under GNU Hurd, this test is not required because there is
4890 # no limit to the length of command line arguments.
4891 # Libtool will interpret -1 as no limit whatsoever
4892 lt_cv_sys_max_cmd_len=-1;
4895 cygwin* | mingw* | cegcc*)
4896 # On Win9x/ME, this test blows up -- it succeeds, but takes
4897 # about 5 minutes as the teststring grows exponentially.
4898 # Worse, since 9x/ME are not pre-emptively multitasking,
4899 # you end up with a "frozen" computer, even though with patience
4900 # the test eventually succeeds (with a max line length of 256k).
4901 # Instead, let's just punt: use the minimum linelength reported by
4902 # all of the supported platforms: 8192 (on NT/2K/XP).
4903 lt_cv_sys_max_cmd_len=8192;
4906 amigaos*)
4907 # On AmigaOS with pdksh, this test takes hours, literally.
4908 # So we just punt and use a minimum line length of 8192.
4909 lt_cv_sys_max_cmd_len=8192;
4912 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4913 # This has been around since 386BSD, at least. Likely further.
4914 if test -x /sbin/sysctl; then
4915 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4916 elif test -x /usr/sbin/sysctl; then
4917 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4918 else
4919 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4921 # And add a safety zone
4922 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4923 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4926 interix*)
4927 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4928 lt_cv_sys_max_cmd_len=196608
4931 osf*)
4932 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4933 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4934 # nice to cause kernel panics so lets avoid the loop below.
4935 # First set a reasonable default.
4936 lt_cv_sys_max_cmd_len=16384
4938 if test -x /sbin/sysconfig; then
4939 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4940 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4941 esac
4944 sco3.2v5*)
4945 lt_cv_sys_max_cmd_len=102400
4947 sysv5* | sco5v6* | sysv4.2uw2*)
4948 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4949 if test -n "$kargmax"; then
4950 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4951 else
4952 lt_cv_sys_max_cmd_len=32768
4956 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4957 if test -n "$lt_cv_sys_max_cmd_len"; then
4958 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4959 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4960 else
4961 # Make teststring a little bigger before we do anything with it.
4962 # a 1K string should be a reasonable start.
4963 for i in 1 2 3 4 5 6 7 8 ; do
4964 teststring=$teststring$teststring
4965 done
4966 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4967 # If test is not a shell built-in, we'll probably end up computing a
4968 # maximum length that is only half of the actual maximum length, but
4969 # we can't tell.
4970 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4971 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4972 test $i != 17 # 1/2 MB should be enough
4974 i=`expr $i + 1`
4975 teststring=$teststring$teststring
4976 done
4977 # Only check the string length outside the loop.
4978 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4979 teststring=
4980 # Add a significant safety factor because C++ compilers can tack on
4981 # massive amounts of additional arguments before passing them to the
4982 # linker. It appears as though 1/2 is a usable value.
4983 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4986 esac
4990 if test -n $lt_cv_sys_max_cmd_len ; then
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4992 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4993 else
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4995 $as_echo "none" >&6; }
4997 max_cmd_len=$lt_cv_sys_max_cmd_len
5004 : ${CP="cp -f"}
5005 : ${MV="mv -f"}
5006 : ${RM="rm -f"}
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5009 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5010 # Try some XSI features
5011 xsi_shell=no
5012 ( _lt_dummy="a/b/c"
5013 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5014 = c,a/b,, \
5015 && eval 'test $(( 1 + 1 )) -eq 2 \
5016 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5017 && xsi_shell=yes
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5019 $as_echo "$xsi_shell" >&6; }
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5023 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5024 lt_shell_append=no
5025 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5026 >/dev/null 2>&1 \
5027 && lt_shell_append=yes
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5029 $as_echo "$lt_shell_append" >&6; }
5032 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5033 lt_unset=unset
5034 else
5035 lt_unset=false
5042 # test EBCDIC or ASCII
5043 case `echo X|tr X '\101'` in
5044 A) # ASCII based system
5045 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5046 lt_SP2NL='tr \040 \012'
5047 lt_NL2SP='tr \015\012 \040\040'
5049 *) # EBCDIC based system
5050 lt_SP2NL='tr \100 \n'
5051 lt_NL2SP='tr \r\n \100\100'
5053 esac
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5064 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5065 if ${lt_cv_ld_reload_flag+:} false; then :
5066 $as_echo_n "(cached) " >&6
5067 else
5068 lt_cv_ld_reload_flag='-r'
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5071 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5072 reload_flag=$lt_cv_ld_reload_flag
5073 case $reload_flag in
5074 "" | " "*) ;;
5075 *) reload_flag=" $reload_flag" ;;
5076 esac
5077 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5078 case $host_os in
5079 darwin*)
5080 if test "$GCC" = yes; then
5081 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5082 else
5083 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5086 esac
5096 if test -n "$ac_tool_prefix"; then
5097 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5098 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5100 $as_echo_n "checking for $ac_word... " >&6; }
5101 if ${ac_cv_prog_OBJDUMP+:} false; then :
5102 $as_echo_n "(cached) " >&6
5103 else
5104 if test -n "$OBJDUMP"; then
5105 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5106 else
5107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108 for as_dir in $PATH
5110 IFS=$as_save_IFS
5111 test -z "$as_dir" && as_dir=.
5112 for ac_exec_ext in '' $ac_executable_extensions; do
5113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5114 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5116 break 2
5118 done
5119 done
5120 IFS=$as_save_IFS
5124 OBJDUMP=$ac_cv_prog_OBJDUMP
5125 if test -n "$OBJDUMP"; then
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5127 $as_echo "$OBJDUMP" >&6; }
5128 else
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130 $as_echo "no" >&6; }
5135 if test -z "$ac_cv_prog_OBJDUMP"; then
5136 ac_ct_OBJDUMP=$OBJDUMP
5137 # Extract the first word of "objdump", so it can be a program name with args.
5138 set dummy objdump; ac_word=$2
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5140 $as_echo_n "checking for $ac_word... " >&6; }
5141 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5142 $as_echo_n "(cached) " >&6
5143 else
5144 if test -n "$ac_ct_OBJDUMP"; then
5145 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5146 else
5147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148 for as_dir in $PATH
5150 IFS=$as_save_IFS
5151 test -z "$as_dir" && as_dir=.
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5154 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5156 break 2
5158 done
5159 done
5160 IFS=$as_save_IFS
5164 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5165 if test -n "$ac_ct_OBJDUMP"; then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5167 $as_echo "$ac_ct_OBJDUMP" >&6; }
5168 else
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170 $as_echo "no" >&6; }
5173 if test "x$ac_ct_OBJDUMP" = x; then
5174 OBJDUMP="false"
5175 else
5176 case $cross_compiling:$ac_tool_warned in
5177 yes:)
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5180 ac_tool_warned=yes ;;
5181 esac
5182 OBJDUMP=$ac_ct_OBJDUMP
5184 else
5185 OBJDUMP="$ac_cv_prog_OBJDUMP"
5188 test -z "$OBJDUMP" && OBJDUMP=objdump
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5199 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5200 if ${lt_cv_deplibs_check_method+:} false; then :
5201 $as_echo_n "(cached) " >&6
5202 else
5203 lt_cv_file_magic_cmd='$MAGIC_CMD'
5204 lt_cv_file_magic_test_file=
5205 lt_cv_deplibs_check_method='unknown'
5206 # Need to set the preceding variable on all platforms that support
5207 # interlibrary dependencies.
5208 # 'none' -- dependencies not supported.
5209 # `unknown' -- same as none, but documents that we really don't know.
5210 # 'pass_all' -- all dependencies passed with no checks.
5211 # 'test_compile' -- check by making test program.
5212 # 'file_magic [[regex]]' -- check by looking for files in library path
5213 # which responds to the $file_magic_cmd with a given extended regex.
5214 # If you have `file' or equivalent on your system and you're not sure
5215 # whether `pass_all' will *always* work, you probably want this one.
5217 case $host_os in
5218 aix[4-9]*)
5219 lt_cv_deplibs_check_method=pass_all
5222 beos*)
5223 lt_cv_deplibs_check_method=pass_all
5226 bsdi[45]*)
5227 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5228 lt_cv_file_magic_cmd='/usr/bin/file -L'
5229 lt_cv_file_magic_test_file=/shlib/libc.so
5232 cygwin*)
5233 # func_win32_libid is a shell function defined in ltmain.sh
5234 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5235 lt_cv_file_magic_cmd='func_win32_libid'
5238 mingw* | pw32*)
5239 # Base MSYS/MinGW do not provide the 'file' command needed by
5240 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5241 # unless we find 'file', for example because we are cross-compiling.
5242 if ( file / ) >/dev/null 2>&1; then
5243 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5244 lt_cv_file_magic_cmd='func_win32_libid'
5245 else
5246 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5247 lt_cv_file_magic_cmd='$OBJDUMP -f'
5251 cegcc)
5252 # use the weaker test based on 'objdump'. See mingw*.
5253 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5254 lt_cv_file_magic_cmd='$OBJDUMP -f'
5257 darwin* | rhapsody*)
5258 lt_cv_deplibs_check_method=pass_all
5261 freebsd* | dragonfly*)
5262 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5263 case $host_cpu in
5264 i*86 )
5265 # Not sure whether the presence of OpenBSD here was a mistake.
5266 # Let's accept both of them until this is cleared up.
5267 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5268 lt_cv_file_magic_cmd=/usr/bin/file
5269 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5271 esac
5272 else
5273 lt_cv_deplibs_check_method=pass_all
5277 gnu*)
5278 lt_cv_deplibs_check_method=pass_all
5281 hpux10.20* | hpux11*)
5282 lt_cv_file_magic_cmd=/usr/bin/file
5283 case $host_cpu in
5284 ia64*)
5285 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5286 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5288 hppa*64*)
5289 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]'
5290 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5293 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5294 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5296 esac
5299 interix[3-9]*)
5300 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5301 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5304 irix5* | irix6* | nonstopux*)
5305 case $LD in
5306 *-32|*"-32 ") libmagic=32-bit;;
5307 *-n32|*"-n32 ") libmagic=N32;;
5308 *-64|*"-64 ") libmagic=64-bit;;
5309 *) libmagic=never-match;;
5310 esac
5311 lt_cv_deplibs_check_method=pass_all
5314 # This must be Linux ELF.
5315 linux* | k*bsd*-gnu)
5316 lt_cv_deplibs_check_method=pass_all
5319 netbsd*)
5320 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5321 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5322 else
5323 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5327 newos6*)
5328 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5329 lt_cv_file_magic_cmd=/usr/bin/file
5330 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5333 *nto* | *qnx*)
5334 lt_cv_deplibs_check_method=pass_all
5337 openbsd*)
5338 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5339 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5340 else
5341 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5345 osf3* | osf4* | osf5*)
5346 lt_cv_deplibs_check_method=pass_all
5349 rdos*)
5350 lt_cv_deplibs_check_method=pass_all
5353 solaris*)
5354 lt_cv_deplibs_check_method=pass_all
5357 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5358 lt_cv_deplibs_check_method=pass_all
5361 sysv4 | sysv4.3*)
5362 case $host_vendor in
5363 motorola)
5364 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]'
5365 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5367 ncr)
5368 lt_cv_deplibs_check_method=pass_all
5370 sequent)
5371 lt_cv_file_magic_cmd='/bin/file'
5372 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5374 sni)
5375 lt_cv_file_magic_cmd='/bin/file'
5376 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5377 lt_cv_file_magic_test_file=/lib/libc.so
5379 siemens)
5380 lt_cv_deplibs_check_method=pass_all
5383 lt_cv_deplibs_check_method=pass_all
5385 esac
5388 tpf*)
5389 lt_cv_deplibs_check_method=pass_all
5391 esac
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5395 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5396 file_magic_cmd=$lt_cv_file_magic_cmd
5397 deplibs_check_method=$lt_cv_deplibs_check_method
5398 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5411 if test -n "$ac_tool_prefix"; then
5412 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5413 set dummy ${ac_tool_prefix}ar; ac_word=$2
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5415 $as_echo_n "checking for $ac_word... " >&6; }
5416 if ${ac_cv_prog_AR+:} false; then :
5417 $as_echo_n "(cached) " >&6
5418 else
5419 if test -n "$AR"; then
5420 ac_cv_prog_AR="$AR" # Let the user override the test.
5421 else
5422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423 for as_dir in $PATH
5425 IFS=$as_save_IFS
5426 test -z "$as_dir" && as_dir=.
5427 for ac_exec_ext in '' $ac_executable_extensions; do
5428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5429 ac_cv_prog_AR="${ac_tool_prefix}ar"
5430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5431 break 2
5433 done
5434 done
5435 IFS=$as_save_IFS
5439 AR=$ac_cv_prog_AR
5440 if test -n "$AR"; then
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5442 $as_echo "$AR" >&6; }
5443 else
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445 $as_echo "no" >&6; }
5450 if test -z "$ac_cv_prog_AR"; then
5451 ac_ct_AR=$AR
5452 # Extract the first word of "ar", so it can be a program name with args.
5453 set dummy ar; ac_word=$2
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455 $as_echo_n "checking for $ac_word... " >&6; }
5456 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5457 $as_echo_n "(cached) " >&6
5458 else
5459 if test -n "$ac_ct_AR"; then
5460 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5461 else
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 for as_dir in $PATH
5465 IFS=$as_save_IFS
5466 test -z "$as_dir" && as_dir=.
5467 for ac_exec_ext in '' $ac_executable_extensions; do
5468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5469 ac_cv_prog_ac_ct_AR="ar"
5470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5471 break 2
5473 done
5474 done
5475 IFS=$as_save_IFS
5479 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5480 if test -n "$ac_ct_AR"; then
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5482 $as_echo "$ac_ct_AR" >&6; }
5483 else
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485 $as_echo "no" >&6; }
5488 if test "x$ac_ct_AR" = x; then
5489 AR="false"
5490 else
5491 case $cross_compiling:$ac_tool_warned in
5492 yes:)
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5495 ac_tool_warned=yes ;;
5496 esac
5497 AR=$ac_ct_AR
5499 else
5500 AR="$ac_cv_prog_AR"
5503 test -z "$AR" && AR=ar
5504 test -z "$AR_FLAGS" && AR_FLAGS=cru
5516 if test -n "$ac_tool_prefix"; then
5517 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5518 set dummy ${ac_tool_prefix}strip; ac_word=$2
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520 $as_echo_n "checking for $ac_word... " >&6; }
5521 if ${ac_cv_prog_STRIP+:} false; then :
5522 $as_echo_n "(cached) " >&6
5523 else
5524 if test -n "$STRIP"; then
5525 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5526 else
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH
5530 IFS=$as_save_IFS
5531 test -z "$as_dir" && as_dir=.
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5534 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 break 2
5538 done
5539 done
5540 IFS=$as_save_IFS
5544 STRIP=$ac_cv_prog_STRIP
5545 if test -n "$STRIP"; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5547 $as_echo "$STRIP" >&6; }
5548 else
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550 $as_echo "no" >&6; }
5555 if test -z "$ac_cv_prog_STRIP"; then
5556 ac_ct_STRIP=$STRIP
5557 # Extract the first word of "strip", so it can be a program name with args.
5558 set dummy strip; ac_word=$2
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5560 $as_echo_n "checking for $ac_word... " >&6; }
5561 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5562 $as_echo_n "(cached) " >&6
5563 else
5564 if test -n "$ac_ct_STRIP"; then
5565 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5566 else
5567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568 for as_dir in $PATH
5570 IFS=$as_save_IFS
5571 test -z "$as_dir" && as_dir=.
5572 for ac_exec_ext in '' $ac_executable_extensions; do
5573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5574 ac_cv_prog_ac_ct_STRIP="strip"
5575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5576 break 2
5578 done
5579 done
5580 IFS=$as_save_IFS
5584 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5585 if test -n "$ac_ct_STRIP"; then
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5587 $as_echo "$ac_ct_STRIP" >&6; }
5588 else
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5590 $as_echo "no" >&6; }
5593 if test "x$ac_ct_STRIP" = x; then
5594 STRIP=":"
5595 else
5596 case $cross_compiling:$ac_tool_warned in
5597 yes:)
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5600 ac_tool_warned=yes ;;
5601 esac
5602 STRIP=$ac_ct_STRIP
5604 else
5605 STRIP="$ac_cv_prog_STRIP"
5608 test -z "$STRIP" && STRIP=:
5615 if test -n "$ac_tool_prefix"; then
5616 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5617 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619 $as_echo_n "checking for $ac_word... " >&6; }
5620 if ${ac_cv_prog_RANLIB+:} false; then :
5621 $as_echo_n "(cached) " >&6
5622 else
5623 if test -n "$RANLIB"; then
5624 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5625 else
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 for as_dir in $PATH
5629 IFS=$as_save_IFS
5630 test -z "$as_dir" && as_dir=.
5631 for ac_exec_ext in '' $ac_executable_extensions; do
5632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5633 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5635 break 2
5637 done
5638 done
5639 IFS=$as_save_IFS
5643 RANLIB=$ac_cv_prog_RANLIB
5644 if test -n "$RANLIB"; then
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5646 $as_echo "$RANLIB" >&6; }
5647 else
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5654 if test -z "$ac_cv_prog_RANLIB"; then
5655 ac_ct_RANLIB=$RANLIB
5656 # Extract the first word of "ranlib", so it can be a program name with args.
5657 set dummy ranlib; ac_word=$2
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5659 $as_echo_n "checking for $ac_word... " >&6; }
5660 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5661 $as_echo_n "(cached) " >&6
5662 else
5663 if test -n "$ac_ct_RANLIB"; then
5664 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5665 else
5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 for as_dir in $PATH
5669 IFS=$as_save_IFS
5670 test -z "$as_dir" && as_dir=.
5671 for ac_exec_ext in '' $ac_executable_extensions; do
5672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5673 ac_cv_prog_ac_ct_RANLIB="ranlib"
5674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5675 break 2
5677 done
5678 done
5679 IFS=$as_save_IFS
5683 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5684 if test -n "$ac_ct_RANLIB"; then
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5686 $as_echo "$ac_ct_RANLIB" >&6; }
5687 else
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689 $as_echo "no" >&6; }
5692 if test "x$ac_ct_RANLIB" = x; then
5693 RANLIB=":"
5694 else
5695 case $cross_compiling:$ac_tool_warned in
5696 yes:)
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5699 ac_tool_warned=yes ;;
5700 esac
5701 RANLIB=$ac_ct_RANLIB
5703 else
5704 RANLIB="$ac_cv_prog_RANLIB"
5707 test -z "$RANLIB" && RANLIB=:
5714 # Determine commands to create old-style static archives.
5715 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5716 old_postinstall_cmds='chmod 644 $oldlib'
5717 old_postuninstall_cmds=
5719 if test -n "$RANLIB"; then
5720 case $host_os in
5721 openbsd*)
5722 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5725 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5727 esac
5728 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5764 # If no C compiler was specified, use CC.
5765 LTCC=${LTCC-"$CC"}
5767 # If no C compiler flags were specified, use CFLAGS.
5768 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5770 # Allow CC to be a program name with arguments.
5771 compiler=$CC
5774 # Check for command to grab the raw symbol name followed by C symbol from nm.
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5776 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5777 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5778 $as_echo_n "(cached) " >&6
5779 else
5781 # These are sane defaults that work on at least a few old systems.
5782 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5784 # Character class describing NM global symbol codes.
5785 symcode='[BCDEGRST]'
5787 # Regexp to match symbols that can be accessed directly from C.
5788 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5790 # Define system-specific variables.
5791 case $host_os in
5792 aix*)
5793 symcode='[BCDT]'
5795 cygwin* | mingw* | pw32* | cegcc*)
5796 symcode='[ABCDGISTW]'
5798 hpux*)
5799 if test "$host_cpu" = ia64; then
5800 symcode='[ABCDEGRST]'
5803 irix* | nonstopux*)
5804 symcode='[BCDEGRST]'
5806 osf*)
5807 symcode='[BCDEGQRST]'
5809 solaris*)
5810 symcode='[BDRT]'
5812 sco3.2v5*)
5813 symcode='[DT]'
5815 sysv4.2uw2*)
5816 symcode='[DT]'
5818 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5819 symcode='[ABDT]'
5821 sysv4)
5822 symcode='[DFNSTU]'
5824 esac
5826 # If we're using GNU nm, then use its standard symbol codes.
5827 case `$NM -V 2>&1` in
5828 *GNU* | *'with BFD'*)
5829 symcode='[ABCDGIRSTW]' ;;
5830 esac
5832 # Transform an extracted symbol line into a proper C declaration.
5833 # Some systems (esp. on ia64) link data and code symbols differently,
5834 # so use this general approach.
5835 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5837 # Transform an extracted symbol line into symbol name and symbol address
5838 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5839 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'"
5841 # Handle CRLF in mingw tool chain
5842 opt_cr=
5843 case $build_os in
5844 mingw*)
5845 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5847 esac
5849 # Try without a prefix underscore, then with it.
5850 for ac_symprfx in "" "_"; do
5852 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5853 symxfrm="\\1 $ac_symprfx\\2 \\2"
5855 # Write the raw and C identifiers.
5856 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5857 # Fake it for dumpbin and say T for any non-static function
5858 # and D for any global variable.
5859 # Also find C++ and __fastcall symbols from MSVC++,
5860 # which start with @ or ?.
5861 lt_cv_sys_global_symbol_pipe="$AWK '"\
5862 " {last_section=section; section=\$ 3};"\
5863 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5864 " \$ 0!~/External *\|/{next};"\
5865 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5866 " {if(hide[section]) next};"\
5867 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5868 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5869 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5870 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5871 " ' prfx=^$ac_symprfx"
5872 else
5873 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5876 # Check to see that the pipe works correctly.
5877 pipe_works=no
5879 rm -f conftest*
5880 cat > conftest.$ac_ext <<_LT_EOF
5881 #ifdef __cplusplus
5882 extern "C" {
5883 #endif
5884 char nm_test_var;
5885 void nm_test_func(void);
5886 void nm_test_func(void){}
5887 #ifdef __cplusplus
5889 #endif
5890 int main(){nm_test_var='a';nm_test_func();return(0);}
5891 _LT_EOF
5893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5894 (eval $ac_compile) 2>&5
5895 ac_status=$?
5896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5897 test $ac_status = 0; }; then
5898 # Now try to grab the symbols.
5899 nlist=conftest.nm
5900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5901 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5902 ac_status=$?
5903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5904 test $ac_status = 0; } && test -s "$nlist"; then
5905 # Try sorting and uniquifying the output.
5906 if sort "$nlist" | uniq > "$nlist"T; then
5907 mv -f "$nlist"T "$nlist"
5908 else
5909 rm -f "$nlist"T
5912 # Make sure that we snagged all the symbols we need.
5913 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5914 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5915 cat <<_LT_EOF > conftest.$ac_ext
5916 #ifdef __cplusplus
5917 extern "C" {
5918 #endif
5920 _LT_EOF
5921 # Now generate the symbol file.
5922 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5924 cat <<_LT_EOF >> conftest.$ac_ext
5926 /* The mapping between symbol names and symbols. */
5927 const struct {
5928 const char *name;
5929 void *address;
5931 lt__PROGRAM__LTX_preloaded_symbols[] =
5933 { "@PROGRAM@", (void *) 0 },
5934 _LT_EOF
5935 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5936 cat <<\_LT_EOF >> conftest.$ac_ext
5937 {0, (void *) 0}
5940 /* This works around a problem in FreeBSD linker */
5941 #ifdef FREEBSD_WORKAROUND
5942 static const void *lt_preloaded_setup() {
5943 return lt__PROGRAM__LTX_preloaded_symbols;
5945 #endif
5947 #ifdef __cplusplus
5949 #endif
5950 _LT_EOF
5951 # Now try linking the two files.
5952 mv conftest.$ac_objext conftstm.$ac_objext
5953 lt_save_LIBS="$LIBS"
5954 lt_save_CFLAGS="$CFLAGS"
5955 LIBS="conftstm.$ac_objext"
5956 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5957 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5958 (eval $ac_link) 2>&5
5959 ac_status=$?
5960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5961 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5962 pipe_works=yes
5964 LIBS="$lt_save_LIBS"
5965 CFLAGS="$lt_save_CFLAGS"
5966 else
5967 echo "cannot find nm_test_func in $nlist" >&5
5969 else
5970 echo "cannot find nm_test_var in $nlist" >&5
5972 else
5973 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5975 else
5976 echo "$progname: failed program was:" >&5
5977 cat conftest.$ac_ext >&5
5979 rm -rf conftest* conftst*
5981 # Do not use the global_symbol_pipe unless it works.
5982 if test "$pipe_works" = yes; then
5983 break
5984 else
5985 lt_cv_sys_global_symbol_pipe=
5987 done
5991 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5992 lt_cv_sys_global_symbol_to_cdecl=
5994 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5996 $as_echo "failed" >&6; }
5997 else
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5999 $as_echo "ok" >&6; }
6024 # Check whether --enable-libtool-lock was given.
6025 if test "${enable_libtool_lock+set}" = set; then :
6026 enableval=$enable_libtool_lock;
6029 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6031 # Some flags need to be propagated to the compiler or linker for good
6032 # libtool support.
6033 case $host in
6034 ia64-*-hpux*)
6035 # Find out which ABI we are using.
6036 echo 'int i;' > conftest.$ac_ext
6037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6038 (eval $ac_compile) 2>&5
6039 ac_status=$?
6040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6041 test $ac_status = 0; }; then
6042 case `/usr/bin/file conftest.$ac_objext` in
6043 *ELF-32*)
6044 HPUX_IA64_MODE="32"
6046 *ELF-64*)
6047 HPUX_IA64_MODE="64"
6049 esac
6051 rm -rf conftest*
6053 *-*-irix6*)
6054 # Find out which ABI we are using.
6055 echo '#line 6055 "configure"' > conftest.$ac_ext
6056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6057 (eval $ac_compile) 2>&5
6058 ac_status=$?
6059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6060 test $ac_status = 0; }; then
6061 if test "$lt_cv_prog_gnu_ld" = yes; then
6062 case `/usr/bin/file conftest.$ac_objext` in
6063 *32-bit*)
6064 LD="${LD-ld} -melf32bsmip"
6066 *N32*)
6067 LD="${LD-ld} -melf32bmipn32"
6069 *64-bit*)
6070 LD="${LD-ld} -melf64bmip"
6072 esac
6073 else
6074 case `/usr/bin/file conftest.$ac_objext` in
6075 *32-bit*)
6076 LD="${LD-ld} -32"
6078 *N32*)
6079 LD="${LD-ld} -n32"
6081 *64-bit*)
6082 LD="${LD-ld} -64"
6084 esac
6087 rm -rf conftest*
6090 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6091 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6092 # Find out which ABI we are using.
6093 echo 'int i;' > conftest.$ac_ext
6094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6095 (eval $ac_compile) 2>&5
6096 ac_status=$?
6097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6098 test $ac_status = 0; }; then
6099 case `/usr/bin/file conftest.o` in
6100 *32-bit*)
6101 case $host in
6102 x86_64-*kfreebsd*-gnu)
6103 LD="${LD-ld} -m elf_i386_fbsd"
6105 x86_64-*linux*)
6106 LD="${LD-ld} -m elf_i386"
6108 ppc64-*linux*|powerpc64-*linux*)
6109 LD="${LD-ld} -m elf32ppclinux"
6111 s390x-*linux*)
6112 LD="${LD-ld} -m elf_s390"
6114 sparc64-*linux*)
6115 LD="${LD-ld} -m elf32_sparc"
6117 esac
6119 *64-bit*)
6120 case $host in
6121 x86_64-*kfreebsd*-gnu)
6122 LD="${LD-ld} -m elf_x86_64_fbsd"
6124 x86_64-*linux*)
6125 LD="${LD-ld} -m elf_x86_64"
6127 ppc*-*linux*|powerpc*-*linux*)
6128 LD="${LD-ld} -m elf64ppc"
6130 s390*-*linux*|s390*-*tpf*)
6131 LD="${LD-ld} -m elf64_s390"
6133 sparc*-*linux*)
6134 LD="${LD-ld} -m elf64_sparc"
6136 esac
6138 esac
6140 rm -rf conftest*
6143 *-*-sco3.2v5*)
6144 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6145 SAVE_CFLAGS="$CFLAGS"
6146 CFLAGS="$CFLAGS -belf"
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6148 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6149 if ${lt_cv_cc_needs_belf+:} false; then :
6150 $as_echo_n "(cached) " >&6
6151 else
6152 ac_ext=c
6153 ac_cpp='$CPP $CPPFLAGS'
6154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6159 /* end confdefs.h. */
6162 main ()
6166 return 0;
6168 _ACEOF
6169 if ac_fn_c_try_link "$LINENO"; then :
6170 lt_cv_cc_needs_belf=yes
6171 else
6172 lt_cv_cc_needs_belf=no
6174 rm -f core conftest.err conftest.$ac_objext \
6175 conftest$ac_exeext conftest.$ac_ext
6176 ac_ext=c
6177 ac_cpp='$CPP $CPPFLAGS'
6178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6184 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6185 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6186 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6187 CFLAGS="$SAVE_CFLAGS"
6190 sparc*-*solaris*)
6191 # Find out which ABI we are using.
6192 echo 'int i;' > conftest.$ac_ext
6193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6194 (eval $ac_compile) 2>&5
6195 ac_status=$?
6196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6197 test $ac_status = 0; }; then
6198 case `/usr/bin/file conftest.o` in
6199 *64-bit*)
6200 case $lt_cv_prog_gnu_ld in
6201 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6203 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6204 LD="${LD-ld} -64"
6207 esac
6209 esac
6211 rm -rf conftest*
6213 esac
6215 need_locks="$enable_libtool_lock"
6218 case $host_os in
6219 rhapsody* | darwin*)
6220 if test -n "$ac_tool_prefix"; then
6221 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6222 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6224 $as_echo_n "checking for $ac_word... " >&6; }
6225 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6226 $as_echo_n "(cached) " >&6
6227 else
6228 if test -n "$DSYMUTIL"; then
6229 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6230 else
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 for as_dir in $PATH
6234 IFS=$as_save_IFS
6235 test -z "$as_dir" && as_dir=.
6236 for ac_exec_ext in '' $ac_executable_extensions; do
6237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6238 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 break 2
6242 done
6243 done
6244 IFS=$as_save_IFS
6248 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6249 if test -n "$DSYMUTIL"; then
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6251 $as_echo "$DSYMUTIL" >&6; }
6252 else
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6254 $as_echo "no" >&6; }
6259 if test -z "$ac_cv_prog_DSYMUTIL"; then
6260 ac_ct_DSYMUTIL=$DSYMUTIL
6261 # Extract the first word of "dsymutil", so it can be a program name with args.
6262 set dummy dsymutil; ac_word=$2
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6264 $as_echo_n "checking for $ac_word... " >&6; }
6265 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6266 $as_echo_n "(cached) " >&6
6267 else
6268 if test -n "$ac_ct_DSYMUTIL"; then
6269 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6270 else
6271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272 for as_dir in $PATH
6274 IFS=$as_save_IFS
6275 test -z "$as_dir" && as_dir=.
6276 for ac_exec_ext in '' $ac_executable_extensions; do
6277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6278 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6280 break 2
6282 done
6283 done
6284 IFS=$as_save_IFS
6288 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6289 if test -n "$ac_ct_DSYMUTIL"; then
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6291 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6292 else
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6294 $as_echo "no" >&6; }
6297 if test "x$ac_ct_DSYMUTIL" = x; then
6298 DSYMUTIL=":"
6299 else
6300 case $cross_compiling:$ac_tool_warned in
6301 yes:)
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6304 ac_tool_warned=yes ;;
6305 esac
6306 DSYMUTIL=$ac_ct_DSYMUTIL
6308 else
6309 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6312 if test -n "$ac_tool_prefix"; then
6313 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6314 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6316 $as_echo_n "checking for $ac_word... " >&6; }
6317 if ${ac_cv_prog_NMEDIT+:} false; then :
6318 $as_echo_n "(cached) " >&6
6319 else
6320 if test -n "$NMEDIT"; then
6321 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6322 else
6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 for as_dir in $PATH
6326 IFS=$as_save_IFS
6327 test -z "$as_dir" && as_dir=.
6328 for ac_exec_ext in '' $ac_executable_extensions; do
6329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6330 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6332 break 2
6334 done
6335 done
6336 IFS=$as_save_IFS
6340 NMEDIT=$ac_cv_prog_NMEDIT
6341 if test -n "$NMEDIT"; then
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6343 $as_echo "$NMEDIT" >&6; }
6344 else
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346 $as_echo "no" >&6; }
6351 if test -z "$ac_cv_prog_NMEDIT"; then
6352 ac_ct_NMEDIT=$NMEDIT
6353 # Extract the first word of "nmedit", so it can be a program name with args.
6354 set dummy nmedit; ac_word=$2
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6356 $as_echo_n "checking for $ac_word... " >&6; }
6357 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6358 $as_echo_n "(cached) " >&6
6359 else
6360 if test -n "$ac_ct_NMEDIT"; then
6361 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6362 else
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 for as_dir in $PATH
6366 IFS=$as_save_IFS
6367 test -z "$as_dir" && as_dir=.
6368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6370 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6372 break 2
6374 done
6375 done
6376 IFS=$as_save_IFS
6380 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6381 if test -n "$ac_ct_NMEDIT"; then
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6383 $as_echo "$ac_ct_NMEDIT" >&6; }
6384 else
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386 $as_echo "no" >&6; }
6389 if test "x$ac_ct_NMEDIT" = x; then
6390 NMEDIT=":"
6391 else
6392 case $cross_compiling:$ac_tool_warned in
6393 yes:)
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6396 ac_tool_warned=yes ;;
6397 esac
6398 NMEDIT=$ac_ct_NMEDIT
6400 else
6401 NMEDIT="$ac_cv_prog_NMEDIT"
6404 if test -n "$ac_tool_prefix"; then
6405 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6406 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6408 $as_echo_n "checking for $ac_word... " >&6; }
6409 if ${ac_cv_prog_LIPO+:} false; then :
6410 $as_echo_n "(cached) " >&6
6411 else
6412 if test -n "$LIPO"; then
6413 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6414 else
6415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416 for as_dir in $PATH
6418 IFS=$as_save_IFS
6419 test -z "$as_dir" && as_dir=.
6420 for ac_exec_ext in '' $ac_executable_extensions; do
6421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6422 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6424 break 2
6426 done
6427 done
6428 IFS=$as_save_IFS
6432 LIPO=$ac_cv_prog_LIPO
6433 if test -n "$LIPO"; then
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6435 $as_echo "$LIPO" >&6; }
6436 else
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6438 $as_echo "no" >&6; }
6443 if test -z "$ac_cv_prog_LIPO"; then
6444 ac_ct_LIPO=$LIPO
6445 # Extract the first word of "lipo", so it can be a program name with args.
6446 set dummy lipo; ac_word=$2
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6448 $as_echo_n "checking for $ac_word... " >&6; }
6449 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6450 $as_echo_n "(cached) " >&6
6451 else
6452 if test -n "$ac_ct_LIPO"; then
6453 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6454 else
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH
6458 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6462 ac_cv_prog_ac_ct_LIPO="lipo"
6463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 break 2
6466 done
6467 done
6468 IFS=$as_save_IFS
6472 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6473 if test -n "$ac_ct_LIPO"; then
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6475 $as_echo "$ac_ct_LIPO" >&6; }
6476 else
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6478 $as_echo "no" >&6; }
6481 if test "x$ac_ct_LIPO" = x; then
6482 LIPO=":"
6483 else
6484 case $cross_compiling:$ac_tool_warned in
6485 yes:)
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6488 ac_tool_warned=yes ;;
6489 esac
6490 LIPO=$ac_ct_LIPO
6492 else
6493 LIPO="$ac_cv_prog_LIPO"
6496 if test -n "$ac_tool_prefix"; then
6497 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6498 set dummy ${ac_tool_prefix}otool; ac_word=$2
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500 $as_echo_n "checking for $ac_word... " >&6; }
6501 if ${ac_cv_prog_OTOOL+:} false; then :
6502 $as_echo_n "(cached) " >&6
6503 else
6504 if test -n "$OTOOL"; then
6505 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6506 else
6507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 for as_dir in $PATH
6510 IFS=$as_save_IFS
6511 test -z "$as_dir" && as_dir=.
6512 for ac_exec_ext in '' $ac_executable_extensions; do
6513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6514 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6516 break 2
6518 done
6519 done
6520 IFS=$as_save_IFS
6524 OTOOL=$ac_cv_prog_OTOOL
6525 if test -n "$OTOOL"; then
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6527 $as_echo "$OTOOL" >&6; }
6528 else
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530 $as_echo "no" >&6; }
6535 if test -z "$ac_cv_prog_OTOOL"; then
6536 ac_ct_OTOOL=$OTOOL
6537 # Extract the first word of "otool", so it can be a program name with args.
6538 set dummy otool; ac_word=$2
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6540 $as_echo_n "checking for $ac_word... " >&6; }
6541 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6542 $as_echo_n "(cached) " >&6
6543 else
6544 if test -n "$ac_ct_OTOOL"; then
6545 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6546 else
6547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548 for as_dir in $PATH
6550 IFS=$as_save_IFS
6551 test -z "$as_dir" && as_dir=.
6552 for ac_exec_ext in '' $ac_executable_extensions; do
6553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6554 ac_cv_prog_ac_ct_OTOOL="otool"
6555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6556 break 2
6558 done
6559 done
6560 IFS=$as_save_IFS
6564 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6565 if test -n "$ac_ct_OTOOL"; then
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6567 $as_echo "$ac_ct_OTOOL" >&6; }
6568 else
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570 $as_echo "no" >&6; }
6573 if test "x$ac_ct_OTOOL" = x; then
6574 OTOOL=":"
6575 else
6576 case $cross_compiling:$ac_tool_warned in
6577 yes:)
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6580 ac_tool_warned=yes ;;
6581 esac
6582 OTOOL=$ac_ct_OTOOL
6584 else
6585 OTOOL="$ac_cv_prog_OTOOL"
6588 if test -n "$ac_tool_prefix"; then
6589 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6590 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6592 $as_echo_n "checking for $ac_word... " >&6; }
6593 if ${ac_cv_prog_OTOOL64+:} false; then :
6594 $as_echo_n "(cached) " >&6
6595 else
6596 if test -n "$OTOOL64"; then
6597 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6598 else
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 for as_dir in $PATH
6602 IFS=$as_save_IFS
6603 test -z "$as_dir" && as_dir=.
6604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6606 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6608 break 2
6610 done
6611 done
6612 IFS=$as_save_IFS
6616 OTOOL64=$ac_cv_prog_OTOOL64
6617 if test -n "$OTOOL64"; then
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6619 $as_echo "$OTOOL64" >&6; }
6620 else
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6622 $as_echo "no" >&6; }
6627 if test -z "$ac_cv_prog_OTOOL64"; then
6628 ac_ct_OTOOL64=$OTOOL64
6629 # Extract the first word of "otool64", so it can be a program name with args.
6630 set dummy otool64; ac_word=$2
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6632 $as_echo_n "checking for $ac_word... " >&6; }
6633 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6634 $as_echo_n "(cached) " >&6
6635 else
6636 if test -n "$ac_ct_OTOOL64"; then
6637 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6638 else
6639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640 for as_dir in $PATH
6642 IFS=$as_save_IFS
6643 test -z "$as_dir" && as_dir=.
6644 for ac_exec_ext in '' $ac_executable_extensions; do
6645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6646 ac_cv_prog_ac_ct_OTOOL64="otool64"
6647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6648 break 2
6650 done
6651 done
6652 IFS=$as_save_IFS
6656 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6657 if test -n "$ac_ct_OTOOL64"; then
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6659 $as_echo "$ac_ct_OTOOL64" >&6; }
6660 else
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6662 $as_echo "no" >&6; }
6665 if test "x$ac_ct_OTOOL64" = x; then
6666 OTOOL64=":"
6667 else
6668 case $cross_compiling:$ac_tool_warned in
6669 yes:)
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6672 ac_tool_warned=yes ;;
6673 esac
6674 OTOOL64=$ac_ct_OTOOL64
6676 else
6677 OTOOL64="$ac_cv_prog_OTOOL64"
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6707 $as_echo_n "checking for -single_module linker flag... " >&6; }
6708 if ${lt_cv_apple_cc_single_mod+:} false; then :
6709 $as_echo_n "(cached) " >&6
6710 else
6711 lt_cv_apple_cc_single_mod=no
6712 if test -z "${LT_MULTI_MODULE}"; then
6713 # By default we will add the -single_module flag. You can override
6714 # by either setting the environment variable LT_MULTI_MODULE
6715 # non-empty at configure time, or by adding -multi_module to the
6716 # link flags.
6717 rm -rf libconftest.dylib*
6718 echo "int foo(void){return 1;}" > conftest.c
6719 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6720 -dynamiclib -Wl,-single_module conftest.c" >&5
6721 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6722 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6723 _lt_result=$?
6724 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6725 lt_cv_apple_cc_single_mod=yes
6726 else
6727 cat conftest.err >&5
6729 rm -rf libconftest.dylib*
6730 rm -f conftest.*
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6734 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6736 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6737 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6738 $as_echo_n "(cached) " >&6
6739 else
6740 lt_cv_ld_exported_symbols_list=no
6741 save_LDFLAGS=$LDFLAGS
6742 echo "_main" > conftest.sym
6743 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745 /* end confdefs.h. */
6748 main ()
6752 return 0;
6754 _ACEOF
6755 if ac_fn_c_try_link "$LINENO"; then :
6756 lt_cv_ld_exported_symbols_list=yes
6757 else
6758 lt_cv_ld_exported_symbols_list=no
6760 rm -f core conftest.err conftest.$ac_objext \
6761 conftest$ac_exeext conftest.$ac_ext
6762 LDFLAGS="$save_LDFLAGS"
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6766 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6767 case $host_os in
6768 rhapsody* | darwin1.[012])
6769 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6770 darwin1.*)
6771 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6772 darwin*) # darwin 5.x on
6773 # if running on 10.5 or later, the deployment target defaults
6774 # to the OS version, if on x86, and 10.4, the deployment
6775 # target defaults to 10.4. Don't you love it?
6776 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6777 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6778 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6779 10.[012]*)
6780 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6781 10.*)
6782 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6783 esac
6785 esac
6786 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6787 _lt_dar_single_mod='$single_module'
6789 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6790 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6791 else
6792 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6794 if test "$DSYMUTIL" != ":"; then
6795 _lt_dsymutil='~$DSYMUTIL $lib || :'
6796 else
6797 _lt_dsymutil=
6800 esac
6802 ac_ext=c
6803 ac_cpp='$CPP $CPPFLAGS'
6804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6808 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6809 # On Suns, sometimes $CPP names a directory.
6810 if test -n "$CPP" && test -d "$CPP"; then
6811 CPP=
6813 if test -z "$CPP"; then
6814 if ${ac_cv_prog_CPP+:} false; then :
6815 $as_echo_n "(cached) " >&6
6816 else
6817 # Double quotes because CPP needs to be expanded
6818 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6820 ac_preproc_ok=false
6821 for ac_c_preproc_warn_flag in '' yes
6823 # Use a header file that comes with gcc, so configuring glibc
6824 # with a fresh cross-compiler works.
6825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6826 # <limits.h> exists even on freestanding compilers.
6827 # On the NeXT, cc -E runs the code through the compiler's parser,
6828 # not just through cpp. "Syntax error" is here to catch this case.
6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6831 #ifdef __STDC__
6832 # include <limits.h>
6833 #else
6834 # include <assert.h>
6835 #endif
6836 Syntax error
6837 _ACEOF
6838 if ac_fn_c_try_cpp "$LINENO"; then :
6840 else
6841 # Broken: fails on valid input.
6842 continue
6844 rm -f conftest.err conftest.i conftest.$ac_ext
6846 # OK, works on sane cases. Now check whether nonexistent headers
6847 # can be detected and how.
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6850 #include <ac_nonexistent.h>
6851 _ACEOF
6852 if ac_fn_c_try_cpp "$LINENO"; then :
6853 # Broken: success on invalid input.
6854 continue
6855 else
6856 # Passes both tests.
6857 ac_preproc_ok=:
6858 break
6860 rm -f conftest.err conftest.i conftest.$ac_ext
6862 done
6863 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6864 rm -f conftest.i conftest.err conftest.$ac_ext
6865 if $ac_preproc_ok; then :
6866 break
6869 done
6870 ac_cv_prog_CPP=$CPP
6873 CPP=$ac_cv_prog_CPP
6874 else
6875 ac_cv_prog_CPP=$CPP
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6878 $as_echo "$CPP" >&6; }
6879 ac_preproc_ok=false
6880 for ac_c_preproc_warn_flag in '' yes
6882 # Use a header file that comes with gcc, so configuring glibc
6883 # with a fresh cross-compiler works.
6884 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6885 # <limits.h> exists even on freestanding compilers.
6886 # On the NeXT, cc -E runs the code through the compiler's parser,
6887 # not just through cpp. "Syntax error" is here to catch this case.
6888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h. */
6890 #ifdef __STDC__
6891 # include <limits.h>
6892 #else
6893 # include <assert.h>
6894 #endif
6895 Syntax error
6896 _ACEOF
6897 if ac_fn_c_try_cpp "$LINENO"; then :
6899 else
6900 # Broken: fails on valid input.
6901 continue
6903 rm -f conftest.err conftest.i conftest.$ac_ext
6905 # OK, works on sane cases. Now check whether nonexistent headers
6906 # can be detected and how.
6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6908 /* end confdefs.h. */
6909 #include <ac_nonexistent.h>
6910 _ACEOF
6911 if ac_fn_c_try_cpp "$LINENO"; then :
6912 # Broken: success on invalid input.
6913 continue
6914 else
6915 # Passes both tests.
6916 ac_preproc_ok=:
6917 break
6919 rm -f conftest.err conftest.i conftest.$ac_ext
6921 done
6922 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6923 rm -f conftest.i conftest.err conftest.$ac_ext
6924 if $ac_preproc_ok; then :
6926 else
6927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6929 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6930 See \`config.log' for more details" "$LINENO" 5; }
6933 ac_ext=c
6934 ac_cpp='$CPP $CPPFLAGS'
6935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6941 $as_echo_n "checking for ANSI C header files... " >&6; }
6942 if ${ac_cv_header_stdc+:} false; then :
6943 $as_echo_n "(cached) " >&6
6944 else
6945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6946 /* end confdefs.h. */
6947 #include <stdlib.h>
6948 #include <stdarg.h>
6949 #include <string.h>
6950 #include <float.h>
6953 main ()
6957 return 0;
6959 _ACEOF
6960 if ac_fn_c_try_compile "$LINENO"; then :
6961 ac_cv_header_stdc=yes
6962 else
6963 ac_cv_header_stdc=no
6965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6967 if test $ac_cv_header_stdc = yes; then
6968 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h. */
6971 #include <string.h>
6973 _ACEOF
6974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6975 $EGREP "memchr" >/dev/null 2>&1; then :
6977 else
6978 ac_cv_header_stdc=no
6980 rm -f conftest*
6984 if test $ac_cv_header_stdc = yes; then
6985 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6987 /* end confdefs.h. */
6988 #include <stdlib.h>
6990 _ACEOF
6991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6992 $EGREP "free" >/dev/null 2>&1; then :
6994 else
6995 ac_cv_header_stdc=no
6997 rm -f conftest*
7001 if test $ac_cv_header_stdc = yes; then
7002 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7003 if test "$cross_compiling" = yes; then :
7005 else
7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007 /* end confdefs.h. */
7008 #include <ctype.h>
7009 #include <stdlib.h>
7010 #if ((' ' & 0x0FF) == 0x020)
7011 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7012 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7013 #else
7014 # define ISLOWER(c) \
7015 (('a' <= (c) && (c) <= 'i') \
7016 || ('j' <= (c) && (c) <= 'r') \
7017 || ('s' <= (c) && (c) <= 'z'))
7018 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7019 #endif
7021 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7023 main ()
7025 int i;
7026 for (i = 0; i < 256; i++)
7027 if (XOR (islower (i), ISLOWER (i))
7028 || toupper (i) != TOUPPER (i))
7029 return 2;
7030 return 0;
7032 _ACEOF
7033 if ac_fn_c_try_run "$LINENO"; then :
7035 else
7036 ac_cv_header_stdc=no
7038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7039 conftest.$ac_objext conftest.beam conftest.$ac_ext
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7045 $as_echo "$ac_cv_header_stdc" >&6; }
7046 if test $ac_cv_header_stdc = yes; then
7048 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7052 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7053 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7054 inttypes.h stdint.h unistd.h
7055 do :
7056 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7057 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7059 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7060 cat >>confdefs.h <<_ACEOF
7061 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7062 _ACEOF
7066 done
7069 for ac_header in dlfcn.h
7070 do :
7071 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7073 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7074 cat >>confdefs.h <<_ACEOF
7075 #define HAVE_DLFCN_H 1
7076 _ACEOF
7080 done
7084 # Set options
7088 enable_dlopen=no
7091 enable_win32_dll=no
7094 # Check whether --enable-shared was given.
7095 if test "${enable_shared+set}" = set; then :
7096 enableval=$enable_shared; p=${PACKAGE-default}
7097 case $enableval in
7098 yes) enable_shared=yes ;;
7099 no) enable_shared=no ;;
7101 enable_shared=no
7102 # Look at the argument we got. We use all the common list separators.
7103 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7104 for pkg in $enableval; do
7105 IFS="$lt_save_ifs"
7106 if test "X$pkg" = "X$p"; then
7107 enable_shared=yes
7109 done
7110 IFS="$lt_save_ifs"
7112 esac
7113 else
7114 enable_shared=yes
7125 # Check whether --enable-static was given.
7126 if test "${enable_static+set}" = set; then :
7127 enableval=$enable_static; p=${PACKAGE-default}
7128 case $enableval in
7129 yes) enable_static=yes ;;
7130 no) enable_static=no ;;
7132 enable_static=no
7133 # Look at the argument we got. We use all the common list separators.
7134 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7135 for pkg in $enableval; do
7136 IFS="$lt_save_ifs"
7137 if test "X$pkg" = "X$p"; then
7138 enable_static=yes
7140 done
7141 IFS="$lt_save_ifs"
7143 esac
7144 else
7145 enable_static=yes
7157 # Check whether --with-pic was given.
7158 if test "${with_pic+set}" = set; then :
7159 withval=$with_pic; pic_mode="$withval"
7160 else
7161 pic_mode=default
7165 test -z "$pic_mode" && pic_mode=default
7173 # Check whether --enable-fast-install was given.
7174 if test "${enable_fast_install+set}" = set; then :
7175 enableval=$enable_fast_install; p=${PACKAGE-default}
7176 case $enableval in
7177 yes) enable_fast_install=yes ;;
7178 no) enable_fast_install=no ;;
7180 enable_fast_install=no
7181 # Look at the argument we got. We use all the common list separators.
7182 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7183 for pkg in $enableval; do
7184 IFS="$lt_save_ifs"
7185 if test "X$pkg" = "X$p"; then
7186 enable_fast_install=yes
7188 done
7189 IFS="$lt_save_ifs"
7191 esac
7192 else
7193 enable_fast_install=yes
7206 # This can be used to rebuild libtool when needed
7207 LIBTOOL_DEPS="$ltmain"
7209 # Always use our own libtool.
7210 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7236 test -z "$LN_S" && LN_S="ln -s"
7251 if test -n "${ZSH_VERSION+set}" ; then
7252 setopt NO_GLOB_SUBST
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7256 $as_echo_n "checking for objdir... " >&6; }
7257 if ${lt_cv_objdir+:} false; then :
7258 $as_echo_n "(cached) " >&6
7259 else
7260 rm -f .libs 2>/dev/null
7261 mkdir .libs 2>/dev/null
7262 if test -d .libs; then
7263 lt_cv_objdir=.libs
7264 else
7265 # MS-DOS does not allow filenames that begin with a dot.
7266 lt_cv_objdir=_libs
7268 rmdir .libs 2>/dev/null
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7271 $as_echo "$lt_cv_objdir" >&6; }
7272 objdir=$lt_cv_objdir
7278 cat >>confdefs.h <<_ACEOF
7279 #define LT_OBJDIR "$lt_cv_objdir/"
7280 _ACEOF
7298 case $host_os in
7299 aix3*)
7300 # AIX sometimes has problems with the GCC collect2 program. For some
7301 # reason, if we set the COLLECT_NAMES environment variable, the problems
7302 # vanish in a puff of smoke.
7303 if test "X${COLLECT_NAMES+set}" != Xset; then
7304 COLLECT_NAMES=
7305 export COLLECT_NAMES
7308 esac
7310 # Sed substitution that helps us do robust quoting. It backslashifies
7311 # metacharacters that are still active within double-quoted strings.
7312 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7314 # Same as above, but do not quote variable references.
7315 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7317 # Sed substitution to delay expansion of an escaped shell variable in a
7318 # double_quote_subst'ed string.
7319 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7321 # Sed substitution to delay expansion of an escaped single quote.
7322 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7324 # Sed substitution to avoid accidental globbing in evaled expressions
7325 no_glob_subst='s/\*/\\\*/g'
7327 # Global variables:
7328 ofile=libtool
7329 can_build_shared=yes
7331 # All known linkers require a `.a' archive for static linking (except MSVC,
7332 # which needs '.lib').
7333 libext=a
7335 with_gnu_ld="$lt_cv_prog_gnu_ld"
7337 old_CC="$CC"
7338 old_CFLAGS="$CFLAGS"
7340 # Set sane defaults for various variables
7341 test -z "$CC" && CC=cc
7342 test -z "$LTCC" && LTCC=$CC
7343 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7344 test -z "$LD" && LD=ld
7345 test -z "$ac_objext" && ac_objext=o
7347 for cc_temp in $compiler""; do
7348 case $cc_temp in
7349 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7350 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7351 \-*) ;;
7352 *) break;;
7353 esac
7354 done
7355 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7358 # Only perform the check for file, if the check method requires it
7359 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7360 case $deplibs_check_method in
7361 file_magic*)
7362 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7364 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7365 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7366 $as_echo_n "(cached) " >&6
7367 else
7368 case $MAGIC_CMD in
7369 [\\/*] | ?:[\\/]*)
7370 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7373 lt_save_MAGIC_CMD="$MAGIC_CMD"
7374 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7375 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7376 for ac_dir in $ac_dummy; do
7377 IFS="$lt_save_ifs"
7378 test -z "$ac_dir" && ac_dir=.
7379 if test -f $ac_dir/${ac_tool_prefix}file; then
7380 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7381 if test -n "$file_magic_test_file"; then
7382 case $deplibs_check_method in
7383 "file_magic "*)
7384 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7385 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7386 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7387 $EGREP "$file_magic_regex" > /dev/null; then
7389 else
7390 cat <<_LT_EOF 1>&2
7392 *** Warning: the command libtool uses to detect shared libraries,
7393 *** $file_magic_cmd, produces output that libtool cannot recognize.
7394 *** The result is that libtool may fail to recognize shared libraries
7395 *** as such. This will affect the creation of libtool libraries that
7396 *** depend on shared libraries, but programs linked with such libtool
7397 *** libraries will work regardless of this problem. Nevertheless, you
7398 *** may want to report the problem to your system manager and/or to
7399 *** bug-libtool@gnu.org
7401 _LT_EOF
7402 fi ;;
7403 esac
7405 break
7407 done
7408 IFS="$lt_save_ifs"
7409 MAGIC_CMD="$lt_save_MAGIC_CMD"
7411 esac
7414 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7415 if test -n "$MAGIC_CMD"; then
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7417 $as_echo "$MAGIC_CMD" >&6; }
7418 else
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420 $as_echo "no" >&6; }
7427 if test -z "$lt_cv_path_MAGIC_CMD"; then
7428 if test -n "$ac_tool_prefix"; then
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7430 $as_echo_n "checking for file... " >&6; }
7431 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7432 $as_echo_n "(cached) " >&6
7433 else
7434 case $MAGIC_CMD in
7435 [\\/*] | ?:[\\/]*)
7436 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7439 lt_save_MAGIC_CMD="$MAGIC_CMD"
7440 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7441 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7442 for ac_dir in $ac_dummy; do
7443 IFS="$lt_save_ifs"
7444 test -z "$ac_dir" && ac_dir=.
7445 if test -f $ac_dir/file; then
7446 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7447 if test -n "$file_magic_test_file"; then
7448 case $deplibs_check_method in
7449 "file_magic "*)
7450 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7451 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7452 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7453 $EGREP "$file_magic_regex" > /dev/null; then
7455 else
7456 cat <<_LT_EOF 1>&2
7458 *** Warning: the command libtool uses to detect shared libraries,
7459 *** $file_magic_cmd, produces output that libtool cannot recognize.
7460 *** The result is that libtool may fail to recognize shared libraries
7461 *** as such. This will affect the creation of libtool libraries that
7462 *** depend on shared libraries, but programs linked with such libtool
7463 *** libraries will work regardless of this problem. Nevertheless, you
7464 *** may want to report the problem to your system manager and/or to
7465 *** bug-libtool@gnu.org
7467 _LT_EOF
7468 fi ;;
7469 esac
7471 break
7473 done
7474 IFS="$lt_save_ifs"
7475 MAGIC_CMD="$lt_save_MAGIC_CMD"
7477 esac
7480 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7481 if test -n "$MAGIC_CMD"; then
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7483 $as_echo "$MAGIC_CMD" >&6; }
7484 else
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486 $as_echo "no" >&6; }
7490 else
7491 MAGIC_CMD=:
7497 esac
7499 # Use C for the default configuration in the libtool script
7501 lt_save_CC="$CC"
7502 ac_ext=c
7503 ac_cpp='$CPP $CPPFLAGS'
7504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7509 # Source file extension for C test sources.
7510 ac_ext=c
7512 # Object file extension for compiled C test sources.
7513 objext=o
7514 objext=$objext
7516 # Code to be used in simple compile tests
7517 lt_simple_compile_test_code="int some_variable = 0;"
7519 # Code to be used in simple link tests
7520 lt_simple_link_test_code='int main(){return(0);}'
7528 # If no C compiler was specified, use CC.
7529 LTCC=${LTCC-"$CC"}
7531 # If no C compiler flags were specified, use CFLAGS.
7532 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7534 # Allow CC to be a program name with arguments.
7535 compiler=$CC
7537 # Save the default compiler, since it gets overwritten when the other
7538 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7539 compiler_DEFAULT=$CC
7541 # save warnings/boilerplate of simple test code
7542 ac_outfile=conftest.$ac_objext
7543 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7544 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7545 _lt_compiler_boilerplate=`cat conftest.err`
7546 $RM conftest*
7548 ac_outfile=conftest.$ac_objext
7549 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7550 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7551 _lt_linker_boilerplate=`cat conftest.err`
7552 $RM -r conftest*
7555 ## CAVEAT EMPTOR:
7556 ## There is no encapsulation within the following macros, do not change
7557 ## the running order or otherwise move them around unless you know exactly
7558 ## what you are doing...
7559 if test -n "$compiler"; then
7561 lt_prog_compiler_no_builtin_flag=
7563 if test "$GCC" = yes; then
7564 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7567 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7568 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7569 $as_echo_n "(cached) " >&6
7570 else
7571 lt_cv_prog_compiler_rtti_exceptions=no
7572 ac_outfile=conftest.$ac_objext
7573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7574 lt_compiler_flag="-fno-rtti -fno-exceptions"
7575 # Insert the option either (1) after the last *FLAGS variable, or
7576 # (2) before a word containing "conftest.", or (3) at the end.
7577 # Note that $ac_compile itself does not contain backslashes and begins
7578 # with a dollar sign (not a hyphen), so the echo should work correctly.
7579 # The option is referenced via a variable to avoid confusing sed.
7580 lt_compile=`echo "$ac_compile" | $SED \
7581 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7583 -e 's:$: $lt_compiler_flag:'`
7584 (eval echo "\"\$as_me:7584: $lt_compile\"" >&5)
7585 (eval "$lt_compile" 2>conftest.err)
7586 ac_status=$?
7587 cat conftest.err >&5
7588 echo "$as_me:7588: \$? = $ac_status" >&5
7589 if (exit $ac_status) && test -s "$ac_outfile"; then
7590 # The compiler can only warn and ignore the option if not recognized
7591 # So say no if there are warnings other than the usual output.
7592 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7594 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7595 lt_cv_prog_compiler_rtti_exceptions=yes
7598 $RM conftest*
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7602 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7604 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7605 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7606 else
7617 lt_prog_compiler_wl=
7618 lt_prog_compiler_pic=
7619 lt_prog_compiler_static=
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7622 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7624 if test "$GCC" = yes; then
7625 lt_prog_compiler_wl='-Wl,'
7626 lt_prog_compiler_static='-static'
7628 case $host_os in
7629 aix*)
7630 # All AIX code is PIC.
7631 if test "$host_cpu" = ia64; then
7632 # AIX 5 now supports IA64 processor
7633 lt_prog_compiler_static='-Bstatic'
7637 amigaos*)
7638 case $host_cpu in
7639 powerpc)
7640 # see comment about AmigaOS4 .so support
7641 lt_prog_compiler_pic='-fPIC'
7643 m68k)
7644 # FIXME: we need at least 68020 code to build shared libraries, but
7645 # adding the `-m68020' flag to GCC prevents building anything better,
7646 # like `-m68040'.
7647 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7649 esac
7652 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7653 # PIC is the default for these OSes.
7656 mingw* | cygwin* | pw32* | os2* | cegcc*)
7657 # This hack is so that the source file can tell whether it is being
7658 # built for inclusion in a dll (and should export symbols for example).
7659 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7660 # (--disable-auto-import) libraries
7661 lt_prog_compiler_pic='-DDLL_EXPORT'
7664 darwin* | rhapsody*)
7665 # PIC is the default on this platform
7666 # Common symbols not allowed in MH_DYLIB files
7667 lt_prog_compiler_pic='-fno-common'
7670 hpux*)
7671 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7672 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7673 # sets the default TLS model and affects inlining.
7674 case $host_cpu in
7675 hppa*64*)
7676 # +Z the default
7679 lt_prog_compiler_pic='-fPIC'
7681 esac
7684 interix[3-9]*)
7685 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7686 # Instead, we relocate shared libraries at runtime.
7689 msdosdjgpp*)
7690 # Just because we use GCC doesn't mean we suddenly get shared libraries
7691 # on systems that don't support them.
7692 lt_prog_compiler_can_build_shared=no
7693 enable_shared=no
7696 *nto* | *qnx*)
7697 # QNX uses GNU C++, but need to define -shared option too, otherwise
7698 # it will coredump.
7699 lt_prog_compiler_pic='-fPIC -shared'
7702 sysv4*MP*)
7703 if test -d /usr/nec; then
7704 lt_prog_compiler_pic=-Kconform_pic
7709 lt_prog_compiler_pic='-fPIC'
7711 esac
7712 else
7713 # PORTME Check for flag to pass linker flags through the system compiler.
7714 case $host_os in
7715 aix*)
7716 lt_prog_compiler_wl='-Wl,'
7717 if test "$host_cpu" = ia64; then
7718 # AIX 5 now supports IA64 processor
7719 lt_prog_compiler_static='-Bstatic'
7720 else
7721 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7725 mingw* | cygwin* | pw32* | os2* | cegcc*)
7726 # This hack is so that the source file can tell whether it is being
7727 # built for inclusion in a dll (and should export symbols for example).
7728 lt_prog_compiler_pic='-DDLL_EXPORT'
7731 hpux9* | hpux10* | hpux11*)
7732 lt_prog_compiler_wl='-Wl,'
7733 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7734 # not for PA HP-UX.
7735 case $host_cpu in
7736 hppa*64*|ia64*)
7737 # +Z the default
7740 lt_prog_compiler_pic='+Z'
7742 esac
7743 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7744 lt_prog_compiler_static='${wl}-a ${wl}archive'
7747 irix5* | irix6* | nonstopux*)
7748 lt_prog_compiler_wl='-Wl,'
7749 # PIC (with -KPIC) is the default.
7750 lt_prog_compiler_static='-non_shared'
7753 linux* | k*bsd*-gnu)
7754 case $cc_basename in
7755 # old Intel for x86_64 which still supported -KPIC.
7756 ecc*)
7757 lt_prog_compiler_wl='-Wl,'
7758 lt_prog_compiler_pic='-KPIC'
7759 lt_prog_compiler_static='-static'
7761 # icc used to be incompatible with GCC.
7762 # ICC 10 doesn't accept -KPIC any more.
7763 icc* | ifort*)
7764 lt_prog_compiler_wl='-Wl,'
7765 lt_prog_compiler_pic='-fPIC'
7766 lt_prog_compiler_static='-static'
7768 # Lahey Fortran 8.1.
7769 lf95*)
7770 lt_prog_compiler_wl='-Wl,'
7771 lt_prog_compiler_pic='--shared'
7772 lt_prog_compiler_static='--static'
7774 pgcc* | pgf77* | pgf90* | pgf95*)
7775 # Portland Group compilers (*not* the Pentium gcc compiler,
7776 # which looks to be a dead project)
7777 lt_prog_compiler_wl='-Wl,'
7778 lt_prog_compiler_pic='-fpic'
7779 lt_prog_compiler_static='-Bstatic'
7781 ccc*)
7782 lt_prog_compiler_wl='-Wl,'
7783 # All Alpha code is PIC.
7784 lt_prog_compiler_static='-non_shared'
7786 xl*)
7787 # IBM XL C 8.0/Fortran 10.1 on PPC
7788 lt_prog_compiler_wl='-Wl,'
7789 lt_prog_compiler_pic='-qpic'
7790 lt_prog_compiler_static='-qstaticlink'
7793 case `$CC -V 2>&1 | sed 5q` in
7794 *Sun\ C*)
7795 # Sun C 5.9
7796 lt_prog_compiler_pic='-KPIC'
7797 lt_prog_compiler_static='-Bstatic'
7798 lt_prog_compiler_wl='-Wl,'
7800 *Sun\ F*)
7801 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7802 lt_prog_compiler_pic='-KPIC'
7803 lt_prog_compiler_static='-Bstatic'
7804 lt_prog_compiler_wl=''
7806 esac
7808 esac
7811 newsos6)
7812 lt_prog_compiler_pic='-KPIC'
7813 lt_prog_compiler_static='-Bstatic'
7816 *nto* | *qnx*)
7817 # QNX uses GNU C++, but need to define -shared option too, otherwise
7818 # it will coredump.
7819 lt_prog_compiler_pic='-fPIC -shared'
7822 osf3* | osf4* | osf5*)
7823 lt_prog_compiler_wl='-Wl,'
7824 # All OSF/1 code is PIC.
7825 lt_prog_compiler_static='-non_shared'
7828 rdos*)
7829 lt_prog_compiler_static='-non_shared'
7832 solaris*)
7833 lt_prog_compiler_pic='-KPIC'
7834 lt_prog_compiler_static='-Bstatic'
7835 case $cc_basename in
7836 f77* | f90* | f95*)
7837 lt_prog_compiler_wl='-Qoption ld ';;
7839 lt_prog_compiler_wl='-Wl,';;
7840 esac
7843 sunos4*)
7844 lt_prog_compiler_wl='-Qoption ld '
7845 lt_prog_compiler_pic='-PIC'
7846 lt_prog_compiler_static='-Bstatic'
7849 sysv4 | sysv4.2uw2* | sysv4.3*)
7850 lt_prog_compiler_wl='-Wl,'
7851 lt_prog_compiler_pic='-KPIC'
7852 lt_prog_compiler_static='-Bstatic'
7855 sysv4*MP*)
7856 if test -d /usr/nec ;then
7857 lt_prog_compiler_pic='-Kconform_pic'
7858 lt_prog_compiler_static='-Bstatic'
7862 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7863 lt_prog_compiler_wl='-Wl,'
7864 lt_prog_compiler_pic='-KPIC'
7865 lt_prog_compiler_static='-Bstatic'
7868 unicos*)
7869 lt_prog_compiler_wl='-Wl,'
7870 lt_prog_compiler_can_build_shared=no
7873 uts4*)
7874 lt_prog_compiler_pic='-pic'
7875 lt_prog_compiler_static='-Bstatic'
7879 lt_prog_compiler_can_build_shared=no
7881 esac
7884 case $host_os in
7885 # For platforms which do not support PIC, -DPIC is meaningless:
7886 *djgpp*)
7887 lt_prog_compiler_pic=
7890 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7892 esac
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7894 $as_echo "$lt_prog_compiler_pic" >&6; }
7902 # Check to make sure the PIC flag actually works.
7904 if test -n "$lt_prog_compiler_pic"; then
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7906 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7907 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7908 $as_echo_n "(cached) " >&6
7909 else
7910 lt_cv_prog_compiler_pic_works=no
7911 ac_outfile=conftest.$ac_objext
7912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7913 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7914 # Insert the option either (1) after the last *FLAGS variable, or
7915 # (2) before a word containing "conftest.", or (3) at the end.
7916 # Note that $ac_compile itself does not contain backslashes and begins
7917 # with a dollar sign (not a hyphen), so the echo should work correctly.
7918 # The option is referenced via a variable to avoid confusing sed.
7919 lt_compile=`echo "$ac_compile" | $SED \
7920 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7922 -e 's:$: $lt_compiler_flag:'`
7923 (eval echo "\"\$as_me:7923: $lt_compile\"" >&5)
7924 (eval "$lt_compile" 2>conftest.err)
7925 ac_status=$?
7926 cat conftest.err >&5
7927 echo "$as_me:7927: \$? = $ac_status" >&5
7928 if (exit $ac_status) && test -s "$ac_outfile"; then
7929 # The compiler can only warn and ignore the option if not recognized
7930 # So say no if there are warnings other than the usual output.
7931 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7932 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7933 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7934 lt_cv_prog_compiler_pic_works=yes
7937 $RM conftest*
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7941 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7943 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7944 case $lt_prog_compiler_pic in
7945 "" | " "*) ;;
7946 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7947 esac
7948 else
7949 lt_prog_compiler_pic=
7950 lt_prog_compiler_can_build_shared=no
7961 # Check to make sure the static flag actually works.
7963 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7965 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7966 if ${lt_cv_prog_compiler_static_works+:} false; then :
7967 $as_echo_n "(cached) " >&6
7968 else
7969 lt_cv_prog_compiler_static_works=no
7970 save_LDFLAGS="$LDFLAGS"
7971 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7972 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7973 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7974 # The linker can only warn and ignore the option if not recognized
7975 # So say no if there are warnings
7976 if test -s conftest.err; then
7977 # Append any errors to the config.log.
7978 cat conftest.err 1>&5
7979 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7980 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7981 if diff conftest.exp conftest.er2 >/dev/null; then
7982 lt_cv_prog_compiler_static_works=yes
7984 else
7985 lt_cv_prog_compiler_static_works=yes
7988 $RM -r conftest*
7989 LDFLAGS="$save_LDFLAGS"
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7993 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7995 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7997 else
7998 lt_prog_compiler_static=
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8008 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8009 if ${lt_cv_prog_compiler_c_o+:} false; then :
8010 $as_echo_n "(cached) " >&6
8011 else
8012 lt_cv_prog_compiler_c_o=no
8013 $RM -r conftest 2>/dev/null
8014 mkdir conftest
8015 cd conftest
8016 mkdir out
8017 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8019 lt_compiler_flag="-o out/conftest2.$ac_objext"
8020 # Insert the option either (1) after the last *FLAGS variable, or
8021 # (2) before a word containing "conftest.", or (3) at the end.
8022 # Note that $ac_compile itself does not contain backslashes and begins
8023 # with a dollar sign (not a hyphen), so the echo should work correctly.
8024 lt_compile=`echo "$ac_compile" | $SED \
8025 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8026 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8027 -e 's:$: $lt_compiler_flag:'`
8028 (eval echo "\"\$as_me:8028: $lt_compile\"" >&5)
8029 (eval "$lt_compile" 2>out/conftest.err)
8030 ac_status=$?
8031 cat out/conftest.err >&5
8032 echo "$as_me:8032: \$? = $ac_status" >&5
8033 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8034 then
8035 # The compiler can only warn and ignore the option if not recognized
8036 # So say no if there are warnings
8037 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8038 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8039 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8040 lt_cv_prog_compiler_c_o=yes
8043 chmod u+w . 2>&5
8044 $RM conftest*
8045 # SGI C++ compiler will create directory out/ii_files/ for
8046 # template instantiation
8047 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8048 $RM out/* && rmdir out
8049 cd ..
8050 $RM -r conftest
8051 $RM conftest*
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8055 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8063 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8064 if ${lt_cv_prog_compiler_c_o+:} false; then :
8065 $as_echo_n "(cached) " >&6
8066 else
8067 lt_cv_prog_compiler_c_o=no
8068 $RM -r conftest 2>/dev/null
8069 mkdir conftest
8070 cd conftest
8071 mkdir out
8072 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8074 lt_compiler_flag="-o out/conftest2.$ac_objext"
8075 # Insert the option either (1) after the last *FLAGS variable, or
8076 # (2) before a word containing "conftest.", or (3) at the end.
8077 # Note that $ac_compile itself does not contain backslashes and begins
8078 # with a dollar sign (not a hyphen), so the echo should work correctly.
8079 lt_compile=`echo "$ac_compile" | $SED \
8080 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8081 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8082 -e 's:$: $lt_compiler_flag:'`
8083 (eval echo "\"\$as_me:8083: $lt_compile\"" >&5)
8084 (eval "$lt_compile" 2>out/conftest.err)
8085 ac_status=$?
8086 cat out/conftest.err >&5
8087 echo "$as_me:8087: \$? = $ac_status" >&5
8088 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8089 then
8090 # The compiler can only warn and ignore the option if not recognized
8091 # So say no if there are warnings
8092 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8093 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8094 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8095 lt_cv_prog_compiler_c_o=yes
8098 chmod u+w . 2>&5
8099 $RM conftest*
8100 # SGI C++ compiler will create directory out/ii_files/ for
8101 # template instantiation
8102 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8103 $RM out/* && rmdir out
8104 cd ..
8105 $RM -r conftest
8106 $RM conftest*
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8110 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8115 hard_links="nottested"
8116 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8117 # do not overwrite the value of need_locks provided by the user
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8119 $as_echo_n "checking if we can lock with hard links... " >&6; }
8120 hard_links=yes
8121 $RM conftest*
8122 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8123 touch conftest.a
8124 ln conftest.a conftest.b 2>&5 || hard_links=no
8125 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8127 $as_echo "$hard_links" >&6; }
8128 if test "$hard_links" = no; then
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8130 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8131 need_locks=warn
8133 else
8134 need_locks=no
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8143 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8145 runpath_var=
8146 allow_undefined_flag=
8147 always_export_symbols=no
8148 archive_cmds=
8149 archive_expsym_cmds=
8150 compiler_needs_object=no
8151 enable_shared_with_static_runtimes=no
8152 export_dynamic_flag_spec=
8153 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8154 hardcode_automatic=no
8155 hardcode_direct=no
8156 hardcode_direct_absolute=no
8157 hardcode_libdir_flag_spec=
8158 hardcode_libdir_flag_spec_ld=
8159 hardcode_libdir_separator=
8160 hardcode_minus_L=no
8161 hardcode_shlibpath_var=unsupported
8162 inherit_rpath=no
8163 link_all_deplibs=unknown
8164 module_cmds=
8165 module_expsym_cmds=
8166 old_archive_from_new_cmds=
8167 old_archive_from_expsyms_cmds=
8168 thread_safe_flag_spec=
8169 whole_archive_flag_spec=
8170 # include_expsyms should be a list of space-separated symbols to be *always*
8171 # included in the symbol list
8172 include_expsyms=
8173 # exclude_expsyms can be an extended regexp of symbols to exclude
8174 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8175 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8176 # as well as any symbol that contains `d'.
8177 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8178 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8179 # platforms (ab)use it in PIC code, but their linkers get confused if
8180 # the symbol is explicitly referenced. Since portable code cannot
8181 # rely on this symbol name, it's probably fine to never include it in
8182 # preloaded symbol tables.
8183 # Exclude shared library initialization/finalization symbols.
8184 extract_expsyms_cmds=
8186 case $host_os in
8187 cygwin* | mingw* | pw32* | cegcc*)
8188 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8189 # When not using gcc, we currently assume that we are using
8190 # Microsoft Visual C++.
8191 if test "$GCC" != yes; then
8192 with_gnu_ld=no
8195 interix*)
8196 # we just hope/assume this is gcc and not c89 (= MSVC++)
8197 with_gnu_ld=yes
8199 openbsd*)
8200 with_gnu_ld=no
8202 esac
8204 ld_shlibs=yes
8205 if test "$with_gnu_ld" = yes; then
8206 # If archive_cmds runs LD, not CC, wlarc should be empty
8207 wlarc='${wl}'
8209 # Set some defaults for GNU ld with shared library support. These
8210 # are reset later if shared libraries are not supported. Putting them
8211 # here allows them to be overridden if necessary.
8212 runpath_var=LD_RUN_PATH
8213 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8214 export_dynamic_flag_spec='${wl}--export-dynamic'
8215 # ancient GNU ld didn't support --whole-archive et. al.
8216 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8217 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8218 else
8219 whole_archive_flag_spec=
8221 supports_anon_versioning=no
8222 case `$LD -v 2>&1` in
8223 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8224 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8225 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8226 *\ 2.11.*) ;; # other 2.11 versions
8227 *) supports_anon_versioning=yes ;;
8228 esac
8230 # See if GNU ld supports shared libraries.
8231 case $host_os in
8232 aix[3-9]*)
8233 # On AIX/PPC, the GNU linker is very broken
8234 if test "$host_cpu" != ia64; then
8235 ld_shlibs=no
8236 cat <<_LT_EOF 1>&2
8238 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8239 *** to be unable to reliably create shared libraries on AIX.
8240 *** Therefore, libtool is disabling shared libraries support. If you
8241 *** really care for shared libraries, you may want to modify your PATH
8242 *** so that a non-GNU linker is found, and then restart.
8244 _LT_EOF
8248 amigaos*)
8249 case $host_cpu in
8250 powerpc)
8251 # see comment about AmigaOS4 .so support
8252 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8253 archive_expsym_cmds=''
8255 m68k)
8256 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)'
8257 hardcode_libdir_flag_spec='-L$libdir'
8258 hardcode_minus_L=yes
8260 esac
8263 beos*)
8264 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8265 allow_undefined_flag=unsupported
8266 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8267 # support --undefined. This deserves some investigation. FIXME
8268 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8269 else
8270 ld_shlibs=no
8274 cygwin* | mingw* | pw32* | cegcc*)
8275 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8276 # as there is no search path for DLLs.
8277 hardcode_libdir_flag_spec='-L$libdir'
8278 allow_undefined_flag=unsupported
8279 always_export_symbols=no
8280 enable_shared_with_static_runtimes=yes
8281 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8283 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8284 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8285 # If the export-symbols file already is a .def file (1st line
8286 # is EXPORTS), use it as is; otherwise, prepend...
8287 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8288 cp $export_symbols $output_objdir/$soname.def;
8289 else
8290 echo EXPORTS > $output_objdir/$soname.def;
8291 cat $export_symbols >> $output_objdir/$soname.def;
8293 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8294 else
8295 ld_shlibs=no
8299 interix[3-9]*)
8300 hardcode_direct=no
8301 hardcode_shlibpath_var=no
8302 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8303 export_dynamic_flag_spec='${wl}-E'
8304 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8305 # Instead, shared libraries are loaded at an image base (0x10000000 by
8306 # default) and relocated if they conflict, which is a slow very memory
8307 # consuming and fragmenting process. To avoid this, we pick a random,
8308 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8309 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8310 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8311 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'
8314 gnu* | linux* | tpf* | k*bsd*-gnu)
8315 tmp_diet=no
8316 if test "$host_os" = linux-dietlibc; then
8317 case $cc_basename in
8318 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8319 esac
8321 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8322 && test "$tmp_diet" = no
8323 then
8324 tmp_addflag=
8325 tmp_sharedflag='-shared'
8326 case $cc_basename,$host_cpu in
8327 pgcc*) # Portland Group C compiler
8328 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'
8329 tmp_addflag=' $pic_flag'
8331 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8332 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'
8333 tmp_addflag=' $pic_flag -Mnomain' ;;
8334 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8335 tmp_addflag=' -i_dynamic' ;;
8336 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8337 tmp_addflag=' -i_dynamic -nofor_main' ;;
8338 ifc* | ifort*) # Intel Fortran compiler
8339 tmp_addflag=' -nofor_main' ;;
8340 lf95*) # Lahey Fortran 8.1
8341 whole_archive_flag_spec=
8342 tmp_sharedflag='--shared' ;;
8343 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8344 tmp_sharedflag='-qmkshrobj'
8345 tmp_addflag= ;;
8346 esac
8347 case `$CC -V 2>&1 | sed 5q` in
8348 *Sun\ C*) # Sun C 5.9
8349 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'
8350 compiler_needs_object=yes
8351 tmp_sharedflag='-G' ;;
8352 *Sun\ F*) # Sun Fortran 8.3
8353 tmp_sharedflag='-G' ;;
8354 esac
8355 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8357 if test "x$supports_anon_versioning" = xyes; then
8358 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8359 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8360 echo "local: *; };" >> $output_objdir/$libname.ver~
8361 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8364 case $cc_basename in
8365 xlf*)
8366 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8367 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8368 hardcode_libdir_flag_spec=
8369 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8370 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8371 if test "x$supports_anon_versioning" = xyes; then
8372 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8373 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8374 echo "local: *; };" >> $output_objdir/$libname.ver~
8375 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8378 esac
8379 else
8380 ld_shlibs=no
8384 netbsd*)
8385 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8386 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8387 wlarc=
8388 else
8389 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8390 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8394 solaris*)
8395 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8396 ld_shlibs=no
8397 cat <<_LT_EOF 1>&2
8399 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8400 *** create shared libraries on Solaris systems. Therefore, libtool
8401 *** is disabling shared libraries support. We urge you to upgrade GNU
8402 *** binutils to release 2.9.1 or newer. Another option is to modify
8403 *** your PATH or compiler configuration so that the native linker is
8404 *** used, and then restart.
8406 _LT_EOF
8407 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8409 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8410 else
8411 ld_shlibs=no
8415 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8416 case `$LD -v 2>&1` in
8417 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8418 ld_shlibs=no
8419 cat <<_LT_EOF 1>&2
8421 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8422 *** reliably create shared libraries on SCO systems. Therefore, libtool
8423 *** is disabling shared libraries support. We urge you to upgrade GNU
8424 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8425 *** your PATH or compiler configuration so that the native linker is
8426 *** used, and then restart.
8428 _LT_EOF
8431 # For security reasons, it is highly recommended that you always
8432 # use absolute paths for naming shared libraries, and exclude the
8433 # DT_RUNPATH tag from executables and libraries. But doing so
8434 # requires that you compile everything twice, which is a pain.
8435 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8436 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8437 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8438 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8439 else
8440 ld_shlibs=no
8443 esac
8446 sunos4*)
8447 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8448 wlarc=
8449 hardcode_direct=yes
8450 hardcode_shlibpath_var=no
8454 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8455 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8456 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8457 else
8458 ld_shlibs=no
8461 esac
8463 if test "$ld_shlibs" = no; then
8464 runpath_var=
8465 hardcode_libdir_flag_spec=
8466 export_dynamic_flag_spec=
8467 whole_archive_flag_spec=
8469 else
8470 # PORTME fill in a description of your system's linker (not GNU ld)
8471 case $host_os in
8472 aix3*)
8473 allow_undefined_flag=unsupported
8474 always_export_symbols=yes
8475 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'
8476 # Note: this linker hardcodes the directories in LIBPATH if there
8477 # are no directories specified by -L.
8478 hardcode_minus_L=yes
8479 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8480 # Neither direct hardcoding nor static linking is supported with a
8481 # broken collect2.
8482 hardcode_direct=unsupported
8486 aix[4-9]*)
8487 if test "$host_cpu" = ia64; then
8488 # On IA64, the linker does run time linking by default, so we don't
8489 # have to do anything special.
8490 aix_use_runtimelinking=no
8491 exp_sym_flag='-Bexport'
8492 no_entry_flag=""
8493 else
8494 # If we're using GNU nm, then we don't want the "-C" option.
8495 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8496 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8497 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'
8498 else
8499 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'
8501 aix_use_runtimelinking=no
8503 # Test if we are trying to use run time linking or normal
8504 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8505 # need to do runtime linking.
8506 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8507 for ld_flag in $LDFLAGS; do
8508 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8509 aix_use_runtimelinking=yes
8510 break
8512 done
8514 esac
8516 exp_sym_flag='-bexport'
8517 no_entry_flag='-bnoentry'
8520 # When large executables or shared objects are built, AIX ld can
8521 # have problems creating the table of contents. If linking a library
8522 # or program results in "error TOC overflow" add -mminimal-toc to
8523 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8524 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8526 archive_cmds=''
8527 hardcode_direct=yes
8528 hardcode_direct_absolute=yes
8529 hardcode_libdir_separator=':'
8530 link_all_deplibs=yes
8531 file_list_spec='${wl}-f,'
8533 if test "$GCC" = yes; then
8534 case $host_os in aix4.[012]|aix4.[012].*)
8535 # We only want to do this on AIX 4.2 and lower, the check
8536 # below for broken collect2 doesn't work under 4.3+
8537 collect2name=`${CC} -print-prog-name=collect2`
8538 if test -f "$collect2name" &&
8539 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8540 then
8541 # We have reworked collect2
8543 else
8544 # We have old collect2
8545 hardcode_direct=unsupported
8546 # It fails to find uninstalled libraries when the uninstalled
8547 # path is not listed in the libpath. Setting hardcode_minus_L
8548 # to unsupported forces relinking
8549 hardcode_minus_L=yes
8550 hardcode_libdir_flag_spec='-L$libdir'
8551 hardcode_libdir_separator=
8554 esac
8555 shared_flag='-shared'
8556 if test "$aix_use_runtimelinking" = yes; then
8557 shared_flag="$shared_flag "'${wl}-G'
8559 else
8560 # not using gcc
8561 if test "$host_cpu" = ia64; then
8562 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8563 # chokes on -Wl,-G. The following line is correct:
8564 shared_flag='-G'
8565 else
8566 if test "$aix_use_runtimelinking" = yes; then
8567 shared_flag='${wl}-G'
8568 else
8569 shared_flag='${wl}-bM:SRE'
8574 export_dynamic_flag_spec='${wl}-bexpall'
8575 # It seems that -bexpall does not export symbols beginning with
8576 # underscore (_), so it is better to generate a list of symbols to export.
8577 always_export_symbols=yes
8578 if test "$aix_use_runtimelinking" = yes; then
8579 # Warning - without using the other runtime loading flags (-brtl),
8580 # -berok will link without error, but may produce a broken library.
8581 allow_undefined_flag='-berok'
8582 # Determine the default libpath from the value encoded in an
8583 # empty executable.
8584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8585 /* end confdefs.h. */
8588 main ()
8592 return 0;
8594 _ACEOF
8595 if ac_fn_c_try_link "$LINENO"; then :
8597 lt_aix_libpath_sed='
8598 /Import File Strings/,/^$/ {
8599 /^0/ {
8600 s/^0 *\(.*\)$/\1/
8604 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8605 # Check for a 64-bit object if we didn't find anything.
8606 if test -z "$aix_libpath"; then
8607 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8610 rm -f core conftest.err conftest.$ac_objext \
8611 conftest$ac_exeext conftest.$ac_ext
8612 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8614 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8615 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"
8616 else
8617 if test "$host_cpu" = ia64; then
8618 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8619 allow_undefined_flag="-z nodefs"
8620 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"
8621 else
8622 # Determine the default libpath from the value encoded in an
8623 # empty executable.
8624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625 /* end confdefs.h. */
8628 main ()
8632 return 0;
8634 _ACEOF
8635 if ac_fn_c_try_link "$LINENO"; then :
8637 lt_aix_libpath_sed='
8638 /Import File Strings/,/^$/ {
8639 /^0/ {
8640 s/^0 *\(.*\)$/\1/
8644 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8645 # Check for a 64-bit object if we didn't find anything.
8646 if test -z "$aix_libpath"; then
8647 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8650 rm -f core conftest.err conftest.$ac_objext \
8651 conftest$ac_exeext conftest.$ac_ext
8652 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8654 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8655 # Warning - without using the other run time loading flags,
8656 # -berok will link without error, but may produce a broken library.
8657 no_undefined_flag=' ${wl}-bernotok'
8658 allow_undefined_flag=' ${wl}-berok'
8659 # Exported symbols can be pulled into shared objects from archives
8660 whole_archive_flag_spec='$convenience'
8661 archive_cmds_need_lc=yes
8662 # This is similar to how AIX traditionally builds its shared libraries.
8663 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'
8668 amigaos*)
8669 case $host_cpu in
8670 powerpc)
8671 # see comment about AmigaOS4 .so support
8672 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8673 archive_expsym_cmds=''
8675 m68k)
8676 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)'
8677 hardcode_libdir_flag_spec='-L$libdir'
8678 hardcode_minus_L=yes
8680 esac
8683 bsdi[45]*)
8684 export_dynamic_flag_spec=-rdynamic
8687 cygwin* | mingw* | pw32* | cegcc*)
8688 # When not using gcc, we currently assume that we are using
8689 # Microsoft Visual C++.
8690 # hardcode_libdir_flag_spec is actually meaningless, as there is
8691 # no search path for DLLs.
8692 hardcode_libdir_flag_spec=' '
8693 allow_undefined_flag=unsupported
8694 # Tell ltmain to make .lib files, not .a files.
8695 libext=lib
8696 # Tell ltmain to make .dll files, not .so files.
8697 shrext_cmds=".dll"
8698 # FIXME: Setting linknames here is a bad hack.
8699 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8700 # The linker will automatically build a .lib file if we build a DLL.
8701 old_archive_from_new_cmds='true'
8702 # FIXME: Should let the user specify the lib program.
8703 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8704 fix_srcfile_path='`cygpath -w "$srcfile"`'
8705 enable_shared_with_static_runtimes=yes
8708 darwin* | rhapsody*)
8711 archive_cmds_need_lc=no
8712 hardcode_direct=no
8713 hardcode_automatic=yes
8714 hardcode_shlibpath_var=unsupported
8715 whole_archive_flag_spec=''
8716 link_all_deplibs=yes
8717 allow_undefined_flag="$_lt_dar_allow_undefined"
8718 case $cc_basename in
8719 ifort*) _lt_dar_can_shared=yes ;;
8720 *) _lt_dar_can_shared=$GCC ;;
8721 esac
8722 if test "$_lt_dar_can_shared" = "yes"; then
8723 output_verbose_link_cmd=echo
8724 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8725 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8726 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}"
8727 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}"
8729 else
8730 ld_shlibs=no
8735 dgux*)
8736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8737 hardcode_libdir_flag_spec='-L$libdir'
8738 hardcode_shlibpath_var=no
8741 freebsd1*)
8742 ld_shlibs=no
8745 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8746 # support. Future versions do this automatically, but an explicit c++rt0.o
8747 # does not break anything, and helps significantly (at the cost of a little
8748 # extra space).
8749 freebsd2.2*)
8750 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8751 hardcode_libdir_flag_spec='-R$libdir'
8752 hardcode_direct=yes
8753 hardcode_shlibpath_var=no
8756 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8757 freebsd2*)
8758 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8759 hardcode_direct=yes
8760 hardcode_minus_L=yes
8761 hardcode_shlibpath_var=no
8764 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8765 freebsd* | dragonfly*)
8766 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8767 hardcode_libdir_flag_spec='-R$libdir'
8768 hardcode_direct=yes
8769 hardcode_shlibpath_var=no
8772 hpux9*)
8773 if test "$GCC" = yes; then
8774 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'
8775 else
8776 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'
8778 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8779 hardcode_libdir_separator=:
8780 hardcode_direct=yes
8782 # hardcode_minus_L: Not really in the search PATH,
8783 # but as the default location of the library.
8784 hardcode_minus_L=yes
8785 export_dynamic_flag_spec='${wl}-E'
8788 hpux10*)
8789 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8790 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8791 else
8792 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8794 if test "$with_gnu_ld" = no; then
8795 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8796 hardcode_libdir_flag_spec_ld='+b $libdir'
8797 hardcode_libdir_separator=:
8798 hardcode_direct=yes
8799 hardcode_direct_absolute=yes
8800 export_dynamic_flag_spec='${wl}-E'
8801 # hardcode_minus_L: Not really in the search PATH,
8802 # but as the default location of the library.
8803 hardcode_minus_L=yes
8807 hpux11*)
8808 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8809 case $host_cpu in
8810 hppa*64*)
8811 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8813 ia64*)
8814 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8817 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8819 esac
8820 else
8821 case $host_cpu in
8822 hppa*64*)
8823 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8825 ia64*)
8826 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8829 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8831 esac
8833 if test "$with_gnu_ld" = no; then
8834 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8835 hardcode_libdir_separator=:
8837 case $host_cpu in
8838 hppa*64*|ia64*)
8839 hardcode_direct=no
8840 hardcode_shlibpath_var=no
8843 hardcode_direct=yes
8844 hardcode_direct_absolute=yes
8845 export_dynamic_flag_spec='${wl}-E'
8847 # hardcode_minus_L: Not really in the search PATH,
8848 # but as the default location of the library.
8849 hardcode_minus_L=yes
8851 esac
8855 irix5* | irix6* | nonstopux*)
8856 if test "$GCC" = yes; then
8857 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'
8858 # Try to use the -exported_symbol ld option, if it does not
8859 # work, assume that -exports_file does not work either and
8860 # implicitly export all symbols.
8861 save_LDFLAGS="$LDFLAGS"
8862 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864 /* end confdefs.h. */
8865 int foo(void) {}
8866 _ACEOF
8867 if ac_fn_c_try_link "$LINENO"; then :
8868 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'
8871 rm -f core conftest.err conftest.$ac_objext \
8872 conftest$ac_exeext conftest.$ac_ext
8873 LDFLAGS="$save_LDFLAGS"
8874 else
8875 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'
8876 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'
8878 archive_cmds_need_lc='no'
8879 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8880 hardcode_libdir_separator=:
8881 inherit_rpath=yes
8882 link_all_deplibs=yes
8885 netbsd*)
8886 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8887 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8888 else
8889 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8891 hardcode_libdir_flag_spec='-R$libdir'
8892 hardcode_direct=yes
8893 hardcode_shlibpath_var=no
8896 newsos6)
8897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8898 hardcode_direct=yes
8899 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8900 hardcode_libdir_separator=:
8901 hardcode_shlibpath_var=no
8904 *nto* | *qnx*)
8907 openbsd*)
8908 if test -f /usr/libexec/ld.so; then
8909 hardcode_direct=yes
8910 hardcode_shlibpath_var=no
8911 hardcode_direct_absolute=yes
8912 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8913 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8914 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8915 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8916 export_dynamic_flag_spec='${wl}-E'
8917 else
8918 case $host_os in
8919 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8920 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8921 hardcode_libdir_flag_spec='-R$libdir'
8924 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8925 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8927 esac
8929 else
8930 ld_shlibs=no
8934 os2*)
8935 hardcode_libdir_flag_spec='-L$libdir'
8936 hardcode_minus_L=yes
8937 allow_undefined_flag=unsupported
8938 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'
8939 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8942 osf3*)
8943 if test "$GCC" = yes; then
8944 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8945 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'
8946 else
8947 allow_undefined_flag=' -expect_unresolved \*'
8948 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'
8950 archive_cmds_need_lc='no'
8951 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8952 hardcode_libdir_separator=:
8955 osf4* | osf5*) # as osf3* with the addition of -msym flag
8956 if test "$GCC" = yes; then
8957 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8958 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'
8959 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8960 else
8961 allow_undefined_flag=' -expect_unresolved \*'
8962 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'
8963 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~
8964 $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'
8966 # Both c and cxx compiler support -rpath directly
8967 hardcode_libdir_flag_spec='-rpath $libdir'
8969 archive_cmds_need_lc='no'
8970 hardcode_libdir_separator=:
8973 solaris*)
8974 no_undefined_flag=' -z defs'
8975 if test "$GCC" = yes; then
8976 wlarc='${wl}'
8977 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8978 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8979 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8980 else
8981 case `$CC -V 2>&1` in
8982 *"Compilers 5.0"*)
8983 wlarc=''
8984 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8985 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8986 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8989 wlarc='${wl}'
8990 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8991 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8992 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8994 esac
8996 hardcode_libdir_flag_spec='-R$libdir'
8997 hardcode_shlibpath_var=no
8998 case $host_os in
8999 solaris2.[0-5] | solaris2.[0-5].*) ;;
9001 # The compiler driver will combine and reorder linker options,
9002 # but understands `-z linker_flag'. GCC discards it without `$wl',
9003 # but is careful enough not to reorder.
9004 # Supported since Solaris 2.6 (maybe 2.5.1?)
9005 if test "$GCC" = yes; then
9006 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9007 else
9008 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9011 esac
9012 link_all_deplibs=yes
9015 sunos4*)
9016 if test "x$host_vendor" = xsequent; then
9017 # Use $CC to link under sequent, because it throws in some extra .o
9018 # files that make .init and .fini sections work.
9019 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9020 else
9021 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9023 hardcode_libdir_flag_spec='-L$libdir'
9024 hardcode_direct=yes
9025 hardcode_minus_L=yes
9026 hardcode_shlibpath_var=no
9029 sysv4)
9030 case $host_vendor in
9031 sni)
9032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9033 hardcode_direct=yes # is this really true???
9035 siemens)
9036 ## LD is ld it makes a PLAMLIB
9037 ## CC just makes a GrossModule.
9038 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9039 reload_cmds='$CC -r -o $output$reload_objs'
9040 hardcode_direct=no
9042 motorola)
9043 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9044 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9046 esac
9047 runpath_var='LD_RUN_PATH'
9048 hardcode_shlibpath_var=no
9051 sysv4.3*)
9052 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9053 hardcode_shlibpath_var=no
9054 export_dynamic_flag_spec='-Bexport'
9057 sysv4*MP*)
9058 if test -d /usr/nec; then
9059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9060 hardcode_shlibpath_var=no
9061 runpath_var=LD_RUN_PATH
9062 hardcode_runpath_var=yes
9063 ld_shlibs=yes
9067 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9068 no_undefined_flag='${wl}-z,text'
9069 archive_cmds_need_lc=no
9070 hardcode_shlibpath_var=no
9071 runpath_var='LD_RUN_PATH'
9073 if test "$GCC" = yes; then
9074 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9075 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9076 else
9077 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9078 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9082 sysv5* | sco3.2v5* | sco5v6*)
9083 # Note: We can NOT use -z defs as we might desire, because we do not
9084 # link with -lc, and that would cause any symbols used from libc to
9085 # always be unresolved, which means just about no library would
9086 # ever link correctly. If we're not using GNU ld we use -z text
9087 # though, which does catch some bad symbols but isn't as heavy-handed
9088 # as -z defs.
9089 no_undefined_flag='${wl}-z,text'
9090 allow_undefined_flag='${wl}-z,nodefs'
9091 archive_cmds_need_lc=no
9092 hardcode_shlibpath_var=no
9093 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9094 hardcode_libdir_separator=':'
9095 link_all_deplibs=yes
9096 export_dynamic_flag_spec='${wl}-Bexport'
9097 runpath_var='LD_RUN_PATH'
9099 if test "$GCC" = yes; then
9100 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9101 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9102 else
9103 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9104 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9108 uts4*)
9109 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9110 hardcode_libdir_flag_spec='-L$libdir'
9111 hardcode_shlibpath_var=no
9115 ld_shlibs=no
9117 esac
9119 if test x$host_vendor = xsni; then
9120 case $host in
9121 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9122 export_dynamic_flag_spec='${wl}-Blargedynsym'
9124 esac
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9129 $as_echo "$ld_shlibs" >&6; }
9130 test "$ld_shlibs" = no && can_build_shared=no
9132 with_gnu_ld=$with_gnu_ld
9149 # Do we need to explicitly link libc?
9151 case "x$archive_cmds_need_lc" in
9152 x|xyes)
9153 # Assume -lc should be added
9154 archive_cmds_need_lc=yes
9156 if test "$enable_shared" = yes && test "$GCC" = yes; then
9157 case $archive_cmds in
9158 *'~'*)
9159 # FIXME: we may have to deal with multi-command sequences.
9161 '$CC '*)
9162 # Test whether the compiler implicitly links with -lc since on some
9163 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9164 # to ld, don't add -lc before -lgcc.
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9166 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9167 $RM conftest*
9168 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9171 (eval $ac_compile) 2>&5
9172 ac_status=$?
9173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9174 test $ac_status = 0; } 2>conftest.err; then
9175 soname=conftest
9176 lib=conftest
9177 libobjs=conftest.$ac_objext
9178 deplibs=
9179 wl=$lt_prog_compiler_wl
9180 pic_flag=$lt_prog_compiler_pic
9181 compiler_flags=-v
9182 linker_flags=-v
9183 verstring=
9184 output_objdir=.
9185 libname=conftest
9186 lt_save_allow_undefined_flag=$allow_undefined_flag
9187 allow_undefined_flag=
9188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9189 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9190 ac_status=$?
9191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9192 test $ac_status = 0; }
9193 then
9194 archive_cmds_need_lc=no
9195 else
9196 archive_cmds_need_lc=yes
9198 allow_undefined_flag=$lt_save_allow_undefined_flag
9199 else
9200 cat conftest.err 1>&5
9202 $RM conftest*
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9204 $as_echo "$archive_cmds_need_lc" >&6; }
9206 esac
9209 esac
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9368 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9370 if test "$GCC" = yes; then
9371 case $host_os in
9372 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9373 *) lt_awk_arg="/^libraries:/" ;;
9374 esac
9375 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9376 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9377 # if the path contains ";" then we assume it to be the separator
9378 # otherwise default to the standard path separator (i.e. ":") - it is
9379 # assumed that no part of a normal pathname contains ";" but that should
9380 # okay in the real world where ";" in dirpaths is itself problematic.
9381 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9382 else
9383 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9385 # Ok, now we have the path, separated by spaces, we can step through it
9386 # and add multilib dir if necessary.
9387 lt_tmp_lt_search_path_spec=
9388 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9389 for lt_sys_path in $lt_search_path_spec; do
9390 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9391 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9392 else
9393 test -d "$lt_sys_path" && \
9394 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9396 done
9397 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9398 BEGIN {RS=" "; FS="/|\n";} {
9399 lt_foo="";
9400 lt_count=0;
9401 for (lt_i = NF; lt_i > 0; lt_i--) {
9402 if ($lt_i != "" && $lt_i != ".") {
9403 if ($lt_i == "..") {
9404 lt_count++;
9405 } else {
9406 if (lt_count == 0) {
9407 lt_foo="/" $lt_i lt_foo;
9408 } else {
9409 lt_count--;
9414 if (lt_foo != "") { lt_freq[lt_foo]++; }
9415 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9417 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9418 else
9419 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9421 library_names_spec=
9422 libname_spec='lib$name'
9423 soname_spec=
9424 shrext_cmds=".so"
9425 postinstall_cmds=
9426 postuninstall_cmds=
9427 finish_cmds=
9428 finish_eval=
9429 shlibpath_var=
9430 shlibpath_overrides_runpath=unknown
9431 version_type=none
9432 dynamic_linker="$host_os ld.so"
9433 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9434 need_lib_prefix=unknown
9435 hardcode_into_libs=no
9437 # when you set need_version to no, make sure it does not cause -set_version
9438 # flags to be left without arguments
9439 need_version=unknown
9441 case $host_os in
9442 aix3*)
9443 version_type=linux
9444 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9445 shlibpath_var=LIBPATH
9447 # AIX 3 has no versioning support, so we append a major version to the name.
9448 soname_spec='${libname}${release}${shared_ext}$major'
9451 aix[4-9]*)
9452 version_type=linux
9453 need_lib_prefix=no
9454 need_version=no
9455 hardcode_into_libs=yes
9456 if test "$host_cpu" = ia64; then
9457 # AIX 5 supports IA64
9458 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9459 shlibpath_var=LD_LIBRARY_PATH
9460 else
9461 # With GCC up to 2.95.x, collect2 would create an import file
9462 # for dependence libraries. The import file would start with
9463 # the line `#! .'. This would cause the generated library to
9464 # depend on `.', always an invalid library. This was fixed in
9465 # development snapshots of GCC prior to 3.0.
9466 case $host_os in
9467 aix4 | aix4.[01] | aix4.[01].*)
9468 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9469 echo ' yes '
9470 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9472 else
9473 can_build_shared=no
9476 esac
9477 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9478 # soname into executable. Probably we can add versioning support to
9479 # collect2, so additional links can be useful in future.
9480 if test "$aix_use_runtimelinking" = yes; then
9481 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9482 # instead of lib<name>.a to let people know that these are not
9483 # typical AIX shared libraries.
9484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485 else
9486 # We preserve .a as extension for shared libraries through AIX4.2
9487 # and later when we are not doing run time linking.
9488 library_names_spec='${libname}${release}.a $libname.a'
9489 soname_spec='${libname}${release}${shared_ext}$major'
9491 shlibpath_var=LIBPATH
9495 amigaos*)
9496 case $host_cpu in
9497 powerpc)
9498 # Since July 2007 AmigaOS4 officially supports .so libraries.
9499 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9502 m68k)
9503 library_names_spec='$libname.ixlibrary $libname.a'
9504 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9505 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'
9507 esac
9510 beos*)
9511 library_names_spec='${libname}${shared_ext}'
9512 dynamic_linker="$host_os ld.so"
9513 shlibpath_var=LIBRARY_PATH
9516 bsdi[45]*)
9517 version_type=linux
9518 need_version=no
9519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9520 soname_spec='${libname}${release}${shared_ext}$major'
9521 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9522 shlibpath_var=LD_LIBRARY_PATH
9523 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9524 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9525 # the default ld.so.conf also contains /usr/contrib/lib and
9526 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9527 # libtool to hard-code these into programs
9530 cygwin* | mingw* | pw32* | cegcc*)
9531 version_type=windows
9532 shrext_cmds=".dll"
9533 need_version=no
9534 need_lib_prefix=no
9536 case $GCC,$host_os in
9537 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9538 library_names_spec='$libname.dll.a'
9539 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9540 postinstall_cmds='base_file=`basename \${file}`~
9541 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9542 dldir=$destdir/`dirname \$dlpath`~
9543 test -d \$dldir || mkdir -p \$dldir~
9544 $install_prog $dir/$dlname \$dldir/$dlname~
9545 chmod a+x \$dldir/$dlname~
9546 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9547 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9549 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9550 dlpath=$dir/\$dldll~
9551 $RM \$dlpath'
9552 shlibpath_overrides_runpath=yes
9554 case $host_os in
9555 cygwin*)
9556 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9557 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9558 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9560 mingw* | cegcc*)
9561 # MinGW DLLs use traditional 'lib' prefix
9562 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9563 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9564 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9565 # It is most probably a Windows format PATH printed by
9566 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9567 # path with ; separators, and with drive letters. We can handle the
9568 # drive letters (cygwin fileutils understands them), so leave them,
9569 # especially as we might pass files found there to a mingw objdump,
9570 # which wouldn't understand a cygwinified path. Ahh.
9571 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9572 else
9573 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9576 pw32*)
9577 # pw32 DLLs use 'pw' prefix rather than 'lib'
9578 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9580 esac
9584 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9586 esac
9587 dynamic_linker='Win32 ld.exe'
9588 # FIXME: first we should search . and the directory the executable is in
9589 shlibpath_var=PATH
9592 darwin* | rhapsody*)
9593 dynamic_linker="$host_os dyld"
9594 version_type=darwin
9595 need_lib_prefix=no
9596 need_version=no
9597 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9598 soname_spec='${libname}${release}${major}$shared_ext'
9599 shlibpath_overrides_runpath=yes
9600 shlibpath_var=DYLD_LIBRARY_PATH
9601 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9603 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9604 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9607 dgux*)
9608 version_type=linux
9609 need_lib_prefix=no
9610 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
9616 freebsd1*)
9617 dynamic_linker=no
9620 freebsd* | dragonfly*)
9621 # DragonFly does not have aout. When/if they implement a new
9622 # versioning mechanism, adjust this.
9623 if test -x /usr/bin/objformat; then
9624 objformat=`/usr/bin/objformat`
9625 else
9626 case $host_os in
9627 freebsd[123]*) objformat=aout ;;
9628 *) objformat=elf ;;
9629 esac
9631 version_type=freebsd-$objformat
9632 case $version_type in
9633 freebsd-elf*)
9634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9635 need_version=no
9636 need_lib_prefix=no
9638 freebsd-*)
9639 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9640 need_version=yes
9642 esac
9643 shlibpath_var=LD_LIBRARY_PATH
9644 case $host_os in
9645 freebsd2*)
9646 shlibpath_overrides_runpath=yes
9648 freebsd3.[01]* | freebsdelf3.[01]*)
9649 shlibpath_overrides_runpath=yes
9650 hardcode_into_libs=yes
9652 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9653 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9654 shlibpath_overrides_runpath=no
9655 hardcode_into_libs=yes
9657 *) # from 4.6 on, and DragonFly
9658 shlibpath_overrides_runpath=yes
9659 hardcode_into_libs=yes
9661 esac
9664 gnu*)
9665 version_type=linux
9666 need_lib_prefix=no
9667 need_version=no
9668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9669 soname_spec='${libname}${release}${shared_ext}$major'
9670 shlibpath_var=LD_LIBRARY_PATH
9671 hardcode_into_libs=yes
9674 hpux9* | hpux10* | hpux11*)
9675 # Give a soname corresponding to the major version so that dld.sl refuses to
9676 # link against other versions.
9677 version_type=sunos
9678 need_lib_prefix=no
9679 need_version=no
9680 case $host_cpu in
9681 ia64*)
9682 shrext_cmds='.so'
9683 hardcode_into_libs=yes
9684 dynamic_linker="$host_os dld.so"
9685 shlibpath_var=LD_LIBRARY_PATH
9686 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9688 soname_spec='${libname}${release}${shared_ext}$major'
9689 if test "X$HPUX_IA64_MODE" = X32; then
9690 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9691 else
9692 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9694 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9696 hppa*64*)
9697 shrext_cmds='.sl'
9698 hardcode_into_libs=yes
9699 dynamic_linker="$host_os dld.sl"
9700 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9701 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9703 soname_spec='${libname}${release}${shared_ext}$major'
9704 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9705 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9708 shrext_cmds='.sl'
9709 dynamic_linker="$host_os dld.sl"
9710 shlibpath_var=SHLIB_PATH
9711 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9713 soname_spec='${libname}${release}${shared_ext}$major'
9715 esac
9716 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9717 postinstall_cmds='chmod 555 $lib'
9720 interix[3-9]*)
9721 version_type=linux
9722 need_lib_prefix=no
9723 need_version=no
9724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9725 soname_spec='${libname}${release}${shared_ext}$major'
9726 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9727 shlibpath_var=LD_LIBRARY_PATH
9728 shlibpath_overrides_runpath=no
9729 hardcode_into_libs=yes
9732 irix5* | irix6* | nonstopux*)
9733 case $host_os in
9734 nonstopux*) version_type=nonstopux ;;
9736 if test "$lt_cv_prog_gnu_ld" = yes; then
9737 version_type=linux
9738 else
9739 version_type=irix
9740 fi ;;
9741 esac
9742 need_lib_prefix=no
9743 need_version=no
9744 soname_spec='${libname}${release}${shared_ext}$major'
9745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9746 case $host_os in
9747 irix5* | nonstopux*)
9748 libsuff= shlibsuff=
9751 case $LD in # libtool.m4 will add one of these switches to LD
9752 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9753 libsuff= shlibsuff= libmagic=32-bit;;
9754 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9755 libsuff=32 shlibsuff=N32 libmagic=N32;;
9756 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9757 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9758 *) libsuff= shlibsuff= libmagic=never-match;;
9759 esac
9761 esac
9762 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9763 shlibpath_overrides_runpath=no
9764 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9765 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9766 hardcode_into_libs=yes
9769 # No shared lib support for Linux oldld, aout, or coff.
9770 linux*oldld* | linux*aout* | linux*coff*)
9771 dynamic_linker=no
9774 # This must be Linux ELF.
9775 linux* | k*bsd*-gnu)
9776 version_type=linux
9777 need_lib_prefix=no
9778 need_version=no
9779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9780 soname_spec='${libname}${release}${shared_ext}$major'
9781 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9782 shlibpath_var=LD_LIBRARY_PATH
9783 shlibpath_overrides_runpath=no
9784 # Some binutils ld are patched to set DT_RUNPATH
9785 save_LDFLAGS=$LDFLAGS
9786 save_libdir=$libdir
9787 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9788 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9790 /* end confdefs.h. */
9793 main ()
9797 return 0;
9799 _ACEOF
9800 if ac_fn_c_try_link "$LINENO"; then :
9801 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9802 shlibpath_overrides_runpath=yes
9805 rm -f core conftest.err conftest.$ac_objext \
9806 conftest$ac_exeext conftest.$ac_ext
9807 LDFLAGS=$save_LDFLAGS
9808 libdir=$save_libdir
9810 # This implies no fast_install, which is unacceptable.
9811 # Some rework will be needed to allow for fast_install
9812 # before this can be enabled.
9813 hardcode_into_libs=yes
9815 # Append ld.so.conf contents to the search path
9816 if test -f /etc/ld.so.conf; then
9817 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' ' '`
9818 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9821 # We used to test for /lib/ld.so.1 and disable shared libraries on
9822 # powerpc, because MkLinux only supported shared libraries with the
9823 # GNU dynamic linker. Since this was broken with cross compilers,
9824 # most powerpc-linux boxes support dynamic linking these days and
9825 # people can always --disable-shared, the test was removed, and we
9826 # assume the GNU/Linux dynamic linker is in use.
9827 dynamic_linker='GNU/Linux ld.so'
9830 netbsd*)
9831 version_type=sunos
9832 need_lib_prefix=no
9833 need_version=no
9834 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9836 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9837 dynamic_linker='NetBSD (a.out) ld.so'
9838 else
9839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9840 soname_spec='${libname}${release}${shared_ext}$major'
9841 dynamic_linker='NetBSD ld.elf_so'
9843 shlibpath_var=LD_LIBRARY_PATH
9844 shlibpath_overrides_runpath=yes
9845 hardcode_into_libs=yes
9848 newsos6)
9849 version_type=linux
9850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9851 shlibpath_var=LD_LIBRARY_PATH
9852 shlibpath_overrides_runpath=yes
9855 *nto* | *qnx*)
9856 version_type=qnx
9857 need_lib_prefix=no
9858 need_version=no
9859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9860 soname_spec='${libname}${release}${shared_ext}$major'
9861 shlibpath_var=LD_LIBRARY_PATH
9862 shlibpath_overrides_runpath=no
9863 hardcode_into_libs=yes
9864 dynamic_linker='ldqnx.so'
9867 openbsd*)
9868 version_type=sunos
9869 sys_lib_dlsearch_path_spec="/usr/lib"
9870 need_lib_prefix=no
9871 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9872 case $host_os in
9873 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9874 *) need_version=no ;;
9875 esac
9876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9878 shlibpath_var=LD_LIBRARY_PATH
9879 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9880 case $host_os in
9881 openbsd2.[89] | openbsd2.[89].*)
9882 shlibpath_overrides_runpath=no
9885 shlibpath_overrides_runpath=yes
9887 esac
9888 else
9889 shlibpath_overrides_runpath=yes
9893 os2*)
9894 libname_spec='$name'
9895 shrext_cmds=".dll"
9896 need_lib_prefix=no
9897 library_names_spec='$libname${shared_ext} $libname.a'
9898 dynamic_linker='OS/2 ld.exe'
9899 shlibpath_var=LIBPATH
9902 osf3* | osf4* | osf5*)
9903 version_type=osf
9904 need_lib_prefix=no
9905 need_version=no
9906 soname_spec='${libname}${release}${shared_ext}$major'
9907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9908 shlibpath_var=LD_LIBRARY_PATH
9909 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9910 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9913 rdos*)
9914 dynamic_linker=no
9917 solaris*)
9918 version_type=linux
9919 need_lib_prefix=no
9920 need_version=no
9921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9922 soname_spec='${libname}${release}${shared_ext}$major'
9923 shlibpath_var=LD_LIBRARY_PATH
9924 shlibpath_overrides_runpath=yes
9925 hardcode_into_libs=yes
9926 # ldd complains unless libraries are executable
9927 postinstall_cmds='chmod +x $lib'
9930 sunos4*)
9931 version_type=sunos
9932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9933 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9934 shlibpath_var=LD_LIBRARY_PATH
9935 shlibpath_overrides_runpath=yes
9936 if test "$with_gnu_ld" = yes; then
9937 need_lib_prefix=no
9939 need_version=yes
9942 sysv4 | sysv4.3*)
9943 version_type=linux
9944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9945 soname_spec='${libname}${release}${shared_ext}$major'
9946 shlibpath_var=LD_LIBRARY_PATH
9947 case $host_vendor in
9948 sni)
9949 shlibpath_overrides_runpath=no
9950 need_lib_prefix=no
9951 runpath_var=LD_RUN_PATH
9953 siemens)
9954 need_lib_prefix=no
9956 motorola)
9957 need_lib_prefix=no
9958 need_version=no
9959 shlibpath_overrides_runpath=no
9960 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9962 esac
9965 sysv4*MP*)
9966 if test -d /usr/nec ;then
9967 version_type=linux
9968 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9969 soname_spec='$libname${shared_ext}.$major'
9970 shlibpath_var=LD_LIBRARY_PATH
9974 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9975 version_type=freebsd-elf
9976 need_lib_prefix=no
9977 need_version=no
9978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9979 soname_spec='${libname}${release}${shared_ext}$major'
9980 shlibpath_var=LD_LIBRARY_PATH
9981 shlibpath_overrides_runpath=yes
9982 hardcode_into_libs=yes
9983 if test "$with_gnu_ld" = yes; then
9984 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9985 else
9986 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9987 case $host_os in
9988 sco3.2v5*)
9989 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9991 esac
9993 sys_lib_dlsearch_path_spec='/usr/lib'
9996 tpf*)
9997 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9998 version_type=linux
9999 need_lib_prefix=no
10000 need_version=no
10001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10002 shlibpath_var=LD_LIBRARY_PATH
10003 shlibpath_overrides_runpath=no
10004 hardcode_into_libs=yes
10007 uts4*)
10008 version_type=linux
10009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10010 soname_spec='${libname}${release}${shared_ext}$major'
10011 shlibpath_var=LD_LIBRARY_PATH
10015 dynamic_linker=no
10017 esac
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10019 $as_echo "$dynamic_linker" >&6; }
10020 test "$dynamic_linker" = no && can_build_shared=no
10022 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10023 if test "$GCC" = yes; then
10024 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10027 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10028 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10030 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10031 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10121 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10122 hardcode_action=
10123 if test -n "$hardcode_libdir_flag_spec" ||
10124 test -n "$runpath_var" ||
10125 test "X$hardcode_automatic" = "Xyes" ; then
10127 # We can hardcode non-existent directories.
10128 if test "$hardcode_direct" != no &&
10129 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10130 # have to relink, otherwise we might link with an installed library
10131 # when we should be linking with a yet-to-be-installed one
10132 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10133 test "$hardcode_minus_L" != no; then
10134 # Linking always hardcodes the temporary library directory.
10135 hardcode_action=relink
10136 else
10137 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10138 hardcode_action=immediate
10140 else
10141 # We cannot hardcode anything, or else we can only hardcode existing
10142 # directories.
10143 hardcode_action=unsupported
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10146 $as_echo "$hardcode_action" >&6; }
10148 if test "$hardcode_action" = relink ||
10149 test "$inherit_rpath" = yes; then
10150 # Fast installation is not supported
10151 enable_fast_install=no
10152 elif test "$shlibpath_overrides_runpath" = yes ||
10153 test "$enable_shared" = no; then
10154 # Fast installation is not necessary
10155 enable_fast_install=needless
10163 if test "x$enable_dlopen" != xyes; then
10164 enable_dlopen=unknown
10165 enable_dlopen_self=unknown
10166 enable_dlopen_self_static=unknown
10167 else
10168 lt_cv_dlopen=no
10169 lt_cv_dlopen_libs=
10171 case $host_os in
10172 beos*)
10173 lt_cv_dlopen="load_add_on"
10174 lt_cv_dlopen_libs=
10175 lt_cv_dlopen_self=yes
10178 mingw* | pw32* | cegcc*)
10179 lt_cv_dlopen="LoadLibrary"
10180 lt_cv_dlopen_libs=
10183 cygwin*)
10184 lt_cv_dlopen="dlopen"
10185 lt_cv_dlopen_libs=
10188 darwin*)
10189 # if libdl is installed we need to link against it
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10191 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10192 if ${ac_cv_lib_dl_dlopen+:} false; then :
10193 $as_echo_n "(cached) " >&6
10194 else
10195 ac_check_lib_save_LIBS=$LIBS
10196 LIBS="-ldl $LIBS"
10197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10198 /* end confdefs.h. */
10200 /* Override any GCC internal prototype to avoid an error.
10201 Use char because int might match the return type of a GCC
10202 builtin and then its argument prototype would still apply. */
10203 #ifdef __cplusplus
10204 extern "C"
10205 #endif
10206 char dlopen ();
10208 main ()
10210 return dlopen ();
10212 return 0;
10214 _ACEOF
10215 if ac_fn_c_try_link "$LINENO"; then :
10216 ac_cv_lib_dl_dlopen=yes
10217 else
10218 ac_cv_lib_dl_dlopen=no
10220 rm -f core conftest.err conftest.$ac_objext \
10221 conftest$ac_exeext conftest.$ac_ext
10222 LIBS=$ac_check_lib_save_LIBS
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10225 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10226 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10227 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10228 else
10230 lt_cv_dlopen="dyld"
10231 lt_cv_dlopen_libs=
10232 lt_cv_dlopen_self=yes
10239 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10240 if test "x$ac_cv_func_shl_load" = xyes; then :
10241 lt_cv_dlopen="shl_load"
10242 else
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10244 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10245 if ${ac_cv_lib_dld_shl_load+:} false; then :
10246 $as_echo_n "(cached) " >&6
10247 else
10248 ac_check_lib_save_LIBS=$LIBS
10249 LIBS="-ldld $LIBS"
10250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10251 /* end confdefs.h. */
10253 /* Override any GCC internal prototype to avoid an error.
10254 Use char because int might match the return type of a GCC
10255 builtin and then its argument prototype would still apply. */
10256 #ifdef __cplusplus
10257 extern "C"
10258 #endif
10259 char shl_load ();
10261 main ()
10263 return shl_load ();
10265 return 0;
10267 _ACEOF
10268 if ac_fn_c_try_link "$LINENO"; then :
10269 ac_cv_lib_dld_shl_load=yes
10270 else
10271 ac_cv_lib_dld_shl_load=no
10273 rm -f core conftest.err conftest.$ac_objext \
10274 conftest$ac_exeext conftest.$ac_ext
10275 LIBS=$ac_check_lib_save_LIBS
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10278 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10279 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10280 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10281 else
10282 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10283 if test "x$ac_cv_func_dlopen" = xyes; then :
10284 lt_cv_dlopen="dlopen"
10285 else
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10287 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10288 if ${ac_cv_lib_dl_dlopen+:} false; then :
10289 $as_echo_n "(cached) " >&6
10290 else
10291 ac_check_lib_save_LIBS=$LIBS
10292 LIBS="-ldl $LIBS"
10293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10294 /* end confdefs.h. */
10296 /* Override any GCC internal prototype to avoid an error.
10297 Use char because int might match the return type of a GCC
10298 builtin and then its argument prototype would still apply. */
10299 #ifdef __cplusplus
10300 extern "C"
10301 #endif
10302 char dlopen ();
10304 main ()
10306 return dlopen ();
10308 return 0;
10310 _ACEOF
10311 if ac_fn_c_try_link "$LINENO"; then :
10312 ac_cv_lib_dl_dlopen=yes
10313 else
10314 ac_cv_lib_dl_dlopen=no
10316 rm -f core conftest.err conftest.$ac_objext \
10317 conftest$ac_exeext conftest.$ac_ext
10318 LIBS=$ac_check_lib_save_LIBS
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10321 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10322 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10323 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10324 else
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10326 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10327 if ${ac_cv_lib_svld_dlopen+:} false; then :
10328 $as_echo_n "(cached) " >&6
10329 else
10330 ac_check_lib_save_LIBS=$LIBS
10331 LIBS="-lsvld $LIBS"
10332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10333 /* end confdefs.h. */
10335 /* Override any GCC internal prototype to avoid an error.
10336 Use char because int might match the return type of a GCC
10337 builtin and then its argument prototype would still apply. */
10338 #ifdef __cplusplus
10339 extern "C"
10340 #endif
10341 char dlopen ();
10343 main ()
10345 return dlopen ();
10347 return 0;
10349 _ACEOF
10350 if ac_fn_c_try_link "$LINENO"; then :
10351 ac_cv_lib_svld_dlopen=yes
10352 else
10353 ac_cv_lib_svld_dlopen=no
10355 rm -f core conftest.err conftest.$ac_objext \
10356 conftest$ac_exeext conftest.$ac_ext
10357 LIBS=$ac_check_lib_save_LIBS
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10360 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10361 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10362 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10363 else
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10365 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10366 if ${ac_cv_lib_dld_dld_link+:} false; then :
10367 $as_echo_n "(cached) " >&6
10368 else
10369 ac_check_lib_save_LIBS=$LIBS
10370 LIBS="-ldld $LIBS"
10371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10372 /* end confdefs.h. */
10374 /* Override any GCC internal prototype to avoid an error.
10375 Use char because int might match the return type of a GCC
10376 builtin and then its argument prototype would still apply. */
10377 #ifdef __cplusplus
10378 extern "C"
10379 #endif
10380 char dld_link ();
10382 main ()
10384 return dld_link ();
10386 return 0;
10388 _ACEOF
10389 if ac_fn_c_try_link "$LINENO"; then :
10390 ac_cv_lib_dld_dld_link=yes
10391 else
10392 ac_cv_lib_dld_dld_link=no
10394 rm -f core conftest.err conftest.$ac_objext \
10395 conftest$ac_exeext conftest.$ac_ext
10396 LIBS=$ac_check_lib_save_LIBS
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10399 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10400 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10401 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10420 esac
10422 if test "x$lt_cv_dlopen" != xno; then
10423 enable_dlopen=yes
10424 else
10425 enable_dlopen=no
10428 case $lt_cv_dlopen in
10429 dlopen)
10430 save_CPPFLAGS="$CPPFLAGS"
10431 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10433 save_LDFLAGS="$LDFLAGS"
10434 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10436 save_LIBS="$LIBS"
10437 LIBS="$lt_cv_dlopen_libs $LIBS"
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10440 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10441 if ${lt_cv_dlopen_self+:} false; then :
10442 $as_echo_n "(cached) " >&6
10443 else
10444 if test "$cross_compiling" = yes; then :
10445 lt_cv_dlopen_self=cross
10446 else
10447 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10448 lt_status=$lt_dlunknown
10449 cat > conftest.$ac_ext <<_LT_EOF
10450 #line 10450 "configure"
10451 #include "confdefs.h"
10453 #if HAVE_DLFCN_H
10454 #include <dlfcn.h>
10455 #endif
10457 #include <stdio.h>
10459 #ifdef RTLD_GLOBAL
10460 # define LT_DLGLOBAL RTLD_GLOBAL
10461 #else
10462 # ifdef DL_GLOBAL
10463 # define LT_DLGLOBAL DL_GLOBAL
10464 # else
10465 # define LT_DLGLOBAL 0
10466 # endif
10467 #endif
10469 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10470 find out it does not work in some platform. */
10471 #ifndef LT_DLLAZY_OR_NOW
10472 # ifdef RTLD_LAZY
10473 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10474 # else
10475 # ifdef DL_LAZY
10476 # define LT_DLLAZY_OR_NOW DL_LAZY
10477 # else
10478 # ifdef RTLD_NOW
10479 # define LT_DLLAZY_OR_NOW RTLD_NOW
10480 # else
10481 # ifdef DL_NOW
10482 # define LT_DLLAZY_OR_NOW DL_NOW
10483 # else
10484 # define LT_DLLAZY_OR_NOW 0
10485 # endif
10486 # endif
10487 # endif
10488 # endif
10489 #endif
10491 void fnord() { int i=42;}
10492 int main ()
10494 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10495 int status = $lt_dlunknown;
10497 if (self)
10499 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10500 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10501 /* dlclose (self); */
10503 else
10504 puts (dlerror ());
10506 return status;
10508 _LT_EOF
10509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10510 (eval $ac_link) 2>&5
10511 ac_status=$?
10512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10513 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10514 (./conftest; exit; ) >&5 2>/dev/null
10515 lt_status=$?
10516 case x$lt_status in
10517 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10518 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10519 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10520 esac
10521 else :
10522 # compilation failed
10523 lt_cv_dlopen_self=no
10526 rm -fr conftest*
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10531 $as_echo "$lt_cv_dlopen_self" >&6; }
10533 if test "x$lt_cv_dlopen_self" = xyes; then
10534 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10536 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10537 if ${lt_cv_dlopen_self_static+:} false; then :
10538 $as_echo_n "(cached) " >&6
10539 else
10540 if test "$cross_compiling" = yes; then :
10541 lt_cv_dlopen_self_static=cross
10542 else
10543 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10544 lt_status=$lt_dlunknown
10545 cat > conftest.$ac_ext <<_LT_EOF
10546 #line 10546 "configure"
10547 #include "confdefs.h"
10549 #if HAVE_DLFCN_H
10550 #include <dlfcn.h>
10551 #endif
10553 #include <stdio.h>
10555 #ifdef RTLD_GLOBAL
10556 # define LT_DLGLOBAL RTLD_GLOBAL
10557 #else
10558 # ifdef DL_GLOBAL
10559 # define LT_DLGLOBAL DL_GLOBAL
10560 # else
10561 # define LT_DLGLOBAL 0
10562 # endif
10563 #endif
10565 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10566 find out it does not work in some platform. */
10567 #ifndef LT_DLLAZY_OR_NOW
10568 # ifdef RTLD_LAZY
10569 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10570 # else
10571 # ifdef DL_LAZY
10572 # define LT_DLLAZY_OR_NOW DL_LAZY
10573 # else
10574 # ifdef RTLD_NOW
10575 # define LT_DLLAZY_OR_NOW RTLD_NOW
10576 # else
10577 # ifdef DL_NOW
10578 # define LT_DLLAZY_OR_NOW DL_NOW
10579 # else
10580 # define LT_DLLAZY_OR_NOW 0
10581 # endif
10582 # endif
10583 # endif
10584 # endif
10585 #endif
10587 void fnord() { int i=42;}
10588 int main ()
10590 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10591 int status = $lt_dlunknown;
10593 if (self)
10595 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10596 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10597 /* dlclose (self); */
10599 else
10600 puts (dlerror ());
10602 return status;
10604 _LT_EOF
10605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10606 (eval $ac_link) 2>&5
10607 ac_status=$?
10608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10609 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10610 (./conftest; exit; ) >&5 2>/dev/null
10611 lt_status=$?
10612 case x$lt_status in
10613 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10614 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10615 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10616 esac
10617 else :
10618 # compilation failed
10619 lt_cv_dlopen_self_static=no
10622 rm -fr conftest*
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10627 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10630 CPPFLAGS="$save_CPPFLAGS"
10631 LDFLAGS="$save_LDFLAGS"
10632 LIBS="$save_LIBS"
10634 esac
10636 case $lt_cv_dlopen_self in
10637 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10638 *) enable_dlopen_self=unknown ;;
10639 esac
10641 case $lt_cv_dlopen_self_static in
10642 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10643 *) enable_dlopen_self_static=unknown ;;
10644 esac
10663 striplib=
10664 old_striplib=
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10666 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10667 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10668 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10669 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10671 $as_echo "yes" >&6; }
10672 else
10673 # FIXME - insert some real tests, host_os isn't really good enough
10674 case $host_os in
10675 darwin*)
10676 if test -n "$STRIP" ; then
10677 striplib="$STRIP -x"
10678 old_striplib="$STRIP -S"
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10680 $as_echo "yes" >&6; }
10681 else
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10683 $as_echo "no" >&6; }
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10688 $as_echo "no" >&6; }
10690 esac
10704 # Report which library types will actually be built
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10706 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10708 $as_echo "$can_build_shared" >&6; }
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10711 $as_echo_n "checking whether to build shared libraries... " >&6; }
10712 test "$can_build_shared" = "no" && enable_shared=no
10714 # On AIX, shared libraries and static libraries use the same namespace, and
10715 # are all built from PIC.
10716 case $host_os in
10717 aix3*)
10718 test "$enable_shared" = yes && enable_static=no
10719 if test -n "$RANLIB"; then
10720 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10721 postinstall_cmds='$RANLIB $lib'
10725 aix[4-9]*)
10726 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10727 test "$enable_shared" = yes && enable_static=no
10730 esac
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10732 $as_echo "$enable_shared" >&6; }
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10735 $as_echo_n "checking whether to build static libraries... " >&6; }
10736 # Make sure either enable_shared or enable_static is yes.
10737 test "$enable_shared" = yes || enable_static=yes
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10739 $as_echo "$enable_static" >&6; }
10745 ac_ext=c
10746 ac_cpp='$CPP $CPPFLAGS'
10747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10751 CC="$lt_save_CC"
10765 ac_config_commands="$ac_config_commands libtool"
10770 # Only expand once:
10774 # Check whether --enable-tools was given.
10775 if test "${enable_tools+set}" = set; then :
10776 enableval=$enable_tools; case $enableval in
10777 yes|no) enable_tools=${enableval} ;;
10778 *) as_fn_error $? "Invalid value passed to --enable-tools" "$LINENO" 5 ;;
10779 esac
10780 else
10781 enable_tools=no
10784 ENABLE_TOOLS=${enable_tools}
10786 if test "${enable_tools}" = yes; then
10787 ENABLE_TOOLS_TRUE=
10788 ENABLE_TOOLS_FALSE='#'
10789 else
10790 ENABLE_TOOLS_TRUE='#'
10791 ENABLE_TOOLS_FALSE=
10796 ac_ext=c
10797 ac_cpp='$CPP $CPPFLAGS'
10798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10802 ac_ext=c
10803 ac_cpp='$CPP $CPPFLAGS'
10804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10807 if test -n "$ac_tool_prefix"; then
10808 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10809 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10811 $as_echo_n "checking for $ac_word... " >&6; }
10812 if ${ac_cv_prog_CC+:} false; then :
10813 $as_echo_n "(cached) " >&6
10814 else
10815 if test -n "$CC"; then
10816 ac_cv_prog_CC="$CC" # Let the user override the test.
10817 else
10818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10819 for as_dir in $PATH
10821 IFS=$as_save_IFS
10822 test -z "$as_dir" && as_dir=.
10823 for ac_exec_ext in '' $ac_executable_extensions; do
10824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10825 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10827 break 2
10829 done
10830 done
10831 IFS=$as_save_IFS
10835 CC=$ac_cv_prog_CC
10836 if test -n "$CC"; then
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10838 $as_echo "$CC" >&6; }
10839 else
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10841 $as_echo "no" >&6; }
10846 if test -z "$ac_cv_prog_CC"; then
10847 ac_ct_CC=$CC
10848 # Extract the first word of "gcc", so it can be a program name with args.
10849 set dummy gcc; ac_word=$2
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10851 $as_echo_n "checking for $ac_word... " >&6; }
10852 if ${ac_cv_prog_ac_ct_CC+:} false; then :
10853 $as_echo_n "(cached) " >&6
10854 else
10855 if test -n "$ac_ct_CC"; then
10856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10857 else
10858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10859 for as_dir in $PATH
10861 IFS=$as_save_IFS
10862 test -z "$as_dir" && as_dir=.
10863 for ac_exec_ext in '' $ac_executable_extensions; do
10864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10865 ac_cv_prog_ac_ct_CC="gcc"
10866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10867 break 2
10869 done
10870 done
10871 IFS=$as_save_IFS
10875 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10876 if test -n "$ac_ct_CC"; then
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10878 $as_echo "$ac_ct_CC" >&6; }
10879 else
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10881 $as_echo "no" >&6; }
10884 if test "x$ac_ct_CC" = x; then
10885 CC=""
10886 else
10887 case $cross_compiling:$ac_tool_warned in
10888 yes:)
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10891 ac_tool_warned=yes ;;
10892 esac
10893 CC=$ac_ct_CC
10895 else
10896 CC="$ac_cv_prog_CC"
10899 if test -z "$CC"; then
10900 if test -n "$ac_tool_prefix"; then
10901 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10902 set dummy ${ac_tool_prefix}cc; ac_word=$2
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10904 $as_echo_n "checking for $ac_word... " >&6; }
10905 if ${ac_cv_prog_CC+:} false; then :
10906 $as_echo_n "(cached) " >&6
10907 else
10908 if test -n "$CC"; then
10909 ac_cv_prog_CC="$CC" # Let the user override the test.
10910 else
10911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10912 for as_dir in $PATH
10914 IFS=$as_save_IFS
10915 test -z "$as_dir" && as_dir=.
10916 for ac_exec_ext in '' $ac_executable_extensions; do
10917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10918 ac_cv_prog_CC="${ac_tool_prefix}cc"
10919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10920 break 2
10922 done
10923 done
10924 IFS=$as_save_IFS
10928 CC=$ac_cv_prog_CC
10929 if test -n "$CC"; then
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10931 $as_echo "$CC" >&6; }
10932 else
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10934 $as_echo "no" >&6; }
10940 if test -z "$CC"; then
10941 # Extract the first word of "cc", so it can be a program name with args.
10942 set dummy cc; ac_word=$2
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10944 $as_echo_n "checking for $ac_word... " >&6; }
10945 if ${ac_cv_prog_CC+:} false; then :
10946 $as_echo_n "(cached) " >&6
10947 else
10948 if test -n "$CC"; then
10949 ac_cv_prog_CC="$CC" # Let the user override the test.
10950 else
10951 ac_prog_rejected=no
10952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10953 for as_dir in $PATH
10955 IFS=$as_save_IFS
10956 test -z "$as_dir" && as_dir=.
10957 for ac_exec_ext in '' $ac_executable_extensions; do
10958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10959 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10960 ac_prog_rejected=yes
10961 continue
10963 ac_cv_prog_CC="cc"
10964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10965 break 2
10967 done
10968 done
10969 IFS=$as_save_IFS
10971 if test $ac_prog_rejected = yes; then
10972 # We found a bogon in the path, so make sure we never use it.
10973 set dummy $ac_cv_prog_CC
10974 shift
10975 if test $# != 0; then
10976 # We chose a different compiler from the bogus one.
10977 # However, it has the same basename, so the bogon will be chosen
10978 # first if we set CC to just the basename; use the full file name.
10979 shift
10980 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10985 CC=$ac_cv_prog_CC
10986 if test -n "$CC"; then
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10988 $as_echo "$CC" >&6; }
10989 else
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10991 $as_echo "no" >&6; }
10996 if test -z "$CC"; then
10997 if test -n "$ac_tool_prefix"; then
10998 for ac_prog in cl.exe
11000 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11001 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11003 $as_echo_n "checking for $ac_word... " >&6; }
11004 if ${ac_cv_prog_CC+:} false; then :
11005 $as_echo_n "(cached) " >&6
11006 else
11007 if test -n "$CC"; then
11008 ac_cv_prog_CC="$CC" # Let the user override the test.
11009 else
11010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11011 for as_dir in $PATH
11013 IFS=$as_save_IFS
11014 test -z "$as_dir" && as_dir=.
11015 for ac_exec_ext in '' $ac_executable_extensions; do
11016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11017 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11019 break 2
11021 done
11022 done
11023 IFS=$as_save_IFS
11027 CC=$ac_cv_prog_CC
11028 if test -n "$CC"; then
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11030 $as_echo "$CC" >&6; }
11031 else
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11033 $as_echo "no" >&6; }
11037 test -n "$CC" && break
11038 done
11040 if test -z "$CC"; then
11041 ac_ct_CC=$CC
11042 for ac_prog in cl.exe
11044 # Extract the first word of "$ac_prog", so it can be a program name with args.
11045 set dummy $ac_prog; ac_word=$2
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11047 $as_echo_n "checking for $ac_word... " >&6; }
11048 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11049 $as_echo_n "(cached) " >&6
11050 else
11051 if test -n "$ac_ct_CC"; then
11052 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11053 else
11054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11055 for as_dir in $PATH
11057 IFS=$as_save_IFS
11058 test -z "$as_dir" && as_dir=.
11059 for ac_exec_ext in '' $ac_executable_extensions; do
11060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11061 ac_cv_prog_ac_ct_CC="$ac_prog"
11062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11063 break 2
11065 done
11066 done
11067 IFS=$as_save_IFS
11071 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11072 if test -n "$ac_ct_CC"; then
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11074 $as_echo "$ac_ct_CC" >&6; }
11075 else
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11077 $as_echo "no" >&6; }
11081 test -n "$ac_ct_CC" && break
11082 done
11084 if test "x$ac_ct_CC" = x; then
11085 CC=""
11086 else
11087 case $cross_compiling:$ac_tool_warned in
11088 yes:)
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11091 ac_tool_warned=yes ;;
11092 esac
11093 CC=$ac_ct_CC
11100 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11102 as_fn_error $? "no acceptable C compiler found in \$PATH
11103 See \`config.log' for more details" "$LINENO" 5; }
11105 # Provide some information about the compiler.
11106 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11107 set X $ac_compile
11108 ac_compiler=$2
11109 for ac_option in --version -v -V -qversion; do
11110 { { ac_try="$ac_compiler $ac_option >&5"
11111 case "(($ac_try" in
11112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11113 *) ac_try_echo=$ac_try;;
11114 esac
11115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11116 $as_echo "$ac_try_echo"; } >&5
11117 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11118 ac_status=$?
11119 if test -s conftest.err; then
11120 sed '10a\
11121 ... rest of stderr output deleted ...
11122 10q' conftest.err >conftest.er1
11123 cat conftest.er1 >&5
11125 rm -f conftest.er1 conftest.err
11126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11127 test $ac_status = 0; }
11128 done
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11131 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11132 if ${ac_cv_c_compiler_gnu+:} false; then :
11133 $as_echo_n "(cached) " >&6
11134 else
11135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11136 /* end confdefs.h. */
11139 main ()
11141 #ifndef __GNUC__
11142 choke me
11143 #endif
11146 return 0;
11148 _ACEOF
11149 if ac_fn_c_try_compile "$LINENO"; then :
11150 ac_compiler_gnu=yes
11151 else
11152 ac_compiler_gnu=no
11154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11155 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11159 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11160 if test $ac_compiler_gnu = yes; then
11161 GCC=yes
11162 else
11163 GCC=
11165 ac_test_CFLAGS=${CFLAGS+set}
11166 ac_save_CFLAGS=$CFLAGS
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11168 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11169 if ${ac_cv_prog_cc_g+:} false; then :
11170 $as_echo_n "(cached) " >&6
11171 else
11172 ac_save_c_werror_flag=$ac_c_werror_flag
11173 ac_c_werror_flag=yes
11174 ac_cv_prog_cc_g=no
11175 CFLAGS="-g"
11176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11177 /* end confdefs.h. */
11180 main ()
11184 return 0;
11186 _ACEOF
11187 if ac_fn_c_try_compile "$LINENO"; then :
11188 ac_cv_prog_cc_g=yes
11189 else
11190 CFLAGS=""
11191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11192 /* end confdefs.h. */
11195 main ()
11199 return 0;
11201 _ACEOF
11202 if ac_fn_c_try_compile "$LINENO"; then :
11204 else
11205 ac_c_werror_flag=$ac_save_c_werror_flag
11206 CFLAGS="-g"
11207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11208 /* end confdefs.h. */
11211 main ()
11215 return 0;
11217 _ACEOF
11218 if ac_fn_c_try_compile "$LINENO"; then :
11219 ac_cv_prog_cc_g=yes
11221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11226 ac_c_werror_flag=$ac_save_c_werror_flag
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11229 $as_echo "$ac_cv_prog_cc_g" >&6; }
11230 if test "$ac_test_CFLAGS" = set; then
11231 CFLAGS=$ac_save_CFLAGS
11232 elif test $ac_cv_prog_cc_g = yes; then
11233 if test "$GCC" = yes; then
11234 CFLAGS="-g -O2"
11235 else
11236 CFLAGS="-g"
11238 else
11239 if test "$GCC" = yes; then
11240 CFLAGS="-O2"
11241 else
11242 CFLAGS=
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11246 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11247 if ${ac_cv_prog_cc_c89+:} false; then :
11248 $as_echo_n "(cached) " >&6
11249 else
11250 ac_cv_prog_cc_c89=no
11251 ac_save_CC=$CC
11252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11253 /* end confdefs.h. */
11254 #include <stdarg.h>
11255 #include <stdio.h>
11256 struct stat;
11257 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11258 struct buf { int x; };
11259 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11260 static char *e (p, i)
11261 char **p;
11262 int i;
11264 return p[i];
11266 static char *f (char * (*g) (char **, int), char **p, ...)
11268 char *s;
11269 va_list v;
11270 va_start (v,p);
11271 s = g (p, va_arg (v,int));
11272 va_end (v);
11273 return s;
11276 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11277 function prototypes and stuff, but not '\xHH' hex character constants.
11278 These don't provoke an error unfortunately, instead are silently treated
11279 as 'x'. The following induces an error, until -std is added to get
11280 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11281 array size at least. It's necessary to write '\x00'==0 to get something
11282 that's true only with -std. */
11283 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11285 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11286 inside strings and character constants. */
11287 #define FOO(x) 'x'
11288 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11290 int test (int i, double x);
11291 struct s1 {int (*f) (int a);};
11292 struct s2 {int (*f) (double a);};
11293 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11294 int argc;
11295 char **argv;
11297 main ()
11299 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11301 return 0;
11303 _ACEOF
11304 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11305 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11307 CC="$ac_save_CC $ac_arg"
11308 if ac_fn_c_try_compile "$LINENO"; then :
11309 ac_cv_prog_cc_c89=$ac_arg
11311 rm -f core conftest.err conftest.$ac_objext
11312 test "x$ac_cv_prog_cc_c89" != "xno" && break
11313 done
11314 rm -f conftest.$ac_ext
11315 CC=$ac_save_CC
11318 # AC_CACHE_VAL
11319 case "x$ac_cv_prog_cc_c89" in
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11322 $as_echo "none needed" >&6; } ;;
11323 xno)
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11325 $as_echo "unsupported" >&6; } ;;
11327 CC="$CC $ac_cv_prog_cc_c89"
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11329 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11330 esac
11331 if test "x$ac_cv_prog_cc_c89" != xno; then :
11335 ac_ext=c
11336 ac_cpp='$CPP $CPPFLAGS'
11337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11341 depcc="$CC" am_compiler_list=
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11344 $as_echo_n "checking dependency style of $depcc... " >&6; }
11345 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11346 $as_echo_n "(cached) " >&6
11347 else
11348 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11349 # We make a subdir and do the tests there. Otherwise we can end up
11350 # making bogus files that we don't know about and never remove. For
11351 # instance it was reported that on HP-UX the gcc test will end up
11352 # making a dummy file named 'D' -- because '-MD' means "put the output
11353 # in D".
11354 rm -rf conftest.dir
11355 mkdir conftest.dir
11356 # Copy depcomp to subdir because otherwise we won't find it if we're
11357 # using a relative directory.
11358 cp "$am_depcomp" conftest.dir
11359 cd conftest.dir
11360 # We will build objects and dependencies in a subdirectory because
11361 # it helps to detect inapplicable dependency modes. For instance
11362 # both Tru64's cc and ICC support -MD to output dependencies as a
11363 # side effect of compilation, but ICC will put the dependencies in
11364 # the current directory while Tru64 will put them in the object
11365 # directory.
11366 mkdir sub
11368 am_cv_CC_dependencies_compiler_type=none
11369 if test "$am_compiler_list" = ""; then
11370 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11372 am__universal=false
11373 case " $depcc " in #(
11374 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11375 esac
11377 for depmode in $am_compiler_list; do
11378 # Setup a source with many dependencies, because some compilers
11379 # like to wrap large dependency lists on column 80 (with \), and
11380 # we should not choose a depcomp mode which is confused by this.
11382 # We need to recreate these files for each test, as the compiler may
11383 # overwrite some of them when testing with obscure command lines.
11384 # This happens at least with the AIX C compiler.
11385 : > sub/conftest.c
11386 for i in 1 2 3 4 5 6; do
11387 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11388 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11389 # Solaris 10 /bin/sh.
11390 echo '/* dummy */' > sub/conftst$i.h
11391 done
11392 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11394 # We check with '-c' and '-o' for the sake of the "dashmstdout"
11395 # mode. It turns out that the SunPro C++ compiler does not properly
11396 # handle '-M -o', and we need to detect this. Also, some Intel
11397 # versions had trouble with output in subdirs.
11398 am__obj=sub/conftest.${OBJEXT-o}
11399 am__minus_obj="-o $am__obj"
11400 case $depmode in
11401 gcc)
11402 # This depmode causes a compiler race in universal mode.
11403 test "$am__universal" = false || continue
11405 nosideeffect)
11406 # After this tag, mechanisms are not by side-effect, so they'll
11407 # only be used when explicitly requested.
11408 if test "x$enable_dependency_tracking" = xyes; then
11409 continue
11410 else
11411 break
11414 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11415 # This compiler won't grok '-c -o', but also, the minuso test has
11416 # not run yet. These depmodes are late enough in the game, and
11417 # so weak that their functioning should not be impacted.
11418 am__obj=conftest.${OBJEXT-o}
11419 am__minus_obj=
11421 none) break ;;
11422 esac
11423 if depmode=$depmode \
11424 source=sub/conftest.c object=$am__obj \
11425 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11426 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11427 >/dev/null 2>conftest.err &&
11428 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11429 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11430 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11431 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11432 # icc doesn't choke on unknown options, it will just issue warnings
11433 # or remarks (even with -Werror). So we grep stderr for any message
11434 # that says an option was ignored or not supported.
11435 # When given -MP, icc 7.0 and 7.1 complain thusly:
11436 # icc: Command line warning: ignoring option '-M'; no argument required
11437 # The diagnosis changed in icc 8.0:
11438 # icc: Command line remark: option '-MP' not supported
11439 if (grep 'ignoring option' conftest.err ||
11440 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11441 am_cv_CC_dependencies_compiler_type=$depmode
11442 break
11445 done
11447 cd ..
11448 rm -rf conftest.dir
11449 else
11450 am_cv_CC_dependencies_compiler_type=none
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11455 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11456 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11459 test "x$enable_dependency_tracking" != xno \
11460 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11461 am__fastdepCC_TRUE=
11462 am__fastdepCC_FALSE='#'
11463 else
11464 am__fastdepCC_TRUE='#'
11465 am__fastdepCC_FALSE=
11469 if test "x$CC" != xcc; then
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11471 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11472 else
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11474 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11476 set dummy $CC; ac_cc=`$as_echo "$2" |
11477 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11478 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
11479 $as_echo_n "(cached) " >&6
11480 else
11481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11482 /* end confdefs.h. */
11485 main ()
11489 return 0;
11491 _ACEOF
11492 # Make sure it works both with $CC and with simple cc.
11493 # We do the test twice because some compilers refuse to overwrite an
11494 # existing .o file with -o, though they will create one.
11495 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11496 rm -f conftest2.*
11497 if { { case "(($ac_try" in
11498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11499 *) ac_try_echo=$ac_try;;
11500 esac
11501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11502 $as_echo "$ac_try_echo"; } >&5
11503 (eval "$ac_try") 2>&5
11504 ac_status=$?
11505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11506 test $ac_status = 0; } &&
11507 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509 *) ac_try_echo=$ac_try;;
11510 esac
11511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11512 $as_echo "$ac_try_echo"; } >&5
11513 (eval "$ac_try") 2>&5
11514 ac_status=$?
11515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11516 test $ac_status = 0; };
11517 then
11518 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11519 if test "x$CC" != xcc; then
11520 # Test first that cc exists at all.
11521 if { ac_try='cc -c conftest.$ac_ext >&5'
11522 { { case "(($ac_try" in
11523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11524 *) ac_try_echo=$ac_try;;
11525 esac
11526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11527 $as_echo "$ac_try_echo"; } >&5
11528 (eval "$ac_try") 2>&5
11529 ac_status=$?
11530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11531 test $ac_status = 0; }; }; then
11532 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11533 rm -f conftest2.*
11534 if { { case "(($ac_try" in
11535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11536 *) ac_try_echo=$ac_try;;
11537 esac
11538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11539 $as_echo "$ac_try_echo"; } >&5
11540 (eval "$ac_try") 2>&5
11541 ac_status=$?
11542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11543 test $ac_status = 0; } &&
11544 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11546 *) ac_try_echo=$ac_try;;
11547 esac
11548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11549 $as_echo "$ac_try_echo"; } >&5
11550 (eval "$ac_try") 2>&5
11551 ac_status=$?
11552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11553 test $ac_status = 0; };
11554 then
11555 # cc works too.
11557 else
11558 # cc exists but doesn't like -o.
11559 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11563 else
11564 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11566 rm -f core conftest*
11569 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11571 $as_echo "yes" >&6; }
11572 else
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11574 $as_echo "no" >&6; }
11576 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11580 # FIXME: we rely on the cache variable name because
11581 # there is no other way.
11582 set dummy $CC
11583 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11584 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11585 if test "$am_t" != yes; then
11586 # Losing compiler, so override with the script.
11587 # FIXME: It is wrong to rewrite CC.
11588 # But if we don't then we get into trouble of one sort or another.
11589 # A longer-term fix would be to have automake use am__CC in this case,
11590 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11591 CC="$am_aux_dir/compile $CC"
11596 ac_ext=cpp
11597 ac_cpp='$CXXCPP $CPPFLAGS'
11598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11602 ac_ext=cpp
11603 ac_cpp='$CXXCPP $CPPFLAGS'
11604 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11605 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11606 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11607 if test -z "$CXX"; then
11608 if test -n "$CCC"; then
11609 CXX=$CCC
11610 else
11611 if test -n "$ac_tool_prefix"; then
11612 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11614 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11615 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11617 $as_echo_n "checking for $ac_word... " >&6; }
11618 if ${ac_cv_prog_CXX+:} false; then :
11619 $as_echo_n "(cached) " >&6
11620 else
11621 if test -n "$CXX"; then
11622 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11623 else
11624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11625 for as_dir in $PATH
11627 IFS=$as_save_IFS
11628 test -z "$as_dir" && as_dir=.
11629 for ac_exec_ext in '' $ac_executable_extensions; do
11630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11631 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11633 break 2
11635 done
11636 done
11637 IFS=$as_save_IFS
11641 CXX=$ac_cv_prog_CXX
11642 if test -n "$CXX"; then
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11644 $as_echo "$CXX" >&6; }
11645 else
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11647 $as_echo "no" >&6; }
11651 test -n "$CXX" && break
11652 done
11654 if test -z "$CXX"; then
11655 ac_ct_CXX=$CXX
11656 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11658 # Extract the first word of "$ac_prog", so it can be a program name with args.
11659 set dummy $ac_prog; ac_word=$2
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11661 $as_echo_n "checking for $ac_word... " >&6; }
11662 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11663 $as_echo_n "(cached) " >&6
11664 else
11665 if test -n "$ac_ct_CXX"; then
11666 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11667 else
11668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11669 for as_dir in $PATH
11671 IFS=$as_save_IFS
11672 test -z "$as_dir" && as_dir=.
11673 for ac_exec_ext in '' $ac_executable_extensions; do
11674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11675 ac_cv_prog_ac_ct_CXX="$ac_prog"
11676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11677 break 2
11679 done
11680 done
11681 IFS=$as_save_IFS
11685 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11686 if test -n "$ac_ct_CXX"; then
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11688 $as_echo "$ac_ct_CXX" >&6; }
11689 else
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11691 $as_echo "no" >&6; }
11695 test -n "$ac_ct_CXX" && break
11696 done
11698 if test "x$ac_ct_CXX" = x; then
11699 CXX="g++"
11700 else
11701 case $cross_compiling:$ac_tool_warned in
11702 yes:)
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11705 ac_tool_warned=yes ;;
11706 esac
11707 CXX=$ac_ct_CXX
11713 # Provide some information about the compiler.
11714 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11715 set X $ac_compile
11716 ac_compiler=$2
11717 for ac_option in --version -v -V -qversion; do
11718 { { ac_try="$ac_compiler $ac_option >&5"
11719 case "(($ac_try" in
11720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721 *) ac_try_echo=$ac_try;;
11722 esac
11723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11724 $as_echo "$ac_try_echo"; } >&5
11725 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11726 ac_status=$?
11727 if test -s conftest.err; then
11728 sed '10a\
11729 ... rest of stderr output deleted ...
11730 10q' conftest.err >conftest.er1
11731 cat conftest.er1 >&5
11733 rm -f conftest.er1 conftest.err
11734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11735 test $ac_status = 0; }
11736 done
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11739 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11740 if ${ac_cv_cxx_compiler_gnu+:} false; then :
11741 $as_echo_n "(cached) " >&6
11742 else
11743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11744 /* end confdefs.h. */
11747 main ()
11749 #ifndef __GNUC__
11750 choke me
11751 #endif
11754 return 0;
11756 _ACEOF
11757 if ac_fn_cxx_try_compile "$LINENO"; then :
11758 ac_compiler_gnu=yes
11759 else
11760 ac_compiler_gnu=no
11762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11763 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11767 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11768 if test $ac_compiler_gnu = yes; then
11769 GXX=yes
11770 else
11771 GXX=
11773 ac_test_CXXFLAGS=${CXXFLAGS+set}
11774 ac_save_CXXFLAGS=$CXXFLAGS
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11776 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11777 if ${ac_cv_prog_cxx_g+:} false; then :
11778 $as_echo_n "(cached) " >&6
11779 else
11780 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11781 ac_cxx_werror_flag=yes
11782 ac_cv_prog_cxx_g=no
11783 CXXFLAGS="-g"
11784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11785 /* end confdefs.h. */
11788 main ()
11792 return 0;
11794 _ACEOF
11795 if ac_fn_cxx_try_compile "$LINENO"; then :
11796 ac_cv_prog_cxx_g=yes
11797 else
11798 CXXFLAGS=""
11799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11800 /* end confdefs.h. */
11803 main ()
11807 return 0;
11809 _ACEOF
11810 if ac_fn_cxx_try_compile "$LINENO"; then :
11812 else
11813 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11814 CXXFLAGS="-g"
11815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11816 /* end confdefs.h. */
11819 main ()
11823 return 0;
11825 _ACEOF
11826 if ac_fn_cxx_try_compile "$LINENO"; then :
11827 ac_cv_prog_cxx_g=yes
11829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11834 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11837 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11838 if test "$ac_test_CXXFLAGS" = set; then
11839 CXXFLAGS=$ac_save_CXXFLAGS
11840 elif test $ac_cv_prog_cxx_g = yes; then
11841 if test "$GXX" = yes; then
11842 CXXFLAGS="-g -O2"
11843 else
11844 CXXFLAGS="-g"
11846 else
11847 if test "$GXX" = yes; then
11848 CXXFLAGS="-O2"
11849 else
11850 CXXFLAGS=
11853 ac_ext=cpp
11854 ac_cpp='$CXXCPP $CPPFLAGS'
11855 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11856 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11857 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11859 depcc="$CXX" am_compiler_list=
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11862 $as_echo_n "checking dependency style of $depcc... " >&6; }
11863 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
11864 $as_echo_n "(cached) " >&6
11865 else
11866 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11867 # We make a subdir and do the tests there. Otherwise we can end up
11868 # making bogus files that we don't know about and never remove. For
11869 # instance it was reported that on HP-UX the gcc test will end up
11870 # making a dummy file named 'D' -- because '-MD' means "put the output
11871 # in D".
11872 rm -rf conftest.dir
11873 mkdir conftest.dir
11874 # Copy depcomp to subdir because otherwise we won't find it if we're
11875 # using a relative directory.
11876 cp "$am_depcomp" conftest.dir
11877 cd conftest.dir
11878 # We will build objects and dependencies in a subdirectory because
11879 # it helps to detect inapplicable dependency modes. For instance
11880 # both Tru64's cc and ICC support -MD to output dependencies as a
11881 # side effect of compilation, but ICC will put the dependencies in
11882 # the current directory while Tru64 will put them in the object
11883 # directory.
11884 mkdir sub
11886 am_cv_CXX_dependencies_compiler_type=none
11887 if test "$am_compiler_list" = ""; then
11888 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11890 am__universal=false
11891 case " $depcc " in #(
11892 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11893 esac
11895 for depmode in $am_compiler_list; do
11896 # Setup a source with many dependencies, because some compilers
11897 # like to wrap large dependency lists on column 80 (with \), and
11898 # we should not choose a depcomp mode which is confused by this.
11900 # We need to recreate these files for each test, as the compiler may
11901 # overwrite some of them when testing with obscure command lines.
11902 # This happens at least with the AIX C compiler.
11903 : > sub/conftest.c
11904 for i in 1 2 3 4 5 6; do
11905 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11906 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11907 # Solaris 10 /bin/sh.
11908 echo '/* dummy */' > sub/conftst$i.h
11909 done
11910 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11912 # We check with '-c' and '-o' for the sake of the "dashmstdout"
11913 # mode. It turns out that the SunPro C++ compiler does not properly
11914 # handle '-M -o', and we need to detect this. Also, some Intel
11915 # versions had trouble with output in subdirs.
11916 am__obj=sub/conftest.${OBJEXT-o}
11917 am__minus_obj="-o $am__obj"
11918 case $depmode in
11919 gcc)
11920 # This depmode causes a compiler race in universal mode.
11921 test "$am__universal" = false || continue
11923 nosideeffect)
11924 # After this tag, mechanisms are not by side-effect, so they'll
11925 # only be used when explicitly requested.
11926 if test "x$enable_dependency_tracking" = xyes; then
11927 continue
11928 else
11929 break
11932 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11933 # This compiler won't grok '-c -o', but also, the minuso test has
11934 # not run yet. These depmodes are late enough in the game, and
11935 # so weak that their functioning should not be impacted.
11936 am__obj=conftest.${OBJEXT-o}
11937 am__minus_obj=
11939 none) break ;;
11940 esac
11941 if depmode=$depmode \
11942 source=sub/conftest.c object=$am__obj \
11943 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11944 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11945 >/dev/null 2>conftest.err &&
11946 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11947 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11948 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11949 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11950 # icc doesn't choke on unknown options, it will just issue warnings
11951 # or remarks (even with -Werror). So we grep stderr for any message
11952 # that says an option was ignored or not supported.
11953 # When given -MP, icc 7.0 and 7.1 complain thusly:
11954 # icc: Command line warning: ignoring option '-M'; no argument required
11955 # The diagnosis changed in icc 8.0:
11956 # icc: Command line remark: option '-MP' not supported
11957 if (grep 'ignoring option' conftest.err ||
11958 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11959 am_cv_CXX_dependencies_compiler_type=$depmode
11960 break
11963 done
11965 cd ..
11966 rm -rf conftest.dir
11967 else
11968 am_cv_CXX_dependencies_compiler_type=none
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11973 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11974 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11977 test "x$enable_dependency_tracking" != xno \
11978 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11979 am__fastdepCXX_TRUE=
11980 am__fastdepCXX_FALSE='#'
11981 else
11982 am__fastdepCXX_TRUE='#'
11983 am__fastdepCXX_FALSE=
11988 ac_ext=cpp
11989 ac_cpp='$CXXCPP $CPPFLAGS'
11990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11993 if test -z "$CXX"; then
11994 if test -n "$CCC"; then
11995 CXX=$CCC
11996 else
11997 if test -n "$ac_tool_prefix"; then
11998 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12000 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12001 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12003 $as_echo_n "checking for $ac_word... " >&6; }
12004 if ${ac_cv_prog_CXX+:} false; then :
12005 $as_echo_n "(cached) " >&6
12006 else
12007 if test -n "$CXX"; then
12008 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12009 else
12010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12011 for as_dir in $PATH
12013 IFS=$as_save_IFS
12014 test -z "$as_dir" && as_dir=.
12015 for ac_exec_ext in '' $ac_executable_extensions; do
12016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12017 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12019 break 2
12021 done
12022 done
12023 IFS=$as_save_IFS
12027 CXX=$ac_cv_prog_CXX
12028 if test -n "$CXX"; then
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12030 $as_echo "$CXX" >&6; }
12031 else
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12033 $as_echo "no" >&6; }
12037 test -n "$CXX" && break
12038 done
12040 if test -z "$CXX"; then
12041 ac_ct_CXX=$CXX
12042 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12044 # Extract the first word of "$ac_prog", so it can be a program name with args.
12045 set dummy $ac_prog; ac_word=$2
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12047 $as_echo_n "checking for $ac_word... " >&6; }
12048 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12049 $as_echo_n "(cached) " >&6
12050 else
12051 if test -n "$ac_ct_CXX"; then
12052 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12053 else
12054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12055 for as_dir in $PATH
12057 IFS=$as_save_IFS
12058 test -z "$as_dir" && as_dir=.
12059 for ac_exec_ext in '' $ac_executable_extensions; do
12060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12061 ac_cv_prog_ac_ct_CXX="$ac_prog"
12062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12063 break 2
12065 done
12066 done
12067 IFS=$as_save_IFS
12071 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12072 if test -n "$ac_ct_CXX"; then
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12074 $as_echo "$ac_ct_CXX" >&6; }
12075 else
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12077 $as_echo "no" >&6; }
12081 test -n "$ac_ct_CXX" && break
12082 done
12084 if test "x$ac_ct_CXX" = x; then
12085 CXX="g++"
12086 else
12087 case $cross_compiling:$ac_tool_warned in
12088 yes:)
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12091 ac_tool_warned=yes ;;
12092 esac
12093 CXX=$ac_ct_CXX
12099 # Provide some information about the compiler.
12100 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12101 set X $ac_compile
12102 ac_compiler=$2
12103 for ac_option in --version -v -V -qversion; do
12104 { { ac_try="$ac_compiler $ac_option >&5"
12105 case "(($ac_try" in
12106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12107 *) ac_try_echo=$ac_try;;
12108 esac
12109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12110 $as_echo "$ac_try_echo"; } >&5
12111 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12112 ac_status=$?
12113 if test -s conftest.err; then
12114 sed '10a\
12115 ... rest of stderr output deleted ...
12116 10q' conftest.err >conftest.er1
12117 cat conftest.er1 >&5
12119 rm -f conftest.er1 conftest.err
12120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12121 test $ac_status = 0; }
12122 done
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12125 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12126 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12127 $as_echo_n "(cached) " >&6
12128 else
12129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12130 /* end confdefs.h. */
12133 main ()
12135 #ifndef __GNUC__
12136 choke me
12137 #endif
12140 return 0;
12142 _ACEOF
12143 if ac_fn_cxx_try_compile "$LINENO"; then :
12144 ac_compiler_gnu=yes
12145 else
12146 ac_compiler_gnu=no
12148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12149 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12153 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12154 if test $ac_compiler_gnu = yes; then
12155 GXX=yes
12156 else
12157 GXX=
12159 ac_test_CXXFLAGS=${CXXFLAGS+set}
12160 ac_save_CXXFLAGS=$CXXFLAGS
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12162 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12163 if ${ac_cv_prog_cxx_g+:} false; then :
12164 $as_echo_n "(cached) " >&6
12165 else
12166 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12167 ac_cxx_werror_flag=yes
12168 ac_cv_prog_cxx_g=no
12169 CXXFLAGS="-g"
12170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12171 /* end confdefs.h. */
12174 main ()
12178 return 0;
12180 _ACEOF
12181 if ac_fn_cxx_try_compile "$LINENO"; then :
12182 ac_cv_prog_cxx_g=yes
12183 else
12184 CXXFLAGS=""
12185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12186 /* end confdefs.h. */
12189 main ()
12193 return 0;
12195 _ACEOF
12196 if ac_fn_cxx_try_compile "$LINENO"; then :
12198 else
12199 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12200 CXXFLAGS="-g"
12201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12202 /* end confdefs.h. */
12205 main ()
12209 return 0;
12211 _ACEOF
12212 if ac_fn_cxx_try_compile "$LINENO"; then :
12213 ac_cv_prog_cxx_g=yes
12215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12220 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12223 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12224 if test "$ac_test_CXXFLAGS" = set; then
12225 CXXFLAGS=$ac_save_CXXFLAGS
12226 elif test $ac_cv_prog_cxx_g = yes; then
12227 if test "$GXX" = yes; then
12228 CXXFLAGS="-g -O2"
12229 else
12230 CXXFLAGS="-g"
12232 else
12233 if test "$GXX" = yes; then
12234 CXXFLAGS="-O2"
12235 else
12236 CXXFLAGS=
12239 ac_ext=cpp
12240 ac_cpp='$CXXCPP $CPPFLAGS'
12241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12245 depcc="$CXX" am_compiler_list=
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12248 $as_echo_n "checking dependency style of $depcc... " >&6; }
12249 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12250 $as_echo_n "(cached) " >&6
12251 else
12252 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12253 # We make a subdir and do the tests there. Otherwise we can end up
12254 # making bogus files that we don't know about and never remove. For
12255 # instance it was reported that on HP-UX the gcc test will end up
12256 # making a dummy file named 'D' -- because '-MD' means "put the output
12257 # in D".
12258 rm -rf conftest.dir
12259 mkdir conftest.dir
12260 # Copy depcomp to subdir because otherwise we won't find it if we're
12261 # using a relative directory.
12262 cp "$am_depcomp" conftest.dir
12263 cd conftest.dir
12264 # We will build objects and dependencies in a subdirectory because
12265 # it helps to detect inapplicable dependency modes. For instance
12266 # both Tru64's cc and ICC support -MD to output dependencies as a
12267 # side effect of compilation, but ICC will put the dependencies in
12268 # the current directory while Tru64 will put them in the object
12269 # directory.
12270 mkdir sub
12272 am_cv_CXX_dependencies_compiler_type=none
12273 if test "$am_compiler_list" = ""; then
12274 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12276 am__universal=false
12277 case " $depcc " in #(
12278 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12279 esac
12281 for depmode in $am_compiler_list; do
12282 # Setup a source with many dependencies, because some compilers
12283 # like to wrap large dependency lists on column 80 (with \), and
12284 # we should not choose a depcomp mode which is confused by this.
12286 # We need to recreate these files for each test, as the compiler may
12287 # overwrite some of them when testing with obscure command lines.
12288 # This happens at least with the AIX C compiler.
12289 : > sub/conftest.c
12290 for i in 1 2 3 4 5 6; do
12291 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12292 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12293 # Solaris 10 /bin/sh.
12294 echo '/* dummy */' > sub/conftst$i.h
12295 done
12296 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12298 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12299 # mode. It turns out that the SunPro C++ compiler does not properly
12300 # handle '-M -o', and we need to detect this. Also, some Intel
12301 # versions had trouble with output in subdirs.
12302 am__obj=sub/conftest.${OBJEXT-o}
12303 am__minus_obj="-o $am__obj"
12304 case $depmode in
12305 gcc)
12306 # This depmode causes a compiler race in universal mode.
12307 test "$am__universal" = false || continue
12309 nosideeffect)
12310 # After this tag, mechanisms are not by side-effect, so they'll
12311 # only be used when explicitly requested.
12312 if test "x$enable_dependency_tracking" = xyes; then
12313 continue
12314 else
12315 break
12318 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12319 # This compiler won't grok '-c -o', but also, the minuso test has
12320 # not run yet. These depmodes are late enough in the game, and
12321 # so weak that their functioning should not be impacted.
12322 am__obj=conftest.${OBJEXT-o}
12323 am__minus_obj=
12325 none) break ;;
12326 esac
12327 if depmode=$depmode \
12328 source=sub/conftest.c object=$am__obj \
12329 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12330 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12331 >/dev/null 2>conftest.err &&
12332 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12333 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12334 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12335 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12336 # icc doesn't choke on unknown options, it will just issue warnings
12337 # or remarks (even with -Werror). So we grep stderr for any message
12338 # that says an option was ignored or not supported.
12339 # When given -MP, icc 7.0 and 7.1 complain thusly:
12340 # icc: Command line warning: ignoring option '-M'; no argument required
12341 # The diagnosis changed in icc 8.0:
12342 # icc: Command line remark: option '-MP' not supported
12343 if (grep 'ignoring option' conftest.err ||
12344 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12345 am_cv_CXX_dependencies_compiler_type=$depmode
12346 break
12349 done
12351 cd ..
12352 rm -rf conftest.dir
12353 else
12354 am_cv_CXX_dependencies_compiler_type=none
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12359 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12360 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12363 test "x$enable_dependency_tracking" != xno \
12364 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12365 am__fastdepCXX_TRUE=
12366 am__fastdepCXX_FALSE='#'
12367 else
12368 am__fastdepCXX_TRUE='#'
12369 am__fastdepCXX_FALSE=
12373 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12374 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12375 (test "X$CXX" != "Xg++"))) ; then
12376 ac_ext=cpp
12377 ac_cpp='$CXXCPP $CPPFLAGS'
12378 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12379 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12380 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12382 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12383 if test -z "$CXXCPP"; then
12384 if ${ac_cv_prog_CXXCPP+:} false; then :
12385 $as_echo_n "(cached) " >&6
12386 else
12387 # Double quotes because CXXCPP needs to be expanded
12388 for CXXCPP in "$CXX -E" "/lib/cpp"
12390 ac_preproc_ok=false
12391 for ac_cxx_preproc_warn_flag in '' yes
12393 # Use a header file that comes with gcc, so configuring glibc
12394 # with a fresh cross-compiler works.
12395 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12396 # <limits.h> exists even on freestanding compilers.
12397 # On the NeXT, cc -E runs the code through the compiler's parser,
12398 # not just through cpp. "Syntax error" is here to catch this case.
12399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12400 /* end confdefs.h. */
12401 #ifdef __STDC__
12402 # include <limits.h>
12403 #else
12404 # include <assert.h>
12405 #endif
12406 Syntax error
12407 _ACEOF
12408 if ac_fn_cxx_try_cpp "$LINENO"; then :
12410 else
12411 # Broken: fails on valid input.
12412 continue
12414 rm -f conftest.err conftest.i conftest.$ac_ext
12416 # OK, works on sane cases. Now check whether nonexistent headers
12417 # can be detected and how.
12418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12419 /* end confdefs.h. */
12420 #include <ac_nonexistent.h>
12421 _ACEOF
12422 if ac_fn_cxx_try_cpp "$LINENO"; then :
12423 # Broken: success on invalid input.
12424 continue
12425 else
12426 # Passes both tests.
12427 ac_preproc_ok=:
12428 break
12430 rm -f conftest.err conftest.i conftest.$ac_ext
12432 done
12433 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12434 rm -f conftest.i conftest.err conftest.$ac_ext
12435 if $ac_preproc_ok; then :
12436 break
12439 done
12440 ac_cv_prog_CXXCPP=$CXXCPP
12443 CXXCPP=$ac_cv_prog_CXXCPP
12444 else
12445 ac_cv_prog_CXXCPP=$CXXCPP
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12448 $as_echo "$CXXCPP" >&6; }
12449 ac_preproc_ok=false
12450 for ac_cxx_preproc_warn_flag in '' yes
12452 # Use a header file that comes with gcc, so configuring glibc
12453 # with a fresh cross-compiler works.
12454 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12455 # <limits.h> exists even on freestanding compilers.
12456 # On the NeXT, cc -E runs the code through the compiler's parser,
12457 # not just through cpp. "Syntax error" is here to catch this case.
12458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12459 /* end confdefs.h. */
12460 #ifdef __STDC__
12461 # include <limits.h>
12462 #else
12463 # include <assert.h>
12464 #endif
12465 Syntax error
12466 _ACEOF
12467 if ac_fn_cxx_try_cpp "$LINENO"; then :
12469 else
12470 # Broken: fails on valid input.
12471 continue
12473 rm -f conftest.err conftest.i conftest.$ac_ext
12475 # OK, works on sane cases. Now check whether nonexistent headers
12476 # can be detected and how.
12477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12478 /* end confdefs.h. */
12479 #include <ac_nonexistent.h>
12480 _ACEOF
12481 if ac_fn_cxx_try_cpp "$LINENO"; then :
12482 # Broken: success on invalid input.
12483 continue
12484 else
12485 # Passes both tests.
12486 ac_preproc_ok=:
12487 break
12489 rm -f conftest.err conftest.i conftest.$ac_ext
12491 done
12492 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12493 rm -f conftest.i conftest.err conftest.$ac_ext
12494 if $ac_preproc_ok; then :
12496 else
12497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12499 _lt_caught_CXX_error=yes; }
12502 ac_ext=cpp
12503 ac_cpp='$CXXCPP $CPPFLAGS'
12504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12508 else
12509 _lt_caught_CXX_error=yes
12515 ac_ext=cpp
12516 ac_cpp='$CXXCPP $CPPFLAGS'
12517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12521 archive_cmds_need_lc_CXX=no
12522 allow_undefined_flag_CXX=
12523 always_export_symbols_CXX=no
12524 archive_expsym_cmds_CXX=
12525 compiler_needs_object_CXX=no
12526 export_dynamic_flag_spec_CXX=
12527 hardcode_direct_CXX=no
12528 hardcode_direct_absolute_CXX=no
12529 hardcode_libdir_flag_spec_CXX=
12530 hardcode_libdir_flag_spec_ld_CXX=
12531 hardcode_libdir_separator_CXX=
12532 hardcode_minus_L_CXX=no
12533 hardcode_shlibpath_var_CXX=unsupported
12534 hardcode_automatic_CXX=no
12535 inherit_rpath_CXX=no
12536 module_cmds_CXX=
12537 module_expsym_cmds_CXX=
12538 link_all_deplibs_CXX=unknown
12539 old_archive_cmds_CXX=$old_archive_cmds
12540 no_undefined_flag_CXX=
12541 whole_archive_flag_spec_CXX=
12542 enable_shared_with_static_runtimes_CXX=no
12544 # Source file extension for C++ test sources.
12545 ac_ext=cpp
12547 # Object file extension for compiled C++ test sources.
12548 objext=o
12549 objext_CXX=$objext
12551 # No sense in running all these tests if we already determined that
12552 # the CXX compiler isn't working. Some variables (like enable_shared)
12553 # are currently assumed to apply to all compilers on this platform,
12554 # and will be corrupted by setting them based on a non-working compiler.
12555 if test "$_lt_caught_CXX_error" != yes; then
12556 # Code to be used in simple compile tests
12557 lt_simple_compile_test_code="int some_variable = 0;"
12559 # Code to be used in simple link tests
12560 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12562 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12569 # If no C compiler was specified, use CC.
12570 LTCC=${LTCC-"$CC"}
12572 # If no C compiler flags were specified, use CFLAGS.
12573 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12575 # Allow CC to be a program name with arguments.
12576 compiler=$CC
12579 # save warnings/boilerplate of simple test code
12580 ac_outfile=conftest.$ac_objext
12581 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12582 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12583 _lt_compiler_boilerplate=`cat conftest.err`
12584 $RM conftest*
12586 ac_outfile=conftest.$ac_objext
12587 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12588 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12589 _lt_linker_boilerplate=`cat conftest.err`
12590 $RM -r conftest*
12593 # Allow CC to be a program name with arguments.
12594 lt_save_CC=$CC
12595 lt_save_LD=$LD
12596 lt_save_GCC=$GCC
12597 GCC=$GXX
12598 lt_save_with_gnu_ld=$with_gnu_ld
12599 lt_save_path_LD=$lt_cv_path_LD
12600 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12601 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12602 else
12603 $as_unset lt_cv_prog_gnu_ld
12605 if test -n "${lt_cv_path_LDCXX+set}"; then
12606 lt_cv_path_LD=$lt_cv_path_LDCXX
12607 else
12608 $as_unset lt_cv_path_LD
12610 test -z "${LDCXX+set}" || LD=$LDCXX
12611 CC=${CXX-"c++"}
12612 compiler=$CC
12613 compiler_CXX=$CC
12614 for cc_temp in $compiler""; do
12615 case $cc_temp in
12616 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12617 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12618 \-*) ;;
12619 *) break;;
12620 esac
12621 done
12622 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12625 if test -n "$compiler"; then
12626 # We don't want -fno-exception when compiling C++ code, so set the
12627 # no_builtin_flag separately
12628 if test "$GXX" = yes; then
12629 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12630 else
12631 lt_prog_compiler_no_builtin_flag_CXX=
12634 if test "$GXX" = yes; then
12635 # Set up default GNU C++ configuration
12639 # Check whether --with-gnu-ld was given.
12640 if test "${with_gnu_ld+set}" = set; then :
12641 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12642 else
12643 with_gnu_ld=no
12646 ac_prog=ld
12647 if test "$GCC" = yes; then
12648 # Check if gcc -print-prog-name=ld gives a path.
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12650 $as_echo_n "checking for ld used by $CC... " >&6; }
12651 case $host in
12652 *-*-mingw*)
12653 # gcc leaves a trailing carriage return which upsets mingw
12654 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12656 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12657 esac
12658 case $ac_prog in
12659 # Accept absolute paths.
12660 [\\/]* | ?:[\\/]*)
12661 re_direlt='/[^/][^/]*/\.\./'
12662 # Canonicalize the pathname of ld
12663 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12664 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12665 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12666 done
12667 test -z "$LD" && LD="$ac_prog"
12670 # If it fails, then pretend we aren't using GCC.
12671 ac_prog=ld
12674 # If it is relative, then search for the first ld in PATH.
12675 with_gnu_ld=unknown
12677 esac
12678 elif test "$with_gnu_ld" = yes; then
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12680 $as_echo_n "checking for GNU ld... " >&6; }
12681 else
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12683 $as_echo_n "checking for non-GNU ld... " >&6; }
12685 if ${lt_cv_path_LD+:} false; then :
12686 $as_echo_n "(cached) " >&6
12687 else
12688 if test -z "$LD"; then
12689 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12690 for ac_dir in $PATH; do
12691 IFS="$lt_save_ifs"
12692 test -z "$ac_dir" && ac_dir=.
12693 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12694 lt_cv_path_LD="$ac_dir/$ac_prog"
12695 # Check to see if the program is GNU ld. I'd rather use --version,
12696 # but apparently some variants of GNU ld only accept -v.
12697 # Break only if it was the GNU/non-GNU ld that we prefer.
12698 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12699 *GNU* | *'with BFD'*)
12700 test "$with_gnu_ld" != no && break
12703 test "$with_gnu_ld" != yes && break
12705 esac
12707 done
12708 IFS="$lt_save_ifs"
12709 else
12710 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12714 LD="$lt_cv_path_LD"
12715 if test -n "$LD"; then
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12717 $as_echo "$LD" >&6; }
12718 else
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12720 $as_echo "no" >&6; }
12722 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12724 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12725 if ${lt_cv_prog_gnu_ld+:} false; then :
12726 $as_echo_n "(cached) " >&6
12727 else
12728 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12729 case `$LD -v 2>&1 </dev/null` in
12730 *GNU* | *'with BFD'*)
12731 lt_cv_prog_gnu_ld=yes
12734 lt_cv_prog_gnu_ld=no
12736 esac
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12739 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12740 with_gnu_ld=$lt_cv_prog_gnu_ld
12748 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12749 # archiving commands below assume that GNU ld is being used.
12750 if test "$with_gnu_ld" = yes; then
12751 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12752 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'
12754 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12755 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12757 # If archive_cmds runs LD, not CC, wlarc should be empty
12758 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12759 # investigate it a little bit more. (MM)
12760 wlarc='${wl}'
12762 # ancient GNU ld didn't support --whole-archive et. al.
12763 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12764 $GREP 'no-whole-archive' > /dev/null; then
12765 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12766 else
12767 whole_archive_flag_spec_CXX=
12769 else
12770 with_gnu_ld=no
12771 wlarc=
12773 # A generic and very simple default shared library creation
12774 # command for GNU C++ for the case where it uses the native
12775 # linker, instead of GNU ld. If possible, this setting should
12776 # overridden to take advantage of the native linker features on
12777 # the platform it is being used on.
12778 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12781 # Commands to make compiler produce verbose output that lists
12782 # what "hidden" libraries, object files and flags are used when
12783 # linking a shared library.
12784 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12786 else
12787 GXX=no
12788 with_gnu_ld=no
12789 wlarc=
12792 # PORTME: fill in a description of your system's C++ link characteristics
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12794 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12795 ld_shlibs_CXX=yes
12796 case $host_os in
12797 aix3*)
12798 # FIXME: insert proper C++ library support
12799 ld_shlibs_CXX=no
12801 aix[4-9]*)
12802 if test "$host_cpu" = ia64; then
12803 # On IA64, the linker does run time linking by default, so we don't
12804 # have to do anything special.
12805 aix_use_runtimelinking=no
12806 exp_sym_flag='-Bexport'
12807 no_entry_flag=""
12808 else
12809 aix_use_runtimelinking=no
12811 # Test if we are trying to use run time linking or normal
12812 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12813 # need to do runtime linking.
12814 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12815 for ld_flag in $LDFLAGS; do
12816 case $ld_flag in
12817 *-brtl*)
12818 aix_use_runtimelinking=yes
12819 break
12821 esac
12822 done
12824 esac
12826 exp_sym_flag='-bexport'
12827 no_entry_flag='-bnoentry'
12830 # When large executables or shared objects are built, AIX ld can
12831 # have problems creating the table of contents. If linking a library
12832 # or program results in "error TOC overflow" add -mminimal-toc to
12833 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12834 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12836 archive_cmds_CXX=''
12837 hardcode_direct_CXX=yes
12838 hardcode_direct_absolute_CXX=yes
12839 hardcode_libdir_separator_CXX=':'
12840 link_all_deplibs_CXX=yes
12841 file_list_spec_CXX='${wl}-f,'
12843 if test "$GXX" = yes; then
12844 case $host_os in aix4.[012]|aix4.[012].*)
12845 # We only want to do this on AIX 4.2 and lower, the check
12846 # below for broken collect2 doesn't work under 4.3+
12847 collect2name=`${CC} -print-prog-name=collect2`
12848 if test -f "$collect2name" &&
12849 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12850 then
12851 # We have reworked collect2
12853 else
12854 # We have old collect2
12855 hardcode_direct_CXX=unsupported
12856 # It fails to find uninstalled libraries when the uninstalled
12857 # path is not listed in the libpath. Setting hardcode_minus_L
12858 # to unsupported forces relinking
12859 hardcode_minus_L_CXX=yes
12860 hardcode_libdir_flag_spec_CXX='-L$libdir'
12861 hardcode_libdir_separator_CXX=
12863 esac
12864 shared_flag='-shared'
12865 if test "$aix_use_runtimelinking" = yes; then
12866 shared_flag="$shared_flag "'${wl}-G'
12868 else
12869 # not using gcc
12870 if test "$host_cpu" = ia64; then
12871 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12872 # chokes on -Wl,-G. The following line is correct:
12873 shared_flag='-G'
12874 else
12875 if test "$aix_use_runtimelinking" = yes; then
12876 shared_flag='${wl}-G'
12877 else
12878 shared_flag='${wl}-bM:SRE'
12883 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12884 # It seems that -bexpall does not export symbols beginning with
12885 # underscore (_), so it is better to generate a list of symbols to
12886 # export.
12887 always_export_symbols_CXX=yes
12888 if test "$aix_use_runtimelinking" = yes; then
12889 # Warning - without using the other runtime loading flags (-brtl),
12890 # -berok will link without error, but may produce a broken library.
12891 allow_undefined_flag_CXX='-berok'
12892 # Determine the default libpath from the value encoded in an empty
12893 # executable.
12894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12895 /* end confdefs.h. */
12898 main ()
12902 return 0;
12904 _ACEOF
12905 if ac_fn_cxx_try_link "$LINENO"; then :
12907 lt_aix_libpath_sed='
12908 /Import File Strings/,/^$/ {
12909 /^0/ {
12910 s/^0 *\(.*\)$/\1/
12914 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12915 # Check for a 64-bit object if we didn't find anything.
12916 if test -z "$aix_libpath"; then
12917 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12920 rm -f core conftest.err conftest.$ac_objext \
12921 conftest$ac_exeext conftest.$ac_ext
12922 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12924 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12926 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"
12927 else
12928 if test "$host_cpu" = ia64; then
12929 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12930 allow_undefined_flag_CXX="-z nodefs"
12931 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"
12932 else
12933 # Determine the default libpath from the value encoded in an
12934 # empty executable.
12935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936 /* end confdefs.h. */
12939 main ()
12943 return 0;
12945 _ACEOF
12946 if ac_fn_cxx_try_link "$LINENO"; then :
12948 lt_aix_libpath_sed='
12949 /Import File Strings/,/^$/ {
12950 /^0/ {
12951 s/^0 *\(.*\)$/\1/
12955 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12956 # Check for a 64-bit object if we didn't find anything.
12957 if test -z "$aix_libpath"; then
12958 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12961 rm -f core conftest.err conftest.$ac_objext \
12962 conftest$ac_exeext conftest.$ac_ext
12963 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12965 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12966 # Warning - without using the other run time loading flags,
12967 # -berok will link without error, but may produce a broken library.
12968 no_undefined_flag_CXX=' ${wl}-bernotok'
12969 allow_undefined_flag_CXX=' ${wl}-berok'
12970 # Exported symbols can be pulled into shared objects from archives
12971 whole_archive_flag_spec_CXX='$convenience'
12972 archive_cmds_need_lc_CXX=yes
12973 # This is similar to how AIX traditionally builds its shared
12974 # libraries.
12975 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'
12980 beos*)
12981 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12982 allow_undefined_flag_CXX=unsupported
12983 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12984 # support --undefined. This deserves some investigation. FIXME
12985 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12986 else
12987 ld_shlibs_CXX=no
12991 chorus*)
12992 case $cc_basename in
12994 # FIXME: insert proper C++ library support
12995 ld_shlibs_CXX=no
12997 esac
13000 cygwin* | mingw* | pw32* | cegcc*)
13001 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13002 # as there is no search path for DLLs.
13003 hardcode_libdir_flag_spec_CXX='-L$libdir'
13004 allow_undefined_flag_CXX=unsupported
13005 always_export_symbols_CXX=no
13006 enable_shared_with_static_runtimes_CXX=yes
13008 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13009 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'
13010 # If the export-symbols file already is a .def file (1st line
13011 # is EXPORTS), use it as is; otherwise, prepend...
13012 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13013 cp $export_symbols $output_objdir/$soname.def;
13014 else
13015 echo EXPORTS > $output_objdir/$soname.def;
13016 cat $export_symbols >> $output_objdir/$soname.def;
13018 $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'
13019 else
13020 ld_shlibs_CXX=no
13023 darwin* | rhapsody*)
13026 archive_cmds_need_lc_CXX=no
13027 hardcode_direct_CXX=no
13028 hardcode_automatic_CXX=yes
13029 hardcode_shlibpath_var_CXX=unsupported
13030 whole_archive_flag_spec_CXX=''
13031 link_all_deplibs_CXX=yes
13032 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13033 case $cc_basename in
13034 ifort*) _lt_dar_can_shared=yes ;;
13035 *) _lt_dar_can_shared=$GCC ;;
13036 esac
13037 if test "$_lt_dar_can_shared" = "yes"; then
13038 output_verbose_link_cmd=echo
13039 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}"
13040 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13041 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}"
13042 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}"
13043 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13044 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}"
13045 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}"
13048 else
13049 ld_shlibs_CXX=no
13054 dgux*)
13055 case $cc_basename in
13056 ec++*)
13057 # FIXME: insert proper C++ library support
13058 ld_shlibs_CXX=no
13060 ghcx*)
13061 # Green Hills C++ Compiler
13062 # FIXME: insert proper C++ library support
13063 ld_shlibs_CXX=no
13066 # FIXME: insert proper C++ library support
13067 ld_shlibs_CXX=no
13069 esac
13072 freebsd[12]*)
13073 # C++ shared libraries reported to be fairly broken before
13074 # switch to ELF
13075 ld_shlibs_CXX=no
13078 freebsd-elf*)
13079 archive_cmds_need_lc_CXX=no
13082 freebsd* | dragonfly*)
13083 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13084 # conventions
13085 ld_shlibs_CXX=yes
13088 gnu*)
13091 hpux9*)
13092 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13093 hardcode_libdir_separator_CXX=:
13094 export_dynamic_flag_spec_CXX='${wl}-E'
13095 hardcode_direct_CXX=yes
13096 hardcode_minus_L_CXX=yes # Not in the search PATH,
13097 # but as the default
13098 # location of the library.
13100 case $cc_basename in
13101 CC*)
13102 # FIXME: insert proper C++ library support
13103 ld_shlibs_CXX=no
13105 aCC*)
13106 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'
13107 # Commands to make compiler produce verbose output that lists
13108 # what "hidden" libraries, object files and flags are used when
13109 # linking a shared library.
13111 # There doesn't appear to be a way to prevent this compiler from
13112 # explicitly linking system object files so we need to strip them
13113 # from the output so that they don't get included in the library
13114 # dependencies.
13115 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'
13118 if test "$GXX" = yes; then
13119 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'
13120 else
13121 # FIXME: insert proper C++ library support
13122 ld_shlibs_CXX=no
13125 esac
13128 hpux10*|hpux11*)
13129 if test $with_gnu_ld = no; then
13130 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13131 hardcode_libdir_separator_CXX=:
13133 case $host_cpu in
13134 hppa*64*|ia64*)
13137 export_dynamic_flag_spec_CXX='${wl}-E'
13139 esac
13141 case $host_cpu in
13142 hppa*64*|ia64*)
13143 hardcode_direct_CXX=no
13144 hardcode_shlibpath_var_CXX=no
13147 hardcode_direct_CXX=yes
13148 hardcode_direct_absolute_CXX=yes
13149 hardcode_minus_L_CXX=yes # Not in the search PATH,
13150 # but as the default
13151 # location of the library.
13153 esac
13155 case $cc_basename in
13156 CC*)
13157 # FIXME: insert proper C++ library support
13158 ld_shlibs_CXX=no
13160 aCC*)
13161 case $host_cpu in
13162 hppa*64*)
13163 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13165 ia64*)
13166 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13169 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13171 esac
13172 # Commands to make compiler produce verbose output that lists
13173 # what "hidden" libraries, object files and flags are used when
13174 # linking a shared library.
13176 # There doesn't appear to be a way to prevent this compiler from
13177 # explicitly linking system object files so we need to strip them
13178 # from the output so that they don't get included in the library
13179 # dependencies.
13180 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'
13183 if test "$GXX" = yes; then
13184 if test $with_gnu_ld = no; then
13185 case $host_cpu in
13186 hppa*64*)
13187 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13189 ia64*)
13190 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13193 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'
13195 esac
13197 else
13198 # FIXME: insert proper C++ library support
13199 ld_shlibs_CXX=no
13202 esac
13205 interix[3-9]*)
13206 hardcode_direct_CXX=no
13207 hardcode_shlibpath_var_CXX=no
13208 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13209 export_dynamic_flag_spec_CXX='${wl}-E'
13210 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13211 # Instead, shared libraries are loaded at an image base (0x10000000 by
13212 # default) and relocated if they conflict, which is a slow very memory
13213 # consuming and fragmenting process. To avoid this, we pick a random,
13214 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13215 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13216 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'
13217 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'
13219 irix5* | irix6*)
13220 case $cc_basename in
13221 CC*)
13222 # SGI C++
13223 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'
13225 # Archives containing C++ object files must be created using
13226 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13227 # necessary to make sure instantiated templates are included
13228 # in the archive.
13229 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13232 if test "$GXX" = yes; then
13233 if test "$with_gnu_ld" = no; then
13234 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'
13235 else
13236 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'
13239 link_all_deplibs_CXX=yes
13241 esac
13242 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13243 hardcode_libdir_separator_CXX=:
13244 inherit_rpath_CXX=yes
13247 linux* | k*bsd*-gnu)
13248 case $cc_basename in
13249 KCC*)
13250 # Kuck and Associates, Inc. (KAI) C++ Compiler
13252 # KCC will only create a shared library if the output file
13253 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13254 # to its proper name (with version) after linking.
13255 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'
13256 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'
13257 # Commands to make compiler produce verbose output that lists
13258 # what "hidden" libraries, object files and flags are used when
13259 # linking a shared library.
13261 # There doesn't appear to be a way to prevent this compiler from
13262 # explicitly linking system object files so we need to strip them
13263 # from the output so that they don't get included in the library
13264 # dependencies.
13265 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'
13267 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13268 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13270 # Archives containing C++ object files must be created using
13271 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13272 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13274 icpc* | ecpc* )
13275 # Intel C++
13276 with_gnu_ld=yes
13277 # version 8.0 and above of icpc choke on multiply defined symbols
13278 # if we add $predep_objects and $postdep_objects, however 7.1 and
13279 # earlier do not add the objects themselves.
13280 case `$CC -V 2>&1` in
13281 *"Version 7."*)
13282 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13283 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'
13285 *) # Version 8.0 or newer
13286 tmp_idyn=
13287 case $host_cpu in
13288 ia64*) tmp_idyn=' -i_dynamic';;
13289 esac
13290 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13291 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'
13293 esac
13294 archive_cmds_need_lc_CXX=no
13295 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13296 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13297 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13299 pgCC* | pgcpp*)
13300 # Portland Group C++ compiler
13301 case `$CC -V` in
13302 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13303 prelink_cmds_CXX='tpldir=Template.dir~
13304 rm -rf $tpldir~
13305 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13306 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13307 old_archive_cmds_CXX='tpldir=Template.dir~
13308 rm -rf $tpldir~
13309 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13310 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13311 $RANLIB $oldlib'
13312 archive_cmds_CXX='tpldir=Template.dir~
13313 rm -rf $tpldir~
13314 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13315 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13316 archive_expsym_cmds_CXX='tpldir=Template.dir~
13317 rm -rf $tpldir~
13318 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13319 $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'
13321 *) # Version 6 will use weak symbols
13322 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13323 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'
13325 esac
13327 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13328 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13329 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'
13331 cxx*)
13332 # Compaq C++
13333 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13334 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'
13336 runpath_var=LD_RUN_PATH
13337 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13338 hardcode_libdir_separator_CXX=:
13340 # Commands to make compiler produce verbose output that lists
13341 # what "hidden" libraries, object files and flags are used when
13342 # linking a shared library.
13344 # There doesn't appear to be a way to prevent this compiler from
13345 # explicitly linking system object files so we need to strip them
13346 # from the output so that they don't get included in the library
13347 # dependencies.
13348 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'
13350 xl*)
13351 # IBM XL 8.0 on PPC, with GNU ld
13352 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13353 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13354 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13355 if test "x$supports_anon_versioning" = xyes; then
13356 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13357 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13358 echo "local: *; };" >> $output_objdir/$libname.ver~
13359 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13363 case `$CC -V 2>&1 | sed 5q` in
13364 *Sun\ C*)
13365 # Sun C++ 5.9
13366 no_undefined_flag_CXX=' -zdefs'
13367 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13368 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'
13369 hardcode_libdir_flag_spec_CXX='-R$libdir'
13370 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'
13371 compiler_needs_object_CXX=yes
13373 # Not sure whether something based on
13374 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13375 # would be better.
13376 output_verbose_link_cmd='echo'
13378 # Archives containing C++ object files must be created using
13379 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13380 # necessary to make sure instantiated templates are included
13381 # in the archive.
13382 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13384 esac
13386 esac
13389 lynxos*)
13390 # FIXME: insert proper C++ library support
13391 ld_shlibs_CXX=no
13394 m88k*)
13395 # FIXME: insert proper C++ library support
13396 ld_shlibs_CXX=no
13399 mvs*)
13400 case $cc_basename in
13401 cxx*)
13402 # FIXME: insert proper C++ library support
13403 ld_shlibs_CXX=no
13406 # FIXME: insert proper C++ library support
13407 ld_shlibs_CXX=no
13409 esac
13412 netbsd*)
13413 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13414 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13415 wlarc=
13416 hardcode_libdir_flag_spec_CXX='-R$libdir'
13417 hardcode_direct_CXX=yes
13418 hardcode_shlibpath_var_CXX=no
13420 # Workaround some broken pre-1.5 toolchains
13421 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13424 *nto* | *qnx*)
13425 ld_shlibs_CXX=yes
13428 openbsd2*)
13429 # C++ shared libraries are fairly broken
13430 ld_shlibs_CXX=no
13433 openbsd*)
13434 if test -f /usr/libexec/ld.so; then
13435 hardcode_direct_CXX=yes
13436 hardcode_shlibpath_var_CXX=no
13437 hardcode_direct_absolute_CXX=yes
13438 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13439 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13440 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13441 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13442 export_dynamic_flag_spec_CXX='${wl}-E'
13443 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13445 output_verbose_link_cmd=echo
13446 else
13447 ld_shlibs_CXX=no
13451 osf3* | osf4* | osf5*)
13452 case $cc_basename in
13453 KCC*)
13454 # Kuck and Associates, Inc. (KAI) C++ Compiler
13456 # KCC will only create a shared library if the output file
13457 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13458 # to its proper name (with version) after linking.
13459 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'
13461 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13462 hardcode_libdir_separator_CXX=:
13464 # Archives containing C++ object files must be created using
13465 # the KAI C++ compiler.
13466 case $host in
13467 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13468 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13469 esac
13471 RCC*)
13472 # Rational C++ 2.4.1
13473 # FIXME: insert proper C++ library support
13474 ld_shlibs_CXX=no
13476 cxx*)
13477 case $host in
13478 osf3*)
13479 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13480 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'
13481 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13484 allow_undefined_flag_CXX=' -expect_unresolved \*'
13485 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'
13486 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13487 echo "-hidden">> $lib.exp~
13488 $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~
13489 $RM $lib.exp'
13490 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13492 esac
13494 hardcode_libdir_separator_CXX=:
13496 # Commands to make compiler produce verbose output that lists
13497 # what "hidden" libraries, object files and flags are used when
13498 # linking a shared library.
13500 # There doesn't appear to be a way to prevent this compiler from
13501 # explicitly linking system object files so we need to strip them
13502 # from the output so that they don't get included in the library
13503 # dependencies.
13504 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'
13507 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13508 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13509 case $host in
13510 osf3*)
13511 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'
13514 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'
13516 esac
13518 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13519 hardcode_libdir_separator_CXX=:
13521 # Commands to make compiler produce verbose output that lists
13522 # what "hidden" libraries, object files and flags are used when
13523 # linking a shared library.
13524 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13526 else
13527 # FIXME: insert proper C++ library support
13528 ld_shlibs_CXX=no
13531 esac
13534 psos*)
13535 # FIXME: insert proper C++ library support
13536 ld_shlibs_CXX=no
13539 sunos4*)
13540 case $cc_basename in
13541 CC*)
13542 # Sun C++ 4.x
13543 # FIXME: insert proper C++ library support
13544 ld_shlibs_CXX=no
13546 lcc*)
13547 # Lucid
13548 # FIXME: insert proper C++ library support
13549 ld_shlibs_CXX=no
13552 # FIXME: insert proper C++ library support
13553 ld_shlibs_CXX=no
13555 esac
13558 solaris*)
13559 case $cc_basename in
13560 CC*)
13561 # Sun C++ 4.2, 5.x and Centerline C++
13562 archive_cmds_need_lc_CXX=yes
13563 no_undefined_flag_CXX=' -zdefs'
13564 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13565 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13566 $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'
13568 hardcode_libdir_flag_spec_CXX='-R$libdir'
13569 hardcode_shlibpath_var_CXX=no
13570 case $host_os in
13571 solaris2.[0-5] | solaris2.[0-5].*) ;;
13573 # The compiler driver will combine and reorder linker options,
13574 # but understands `-z linker_flag'.
13575 # Supported since Solaris 2.6 (maybe 2.5.1?)
13576 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13578 esac
13579 link_all_deplibs_CXX=yes
13581 output_verbose_link_cmd='echo'
13583 # Archives containing C++ object files must be created using
13584 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13585 # necessary to make sure instantiated templates are included
13586 # in the archive.
13587 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13589 gcx*)
13590 # Green Hills C++ Compiler
13591 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13593 # The C++ compiler must be used to create the archive.
13594 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13597 # GNU C++ compiler with Solaris linker
13598 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13599 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13600 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13601 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13602 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13603 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13605 # Commands to make compiler produce verbose output that lists
13606 # what "hidden" libraries, object files and flags are used when
13607 # linking a shared library.
13608 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13609 else
13610 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13611 # platform.
13612 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13613 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13614 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13616 # Commands to make compiler produce verbose output that lists
13617 # what "hidden" libraries, object files and flags are used when
13618 # linking a shared library.
13619 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13622 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13623 case $host_os in
13624 solaris2.[0-5] | solaris2.[0-5].*) ;;
13626 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13628 esac
13631 esac
13634 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13635 no_undefined_flag_CXX='${wl}-z,text'
13636 archive_cmds_need_lc_CXX=no
13637 hardcode_shlibpath_var_CXX=no
13638 runpath_var='LD_RUN_PATH'
13640 case $cc_basename in
13641 CC*)
13642 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13643 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13646 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13647 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13649 esac
13652 sysv5* | sco3.2v5* | sco5v6*)
13653 # Note: We can NOT use -z defs as we might desire, because we do not
13654 # link with -lc, and that would cause any symbols used from libc to
13655 # always be unresolved, which means just about no library would
13656 # ever link correctly. If we're not using GNU ld we use -z text
13657 # though, which does catch some bad symbols but isn't as heavy-handed
13658 # as -z defs.
13659 no_undefined_flag_CXX='${wl}-z,text'
13660 allow_undefined_flag_CXX='${wl}-z,nodefs'
13661 archive_cmds_need_lc_CXX=no
13662 hardcode_shlibpath_var_CXX=no
13663 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13664 hardcode_libdir_separator_CXX=':'
13665 link_all_deplibs_CXX=yes
13666 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13667 runpath_var='LD_RUN_PATH'
13669 case $cc_basename in
13670 CC*)
13671 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13672 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13675 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13676 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13678 esac
13681 tandem*)
13682 case $cc_basename in
13683 NCC*)
13684 # NonStop-UX NCC 3.20
13685 # FIXME: insert proper C++ library support
13686 ld_shlibs_CXX=no
13689 # FIXME: insert proper C++ library support
13690 ld_shlibs_CXX=no
13692 esac
13695 vxworks*)
13696 # FIXME: insert proper C++ library support
13697 ld_shlibs_CXX=no
13701 # FIXME: insert proper C++ library support
13702 ld_shlibs_CXX=no
13704 esac
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13707 $as_echo "$ld_shlibs_CXX" >&6; }
13708 test "$ld_shlibs_CXX" = no && can_build_shared=no
13710 GCC_CXX="$GXX"
13711 LD_CXX="$LD"
13713 ## CAVEAT EMPTOR:
13714 ## There is no encapsulation within the following macros, do not change
13715 ## the running order or otherwise move them around unless you know exactly
13716 ## what you are doing...
13717 # Dependencies to place before and after the object being linked:
13718 predep_objects_CXX=
13719 postdep_objects_CXX=
13720 predeps_CXX=
13721 postdeps_CXX=
13722 compiler_lib_search_path_CXX=
13724 cat > conftest.$ac_ext <<_LT_EOF
13725 class Foo
13727 public:
13728 Foo (void) { a = 0; }
13729 private:
13730 int a;
13732 _LT_EOF
13734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13735 (eval $ac_compile) 2>&5
13736 ac_status=$?
13737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13738 test $ac_status = 0; }; then
13739 # Parse the compiler output and extract the necessary
13740 # objects, libraries and library flags.
13742 # Sentinel used to keep track of whether or not we are before
13743 # the conftest object file.
13744 pre_test_object_deps_done=no
13746 for p in `eval "$output_verbose_link_cmd"`; do
13747 case $p in
13749 -L* | -R* | -l*)
13750 # Some compilers place space between "-{L,R}" and the path.
13751 # Remove the space.
13752 if test $p = "-L" ||
13753 test $p = "-R"; then
13754 prev=$p
13755 continue
13756 else
13757 prev=
13760 if test "$pre_test_object_deps_done" = no; then
13761 case $p in
13762 -L* | -R*)
13763 # Internal compiler library paths should come after those
13764 # provided the user. The postdeps already come after the
13765 # user supplied libs so there is no need to process them.
13766 if test -z "$compiler_lib_search_path_CXX"; then
13767 compiler_lib_search_path_CXX="${prev}${p}"
13768 else
13769 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13772 # The "-l" case would never come before the object being
13773 # linked, so don't bother handling this case.
13774 esac
13775 else
13776 if test -z "$postdeps_CXX"; then
13777 postdeps_CXX="${prev}${p}"
13778 else
13779 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13784 *.$objext)
13785 # This assumes that the test object file only shows up
13786 # once in the compiler output.
13787 if test "$p" = "conftest.$objext"; then
13788 pre_test_object_deps_done=yes
13789 continue
13792 if test "$pre_test_object_deps_done" = no; then
13793 if test -z "$predep_objects_CXX"; then
13794 predep_objects_CXX="$p"
13795 else
13796 predep_objects_CXX="$predep_objects_CXX $p"
13798 else
13799 if test -z "$postdep_objects_CXX"; then
13800 postdep_objects_CXX="$p"
13801 else
13802 postdep_objects_CXX="$postdep_objects_CXX $p"
13807 *) ;; # Ignore the rest.
13809 esac
13810 done
13812 # Clean up.
13813 rm -f a.out a.exe
13814 else
13815 echo "libtool.m4: error: problem compiling CXX test program"
13818 $RM -f confest.$objext
13820 # PORTME: override above test on systems where it is broken
13821 case $host_os in
13822 interix[3-9]*)
13823 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13824 # hack all around it, let's just trust "g++" to DTRT.
13825 predep_objects_CXX=
13826 postdep_objects_CXX=
13827 postdeps_CXX=
13830 linux*)
13831 case `$CC -V 2>&1 | sed 5q` in
13832 *Sun\ C*)
13833 # Sun C++ 5.9
13835 # The more standards-conforming stlport4 library is
13836 # incompatible with the Cstd library. Avoid specifying
13837 # it if it's in CXXFLAGS. Ignore libCrun as
13838 # -library=stlport4 depends on it.
13839 case " $CXX $CXXFLAGS " in
13840 *" -library=stlport4 "*)
13841 solaris_use_stlport4=yes
13843 esac
13845 if test "$solaris_use_stlport4" != yes; then
13846 postdeps_CXX='-library=Cstd -library=Crun'
13849 esac
13852 solaris*)
13853 case $cc_basename in
13854 CC*)
13855 # The more standards-conforming stlport4 library is
13856 # incompatible with the Cstd library. Avoid specifying
13857 # it if it's in CXXFLAGS. Ignore libCrun as
13858 # -library=stlport4 depends on it.
13859 case " $CXX $CXXFLAGS " in
13860 *" -library=stlport4 "*)
13861 solaris_use_stlport4=yes
13863 esac
13865 # Adding this requires a known-good setup of shared libraries for
13866 # Sun compiler versions before 5.6, else PIC objects from an old
13867 # archive will be linked into the output, leading to subtle bugs.
13868 if test "$solaris_use_stlport4" != yes; then
13869 postdeps_CXX='-library=Cstd -library=Crun'
13872 esac
13874 esac
13877 case " $postdeps_CXX " in
13878 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13879 esac
13880 compiler_lib_search_dirs_CXX=
13881 if test -n "${compiler_lib_search_path_CXX}"; then
13882 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13915 lt_prog_compiler_wl_CXX=
13916 lt_prog_compiler_pic_CXX=
13917 lt_prog_compiler_static_CXX=
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13920 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13922 # C++ specific cases for pic, static, wl, etc.
13923 if test "$GXX" = yes; then
13924 lt_prog_compiler_wl_CXX='-Wl,'
13925 lt_prog_compiler_static_CXX='-static'
13927 case $host_os in
13928 aix*)
13929 # All AIX code is PIC.
13930 if test "$host_cpu" = ia64; then
13931 # AIX 5 now supports IA64 processor
13932 lt_prog_compiler_static_CXX='-Bstatic'
13936 amigaos*)
13937 case $host_cpu in
13938 powerpc)
13939 # see comment about AmigaOS4 .so support
13940 lt_prog_compiler_pic_CXX='-fPIC'
13942 m68k)
13943 # FIXME: we need at least 68020 code to build shared libraries, but
13944 # adding the `-m68020' flag to GCC prevents building anything better,
13945 # like `-m68040'.
13946 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13948 esac
13951 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13952 # PIC is the default for these OSes.
13954 mingw* | cygwin* | os2* | pw32* | cegcc*)
13955 # This hack is so that the source file can tell whether it is being
13956 # built for inclusion in a dll (and should export symbols for example).
13957 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13958 # (--disable-auto-import) libraries
13959 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13961 darwin* | rhapsody*)
13962 # PIC is the default on this platform
13963 # Common symbols not allowed in MH_DYLIB files
13964 lt_prog_compiler_pic_CXX='-fno-common'
13966 *djgpp*)
13967 # DJGPP does not support shared libraries at all
13968 lt_prog_compiler_pic_CXX=
13970 interix[3-9]*)
13971 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13972 # Instead, we relocate shared libraries at runtime.
13974 sysv4*MP*)
13975 if test -d /usr/nec; then
13976 lt_prog_compiler_pic_CXX=-Kconform_pic
13979 hpux*)
13980 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13981 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13982 # sets the default TLS model and affects inlining.
13983 case $host_cpu in
13984 hppa*64*)
13987 lt_prog_compiler_pic_CXX='-fPIC'
13989 esac
13991 *qnx* | *nto*)
13992 # QNX uses GNU C++, but need to define -shared option too, otherwise
13993 # it will coredump.
13994 lt_prog_compiler_pic_CXX='-fPIC -shared'
13997 lt_prog_compiler_pic_CXX='-fPIC'
13999 esac
14000 else
14001 case $host_os in
14002 aix[4-9]*)
14003 # All AIX code is PIC.
14004 if test "$host_cpu" = ia64; then
14005 # AIX 5 now supports IA64 processor
14006 lt_prog_compiler_static_CXX='-Bstatic'
14007 else
14008 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14011 chorus*)
14012 case $cc_basename in
14013 cxch68*)
14014 # Green Hills C++ Compiler
14015 # _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"
14017 esac
14019 dgux*)
14020 case $cc_basename in
14021 ec++*)
14022 lt_prog_compiler_pic_CXX='-KPIC'
14024 ghcx*)
14025 # Green Hills C++ Compiler
14026 lt_prog_compiler_pic_CXX='-pic'
14030 esac
14032 freebsd* | dragonfly*)
14033 # FreeBSD uses GNU C++
14035 hpux9* | hpux10* | hpux11*)
14036 case $cc_basename in
14037 CC*)
14038 lt_prog_compiler_wl_CXX='-Wl,'
14039 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14040 if test "$host_cpu" != ia64; then
14041 lt_prog_compiler_pic_CXX='+Z'
14044 aCC*)
14045 lt_prog_compiler_wl_CXX='-Wl,'
14046 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14047 case $host_cpu in
14048 hppa*64*|ia64*)
14049 # +Z the default
14052 lt_prog_compiler_pic_CXX='+Z'
14054 esac
14058 esac
14060 interix*)
14061 # This is c89, which is MS Visual C++ (no shared libs)
14062 # Anyone wants to do a port?
14064 irix5* | irix6* | nonstopux*)
14065 case $cc_basename in
14066 CC*)
14067 lt_prog_compiler_wl_CXX='-Wl,'
14068 lt_prog_compiler_static_CXX='-non_shared'
14069 # CC pic flag -KPIC is the default.
14073 esac
14075 linux* | k*bsd*-gnu)
14076 case $cc_basename in
14077 KCC*)
14078 # KAI C++ Compiler
14079 lt_prog_compiler_wl_CXX='--backend -Wl,'
14080 lt_prog_compiler_pic_CXX='-fPIC'
14082 ecpc* )
14083 # old Intel C++ for x86_64 which still supported -KPIC.
14084 lt_prog_compiler_wl_CXX='-Wl,'
14085 lt_prog_compiler_pic_CXX='-KPIC'
14086 lt_prog_compiler_static_CXX='-static'
14088 icpc* )
14089 # Intel C++, used to be incompatible with GCC.
14090 # ICC 10 doesn't accept -KPIC any more.
14091 lt_prog_compiler_wl_CXX='-Wl,'
14092 lt_prog_compiler_pic_CXX='-fPIC'
14093 lt_prog_compiler_static_CXX='-static'
14095 pgCC* | pgcpp*)
14096 # Portland Group C++ compiler
14097 lt_prog_compiler_wl_CXX='-Wl,'
14098 lt_prog_compiler_pic_CXX='-fpic'
14099 lt_prog_compiler_static_CXX='-Bstatic'
14101 cxx*)
14102 # Compaq C++
14103 # Make sure the PIC flag is empty. It appears that all Alpha
14104 # Linux and Compaq Tru64 Unix objects are PIC.
14105 lt_prog_compiler_pic_CXX=
14106 lt_prog_compiler_static_CXX='-non_shared'
14108 xlc* | xlC*)
14109 # IBM XL 8.0 on PPC
14110 lt_prog_compiler_wl_CXX='-Wl,'
14111 lt_prog_compiler_pic_CXX='-qpic'
14112 lt_prog_compiler_static_CXX='-qstaticlink'
14115 case `$CC -V 2>&1 | sed 5q` in
14116 *Sun\ C*)
14117 # Sun C++ 5.9
14118 lt_prog_compiler_pic_CXX='-KPIC'
14119 lt_prog_compiler_static_CXX='-Bstatic'
14120 lt_prog_compiler_wl_CXX='-Qoption ld '
14122 esac
14124 esac
14126 lynxos*)
14128 m88k*)
14130 mvs*)
14131 case $cc_basename in
14132 cxx*)
14133 lt_prog_compiler_pic_CXX='-W c,exportall'
14137 esac
14139 netbsd*)
14141 *qnx* | *nto*)
14142 # QNX uses GNU C++, but need to define -shared option too, otherwise
14143 # it will coredump.
14144 lt_prog_compiler_pic_CXX='-fPIC -shared'
14146 osf3* | osf4* | osf5*)
14147 case $cc_basename in
14148 KCC*)
14149 lt_prog_compiler_wl_CXX='--backend -Wl,'
14151 RCC*)
14152 # Rational C++ 2.4.1
14153 lt_prog_compiler_pic_CXX='-pic'
14155 cxx*)
14156 # Digital/Compaq C++
14157 lt_prog_compiler_wl_CXX='-Wl,'
14158 # Make sure the PIC flag is empty. It appears that all Alpha
14159 # Linux and Compaq Tru64 Unix objects are PIC.
14160 lt_prog_compiler_pic_CXX=
14161 lt_prog_compiler_static_CXX='-non_shared'
14165 esac
14167 psos*)
14169 solaris*)
14170 case $cc_basename in
14171 CC*)
14172 # Sun C++ 4.2, 5.x and Centerline C++
14173 lt_prog_compiler_pic_CXX='-KPIC'
14174 lt_prog_compiler_static_CXX='-Bstatic'
14175 lt_prog_compiler_wl_CXX='-Qoption ld '
14177 gcx*)
14178 # Green Hills C++ Compiler
14179 lt_prog_compiler_pic_CXX='-PIC'
14183 esac
14185 sunos4*)
14186 case $cc_basename in
14187 CC*)
14188 # Sun C++ 4.x
14189 lt_prog_compiler_pic_CXX='-pic'
14190 lt_prog_compiler_static_CXX='-Bstatic'
14192 lcc*)
14193 # Lucid
14194 lt_prog_compiler_pic_CXX='-pic'
14198 esac
14200 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14201 case $cc_basename in
14202 CC*)
14203 lt_prog_compiler_wl_CXX='-Wl,'
14204 lt_prog_compiler_pic_CXX='-KPIC'
14205 lt_prog_compiler_static_CXX='-Bstatic'
14207 esac
14209 tandem*)
14210 case $cc_basename in
14211 NCC*)
14212 # NonStop-UX NCC 3.20
14213 lt_prog_compiler_pic_CXX='-KPIC'
14217 esac
14219 vxworks*)
14222 lt_prog_compiler_can_build_shared_CXX=no
14224 esac
14227 case $host_os in
14228 # For platforms which do not support PIC, -DPIC is meaningless:
14229 *djgpp*)
14230 lt_prog_compiler_pic_CXX=
14233 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14235 esac
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14237 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14242 # Check to make sure the PIC flag actually works.
14244 if test -n "$lt_prog_compiler_pic_CXX"; then
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14246 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14247 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14248 $as_echo_n "(cached) " >&6
14249 else
14250 lt_cv_prog_compiler_pic_works_CXX=no
14251 ac_outfile=conftest.$ac_objext
14252 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14253 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14254 # Insert the option either (1) after the last *FLAGS variable, or
14255 # (2) before a word containing "conftest.", or (3) at the end.
14256 # Note that $ac_compile itself does not contain backslashes and begins
14257 # with a dollar sign (not a hyphen), so the echo should work correctly.
14258 # The option is referenced via a variable to avoid confusing sed.
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>conftest.err)
14265 ac_status=$?
14266 cat conftest.err >&5
14267 echo "$as_me:14267: \$? = $ac_status" >&5
14268 if (exit $ac_status) && test -s "$ac_outfile"; then
14269 # The compiler can only warn and ignore the option if not recognized
14270 # So say no if there are warnings other than the usual output.
14271 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14272 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14273 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14274 lt_cv_prog_compiler_pic_works_CXX=yes
14277 $RM conftest*
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14281 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14283 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14284 case $lt_prog_compiler_pic_CXX in
14285 "" | " "*) ;;
14286 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14287 esac
14288 else
14289 lt_prog_compiler_pic_CXX=
14290 lt_prog_compiler_can_build_shared_CXX=no
14298 # Check to make sure the static flag actually works.
14300 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14302 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14303 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14304 $as_echo_n "(cached) " >&6
14305 else
14306 lt_cv_prog_compiler_static_works_CXX=no
14307 save_LDFLAGS="$LDFLAGS"
14308 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14309 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14310 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14311 # The linker can only warn and ignore the option if not recognized
14312 # So say no if there are warnings
14313 if test -s conftest.err; then
14314 # Append any errors to the config.log.
14315 cat conftest.err 1>&5
14316 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14317 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14318 if diff conftest.exp conftest.er2 >/dev/null; then
14319 lt_cv_prog_compiler_static_works_CXX=yes
14321 else
14322 lt_cv_prog_compiler_static_works_CXX=yes
14325 $RM -r conftest*
14326 LDFLAGS="$save_LDFLAGS"
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14330 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14332 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14334 else
14335 lt_prog_compiler_static_CXX=
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14342 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14343 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14344 $as_echo_n "(cached) " >&6
14345 else
14346 lt_cv_prog_compiler_c_o_CXX=no
14347 $RM -r conftest 2>/dev/null
14348 mkdir conftest
14349 cd conftest
14350 mkdir out
14351 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14353 lt_compiler_flag="-o out/conftest2.$ac_objext"
14354 # Insert the option either (1) after the last *FLAGS variable, or
14355 # (2) before a word containing "conftest.", or (3) at the end.
14356 # Note that $ac_compile itself does not contain backslashes and begins
14357 # with a dollar sign (not a hyphen), so the echo should work correctly.
14358 lt_compile=`echo "$ac_compile" | $SED \
14359 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14360 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14361 -e 's:$: $lt_compiler_flag:'`
14362 (eval echo "\"\$as_me:14362: $lt_compile\"" >&5)
14363 (eval "$lt_compile" 2>out/conftest.err)
14364 ac_status=$?
14365 cat out/conftest.err >&5
14366 echo "$as_me:14366: \$? = $ac_status" >&5
14367 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14368 then
14369 # The compiler can only warn and ignore the option if not recognized
14370 # So say no if there are warnings
14371 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14372 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14373 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14374 lt_cv_prog_compiler_c_o_CXX=yes
14377 chmod u+w . 2>&5
14378 $RM conftest*
14379 # SGI C++ compiler will create directory out/ii_files/ for
14380 # template instantiation
14381 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14382 $RM out/* && rmdir out
14383 cd ..
14384 $RM -r conftest
14385 $RM conftest*
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14389 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14394 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14395 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14396 $as_echo_n "(cached) " >&6
14397 else
14398 lt_cv_prog_compiler_c_o_CXX=no
14399 $RM -r conftest 2>/dev/null
14400 mkdir conftest
14401 cd conftest
14402 mkdir out
14403 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14405 lt_compiler_flag="-o out/conftest2.$ac_objext"
14406 # Insert the option either (1) after the last *FLAGS variable, or
14407 # (2) before a word containing "conftest.", or (3) at the end.
14408 # Note that $ac_compile itself does not contain backslashes and begins
14409 # with a dollar sign (not a hyphen), so the echo should work correctly.
14410 lt_compile=`echo "$ac_compile" | $SED \
14411 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14412 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14413 -e 's:$: $lt_compiler_flag:'`
14414 (eval echo "\"\$as_me:14414: $lt_compile\"" >&5)
14415 (eval "$lt_compile" 2>out/conftest.err)
14416 ac_status=$?
14417 cat out/conftest.err >&5
14418 echo "$as_me:14418: \$? = $ac_status" >&5
14419 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14420 then
14421 # The compiler can only warn and ignore the option if not recognized
14422 # So say no if there are warnings
14423 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14424 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14425 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14426 lt_cv_prog_compiler_c_o_CXX=yes
14429 chmod u+w . 2>&5
14430 $RM conftest*
14431 # SGI C++ compiler will create directory out/ii_files/ for
14432 # template instantiation
14433 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14434 $RM out/* && rmdir out
14435 cd ..
14436 $RM -r conftest
14437 $RM conftest*
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14441 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14446 hard_links="nottested"
14447 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14448 # do not overwrite the value of need_locks provided by the user
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14450 $as_echo_n "checking if we can lock with hard links... " >&6; }
14451 hard_links=yes
14452 $RM conftest*
14453 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14454 touch conftest.a
14455 ln conftest.a conftest.b 2>&5 || hard_links=no
14456 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14458 $as_echo "$hard_links" >&6; }
14459 if test "$hard_links" = no; then
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14461 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14462 need_locks=warn
14464 else
14465 need_locks=no
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14471 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14473 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14474 case $host_os in
14475 aix[4-9]*)
14476 # If we're using GNU nm, then we don't want the "-C" option.
14477 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14478 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14479 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'
14480 else
14481 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'
14484 pw32*)
14485 export_symbols_cmds_CXX="$ltdll_cmds"
14487 cygwin* | mingw* | cegcc*)
14488 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'
14491 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14493 esac
14494 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14497 $as_echo "$ld_shlibs_CXX" >&6; }
14498 test "$ld_shlibs_CXX" = no && can_build_shared=no
14500 with_gnu_ld_CXX=$with_gnu_ld
14508 # Do we need to explicitly link libc?
14510 case "x$archive_cmds_need_lc_CXX" in
14511 x|xyes)
14512 # Assume -lc should be added
14513 archive_cmds_need_lc_CXX=yes
14515 if test "$enable_shared" = yes && test "$GCC" = yes; then
14516 case $archive_cmds_CXX in
14517 *'~'*)
14518 # FIXME: we may have to deal with multi-command sequences.
14520 '$CC '*)
14521 # Test whether the compiler implicitly links with -lc since on some
14522 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14523 # to ld, don't add -lc before -lgcc.
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14525 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14526 $RM conftest*
14527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14530 (eval $ac_compile) 2>&5
14531 ac_status=$?
14532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14533 test $ac_status = 0; } 2>conftest.err; then
14534 soname=conftest
14535 lib=conftest
14536 libobjs=conftest.$ac_objext
14537 deplibs=
14538 wl=$lt_prog_compiler_wl_CXX
14539 pic_flag=$lt_prog_compiler_pic_CXX
14540 compiler_flags=-v
14541 linker_flags=-v
14542 verstring=
14543 output_objdir=.
14544 libname=conftest
14545 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14546 allow_undefined_flag_CXX=
14547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14548 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14549 ac_status=$?
14550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14551 test $ac_status = 0; }
14552 then
14553 archive_cmds_need_lc_CXX=no
14554 else
14555 archive_cmds_need_lc_CXX=yes
14557 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14558 else
14559 cat conftest.err 1>&5
14561 $RM conftest*
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14563 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14565 esac
14568 esac
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14634 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14636 library_names_spec=
14637 libname_spec='lib$name'
14638 soname_spec=
14639 shrext_cmds=".so"
14640 postinstall_cmds=
14641 postuninstall_cmds=
14642 finish_cmds=
14643 finish_eval=
14644 shlibpath_var=
14645 shlibpath_overrides_runpath=unknown
14646 version_type=none
14647 dynamic_linker="$host_os ld.so"
14648 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14649 need_lib_prefix=unknown
14650 hardcode_into_libs=no
14652 # when you set need_version to no, make sure it does not cause -set_version
14653 # flags to be left without arguments
14654 need_version=unknown
14656 case $host_os in
14657 aix3*)
14658 version_type=linux
14659 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14660 shlibpath_var=LIBPATH
14662 # AIX 3 has no versioning support, so we append a major version to the name.
14663 soname_spec='${libname}${release}${shared_ext}$major'
14666 aix[4-9]*)
14667 version_type=linux
14668 need_lib_prefix=no
14669 need_version=no
14670 hardcode_into_libs=yes
14671 if test "$host_cpu" = ia64; then
14672 # AIX 5 supports IA64
14673 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14674 shlibpath_var=LD_LIBRARY_PATH
14675 else
14676 # With GCC up to 2.95.x, collect2 would create an import file
14677 # for dependence libraries. The import file would start with
14678 # the line `#! .'. This would cause the generated library to
14679 # depend on `.', always an invalid library. This was fixed in
14680 # development snapshots of GCC prior to 3.0.
14681 case $host_os in
14682 aix4 | aix4.[01] | aix4.[01].*)
14683 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14684 echo ' yes '
14685 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14687 else
14688 can_build_shared=no
14691 esac
14692 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14693 # soname into executable. Probably we can add versioning support to
14694 # collect2, so additional links can be useful in future.
14695 if test "$aix_use_runtimelinking" = yes; then
14696 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14697 # instead of lib<name>.a to let people know that these are not
14698 # typical AIX shared libraries.
14699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14700 else
14701 # We preserve .a as extension for shared libraries through AIX4.2
14702 # and later when we are not doing run time linking.
14703 library_names_spec='${libname}${release}.a $libname.a'
14704 soname_spec='${libname}${release}${shared_ext}$major'
14706 shlibpath_var=LIBPATH
14710 amigaos*)
14711 case $host_cpu in
14712 powerpc)
14713 # Since July 2007 AmigaOS4 officially supports .so libraries.
14714 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14717 m68k)
14718 library_names_spec='$libname.ixlibrary $libname.a'
14719 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14720 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'
14722 esac
14725 beos*)
14726 library_names_spec='${libname}${shared_ext}'
14727 dynamic_linker="$host_os ld.so"
14728 shlibpath_var=LIBRARY_PATH
14731 bsdi[45]*)
14732 version_type=linux
14733 need_version=no
14734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14735 soname_spec='${libname}${release}${shared_ext}$major'
14736 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14737 shlibpath_var=LD_LIBRARY_PATH
14738 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14739 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14740 # the default ld.so.conf also contains /usr/contrib/lib and
14741 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14742 # libtool to hard-code these into programs
14745 cygwin* | mingw* | pw32* | cegcc*)
14746 version_type=windows
14747 shrext_cmds=".dll"
14748 need_version=no
14749 need_lib_prefix=no
14751 case $GCC,$host_os in
14752 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14753 library_names_spec='$libname.dll.a'
14754 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14755 postinstall_cmds='base_file=`basename \${file}`~
14756 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14757 dldir=$destdir/`dirname \$dlpath`~
14758 test -d \$dldir || mkdir -p \$dldir~
14759 $install_prog $dir/$dlname \$dldir/$dlname~
14760 chmod a+x \$dldir/$dlname~
14761 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14762 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14764 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14765 dlpath=$dir/\$dldll~
14766 $RM \$dlpath'
14767 shlibpath_overrides_runpath=yes
14769 case $host_os in
14770 cygwin*)
14771 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14772 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14773 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14775 mingw* | cegcc*)
14776 # MinGW DLLs use traditional 'lib' prefix
14777 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14778 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14779 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14780 # It is most probably a Windows format PATH printed by
14781 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14782 # path with ; separators, and with drive letters. We can handle the
14783 # drive letters (cygwin fileutils understands them), so leave them,
14784 # especially as we might pass files found there to a mingw objdump,
14785 # which wouldn't understand a cygwinified path. Ahh.
14786 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14787 else
14788 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14791 pw32*)
14792 # pw32 DLLs use 'pw' prefix rather than 'lib'
14793 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14795 esac
14799 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14801 esac
14802 dynamic_linker='Win32 ld.exe'
14803 # FIXME: first we should search . and the directory the executable is in
14804 shlibpath_var=PATH
14807 darwin* | rhapsody*)
14808 dynamic_linker="$host_os dyld"
14809 version_type=darwin
14810 need_lib_prefix=no
14811 need_version=no
14812 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14813 soname_spec='${libname}${release}${major}$shared_ext'
14814 shlibpath_overrides_runpath=yes
14815 shlibpath_var=DYLD_LIBRARY_PATH
14816 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14818 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14821 dgux*)
14822 version_type=linux
14823 need_lib_prefix=no
14824 need_version=no
14825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14826 soname_spec='${libname}${release}${shared_ext}$major'
14827 shlibpath_var=LD_LIBRARY_PATH
14830 freebsd1*)
14831 dynamic_linker=no
14834 freebsd* | dragonfly*)
14835 # DragonFly does not have aout. When/if they implement a new
14836 # versioning mechanism, adjust this.
14837 if test -x /usr/bin/objformat; then
14838 objformat=`/usr/bin/objformat`
14839 else
14840 case $host_os in
14841 freebsd[123]*) objformat=aout ;;
14842 *) objformat=elf ;;
14843 esac
14845 version_type=freebsd-$objformat
14846 case $version_type in
14847 freebsd-elf*)
14848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14849 need_version=no
14850 need_lib_prefix=no
14852 freebsd-*)
14853 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14854 need_version=yes
14856 esac
14857 shlibpath_var=LD_LIBRARY_PATH
14858 case $host_os in
14859 freebsd2*)
14860 shlibpath_overrides_runpath=yes
14862 freebsd3.[01]* | freebsdelf3.[01]*)
14863 shlibpath_overrides_runpath=yes
14864 hardcode_into_libs=yes
14866 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14867 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14868 shlibpath_overrides_runpath=no
14869 hardcode_into_libs=yes
14871 *) # from 4.6 on, and DragonFly
14872 shlibpath_overrides_runpath=yes
14873 hardcode_into_libs=yes
14875 esac
14878 gnu*)
14879 version_type=linux
14880 need_lib_prefix=no
14881 need_version=no
14882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14883 soname_spec='${libname}${release}${shared_ext}$major'
14884 shlibpath_var=LD_LIBRARY_PATH
14885 hardcode_into_libs=yes
14888 hpux9* | hpux10* | hpux11*)
14889 # Give a soname corresponding to the major version so that dld.sl refuses to
14890 # link against other versions.
14891 version_type=sunos
14892 need_lib_prefix=no
14893 need_version=no
14894 case $host_cpu in
14895 ia64*)
14896 shrext_cmds='.so'
14897 hardcode_into_libs=yes
14898 dynamic_linker="$host_os dld.so"
14899 shlibpath_var=LD_LIBRARY_PATH
14900 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14902 soname_spec='${libname}${release}${shared_ext}$major'
14903 if test "X$HPUX_IA64_MODE" = X32; then
14904 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14905 else
14906 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14908 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14910 hppa*64*)
14911 shrext_cmds='.sl'
14912 hardcode_into_libs=yes
14913 dynamic_linker="$host_os dld.sl"
14914 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14915 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14917 soname_spec='${libname}${release}${shared_ext}$major'
14918 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14919 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14922 shrext_cmds='.sl'
14923 dynamic_linker="$host_os dld.sl"
14924 shlibpath_var=SHLIB_PATH
14925 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14927 soname_spec='${libname}${release}${shared_ext}$major'
14929 esac
14930 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14931 postinstall_cmds='chmod 555 $lib'
14934 interix[3-9]*)
14935 version_type=linux
14936 need_lib_prefix=no
14937 need_version=no
14938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14939 soname_spec='${libname}${release}${shared_ext}$major'
14940 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14941 shlibpath_var=LD_LIBRARY_PATH
14942 shlibpath_overrides_runpath=no
14943 hardcode_into_libs=yes
14946 irix5* | irix6* | nonstopux*)
14947 case $host_os in
14948 nonstopux*) version_type=nonstopux ;;
14950 if test "$lt_cv_prog_gnu_ld" = yes; then
14951 version_type=linux
14952 else
14953 version_type=irix
14954 fi ;;
14955 esac
14956 need_lib_prefix=no
14957 need_version=no
14958 soname_spec='${libname}${release}${shared_ext}$major'
14959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14960 case $host_os in
14961 irix5* | nonstopux*)
14962 libsuff= shlibsuff=
14965 case $LD in # libtool.m4 will add one of these switches to LD
14966 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14967 libsuff= shlibsuff= libmagic=32-bit;;
14968 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14969 libsuff=32 shlibsuff=N32 libmagic=N32;;
14970 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14971 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14972 *) libsuff= shlibsuff= libmagic=never-match;;
14973 esac
14975 esac
14976 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14977 shlibpath_overrides_runpath=no
14978 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14979 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14980 hardcode_into_libs=yes
14983 # No shared lib support for Linux oldld, aout, or coff.
14984 linux*oldld* | linux*aout* | linux*coff*)
14985 dynamic_linker=no
14988 # This must be Linux ELF.
14989 linux* | k*bsd*-gnu)
14990 version_type=linux
14991 need_lib_prefix=no
14992 need_version=no
14993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14994 soname_spec='${libname}${release}${shared_ext}$major'
14995 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14996 shlibpath_var=LD_LIBRARY_PATH
14997 shlibpath_overrides_runpath=no
14998 # Some binutils ld are patched to set DT_RUNPATH
14999 save_LDFLAGS=$LDFLAGS
15000 save_libdir=$libdir
15001 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15002 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15004 /* end confdefs.h. */
15007 main ()
15011 return 0;
15013 _ACEOF
15014 if ac_fn_cxx_try_link "$LINENO"; then :
15015 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15016 shlibpath_overrides_runpath=yes
15019 rm -f core conftest.err conftest.$ac_objext \
15020 conftest$ac_exeext conftest.$ac_ext
15021 LDFLAGS=$save_LDFLAGS
15022 libdir=$save_libdir
15024 # This implies no fast_install, which is unacceptable.
15025 # Some rework will be needed to allow for fast_install
15026 # before this can be enabled.
15027 hardcode_into_libs=yes
15029 # Append ld.so.conf contents to the search path
15030 if test -f /etc/ld.so.conf; then
15031 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' ' '`
15032 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15035 # We used to test for /lib/ld.so.1 and disable shared libraries on
15036 # powerpc, because MkLinux only supported shared libraries with the
15037 # GNU dynamic linker. Since this was broken with cross compilers,
15038 # most powerpc-linux boxes support dynamic linking these days and
15039 # people can always --disable-shared, the test was removed, and we
15040 # assume the GNU/Linux dynamic linker is in use.
15041 dynamic_linker='GNU/Linux ld.so'
15044 netbsd*)
15045 version_type=sunos
15046 need_lib_prefix=no
15047 need_version=no
15048 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15050 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15051 dynamic_linker='NetBSD (a.out) ld.so'
15052 else
15053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15054 soname_spec='${libname}${release}${shared_ext}$major'
15055 dynamic_linker='NetBSD ld.elf_so'
15057 shlibpath_var=LD_LIBRARY_PATH
15058 shlibpath_overrides_runpath=yes
15059 hardcode_into_libs=yes
15062 newsos6)
15063 version_type=linux
15064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15065 shlibpath_var=LD_LIBRARY_PATH
15066 shlibpath_overrides_runpath=yes
15069 *nto* | *qnx*)
15070 version_type=qnx
15071 need_lib_prefix=no
15072 need_version=no
15073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15074 soname_spec='${libname}${release}${shared_ext}$major'
15075 shlibpath_var=LD_LIBRARY_PATH
15076 shlibpath_overrides_runpath=no
15077 hardcode_into_libs=yes
15078 dynamic_linker='ldqnx.so'
15081 openbsd*)
15082 version_type=sunos
15083 sys_lib_dlsearch_path_spec="/usr/lib"
15084 need_lib_prefix=no
15085 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15086 case $host_os in
15087 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15088 *) need_version=no ;;
15089 esac
15090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15091 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15092 shlibpath_var=LD_LIBRARY_PATH
15093 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15094 case $host_os in
15095 openbsd2.[89] | openbsd2.[89].*)
15096 shlibpath_overrides_runpath=no
15099 shlibpath_overrides_runpath=yes
15101 esac
15102 else
15103 shlibpath_overrides_runpath=yes
15107 os2*)
15108 libname_spec='$name'
15109 shrext_cmds=".dll"
15110 need_lib_prefix=no
15111 library_names_spec='$libname${shared_ext} $libname.a'
15112 dynamic_linker='OS/2 ld.exe'
15113 shlibpath_var=LIBPATH
15116 osf3* | osf4* | osf5*)
15117 version_type=osf
15118 need_lib_prefix=no
15119 need_version=no
15120 soname_spec='${libname}${release}${shared_ext}$major'
15121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15122 shlibpath_var=LD_LIBRARY_PATH
15123 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15124 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15127 rdos*)
15128 dynamic_linker=no
15131 solaris*)
15132 version_type=linux
15133 need_lib_prefix=no
15134 need_version=no
15135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15136 soname_spec='${libname}${release}${shared_ext}$major'
15137 shlibpath_var=LD_LIBRARY_PATH
15138 shlibpath_overrides_runpath=yes
15139 hardcode_into_libs=yes
15140 # ldd complains unless libraries are executable
15141 postinstall_cmds='chmod +x $lib'
15144 sunos4*)
15145 version_type=sunos
15146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15147 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15148 shlibpath_var=LD_LIBRARY_PATH
15149 shlibpath_overrides_runpath=yes
15150 if test "$with_gnu_ld" = yes; then
15151 need_lib_prefix=no
15153 need_version=yes
15156 sysv4 | sysv4.3*)
15157 version_type=linux
15158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15159 soname_spec='${libname}${release}${shared_ext}$major'
15160 shlibpath_var=LD_LIBRARY_PATH
15161 case $host_vendor in
15162 sni)
15163 shlibpath_overrides_runpath=no
15164 need_lib_prefix=no
15165 runpath_var=LD_RUN_PATH
15167 siemens)
15168 need_lib_prefix=no
15170 motorola)
15171 need_lib_prefix=no
15172 need_version=no
15173 shlibpath_overrides_runpath=no
15174 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15176 esac
15179 sysv4*MP*)
15180 if test -d /usr/nec ;then
15181 version_type=linux
15182 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15183 soname_spec='$libname${shared_ext}.$major'
15184 shlibpath_var=LD_LIBRARY_PATH
15188 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15189 version_type=freebsd-elf
15190 need_lib_prefix=no
15191 need_version=no
15192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15193 soname_spec='${libname}${release}${shared_ext}$major'
15194 shlibpath_var=LD_LIBRARY_PATH
15195 shlibpath_overrides_runpath=yes
15196 hardcode_into_libs=yes
15197 if test "$with_gnu_ld" = yes; then
15198 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15199 else
15200 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15201 case $host_os in
15202 sco3.2v5*)
15203 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15205 esac
15207 sys_lib_dlsearch_path_spec='/usr/lib'
15210 tpf*)
15211 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15212 version_type=linux
15213 need_lib_prefix=no
15214 need_version=no
15215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15216 shlibpath_var=LD_LIBRARY_PATH
15217 shlibpath_overrides_runpath=no
15218 hardcode_into_libs=yes
15221 uts4*)
15222 version_type=linux
15223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15224 soname_spec='${libname}${release}${shared_ext}$major'
15225 shlibpath_var=LD_LIBRARY_PATH
15229 dynamic_linker=no
15231 esac
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15233 $as_echo "$dynamic_linker" >&6; }
15234 test "$dynamic_linker" = no && can_build_shared=no
15236 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15237 if test "$GCC" = yes; then
15238 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15241 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15242 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15244 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15245 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15284 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15285 hardcode_action_CXX=
15286 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15287 test -n "$runpath_var_CXX" ||
15288 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15290 # We can hardcode non-existent directories.
15291 if test "$hardcode_direct_CXX" != no &&
15292 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15293 # have to relink, otherwise we might link with an installed library
15294 # when we should be linking with a yet-to-be-installed one
15295 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15296 test "$hardcode_minus_L_CXX" != no; then
15297 # Linking always hardcodes the temporary library directory.
15298 hardcode_action_CXX=relink
15299 else
15300 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15301 hardcode_action_CXX=immediate
15303 else
15304 # We cannot hardcode anything, or else we can only hardcode existing
15305 # directories.
15306 hardcode_action_CXX=unsupported
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15309 $as_echo "$hardcode_action_CXX" >&6; }
15311 if test "$hardcode_action_CXX" = relink ||
15312 test "$inherit_rpath_CXX" = yes; then
15313 # Fast installation is not supported
15314 enable_fast_install=no
15315 elif test "$shlibpath_overrides_runpath" = yes ||
15316 test "$enable_shared" = no; then
15317 # Fast installation is not necessary
15318 enable_fast_install=needless
15327 fi # test -n "$compiler"
15329 CC=$lt_save_CC
15330 LDCXX=$LD
15331 LD=$lt_save_LD
15332 GCC=$lt_save_GCC
15333 with_gnu_ld=$lt_save_with_gnu_ld
15334 lt_cv_path_LDCXX=$lt_cv_path_LD
15335 lt_cv_path_LD=$lt_save_path_LD
15336 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15337 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15338 fi # test "$_lt_caught_CXX_error" != yes
15340 ac_ext=cpp
15341 ac_cpp='$CXXCPP $CPPFLAGS'
15342 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15343 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15344 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
15348 $as_echo_n "checking whether the C++ compiler works... " >&6; }
15349 if ${atf_cv_prog_cxx_works+:} false; then :
15350 $as_echo_n "(cached) " >&6
15351 else
15352 ac_ext=cpp
15353 ac_cpp='$CXXCPP $CPPFLAGS'
15354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15359 /* end confdefs.h. */
15362 main ()
15366 return 0;
15368 _ACEOF
15369 if ac_fn_cxx_try_link "$LINENO"; then :
15370 atf_cv_prog_cxx_works=yes
15371 else
15372 atf_cv_prog_cxx_works=no
15374 rm -f core conftest.err conftest.$ac_objext \
15375 conftest$ac_exeext conftest.$ac_ext
15376 ac_ext=cpp
15377 ac_cpp='$CXXCPP $CPPFLAGS'
15378 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15379 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15380 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $atf_cv_prog_cxx_works" >&5
15384 $as_echo "$atf_cv_prog_cxx_works" >&6; }
15385 if test "${atf_cv_prog_cxx_works}" = no; then
15386 as_fn_error $? "C++ compiler cannot create executables" "$LINENO" 5
15392 # Check whether --enable-developer was given.
15393 if test "${enable_developer+set}" = set; then :
15394 enableval=$enable_developer;
15395 else
15396 if test -d ${srcdir}/.git; then
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: building from HEAD; developer mode autoenabled" >&5
15398 $as_echo "$as_me: building from HEAD; developer mode autoenabled" >&6;}
15399 enable_developer=yes
15400 else
15401 enable_developer=no
15407 # The following warning flags should also be enabled but cannot be.
15408 # Reasons given below.
15410 # -Wold-style-cast: Raises errors when using TIOCGWINSZ, at least under
15411 # Mac OS X. This is due to the way _IOR is defined.
15414 try_c_cxx_flags="-D_FORTIFY_SOURCE=2 \
15415 -Wall \
15416 -Wcast-qual \
15417 -Wextra \
15418 -Wpointer-arith \
15419 -Wredundant-decls \
15420 -Wreturn-type \
15421 -Wshadow \
15422 -Wsign-compare \
15423 -Wswitch \
15424 -Wwrite-strings"
15426 try_c_flags="-Wmissing-prototypes \
15427 -Wno-traditional \
15428 -Wstrict-prototypes"
15430 try_cxx_flags="-Wabi \
15431 -Wctor-dtor-privacy \
15432 -Wno-deprecated \
15433 -Wno-non-template-friend \
15434 -Wno-pmf-conversions \
15435 -Wnon-virtual-dtor \
15436 -Woverloaded-virtual \
15437 -Wreorder \
15438 -Wsign-promo \
15439 -Wsynth"
15441 if test ${enable_developer} = yes; then
15442 try_werror=yes
15443 try_c_cxx_flags="${try_c_cxx_flags} -g -Werror"
15444 else
15445 try_werror=no
15446 try_c_cxx_flags="${try_c_cxx_flags} -DNDEBUG"
15450 ac_ext=c
15451 ac_cpp='$CPP $CPPFLAGS'
15452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15456 valid_cflags=
15457 for f in ${try_c_cxx_flags} ${try_c_flags}; do
15462 if test x"${kyua_CC_has_werror-unset}" = xunset; then
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Werror" >&5
15464 $as_echo_n "checking whether ${CC} supports -Werror... " >&6; }
15465 saved_flags="${CFLAGS}"
15466 kyua_CC_has_werror=no
15467 CFLAGS="${CFLAGS} -Werror"
15468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15469 /* end confdefs.h. */
15472 main ()
15474 return 0;
15476 return 0;
15478 _ACEOF
15479 if ac_fn_c_try_link "$LINENO"; then :
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15481 $as_echo "yes" >&6; }
15482 kyua_CC_has_werror=yes
15483 else
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15485 $as_echo "no" >&6; }
15487 rm -f core conftest.err conftest.$ac_objext \
15488 conftest$ac_exeext conftest.$ac_ext
15489 CFLAGS="${saved_flags}"
15492 if test "${f}" = "-Werror"; then
15493 found=${kyua_CC_has_werror}
15494 else
15495 found=unset
15496 if test ${kyua_CC_has_werror} = yes; then
15498 if test x"${found-unset}" = xunset; then
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports ${f}" >&5
15500 $as_echo_n "checking whether ${CC} supports ${f}... " >&6; }
15501 saved_flags="${CFLAGS}"
15502 found=no
15503 CFLAGS="${CFLAGS} -Werror ${f}"
15504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15505 /* end confdefs.h. */
15508 main ()
15510 return 0;
15512 return 0;
15514 _ACEOF
15515 if ac_fn_c_try_link "$LINENO"; then :
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15517 $as_echo "yes" >&6; }
15518 found=yes
15519 else
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15521 $as_echo "no" >&6; }
15523 rm -f core conftest.err conftest.$ac_objext \
15524 conftest$ac_exeext conftest.$ac_ext
15525 CFLAGS="${saved_flags}"
15528 else
15530 if test x"${found-unset}" = xunset; then
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports ${f}" >&5
15532 $as_echo_n "checking whether ${CC} supports ${f}... " >&6; }
15533 saved_flags="${CFLAGS}"
15534 found=no
15535 CFLAGS="${CFLAGS} ${f}"
15536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15537 /* end confdefs.h. */
15540 main ()
15542 return 0;
15544 return 0;
15546 _ACEOF
15547 if ac_fn_c_try_link "$LINENO"; then :
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15549 $as_echo "yes" >&6; }
15550 found=yes
15551 else
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15553 $as_echo "no" >&6; }
15555 rm -f core conftest.err conftest.$ac_objext \
15556 conftest$ac_exeext conftest.$ac_ext
15557 CFLAGS="${saved_flags}"
15562 if test ${found} = yes; then
15563 valid_cflags="${valid_cflags} ${f}"
15567 done
15568 if test -n "${valid_cflags}"; then
15569 CFLAGS="${CFLAGS} ${valid_cflags}"
15571 ac_ext=cpp
15572 ac_cpp='$CXXCPP $CPPFLAGS'
15573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15579 ac_ext=cpp
15580 ac_cpp='$CXXCPP $CPPFLAGS'
15581 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15582 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15583 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15585 valid_cxxflags=
15586 for f in ${try_c_cxx_flags} ${try_cxx_flags}; do
15591 if test x"${kyua_CXX_has_werror-unset}" = xunset; then
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Werror" >&5
15593 $as_echo_n "checking whether ${CXX} supports -Werror... " >&6; }
15594 saved_flags="${CXXFLAGS}"
15595 kyua_CXX_has_werror=no
15596 CXXFLAGS="${CXXFLAGS} -Werror"
15597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15598 /* end confdefs.h. */
15601 main ()
15603 return 0;
15605 return 0;
15607 _ACEOF
15608 if ac_fn_cxx_try_link "$LINENO"; then :
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15610 $as_echo "yes" >&6; }
15611 kyua_CXX_has_werror=yes
15612 else
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15614 $as_echo "no" >&6; }
15616 rm -f core conftest.err conftest.$ac_objext \
15617 conftest$ac_exeext conftest.$ac_ext
15618 CXXFLAGS="${saved_flags}"
15621 if test "${f}" = "-Werror"; then
15622 found=${kyua_CXX_has_werror}
15623 else
15624 found=unset
15625 if test ${kyua_CXX_has_werror} = yes; then
15627 if test x"${found-unset}" = xunset; then
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports ${f}" >&5
15629 $as_echo_n "checking whether ${CXX} supports ${f}... " >&6; }
15630 saved_flags="${CXXFLAGS}"
15631 found=no
15632 CXXFLAGS="${CXXFLAGS} -Werror ${f}"
15633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15634 /* end confdefs.h. */
15637 main ()
15639 return 0;
15641 return 0;
15643 _ACEOF
15644 if ac_fn_cxx_try_link "$LINENO"; then :
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15646 $as_echo "yes" >&6; }
15647 found=yes
15648 else
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15650 $as_echo "no" >&6; }
15652 rm -f core conftest.err conftest.$ac_objext \
15653 conftest$ac_exeext conftest.$ac_ext
15654 CXXFLAGS="${saved_flags}"
15657 else
15659 if test x"${found-unset}" = xunset; then
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports ${f}" >&5
15661 $as_echo_n "checking whether ${CXX} supports ${f}... " >&6; }
15662 saved_flags="${CXXFLAGS}"
15663 found=no
15664 CXXFLAGS="${CXXFLAGS} ${f}"
15665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15666 /* end confdefs.h. */
15669 main ()
15671 return 0;
15673 return 0;
15675 _ACEOF
15676 if ac_fn_cxx_try_link "$LINENO"; then :
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15678 $as_echo "yes" >&6; }
15679 found=yes
15680 else
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15682 $as_echo "no" >&6; }
15684 rm -f core conftest.err conftest.$ac_objext \
15685 conftest$ac_exeext conftest.$ac_ext
15686 CXXFLAGS="${saved_flags}"
15691 if test ${found} = yes; then
15692 valid_cxxflags="${valid_cxxflags} ${f}"
15696 done
15697 if test -n "${valid_cxxflags}"; then
15698 CXXFLAGS="${CXXFLAGS} ${valid_cxxflags}"
15700 ac_ext=cpp
15701 ac_cpp='$CXXCPP $CPPFLAGS'
15702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is in std" >&5
15713 $as_echo_n "checking whether vsnprintf is in std... " >&6; }
15714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15715 /* end confdefs.h. */
15716 #include <cstdarg>
15717 #include <cstdio>
15719 main ()
15721 va_list ap;
15722 char* buf = NULL;
15723 const char* fmt = NULL;
15724 std::vsnprintf(buf, 0, fmt, ap);
15725 return 0;
15727 return 0;
15729 _ACEOF
15730 if ac_fn_cxx_try_compile "$LINENO"; then :
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15732 $as_echo "yes" >&6; }
15734 $as_echo "#define HAVE_VSNPRINTF_IN_STD 1" >>confdefs.h
15736 else
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15738 $as_echo "no" >&6; }
15741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt allows a + sign for POSIX behavior" >&5
15746 $as_echo_n "checking whether getopt allows a + sign for POSIX behavior... " >&6; }
15747 if ${kyua_cv_getopt_plus+:} false; then :
15748 $as_echo_n "(cached) " >&6
15749 else
15751 ac_ext=c
15752 ac_cpp='$CPP $CPPFLAGS'
15753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15757 if test "$cross_compiling" = yes; then :
15758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15760 as_fn_error $? "cannot run test program while cross compiling
15761 See \`config.log' for more details" "$LINENO" 5; }
15762 else
15763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15764 /* end confdefs.h. */
15765 #include <stdlib.h>
15766 #include <string.h>
15767 #include <unistd.h>
15769 main ()
15772 int argc = 4;
15773 char* argv[5] = {
15774 strdup("conftest"),
15775 strdup("-+"),
15776 strdup("-a"),
15777 strdup("bar"),
15778 NULL
15780 int ch;
15781 int seen_a = 0, seen_plus = 0;
15783 while ((ch = getopt(argc, argv, "+a:")) != -1) {
15784 switch (ch) {
15785 case 'a':
15786 seen_a = 1;
15787 break;
15789 case '+':
15790 seen_plus = 1;
15791 break;
15793 case '?':
15794 default:
15799 return (seen_a && !seen_plus) ? EXIT_SUCCESS : EXIT_FAILURE;
15802 return 0;
15804 _ACEOF
15805 if ac_fn_c_try_run "$LINENO"; then :
15806 kyua_cv_getopt_plus=yes
15807 else
15808 kyua_cv_getopt_plus=no
15810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15811 conftest.$ac_objext conftest.beam conftest.$ac_ext
15814 ac_ext=cpp
15815 ac_cpp='$CXXCPP $CPPFLAGS'
15816 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15817 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15818 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kyua_cv_getopt_plus" >&5
15823 $as_echo "$kyua_cv_getopt_plus" >&6; }
15824 if test x"${kyua_cv_getopt_plus}" = xyes; then
15826 $as_echo "#define HAVE_GNU_GETOPT 1" >>confdefs.h
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset" >&5
15831 $as_echo_n "checking whether getopt has optreset... " >&6; }
15832 if ${kyua_cv_getopt_optreset+:} false; then :
15833 $as_echo_n "(cached) " >&6
15834 else
15836 ac_ext=c
15837 ac_cpp='$CPP $CPPFLAGS'
15838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15843 /* end confdefs.h. */
15844 #include <stdlib.h>
15845 #include <unistd.h>
15847 main ()
15850 optreset = 1;
15851 return EXIT_SUCCESS;
15854 return 0;
15856 _ACEOF
15857 if ac_fn_c_try_compile "$LINENO"; then :
15858 kyua_cv_getopt_optreset=yes
15859 else
15860 kyua_cv_getopt_optreset=no
15862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15863 ac_ext=cpp
15864 ac_cpp='$CXXCPP $CPPFLAGS'
15865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kyua_cv_getopt_optreset" >&5
15872 $as_echo "$kyua_cv_getopt_optreset" >&6; }
15873 if test x"${kyua_cv_getopt_optreset}" = xyes; then
15875 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((__format__(__printf__, a, b))) is supported" >&5
15882 $as_echo_n "checking whether __attribute__((__format__(__printf__, a, b))) is supported... " >&6; }
15883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15884 /* end confdefs.h. */
15886 #include <stdarg.h>
15887 #include <stdio.h>
15889 static void test_printf(const char *, ...)
15890 __attribute__((__format__(__printf__, 1, 2)));
15892 static void
15893 test_printf(const char *format, ...)
15895 va_list ap;
15897 va_start(ap, format);
15898 vprintf(format, ap);
15899 va_end(ap);
15902 main ()
15905 test_printf("foo %s", "bar");
15906 return 0;
15909 return 0;
15911 _ACEOF
15912 if ac_fn_cxx_try_compile "$LINENO"; then :
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15914 $as_echo "yes" >&6; }
15915 value="__attribute__((__format__(__printf__, a, b)))"
15916 else
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15918 $as_echo "no" >&6; }
15919 value=""
15922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15923 ATTRIBUTE_FORMAT_PRINTF=${value}
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((__noreturn__)) is supported" >&5
15928 $as_echo_n "checking whether __attribute__((__noreturn__)) is supported... " >&6; }
15929 if ${kyua_cv_attribute_noreturn+:} false; then :
15930 $as_echo_n "(cached) " >&6
15931 else
15933 if test "$cross_compiling" = yes; then :
15934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15936 as_fn_error $? "cannot run test program while cross compiling
15937 See \`config.log' for more details" "$LINENO" 5; }
15938 else
15939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15940 /* end confdefs.h. */
15943 main ()
15946 #if ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2)
15947 return 0;
15948 #else
15949 return 1;
15950 #endif
15953 return 0;
15955 _ACEOF
15956 if ac_fn_cxx_try_run "$LINENO"; then :
15957 kyua_cv_attribute_noreturn=yes
15958 else
15959 kyua_cv_attribute_noreturn=no
15961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15962 conftest.$ac_objext conftest.beam conftest.$ac_ext
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kyua_cv_attribute_noreturn" >&5
15968 $as_echo "$kyua_cv_attribute_noreturn" >&6; }
15969 if test x"${kyua_cv_attribute_noreturn}" = xyes; then
15970 value="__attribute__((__noreturn__))"
15971 else
15972 value=""
15974 ATTRIBUTE_NORETURN=${value}
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((__unused__)) is supported" >&5
15979 $as_echo_n "checking whether __attribute__((__unused__)) is supported... " >&6; }
15980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15981 /* end confdefs.h. */
15983 static void
15984 function(int a __attribute__((__unused__)))
15988 main ()
15991 function(3);
15992 return 0;
15995 return 0;
15997 _ACEOF
15998 if ac_fn_cxx_try_compile "$LINENO"; then :
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16000 $as_echo "yes" >&6; }
16001 value="__attribute__((__unused__))"
16002 else
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16004 $as_echo "no" >&6; }
16005 value=""
16008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16009 ATTRIBUTE_UNUSED=${value}
16014 for ac_func in putenv setenv unsetenv
16015 do :
16016 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16017 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
16018 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16019 cat >>confdefs.h <<_ACEOF
16020 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16021 _ACEOF
16024 done
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv is in std" >&5
16030 $as_echo_n "checking whether putenv is in std... " >&6; }
16031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16032 /* end confdefs.h. */
16033 #include <cstdio>
16035 main ()
16037 std::putenv("a=b");
16038 return 0;
16040 return 0;
16042 _ACEOF
16043 if ac_fn_cxx_try_compile "$LINENO"; then :
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16045 $as_echo "yes" >&6; }
16047 $as_echo "#define HAVE_PUTENV_IN_STD 1" >>confdefs.h
16049 else
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16051 $as_echo "no" >&6; }
16054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv is in std" >&5
16060 $as_echo_n "checking whether setenv is in std... " >&6; }
16061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16062 /* end confdefs.h. */
16063 #include <cstdio>
16065 main ()
16067 std::setenv("a", "b");
16068 return 0;
16070 return 0;
16072 _ACEOF
16073 if ac_fn_cxx_try_compile "$LINENO"; then :
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16075 $as_echo "yes" >&6; }
16077 $as_echo "#define HAVE_SETENV_IN_STD 1" >>confdefs.h
16079 else
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16081 $as_echo "no" >&6; }
16084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv is in std" >&5
16090 $as_echo_n "checking whether unsetenv is in std... " >&6; }
16091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16092 /* end confdefs.h. */
16093 #include <cstdio>
16095 main ()
16097 std::unsetenv("a");
16098 return 0;
16100 return 0;
16102 _ACEOF
16103 if ac_fn_cxx_try_compile "$LINENO"; then :
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16105 $as_echo "yes" >&6; }
16107 $as_echo "#define HAVE_UNSETENV_IN_STD 1" >>confdefs.h
16109 else
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16111 $as_echo "no" >&6; }
16114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether basename takes a constant pointer" >&5
16120 $as_echo_n "checking whether basename takes a constant pointer... " >&6; }
16121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16122 /* end confdefs.h. */
16123 #include <libgen.h>
16125 main ()
16128 const char* s = "/foo/bar/";
16129 (void)::basename(s);
16132 return 0;
16134 _ACEOF
16135 if ac_fn_cxx_try_compile "$LINENO"; then :
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16137 $as_echo "yes" >&6; }
16139 $as_echo "#define HAVE_CONST_BASENAME 1" >>confdefs.h
16141 else
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16143 $as_echo "no" >&6; }
16145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirname takes a constant pointer" >&5
16148 $as_echo_n "checking whether dirname takes a constant pointer... " >&6; }
16149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16150 /* end confdefs.h. */
16151 #include <libgen.h>
16153 main ()
16156 const char* s = "/foo/bar/";
16157 (void)::dirname(s);
16160 return 0;
16162 _ACEOF
16163 if ac_fn_cxx_try_compile "$LINENO"; then :
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16165 $as_echo "yes" >&6; }
16167 $as_echo "#define HAVE_CONST_DIRNAME 1" >>confdefs.h
16169 else
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16171 $as_echo "no" >&6; }
16173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd(NULL, 0) works" >&5
16176 $as_echo_n "checking whether getcwd(NULL, 0) works... " >&6; }
16177 if ${kyua_cv_getcwd_works+:} false; then :
16178 $as_echo_n "(cached) " >&6
16179 else
16181 if test "$cross_compiling" = yes; then :
16182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16184 as_fn_error $? "cannot run test program while cross compiling
16185 See \`config.log' for more details" "$LINENO" 5; }
16186 else
16187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16188 /* end confdefs.h. */
16189 #include <stdlib.h>
16190 #include <unistd.h>
16192 main ()
16195 char *cwd = getcwd(NULL, 0);
16196 return (cwd != NULL) ? EXIT_SUCCESS : EXIT_FAILURE;
16199 return 0;
16201 _ACEOF
16202 if ac_fn_cxx_try_run "$LINENO"; then :
16203 kyua_cv_getcwd_works=yes
16204 else
16205 kyua_cv_getcwd_works=no
16207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16208 conftest.$ac_objext conftest.beam conftest.$ac_ext
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kyua_cv_getcwd_works" >&5
16214 $as_echo "$kyua_cv_getcwd_works" >&6; }
16215 if test x"${kyua_cv_getcwd_works}" = xyes; then
16217 $as_echo "#define HAVE_GETCWD_DYN 1" >>confdefs.h
16221 for ac_func in unmount
16222 do :
16223 ac_fn_cxx_check_func "$LINENO" "unmount" "ac_cv_func_unmount"
16224 if test "x$ac_cv_func_unmount" = xyes; then :
16225 cat >>confdefs.h <<_ACEOF
16226 #define HAVE_UNMOUNT 1
16227 _ACEOF
16230 done
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is in std" >&5
16237 $as_echo_n "checking whether snprintf is in std... " >&6; }
16238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16239 /* end confdefs.h. */
16240 #include <cstdio>
16242 main ()
16244 char buf;
16245 std::snprintf(&buf, 1, "");
16246 return 0;
16248 return 0;
16250 _ACEOF
16251 if ac_fn_cxx_try_compile "$LINENO"; then :
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16253 $as_echo "yes" >&6; }
16255 $as_echo "#define HAVE_SNPRINTF_IN_STD 1" >>confdefs.h
16257 else
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16259 $as_echo "no" >&6; }
16262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the last valid signal" >&5
16268 $as_echo_n "checking for the last valid signal... " >&6; }
16269 if ${kyua_cv_signal_lastno+:} false; then :
16270 $as_echo_n "(cached) " >&6
16271 else
16273 if test "$cross_compiling" = yes; then :
16274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16276 as_fn_error $? "cannot run test program while cross compiling
16277 See \`config.log' for more details" "$LINENO" 5; }
16278 else
16279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16280 /* end confdefs.h. */
16281 #include <err.h>
16282 #include <errno.h>
16283 #include <signal.h>
16284 #include <stdio.h>
16285 #include <stdio.h>
16286 #include <stdlib.h>
16288 main ()
16291 int i;
16292 FILE *f;
16294 i = 0;
16295 while (i < 1024) {
16296 i++;
16297 if (i != SIGKILL && i != SIGSTOP) {
16298 struct sigaction sa;
16299 int ret;
16301 sa.sa_handler = SIG_IGN;
16302 sigemptyset(&sa.sa_mask);
16303 sa.sa_flags = 0;
16305 ret = sigaction(i, &sa, NULL);
16306 if (ret == -1) {
16307 if (errno == EINVAL) {
16308 i--;
16309 break;
16310 } else
16311 err(EXIT_FAILURE, "sigaction failed");
16315 if (i == 100)
16316 errx(EXIT_FAILURE, "too much signals");
16318 f = fopen("conftest.cnt", "w");
16319 if (f == NULL)
16320 err(EXIT_FAILURE, "failed to open file");
16322 fprintf(f, "%d\n", i);
16323 fclose(f);
16325 return EXIT_SUCCESS;
16328 return 0;
16330 _ACEOF
16331 if ac_fn_cxx_try_run "$LINENO"; then :
16332 if test ! -f conftest.cnt; then
16333 kyua_cv_signal_lastno=15
16334 else
16335 kyua_cv_signal_lastno=$(cat conftest.cnt)
16336 rm -f conftest.cnt
16338 else
16339 kyua_cv_signal_lastno=15
16341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16342 conftest.$ac_objext conftest.beam conftest.$ac_ext
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kyua_cv_signal_lastno" >&5
16348 $as_echo "$kyua_cv_signal_lastno" >&6; }
16350 cat >>confdefs.h <<_ACEOF
16351 #define LAST_SIGNO ${kyua_cv_signal_lastno}
16352 _ACEOF
16356 ac_fn_cxx_check_type "$LINENO" "timer_t" "ac_cv_type_timer_t" "#include <time.h>
16358 if test "x$ac_cv_type_timer_t" = xyes; then :
16365 test x"${ATF_BUILD_CC-unset}" = x"unset" && ATF_BUILD_CC="${CC}"
16370 test x"${ATF_BUILD_CFLAGS-unset}" = x"unset" && ATF_BUILD_CFLAGS="${CFLAGS}"
16375 test x"${ATF_BUILD_CPP-unset}" = x"unset" && ATF_BUILD_CPP="${CPP}"
16380 test x"${ATF_BUILD_CPPFLAGS-unset}" = x"unset" && ATF_BUILD_CPPFLAGS="${CPPFLAGS}"
16385 test x"${ATF_BUILD_CXX-unset}" = x"unset" && ATF_BUILD_CXX="${CXX}"
16390 test x"${ATF_BUILD_CXXFLAGS-unset}" = x"unset" && ATF_BUILD_CXXFLAGS="${CXXFLAGS}"
16395 if test "${srcdir}" = .; then
16396 target_srcdir=
16397 else
16398 target_srcdir="${srcdir}/"
16403 atf_arch=`uname -p`
16404 atf_machine=`uname -m`
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: Machine type: ${atf_machine}, architecture: ${atf_arch}" >&5
16407 $as_echo "$as_me: Machine type: ${atf_machine}, architecture: ${atf_arch}" >&6;}
16408 atf_arch=${atf_arch}
16410 atf_machine=${atf_machine}
16415 if test x"${ATF_CONFSUBDIR-unset}" = x"unset"; then
16416 ATF_CONFSUBDIR=atf
16417 else
16418 case ${ATF_CONFSUBDIR} in
16420 as_fn_error $? "ATF_CONFSUBDIR must hold a relative path" "$LINENO" 5
16424 esac
16426 if test x"${ATF_CONFSUBDIR}" = x""; then
16427 atf_confdir=\${sysconfdir}
16429 else
16430 atf_confdir=\${sysconfdir}/${ATF_CONFSUBDIR}
16435 if test x"${ATF_WORKDIR}" = x""; then
16436 for t in /tmp /var/tmp; do
16437 if test -d ${t}; then
16438 ATF_WORKDIR=${t}
16439 break
16441 done
16442 if test x"${ATF_WORKDIR}" = x""; then
16443 as_fn_error $? "Could not guess a value for ATF_WORKDIR" "$LINENO" 5
16445 else
16446 case ${ATF_WORKDIR} in
16450 as_fn_error $? "ATF_WORKDIR must hold an absolute path" "$LINENO" 5
16452 esac
16455 atf_aclocaldir=\${datadir}/aclocal
16457 atf_cssdir=\${datadir}/examples/atf
16459 atf_dtddir=\${datadir}/xml/atf
16461 atf_egdir=\${datadir}/examples/atf
16463 atf_pkgconfigdir=\${libdir}/pkgconfig
16465 atf_xsldir=\${datadir}/xsl/atf
16470 if test x"${ATF_SHELL}" = x""; then
16471 for ac_prog in bash sh
16473 # Extract the first word of "$ac_prog", so it can be a program name with args.
16474 set dummy $ac_prog; ac_word=$2
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16476 $as_echo_n "checking for $ac_word... " >&6; }
16477 if ${ac_cv_path_ATF_SHELL+:} false; then :
16478 $as_echo_n "(cached) " >&6
16479 else
16480 case $ATF_SHELL in
16481 [\\/]* | ?:[\\/]*)
16482 ac_cv_path_ATF_SHELL="$ATF_SHELL" # Let the user override the test with a path.
16485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16486 for as_dir in $PATH
16488 IFS=$as_save_IFS
16489 test -z "$as_dir" && as_dir=.
16490 for ac_exec_ext in '' $ac_executable_extensions; do
16491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16492 ac_cv_path_ATF_SHELL="$as_dir/$ac_word$ac_exec_ext"
16493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16494 break 2
16496 done
16497 done
16498 IFS=$as_save_IFS
16501 esac
16503 ATF_SHELL=$ac_cv_path_ATF_SHELL
16504 if test -n "$ATF_SHELL"; then
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ATF_SHELL" >&5
16506 $as_echo "$ATF_SHELL" >&6; }
16507 else
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16509 $as_echo "no" >&6; }
16513 test -n "$ATF_SHELL" && break
16514 done
16516 else
16517 case ${ATF_SHELL} in
16521 as_fn_error $? "ATF_SHELL must hold an absolute path" "$LINENO" 5
16523 esac
16525 if test x"${ATF_SHELL}" = x""; then
16526 as_fn_error $? "No POSIX shell interpreter found; maybe set ATF_SHELL?" "$LINENO" 5
16530 # Extract the first word of "gdb", so it can be a program name with args.
16531 set dummy gdb; ac_word=$2
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16533 $as_echo_n "checking for $ac_word... " >&6; }
16534 if ${ac_cv_path_GDB+:} false; then :
16535 $as_echo_n "(cached) " >&6
16536 else
16537 case $GDB in
16538 [\\/]* | ?:[\\/]*)
16539 ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
16542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16543 for as_dir in $PATH
16545 IFS=$as_save_IFS
16546 test -z "$as_dir" && as_dir=.
16547 for ac_exec_ext in '' $ac_executable_extensions; do
16548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16549 ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
16550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16551 break 2
16553 done
16554 done
16555 IFS=$as_save_IFS
16558 esac
16560 GDB=$ac_cv_path_GDB
16561 if test -n "$GDB"; then
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDB" >&5
16563 $as_echo "$GDB" >&6; }
16564 else
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16566 $as_echo "no" >&6; }
16570 # Extract the first word of "kyua", so it can be a program name with args.
16571 set dummy kyua; ac_word=$2
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16573 $as_echo_n "checking for $ac_word... " >&6; }
16574 if ${ac_cv_path_KYUA+:} false; then :
16575 $as_echo_n "(cached) " >&6
16576 else
16577 case $KYUA in
16578 [\\/]* | ?:[\\/]*)
16579 ac_cv_path_KYUA="$KYUA" # Let the user override the test with a path.
16582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16583 for as_dir in $PATH
16585 IFS=$as_save_IFS
16586 test -z "$as_dir" && as_dir=.
16587 for ac_exec_ext in '' $ac_executable_extensions; do
16588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16589 ac_cv_path_KYUA="$as_dir/$ac_word$ac_exec_ext"
16590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16591 break 2
16593 done
16594 done
16595 IFS=$as_save_IFS
16598 esac
16600 KYUA=$ac_cv_path_KYUA
16601 if test -n "$KYUA"; then
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KYUA" >&5
16603 $as_echo "$KYUA" >&6; }
16604 else
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16606 $as_echo "no" >&6; }
16610 if test -n "${KYUA}"; then
16611 HAVE_KYUA_TRUE=
16612 HAVE_KYUA_FALSE='#'
16613 else
16614 HAVE_KYUA_TRUE='#'
16615 HAVE_KYUA_FALSE=
16618 # Extract the first word of "git", so it can be a program name with args.
16619 set dummy git; ac_word=$2
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16621 $as_echo_n "checking for $ac_word... " >&6; }
16622 if ${ac_cv_path_GIT+:} false; then :
16623 $as_echo_n "(cached) " >&6
16624 else
16625 case $GIT in
16626 [\\/]* | ?:[\\/]*)
16627 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
16630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16631 for as_dir in $PATH
16633 IFS=$as_save_IFS
16634 test -z "$as_dir" && as_dir=.
16635 for ac_exec_ext in '' $ac_executable_extensions; do
16636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16637 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
16638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16639 break 2
16641 done
16642 done
16643 IFS=$as_save_IFS
16646 esac
16648 GIT=$ac_cv_path_GIT
16649 if test -n "$GIT"; then
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
16651 $as_echo "$GIT" >&6; }
16652 else
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16654 $as_echo "no" >&6; }
16660 ac_config_files="$ac_config_files Makefile atf-c/defs.h"
16662 cat >confcache <<\_ACEOF
16663 # This file is a shell script that caches the results of configure
16664 # tests run on this system so they can be shared between configure
16665 # scripts and configure runs, see configure's option --config-cache.
16666 # It is not useful on other systems. If it contains results you don't
16667 # want to keep, you may remove or edit it.
16669 # config.status only pays attention to the cache file if you give it
16670 # the --recheck option to rerun configure.
16672 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16673 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16674 # following values.
16676 _ACEOF
16678 # The following way of writing the cache mishandles newlines in values,
16679 # but we know of no workaround that is simple, portable, and efficient.
16680 # So, we kill variables containing newlines.
16681 # Ultrix sh set writes to stderr and can't be redirected directly,
16682 # and sets the high bit in the cache file unless we assign to the vars.
16684 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16685 eval ac_val=\$$ac_var
16686 case $ac_val in #(
16687 *${as_nl}*)
16688 case $ac_var in #(
16689 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16690 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16691 esac
16692 case $ac_var in #(
16693 _ | IFS | as_nl) ;; #(
16694 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16695 *) { eval $ac_var=; unset $ac_var;} ;;
16696 esac ;;
16697 esac
16698 done
16700 (set) 2>&1 |
16701 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16702 *${as_nl}ac_space=\ *)
16703 # `set' does not quote correctly, so add quotes: double-quote
16704 # substitution turns \\\\ into \\, and sed turns \\ into \.
16705 sed -n \
16706 "s/'/'\\\\''/g;
16707 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16708 ;; #(
16710 # `set' quotes correctly as required by POSIX, so do not add quotes.
16711 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16713 esac |
16714 sort
16716 sed '
16717 /^ac_cv_env_/b end
16718 t clear
16719 :clear
16720 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16721 t end
16722 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16723 :end' >>confcache
16724 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16725 if test -w "$cache_file"; then
16726 if test "x$cache_file" != "x/dev/null"; then
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16728 $as_echo "$as_me: updating cache $cache_file" >&6;}
16729 if test ! -f "$cache_file" || test -h "$cache_file"; then
16730 cat confcache >"$cache_file"
16731 else
16732 case $cache_file in #(
16733 */* | ?:*)
16734 mv -f confcache "$cache_file"$$ &&
16735 mv -f "$cache_file"$$ "$cache_file" ;; #(
16737 mv -f confcache "$cache_file" ;;
16738 esac
16741 else
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16743 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16746 rm -f confcache
16748 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16749 # Let make expand exec_prefix.
16750 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16752 DEFS=-DHAVE_CONFIG_H
16754 ac_libobjs=
16755 ac_ltlibobjs=
16757 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16758 # 1. Remove the extension, and $U if already installed.
16759 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16760 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16761 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16762 # will be set to the directory where LIBOBJS objects are built.
16763 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16764 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16765 done
16766 LIBOBJS=$ac_libobjs
16768 LTLIBOBJS=$ac_ltlibobjs
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16772 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16773 if test -n "$am_sleep_pid"; then
16774 # Hide warnings about reused PIDs.
16775 wait $am_sleep_pid 2>/dev/null
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16778 $as_echo "done" >&6; }
16779 if test -n "$EXEEXT"; then
16780 am__EXEEXT_TRUE=
16781 am__EXEEXT_FALSE='#'
16782 else
16783 am__EXEEXT_TRUE='#'
16784 am__EXEEXT_FALSE=
16787 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16788 as_fn_error $? "conditional \"AMDEP\" was never defined.
16789 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16791 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16792 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16793 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16795 if test -z "${ENABLE_TOOLS_TRUE}" && test -z "${ENABLE_TOOLS_FALSE}"; then
16796 as_fn_error $? "conditional \"ENABLE_TOOLS\" was never defined.
16797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16799 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16800 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16803 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16804 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16807 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16808 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16811 if test -z "${HAVE_KYUA_TRUE}" && test -z "${HAVE_KYUA_FALSE}"; then
16812 as_fn_error $? "conditional \"HAVE_KYUA\" was never defined.
16813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16816 : "${CONFIG_STATUS=./config.status}"
16817 ac_write_fail=0
16818 ac_clean_files_save=$ac_clean_files
16819 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16821 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16822 as_write_fail=0
16823 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16824 #! $SHELL
16825 # Generated by $as_me.
16826 # Run this file to recreate the current configuration.
16827 # Compiler output produced by configure, useful for debugging
16828 # configure, is in config.log if it exists.
16830 debug=false
16831 ac_cs_recheck=false
16832 ac_cs_silent=false
16834 SHELL=\${CONFIG_SHELL-$SHELL}
16835 export SHELL
16836 _ASEOF
16837 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16838 ## -------------------- ##
16839 ## M4sh Initialization. ##
16840 ## -------------------- ##
16842 # Be more Bourne compatible
16843 DUALCASE=1; export DUALCASE # for MKS sh
16844 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16845 emulate sh
16846 NULLCMD=:
16847 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16848 # is contrary to our usage. Disable this feature.
16849 alias -g '${1+"$@"}'='"$@"'
16850 setopt NO_GLOB_SUBST
16851 else
16852 case `(set -o) 2>/dev/null` in #(
16853 *posix*) :
16854 set -o posix ;; #(
16855 *) :
16857 esac
16861 as_nl='
16863 export as_nl
16864 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16865 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16866 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16867 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16868 # Prefer a ksh shell builtin over an external printf program on Solaris,
16869 # but without wasting forks for bash or zsh.
16870 if test -z "$BASH_VERSION$ZSH_VERSION" \
16871 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16872 as_echo='print -r --'
16873 as_echo_n='print -rn --'
16874 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16875 as_echo='printf %s\n'
16876 as_echo_n='printf %s'
16877 else
16878 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16879 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16880 as_echo_n='/usr/ucb/echo -n'
16881 else
16882 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16883 as_echo_n_body='eval
16884 arg=$1;
16885 case $arg in #(
16886 *"$as_nl"*)
16887 expr "X$arg" : "X\\(.*\\)$as_nl";
16888 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16889 esac;
16890 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16892 export as_echo_n_body
16893 as_echo_n='sh -c $as_echo_n_body as_echo'
16895 export as_echo_body
16896 as_echo='sh -c $as_echo_body as_echo'
16899 # The user is always right.
16900 if test "${PATH_SEPARATOR+set}" != set; then
16901 PATH_SEPARATOR=:
16902 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16903 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16904 PATH_SEPARATOR=';'
16909 # IFS
16910 # We need space, tab and new line, in precisely that order. Quoting is
16911 # there to prevent editors from complaining about space-tab.
16912 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16913 # splitting by setting IFS to empty value.)
16914 IFS=" "" $as_nl"
16916 # Find who we are. Look in the path if we contain no directory separator.
16917 as_myself=
16918 case $0 in #((
16919 *[\\/]* ) as_myself=$0 ;;
16920 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16921 for as_dir in $PATH
16923 IFS=$as_save_IFS
16924 test -z "$as_dir" && as_dir=.
16925 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16926 done
16927 IFS=$as_save_IFS
16930 esac
16931 # We did not find ourselves, most probably we were run as `sh COMMAND'
16932 # in which case we are not to be found in the path.
16933 if test "x$as_myself" = x; then
16934 as_myself=$0
16936 if test ! -f "$as_myself"; then
16937 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16938 exit 1
16941 # Unset variables that we do not need and which cause bugs (e.g. in
16942 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16943 # suppresses any "Segmentation fault" message there. '((' could
16944 # trigger a bug in pdksh 5.2.14.
16945 for as_var in BASH_ENV ENV MAIL MAILPATH
16946 do eval test x\${$as_var+set} = xset \
16947 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16948 done
16949 PS1='$ '
16950 PS2='> '
16951 PS4='+ '
16953 # NLS nuisances.
16954 LC_ALL=C
16955 export LC_ALL
16956 LANGUAGE=C
16957 export LANGUAGE
16959 # CDPATH.
16960 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16963 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16964 # ----------------------------------------
16965 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16966 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16967 # script with STATUS, using 1 if that was 0.
16968 as_fn_error ()
16970 as_status=$1; test $as_status -eq 0 && as_status=1
16971 if test "$4"; then
16972 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16973 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16975 $as_echo "$as_me: error: $2" >&2
16976 as_fn_exit $as_status
16977 } # as_fn_error
16980 # as_fn_set_status STATUS
16981 # -----------------------
16982 # Set $? to STATUS, without forking.
16983 as_fn_set_status ()
16985 return $1
16986 } # as_fn_set_status
16988 # as_fn_exit STATUS
16989 # -----------------
16990 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16991 as_fn_exit ()
16993 set +e
16994 as_fn_set_status $1
16995 exit $1
16996 } # as_fn_exit
16998 # as_fn_unset VAR
16999 # ---------------
17000 # Portably unset VAR.
17001 as_fn_unset ()
17003 { eval $1=; unset $1;}
17005 as_unset=as_fn_unset
17006 # as_fn_append VAR VALUE
17007 # ----------------------
17008 # Append the text in VALUE to the end of the definition contained in VAR. Take
17009 # advantage of any shell optimizations that allow amortized linear growth over
17010 # repeated appends, instead of the typical quadratic growth present in naive
17011 # implementations.
17012 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17013 eval 'as_fn_append ()
17015 eval $1+=\$2
17017 else
17018 as_fn_append ()
17020 eval $1=\$$1\$2
17022 fi # as_fn_append
17024 # as_fn_arith ARG...
17025 # ------------------
17026 # Perform arithmetic evaluation on the ARGs, and store the result in the
17027 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17028 # must be portable across $(()) and expr.
17029 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17030 eval 'as_fn_arith ()
17032 as_val=$(( $* ))
17034 else
17035 as_fn_arith ()
17037 as_val=`expr "$@" || test $? -eq 1`
17039 fi # as_fn_arith
17042 if expr a : '\(a\)' >/dev/null 2>&1 &&
17043 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17044 as_expr=expr
17045 else
17046 as_expr=false
17049 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17050 as_basename=basename
17051 else
17052 as_basename=false
17055 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17056 as_dirname=dirname
17057 else
17058 as_dirname=false
17061 as_me=`$as_basename -- "$0" ||
17062 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17063 X"$0" : 'X\(//\)$' \| \
17064 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17065 $as_echo X/"$0" |
17066 sed '/^.*\/\([^/][^/]*\)\/*$/{
17067 s//\1/
17070 /^X\/\(\/\/\)$/{
17071 s//\1/
17074 /^X\/\(\/\).*/{
17075 s//\1/
17078 s/.*/./; q'`
17080 # Avoid depending upon Character Ranges.
17081 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17082 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17083 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17084 as_cr_digits='0123456789'
17085 as_cr_alnum=$as_cr_Letters$as_cr_digits
17087 ECHO_C= ECHO_N= ECHO_T=
17088 case `echo -n x` in #(((((
17089 -n*)
17090 case `echo 'xy\c'` in
17091 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17092 xy) ECHO_C='\c';;
17093 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17094 ECHO_T=' ';;
17095 esac;;
17097 ECHO_N='-n';;
17098 esac
17100 rm -f conf$$ conf$$.exe conf$$.file
17101 if test -d conf$$.dir; then
17102 rm -f conf$$.dir/conf$$.file
17103 else
17104 rm -f conf$$.dir
17105 mkdir conf$$.dir 2>/dev/null
17107 if (echo >conf$$.file) 2>/dev/null; then
17108 if ln -s conf$$.file conf$$ 2>/dev/null; then
17109 as_ln_s='ln -s'
17110 # ... but there are two gotchas:
17111 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17112 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17113 # In both cases, we have to default to `cp -pR'.
17114 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17115 as_ln_s='cp -pR'
17116 elif ln conf$$.file conf$$ 2>/dev/null; then
17117 as_ln_s=ln
17118 else
17119 as_ln_s='cp -pR'
17121 else
17122 as_ln_s='cp -pR'
17124 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17125 rmdir conf$$.dir 2>/dev/null
17128 # as_fn_mkdir_p
17129 # -------------
17130 # Create "$as_dir" as a directory, including parents if necessary.
17131 as_fn_mkdir_p ()
17134 case $as_dir in #(
17135 -*) as_dir=./$as_dir;;
17136 esac
17137 test -d "$as_dir" || eval $as_mkdir_p || {
17138 as_dirs=
17139 while :; do
17140 case $as_dir in #(
17141 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17142 *) as_qdir=$as_dir;;
17143 esac
17144 as_dirs="'$as_qdir' $as_dirs"
17145 as_dir=`$as_dirname -- "$as_dir" ||
17146 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17147 X"$as_dir" : 'X\(//\)[^/]' \| \
17148 X"$as_dir" : 'X\(//\)$' \| \
17149 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17150 $as_echo X"$as_dir" |
17151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17152 s//\1/
17155 /^X\(\/\/\)[^/].*/{
17156 s//\1/
17159 /^X\(\/\/\)$/{
17160 s//\1/
17163 /^X\(\/\).*/{
17164 s//\1/
17167 s/.*/./; q'`
17168 test -d "$as_dir" && break
17169 done
17170 test -z "$as_dirs" || eval "mkdir $as_dirs"
17171 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17174 } # as_fn_mkdir_p
17175 if mkdir -p . 2>/dev/null; then
17176 as_mkdir_p='mkdir -p "$as_dir"'
17177 else
17178 test -d ./-p && rmdir ./-p
17179 as_mkdir_p=false
17183 # as_fn_executable_p FILE
17184 # -----------------------
17185 # Test if FILE is an executable regular file.
17186 as_fn_executable_p ()
17188 test -f "$1" && test -x "$1"
17189 } # as_fn_executable_p
17190 as_test_x='test -x'
17191 as_executable_p=as_fn_executable_p
17193 # Sed expression to map a string onto a valid CPP name.
17194 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17196 # Sed expression to map a string onto a valid variable name.
17197 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17200 exec 6>&1
17201 ## ----------------------------------- ##
17202 ## Main body of $CONFIG_STATUS script. ##
17203 ## ----------------------------------- ##
17204 _ASEOF
17205 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17208 # Save the log message, to keep $0 and so on meaningful, and to
17209 # report actual input values of CONFIG_FILES etc. instead of their
17210 # values after options handling.
17211 ac_log="
17212 This file was extended by Automated Testing Framework $as_me 0.17, which was
17213 generated by GNU Autoconf 2.69. Invocation command line was
17215 CONFIG_FILES = $CONFIG_FILES
17216 CONFIG_HEADERS = $CONFIG_HEADERS
17217 CONFIG_LINKS = $CONFIG_LINKS
17218 CONFIG_COMMANDS = $CONFIG_COMMANDS
17219 $ $0 $@
17221 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17224 _ACEOF
17226 case $ac_config_files in *"
17227 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17228 esac
17230 case $ac_config_headers in *"
17231 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17232 esac
17235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17236 # Files that config.status was made for.
17237 config_files="$ac_config_files"
17238 config_headers="$ac_config_headers"
17239 config_commands="$ac_config_commands"
17241 _ACEOF
17243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17244 ac_cs_usage="\
17245 \`$as_me' instantiates files and other configuration actions
17246 from templates according to the current configuration. Unless the files
17247 and actions are specified as TAGs, all are instantiated by default.
17249 Usage: $0 [OPTION]... [TAG]...
17251 -h, --help print this help, then exit
17252 -V, --version print version number and configuration settings, then exit
17253 --config print configuration, then exit
17254 -q, --quiet, --silent
17255 do not print progress messages
17256 -d, --debug don't remove temporary files
17257 --recheck update $as_me by reconfiguring in the same conditions
17258 --file=FILE[:TEMPLATE]
17259 instantiate the configuration file FILE
17260 --header=FILE[:TEMPLATE]
17261 instantiate the configuration header FILE
17263 Configuration files:
17264 $config_files
17266 Configuration headers:
17267 $config_headers
17269 Configuration commands:
17270 $config_commands
17272 Report bugs to <atf-devel@NetBSD.org>.
17273 Automated Testing Framework home page: <http://code.google.com/p/kyua/wiki/ATF>."
17275 _ACEOF
17276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17277 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17278 ac_cs_version="\\
17279 Automated Testing Framework config.status 0.17
17280 configured by $0, generated by GNU Autoconf 2.69,
17281 with options \\"\$ac_cs_config\\"
17283 Copyright (C) 2012 Free Software Foundation, Inc.
17284 This config.status script is free software; the Free Software Foundation
17285 gives unlimited permission to copy, distribute and modify it."
17287 ac_pwd='$ac_pwd'
17288 srcdir='$srcdir'
17289 INSTALL='$INSTALL'
17290 MKDIR_P='$MKDIR_P'
17291 AWK='$AWK'
17292 test -n "\$AWK" || AWK=awk
17293 _ACEOF
17295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17296 # The default lists apply if the user does not specify any file.
17297 ac_need_defaults=:
17298 while test $# != 0
17300 case $1 in
17301 --*=?*)
17302 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17303 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17304 ac_shift=:
17306 --*=)
17307 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17308 ac_optarg=
17309 ac_shift=:
17312 ac_option=$1
17313 ac_optarg=$2
17314 ac_shift=shift
17316 esac
17318 case $ac_option in
17319 # Handling of the options.
17320 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17321 ac_cs_recheck=: ;;
17322 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17323 $as_echo "$ac_cs_version"; exit ;;
17324 --config | --confi | --conf | --con | --co | --c )
17325 $as_echo "$ac_cs_config"; exit ;;
17326 --debug | --debu | --deb | --de | --d | -d )
17327 debug=: ;;
17328 --file | --fil | --fi | --f )
17329 $ac_shift
17330 case $ac_optarg in
17331 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17332 '') as_fn_error $? "missing file argument" ;;
17333 esac
17334 as_fn_append CONFIG_FILES " '$ac_optarg'"
17335 ac_need_defaults=false;;
17336 --header | --heade | --head | --hea )
17337 $ac_shift
17338 case $ac_optarg in
17339 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17340 esac
17341 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17342 ac_need_defaults=false;;
17343 --he | --h)
17344 # Conflict between --help and --header
17345 as_fn_error $? "ambiguous option: \`$1'
17346 Try \`$0 --help' for more information.";;
17347 --help | --hel | -h )
17348 $as_echo "$ac_cs_usage"; exit ;;
17349 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17350 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17351 ac_cs_silent=: ;;
17353 # This is an error.
17354 -*) as_fn_error $? "unrecognized option: \`$1'
17355 Try \`$0 --help' for more information." ;;
17357 *) as_fn_append ac_config_targets " $1"
17358 ac_need_defaults=false ;;
17360 esac
17361 shift
17362 done
17364 ac_configure_extra_args=
17366 if $ac_cs_silent; then
17367 exec 6>/dev/null
17368 ac_configure_extra_args="$ac_configure_extra_args --silent"
17371 _ACEOF
17372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17373 if \$ac_cs_recheck; then
17374 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17375 shift
17376 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17377 CONFIG_SHELL='$SHELL'
17378 export CONFIG_SHELL
17379 exec "\$@"
17382 _ACEOF
17383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17384 exec 5>>config.log
17386 echo
17387 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17388 ## Running $as_me. ##
17389 _ASBOX
17390 $as_echo "$ac_log"
17391 } >&5
17393 _ACEOF
17394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17396 # INIT-COMMANDS
17399 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17402 # The HP-UX ksh and POSIX shell print the target directory to stdout
17403 # if CDPATH is set.
17404 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17406 sed_quote_subst='$sed_quote_subst'
17407 double_quote_subst='$double_quote_subst'
17408 delay_variable_subst='$delay_variable_subst'
17409 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17410 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17411 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17412 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17413 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17414 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17415 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17416 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17417 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17418 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17419 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17420 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17421 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17422 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17423 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17424 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17425 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17426 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17427 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17428 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17429 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17430 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17431 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17432 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17433 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17434 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17435 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17436 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17437 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17438 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17439 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17440 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17441 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17442 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17443 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17444 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17445 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17446 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17447 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17448 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17449 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17450 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17451 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17452 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17453 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"`'
17454 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"`'
17455 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17456 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17457 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17458 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17459 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17460 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17461 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17462 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17463 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17464 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17465 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17466 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17467 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17468 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17469 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17470 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17471 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17472 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17473 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17474 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17475 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17476 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17477 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17478 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17479 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17480 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17481 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17482 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17483 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17484 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17485 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17486 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17487 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17488 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17489 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17490 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17491 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17492 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17493 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17494 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17495 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17496 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17497 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17498 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17499 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17500 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17501 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17502 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17503 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17504 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17505 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17506 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17507 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17508 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17509 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17510 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17511 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17512 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17513 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17514 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17515 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17516 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17517 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17518 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17519 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17520 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17521 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17522 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17523 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17524 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17525 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17526 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17527 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17528 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17529 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17530 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17531 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17532 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17533 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17534 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17535 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17536 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17537 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17538 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17539 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17540 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17541 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17542 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17543 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17544 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17545 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17546 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17547 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17548 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17549 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17550 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17551 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17552 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17553 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17554 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17555 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17556 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17557 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17558 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17559 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17560 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17561 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17562 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17563 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17564 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17565 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17566 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17567 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17568 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17569 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17570 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17571 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17572 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17573 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17574 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17575 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17576 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17577 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17578 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17579 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17581 LTCC='$LTCC'
17582 LTCFLAGS='$LTCFLAGS'
17583 compiler='$compiler_DEFAULT'
17585 # Quote evaled strings.
17586 for var in SED \
17587 GREP \
17588 EGREP \
17589 FGREP \
17590 LD \
17591 NM \
17592 LN_S \
17593 lt_SP2NL \
17594 lt_NL2SP \
17595 reload_flag \
17596 OBJDUMP \
17597 deplibs_check_method \
17598 file_magic_cmd \
17599 AR \
17600 AR_FLAGS \
17601 STRIP \
17602 RANLIB \
17603 CC \
17604 CFLAGS \
17605 compiler \
17606 lt_cv_sys_global_symbol_pipe \
17607 lt_cv_sys_global_symbol_to_cdecl \
17608 lt_cv_sys_global_symbol_to_c_name_address \
17609 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17610 SHELL \
17611 ECHO \
17612 lt_prog_compiler_no_builtin_flag \
17613 lt_prog_compiler_wl \
17614 lt_prog_compiler_pic \
17615 lt_prog_compiler_static \
17616 lt_cv_prog_compiler_c_o \
17617 need_locks \
17618 DSYMUTIL \
17619 NMEDIT \
17620 LIPO \
17621 OTOOL \
17622 OTOOL64 \
17623 shrext_cmds \
17624 export_dynamic_flag_spec \
17625 whole_archive_flag_spec \
17626 compiler_needs_object \
17627 with_gnu_ld \
17628 allow_undefined_flag \
17629 no_undefined_flag \
17630 hardcode_libdir_flag_spec \
17631 hardcode_libdir_flag_spec_ld \
17632 hardcode_libdir_separator \
17633 fix_srcfile_path \
17634 exclude_expsyms \
17635 include_expsyms \
17636 file_list_spec \
17637 variables_saved_for_relink \
17638 libname_spec \
17639 library_names_spec \
17640 soname_spec \
17641 finish_eval \
17642 old_striplib \
17643 striplib \
17644 compiler_lib_search_dirs \
17645 predep_objects \
17646 postdep_objects \
17647 predeps \
17648 postdeps \
17649 compiler_lib_search_path \
17650 LD_CXX \
17651 compiler_CXX \
17652 lt_prog_compiler_no_builtin_flag_CXX \
17653 lt_prog_compiler_wl_CXX \
17654 lt_prog_compiler_pic_CXX \
17655 lt_prog_compiler_static_CXX \
17656 lt_cv_prog_compiler_c_o_CXX \
17657 export_dynamic_flag_spec_CXX \
17658 whole_archive_flag_spec_CXX \
17659 compiler_needs_object_CXX \
17660 with_gnu_ld_CXX \
17661 allow_undefined_flag_CXX \
17662 no_undefined_flag_CXX \
17663 hardcode_libdir_flag_spec_CXX \
17664 hardcode_libdir_flag_spec_ld_CXX \
17665 hardcode_libdir_separator_CXX \
17666 fix_srcfile_path_CXX \
17667 exclude_expsyms_CXX \
17668 include_expsyms_CXX \
17669 file_list_spec_CXX \
17670 compiler_lib_search_dirs_CXX \
17671 predep_objects_CXX \
17672 postdep_objects_CXX \
17673 predeps_CXX \
17674 postdeps_CXX \
17675 compiler_lib_search_path_CXX; do
17676 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17677 *[\\\\\\\`\\"\\\$]*)
17678 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17681 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17683 esac
17684 done
17686 # Double-quote double-evaled strings.
17687 for var in reload_cmds \
17688 old_postinstall_cmds \
17689 old_postuninstall_cmds \
17690 old_archive_cmds \
17691 extract_expsyms_cmds \
17692 old_archive_from_new_cmds \
17693 old_archive_from_expsyms_cmds \
17694 archive_cmds \
17695 archive_expsym_cmds \
17696 module_cmds \
17697 module_expsym_cmds \
17698 export_symbols_cmds \
17699 prelink_cmds \
17700 postinstall_cmds \
17701 postuninstall_cmds \
17702 finish_cmds \
17703 sys_lib_search_path_spec \
17704 sys_lib_dlsearch_path_spec \
17705 old_archive_cmds_CXX \
17706 old_archive_from_new_cmds_CXX \
17707 old_archive_from_expsyms_cmds_CXX \
17708 archive_cmds_CXX \
17709 archive_expsym_cmds_CXX \
17710 module_cmds_CXX \
17711 module_expsym_cmds_CXX \
17712 export_symbols_cmds_CXX \
17713 prelink_cmds_CXX; do
17714 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17715 *[\\\\\\\`\\"\\\$]*)
17716 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17719 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17721 esac
17722 done
17724 # Fix-up fallback echo if it was mangled by the above quoting rules.
17725 case \$lt_ECHO in
17726 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17728 esac
17730 ac_aux_dir='$ac_aux_dir'
17731 xsi_shell='$xsi_shell'
17732 lt_shell_append='$lt_shell_append'
17734 # See if we are running on zsh, and set the options which allow our
17735 # commands through without removal of \ escapes INIT.
17736 if test -n "\${ZSH_VERSION+set}" ; then
17737 setopt NO_GLOB_SUBST
17741 PACKAGE='$PACKAGE'
17742 VERSION='$VERSION'
17743 TIMESTAMP='$TIMESTAMP'
17744 RM='$RM'
17745 ofile='$ofile'
17752 _ACEOF
17754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17756 # Handling of arguments.
17757 for ac_config_target in $ac_config_targets
17759 case $ac_config_target in
17760 "bconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS bconfig.h" ;;
17761 "bootstrap/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS bootstrap/atconfig" ;;
17762 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17763 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17764 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17765 "atf-c/defs.h") CONFIG_FILES="$CONFIG_FILES atf-c/defs.h" ;;
17767 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17768 esac
17769 done
17772 # If the user did not use the arguments to specify the items to instantiate,
17773 # then the envvar interface is used. Set only those that are not.
17774 # We use the long form for the default assignment because of an extremely
17775 # bizarre bug on SunOS 4.1.3.
17776 if $ac_need_defaults; then
17777 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17778 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17779 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17782 # Have a temporary directory for convenience. Make it in the build tree
17783 # simply because there is no reason against having it here, and in addition,
17784 # creating and moving files from /tmp can sometimes cause problems.
17785 # Hook for its removal unless debugging.
17786 # Note that there is a small window in which the directory will not be cleaned:
17787 # after its creation but before its name has been assigned to `$tmp'.
17788 $debug ||
17790 tmp= ac_tmp=
17791 trap 'exit_status=$?
17792 : "${ac_tmp:=$tmp}"
17793 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17795 trap 'as_fn_exit 1' 1 2 13 15
17797 # Create a (secure) tmp directory for tmp files.
17800 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17801 test -d "$tmp"
17802 } ||
17804 tmp=./conf$$-$RANDOM
17805 (umask 077 && mkdir "$tmp")
17806 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17807 ac_tmp=$tmp
17809 # Set up the scripts for CONFIG_FILES section.
17810 # No need to generate them if there are no CONFIG_FILES.
17811 # This happens for instance with `./config.status config.h'.
17812 if test -n "$CONFIG_FILES"; then
17815 ac_cr=`echo X | tr X '\015'`
17816 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17817 # But we know of no other shell where ac_cr would be empty at this
17818 # point, so we can use a bashism as a fallback.
17819 if test "x$ac_cr" = x; then
17820 eval ac_cr=\$\'\\r\'
17822 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17823 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17824 ac_cs_awk_cr='\\r'
17825 else
17826 ac_cs_awk_cr=$ac_cr
17829 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17830 _ACEOF
17834 echo "cat >conf$$subs.awk <<_ACEOF" &&
17835 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17836 echo "_ACEOF"
17837 } >conf$$subs.sh ||
17838 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17839 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17840 ac_delim='%!_!# '
17841 for ac_last_try in false false false false false :; do
17842 . ./conf$$subs.sh ||
17843 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17845 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17846 if test $ac_delim_n = $ac_delim_num; then
17847 break
17848 elif $ac_last_try; then
17849 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17850 else
17851 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17853 done
17854 rm -f conf$$subs.sh
17856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17857 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17858 _ACEOF
17859 sed -n '
17861 s/^/S["/; s/!.*/"]=/
17864 s/^[^!]*!//
17865 :repl
17866 t repl
17867 s/'"$ac_delim"'$//
17868 t delim
17871 s/\(.\{148\}\)..*/\1/
17872 t more1
17873 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17876 b repl
17877 :more1
17878 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17881 s/.\{148\}//
17882 t nl
17883 :delim
17885 s/\(.\{148\}\)..*/\1/
17886 t more2
17887 s/["\\]/\\&/g; s/^/"/; s/$/"/
17890 :more2
17891 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17894 s/.\{148\}//
17895 t delim
17896 ' <conf$$subs.awk | sed '
17897 /^[^""]/{
17899 s/\n//
17901 ' >>$CONFIG_STATUS || ac_write_fail=1
17902 rm -f conf$$subs.awk
17903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17904 _ACAWK
17905 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17906 for (key in S) S_is_set[key] = 1
17907 FS = "\a"
17911 line = $ 0
17912 nfields = split(line, field, "@")
17913 substed = 0
17914 len = length(field[1])
17915 for (i = 2; i < nfields; i++) {
17916 key = field[i]
17917 keylen = length(key)
17918 if (S_is_set[key]) {
17919 value = S[key]
17920 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17921 len += length(value) + length(field[++i])
17922 substed = 1
17923 } else
17924 len += 1 + keylen
17927 print line
17930 _ACAWK
17931 _ACEOF
17932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17933 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17934 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17935 else
17937 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17938 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17939 _ACEOF
17941 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17942 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17943 # trailing colons and then remove the whole line if VPATH becomes empty
17944 # (actually we leave an empty line to preserve line numbers).
17945 if test "x$srcdir" = x.; then
17946 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17948 s///
17949 s/^/:/
17950 s/[ ]*$/:/
17951 s/:\$(srcdir):/:/g
17952 s/:\${srcdir}:/:/g
17953 s/:@srcdir@:/:/g
17954 s/^:*//
17955 s/:*$//
17957 s/\(=[ ]*\).*/\1/
17959 s/\n//
17960 s/^[^=]*=[ ]*$//
17964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17965 fi # test -n "$CONFIG_FILES"
17967 # Set up the scripts for CONFIG_HEADERS section.
17968 # No need to generate them if there are no CONFIG_HEADERS.
17969 # This happens for instance with `./config.status Makefile'.
17970 if test -n "$CONFIG_HEADERS"; then
17971 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17972 BEGIN {
17973 _ACEOF
17975 # Transform confdefs.h into an awk script `defines.awk', embedded as
17976 # here-document in config.status, that substitutes the proper values into
17977 # config.h.in to produce config.h.
17979 # Create a delimiter string that does not exist in confdefs.h, to ease
17980 # handling of long lines.
17981 ac_delim='%!_!# '
17982 for ac_last_try in false false :; do
17983 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17984 if test -z "$ac_tt"; then
17985 break
17986 elif $ac_last_try; then
17987 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17988 else
17989 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17991 done
17993 # For the awk script, D is an array of macro values keyed by name,
17994 # likewise P contains macro parameters if any. Preserve backslash
17995 # newline sequences.
17997 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17998 sed -n '
17999 s/.\{148\}/&'"$ac_delim"'/g
18000 t rset
18001 :rset
18002 s/^[ ]*#[ ]*define[ ][ ]*/ /
18003 t def
18005 :def
18006 s/\\$//
18007 t bsnl
18008 s/["\\]/\\&/g
18009 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18010 D["\1"]=" \3"/p
18011 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18013 :bsnl
18014 s/["\\]/\\&/g
18015 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18016 D["\1"]=" \3\\\\\\n"\\/p
18017 t cont
18018 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18019 t cont
18021 :cont
18023 s/.\{148\}/&'"$ac_delim"'/g
18024 t clear
18025 :clear
18026 s/\\$//
18027 t bsnlc
18028 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18030 :bsnlc
18031 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18032 b cont
18033 ' <confdefs.h | sed '
18034 s/'"$ac_delim"'/"\\\
18035 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18038 for (key in D) D_is_set[key] = 1
18039 FS = "\a"
18041 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18042 line = \$ 0
18043 split(line, arg, " ")
18044 if (arg[1] == "#") {
18045 defundef = arg[2]
18046 mac1 = arg[3]
18047 } else {
18048 defundef = substr(arg[1], 2)
18049 mac1 = arg[2]
18051 split(mac1, mac2, "(") #)
18052 macro = mac2[1]
18053 prefix = substr(line, 1, index(line, defundef) - 1)
18054 if (D_is_set[macro]) {
18055 # Preserve the white space surrounding the "#".
18056 print prefix "define", macro P[macro] D[macro]
18057 next
18058 } else {
18059 # Replace #undef with comments. This is necessary, for example,
18060 # in the case of _POSIX_SOURCE, which is predefined and required
18061 # on some systems where configure will not decide to define it.
18062 if (defundef == "undef") {
18063 print "/*", prefix defundef, macro, "*/"
18064 next
18068 { print }
18069 _ACAWK
18070 _ACEOF
18071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18072 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18073 fi # test -n "$CONFIG_HEADERS"
18076 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18077 shift
18078 for ac_tag
18080 case $ac_tag in
18081 :[FHLC]) ac_mode=$ac_tag; continue;;
18082 esac
18083 case $ac_mode$ac_tag in
18084 :[FHL]*:*);;
18085 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18086 :[FH]-) ac_tag=-:-;;
18087 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18088 esac
18089 ac_save_IFS=$IFS
18090 IFS=:
18091 set x $ac_tag
18092 IFS=$ac_save_IFS
18093 shift
18094 ac_file=$1
18095 shift
18097 case $ac_mode in
18098 :L) ac_source=$1;;
18099 :[FH])
18100 ac_file_inputs=
18101 for ac_f
18103 case $ac_f in
18104 -) ac_f="$ac_tmp/stdin";;
18105 *) # Look for the file first in the build tree, then in the source tree
18106 # (if the path is not absolute). The absolute path cannot be DOS-style,
18107 # because $ac_f cannot contain `:'.
18108 test -f "$ac_f" ||
18109 case $ac_f in
18110 [\\/$]*) false;;
18111 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18112 esac ||
18113 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18114 esac
18115 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18116 as_fn_append ac_file_inputs " '$ac_f'"
18117 done
18119 # Let's still pretend it is `configure' which instantiates (i.e., don't
18120 # use $as_me), people would be surprised to read:
18121 # /* config.h. Generated by config.status. */
18122 configure_input='Generated from '`
18123 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18124 `' by configure.'
18125 if test x"$ac_file" != x-; then
18126 configure_input="$ac_file. $configure_input"
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18128 $as_echo "$as_me: creating $ac_file" >&6;}
18130 # Neutralize special characters interpreted by sed in replacement strings.
18131 case $configure_input in #(
18132 *\&* | *\|* | *\\* )
18133 ac_sed_conf_input=`$as_echo "$configure_input" |
18134 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18135 *) ac_sed_conf_input=$configure_input;;
18136 esac
18138 case $ac_tag in
18139 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18140 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18141 esac
18143 esac
18145 ac_dir=`$as_dirname -- "$ac_file" ||
18146 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18147 X"$ac_file" : 'X\(//\)[^/]' \| \
18148 X"$ac_file" : 'X\(//\)$' \| \
18149 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18150 $as_echo X"$ac_file" |
18151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18152 s//\1/
18155 /^X\(\/\/\)[^/].*/{
18156 s//\1/
18159 /^X\(\/\/\)$/{
18160 s//\1/
18163 /^X\(\/\).*/{
18164 s//\1/
18167 s/.*/./; q'`
18168 as_dir="$ac_dir"; as_fn_mkdir_p
18169 ac_builddir=.
18171 case "$ac_dir" in
18172 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18174 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18175 # A ".." for each directory in $ac_dir_suffix.
18176 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18177 case $ac_top_builddir_sub in
18178 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18179 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18180 esac ;;
18181 esac
18182 ac_abs_top_builddir=$ac_pwd
18183 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18184 # for backward compatibility:
18185 ac_top_builddir=$ac_top_build_prefix
18187 case $srcdir in
18188 .) # We are building in place.
18189 ac_srcdir=.
18190 ac_top_srcdir=$ac_top_builddir_sub
18191 ac_abs_top_srcdir=$ac_pwd ;;
18192 [\\/]* | ?:[\\/]* ) # Absolute name.
18193 ac_srcdir=$srcdir$ac_dir_suffix;
18194 ac_top_srcdir=$srcdir
18195 ac_abs_top_srcdir=$srcdir ;;
18196 *) # Relative name.
18197 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18198 ac_top_srcdir=$ac_top_build_prefix$srcdir
18199 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18200 esac
18201 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18204 case $ac_mode in
18207 # CONFIG_FILE
18210 case $INSTALL in
18211 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18212 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18213 esac
18214 ac_MKDIR_P=$MKDIR_P
18215 case $MKDIR_P in
18216 [\\/$]* | ?:[\\/]* ) ;;
18217 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18218 esac
18219 _ACEOF
18221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18222 # If the template does not know about datarootdir, expand it.
18223 # FIXME: This hack should be removed a few years after 2.60.
18224 ac_datarootdir_hack=; ac_datarootdir_seen=
18225 ac_sed_dataroot='
18226 /datarootdir/ {
18230 /@datadir@/p
18231 /@docdir@/p
18232 /@infodir@/p
18233 /@localedir@/p
18234 /@mandir@/p'
18235 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18236 *datarootdir*) ac_datarootdir_seen=yes;;
18237 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18239 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18240 _ACEOF
18241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18242 ac_datarootdir_hack='
18243 s&@datadir@&$datadir&g
18244 s&@docdir@&$docdir&g
18245 s&@infodir@&$infodir&g
18246 s&@localedir@&$localedir&g
18247 s&@mandir@&$mandir&g
18248 s&\\\${datarootdir}&$datarootdir&g' ;;
18249 esac
18250 _ACEOF
18252 # Neutralize VPATH when `$srcdir' = `.'.
18253 # Shell code in configure.ac might set extrasub.
18254 # FIXME: do we really want to maintain this feature?
18255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18256 ac_sed_extra="$ac_vpsub
18257 $extrasub
18258 _ACEOF
18259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18261 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18262 s|@configure_input@|$ac_sed_conf_input|;t t
18263 s&@top_builddir@&$ac_top_builddir_sub&;t t
18264 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18265 s&@srcdir@&$ac_srcdir&;t t
18266 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18267 s&@top_srcdir@&$ac_top_srcdir&;t t
18268 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18269 s&@builddir@&$ac_builddir&;t t
18270 s&@abs_builddir@&$ac_abs_builddir&;t t
18271 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18272 s&@INSTALL@&$ac_INSTALL&;t t
18273 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18274 $ac_datarootdir_hack
18276 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18277 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18279 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18280 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18281 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18282 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18284 which seems to be undefined. Please make sure it is defined" >&5
18285 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18286 which seems to be undefined. Please make sure it is defined" >&2;}
18288 rm -f "$ac_tmp/stdin"
18289 case $ac_file in
18290 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18291 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18292 esac \
18293 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18297 # CONFIG_HEADER
18299 if test x"$ac_file" != x-; then
18301 $as_echo "/* $configure_input */" \
18302 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18303 } >"$ac_tmp/config.h" \
18304 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18305 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18307 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18308 else
18309 rm -f "$ac_file"
18310 mv "$ac_tmp/config.h" "$ac_file" \
18311 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18313 else
18314 $as_echo "/* $configure_input */" \
18315 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18316 || as_fn_error $? "could not create -" "$LINENO" 5
18318 # Compute "$ac_file"'s index in $config_headers.
18319 _am_arg="$ac_file"
18320 _am_stamp_count=1
18321 for _am_header in $config_headers :; do
18322 case $_am_header in
18323 $_am_arg | $_am_arg:* )
18324 break ;;
18326 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18327 esac
18328 done
18329 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18330 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18331 X"$_am_arg" : 'X\(//\)[^/]' \| \
18332 X"$_am_arg" : 'X\(//\)$' \| \
18333 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18334 $as_echo X"$_am_arg" |
18335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18336 s//\1/
18339 /^X\(\/\/\)[^/].*/{
18340 s//\1/
18343 /^X\(\/\/\)$/{
18344 s//\1/
18347 /^X\(\/\).*/{
18348 s//\1/
18351 s/.*/./; q'`/stamp-h$_am_stamp_count
18354 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18355 $as_echo "$as_me: executing $ac_file commands" >&6;}
18357 esac
18360 case $ac_file$ac_mode in
18361 "bootstrap/atconfig":C) cat >bootstrap/atconfig <<ATEOF
18362 # Configurable variable values for building test suites.
18363 # Generated by $0.
18364 # Copyright (C) 2012 Free Software Foundation, Inc.
18366 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
18367 at_testdir='bootstrap'
18368 abs_builddir='$ac_abs_builddir'
18369 at_srcdir='$ac_srcdir'
18370 abs_srcdir='$ac_abs_srcdir'
18371 at_top_srcdir='$ac_top_srcdir'
18372 abs_top_srcdir='$ac_abs_top_srcdir'
18373 at_top_build_prefix='$ac_top_build_prefix'
18374 abs_top_builddir='$ac_abs_top_builddir'
18376 # Backward compatibility with Autotest <= 2.59b:
18377 at_top_builddir=\$at_top_build_prefix
18379 AUTOTEST_PATH='bootstrap'
18381 SHELL=\${CONFIG_SHELL-'$SHELL'}
18382 ATEOF
18384 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18385 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18386 # are listed without --file. Let's play safe and only enable the eval
18387 # if we detect the quoting.
18388 case $CONFIG_FILES in
18389 *\'*) eval set x "$CONFIG_FILES" ;;
18390 *) set x $CONFIG_FILES ;;
18391 esac
18392 shift
18393 for mf
18395 # Strip MF so we end up with the name of the file.
18396 mf=`echo "$mf" | sed -e 's/:.*$//'`
18397 # Check whether this is an Automake generated Makefile or not.
18398 # We used to match only the files named 'Makefile.in', but
18399 # some people rename them; so instead we look at the file content.
18400 # Grep'ing the first line is not enough: some people post-process
18401 # each Makefile.in and add a new line on top of each file to say so.
18402 # Grep'ing the whole file is not good either: AIX grep has a line
18403 # limit of 2048, but all sed's we know have understand at least 4000.
18404 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18405 dirpart=`$as_dirname -- "$mf" ||
18406 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18407 X"$mf" : 'X\(//\)[^/]' \| \
18408 X"$mf" : 'X\(//\)$' \| \
18409 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18410 $as_echo X"$mf" |
18411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18412 s//\1/
18415 /^X\(\/\/\)[^/].*/{
18416 s//\1/
18419 /^X\(\/\/\)$/{
18420 s//\1/
18423 /^X\(\/\).*/{
18424 s//\1/
18427 s/.*/./; q'`
18428 else
18429 continue
18431 # Extract the definition of DEPDIR, am__include, and am__quote
18432 # from the Makefile without running 'make'.
18433 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18434 test -z "$DEPDIR" && continue
18435 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18436 test -z "am__include" && continue
18437 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18438 # Find all dependency output files, they are included files with
18439 # $(DEPDIR) in their names. We invoke sed twice because it is the
18440 # simplest approach to changing $(DEPDIR) to its actual value in the
18441 # expansion.
18442 for file in `sed -n "
18443 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18444 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18445 # Make sure the directory exists.
18446 test -f "$dirpart/$file" && continue
18447 fdir=`$as_dirname -- "$file" ||
18448 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18449 X"$file" : 'X\(//\)[^/]' \| \
18450 X"$file" : 'X\(//\)$' \| \
18451 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18452 $as_echo X"$file" |
18453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18454 s//\1/
18457 /^X\(\/\/\)[^/].*/{
18458 s//\1/
18461 /^X\(\/\/\)$/{
18462 s//\1/
18465 /^X\(\/\).*/{
18466 s//\1/
18469 s/.*/./; q'`
18470 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18471 # echo "creating $dirpart/$file"
18472 echo '# dummy' > "$dirpart/$file"
18473 done
18474 done
18477 "libtool":C)
18479 # See if we are running on zsh, and set the options which allow our
18480 # commands through without removal of \ escapes.
18481 if test -n "${ZSH_VERSION+set}" ; then
18482 setopt NO_GLOB_SUBST
18485 cfgfile="${ofile}T"
18486 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18487 $RM "$cfgfile"
18489 cat <<_LT_EOF >> "$cfgfile"
18490 #! $SHELL
18492 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18493 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18494 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18495 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18497 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18498 # 2006, 2007, 2008 Free Software Foundation, Inc.
18499 # Written by Gordon Matzigkeit, 1996
18501 # This file is part of GNU Libtool.
18503 # GNU Libtool is free software; you can redistribute it and/or
18504 # modify it under the terms of the GNU General Public License as
18505 # published by the Free Software Foundation; either version 2 of
18506 # the License, or (at your option) any later version.
18508 # As a special exception to the GNU General Public License,
18509 # if you distribute this file as part of a program or library that
18510 # is built using GNU Libtool, you may include this file under the
18511 # same distribution terms that you use for the rest of that program.
18513 # GNU Libtool is distributed in the hope that it will be useful,
18514 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18515 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18516 # GNU General Public License for more details.
18518 # You should have received a copy of the GNU General Public License
18519 # along with GNU Libtool; see the file COPYING. If not, a copy
18520 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18521 # obtained by writing to the Free Software Foundation, Inc.,
18522 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18525 # The names of the tagged configurations supported by this script.
18526 available_tags="CXX "
18528 # ### BEGIN LIBTOOL CONFIG
18530 # Which release of libtool.m4 was used?
18531 macro_version=$macro_version
18532 macro_revision=$macro_revision
18534 # Whether or not to build shared libraries.
18535 build_libtool_libs=$enable_shared
18537 # Whether or not to build static libraries.
18538 build_old_libs=$enable_static
18540 # What type of objects to build.
18541 pic_mode=$pic_mode
18543 # Whether or not to optimize for fast installation.
18544 fast_install=$enable_fast_install
18546 # The host system.
18547 host_alias=$host_alias
18548 host=$host
18549 host_os=$host_os
18551 # The build system.
18552 build_alias=$build_alias
18553 build=$build
18554 build_os=$build_os
18556 # A sed program that does not truncate output.
18557 SED=$lt_SED
18559 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18560 Xsed="\$SED -e 1s/^X//"
18562 # A grep program that handles long lines.
18563 GREP=$lt_GREP
18565 # An ERE matcher.
18566 EGREP=$lt_EGREP
18568 # A literal string matcher.
18569 FGREP=$lt_FGREP
18571 # A BSD- or MS-compatible name lister.
18572 NM=$lt_NM
18574 # Whether we need soft or hard links.
18575 LN_S=$lt_LN_S
18577 # What is the maximum length of a command?
18578 max_cmd_len=$max_cmd_len
18580 # Object file suffix (normally "o").
18581 objext=$ac_objext
18583 # Executable file suffix (normally "").
18584 exeext=$exeext
18586 # whether the shell understands "unset".
18587 lt_unset=$lt_unset
18589 # turn spaces into newlines.
18590 SP2NL=$lt_lt_SP2NL
18592 # turn newlines into spaces.
18593 NL2SP=$lt_lt_NL2SP
18595 # How to create reloadable object files.
18596 reload_flag=$lt_reload_flag
18597 reload_cmds=$lt_reload_cmds
18599 # An object symbol dumper.
18600 OBJDUMP=$lt_OBJDUMP
18602 # Method to check whether dependent libraries are shared objects.
18603 deplibs_check_method=$lt_deplibs_check_method
18605 # Command to use when deplibs_check_method == "file_magic".
18606 file_magic_cmd=$lt_file_magic_cmd
18608 # The archiver.
18609 AR=$lt_AR
18610 AR_FLAGS=$lt_AR_FLAGS
18612 # A symbol stripping program.
18613 STRIP=$lt_STRIP
18615 # Commands used to install an old-style archive.
18616 RANLIB=$lt_RANLIB
18617 old_postinstall_cmds=$lt_old_postinstall_cmds
18618 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18620 # A C compiler.
18621 LTCC=$lt_CC
18623 # LTCC compiler flags.
18624 LTCFLAGS=$lt_CFLAGS
18626 # Take the output of nm and produce a listing of raw symbols and C names.
18627 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18629 # Transform the output of nm in a proper C declaration.
18630 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18632 # Transform the output of nm in a C name address pair.
18633 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18635 # Transform the output of nm in a C name address pair when lib prefix is needed.
18636 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18638 # The name of the directory that contains temporary libtool files.
18639 objdir=$objdir
18641 # Shell to use when invoking shell scripts.
18642 SHELL=$lt_SHELL
18644 # An echo program that does not interpret backslashes.
18645 ECHO=$lt_ECHO
18647 # Used to examine libraries when file_magic_cmd begins with "file".
18648 MAGIC_CMD=$MAGIC_CMD
18650 # Must we lock files when doing compilation?
18651 need_locks=$lt_need_locks
18653 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18654 DSYMUTIL=$lt_DSYMUTIL
18656 # Tool to change global to local symbols on Mac OS X.
18657 NMEDIT=$lt_NMEDIT
18659 # Tool to manipulate fat objects and archives on Mac OS X.
18660 LIPO=$lt_LIPO
18662 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18663 OTOOL=$lt_OTOOL
18665 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18666 OTOOL64=$lt_OTOOL64
18668 # Old archive suffix (normally "a").
18669 libext=$libext
18671 # Shared library suffix (normally ".so").
18672 shrext_cmds=$lt_shrext_cmds
18674 # The commands to extract the exported symbol list from a shared archive.
18675 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18677 # Variables whose values should be saved in libtool wrapper scripts and
18678 # restored at link time.
18679 variables_saved_for_relink=$lt_variables_saved_for_relink
18681 # Do we need the "lib" prefix for modules?
18682 need_lib_prefix=$need_lib_prefix
18684 # Do we need a version for libraries?
18685 need_version=$need_version
18687 # Library versioning type.
18688 version_type=$version_type
18690 # Shared library runtime path variable.
18691 runpath_var=$runpath_var
18693 # Shared library path variable.
18694 shlibpath_var=$shlibpath_var
18696 # Is shlibpath searched before the hard-coded library search path?
18697 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18699 # Format of library name prefix.
18700 libname_spec=$lt_libname_spec
18702 # List of archive names. First name is the real one, the rest are links.
18703 # The last name is the one that the linker finds with -lNAME
18704 library_names_spec=$lt_library_names_spec
18706 # The coded name of the library, if different from the real name.
18707 soname_spec=$lt_soname_spec
18709 # Command to use after installation of a shared archive.
18710 postinstall_cmds=$lt_postinstall_cmds
18712 # Command to use after uninstallation of a shared archive.
18713 postuninstall_cmds=$lt_postuninstall_cmds
18715 # Commands used to finish a libtool library installation in a directory.
18716 finish_cmds=$lt_finish_cmds
18718 # As "finish_cmds", except a single script fragment to be evaled but
18719 # not shown.
18720 finish_eval=$lt_finish_eval
18722 # Whether we should hardcode library paths into libraries.
18723 hardcode_into_libs=$hardcode_into_libs
18725 # Compile-time system search path for libraries.
18726 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18728 # Run-time system search path for libraries.
18729 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18731 # Whether dlopen is supported.
18732 dlopen_support=$enable_dlopen
18734 # Whether dlopen of programs is supported.
18735 dlopen_self=$enable_dlopen_self
18737 # Whether dlopen of statically linked programs is supported.
18738 dlopen_self_static=$enable_dlopen_self_static
18740 # Commands to strip libraries.
18741 old_striplib=$lt_old_striplib
18742 striplib=$lt_striplib
18745 # The linker used to build libraries.
18746 LD=$lt_LD
18748 # Commands used to build an old-style archive.
18749 old_archive_cmds=$lt_old_archive_cmds
18751 # A language specific compiler.
18752 CC=$lt_compiler
18754 # Is the compiler the GNU compiler?
18755 with_gcc=$GCC
18757 # Compiler flag to turn off builtin functions.
18758 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18760 # How to pass a linker flag through the compiler.
18761 wl=$lt_lt_prog_compiler_wl
18763 # Additional compiler flags for building library objects.
18764 pic_flag=$lt_lt_prog_compiler_pic
18766 # Compiler flag to prevent dynamic linking.
18767 link_static_flag=$lt_lt_prog_compiler_static
18769 # Does compiler simultaneously support -c and -o options?
18770 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18772 # Whether or not to add -lc for building shared libraries.
18773 build_libtool_need_lc=$archive_cmds_need_lc
18775 # Whether or not to disallow shared libs when runtime libs are static.
18776 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18778 # Compiler flag to allow reflexive dlopens.
18779 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18781 # Compiler flag to generate shared objects directly from archives.
18782 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18784 # Whether the compiler copes with passing no objects directly.
18785 compiler_needs_object=$lt_compiler_needs_object
18787 # Create an old-style archive from a shared archive.
18788 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18790 # Create a temporary old-style archive to link instead of a shared archive.
18791 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18793 # Commands used to build a shared archive.
18794 archive_cmds=$lt_archive_cmds
18795 archive_expsym_cmds=$lt_archive_expsym_cmds
18797 # Commands used to build a loadable module if different from building
18798 # a shared archive.
18799 module_cmds=$lt_module_cmds
18800 module_expsym_cmds=$lt_module_expsym_cmds
18802 # Whether we are building with GNU ld or not.
18803 with_gnu_ld=$lt_with_gnu_ld
18805 # Flag that allows shared libraries with undefined symbols to be built.
18806 allow_undefined_flag=$lt_allow_undefined_flag
18808 # Flag that enforces no undefined symbols.
18809 no_undefined_flag=$lt_no_undefined_flag
18811 # Flag to hardcode \$libdir into a binary during linking.
18812 # This must work even if \$libdir does not exist
18813 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18815 # If ld is used when linking, flag to hardcode \$libdir into a binary
18816 # during linking. This must work even if \$libdir does not exist.
18817 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18819 # Whether we need a single "-rpath" flag with a separated argument.
18820 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18822 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18823 # DIR into the resulting binary.
18824 hardcode_direct=$hardcode_direct
18826 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18827 # DIR into the resulting binary and the resulting library dependency is
18828 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18829 # library is relocated.
18830 hardcode_direct_absolute=$hardcode_direct_absolute
18832 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18833 # into the resulting binary.
18834 hardcode_minus_L=$hardcode_minus_L
18836 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18837 # into the resulting binary.
18838 hardcode_shlibpath_var=$hardcode_shlibpath_var
18840 # Set to "yes" if building a shared library automatically hardcodes DIR
18841 # into the library and all subsequent libraries and executables linked
18842 # against it.
18843 hardcode_automatic=$hardcode_automatic
18845 # Set to yes if linker adds runtime paths of dependent libraries
18846 # to runtime path list.
18847 inherit_rpath=$inherit_rpath
18849 # Whether libtool must link a program against all its dependency libraries.
18850 link_all_deplibs=$link_all_deplibs
18852 # Fix the shell variable \$srcfile for the compiler.
18853 fix_srcfile_path=$lt_fix_srcfile_path
18855 # Set to "yes" if exported symbols are required.
18856 always_export_symbols=$always_export_symbols
18858 # The commands to list exported symbols.
18859 export_symbols_cmds=$lt_export_symbols_cmds
18861 # Symbols that should not be listed in the preloaded symbols.
18862 exclude_expsyms=$lt_exclude_expsyms
18864 # Symbols that must always be exported.
18865 include_expsyms=$lt_include_expsyms
18867 # Commands necessary for linking programs (against libraries) with templates.
18868 prelink_cmds=$lt_prelink_cmds
18870 # Specify filename containing input files.
18871 file_list_spec=$lt_file_list_spec
18873 # How to hardcode a shared library path into an executable.
18874 hardcode_action=$hardcode_action
18876 # The directories searched by this compiler when creating a shared library.
18877 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18879 # Dependencies to place before and after the objects being linked to
18880 # create a shared library.
18881 predep_objects=$lt_predep_objects
18882 postdep_objects=$lt_postdep_objects
18883 predeps=$lt_predeps
18884 postdeps=$lt_postdeps
18886 # The library search path used internally by the compiler when linking
18887 # a shared library.
18888 compiler_lib_search_path=$lt_compiler_lib_search_path
18890 # ### END LIBTOOL CONFIG
18892 _LT_EOF
18894 case $host_os in
18895 aix3*)
18896 cat <<\_LT_EOF >> "$cfgfile"
18897 # AIX sometimes has problems with the GCC collect2 program. For some
18898 # reason, if we set the COLLECT_NAMES environment variable, the problems
18899 # vanish in a puff of smoke.
18900 if test "X${COLLECT_NAMES+set}" != Xset; then
18901 COLLECT_NAMES=
18902 export COLLECT_NAMES
18904 _LT_EOF
18906 esac
18909 ltmain="$ac_aux_dir/ltmain.sh"
18912 # We use sed instead of cat because bash on DJGPP gets confused if
18913 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18914 # text mode, it properly converts lines to CR/LF. This bash problem
18915 # is reportedly fixed, but why not run on old versions too?
18916 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18917 || (rm -f "$cfgfile"; exit 1)
18919 case $xsi_shell in
18920 yes)
18921 cat << \_LT_EOF >> "$cfgfile"
18923 # func_dirname file append nondir_replacement
18924 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18925 # otherwise set result to NONDIR_REPLACEMENT.
18926 func_dirname ()
18928 case ${1} in
18929 */*) func_dirname_result="${1%/*}${2}" ;;
18930 * ) func_dirname_result="${3}" ;;
18931 esac
18934 # func_basename file
18935 func_basename ()
18937 func_basename_result="${1##*/}"
18940 # func_dirname_and_basename file append nondir_replacement
18941 # perform func_basename and func_dirname in a single function
18942 # call:
18943 # dirname: Compute the dirname of FILE. If nonempty,
18944 # add APPEND to the result, otherwise set result
18945 # to NONDIR_REPLACEMENT.
18946 # value returned in "$func_dirname_result"
18947 # basename: Compute filename of FILE.
18948 # value retuned in "$func_basename_result"
18949 # Implementation must be kept synchronized with func_dirname
18950 # and func_basename. For efficiency, we do not delegate to
18951 # those functions but instead duplicate the functionality here.
18952 func_dirname_and_basename ()
18954 case ${1} in
18955 */*) func_dirname_result="${1%/*}${2}" ;;
18956 * ) func_dirname_result="${3}" ;;
18957 esac
18958 func_basename_result="${1##*/}"
18961 # func_stripname prefix suffix name
18962 # strip PREFIX and SUFFIX off of NAME.
18963 # PREFIX and SUFFIX must not contain globbing or regex special
18964 # characters, hashes, percent signs, but SUFFIX may contain a leading
18965 # dot (in which case that matches only a dot).
18966 func_stripname ()
18968 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18969 # positional parameters, so assign one to ordinary parameter first.
18970 func_stripname_result=${3}
18971 func_stripname_result=${func_stripname_result#"${1}"}
18972 func_stripname_result=${func_stripname_result%"${2}"}
18975 # func_opt_split
18976 func_opt_split ()
18978 func_opt_split_opt=${1%%=*}
18979 func_opt_split_arg=${1#*=}
18982 # func_lo2o object
18983 func_lo2o ()
18985 case ${1} in
18986 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18987 *) func_lo2o_result=${1} ;;
18988 esac
18991 # func_xform libobj-or-source
18992 func_xform ()
18994 func_xform_result=${1%.*}.lo
18997 # func_arith arithmetic-term...
18998 func_arith ()
19000 func_arith_result=$(( $* ))
19003 # func_len string
19004 # STRING may not start with a hyphen.
19005 func_len ()
19007 func_len_result=${#1}
19010 _LT_EOF
19012 *) # Bourne compatible functions.
19013 cat << \_LT_EOF >> "$cfgfile"
19015 # func_dirname file append nondir_replacement
19016 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19017 # otherwise set result to NONDIR_REPLACEMENT.
19018 func_dirname ()
19020 # Extract subdirectory from the argument.
19021 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19022 if test "X$func_dirname_result" = "X${1}"; then
19023 func_dirname_result="${3}"
19024 else
19025 func_dirname_result="$func_dirname_result${2}"
19029 # func_basename file
19030 func_basename ()
19032 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19036 # func_stripname prefix suffix name
19037 # strip PREFIX and SUFFIX off of NAME.
19038 # PREFIX and SUFFIX must not contain globbing or regex special
19039 # characters, hashes, percent signs, but SUFFIX may contain a leading
19040 # dot (in which case that matches only a dot).
19041 # func_strip_suffix prefix name
19042 func_stripname ()
19044 case ${2} in
19045 .*) func_stripname_result=`$ECHO "X${3}" \
19046 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19047 *) func_stripname_result=`$ECHO "X${3}" \
19048 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19049 esac
19052 # sed scripts:
19053 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19054 my_sed_long_arg='1s/^-[^=]*=//'
19056 # func_opt_split
19057 func_opt_split ()
19059 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19060 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19063 # func_lo2o object
19064 func_lo2o ()
19066 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19069 # func_xform libobj-or-source
19070 func_xform ()
19072 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19075 # func_arith arithmetic-term...
19076 func_arith ()
19078 func_arith_result=`expr "$@"`
19081 # func_len string
19082 # STRING may not start with a hyphen.
19083 func_len ()
19085 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19088 _LT_EOF
19089 esac
19091 case $lt_shell_append in
19092 yes)
19093 cat << \_LT_EOF >> "$cfgfile"
19095 # func_append var value
19096 # Append VALUE to the end of shell variable VAR.
19097 func_append ()
19099 eval "$1+=\$2"
19101 _LT_EOF
19104 cat << \_LT_EOF >> "$cfgfile"
19106 # func_append var value
19107 # Append VALUE to the end of shell variable VAR.
19108 func_append ()
19110 eval "$1=\$$1\$2"
19113 _LT_EOF
19115 esac
19118 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19119 || (rm -f "$cfgfile"; exit 1)
19121 mv -f "$cfgfile" "$ofile" ||
19122 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19123 chmod +x "$ofile"
19126 cat <<_LT_EOF >> "$ofile"
19128 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19130 # The linker used to build libraries.
19131 LD=$lt_LD_CXX
19133 # Commands used to build an old-style archive.
19134 old_archive_cmds=$lt_old_archive_cmds_CXX
19136 # A language specific compiler.
19137 CC=$lt_compiler_CXX
19139 # Is the compiler the GNU compiler?
19140 with_gcc=$GCC_CXX
19142 # Compiler flag to turn off builtin functions.
19143 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19145 # How to pass a linker flag through the compiler.
19146 wl=$lt_lt_prog_compiler_wl_CXX
19148 # Additional compiler flags for building library objects.
19149 pic_flag=$lt_lt_prog_compiler_pic_CXX
19151 # Compiler flag to prevent dynamic linking.
19152 link_static_flag=$lt_lt_prog_compiler_static_CXX
19154 # Does compiler simultaneously support -c and -o options?
19155 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19157 # Whether or not to add -lc for building shared libraries.
19158 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19160 # Whether or not to disallow shared libs when runtime libs are static.
19161 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19163 # Compiler flag to allow reflexive dlopens.
19164 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19166 # Compiler flag to generate shared objects directly from archives.
19167 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19169 # Whether the compiler copes with passing no objects directly.
19170 compiler_needs_object=$lt_compiler_needs_object_CXX
19172 # Create an old-style archive from a shared archive.
19173 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19175 # Create a temporary old-style archive to link instead of a shared archive.
19176 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19178 # Commands used to build a shared archive.
19179 archive_cmds=$lt_archive_cmds_CXX
19180 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19182 # Commands used to build a loadable module if different from building
19183 # a shared archive.
19184 module_cmds=$lt_module_cmds_CXX
19185 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19187 # Whether we are building with GNU ld or not.
19188 with_gnu_ld=$lt_with_gnu_ld_CXX
19190 # Flag that allows shared libraries with undefined symbols to be built.
19191 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19193 # Flag that enforces no undefined symbols.
19194 no_undefined_flag=$lt_no_undefined_flag_CXX
19196 # Flag to hardcode \$libdir into a binary during linking.
19197 # This must work even if \$libdir does not exist
19198 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19200 # If ld is used when linking, flag to hardcode \$libdir into a binary
19201 # during linking. This must work even if \$libdir does not exist.
19202 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19204 # Whether we need a single "-rpath" flag with a separated argument.
19205 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19207 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19208 # DIR into the resulting binary.
19209 hardcode_direct=$hardcode_direct_CXX
19211 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19212 # DIR into the resulting binary and the resulting library dependency is
19213 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19214 # library is relocated.
19215 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19217 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19218 # into the resulting binary.
19219 hardcode_minus_L=$hardcode_minus_L_CXX
19221 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19222 # into the resulting binary.
19223 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19225 # Set to "yes" if building a shared library automatically hardcodes DIR
19226 # into the library and all subsequent libraries and executables linked
19227 # against it.
19228 hardcode_automatic=$hardcode_automatic_CXX
19230 # Set to yes if linker adds runtime paths of dependent libraries
19231 # to runtime path list.
19232 inherit_rpath=$inherit_rpath_CXX
19234 # Whether libtool must link a program against all its dependency libraries.
19235 link_all_deplibs=$link_all_deplibs_CXX
19237 # Fix the shell variable \$srcfile for the compiler.
19238 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19240 # Set to "yes" if exported symbols are required.
19241 always_export_symbols=$always_export_symbols_CXX
19243 # The commands to list exported symbols.
19244 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19246 # Symbols that should not be listed in the preloaded symbols.
19247 exclude_expsyms=$lt_exclude_expsyms_CXX
19249 # Symbols that must always be exported.
19250 include_expsyms=$lt_include_expsyms_CXX
19252 # Commands necessary for linking programs (against libraries) with templates.
19253 prelink_cmds=$lt_prelink_cmds_CXX
19255 # Specify filename containing input files.
19256 file_list_spec=$lt_file_list_spec_CXX
19258 # How to hardcode a shared library path into an executable.
19259 hardcode_action=$hardcode_action_CXX
19261 # The directories searched by this compiler when creating a shared library.
19262 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19264 # Dependencies to place before and after the objects being linked to
19265 # create a shared library.
19266 predep_objects=$lt_predep_objects_CXX
19267 postdep_objects=$lt_postdep_objects_CXX
19268 predeps=$lt_predeps_CXX
19269 postdeps=$lt_postdeps_CXX
19271 # The library search path used internally by the compiler when linking
19272 # a shared library.
19273 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19275 # ### END LIBTOOL TAG CONFIG: CXX
19276 _LT_EOF
19280 esac
19281 done # for ac_tag
19284 as_fn_exit 0
19285 _ACEOF
19286 ac_clean_files=$ac_clean_files_save
19288 test $ac_write_fail = 0 ||
19289 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19292 # configure is writing to config.log, and then calls config.status.
19293 # config.status does its own redirection, appending to config.log.
19294 # Unfortunately, on DOS this fails, as config.log is still kept open
19295 # by configure, so config.status won't be able to write to it; its
19296 # output is simply discarded. So we exec the FD to /dev/null,
19297 # effectively closing config.log, so it can be properly (re)opened and
19298 # appended to by config.status. When coming back to configure, we
19299 # need to make the FD available again.
19300 if test "$no_create" != yes; then
19301 ac_cs_success=:
19302 ac_config_status_args=
19303 test "$silent" = yes &&
19304 ac_config_status_args="$ac_config_status_args --quiet"
19305 exec 5>/dev/null
19306 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19307 exec 5>>config.log
19308 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19309 # would make configure fail if this is the last instruction.
19310 $ac_cs_success || as_fn_exit 1
19312 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19314 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19318 if test ${enable_tools} = yes; then
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building the deprecated ATF tools (atf-run and atf-report);" >&5
19320 $as_echo "$as_me: WARNING: Building the deprecated ATF tools (atf-run and atf-report);" >&2;}
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: please migrate to Kyua as soon as feasible." >&5
19322 $as_echo "$as_me: WARNING: please migrate to Kyua as soon as feasible." >&2;}