Transmission 2.33
[tomato.git] / release / src / router / transmission / configure
blobc1ed35d6e4497e1df16e3f703b3bedb2b75afe03
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for transmission 2.33.
5 # Report bugs to <http://trac.transmissionbt.com/newticket>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
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 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
152 esac
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 else
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
204 done;;
205 esac
206 as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: http://trac.transmissionbt.com/newticket about your
235 $0: system, including any error possibly output before this
236 $0: message. Then install a modern shell, or manually run
237 $0: the script under such a shell if you do have one."
239 exit 1
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
257 { eval $1=; unset $1;}
259 as_unset=as_fn_unset
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
266 return $1
267 } # as_fn_set_status
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
274 set +e
275 as_fn_set_status $1
276 exit $1
277 } # as_fn_exit
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
310 /^X\(\/\/\)$/{
311 s//\1/
314 /^X\(\/\).*/{
315 s//\1/
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
335 eval $1+=\$2
337 else
338 as_fn_append ()
340 eval $1=\$$1\$2
342 fi # as_fn_append
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
352 as_val=$(( $* ))
354 else
355 as_fn_arith ()
357 as_val=`expr "$@" || test $? -eq 1`
359 fi # as_fn_arith
362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
363 # ----------------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with STATUS, using 1 if that was 0.
367 as_fn_error ()
369 as_status=$1; test $as_status -eq 0 && as_status=1
370 if test "$4"; then
371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
374 $as_echo "$as_me: error: $2" >&2
375 as_fn_exit $as_status
376 } # as_fn_error
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381 else
382 as_expr=false
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387 else
388 as_basename=false
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393 else
394 as_dirname=false
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
406 /^X\/\(\/\/\)$/{
407 s//\1/
410 /^X\/\(\/\).*/{
411 s//\1/
414 s/.*/./; q'`
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
437 :lineno
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
465 ECHO_N='-n';;
466 esac
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471 else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
489 else
490 as_ln_s='cp -p'
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497 else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
502 if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504 else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
536 case X$lt_ECHO in
537 X*--fallback-echo)
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541 esac
543 ECHO=${lt_ECHO-echo}
544 if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
546 shift
547 elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
553 else
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
558 if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
560 shift
561 cat <<_LT_EOF
563 _LT_EOF
564 exit 0
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
568 # if CDPATH is set.
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571 if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578 then
579 break
581 done
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
588 else
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
593 # So, first we look for a working echo in the user's PATH.
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
597 IFS="$lt_save_ifs"
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
602 ECHO="$dir/echo"
603 break
605 done
606 IFS="$lt_save_ifs"
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
614 ECHO='print -r'
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
621 export CONFIG_SHELL
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 else
624 # Try using printf.
625 ECHO='printf %s\n'
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 # Cool, printf works
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636 export CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
638 export SHELL
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
645 else
646 # maybe with a smaller string...
647 prev=:
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651 then
652 break
654 prev="$cmd"
655 done
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661 else
662 # Oops. We lost completely, so just stick with echo.
663 ECHO=echo
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
673 lt_ECHO=$ECHO
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
681 test -n "$DJDIR" || exec 7<&0 </dev/null
682 exec 6>&1
684 # Name of the host.
685 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
686 # so uname gets run too.
687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
690 # Initializations.
692 ac_default_prefix=/usr/local
693 ac_clean_files=
694 ac_config_libobj_dir=.
695 LIBOBJS=
696 cross_compiling=no
697 subdirs=
698 MFLAGS=
699 MAKEFLAGS=
701 # Identity of this package.
702 PACKAGE_NAME='transmission'
703 PACKAGE_TARNAME='transmission'
704 PACKAGE_VERSION='2.33'
705 PACKAGE_STRING='transmission 2.33'
706 PACKAGE_BUGREPORT='http://trac.transmissionbt.com/newticket'
707 PACKAGE_URL=''
709 ac_unique_file="libtransmission/transmission.h"
710 # Factoring default headers for most tests.
711 ac_includes_default="\
712 #include <stdio.h>
713 #ifdef HAVE_SYS_TYPES_H
714 # include <sys/types.h>
715 #endif
716 #ifdef HAVE_SYS_STAT_H
717 # include <sys/stat.h>
718 #endif
719 #ifdef STDC_HEADERS
720 # include <stdlib.h>
721 # include <stddef.h>
722 #else
723 # ifdef HAVE_STDLIB_H
724 # include <stdlib.h>
725 # endif
726 #endif
727 #ifdef HAVE_STRING_H
728 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729 # include <memory.h>
730 # endif
731 # include <string.h>
732 #endif
733 #ifdef HAVE_STRINGS_H
734 # include <strings.h>
735 #endif
736 #ifdef HAVE_INTTYPES_H
737 # include <inttypes.h>
738 #endif
739 #ifdef HAVE_STDINT_H
740 # include <stdint.h>
741 #endif
742 #ifdef HAVE_UNISTD_H
743 # include <unistd.h>
744 #endif"
746 ac_subst_vars='am__EXEEXT_FALSE
747 am__EXEEXT_TRUE
748 LTLIBOBJS
749 LIBOBJS
750 WIN32_FALSE
751 WIN32_TRUE
752 BUILD_DAEMON_FALSE
753 BUILD_DAEMON_TRUE
754 BUILD_MAC_FALSE
755 BUILD_MAC_TRUE
756 BUILD_CLI_FALSE
757 BUILD_CLI_TRUE
758 WINDRES
759 transmissionlocaledir
760 MKINSTALLDIRS
761 POSUB
762 POFILES
763 PO_IN_DATADIR_FALSE
764 PO_IN_DATADIR_TRUE
765 INTLLIBS
766 INSTOBJEXT
767 GMOFILES
768 CATOBJEXT
769 CATALOGS
770 GETTEXT_PACKAGE
771 DATADIRNAME
772 ALL_LINGUAS
773 INTLTOOL_PERL
774 GMSGFMT
775 MSGFMT
776 MSGMERGE
777 XGETTEXT
778 INTLTOOL_POLICY_RULE
779 INTLTOOL_SERVICE_RULE
780 INTLTOOL_THEME_RULE
781 INTLTOOL_SCHEMAS_RULE
782 INTLTOOL_CAVES_RULE
783 INTLTOOL_XML_NOMERGE_RULE
784 INTLTOOL_XML_RULE
785 INTLTOOL_KBD_RULE
786 INTLTOOL_XAM_RULE
787 INTLTOOL_UI_RULE
788 INTLTOOL_SOUNDLIST_RULE
789 INTLTOOL_SHEET_RULE
790 INTLTOOL_SERVER_RULE
791 INTLTOOL_PONG_RULE
792 INTLTOOL_OAF_RULE
793 INTLTOOL_PROP_RULE
794 INTLTOOL_KEYS_RULE
795 INTLTOOL_DIRECTORY_RULE
796 INTLTOOL_DESKTOP_RULE
797 INTLTOOL_EXTRACT
798 INTLTOOL_MERGE
799 INTLTOOL_UPDATE
800 USE_NLS
801 DBUS_BINDING_TOOL
802 DBUS_GLIB_LIBS
803 DBUS_GLIB_CFLAGS
804 LIBCANBERRA_LIBS
805 LIBCANBERRA_CFLAGS
806 LIBAPPINDICATOR_LIBS
807 LIBAPPINDICATOR_CFLAGS
808 LIBNOTIFY_LIBS
809 LIBNOTIFY_CFLAGS
810 GIO_LIBS
811 GIO_CFLAGS
812 BUILD_GTK_FALSE
813 BUILD_GTK_TRUE
814 GTK_LIBS
815 GTK_CFLAGS
816 BUILD_UTP_FALSE
817 BUILD_UTP_TRUE
818 LIBUTP_LIBS
819 LIBUTP_CFLAGS
820 DHT_LIBS
821 DHT_CFLAGS
822 ZLIB_LIBS
823 ZLIB_LDFLAGS
824 ZLIB_CFLAGS
825 LIBEVENT_LIBS
826 LIBEVENT_CFLAGS
827 LIBCURL_LIBS
828 LIBCURL_CFLAGS
829 PKG_CONFIG
830 PTHREAD_CFLAGS
831 PTHREAD_LIBS
832 PTHREAD_CC
833 acx_pthread_config
834 CXXCPP
835 am__fastdepCXX_FALSE
836 am__fastdepCXX_TRUE
837 CXXDEPMODE
838 ac_ct_CXX
839 CXXFLAGS
841 LIBAPPINDICATOR_MINIMUM
842 LIBNOTIFY_MINIMUM
843 GIO_MINIMUM
844 DBUS_GLIB_MINIMUM
845 CANBERRA_MINIMUM
846 GTK_MINIMUM
847 GLIB_MINIMUM
848 OPENSSL_MINIMUM
849 LIBEVENT_MINIUM
850 CURL_MINIMUM
851 TR_UNSTABLE_FALSE
852 TR_UNSTABLE_TRUE
854 OTOOL64
855 OTOOL
856 LIPO
857 NMEDIT
858 DSYMUTIL
859 lt_ECHO
860 RANLIB
862 OBJDUMP
863 LN_S
865 ac_ct_DUMPBIN
866 DUMPBIN
868 FGREP
869 EGREP
870 GREP
872 am__fastdepCC_FALSE
873 am__fastdepCC_TRUE
874 CCDEPMODE
875 AMDEPBACKSLASH
876 AMDEP_FALSE
877 AMDEP_TRUE
878 am__quote
879 am__include
880 DEPDIR
881 OBJEXT
882 EXEEXT
883 ac_ct_CC
884 CPPFLAGS
885 LDFLAGS
886 CFLAGS
888 host_os
889 host_vendor
890 host_cpu
891 host
892 build_os
893 build_vendor
894 build_cpu
895 build
896 LIBTOOL
897 am__untar
898 am__tar
899 AMTAR
900 am__leading_dot
901 SET_MAKE
903 mkdir_p
904 MKDIR_P
905 INSTALL_STRIP_PROGRAM
906 STRIP
907 install_sh
908 MAKEINFO
909 AUTOHEADER
910 AUTOMAKE
911 AUTOCONF
912 ACLOCAL
913 VERSION
914 PACKAGE
915 CYGPATH_W
916 am__isrc
917 INSTALL_DATA
918 INSTALL_SCRIPT
919 INSTALL_PROGRAM
920 AM_BACKSLASH
921 AM_DEFAULT_VERBOSITY
922 PEERID_PREFIX
923 USERAGENT_PREFIX
924 target_alias
925 host_alias
926 build_alias
927 LIBS
928 ECHO_T
929 ECHO_N
930 ECHO_C
931 DEFS
932 mandir
933 localedir
934 libdir
935 psdir
936 pdfdir
937 dvidir
938 htmldir
939 infodir
940 docdir
941 oldincludedir
942 includedir
943 localstatedir
944 sharedstatedir
945 sysconfdir
946 datadir
947 datarootdir
948 libexecdir
949 sbindir
950 bindir
951 program_transform_name
952 prefix
953 exec_prefix
954 PACKAGE_URL
955 PACKAGE_BUGREPORT
956 PACKAGE_STRING
957 PACKAGE_VERSION
958 PACKAGE_TARNAME
959 PACKAGE_NAME
960 PATH_SEPARATOR
961 SHELL
962 OPENSSL_LIBS
963 OPENSSL_CFLAGS'
964 ac_subst_files=''
965 ac_user_opts='
966 enable_option_checking
967 enable_silent_rules
968 enable_shared
969 enable_static
970 with_pic
971 enable_fast_install
972 enable_dependency_tracking
973 with_gnu_ld
974 enable_libtool_lock
975 with_zlib
976 with_zlib_includes
977 enable_largefile
978 with_inotify
979 with_kqueue
980 enable_utp
981 enable_gtk
982 enable_libnotify
983 enable_libappindicator
984 enable_libcanberra
985 enable_nls
986 enable_lightweight
987 enable_cli
988 enable_mac
989 enable_daemon
991 ac_precious_vars='build_alias
992 host_alias
993 target_alias
995 CFLAGS
996 LDFLAGS
997 LIBS
998 CPPFLAGS
1001 CXXFLAGS
1003 CXXCPP
1004 PKG_CONFIG
1005 OPENSSL_CFLAGS
1006 OPENSSL_LIBS
1007 LIBCURL_CFLAGS
1008 LIBCURL_LIBS
1009 LIBEVENT_CFLAGS
1010 LIBEVENT_LIBS
1011 GTK_CFLAGS
1012 GTK_LIBS
1013 GIO_CFLAGS
1014 GIO_LIBS
1015 LIBNOTIFY_CFLAGS
1016 LIBNOTIFY_LIBS
1017 LIBAPPINDICATOR_CFLAGS
1018 LIBAPPINDICATOR_LIBS
1019 LIBCANBERRA_CFLAGS
1020 LIBCANBERRA_LIBS
1021 DBUS_GLIB_CFLAGS
1022 DBUS_GLIB_LIBS'
1025 # Initialize some variables set by options.
1026 ac_init_help=
1027 ac_init_version=false
1028 ac_unrecognized_opts=
1029 ac_unrecognized_sep=
1030 # The variables have the same names as the options, with
1031 # dashes changed to underlines.
1032 cache_file=/dev/null
1033 exec_prefix=NONE
1034 no_create=
1035 no_recursion=
1036 prefix=NONE
1037 program_prefix=NONE
1038 program_suffix=NONE
1039 program_transform_name=s,x,x,
1040 silent=
1041 site=
1042 srcdir=
1043 verbose=
1044 x_includes=NONE
1045 x_libraries=NONE
1047 # Installation directory options.
1048 # These are left unexpanded so users can "make install exec_prefix=/foo"
1049 # and all the variables that are supposed to be based on exec_prefix
1050 # by default will actually change.
1051 # Use braces instead of parens because sh, perl, etc. also accept them.
1052 # (The list follows the same order as the GNU Coding Standards.)
1053 bindir='${exec_prefix}/bin'
1054 sbindir='${exec_prefix}/sbin'
1055 libexecdir='${exec_prefix}/libexec'
1056 datarootdir='${prefix}/share'
1057 datadir='${datarootdir}'
1058 sysconfdir='${prefix}/etc'
1059 sharedstatedir='${prefix}/com'
1060 localstatedir='${prefix}/var'
1061 includedir='${prefix}/include'
1062 oldincludedir='/usr/include'
1063 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1064 infodir='${datarootdir}/info'
1065 htmldir='${docdir}'
1066 dvidir='${docdir}'
1067 pdfdir='${docdir}'
1068 psdir='${docdir}'
1069 libdir='${exec_prefix}/lib'
1070 localedir='${datarootdir}/locale'
1071 mandir='${datarootdir}/man'
1073 ac_prev=
1074 ac_dashdash=
1075 for ac_option
1077 # If the previous option needs an argument, assign it.
1078 if test -n "$ac_prev"; then
1079 eval $ac_prev=\$ac_option
1080 ac_prev=
1081 continue
1084 case $ac_option in
1085 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1086 *=) ac_optarg= ;;
1087 *) ac_optarg=yes ;;
1088 esac
1090 # Accept the important Cygnus configure options, so we can diagnose typos.
1092 case $ac_dashdash$ac_option in
1094 ac_dashdash=yes ;;
1096 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1097 ac_prev=bindir ;;
1098 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1099 bindir=$ac_optarg ;;
1101 -build | --build | --buil | --bui | --bu)
1102 ac_prev=build_alias ;;
1103 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1104 build_alias=$ac_optarg ;;
1106 -cache-file | --cache-file | --cache-fil | --cache-fi \
1107 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1108 ac_prev=cache_file ;;
1109 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1110 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1111 cache_file=$ac_optarg ;;
1113 --config-cache | -C)
1114 cache_file=config.cache ;;
1116 -datadir | --datadir | --datadi | --datad)
1117 ac_prev=datadir ;;
1118 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1119 datadir=$ac_optarg ;;
1121 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1122 | --dataroo | --dataro | --datar)
1123 ac_prev=datarootdir ;;
1124 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1125 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1126 datarootdir=$ac_optarg ;;
1128 -disable-* | --disable-*)
1129 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132 as_fn_error $? "invalid feature name: $ac_useropt"
1133 ac_useropt_orig=$ac_useropt
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1137 "enable_$ac_useropt"
1138 "*) ;;
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1140 ac_unrecognized_sep=', ';;
1141 esac
1142 eval enable_$ac_useropt=no ;;
1144 -docdir | --docdir | --docdi | --doc | --do)
1145 ac_prev=docdir ;;
1146 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1147 docdir=$ac_optarg ;;
1149 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1150 ac_prev=dvidir ;;
1151 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1152 dvidir=$ac_optarg ;;
1154 -enable-* | --enable-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error $? "invalid feature name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1163 "enable_$ac_useropt"
1164 "*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval enable_$ac_useropt=\$ac_optarg ;;
1170 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1171 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1172 | --exec | --exe | --ex)
1173 ac_prev=exec_prefix ;;
1174 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1175 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1176 | --exec=* | --exe=* | --ex=*)
1177 exec_prefix=$ac_optarg ;;
1179 -gas | --gas | --ga | --g)
1180 # Obsolete; use --with-gas.
1181 with_gas=yes ;;
1183 -help | --help | --hel | --he | -h)
1184 ac_init_help=long ;;
1185 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1186 ac_init_help=recursive ;;
1187 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1188 ac_init_help=short ;;
1190 -host | --host | --hos | --ho)
1191 ac_prev=host_alias ;;
1192 -host=* | --host=* | --hos=* | --ho=*)
1193 host_alias=$ac_optarg ;;
1195 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1196 ac_prev=htmldir ;;
1197 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1198 | --ht=*)
1199 htmldir=$ac_optarg ;;
1201 -includedir | --includedir | --includedi | --included | --include \
1202 | --includ | --inclu | --incl | --inc)
1203 ac_prev=includedir ;;
1204 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1205 | --includ=* | --inclu=* | --incl=* | --inc=*)
1206 includedir=$ac_optarg ;;
1208 -infodir | --infodir | --infodi | --infod | --info | --inf)
1209 ac_prev=infodir ;;
1210 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1211 infodir=$ac_optarg ;;
1213 -libdir | --libdir | --libdi | --libd)
1214 ac_prev=libdir ;;
1215 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1216 libdir=$ac_optarg ;;
1218 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1219 | --libexe | --libex | --libe)
1220 ac_prev=libexecdir ;;
1221 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1222 | --libexe=* | --libex=* | --libe=*)
1223 libexecdir=$ac_optarg ;;
1225 -localedir | --localedir | --localedi | --localed | --locale)
1226 ac_prev=localedir ;;
1227 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1228 localedir=$ac_optarg ;;
1230 -localstatedir | --localstatedir | --localstatedi | --localstated \
1231 | --localstate | --localstat | --localsta | --localst | --locals)
1232 ac_prev=localstatedir ;;
1233 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1234 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1235 localstatedir=$ac_optarg ;;
1237 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1238 ac_prev=mandir ;;
1239 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1240 mandir=$ac_optarg ;;
1242 -nfp | --nfp | --nf)
1243 # Obsolete; use --without-fp.
1244 with_fp=no ;;
1246 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1247 | --no-cr | --no-c | -n)
1248 no_create=yes ;;
1250 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1251 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1252 no_recursion=yes ;;
1254 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1255 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1256 | --oldin | --oldi | --old | --ol | --o)
1257 ac_prev=oldincludedir ;;
1258 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1259 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1260 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1261 oldincludedir=$ac_optarg ;;
1263 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1264 ac_prev=prefix ;;
1265 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1266 prefix=$ac_optarg ;;
1268 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1269 | --program-pre | --program-pr | --program-p)
1270 ac_prev=program_prefix ;;
1271 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1272 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1273 program_prefix=$ac_optarg ;;
1275 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1276 | --program-suf | --program-su | --program-s)
1277 ac_prev=program_suffix ;;
1278 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1279 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1280 program_suffix=$ac_optarg ;;
1282 -program-transform-name | --program-transform-name \
1283 | --program-transform-nam | --program-transform-na \
1284 | --program-transform-n | --program-transform- \
1285 | --program-transform | --program-transfor \
1286 | --program-transfo | --program-transf \
1287 | --program-trans | --program-tran \
1288 | --progr-tra | --program-tr | --program-t)
1289 ac_prev=program_transform_name ;;
1290 -program-transform-name=* | --program-transform-name=* \
1291 | --program-transform-nam=* | --program-transform-na=* \
1292 | --program-transform-n=* | --program-transform-=* \
1293 | --program-transform=* | --program-transfor=* \
1294 | --program-transfo=* | --program-transf=* \
1295 | --program-trans=* | --program-tran=* \
1296 | --progr-tra=* | --program-tr=* | --program-t=*)
1297 program_transform_name=$ac_optarg ;;
1299 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1300 ac_prev=pdfdir ;;
1301 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1302 pdfdir=$ac_optarg ;;
1304 -psdir | --psdir | --psdi | --psd | --ps)
1305 ac_prev=psdir ;;
1306 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1307 psdir=$ac_optarg ;;
1309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1310 | -silent | --silent | --silen | --sile | --sil)
1311 silent=yes ;;
1313 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1314 ac_prev=sbindir ;;
1315 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1316 | --sbi=* | --sb=*)
1317 sbindir=$ac_optarg ;;
1319 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1320 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1321 | --sharedst | --shareds | --shared | --share | --shar \
1322 | --sha | --sh)
1323 ac_prev=sharedstatedir ;;
1324 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1325 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1326 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1327 | --sha=* | --sh=*)
1328 sharedstatedir=$ac_optarg ;;
1330 -site | --site | --sit)
1331 ac_prev=site ;;
1332 -site=* | --site=* | --sit=*)
1333 site=$ac_optarg ;;
1335 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1336 ac_prev=srcdir ;;
1337 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1338 srcdir=$ac_optarg ;;
1340 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1341 | --syscon | --sysco | --sysc | --sys | --sy)
1342 ac_prev=sysconfdir ;;
1343 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1344 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1345 sysconfdir=$ac_optarg ;;
1347 -target | --target | --targe | --targ | --tar | --ta | --t)
1348 ac_prev=target_alias ;;
1349 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1350 target_alias=$ac_optarg ;;
1352 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1353 verbose=yes ;;
1355 -version | --version | --versio | --versi | --vers | -V)
1356 ac_init_version=: ;;
1358 -with-* | --with-*)
1359 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1360 # Reject names that are not valid shell variable names.
1361 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1362 as_fn_error $? "invalid package name: $ac_useropt"
1363 ac_useropt_orig=$ac_useropt
1364 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1365 case $ac_user_opts in
1367 "with_$ac_useropt"
1368 "*) ;;
1369 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1370 ac_unrecognized_sep=', ';;
1371 esac
1372 eval with_$ac_useropt=\$ac_optarg ;;
1374 -without-* | --without-*)
1375 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1376 # Reject names that are not valid shell variable names.
1377 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1378 as_fn_error $? "invalid package name: $ac_useropt"
1379 ac_useropt_orig=$ac_useropt
1380 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1381 case $ac_user_opts in
1383 "with_$ac_useropt"
1384 "*) ;;
1385 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1386 ac_unrecognized_sep=', ';;
1387 esac
1388 eval with_$ac_useropt=no ;;
1390 --x)
1391 # Obsolete; use --with-x.
1392 with_x=yes ;;
1394 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1395 | --x-incl | --x-inc | --x-in | --x-i)
1396 ac_prev=x_includes ;;
1397 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1398 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1399 x_includes=$ac_optarg ;;
1401 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1402 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1403 ac_prev=x_libraries ;;
1404 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1405 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1406 x_libraries=$ac_optarg ;;
1408 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1409 Try \`$0 --help' for more information"
1412 *=*)
1413 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1414 # Reject names that are not valid shell variable names.
1415 case $ac_envvar in #(
1416 '' | [0-9]* | *[!_$as_cr_alnum]* )
1417 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1418 esac
1419 eval $ac_envvar=\$ac_optarg
1420 export $ac_envvar ;;
1423 # FIXME: should be removed in autoconf 3.0.
1424 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1425 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1426 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1427 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1430 esac
1431 done
1433 if test -n "$ac_prev"; then
1434 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1435 as_fn_error $? "missing argument to $ac_option"
1438 if test -n "$ac_unrecognized_opts"; then
1439 case $enable_option_checking in
1440 no) ;;
1441 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1442 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1443 esac
1446 # Check all directory arguments for consistency.
1447 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1448 datadir sysconfdir sharedstatedir localstatedir includedir \
1449 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1450 libdir localedir mandir
1452 eval ac_val=\$$ac_var
1453 # Remove trailing slashes.
1454 case $ac_val in
1455 */ )
1456 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1457 eval $ac_var=\$ac_val;;
1458 esac
1459 # Be sure to have absolute directory names.
1460 case $ac_val in
1461 [\\/$]* | ?:[\\/]* ) continue;;
1462 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1463 esac
1464 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1465 done
1467 # There might be people who depend on the old broken behavior: `$host'
1468 # used to hold the argument of --host etc.
1469 # FIXME: To remove some day.
1470 build=$build_alias
1471 host=$host_alias
1472 target=$target_alias
1474 # FIXME: To remove some day.
1475 if test "x$host_alias" != x; then
1476 if test "x$build_alias" = x; then
1477 cross_compiling=maybe
1478 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1479 If a cross compiler is detected then cross compile mode will be used" >&2
1480 elif test "x$build_alias" != "x$host_alias"; then
1481 cross_compiling=yes
1485 ac_tool_prefix=
1486 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1488 test "$silent" = yes && exec 6>/dev/null
1491 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1492 ac_ls_di=`ls -di .` &&
1493 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1494 as_fn_error $? "working directory cannot be determined"
1495 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1496 as_fn_error $? "pwd does not report name of working directory"
1499 # Find the source files, if location was not specified.
1500 if test -z "$srcdir"; then
1501 ac_srcdir_defaulted=yes
1502 # Try the directory containing this script, then the parent directory.
1503 ac_confdir=`$as_dirname -- "$as_myself" ||
1504 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1505 X"$as_myself" : 'X\(//\)[^/]' \| \
1506 X"$as_myself" : 'X\(//\)$' \| \
1507 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1508 $as_echo X"$as_myself" |
1509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1510 s//\1/
1513 /^X\(\/\/\)[^/].*/{
1514 s//\1/
1517 /^X\(\/\/\)$/{
1518 s//\1/
1521 /^X\(\/\).*/{
1522 s//\1/
1525 s/.*/./; q'`
1526 srcdir=$ac_confdir
1527 if test ! -r "$srcdir/$ac_unique_file"; then
1528 srcdir=..
1530 else
1531 ac_srcdir_defaulted=no
1533 if test ! -r "$srcdir/$ac_unique_file"; then
1534 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1535 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1537 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1538 ac_abs_confdir=`(
1539 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1540 pwd)`
1541 # When building in place, set srcdir=.
1542 if test "$ac_abs_confdir" = "$ac_pwd"; then
1543 srcdir=.
1545 # Remove unnecessary trailing slashes from srcdir.
1546 # Double slashes in file names in object file debugging info
1547 # mess up M-x gdb in Emacs.
1548 case $srcdir in
1549 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1550 esac
1551 for ac_var in $ac_precious_vars; do
1552 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1553 eval ac_env_${ac_var}_value=\$${ac_var}
1554 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1555 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1556 done
1559 # Report the --help message.
1561 if test "$ac_init_help" = "long"; then
1562 # Omit some internal or obsolete options to make the list less imposing.
1563 # This message is too long to be a string in the A/UX 3.1 sh.
1564 cat <<_ACEOF
1565 \`configure' configures transmission 2.33 to adapt to many kinds of systems.
1567 Usage: $0 [OPTION]... [VAR=VALUE]...
1569 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1570 VAR=VALUE. See below for descriptions of some of the useful variables.
1572 Defaults for the options are specified in brackets.
1574 Configuration:
1575 -h, --help display this help and exit
1576 --help=short display options specific to this package
1577 --help=recursive display the short help of all the included packages
1578 -V, --version display version information and exit
1579 -q, --quiet, --silent do not print \`checking ...' messages
1580 --cache-file=FILE cache test results in FILE [disabled]
1581 -C, --config-cache alias for \`--cache-file=config.cache'
1582 -n, --no-create do not create output files
1583 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1585 Installation directories:
1586 --prefix=PREFIX install architecture-independent files in PREFIX
1587 [$ac_default_prefix]
1588 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1589 [PREFIX]
1591 By default, \`make install' will install all the files in
1592 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1593 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1594 for instance \`--prefix=\$HOME'.
1596 For better control, use the options below.
1598 Fine tuning of the installation directories:
1599 --bindir=DIR user executables [EPREFIX/bin]
1600 --sbindir=DIR system admin executables [EPREFIX/sbin]
1601 --libexecdir=DIR program executables [EPREFIX/libexec]
1602 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1603 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1604 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1605 --libdir=DIR object code libraries [EPREFIX/lib]
1606 --includedir=DIR C header files [PREFIX/include]
1607 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1608 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1609 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1610 --infodir=DIR info documentation [DATAROOTDIR/info]
1611 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1612 --mandir=DIR man documentation [DATAROOTDIR/man]
1613 --docdir=DIR documentation root [DATAROOTDIR/doc/transmission]
1614 --htmldir=DIR html documentation [DOCDIR]
1615 --dvidir=DIR dvi documentation [DOCDIR]
1616 --pdfdir=DIR pdf documentation [DOCDIR]
1617 --psdir=DIR ps documentation [DOCDIR]
1618 _ACEOF
1620 cat <<\_ACEOF
1622 Program names:
1623 --program-prefix=PREFIX prepend PREFIX to installed program names
1624 --program-suffix=SUFFIX append SUFFIX to installed program names
1625 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1627 System types:
1628 --build=BUILD configure for building on BUILD [guessed]
1629 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1630 _ACEOF
1633 if test -n "$ac_init_help"; then
1634 case $ac_init_help in
1635 short | recursive ) echo "Configuration of transmission 2.33:";;
1636 esac
1637 cat <<\_ACEOF
1639 Optional Features:
1640 --disable-option-checking ignore unrecognized --enable/--with options
1641 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1642 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1643 --enable-silent-rules less verbose build output (undo: `make V=1')
1644 --disable-silent-rules verbose build output (undo: `make V=0')
1645 --enable-shared[=PKGS] build shared libraries [default=yes]
1646 --enable-static[=PKGS] build static libraries [default=yes]
1647 --enable-fast-install[=PKGS]
1648 optimize for fast installation [default=yes]
1649 --disable-dependency-tracking speeds up one-time build
1650 --enable-dependency-tracking do not reject slow dependency extractors
1651 --disable-libtool-lock avoid locking (might break parallel builds)
1652 --disable-largefile omit support for large files
1653 --enable-utp build µTP support
1654 --enable-gtk build gtk client
1655 --enable-libnotify enable notifications
1656 --enable-libappindicator
1657 enable AppIndicator support
1658 --enable-libcanberra enable sounds
1659 --enable-nls enable native language support
1660 --disable-nls do not use Native Language Support
1661 --enable-lightweight optimize libtransmission for low-resource systems:
1662 smaller cache size, prefer unencrypted peer
1663 connections, etc.
1664 --enable-cli build command-line client
1665 --enable-mac build Mac client
1666 --enable-daemon build daemon
1668 Optional Packages:
1669 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1670 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1671 --with-pic try to use only PIC/non-PIC objects [default=use
1672 both]
1673 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1674 --with-zlib=DIR search for ZLIB in DIR/include and DIR/lib
1675 --with-zlib-includes=DIR
1676 search for ZLIB includes in DIR
1677 --with-inotify Enable inotify support (default=auto)
1678 --with-kqueue Enable kqueue support (default=auto)
1680 Some influential environment variables:
1681 CC C compiler command
1682 CFLAGS C compiler flags
1683 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1684 nonstandard directory <lib dir>
1685 LIBS libraries to pass to the linker, e.g. -l<library>
1686 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1687 you have headers in a nonstandard directory <include dir>
1688 CPP C preprocessor
1689 CXX C++ compiler command
1690 CXXFLAGS C++ compiler flags
1691 CXXCPP C++ preprocessor
1692 PKG_CONFIG path to pkg-config utility
1693 OPENSSL_CFLAGS
1694 C compiler flags for OPENSSL, overriding pkg-config
1695 OPENSSL_LIBS
1696 linker flags for OPENSSL, overriding pkg-config
1697 LIBCURL_CFLAGS
1698 C compiler flags for LIBCURL, overriding pkg-config
1699 LIBCURL_LIBS
1700 linker flags for LIBCURL, overriding pkg-config
1701 LIBEVENT_CFLAGS
1702 C compiler flags for LIBEVENT, overriding pkg-config
1703 LIBEVENT_LIBS
1704 linker flags for LIBEVENT, overriding pkg-config
1705 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1706 GTK_LIBS linker flags for GTK, overriding pkg-config
1707 GIO_CFLAGS C compiler flags for GIO, overriding pkg-config
1708 GIO_LIBS linker flags for GIO, overriding pkg-config
1709 LIBNOTIFY_CFLAGS
1710 C compiler flags for LIBNOTIFY, overriding pkg-config
1711 LIBNOTIFY_LIBS
1712 linker flags for LIBNOTIFY, overriding pkg-config
1713 LIBAPPINDICATOR_CFLAGS
1714 C compiler flags for LIBAPPINDICATOR, overriding pkg-config
1715 LIBAPPINDICATOR_LIBS
1716 linker flags for LIBAPPINDICATOR, overriding pkg-config
1717 LIBCANBERRA_CFLAGS
1718 C compiler flags for LIBCANBERRA, overriding pkg-config
1719 LIBCANBERRA_LIBS
1720 linker flags for LIBCANBERRA, overriding pkg-config
1721 DBUS_GLIB_CFLAGS
1722 C compiler flags for DBUS_GLIB, overriding pkg-config
1723 DBUS_GLIB_LIBS
1724 linker flags for DBUS_GLIB, overriding pkg-config
1726 Use these variables to override the choices made by `configure' or to help
1727 it to find libraries and programs with nonstandard names/locations.
1729 Report bugs to <http://trac.transmissionbt.com/newticket>.
1730 _ACEOF
1731 ac_status=$?
1734 if test "$ac_init_help" = "recursive"; then
1735 # If there are subdirs, report their specific --help.
1736 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1737 test -d "$ac_dir" ||
1738 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1739 continue
1740 ac_builddir=.
1742 case "$ac_dir" in
1743 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1745 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1746 # A ".." for each directory in $ac_dir_suffix.
1747 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1748 case $ac_top_builddir_sub in
1749 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1750 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1751 esac ;;
1752 esac
1753 ac_abs_top_builddir=$ac_pwd
1754 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1755 # for backward compatibility:
1756 ac_top_builddir=$ac_top_build_prefix
1758 case $srcdir in
1759 .) # We are building in place.
1760 ac_srcdir=.
1761 ac_top_srcdir=$ac_top_builddir_sub
1762 ac_abs_top_srcdir=$ac_pwd ;;
1763 [\\/]* | ?:[\\/]* ) # Absolute name.
1764 ac_srcdir=$srcdir$ac_dir_suffix;
1765 ac_top_srcdir=$srcdir
1766 ac_abs_top_srcdir=$srcdir ;;
1767 *) # Relative name.
1768 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1769 ac_top_srcdir=$ac_top_build_prefix$srcdir
1770 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1771 esac
1772 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1774 cd "$ac_dir" || { ac_status=$?; continue; }
1775 # Check for guested configure.
1776 if test -f "$ac_srcdir/configure.gnu"; then
1777 echo &&
1778 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1779 elif test -f "$ac_srcdir/configure"; then
1780 echo &&
1781 $SHELL "$ac_srcdir/configure" --help=recursive
1782 else
1783 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1784 fi || ac_status=$?
1785 cd "$ac_pwd" || { ac_status=$?; break; }
1786 done
1789 test -n "$ac_init_help" && exit $ac_status
1790 if $ac_init_version; then
1791 cat <<\_ACEOF
1792 transmission configure 2.33
1793 generated by GNU Autoconf 2.67
1795 Copyright (C) 2010 Free Software Foundation, Inc.
1796 This configure script is free software; the Free Software Foundation
1797 gives unlimited permission to copy, distribute and modify it.
1798 _ACEOF
1799 exit
1802 ## ------------------------ ##
1803 ## Autoconf initialization. ##
1804 ## ------------------------ ##
1806 # ac_fn_c_try_compile LINENO
1807 # --------------------------
1808 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1809 ac_fn_c_try_compile ()
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 rm -f conftest.$ac_objext
1813 if { { ac_try="$ac_compile"
1814 case "(($ac_try" in
1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1817 esac
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820 (eval "$ac_compile") 2>conftest.err
1821 ac_status=$?
1822 if test -s conftest.err; then
1823 grep -v '^ *+' conftest.err >conftest.er1
1824 cat conftest.er1 >&5
1825 mv -f conftest.er1 conftest.err
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } && {
1829 test -z "$ac_c_werror_flag" ||
1830 test ! -s conftest.err
1831 } && test -s conftest.$ac_objext; then :
1832 ac_retval=0
1833 else
1834 $as_echo "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.$ac_ext >&5
1837 ac_retval=1
1839 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1840 as_fn_set_status $ac_retval
1842 } # ac_fn_c_try_compile
1844 # ac_fn_c_try_link LINENO
1845 # -----------------------
1846 # Try to link conftest.$ac_ext, and return whether this succeeded.
1847 ac_fn_c_try_link ()
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 rm -f conftest.$ac_objext conftest$ac_exeext
1851 if { { ac_try="$ac_link"
1852 case "(($ac_try" in
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1855 esac
1856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 $as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_link") 2>conftest.err
1859 ac_status=$?
1860 if test -s conftest.err; then
1861 grep -v '^ *+' conftest.err >conftest.er1
1862 cat conftest.er1 >&5
1863 mv -f conftest.er1 conftest.err
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } && {
1867 test -z "$ac_c_werror_flag" ||
1868 test ! -s conftest.err
1869 } && test -s conftest$ac_exeext && {
1870 test "$cross_compiling" = yes ||
1871 $as_test_x conftest$ac_exeext
1872 }; then :
1873 ac_retval=0
1874 else
1875 $as_echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.$ac_ext >&5
1878 ac_retval=1
1880 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1881 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1882 # interfere with the next link command; also delete a directory that is
1883 # left behind by Apple's compiler. We do this before executing the actions.
1884 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1885 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1886 as_fn_set_status $ac_retval
1888 } # ac_fn_c_try_link
1890 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1891 # -------------------------------------------------------
1892 # Tests whether HEADER exists and can be compiled using the include files in
1893 # INCLUDES, setting the cache variable VAR accordingly.
1894 ac_fn_c_check_header_compile ()
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898 $as_echo_n "checking for $2... " >&6; }
1899 if eval "test \"\${$3+set}\"" = set; then :
1900 $as_echo_n "(cached) " >&6
1901 else
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h. */
1905 #include <$2>
1906 _ACEOF
1907 if ac_fn_c_try_compile "$LINENO"; then :
1908 eval "$3=yes"
1909 else
1910 eval "$3=no"
1912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1914 eval ac_res=\$$3
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916 $as_echo "$ac_res" >&6; }
1917 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1919 } # ac_fn_c_check_header_compile
1921 # ac_fn_c_try_cpp LINENO
1922 # ----------------------
1923 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1924 ac_fn_c_try_cpp ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 if { { ac_try="$ac_cpp conftest.$ac_ext"
1928 case "(($ac_try" in
1929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930 *) ac_try_echo=$ac_try;;
1931 esac
1932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1935 ac_status=$?
1936 if test -s conftest.err; then
1937 grep -v '^ *+' conftest.err >conftest.er1
1938 cat conftest.er1 >&5
1939 mv -f conftest.er1 conftest.err
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; } > conftest.i && {
1943 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1944 test ! -s conftest.err
1945 }; then :
1946 ac_retval=0
1947 else
1948 $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1951 ac_retval=1
1953 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1954 as_fn_set_status $ac_retval
1956 } # ac_fn_c_try_cpp
1958 # ac_fn_c_try_run LINENO
1959 # ----------------------
1960 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1961 # that executables *can* be run.
1962 ac_fn_c_try_run ()
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 if { { ac_try="$ac_link"
1966 case "(($ac_try" in
1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968 *) ac_try_echo=$ac_try;;
1969 esac
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_link") 2>&5
1973 ac_status=$?
1974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1975 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1976 { { case "(($ac_try" in
1977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1978 *) ac_try_echo=$ac_try;;
1979 esac
1980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981 $as_echo "$ac_try_echo"; } >&5
1982 (eval "$ac_try") 2>&5
1983 ac_status=$?
1984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985 test $ac_status = 0; }; }; then :
1986 ac_retval=0
1987 else
1988 $as_echo "$as_me: program exited with status $ac_status" >&5
1989 $as_echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1992 ac_retval=$ac_status
1994 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1995 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1996 as_fn_set_status $ac_retval
1998 } # ac_fn_c_try_run
2000 # ac_fn_c_check_func LINENO FUNC VAR
2001 # ----------------------------------
2002 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2003 ac_fn_c_check_func ()
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2007 $as_echo_n "checking for $2... " >&6; }
2008 if eval "test \"\${$3+set}\"" = set; then :
2009 $as_echo_n "(cached) " >&6
2010 else
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2013 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2015 #define $2 innocuous_$2
2017 /* System header to define __stub macros and hopefully few prototypes,
2018 which can conflict with char $2 (); below.
2019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2020 <limits.h> exists even on freestanding compilers. */
2022 #ifdef __STDC__
2023 # include <limits.h>
2024 #else
2025 # include <assert.h>
2026 #endif
2028 #undef $2
2030 /* Override any GCC internal prototype to avoid an error.
2031 Use char because int might match the return type of a GCC
2032 builtin and then its argument prototype would still apply. */
2033 #ifdef __cplusplus
2034 extern "C"
2035 #endif
2036 char $2 ();
2037 /* The GNU C library defines this for functions which it implements
2038 to always fail with ENOSYS. Some functions are actually named
2039 something starting with __ and the normal name is an alias. */
2040 #if defined __stub_$2 || defined __stub___$2
2041 choke me
2042 #endif
2045 main ()
2047 return $2 ();
2049 return 0;
2051 _ACEOF
2052 if ac_fn_c_try_link "$LINENO"; then :
2053 eval "$3=yes"
2054 else
2055 eval "$3=no"
2057 rm -f core conftest.err conftest.$ac_objext \
2058 conftest$ac_exeext conftest.$ac_ext
2060 eval ac_res=\$$3
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2062 $as_echo "$ac_res" >&6; }
2063 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2065 } # ac_fn_c_check_func
2067 # ac_fn_cxx_try_compile LINENO
2068 # ----------------------------
2069 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2070 ac_fn_cxx_try_compile ()
2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073 rm -f conftest.$ac_objext
2074 if { { ac_try="$ac_compile"
2075 case "(($ac_try" in
2076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2077 *) ac_try_echo=$ac_try;;
2078 esac
2079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2080 $as_echo "$ac_try_echo"; } >&5
2081 (eval "$ac_compile") 2>conftest.err
2082 ac_status=$?
2083 if test -s conftest.err; then
2084 grep -v '^ *+' conftest.err >conftest.er1
2085 cat conftest.er1 >&5
2086 mv -f conftest.er1 conftest.err
2088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2089 test $ac_status = 0; } && {
2090 test -z "$ac_cxx_werror_flag" ||
2091 test ! -s conftest.err
2092 } && test -s conftest.$ac_objext; then :
2093 ac_retval=0
2094 else
2095 $as_echo "$as_me: failed program was:" >&5
2096 sed 's/^/| /' conftest.$ac_ext >&5
2098 ac_retval=1
2100 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2101 as_fn_set_status $ac_retval
2103 } # ac_fn_cxx_try_compile
2105 # ac_fn_cxx_try_cpp LINENO
2106 # ------------------------
2107 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2108 ac_fn_cxx_try_cpp ()
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.err
2119 ac_status=$?
2120 if test -s conftest.err; then
2121 grep -v '^ *+' conftest.err >conftest.er1
2122 cat conftest.er1 >&5
2123 mv -f conftest.er1 conftest.err
2125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2126 test $ac_status = 0; } > conftest.i && {
2127 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2128 test ! -s conftest.err
2129 }; then :
2130 ac_retval=0
2131 else
2132 $as_echo "$as_me: failed program was:" >&5
2133 sed 's/^/| /' conftest.$ac_ext >&5
2135 ac_retval=1
2137 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2138 as_fn_set_status $ac_retval
2140 } # ac_fn_cxx_try_cpp
2142 # ac_fn_cxx_try_link LINENO
2143 # -------------------------
2144 # Try to link conftest.$ac_ext, and return whether this succeeded.
2145 ac_fn_cxx_try_link ()
2147 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148 rm -f conftest.$ac_objext conftest$ac_exeext
2149 if { { ac_try="$ac_link"
2150 case "(($ac_try" in
2151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2152 *) ac_try_echo=$ac_try;;
2153 esac
2154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2155 $as_echo "$ac_try_echo"; } >&5
2156 (eval "$ac_link") 2>conftest.err
2157 ac_status=$?
2158 if test -s conftest.err; then
2159 grep -v '^ *+' conftest.err >conftest.er1
2160 cat conftest.er1 >&5
2161 mv -f conftest.er1 conftest.err
2163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2164 test $ac_status = 0; } && {
2165 test -z "$ac_cxx_werror_flag" ||
2166 test ! -s conftest.err
2167 } && test -s conftest$ac_exeext && {
2168 test "$cross_compiling" = yes ||
2169 $as_test_x conftest$ac_exeext
2170 }; then :
2171 ac_retval=0
2172 else
2173 $as_echo "$as_me: failed program was:" >&5
2174 sed 's/^/| /' conftest.$ac_ext >&5
2176 ac_retval=1
2178 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2179 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2180 # interfere with the next link command; also delete a directory that is
2181 # left behind by Apple's compiler. We do this before executing the actions.
2182 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2183 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2184 as_fn_set_status $ac_retval
2186 } # ac_fn_cxx_try_link
2188 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2189 # -------------------------------------------------------
2190 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2191 # the include files in INCLUDES and setting the cache variable VAR
2192 # accordingly.
2193 ac_fn_c_check_header_mongrel ()
2195 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2196 if eval "test \"\${$3+set}\"" = set; then :
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2198 $as_echo_n "checking for $2... " >&6; }
2199 if eval "test \"\${$3+set}\"" = set; then :
2200 $as_echo_n "(cached) " >&6
2202 eval ac_res=\$$3
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2204 $as_echo "$ac_res" >&6; }
2205 else
2206 # Is the header compilable?
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2208 $as_echo_n "checking $2 usability... " >&6; }
2209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210 /* end confdefs.h. */
2212 #include <$2>
2213 _ACEOF
2214 if ac_fn_c_try_compile "$LINENO"; then :
2215 ac_header_compiler=yes
2216 else
2217 ac_header_compiler=no
2219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2221 $as_echo "$ac_header_compiler" >&6; }
2223 # Is the header present?
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2225 $as_echo_n "checking $2 presence... " >&6; }
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2228 #include <$2>
2229 _ACEOF
2230 if ac_fn_c_try_cpp "$LINENO"; then :
2231 ac_header_preproc=yes
2232 else
2233 ac_header_preproc=no
2235 rm -f conftest.err conftest.i conftest.$ac_ext
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2237 $as_echo "$ac_header_preproc" >&6; }
2239 # So? What about this header?
2240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2241 yes:no: )
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2243 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2245 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2247 no:yes:* )
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2249 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2251 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2253 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2255 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2257 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2258 ( $as_echo "## ------------------------------------------------------- ##
2259 ## Report this to http://trac.transmissionbt.com/newticket ##
2260 ## ------------------------------------------------------- ##"
2261 ) | sed "s/^/$as_me: WARNING: /" >&2
2263 esac
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2265 $as_echo_n "checking for $2... " >&6; }
2266 if eval "test \"\${$3+set}\"" = set; then :
2267 $as_echo_n "(cached) " >&6
2268 else
2269 eval "$3=\$ac_header_compiler"
2271 eval ac_res=\$$3
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273 $as_echo "$ac_res" >&6; }
2275 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2277 } # ac_fn_c_check_header_mongrel
2279 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2280 # ---------------------------------------------
2281 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2282 # accordingly.
2283 ac_fn_c_check_decl ()
2285 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2286 as_decl_name=`echo $2|sed 's/ *(.*//'`
2287 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2289 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2290 if eval "test \"\${$3+set}\"" = set; then :
2291 $as_echo_n "(cached) " >&6
2292 else
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2297 main ()
2299 #ifndef $as_decl_name
2300 #ifdef __cplusplus
2301 (void) $as_decl_use;
2302 #else
2303 (void) $as_decl_name;
2304 #endif
2305 #endif
2308 return 0;
2310 _ACEOF
2311 if ac_fn_c_try_compile "$LINENO"; then :
2312 eval "$3=yes"
2313 else
2314 eval "$3=no"
2316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2318 eval ac_res=\$$3
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2320 $as_echo "$ac_res" >&6; }
2321 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2323 } # ac_fn_c_check_decl
2324 cat >config.log <<_ACEOF
2325 This file contains any messages produced by compilers while
2326 running configure, to aid debugging if configure makes a mistake.
2328 It was created by transmission $as_me 2.33, which was
2329 generated by GNU Autoconf 2.67. Invocation command line was
2331 $ $0 $@
2333 _ACEOF
2334 exec 5>>config.log
2336 cat <<_ASUNAME
2337 ## --------- ##
2338 ## Platform. ##
2339 ## --------- ##
2341 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2342 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2343 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2344 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2345 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2347 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2348 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2350 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2351 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2352 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2353 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2354 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2355 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2356 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2358 _ASUNAME
2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 for as_dir in $PATH
2363 IFS=$as_save_IFS
2364 test -z "$as_dir" && as_dir=.
2365 $as_echo "PATH: $as_dir"
2366 done
2367 IFS=$as_save_IFS
2369 } >&5
2371 cat >&5 <<_ACEOF
2374 ## ----------- ##
2375 ## Core tests. ##
2376 ## ----------- ##
2378 _ACEOF
2381 # Keep a trace of the command line.
2382 # Strip out --no-create and --no-recursion so they do not pile up.
2383 # Strip out --silent because we don't want to record it for future runs.
2384 # Also quote any args containing shell meta-characters.
2385 # Make two passes to allow for proper duplicate-argument suppression.
2386 ac_configure_args=
2387 ac_configure_args0=
2388 ac_configure_args1=
2389 ac_must_keep_next=false
2390 for ac_pass in 1 2
2392 for ac_arg
2394 case $ac_arg in
2395 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2396 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2397 | -silent | --silent | --silen | --sile | --sil)
2398 continue ;;
2399 *\'*)
2400 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2401 esac
2402 case $ac_pass in
2403 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2405 as_fn_append ac_configure_args1 " '$ac_arg'"
2406 if test $ac_must_keep_next = true; then
2407 ac_must_keep_next=false # Got value, back to normal.
2408 else
2409 case $ac_arg in
2410 *=* | --config-cache | -C | -disable-* | --disable-* \
2411 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2412 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2413 | -with-* | --with-* | -without-* | --without-* | --x)
2414 case "$ac_configure_args0 " in
2415 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2416 esac
2418 -* ) ac_must_keep_next=true ;;
2419 esac
2421 as_fn_append ac_configure_args " '$ac_arg'"
2423 esac
2424 done
2425 done
2426 { ac_configure_args0=; unset ac_configure_args0;}
2427 { ac_configure_args1=; unset ac_configure_args1;}
2429 # When interrupted or exit'd, cleanup temporary files, and complete
2430 # config.log. We remove comments because anyway the quotes in there
2431 # would cause problems or look ugly.
2432 # WARNING: Use '\'' to represent an apostrophe within the trap.
2433 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2434 trap 'exit_status=$?
2435 # Save into config.log some information that might help in debugging.
2437 echo
2439 $as_echo "## ---------------- ##
2440 ## Cache variables. ##
2441 ## ---------------- ##"
2442 echo
2443 # The following way of writing the cache mishandles newlines in values,
2445 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2446 eval ac_val=\$$ac_var
2447 case $ac_val in #(
2448 *${as_nl}*)
2449 case $ac_var in #(
2450 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2451 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2452 esac
2453 case $ac_var in #(
2454 _ | IFS | as_nl) ;; #(
2455 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2456 *) { eval $ac_var=; unset $ac_var;} ;;
2457 esac ;;
2458 esac
2459 done
2460 (set) 2>&1 |
2461 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2462 *${as_nl}ac_space=\ *)
2463 sed -n \
2464 "s/'\''/'\''\\\\'\'''\''/g;
2465 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2466 ;; #(
2468 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2470 esac |
2471 sort
2473 echo
2475 $as_echo "## ----------------- ##
2476 ## Output variables. ##
2477 ## ----------------- ##"
2478 echo
2479 for ac_var in $ac_subst_vars
2481 eval ac_val=\$$ac_var
2482 case $ac_val in
2483 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2484 esac
2485 $as_echo "$ac_var='\''$ac_val'\''"
2486 done | sort
2487 echo
2489 if test -n "$ac_subst_files"; then
2490 $as_echo "## ------------------- ##
2491 ## File substitutions. ##
2492 ## ------------------- ##"
2493 echo
2494 for ac_var in $ac_subst_files
2496 eval ac_val=\$$ac_var
2497 case $ac_val in
2498 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2499 esac
2500 $as_echo "$ac_var='\''$ac_val'\''"
2501 done | sort
2502 echo
2505 if test -s confdefs.h; then
2506 $as_echo "## ----------- ##
2507 ## confdefs.h. ##
2508 ## ----------- ##"
2509 echo
2510 cat confdefs.h
2511 echo
2513 test "$ac_signal" != 0 &&
2514 $as_echo "$as_me: caught signal $ac_signal"
2515 $as_echo "$as_me: exit $exit_status"
2516 } >&5
2517 rm -f core *.core core.conftest.* &&
2518 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2519 exit $exit_status
2521 for ac_signal in 1 2 13 15; do
2522 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2523 done
2524 ac_signal=0
2526 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2527 rm -f -r conftest* confdefs.h
2529 $as_echo "/* confdefs.h */" > confdefs.h
2531 # Predefined preprocessor variables.
2533 cat >>confdefs.h <<_ACEOF
2534 #define PACKAGE_NAME "$PACKAGE_NAME"
2535 _ACEOF
2537 cat >>confdefs.h <<_ACEOF
2538 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2539 _ACEOF
2541 cat >>confdefs.h <<_ACEOF
2542 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2543 _ACEOF
2545 cat >>confdefs.h <<_ACEOF
2546 #define PACKAGE_STRING "$PACKAGE_STRING"
2547 _ACEOF
2549 cat >>confdefs.h <<_ACEOF
2550 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2551 _ACEOF
2553 cat >>confdefs.h <<_ACEOF
2554 #define PACKAGE_URL "$PACKAGE_URL"
2555 _ACEOF
2558 # Let the site file select an alternate cache file if it wants to.
2559 # Prefer an explicitly selected file to automatically selected ones.
2560 ac_site_file1=NONE
2561 ac_site_file2=NONE
2562 if test -n "$CONFIG_SITE"; then
2563 # We do not want a PATH search for config.site.
2564 case $CONFIG_SITE in #((
2565 -*) ac_site_file1=./$CONFIG_SITE;;
2566 */*) ac_site_file1=$CONFIG_SITE;;
2567 *) ac_site_file1=./$CONFIG_SITE;;
2568 esac
2569 elif test "x$prefix" != xNONE; then
2570 ac_site_file1=$prefix/share/config.site
2571 ac_site_file2=$prefix/etc/config.site
2572 else
2573 ac_site_file1=$ac_default_prefix/share/config.site
2574 ac_site_file2=$ac_default_prefix/etc/config.site
2576 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2578 test "x$ac_site_file" = xNONE && continue
2579 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2581 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2582 sed 's/^/| /' "$ac_site_file" >&5
2583 . "$ac_site_file" \
2584 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2586 as_fn_error $? "failed to load site script $ac_site_file
2587 See \`config.log' for more details" "$LINENO" 5 ; }
2589 done
2591 if test -r "$cache_file"; then
2592 # Some versions of bash will fail to source /dev/null (special files
2593 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2594 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2596 $as_echo "$as_me: loading cache $cache_file" >&6;}
2597 case $cache_file in
2598 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2599 *) . "./$cache_file";;
2600 esac
2602 else
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2604 $as_echo "$as_me: creating cache $cache_file" >&6;}
2605 >$cache_file
2608 # Check that the precious variables saved in the cache have kept the same
2609 # value.
2610 ac_cache_corrupted=false
2611 for ac_var in $ac_precious_vars; do
2612 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2613 eval ac_new_set=\$ac_env_${ac_var}_set
2614 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2615 eval ac_new_val=\$ac_env_${ac_var}_value
2616 case $ac_old_set,$ac_new_set in
2617 set,)
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2619 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2620 ac_cache_corrupted=: ;;
2621 ,set)
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2623 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2624 ac_cache_corrupted=: ;;
2625 ,);;
2627 if test "x$ac_old_val" != "x$ac_new_val"; then
2628 # differences in whitespace do not lead to failure.
2629 ac_old_val_w=`echo x $ac_old_val`
2630 ac_new_val_w=`echo x $ac_new_val`
2631 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2633 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2634 ac_cache_corrupted=:
2635 else
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2637 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2638 eval $ac_var=\$ac_old_val
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2641 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2643 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2644 fi;;
2645 esac
2646 # Pass precious variables to config.status.
2647 if test "$ac_new_set" = set; then
2648 case $ac_new_val in
2649 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2650 *) ac_arg=$ac_var=$ac_new_val ;;
2651 esac
2652 case " $ac_configure_args " in
2653 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2654 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2655 esac
2657 done
2658 if $ac_cache_corrupted; then
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2662 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2663 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2665 ## -------------------- ##
2666 ## Main body of script. ##
2667 ## -------------------- ##
2669 ac_ext=c
2670 ac_cpp='$CPP $CPPFLAGS'
2671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2676 USERAGENT_PREFIX=2.33
2678 PEERID_PREFIX=-TR2330-
2681 # Check whether --enable-silent-rules was given.
2682 if test "${enable_silent_rules+set}" = set; then :
2683 enableval=$enable_silent_rules;
2686 case $enable_silent_rules in
2687 yes) AM_DEFAULT_VERBOSITY=0;;
2688 no) AM_DEFAULT_VERBOSITY=1;;
2689 *) AM_DEFAULT_VERBOSITY=0;;
2690 esac
2691 AM_BACKSLASH='\'
2697 am__api_version='1.11'
2699 ac_aux_dir=
2700 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2701 if test -f "$ac_dir/install-sh"; then
2702 ac_aux_dir=$ac_dir
2703 ac_install_sh="$ac_aux_dir/install-sh -c"
2704 break
2705 elif test -f "$ac_dir/install.sh"; then
2706 ac_aux_dir=$ac_dir
2707 ac_install_sh="$ac_aux_dir/install.sh -c"
2708 break
2709 elif test -f "$ac_dir/shtool"; then
2710 ac_aux_dir=$ac_dir
2711 ac_install_sh="$ac_aux_dir/shtool install -c"
2712 break
2714 done
2715 if test -z "$ac_aux_dir"; then
2716 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2719 # These three variables are undocumented and unsupported,
2720 # and are intended to be withdrawn in a future Autoconf release.
2721 # They can cause serious problems if a builder's source tree is in a directory
2722 # whose full name contains unusual characters.
2723 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2724 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2725 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2728 # Find a good install program. We prefer a C program (faster),
2729 # so one script is as good as another. But avoid the broken or
2730 # incompatible versions:
2731 # SysV /etc/install, /usr/sbin/install
2732 # SunOS /usr/etc/install
2733 # IRIX /sbin/install
2734 # AIX /bin/install
2735 # AmigaOS /C/install, which installs bootblocks on floppy discs
2736 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2737 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2738 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2739 # OS/2's system install, which has a completely different semantic
2740 # ./install, which can be erroneously created by make from ./install.sh.
2741 # Reject install programs that cannot install multiple files.
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2743 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2744 if test -z "$INSTALL"; then
2745 if test "${ac_cv_path_install+set}" = set; then :
2746 $as_echo_n "(cached) " >&6
2747 else
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 for as_dir in $PATH
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 # Account for people who put trailing slashes in PATH elements.
2754 case $as_dir/ in #((
2755 ./ | .// | /[cC]/* | \
2756 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2757 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2758 /usr/ucb/* ) ;;
2760 # OSF1 and SCO ODT 3.0 have their own names for install.
2761 # Don't use installbsd from OSF since it installs stuff as root
2762 # by default.
2763 for ac_prog in ginstall scoinst install; do
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2766 if test $ac_prog = install &&
2767 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2768 # AIX install. It has an incompatible calling convention.
2770 elif test $ac_prog = install &&
2771 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2772 # program-specific install script used by HP pwplus--don't use.
2774 else
2775 rm -rf conftest.one conftest.two conftest.dir
2776 echo one > conftest.one
2777 echo two > conftest.two
2778 mkdir conftest.dir
2779 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2780 test -s conftest.one && test -s conftest.two &&
2781 test -s conftest.dir/conftest.one &&
2782 test -s conftest.dir/conftest.two
2783 then
2784 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2785 break 3
2789 done
2790 done
2792 esac
2794 done
2795 IFS=$as_save_IFS
2797 rm -rf conftest.one conftest.two conftest.dir
2800 if test "${ac_cv_path_install+set}" = set; then
2801 INSTALL=$ac_cv_path_install
2802 else
2803 # As a last resort, use the slow shell script. Don't cache a
2804 # value for INSTALL within a source directory, because that will
2805 # break other packages using the cache if that directory is
2806 # removed, or if the value is a relative name.
2807 INSTALL=$ac_install_sh
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2811 $as_echo "$INSTALL" >&6; }
2813 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2814 # It thinks the first close brace ends the variable substitution.
2815 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2817 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2819 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2822 $as_echo_n "checking whether build environment is sane... " >&6; }
2823 # Just in case
2824 sleep 1
2825 echo timestamp > conftest.file
2826 # Reject unsafe characters in $srcdir or the absolute working directory
2827 # name. Accept space and tab only in the latter.
2828 am_lf='
2830 case `pwd` in
2831 *[\\\"\#\$\&\'\`$am_lf]*)
2832 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2833 esac
2834 case $srcdir in
2835 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2836 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2837 esac
2839 # Do `set' in a subshell so we don't clobber the current shell's
2840 # arguments. Must try -L first in case configure is actually a
2841 # symlink; some systems play weird games with the mod time of symlinks
2842 # (eg FreeBSD returns the mod time of the symlink's containing
2843 # directory).
2844 if (
2845 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2846 if test "$*" = "X"; then
2847 # -L didn't work.
2848 set X `ls -t "$srcdir/configure" conftest.file`
2850 rm -f conftest.file
2851 if test "$*" != "X $srcdir/configure conftest.file" \
2852 && test "$*" != "X conftest.file $srcdir/configure"; then
2854 # If neither matched, then we have a broken ls. This can happen
2855 # if, for instance, CONFIG_SHELL is bash and it inherits a
2856 # broken ls alias from the environment. This has actually
2857 # happened. Such a system could not be considered "sane".
2858 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2859 alias in your environment" "$LINENO" 5
2862 test "$2" = conftest.file
2864 then
2865 # Ok.
2867 else
2868 as_fn_error $? "newly created file is older than distributed files!
2869 Check your system clock" "$LINENO" 5
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2872 $as_echo "yes" >&6; }
2873 test "$program_prefix" != NONE &&
2874 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2875 # Use a double $ so make ignores it.
2876 test "$program_suffix" != NONE &&
2877 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2878 # Double any \ or $.
2879 # By default was `s,x,x', remove it if useless.
2880 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2881 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2883 # expand $ac_aux_dir to an absolute path
2884 am_aux_dir=`cd $ac_aux_dir && pwd`
2886 if test x"${MISSING+set}" != xset; then
2887 case $am_aux_dir in
2888 *\ * | *\ *)
2889 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2891 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2892 esac
2894 # Use eval to expand $SHELL
2895 if eval "$MISSING --run true"; then
2896 am_missing_run="$MISSING --run "
2897 else
2898 am_missing_run=
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2900 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2903 if test x"${install_sh}" != xset; then
2904 case $am_aux_dir in
2905 *\ * | *\ *)
2906 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2908 install_sh="\${SHELL} $am_aux_dir/install-sh"
2909 esac
2912 # Installed binaries are usually stripped using `strip' when the user
2913 # run `make install-strip'. However `strip' might not be the right
2914 # tool to use in cross-compilation environments, therefore Automake
2915 # will honor the `STRIP' environment variable to overrule this program.
2916 if test "$cross_compiling" != no; then
2917 if test -n "$ac_tool_prefix"; then
2918 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2919 set dummy ${ac_tool_prefix}strip; ac_word=$2
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921 $as_echo_n "checking for $ac_word... " >&6; }
2922 if test "${ac_cv_prog_STRIP+set}" = set; then :
2923 $as_echo_n "(cached) " >&6
2924 else
2925 if test -n "$STRIP"; then
2926 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2927 else
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 for as_dir in $PATH
2931 IFS=$as_save_IFS
2932 test -z "$as_dir" && as_dir=.
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2935 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 break 2
2939 done
2940 done
2941 IFS=$as_save_IFS
2945 STRIP=$ac_cv_prog_STRIP
2946 if test -n "$STRIP"; then
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2948 $as_echo "$STRIP" >&6; }
2949 else
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951 $as_echo "no" >&6; }
2956 if test -z "$ac_cv_prog_STRIP"; then
2957 ac_ct_STRIP=$STRIP
2958 # Extract the first word of "strip", so it can be a program name with args.
2959 set dummy strip; ac_word=$2
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961 $as_echo_n "checking for $ac_word... " >&6; }
2962 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2963 $as_echo_n "(cached) " >&6
2964 else
2965 if test -n "$ac_ct_STRIP"; then
2966 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2967 else
2968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969 for as_dir in $PATH
2971 IFS=$as_save_IFS
2972 test -z "$as_dir" && as_dir=.
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2975 ac_cv_prog_ac_ct_STRIP="strip"
2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977 break 2
2979 done
2980 done
2981 IFS=$as_save_IFS
2985 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2986 if test -n "$ac_ct_STRIP"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2988 $as_echo "$ac_ct_STRIP" >&6; }
2989 else
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991 $as_echo "no" >&6; }
2994 if test "x$ac_ct_STRIP" = x; then
2995 STRIP=":"
2996 else
2997 case $cross_compiling:$ac_tool_warned in
2998 yes:)
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3001 ac_tool_warned=yes ;;
3002 esac
3003 STRIP=$ac_ct_STRIP
3005 else
3006 STRIP="$ac_cv_prog_STRIP"
3010 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3013 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3014 if test -z "$MKDIR_P"; then
3015 if test "${ac_cv_path_mkdir+set}" = set; then :
3016 $as_echo_n "(cached) " >&6
3017 else
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3021 IFS=$as_save_IFS
3022 test -z "$as_dir" && as_dir=.
3023 for ac_prog in mkdir gmkdir; do
3024 for ac_exec_ext in '' $ac_executable_extensions; do
3025 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3026 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3027 'mkdir (GNU coreutils) '* | \
3028 'mkdir (coreutils) '* | \
3029 'mkdir (fileutils) '4.1*)
3030 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3031 break 3;;
3032 esac
3033 done
3034 done
3035 done
3036 IFS=$as_save_IFS
3040 test -d ./--version && rmdir ./--version
3041 if test "${ac_cv_path_mkdir+set}" = set; then
3042 MKDIR_P="$ac_cv_path_mkdir -p"
3043 else
3044 # As a last resort, use the slow shell script. Don't cache a
3045 # value for MKDIR_P within a source directory, because that will
3046 # break other packages using the cache if that directory is
3047 # removed, or if the value is a relative name.
3048 MKDIR_P="$ac_install_sh -d"
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3052 $as_echo "$MKDIR_P" >&6; }
3054 mkdir_p="$MKDIR_P"
3055 case $mkdir_p in
3056 [\\/$]* | ?:[\\/]*) ;;
3057 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3058 esac
3060 for ac_prog in gawk mawk nawk awk
3062 # Extract the first word of "$ac_prog", so it can be a program name with args.
3063 set dummy $ac_prog; ac_word=$2
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3065 $as_echo_n "checking for $ac_word... " >&6; }
3066 if test "${ac_cv_prog_AWK+set}" = set; then :
3067 $as_echo_n "(cached) " >&6
3068 else
3069 if test -n "$AWK"; then
3070 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3071 else
3072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073 for as_dir in $PATH
3075 IFS=$as_save_IFS
3076 test -z "$as_dir" && as_dir=.
3077 for ac_exec_ext in '' $ac_executable_extensions; do
3078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3079 ac_cv_prog_AWK="$ac_prog"
3080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3081 break 2
3083 done
3084 done
3085 IFS=$as_save_IFS
3089 AWK=$ac_cv_prog_AWK
3090 if test -n "$AWK"; then
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3092 $as_echo "$AWK" >&6; }
3093 else
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3095 $as_echo "no" >&6; }
3099 test -n "$AWK" && break
3100 done
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3103 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3104 set x ${MAKE-make}
3105 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3106 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3107 $as_echo_n "(cached) " >&6
3108 else
3109 cat >conftest.make <<\_ACEOF
3110 SHELL = /bin/sh
3111 all:
3112 @echo '@@@%%%=$(MAKE)=@@@%%%'
3113 _ACEOF
3114 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3115 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3116 *@@@%%%=?*=@@@%%%*)
3117 eval ac_cv_prog_make_${ac_make}_set=yes;;
3119 eval ac_cv_prog_make_${ac_make}_set=no;;
3120 esac
3121 rm -f conftest.make
3123 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3125 $as_echo "yes" >&6; }
3126 SET_MAKE=
3127 else
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129 $as_echo "no" >&6; }
3130 SET_MAKE="MAKE=${MAKE-make}"
3133 rm -rf .tst 2>/dev/null
3134 mkdir .tst 2>/dev/null
3135 if test -d .tst; then
3136 am__leading_dot=.
3137 else
3138 am__leading_dot=_
3140 rmdir .tst 2>/dev/null
3142 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3143 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3144 # is not polluted with repeated "-I."
3145 am__isrc=' -I$(srcdir)'
3146 # test to see if srcdir already configured
3147 if test -f $srcdir/config.status; then
3148 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3152 # test whether we have cygpath
3153 if test -z "$CYGPATH_W"; then
3154 if (cygpath --version) >/dev/null 2>/dev/null; then
3155 CYGPATH_W='cygpath -w'
3156 else
3157 CYGPATH_W=echo
3162 # Define the identity of the package.
3163 PACKAGE='transmission'
3164 VERSION='2.33'
3167 cat >>confdefs.h <<_ACEOF
3168 #define PACKAGE "$PACKAGE"
3169 _ACEOF
3172 cat >>confdefs.h <<_ACEOF
3173 #define VERSION "$VERSION"
3174 _ACEOF
3176 # Some tools Automake needs.
3178 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3181 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3184 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3187 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3190 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3192 # We need awk for the "check" target. The system "awk" is bad on
3193 # some platforms.
3194 # Always define AMTAR for backward compatibility.
3196 AMTAR=${AMTAR-"${am_missing_run}tar"}
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
3200 $as_echo_n "checking how to create a pax tar archive... " >&6; }
3201 # Loop over all known methods to create a tar archive until one works.
3202 _am_tools='gnutar pax cpio none'
3203 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
3204 # Do not fold the above two line into one, because Tru64 sh and
3205 # Solaris sh will not grok spaces in the rhs of `-'.
3206 for _am_tool in $_am_tools
3208 case $_am_tool in
3209 gnutar)
3210 for _am_tar in tar gnutar gtar;
3212 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3213 ($_am_tar --version) >&5 2>&5
3214 ac_status=$?
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); } && break
3217 done
3218 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
3219 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
3220 am__untar="$_am_tar -xf -"
3222 plaintar)
3223 # Must skip GNU tar: if it does not support --format= it doesn't create
3224 # ustar tarball either.
3225 (tar --version) >/dev/null 2>&1 && continue
3226 am__tar='tar chf - "$$tardir"'
3227 am__tar_='tar chf - "$tardir"'
3228 am__untar='tar xf -'
3230 pax)
3231 am__tar='pax -L -x pax -w "$$tardir"'
3232 am__tar_='pax -L -x pax -w "$tardir"'
3233 am__untar='pax -r'
3235 cpio)
3236 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
3237 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
3238 am__untar='cpio -i -H pax -d'
3240 none)
3241 am__tar=false
3242 am__tar_=false
3243 am__untar=false
3245 esac
3247 # If the value was cached, stop now. We just wanted to have am__tar
3248 # and am__untar set.
3249 test -n "${am_cv_prog_tar_pax}" && break
3251 # tar/untar a dummy directory, and stop if the command works
3252 rm -rf conftest.dir
3253 mkdir conftest.dir
3254 echo GrepMe > conftest.dir/file
3255 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3256 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3257 ac_status=$?
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }
3260 rm -rf conftest.dir
3261 if test -s conftest.tar; then
3262 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3263 ($am__untar <conftest.tar) >&5 2>&5
3264 ac_status=$?
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); }
3267 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3269 done
3270 rm -rf conftest.dir
3272 if test "${am_cv_prog_tar_pax+set}" = set; then :
3273 $as_echo_n "(cached) " >&6
3274 else
3275 am_cv_prog_tar_pax=$_am_tool
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
3279 $as_echo "$am_cv_prog_tar_pax" >&6; }
3285 case `pwd` in
3286 *\ * | *\ *)
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3288 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3289 esac
3293 macro_version='2.2.6b'
3294 macro_revision='1.3017'
3308 ltmain="$ac_aux_dir/ltmain.sh"
3310 # Make sure we can run config.sub.
3311 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3312 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3315 $as_echo_n "checking build system type... " >&6; }
3316 if test "${ac_cv_build+set}" = set; then :
3317 $as_echo_n "(cached) " >&6
3318 else
3319 ac_build_alias=$build_alias
3320 test "x$ac_build_alias" = x &&
3321 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3322 test "x$ac_build_alias" = x &&
3323 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3324 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3325 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3329 $as_echo "$ac_cv_build" >&6; }
3330 case $ac_cv_build in
3331 *-*-*) ;;
3332 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3333 esac
3334 build=$ac_cv_build
3335 ac_save_IFS=$IFS; IFS='-'
3336 set x $ac_cv_build
3337 shift
3338 build_cpu=$1
3339 build_vendor=$2
3340 shift; shift
3341 # Remember, the first character of IFS is used to create $*,
3342 # except with old shells:
3343 build_os=$*
3344 IFS=$ac_save_IFS
3345 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3349 $as_echo_n "checking host system type... " >&6; }
3350 if test "${ac_cv_host+set}" = set; then :
3351 $as_echo_n "(cached) " >&6
3352 else
3353 if test "x$host_alias" = x; then
3354 ac_cv_host=$ac_cv_build
3355 else
3356 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3357 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3362 $as_echo "$ac_cv_host" >&6; }
3363 case $ac_cv_host in
3364 *-*-*) ;;
3365 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3366 esac
3367 host=$ac_cv_host
3368 ac_save_IFS=$IFS; IFS='-'
3369 set x $ac_cv_host
3370 shift
3371 host_cpu=$1
3372 host_vendor=$2
3373 shift; shift
3374 # Remember, the first character of IFS is used to create $*,
3375 # except with old shells:
3376 host_os=$*
3377 IFS=$ac_save_IFS
3378 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3381 DEPDIR="${am__leading_dot}deps"
3383 ac_config_commands="$ac_config_commands depfiles"
3386 am_make=${MAKE-make}
3387 cat > confinc << 'END'
3388 am__doit:
3389 @echo this is the am__doit target
3390 .PHONY: am__doit
3392 # If we don't find an include directive, just comment out the code.
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3394 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3395 am__include="#"
3396 am__quote=
3397 _am_result=none
3398 # First try GNU make style include.
3399 echo "include confinc" > confmf
3400 # Ignore all kinds of additional output from `make'.
3401 case `$am_make -s -f confmf 2> /dev/null` in #(
3402 *the\ am__doit\ target*)
3403 am__include=include
3404 am__quote=
3405 _am_result=GNU
3407 esac
3408 # Now try BSD make style include.
3409 if test "$am__include" = "#"; then
3410 echo '.include "confinc"' > confmf
3411 case `$am_make -s -f confmf 2> /dev/null` in #(
3412 *the\ am__doit\ target*)
3413 am__include=.include
3414 am__quote="\""
3415 _am_result=BSD
3417 esac
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3422 $as_echo "$_am_result" >&6; }
3423 rm -f confinc confmf
3425 # Check whether --enable-dependency-tracking was given.
3426 if test "${enable_dependency_tracking+set}" = set; then :
3427 enableval=$enable_dependency_tracking;
3430 if test "x$enable_dependency_tracking" != xno; then
3431 am_depcomp="$ac_aux_dir/depcomp"
3432 AMDEPBACKSLASH='\'
3434 if test "x$enable_dependency_tracking" != xno; then
3435 AMDEP_TRUE=
3436 AMDEP_FALSE='#'
3437 else
3438 AMDEP_TRUE='#'
3439 AMDEP_FALSE=
3443 ac_ext=c
3444 ac_cpp='$CPP $CPPFLAGS'
3445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3448 if test -n "$ac_tool_prefix"; then
3449 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3450 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3452 $as_echo_n "checking for $ac_word... " >&6; }
3453 if test "${ac_cv_prog_CC+set}" = set; then :
3454 $as_echo_n "(cached) " >&6
3455 else
3456 if test -n "$CC"; then
3457 ac_cv_prog_CC="$CC" # Let the user override the test.
3458 else
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH
3462 IFS=$as_save_IFS
3463 test -z "$as_dir" && as_dir=.
3464 for ac_exec_ext in '' $ac_executable_extensions; do
3465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3466 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3468 break 2
3470 done
3471 done
3472 IFS=$as_save_IFS
3476 CC=$ac_cv_prog_CC
3477 if test -n "$CC"; then
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3479 $as_echo "$CC" >&6; }
3480 else
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482 $as_echo "no" >&6; }
3487 if test -z "$ac_cv_prog_CC"; then
3488 ac_ct_CC=$CC
3489 # Extract the first word of "gcc", so it can be a program name with args.
3490 set dummy gcc; ac_word=$2
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3492 $as_echo_n "checking for $ac_word... " >&6; }
3493 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3494 $as_echo_n "(cached) " >&6
3495 else
3496 if test -n "$ac_ct_CC"; then
3497 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3498 else
3499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500 for as_dir in $PATH
3502 IFS=$as_save_IFS
3503 test -z "$as_dir" && as_dir=.
3504 for ac_exec_ext in '' $ac_executable_extensions; do
3505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3506 ac_cv_prog_ac_ct_CC="gcc"
3507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3508 break 2
3510 done
3511 done
3512 IFS=$as_save_IFS
3516 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3517 if test -n "$ac_ct_CC"; then
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3519 $as_echo "$ac_ct_CC" >&6; }
3520 else
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522 $as_echo "no" >&6; }
3525 if test "x$ac_ct_CC" = x; then
3526 CC=""
3527 else
3528 case $cross_compiling:$ac_tool_warned in
3529 yes:)
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3532 ac_tool_warned=yes ;;
3533 esac
3534 CC=$ac_ct_CC
3536 else
3537 CC="$ac_cv_prog_CC"
3540 if test -z "$CC"; then
3541 if test -n "$ac_tool_prefix"; then
3542 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3543 set dummy ${ac_tool_prefix}cc; ac_word=$2
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545 $as_echo_n "checking for $ac_word... " >&6; }
3546 if test "${ac_cv_prog_CC+set}" = set; then :
3547 $as_echo_n "(cached) " >&6
3548 else
3549 if test -n "$CC"; then
3550 ac_cv_prog_CC="$CC" # Let the user override the test.
3551 else
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 for as_dir in $PATH
3555 IFS=$as_save_IFS
3556 test -z "$as_dir" && as_dir=.
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3559 ac_cv_prog_CC="${ac_tool_prefix}cc"
3560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 break 2
3563 done
3564 done
3565 IFS=$as_save_IFS
3569 CC=$ac_cv_prog_CC
3570 if test -n "$CC"; then
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3572 $as_echo "$CC" >&6; }
3573 else
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 $as_echo "no" >&6; }
3581 if test -z "$CC"; then
3582 # Extract the first word of "cc", so it can be a program name with args.
3583 set dummy cc; ac_word=$2
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585 $as_echo_n "checking for $ac_word... " >&6; }
3586 if test "${ac_cv_prog_CC+set}" = set; then :
3587 $as_echo_n "(cached) " >&6
3588 else
3589 if test -n "$CC"; then
3590 ac_cv_prog_CC="$CC" # Let the user override the test.
3591 else
3592 ac_prog_rejected=no
3593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 for as_dir in $PATH
3596 IFS=$as_save_IFS
3597 test -z "$as_dir" && as_dir=.
3598 for ac_exec_ext in '' $ac_executable_extensions; do
3599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3600 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3601 ac_prog_rejected=yes
3602 continue
3604 ac_cv_prog_CC="cc"
3605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3606 break 2
3608 done
3609 done
3610 IFS=$as_save_IFS
3612 if test $ac_prog_rejected = yes; then
3613 # We found a bogon in the path, so make sure we never use it.
3614 set dummy $ac_cv_prog_CC
3615 shift
3616 if test $# != 0; then
3617 # We chose a different compiler from the bogus one.
3618 # However, it has the same basename, so the bogon will be chosen
3619 # first if we set CC to just the basename; use the full file name.
3620 shift
3621 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3626 CC=$ac_cv_prog_CC
3627 if test -n "$CC"; then
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3629 $as_echo "$CC" >&6; }
3630 else
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3632 $as_echo "no" >&6; }
3637 if test -z "$CC"; then
3638 if test -n "$ac_tool_prefix"; then
3639 for ac_prog in cl.exe
3641 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3642 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3644 $as_echo_n "checking for $ac_word... " >&6; }
3645 if test "${ac_cv_prog_CC+set}" = set; then :
3646 $as_echo_n "(cached) " >&6
3647 else
3648 if test -n "$CC"; then
3649 ac_cv_prog_CC="$CC" # Let the user override the test.
3650 else
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652 for as_dir in $PATH
3654 IFS=$as_save_IFS
3655 test -z "$as_dir" && as_dir=.
3656 for ac_exec_ext in '' $ac_executable_extensions; do
3657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3658 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3660 break 2
3662 done
3663 done
3664 IFS=$as_save_IFS
3668 CC=$ac_cv_prog_CC
3669 if test -n "$CC"; then
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3671 $as_echo "$CC" >&6; }
3672 else
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3678 test -n "$CC" && break
3679 done
3681 if test -z "$CC"; then
3682 ac_ct_CC=$CC
3683 for ac_prog in cl.exe
3685 # Extract the first word of "$ac_prog", so it can be a program name with args.
3686 set dummy $ac_prog; ac_word=$2
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3688 $as_echo_n "checking for $ac_word... " >&6; }
3689 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3690 $as_echo_n "(cached) " >&6
3691 else
3692 if test -n "$ac_ct_CC"; then
3693 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3694 else
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 for as_dir in $PATH
3698 IFS=$as_save_IFS
3699 test -z "$as_dir" && as_dir=.
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3702 ac_cv_prog_ac_ct_CC="$ac_prog"
3703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3704 break 2
3706 done
3707 done
3708 IFS=$as_save_IFS
3712 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3713 if test -n "$ac_ct_CC"; then
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3715 $as_echo "$ac_ct_CC" >&6; }
3716 else
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718 $as_echo "no" >&6; }
3722 test -n "$ac_ct_CC" && break
3723 done
3725 if test "x$ac_ct_CC" = x; then
3726 CC=""
3727 else
3728 case $cross_compiling:$ac_tool_warned in
3729 yes:)
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3732 ac_tool_warned=yes ;;
3733 esac
3734 CC=$ac_ct_CC
3741 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3743 as_fn_error $? "no acceptable C compiler found in \$PATH
3744 See \`config.log' for more details" "$LINENO" 5 ; }
3746 # Provide some information about the compiler.
3747 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3748 set X $ac_compile
3749 ac_compiler=$2
3750 for ac_option in --version -v -V -qversion; do
3751 { { ac_try="$ac_compiler $ac_option >&5"
3752 case "(($ac_try" in
3753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754 *) ac_try_echo=$ac_try;;
3755 esac
3756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3757 $as_echo "$ac_try_echo"; } >&5
3758 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3759 ac_status=$?
3760 if test -s conftest.err; then
3761 sed '10a\
3762 ... rest of stderr output deleted ...
3763 10q' conftest.err >conftest.er1
3764 cat conftest.er1 >&5
3766 rm -f conftest.er1 conftest.err
3767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3768 test $ac_status = 0; }
3769 done
3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h. */
3775 main ()
3779 return 0;
3781 _ACEOF
3782 ac_clean_files_save=$ac_clean_files
3783 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3784 # Try to create an executable without -o first, disregard a.out.
3785 # It will help us diagnose broken compilers, and finding out an intuition
3786 # of exeext.
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3788 $as_echo_n "checking whether the C compiler works... " >&6; }
3789 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3791 # The possible output files:
3792 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3794 ac_rmfiles=
3795 for ac_file in $ac_files
3797 case $ac_file in
3798 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3799 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3800 esac
3801 done
3802 rm -f $ac_rmfiles
3804 if { { ac_try="$ac_link_default"
3805 case "(($ac_try" in
3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3808 esac
3809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3810 $as_echo "$ac_try_echo"; } >&5
3811 (eval "$ac_link_default") 2>&5
3812 ac_status=$?
3813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3814 test $ac_status = 0; }; then :
3815 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3816 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3817 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3818 # so that the user can short-circuit this test for compilers unknown to
3819 # Autoconf.
3820 for ac_file in $ac_files ''
3822 test -f "$ac_file" || continue
3823 case $ac_file in
3824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3826 [ab].out )
3827 # We found the default executable, but exeext='' is most
3828 # certainly right.
3829 break;;
3830 *.* )
3831 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3832 then :; else
3833 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3835 # We set ac_cv_exeext here because the later test for it is not
3836 # safe: cross compilers may not add the suffix if given an `-o'
3837 # argument, so we may need to know it at that point already.
3838 # Even if this section looks crufty: it has the advantage of
3839 # actually working.
3840 break;;
3842 break;;
3843 esac
3844 done
3845 test "$ac_cv_exeext" = no && ac_cv_exeext=
3847 else
3848 ac_file=''
3850 if test -z "$ac_file"; then :
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3852 $as_echo "no" >&6; }
3853 $as_echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
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 77 "C compiler cannot create executables
3859 See \`config.log' for more details" "$LINENO" 5 ; }
3860 else
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3862 $as_echo "yes" >&6; }
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3865 $as_echo_n "checking for C compiler default output file name... " >&6; }
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3867 $as_echo "$ac_file" >&6; }
3868 ac_exeext=$ac_cv_exeext
3870 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3871 ac_clean_files=$ac_clean_files_save
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3873 $as_echo_n "checking for suffix of executables... " >&6; }
3874 if { { ac_try="$ac_link"
3875 case "(($ac_try" in
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3878 esac
3879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3880 $as_echo "$ac_try_echo"; } >&5
3881 (eval "$ac_link") 2>&5
3882 ac_status=$?
3883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3884 test $ac_status = 0; }; then :
3885 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3886 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3887 # work properly (i.e., refer to `conftest.exe'), while it won't with
3888 # `rm'.
3889 for ac_file in conftest.exe conftest conftest.*; do
3890 test -f "$ac_file" || continue
3891 case $ac_file in
3892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3893 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3894 break;;
3895 * ) break;;
3896 esac
3897 done
3898 else
3899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3901 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3902 See \`config.log' for more details" "$LINENO" 5 ; }
3904 rm -f conftest conftest$ac_cv_exeext
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3906 $as_echo "$ac_cv_exeext" >&6; }
3908 rm -f conftest.$ac_ext
3909 EXEEXT=$ac_cv_exeext
3910 ac_exeext=$EXEEXT
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3913 #include <stdio.h>
3915 main ()
3917 FILE *f = fopen ("conftest.out", "w");
3918 return ferror (f) || fclose (f) != 0;
3921 return 0;
3923 _ACEOF
3924 ac_clean_files="$ac_clean_files conftest.out"
3925 # Check that the compiler produces executables we can run. If not, either
3926 # the compiler is broken, or we cross compile.
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3928 $as_echo_n "checking whether we are cross compiling... " >&6; }
3929 if test "$cross_compiling" != yes; then
3930 { { ac_try="$ac_link"
3931 case "(($ac_try" in
3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933 *) ac_try_echo=$ac_try;;
3934 esac
3935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3936 $as_echo "$ac_try_echo"; } >&5
3937 (eval "$ac_link") 2>&5
3938 ac_status=$?
3939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3940 test $ac_status = 0; }
3941 if { ac_try='./conftest$ac_cv_exeext'
3942 { { case "(($ac_try" in
3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944 *) ac_try_echo=$ac_try;;
3945 esac
3946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3947 $as_echo "$ac_try_echo"; } >&5
3948 (eval "$ac_try") 2>&5
3949 ac_status=$?
3950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3951 test $ac_status = 0; }; }; then
3952 cross_compiling=no
3953 else
3954 if test "$cross_compiling" = maybe; then
3955 cross_compiling=yes
3956 else
3957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3959 as_fn_error $? "cannot run C compiled programs.
3960 If you meant to cross compile, use \`--host'.
3961 See \`config.log' for more details" "$LINENO" 5 ; }
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3966 $as_echo "$cross_compiling" >&6; }
3968 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3969 ac_clean_files=$ac_clean_files_save
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3971 $as_echo_n "checking for suffix of object files... " >&6; }
3972 if test "${ac_cv_objext+set}" = set; then :
3973 $as_echo_n "(cached) " >&6
3974 else
3975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976 /* end confdefs.h. */
3979 main ()
3983 return 0;
3985 _ACEOF
3986 rm -f conftest.o conftest.obj
3987 if { { ac_try="$ac_compile"
3988 case "(($ac_try" in
3989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990 *) ac_try_echo=$ac_try;;
3991 esac
3992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3993 $as_echo "$ac_try_echo"; } >&5
3994 (eval "$ac_compile") 2>&5
3995 ac_status=$?
3996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3997 test $ac_status = 0; }; then :
3998 for ac_file in conftest.o conftest.obj conftest.*; do
3999 test -f "$ac_file" || continue;
4000 case $ac_file in
4001 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4002 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4003 break;;
4004 esac
4005 done
4006 else
4007 $as_echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4012 as_fn_error $? "cannot compute suffix of object files: cannot compile
4013 See \`config.log' for more details" "$LINENO" 5 ; }
4015 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4018 $as_echo "$ac_cv_objext" >&6; }
4019 OBJEXT=$ac_cv_objext
4020 ac_objext=$OBJEXT
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4022 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4023 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4024 $as_echo_n "(cached) " >&6
4025 else
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4030 main ()
4032 #ifndef __GNUC__
4033 choke me
4034 #endif
4037 return 0;
4039 _ACEOF
4040 if ac_fn_c_try_compile "$LINENO"; then :
4041 ac_compiler_gnu=yes
4042 else
4043 ac_compiler_gnu=no
4045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4046 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4050 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4051 if test $ac_compiler_gnu = yes; then
4052 GCC=yes
4053 else
4054 GCC=
4056 ac_test_CFLAGS=${CFLAGS+set}
4057 ac_save_CFLAGS=$CFLAGS
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4059 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4060 if test "${ac_cv_prog_cc_g+set}" = set; then :
4061 $as_echo_n "(cached) " >&6
4062 else
4063 ac_save_c_werror_flag=$ac_c_werror_flag
4064 ac_c_werror_flag=yes
4065 ac_cv_prog_cc_g=no
4066 CFLAGS="-g"
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4071 main ()
4075 return 0;
4077 _ACEOF
4078 if ac_fn_c_try_compile "$LINENO"; then :
4079 ac_cv_prog_cc_g=yes
4080 else
4081 CFLAGS=""
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4086 main ()
4090 return 0;
4092 _ACEOF
4093 if ac_fn_c_try_compile "$LINENO"; then :
4095 else
4096 ac_c_werror_flag=$ac_save_c_werror_flag
4097 CFLAGS="-g"
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h. */
4102 main ()
4106 return 0;
4108 _ACEOF
4109 if ac_fn_c_try_compile "$LINENO"; then :
4110 ac_cv_prog_cc_g=yes
4112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117 ac_c_werror_flag=$ac_save_c_werror_flag
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4120 $as_echo "$ac_cv_prog_cc_g" >&6; }
4121 if test "$ac_test_CFLAGS" = set; then
4122 CFLAGS=$ac_save_CFLAGS
4123 elif test $ac_cv_prog_cc_g = yes; then
4124 if test "$GCC" = yes; then
4125 CFLAGS="-O2"
4126 else
4127 CFLAGS="-g"
4129 else
4130 if test "$GCC" = yes; then
4131 CFLAGS="-O2"
4132 else
4133 CFLAGS=
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4137 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4138 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4139 $as_echo_n "(cached) " >&6
4140 else
4141 ac_cv_prog_cc_c89=no
4142 ac_save_CC=$CC
4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h. */
4145 #include <stdarg.h>
4146 #include <stdio.h>
4147 #include <sys/types.h>
4148 #include <sys/stat.h>
4149 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4150 struct buf { int x; };
4151 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4152 static char *e (p, i)
4153 char **p;
4154 int i;
4156 return p[i];
4158 static char *f (char * (*g) (char **, int), char **p, ...)
4160 char *s;
4161 va_list v;
4162 va_start (v,p);
4163 s = g (p, va_arg (v,int));
4164 va_end (v);
4165 return s;
4168 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4169 function prototypes and stuff, but not '\xHH' hex character constants.
4170 These don't provoke an error unfortunately, instead are silently treated
4171 as 'x'. The following induces an error, until -std is added to get
4172 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4173 array size at least. It's necessary to write '\x00'==0 to get something
4174 that's true only with -std. */
4175 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4177 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4178 inside strings and character constants. */
4179 #define FOO(x) 'x'
4180 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4182 int test (int i, double x);
4183 struct s1 {int (*f) (int a);};
4184 struct s2 {int (*f) (double a);};
4185 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4186 int argc;
4187 char **argv;
4189 main ()
4191 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4193 return 0;
4195 _ACEOF
4196 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4197 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4199 CC="$ac_save_CC $ac_arg"
4200 if ac_fn_c_try_compile "$LINENO"; then :
4201 ac_cv_prog_cc_c89=$ac_arg
4203 rm -f core conftest.err conftest.$ac_objext
4204 test "x$ac_cv_prog_cc_c89" != "xno" && break
4205 done
4206 rm -f conftest.$ac_ext
4207 CC=$ac_save_CC
4210 # AC_CACHE_VAL
4211 case "x$ac_cv_prog_cc_c89" in
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4214 $as_echo "none needed" >&6; } ;;
4215 xno)
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4217 $as_echo "unsupported" >&6; } ;;
4219 CC="$CC $ac_cv_prog_cc_c89"
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4221 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4222 esac
4223 if test "x$ac_cv_prog_cc_c89" != xno; then :
4227 ac_ext=c
4228 ac_cpp='$CPP $CPPFLAGS'
4229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4233 depcc="$CC" am_compiler_list=
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4236 $as_echo_n "checking dependency style of $depcc... " >&6; }
4237 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4238 $as_echo_n "(cached) " >&6
4239 else
4240 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4241 # We make a subdir and do the tests there. Otherwise we can end up
4242 # making bogus files that we don't know about and never remove. For
4243 # instance it was reported that on HP-UX the gcc test will end up
4244 # making a dummy file named `D' -- because `-MD' means `put the output
4245 # in D'.
4246 mkdir conftest.dir
4247 # Copy depcomp to subdir because otherwise we won't find it if we're
4248 # using a relative directory.
4249 cp "$am_depcomp" conftest.dir
4250 cd conftest.dir
4251 # We will build objects and dependencies in a subdirectory because
4252 # it helps to detect inapplicable dependency modes. For instance
4253 # both Tru64's cc and ICC support -MD to output dependencies as a
4254 # side effect of compilation, but ICC will put the dependencies in
4255 # the current directory while Tru64 will put them in the object
4256 # directory.
4257 mkdir sub
4259 am_cv_CC_dependencies_compiler_type=none
4260 if test "$am_compiler_list" = ""; then
4261 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4263 am__universal=false
4264 case " $depcc " in #(
4265 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4266 esac
4268 for depmode in $am_compiler_list; do
4269 # Setup a source with many dependencies, because some compilers
4270 # like to wrap large dependency lists on column 80 (with \), and
4271 # we should not choose a depcomp mode which is confused by this.
4273 # We need to recreate these files for each test, as the compiler may
4274 # overwrite some of them when testing with obscure command lines.
4275 # This happens at least with the AIX C compiler.
4276 : > sub/conftest.c
4277 for i in 1 2 3 4 5 6; do
4278 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4279 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4280 # Solaris 8's {/usr,}/bin/sh.
4281 touch sub/conftst$i.h
4282 done
4283 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4285 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4286 # mode. It turns out that the SunPro C++ compiler does not properly
4287 # handle `-M -o', and we need to detect this. Also, some Intel
4288 # versions had trouble with output in subdirs
4289 am__obj=sub/conftest.${OBJEXT-o}
4290 am__minus_obj="-o $am__obj"
4291 case $depmode in
4292 gcc)
4293 # This depmode causes a compiler race in universal mode.
4294 test "$am__universal" = false || continue
4296 nosideeffect)
4297 # after this tag, mechanisms are not by side-effect, so they'll
4298 # only be used when explicitly requested
4299 if test "x$enable_dependency_tracking" = xyes; then
4300 continue
4301 else
4302 break
4305 msvisualcpp | msvcmsys)
4306 # This compiler won't grok `-c -o', but also, the minuso test has
4307 # not run yet. These depmodes are late enough in the game, and
4308 # so weak that their functioning should not be impacted.
4309 am__obj=conftest.${OBJEXT-o}
4310 am__minus_obj=
4312 none) break ;;
4313 esac
4314 if depmode=$depmode \
4315 source=sub/conftest.c object=$am__obj \
4316 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4317 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4318 >/dev/null 2>conftest.err &&
4319 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4320 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4321 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4322 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4323 # icc doesn't choke on unknown options, it will just issue warnings
4324 # or remarks (even with -Werror). So we grep stderr for any message
4325 # that says an option was ignored or not supported.
4326 # When given -MP, icc 7.0 and 7.1 complain thusly:
4327 # icc: Command line warning: ignoring option '-M'; no argument required
4328 # The diagnosis changed in icc 8.0:
4329 # icc: Command line remark: option '-MP' not supported
4330 if (grep 'ignoring option' conftest.err ||
4331 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4332 am_cv_CC_dependencies_compiler_type=$depmode
4333 break
4336 done
4338 cd ..
4339 rm -rf conftest.dir
4340 else
4341 am_cv_CC_dependencies_compiler_type=none
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4346 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4347 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4350 test "x$enable_dependency_tracking" != xno \
4351 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4352 am__fastdepCC_TRUE=
4353 am__fastdepCC_FALSE='#'
4354 else
4355 am__fastdepCC_TRUE='#'
4356 am__fastdepCC_FALSE=
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4361 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4362 if test "${ac_cv_path_SED+set}" = set; then :
4363 $as_echo_n "(cached) " >&6
4364 else
4365 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4366 for ac_i in 1 2 3 4 5 6 7; do
4367 ac_script="$ac_script$as_nl$ac_script"
4368 done
4369 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4370 { ac_script=; unset ac_script;}
4371 if test -z "$SED"; then
4372 ac_path_SED_found=false
4373 # Loop through the user's path and test for each of PROGNAME-LIST
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH
4377 IFS=$as_save_IFS
4378 test -z "$as_dir" && as_dir=.
4379 for ac_prog in sed gsed; do
4380 for ac_exec_ext in '' $ac_executable_extensions; do
4381 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4382 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4383 # Check for GNU ac_path_SED and select it if it is found.
4384 # Check for GNU $ac_path_SED
4385 case `"$ac_path_SED" --version 2>&1` in
4386 *GNU*)
4387 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4389 ac_count=0
4390 $as_echo_n 0123456789 >"conftest.in"
4391 while :
4393 cat "conftest.in" "conftest.in" >"conftest.tmp"
4394 mv "conftest.tmp" "conftest.in"
4395 cp "conftest.in" "conftest.nl"
4396 $as_echo '' >> "conftest.nl"
4397 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4398 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4399 as_fn_arith $ac_count + 1 && ac_count=$as_val
4400 if test $ac_count -gt ${ac_path_SED_max-0}; then
4401 # Best one so far, save it but keep looking for a better one
4402 ac_cv_path_SED="$ac_path_SED"
4403 ac_path_SED_max=$ac_count
4405 # 10*(2^10) chars as input seems more than enough
4406 test $ac_count -gt 10 && break
4407 done
4408 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4409 esac
4411 $ac_path_SED_found && break 3
4412 done
4413 done
4414 done
4415 IFS=$as_save_IFS
4416 if test -z "$ac_cv_path_SED"; then
4417 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4419 else
4420 ac_cv_path_SED=$SED
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4425 $as_echo "$ac_cv_path_SED" >&6; }
4426 SED="$ac_cv_path_SED"
4427 rm -f conftest.sed
4429 test -z "$SED" && SED=sed
4430 Xsed="$SED -e 1s/^X//"
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4443 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4444 if test "${ac_cv_path_GREP+set}" = set; then :
4445 $as_echo_n "(cached) " >&6
4446 else
4447 if test -z "$GREP"; then
4448 ac_path_GREP_found=false
4449 # Loop through the user's path and test for each of PROGNAME-LIST
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4453 IFS=$as_save_IFS
4454 test -z "$as_dir" && as_dir=.
4455 for ac_prog in grep ggrep; do
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4458 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4459 # Check for GNU ac_path_GREP and select it if it is found.
4460 # Check for GNU $ac_path_GREP
4461 case `"$ac_path_GREP" --version 2>&1` in
4462 *GNU*)
4463 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4465 ac_count=0
4466 $as_echo_n 0123456789 >"conftest.in"
4467 while :
4469 cat "conftest.in" "conftest.in" >"conftest.tmp"
4470 mv "conftest.tmp" "conftest.in"
4471 cp "conftest.in" "conftest.nl"
4472 $as_echo 'GREP' >> "conftest.nl"
4473 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4474 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4475 as_fn_arith $ac_count + 1 && ac_count=$as_val
4476 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4477 # Best one so far, save it but keep looking for a better one
4478 ac_cv_path_GREP="$ac_path_GREP"
4479 ac_path_GREP_max=$ac_count
4481 # 10*(2^10) chars as input seems more than enough
4482 test $ac_count -gt 10 && break
4483 done
4484 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4485 esac
4487 $ac_path_GREP_found && break 3
4488 done
4489 done
4490 done
4491 IFS=$as_save_IFS
4492 if test -z "$ac_cv_path_GREP"; then
4493 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4495 else
4496 ac_cv_path_GREP=$GREP
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4501 $as_echo "$ac_cv_path_GREP" >&6; }
4502 GREP="$ac_cv_path_GREP"
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4506 $as_echo_n "checking for egrep... " >&6; }
4507 if test "${ac_cv_path_EGREP+set}" = set; then :
4508 $as_echo_n "(cached) " >&6
4509 else
4510 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4511 then ac_cv_path_EGREP="$GREP -E"
4512 else
4513 if test -z "$EGREP"; then
4514 ac_path_EGREP_found=false
4515 # Loop through the user's path and test for each of PROGNAME-LIST
4516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4519 IFS=$as_save_IFS
4520 test -z "$as_dir" && as_dir=.
4521 for ac_prog in egrep; do
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4524 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4525 # Check for GNU ac_path_EGREP and select it if it is found.
4526 # Check for GNU $ac_path_EGREP
4527 case `"$ac_path_EGREP" --version 2>&1` in
4528 *GNU*)
4529 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4531 ac_count=0
4532 $as_echo_n 0123456789 >"conftest.in"
4533 while :
4535 cat "conftest.in" "conftest.in" >"conftest.tmp"
4536 mv "conftest.tmp" "conftest.in"
4537 cp "conftest.in" "conftest.nl"
4538 $as_echo 'EGREP' >> "conftest.nl"
4539 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4540 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4541 as_fn_arith $ac_count + 1 && ac_count=$as_val
4542 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4543 # Best one so far, save it but keep looking for a better one
4544 ac_cv_path_EGREP="$ac_path_EGREP"
4545 ac_path_EGREP_max=$ac_count
4547 # 10*(2^10) chars as input seems more than enough
4548 test $ac_count -gt 10 && break
4549 done
4550 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4551 esac
4553 $ac_path_EGREP_found && break 3
4554 done
4555 done
4556 done
4557 IFS=$as_save_IFS
4558 if test -z "$ac_cv_path_EGREP"; then
4559 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4561 else
4562 ac_cv_path_EGREP=$EGREP
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4568 $as_echo "$ac_cv_path_EGREP" >&6; }
4569 EGREP="$ac_cv_path_EGREP"
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4573 $as_echo_n "checking for fgrep... " >&6; }
4574 if test "${ac_cv_path_FGREP+set}" = set; then :
4575 $as_echo_n "(cached) " >&6
4576 else
4577 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4578 then ac_cv_path_FGREP="$GREP -F"
4579 else
4580 if test -z "$FGREP"; then
4581 ac_path_FGREP_found=false
4582 # Loop through the user's path and test for each of PROGNAME-LIST
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4586 IFS=$as_save_IFS
4587 test -z "$as_dir" && as_dir=.
4588 for ac_prog in fgrep; do
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4591 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4592 # Check for GNU ac_path_FGREP and select it if it is found.
4593 # Check for GNU $ac_path_FGREP
4594 case `"$ac_path_FGREP" --version 2>&1` in
4595 *GNU*)
4596 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4598 ac_count=0
4599 $as_echo_n 0123456789 >"conftest.in"
4600 while :
4602 cat "conftest.in" "conftest.in" >"conftest.tmp"
4603 mv "conftest.tmp" "conftest.in"
4604 cp "conftest.in" "conftest.nl"
4605 $as_echo 'FGREP' >> "conftest.nl"
4606 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4607 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4608 as_fn_arith $ac_count + 1 && ac_count=$as_val
4609 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4610 # Best one so far, save it but keep looking for a better one
4611 ac_cv_path_FGREP="$ac_path_FGREP"
4612 ac_path_FGREP_max=$ac_count
4614 # 10*(2^10) chars as input seems more than enough
4615 test $ac_count -gt 10 && break
4616 done
4617 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4618 esac
4620 $ac_path_FGREP_found && break 3
4621 done
4622 done
4623 done
4624 IFS=$as_save_IFS
4625 if test -z "$ac_cv_path_FGREP"; then
4626 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4628 else
4629 ac_cv_path_FGREP=$FGREP
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4635 $as_echo "$ac_cv_path_FGREP" >&6; }
4636 FGREP="$ac_cv_path_FGREP"
4639 test -z "$GREP" && GREP=grep
4659 # Check whether --with-gnu-ld was given.
4660 if test "${with_gnu_ld+set}" = set; then :
4661 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4662 else
4663 with_gnu_ld=no
4666 ac_prog=ld
4667 if test "$GCC" = yes; then
4668 # Check if gcc -print-prog-name=ld gives a path.
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4670 $as_echo_n "checking for ld used by $CC... " >&6; }
4671 case $host in
4672 *-*-mingw*)
4673 # gcc leaves a trailing carriage return which upsets mingw
4674 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4676 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4677 esac
4678 case $ac_prog in
4679 # Accept absolute paths.
4680 [\\/]* | ?:[\\/]*)
4681 re_direlt='/[^/][^/]*/\.\./'
4682 # Canonicalize the pathname of ld
4683 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4684 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4685 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4686 done
4687 test -z "$LD" && LD="$ac_prog"
4690 # If it fails, then pretend we aren't using GCC.
4691 ac_prog=ld
4694 # If it is relative, then search for the first ld in PATH.
4695 with_gnu_ld=unknown
4697 esac
4698 elif test "$with_gnu_ld" = yes; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4700 $as_echo_n "checking for GNU ld... " >&6; }
4701 else
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4703 $as_echo_n "checking for non-GNU ld... " >&6; }
4705 if test "${lt_cv_path_LD+set}" = set; then :
4706 $as_echo_n "(cached) " >&6
4707 else
4708 if test -z "$LD"; then
4709 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4710 for ac_dir in $PATH; do
4711 IFS="$lt_save_ifs"
4712 test -z "$ac_dir" && ac_dir=.
4713 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4714 lt_cv_path_LD="$ac_dir/$ac_prog"
4715 # Check to see if the program is GNU ld. I'd rather use --version,
4716 # but apparently some variants of GNU ld only accept -v.
4717 # Break only if it was the GNU/non-GNU ld that we prefer.
4718 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4719 *GNU* | *'with BFD'*)
4720 test "$with_gnu_ld" != no && break
4723 test "$with_gnu_ld" != yes && break
4725 esac
4727 done
4728 IFS="$lt_save_ifs"
4729 else
4730 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4734 LD="$lt_cv_path_LD"
4735 if test -n "$LD"; then
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4737 $as_echo "$LD" >&6; }
4738 else
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4740 $as_echo "no" >&6; }
4742 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4744 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4745 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4746 $as_echo_n "(cached) " >&6
4747 else
4748 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4749 case `$LD -v 2>&1 </dev/null` in
4750 *GNU* | *'with BFD'*)
4751 lt_cv_prog_gnu_ld=yes
4754 lt_cv_prog_gnu_ld=no
4756 esac
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4759 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4760 with_gnu_ld=$lt_cv_prog_gnu_ld
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4771 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4772 if test "${lt_cv_path_NM+set}" = set; then :
4773 $as_echo_n "(cached) " >&6
4774 else
4775 if test -n "$NM"; then
4776 # Let the user override the test.
4777 lt_cv_path_NM="$NM"
4778 else
4779 lt_nm_to_check="${ac_tool_prefix}nm"
4780 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4781 lt_nm_to_check="$lt_nm_to_check nm"
4783 for lt_tmp_nm in $lt_nm_to_check; do
4784 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4785 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4786 IFS="$lt_save_ifs"
4787 test -z "$ac_dir" && ac_dir=.
4788 tmp_nm="$ac_dir/$lt_tmp_nm"
4789 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4790 # Check to see if the nm accepts a BSD-compat flag.
4791 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4792 # nm: unknown option "B" ignored
4793 # Tru64's nm complains that /dev/null is an invalid object file
4794 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4795 */dev/null* | *'Invalid file or object type'*)
4796 lt_cv_path_NM="$tmp_nm -B"
4797 break
4800 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4801 */dev/null*)
4802 lt_cv_path_NM="$tmp_nm -p"
4803 break
4806 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4807 continue # so that we can try to find one that supports BSD flags
4809 esac
4811 esac
4813 done
4814 IFS="$lt_save_ifs"
4815 done
4816 : ${lt_cv_path_NM=no}
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4820 $as_echo "$lt_cv_path_NM" >&6; }
4821 if test "$lt_cv_path_NM" != "no"; then
4822 NM="$lt_cv_path_NM"
4823 else
4824 # Didn't find any BSD compatible name lister, look for dumpbin.
4825 if test -n "$ac_tool_prefix"; then
4826 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4828 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4829 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4831 $as_echo_n "checking for $ac_word... " >&6; }
4832 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4833 $as_echo_n "(cached) " >&6
4834 else
4835 if test -n "$DUMPBIN"; then
4836 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4837 else
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4845 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 break 2
4849 done
4850 done
4851 IFS=$as_save_IFS
4855 DUMPBIN=$ac_cv_prog_DUMPBIN
4856 if test -n "$DUMPBIN"; then
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4858 $as_echo "$DUMPBIN" >&6; }
4859 else
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4861 $as_echo "no" >&6; }
4865 test -n "$DUMPBIN" && break
4866 done
4868 if test -z "$DUMPBIN"; then
4869 ac_ct_DUMPBIN=$DUMPBIN
4870 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4872 # Extract the first word of "$ac_prog", so it can be a program name with args.
4873 set dummy $ac_prog; ac_word=$2
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4875 $as_echo_n "checking for $ac_word... " >&6; }
4876 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4877 $as_echo_n "(cached) " >&6
4878 else
4879 if test -n "$ac_ct_DUMPBIN"; then
4880 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4881 else
4882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883 for as_dir in $PATH
4885 IFS=$as_save_IFS
4886 test -z "$as_dir" && as_dir=.
4887 for ac_exec_ext in '' $ac_executable_extensions; do
4888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4889 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 break 2
4893 done
4894 done
4895 IFS=$as_save_IFS
4899 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4900 if test -n "$ac_ct_DUMPBIN"; then
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4902 $as_echo "$ac_ct_DUMPBIN" >&6; }
4903 else
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4905 $as_echo "no" >&6; }
4909 test -n "$ac_ct_DUMPBIN" && break
4910 done
4912 if test "x$ac_ct_DUMPBIN" = x; then
4913 DUMPBIN=":"
4914 else
4915 case $cross_compiling:$ac_tool_warned in
4916 yes:)
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4919 ac_tool_warned=yes ;;
4920 esac
4921 DUMPBIN=$ac_ct_DUMPBIN
4926 if test "$DUMPBIN" != ":"; then
4927 NM="$DUMPBIN"
4930 test -z "$NM" && NM=nm
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4938 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4939 if test "${lt_cv_nm_interface+set}" = set; then :
4940 $as_echo_n "(cached) " >&6
4941 else
4942 lt_cv_nm_interface="BSD nm"
4943 echo "int some_variable = 0;" > conftest.$ac_ext
4944 (eval echo "\"\$as_me:4944: $ac_compile\"" >&5)
4945 (eval "$ac_compile" 2>conftest.err)
4946 cat conftest.err >&5
4947 (eval echo "\"\$as_me:4947: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4948 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4949 cat conftest.err >&5
4950 (eval echo "\"\$as_me:4950: output\"" >&5)
4951 cat conftest.out >&5
4952 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4953 lt_cv_nm_interface="MS dumpbin"
4955 rm -f conftest*
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4958 $as_echo "$lt_cv_nm_interface" >&6; }
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4961 $as_echo_n "checking whether ln -s works... " >&6; }
4962 LN_S=$as_ln_s
4963 if test "$LN_S" = "ln -s"; then
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4965 $as_echo "yes" >&6; }
4966 else
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4968 $as_echo "no, using $LN_S" >&6; }
4971 # find the maximum length of command line arguments
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4973 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4974 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4975 $as_echo_n "(cached) " >&6
4976 else
4978 teststring="ABCD"
4980 case $build_os in
4981 msdosdjgpp*)
4982 # On DJGPP, this test can blow up pretty badly due to problems in libc
4983 # (any single argument exceeding 2000 bytes causes a buffer overrun
4984 # during glob expansion). Even if it were fixed, the result of this
4985 # check would be larger than it should be.
4986 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4989 gnu*)
4990 # Under GNU Hurd, this test is not required because there is
4991 # no limit to the length of command line arguments.
4992 # Libtool will interpret -1 as no limit whatsoever
4993 lt_cv_sys_max_cmd_len=-1;
4996 cygwin* | mingw* | cegcc*)
4997 # On Win9x/ME, this test blows up -- it succeeds, but takes
4998 # about 5 minutes as the teststring grows exponentially.
4999 # Worse, since 9x/ME are not pre-emptively multitasking,
5000 # you end up with a "frozen" computer, even though with patience
5001 # the test eventually succeeds (with a max line length of 256k).
5002 # Instead, let's just punt: use the minimum linelength reported by
5003 # all of the supported platforms: 8192 (on NT/2K/XP).
5004 lt_cv_sys_max_cmd_len=8192;
5007 amigaos*)
5008 # On AmigaOS with pdksh, this test takes hours, literally.
5009 # So we just punt and use a minimum line length of 8192.
5010 lt_cv_sys_max_cmd_len=8192;
5013 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5014 # This has been around since 386BSD, at least. Likely further.
5015 if test -x /sbin/sysctl; then
5016 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5017 elif test -x /usr/sbin/sysctl; then
5018 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5019 else
5020 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5022 # And add a safety zone
5023 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5024 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5027 interix*)
5028 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5029 lt_cv_sys_max_cmd_len=196608
5032 osf*)
5033 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5034 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5035 # nice to cause kernel panics so lets avoid the loop below.
5036 # First set a reasonable default.
5037 lt_cv_sys_max_cmd_len=16384
5039 if test -x /sbin/sysconfig; then
5040 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5041 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5042 esac
5045 sco3.2v5*)
5046 lt_cv_sys_max_cmd_len=102400
5048 sysv5* | sco5v6* | sysv4.2uw2*)
5049 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5050 if test -n "$kargmax"; then
5051 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5052 else
5053 lt_cv_sys_max_cmd_len=32768
5057 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5058 if test -n "$lt_cv_sys_max_cmd_len"; then
5059 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5060 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5061 else
5062 # Make teststring a little bigger before we do anything with it.
5063 # a 1K string should be a reasonable start.
5064 for i in 1 2 3 4 5 6 7 8 ; do
5065 teststring=$teststring$teststring
5066 done
5067 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5068 # If test is not a shell built-in, we'll probably end up computing a
5069 # maximum length that is only half of the actual maximum length, but
5070 # we can't tell.
5071 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5072 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5073 test $i != 17 # 1/2 MB should be enough
5075 i=`expr $i + 1`
5076 teststring=$teststring$teststring
5077 done
5078 # Only check the string length outside the loop.
5079 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5080 teststring=
5081 # Add a significant safety factor because C++ compilers can tack on
5082 # massive amounts of additional arguments before passing them to the
5083 # linker. It appears as though 1/2 is a usable value.
5084 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5087 esac
5091 if test -n $lt_cv_sys_max_cmd_len ; then
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5093 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5094 else
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5096 $as_echo "none" >&6; }
5098 max_cmd_len=$lt_cv_sys_max_cmd_len
5105 : ${CP="cp -f"}
5106 : ${MV="mv -f"}
5107 : ${RM="rm -f"}
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5110 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5111 # Try some XSI features
5112 xsi_shell=no
5113 ( _lt_dummy="a/b/c"
5114 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5115 = c,a/b,, \
5116 && eval 'test $(( 1 + 1 )) -eq 2 \
5117 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5118 && xsi_shell=yes
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5120 $as_echo "$xsi_shell" >&6; }
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5124 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5125 lt_shell_append=no
5126 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5127 >/dev/null 2>&1 \
5128 && lt_shell_append=yes
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5130 $as_echo "$lt_shell_append" >&6; }
5133 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5134 lt_unset=unset
5135 else
5136 lt_unset=false
5143 # test EBCDIC or ASCII
5144 case `echo X|tr X '\101'` in
5145 A) # ASCII based system
5146 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5147 lt_SP2NL='tr \040 \012'
5148 lt_NL2SP='tr \015\012 \040\040'
5150 *) # EBCDIC based system
5151 lt_SP2NL='tr \100 \n'
5152 lt_NL2SP='tr \r\n \100\100'
5154 esac
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5165 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5166 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5167 $as_echo_n "(cached) " >&6
5168 else
5169 lt_cv_ld_reload_flag='-r'
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5172 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5173 reload_flag=$lt_cv_ld_reload_flag
5174 case $reload_flag in
5175 "" | " "*) ;;
5176 *) reload_flag=" $reload_flag" ;;
5177 esac
5178 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5179 case $host_os in
5180 darwin*)
5181 if test "$GCC" = yes; then
5182 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5183 else
5184 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5187 esac
5197 if test -n "$ac_tool_prefix"; then
5198 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5199 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201 $as_echo_n "checking for $ac_word... " >&6; }
5202 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5203 $as_echo_n "(cached) " >&6
5204 else
5205 if test -n "$OBJDUMP"; then
5206 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5207 else
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5215 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 break 2
5219 done
5220 done
5221 IFS=$as_save_IFS
5225 OBJDUMP=$ac_cv_prog_OBJDUMP
5226 if test -n "$OBJDUMP"; then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5228 $as_echo "$OBJDUMP" >&6; }
5229 else
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5236 if test -z "$ac_cv_prog_OBJDUMP"; then
5237 ac_ct_OBJDUMP=$OBJDUMP
5238 # Extract the first word of "objdump", so it can be a program name with args.
5239 set dummy objdump; ac_word=$2
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5241 $as_echo_n "checking for $ac_word... " >&6; }
5242 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5243 $as_echo_n "(cached) " >&6
5244 else
5245 if test -n "$ac_ct_OBJDUMP"; then
5246 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5247 else
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 for as_dir in $PATH
5251 IFS=$as_save_IFS
5252 test -z "$as_dir" && as_dir=.
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5255 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 break 2
5259 done
5260 done
5261 IFS=$as_save_IFS
5265 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5266 if test -n "$ac_ct_OBJDUMP"; then
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5268 $as_echo "$ac_ct_OBJDUMP" >&6; }
5269 else
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5274 if test "x$ac_ct_OBJDUMP" = x; then
5275 OBJDUMP="false"
5276 else
5277 case $cross_compiling:$ac_tool_warned in
5278 yes:)
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5281 ac_tool_warned=yes ;;
5282 esac
5283 OBJDUMP=$ac_ct_OBJDUMP
5285 else
5286 OBJDUMP="$ac_cv_prog_OBJDUMP"
5289 test -z "$OBJDUMP" && OBJDUMP=objdump
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5300 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5301 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5302 $as_echo_n "(cached) " >&6
5303 else
5304 lt_cv_file_magic_cmd='$MAGIC_CMD'
5305 lt_cv_file_magic_test_file=
5306 lt_cv_deplibs_check_method='unknown'
5307 # Need to set the preceding variable on all platforms that support
5308 # interlibrary dependencies.
5309 # 'none' -- dependencies not supported.
5310 # `unknown' -- same as none, but documents that we really don't know.
5311 # 'pass_all' -- all dependencies passed with no checks.
5312 # 'test_compile' -- check by making test program.
5313 # 'file_magic [[regex]]' -- check by looking for files in library path
5314 # which responds to the $file_magic_cmd with a given extended regex.
5315 # If you have `file' or equivalent on your system and you're not sure
5316 # whether `pass_all' will *always* work, you probably want this one.
5318 case $host_os in
5319 aix[4-9]*)
5320 lt_cv_deplibs_check_method=pass_all
5323 beos*)
5324 lt_cv_deplibs_check_method=pass_all
5327 bsdi[45]*)
5328 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5329 lt_cv_file_magic_cmd='/usr/bin/file -L'
5330 lt_cv_file_magic_test_file=/shlib/libc.so
5333 cygwin*)
5334 # func_win32_libid is a shell function defined in ltmain.sh
5335 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5336 lt_cv_file_magic_cmd='func_win32_libid'
5339 mingw* | pw32*)
5340 # Base MSYS/MinGW do not provide the 'file' command needed by
5341 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5342 # unless we find 'file', for example because we are cross-compiling.
5343 if ( file / ) >/dev/null 2>&1; then
5344 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5345 lt_cv_file_magic_cmd='func_win32_libid'
5346 else
5347 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5348 lt_cv_file_magic_cmd='$OBJDUMP -f'
5352 cegcc)
5353 # use the weaker test based on 'objdump'. See mingw*.
5354 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5355 lt_cv_file_magic_cmd='$OBJDUMP -f'
5358 darwin* | rhapsody*)
5359 lt_cv_deplibs_check_method=pass_all
5362 freebsd* | dragonfly*)
5363 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5364 case $host_cpu in
5365 i*86 )
5366 # Not sure whether the presence of OpenBSD here was a mistake.
5367 # Let's accept both of them until this is cleared up.
5368 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5369 lt_cv_file_magic_cmd=/usr/bin/file
5370 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5372 esac
5373 else
5374 lt_cv_deplibs_check_method=pass_all
5378 gnu*)
5379 lt_cv_deplibs_check_method=pass_all
5382 hpux10.20* | hpux11*)
5383 lt_cv_file_magic_cmd=/usr/bin/file
5384 case $host_cpu in
5385 ia64*)
5386 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5387 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5389 hppa*64*)
5390 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]'
5391 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5394 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5395 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5397 esac
5400 interix[3-9]*)
5401 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5402 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5405 irix5* | irix6* | nonstopux*)
5406 case $LD in
5407 *-32|*"-32 ") libmagic=32-bit;;
5408 *-n32|*"-n32 ") libmagic=N32;;
5409 *-64|*"-64 ") libmagic=64-bit;;
5410 *) libmagic=never-match;;
5411 esac
5412 lt_cv_deplibs_check_method=pass_all
5415 # This must be Linux ELF.
5416 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5417 lt_cv_deplibs_check_method=pass_all
5420 netbsd* | netbsdelf*-gnu)
5421 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5422 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5423 else
5424 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5428 newos6*)
5429 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5430 lt_cv_file_magic_cmd=/usr/bin/file
5431 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5434 *nto* | *qnx*)
5435 lt_cv_deplibs_check_method=pass_all
5438 openbsd*)
5439 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5440 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5441 else
5442 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5446 osf3* | osf4* | osf5*)
5447 lt_cv_deplibs_check_method=pass_all
5450 rdos*)
5451 lt_cv_deplibs_check_method=pass_all
5454 solaris*)
5455 lt_cv_deplibs_check_method=pass_all
5458 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5459 lt_cv_deplibs_check_method=pass_all
5462 sysv4 | sysv4.3*)
5463 case $host_vendor in
5464 motorola)
5465 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]'
5466 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5468 ncr)
5469 lt_cv_deplibs_check_method=pass_all
5471 sequent)
5472 lt_cv_file_magic_cmd='/bin/file'
5473 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5475 sni)
5476 lt_cv_file_magic_cmd='/bin/file'
5477 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5478 lt_cv_file_magic_test_file=/lib/libc.so
5480 siemens)
5481 lt_cv_deplibs_check_method=pass_all
5484 lt_cv_deplibs_check_method=pass_all
5486 esac
5489 tpf*)
5490 lt_cv_deplibs_check_method=pass_all
5492 esac
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5496 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5497 file_magic_cmd=$lt_cv_file_magic_cmd
5498 deplibs_check_method=$lt_cv_deplibs_check_method
5499 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5512 if test -n "$ac_tool_prefix"; then
5513 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5514 set dummy ${ac_tool_prefix}ar; ac_word=$2
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5516 $as_echo_n "checking for $ac_word... " >&6; }
5517 if test "${ac_cv_prog_AR+set}" = set; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 if test -n "$AR"; then
5521 ac_cv_prog_AR="$AR" # Let the user override the test.
5522 else
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 for as_dir in $PATH
5526 IFS=$as_save_IFS
5527 test -z "$as_dir" && as_dir=.
5528 for ac_exec_ext in '' $ac_executable_extensions; do
5529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5530 ac_cv_prog_AR="${ac_tool_prefix}ar"
5531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5532 break 2
5534 done
5535 done
5536 IFS=$as_save_IFS
5540 AR=$ac_cv_prog_AR
5541 if test -n "$AR"; then
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5543 $as_echo "$AR" >&6; }
5544 else
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546 $as_echo "no" >&6; }
5551 if test -z "$ac_cv_prog_AR"; then
5552 ac_ct_AR=$AR
5553 # Extract the first word of "ar", so it can be a program name with args.
5554 set dummy ar; ac_word=$2
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5556 $as_echo_n "checking for $ac_word... " >&6; }
5557 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5558 $as_echo_n "(cached) " >&6
5559 else
5560 if test -n "$ac_ct_AR"; then
5561 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5562 else
5563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564 for as_dir in $PATH
5566 IFS=$as_save_IFS
5567 test -z "$as_dir" && as_dir=.
5568 for ac_exec_ext in '' $ac_executable_extensions; do
5569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5570 ac_cv_prog_ac_ct_AR="ar"
5571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5572 break 2
5574 done
5575 done
5576 IFS=$as_save_IFS
5580 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5581 if test -n "$ac_ct_AR"; then
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5583 $as_echo "$ac_ct_AR" >&6; }
5584 else
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586 $as_echo "no" >&6; }
5589 if test "x$ac_ct_AR" = x; then
5590 AR="false"
5591 else
5592 case $cross_compiling:$ac_tool_warned in
5593 yes:)
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5596 ac_tool_warned=yes ;;
5597 esac
5598 AR=$ac_ct_AR
5600 else
5601 AR="$ac_cv_prog_AR"
5604 test -z "$AR" && AR=ar
5605 test -z "$AR_FLAGS" && AR_FLAGS=cru
5617 if test -n "$ac_tool_prefix"; then
5618 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5619 set dummy ${ac_tool_prefix}strip; ac_word=$2
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621 $as_echo_n "checking for $ac_word... " >&6; }
5622 if test "${ac_cv_prog_STRIP+set}" = set; then :
5623 $as_echo_n "(cached) " >&6
5624 else
5625 if test -n "$STRIP"; then
5626 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5627 else
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 for as_dir in $PATH
5631 IFS=$as_save_IFS
5632 test -z "$as_dir" && as_dir=.
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5635 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5637 break 2
5639 done
5640 done
5641 IFS=$as_save_IFS
5645 STRIP=$ac_cv_prog_STRIP
5646 if test -n "$STRIP"; then
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5648 $as_echo "$STRIP" >&6; }
5649 else
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 $as_echo "no" >&6; }
5656 if test -z "$ac_cv_prog_STRIP"; then
5657 ac_ct_STRIP=$STRIP
5658 # Extract the first word of "strip", so it can be a program name with args.
5659 set dummy strip; ac_word=$2
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5661 $as_echo_n "checking for $ac_word... " >&6; }
5662 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5663 $as_echo_n "(cached) " >&6
5664 else
5665 if test -n "$ac_ct_STRIP"; then
5666 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5667 else
5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669 for as_dir in $PATH
5671 IFS=$as_save_IFS
5672 test -z "$as_dir" && as_dir=.
5673 for ac_exec_ext in '' $ac_executable_extensions; do
5674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5675 ac_cv_prog_ac_ct_STRIP="strip"
5676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5677 break 2
5679 done
5680 done
5681 IFS=$as_save_IFS
5685 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5686 if test -n "$ac_ct_STRIP"; then
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5688 $as_echo "$ac_ct_STRIP" >&6; }
5689 else
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691 $as_echo "no" >&6; }
5694 if test "x$ac_ct_STRIP" = x; then
5695 STRIP=":"
5696 else
5697 case $cross_compiling:$ac_tool_warned in
5698 yes:)
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5701 ac_tool_warned=yes ;;
5702 esac
5703 STRIP=$ac_ct_STRIP
5705 else
5706 STRIP="$ac_cv_prog_STRIP"
5709 test -z "$STRIP" && STRIP=:
5716 if test -n "$ac_tool_prefix"; then
5717 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5718 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5720 $as_echo_n "checking for $ac_word... " >&6; }
5721 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5722 $as_echo_n "(cached) " >&6
5723 else
5724 if test -n "$RANLIB"; then
5725 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5726 else
5727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 for as_dir in $PATH
5730 IFS=$as_save_IFS
5731 test -z "$as_dir" && as_dir=.
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5734 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 break 2
5738 done
5739 done
5740 IFS=$as_save_IFS
5744 RANLIB=$ac_cv_prog_RANLIB
5745 if test -n "$RANLIB"; then
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5747 $as_echo "$RANLIB" >&6; }
5748 else
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750 $as_echo "no" >&6; }
5755 if test -z "$ac_cv_prog_RANLIB"; then
5756 ac_ct_RANLIB=$RANLIB
5757 # Extract the first word of "ranlib", so it can be a program name with args.
5758 set dummy ranlib; ac_word=$2
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5760 $as_echo_n "checking for $ac_word... " >&6; }
5761 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5762 $as_echo_n "(cached) " >&6
5763 else
5764 if test -n "$ac_ct_RANLIB"; then
5765 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5766 else
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 for as_dir in $PATH
5770 IFS=$as_save_IFS
5771 test -z "$as_dir" && as_dir=.
5772 for ac_exec_ext in '' $ac_executable_extensions; do
5773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5774 ac_cv_prog_ac_ct_RANLIB="ranlib"
5775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5776 break 2
5778 done
5779 done
5780 IFS=$as_save_IFS
5784 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5785 if test -n "$ac_ct_RANLIB"; then
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5787 $as_echo "$ac_ct_RANLIB" >&6; }
5788 else
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5790 $as_echo "no" >&6; }
5793 if test "x$ac_ct_RANLIB" = x; then
5794 RANLIB=":"
5795 else
5796 case $cross_compiling:$ac_tool_warned in
5797 yes:)
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5800 ac_tool_warned=yes ;;
5801 esac
5802 RANLIB=$ac_ct_RANLIB
5804 else
5805 RANLIB="$ac_cv_prog_RANLIB"
5808 test -z "$RANLIB" && RANLIB=:
5815 # Determine commands to create old-style static archives.
5816 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5817 old_postinstall_cmds='chmod 644 $oldlib'
5818 old_postuninstall_cmds=
5820 if test -n "$RANLIB"; then
5821 case $host_os in
5822 openbsd*)
5823 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5826 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5828 esac
5829 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5865 # If no C compiler was specified, use CC.
5866 LTCC=${LTCC-"$CC"}
5868 # If no C compiler flags were specified, use CFLAGS.
5869 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5871 # Allow CC to be a program name with arguments.
5872 compiler=$CC
5875 # Check for command to grab the raw symbol name followed by C symbol from nm.
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5877 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5878 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5879 $as_echo_n "(cached) " >&6
5880 else
5882 # These are sane defaults that work on at least a few old systems.
5883 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5885 # Character class describing NM global symbol codes.
5886 symcode='[BCDEGRST]'
5888 # Regexp to match symbols that can be accessed directly from C.
5889 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5891 # Define system-specific variables.
5892 case $host_os in
5893 aix*)
5894 symcode='[BCDT]'
5896 cygwin* | mingw* | pw32* | cegcc*)
5897 symcode='[ABCDGISTW]'
5899 hpux*)
5900 if test "$host_cpu" = ia64; then
5901 symcode='[ABCDEGRST]'
5904 irix* | nonstopux*)
5905 symcode='[BCDEGRST]'
5907 osf*)
5908 symcode='[BCDEGQRST]'
5910 solaris*)
5911 symcode='[BDRT]'
5913 sco3.2v5*)
5914 symcode='[DT]'
5916 sysv4.2uw2*)
5917 symcode='[DT]'
5919 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5920 symcode='[ABDT]'
5922 sysv4)
5923 symcode='[DFNSTU]'
5925 esac
5927 # If we're using GNU nm, then use its standard symbol codes.
5928 case `$NM -V 2>&1` in
5929 *GNU* | *'with BFD'*)
5930 symcode='[ABCDGIRSTW]' ;;
5931 esac
5933 # Transform an extracted symbol line into a proper C declaration.
5934 # Some systems (esp. on ia64) link data and code symbols differently,
5935 # so use this general approach.
5936 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5938 # Transform an extracted symbol line into symbol name and symbol address
5939 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5940 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'"
5942 # Handle CRLF in mingw tool chain
5943 opt_cr=
5944 case $build_os in
5945 mingw*)
5946 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5948 esac
5950 # Try without a prefix underscore, then with it.
5951 for ac_symprfx in "" "_"; do
5953 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5954 symxfrm="\\1 $ac_symprfx\\2 \\2"
5956 # Write the raw and C identifiers.
5957 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5958 # Fake it for dumpbin and say T for any non-static function
5959 # and D for any global variable.
5960 # Also find C++ and __fastcall symbols from MSVC++,
5961 # which start with @ or ?.
5962 lt_cv_sys_global_symbol_pipe="$AWK '"\
5963 " {last_section=section; section=\$ 3};"\
5964 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5965 " \$ 0!~/External *\|/{next};"\
5966 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5967 " {if(hide[section]) next};"\
5968 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5969 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5970 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5971 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5972 " ' prfx=^$ac_symprfx"
5973 else
5974 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5977 # Check to see that the pipe works correctly.
5978 pipe_works=no
5980 rm -f conftest*
5981 cat > conftest.$ac_ext <<_LT_EOF
5982 #ifdef __cplusplus
5983 extern "C" {
5984 #endif
5985 char nm_test_var;
5986 void nm_test_func(void);
5987 void nm_test_func(void){}
5988 #ifdef __cplusplus
5990 #endif
5991 int main(){nm_test_var='a';nm_test_func();return(0);}
5992 _LT_EOF
5994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5995 (eval $ac_compile) 2>&5
5996 ac_status=$?
5997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5998 test $ac_status = 0; }; then
5999 # Now try to grab the symbols.
6000 nlist=conftest.nm
6001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6002 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6003 ac_status=$?
6004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6005 test $ac_status = 0; } && test -s "$nlist"; then
6006 # Try sorting and uniquifying the output.
6007 if sort "$nlist" | uniq > "$nlist"T; then
6008 mv -f "$nlist"T "$nlist"
6009 else
6010 rm -f "$nlist"T
6013 # Make sure that we snagged all the symbols we need.
6014 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6015 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6016 cat <<_LT_EOF > conftest.$ac_ext
6017 #ifdef __cplusplus
6018 extern "C" {
6019 #endif
6021 _LT_EOF
6022 # Now generate the symbol file.
6023 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6025 cat <<_LT_EOF >> conftest.$ac_ext
6027 /* The mapping between symbol names and symbols. */
6028 const struct {
6029 const char *name;
6030 void *address;
6032 lt__PROGRAM__LTX_preloaded_symbols[] =
6034 { "@PROGRAM@", (void *) 0 },
6035 _LT_EOF
6036 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6037 cat <<\_LT_EOF >> conftest.$ac_ext
6038 {0, (void *) 0}
6041 /* This works around a problem in FreeBSD linker */
6042 #ifdef FREEBSD_WORKAROUND
6043 static const void *lt_preloaded_setup() {
6044 return lt__PROGRAM__LTX_preloaded_symbols;
6046 #endif
6048 #ifdef __cplusplus
6050 #endif
6051 _LT_EOF
6052 # Now try linking the two files.
6053 mv conftest.$ac_objext conftstm.$ac_objext
6054 lt_save_LIBS="$LIBS"
6055 lt_save_CFLAGS="$CFLAGS"
6056 LIBS="conftstm.$ac_objext"
6057 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6058 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6059 (eval $ac_link) 2>&5
6060 ac_status=$?
6061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6062 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6063 pipe_works=yes
6065 LIBS="$lt_save_LIBS"
6066 CFLAGS="$lt_save_CFLAGS"
6067 else
6068 echo "cannot find nm_test_func in $nlist" >&5
6070 else
6071 echo "cannot find nm_test_var in $nlist" >&5
6073 else
6074 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6076 else
6077 echo "$progname: failed program was:" >&5
6078 cat conftest.$ac_ext >&5
6080 rm -rf conftest* conftst*
6082 # Do not use the global_symbol_pipe unless it works.
6083 if test "$pipe_works" = yes; then
6084 break
6085 else
6086 lt_cv_sys_global_symbol_pipe=
6088 done
6092 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6093 lt_cv_sys_global_symbol_to_cdecl=
6095 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6097 $as_echo "failed" >&6; }
6098 else
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6100 $as_echo "ok" >&6; }
6125 # Check whether --enable-libtool-lock was given.
6126 if test "${enable_libtool_lock+set}" = set; then :
6127 enableval=$enable_libtool_lock;
6130 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6132 # Some flags need to be propagated to the compiler or linker for good
6133 # libtool support.
6134 case $host in
6135 ia64-*-hpux*)
6136 # Find out which ABI we are using.
6137 echo 'int i;' > conftest.$ac_ext
6138 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6139 (eval $ac_compile) 2>&5
6140 ac_status=$?
6141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6142 test $ac_status = 0; }; then
6143 case `/usr/bin/file conftest.$ac_objext` in
6144 *ELF-32*)
6145 HPUX_IA64_MODE="32"
6147 *ELF-64*)
6148 HPUX_IA64_MODE="64"
6150 esac
6152 rm -rf conftest*
6154 *-*-irix6*)
6155 # Find out which ABI we are using.
6156 echo '#line 6156 "configure"' > conftest.$ac_ext
6157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6158 (eval $ac_compile) 2>&5
6159 ac_status=$?
6160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6161 test $ac_status = 0; }; then
6162 if test "$lt_cv_prog_gnu_ld" = yes; then
6163 case `/usr/bin/file conftest.$ac_objext` in
6164 *32-bit*)
6165 LD="${LD-ld} -melf32bsmip"
6167 *N32*)
6168 LD="${LD-ld} -melf32bmipn32"
6170 *64-bit*)
6171 LD="${LD-ld} -melf64bmip"
6173 esac
6174 else
6175 case `/usr/bin/file conftest.$ac_objext` in
6176 *32-bit*)
6177 LD="${LD-ld} -32"
6179 *N32*)
6180 LD="${LD-ld} -n32"
6182 *64-bit*)
6183 LD="${LD-ld} -64"
6185 esac
6188 rm -rf conftest*
6191 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6192 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6193 # Find out which ABI we are using.
6194 echo 'int i;' > conftest.$ac_ext
6195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6196 (eval $ac_compile) 2>&5
6197 ac_status=$?
6198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6199 test $ac_status = 0; }; then
6200 case `/usr/bin/file conftest.o` in
6201 *32-bit*)
6202 case $host in
6203 x86_64-*kfreebsd*-gnu)
6204 LD="${LD-ld} -m elf_i386_fbsd"
6206 x86_64-*linux*)
6207 LD="${LD-ld} -m elf_i386"
6209 ppc64-*linux*|powerpc64-*linux*)
6210 LD="${LD-ld} -m elf32ppclinux"
6212 s390x-*linux*)
6213 LD="${LD-ld} -m elf_s390"
6215 sparc64-*linux*)
6216 LD="${LD-ld} -m elf32_sparc"
6218 esac
6220 *64-bit*)
6221 case $host in
6222 x86_64-*kfreebsd*-gnu)
6223 LD="${LD-ld} -m elf_x86_64_fbsd"
6225 x86_64-*linux*)
6226 LD="${LD-ld} -m elf_x86_64"
6228 ppc*-*linux*|powerpc*-*linux*)
6229 LD="${LD-ld} -m elf64ppc"
6231 s390*-*linux*|s390*-*tpf*)
6232 LD="${LD-ld} -m elf64_s390"
6234 sparc*-*linux*)
6235 LD="${LD-ld} -m elf64_sparc"
6237 esac
6239 esac
6241 rm -rf conftest*
6244 *-*-sco3.2v5*)
6245 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6246 SAVE_CFLAGS="$CFLAGS"
6247 CFLAGS="$CFLAGS -belf"
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6249 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6250 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6251 $as_echo_n "(cached) " >&6
6252 else
6253 ac_ext=c
6254 ac_cpp='$CPP $CPPFLAGS'
6255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h. */
6263 main ()
6267 return 0;
6269 _ACEOF
6270 if ac_fn_c_try_link "$LINENO"; then :
6271 lt_cv_cc_needs_belf=yes
6272 else
6273 lt_cv_cc_needs_belf=no
6275 rm -f core conftest.err conftest.$ac_objext \
6276 conftest$ac_exeext conftest.$ac_ext
6277 ac_ext=c
6278 ac_cpp='$CPP $CPPFLAGS'
6279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6285 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6286 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6287 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6288 CFLAGS="$SAVE_CFLAGS"
6291 sparc*-*solaris*)
6292 # Find out which ABI we are using.
6293 echo 'int i;' > conftest.$ac_ext
6294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6295 (eval $ac_compile) 2>&5
6296 ac_status=$?
6297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6298 test $ac_status = 0; }; then
6299 case `/usr/bin/file conftest.o` in
6300 *64-bit*)
6301 case $lt_cv_prog_gnu_ld in
6302 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6304 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6305 LD="${LD-ld} -64"
6308 esac
6310 esac
6312 rm -rf conftest*
6314 esac
6316 need_locks="$enable_libtool_lock"
6319 case $host_os in
6320 rhapsody* | darwin*)
6321 if test -n "$ac_tool_prefix"; then
6322 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6323 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6325 $as_echo_n "checking for $ac_word... " >&6; }
6326 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6327 $as_echo_n "(cached) " >&6
6328 else
6329 if test -n "$DSYMUTIL"; then
6330 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6331 else
6332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333 for as_dir in $PATH
6335 IFS=$as_save_IFS
6336 test -z "$as_dir" && as_dir=.
6337 for ac_exec_ext in '' $ac_executable_extensions; do
6338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6339 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6341 break 2
6343 done
6344 done
6345 IFS=$as_save_IFS
6349 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6350 if test -n "$DSYMUTIL"; then
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6352 $as_echo "$DSYMUTIL" >&6; }
6353 else
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355 $as_echo "no" >&6; }
6360 if test -z "$ac_cv_prog_DSYMUTIL"; then
6361 ac_ct_DSYMUTIL=$DSYMUTIL
6362 # Extract the first word of "dsymutil", so it can be a program name with args.
6363 set dummy dsymutil; ac_word=$2
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6365 $as_echo_n "checking for $ac_word... " >&6; }
6366 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6367 $as_echo_n "(cached) " >&6
6368 else
6369 if test -n "$ac_ct_DSYMUTIL"; then
6370 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6371 else
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 for as_dir in $PATH
6375 IFS=$as_save_IFS
6376 test -z "$as_dir" && as_dir=.
6377 for ac_exec_ext in '' $ac_executable_extensions; do
6378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6379 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6381 break 2
6383 done
6384 done
6385 IFS=$as_save_IFS
6389 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6390 if test -n "$ac_ct_DSYMUTIL"; then
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6392 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6393 else
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6395 $as_echo "no" >&6; }
6398 if test "x$ac_ct_DSYMUTIL" = x; then
6399 DSYMUTIL=":"
6400 else
6401 case $cross_compiling:$ac_tool_warned in
6402 yes:)
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6405 ac_tool_warned=yes ;;
6406 esac
6407 DSYMUTIL=$ac_ct_DSYMUTIL
6409 else
6410 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6413 if test -n "$ac_tool_prefix"; then
6414 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6415 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6417 $as_echo_n "checking for $ac_word... " >&6; }
6418 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6419 $as_echo_n "(cached) " >&6
6420 else
6421 if test -n "$NMEDIT"; then
6422 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6423 else
6424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 for as_dir in $PATH
6427 IFS=$as_save_IFS
6428 test -z "$as_dir" && as_dir=.
6429 for ac_exec_ext in '' $ac_executable_extensions; do
6430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6431 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433 break 2
6435 done
6436 done
6437 IFS=$as_save_IFS
6441 NMEDIT=$ac_cv_prog_NMEDIT
6442 if test -n "$NMEDIT"; then
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6444 $as_echo "$NMEDIT" >&6; }
6445 else
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447 $as_echo "no" >&6; }
6452 if test -z "$ac_cv_prog_NMEDIT"; then
6453 ac_ct_NMEDIT=$NMEDIT
6454 # Extract the first word of "nmedit", so it can be a program name with args.
6455 set dummy nmedit; ac_word=$2
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6459 $as_echo_n "(cached) " >&6
6460 else
6461 if test -n "$ac_ct_NMEDIT"; then
6462 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6463 else
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH
6467 IFS=$as_save_IFS
6468 test -z "$as_dir" && as_dir=.
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6471 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6473 break 2
6475 done
6476 done
6477 IFS=$as_save_IFS
6481 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6482 if test -n "$ac_ct_NMEDIT"; then
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6484 $as_echo "$ac_ct_NMEDIT" >&6; }
6485 else
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487 $as_echo "no" >&6; }
6490 if test "x$ac_ct_NMEDIT" = x; then
6491 NMEDIT=":"
6492 else
6493 case $cross_compiling:$ac_tool_warned in
6494 yes:)
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6497 ac_tool_warned=yes ;;
6498 esac
6499 NMEDIT=$ac_ct_NMEDIT
6501 else
6502 NMEDIT="$ac_cv_prog_NMEDIT"
6505 if test -n "$ac_tool_prefix"; then
6506 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6507 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6509 $as_echo_n "checking for $ac_word... " >&6; }
6510 if test "${ac_cv_prog_LIPO+set}" = set; then :
6511 $as_echo_n "(cached) " >&6
6512 else
6513 if test -n "$LIPO"; then
6514 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6515 else
6516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517 for as_dir in $PATH
6519 IFS=$as_save_IFS
6520 test -z "$as_dir" && as_dir=.
6521 for ac_exec_ext in '' $ac_executable_extensions; do
6522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6523 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6525 break 2
6527 done
6528 done
6529 IFS=$as_save_IFS
6533 LIPO=$ac_cv_prog_LIPO
6534 if test -n "$LIPO"; then
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6536 $as_echo "$LIPO" >&6; }
6537 else
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6539 $as_echo "no" >&6; }
6544 if test -z "$ac_cv_prog_LIPO"; then
6545 ac_ct_LIPO=$LIPO
6546 # Extract the first word of "lipo", so it can be a program name with args.
6547 set dummy lipo; ac_word=$2
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6549 $as_echo_n "checking for $ac_word... " >&6; }
6550 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6551 $as_echo_n "(cached) " >&6
6552 else
6553 if test -n "$ac_ct_LIPO"; then
6554 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6555 else
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 for as_dir in $PATH
6559 IFS=$as_save_IFS
6560 test -z "$as_dir" && as_dir=.
6561 for ac_exec_ext in '' $ac_executable_extensions; do
6562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6563 ac_cv_prog_ac_ct_LIPO="lipo"
6564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6565 break 2
6567 done
6568 done
6569 IFS=$as_save_IFS
6573 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6574 if test -n "$ac_ct_LIPO"; then
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6576 $as_echo "$ac_ct_LIPO" >&6; }
6577 else
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579 $as_echo "no" >&6; }
6582 if test "x$ac_ct_LIPO" = x; then
6583 LIPO=":"
6584 else
6585 case $cross_compiling:$ac_tool_warned in
6586 yes:)
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6589 ac_tool_warned=yes ;;
6590 esac
6591 LIPO=$ac_ct_LIPO
6593 else
6594 LIPO="$ac_cv_prog_LIPO"
6597 if test -n "$ac_tool_prefix"; then
6598 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6599 set dummy ${ac_tool_prefix}otool; ac_word=$2
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6601 $as_echo_n "checking for $ac_word... " >&6; }
6602 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6603 $as_echo_n "(cached) " >&6
6604 else
6605 if test -n "$OTOOL"; then
6606 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6607 else
6608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609 for as_dir in $PATH
6611 IFS=$as_save_IFS
6612 test -z "$as_dir" && as_dir=.
6613 for ac_exec_ext in '' $ac_executable_extensions; do
6614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6615 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6617 break 2
6619 done
6620 done
6621 IFS=$as_save_IFS
6625 OTOOL=$ac_cv_prog_OTOOL
6626 if test -n "$OTOOL"; then
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6628 $as_echo "$OTOOL" >&6; }
6629 else
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6631 $as_echo "no" >&6; }
6636 if test -z "$ac_cv_prog_OTOOL"; then
6637 ac_ct_OTOOL=$OTOOL
6638 # Extract the first word of "otool", so it can be a program name with args.
6639 set dummy otool; ac_word=$2
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6641 $as_echo_n "checking for $ac_word... " >&6; }
6642 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6643 $as_echo_n "(cached) " >&6
6644 else
6645 if test -n "$ac_ct_OTOOL"; then
6646 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6647 else
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 for as_dir in $PATH
6651 IFS=$as_save_IFS
6652 test -z "$as_dir" && as_dir=.
6653 for ac_exec_ext in '' $ac_executable_extensions; do
6654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6655 ac_cv_prog_ac_ct_OTOOL="otool"
6656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6657 break 2
6659 done
6660 done
6661 IFS=$as_save_IFS
6665 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6666 if test -n "$ac_ct_OTOOL"; then
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6668 $as_echo "$ac_ct_OTOOL" >&6; }
6669 else
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6671 $as_echo "no" >&6; }
6674 if test "x$ac_ct_OTOOL" = x; then
6675 OTOOL=":"
6676 else
6677 case $cross_compiling:$ac_tool_warned in
6678 yes:)
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6681 ac_tool_warned=yes ;;
6682 esac
6683 OTOOL=$ac_ct_OTOOL
6685 else
6686 OTOOL="$ac_cv_prog_OTOOL"
6689 if test -n "$ac_tool_prefix"; then
6690 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6691 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6693 $as_echo_n "checking for $ac_word... " >&6; }
6694 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6695 $as_echo_n "(cached) " >&6
6696 else
6697 if test -n "$OTOOL64"; then
6698 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6699 else
6700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701 for as_dir in $PATH
6703 IFS=$as_save_IFS
6704 test -z "$as_dir" && as_dir=.
6705 for ac_exec_ext in '' $ac_executable_extensions; do
6706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6707 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6709 break 2
6711 done
6712 done
6713 IFS=$as_save_IFS
6717 OTOOL64=$ac_cv_prog_OTOOL64
6718 if test -n "$OTOOL64"; then
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6720 $as_echo "$OTOOL64" >&6; }
6721 else
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6723 $as_echo "no" >&6; }
6728 if test -z "$ac_cv_prog_OTOOL64"; then
6729 ac_ct_OTOOL64=$OTOOL64
6730 # Extract the first word of "otool64", so it can be a program name with args.
6731 set dummy otool64; ac_word=$2
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733 $as_echo_n "checking for $ac_word... " >&6; }
6734 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6735 $as_echo_n "(cached) " >&6
6736 else
6737 if test -n "$ac_ct_OTOOL64"; then
6738 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6739 else
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 for as_dir in $PATH
6743 IFS=$as_save_IFS
6744 test -z "$as_dir" && as_dir=.
6745 for ac_exec_ext in '' $ac_executable_extensions; do
6746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747 ac_cv_prog_ac_ct_OTOOL64="otool64"
6748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6749 break 2
6751 done
6752 done
6753 IFS=$as_save_IFS
6757 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6758 if test -n "$ac_ct_OTOOL64"; then
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6760 $as_echo "$ac_ct_OTOOL64" >&6; }
6761 else
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6763 $as_echo "no" >&6; }
6766 if test "x$ac_ct_OTOOL64" = x; then
6767 OTOOL64=":"
6768 else
6769 case $cross_compiling:$ac_tool_warned in
6770 yes:)
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6773 ac_tool_warned=yes ;;
6774 esac
6775 OTOOL64=$ac_ct_OTOOL64
6777 else
6778 OTOOL64="$ac_cv_prog_OTOOL64"
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6808 $as_echo_n "checking for -single_module linker flag... " >&6; }
6809 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6810 $as_echo_n "(cached) " >&6
6811 else
6812 lt_cv_apple_cc_single_mod=no
6813 if test -z "${LT_MULTI_MODULE}"; then
6814 # By default we will add the -single_module flag. You can override
6815 # by either setting the environment variable LT_MULTI_MODULE
6816 # non-empty at configure time, or by adding -multi_module to the
6817 # link flags.
6818 rm -rf libconftest.dylib*
6819 echo "int foo(void){return 1;}" > conftest.c
6820 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6821 -dynamiclib -Wl,-single_module conftest.c" >&5
6822 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6823 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6824 _lt_result=$?
6825 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6826 lt_cv_apple_cc_single_mod=yes
6827 else
6828 cat conftest.err >&5
6830 rm -rf libconftest.dylib*
6831 rm -f conftest.*
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6835 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6837 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6838 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6839 $as_echo_n "(cached) " >&6
6840 else
6841 lt_cv_ld_exported_symbols_list=no
6842 save_LDFLAGS=$LDFLAGS
6843 echo "_main" > conftest.sym
6844 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6846 /* end confdefs.h. */
6849 main ()
6853 return 0;
6855 _ACEOF
6856 if ac_fn_c_try_link "$LINENO"; then :
6857 lt_cv_ld_exported_symbols_list=yes
6858 else
6859 lt_cv_ld_exported_symbols_list=no
6861 rm -f core conftest.err conftest.$ac_objext \
6862 conftest$ac_exeext conftest.$ac_ext
6863 LDFLAGS="$save_LDFLAGS"
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6867 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6868 case $host_os in
6869 rhapsody* | darwin1.[012])
6870 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6871 darwin1.*)
6872 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6873 darwin*) # darwin 5.x on
6874 # if running on 10.5 or later, the deployment target defaults
6875 # to the OS version, if on x86, and 10.4, the deployment
6876 # target defaults to 10.4. Don't you love it?
6877 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6878 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6879 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6880 10.[012]*)
6881 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6882 10.*)
6883 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6884 esac
6886 esac
6887 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6888 _lt_dar_single_mod='$single_module'
6890 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6891 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6892 else
6893 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6895 if test "$DSYMUTIL" != ":"; then
6896 _lt_dsymutil='~$DSYMUTIL $lib || :'
6897 else
6898 _lt_dsymutil=
6901 esac
6903 ac_ext=c
6904 ac_cpp='$CPP $CPPFLAGS'
6905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6909 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6910 # On Suns, sometimes $CPP names a directory.
6911 if test -n "$CPP" && test -d "$CPP"; then
6912 CPP=
6914 if test -z "$CPP"; then
6915 if test "${ac_cv_prog_CPP+set}" = set; then :
6916 $as_echo_n "(cached) " >&6
6917 else
6918 # Double quotes because CPP needs to be expanded
6919 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6921 ac_preproc_ok=false
6922 for ac_c_preproc_warn_flag in '' yes
6924 # Use a header file that comes with gcc, so configuring glibc
6925 # with a fresh cross-compiler works.
6926 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6927 # <limits.h> exists even on freestanding compilers.
6928 # On the NeXT, cc -E runs the code through the compiler's parser,
6929 # not just through cpp. "Syntax error" is here to catch this case.
6930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h. */
6932 #ifdef __STDC__
6933 # include <limits.h>
6934 #else
6935 # include <assert.h>
6936 #endif
6937 Syntax error
6938 _ACEOF
6939 if ac_fn_c_try_cpp "$LINENO"; then :
6941 else
6942 # Broken: fails on valid input.
6943 continue
6945 rm -f conftest.err conftest.i conftest.$ac_ext
6947 # OK, works on sane cases. Now check whether nonexistent headers
6948 # can be detected and how.
6949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950 /* end confdefs.h. */
6951 #include <ac_nonexistent.h>
6952 _ACEOF
6953 if ac_fn_c_try_cpp "$LINENO"; then :
6954 # Broken: success on invalid input.
6955 continue
6956 else
6957 # Passes both tests.
6958 ac_preproc_ok=:
6959 break
6961 rm -f conftest.err conftest.i conftest.$ac_ext
6963 done
6964 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6965 rm -f conftest.i conftest.err conftest.$ac_ext
6966 if $ac_preproc_ok; then :
6967 break
6970 done
6971 ac_cv_prog_CPP=$CPP
6974 CPP=$ac_cv_prog_CPP
6975 else
6976 ac_cv_prog_CPP=$CPP
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6979 $as_echo "$CPP" >&6; }
6980 ac_preproc_ok=false
6981 for ac_c_preproc_warn_flag in '' yes
6983 # Use a header file that comes with gcc, so configuring glibc
6984 # with a fresh cross-compiler works.
6985 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6986 # <limits.h> exists even on freestanding compilers.
6987 # On the NeXT, cc -E runs the code through the compiler's parser,
6988 # not just through cpp. "Syntax error" is here to catch this case.
6989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h. */
6991 #ifdef __STDC__
6992 # include <limits.h>
6993 #else
6994 # include <assert.h>
6995 #endif
6996 Syntax error
6997 _ACEOF
6998 if ac_fn_c_try_cpp "$LINENO"; then :
7000 else
7001 # Broken: fails on valid input.
7002 continue
7004 rm -f conftest.err conftest.i conftest.$ac_ext
7006 # OK, works on sane cases. Now check whether nonexistent headers
7007 # can be detected and how.
7008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7009 /* end confdefs.h. */
7010 #include <ac_nonexistent.h>
7011 _ACEOF
7012 if ac_fn_c_try_cpp "$LINENO"; then :
7013 # Broken: success on invalid input.
7014 continue
7015 else
7016 # Passes both tests.
7017 ac_preproc_ok=:
7018 break
7020 rm -f conftest.err conftest.i conftest.$ac_ext
7022 done
7023 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7024 rm -f conftest.i conftest.err conftest.$ac_ext
7025 if $ac_preproc_ok; then :
7027 else
7028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7030 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7031 See \`config.log' for more details" "$LINENO" 5 ; }
7034 ac_ext=c
7035 ac_cpp='$CPP $CPPFLAGS'
7036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7042 $as_echo_n "checking for ANSI C header files... " >&6; }
7043 if test "${ac_cv_header_stdc+set}" = set; then :
7044 $as_echo_n "(cached) " >&6
7045 else
7046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7047 /* end confdefs.h. */
7048 #include <stdlib.h>
7049 #include <stdarg.h>
7050 #include <string.h>
7051 #include <float.h>
7054 main ()
7058 return 0;
7060 _ACEOF
7061 if ac_fn_c_try_compile "$LINENO"; then :
7062 ac_cv_header_stdc=yes
7063 else
7064 ac_cv_header_stdc=no
7066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7068 if test $ac_cv_header_stdc = yes; then
7069 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071 /* end confdefs.h. */
7072 #include <string.h>
7074 _ACEOF
7075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7076 $EGREP "memchr" >/dev/null 2>&1; then :
7078 else
7079 ac_cv_header_stdc=no
7081 rm -f conftest*
7085 if test $ac_cv_header_stdc = yes; then
7086 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7088 /* end confdefs.h. */
7089 #include <stdlib.h>
7091 _ACEOF
7092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7093 $EGREP "free" >/dev/null 2>&1; then :
7095 else
7096 ac_cv_header_stdc=no
7098 rm -f conftest*
7102 if test $ac_cv_header_stdc = yes; then
7103 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7104 if test "$cross_compiling" = yes; then :
7106 else
7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108 /* end confdefs.h. */
7109 #include <ctype.h>
7110 #include <stdlib.h>
7111 #if ((' ' & 0x0FF) == 0x020)
7112 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7113 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7114 #else
7115 # define ISLOWER(c) \
7116 (('a' <= (c) && (c) <= 'i') \
7117 || ('j' <= (c) && (c) <= 'r') \
7118 || ('s' <= (c) && (c) <= 'z'))
7119 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7120 #endif
7122 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7124 main ()
7126 int i;
7127 for (i = 0; i < 256; i++)
7128 if (XOR (islower (i), ISLOWER (i))
7129 || toupper (i) != TOUPPER (i))
7130 return 2;
7131 return 0;
7133 _ACEOF
7134 if ac_fn_c_try_run "$LINENO"; then :
7136 else
7137 ac_cv_header_stdc=no
7139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7140 conftest.$ac_objext conftest.beam conftest.$ac_ext
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7146 $as_echo "$ac_cv_header_stdc" >&6; }
7147 if test $ac_cv_header_stdc = yes; then
7149 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7153 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7154 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7155 inttypes.h stdint.h unistd.h
7156 do :
7157 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7158 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7160 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7161 cat >>confdefs.h <<_ACEOF
7162 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7163 _ACEOF
7167 done
7170 for ac_header in dlfcn.h
7171 do :
7172 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7174 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7175 cat >>confdefs.h <<_ACEOF
7176 #define HAVE_DLFCN_H 1
7177 _ACEOF
7181 done
7185 # Set options
7189 enable_dlopen=no
7192 enable_win32_dll=no
7195 # Check whether --enable-shared was given.
7196 if test "${enable_shared+set}" = set; then :
7197 enableval=$enable_shared; p=${PACKAGE-default}
7198 case $enableval in
7199 yes) enable_shared=yes ;;
7200 no) enable_shared=no ;;
7202 enable_shared=no
7203 # Look at the argument we got. We use all the common list separators.
7204 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7205 for pkg in $enableval; do
7206 IFS="$lt_save_ifs"
7207 if test "X$pkg" = "X$p"; then
7208 enable_shared=yes
7210 done
7211 IFS="$lt_save_ifs"
7213 esac
7214 else
7215 enable_shared=yes
7226 # Check whether --enable-static was given.
7227 if test "${enable_static+set}" = set; then :
7228 enableval=$enable_static; p=${PACKAGE-default}
7229 case $enableval in
7230 yes) enable_static=yes ;;
7231 no) enable_static=no ;;
7233 enable_static=no
7234 # Look at the argument we got. We use all the common list separators.
7235 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7236 for pkg in $enableval; do
7237 IFS="$lt_save_ifs"
7238 if test "X$pkg" = "X$p"; then
7239 enable_static=yes
7241 done
7242 IFS="$lt_save_ifs"
7244 esac
7245 else
7246 enable_static=yes
7258 # Check whether --with-pic was given.
7259 if test "${with_pic+set}" = set; then :
7260 withval=$with_pic; pic_mode="$withval"
7261 else
7262 pic_mode=default
7266 test -z "$pic_mode" && pic_mode=default
7274 # Check whether --enable-fast-install was given.
7275 if test "${enable_fast_install+set}" = set; then :
7276 enableval=$enable_fast_install; p=${PACKAGE-default}
7277 case $enableval in
7278 yes) enable_fast_install=yes ;;
7279 no) enable_fast_install=no ;;
7281 enable_fast_install=no
7282 # Look at the argument we got. We use all the common list separators.
7283 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7284 for pkg in $enableval; do
7285 IFS="$lt_save_ifs"
7286 if test "X$pkg" = "X$p"; then
7287 enable_fast_install=yes
7289 done
7290 IFS="$lt_save_ifs"
7292 esac
7293 else
7294 enable_fast_install=yes
7307 # This can be used to rebuild libtool when needed
7308 LIBTOOL_DEPS="$ltmain"
7310 # Always use our own libtool.
7311 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7337 test -z "$LN_S" && LN_S="ln -s"
7352 if test -n "${ZSH_VERSION+set}" ; then
7353 setopt NO_GLOB_SUBST
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7357 $as_echo_n "checking for objdir... " >&6; }
7358 if test "${lt_cv_objdir+set}" = set; then :
7359 $as_echo_n "(cached) " >&6
7360 else
7361 rm -f .libs 2>/dev/null
7362 mkdir .libs 2>/dev/null
7363 if test -d .libs; then
7364 lt_cv_objdir=.libs
7365 else
7366 # MS-DOS does not allow filenames that begin with a dot.
7367 lt_cv_objdir=_libs
7369 rmdir .libs 2>/dev/null
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7372 $as_echo "$lt_cv_objdir" >&6; }
7373 objdir=$lt_cv_objdir
7379 cat >>confdefs.h <<_ACEOF
7380 #define LT_OBJDIR "$lt_cv_objdir/"
7381 _ACEOF
7399 case $host_os in
7400 aix3*)
7401 # AIX sometimes has problems with the GCC collect2 program. For some
7402 # reason, if we set the COLLECT_NAMES environment variable, the problems
7403 # vanish in a puff of smoke.
7404 if test "X${COLLECT_NAMES+set}" != Xset; then
7405 COLLECT_NAMES=
7406 export COLLECT_NAMES
7409 esac
7411 # Sed substitution that helps us do robust quoting. It backslashifies
7412 # metacharacters that are still active within double-quoted strings.
7413 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7415 # Same as above, but do not quote variable references.
7416 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7418 # Sed substitution to delay expansion of an escaped shell variable in a
7419 # double_quote_subst'ed string.
7420 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7422 # Sed substitution to delay expansion of an escaped single quote.
7423 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7425 # Sed substitution to avoid accidental globbing in evaled expressions
7426 no_glob_subst='s/\*/\\\*/g'
7428 # Global variables:
7429 ofile=libtool
7430 can_build_shared=yes
7432 # All known linkers require a `.a' archive for static linking (except MSVC,
7433 # which needs '.lib').
7434 libext=a
7436 with_gnu_ld="$lt_cv_prog_gnu_ld"
7438 old_CC="$CC"
7439 old_CFLAGS="$CFLAGS"
7441 # Set sane defaults for various variables
7442 test -z "$CC" && CC=cc
7443 test -z "$LTCC" && LTCC=$CC
7444 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7445 test -z "$LD" && LD=ld
7446 test -z "$ac_objext" && ac_objext=o
7448 for cc_temp in $compiler""; do
7449 case $cc_temp in
7450 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7451 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7452 \-*) ;;
7453 *) break;;
7454 esac
7455 done
7456 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7459 # Only perform the check for file, if the check method requires it
7460 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7461 case $deplibs_check_method in
7462 file_magic*)
7463 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7465 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7466 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7467 $as_echo_n "(cached) " >&6
7468 else
7469 case $MAGIC_CMD in
7470 [\\/*] | ?:[\\/]*)
7471 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7474 lt_save_MAGIC_CMD="$MAGIC_CMD"
7475 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7476 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7477 for ac_dir in $ac_dummy; do
7478 IFS="$lt_save_ifs"
7479 test -z "$ac_dir" && ac_dir=.
7480 if test -f $ac_dir/${ac_tool_prefix}file; then
7481 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7482 if test -n "$file_magic_test_file"; then
7483 case $deplibs_check_method in
7484 "file_magic "*)
7485 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7486 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7487 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7488 $EGREP "$file_magic_regex" > /dev/null; then
7490 else
7491 cat <<_LT_EOF 1>&2
7493 *** Warning: the command libtool uses to detect shared libraries,
7494 *** $file_magic_cmd, produces output that libtool cannot recognize.
7495 *** The result is that libtool may fail to recognize shared libraries
7496 *** as such. This will affect the creation of libtool libraries that
7497 *** depend on shared libraries, but programs linked with such libtool
7498 *** libraries will work regardless of this problem. Nevertheless, you
7499 *** may want to report the problem to your system manager and/or to
7500 *** bug-libtool@gnu.org
7502 _LT_EOF
7503 fi ;;
7504 esac
7506 break
7508 done
7509 IFS="$lt_save_ifs"
7510 MAGIC_CMD="$lt_save_MAGIC_CMD"
7512 esac
7515 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7516 if test -n "$MAGIC_CMD"; then
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7518 $as_echo "$MAGIC_CMD" >&6; }
7519 else
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7521 $as_echo "no" >&6; }
7528 if test -z "$lt_cv_path_MAGIC_CMD"; then
7529 if test -n "$ac_tool_prefix"; then
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7531 $as_echo_n "checking for file... " >&6; }
7532 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7533 $as_echo_n "(cached) " >&6
7534 else
7535 case $MAGIC_CMD in
7536 [\\/*] | ?:[\\/]*)
7537 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7540 lt_save_MAGIC_CMD="$MAGIC_CMD"
7541 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7542 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7543 for ac_dir in $ac_dummy; do
7544 IFS="$lt_save_ifs"
7545 test -z "$ac_dir" && ac_dir=.
7546 if test -f $ac_dir/file; then
7547 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7548 if test -n "$file_magic_test_file"; then
7549 case $deplibs_check_method in
7550 "file_magic "*)
7551 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7552 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7553 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7554 $EGREP "$file_magic_regex" > /dev/null; then
7556 else
7557 cat <<_LT_EOF 1>&2
7559 *** Warning: the command libtool uses to detect shared libraries,
7560 *** $file_magic_cmd, produces output that libtool cannot recognize.
7561 *** The result is that libtool may fail to recognize shared libraries
7562 *** as such. This will affect the creation of libtool libraries that
7563 *** depend on shared libraries, but programs linked with such libtool
7564 *** libraries will work regardless of this problem. Nevertheless, you
7565 *** may want to report the problem to your system manager and/or to
7566 *** bug-libtool@gnu.org
7568 _LT_EOF
7569 fi ;;
7570 esac
7572 break
7574 done
7575 IFS="$lt_save_ifs"
7576 MAGIC_CMD="$lt_save_MAGIC_CMD"
7578 esac
7581 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7582 if test -n "$MAGIC_CMD"; then
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7584 $as_echo "$MAGIC_CMD" >&6; }
7585 else
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587 $as_echo "no" >&6; }
7591 else
7592 MAGIC_CMD=:
7598 esac
7600 # Use C for the default configuration in the libtool script
7602 lt_save_CC="$CC"
7603 ac_ext=c
7604 ac_cpp='$CPP $CPPFLAGS'
7605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7610 # Source file extension for C test sources.
7611 ac_ext=c
7613 # Object file extension for compiled C test sources.
7614 objext=o
7615 objext=$objext
7617 # Code to be used in simple compile tests
7618 lt_simple_compile_test_code="int some_variable = 0;"
7620 # Code to be used in simple link tests
7621 lt_simple_link_test_code='int main(){return(0);}'
7629 # If no C compiler was specified, use CC.
7630 LTCC=${LTCC-"$CC"}
7632 # If no C compiler flags were specified, use CFLAGS.
7633 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7635 # Allow CC to be a program name with arguments.
7636 compiler=$CC
7638 # Save the default compiler, since it gets overwritten when the other
7639 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7640 compiler_DEFAULT=$CC
7642 # save warnings/boilerplate of simple test code
7643 ac_outfile=conftest.$ac_objext
7644 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7645 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7646 _lt_compiler_boilerplate=`cat conftest.err`
7647 $RM conftest*
7649 ac_outfile=conftest.$ac_objext
7650 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7651 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7652 _lt_linker_boilerplate=`cat conftest.err`
7653 $RM -r conftest*
7656 ## CAVEAT EMPTOR:
7657 ## There is no encapsulation within the following macros, do not change
7658 ## the running order or otherwise move them around unless you know exactly
7659 ## what you are doing...
7660 if test -n "$compiler"; then
7662 lt_prog_compiler_no_builtin_flag=
7664 if test "$GCC" = yes; then
7665 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7668 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7669 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7670 $as_echo_n "(cached) " >&6
7671 else
7672 lt_cv_prog_compiler_rtti_exceptions=no
7673 ac_outfile=conftest.$ac_objext
7674 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7675 lt_compiler_flag="-fno-rtti -fno-exceptions"
7676 # Insert the option either (1) after the last *FLAGS variable, or
7677 # (2) before a word containing "conftest.", or (3) at the end.
7678 # Note that $ac_compile itself does not contain backslashes and begins
7679 # with a dollar sign (not a hyphen), so the echo should work correctly.
7680 # The option is referenced via a variable to avoid confusing sed.
7681 lt_compile=`echo "$ac_compile" | $SED \
7682 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7683 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7684 -e 's:$: $lt_compiler_flag:'`
7685 (eval echo "\"\$as_me:7685: $lt_compile\"" >&5)
7686 (eval "$lt_compile" 2>conftest.err)
7687 ac_status=$?
7688 cat conftest.err >&5
7689 echo "$as_me:7689: \$? = $ac_status" >&5
7690 if (exit $ac_status) && test -s "$ac_outfile"; then
7691 # The compiler can only warn and ignore the option if not recognized
7692 # So say no if there are warnings other than the usual output.
7693 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7694 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7695 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7696 lt_cv_prog_compiler_rtti_exceptions=yes
7699 $RM conftest*
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7703 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7705 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7706 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7707 else
7718 lt_prog_compiler_wl=
7719 lt_prog_compiler_pic=
7720 lt_prog_compiler_static=
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7723 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7725 if test "$GCC" = yes; then
7726 lt_prog_compiler_wl='-Wl,'
7727 lt_prog_compiler_static='-static'
7729 case $host_os in
7730 aix*)
7731 # All AIX code is PIC.
7732 if test "$host_cpu" = ia64; then
7733 # AIX 5 now supports IA64 processor
7734 lt_prog_compiler_static='-Bstatic'
7738 amigaos*)
7739 case $host_cpu in
7740 powerpc)
7741 # see comment about AmigaOS4 .so support
7742 lt_prog_compiler_pic='-fPIC'
7744 m68k)
7745 # FIXME: we need at least 68020 code to build shared libraries, but
7746 # adding the `-m68020' flag to GCC prevents building anything better,
7747 # like `-m68040'.
7748 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7750 esac
7753 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7754 # PIC is the default for these OSes.
7757 mingw* | cygwin* | pw32* | os2* | cegcc*)
7758 # This hack is so that the source file can tell whether it is being
7759 # built for inclusion in a dll (and should export symbols for example).
7760 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7761 # (--disable-auto-import) libraries
7762 lt_prog_compiler_pic='-DDLL_EXPORT'
7765 darwin* | rhapsody*)
7766 # PIC is the default on this platform
7767 # Common symbols not allowed in MH_DYLIB files
7768 lt_prog_compiler_pic='-fno-common'
7771 hpux*)
7772 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7773 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7774 # sets the default TLS model and affects inlining.
7775 case $host_cpu in
7776 hppa*64*)
7777 # +Z the default
7780 lt_prog_compiler_pic='-fPIC'
7782 esac
7785 interix[3-9]*)
7786 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7787 # Instead, we relocate shared libraries at runtime.
7790 msdosdjgpp*)
7791 # Just because we use GCC doesn't mean we suddenly get shared libraries
7792 # on systems that don't support them.
7793 lt_prog_compiler_can_build_shared=no
7794 enable_shared=no
7797 *nto* | *qnx*)
7798 # QNX uses GNU C++, but need to define -shared option too, otherwise
7799 # it will coredump.
7800 lt_prog_compiler_pic='-fPIC -shared'
7803 sysv4*MP*)
7804 if test -d /usr/nec; then
7805 lt_prog_compiler_pic=-Kconform_pic
7810 lt_prog_compiler_pic='-fPIC'
7812 esac
7813 else
7814 # PORTME Check for flag to pass linker flags through the system compiler.
7815 case $host_os in
7816 aix*)
7817 lt_prog_compiler_wl='-Wl,'
7818 if test "$host_cpu" = ia64; then
7819 # AIX 5 now supports IA64 processor
7820 lt_prog_compiler_static='-Bstatic'
7821 else
7822 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7826 mingw* | cygwin* | pw32* | os2* | cegcc*)
7827 # This hack is so that the source file can tell whether it is being
7828 # built for inclusion in a dll (and should export symbols for example).
7829 lt_prog_compiler_pic='-DDLL_EXPORT'
7832 hpux9* | hpux10* | hpux11*)
7833 lt_prog_compiler_wl='-Wl,'
7834 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7835 # not for PA HP-UX.
7836 case $host_cpu in
7837 hppa*64*|ia64*)
7838 # +Z the default
7841 lt_prog_compiler_pic='+Z'
7843 esac
7844 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7845 lt_prog_compiler_static='${wl}-a ${wl}archive'
7848 irix5* | irix6* | nonstopux*)
7849 lt_prog_compiler_wl='-Wl,'
7850 # PIC (with -KPIC) is the default.
7851 lt_prog_compiler_static='-non_shared'
7854 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7855 case $cc_basename in
7856 # old Intel for x86_64 which still supported -KPIC.
7857 ecc*)
7858 lt_prog_compiler_wl='-Wl,'
7859 lt_prog_compiler_pic='-KPIC'
7860 lt_prog_compiler_static='-static'
7862 # icc used to be incompatible with GCC.
7863 # ICC 10 doesn't accept -KPIC any more.
7864 icc* | ifort*)
7865 lt_prog_compiler_wl='-Wl,'
7866 lt_prog_compiler_pic='-fPIC'
7867 lt_prog_compiler_static='-static'
7869 # Lahey Fortran 8.1.
7870 lf95*)
7871 lt_prog_compiler_wl='-Wl,'
7872 lt_prog_compiler_pic='--shared'
7873 lt_prog_compiler_static='--static'
7875 pgcc* | pgf77* | pgf90* | pgf95*)
7876 # Portland Group compilers (*not* the Pentium gcc compiler,
7877 # which looks to be a dead project)
7878 lt_prog_compiler_wl='-Wl,'
7879 lt_prog_compiler_pic='-fpic'
7880 lt_prog_compiler_static='-Bstatic'
7882 ccc*)
7883 lt_prog_compiler_wl='-Wl,'
7884 # All Alpha code is PIC.
7885 lt_prog_compiler_static='-non_shared'
7887 xl*)
7888 # IBM XL C 8.0/Fortran 10.1 on PPC
7889 lt_prog_compiler_wl='-Wl,'
7890 lt_prog_compiler_pic='-qpic'
7891 lt_prog_compiler_static='-qstaticlink'
7894 case `$CC -V 2>&1 | sed 5q` in
7895 *Sun\ C*)
7896 # Sun C 5.9
7897 lt_prog_compiler_pic='-KPIC'
7898 lt_prog_compiler_static='-Bstatic'
7899 lt_prog_compiler_wl='-Wl,'
7901 *Sun\ F*)
7902 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7903 lt_prog_compiler_pic='-KPIC'
7904 lt_prog_compiler_static='-Bstatic'
7905 lt_prog_compiler_wl=''
7907 esac
7909 esac
7912 newsos6)
7913 lt_prog_compiler_pic='-KPIC'
7914 lt_prog_compiler_static='-Bstatic'
7917 *nto* | *qnx*)
7918 # QNX uses GNU C++, but need to define -shared option too, otherwise
7919 # it will coredump.
7920 lt_prog_compiler_pic='-fPIC -shared'
7923 osf3* | osf4* | osf5*)
7924 lt_prog_compiler_wl='-Wl,'
7925 # All OSF/1 code is PIC.
7926 lt_prog_compiler_static='-non_shared'
7929 rdos*)
7930 lt_prog_compiler_static='-non_shared'
7933 solaris*)
7934 lt_prog_compiler_pic='-KPIC'
7935 lt_prog_compiler_static='-Bstatic'
7936 case $cc_basename in
7937 f77* | f90* | f95*)
7938 lt_prog_compiler_wl='-Qoption ld ';;
7940 lt_prog_compiler_wl='-Wl,';;
7941 esac
7944 sunos4*)
7945 lt_prog_compiler_wl='-Qoption ld '
7946 lt_prog_compiler_pic='-PIC'
7947 lt_prog_compiler_static='-Bstatic'
7950 sysv4 | sysv4.2uw2* | sysv4.3*)
7951 lt_prog_compiler_wl='-Wl,'
7952 lt_prog_compiler_pic='-KPIC'
7953 lt_prog_compiler_static='-Bstatic'
7956 sysv4*MP*)
7957 if test -d /usr/nec ;then
7958 lt_prog_compiler_pic='-Kconform_pic'
7959 lt_prog_compiler_static='-Bstatic'
7963 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7964 lt_prog_compiler_wl='-Wl,'
7965 lt_prog_compiler_pic='-KPIC'
7966 lt_prog_compiler_static='-Bstatic'
7969 unicos*)
7970 lt_prog_compiler_wl='-Wl,'
7971 lt_prog_compiler_can_build_shared=no
7974 uts4*)
7975 lt_prog_compiler_pic='-pic'
7976 lt_prog_compiler_static='-Bstatic'
7980 lt_prog_compiler_can_build_shared=no
7982 esac
7985 case $host_os in
7986 # For platforms which do not support PIC, -DPIC is meaningless:
7987 *djgpp*)
7988 lt_prog_compiler_pic=
7991 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7993 esac
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7995 $as_echo "$lt_prog_compiler_pic" >&6; }
8003 # Check to make sure the PIC flag actually works.
8005 if test -n "$lt_prog_compiler_pic"; then
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8007 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8008 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8009 $as_echo_n "(cached) " >&6
8010 else
8011 lt_cv_prog_compiler_pic_works=no
8012 ac_outfile=conftest.$ac_objext
8013 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8014 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8015 # Insert the option either (1) after the last *FLAGS variable, or
8016 # (2) before a word containing "conftest.", or (3) at the end.
8017 # Note that $ac_compile itself does not contain backslashes and begins
8018 # with a dollar sign (not a hyphen), so the echo should work correctly.
8019 # The option is referenced via a variable to avoid confusing sed.
8020 lt_compile=`echo "$ac_compile" | $SED \
8021 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8022 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8023 -e 's:$: $lt_compiler_flag:'`
8024 (eval echo "\"\$as_me:8024: $lt_compile\"" >&5)
8025 (eval "$lt_compile" 2>conftest.err)
8026 ac_status=$?
8027 cat conftest.err >&5
8028 echo "$as_me:8028: \$? = $ac_status" >&5
8029 if (exit $ac_status) && test -s "$ac_outfile"; then
8030 # The compiler can only warn and ignore the option if not recognized
8031 # So say no if there are warnings other than the usual output.
8032 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8033 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8034 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8035 lt_cv_prog_compiler_pic_works=yes
8038 $RM conftest*
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8042 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8044 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8045 case $lt_prog_compiler_pic in
8046 "" | " "*) ;;
8047 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8048 esac
8049 else
8050 lt_prog_compiler_pic=
8051 lt_prog_compiler_can_build_shared=no
8062 # Check to make sure the static flag actually works.
8064 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8066 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8067 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8068 $as_echo_n "(cached) " >&6
8069 else
8070 lt_cv_prog_compiler_static_works=no
8071 save_LDFLAGS="$LDFLAGS"
8072 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8073 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8074 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8075 # The linker can only warn and ignore the option if not recognized
8076 # So say no if there are warnings
8077 if test -s conftest.err; then
8078 # Append any errors to the config.log.
8079 cat conftest.err 1>&5
8080 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8081 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8082 if diff conftest.exp conftest.er2 >/dev/null; then
8083 lt_cv_prog_compiler_static_works=yes
8085 else
8086 lt_cv_prog_compiler_static_works=yes
8089 $RM -r conftest*
8090 LDFLAGS="$save_LDFLAGS"
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8094 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8096 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8098 else
8099 lt_prog_compiler_static=
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8109 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8110 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8111 $as_echo_n "(cached) " >&6
8112 else
8113 lt_cv_prog_compiler_c_o=no
8114 $RM -r conftest 2>/dev/null
8115 mkdir conftest
8116 cd conftest
8117 mkdir out
8118 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8120 lt_compiler_flag="-o out/conftest2.$ac_objext"
8121 # Insert the option either (1) after the last *FLAGS variable, or
8122 # (2) before a word containing "conftest.", or (3) at the end.
8123 # Note that $ac_compile itself does not contain backslashes and begins
8124 # with a dollar sign (not a hyphen), so the echo should work correctly.
8125 lt_compile=`echo "$ac_compile" | $SED \
8126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8128 -e 's:$: $lt_compiler_flag:'`
8129 (eval echo "\"\$as_me:8129: $lt_compile\"" >&5)
8130 (eval "$lt_compile" 2>out/conftest.err)
8131 ac_status=$?
8132 cat out/conftest.err >&5
8133 echo "$as_me:8133: \$? = $ac_status" >&5
8134 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8135 then
8136 # The compiler can only warn and ignore the option if not recognized
8137 # So say no if there are warnings
8138 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8139 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8140 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8141 lt_cv_prog_compiler_c_o=yes
8144 chmod u+w . 2>&5
8145 $RM conftest*
8146 # SGI C++ compiler will create directory out/ii_files/ for
8147 # template instantiation
8148 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8149 $RM out/* && rmdir out
8150 cd ..
8151 $RM -r conftest
8152 $RM conftest*
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8156 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8164 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8165 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8166 $as_echo_n "(cached) " >&6
8167 else
8168 lt_cv_prog_compiler_c_o=no
8169 $RM -r conftest 2>/dev/null
8170 mkdir conftest
8171 cd conftest
8172 mkdir out
8173 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8175 lt_compiler_flag="-o out/conftest2.$ac_objext"
8176 # Insert the option either (1) after the last *FLAGS variable, or
8177 # (2) before a word containing "conftest.", or (3) at the end.
8178 # Note that $ac_compile itself does not contain backslashes and begins
8179 # with a dollar sign (not a hyphen), so the echo should work correctly.
8180 lt_compile=`echo "$ac_compile" | $SED \
8181 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8182 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8183 -e 's:$: $lt_compiler_flag:'`
8184 (eval echo "\"\$as_me:8184: $lt_compile\"" >&5)
8185 (eval "$lt_compile" 2>out/conftest.err)
8186 ac_status=$?
8187 cat out/conftest.err >&5
8188 echo "$as_me:8188: \$? = $ac_status" >&5
8189 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8190 then
8191 # The compiler can only warn and ignore the option if not recognized
8192 # So say no if there are warnings
8193 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8194 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8195 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8196 lt_cv_prog_compiler_c_o=yes
8199 chmod u+w . 2>&5
8200 $RM conftest*
8201 # SGI C++ compiler will create directory out/ii_files/ for
8202 # template instantiation
8203 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8204 $RM out/* && rmdir out
8205 cd ..
8206 $RM -r conftest
8207 $RM conftest*
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8211 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8216 hard_links="nottested"
8217 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8218 # do not overwrite the value of need_locks provided by the user
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8220 $as_echo_n "checking if we can lock with hard links... " >&6; }
8221 hard_links=yes
8222 $RM conftest*
8223 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8224 touch conftest.a
8225 ln conftest.a conftest.b 2>&5 || hard_links=no
8226 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8228 $as_echo "$hard_links" >&6; }
8229 if test "$hard_links" = no; then
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8231 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8232 need_locks=warn
8234 else
8235 need_locks=no
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8244 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8246 runpath_var=
8247 allow_undefined_flag=
8248 always_export_symbols=no
8249 archive_cmds=
8250 archive_expsym_cmds=
8251 compiler_needs_object=no
8252 enable_shared_with_static_runtimes=no
8253 export_dynamic_flag_spec=
8254 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8255 hardcode_automatic=no
8256 hardcode_direct=no
8257 hardcode_direct_absolute=no
8258 hardcode_libdir_flag_spec=
8259 hardcode_libdir_flag_spec_ld=
8260 hardcode_libdir_separator=
8261 hardcode_minus_L=no
8262 hardcode_shlibpath_var=unsupported
8263 inherit_rpath=no
8264 link_all_deplibs=unknown
8265 module_cmds=
8266 module_expsym_cmds=
8267 old_archive_from_new_cmds=
8268 old_archive_from_expsyms_cmds=
8269 thread_safe_flag_spec=
8270 whole_archive_flag_spec=
8271 # include_expsyms should be a list of space-separated symbols to be *always*
8272 # included in the symbol list
8273 include_expsyms=
8274 # exclude_expsyms can be an extended regexp of symbols to exclude
8275 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8276 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8277 # as well as any symbol that contains `d'.
8278 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8279 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8280 # platforms (ab)use it in PIC code, but their linkers get confused if
8281 # the symbol is explicitly referenced. Since portable code cannot
8282 # rely on this symbol name, it's probably fine to never include it in
8283 # preloaded symbol tables.
8284 # Exclude shared library initialization/finalization symbols.
8285 extract_expsyms_cmds=
8287 case $host_os in
8288 cygwin* | mingw* | pw32* | cegcc*)
8289 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8290 # When not using gcc, we currently assume that we are using
8291 # Microsoft Visual C++.
8292 if test "$GCC" != yes; then
8293 with_gnu_ld=no
8296 interix*)
8297 # we just hope/assume this is gcc and not c89 (= MSVC++)
8298 with_gnu_ld=yes
8300 openbsd*)
8301 with_gnu_ld=no
8303 linux* | k*bsd*-gnu)
8304 link_all_deplibs=no
8306 esac
8308 ld_shlibs=yes
8309 if test "$with_gnu_ld" = yes; then
8310 # If archive_cmds runs LD, not CC, wlarc should be empty
8311 wlarc='${wl}'
8313 # Set some defaults for GNU ld with shared library support. These
8314 # are reset later if shared libraries are not supported. Putting them
8315 # here allows them to be overridden if necessary.
8316 runpath_var=LD_RUN_PATH
8317 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8318 export_dynamic_flag_spec='${wl}--export-dynamic'
8319 # ancient GNU ld didn't support --whole-archive et. al.
8320 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8321 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8322 else
8323 whole_archive_flag_spec=
8325 supports_anon_versioning=no
8326 case `$LD -v 2>&1` in
8327 *GNU\ gold*) supports_anon_versioning=yes ;;
8328 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8329 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8330 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8331 *\ 2.11.*) ;; # other 2.11 versions
8332 *) supports_anon_versioning=yes ;;
8333 esac
8335 # See if GNU ld supports shared libraries.
8336 case $host_os in
8337 aix[3-9]*)
8338 # On AIX/PPC, the GNU linker is very broken
8339 if test "$host_cpu" != ia64; then
8340 ld_shlibs=no
8341 cat <<_LT_EOF 1>&2
8343 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8344 *** to be unable to reliably create shared libraries on AIX.
8345 *** Therefore, libtool is disabling shared libraries support. If you
8346 *** really care for shared libraries, you may want to modify your PATH
8347 *** so that a non-GNU linker is found, and then restart.
8349 _LT_EOF
8353 amigaos*)
8354 case $host_cpu in
8355 powerpc)
8356 # see comment about AmigaOS4 .so support
8357 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8358 archive_expsym_cmds=''
8360 m68k)
8361 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)'
8362 hardcode_libdir_flag_spec='-L$libdir'
8363 hardcode_minus_L=yes
8365 esac
8368 beos*)
8369 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8370 allow_undefined_flag=unsupported
8371 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8372 # support --undefined. This deserves some investigation. FIXME
8373 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8374 else
8375 ld_shlibs=no
8379 cygwin* | mingw* | pw32* | cegcc*)
8380 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8381 # as there is no search path for DLLs.
8382 hardcode_libdir_flag_spec='-L$libdir'
8383 allow_undefined_flag=unsupported
8384 always_export_symbols=no
8385 enable_shared_with_static_runtimes=yes
8386 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8388 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8389 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8390 # If the export-symbols file already is a .def file (1st line
8391 # is EXPORTS), use it as is; otherwise, prepend...
8392 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8393 cp $export_symbols $output_objdir/$soname.def;
8394 else
8395 echo EXPORTS > $output_objdir/$soname.def;
8396 cat $export_symbols >> $output_objdir/$soname.def;
8398 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8399 else
8400 ld_shlibs=no
8404 interix[3-9]*)
8405 hardcode_direct=no
8406 hardcode_shlibpath_var=no
8407 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8408 export_dynamic_flag_spec='${wl}-E'
8409 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8410 # Instead, shared libraries are loaded at an image base (0x10000000 by
8411 # default) and relocated if they conflict, which is a slow very memory
8412 # consuming and fragmenting process. To avoid this, we pick a random,
8413 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8414 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8415 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8416 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'
8419 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8420 tmp_diet=no
8421 if test "$host_os" = linux-dietlibc; then
8422 case $cc_basename in
8423 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8424 esac
8426 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8427 && test "$tmp_diet" = no
8428 then
8429 tmp_addflag=
8430 tmp_sharedflag='-shared'
8431 case $cc_basename,$host_cpu in
8432 pgcc*) # Portland Group C compiler
8433 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'
8434 tmp_addflag=' $pic_flag'
8436 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8437 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'
8438 tmp_addflag=' $pic_flag -Mnomain' ;;
8439 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8440 tmp_addflag=' -i_dynamic' ;;
8441 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8442 tmp_addflag=' -i_dynamic -nofor_main' ;;
8443 ifc* | ifort*) # Intel Fortran compiler
8444 tmp_addflag=' -nofor_main' ;;
8445 lf95*) # Lahey Fortran 8.1
8446 whole_archive_flag_spec=
8447 tmp_sharedflag='--shared' ;;
8448 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8449 tmp_sharedflag='-qmkshrobj'
8450 tmp_addflag= ;;
8451 esac
8452 case `$CC -V 2>&1 | sed 5q` in
8453 *Sun\ C*) # Sun C 5.9
8454 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'
8455 compiler_needs_object=yes
8456 tmp_sharedflag='-G' ;;
8457 *Sun\ F*) # Sun Fortran 8.3
8458 tmp_sharedflag='-G' ;;
8459 esac
8460 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8462 if test "x$supports_anon_versioning" = xyes; then
8463 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8464 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8465 echo "local: *; };" >> $output_objdir/$libname.ver~
8466 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8469 case $cc_basename in
8470 xlf*)
8471 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8472 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8473 hardcode_libdir_flag_spec=
8474 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8475 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8476 if test "x$supports_anon_versioning" = xyes; then
8477 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8478 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8479 echo "local: *; };" >> $output_objdir/$libname.ver~
8480 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8483 esac
8484 else
8485 ld_shlibs=no
8489 netbsd* | netbsdelf*-gnu)
8490 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8491 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8492 wlarc=
8493 else
8494 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8495 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8499 solaris*)
8500 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8501 ld_shlibs=no
8502 cat <<_LT_EOF 1>&2
8504 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8505 *** create shared libraries on Solaris systems. Therefore, libtool
8506 *** is disabling shared libraries support. We urge you to upgrade GNU
8507 *** binutils to release 2.9.1 or newer. Another option is to modify
8508 *** your PATH or compiler configuration so that the native linker is
8509 *** used, and then restart.
8511 _LT_EOF
8512 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8513 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8514 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8515 else
8516 ld_shlibs=no
8520 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8521 case `$LD -v 2>&1` in
8522 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8523 ld_shlibs=no
8524 cat <<_LT_EOF 1>&2
8526 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8527 *** reliably create shared libraries on SCO systems. Therefore, libtool
8528 *** is disabling shared libraries support. We urge you to upgrade GNU
8529 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8530 *** your PATH or compiler configuration so that the native linker is
8531 *** used, and then restart.
8533 _LT_EOF
8536 # For security reasons, it is highly recommended that you always
8537 # use absolute paths for naming shared libraries, and exclude the
8538 # DT_RUNPATH tag from executables and libraries. But doing so
8539 # requires that you compile everything twice, which is a pain.
8540 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8541 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8542 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8543 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8544 else
8545 ld_shlibs=no
8548 esac
8551 sunos4*)
8552 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8553 wlarc=
8554 hardcode_direct=yes
8555 hardcode_shlibpath_var=no
8559 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8560 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8561 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8562 else
8563 ld_shlibs=no
8566 esac
8568 if test "$ld_shlibs" = no; then
8569 runpath_var=
8570 hardcode_libdir_flag_spec=
8571 export_dynamic_flag_spec=
8572 whole_archive_flag_spec=
8574 else
8575 # PORTME fill in a description of your system's linker (not GNU ld)
8576 case $host_os in
8577 aix3*)
8578 allow_undefined_flag=unsupported
8579 always_export_symbols=yes
8580 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'
8581 # Note: this linker hardcodes the directories in LIBPATH if there
8582 # are no directories specified by -L.
8583 hardcode_minus_L=yes
8584 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8585 # Neither direct hardcoding nor static linking is supported with a
8586 # broken collect2.
8587 hardcode_direct=unsupported
8591 aix[4-9]*)
8592 if test "$host_cpu" = ia64; then
8593 # On IA64, the linker does run time linking by default, so we don't
8594 # have to do anything special.
8595 aix_use_runtimelinking=no
8596 exp_sym_flag='-Bexport'
8597 no_entry_flag=""
8598 else
8599 # If we're using GNU nm, then we don't want the "-C" option.
8600 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8601 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8602 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'
8603 else
8604 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'
8606 aix_use_runtimelinking=no
8608 # Test if we are trying to use run time linking or normal
8609 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8610 # need to do runtime linking.
8611 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8612 for ld_flag in $LDFLAGS; do
8613 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8614 aix_use_runtimelinking=yes
8615 break
8617 done
8619 esac
8621 exp_sym_flag='-bexport'
8622 no_entry_flag='-bnoentry'
8625 # When large executables or shared objects are built, AIX ld can
8626 # have problems creating the table of contents. If linking a library
8627 # or program results in "error TOC overflow" add -mminimal-toc to
8628 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8629 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8631 archive_cmds=''
8632 hardcode_direct=yes
8633 hardcode_direct_absolute=yes
8634 hardcode_libdir_separator=':'
8635 link_all_deplibs=yes
8636 file_list_spec='${wl}-f,'
8638 if test "$GCC" = yes; then
8639 case $host_os in aix4.[012]|aix4.[012].*)
8640 # We only want to do this on AIX 4.2 and lower, the check
8641 # below for broken collect2 doesn't work under 4.3+
8642 collect2name=`${CC} -print-prog-name=collect2`
8643 if test -f "$collect2name" &&
8644 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8645 then
8646 # We have reworked collect2
8648 else
8649 # We have old collect2
8650 hardcode_direct=unsupported
8651 # It fails to find uninstalled libraries when the uninstalled
8652 # path is not listed in the libpath. Setting hardcode_minus_L
8653 # to unsupported forces relinking
8654 hardcode_minus_L=yes
8655 hardcode_libdir_flag_spec='-L$libdir'
8656 hardcode_libdir_separator=
8659 esac
8660 shared_flag='-shared'
8661 if test "$aix_use_runtimelinking" = yes; then
8662 shared_flag="$shared_flag "'${wl}-G'
8664 link_all_deplibs=no
8665 else
8666 # not using gcc
8667 if test "$host_cpu" = ia64; then
8668 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8669 # chokes on -Wl,-G. The following line is correct:
8670 shared_flag='-G'
8671 else
8672 if test "$aix_use_runtimelinking" = yes; then
8673 shared_flag='${wl}-G'
8674 else
8675 shared_flag='${wl}-bM:SRE'
8680 export_dynamic_flag_spec='${wl}-bexpall'
8681 # It seems that -bexpall does not export symbols beginning with
8682 # underscore (_), so it is better to generate a list of symbols to export.
8683 always_export_symbols=yes
8684 if test "$aix_use_runtimelinking" = yes; then
8685 # Warning - without using the other runtime loading flags (-brtl),
8686 # -berok will link without error, but may produce a broken library.
8687 allow_undefined_flag='-berok'
8688 # Determine the default libpath from the value encoded in an
8689 # empty executable.
8690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8691 /* end confdefs.h. */
8694 main ()
8698 return 0;
8700 _ACEOF
8701 if ac_fn_c_try_link "$LINENO"; then :
8703 lt_aix_libpath_sed='
8704 /Import File Strings/,/^$/ {
8705 /^0/ {
8706 s/^0 *\(.*\)$/\1/
8710 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8711 # Check for a 64-bit object if we didn't find anything.
8712 if test -z "$aix_libpath"; then
8713 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8716 rm -f core conftest.err conftest.$ac_objext \
8717 conftest$ac_exeext conftest.$ac_ext
8718 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8720 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8721 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"
8722 else
8723 if test "$host_cpu" = ia64; then
8724 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8725 allow_undefined_flag="-z nodefs"
8726 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"
8727 else
8728 # Determine the default libpath from the value encoded in an
8729 # empty executable.
8730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8731 /* end confdefs.h. */
8734 main ()
8738 return 0;
8740 _ACEOF
8741 if ac_fn_c_try_link "$LINENO"; then :
8743 lt_aix_libpath_sed='
8744 /Import File Strings/,/^$/ {
8745 /^0/ {
8746 s/^0 *\(.*\)$/\1/
8750 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8751 # Check for a 64-bit object if we didn't find anything.
8752 if test -z "$aix_libpath"; then
8753 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8756 rm -f core conftest.err conftest.$ac_objext \
8757 conftest$ac_exeext conftest.$ac_ext
8758 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8760 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8761 # Warning - without using the other run time loading flags,
8762 # -berok will link without error, but may produce a broken library.
8763 no_undefined_flag=' ${wl}-bernotok'
8764 allow_undefined_flag=' ${wl}-berok'
8765 # Exported symbols can be pulled into shared objects from archives
8766 whole_archive_flag_spec='$convenience'
8767 archive_cmds_need_lc=yes
8768 # This is similar to how AIX traditionally builds its shared libraries.
8769 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'
8774 amigaos*)
8775 case $host_cpu in
8776 powerpc)
8777 # see comment about AmigaOS4 .so support
8778 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8779 archive_expsym_cmds=''
8781 m68k)
8782 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)'
8783 hardcode_libdir_flag_spec='-L$libdir'
8784 hardcode_minus_L=yes
8786 esac
8789 bsdi[45]*)
8790 export_dynamic_flag_spec=-rdynamic
8793 cygwin* | mingw* | pw32* | cegcc*)
8794 # When not using gcc, we currently assume that we are using
8795 # Microsoft Visual C++.
8796 # hardcode_libdir_flag_spec is actually meaningless, as there is
8797 # no search path for DLLs.
8798 hardcode_libdir_flag_spec=' '
8799 allow_undefined_flag=unsupported
8800 # Tell ltmain to make .lib files, not .a files.
8801 libext=lib
8802 # Tell ltmain to make .dll files, not .so files.
8803 shrext_cmds=".dll"
8804 # FIXME: Setting linknames here is a bad hack.
8805 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8806 # The linker will automatically build a .lib file if we build a DLL.
8807 old_archive_from_new_cmds='true'
8808 # FIXME: Should let the user specify the lib program.
8809 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8810 fix_srcfile_path='`cygpath -w "$srcfile"`'
8811 enable_shared_with_static_runtimes=yes
8814 darwin* | rhapsody*)
8817 archive_cmds_need_lc=no
8818 hardcode_direct=no
8819 hardcode_automatic=yes
8820 hardcode_shlibpath_var=unsupported
8821 whole_archive_flag_spec=''
8822 link_all_deplibs=yes
8823 allow_undefined_flag="$_lt_dar_allow_undefined"
8824 case $cc_basename in
8825 ifort*) _lt_dar_can_shared=yes ;;
8826 *) _lt_dar_can_shared=$GCC ;;
8827 esac
8828 if test "$_lt_dar_can_shared" = "yes"; then
8829 output_verbose_link_cmd=echo
8830 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8831 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8832 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}"
8833 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}"
8835 else
8836 ld_shlibs=no
8841 dgux*)
8842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8843 hardcode_libdir_flag_spec='-L$libdir'
8844 hardcode_shlibpath_var=no
8847 freebsd1*)
8848 ld_shlibs=no
8851 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8852 # support. Future versions do this automatically, but an explicit c++rt0.o
8853 # does not break anything, and helps significantly (at the cost of a little
8854 # extra space).
8855 freebsd2.2*)
8856 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8857 hardcode_libdir_flag_spec='-R$libdir'
8858 hardcode_direct=yes
8859 hardcode_shlibpath_var=no
8862 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8863 freebsd2*)
8864 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8865 hardcode_direct=yes
8866 hardcode_minus_L=yes
8867 hardcode_shlibpath_var=no
8870 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8871 freebsd* | dragonfly*)
8872 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8873 hardcode_libdir_flag_spec='-R$libdir'
8874 hardcode_direct=yes
8875 hardcode_shlibpath_var=no
8878 hpux9*)
8879 if test "$GCC" = yes; then
8880 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'
8881 else
8882 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'
8884 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8885 hardcode_libdir_separator=:
8886 hardcode_direct=yes
8888 # hardcode_minus_L: Not really in the search PATH,
8889 # but as the default location of the library.
8890 hardcode_minus_L=yes
8891 export_dynamic_flag_spec='${wl}-E'
8894 hpux10*)
8895 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8896 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8897 else
8898 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8900 if test "$with_gnu_ld" = no; then
8901 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8902 hardcode_libdir_flag_spec_ld='+b $libdir'
8903 hardcode_libdir_separator=:
8904 hardcode_direct=yes
8905 hardcode_direct_absolute=yes
8906 export_dynamic_flag_spec='${wl}-E'
8907 # hardcode_minus_L: Not really in the search PATH,
8908 # but as the default location of the library.
8909 hardcode_minus_L=yes
8913 hpux11*)
8914 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8915 case $host_cpu in
8916 hppa*64*)
8917 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8919 ia64*)
8920 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8923 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8925 esac
8926 else
8927 case $host_cpu in
8928 hppa*64*)
8929 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8931 ia64*)
8932 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8935 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8937 esac
8939 if test "$with_gnu_ld" = no; then
8940 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8941 hardcode_libdir_separator=:
8943 case $host_cpu in
8944 hppa*64*|ia64*)
8945 hardcode_direct=no
8946 hardcode_shlibpath_var=no
8949 hardcode_direct=yes
8950 hardcode_direct_absolute=yes
8951 export_dynamic_flag_spec='${wl}-E'
8953 # hardcode_minus_L: Not really in the search PATH,
8954 # but as the default location of the library.
8955 hardcode_minus_L=yes
8957 esac
8961 irix5* | irix6* | nonstopux*)
8962 if test "$GCC" = yes; then
8963 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'
8964 # Try to use the -exported_symbol ld option, if it does not
8965 # work, assume that -exports_file does not work either and
8966 # implicitly export all symbols.
8967 save_LDFLAGS="$LDFLAGS"
8968 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8970 /* end confdefs.h. */
8971 int foo(void) {}
8972 _ACEOF
8973 if ac_fn_c_try_link "$LINENO"; then :
8974 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'
8977 rm -f core conftest.err conftest.$ac_objext \
8978 conftest$ac_exeext conftest.$ac_ext
8979 LDFLAGS="$save_LDFLAGS"
8980 else
8981 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'
8982 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'
8984 archive_cmds_need_lc='no'
8985 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8986 hardcode_libdir_separator=:
8987 inherit_rpath=yes
8988 link_all_deplibs=yes
8991 netbsd* | netbsdelf*-gnu)
8992 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8993 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8994 else
8995 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8997 hardcode_libdir_flag_spec='-R$libdir'
8998 hardcode_direct=yes
8999 hardcode_shlibpath_var=no
9002 newsos6)
9003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9004 hardcode_direct=yes
9005 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9006 hardcode_libdir_separator=:
9007 hardcode_shlibpath_var=no
9010 *nto* | *qnx*)
9013 openbsd*)
9014 if test -f /usr/libexec/ld.so; then
9015 hardcode_direct=yes
9016 hardcode_shlibpath_var=no
9017 hardcode_direct_absolute=yes
9018 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9019 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9020 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9021 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9022 export_dynamic_flag_spec='${wl}-E'
9023 else
9024 case $host_os in
9025 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9026 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9027 hardcode_libdir_flag_spec='-R$libdir'
9030 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9031 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9033 esac
9035 else
9036 ld_shlibs=no
9040 os2*)
9041 hardcode_libdir_flag_spec='-L$libdir'
9042 hardcode_minus_L=yes
9043 allow_undefined_flag=unsupported
9044 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'
9045 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9048 osf3*)
9049 if test "$GCC" = yes; then
9050 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9051 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'
9052 else
9053 allow_undefined_flag=' -expect_unresolved \*'
9054 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'
9056 archive_cmds_need_lc='no'
9057 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9058 hardcode_libdir_separator=:
9061 osf4* | osf5*) # as osf3* with the addition of -msym flag
9062 if test "$GCC" = yes; then
9063 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9064 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'
9065 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9066 else
9067 allow_undefined_flag=' -expect_unresolved \*'
9068 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'
9069 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~
9070 $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'
9072 # Both c and cxx compiler support -rpath directly
9073 hardcode_libdir_flag_spec='-rpath $libdir'
9075 archive_cmds_need_lc='no'
9076 hardcode_libdir_separator=:
9079 solaris*)
9080 no_undefined_flag=' -z defs'
9081 if test "$GCC" = yes; then
9082 wlarc='${wl}'
9083 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9084 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9085 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9086 else
9087 case `$CC -V 2>&1` in
9088 *"Compilers 5.0"*)
9089 wlarc=''
9090 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9091 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9092 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9095 wlarc='${wl}'
9096 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9097 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9098 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9100 esac
9102 hardcode_libdir_flag_spec='-R$libdir'
9103 hardcode_shlibpath_var=no
9104 case $host_os in
9105 solaris2.[0-5] | solaris2.[0-5].*) ;;
9107 # The compiler driver will combine and reorder linker options,
9108 # but understands `-z linker_flag'. GCC discards it without `$wl',
9109 # but is careful enough not to reorder.
9110 # Supported since Solaris 2.6 (maybe 2.5.1?)
9111 if test "$GCC" = yes; then
9112 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9113 else
9114 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9117 esac
9118 link_all_deplibs=yes
9121 sunos4*)
9122 if test "x$host_vendor" = xsequent; then
9123 # Use $CC to link under sequent, because it throws in some extra .o
9124 # files that make .init and .fini sections work.
9125 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9126 else
9127 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9129 hardcode_libdir_flag_spec='-L$libdir'
9130 hardcode_direct=yes
9131 hardcode_minus_L=yes
9132 hardcode_shlibpath_var=no
9135 sysv4)
9136 case $host_vendor in
9137 sni)
9138 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9139 hardcode_direct=yes # is this really true???
9141 siemens)
9142 ## LD is ld it makes a PLAMLIB
9143 ## CC just makes a GrossModule.
9144 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9145 reload_cmds='$CC -r -o $output$reload_objs'
9146 hardcode_direct=no
9148 motorola)
9149 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9150 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9152 esac
9153 runpath_var='LD_RUN_PATH'
9154 hardcode_shlibpath_var=no
9157 sysv4.3*)
9158 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9159 hardcode_shlibpath_var=no
9160 export_dynamic_flag_spec='-Bexport'
9163 sysv4*MP*)
9164 if test -d /usr/nec; then
9165 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9166 hardcode_shlibpath_var=no
9167 runpath_var=LD_RUN_PATH
9168 hardcode_runpath_var=yes
9169 ld_shlibs=yes
9173 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9174 no_undefined_flag='${wl}-z,text'
9175 archive_cmds_need_lc=no
9176 hardcode_shlibpath_var=no
9177 runpath_var='LD_RUN_PATH'
9179 if test "$GCC" = yes; then
9180 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9181 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9182 else
9183 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9184 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9188 sysv5* | sco3.2v5* | sco5v6*)
9189 # Note: We can NOT use -z defs as we might desire, because we do not
9190 # link with -lc, and that would cause any symbols used from libc to
9191 # always be unresolved, which means just about no library would
9192 # ever link correctly. If we're not using GNU ld we use -z text
9193 # though, which does catch some bad symbols but isn't as heavy-handed
9194 # as -z defs.
9195 no_undefined_flag='${wl}-z,text'
9196 allow_undefined_flag='${wl}-z,nodefs'
9197 archive_cmds_need_lc=no
9198 hardcode_shlibpath_var=no
9199 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9200 hardcode_libdir_separator=':'
9201 link_all_deplibs=yes
9202 export_dynamic_flag_spec='${wl}-Bexport'
9203 runpath_var='LD_RUN_PATH'
9205 if test "$GCC" = yes; then
9206 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9207 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9208 else
9209 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9210 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9214 uts4*)
9215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9216 hardcode_libdir_flag_spec='-L$libdir'
9217 hardcode_shlibpath_var=no
9221 ld_shlibs=no
9223 esac
9225 if test x$host_vendor = xsni; then
9226 case $host in
9227 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9228 export_dynamic_flag_spec='${wl}-Blargedynsym'
9230 esac
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9235 $as_echo "$ld_shlibs" >&6; }
9236 test "$ld_shlibs" = no && can_build_shared=no
9238 with_gnu_ld=$with_gnu_ld
9255 # Do we need to explicitly link libc?
9257 case "x$archive_cmds_need_lc" in
9258 x|xyes)
9259 # Assume -lc should be added
9260 archive_cmds_need_lc=yes
9262 if test "$enable_shared" = yes && test "$GCC" = yes; then
9263 case $archive_cmds in
9264 *'~'*)
9265 # FIXME: we may have to deal with multi-command sequences.
9267 '$CC '*)
9268 # Test whether the compiler implicitly links with -lc since on some
9269 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9270 # to ld, don't add -lc before -lgcc.
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9272 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9273 $RM conftest*
9274 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9277 (eval $ac_compile) 2>&5
9278 ac_status=$?
9279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9280 test $ac_status = 0; } 2>conftest.err; then
9281 soname=conftest
9282 lib=conftest
9283 libobjs=conftest.$ac_objext
9284 deplibs=
9285 wl=$lt_prog_compiler_wl
9286 pic_flag=$lt_prog_compiler_pic
9287 compiler_flags=-v
9288 linker_flags=-v
9289 verstring=
9290 output_objdir=.
9291 libname=conftest
9292 lt_save_allow_undefined_flag=$allow_undefined_flag
9293 allow_undefined_flag=
9294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9295 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9296 ac_status=$?
9297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9298 test $ac_status = 0; }
9299 then
9300 archive_cmds_need_lc=no
9301 else
9302 archive_cmds_need_lc=yes
9304 allow_undefined_flag=$lt_save_allow_undefined_flag
9305 else
9306 cat conftest.err 1>&5
9308 $RM conftest*
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9310 $as_echo "$archive_cmds_need_lc" >&6; }
9312 esac
9315 esac
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9474 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9476 if test "$GCC" = yes; then
9477 case $host_os in
9478 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9479 *) lt_awk_arg="/^libraries:/" ;;
9480 esac
9481 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9482 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9483 # if the path contains ";" then we assume it to be the separator
9484 # otherwise default to the standard path separator (i.e. ":") - it is
9485 # assumed that no part of a normal pathname contains ";" but that should
9486 # okay in the real world where ";" in dirpaths is itself problematic.
9487 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9488 else
9489 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9491 # Ok, now we have the path, separated by spaces, we can step through it
9492 # and add multilib dir if necessary.
9493 lt_tmp_lt_search_path_spec=
9494 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9495 for lt_sys_path in $lt_search_path_spec; do
9496 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9497 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9498 else
9499 test -d "$lt_sys_path" && \
9500 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9502 done
9503 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9504 BEGIN {RS=" "; FS="/|\n";} {
9505 lt_foo="";
9506 lt_count=0;
9507 for (lt_i = NF; lt_i > 0; lt_i--) {
9508 if ($lt_i != "" && $lt_i != ".") {
9509 if ($lt_i == "..") {
9510 lt_count++;
9511 } else {
9512 if (lt_count == 0) {
9513 lt_foo="/" $lt_i lt_foo;
9514 } else {
9515 lt_count--;
9520 if (lt_foo != "") { lt_freq[lt_foo]++; }
9521 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9523 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9524 else
9525 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9527 library_names_spec=
9528 libname_spec='lib$name'
9529 soname_spec=
9530 shrext_cmds=".so"
9531 postinstall_cmds=
9532 postuninstall_cmds=
9533 finish_cmds=
9534 finish_eval=
9535 shlibpath_var=
9536 shlibpath_overrides_runpath=unknown
9537 version_type=none
9538 dynamic_linker="$host_os ld.so"
9539 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9540 need_lib_prefix=unknown
9541 hardcode_into_libs=no
9543 # when you set need_version to no, make sure it does not cause -set_version
9544 # flags to be left without arguments
9545 need_version=unknown
9547 case $host_os in
9548 aix3*)
9549 version_type=linux
9550 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9551 shlibpath_var=LIBPATH
9553 # AIX 3 has no versioning support, so we append a major version to the name.
9554 soname_spec='${libname}${release}${shared_ext}$major'
9557 aix[4-9]*)
9558 version_type=linux
9559 need_lib_prefix=no
9560 need_version=no
9561 hardcode_into_libs=yes
9562 if test "$host_cpu" = ia64; then
9563 # AIX 5 supports IA64
9564 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9565 shlibpath_var=LD_LIBRARY_PATH
9566 else
9567 # With GCC up to 2.95.x, collect2 would create an import file
9568 # for dependence libraries. The import file would start with
9569 # the line `#! .'. This would cause the generated library to
9570 # depend on `.', always an invalid library. This was fixed in
9571 # development snapshots of GCC prior to 3.0.
9572 case $host_os in
9573 aix4 | aix4.[01] | aix4.[01].*)
9574 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9575 echo ' yes '
9576 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9578 else
9579 can_build_shared=no
9582 esac
9583 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9584 # soname into executable. Probably we can add versioning support to
9585 # collect2, so additional links can be useful in future.
9586 if test "$aix_use_runtimelinking" = yes; then
9587 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9588 # instead of lib<name>.a to let people know that these are not
9589 # typical AIX shared libraries.
9590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9591 else
9592 # We preserve .a as extension for shared libraries through AIX4.2
9593 # and later when we are not doing run time linking.
9594 library_names_spec='${libname}${release}.a $libname.a'
9595 soname_spec='${libname}${release}${shared_ext}$major'
9597 shlibpath_var=LIBPATH
9601 amigaos*)
9602 case $host_cpu in
9603 powerpc)
9604 # Since July 2007 AmigaOS4 officially supports .so libraries.
9605 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9608 m68k)
9609 library_names_spec='$libname.ixlibrary $libname.a'
9610 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9611 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'
9613 esac
9616 beos*)
9617 library_names_spec='${libname}${shared_ext}'
9618 dynamic_linker="$host_os ld.so"
9619 shlibpath_var=LIBRARY_PATH
9622 bsdi[45]*)
9623 version_type=linux
9624 need_version=no
9625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9626 soname_spec='${libname}${release}${shared_ext}$major'
9627 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9628 shlibpath_var=LD_LIBRARY_PATH
9629 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9630 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9631 # the default ld.so.conf also contains /usr/contrib/lib and
9632 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9633 # libtool to hard-code these into programs
9636 cygwin* | mingw* | pw32* | cegcc*)
9637 version_type=windows
9638 shrext_cmds=".dll"
9639 need_version=no
9640 need_lib_prefix=no
9642 case $GCC,$host_os in
9643 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9644 library_names_spec='$libname.dll.a'
9645 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9646 postinstall_cmds='base_file=`basename \${file}`~
9647 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9648 dldir=$destdir/`dirname \$dlpath`~
9649 test -d \$dldir || mkdir -p \$dldir~
9650 $install_prog $dir/$dlname \$dldir/$dlname~
9651 chmod a+x \$dldir/$dlname~
9652 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9653 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9655 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9656 dlpath=$dir/\$dldll~
9657 $RM \$dlpath'
9658 shlibpath_overrides_runpath=yes
9660 case $host_os in
9661 cygwin*)
9662 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9663 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9664 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9666 mingw* | cegcc*)
9667 # MinGW DLLs use traditional 'lib' prefix
9668 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9669 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9670 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9671 # It is most probably a Windows format PATH printed by
9672 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9673 # path with ; separators, and with drive letters. We can handle the
9674 # drive letters (cygwin fileutils understands them), so leave them,
9675 # especially as we might pass files found there to a mingw objdump,
9676 # which wouldn't understand a cygwinified path. Ahh.
9677 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9678 else
9679 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9682 pw32*)
9683 # pw32 DLLs use 'pw' prefix rather than 'lib'
9684 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9686 esac
9690 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9692 esac
9693 dynamic_linker='Win32 ld.exe'
9694 # FIXME: first we should search . and the directory the executable is in
9695 shlibpath_var=PATH
9698 darwin* | rhapsody*)
9699 dynamic_linker="$host_os dyld"
9700 version_type=darwin
9701 need_lib_prefix=no
9702 need_version=no
9703 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9704 soname_spec='${libname}${release}${major}$shared_ext'
9705 shlibpath_overrides_runpath=yes
9706 shlibpath_var=DYLD_LIBRARY_PATH
9707 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9709 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9710 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9713 dgux*)
9714 version_type=linux
9715 need_lib_prefix=no
9716 need_version=no
9717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9718 soname_spec='${libname}${release}${shared_ext}$major'
9719 shlibpath_var=LD_LIBRARY_PATH
9722 freebsd1*)
9723 dynamic_linker=no
9726 freebsd* | dragonfly*)
9727 # DragonFly does not have aout. When/if they implement a new
9728 # versioning mechanism, adjust this.
9729 if test -x /usr/bin/objformat; then
9730 objformat=`/usr/bin/objformat`
9731 else
9732 case $host_os in
9733 freebsd[123]*) objformat=aout ;;
9734 *) objformat=elf ;;
9735 esac
9737 version_type=freebsd-$objformat
9738 case $version_type in
9739 freebsd-elf*)
9740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9741 need_version=no
9742 need_lib_prefix=no
9744 freebsd-*)
9745 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9746 need_version=yes
9748 esac
9749 shlibpath_var=LD_LIBRARY_PATH
9750 case $host_os in
9751 freebsd2*)
9752 shlibpath_overrides_runpath=yes
9754 freebsd3.[01]* | freebsdelf3.[01]*)
9755 shlibpath_overrides_runpath=yes
9756 hardcode_into_libs=yes
9758 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9759 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9760 shlibpath_overrides_runpath=no
9761 hardcode_into_libs=yes
9763 *) # from 4.6 on, and DragonFly
9764 shlibpath_overrides_runpath=yes
9765 hardcode_into_libs=yes
9767 esac
9770 gnu*)
9771 version_type=linux
9772 need_lib_prefix=no
9773 need_version=no
9774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9775 soname_spec='${libname}${release}${shared_ext}$major'
9776 shlibpath_var=LD_LIBRARY_PATH
9777 hardcode_into_libs=yes
9780 hpux9* | hpux10* | hpux11*)
9781 # Give a soname corresponding to the major version so that dld.sl refuses to
9782 # link against other versions.
9783 version_type=sunos
9784 need_lib_prefix=no
9785 need_version=no
9786 case $host_cpu in
9787 ia64*)
9788 shrext_cmds='.so'
9789 hardcode_into_libs=yes
9790 dynamic_linker="$host_os dld.so"
9791 shlibpath_var=LD_LIBRARY_PATH
9792 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9794 soname_spec='${libname}${release}${shared_ext}$major'
9795 if test "X$HPUX_IA64_MODE" = X32; then
9796 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9797 else
9798 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9800 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9802 hppa*64*)
9803 shrext_cmds='.sl'
9804 hardcode_into_libs=yes
9805 dynamic_linker="$host_os dld.sl"
9806 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9807 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9809 soname_spec='${libname}${release}${shared_ext}$major'
9810 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9811 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9814 shrext_cmds='.sl'
9815 dynamic_linker="$host_os dld.sl"
9816 shlibpath_var=SHLIB_PATH
9817 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9819 soname_spec='${libname}${release}${shared_ext}$major'
9821 esac
9822 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9823 postinstall_cmds='chmod 555 $lib'
9826 interix[3-9]*)
9827 version_type=linux
9828 need_lib_prefix=no
9829 need_version=no
9830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9831 soname_spec='${libname}${release}${shared_ext}$major'
9832 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9833 shlibpath_var=LD_LIBRARY_PATH
9834 shlibpath_overrides_runpath=no
9835 hardcode_into_libs=yes
9838 irix5* | irix6* | nonstopux*)
9839 case $host_os in
9840 nonstopux*) version_type=nonstopux ;;
9842 if test "$lt_cv_prog_gnu_ld" = yes; then
9843 version_type=linux
9844 else
9845 version_type=irix
9846 fi ;;
9847 esac
9848 need_lib_prefix=no
9849 need_version=no
9850 soname_spec='${libname}${release}${shared_ext}$major'
9851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9852 case $host_os in
9853 irix5* | nonstopux*)
9854 libsuff= shlibsuff=
9857 case $LD in # libtool.m4 will add one of these switches to LD
9858 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9859 libsuff= shlibsuff= libmagic=32-bit;;
9860 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9861 libsuff=32 shlibsuff=N32 libmagic=N32;;
9862 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9863 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9864 *) libsuff= shlibsuff= libmagic=never-match;;
9865 esac
9867 esac
9868 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9869 shlibpath_overrides_runpath=no
9870 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9871 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9872 hardcode_into_libs=yes
9875 # No shared lib support for Linux oldld, aout, or coff.
9876 linux*oldld* | linux*aout* | linux*coff*)
9877 dynamic_linker=no
9880 # This must be Linux ELF.
9881 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9882 version_type=linux
9883 need_lib_prefix=no
9884 need_version=no
9885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9886 soname_spec='${libname}${release}${shared_ext}$major'
9887 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9888 shlibpath_var=LD_LIBRARY_PATH
9889 shlibpath_overrides_runpath=no
9890 # Some binutils ld are patched to set DT_RUNPATH
9891 save_LDFLAGS=$LDFLAGS
9892 save_libdir=$libdir
9893 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9894 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9896 /* end confdefs.h. */
9899 main ()
9903 return 0;
9905 _ACEOF
9906 if ac_fn_c_try_link "$LINENO"; then :
9907 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9908 shlibpath_overrides_runpath=yes
9911 rm -f core conftest.err conftest.$ac_objext \
9912 conftest$ac_exeext conftest.$ac_ext
9913 LDFLAGS=$save_LDFLAGS
9914 libdir=$save_libdir
9916 # This implies no fast_install, which is unacceptable.
9917 # Some rework will be needed to allow for fast_install
9918 # before this can be enabled.
9919 hardcode_into_libs=yes
9921 # Append ld.so.conf contents to the search path
9922 if test -f /etc/ld.so.conf; then
9923 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' ' '`
9924 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9927 # We used to test for /lib/ld.so.1 and disable shared libraries on
9928 # powerpc, because MkLinux only supported shared libraries with the
9929 # GNU dynamic linker. Since this was broken with cross compilers,
9930 # most powerpc-linux boxes support dynamic linking these days and
9931 # people can always --disable-shared, the test was removed, and we
9932 # assume the GNU/Linux dynamic linker is in use.
9933 dynamic_linker='GNU/Linux ld.so'
9936 netbsdelf*-gnu)
9937 version_type=linux
9938 need_lib_prefix=no
9939 need_version=no
9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9941 soname_spec='${libname}${release}${shared_ext}$major'
9942 shlibpath_var=LD_LIBRARY_PATH
9943 shlibpath_overrides_runpath=no
9944 hardcode_into_libs=yes
9945 dynamic_linker='NetBSD ld.elf_so'
9948 netbsd*)
9949 version_type=sunos
9950 need_lib_prefix=no
9951 need_version=no
9952 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9954 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9955 dynamic_linker='NetBSD (a.out) ld.so'
9956 else
9957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9958 soname_spec='${libname}${release}${shared_ext}$major'
9959 dynamic_linker='NetBSD ld.elf_so'
9961 shlibpath_var=LD_LIBRARY_PATH
9962 shlibpath_overrides_runpath=yes
9963 hardcode_into_libs=yes
9966 newsos6)
9967 version_type=linux
9968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9969 shlibpath_var=LD_LIBRARY_PATH
9970 shlibpath_overrides_runpath=yes
9973 *nto* | *qnx*)
9974 version_type=qnx
9975 need_lib_prefix=no
9976 need_version=no
9977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9978 soname_spec='${libname}${release}${shared_ext}$major'
9979 shlibpath_var=LD_LIBRARY_PATH
9980 shlibpath_overrides_runpath=no
9981 hardcode_into_libs=yes
9982 dynamic_linker='ldqnx.so'
9985 openbsd*)
9986 version_type=sunos
9987 sys_lib_dlsearch_path_spec="/usr/lib"
9988 need_lib_prefix=no
9989 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9990 case $host_os in
9991 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9992 *) need_version=no ;;
9993 esac
9994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9995 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9996 shlibpath_var=LD_LIBRARY_PATH
9997 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9998 case $host_os in
9999 openbsd2.[89] | openbsd2.[89].*)
10000 shlibpath_overrides_runpath=no
10003 shlibpath_overrides_runpath=yes
10005 esac
10006 else
10007 shlibpath_overrides_runpath=yes
10011 os2*)
10012 libname_spec='$name'
10013 shrext_cmds=".dll"
10014 need_lib_prefix=no
10015 library_names_spec='$libname${shared_ext} $libname.a'
10016 dynamic_linker='OS/2 ld.exe'
10017 shlibpath_var=LIBPATH
10020 osf3* | osf4* | osf5*)
10021 version_type=osf
10022 need_lib_prefix=no
10023 need_version=no
10024 soname_spec='${libname}${release}${shared_ext}$major'
10025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10026 shlibpath_var=LD_LIBRARY_PATH
10027 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10028 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10031 rdos*)
10032 dynamic_linker=no
10035 solaris*)
10036 version_type=linux
10037 need_lib_prefix=no
10038 need_version=no
10039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10040 soname_spec='${libname}${release}${shared_ext}$major'
10041 shlibpath_var=LD_LIBRARY_PATH
10042 shlibpath_overrides_runpath=yes
10043 hardcode_into_libs=yes
10044 # ldd complains unless libraries are executable
10045 postinstall_cmds='chmod +x $lib'
10048 sunos4*)
10049 version_type=sunos
10050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10051 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10052 shlibpath_var=LD_LIBRARY_PATH
10053 shlibpath_overrides_runpath=yes
10054 if test "$with_gnu_ld" = yes; then
10055 need_lib_prefix=no
10057 need_version=yes
10060 sysv4 | sysv4.3*)
10061 version_type=linux
10062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10063 soname_spec='${libname}${release}${shared_ext}$major'
10064 shlibpath_var=LD_LIBRARY_PATH
10065 case $host_vendor in
10066 sni)
10067 shlibpath_overrides_runpath=no
10068 need_lib_prefix=no
10069 runpath_var=LD_RUN_PATH
10071 siemens)
10072 need_lib_prefix=no
10074 motorola)
10075 need_lib_prefix=no
10076 need_version=no
10077 shlibpath_overrides_runpath=no
10078 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10080 esac
10083 sysv4*MP*)
10084 if test -d /usr/nec ;then
10085 version_type=linux
10086 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10087 soname_spec='$libname${shared_ext}.$major'
10088 shlibpath_var=LD_LIBRARY_PATH
10092 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10093 version_type=freebsd-elf
10094 need_lib_prefix=no
10095 need_version=no
10096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10097 soname_spec='${libname}${release}${shared_ext}$major'
10098 shlibpath_var=LD_LIBRARY_PATH
10099 shlibpath_overrides_runpath=yes
10100 hardcode_into_libs=yes
10101 if test "$with_gnu_ld" = yes; then
10102 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10103 else
10104 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10105 case $host_os in
10106 sco3.2v5*)
10107 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10109 esac
10111 sys_lib_dlsearch_path_spec='/usr/lib'
10114 tpf*)
10115 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10116 version_type=linux
10117 need_lib_prefix=no
10118 need_version=no
10119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10120 shlibpath_var=LD_LIBRARY_PATH
10121 shlibpath_overrides_runpath=no
10122 hardcode_into_libs=yes
10125 uts4*)
10126 version_type=linux
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10128 soname_spec='${libname}${release}${shared_ext}$major'
10129 shlibpath_var=LD_LIBRARY_PATH
10133 dynamic_linker=no
10135 esac
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10137 $as_echo "$dynamic_linker" >&6; }
10138 test "$dynamic_linker" = no && can_build_shared=no
10140 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10141 if test "$GCC" = yes; then
10142 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10145 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10146 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10148 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10149 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10239 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10240 hardcode_action=
10241 if test -n "$hardcode_libdir_flag_spec" ||
10242 test -n "$runpath_var" ||
10243 test "X$hardcode_automatic" = "Xyes" ; then
10245 # We can hardcode non-existent directories.
10246 if test "$hardcode_direct" != no &&
10247 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10248 # have to relink, otherwise we might link with an installed library
10249 # when we should be linking with a yet-to-be-installed one
10250 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10251 test "$hardcode_minus_L" != no; then
10252 # Linking always hardcodes the temporary library directory.
10253 hardcode_action=relink
10254 else
10255 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10256 hardcode_action=immediate
10258 else
10259 # We cannot hardcode anything, or else we can only hardcode existing
10260 # directories.
10261 hardcode_action=unsupported
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10264 $as_echo "$hardcode_action" >&6; }
10266 if test "$hardcode_action" = relink ||
10267 test "$inherit_rpath" = yes; then
10268 # Fast installation is not supported
10269 enable_fast_install=no
10270 elif test "$shlibpath_overrides_runpath" = yes ||
10271 test "$enable_shared" = no; then
10272 # Fast installation is not necessary
10273 enable_fast_install=needless
10281 if test "x$enable_dlopen" != xyes; then
10282 enable_dlopen=unknown
10283 enable_dlopen_self=unknown
10284 enable_dlopen_self_static=unknown
10285 else
10286 lt_cv_dlopen=no
10287 lt_cv_dlopen_libs=
10289 case $host_os in
10290 beos*)
10291 lt_cv_dlopen="load_add_on"
10292 lt_cv_dlopen_libs=
10293 lt_cv_dlopen_self=yes
10296 mingw* | pw32* | cegcc*)
10297 lt_cv_dlopen="LoadLibrary"
10298 lt_cv_dlopen_libs=
10301 cygwin*)
10302 lt_cv_dlopen="dlopen"
10303 lt_cv_dlopen_libs=
10306 darwin*)
10307 # if libdl is installed we need to link against it
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10309 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10310 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10311 $as_echo_n "(cached) " >&6
10312 else
10313 ac_check_lib_save_LIBS=$LIBS
10314 LIBS="-ldl $LIBS"
10315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10316 /* end confdefs.h. */
10318 /* Override any GCC internal prototype to avoid an error.
10319 Use char because int might match the return type of a GCC
10320 builtin and then its argument prototype would still apply. */
10321 #ifdef __cplusplus
10322 extern "C"
10323 #endif
10324 char dlopen ();
10326 main ()
10328 return dlopen ();
10330 return 0;
10332 _ACEOF
10333 if ac_fn_c_try_link "$LINENO"; then :
10334 ac_cv_lib_dl_dlopen=yes
10335 else
10336 ac_cv_lib_dl_dlopen=no
10338 rm -f core conftest.err conftest.$ac_objext \
10339 conftest$ac_exeext conftest.$ac_ext
10340 LIBS=$ac_check_lib_save_LIBS
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10343 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10344 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10345 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10346 else
10348 lt_cv_dlopen="dyld"
10349 lt_cv_dlopen_libs=
10350 lt_cv_dlopen_self=yes
10357 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10358 if test "x$ac_cv_func_shl_load" = x""yes; then :
10359 lt_cv_dlopen="shl_load"
10360 else
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10362 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10363 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10364 $as_echo_n "(cached) " >&6
10365 else
10366 ac_check_lib_save_LIBS=$LIBS
10367 LIBS="-ldld $LIBS"
10368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10369 /* end confdefs.h. */
10371 /* Override any GCC internal prototype to avoid an error.
10372 Use char because int might match the return type of a GCC
10373 builtin and then its argument prototype would still apply. */
10374 #ifdef __cplusplus
10375 extern "C"
10376 #endif
10377 char shl_load ();
10379 main ()
10381 return shl_load ();
10383 return 0;
10385 _ACEOF
10386 if ac_fn_c_try_link "$LINENO"; then :
10387 ac_cv_lib_dld_shl_load=yes
10388 else
10389 ac_cv_lib_dld_shl_load=no
10391 rm -f core conftest.err conftest.$ac_objext \
10392 conftest$ac_exeext conftest.$ac_ext
10393 LIBS=$ac_check_lib_save_LIBS
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10396 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10397 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10398 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10399 else
10400 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10401 if test "x$ac_cv_func_dlopen" = x""yes; then :
10402 lt_cv_dlopen="dlopen"
10403 else
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10405 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10406 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10407 $as_echo_n "(cached) " >&6
10408 else
10409 ac_check_lib_save_LIBS=$LIBS
10410 LIBS="-ldl $LIBS"
10411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412 /* end confdefs.h. */
10414 /* Override any GCC internal prototype to avoid an error.
10415 Use char because int might match the return type of a GCC
10416 builtin and then its argument prototype would still apply. */
10417 #ifdef __cplusplus
10418 extern "C"
10419 #endif
10420 char dlopen ();
10422 main ()
10424 return dlopen ();
10426 return 0;
10428 _ACEOF
10429 if ac_fn_c_try_link "$LINENO"; then :
10430 ac_cv_lib_dl_dlopen=yes
10431 else
10432 ac_cv_lib_dl_dlopen=no
10434 rm -f core conftest.err conftest.$ac_objext \
10435 conftest$ac_exeext conftest.$ac_ext
10436 LIBS=$ac_check_lib_save_LIBS
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10439 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10440 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10441 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10442 else
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10444 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10445 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10446 $as_echo_n "(cached) " >&6
10447 else
10448 ac_check_lib_save_LIBS=$LIBS
10449 LIBS="-lsvld $LIBS"
10450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10451 /* end confdefs.h. */
10453 /* Override any GCC internal prototype to avoid an error.
10454 Use char because int might match the return type of a GCC
10455 builtin and then its argument prototype would still apply. */
10456 #ifdef __cplusplus
10457 extern "C"
10458 #endif
10459 char dlopen ();
10461 main ()
10463 return dlopen ();
10465 return 0;
10467 _ACEOF
10468 if ac_fn_c_try_link "$LINENO"; then :
10469 ac_cv_lib_svld_dlopen=yes
10470 else
10471 ac_cv_lib_svld_dlopen=no
10473 rm -f core conftest.err conftest.$ac_objext \
10474 conftest$ac_exeext conftest.$ac_ext
10475 LIBS=$ac_check_lib_save_LIBS
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10478 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10479 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10480 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10481 else
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10483 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10484 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10485 $as_echo_n "(cached) " >&6
10486 else
10487 ac_check_lib_save_LIBS=$LIBS
10488 LIBS="-ldld $LIBS"
10489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10490 /* end confdefs.h. */
10492 /* Override any GCC internal prototype to avoid an error.
10493 Use char because int might match the return type of a GCC
10494 builtin and then its argument prototype would still apply. */
10495 #ifdef __cplusplus
10496 extern "C"
10497 #endif
10498 char dld_link ();
10500 main ()
10502 return dld_link ();
10504 return 0;
10506 _ACEOF
10507 if ac_fn_c_try_link "$LINENO"; then :
10508 ac_cv_lib_dld_dld_link=yes
10509 else
10510 ac_cv_lib_dld_dld_link=no
10512 rm -f core conftest.err conftest.$ac_objext \
10513 conftest$ac_exeext conftest.$ac_ext
10514 LIBS=$ac_check_lib_save_LIBS
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10517 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10518 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10519 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10538 esac
10540 if test "x$lt_cv_dlopen" != xno; then
10541 enable_dlopen=yes
10542 else
10543 enable_dlopen=no
10546 case $lt_cv_dlopen in
10547 dlopen)
10548 save_CPPFLAGS="$CPPFLAGS"
10549 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10551 save_LDFLAGS="$LDFLAGS"
10552 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10554 save_LIBS="$LIBS"
10555 LIBS="$lt_cv_dlopen_libs $LIBS"
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10558 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10559 if test "${lt_cv_dlopen_self+set}" = set; then :
10560 $as_echo_n "(cached) " >&6
10561 else
10562 if test "$cross_compiling" = yes; then :
10563 lt_cv_dlopen_self=cross
10564 else
10565 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10566 lt_status=$lt_dlunknown
10567 cat > conftest.$ac_ext <<_LT_EOF
10568 #line 10568 "configure"
10569 #include "confdefs.h"
10571 #if HAVE_DLFCN_H
10572 #include <dlfcn.h>
10573 #endif
10575 #include <stdio.h>
10577 #ifdef RTLD_GLOBAL
10578 # define LT_DLGLOBAL RTLD_GLOBAL
10579 #else
10580 # ifdef DL_GLOBAL
10581 # define LT_DLGLOBAL DL_GLOBAL
10582 # else
10583 # define LT_DLGLOBAL 0
10584 # endif
10585 #endif
10587 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10588 find out it does not work in some platform. */
10589 #ifndef LT_DLLAZY_OR_NOW
10590 # ifdef RTLD_LAZY
10591 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10592 # else
10593 # ifdef DL_LAZY
10594 # define LT_DLLAZY_OR_NOW DL_LAZY
10595 # else
10596 # ifdef RTLD_NOW
10597 # define LT_DLLAZY_OR_NOW RTLD_NOW
10598 # else
10599 # ifdef DL_NOW
10600 # define LT_DLLAZY_OR_NOW DL_NOW
10601 # else
10602 # define LT_DLLAZY_OR_NOW 0
10603 # endif
10604 # endif
10605 # endif
10606 # endif
10607 #endif
10609 void fnord() { int i=42;}
10610 int main ()
10612 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10613 int status = $lt_dlunknown;
10615 if (self)
10617 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10618 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10619 /* dlclose (self); */
10621 else
10622 puts (dlerror ());
10624 return status;
10626 _LT_EOF
10627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10628 (eval $ac_link) 2>&5
10629 ac_status=$?
10630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10631 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10632 (./conftest; exit; ) >&5 2>/dev/null
10633 lt_status=$?
10634 case x$lt_status in
10635 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10636 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10637 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10638 esac
10639 else :
10640 # compilation failed
10641 lt_cv_dlopen_self=no
10644 rm -fr conftest*
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10649 $as_echo "$lt_cv_dlopen_self" >&6; }
10651 if test "x$lt_cv_dlopen_self" = xyes; then
10652 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10654 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10655 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10656 $as_echo_n "(cached) " >&6
10657 else
10658 if test "$cross_compiling" = yes; then :
10659 lt_cv_dlopen_self_static=cross
10660 else
10661 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10662 lt_status=$lt_dlunknown
10663 cat > conftest.$ac_ext <<_LT_EOF
10664 #line 10664 "configure"
10665 #include "confdefs.h"
10667 #if HAVE_DLFCN_H
10668 #include <dlfcn.h>
10669 #endif
10671 #include <stdio.h>
10673 #ifdef RTLD_GLOBAL
10674 # define LT_DLGLOBAL RTLD_GLOBAL
10675 #else
10676 # ifdef DL_GLOBAL
10677 # define LT_DLGLOBAL DL_GLOBAL
10678 # else
10679 # define LT_DLGLOBAL 0
10680 # endif
10681 #endif
10683 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10684 find out it does not work in some platform. */
10685 #ifndef LT_DLLAZY_OR_NOW
10686 # ifdef RTLD_LAZY
10687 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10688 # else
10689 # ifdef DL_LAZY
10690 # define LT_DLLAZY_OR_NOW DL_LAZY
10691 # else
10692 # ifdef RTLD_NOW
10693 # define LT_DLLAZY_OR_NOW RTLD_NOW
10694 # else
10695 # ifdef DL_NOW
10696 # define LT_DLLAZY_OR_NOW DL_NOW
10697 # else
10698 # define LT_DLLAZY_OR_NOW 0
10699 # endif
10700 # endif
10701 # endif
10702 # endif
10703 #endif
10705 void fnord() { int i=42;}
10706 int main ()
10708 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10709 int status = $lt_dlunknown;
10711 if (self)
10713 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10714 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10715 /* dlclose (self); */
10717 else
10718 puts (dlerror ());
10720 return status;
10722 _LT_EOF
10723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10724 (eval $ac_link) 2>&5
10725 ac_status=$?
10726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10727 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10728 (./conftest; exit; ) >&5 2>/dev/null
10729 lt_status=$?
10730 case x$lt_status in
10731 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10732 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10733 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10734 esac
10735 else :
10736 # compilation failed
10737 lt_cv_dlopen_self_static=no
10740 rm -fr conftest*
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10745 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10748 CPPFLAGS="$save_CPPFLAGS"
10749 LDFLAGS="$save_LDFLAGS"
10750 LIBS="$save_LIBS"
10752 esac
10754 case $lt_cv_dlopen_self in
10755 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10756 *) enable_dlopen_self=unknown ;;
10757 esac
10759 case $lt_cv_dlopen_self_static in
10760 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10761 *) enable_dlopen_self_static=unknown ;;
10762 esac
10781 striplib=
10782 old_striplib=
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10784 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10785 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10786 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10787 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10789 $as_echo "yes" >&6; }
10790 else
10791 # FIXME - insert some real tests, host_os isn't really good enough
10792 case $host_os in
10793 darwin*)
10794 if test -n "$STRIP" ; then
10795 striplib="$STRIP -x"
10796 old_striplib="$STRIP -S"
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10798 $as_echo "yes" >&6; }
10799 else
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10801 $as_echo "no" >&6; }
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10806 $as_echo "no" >&6; }
10808 esac
10822 # Report which library types will actually be built
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10824 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10826 $as_echo "$can_build_shared" >&6; }
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10829 $as_echo_n "checking whether to build shared libraries... " >&6; }
10830 test "$can_build_shared" = "no" && enable_shared=no
10832 # On AIX, shared libraries and static libraries use the same namespace, and
10833 # are all built from PIC.
10834 case $host_os in
10835 aix3*)
10836 test "$enable_shared" = yes && enable_static=no
10837 if test -n "$RANLIB"; then
10838 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10839 postinstall_cmds='$RANLIB $lib'
10843 aix[4-9]*)
10844 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10845 test "$enable_shared" = yes && enable_static=no
10848 esac
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10850 $as_echo "$enable_shared" >&6; }
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10853 $as_echo_n "checking whether to build static libraries... " >&6; }
10854 # Make sure either enable_shared or enable_static is yes.
10855 test "$enable_shared" = yes || enable_static=yes
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10857 $as_echo "$enable_static" >&6; }
10863 ac_ext=c
10864 ac_cpp='$CPP $CPPFLAGS'
10865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10869 CC="$lt_save_CC"
10883 ac_config_commands="$ac_config_commands libtool"
10888 # Only expand once:
10892 if test 0 = "0"; then
10893 supported_build=yes
10894 CPPFLAGS="$CPPFLAGS -DNDEBUG"
10895 else
10896 supported_build=no
10897 if test "x$GCC" = "xyes" ; then
10898 CFLAGS="$CFLAGS -O0"
10899 CXXFLAGS="$CXXFLAGS -O0"
10902 if test "x$supported_build" = "xno"; then
10903 TR_UNSTABLE_TRUE=
10904 TR_UNSTABLE_FALSE='#'
10905 else
10906 TR_UNSTABLE_TRUE='#'
10907 TR_UNSTABLE_FALSE=
10913 ## MANDATORY for everything
10916 CURL_MINIMUM=7.15.4
10918 LIBEVENT_MINIMUM=2.0.10
10920 OPENSSL_MINIMUM=0.9.4
10925 ## MANDATORY for the GTK+ client
10928 GLIB_MINIMUM=2.8.0
10930 GTK_MINIMUM=2.8.0
10935 ## OPTIONAL for the GTK+ client
10938 # play the XDG "download done" sound...
10939 CANBERRA_MINIMUM=0.10
10941 # inhibit hibernation when a torrent is active...
10942 DBUS_GLIB_MINIMUM=0.70
10944 # implement "watch" directories to use new .torrent files...
10945 GIO_MINIMUM=2.15.5
10947 # pop up a "download done" notice...
10948 LIBNOTIFY_MINIMUM=0.4.3
10950 # create the tray icon with AppIndicator
10951 LIBAPPINDICATOR_MINIMUM=0.0.11
10955 ac_ext=c
10956 ac_cpp='$CPP $CPPFLAGS'
10957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10960 if test -n "$ac_tool_prefix"; then
10961 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10962 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10964 $as_echo_n "checking for $ac_word... " >&6; }
10965 if test "${ac_cv_prog_CC+set}" = set; then :
10966 $as_echo_n "(cached) " >&6
10967 else
10968 if test -n "$CC"; then
10969 ac_cv_prog_CC="$CC" # Let the user override the test.
10970 else
10971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10972 for as_dir in $PATH
10974 IFS=$as_save_IFS
10975 test -z "$as_dir" && as_dir=.
10976 for ac_exec_ext in '' $ac_executable_extensions; do
10977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10978 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10980 break 2
10982 done
10983 done
10984 IFS=$as_save_IFS
10988 CC=$ac_cv_prog_CC
10989 if test -n "$CC"; then
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10991 $as_echo "$CC" >&6; }
10992 else
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10994 $as_echo "no" >&6; }
10999 if test -z "$ac_cv_prog_CC"; then
11000 ac_ct_CC=$CC
11001 # Extract the first word of "gcc", so it can be a program name with args.
11002 set dummy gcc; ac_word=$2
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11004 $as_echo_n "checking for $ac_word... " >&6; }
11005 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11006 $as_echo_n "(cached) " >&6
11007 else
11008 if test -n "$ac_ct_CC"; then
11009 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11010 else
11011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11012 for as_dir in $PATH
11014 IFS=$as_save_IFS
11015 test -z "$as_dir" && as_dir=.
11016 for ac_exec_ext in '' $ac_executable_extensions; do
11017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11018 ac_cv_prog_ac_ct_CC="gcc"
11019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11020 break 2
11022 done
11023 done
11024 IFS=$as_save_IFS
11028 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11029 if test -n "$ac_ct_CC"; then
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11031 $as_echo "$ac_ct_CC" >&6; }
11032 else
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11034 $as_echo "no" >&6; }
11037 if test "x$ac_ct_CC" = x; then
11038 CC=""
11039 else
11040 case $cross_compiling:$ac_tool_warned in
11041 yes:)
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11044 ac_tool_warned=yes ;;
11045 esac
11046 CC=$ac_ct_CC
11048 else
11049 CC="$ac_cv_prog_CC"
11052 if test -z "$CC"; then
11053 if test -n "$ac_tool_prefix"; then
11054 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11055 set dummy ${ac_tool_prefix}cc; ac_word=$2
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11057 $as_echo_n "checking for $ac_word... " >&6; }
11058 if test "${ac_cv_prog_CC+set}" = set; then :
11059 $as_echo_n "(cached) " >&6
11060 else
11061 if test -n "$CC"; then
11062 ac_cv_prog_CC="$CC" # Let the user override the test.
11063 else
11064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11065 for as_dir in $PATH
11067 IFS=$as_save_IFS
11068 test -z "$as_dir" && as_dir=.
11069 for ac_exec_ext in '' $ac_executable_extensions; do
11070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11071 ac_cv_prog_CC="${ac_tool_prefix}cc"
11072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11073 break 2
11075 done
11076 done
11077 IFS=$as_save_IFS
11081 CC=$ac_cv_prog_CC
11082 if test -n "$CC"; then
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11084 $as_echo "$CC" >&6; }
11085 else
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11087 $as_echo "no" >&6; }
11093 if test -z "$CC"; then
11094 # Extract the first word of "cc", so it can be a program name with args.
11095 set dummy cc; ac_word=$2
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11097 $as_echo_n "checking for $ac_word... " >&6; }
11098 if test "${ac_cv_prog_CC+set}" = set; then :
11099 $as_echo_n "(cached) " >&6
11100 else
11101 if test -n "$CC"; then
11102 ac_cv_prog_CC="$CC" # Let the user override the test.
11103 else
11104 ac_prog_rejected=no
11105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11106 for as_dir in $PATH
11108 IFS=$as_save_IFS
11109 test -z "$as_dir" && as_dir=.
11110 for ac_exec_ext in '' $ac_executable_extensions; do
11111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11112 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11113 ac_prog_rejected=yes
11114 continue
11116 ac_cv_prog_CC="cc"
11117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11118 break 2
11120 done
11121 done
11122 IFS=$as_save_IFS
11124 if test $ac_prog_rejected = yes; then
11125 # We found a bogon in the path, so make sure we never use it.
11126 set dummy $ac_cv_prog_CC
11127 shift
11128 if test $# != 0; then
11129 # We chose a different compiler from the bogus one.
11130 # However, it has the same basename, so the bogon will be chosen
11131 # first if we set CC to just the basename; use the full file name.
11132 shift
11133 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11138 CC=$ac_cv_prog_CC
11139 if test -n "$CC"; then
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11141 $as_echo "$CC" >&6; }
11142 else
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11144 $as_echo "no" >&6; }
11149 if test -z "$CC"; then
11150 if test -n "$ac_tool_prefix"; then
11151 for ac_prog in cl.exe
11153 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11154 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11156 $as_echo_n "checking for $ac_word... " >&6; }
11157 if test "${ac_cv_prog_CC+set}" = set; then :
11158 $as_echo_n "(cached) " >&6
11159 else
11160 if test -n "$CC"; then
11161 ac_cv_prog_CC="$CC" # Let the user override the test.
11162 else
11163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164 for as_dir in $PATH
11166 IFS=$as_save_IFS
11167 test -z "$as_dir" && as_dir=.
11168 for ac_exec_ext in '' $ac_executable_extensions; do
11169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11170 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11172 break 2
11174 done
11175 done
11176 IFS=$as_save_IFS
11180 CC=$ac_cv_prog_CC
11181 if test -n "$CC"; then
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11183 $as_echo "$CC" >&6; }
11184 else
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11186 $as_echo "no" >&6; }
11190 test -n "$CC" && break
11191 done
11193 if test -z "$CC"; then
11194 ac_ct_CC=$CC
11195 for ac_prog in cl.exe
11197 # Extract the first word of "$ac_prog", so it can be a program name with args.
11198 set dummy $ac_prog; ac_word=$2
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11200 $as_echo_n "checking for $ac_word... " >&6; }
11201 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11202 $as_echo_n "(cached) " >&6
11203 else
11204 if test -n "$ac_ct_CC"; then
11205 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11206 else
11207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11208 for as_dir in $PATH
11210 IFS=$as_save_IFS
11211 test -z "$as_dir" && as_dir=.
11212 for ac_exec_ext in '' $ac_executable_extensions; do
11213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11214 ac_cv_prog_ac_ct_CC="$ac_prog"
11215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11216 break 2
11218 done
11219 done
11220 IFS=$as_save_IFS
11224 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11225 if test -n "$ac_ct_CC"; then
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11227 $as_echo "$ac_ct_CC" >&6; }
11228 else
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11230 $as_echo "no" >&6; }
11234 test -n "$ac_ct_CC" && break
11235 done
11237 if test "x$ac_ct_CC" = x; then
11238 CC=""
11239 else
11240 case $cross_compiling:$ac_tool_warned in
11241 yes:)
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11244 ac_tool_warned=yes ;;
11245 esac
11246 CC=$ac_ct_CC
11253 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11255 as_fn_error $? "no acceptable C compiler found in \$PATH
11256 See \`config.log' for more details" "$LINENO" 5 ; }
11258 # Provide some information about the compiler.
11259 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11260 set X $ac_compile
11261 ac_compiler=$2
11262 for ac_option in --version -v -V -qversion; do
11263 { { ac_try="$ac_compiler $ac_option >&5"
11264 case "(($ac_try" in
11265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11266 *) ac_try_echo=$ac_try;;
11267 esac
11268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11269 $as_echo "$ac_try_echo"; } >&5
11270 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11271 ac_status=$?
11272 if test -s conftest.err; then
11273 sed '10a\
11274 ... rest of stderr output deleted ...
11275 10q' conftest.err >conftest.er1
11276 cat conftest.er1 >&5
11278 rm -f conftest.er1 conftest.err
11279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11280 test $ac_status = 0; }
11281 done
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11284 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11285 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11286 $as_echo_n "(cached) " >&6
11287 else
11288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11289 /* end confdefs.h. */
11292 main ()
11294 #ifndef __GNUC__
11295 choke me
11296 #endif
11299 return 0;
11301 _ACEOF
11302 if ac_fn_c_try_compile "$LINENO"; then :
11303 ac_compiler_gnu=yes
11304 else
11305 ac_compiler_gnu=no
11307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11308 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11312 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11313 if test $ac_compiler_gnu = yes; then
11314 GCC=yes
11315 else
11316 GCC=
11318 ac_test_CFLAGS=${CFLAGS+set}
11319 ac_save_CFLAGS=$CFLAGS
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11321 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11322 if test "${ac_cv_prog_cc_g+set}" = set; then :
11323 $as_echo_n "(cached) " >&6
11324 else
11325 ac_save_c_werror_flag=$ac_c_werror_flag
11326 ac_c_werror_flag=yes
11327 ac_cv_prog_cc_g=no
11328 CFLAGS="-g"
11329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11330 /* end confdefs.h. */
11333 main ()
11337 return 0;
11339 _ACEOF
11340 if ac_fn_c_try_compile "$LINENO"; then :
11341 ac_cv_prog_cc_g=yes
11342 else
11343 CFLAGS=""
11344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11345 /* end confdefs.h. */
11348 main ()
11352 return 0;
11354 _ACEOF
11355 if ac_fn_c_try_compile "$LINENO"; then :
11357 else
11358 ac_c_werror_flag=$ac_save_c_werror_flag
11359 CFLAGS="-g"
11360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11361 /* end confdefs.h. */
11364 main ()
11368 return 0;
11370 _ACEOF
11371 if ac_fn_c_try_compile "$LINENO"; then :
11372 ac_cv_prog_cc_g=yes
11374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11379 ac_c_werror_flag=$ac_save_c_werror_flag
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11382 $as_echo "$ac_cv_prog_cc_g" >&6; }
11383 if test "$ac_test_CFLAGS" = set; then
11384 CFLAGS=$ac_save_CFLAGS
11385 elif test $ac_cv_prog_cc_g = yes; then
11386 if test "$GCC" = yes; then
11387 CFLAGS="-O2"
11388 else
11389 CFLAGS="-g"
11391 else
11392 if test "$GCC" = yes; then
11393 CFLAGS="-O2"
11394 else
11395 CFLAGS=
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11399 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11400 if test "${ac_cv_prog_cc_c89+set}" = set; then :
11401 $as_echo_n "(cached) " >&6
11402 else
11403 ac_cv_prog_cc_c89=no
11404 ac_save_CC=$CC
11405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11406 /* end confdefs.h. */
11407 #include <stdarg.h>
11408 #include <stdio.h>
11409 #include <sys/types.h>
11410 #include <sys/stat.h>
11411 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11412 struct buf { int x; };
11413 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11414 static char *e (p, i)
11415 char **p;
11416 int i;
11418 return p[i];
11420 static char *f (char * (*g) (char **, int), char **p, ...)
11422 char *s;
11423 va_list v;
11424 va_start (v,p);
11425 s = g (p, va_arg (v,int));
11426 va_end (v);
11427 return s;
11430 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11431 function prototypes and stuff, but not '\xHH' hex character constants.
11432 These don't provoke an error unfortunately, instead are silently treated
11433 as 'x'. The following induces an error, until -std is added to get
11434 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11435 array size at least. It's necessary to write '\x00'==0 to get something
11436 that's true only with -std. */
11437 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11439 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11440 inside strings and character constants. */
11441 #define FOO(x) 'x'
11442 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11444 int test (int i, double x);
11445 struct s1 {int (*f) (int a);};
11446 struct s2 {int (*f) (double a);};
11447 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11448 int argc;
11449 char **argv;
11451 main ()
11453 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11455 return 0;
11457 _ACEOF
11458 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11459 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11461 CC="$ac_save_CC $ac_arg"
11462 if ac_fn_c_try_compile "$LINENO"; then :
11463 ac_cv_prog_cc_c89=$ac_arg
11465 rm -f core conftest.err conftest.$ac_objext
11466 test "x$ac_cv_prog_cc_c89" != "xno" && break
11467 done
11468 rm -f conftest.$ac_ext
11469 CC=$ac_save_CC
11472 # AC_CACHE_VAL
11473 case "x$ac_cv_prog_cc_c89" in
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11476 $as_echo "none needed" >&6; } ;;
11477 xno)
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11479 $as_echo "unsupported" >&6; } ;;
11481 CC="$CC $ac_cv_prog_cc_c89"
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11483 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11484 esac
11485 if test "x$ac_cv_prog_cc_c89" != xno; then :
11489 ac_ext=c
11490 ac_cpp='$CPP $CPPFLAGS'
11491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11495 depcc="$CC" am_compiler_list=
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11498 $as_echo_n "checking dependency style of $depcc... " >&6; }
11499 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11500 $as_echo_n "(cached) " >&6
11501 else
11502 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11503 # We make a subdir and do the tests there. Otherwise we can end up
11504 # making bogus files that we don't know about and never remove. For
11505 # instance it was reported that on HP-UX the gcc test will end up
11506 # making a dummy file named `D' -- because `-MD' means `put the output
11507 # in D'.
11508 mkdir conftest.dir
11509 # Copy depcomp to subdir because otherwise we won't find it if we're
11510 # using a relative directory.
11511 cp "$am_depcomp" conftest.dir
11512 cd conftest.dir
11513 # We will build objects and dependencies in a subdirectory because
11514 # it helps to detect inapplicable dependency modes. For instance
11515 # both Tru64's cc and ICC support -MD to output dependencies as a
11516 # side effect of compilation, but ICC will put the dependencies in
11517 # the current directory while Tru64 will put them in the object
11518 # directory.
11519 mkdir sub
11521 am_cv_CC_dependencies_compiler_type=none
11522 if test "$am_compiler_list" = ""; then
11523 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11525 am__universal=false
11526 case " $depcc " in #(
11527 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11528 esac
11530 for depmode in $am_compiler_list; do
11531 # Setup a source with many dependencies, because some compilers
11532 # like to wrap large dependency lists on column 80 (with \), and
11533 # we should not choose a depcomp mode which is confused by this.
11535 # We need to recreate these files for each test, as the compiler may
11536 # overwrite some of them when testing with obscure command lines.
11537 # This happens at least with the AIX C compiler.
11538 : > sub/conftest.c
11539 for i in 1 2 3 4 5 6; do
11540 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11541 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11542 # Solaris 8's {/usr,}/bin/sh.
11543 touch sub/conftst$i.h
11544 done
11545 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11547 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11548 # mode. It turns out that the SunPro C++ compiler does not properly
11549 # handle `-M -o', and we need to detect this. Also, some Intel
11550 # versions had trouble with output in subdirs
11551 am__obj=sub/conftest.${OBJEXT-o}
11552 am__minus_obj="-o $am__obj"
11553 case $depmode in
11554 gcc)
11555 # This depmode causes a compiler race in universal mode.
11556 test "$am__universal" = false || continue
11558 nosideeffect)
11559 # after this tag, mechanisms are not by side-effect, so they'll
11560 # only be used when explicitly requested
11561 if test "x$enable_dependency_tracking" = xyes; then
11562 continue
11563 else
11564 break
11567 msvisualcpp | msvcmsys)
11568 # This compiler won't grok `-c -o', but also, the minuso test has
11569 # not run yet. These depmodes are late enough in the game, and
11570 # so weak that their functioning should not be impacted.
11571 am__obj=conftest.${OBJEXT-o}
11572 am__minus_obj=
11574 none) break ;;
11575 esac
11576 if depmode=$depmode \
11577 source=sub/conftest.c object=$am__obj \
11578 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11579 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11580 >/dev/null 2>conftest.err &&
11581 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11582 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11583 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11584 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11585 # icc doesn't choke on unknown options, it will just issue warnings
11586 # or remarks (even with -Werror). So we grep stderr for any message
11587 # that says an option was ignored or not supported.
11588 # When given -MP, icc 7.0 and 7.1 complain thusly:
11589 # icc: Command line warning: ignoring option '-M'; no argument required
11590 # The diagnosis changed in icc 8.0:
11591 # icc: Command line remark: option '-MP' not supported
11592 if (grep 'ignoring option' conftest.err ||
11593 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11594 am_cv_CC_dependencies_compiler_type=$depmode
11595 break
11598 done
11600 cd ..
11601 rm -rf conftest.dir
11602 else
11603 am_cv_CC_dependencies_compiler_type=none
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11608 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11609 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11612 test "x$enable_dependency_tracking" != xno \
11613 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11614 am__fastdepCC_TRUE=
11615 am__fastdepCC_FALSE='#'
11616 else
11617 am__fastdepCC_TRUE='#'
11618 am__fastdepCC_FALSE=
11622 ac_ext=cpp
11623 ac_cpp='$CXXCPP $CPPFLAGS'
11624 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11625 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11626 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11627 if test -z "$CXX"; then
11628 if test -n "$CCC"; then
11629 CXX=$CCC
11630 else
11631 if test -n "$ac_tool_prefix"; then
11632 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11634 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11635 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11637 $as_echo_n "checking for $ac_word... " >&6; }
11638 if test "${ac_cv_prog_CXX+set}" = set; then :
11639 $as_echo_n "(cached) " >&6
11640 else
11641 if test -n "$CXX"; then
11642 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11643 else
11644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11645 for as_dir in $PATH
11647 IFS=$as_save_IFS
11648 test -z "$as_dir" && as_dir=.
11649 for ac_exec_ext in '' $ac_executable_extensions; do
11650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11651 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11653 break 2
11655 done
11656 done
11657 IFS=$as_save_IFS
11661 CXX=$ac_cv_prog_CXX
11662 if test -n "$CXX"; then
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11664 $as_echo "$CXX" >&6; }
11665 else
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11667 $as_echo "no" >&6; }
11671 test -n "$CXX" && break
11672 done
11674 if test -z "$CXX"; then
11675 ac_ct_CXX=$CXX
11676 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11678 # Extract the first word of "$ac_prog", so it can be a program name with args.
11679 set dummy $ac_prog; ac_word=$2
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11681 $as_echo_n "checking for $ac_word... " >&6; }
11682 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11683 $as_echo_n "(cached) " >&6
11684 else
11685 if test -n "$ac_ct_CXX"; then
11686 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11687 else
11688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11689 for as_dir in $PATH
11691 IFS=$as_save_IFS
11692 test -z "$as_dir" && as_dir=.
11693 for ac_exec_ext in '' $ac_executable_extensions; do
11694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11695 ac_cv_prog_ac_ct_CXX="$ac_prog"
11696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11697 break 2
11699 done
11700 done
11701 IFS=$as_save_IFS
11705 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11706 if test -n "$ac_ct_CXX"; then
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11708 $as_echo "$ac_ct_CXX" >&6; }
11709 else
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11711 $as_echo "no" >&6; }
11715 test -n "$ac_ct_CXX" && break
11716 done
11718 if test "x$ac_ct_CXX" = x; then
11719 CXX="g++"
11720 else
11721 case $cross_compiling:$ac_tool_warned in
11722 yes:)
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11725 ac_tool_warned=yes ;;
11726 esac
11727 CXX=$ac_ct_CXX
11733 # Provide some information about the compiler.
11734 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11735 set X $ac_compile
11736 ac_compiler=$2
11737 for ac_option in --version -v -V -qversion; do
11738 { { ac_try="$ac_compiler $ac_option >&5"
11739 case "(($ac_try" in
11740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11741 *) ac_try_echo=$ac_try;;
11742 esac
11743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11744 $as_echo "$ac_try_echo"; } >&5
11745 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11746 ac_status=$?
11747 if test -s conftest.err; then
11748 sed '10a\
11749 ... rest of stderr output deleted ...
11750 10q' conftest.err >conftest.er1
11751 cat conftest.er1 >&5
11753 rm -f conftest.er1 conftest.err
11754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11755 test $ac_status = 0; }
11756 done
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11759 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11760 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11761 $as_echo_n "(cached) " >&6
11762 else
11763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11764 /* end confdefs.h. */
11767 main ()
11769 #ifndef __GNUC__
11770 choke me
11771 #endif
11774 return 0;
11776 _ACEOF
11777 if ac_fn_cxx_try_compile "$LINENO"; then :
11778 ac_compiler_gnu=yes
11779 else
11780 ac_compiler_gnu=no
11782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11783 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11787 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11788 if test $ac_compiler_gnu = yes; then
11789 GXX=yes
11790 else
11791 GXX=
11793 ac_test_CXXFLAGS=${CXXFLAGS+set}
11794 ac_save_CXXFLAGS=$CXXFLAGS
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11796 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11797 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11798 $as_echo_n "(cached) " >&6
11799 else
11800 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11801 ac_cxx_werror_flag=yes
11802 ac_cv_prog_cxx_g=no
11803 CXXFLAGS="-g"
11804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11805 /* end confdefs.h. */
11808 main ()
11812 return 0;
11814 _ACEOF
11815 if ac_fn_cxx_try_compile "$LINENO"; then :
11816 ac_cv_prog_cxx_g=yes
11817 else
11818 CXXFLAGS=""
11819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11820 /* end confdefs.h. */
11823 main ()
11827 return 0;
11829 _ACEOF
11830 if ac_fn_cxx_try_compile "$LINENO"; then :
11832 else
11833 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11834 CXXFLAGS="-g"
11835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11836 /* end confdefs.h. */
11839 main ()
11843 return 0;
11845 _ACEOF
11846 if ac_fn_cxx_try_compile "$LINENO"; then :
11847 ac_cv_prog_cxx_g=yes
11849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11854 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11857 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11858 if test "$ac_test_CXXFLAGS" = set; then
11859 CXXFLAGS=$ac_save_CXXFLAGS
11860 elif test $ac_cv_prog_cxx_g = yes; then
11861 if test "$GXX" = yes; then
11862 CXXFLAGS="-O2"
11863 else
11864 CXXFLAGS="-g"
11866 else
11867 if test "$GXX" = yes; then
11868 CXXFLAGS="-O2"
11869 else
11870 CXXFLAGS=
11873 ac_ext=c
11874 ac_cpp='$CPP $CPPFLAGS'
11875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11879 depcc="$CXX" am_compiler_list=
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11882 $as_echo_n "checking dependency style of $depcc... " >&6; }
11883 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11884 $as_echo_n "(cached) " >&6
11885 else
11886 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11887 # We make a subdir and do the tests there. Otherwise we can end up
11888 # making bogus files that we don't know about and never remove. For
11889 # instance it was reported that on HP-UX the gcc test will end up
11890 # making a dummy file named `D' -- because `-MD' means `put the output
11891 # in D'.
11892 mkdir conftest.dir
11893 # Copy depcomp to subdir because otherwise we won't find it if we're
11894 # using a relative directory.
11895 cp "$am_depcomp" conftest.dir
11896 cd conftest.dir
11897 # We will build objects and dependencies in a subdirectory because
11898 # it helps to detect inapplicable dependency modes. For instance
11899 # both Tru64's cc and ICC support -MD to output dependencies as a
11900 # side effect of compilation, but ICC will put the dependencies in
11901 # the current directory while Tru64 will put them in the object
11902 # directory.
11903 mkdir sub
11905 am_cv_CXX_dependencies_compiler_type=none
11906 if test "$am_compiler_list" = ""; then
11907 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11909 am__universal=false
11910 case " $depcc " in #(
11911 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11912 esac
11914 for depmode in $am_compiler_list; do
11915 # Setup a source with many dependencies, because some compilers
11916 # like to wrap large dependency lists on column 80 (with \), and
11917 # we should not choose a depcomp mode which is confused by this.
11919 # We need to recreate these files for each test, as the compiler may
11920 # overwrite some of them when testing with obscure command lines.
11921 # This happens at least with the AIX C compiler.
11922 : > sub/conftest.c
11923 for i in 1 2 3 4 5 6; do
11924 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11925 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11926 # Solaris 8's {/usr,}/bin/sh.
11927 touch sub/conftst$i.h
11928 done
11929 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11931 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11932 # mode. It turns out that the SunPro C++ compiler does not properly
11933 # handle `-M -o', and we need to detect this. Also, some Intel
11934 # versions had trouble with output in subdirs
11935 am__obj=sub/conftest.${OBJEXT-o}
11936 am__minus_obj="-o $am__obj"
11937 case $depmode in
11938 gcc)
11939 # This depmode causes a compiler race in universal mode.
11940 test "$am__universal" = false || continue
11942 nosideeffect)
11943 # after this tag, mechanisms are not by side-effect, so they'll
11944 # only be used when explicitly requested
11945 if test "x$enable_dependency_tracking" = xyes; then
11946 continue
11947 else
11948 break
11951 msvisualcpp | msvcmsys)
11952 # This compiler won't grok `-c -o', but also, the minuso test has
11953 # not run yet. These depmodes are late enough in the game, and
11954 # so weak that their functioning should not be impacted.
11955 am__obj=conftest.${OBJEXT-o}
11956 am__minus_obj=
11958 none) break ;;
11959 esac
11960 if depmode=$depmode \
11961 source=sub/conftest.c object=$am__obj \
11962 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11963 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11964 >/dev/null 2>conftest.err &&
11965 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11966 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11967 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11968 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11969 # icc doesn't choke on unknown options, it will just issue warnings
11970 # or remarks (even with -Werror). So we grep stderr for any message
11971 # that says an option was ignored or not supported.
11972 # When given -MP, icc 7.0 and 7.1 complain thusly:
11973 # icc: Command line warning: ignoring option '-M'; no argument required
11974 # The diagnosis changed in icc 8.0:
11975 # icc: Command line remark: option '-MP' not supported
11976 if (grep 'ignoring option' conftest.err ||
11977 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11978 am_cv_CXX_dependencies_compiler_type=$depmode
11979 break
11982 done
11984 cd ..
11985 rm -rf conftest.dir
11986 else
11987 am_cv_CXX_dependencies_compiler_type=none
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11992 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11993 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11996 test "x$enable_dependency_tracking" != xno \
11997 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11998 am__fastdepCXX_TRUE=
11999 am__fastdepCXX_FALSE='#'
12000 else
12001 am__fastdepCXX_TRUE='#'
12002 am__fastdepCXX_FALSE=
12007 ac_ext=cpp
12008 ac_cpp='$CXXCPP $CPPFLAGS'
12009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12012 if test -z "$CXX"; then
12013 if test -n "$CCC"; then
12014 CXX=$CCC
12015 else
12016 if test -n "$ac_tool_prefix"; then
12017 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12019 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12020 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12022 $as_echo_n "checking for $ac_word... " >&6; }
12023 if test "${ac_cv_prog_CXX+set}" = set; then :
12024 $as_echo_n "(cached) " >&6
12025 else
12026 if test -n "$CXX"; then
12027 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12028 else
12029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12030 for as_dir in $PATH
12032 IFS=$as_save_IFS
12033 test -z "$as_dir" && as_dir=.
12034 for ac_exec_ext in '' $ac_executable_extensions; do
12035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12036 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12038 break 2
12040 done
12041 done
12042 IFS=$as_save_IFS
12046 CXX=$ac_cv_prog_CXX
12047 if test -n "$CXX"; then
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12049 $as_echo "$CXX" >&6; }
12050 else
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12052 $as_echo "no" >&6; }
12056 test -n "$CXX" && break
12057 done
12059 if test -z "$CXX"; then
12060 ac_ct_CXX=$CXX
12061 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12063 # Extract the first word of "$ac_prog", so it can be a program name with args.
12064 set dummy $ac_prog; ac_word=$2
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12066 $as_echo_n "checking for $ac_word... " >&6; }
12067 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
12068 $as_echo_n "(cached) " >&6
12069 else
12070 if test -n "$ac_ct_CXX"; then
12071 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12072 else
12073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12074 for as_dir in $PATH
12076 IFS=$as_save_IFS
12077 test -z "$as_dir" && as_dir=.
12078 for ac_exec_ext in '' $ac_executable_extensions; do
12079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12080 ac_cv_prog_ac_ct_CXX="$ac_prog"
12081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12082 break 2
12084 done
12085 done
12086 IFS=$as_save_IFS
12090 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12091 if test -n "$ac_ct_CXX"; then
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12093 $as_echo "$ac_ct_CXX" >&6; }
12094 else
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12096 $as_echo "no" >&6; }
12100 test -n "$ac_ct_CXX" && break
12101 done
12103 if test "x$ac_ct_CXX" = x; then
12104 CXX="g++"
12105 else
12106 case $cross_compiling:$ac_tool_warned in
12107 yes:)
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12110 ac_tool_warned=yes ;;
12111 esac
12112 CXX=$ac_ct_CXX
12118 # Provide some information about the compiler.
12119 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12120 set X $ac_compile
12121 ac_compiler=$2
12122 for ac_option in --version -v -V -qversion; do
12123 { { ac_try="$ac_compiler $ac_option >&5"
12124 case "(($ac_try" in
12125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12126 *) ac_try_echo=$ac_try;;
12127 esac
12128 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12129 $as_echo "$ac_try_echo"; } >&5
12130 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12131 ac_status=$?
12132 if test -s conftest.err; then
12133 sed '10a\
12134 ... rest of stderr output deleted ...
12135 10q' conftest.err >conftest.er1
12136 cat conftest.er1 >&5
12138 rm -f conftest.er1 conftest.err
12139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12140 test $ac_status = 0; }
12141 done
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12144 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12145 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
12146 $as_echo_n "(cached) " >&6
12147 else
12148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12149 /* end confdefs.h. */
12152 main ()
12154 #ifndef __GNUC__
12155 choke me
12156 #endif
12159 return 0;
12161 _ACEOF
12162 if ac_fn_cxx_try_compile "$LINENO"; then :
12163 ac_compiler_gnu=yes
12164 else
12165 ac_compiler_gnu=no
12167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12168 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12172 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12173 if test $ac_compiler_gnu = yes; then
12174 GXX=yes
12175 else
12176 GXX=
12178 ac_test_CXXFLAGS=${CXXFLAGS+set}
12179 ac_save_CXXFLAGS=$CXXFLAGS
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12181 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12182 if test "${ac_cv_prog_cxx_g+set}" = set; then :
12183 $as_echo_n "(cached) " >&6
12184 else
12185 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12186 ac_cxx_werror_flag=yes
12187 ac_cv_prog_cxx_g=no
12188 CXXFLAGS="-g"
12189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12190 /* end confdefs.h. */
12193 main ()
12197 return 0;
12199 _ACEOF
12200 if ac_fn_cxx_try_compile "$LINENO"; then :
12201 ac_cv_prog_cxx_g=yes
12202 else
12203 CXXFLAGS=""
12204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12205 /* end confdefs.h. */
12208 main ()
12212 return 0;
12214 _ACEOF
12215 if ac_fn_cxx_try_compile "$LINENO"; then :
12217 else
12218 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12219 CXXFLAGS="-g"
12220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12221 /* end confdefs.h. */
12224 main ()
12228 return 0;
12230 _ACEOF
12231 if ac_fn_cxx_try_compile "$LINENO"; then :
12232 ac_cv_prog_cxx_g=yes
12234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12239 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12242 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12243 if test "$ac_test_CXXFLAGS" = set; then
12244 CXXFLAGS=$ac_save_CXXFLAGS
12245 elif test $ac_cv_prog_cxx_g = yes; then
12246 if test "$GXX" = yes; then
12247 CXXFLAGS="-O2"
12248 else
12249 CXXFLAGS="-g"
12251 else
12252 if test "$GXX" = yes; then
12253 CXXFLAGS="-O2"
12254 else
12255 CXXFLAGS=
12258 ac_ext=c
12259 ac_cpp='$CPP $CPPFLAGS'
12260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12264 depcc="$CXX" am_compiler_list=
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12267 $as_echo_n "checking dependency style of $depcc... " >&6; }
12268 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
12269 $as_echo_n "(cached) " >&6
12270 else
12271 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12272 # We make a subdir and do the tests there. Otherwise we can end up
12273 # making bogus files that we don't know about and never remove. For
12274 # instance it was reported that on HP-UX the gcc test will end up
12275 # making a dummy file named `D' -- because `-MD' means `put the output
12276 # in D'.
12277 mkdir conftest.dir
12278 # Copy depcomp to subdir because otherwise we won't find it if we're
12279 # using a relative directory.
12280 cp "$am_depcomp" conftest.dir
12281 cd conftest.dir
12282 # We will build objects and dependencies in a subdirectory because
12283 # it helps to detect inapplicable dependency modes. For instance
12284 # both Tru64's cc and ICC support -MD to output dependencies as a
12285 # side effect of compilation, but ICC will put the dependencies in
12286 # the current directory while Tru64 will put them in the object
12287 # directory.
12288 mkdir sub
12290 am_cv_CXX_dependencies_compiler_type=none
12291 if test "$am_compiler_list" = ""; then
12292 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12294 am__universal=false
12295 case " $depcc " in #(
12296 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12297 esac
12299 for depmode in $am_compiler_list; do
12300 # Setup a source with many dependencies, because some compilers
12301 # like to wrap large dependency lists on column 80 (with \), and
12302 # we should not choose a depcomp mode which is confused by this.
12304 # We need to recreate these files for each test, as the compiler may
12305 # overwrite some of them when testing with obscure command lines.
12306 # This happens at least with the AIX C compiler.
12307 : > sub/conftest.c
12308 for i in 1 2 3 4 5 6; do
12309 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12310 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12311 # Solaris 8's {/usr,}/bin/sh.
12312 touch sub/conftst$i.h
12313 done
12314 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12316 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12317 # mode. It turns out that the SunPro C++ compiler does not properly
12318 # handle `-M -o', and we need to detect this. Also, some Intel
12319 # versions had trouble with output in subdirs
12320 am__obj=sub/conftest.${OBJEXT-o}
12321 am__minus_obj="-o $am__obj"
12322 case $depmode in
12323 gcc)
12324 # This depmode causes a compiler race in universal mode.
12325 test "$am__universal" = false || continue
12327 nosideeffect)
12328 # after this tag, mechanisms are not by side-effect, so they'll
12329 # only be used when explicitly requested
12330 if test "x$enable_dependency_tracking" = xyes; then
12331 continue
12332 else
12333 break
12336 msvisualcpp | msvcmsys)
12337 # This compiler won't grok `-c -o', but also, the minuso test has
12338 # not run yet. These depmodes are late enough in the game, and
12339 # so weak that their functioning should not be impacted.
12340 am__obj=conftest.${OBJEXT-o}
12341 am__minus_obj=
12343 none) break ;;
12344 esac
12345 if depmode=$depmode \
12346 source=sub/conftest.c object=$am__obj \
12347 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12348 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12349 >/dev/null 2>conftest.err &&
12350 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12351 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12352 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12353 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12354 # icc doesn't choke on unknown options, it will just issue warnings
12355 # or remarks (even with -Werror). So we grep stderr for any message
12356 # that says an option was ignored or not supported.
12357 # When given -MP, icc 7.0 and 7.1 complain thusly:
12358 # icc: Command line warning: ignoring option '-M'; no argument required
12359 # The diagnosis changed in icc 8.0:
12360 # icc: Command line remark: option '-MP' not supported
12361 if (grep 'ignoring option' conftest.err ||
12362 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12363 am_cv_CXX_dependencies_compiler_type=$depmode
12364 break
12367 done
12369 cd ..
12370 rm -rf conftest.dir
12371 else
12372 am_cv_CXX_dependencies_compiler_type=none
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12377 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12378 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12381 test "x$enable_dependency_tracking" != xno \
12382 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12383 am__fastdepCXX_TRUE=
12384 am__fastdepCXX_FALSE='#'
12385 else
12386 am__fastdepCXX_TRUE='#'
12387 am__fastdepCXX_FALSE=
12391 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12392 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12393 (test "X$CXX" != "Xg++"))) ; then
12394 ac_ext=cpp
12395 ac_cpp='$CXXCPP $CPPFLAGS'
12396 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12397 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12398 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12400 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12401 if test -z "$CXXCPP"; then
12402 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12403 $as_echo_n "(cached) " >&6
12404 else
12405 # Double quotes because CXXCPP needs to be expanded
12406 for CXXCPP in "$CXX -E" "/lib/cpp"
12408 ac_preproc_ok=false
12409 for ac_cxx_preproc_warn_flag in '' yes
12411 # Use a header file that comes with gcc, so configuring glibc
12412 # with a fresh cross-compiler works.
12413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12414 # <limits.h> exists even on freestanding compilers.
12415 # On the NeXT, cc -E runs the code through the compiler's parser,
12416 # not just through cpp. "Syntax error" is here to catch this case.
12417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12418 /* end confdefs.h. */
12419 #ifdef __STDC__
12420 # include <limits.h>
12421 #else
12422 # include <assert.h>
12423 #endif
12424 Syntax error
12425 _ACEOF
12426 if ac_fn_cxx_try_cpp "$LINENO"; then :
12428 else
12429 # Broken: fails on valid input.
12430 continue
12432 rm -f conftest.err conftest.i conftest.$ac_ext
12434 # OK, works on sane cases. Now check whether nonexistent headers
12435 # can be detected and how.
12436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12437 /* end confdefs.h. */
12438 #include <ac_nonexistent.h>
12439 _ACEOF
12440 if ac_fn_cxx_try_cpp "$LINENO"; then :
12441 # Broken: success on invalid input.
12442 continue
12443 else
12444 # Passes both tests.
12445 ac_preproc_ok=:
12446 break
12448 rm -f conftest.err conftest.i conftest.$ac_ext
12450 done
12451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12452 rm -f conftest.i conftest.err conftest.$ac_ext
12453 if $ac_preproc_ok; then :
12454 break
12457 done
12458 ac_cv_prog_CXXCPP=$CXXCPP
12461 CXXCPP=$ac_cv_prog_CXXCPP
12462 else
12463 ac_cv_prog_CXXCPP=$CXXCPP
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12466 $as_echo "$CXXCPP" >&6; }
12467 ac_preproc_ok=false
12468 for ac_cxx_preproc_warn_flag in '' yes
12470 # Use a header file that comes with gcc, so configuring glibc
12471 # with a fresh cross-compiler works.
12472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12473 # <limits.h> exists even on freestanding compilers.
12474 # On the NeXT, cc -E runs the code through the compiler's parser,
12475 # not just through cpp. "Syntax error" is here to catch this case.
12476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12477 /* end confdefs.h. */
12478 #ifdef __STDC__
12479 # include <limits.h>
12480 #else
12481 # include <assert.h>
12482 #endif
12483 Syntax error
12484 _ACEOF
12485 if ac_fn_cxx_try_cpp "$LINENO"; then :
12487 else
12488 # Broken: fails on valid input.
12489 continue
12491 rm -f conftest.err conftest.i conftest.$ac_ext
12493 # OK, works on sane cases. Now check whether nonexistent headers
12494 # can be detected and how.
12495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12496 /* end confdefs.h. */
12497 #include <ac_nonexistent.h>
12498 _ACEOF
12499 if ac_fn_cxx_try_cpp "$LINENO"; then :
12500 # Broken: success on invalid input.
12501 continue
12502 else
12503 # Passes both tests.
12504 ac_preproc_ok=:
12505 break
12507 rm -f conftest.err conftest.i conftest.$ac_ext
12509 done
12510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12511 rm -f conftest.i conftest.err conftest.$ac_ext
12512 if $ac_preproc_ok; then :
12514 else
12515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12517 _lt_caught_CXX_error=yes; }
12520 ac_ext=c
12521 ac_cpp='$CPP $CPPFLAGS'
12522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12526 else
12527 _lt_caught_CXX_error=yes
12533 ac_ext=cpp
12534 ac_cpp='$CXXCPP $CPPFLAGS'
12535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12539 archive_cmds_need_lc_CXX=no
12540 allow_undefined_flag_CXX=
12541 always_export_symbols_CXX=no
12542 archive_expsym_cmds_CXX=
12543 compiler_needs_object_CXX=no
12544 export_dynamic_flag_spec_CXX=
12545 hardcode_direct_CXX=no
12546 hardcode_direct_absolute_CXX=no
12547 hardcode_libdir_flag_spec_CXX=
12548 hardcode_libdir_flag_spec_ld_CXX=
12549 hardcode_libdir_separator_CXX=
12550 hardcode_minus_L_CXX=no
12551 hardcode_shlibpath_var_CXX=unsupported
12552 hardcode_automatic_CXX=no
12553 inherit_rpath_CXX=no
12554 module_cmds_CXX=
12555 module_expsym_cmds_CXX=
12556 link_all_deplibs_CXX=unknown
12557 old_archive_cmds_CXX=$old_archive_cmds
12558 no_undefined_flag_CXX=
12559 whole_archive_flag_spec_CXX=
12560 enable_shared_with_static_runtimes_CXX=no
12562 # Source file extension for C++ test sources.
12563 ac_ext=cpp
12565 # Object file extension for compiled C++ test sources.
12566 objext=o
12567 objext_CXX=$objext
12569 # No sense in running all these tests if we already determined that
12570 # the CXX compiler isn't working. Some variables (like enable_shared)
12571 # are currently assumed to apply to all compilers on this platform,
12572 # and will be corrupted by setting them based on a non-working compiler.
12573 if test "$_lt_caught_CXX_error" != yes; then
12574 # Code to be used in simple compile tests
12575 lt_simple_compile_test_code="int some_variable = 0;"
12577 # Code to be used in simple link tests
12578 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12580 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12587 # If no C compiler was specified, use CC.
12588 LTCC=${LTCC-"$CC"}
12590 # If no C compiler flags were specified, use CFLAGS.
12591 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12593 # Allow CC to be a program name with arguments.
12594 compiler=$CC
12597 # save warnings/boilerplate of simple test code
12598 ac_outfile=conftest.$ac_objext
12599 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12600 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12601 _lt_compiler_boilerplate=`cat conftest.err`
12602 $RM conftest*
12604 ac_outfile=conftest.$ac_objext
12605 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12606 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12607 _lt_linker_boilerplate=`cat conftest.err`
12608 $RM -r conftest*
12611 # Allow CC to be a program name with arguments.
12612 lt_save_CC=$CC
12613 lt_save_LD=$LD
12614 lt_save_GCC=$GCC
12615 GCC=$GXX
12616 lt_save_with_gnu_ld=$with_gnu_ld
12617 lt_save_path_LD=$lt_cv_path_LD
12618 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12619 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12620 else
12621 $as_unset lt_cv_prog_gnu_ld
12623 if test -n "${lt_cv_path_LDCXX+set}"; then
12624 lt_cv_path_LD=$lt_cv_path_LDCXX
12625 else
12626 $as_unset lt_cv_path_LD
12628 test -z "${LDCXX+set}" || LD=$LDCXX
12629 CC=${CXX-"c++"}
12630 compiler=$CC
12631 compiler_CXX=$CC
12632 for cc_temp in $compiler""; do
12633 case $cc_temp in
12634 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12635 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12636 \-*) ;;
12637 *) break;;
12638 esac
12639 done
12640 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12643 if test -n "$compiler"; then
12644 # We don't want -fno-exception when compiling C++ code, so set the
12645 # no_builtin_flag separately
12646 if test "$GXX" = yes; then
12647 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12648 else
12649 lt_prog_compiler_no_builtin_flag_CXX=
12652 if test "$GXX" = yes; then
12653 # Set up default GNU C++ configuration
12657 # Check whether --with-gnu-ld was given.
12658 if test "${with_gnu_ld+set}" = set; then :
12659 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12660 else
12661 with_gnu_ld=no
12664 ac_prog=ld
12665 if test "$GCC" = yes; then
12666 # Check if gcc -print-prog-name=ld gives a path.
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12668 $as_echo_n "checking for ld used by $CC... " >&6; }
12669 case $host in
12670 *-*-mingw*)
12671 # gcc leaves a trailing carriage return which upsets mingw
12672 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12674 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12675 esac
12676 case $ac_prog in
12677 # Accept absolute paths.
12678 [\\/]* | ?:[\\/]*)
12679 re_direlt='/[^/][^/]*/\.\./'
12680 # Canonicalize the pathname of ld
12681 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12682 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12683 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12684 done
12685 test -z "$LD" && LD="$ac_prog"
12688 # If it fails, then pretend we aren't using GCC.
12689 ac_prog=ld
12692 # If it is relative, then search for the first ld in PATH.
12693 with_gnu_ld=unknown
12695 esac
12696 elif test "$with_gnu_ld" = yes; then
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12698 $as_echo_n "checking for GNU ld... " >&6; }
12699 else
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12701 $as_echo_n "checking for non-GNU ld... " >&6; }
12703 if test "${lt_cv_path_LD+set}" = set; then :
12704 $as_echo_n "(cached) " >&6
12705 else
12706 if test -z "$LD"; then
12707 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12708 for ac_dir in $PATH; do
12709 IFS="$lt_save_ifs"
12710 test -z "$ac_dir" && ac_dir=.
12711 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12712 lt_cv_path_LD="$ac_dir/$ac_prog"
12713 # Check to see if the program is GNU ld. I'd rather use --version,
12714 # but apparently some variants of GNU ld only accept -v.
12715 # Break only if it was the GNU/non-GNU ld that we prefer.
12716 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12717 *GNU* | *'with BFD'*)
12718 test "$with_gnu_ld" != no && break
12721 test "$with_gnu_ld" != yes && break
12723 esac
12725 done
12726 IFS="$lt_save_ifs"
12727 else
12728 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12732 LD="$lt_cv_path_LD"
12733 if test -n "$LD"; then
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12735 $as_echo "$LD" >&6; }
12736 else
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12738 $as_echo "no" >&6; }
12740 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12742 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12743 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12744 $as_echo_n "(cached) " >&6
12745 else
12746 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12747 case `$LD -v 2>&1 </dev/null` in
12748 *GNU* | *'with BFD'*)
12749 lt_cv_prog_gnu_ld=yes
12752 lt_cv_prog_gnu_ld=no
12754 esac
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12757 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12758 with_gnu_ld=$lt_cv_prog_gnu_ld
12766 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12767 # archiving commands below assume that GNU ld is being used.
12768 if test "$with_gnu_ld" = yes; then
12769 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12770 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'
12772 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12773 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12775 # If archive_cmds runs LD, not CC, wlarc should be empty
12776 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12777 # investigate it a little bit more. (MM)
12778 wlarc='${wl}'
12780 # ancient GNU ld didn't support --whole-archive et. al.
12781 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12782 $GREP 'no-whole-archive' > /dev/null; then
12783 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12784 else
12785 whole_archive_flag_spec_CXX=
12787 else
12788 with_gnu_ld=no
12789 wlarc=
12791 # A generic and very simple default shared library creation
12792 # command for GNU C++ for the case where it uses the native
12793 # linker, instead of GNU ld. If possible, this setting should
12794 # overridden to take advantage of the native linker features on
12795 # the platform it is being used on.
12796 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12799 # Commands to make compiler produce verbose output that lists
12800 # what "hidden" libraries, object files and flags are used when
12801 # linking a shared library.
12802 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12804 else
12805 GXX=no
12806 with_gnu_ld=no
12807 wlarc=
12810 # PORTME: fill in a description of your system's C++ link characteristics
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12812 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12813 ld_shlibs_CXX=yes
12814 case $host_os in
12815 aix3*)
12816 # FIXME: insert proper C++ library support
12817 ld_shlibs_CXX=no
12819 aix[4-9]*)
12820 if test "$host_cpu" = ia64; then
12821 # On IA64, the linker does run time linking by default, so we don't
12822 # have to do anything special.
12823 aix_use_runtimelinking=no
12824 exp_sym_flag='-Bexport'
12825 no_entry_flag=""
12826 else
12827 aix_use_runtimelinking=no
12829 # Test if we are trying to use run time linking or normal
12830 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12831 # need to do runtime linking.
12832 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12833 for ld_flag in $LDFLAGS; do
12834 case $ld_flag in
12835 *-brtl*)
12836 aix_use_runtimelinking=yes
12837 break
12839 esac
12840 done
12842 esac
12844 exp_sym_flag='-bexport'
12845 no_entry_flag='-bnoentry'
12848 # When large executables or shared objects are built, AIX ld can
12849 # have problems creating the table of contents. If linking a library
12850 # or program results in "error TOC overflow" add -mminimal-toc to
12851 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12852 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12854 archive_cmds_CXX=''
12855 hardcode_direct_CXX=yes
12856 hardcode_direct_absolute_CXX=yes
12857 hardcode_libdir_separator_CXX=':'
12858 link_all_deplibs_CXX=yes
12859 file_list_spec_CXX='${wl}-f,'
12861 if test "$GXX" = yes; then
12862 case $host_os in aix4.[012]|aix4.[012].*)
12863 # We only want to do this on AIX 4.2 and lower, the check
12864 # below for broken collect2 doesn't work under 4.3+
12865 collect2name=`${CC} -print-prog-name=collect2`
12866 if test -f "$collect2name" &&
12867 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12868 then
12869 # We have reworked collect2
12871 else
12872 # We have old collect2
12873 hardcode_direct_CXX=unsupported
12874 # It fails to find uninstalled libraries when the uninstalled
12875 # path is not listed in the libpath. Setting hardcode_minus_L
12876 # to unsupported forces relinking
12877 hardcode_minus_L_CXX=yes
12878 hardcode_libdir_flag_spec_CXX='-L$libdir'
12879 hardcode_libdir_separator_CXX=
12881 esac
12882 shared_flag='-shared'
12883 if test "$aix_use_runtimelinking" = yes; then
12884 shared_flag="$shared_flag "'${wl}-G'
12886 else
12887 # not using gcc
12888 if test "$host_cpu" = ia64; then
12889 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12890 # chokes on -Wl,-G. The following line is correct:
12891 shared_flag='-G'
12892 else
12893 if test "$aix_use_runtimelinking" = yes; then
12894 shared_flag='${wl}-G'
12895 else
12896 shared_flag='${wl}-bM:SRE'
12901 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12902 # It seems that -bexpall does not export symbols beginning with
12903 # underscore (_), so it is better to generate a list of symbols to
12904 # export.
12905 always_export_symbols_CXX=yes
12906 if test "$aix_use_runtimelinking" = yes; then
12907 # Warning - without using the other runtime loading flags (-brtl),
12908 # -berok will link without error, but may produce a broken library.
12909 allow_undefined_flag_CXX='-berok'
12910 # Determine the default libpath from the value encoded in an empty
12911 # executable.
12912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12913 /* end confdefs.h. */
12916 main ()
12920 return 0;
12922 _ACEOF
12923 if ac_fn_cxx_try_link "$LINENO"; then :
12925 lt_aix_libpath_sed='
12926 /Import File Strings/,/^$/ {
12927 /^0/ {
12928 s/^0 *\(.*\)$/\1/
12932 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12933 # Check for a 64-bit object if we didn't find anything.
12934 if test -z "$aix_libpath"; then
12935 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12938 rm -f core conftest.err conftest.$ac_objext \
12939 conftest$ac_exeext conftest.$ac_ext
12940 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12942 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12944 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"
12945 else
12946 if test "$host_cpu" = ia64; then
12947 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12948 allow_undefined_flag_CXX="-z nodefs"
12949 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"
12950 else
12951 # Determine the default libpath from the value encoded in an
12952 # empty executable.
12953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12954 /* end confdefs.h. */
12957 main ()
12961 return 0;
12963 _ACEOF
12964 if ac_fn_cxx_try_link "$LINENO"; then :
12966 lt_aix_libpath_sed='
12967 /Import File Strings/,/^$/ {
12968 /^0/ {
12969 s/^0 *\(.*\)$/\1/
12973 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12974 # Check for a 64-bit object if we didn't find anything.
12975 if test -z "$aix_libpath"; then
12976 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12979 rm -f core conftest.err conftest.$ac_objext \
12980 conftest$ac_exeext conftest.$ac_ext
12981 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12983 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12984 # Warning - without using the other run time loading flags,
12985 # -berok will link without error, but may produce a broken library.
12986 no_undefined_flag_CXX=' ${wl}-bernotok'
12987 allow_undefined_flag_CXX=' ${wl}-berok'
12988 # Exported symbols can be pulled into shared objects from archives
12989 whole_archive_flag_spec_CXX='$convenience'
12990 archive_cmds_need_lc_CXX=yes
12991 # This is similar to how AIX traditionally builds its shared
12992 # libraries.
12993 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'
12998 beos*)
12999 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13000 allow_undefined_flag_CXX=unsupported
13001 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13002 # support --undefined. This deserves some investigation. FIXME
13003 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13004 else
13005 ld_shlibs_CXX=no
13009 chorus*)
13010 case $cc_basename in
13012 # FIXME: insert proper C++ library support
13013 ld_shlibs_CXX=no
13015 esac
13018 cygwin* | mingw* | pw32* | cegcc*)
13019 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13020 # as there is no search path for DLLs.
13021 hardcode_libdir_flag_spec_CXX='-L$libdir'
13022 allow_undefined_flag_CXX=unsupported
13023 always_export_symbols_CXX=no
13024 enable_shared_with_static_runtimes_CXX=yes
13026 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13027 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'
13028 # If the export-symbols file already is a .def file (1st line
13029 # is EXPORTS), use it as is; otherwise, prepend...
13030 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13031 cp $export_symbols $output_objdir/$soname.def;
13032 else
13033 echo EXPORTS > $output_objdir/$soname.def;
13034 cat $export_symbols >> $output_objdir/$soname.def;
13036 $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'
13037 else
13038 ld_shlibs_CXX=no
13041 darwin* | rhapsody*)
13044 archive_cmds_need_lc_CXX=no
13045 hardcode_direct_CXX=no
13046 hardcode_automatic_CXX=yes
13047 hardcode_shlibpath_var_CXX=unsupported
13048 whole_archive_flag_spec_CXX=''
13049 link_all_deplibs_CXX=yes
13050 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13051 case $cc_basename in
13052 ifort*) _lt_dar_can_shared=yes ;;
13053 *) _lt_dar_can_shared=$GCC ;;
13054 esac
13055 if test "$_lt_dar_can_shared" = "yes"; then
13056 output_verbose_link_cmd=echo
13057 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}"
13058 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13059 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}"
13060 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}"
13061 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13062 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}"
13063 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}"
13066 else
13067 ld_shlibs_CXX=no
13072 dgux*)
13073 case $cc_basename in
13074 ec++*)
13075 # FIXME: insert proper C++ library support
13076 ld_shlibs_CXX=no
13078 ghcx*)
13079 # Green Hills C++ Compiler
13080 # FIXME: insert proper C++ library support
13081 ld_shlibs_CXX=no
13084 # FIXME: insert proper C++ library support
13085 ld_shlibs_CXX=no
13087 esac
13090 freebsd[12]*)
13091 # C++ shared libraries reported to be fairly broken before
13092 # switch to ELF
13093 ld_shlibs_CXX=no
13096 freebsd-elf*)
13097 archive_cmds_need_lc_CXX=no
13100 freebsd* | dragonfly*)
13101 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13102 # conventions
13103 ld_shlibs_CXX=yes
13106 gnu*)
13109 hpux9*)
13110 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13111 hardcode_libdir_separator_CXX=:
13112 export_dynamic_flag_spec_CXX='${wl}-E'
13113 hardcode_direct_CXX=yes
13114 hardcode_minus_L_CXX=yes # Not in the search PATH,
13115 # but as the default
13116 # location of the library.
13118 case $cc_basename in
13119 CC*)
13120 # FIXME: insert proper C++ library support
13121 ld_shlibs_CXX=no
13123 aCC*)
13124 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'
13125 # Commands to make compiler produce verbose output that lists
13126 # what "hidden" libraries, object files and flags are used when
13127 # linking a shared library.
13129 # There doesn't appear to be a way to prevent this compiler from
13130 # explicitly linking system object files so we need to strip them
13131 # from the output so that they don't get included in the library
13132 # dependencies.
13133 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'
13136 if test "$GXX" = yes; then
13137 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'
13138 else
13139 # FIXME: insert proper C++ library support
13140 ld_shlibs_CXX=no
13143 esac
13146 hpux10*|hpux11*)
13147 if test $with_gnu_ld = no; then
13148 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13149 hardcode_libdir_separator_CXX=:
13151 case $host_cpu in
13152 hppa*64*|ia64*)
13155 export_dynamic_flag_spec_CXX='${wl}-E'
13157 esac
13159 case $host_cpu in
13160 hppa*64*|ia64*)
13161 hardcode_direct_CXX=no
13162 hardcode_shlibpath_var_CXX=no
13165 hardcode_direct_CXX=yes
13166 hardcode_direct_absolute_CXX=yes
13167 hardcode_minus_L_CXX=yes # Not in the search PATH,
13168 # but as the default
13169 # location of the library.
13171 esac
13173 case $cc_basename in
13174 CC*)
13175 # FIXME: insert proper C++ library support
13176 ld_shlibs_CXX=no
13178 aCC*)
13179 case $host_cpu in
13180 hppa*64*)
13181 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13183 ia64*)
13184 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13187 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13189 esac
13190 # Commands to make compiler produce verbose output that lists
13191 # what "hidden" libraries, object files and flags are used when
13192 # linking a shared library.
13194 # There doesn't appear to be a way to prevent this compiler from
13195 # explicitly linking system object files so we need to strip them
13196 # from the output so that they don't get included in the library
13197 # dependencies.
13198 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'
13201 if test "$GXX" = yes; then
13202 if test $with_gnu_ld = no; then
13203 case $host_cpu in
13204 hppa*64*)
13205 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13207 ia64*)
13208 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13211 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'
13213 esac
13215 else
13216 # FIXME: insert proper C++ library support
13217 ld_shlibs_CXX=no
13220 esac
13223 interix[3-9]*)
13224 hardcode_direct_CXX=no
13225 hardcode_shlibpath_var_CXX=no
13226 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13227 export_dynamic_flag_spec_CXX='${wl}-E'
13228 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13229 # Instead, shared libraries are loaded at an image base (0x10000000 by
13230 # default) and relocated if they conflict, which is a slow very memory
13231 # consuming and fragmenting process. To avoid this, we pick a random,
13232 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13233 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13234 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'
13235 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'
13237 irix5* | irix6*)
13238 case $cc_basename in
13239 CC*)
13240 # SGI C++
13241 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'
13243 # Archives containing C++ object files must be created using
13244 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13245 # necessary to make sure instantiated templates are included
13246 # in the archive.
13247 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13250 if test "$GXX" = yes; then
13251 if test "$with_gnu_ld" = no; then
13252 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'
13253 else
13254 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'
13257 link_all_deplibs_CXX=yes
13259 esac
13260 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13261 hardcode_libdir_separator_CXX=:
13262 inherit_rpath_CXX=yes
13265 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13266 case $cc_basename in
13267 KCC*)
13268 # Kuck and Associates, Inc. (KAI) C++ Compiler
13270 # KCC will only create a shared library if the output file
13271 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13272 # to its proper name (with version) after linking.
13273 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'
13274 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'
13275 # Commands to make compiler produce verbose output that lists
13276 # what "hidden" libraries, object files and flags are used when
13277 # linking a shared library.
13279 # There doesn't appear to be a way to prevent this compiler from
13280 # explicitly linking system object files so we need to strip them
13281 # from the output so that they don't get included in the library
13282 # dependencies.
13283 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'
13285 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13286 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13288 # Archives containing C++ object files must be created using
13289 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13290 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13292 icpc* | ecpc* )
13293 # Intel C++
13294 with_gnu_ld=yes
13295 # version 8.0 and above of icpc choke on multiply defined symbols
13296 # if we add $predep_objects and $postdep_objects, however 7.1 and
13297 # earlier do not add the objects themselves.
13298 case `$CC -V 2>&1` in
13299 *"Version 7."*)
13300 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13301 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'
13303 *) # Version 8.0 or newer
13304 tmp_idyn=
13305 case $host_cpu in
13306 ia64*) tmp_idyn=' -i_dynamic';;
13307 esac
13308 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13309 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'
13311 esac
13312 archive_cmds_need_lc_CXX=no
13313 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13314 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13315 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13317 pgCC* | pgcpp*)
13318 # Portland Group C++ compiler
13319 case `$CC -V` in
13320 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13321 prelink_cmds_CXX='tpldir=Template.dir~
13322 rm -rf $tpldir~
13323 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13324 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13325 old_archive_cmds_CXX='tpldir=Template.dir~
13326 rm -rf $tpldir~
13327 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13328 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13329 $RANLIB $oldlib'
13330 archive_cmds_CXX='tpldir=Template.dir~
13331 rm -rf $tpldir~
13332 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13333 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13334 archive_expsym_cmds_CXX='tpldir=Template.dir~
13335 rm -rf $tpldir~
13336 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13337 $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'
13339 *) # Version 6 will use weak symbols
13340 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13341 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'
13343 esac
13345 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13346 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13347 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'
13349 cxx*)
13350 # Compaq C++
13351 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13352 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'
13354 runpath_var=LD_RUN_PATH
13355 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13356 hardcode_libdir_separator_CXX=:
13358 # Commands to make compiler produce verbose output that lists
13359 # what "hidden" libraries, object files and flags are used when
13360 # linking a shared library.
13362 # There doesn't appear to be a way to prevent this compiler from
13363 # explicitly linking system object files so we need to strip them
13364 # from the output so that they don't get included in the library
13365 # dependencies.
13366 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'
13368 xl*)
13369 # IBM XL 8.0 on PPC, with GNU ld
13370 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13371 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13372 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13373 if test "x$supports_anon_versioning" = xyes; then
13374 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13375 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13376 echo "local: *; };" >> $output_objdir/$libname.ver~
13377 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13381 case `$CC -V 2>&1 | sed 5q` in
13382 *Sun\ C*)
13383 # Sun C++ 5.9
13384 no_undefined_flag_CXX=' -zdefs'
13385 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13386 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'
13387 hardcode_libdir_flag_spec_CXX='-R$libdir'
13388 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'
13389 compiler_needs_object_CXX=yes
13391 # Not sure whether something based on
13392 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13393 # would be better.
13394 output_verbose_link_cmd='echo'
13396 # Archives containing C++ object files must be created using
13397 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13398 # necessary to make sure instantiated templates are included
13399 # in the archive.
13400 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13402 esac
13404 esac
13407 lynxos*)
13408 # FIXME: insert proper C++ library support
13409 ld_shlibs_CXX=no
13412 m88k*)
13413 # FIXME: insert proper C++ library support
13414 ld_shlibs_CXX=no
13417 mvs*)
13418 case $cc_basename in
13419 cxx*)
13420 # FIXME: insert proper C++ library support
13421 ld_shlibs_CXX=no
13424 # FIXME: insert proper C++ library support
13425 ld_shlibs_CXX=no
13427 esac
13430 netbsd*)
13431 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13432 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13433 wlarc=
13434 hardcode_libdir_flag_spec_CXX='-R$libdir'
13435 hardcode_direct_CXX=yes
13436 hardcode_shlibpath_var_CXX=no
13438 # Workaround some broken pre-1.5 toolchains
13439 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13442 *nto* | *qnx*)
13443 ld_shlibs_CXX=yes
13446 openbsd2*)
13447 # C++ shared libraries are fairly broken
13448 ld_shlibs_CXX=no
13451 openbsd*)
13452 if test -f /usr/libexec/ld.so; then
13453 hardcode_direct_CXX=yes
13454 hardcode_shlibpath_var_CXX=no
13455 hardcode_direct_absolute_CXX=yes
13456 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13457 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13458 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13459 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13460 export_dynamic_flag_spec_CXX='${wl}-E'
13461 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13463 output_verbose_link_cmd=echo
13464 else
13465 ld_shlibs_CXX=no
13469 osf3* | osf4* | osf5*)
13470 case $cc_basename in
13471 KCC*)
13472 # Kuck and Associates, Inc. (KAI) C++ Compiler
13474 # KCC will only create a shared library if the output file
13475 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13476 # to its proper name (with version) after linking.
13477 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'
13479 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13480 hardcode_libdir_separator_CXX=:
13482 # Archives containing C++ object files must be created using
13483 # the KAI C++ compiler.
13484 case $host in
13485 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13486 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13487 esac
13489 RCC*)
13490 # Rational C++ 2.4.1
13491 # FIXME: insert proper C++ library support
13492 ld_shlibs_CXX=no
13494 cxx*)
13495 case $host in
13496 osf3*)
13497 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13498 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'
13499 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13502 allow_undefined_flag_CXX=' -expect_unresolved \*'
13503 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'
13504 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13505 echo "-hidden">> $lib.exp~
13506 $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~
13507 $RM $lib.exp'
13508 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13510 esac
13512 hardcode_libdir_separator_CXX=:
13514 # Commands to make compiler produce verbose output that lists
13515 # what "hidden" libraries, object files and flags are used when
13516 # linking a shared library.
13518 # There doesn't appear to be a way to prevent this compiler from
13519 # explicitly linking system object files so we need to strip them
13520 # from the output so that they don't get included in the library
13521 # dependencies.
13522 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'
13525 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13526 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13527 case $host in
13528 osf3*)
13529 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'
13532 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'
13534 esac
13536 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13537 hardcode_libdir_separator_CXX=:
13539 # Commands to make compiler produce verbose output that lists
13540 # what "hidden" libraries, object files and flags are used when
13541 # linking a shared library.
13542 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13544 else
13545 # FIXME: insert proper C++ library support
13546 ld_shlibs_CXX=no
13549 esac
13552 psos*)
13553 # FIXME: insert proper C++ library support
13554 ld_shlibs_CXX=no
13557 sunos4*)
13558 case $cc_basename in
13559 CC*)
13560 # Sun C++ 4.x
13561 # FIXME: insert proper C++ library support
13562 ld_shlibs_CXX=no
13564 lcc*)
13565 # Lucid
13566 # FIXME: insert proper C++ library support
13567 ld_shlibs_CXX=no
13570 # FIXME: insert proper C++ library support
13571 ld_shlibs_CXX=no
13573 esac
13576 solaris*)
13577 case $cc_basename in
13578 CC*)
13579 # Sun C++ 4.2, 5.x and Centerline C++
13580 archive_cmds_need_lc_CXX=yes
13581 no_undefined_flag_CXX=' -zdefs'
13582 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13583 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13584 $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'
13586 hardcode_libdir_flag_spec_CXX='-R$libdir'
13587 hardcode_shlibpath_var_CXX=no
13588 case $host_os in
13589 solaris2.[0-5] | solaris2.[0-5].*) ;;
13591 # The compiler driver will combine and reorder linker options,
13592 # but understands `-z linker_flag'.
13593 # Supported since Solaris 2.6 (maybe 2.5.1?)
13594 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13596 esac
13597 link_all_deplibs_CXX=yes
13599 output_verbose_link_cmd='echo'
13601 # Archives containing C++ object files must be created using
13602 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13603 # necessary to make sure instantiated templates are included
13604 # in the archive.
13605 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13607 gcx*)
13608 # Green Hills C++ Compiler
13609 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13611 # The C++ compiler must be used to create the archive.
13612 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13615 # GNU C++ compiler with Solaris linker
13616 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13617 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13618 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13619 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13620 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13621 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13623 # Commands to make compiler produce verbose output that lists
13624 # what "hidden" libraries, object files and flags are used when
13625 # linking a shared library.
13626 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13627 else
13628 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13629 # platform.
13630 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13631 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13632 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13634 # Commands to make compiler produce verbose output that lists
13635 # what "hidden" libraries, object files and flags are used when
13636 # linking a shared library.
13637 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13640 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13641 case $host_os in
13642 solaris2.[0-5] | solaris2.[0-5].*) ;;
13644 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13646 esac
13649 esac
13652 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13653 no_undefined_flag_CXX='${wl}-z,text'
13654 archive_cmds_need_lc_CXX=no
13655 hardcode_shlibpath_var_CXX=no
13656 runpath_var='LD_RUN_PATH'
13658 case $cc_basename in
13659 CC*)
13660 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13661 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13664 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13665 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13667 esac
13670 sysv5* | sco3.2v5* | sco5v6*)
13671 # Note: We can NOT use -z defs as we might desire, because we do not
13672 # link with -lc, and that would cause any symbols used from libc to
13673 # always be unresolved, which means just about no library would
13674 # ever link correctly. If we're not using GNU ld we use -z text
13675 # though, which does catch some bad symbols but isn't as heavy-handed
13676 # as -z defs.
13677 no_undefined_flag_CXX='${wl}-z,text'
13678 allow_undefined_flag_CXX='${wl}-z,nodefs'
13679 archive_cmds_need_lc_CXX=no
13680 hardcode_shlibpath_var_CXX=no
13681 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13682 hardcode_libdir_separator_CXX=':'
13683 link_all_deplibs_CXX=yes
13684 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13685 runpath_var='LD_RUN_PATH'
13687 case $cc_basename in
13688 CC*)
13689 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13690 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13693 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13694 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13696 esac
13699 tandem*)
13700 case $cc_basename in
13701 NCC*)
13702 # NonStop-UX NCC 3.20
13703 # FIXME: insert proper C++ library support
13704 ld_shlibs_CXX=no
13707 # FIXME: insert proper C++ library support
13708 ld_shlibs_CXX=no
13710 esac
13713 vxworks*)
13714 # FIXME: insert proper C++ library support
13715 ld_shlibs_CXX=no
13719 # FIXME: insert proper C++ library support
13720 ld_shlibs_CXX=no
13722 esac
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13725 $as_echo "$ld_shlibs_CXX" >&6; }
13726 test "$ld_shlibs_CXX" = no && can_build_shared=no
13728 GCC_CXX="$GXX"
13729 LD_CXX="$LD"
13731 ## CAVEAT EMPTOR:
13732 ## There is no encapsulation within the following macros, do not change
13733 ## the running order or otherwise move them around unless you know exactly
13734 ## what you are doing...
13735 # Dependencies to place before and after the object being linked:
13736 predep_objects_CXX=
13737 postdep_objects_CXX=
13738 predeps_CXX=
13739 postdeps_CXX=
13740 compiler_lib_search_path_CXX=
13742 cat > conftest.$ac_ext <<_LT_EOF
13743 class Foo
13745 public:
13746 Foo (void) { a = 0; }
13747 private:
13748 int a;
13750 _LT_EOF
13752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13753 (eval $ac_compile) 2>&5
13754 ac_status=$?
13755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13756 test $ac_status = 0; }; then
13757 # Parse the compiler output and extract the necessary
13758 # objects, libraries and library flags.
13760 # Sentinel used to keep track of whether or not we are before
13761 # the conftest object file.
13762 pre_test_object_deps_done=no
13764 for p in `eval "$output_verbose_link_cmd"`; do
13765 case $p in
13767 -L* | -R* | -l*)
13768 # Some compilers place space between "-{L,R}" and the path.
13769 # Remove the space.
13770 if test $p = "-L" ||
13771 test $p = "-R"; then
13772 prev=$p
13773 continue
13774 else
13775 prev=
13778 if test "$pre_test_object_deps_done" = no; then
13779 case $p in
13780 -L* | -R*)
13781 # Internal compiler library paths should come after those
13782 # provided the user. The postdeps already come after the
13783 # user supplied libs so there is no need to process them.
13784 if test -z "$compiler_lib_search_path_CXX"; then
13785 compiler_lib_search_path_CXX="${prev}${p}"
13786 else
13787 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13790 # The "-l" case would never come before the object being
13791 # linked, so don't bother handling this case.
13792 esac
13793 else
13794 if test -z "$postdeps_CXX"; then
13795 postdeps_CXX="${prev}${p}"
13796 else
13797 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13802 *.$objext)
13803 # This assumes that the test object file only shows up
13804 # once in the compiler output.
13805 if test "$p" = "conftest.$objext"; then
13806 pre_test_object_deps_done=yes
13807 continue
13810 if test "$pre_test_object_deps_done" = no; then
13811 if test -z "$predep_objects_CXX"; then
13812 predep_objects_CXX="$p"
13813 else
13814 predep_objects_CXX="$predep_objects_CXX $p"
13816 else
13817 if test -z "$postdep_objects_CXX"; then
13818 postdep_objects_CXX="$p"
13819 else
13820 postdep_objects_CXX="$postdep_objects_CXX $p"
13825 *) ;; # Ignore the rest.
13827 esac
13828 done
13830 # Clean up.
13831 rm -f a.out a.exe
13832 else
13833 echo "libtool.m4: error: problem compiling CXX test program"
13836 $RM -f confest.$objext
13838 # PORTME: override above test on systems where it is broken
13839 case $host_os in
13840 interix[3-9]*)
13841 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13842 # hack all around it, let's just trust "g++" to DTRT.
13843 predep_objects_CXX=
13844 postdep_objects_CXX=
13845 postdeps_CXX=
13848 linux*)
13849 case `$CC -V 2>&1 | sed 5q` in
13850 *Sun\ C*)
13851 # Sun C++ 5.9
13853 # The more standards-conforming stlport4 library is
13854 # incompatible with the Cstd library. Avoid specifying
13855 # it if it's in CXXFLAGS. Ignore libCrun as
13856 # -library=stlport4 depends on it.
13857 case " $CXX $CXXFLAGS " in
13858 *" -library=stlport4 "*)
13859 solaris_use_stlport4=yes
13861 esac
13863 if test "$solaris_use_stlport4" != yes; then
13864 postdeps_CXX='-library=Cstd -library=Crun'
13867 esac
13870 solaris*)
13871 case $cc_basename in
13872 CC*)
13873 # The more standards-conforming stlport4 library is
13874 # incompatible with the Cstd library. Avoid specifying
13875 # it if it's in CXXFLAGS. Ignore libCrun as
13876 # -library=stlport4 depends on it.
13877 case " $CXX $CXXFLAGS " in
13878 *" -library=stlport4 "*)
13879 solaris_use_stlport4=yes
13881 esac
13883 # Adding this requires a known-good setup of shared libraries for
13884 # Sun compiler versions before 5.6, else PIC objects from an old
13885 # archive will be linked into the output, leading to subtle bugs.
13886 if test "$solaris_use_stlport4" != yes; then
13887 postdeps_CXX='-library=Cstd -library=Crun'
13890 esac
13892 esac
13895 case " $postdeps_CXX " in
13896 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13897 esac
13898 compiler_lib_search_dirs_CXX=
13899 if test -n "${compiler_lib_search_path_CXX}"; then
13900 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13933 lt_prog_compiler_wl_CXX=
13934 lt_prog_compiler_pic_CXX=
13935 lt_prog_compiler_static_CXX=
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13938 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13940 # C++ specific cases for pic, static, wl, etc.
13941 if test "$GXX" = yes; then
13942 lt_prog_compiler_wl_CXX='-Wl,'
13943 lt_prog_compiler_static_CXX='-static'
13945 case $host_os in
13946 aix*)
13947 # All AIX code is PIC.
13948 if test "$host_cpu" = ia64; then
13949 # AIX 5 now supports IA64 processor
13950 lt_prog_compiler_static_CXX='-Bstatic'
13954 amigaos*)
13955 case $host_cpu in
13956 powerpc)
13957 # see comment about AmigaOS4 .so support
13958 lt_prog_compiler_pic_CXX='-fPIC'
13960 m68k)
13961 # FIXME: we need at least 68020 code to build shared libraries, but
13962 # adding the `-m68020' flag to GCC prevents building anything better,
13963 # like `-m68040'.
13964 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13966 esac
13969 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13970 # PIC is the default for these OSes.
13972 mingw* | cygwin* | os2* | pw32* | cegcc*)
13973 # This hack is so that the source file can tell whether it is being
13974 # built for inclusion in a dll (and should export symbols for example).
13975 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13976 # (--disable-auto-import) libraries
13977 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13979 darwin* | rhapsody*)
13980 # PIC is the default on this platform
13981 # Common symbols not allowed in MH_DYLIB files
13982 lt_prog_compiler_pic_CXX='-fno-common'
13984 *djgpp*)
13985 # DJGPP does not support shared libraries at all
13986 lt_prog_compiler_pic_CXX=
13988 interix[3-9]*)
13989 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13990 # Instead, we relocate shared libraries at runtime.
13992 sysv4*MP*)
13993 if test -d /usr/nec; then
13994 lt_prog_compiler_pic_CXX=-Kconform_pic
13997 hpux*)
13998 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13999 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14000 # sets the default TLS model and affects inlining.
14001 case $host_cpu in
14002 hppa*64*)
14005 lt_prog_compiler_pic_CXX='-fPIC'
14007 esac
14009 *qnx* | *nto*)
14010 # QNX uses GNU C++, but need to define -shared option too, otherwise
14011 # it will coredump.
14012 lt_prog_compiler_pic_CXX='-fPIC -shared'
14015 lt_prog_compiler_pic_CXX='-fPIC'
14017 esac
14018 else
14019 case $host_os in
14020 aix[4-9]*)
14021 # All AIX code is PIC.
14022 if test "$host_cpu" = ia64; then
14023 # AIX 5 now supports IA64 processor
14024 lt_prog_compiler_static_CXX='-Bstatic'
14025 else
14026 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14029 chorus*)
14030 case $cc_basename in
14031 cxch68*)
14032 # Green Hills C++ Compiler
14033 # _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"
14035 esac
14037 dgux*)
14038 case $cc_basename in
14039 ec++*)
14040 lt_prog_compiler_pic_CXX='-KPIC'
14042 ghcx*)
14043 # Green Hills C++ Compiler
14044 lt_prog_compiler_pic_CXX='-pic'
14048 esac
14050 freebsd* | dragonfly*)
14051 # FreeBSD uses GNU C++
14053 hpux9* | hpux10* | hpux11*)
14054 case $cc_basename in
14055 CC*)
14056 lt_prog_compiler_wl_CXX='-Wl,'
14057 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14058 if test "$host_cpu" != ia64; then
14059 lt_prog_compiler_pic_CXX='+Z'
14062 aCC*)
14063 lt_prog_compiler_wl_CXX='-Wl,'
14064 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14065 case $host_cpu in
14066 hppa*64*|ia64*)
14067 # +Z the default
14070 lt_prog_compiler_pic_CXX='+Z'
14072 esac
14076 esac
14078 interix*)
14079 # This is c89, which is MS Visual C++ (no shared libs)
14080 # Anyone wants to do a port?
14082 irix5* | irix6* | nonstopux*)
14083 case $cc_basename in
14084 CC*)
14085 lt_prog_compiler_wl_CXX='-Wl,'
14086 lt_prog_compiler_static_CXX='-non_shared'
14087 # CC pic flag -KPIC is the default.
14091 esac
14093 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14094 case $cc_basename in
14095 KCC*)
14096 # KAI C++ Compiler
14097 lt_prog_compiler_wl_CXX='--backend -Wl,'
14098 lt_prog_compiler_pic_CXX='-fPIC'
14100 ecpc* )
14101 # old Intel C++ for x86_64 which still supported -KPIC.
14102 lt_prog_compiler_wl_CXX='-Wl,'
14103 lt_prog_compiler_pic_CXX='-KPIC'
14104 lt_prog_compiler_static_CXX='-static'
14106 icpc* )
14107 # Intel C++, used to be incompatible with GCC.
14108 # ICC 10 doesn't accept -KPIC any more.
14109 lt_prog_compiler_wl_CXX='-Wl,'
14110 lt_prog_compiler_pic_CXX='-fPIC'
14111 lt_prog_compiler_static_CXX='-static'
14113 pgCC* | pgcpp*)
14114 # Portland Group C++ compiler
14115 lt_prog_compiler_wl_CXX='-Wl,'
14116 lt_prog_compiler_pic_CXX='-fpic'
14117 lt_prog_compiler_static_CXX='-Bstatic'
14119 cxx*)
14120 # Compaq C++
14121 # Make sure the PIC flag is empty. It appears that all Alpha
14122 # Linux and Compaq Tru64 Unix objects are PIC.
14123 lt_prog_compiler_pic_CXX=
14124 lt_prog_compiler_static_CXX='-non_shared'
14126 xlc* | xlC*)
14127 # IBM XL 8.0 on PPC
14128 lt_prog_compiler_wl_CXX='-Wl,'
14129 lt_prog_compiler_pic_CXX='-qpic'
14130 lt_prog_compiler_static_CXX='-qstaticlink'
14133 case `$CC -V 2>&1 | sed 5q` in
14134 *Sun\ C*)
14135 # Sun C++ 5.9
14136 lt_prog_compiler_pic_CXX='-KPIC'
14137 lt_prog_compiler_static_CXX='-Bstatic'
14138 lt_prog_compiler_wl_CXX='-Qoption ld '
14140 esac
14142 esac
14144 lynxos*)
14146 m88k*)
14148 mvs*)
14149 case $cc_basename in
14150 cxx*)
14151 lt_prog_compiler_pic_CXX='-W c,exportall'
14155 esac
14157 netbsd* | netbsdelf*-gnu)
14159 *qnx* | *nto*)
14160 # QNX uses GNU C++, but need to define -shared option too, otherwise
14161 # it will coredump.
14162 lt_prog_compiler_pic_CXX='-fPIC -shared'
14164 osf3* | osf4* | osf5*)
14165 case $cc_basename in
14166 KCC*)
14167 lt_prog_compiler_wl_CXX='--backend -Wl,'
14169 RCC*)
14170 # Rational C++ 2.4.1
14171 lt_prog_compiler_pic_CXX='-pic'
14173 cxx*)
14174 # Digital/Compaq C++
14175 lt_prog_compiler_wl_CXX='-Wl,'
14176 # Make sure the PIC flag is empty. It appears that all Alpha
14177 # Linux and Compaq Tru64 Unix objects are PIC.
14178 lt_prog_compiler_pic_CXX=
14179 lt_prog_compiler_static_CXX='-non_shared'
14183 esac
14185 psos*)
14187 solaris*)
14188 case $cc_basename in
14189 CC*)
14190 # Sun C++ 4.2, 5.x and Centerline C++
14191 lt_prog_compiler_pic_CXX='-KPIC'
14192 lt_prog_compiler_static_CXX='-Bstatic'
14193 lt_prog_compiler_wl_CXX='-Qoption ld '
14195 gcx*)
14196 # Green Hills C++ Compiler
14197 lt_prog_compiler_pic_CXX='-PIC'
14201 esac
14203 sunos4*)
14204 case $cc_basename in
14205 CC*)
14206 # Sun C++ 4.x
14207 lt_prog_compiler_pic_CXX='-pic'
14208 lt_prog_compiler_static_CXX='-Bstatic'
14210 lcc*)
14211 # Lucid
14212 lt_prog_compiler_pic_CXX='-pic'
14216 esac
14218 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14219 case $cc_basename in
14220 CC*)
14221 lt_prog_compiler_wl_CXX='-Wl,'
14222 lt_prog_compiler_pic_CXX='-KPIC'
14223 lt_prog_compiler_static_CXX='-Bstatic'
14225 esac
14227 tandem*)
14228 case $cc_basename in
14229 NCC*)
14230 # NonStop-UX NCC 3.20
14231 lt_prog_compiler_pic_CXX='-KPIC'
14235 esac
14237 vxworks*)
14240 lt_prog_compiler_can_build_shared_CXX=no
14242 esac
14245 case $host_os in
14246 # For platforms which do not support PIC, -DPIC is meaningless:
14247 *djgpp*)
14248 lt_prog_compiler_pic_CXX=
14251 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14253 esac
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14255 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14260 # Check to make sure the PIC flag actually works.
14262 if test -n "$lt_prog_compiler_pic_CXX"; then
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14264 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14265 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14266 $as_echo_n "(cached) " >&6
14267 else
14268 lt_cv_prog_compiler_pic_works_CXX=no
14269 ac_outfile=conftest.$ac_objext
14270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14271 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14272 # Insert the option either (1) after the last *FLAGS variable, or
14273 # (2) before a word containing "conftest.", or (3) at the end.
14274 # Note that $ac_compile itself does not contain backslashes and begins
14275 # with a dollar sign (not a hyphen), so the echo should work correctly.
14276 # The option is referenced via a variable to avoid confusing sed.
14277 lt_compile=`echo "$ac_compile" | $SED \
14278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14280 -e 's:$: $lt_compiler_flag:'`
14281 (eval echo "\"\$as_me:14281: $lt_compile\"" >&5)
14282 (eval "$lt_compile" 2>conftest.err)
14283 ac_status=$?
14284 cat conftest.err >&5
14285 echo "$as_me:14285: \$? = $ac_status" >&5
14286 if (exit $ac_status) && test -s "$ac_outfile"; then
14287 # The compiler can only warn and ignore the option if not recognized
14288 # So say no if there are warnings other than the usual output.
14289 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14290 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14291 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14292 lt_cv_prog_compiler_pic_works_CXX=yes
14295 $RM conftest*
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14299 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14301 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14302 case $lt_prog_compiler_pic_CXX in
14303 "" | " "*) ;;
14304 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14305 esac
14306 else
14307 lt_prog_compiler_pic_CXX=
14308 lt_prog_compiler_can_build_shared_CXX=no
14316 # Check to make sure the static flag actually works.
14318 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14320 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14321 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14322 $as_echo_n "(cached) " >&6
14323 else
14324 lt_cv_prog_compiler_static_works_CXX=no
14325 save_LDFLAGS="$LDFLAGS"
14326 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14327 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14328 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14329 # The linker can only warn and ignore the option if not recognized
14330 # So say no if there are warnings
14331 if test -s conftest.err; then
14332 # Append any errors to the config.log.
14333 cat conftest.err 1>&5
14334 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14335 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14336 if diff conftest.exp conftest.er2 >/dev/null; then
14337 lt_cv_prog_compiler_static_works_CXX=yes
14339 else
14340 lt_cv_prog_compiler_static_works_CXX=yes
14343 $RM -r conftest*
14344 LDFLAGS="$save_LDFLAGS"
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14348 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14350 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14352 else
14353 lt_prog_compiler_static_CXX=
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14360 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14361 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14362 $as_echo_n "(cached) " >&6
14363 else
14364 lt_cv_prog_compiler_c_o_CXX=no
14365 $RM -r conftest 2>/dev/null
14366 mkdir conftest
14367 cd conftest
14368 mkdir out
14369 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14371 lt_compiler_flag="-o out/conftest2.$ac_objext"
14372 # Insert the option either (1) after the last *FLAGS variable, or
14373 # (2) before a word containing "conftest.", or (3) at the end.
14374 # Note that $ac_compile itself does not contain backslashes and begins
14375 # with a dollar sign (not a hyphen), so the echo should work correctly.
14376 lt_compile=`echo "$ac_compile" | $SED \
14377 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14378 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14379 -e 's:$: $lt_compiler_flag:'`
14380 (eval echo "\"\$as_me:14380: $lt_compile\"" >&5)
14381 (eval "$lt_compile" 2>out/conftest.err)
14382 ac_status=$?
14383 cat out/conftest.err >&5
14384 echo "$as_me:14384: \$? = $ac_status" >&5
14385 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14386 then
14387 # The compiler can only warn and ignore the option if not recognized
14388 # So say no if there are warnings
14389 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14390 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14391 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14392 lt_cv_prog_compiler_c_o_CXX=yes
14395 chmod u+w . 2>&5
14396 $RM conftest*
14397 # SGI C++ compiler will create directory out/ii_files/ for
14398 # template instantiation
14399 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14400 $RM out/* && rmdir out
14401 cd ..
14402 $RM -r conftest
14403 $RM conftest*
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14407 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14412 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14413 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14414 $as_echo_n "(cached) " >&6
14415 else
14416 lt_cv_prog_compiler_c_o_CXX=no
14417 $RM -r conftest 2>/dev/null
14418 mkdir conftest
14419 cd conftest
14420 mkdir out
14421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14423 lt_compiler_flag="-o out/conftest2.$ac_objext"
14424 # Insert the option either (1) after the last *FLAGS variable, or
14425 # (2) before a word containing "conftest.", or (3) at the end.
14426 # Note that $ac_compile itself does not contain backslashes and begins
14427 # with a dollar sign (not a hyphen), so the echo should work correctly.
14428 lt_compile=`echo "$ac_compile" | $SED \
14429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14431 -e 's:$: $lt_compiler_flag:'`
14432 (eval echo "\"\$as_me:14432: $lt_compile\"" >&5)
14433 (eval "$lt_compile" 2>out/conftest.err)
14434 ac_status=$?
14435 cat out/conftest.err >&5
14436 echo "$as_me:14436: \$? = $ac_status" >&5
14437 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14438 then
14439 # The compiler can only warn and ignore the option if not recognized
14440 # So say no if there are warnings
14441 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14442 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14443 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14444 lt_cv_prog_compiler_c_o_CXX=yes
14447 chmod u+w . 2>&5
14448 $RM conftest*
14449 # SGI C++ compiler will create directory out/ii_files/ for
14450 # template instantiation
14451 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14452 $RM out/* && rmdir out
14453 cd ..
14454 $RM -r conftest
14455 $RM conftest*
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14459 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14464 hard_links="nottested"
14465 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14466 # do not overwrite the value of need_locks provided by the user
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14468 $as_echo_n "checking if we can lock with hard links... " >&6; }
14469 hard_links=yes
14470 $RM conftest*
14471 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14472 touch conftest.a
14473 ln conftest.a conftest.b 2>&5 || hard_links=no
14474 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14476 $as_echo "$hard_links" >&6; }
14477 if test "$hard_links" = no; then
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14479 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14480 need_locks=warn
14482 else
14483 need_locks=no
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14489 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14491 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14492 case $host_os in
14493 aix[4-9]*)
14494 # If we're using GNU nm, then we don't want the "-C" option.
14495 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14496 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14497 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'
14498 else
14499 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'
14502 pw32*)
14503 export_symbols_cmds_CXX="$ltdll_cmds"
14505 cygwin* | mingw* | cegcc*)
14506 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'
14508 linux* | k*bsd*-gnu)
14509 link_all_deplibs_CXX=no
14512 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14514 esac
14515 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14518 $as_echo "$ld_shlibs_CXX" >&6; }
14519 test "$ld_shlibs_CXX" = no && can_build_shared=no
14521 with_gnu_ld_CXX=$with_gnu_ld
14529 # Do we need to explicitly link libc?
14531 case "x$archive_cmds_need_lc_CXX" in
14532 x|xyes)
14533 # Assume -lc should be added
14534 archive_cmds_need_lc_CXX=yes
14536 if test "$enable_shared" = yes && test "$GCC" = yes; then
14537 case $archive_cmds_CXX in
14538 *'~'*)
14539 # FIXME: we may have to deal with multi-command sequences.
14541 '$CC '*)
14542 # Test whether the compiler implicitly links with -lc since on some
14543 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14544 # to ld, don't add -lc before -lgcc.
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14546 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14547 $RM conftest*
14548 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14551 (eval $ac_compile) 2>&5
14552 ac_status=$?
14553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14554 test $ac_status = 0; } 2>conftest.err; then
14555 soname=conftest
14556 lib=conftest
14557 libobjs=conftest.$ac_objext
14558 deplibs=
14559 wl=$lt_prog_compiler_wl_CXX
14560 pic_flag=$lt_prog_compiler_pic_CXX
14561 compiler_flags=-v
14562 linker_flags=-v
14563 verstring=
14564 output_objdir=.
14565 libname=conftest
14566 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14567 allow_undefined_flag_CXX=
14568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14569 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14570 ac_status=$?
14571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14572 test $ac_status = 0; }
14573 then
14574 archive_cmds_need_lc_CXX=no
14575 else
14576 archive_cmds_need_lc_CXX=yes
14578 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14579 else
14580 cat conftest.err 1>&5
14582 $RM conftest*
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14584 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14586 esac
14589 esac
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14655 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14657 library_names_spec=
14658 libname_spec='lib$name'
14659 soname_spec=
14660 shrext_cmds=".so"
14661 postinstall_cmds=
14662 postuninstall_cmds=
14663 finish_cmds=
14664 finish_eval=
14665 shlibpath_var=
14666 shlibpath_overrides_runpath=unknown
14667 version_type=none
14668 dynamic_linker="$host_os ld.so"
14669 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14670 need_lib_prefix=unknown
14671 hardcode_into_libs=no
14673 # when you set need_version to no, make sure it does not cause -set_version
14674 # flags to be left without arguments
14675 need_version=unknown
14677 case $host_os in
14678 aix3*)
14679 version_type=linux
14680 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14681 shlibpath_var=LIBPATH
14683 # AIX 3 has no versioning support, so we append a major version to the name.
14684 soname_spec='${libname}${release}${shared_ext}$major'
14687 aix[4-9]*)
14688 version_type=linux
14689 need_lib_prefix=no
14690 need_version=no
14691 hardcode_into_libs=yes
14692 if test "$host_cpu" = ia64; then
14693 # AIX 5 supports IA64
14694 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14695 shlibpath_var=LD_LIBRARY_PATH
14696 else
14697 # With GCC up to 2.95.x, collect2 would create an import file
14698 # for dependence libraries. The import file would start with
14699 # the line `#! .'. This would cause the generated library to
14700 # depend on `.', always an invalid library. This was fixed in
14701 # development snapshots of GCC prior to 3.0.
14702 case $host_os in
14703 aix4 | aix4.[01] | aix4.[01].*)
14704 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14705 echo ' yes '
14706 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14708 else
14709 can_build_shared=no
14712 esac
14713 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14714 # soname into executable. Probably we can add versioning support to
14715 # collect2, so additional links can be useful in future.
14716 if test "$aix_use_runtimelinking" = yes; then
14717 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14718 # instead of lib<name>.a to let people know that these are not
14719 # typical AIX shared libraries.
14720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14721 else
14722 # We preserve .a as extension for shared libraries through AIX4.2
14723 # and later when we are not doing run time linking.
14724 library_names_spec='${libname}${release}.a $libname.a'
14725 soname_spec='${libname}${release}${shared_ext}$major'
14727 shlibpath_var=LIBPATH
14731 amigaos*)
14732 case $host_cpu in
14733 powerpc)
14734 # Since July 2007 AmigaOS4 officially supports .so libraries.
14735 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14738 m68k)
14739 library_names_spec='$libname.ixlibrary $libname.a'
14740 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14741 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'
14743 esac
14746 beos*)
14747 library_names_spec='${libname}${shared_ext}'
14748 dynamic_linker="$host_os ld.so"
14749 shlibpath_var=LIBRARY_PATH
14752 bsdi[45]*)
14753 version_type=linux
14754 need_version=no
14755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14756 soname_spec='${libname}${release}${shared_ext}$major'
14757 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14758 shlibpath_var=LD_LIBRARY_PATH
14759 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14760 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14761 # the default ld.so.conf also contains /usr/contrib/lib and
14762 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14763 # libtool to hard-code these into programs
14766 cygwin* | mingw* | pw32* | cegcc*)
14767 version_type=windows
14768 shrext_cmds=".dll"
14769 need_version=no
14770 need_lib_prefix=no
14772 case $GCC,$host_os in
14773 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14774 library_names_spec='$libname.dll.a'
14775 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14776 postinstall_cmds='base_file=`basename \${file}`~
14777 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14778 dldir=$destdir/`dirname \$dlpath`~
14779 test -d \$dldir || mkdir -p \$dldir~
14780 $install_prog $dir/$dlname \$dldir/$dlname~
14781 chmod a+x \$dldir/$dlname~
14782 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14783 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14785 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14786 dlpath=$dir/\$dldll~
14787 $RM \$dlpath'
14788 shlibpath_overrides_runpath=yes
14790 case $host_os in
14791 cygwin*)
14792 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14793 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14794 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14796 mingw* | cegcc*)
14797 # MinGW DLLs use traditional 'lib' prefix
14798 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14799 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14800 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14801 # It is most probably a Windows format PATH printed by
14802 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14803 # path with ; separators, and with drive letters. We can handle the
14804 # drive letters (cygwin fileutils understands them), so leave them,
14805 # especially as we might pass files found there to a mingw objdump,
14806 # which wouldn't understand a cygwinified path. Ahh.
14807 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14808 else
14809 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14812 pw32*)
14813 # pw32 DLLs use 'pw' prefix rather than 'lib'
14814 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14816 esac
14820 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14822 esac
14823 dynamic_linker='Win32 ld.exe'
14824 # FIXME: first we should search . and the directory the executable is in
14825 shlibpath_var=PATH
14828 darwin* | rhapsody*)
14829 dynamic_linker="$host_os dyld"
14830 version_type=darwin
14831 need_lib_prefix=no
14832 need_version=no
14833 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14834 soname_spec='${libname}${release}${major}$shared_ext'
14835 shlibpath_overrides_runpath=yes
14836 shlibpath_var=DYLD_LIBRARY_PATH
14837 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14839 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14842 dgux*)
14843 version_type=linux
14844 need_lib_prefix=no
14845 need_version=no
14846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14847 soname_spec='${libname}${release}${shared_ext}$major'
14848 shlibpath_var=LD_LIBRARY_PATH
14851 freebsd1*)
14852 dynamic_linker=no
14855 freebsd* | dragonfly*)
14856 # DragonFly does not have aout. When/if they implement a new
14857 # versioning mechanism, adjust this.
14858 if test -x /usr/bin/objformat; then
14859 objformat=`/usr/bin/objformat`
14860 else
14861 case $host_os in
14862 freebsd[123]*) objformat=aout ;;
14863 *) objformat=elf ;;
14864 esac
14866 version_type=freebsd-$objformat
14867 case $version_type in
14868 freebsd-elf*)
14869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14870 need_version=no
14871 need_lib_prefix=no
14873 freebsd-*)
14874 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14875 need_version=yes
14877 esac
14878 shlibpath_var=LD_LIBRARY_PATH
14879 case $host_os in
14880 freebsd2*)
14881 shlibpath_overrides_runpath=yes
14883 freebsd3.[01]* | freebsdelf3.[01]*)
14884 shlibpath_overrides_runpath=yes
14885 hardcode_into_libs=yes
14887 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14888 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14889 shlibpath_overrides_runpath=no
14890 hardcode_into_libs=yes
14892 *) # from 4.6 on, and DragonFly
14893 shlibpath_overrides_runpath=yes
14894 hardcode_into_libs=yes
14896 esac
14899 gnu*)
14900 version_type=linux
14901 need_lib_prefix=no
14902 need_version=no
14903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14904 soname_spec='${libname}${release}${shared_ext}$major'
14905 shlibpath_var=LD_LIBRARY_PATH
14906 hardcode_into_libs=yes
14909 hpux9* | hpux10* | hpux11*)
14910 # Give a soname corresponding to the major version so that dld.sl refuses to
14911 # link against other versions.
14912 version_type=sunos
14913 need_lib_prefix=no
14914 need_version=no
14915 case $host_cpu in
14916 ia64*)
14917 shrext_cmds='.so'
14918 hardcode_into_libs=yes
14919 dynamic_linker="$host_os dld.so"
14920 shlibpath_var=LD_LIBRARY_PATH
14921 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14923 soname_spec='${libname}${release}${shared_ext}$major'
14924 if test "X$HPUX_IA64_MODE" = X32; then
14925 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14926 else
14927 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14929 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14931 hppa*64*)
14932 shrext_cmds='.sl'
14933 hardcode_into_libs=yes
14934 dynamic_linker="$host_os dld.sl"
14935 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14936 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14938 soname_spec='${libname}${release}${shared_ext}$major'
14939 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14940 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14943 shrext_cmds='.sl'
14944 dynamic_linker="$host_os dld.sl"
14945 shlibpath_var=SHLIB_PATH
14946 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14948 soname_spec='${libname}${release}${shared_ext}$major'
14950 esac
14951 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14952 postinstall_cmds='chmod 555 $lib'
14955 interix[3-9]*)
14956 version_type=linux
14957 need_lib_prefix=no
14958 need_version=no
14959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14960 soname_spec='${libname}${release}${shared_ext}$major'
14961 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14962 shlibpath_var=LD_LIBRARY_PATH
14963 shlibpath_overrides_runpath=no
14964 hardcode_into_libs=yes
14967 irix5* | irix6* | nonstopux*)
14968 case $host_os in
14969 nonstopux*) version_type=nonstopux ;;
14971 if test "$lt_cv_prog_gnu_ld" = yes; then
14972 version_type=linux
14973 else
14974 version_type=irix
14975 fi ;;
14976 esac
14977 need_lib_prefix=no
14978 need_version=no
14979 soname_spec='${libname}${release}${shared_ext}$major'
14980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14981 case $host_os in
14982 irix5* | nonstopux*)
14983 libsuff= shlibsuff=
14986 case $LD in # libtool.m4 will add one of these switches to LD
14987 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14988 libsuff= shlibsuff= libmagic=32-bit;;
14989 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14990 libsuff=32 shlibsuff=N32 libmagic=N32;;
14991 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14992 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14993 *) libsuff= shlibsuff= libmagic=never-match;;
14994 esac
14996 esac
14997 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14998 shlibpath_overrides_runpath=no
14999 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15000 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15001 hardcode_into_libs=yes
15004 # No shared lib support for Linux oldld, aout, or coff.
15005 linux*oldld* | linux*aout* | linux*coff*)
15006 dynamic_linker=no
15009 # This must be Linux ELF.
15010 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15011 version_type=linux
15012 need_lib_prefix=no
15013 need_version=no
15014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15015 soname_spec='${libname}${release}${shared_ext}$major'
15016 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15017 shlibpath_var=LD_LIBRARY_PATH
15018 shlibpath_overrides_runpath=no
15019 # Some binutils ld are patched to set DT_RUNPATH
15020 save_LDFLAGS=$LDFLAGS
15021 save_libdir=$libdir
15022 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15023 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15025 /* end confdefs.h. */
15028 main ()
15032 return 0;
15034 _ACEOF
15035 if ac_fn_cxx_try_link "$LINENO"; then :
15036 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15037 shlibpath_overrides_runpath=yes
15040 rm -f core conftest.err conftest.$ac_objext \
15041 conftest$ac_exeext conftest.$ac_ext
15042 LDFLAGS=$save_LDFLAGS
15043 libdir=$save_libdir
15045 # This implies no fast_install, which is unacceptable.
15046 # Some rework will be needed to allow for fast_install
15047 # before this can be enabled.
15048 hardcode_into_libs=yes
15050 # Append ld.so.conf contents to the search path
15051 if test -f /etc/ld.so.conf; then
15052 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' ' '`
15053 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15056 # We used to test for /lib/ld.so.1 and disable shared libraries on
15057 # powerpc, because MkLinux only supported shared libraries with the
15058 # GNU dynamic linker. Since this was broken with cross compilers,
15059 # most powerpc-linux boxes support dynamic linking these days and
15060 # people can always --disable-shared, the test was removed, and we
15061 # assume the GNU/Linux dynamic linker is in use.
15062 dynamic_linker='GNU/Linux ld.so'
15065 netbsdelf*-gnu)
15066 version_type=linux
15067 need_lib_prefix=no
15068 need_version=no
15069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15070 soname_spec='${libname}${release}${shared_ext}$major'
15071 shlibpath_var=LD_LIBRARY_PATH
15072 shlibpath_overrides_runpath=no
15073 hardcode_into_libs=yes
15074 dynamic_linker='NetBSD ld.elf_so'
15077 netbsd*)
15078 version_type=sunos
15079 need_lib_prefix=no
15080 need_version=no
15081 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15084 dynamic_linker='NetBSD (a.out) ld.so'
15085 else
15086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15087 soname_spec='${libname}${release}${shared_ext}$major'
15088 dynamic_linker='NetBSD ld.elf_so'
15090 shlibpath_var=LD_LIBRARY_PATH
15091 shlibpath_overrides_runpath=yes
15092 hardcode_into_libs=yes
15095 newsos6)
15096 version_type=linux
15097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15098 shlibpath_var=LD_LIBRARY_PATH
15099 shlibpath_overrides_runpath=yes
15102 *nto* | *qnx*)
15103 version_type=qnx
15104 need_lib_prefix=no
15105 need_version=no
15106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15107 soname_spec='${libname}${release}${shared_ext}$major'
15108 shlibpath_var=LD_LIBRARY_PATH
15109 shlibpath_overrides_runpath=no
15110 hardcode_into_libs=yes
15111 dynamic_linker='ldqnx.so'
15114 openbsd*)
15115 version_type=sunos
15116 sys_lib_dlsearch_path_spec="/usr/lib"
15117 need_lib_prefix=no
15118 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15119 case $host_os in
15120 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15121 *) need_version=no ;;
15122 esac
15123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15125 shlibpath_var=LD_LIBRARY_PATH
15126 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15127 case $host_os in
15128 openbsd2.[89] | openbsd2.[89].*)
15129 shlibpath_overrides_runpath=no
15132 shlibpath_overrides_runpath=yes
15134 esac
15135 else
15136 shlibpath_overrides_runpath=yes
15140 os2*)
15141 libname_spec='$name'
15142 shrext_cmds=".dll"
15143 need_lib_prefix=no
15144 library_names_spec='$libname${shared_ext} $libname.a'
15145 dynamic_linker='OS/2 ld.exe'
15146 shlibpath_var=LIBPATH
15149 osf3* | osf4* | osf5*)
15150 version_type=osf
15151 need_lib_prefix=no
15152 need_version=no
15153 soname_spec='${libname}${release}${shared_ext}$major'
15154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15155 shlibpath_var=LD_LIBRARY_PATH
15156 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15157 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15160 rdos*)
15161 dynamic_linker=no
15164 solaris*)
15165 version_type=linux
15166 need_lib_prefix=no
15167 need_version=no
15168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15169 soname_spec='${libname}${release}${shared_ext}$major'
15170 shlibpath_var=LD_LIBRARY_PATH
15171 shlibpath_overrides_runpath=yes
15172 hardcode_into_libs=yes
15173 # ldd complains unless libraries are executable
15174 postinstall_cmds='chmod +x $lib'
15177 sunos4*)
15178 version_type=sunos
15179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15180 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15181 shlibpath_var=LD_LIBRARY_PATH
15182 shlibpath_overrides_runpath=yes
15183 if test "$with_gnu_ld" = yes; then
15184 need_lib_prefix=no
15186 need_version=yes
15189 sysv4 | sysv4.3*)
15190 version_type=linux
15191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15192 soname_spec='${libname}${release}${shared_ext}$major'
15193 shlibpath_var=LD_LIBRARY_PATH
15194 case $host_vendor in
15195 sni)
15196 shlibpath_overrides_runpath=no
15197 need_lib_prefix=no
15198 runpath_var=LD_RUN_PATH
15200 siemens)
15201 need_lib_prefix=no
15203 motorola)
15204 need_lib_prefix=no
15205 need_version=no
15206 shlibpath_overrides_runpath=no
15207 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15209 esac
15212 sysv4*MP*)
15213 if test -d /usr/nec ;then
15214 version_type=linux
15215 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15216 soname_spec='$libname${shared_ext}.$major'
15217 shlibpath_var=LD_LIBRARY_PATH
15221 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15222 version_type=freebsd-elf
15223 need_lib_prefix=no
15224 need_version=no
15225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15226 soname_spec='${libname}${release}${shared_ext}$major'
15227 shlibpath_var=LD_LIBRARY_PATH
15228 shlibpath_overrides_runpath=yes
15229 hardcode_into_libs=yes
15230 if test "$with_gnu_ld" = yes; then
15231 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15232 else
15233 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15234 case $host_os in
15235 sco3.2v5*)
15236 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15238 esac
15240 sys_lib_dlsearch_path_spec='/usr/lib'
15243 tpf*)
15244 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15245 version_type=linux
15246 need_lib_prefix=no
15247 need_version=no
15248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15249 shlibpath_var=LD_LIBRARY_PATH
15250 shlibpath_overrides_runpath=no
15251 hardcode_into_libs=yes
15254 uts4*)
15255 version_type=linux
15256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15257 soname_spec='${libname}${release}${shared_ext}$major'
15258 shlibpath_var=LD_LIBRARY_PATH
15262 dynamic_linker=no
15264 esac
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15266 $as_echo "$dynamic_linker" >&6; }
15267 test "$dynamic_linker" = no && can_build_shared=no
15269 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15270 if test "$GCC" = yes; then
15271 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15274 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15275 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15277 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15278 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15317 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15318 hardcode_action_CXX=
15319 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15320 test -n "$runpath_var_CXX" ||
15321 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15323 # We can hardcode non-existent directories.
15324 if test "$hardcode_direct_CXX" != no &&
15325 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15326 # have to relink, otherwise we might link with an installed library
15327 # when we should be linking with a yet-to-be-installed one
15328 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15329 test "$hardcode_minus_L_CXX" != no; then
15330 # Linking always hardcodes the temporary library directory.
15331 hardcode_action_CXX=relink
15332 else
15333 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15334 hardcode_action_CXX=immediate
15336 else
15337 # We cannot hardcode anything, or else we can only hardcode existing
15338 # directories.
15339 hardcode_action_CXX=unsupported
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15342 $as_echo "$hardcode_action_CXX" >&6; }
15344 if test "$hardcode_action_CXX" = relink ||
15345 test "$inherit_rpath_CXX" = yes; then
15346 # Fast installation is not supported
15347 enable_fast_install=no
15348 elif test "$shlibpath_overrides_runpath" = yes ||
15349 test "$enable_shared" = no; then
15350 # Fast installation is not necessary
15351 enable_fast_install=needless
15360 fi # test -n "$compiler"
15362 CC=$lt_save_CC
15363 LDCXX=$LD
15364 LD=$lt_save_LD
15365 GCC=$lt_save_GCC
15366 with_gnu_ld=$lt_save_with_gnu_ld
15367 lt_cv_path_LDCXX=$lt_cv_path_LD
15368 lt_cv_path_LD=$lt_save_path_LD
15369 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15370 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15371 fi # test "$_lt_caught_CXX_error" != yes
15373 ac_ext=c
15374 ac_cpp='$CPP $CPPFLAGS'
15375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15381 $as_echo_n "checking for inline... " >&6; }
15382 if test "${ac_cv_c_inline+set}" = set; then :
15383 $as_echo_n "(cached) " >&6
15384 else
15385 ac_cv_c_inline=no
15386 for ac_kw in inline __inline__ __inline; do
15387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15388 /* end confdefs.h. */
15389 #ifndef __cplusplus
15390 typedef int foo_t;
15391 static $ac_kw foo_t static_foo () {return 0; }
15392 $ac_kw foo_t foo () {return 0; }
15393 #endif
15395 _ACEOF
15396 if ac_fn_c_try_compile "$LINENO"; then :
15397 ac_cv_c_inline=$ac_kw
15399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15400 test "$ac_cv_c_inline" != no && break
15401 done
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15405 $as_echo "$ac_cv_c_inline" >&6; }
15407 case $ac_cv_c_inline in
15408 inline | yes) ;;
15410 case $ac_cv_c_inline in
15411 no) ac_val=;;
15412 *) ac_val=$ac_cv_c_inline;;
15413 esac
15414 cat >>confdefs.h <<_ACEOF
15415 #ifndef __cplusplus
15416 #define inline $ac_val
15417 #endif
15418 _ACEOF
15420 esac
15422 if test "x$GCC" = "xyes" ; then
15424 CFLAGS="$CFLAGS -std=gnu99 -ggdb3 -Wall -W -Wpointer-arith -Wformat-security -Wcast-align -Wundef -Wcast-align -Wstrict-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wredundant-decls -Wnested-externs -Wunused-parameter -Wwrite-strings -Winline -Wfloat-equal"
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
15427 $as_echo_n "checking gcc version... " >&6; }
15428 GCC_VERSION=`$CC -dumpversion`
15429 GCC_MAJOR=`echo $GCC_VERSION | cut -d . -f1`
15430 GCC_MINOR=`echo $GCC_VERSION | cut -d . -f2`
15431 GCC_VERSION_NUM=`(expr $GCC_MAJOR "*" 100 + $GCC_MINOR) 2>/dev/null`
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VERSION" >&5
15434 $as_echo "$GCC_VERSION" >&6; }
15435 if test $GCC_VERSION_NUM -ge 304; then
15436 CFLAGS="$CFLAGS -Wextra -Wdeclaration-after-statement -Winit-self"
15438 if test $GCC_VERSION_NUM -ge 403; then
15439 CFLAGS="$CFLAGS -Wvariadic-macros"
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15444 $as_echo_n "checking for ANSI C header files... " >&6; }
15445 if test "${ac_cv_header_stdc+set}" = set; then :
15446 $as_echo_n "(cached) " >&6
15447 else
15448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15449 /* end confdefs.h. */
15450 #include <stdlib.h>
15451 #include <stdarg.h>
15452 #include <string.h>
15453 #include <float.h>
15456 main ()
15460 return 0;
15462 _ACEOF
15463 if ac_fn_c_try_compile "$LINENO"; then :
15464 ac_cv_header_stdc=yes
15465 else
15466 ac_cv_header_stdc=no
15468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15470 if test $ac_cv_header_stdc = yes; then
15471 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15473 /* end confdefs.h. */
15474 #include <string.h>
15476 _ACEOF
15477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15478 $EGREP "memchr" >/dev/null 2>&1; then :
15480 else
15481 ac_cv_header_stdc=no
15483 rm -f conftest*
15487 if test $ac_cv_header_stdc = yes; then
15488 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15490 /* end confdefs.h. */
15491 #include <stdlib.h>
15493 _ACEOF
15494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15495 $EGREP "free" >/dev/null 2>&1; then :
15497 else
15498 ac_cv_header_stdc=no
15500 rm -f conftest*
15504 if test $ac_cv_header_stdc = yes; then
15505 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15506 if test "$cross_compiling" = yes; then :
15508 else
15509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15510 /* end confdefs.h. */
15511 #include <ctype.h>
15512 #include <stdlib.h>
15513 #if ((' ' & 0x0FF) == 0x020)
15514 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15515 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15516 #else
15517 # define ISLOWER(c) \
15518 (('a' <= (c) && (c) <= 'i') \
15519 || ('j' <= (c) && (c) <= 'r') \
15520 || ('s' <= (c) && (c) <= 'z'))
15521 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15522 #endif
15524 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15526 main ()
15528 int i;
15529 for (i = 0; i < 256; i++)
15530 if (XOR (islower (i), ISLOWER (i))
15531 || toupper (i) != TOUPPER (i))
15532 return 2;
15533 return 0;
15535 _ACEOF
15536 if ac_fn_c_try_run "$LINENO"; then :
15538 else
15539 ac_cv_header_stdc=no
15541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15542 conftest.$ac_objext conftest.beam conftest.$ac_ext
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15548 $as_echo "$ac_cv_header_stdc" >&6; }
15549 if test $ac_cv_header_stdc = yes; then
15551 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15556 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15557 if test "${ac_cv_header_time+set}" = set; then :
15558 $as_echo_n "(cached) " >&6
15559 else
15560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15561 /* end confdefs.h. */
15562 #include <sys/types.h>
15563 #include <sys/time.h>
15564 #include <time.h>
15567 main ()
15569 if ((struct tm *) 0)
15570 return 0;
15572 return 0;
15574 _ACEOF
15575 if ac_fn_c_try_compile "$LINENO"; then :
15576 ac_cv_header_time=yes
15577 else
15578 ac_cv_header_time=no
15580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15583 $as_echo "$ac_cv_header_time" >&6; }
15584 if test $ac_cv_header_time = yes; then
15586 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15591 for ac_header in stdbool.h
15592 do :
15593 ac_fn_c_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
15594 if test "x$ac_cv_header_stdbool_h" = x""yes; then :
15595 cat >>confdefs.h <<_ACEOF
15596 #define HAVE_STDBOOL_H 1
15597 _ACEOF
15601 done
15603 for ac_func in iconv_open pread pwrite lrintf strlcpy daemon dirname basename strcasecmp localtime_r fallocate64 posix_fallocate memmem strsep strtold syslog valloc getpagesize posix_memalign statvfs htonll ntohll
15604 do :
15605 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15606 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15607 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15608 cat >>confdefs.h <<_ACEOF
15609 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15610 _ACEOF
15613 done
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15617 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15618 set x ${MAKE-make}
15619 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15620 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
15621 $as_echo_n "(cached) " >&6
15622 else
15623 cat >conftest.make <<\_ACEOF
15624 SHELL = /bin/sh
15625 all:
15626 @echo '@@@%%%=$(MAKE)=@@@%%%'
15627 _ACEOF
15628 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
15629 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15630 *@@@%%%=?*=@@@%%%*)
15631 eval ac_cv_prog_make_${ac_make}_set=yes;;
15633 eval ac_cv_prog_make_${ac_make}_set=no;;
15634 esac
15635 rm -f conftest.make
15637 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15639 $as_echo "yes" >&6; }
15640 SET_MAKE=
15641 else
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15643 $as_echo "no" >&6; }
15644 SET_MAKE="MAKE=${MAKE-make}"
15650 ac_ext=c
15651 ac_cpp='$CPP $CPPFLAGS'
15652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15656 acx_pthread_ok=no
15658 # We used to check for pthread.h first, but this fails if pthread.h
15659 # requires special compiler flags (e.g. on True64 or Sequent).
15660 # It gets checked for in the link test anyway.
15662 # First of all, check if the user has set any of the PTHREAD_LIBS,
15663 # etcetera environment variables, and if threads linking works using
15664 # them:
15665 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15666 save_CFLAGS="$CFLAGS"
15667 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15668 save_LIBS="$LIBS"
15669 LIBS="$PTHREAD_LIBS $LIBS"
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15671 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15673 /* end confdefs.h. */
15675 /* Override any GCC internal prototype to avoid an error.
15676 Use char because int might match the return type of a GCC
15677 builtin and then its argument prototype would still apply. */
15678 #ifdef __cplusplus
15679 extern "C"
15680 #endif
15681 char pthread_join ();
15683 main ()
15685 return pthread_join ();
15687 return 0;
15689 _ACEOF
15690 if ac_fn_c_try_link "$LINENO"; then :
15691 acx_pthread_ok=yes
15693 rm -f core conftest.err conftest.$ac_objext \
15694 conftest$ac_exeext conftest.$ac_ext
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15696 $as_echo "$acx_pthread_ok" >&6; }
15697 if test x"$acx_pthread_ok" = xno; then
15698 PTHREAD_LIBS=""
15699 PTHREAD_CFLAGS=""
15701 LIBS="$save_LIBS"
15702 CFLAGS="$save_CFLAGS"
15705 # We must check for the threads library under a number of different
15706 # names; the ordering is very important because some systems
15707 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15708 # libraries is broken (non-POSIX).
15710 # Create a list of thread flags to try. Items starting with a "-" are
15711 # C compiler flags, and other items are library names, except for "none"
15712 # which indicates that we try without any flags at all, and "pthread-config"
15713 # which is a program returning the flags for the Pth emulation library.
15715 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15717 # The ordering *is* (sometimes) important. Some notes on the
15718 # individual items follow:
15720 # pthreads: AIX (must check this before -lpthread)
15721 # none: in case threads are in libc; should be tried before -Kthread and
15722 # other compiler flags to prevent continual compiler warnings
15723 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15724 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15725 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15726 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15727 # -pthreads: Solaris/gcc
15728 # -mthreads: Mingw32/gcc, Lynx/gcc
15729 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15730 # doesn't hurt to check since this sometimes defines pthreads too;
15731 # also defines -D_REENTRANT)
15732 # ... -mt is also the pthreads flag for HP/aCC
15733 # pthread: Linux, etcetera
15734 # --thread-safe: KAI C++
15735 # pthread-config: use pthread-config program (for GNU Pth library)
15737 case "${host_cpu}-${host_os}" in
15738 *solaris*)
15740 # On Solaris (at least, for some versions), libc contains stubbed
15741 # (non-functional) versions of the pthreads routines, so link-based
15742 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
15743 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
15744 # a function called by this macro, so we could check for that, but
15745 # who knows whether they'll stub that too in a future libc.) So,
15746 # we'll just look for -pthreads and -lpthread first:
15748 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15750 esac
15752 if test x"$acx_pthread_ok" = xno; then
15753 for flag in $acx_pthread_flags; do
15755 case $flag in
15756 none)
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15758 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15763 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
15764 PTHREAD_CFLAGS="$flag"
15767 pthread-config)
15768 # Extract the first word of "pthread-config", so it can be a program name with args.
15769 set dummy pthread-config; ac_word=$2
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15771 $as_echo_n "checking for $ac_word... " >&6; }
15772 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
15773 $as_echo_n "(cached) " >&6
15774 else
15775 if test -n "$acx_pthread_config"; then
15776 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15777 else
15778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15779 for as_dir in $PATH
15781 IFS=$as_save_IFS
15782 test -z "$as_dir" && as_dir=.
15783 for ac_exec_ext in '' $ac_executable_extensions; do
15784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15785 ac_cv_prog_acx_pthread_config="yes"
15786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15787 break 2
15789 done
15790 done
15791 IFS=$as_save_IFS
15793 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15796 acx_pthread_config=$ac_cv_prog_acx_pthread_config
15797 if test -n "$acx_pthread_config"; then
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
15799 $as_echo "$acx_pthread_config" >&6; }
15800 else
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15802 $as_echo "no" >&6; }
15806 if test x"$acx_pthread_config" = xno; then continue; fi
15807 PTHREAD_CFLAGS="`pthread-config --cflags`"
15808 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15813 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15814 PTHREAD_LIBS="-l$flag"
15816 esac
15818 save_LIBS="$LIBS"
15819 save_CFLAGS="$CFLAGS"
15820 LIBS="$PTHREAD_LIBS $LIBS"
15821 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15823 # Check for various functions. We must include pthread.h,
15824 # since some functions may be macros. (On the Sequent, we
15825 # need a special flag -Kthread to make this header compile.)
15826 # We check for pthread_join because it is in -lpthread on IRIX
15827 # while pthread_create is in libc. We check for pthread_attr_init
15828 # due to DEC craziness with -lpthreads. We check for
15829 # pthread_cleanup_push because it is one of the few pthread
15830 # functions on Solaris that doesn't have a non-functional libc stub.
15831 # We try pthread_create on general principles.
15832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15833 /* end confdefs.h. */
15834 #include <pthread.h>
15836 main ()
15838 pthread_t th; pthread_join(th, 0);
15839 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15840 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15842 return 0;
15844 _ACEOF
15845 if ac_fn_c_try_link "$LINENO"; then :
15846 acx_pthread_ok=yes
15848 rm -f core conftest.err conftest.$ac_objext \
15849 conftest$ac_exeext conftest.$ac_ext
15851 LIBS="$save_LIBS"
15852 CFLAGS="$save_CFLAGS"
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15855 $as_echo "$acx_pthread_ok" >&6; }
15856 if test "x$acx_pthread_ok" = xyes; then
15857 break;
15860 PTHREAD_LIBS=""
15861 PTHREAD_CFLAGS=""
15862 done
15865 # Various other checks:
15866 if test "x$acx_pthread_ok" = xyes; then
15867 save_LIBS="$LIBS"
15868 LIBS="$PTHREAD_LIBS $LIBS"
15869 save_CFLAGS="$CFLAGS"
15870 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15872 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15874 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15875 attr_name=unknown
15876 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15878 /* end confdefs.h. */
15879 #include <pthread.h>
15881 main ()
15883 int attr=$attr; return attr;
15885 return 0;
15887 _ACEOF
15888 if ac_fn_c_try_link "$LINENO"; then :
15889 attr_name=$attr; break
15891 rm -f core conftest.err conftest.$ac_objext \
15892 conftest$ac_exeext conftest.$ac_ext
15893 done
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15895 $as_echo "$attr_name" >&6; }
15896 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15898 cat >>confdefs.h <<_ACEOF
15899 #define PTHREAD_CREATE_JOINABLE $attr_name
15900 _ACEOF
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15905 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15906 flag=no
15907 case "${host_cpu}-${host_os}" in
15908 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15909 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15910 esac
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15912 $as_echo "${flag}" >&6; }
15913 if test "x$flag" != xno; then
15914 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15917 LIBS="$save_LIBS"
15918 CFLAGS="$save_CFLAGS"
15920 # More AIX lossage: must compile with xlc_r or cc_r
15921 if test x"$GCC" != xyes; then
15922 for ac_prog in xlc_r cc_r
15924 # Extract the first word of "$ac_prog", so it can be a program name with args.
15925 set dummy $ac_prog; ac_word=$2
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15927 $as_echo_n "checking for $ac_word... " >&6; }
15928 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
15929 $as_echo_n "(cached) " >&6
15930 else
15931 if test -n "$PTHREAD_CC"; then
15932 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15933 else
15934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15935 for as_dir in $PATH
15937 IFS=$as_save_IFS
15938 test -z "$as_dir" && as_dir=.
15939 for ac_exec_ext in '' $ac_executable_extensions; do
15940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15941 ac_cv_prog_PTHREAD_CC="$ac_prog"
15942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15943 break 2
15945 done
15946 done
15947 IFS=$as_save_IFS
15951 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15952 if test -n "$PTHREAD_CC"; then
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15954 $as_echo "$PTHREAD_CC" >&6; }
15955 else
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15957 $as_echo "no" >&6; }
15961 test -n "$PTHREAD_CC" && break
15962 done
15963 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15965 else
15966 PTHREAD_CC=$CC
15968 else
15969 PTHREAD_CC="$CC"
15976 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15977 if test x"$acx_pthread_ok" = xyes; then
15979 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15982 else
15983 acx_pthread_ok=no
15986 ac_ext=c
15987 ac_cpp='$CPP $CPPFLAGS'
15988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15994 if test "x$ac_cv_func_strtold" != "xyes" ; then
15995 CPPFLAGS="$CPPFLAGS -Dstrtold=strtod"
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
15999 $as_echo_n "checking for library containing cos... " >&6; }
16000 if test "${ac_cv_search_cos+set}" = set; then :
16001 $as_echo_n "(cached) " >&6
16002 else
16003 ac_func_search_save_LIBS=$LIBS
16004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16005 /* end confdefs.h. */
16007 /* Override any GCC internal prototype to avoid an error.
16008 Use char because int might match the return type of a GCC
16009 builtin and then its argument prototype would still apply. */
16010 #ifdef __cplusplus
16011 extern "C"
16012 #endif
16013 char cos ();
16015 main ()
16017 return cos ();
16019 return 0;
16021 _ACEOF
16022 for ac_lib in '' m; do
16023 if test -z "$ac_lib"; then
16024 ac_res="none required"
16025 else
16026 ac_res=-l$ac_lib
16027 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16029 if ac_fn_c_try_link "$LINENO"; then :
16030 ac_cv_search_cos=$ac_res
16032 rm -f core conftest.err conftest.$ac_objext \
16033 conftest$ac_exeext
16034 if test "${ac_cv_search_cos+set}" = set; then :
16035 break
16037 done
16038 if test "${ac_cv_search_cos+set}" = set; then :
16040 else
16041 ac_cv_search_cos=no
16043 rm conftest.$ac_ext
16044 LIBS=$ac_func_search_save_LIBS
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
16047 $as_echo "$ac_cv_search_cos" >&6; }
16048 ac_res=$ac_cv_search_cos
16049 if test "$ac_res" != no; then :
16050 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
16055 $as_echo_n "checking for library containing socket... " >&6; }
16056 if test "${ac_cv_search_socket+set}" = set; then :
16057 $as_echo_n "(cached) " >&6
16058 else
16059 ac_func_search_save_LIBS=$LIBS
16060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16061 /* end confdefs.h. */
16063 /* Override any GCC internal prototype to avoid an error.
16064 Use char because int might match the return type of a GCC
16065 builtin and then its argument prototype would still apply. */
16066 #ifdef __cplusplus
16067 extern "C"
16068 #endif
16069 char socket ();
16071 main ()
16073 return socket ();
16075 return 0;
16077 _ACEOF
16078 for ac_lib in '' socket net; do
16079 if test -z "$ac_lib"; then
16080 ac_res="none required"
16081 else
16082 ac_res=-l$ac_lib
16083 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16085 if ac_fn_c_try_link "$LINENO"; then :
16086 ac_cv_search_socket=$ac_res
16088 rm -f core conftest.err conftest.$ac_objext \
16089 conftest$ac_exeext
16090 if test "${ac_cv_search_socket+set}" = set; then :
16091 break
16093 done
16094 if test "${ac_cv_search_socket+set}" = set; then :
16096 else
16097 ac_cv_search_socket=no
16099 rm conftest.$ac_ext
16100 LIBS=$ac_func_search_save_LIBS
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
16103 $as_echo "$ac_cv_search_socket" >&6; }
16104 ac_res=$ac_cv_search_socket
16105 if test "$ac_res" != no; then :
16106 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
16111 $as_echo_n "checking for library containing gethostbyname... " >&6; }
16112 if test "${ac_cv_search_gethostbyname+set}" = set; then :
16113 $as_echo_n "(cached) " >&6
16114 else
16115 ac_func_search_save_LIBS=$LIBS
16116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16117 /* end confdefs.h. */
16119 /* Override any GCC internal prototype to avoid an error.
16120 Use char because int might match the return type of a GCC
16121 builtin and then its argument prototype would still apply. */
16122 #ifdef __cplusplus
16123 extern "C"
16124 #endif
16125 char gethostbyname ();
16127 main ()
16129 return gethostbyname ();
16131 return 0;
16133 _ACEOF
16134 for ac_lib in '' nsl bind; do
16135 if test -z "$ac_lib"; then
16136 ac_res="none required"
16137 else
16138 ac_res=-l$ac_lib
16139 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16141 if ac_fn_c_try_link "$LINENO"; then :
16142 ac_cv_search_gethostbyname=$ac_res
16144 rm -f core conftest.err conftest.$ac_objext \
16145 conftest$ac_exeext
16146 if test "${ac_cv_search_gethostbyname+set}" = set; then :
16147 break
16149 done
16150 if test "${ac_cv_search_gethostbyname+set}" = set; then :
16152 else
16153 ac_cv_search_gethostbyname=no
16155 rm conftest.$ac_ext
16156 LIBS=$ac_func_search_save_LIBS
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
16159 $as_echo "$ac_cv_search_gethostbyname" >&6; }
16160 ac_res=$ac_cv_search_gethostbyname
16161 if test "$ac_res" != no; then :
16162 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16168 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16169 if test -n "$ac_tool_prefix"; then
16170 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16171 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16173 $as_echo_n "checking for $ac_word... " >&6; }
16174 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
16175 $as_echo_n "(cached) " >&6
16176 else
16177 case $PKG_CONFIG in
16178 [\\/]* | ?:[\\/]*)
16179 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16183 for as_dir in $PATH
16185 IFS=$as_save_IFS
16186 test -z "$as_dir" && as_dir=.
16187 for ac_exec_ext in '' $ac_executable_extensions; do
16188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16189 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16191 break 2
16193 done
16194 done
16195 IFS=$as_save_IFS
16198 esac
16200 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16201 if test -n "$PKG_CONFIG"; then
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16203 $as_echo "$PKG_CONFIG" >&6; }
16204 else
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16206 $as_echo "no" >&6; }
16211 if test -z "$ac_cv_path_PKG_CONFIG"; then
16212 ac_pt_PKG_CONFIG=$PKG_CONFIG
16213 # Extract the first word of "pkg-config", so it can be a program name with args.
16214 set dummy pkg-config; ac_word=$2
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16216 $as_echo_n "checking for $ac_word... " >&6; }
16217 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
16218 $as_echo_n "(cached) " >&6
16219 else
16220 case $ac_pt_PKG_CONFIG in
16221 [\\/]* | ?:[\\/]*)
16222 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16226 for as_dir in $PATH
16228 IFS=$as_save_IFS
16229 test -z "$as_dir" && as_dir=.
16230 for ac_exec_ext in '' $ac_executable_extensions; do
16231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16232 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16234 break 2
16236 done
16237 done
16238 IFS=$as_save_IFS
16241 esac
16243 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16244 if test -n "$ac_pt_PKG_CONFIG"; then
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16246 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16247 else
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16249 $as_echo "no" >&6; }
16252 if test "x$ac_pt_PKG_CONFIG" = x; then
16253 PKG_CONFIG=""
16254 else
16255 case $cross_compiling:$ac_tool_warned in
16256 yes:)
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16259 ac_tool_warned=yes ;;
16260 esac
16261 PKG_CONFIG=$ac_pt_PKG_CONFIG
16263 else
16264 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16268 if test -n "$PKG_CONFIG"; then
16269 _pkg_min_version=0.9.0
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16271 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16272 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16274 $as_echo "yes" >&6; }
16275 else
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16277 $as_echo "no" >&6; }
16278 PKG_CONFIG=""
16283 pkg_failed=no
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
16285 $as_echo_n "checking for OPENSSL... " >&6; }
16287 if test -n "$PKG_CONFIG"; then
16288 if test -n "$OPENSSL_CFLAGS"; then
16289 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
16290 else
16291 if test -n "$PKG_CONFIG" && \
16292 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= \$OPENSSL_MINIMUM\""; } >&5
16293 ($PKG_CONFIG --exists --print-errors "openssl >= $OPENSSL_MINIMUM") 2>&5
16294 ac_status=$?
16295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16296 test $ac_status = 0; }; then
16297 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= $OPENSSL_MINIMUM" 2>/dev/null`
16298 else
16299 pkg_failed=yes
16302 else
16303 pkg_failed=untried
16305 if test -n "$PKG_CONFIG"; then
16306 if test -n "$OPENSSL_LIBS"; then
16307 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
16308 else
16309 if test -n "$PKG_CONFIG" && \
16310 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= \$OPENSSL_MINIMUM\""; } >&5
16311 ($PKG_CONFIG --exists --print-errors "openssl >= $OPENSSL_MINIMUM") 2>&5
16312 ac_status=$?
16313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16314 test $ac_status = 0; }; then
16315 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= $OPENSSL_MINIMUM" 2>/dev/null`
16316 else
16317 pkg_failed=yes
16320 else
16321 pkg_failed=untried
16326 if test $pkg_failed = yes; then
16328 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16329 _pkg_short_errors_supported=yes
16330 else
16331 _pkg_short_errors_supported=no
16333 if test $_pkg_short_errors_supported = yes; then
16334 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "openssl >= $OPENSSL_MINIMUM"`
16335 else
16336 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openssl >= $OPENSSL_MINIMUM"`
16338 # Put the nasty error message in config.log where it belongs
16339 echo "$OPENSSL_PKG_ERRORS" >&5
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16342 $as_echo "no" >&6; }
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
16345 $as_echo_n "checking for OpenSSL... " >&6; }
16347 for dir in $with_ssl /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr; do
16348 ssldir="$dir"
16349 if test -f "$dir/include/openssl/ssl.h"; then
16350 found_ssl="yes";
16351 OPENSSL_CFLAGS="-I$ssldir/include";
16352 break;
16354 if test -f "$dir/include/ssl.h"; then
16355 found_ssl="yes";
16356 OPENSSL_CFLAGS="-I$ssldir/include";
16357 break
16359 done
16360 if test x_$found_ssl != x_yes; then
16361 as_fn_error $? "Cannot locate ssl" "$LINENO" 5
16362 else
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssldir" >&5
16364 $as_echo "$ssldir" >&6; }
16365 OPENSSL_LIBS="-L$ssldir/lib -lssl -lcrypto";
16368 elif test $pkg_failed = untried; then
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
16371 $as_echo_n "checking for OpenSSL... " >&6; }
16373 for dir in $with_ssl /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr; do
16374 ssldir="$dir"
16375 if test -f "$dir/include/openssl/ssl.h"; then
16376 found_ssl="yes";
16377 OPENSSL_CFLAGS="-I$ssldir/include";
16378 break;
16380 if test -f "$dir/include/ssl.h"; then
16381 found_ssl="yes";
16382 OPENSSL_CFLAGS="-I$ssldir/include";
16383 break
16385 done
16386 if test x_$found_ssl != x_yes; then
16387 as_fn_error $? "Cannot locate ssl" "$LINENO" 5
16388 else
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssldir" >&5
16390 $as_echo "$ssldir" >&6; }
16391 OPENSSL_LIBS="-L$ssldir/lib -lssl -lcrypto";
16394 else
16395 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
16396 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16398 $as_echo "yes" >&6; }
16402 pkg_failed=no
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCURL" >&5
16404 $as_echo_n "checking for LIBCURL... " >&6; }
16406 if test -n "$PKG_CONFIG"; then
16407 if test -n "$LIBCURL_CFLAGS"; then
16408 pkg_cv_LIBCURL_CFLAGS="$LIBCURL_CFLAGS"
16409 else
16410 if test -n "$PKG_CONFIG" && \
16411 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= \$CURL_MINIMUM\""; } >&5
16412 ($PKG_CONFIG --exists --print-errors "libcurl >= $CURL_MINIMUM") 2>&5
16413 ac_status=$?
16414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16415 test $ac_status = 0; }; then
16416 pkg_cv_LIBCURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= $CURL_MINIMUM" 2>/dev/null`
16417 else
16418 pkg_failed=yes
16421 else
16422 pkg_failed=untried
16424 if test -n "$PKG_CONFIG"; then
16425 if test -n "$LIBCURL_LIBS"; then
16426 pkg_cv_LIBCURL_LIBS="$LIBCURL_LIBS"
16427 else
16428 if test -n "$PKG_CONFIG" && \
16429 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= \$CURL_MINIMUM\""; } >&5
16430 ($PKG_CONFIG --exists --print-errors "libcurl >= $CURL_MINIMUM") 2>&5
16431 ac_status=$?
16432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16433 test $ac_status = 0; }; then
16434 pkg_cv_LIBCURL_LIBS=`$PKG_CONFIG --libs "libcurl >= $CURL_MINIMUM" 2>/dev/null`
16435 else
16436 pkg_failed=yes
16439 else
16440 pkg_failed=untried
16445 if test $pkg_failed = yes; then
16447 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16448 _pkg_short_errors_supported=yes
16449 else
16450 _pkg_short_errors_supported=no
16452 if test $_pkg_short_errors_supported = yes; then
16453 LIBCURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcurl >= $CURL_MINIMUM"`
16454 else
16455 LIBCURL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcurl >= $CURL_MINIMUM"`
16457 # Put the nasty error message in config.log where it belongs
16458 echo "$LIBCURL_PKG_ERRORS" >&5
16460 as_fn_error $? "Package requirements (libcurl >= $CURL_MINIMUM) were not met:
16462 $LIBCURL_PKG_ERRORS
16464 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16465 installed software in a non-standard prefix.
16467 Alternatively, you may set the environment variables LIBCURL_CFLAGS
16468 and LIBCURL_LIBS to avoid the need to call pkg-config.
16469 See the pkg-config man page for more details.
16470 " "$LINENO" 5
16471 elif test $pkg_failed = untried; then
16472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16474 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16475 is in your PATH or set the PKG_CONFIG environment variable to the full
16476 path to pkg-config.
16478 Alternatively, you may set the environment variables LIBCURL_CFLAGS
16479 and LIBCURL_LIBS to avoid the need to call pkg-config.
16480 See the pkg-config man page for more details.
16482 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
16483 See \`config.log' for more details" "$LINENO" 5 ; }
16484 else
16485 LIBCURL_CFLAGS=$pkg_cv_LIBCURL_CFLAGS
16486 LIBCURL_LIBS=$pkg_cv_LIBCURL_LIBS
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16488 $as_echo "yes" >&6; }
16492 pkg_failed=no
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEVENT" >&5
16494 $as_echo_n "checking for LIBEVENT... " >&6; }
16496 if test -n "$PKG_CONFIG"; then
16497 if test -n "$LIBEVENT_CFLAGS"; then
16498 pkg_cv_LIBEVENT_CFLAGS="$LIBEVENT_CFLAGS"
16499 else
16500 if test -n "$PKG_CONFIG" && \
16501 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevent >= \$LIBEVENT_MINIMUM\""; } >&5
16502 ($PKG_CONFIG --exists --print-errors "libevent >= $LIBEVENT_MINIMUM") 2>&5
16503 ac_status=$?
16504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16505 test $ac_status = 0; }; then
16506 pkg_cv_LIBEVENT_CFLAGS=`$PKG_CONFIG --cflags "libevent >= $LIBEVENT_MINIMUM" 2>/dev/null`
16507 else
16508 pkg_failed=yes
16511 else
16512 pkg_failed=untried
16514 if test -n "$PKG_CONFIG"; then
16515 if test -n "$LIBEVENT_LIBS"; then
16516 pkg_cv_LIBEVENT_LIBS="$LIBEVENT_LIBS"
16517 else
16518 if test -n "$PKG_CONFIG" && \
16519 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevent >= \$LIBEVENT_MINIMUM\""; } >&5
16520 ($PKG_CONFIG --exists --print-errors "libevent >= $LIBEVENT_MINIMUM") 2>&5
16521 ac_status=$?
16522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16523 test $ac_status = 0; }; then
16524 pkg_cv_LIBEVENT_LIBS=`$PKG_CONFIG --libs "libevent >= $LIBEVENT_MINIMUM" 2>/dev/null`
16525 else
16526 pkg_failed=yes
16529 else
16530 pkg_failed=untried
16535 if test $pkg_failed = yes; then
16537 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16538 _pkg_short_errors_supported=yes
16539 else
16540 _pkg_short_errors_supported=no
16542 if test $_pkg_short_errors_supported = yes; then
16543 LIBEVENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libevent >= $LIBEVENT_MINIMUM"`
16544 else
16545 LIBEVENT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libevent >= $LIBEVENT_MINIMUM"`
16547 # Put the nasty error message in config.log where it belongs
16548 echo "$LIBEVENT_PKG_ERRORS" >&5
16550 as_fn_error $? "Package requirements (libevent >= $LIBEVENT_MINIMUM) were not met:
16552 $LIBEVENT_PKG_ERRORS
16554 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16555 installed software in a non-standard prefix.
16557 Alternatively, you may set the environment variables LIBEVENT_CFLAGS
16558 and LIBEVENT_LIBS to avoid the need to call pkg-config.
16559 See the pkg-config man page for more details.
16560 " "$LINENO" 5
16561 elif test $pkg_failed = untried; then
16562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16564 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16565 is in your PATH or set the PKG_CONFIG environment variable to the full
16566 path to pkg-config.
16568 Alternatively, you may set the environment variables LIBEVENT_CFLAGS
16569 and LIBEVENT_LIBS to avoid the need to call pkg-config.
16570 See the pkg-config man page for more details.
16572 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
16573 See \`config.log' for more details" "$LINENO" 5 ; }
16574 else
16575 LIBEVENT_CFLAGS=$pkg_cv_LIBEVENT_CFLAGS
16576 LIBEVENT_LIBS=$pkg_cv_LIBEVENT_LIBS
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16578 $as_echo "yes" >&6; }
16583 # Check whether --with-zlib was given.
16584 if test "${with_zlib+set}" = set; then :
16585 withval=$with_zlib; for dir in `echo "$withval" | tr : ' '`; do
16586 if test -d $dir/include; then
16587 ZLIB_CFLAGS="$ZLIB_CFLAGS -I$dir/include"
16589 if test -d $dir/lib; then
16590 ZLIB_LDFLAGS="$ZLIB_LDFLAGS -L$dir/lib"
16592 done
16597 # Check whether --with-zlib-includes was given.
16598 if test "${with_zlib_includes+set}" = set; then :
16599 withval=$with_zlib_includes; for dir in `echo "$withval" | tr : ' '`; do
16600 if test -d $dir; then
16601 ZLIB_CFLAGS="$ZLIB_CFLAGS -I$dir"
16603 done
16607 ac_zlib_saved_CFLAGS="$CFLAGS"
16608 ac_zlib_saved_LDFLAGS="$LDFLAGS"
16609 ac_zlib_saved_LIBS="$LIBS"
16610 CFLAGS="$CFLAGS $ZLIB_CFLAGS"
16611 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
16612 ac_have_zlibh=no
16613 ac_have_zlib=no
16614 touch /tmp/dummy1_zlib.h
16615 for ac_header in /tmp/dummy1_zlib.h
16616 do :
16617 ac_fn_c_check_header_compile "$LINENO" "/tmp/dummy1_zlib.h" "ac_cv_header__tmp_dummy1_zlib_h" "#include \"zlib.h\"
16619 if test "x$ac_cv_header__tmp_dummy1_zlib_h" = x""yes; then :
16620 cat >>confdefs.h <<_ACEOF
16621 #define HAVE__TMP_DUMMY1_ZLIB_H 1
16622 _ACEOF
16623 ac_have_zlibh=yes
16624 else
16625 ac_have_zlibh=no
16628 done
16630 rm /tmp/dummy1_zlib.h
16631 if test $ac_have_zlibh = yes; then
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gzopen" >&5
16633 $as_echo_n "checking for library containing gzopen... " >&6; }
16634 if test "${ac_cv_search_gzopen+set}" = set; then :
16635 $as_echo_n "(cached) " >&6
16636 else
16637 ac_func_search_save_LIBS=$LIBS
16638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16639 /* end confdefs.h. */
16641 /* Override any GCC internal prototype to avoid an error.
16642 Use char because int might match the return type of a GCC
16643 builtin and then its argument prototype would still apply. */
16644 #ifdef __cplusplus
16645 extern "C"
16646 #endif
16647 char gzopen ();
16649 main ()
16651 return gzopen ();
16653 return 0;
16655 _ACEOF
16656 for ac_lib in '' z; do
16657 if test -z "$ac_lib"; then
16658 ac_res="none required"
16659 else
16660 ac_res=-l$ac_lib
16661 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16663 if ac_fn_c_try_link "$LINENO"; then :
16664 ac_cv_search_gzopen=$ac_res
16666 rm -f core conftest.err conftest.$ac_objext \
16667 conftest$ac_exeext
16668 if test "${ac_cv_search_gzopen+set}" = set; then :
16669 break
16671 done
16672 if test "${ac_cv_search_gzopen+set}" = set; then :
16674 else
16675 ac_cv_search_gzopen=no
16677 rm conftest.$ac_ext
16678 LIBS=$ac_func_search_save_LIBS
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gzopen" >&5
16681 $as_echo "$ac_cv_search_gzopen" >&6; }
16682 ac_res=$ac_cv_search_gzopen
16683 if test "$ac_res" != no; then :
16684 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16685 ac_have_zlib=yes
16686 else
16687 ac_have_zlib=no
16691 # List of places to try
16692 testdirs="$HOME/opt/zlib $OBITINSTALL/other"
16693 for dir in $testdirs; do
16694 if test $ac_have_zlib = no; then
16695 if test -f $dir/include/zlib.h; then
16696 ZLIB_CFLAGS="-I$dir/include"
16697 CPPFLAGS="$ac_zlib_saved_CPPFLAGS $ZLIB_CFLAGS"
16698 ZLIB_LDFLAGS="-L$dir/lib"
16699 LDFLAGS="$ac_zlib_saved_LDFLAGS $ZLIB_LDFLAGS"
16700 touch /tmp/dummy3_zlib.h
16701 for ac_header in /tmp/dummy3_zlib.h
16702 do :
16703 ac_fn_c_check_header_compile "$LINENO" "/tmp/dummy3_zlib.h" "ac_cv_header__tmp_dummy3_zlib_h" "#include \"zlib.h\"
16705 if test "x$ac_cv_header__tmp_dummy3_zlib_h" = x""yes; then :
16706 cat >>confdefs.h <<_ACEOF
16707 #define HAVE__TMP_DUMMY3_ZLIB_H 1
16708 _ACEOF
16709 ac_have_zlibh=yes
16710 else
16711 ac_have_zlibh=no
16714 done
16716 rm /tmp/dummy3_zlib.h
16717 if test $ac_have_zlibh = yes; then
16718 # Force check
16719 ac_cv_search_gzopen=" "
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gzopen" >&5
16721 $as_echo_n "checking for library containing gzopen... " >&6; }
16722 if test "${ac_cv_search_gzopen+set}" = set; then :
16723 $as_echo_n "(cached) " >&6
16724 else
16725 ac_func_search_save_LIBS=$LIBS
16726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16727 /* end confdefs.h. */
16729 /* Override any GCC internal prototype to avoid an error.
16730 Use char because int might match the return type of a GCC
16731 builtin and then its argument prototype would still apply. */
16732 #ifdef __cplusplus
16733 extern "C"
16734 #endif
16735 char gzopen ();
16737 main ()
16739 return gzopen ();
16741 return 0;
16743 _ACEOF
16744 for ac_lib in '' z; do
16745 if test -z "$ac_lib"; then
16746 ac_res="none required"
16747 else
16748 ac_res=-l$ac_lib
16749 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16751 if ac_fn_c_try_link "$LINENO"; then :
16752 ac_cv_search_gzopen=$ac_res
16754 rm -f core conftest.err conftest.$ac_objext \
16755 conftest$ac_exeext
16756 if test "${ac_cv_search_gzopen+set}" = set; then :
16757 break
16759 done
16760 if test "${ac_cv_search_gzopen+set}" = set; then :
16762 else
16763 ac_cv_search_gzopen=no
16765 rm conftest.$ac_ext
16766 LIBS=$ac_func_search_save_LIBS
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gzopen" >&5
16769 $as_echo "$ac_cv_search_gzopen" >&6; }
16770 ac_res=$ac_cv_search_gzopen
16771 if test "$ac_res" != no; then :
16772 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16773 ac_have_zlib=yes
16774 else
16775 ac_have_zlib=no
16779 if test $ac_have_zlib = yes ; then
16780 if test $ac_have_zlibh = yes ; then
16781 break;
16786 done
16787 if test $ac_have_zlib = no; then
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find ZLIB library" >&5
16789 $as_echo "$as_me: WARNING: cannot find ZLIB library" >&2;}
16791 if test $ac_have_zlibh = no; then
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find ZLIB headers" >&5
16793 $as_echo "$as_me: WARNING: cannot find ZLIB headers" >&2;}
16794 ac_have_zlib=no
16796 if test $ac_have_zlib = yes; then
16798 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
16801 ZLIB_LIBS="$LIBS"
16802 CFLAGS="$ac_zlib_saved_CFLAGS"
16803 LDFLAGS="$ac_zlib_saved_LDFLAGS"
16804 LIBS="$ac_zlib_saved_LIBS"
16810 # Check whether --enable-largefile was given.
16811 if test "${enable_largefile+set}" = set; then :
16812 enableval=$enable_largefile;
16815 if test "$enable_largefile" != no; then
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
16818 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
16819 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
16820 $as_echo_n "(cached) " >&6
16821 else
16822 ac_cv_sys_largefile_CC=no
16823 if test "$GCC" != yes; then
16824 ac_save_CC=$CC
16825 while :; do
16826 # IRIX 6.2 and later do not support large files by default,
16827 # so use the C compiler's -n32 option if that helps.
16828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16829 /* end confdefs.h. */
16830 #include <sys/types.h>
16831 /* Check that off_t can represent 2**63 - 1 correctly.
16832 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16833 since some C++ compilers masquerading as C compilers
16834 incorrectly reject 9223372036854775807. */
16835 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16836 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16837 && LARGE_OFF_T % 2147483647 == 1)
16838 ? 1 : -1];
16840 main ()
16844 return 0;
16846 _ACEOF
16847 if ac_fn_c_try_compile "$LINENO"; then :
16848 break
16850 rm -f core conftest.err conftest.$ac_objext
16851 CC="$CC -n32"
16852 if ac_fn_c_try_compile "$LINENO"; then :
16853 ac_cv_sys_largefile_CC=' -n32'; break
16855 rm -f core conftest.err conftest.$ac_objext
16856 break
16857 done
16858 CC=$ac_save_CC
16859 rm -f conftest.$ac_ext
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
16863 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
16864 if test "$ac_cv_sys_largefile_CC" != no; then
16865 CC=$CC$ac_cv_sys_largefile_CC
16868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16869 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
16870 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
16871 $as_echo_n "(cached) " >&6
16872 else
16873 while :; do
16874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16875 /* end confdefs.h. */
16876 #include <sys/types.h>
16877 /* Check that off_t can represent 2**63 - 1 correctly.
16878 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16879 since some C++ compilers masquerading as C compilers
16880 incorrectly reject 9223372036854775807. */
16881 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16882 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16883 && LARGE_OFF_T % 2147483647 == 1)
16884 ? 1 : -1];
16886 main ()
16890 return 0;
16892 _ACEOF
16893 if ac_fn_c_try_compile "$LINENO"; then :
16894 ac_cv_sys_file_offset_bits=no; break
16896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16898 /* end confdefs.h. */
16899 #define _FILE_OFFSET_BITS 64
16900 #include <sys/types.h>
16901 /* Check that off_t can represent 2**63 - 1 correctly.
16902 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16903 since some C++ compilers masquerading as C compilers
16904 incorrectly reject 9223372036854775807. */
16905 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16906 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16907 && LARGE_OFF_T % 2147483647 == 1)
16908 ? 1 : -1];
16910 main ()
16914 return 0;
16916 _ACEOF
16917 if ac_fn_c_try_compile "$LINENO"; then :
16918 ac_cv_sys_file_offset_bits=64; break
16920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16921 ac_cv_sys_file_offset_bits=unknown
16922 break
16923 done
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
16926 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
16927 case $ac_cv_sys_file_offset_bits in #(
16928 no | unknown) ;;
16930 cat >>confdefs.h <<_ACEOF
16931 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16932 _ACEOF
16934 esac
16935 rm -rf conftest*
16936 if test $ac_cv_sys_file_offset_bits = unknown; then
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
16938 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
16939 if test "${ac_cv_sys_large_files+set}" = set; then :
16940 $as_echo_n "(cached) " >&6
16941 else
16942 while :; do
16943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16944 /* end confdefs.h. */
16945 #include <sys/types.h>
16946 /* Check that off_t can represent 2**63 - 1 correctly.
16947 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16948 since some C++ compilers masquerading as C compilers
16949 incorrectly reject 9223372036854775807. */
16950 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16951 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16952 && LARGE_OFF_T % 2147483647 == 1)
16953 ? 1 : -1];
16955 main ()
16959 return 0;
16961 _ACEOF
16962 if ac_fn_c_try_compile "$LINENO"; then :
16963 ac_cv_sys_large_files=no; break
16965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16967 /* end confdefs.h. */
16968 #define _LARGE_FILES 1
16969 #include <sys/types.h>
16970 /* Check that off_t can represent 2**63 - 1 correctly.
16971 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16972 since some C++ compilers masquerading as C compilers
16973 incorrectly reject 9223372036854775807. */
16974 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16975 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16976 && LARGE_OFF_T % 2147483647 == 1)
16977 ? 1 : -1];
16979 main ()
16983 return 0;
16985 _ACEOF
16986 if ac_fn_c_try_compile "$LINENO"; then :
16987 ac_cv_sys_large_files=1; break
16989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16990 ac_cv_sys_large_files=unknown
16991 break
16992 done
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16995 $as_echo "$ac_cv_sys_large_files" >&6; }
16996 case $ac_cv_sys_large_files in #(
16997 no | unknown) ;;
16999 cat >>confdefs.h <<_ACEOF
17000 #define _LARGE_FILES $ac_cv_sys_large_files
17001 _ACEOF
17003 esac
17004 rm -rf conftest*
17008 for ac_func in lseek64
17009 do :
17010 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
17011 if test "x$ac_cv_func_lseek64" = x""yes; then :
17012 cat >>confdefs.h <<_ACEOF
17013 #define HAVE_LSEEK64 1
17014 _ACEOF
17017 done
17022 ac_fn_c_check_decl "$LINENO" "posix_fadvise" "ac_cv_have_decl_posix_fadvise" "
17023 #define _XOPEN_SOURCE 600
17024 #include <fcntl.h>
17026 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then :
17027 ac_have_decl=1
17028 else
17029 ac_have_decl=0
17032 cat >>confdefs.h <<_ACEOF
17033 #define HAVE_DECL_POSIX_FADVISE $ac_have_decl
17034 _ACEOF
17036 for ac_func in posix_fadvise
17037 do :
17038 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
17039 if test "x$ac_cv_func_posix_fadvise" = x""yes; then :
17040 cat >>confdefs.h <<_ACEOF
17041 #define HAVE_POSIX_FADVISE 1
17042 _ACEOF
17045 done
17050 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
17051 if test "x$ac_cv_header_sys_inotify_h" = x""yes; then :
17052 ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
17053 if test "x$ac_cv_func_inotify_init" = x""yes; then :
17054 have_inotify="yes"
17055 else
17056 have_inotify="no"
17059 else
17060 have_inotify="no"
17065 # Check whether --with-inotify was given.
17066 if test "${with_inotify+set}" = set; then :
17067 withval=$with_inotify; want_inotify=${withval}
17068 else
17069 want_inotify=${have_inotify}
17072 if test "x$want_inotify" = "xyes" ; then
17073 if test "x$have_inotify" = "xyes"; then
17074 $as_echo "#define WITH_INOTIFY 1" >>confdefs.h
17076 else
17077 as_fn_error $? "\"inotify not found!\"" "$LINENO" 5
17081 ac_fn_c_check_header_mongrel "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
17082 if test "x$ac_cv_header_sys_event_h" = x""yes; then :
17083 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
17084 if test "x$ac_cv_func_kqueue" = x""yes; then :
17085 have_kqueue="yes"
17086 else
17087 have_kqueue="no"
17090 else
17091 have_kqueue="no"
17096 # Check whether --with-kqueue was given.
17097 if test "${with_kqueue+set}" = set; then :
17098 withval=$with_kqueue; want_kqueue=${withval}
17099 else
17100 want_kqueue=${have_kqueue}
17103 if test "x$want_kqueue" = "xyes" ; then
17104 if test "x$have_kqueue" = "xyes"; then
17105 $as_echo "#define WITH_KQUEUE 1" >>confdefs.h
17107 else
17108 as_fn_error $? "\"kqueue not found!\"" "$LINENO" 5
17112 for ac_header in sys/statvfs.h \
17113 xfs/xfs.h
17114 do :
17115 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17116 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17117 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17118 cat >>confdefs.h <<_ACEOF
17119 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17120 _ACEOF
17124 done
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to copy va_list" >&5
17130 $as_echo_n "checking how to copy va_list... " >&6; }
17131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17132 /* end confdefs.h. */
17133 #include <stdarg.h>
17135 main ()
17137 va_list ap1, ap2; va_copy(ap1, ap2);
17139 return 0;
17141 _ACEOF
17142 if ac_fn_c_try_link "$LINENO"; then :
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: va_copy" >&5
17144 $as_echo "va_copy" >&6; }
17145 else
17147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17148 /* end confdefs.h. */
17149 #include <stdarg.h>
17151 main ()
17153 va_list ap1, ap2; __va_copy(ap1, ap2);
17155 return 0;
17157 _ACEOF
17158 if ac_fn_c_try_link "$LINENO"; then :
17159 $as_echo "#define va_copy __va_copy" >>confdefs.h
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: __va_copy" >&5
17162 $as_echo "__va_copy" >&6; }
17163 else
17164 $as_echo "#define va_copy(dest,src) memcpy(&dest,&src,sizeof(va_list))" >>confdefs.h
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: memcpy" >&5
17167 $as_echo "memcpy" >&6; }
17170 rm -f core conftest.err conftest.$ac_objext \
17171 conftest$ac_exeext conftest.$ac_ext
17174 rm -f core conftest.err conftest.$ac_objext \
17175 conftest$ac_exeext conftest.$ac_ext
17179 DHT_CFLAGS="-I\$(top_srcdir)/third-party/dht"
17180 DHT_LIBS="\$(top_builddir)/third-party/dht/libdht.a"
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
17187 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
17188 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
17189 $as_echo_n "(cached) " >&6
17190 else
17191 ac_check_lib_save_LIBS=$LIBS
17192 LIBS="-lrt $LIBS"
17193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17194 /* end confdefs.h. */
17196 /* Override any GCC internal prototype to avoid an error.
17197 Use char because int might match the return type of a GCC
17198 builtin and then its argument prototype would still apply. */
17199 #ifdef __cplusplus
17200 extern "C"
17201 #endif
17202 char clock_gettime ();
17204 main ()
17206 return clock_gettime ();
17208 return 0;
17210 _ACEOF
17211 if ac_fn_c_try_link "$LINENO"; then :
17212 ac_cv_lib_rt_clock_gettime=yes
17213 else
17214 ac_cv_lib_rt_clock_gettime=no
17216 rm -f core conftest.err conftest.$ac_objext \
17217 conftest$ac_exeext conftest.$ac_ext
17218 LIBS=$ac_check_lib_save_LIBS
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
17221 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
17222 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
17223 libutp_extra_libs="-lrt"
17224 else
17225 libutp_extra_libs=""
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking µTP" >&5
17230 $as_echo_n "checking µTP... " >&6; }
17231 build_utp="no"
17232 if test "x$CXX" = "x" ; then
17233 have_utp="no"
17234 else
17235 have_utp="yes"
17237 # Check whether --enable-utp was given.
17238 if test "${enable_utp+set}" = set; then :
17239 enableval=$enable_utp; want_utp=${enableval}
17240 else
17241 want_utp=${have_utp}
17244 if test "x$want_utp" = "xyes" ; then
17245 if test "x$have_utp" = "xyes"; then
17246 LIBUTP_CFLAGS="-I\$(top_srcdir)/third-party/"
17247 LIBUTP_LIBS="\$(top_builddir)/third-party/libutp/libutp.a"
17248 if test "x$libutp_extra_libs" != "x" ; then
17249 LIBUTP_LIBS="$LIBUTP_LIBS $libutp_extra_libs"
17251 $as_echo "#define WITH_UTP 1" >>confdefs.h
17253 build_utp="yes"
17254 else
17255 as_fn_error $? "\"Unable to build uTP support -- C++ compiler not found\"" "$LINENO" 5
17260 if test "x$build_utp" = "xyes"; then
17261 BUILD_UTP_TRUE=
17262 BUILD_UTP_FALSE='#'
17263 else
17264 BUILD_UTP_TRUE='#'
17265 BUILD_UTP_FALSE=
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_utp" >&5
17269 $as_echo "$build_utp" >&6; }
17274 pkg_failed=no
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
17276 $as_echo_n "checking for GTK... " >&6; }
17278 if test -n "$PKG_CONFIG"; then
17279 if test -n "$GTK_CFLAGS"; then
17280 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
17281 else
17282 if test -n "$PKG_CONFIG" && \
17283 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= \$GTK_MINIMUM
17284 glib-2.0 >= \$GLIB_MINIMUM
17285 gmodule-2.0 >= \$GLIB_MINIMUM
17286 gthread-2.0 >= \$GLIB_MINIMUM\""; } >&5
17287 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= $GTK_MINIMUM
17288 glib-2.0 >= $GLIB_MINIMUM
17289 gmodule-2.0 >= $GLIB_MINIMUM
17290 gthread-2.0 >= $GLIB_MINIMUM") 2>&5
17291 ac_status=$?
17292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17293 test $ac_status = 0; }; then
17294 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= $GTK_MINIMUM
17295 glib-2.0 >= $GLIB_MINIMUM
17296 gmodule-2.0 >= $GLIB_MINIMUM
17297 gthread-2.0 >= $GLIB_MINIMUM" 2>/dev/null`
17298 else
17299 pkg_failed=yes
17302 else
17303 pkg_failed=untried
17305 if test -n "$PKG_CONFIG"; then
17306 if test -n "$GTK_LIBS"; then
17307 pkg_cv_GTK_LIBS="$GTK_LIBS"
17308 else
17309 if test -n "$PKG_CONFIG" && \
17310 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= \$GTK_MINIMUM
17311 glib-2.0 >= \$GLIB_MINIMUM
17312 gmodule-2.0 >= \$GLIB_MINIMUM
17313 gthread-2.0 >= \$GLIB_MINIMUM\""; } >&5
17314 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= $GTK_MINIMUM
17315 glib-2.0 >= $GLIB_MINIMUM
17316 gmodule-2.0 >= $GLIB_MINIMUM
17317 gthread-2.0 >= $GLIB_MINIMUM") 2>&5
17318 ac_status=$?
17319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17320 test $ac_status = 0; }; then
17321 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= $GTK_MINIMUM
17322 glib-2.0 >= $GLIB_MINIMUM
17323 gmodule-2.0 >= $GLIB_MINIMUM
17324 gthread-2.0 >= $GLIB_MINIMUM" 2>/dev/null`
17325 else
17326 pkg_failed=yes
17329 else
17330 pkg_failed=untried
17335 if test $pkg_failed = yes; then
17337 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17338 _pkg_short_errors_supported=yes
17339 else
17340 _pkg_short_errors_supported=no
17342 if test $_pkg_short_errors_supported = yes; then
17343 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= $GTK_MINIMUM
17344 glib-2.0 >= $GLIB_MINIMUM
17345 gmodule-2.0 >= $GLIB_MINIMUM
17346 gthread-2.0 >= $GLIB_MINIMUM"`
17347 else
17348 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= $GTK_MINIMUM
17349 glib-2.0 >= $GLIB_MINIMUM
17350 gmodule-2.0 >= $GLIB_MINIMUM
17351 gthread-2.0 >= $GLIB_MINIMUM"`
17353 # Put the nasty error message in config.log where it belongs
17354 echo "$GTK_PKG_ERRORS" >&5
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17357 $as_echo "no" >&6; }
17358 have_gtk=no
17359 elif test $pkg_failed = untried; then
17360 have_gtk=no
17361 else
17362 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
17363 GTK_LIBS=$pkg_cv_GTK_LIBS
17364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17365 $as_echo "yes" >&6; }
17366 have_gtk=yes
17368 # Check whether --enable-gtk was given.
17369 if test "${enable_gtk+set}" = set; then :
17370 enableval=$enable_gtk; want_gtk=${enableval}
17371 else
17372 want_gtk=${have_gtk}
17375 build_gtk=no
17376 use_gio=no
17377 use_libappindicator=no
17378 use_libnotify=no
17379 use_dbus_glib=no
17380 use_canberra=no
17381 if test "x$want_gtk" = "xyes" ; then
17382 if test "x$have_gtk" = "xyes"; then
17383 build_gtk=yes
17384 else
17385 as_fn_error $? "\"GTK+ not found!\"" "$LINENO" 5
17388 if test "x$build_gtk" = "xyes"; then
17389 BUILD_GTK_TRUE=
17390 BUILD_GTK_FALSE='#'
17391 else
17392 BUILD_GTK_TRUE='#'
17393 BUILD_GTK_FALSE=
17397 if test "x$build_gtk" = "xyes"; then
17400 pkg_failed=no
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
17402 $as_echo_n "checking for GIO... " >&6; }
17404 if test -n "$PKG_CONFIG"; then
17405 if test -n "$GIO_CFLAGS"; then
17406 pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
17407 else
17408 if test -n "$PKG_CONFIG" && \
17409 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= \$GIO_MINIMUM\""; } >&5
17410 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= $GIO_MINIMUM") 2>&5
17411 ac_status=$?
17412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17413 test $ac_status = 0; }; then
17414 pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= $GIO_MINIMUM" 2>/dev/null`
17415 else
17416 pkg_failed=yes
17419 else
17420 pkg_failed=untried
17422 if test -n "$PKG_CONFIG"; then
17423 if test -n "$GIO_LIBS"; then
17424 pkg_cv_GIO_LIBS="$GIO_LIBS"
17425 else
17426 if test -n "$PKG_CONFIG" && \
17427 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= \$GIO_MINIMUM\""; } >&5
17428 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= $GIO_MINIMUM") 2>&5
17429 ac_status=$?
17430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17431 test $ac_status = 0; }; then
17432 pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= $GIO_MINIMUM" 2>/dev/null`
17433 else
17434 pkg_failed=yes
17437 else
17438 pkg_failed=untried
17443 if test $pkg_failed = yes; then
17445 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17446 _pkg_short_errors_supported=yes
17447 else
17448 _pkg_short_errors_supported=no
17450 if test $_pkg_short_errors_supported = yes; then
17451 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gio-2.0 >= $GIO_MINIMUM"`
17452 else
17453 GIO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= $GIO_MINIMUM"`
17455 # Put the nasty error message in config.log where it belongs
17456 echo "$GIO_PKG_ERRORS" >&5
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17459 $as_echo "no" >&6; }
17460 use_gio=no
17461 elif test $pkg_failed = untried; then
17462 use_gio=no
17463 else
17464 GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
17465 GIO_LIBS=$pkg_cv_GIO_LIBS
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17467 $as_echo "yes" >&6; }
17468 use_gio=yes
17470 if test "x$use_gio" = "xyes"; then
17471 $as_echo "#define HAVE_GIO 1" >>confdefs.h
17476 pkg_failed=no
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNOTIFY" >&5
17478 $as_echo_n "checking for LIBNOTIFY... " >&6; }
17480 if test -n "$PKG_CONFIG"; then
17481 if test -n "$LIBNOTIFY_CFLAGS"; then
17482 pkg_cv_LIBNOTIFY_CFLAGS="$LIBNOTIFY_CFLAGS"
17483 else
17484 if test -n "$PKG_CONFIG" && \
17485 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify >= \$LIBNOTIFY_MINIMUM\""; } >&5
17486 ($PKG_CONFIG --exists --print-errors "libnotify >= $LIBNOTIFY_MINIMUM") 2>&5
17487 ac_status=$?
17488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17489 test $ac_status = 0; }; then
17490 pkg_cv_LIBNOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify >= $LIBNOTIFY_MINIMUM" 2>/dev/null`
17491 else
17492 pkg_failed=yes
17495 else
17496 pkg_failed=untried
17498 if test -n "$PKG_CONFIG"; then
17499 if test -n "$LIBNOTIFY_LIBS"; then
17500 pkg_cv_LIBNOTIFY_LIBS="$LIBNOTIFY_LIBS"
17501 else
17502 if test -n "$PKG_CONFIG" && \
17503 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify >= \$LIBNOTIFY_MINIMUM\""; } >&5
17504 ($PKG_CONFIG --exists --print-errors "libnotify >= $LIBNOTIFY_MINIMUM") 2>&5
17505 ac_status=$?
17506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17507 test $ac_status = 0; }; then
17508 pkg_cv_LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify >= $LIBNOTIFY_MINIMUM" 2>/dev/null`
17509 else
17510 pkg_failed=yes
17513 else
17514 pkg_failed=untried
17519 if test $pkg_failed = yes; then
17521 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17522 _pkg_short_errors_supported=yes
17523 else
17524 _pkg_short_errors_supported=no
17526 if test $_pkg_short_errors_supported = yes; then
17527 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libnotify >= $LIBNOTIFY_MINIMUM"`
17528 else
17529 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libnotify >= $LIBNOTIFY_MINIMUM"`
17531 # Put the nasty error message in config.log where it belongs
17532 echo "$LIBNOTIFY_PKG_ERRORS" >&5
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17535 $as_echo "no" >&6; }
17536 have_libnotify=no
17537 elif test $pkg_failed = untried; then
17538 have_libnotify=no
17539 else
17540 LIBNOTIFY_CFLAGS=$pkg_cv_LIBNOTIFY_CFLAGS
17541 LIBNOTIFY_LIBS=$pkg_cv_LIBNOTIFY_LIBS
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17543 $as_echo "yes" >&6; }
17544 have_libnotify=yes
17546 # Check whether --enable-libnotify was given.
17547 if test "${enable_libnotify+set}" = set; then :
17548 enableval=$enable_libnotify;
17549 else
17550 enable_libnotify=yes
17553 use_libnotify=no
17554 if test "x$have_libnotify" = "xyes"; then
17555 if test "x$enable_libnotify" = "xyes" ; then
17556 use_libnotify=yes
17557 $as_echo "#define HAVE_LIBNOTIFY 1" >>confdefs.h
17559 else
17560 LIBNOTIFY_CFLAGS=
17561 LIBNOTIFY_LIBS=
17566 pkg_failed=no
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBAPPINDICATOR" >&5
17568 $as_echo_n "checking for LIBAPPINDICATOR... " >&6; }
17570 if test -n "$PKG_CONFIG"; then
17571 if test -n "$LIBAPPINDICATOR_CFLAGS"; then
17572 pkg_cv_LIBAPPINDICATOR_CFLAGS="$LIBAPPINDICATOR_CFLAGS"
17573 else
17574 if test -n "$PKG_CONFIG" && \
17575 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 >= \$LIBAPPINDICATOR_MINIMUM\""; } >&5
17576 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 >= $LIBAPPINDICATOR_MINIMUM") 2>&5
17577 ac_status=$?
17578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17579 test $ac_status = 0; }; then
17580 pkg_cv_LIBAPPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 >= $LIBAPPINDICATOR_MINIMUM" 2>/dev/null`
17581 else
17582 pkg_failed=yes
17585 else
17586 pkg_failed=untried
17588 if test -n "$PKG_CONFIG"; then
17589 if test -n "$LIBAPPINDICATOR_LIBS"; then
17590 pkg_cv_LIBAPPINDICATOR_LIBS="$LIBAPPINDICATOR_LIBS"
17591 else
17592 if test -n "$PKG_CONFIG" && \
17593 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 >= \$LIBAPPINDICATOR_MINIMUM\""; } >&5
17594 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 >= $LIBAPPINDICATOR_MINIMUM") 2>&5
17595 ac_status=$?
17596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17597 test $ac_status = 0; }; then
17598 pkg_cv_LIBAPPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 >= $LIBAPPINDICATOR_MINIMUM" 2>/dev/null`
17599 else
17600 pkg_failed=yes
17603 else
17604 pkg_failed=untried
17609 if test $pkg_failed = yes; then
17611 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17612 _pkg_short_errors_supported=yes
17613 else
17614 _pkg_short_errors_supported=no
17616 if test $_pkg_short_errors_supported = yes; then
17617 LIBAPPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "appindicator-0.1 >= $LIBAPPINDICATOR_MINIMUM"`
17618 else
17619 LIBAPPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "appindicator-0.1 >= $LIBAPPINDICATOR_MINIMUM"`
17621 # Put the nasty error message in config.log where it belongs
17622 echo "$LIBAPPINDICATOR_PKG_ERRORS" >&5
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17625 $as_echo "no" >&6; }
17626 have_libappindicator=no
17627 elif test $pkg_failed = untried; then
17628 have_libappindicator=no
17629 else
17630 LIBAPPINDICATOR_CFLAGS=$pkg_cv_LIBAPPINDICATOR_CFLAGS
17631 LIBAPPINDICATOR_LIBS=$pkg_cv_LIBAPPINDICATOR_LIBS
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17633 $as_echo "yes" >&6; }
17634 have_libappindicator=yes
17637 # Check whether --enable-libappindicator was given.
17638 if test "${enable_libappindicator+set}" = set; then :
17639 enableval=$enable_libappindicator;
17640 else
17641 enable_libappindicator=yes
17644 use_libappindicator=no
17645 if test "x$have_libappindicator" = "xyes"; then
17646 if test "x$enable_libappindicator" = "xyes" ; then
17647 use_libappindicator=yes
17648 $as_echo "#define HAVE_LIBAPPINDICATOR 1" >>confdefs.h
17650 else
17651 LIBAPPINDICATOR_CFLAGS=
17652 LIBAPPINDICATOR_LIBS=
17657 pkg_failed=no
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCANBERRA" >&5
17659 $as_echo_n "checking for LIBCANBERRA... " >&6; }
17661 if test -n "$PKG_CONFIG"; then
17662 if test -n "$LIBCANBERRA_CFLAGS"; then
17663 pkg_cv_LIBCANBERRA_CFLAGS="$LIBCANBERRA_CFLAGS"
17664 else
17665 if test -n "$PKG_CONFIG" && \
17666 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcanberra-gtk >= \$CANBERRA_MINIMUM\""; } >&5
17667 ($PKG_CONFIG --exists --print-errors "libcanberra-gtk >= $CANBERRA_MINIMUM") 2>&5
17668 ac_status=$?
17669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17670 test $ac_status = 0; }; then
17671 pkg_cv_LIBCANBERRA_CFLAGS=`$PKG_CONFIG --cflags "libcanberra-gtk >= $CANBERRA_MINIMUM" 2>/dev/null`
17672 else
17673 pkg_failed=yes
17676 else
17677 pkg_failed=untried
17679 if test -n "$PKG_CONFIG"; then
17680 if test -n "$LIBCANBERRA_LIBS"; then
17681 pkg_cv_LIBCANBERRA_LIBS="$LIBCANBERRA_LIBS"
17682 else
17683 if test -n "$PKG_CONFIG" && \
17684 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcanberra-gtk >= \$CANBERRA_MINIMUM\""; } >&5
17685 ($PKG_CONFIG --exists --print-errors "libcanberra-gtk >= $CANBERRA_MINIMUM") 2>&5
17686 ac_status=$?
17687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17688 test $ac_status = 0; }; then
17689 pkg_cv_LIBCANBERRA_LIBS=`$PKG_CONFIG --libs "libcanberra-gtk >= $CANBERRA_MINIMUM" 2>/dev/null`
17690 else
17691 pkg_failed=yes
17694 else
17695 pkg_failed=untried
17700 if test $pkg_failed = yes; then
17702 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17703 _pkg_short_errors_supported=yes
17704 else
17705 _pkg_short_errors_supported=no
17707 if test $_pkg_short_errors_supported = yes; then
17708 LIBCANBERRA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcanberra-gtk >= $CANBERRA_MINIMUM"`
17709 else
17710 LIBCANBERRA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcanberra-gtk >= $CANBERRA_MINIMUM"`
17712 # Put the nasty error message in config.log where it belongs
17713 echo "$LIBCANBERRA_PKG_ERRORS" >&5
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17716 $as_echo "no" >&6; }
17717 have_libcanberra=no
17718 elif test $pkg_failed = untried; then
17719 have_libcanberra=no
17720 else
17721 LIBCANBERRA_CFLAGS=$pkg_cv_LIBCANBERRA_CFLAGS
17722 LIBCANBERRA_LIBS=$pkg_cv_LIBCANBERRA_LIBS
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17724 $as_echo "yes" >&6; }
17725 have_libcanberra=yes
17727 # Check whether --enable-libcanberra was given.
17728 if test "${enable_libcanberra+set}" = set; then :
17729 enableval=$enable_libcanberra;
17730 else
17731 enable_libcanberra=yes
17734 if test "x$have_libcanberra" = "xyes"; then
17735 if test "x$enable_libcanberra" = "xyes" ; then
17736 use_canberra=yes
17737 $as_echo "#define HAVE_LIBCANBERRA 1" >>confdefs.h
17739 else
17740 LIBCANBERRA_CFLAGS=
17741 LIBCANBERRA_LIBS=
17746 pkg_failed=no
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS_GLIB" >&5
17748 $as_echo_n "checking for DBUS_GLIB... " >&6; }
17750 if test -n "$PKG_CONFIG"; then
17751 if test -n "$DBUS_GLIB_CFLAGS"; then
17752 pkg_cv_DBUS_GLIB_CFLAGS="$DBUS_GLIB_CFLAGS"
17753 else
17754 if test -n "$PKG_CONFIG" && \
17755 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 >= \$DBUS_GLIB_MINIMUM\""; } >&5
17756 ($PKG_CONFIG --exists --print-errors "dbus-glib-1 >= $DBUS_GLIB_MINIMUM") 2>&5
17757 ac_status=$?
17758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17759 test $ac_status = 0; }; then
17760 pkg_cv_DBUS_GLIB_CFLAGS=`$PKG_CONFIG --cflags "dbus-glib-1 >= $DBUS_GLIB_MINIMUM" 2>/dev/null`
17761 else
17762 pkg_failed=yes
17765 else
17766 pkg_failed=untried
17768 if test -n "$PKG_CONFIG"; then
17769 if test -n "$DBUS_GLIB_LIBS"; then
17770 pkg_cv_DBUS_GLIB_LIBS="$DBUS_GLIB_LIBS"
17771 else
17772 if test -n "$PKG_CONFIG" && \
17773 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 >= \$DBUS_GLIB_MINIMUM\""; } >&5
17774 ($PKG_CONFIG --exists --print-errors "dbus-glib-1 >= $DBUS_GLIB_MINIMUM") 2>&5
17775 ac_status=$?
17776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17777 test $ac_status = 0; }; then
17778 pkg_cv_DBUS_GLIB_LIBS=`$PKG_CONFIG --libs "dbus-glib-1 >= $DBUS_GLIB_MINIMUM" 2>/dev/null`
17779 else
17780 pkg_failed=yes
17783 else
17784 pkg_failed=untried
17789 if test $pkg_failed = yes; then
17791 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17792 _pkg_short_errors_supported=yes
17793 else
17794 _pkg_short_errors_supported=no
17796 if test $_pkg_short_errors_supported = yes; then
17797 DBUS_GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-glib-1 >= $DBUS_GLIB_MINIMUM"`
17798 else
17799 DBUS_GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-glib-1 >= $DBUS_GLIB_MINIMUM"`
17801 # Put the nasty error message in config.log where it belongs
17802 echo "$DBUS_GLIB_PKG_ERRORS" >&5
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17805 $as_echo "no" >&6; }
17806 use_dbus_glib=no
17807 elif test $pkg_failed = untried; then
17808 use_dbus_glib=no
17809 else
17810 DBUS_GLIB_CFLAGS=$pkg_cv_DBUS_GLIB_CFLAGS
17811 DBUS_GLIB_LIBS=$pkg_cv_DBUS_GLIB_LIBS
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17813 $as_echo "yes" >&6; }
17814 use_dbus_glib=yes
17816 if test "x$use_dbus_glib" = "xyes"; then
17817 $as_echo "#define HAVE_DBUS_GLIB 1" >>confdefs.h
17820 if test "x$use_dbus_glib" = "xyes"; then
17821 # Extract the first word of "dbus-binding-tool", so it can be a program name with args.
17822 set dummy dbus-binding-tool; ac_word=$2
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17824 $as_echo_n "checking for $ac_word... " >&6; }
17825 if test "${ac_cv_path_DBUS_BINDING_TOOL+set}" = set; then :
17826 $as_echo_n "(cached) " >&6
17827 else
17828 case $DBUS_BINDING_TOOL in
17829 [\\/]* | ?:[\\/]*)
17830 ac_cv_path_DBUS_BINDING_TOOL="$DBUS_BINDING_TOOL" # Let the user override the test with a path.
17833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17834 for as_dir in $PATH
17836 IFS=$as_save_IFS
17837 test -z "$as_dir" && as_dir=.
17838 for ac_exec_ext in '' $ac_executable_extensions; do
17839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17840 ac_cv_path_DBUS_BINDING_TOOL="$as_dir/$ac_word$ac_exec_ext"
17841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17842 break 2
17844 done
17845 done
17846 IFS=$as_save_IFS
17848 test -z "$ac_cv_path_DBUS_BINDING_TOOL" && ac_cv_path_DBUS_BINDING_TOOL="no"
17850 esac
17852 DBUS_BINDING_TOOL=$ac_cv_path_DBUS_BINDING_TOOL
17853 if test -n "$DBUS_BINDING_TOOL"; then
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_BINDING_TOOL" >&5
17855 $as_echo "$DBUS_BINDING_TOOL" >&6; }
17856 else
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17858 $as_echo "no" >&6; }
17862 if test "x$DBUS_BINDING_TOOL" = xno; then
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find dbus-binding-tool" >&5
17864 $as_echo "$as_me: WARNING: Cannot find dbus-binding-tool" >&2;}
17865 use_dbus_glib="no (dbus-binding-tool not found)"
17870 # Check whether --enable-nls was given.
17871 if test "${enable_nls+set}" = set; then :
17872 enableval=$enable_nls;
17873 else
17874 enable_nls=yes
17878 if test "x$build_gtk" = "xyes" -a "x$enable_nls" = "xno" ; then
17879 as_fn_error $? "\"The gtk client cannot be built without nls support. Try adding either --enable-nls or --disable-gtk\" " "$LINENO" 5
17883 use_nls=no
17884 if test "x$enable_nls" = "xyes" ; then
17885 use_nls=yes
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17888 $as_echo_n "checking whether NLS is requested... " >&6; }
17889 # Check whether --enable-nls was given.
17890 if test "${enable_nls+set}" = set; then :
17891 enableval=$enable_nls; USE_NLS=$enableval
17892 else
17893 USE_NLS=yes
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17897 $as_echo "$USE_NLS" >&6; }
17902 case "$am__api_version" in
17903 1.01234)
17904 as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
17908 esac
17910 if test -n "0.35.0"; then
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.35.0" >&5
17912 $as_echo_n "checking for intltool >= 0.35.0... " >&6; }
17914 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
17915 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
17916 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
17919 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
17920 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
17921 as_fn_error $? "Your intltool is too old. You need intltool 0.35.0 or later." "$LINENO" 5
17924 # Extract the first word of "intltool-update", so it can be a program name with args.
17925 set dummy intltool-update; ac_word=$2
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17927 $as_echo_n "checking for $ac_word... " >&6; }
17928 if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then :
17929 $as_echo_n "(cached) " >&6
17930 else
17931 case $INTLTOOL_UPDATE in
17932 [\\/]* | ?:[\\/]*)
17933 ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
17936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17937 for as_dir in $PATH
17939 IFS=$as_save_IFS
17940 test -z "$as_dir" && as_dir=.
17941 for ac_exec_ext in '' $ac_executable_extensions; do
17942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17943 ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
17944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17945 break 2
17947 done
17948 done
17949 IFS=$as_save_IFS
17952 esac
17954 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
17955 if test -n "$INTLTOOL_UPDATE"; then
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
17957 $as_echo "$INTLTOOL_UPDATE" >&6; }
17958 else
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17960 $as_echo "no" >&6; }
17964 # Extract the first word of "intltool-merge", so it can be a program name with args.
17965 set dummy intltool-merge; ac_word=$2
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17967 $as_echo_n "checking for $ac_word... " >&6; }
17968 if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then :
17969 $as_echo_n "(cached) " >&6
17970 else
17971 case $INTLTOOL_MERGE in
17972 [\\/]* | ?:[\\/]*)
17973 ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
17976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17977 for as_dir in $PATH
17979 IFS=$as_save_IFS
17980 test -z "$as_dir" && as_dir=.
17981 for ac_exec_ext in '' $ac_executable_extensions; do
17982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17983 ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
17984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17985 break 2
17987 done
17988 done
17989 IFS=$as_save_IFS
17992 esac
17994 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
17995 if test -n "$INTLTOOL_MERGE"; then
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
17997 $as_echo "$INTLTOOL_MERGE" >&6; }
17998 else
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18000 $as_echo "no" >&6; }
18004 # Extract the first word of "intltool-extract", so it can be a program name with args.
18005 set dummy intltool-extract; ac_word=$2
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18007 $as_echo_n "checking for $ac_word... " >&6; }
18008 if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then :
18009 $as_echo_n "(cached) " >&6
18010 else
18011 case $INTLTOOL_EXTRACT in
18012 [\\/]* | ?:[\\/]*)
18013 ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
18016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18017 for as_dir in $PATH
18019 IFS=$as_save_IFS
18020 test -z "$as_dir" && as_dir=.
18021 for ac_exec_ext in '' $ac_executable_extensions; do
18022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18023 ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
18024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18025 break 2
18027 done
18028 done
18029 IFS=$as_save_IFS
18032 esac
18034 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
18035 if test -n "$INTLTOOL_EXTRACT"; then
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
18037 $as_echo "$INTLTOOL_EXTRACT" >&6; }
18038 else
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18040 $as_echo "no" >&6; }
18044 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
18045 as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
18048 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18049 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18050 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18051 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18052 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
18053 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18054 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18055 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18056 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18057 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18058 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18059 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
18060 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18061 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18062 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18063 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18064 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18065 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18066 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18164 # Check the gettext tools to make sure they are GNU
18165 # Extract the first word of "xgettext", so it can be a program name with args.
18166 set dummy xgettext; ac_word=$2
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18168 $as_echo_n "checking for $ac_word... " >&6; }
18169 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
18170 $as_echo_n "(cached) " >&6
18171 else
18172 case $XGETTEXT in
18173 [\\/]* | ?:[\\/]*)
18174 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
18177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18178 for as_dir in $PATH
18180 IFS=$as_save_IFS
18181 test -z "$as_dir" && as_dir=.
18182 for ac_exec_ext in '' $ac_executable_extensions; do
18183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18184 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
18185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18186 break 2
18188 done
18189 done
18190 IFS=$as_save_IFS
18193 esac
18195 XGETTEXT=$ac_cv_path_XGETTEXT
18196 if test -n "$XGETTEXT"; then
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18198 $as_echo "$XGETTEXT" >&6; }
18199 else
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18201 $as_echo "no" >&6; }
18205 # Extract the first word of "msgmerge", so it can be a program name with args.
18206 set dummy msgmerge; ac_word=$2
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18208 $as_echo_n "checking for $ac_word... " >&6; }
18209 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
18210 $as_echo_n "(cached) " >&6
18211 else
18212 case $MSGMERGE in
18213 [\\/]* | ?:[\\/]*)
18214 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
18217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18218 for as_dir in $PATH
18220 IFS=$as_save_IFS
18221 test -z "$as_dir" && as_dir=.
18222 for ac_exec_ext in '' $ac_executable_extensions; do
18223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18224 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
18225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18226 break 2
18228 done
18229 done
18230 IFS=$as_save_IFS
18233 esac
18235 MSGMERGE=$ac_cv_path_MSGMERGE
18236 if test -n "$MSGMERGE"; then
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18238 $as_echo "$MSGMERGE" >&6; }
18239 else
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18241 $as_echo "no" >&6; }
18245 # Extract the first word of "msgfmt", so it can be a program name with args.
18246 set dummy msgfmt; ac_word=$2
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18248 $as_echo_n "checking for $ac_word... " >&6; }
18249 if test "${ac_cv_path_MSGFMT+set}" = set; then :
18250 $as_echo_n "(cached) " >&6
18251 else
18252 case $MSGFMT in
18253 [\\/]* | ?:[\\/]*)
18254 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18258 for as_dir in $PATH
18260 IFS=$as_save_IFS
18261 test -z "$as_dir" && as_dir=.
18262 for ac_exec_ext in '' $ac_executable_extensions; do
18263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18264 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18266 break 2
18268 done
18269 done
18270 IFS=$as_save_IFS
18273 esac
18275 MSGFMT=$ac_cv_path_MSGFMT
18276 if test -n "$MSGFMT"; then
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18278 $as_echo "$MSGFMT" >&6; }
18279 else
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18281 $as_echo "no" >&6; }
18285 # Extract the first word of "gmsgfmt", so it can be a program name with args.
18286 set dummy gmsgfmt; ac_word=$2
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18288 $as_echo_n "checking for $ac_word... " >&6; }
18289 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
18290 $as_echo_n "(cached) " >&6
18291 else
18292 case $GMSGFMT in
18293 [\\/]* | ?:[\\/]*)
18294 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
18297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18298 for as_dir in $PATH
18300 IFS=$as_save_IFS
18301 test -z "$as_dir" && as_dir=.
18302 for ac_exec_ext in '' $ac_executable_extensions; do
18303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18304 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
18305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18306 break 2
18308 done
18309 done
18310 IFS=$as_save_IFS
18312 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
18314 esac
18316 GMSGFMT=$ac_cv_path_GMSGFMT
18317 if test -n "$GMSGFMT"; then
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
18319 $as_echo "$GMSGFMT" >&6; }
18320 else
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18322 $as_echo "no" >&6; }
18326 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
18327 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
18329 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
18330 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
18331 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
18332 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
18333 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
18336 # Extract the first word of "perl", so it can be a program name with args.
18337 set dummy perl; ac_word=$2
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18339 $as_echo_n "checking for $ac_word... " >&6; }
18340 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then :
18341 $as_echo_n "(cached) " >&6
18342 else
18343 case $INTLTOOL_PERL in
18344 [\\/]* | ?:[\\/]*)
18345 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
18348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18349 for as_dir in $PATH
18351 IFS=$as_save_IFS
18352 test -z "$as_dir" && as_dir=.
18353 for ac_exec_ext in '' $ac_executable_extensions; do
18354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18355 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
18356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18357 break 2
18359 done
18360 done
18361 IFS=$as_save_IFS
18364 esac
18366 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
18367 if test -n "$INTLTOOL_PERL"; then
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
18369 $as_echo "$INTLTOOL_PERL" >&6; }
18370 else
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18372 $as_echo "no" >&6; }
18376 if test -z "$INTLTOOL_PERL"; then
18377 as_fn_error $? "perl not found" "$LINENO" 5
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
18380 $as_echo_n "checking for perl >= 5.8.1... " >&6; }
18381 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
18382 if test $? -ne 0; then
18383 as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
18384 else
18385 IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
18387 $as_echo "$IT_PERL_VERSION" >&6; }
18389 if test "xno-xml" != "xno-xml"; then
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
18391 $as_echo_n "checking for XML::Parser... " >&6; }
18392 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18394 $as_echo "ok" >&6; }
18395 else
18396 as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
18400 # Substitute ALL_LINGUAS so we can use it in po/Makefile
18403 # Set DATADIRNAME correctly if it is not set yet
18404 # (copied from glib-gettext.m4)
18405 if test -z "$DATADIRNAME"; then
18406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18407 /* end confdefs.h. */
18410 main ()
18412 extern int _nl_msg_cat_cntr;
18413 return _nl_msg_cat_cntr
18415 return 0;
18417 _ACEOF
18418 if ac_fn_c_try_link "$LINENO"; then :
18419 DATADIRNAME=share
18420 else
18421 case $host in
18422 *-*-solaris*)
18423 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
18424 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
18425 DATADIRNAME=share
18426 else
18427 DATADIRNAME=lib
18432 DATADIRNAME=lib
18434 esac
18436 rm -f core conftest.err conftest.$ac_objext \
18437 conftest$ac_exeext conftest.$ac_ext
18444 for ac_header in libintl.h
18445 do :
18446 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
18447 if test "x$ac_cv_header_libintl_h" = x""yes; then :
18448 cat >>confdefs.h <<_ACEOF
18449 #define HAVE_LIBINTL_H 1
18450 _ACEOF
18454 done
18456 GETTEXT_PACKAGE=transmission-gtk
18459 cat >>confdefs.h <<_ACEOF
18460 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
18461 _ACEOF
18464 for ac_header in locale.h
18465 do :
18466 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
18467 if test "x$ac_cv_header_locale_h" = x""yes; then :
18468 cat >>confdefs.h <<_ACEOF
18469 #define HAVE_LOCALE_H 1
18470 _ACEOF
18474 done
18476 if test $ac_cv_header_locale_h = yes; then
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
18478 $as_echo_n "checking for LC_MESSAGES... " >&6; }
18479 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
18480 $as_echo_n "(cached) " >&6
18481 else
18482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18483 /* end confdefs.h. */
18484 #include <locale.h>
18486 main ()
18488 return LC_MESSAGES
18490 return 0;
18492 _ACEOF
18493 if ac_fn_c_try_link "$LINENO"; then :
18494 am_cv_val_LC_MESSAGES=yes
18495 else
18496 am_cv_val_LC_MESSAGES=no
18498 rm -f core conftest.err conftest.$ac_objext \
18499 conftest$ac_exeext conftest.$ac_ext
18501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
18502 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
18503 if test $am_cv_val_LC_MESSAGES = yes; then
18505 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
18509 USE_NLS=yes
18512 gt_cv_have_gettext=no
18514 CATOBJEXT=NONE
18515 XGETTEXT=:
18516 INTLLIBS=
18518 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
18519 if test "x$ac_cv_header_libintl_h" = x""yes; then :
18520 gt_cv_func_dgettext_libintl="no"
18521 libintl_extra_libs=""
18524 # First check in libc
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
18527 $as_echo_n "checking for ngettext in libc... " >&6; }
18528 if test "${gt_cv_func_ngettext_libc+set}" = set; then :
18529 $as_echo_n "(cached) " >&6
18530 else
18531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18532 /* end confdefs.h. */
18534 #include <libintl.h>
18537 main ()
18539 return !ngettext ("","", 1)
18541 return 0;
18543 _ACEOF
18544 if ac_fn_c_try_link "$LINENO"; then :
18545 gt_cv_func_ngettext_libc=yes
18546 else
18547 gt_cv_func_ngettext_libc=no
18549 rm -f core conftest.err conftest.$ac_objext \
18550 conftest$ac_exeext conftest.$ac_ext
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
18554 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
18556 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
18558 $as_echo_n "checking for dgettext in libc... " >&6; }
18559 if test "${gt_cv_func_dgettext_libc+set}" = set; then :
18560 $as_echo_n "(cached) " >&6
18561 else
18562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18563 /* end confdefs.h. */
18565 #include <libintl.h>
18568 main ()
18570 return !dgettext ("","")
18572 return 0;
18574 _ACEOF
18575 if ac_fn_c_try_link "$LINENO"; then :
18576 gt_cv_func_dgettext_libc=yes
18577 else
18578 gt_cv_func_dgettext_libc=no
18580 rm -f core conftest.err conftest.$ac_objext \
18581 conftest$ac_exeext conftest.$ac_ext
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
18585 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
18588 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
18589 for ac_func in bind_textdomain_codeset
18590 do :
18591 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
18592 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
18593 cat >>confdefs.h <<_ACEOF
18594 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
18595 _ACEOF
18598 done
18603 # If we don't have everything we want, check in libintl
18605 if test "$gt_cv_func_dgettext_libc" != "yes" \
18606 || test "$gt_cv_func_ngettext_libc" != "yes" \
18607 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
18609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
18610 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
18611 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then :
18612 $as_echo_n "(cached) " >&6
18613 else
18614 ac_check_lib_save_LIBS=$LIBS
18615 LIBS="-lintl $LIBS"
18616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18617 /* end confdefs.h. */
18619 /* Override any GCC internal prototype to avoid an error.
18620 Use char because int might match the return type of a GCC
18621 builtin and then its argument prototype would still apply. */
18622 #ifdef __cplusplus
18623 extern "C"
18624 #endif
18625 char bindtextdomain ();
18627 main ()
18629 return bindtextdomain ();
18631 return 0;
18633 _ACEOF
18634 if ac_fn_c_try_link "$LINENO"; then :
18635 ac_cv_lib_intl_bindtextdomain=yes
18636 else
18637 ac_cv_lib_intl_bindtextdomain=no
18639 rm -f core conftest.err conftest.$ac_objext \
18640 conftest$ac_exeext conftest.$ac_ext
18641 LIBS=$ac_check_lib_save_LIBS
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
18644 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
18645 if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then :
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
18647 $as_echo_n "checking for ngettext in -lintl... " >&6; }
18648 if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
18649 $as_echo_n "(cached) " >&6
18650 else
18651 ac_check_lib_save_LIBS=$LIBS
18652 LIBS="-lintl $LIBS"
18653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18654 /* end confdefs.h. */
18656 /* Override any GCC internal prototype to avoid an error.
18657 Use char because int might match the return type of a GCC
18658 builtin and then its argument prototype would still apply. */
18659 #ifdef __cplusplus
18660 extern "C"
18661 #endif
18662 char ngettext ();
18664 main ()
18666 return ngettext ();
18668 return 0;
18670 _ACEOF
18671 if ac_fn_c_try_link "$LINENO"; then :
18672 ac_cv_lib_intl_ngettext=yes
18673 else
18674 ac_cv_lib_intl_ngettext=no
18676 rm -f core conftest.err conftest.$ac_objext \
18677 conftest$ac_exeext conftest.$ac_ext
18678 LIBS=$ac_check_lib_save_LIBS
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
18681 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
18682 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then :
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
18684 $as_echo_n "checking for dgettext in -lintl... " >&6; }
18685 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
18686 $as_echo_n "(cached) " >&6
18687 else
18688 ac_check_lib_save_LIBS=$LIBS
18689 LIBS="-lintl $LIBS"
18690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18691 /* end confdefs.h. */
18693 /* Override any GCC internal prototype to avoid an error.
18694 Use char because int might match the return type of a GCC
18695 builtin and then its argument prototype would still apply. */
18696 #ifdef __cplusplus
18697 extern "C"
18698 #endif
18699 char dgettext ();
18701 main ()
18703 return dgettext ();
18705 return 0;
18707 _ACEOF
18708 if ac_fn_c_try_link "$LINENO"; then :
18709 ac_cv_lib_intl_dgettext=yes
18710 else
18711 ac_cv_lib_intl_dgettext=no
18713 rm -f core conftest.err conftest.$ac_objext \
18714 conftest$ac_exeext conftest.$ac_ext
18715 LIBS=$ac_check_lib_save_LIBS
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
18718 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
18719 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
18720 gt_cv_func_dgettext_libintl=yes
18728 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
18729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
18730 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
18732 $as_echo "" >&6; }
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
18734 $as_echo_n "checking for ngettext in -lintl... " >&6; }
18735 if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
18736 $as_echo_n "(cached) " >&6
18737 else
18738 ac_check_lib_save_LIBS=$LIBS
18739 LIBS="-lintl -liconv $LIBS"
18740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18741 /* end confdefs.h. */
18743 /* Override any GCC internal prototype to avoid an error.
18744 Use char because int might match the return type of a GCC
18745 builtin and then its argument prototype would still apply. */
18746 #ifdef __cplusplus
18747 extern "C"
18748 #endif
18749 char ngettext ();
18751 main ()
18753 return ngettext ();
18755 return 0;
18757 _ACEOF
18758 if ac_fn_c_try_link "$LINENO"; then :
18759 ac_cv_lib_intl_ngettext=yes
18760 else
18761 ac_cv_lib_intl_ngettext=no
18763 rm -f core conftest.err conftest.$ac_objext \
18764 conftest$ac_exeext conftest.$ac_ext
18765 LIBS=$ac_check_lib_save_LIBS
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
18768 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
18769 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then :
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
18771 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
18772 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then :
18773 $as_echo_n "(cached) " >&6
18774 else
18775 ac_check_lib_save_LIBS=$LIBS
18776 LIBS="-lintl -liconv $LIBS"
18777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18778 /* end confdefs.h. */
18780 /* Override any GCC internal prototype to avoid an error.
18781 Use char because int might match the return type of a GCC
18782 builtin and then its argument prototype would still apply. */
18783 #ifdef __cplusplus
18784 extern "C"
18785 #endif
18786 char dcgettext ();
18788 main ()
18790 return dcgettext ();
18792 return 0;
18794 _ACEOF
18795 if ac_fn_c_try_link "$LINENO"; then :
18796 ac_cv_lib_intl_dcgettext=yes
18797 else
18798 ac_cv_lib_intl_dcgettext=no
18800 rm -f core conftest.err conftest.$ac_objext \
18801 conftest$ac_exeext conftest.$ac_ext
18802 LIBS=$ac_check_lib_save_LIBS
18804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
18805 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
18806 if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then :
18807 gt_cv_func_dgettext_libintl=yes
18808 libintl_extra_libs=-liconv
18809 else
18813 else
18820 # If we found libintl, then check in it for bind_textdomain_codeset();
18821 # we'll prefer libc if neither have bind_textdomain_codeset(),
18822 # and both have dgettext and ngettext
18824 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
18825 glib_save_LIBS="$LIBS"
18826 LIBS="$LIBS -lintl $libintl_extra_libs"
18827 unset ac_cv_func_bind_textdomain_codeset
18828 for ac_func in bind_textdomain_codeset
18829 do :
18830 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
18831 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
18832 cat >>confdefs.h <<_ACEOF
18833 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
18834 _ACEOF
18837 done
18839 LIBS="$glib_save_LIBS"
18841 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
18842 gt_cv_func_dgettext_libc=no
18843 else
18844 if test "$gt_cv_func_dgettext_libc" = "yes" \
18845 && test "$gt_cv_func_ngettext_libc" = "yes"; then
18846 gt_cv_func_dgettext_libintl=no
18852 if test "$gt_cv_func_dgettext_libc" = "yes" \
18853 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
18854 gt_cv_have_gettext=yes
18857 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
18858 INTLLIBS="-lintl $libintl_extra_libs"
18861 if test "$gt_cv_have_gettext" = "yes"; then
18863 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18865 # Extract the first word of "msgfmt", so it can be a program name with args.
18866 set dummy msgfmt; ac_word=$2
18867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18868 $as_echo_n "checking for $ac_word... " >&6; }
18869 if test "${ac_cv_path_MSGFMT+set}" = set; then :
18870 $as_echo_n "(cached) " >&6
18871 else
18872 case "$MSGFMT" in
18874 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18877 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
18878 for ac_dir in $PATH; do
18879 test -z "$ac_dir" && ac_dir=.
18880 if test -f $ac_dir/$ac_word; then
18881 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
18882 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
18883 break
18886 done
18887 IFS="$ac_save_ifs"
18888 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
18890 esac
18892 MSGFMT="$ac_cv_path_MSGFMT"
18893 if test "$MSGFMT" != "no"; then
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18895 $as_echo "$MSGFMT" >&6; }
18896 else
18897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18898 $as_echo "no" >&6; }
18900 if test "$MSGFMT" != "no"; then
18901 glib_save_LIBS="$LIBS"
18902 LIBS="$LIBS $INTLLIBS"
18903 for ac_func in dcgettext
18904 do :
18905 ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
18906 if test "x$ac_cv_func_dcgettext" = x""yes; then :
18907 cat >>confdefs.h <<_ACEOF
18908 #define HAVE_DCGETTEXT 1
18909 _ACEOF
18912 done
18914 # Extract the first word of "gmsgfmt", so it can be a program name with args.
18915 set dummy gmsgfmt; ac_word=$2
18916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18917 $as_echo_n "checking for $ac_word... " >&6; }
18918 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
18919 $as_echo_n "(cached) " >&6
18920 else
18921 case $GMSGFMT in
18922 [\\/]* | ?:[\\/]*)
18923 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
18926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18927 for as_dir in $PATH
18929 IFS=$as_save_IFS
18930 test -z "$as_dir" && as_dir=.
18931 for ac_exec_ext in '' $ac_executable_extensions; do
18932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18933 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
18934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18935 break 2
18937 done
18938 done
18939 IFS=$as_save_IFS
18941 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
18943 esac
18945 GMSGFMT=$ac_cv_path_GMSGFMT
18946 if test -n "$GMSGFMT"; then
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
18948 $as_echo "$GMSGFMT" >&6; }
18949 else
18950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18951 $as_echo "no" >&6; }
18955 # Extract the first word of "xgettext", so it can be a program name with args.
18956 set dummy xgettext; ac_word=$2
18957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18958 $as_echo_n "checking for $ac_word... " >&6; }
18959 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
18960 $as_echo_n "(cached) " >&6
18961 else
18962 case "$XGETTEXT" in
18964 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
18967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
18968 for ac_dir in $PATH; do
18969 test -z "$ac_dir" && ac_dir=.
18970 if test -f $ac_dir/$ac_word; then
18971 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
18972 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
18973 break
18976 done
18977 IFS="$ac_save_ifs"
18978 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
18980 esac
18982 XGETTEXT="$ac_cv_path_XGETTEXT"
18983 if test "$XGETTEXT" != ":"; then
18984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18985 $as_echo "$XGETTEXT" >&6; }
18986 else
18987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18988 $as_echo "no" >&6; }
18991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18992 /* end confdefs.h. */
18995 main ()
18997 extern int _nl_msg_cat_cntr;
18998 return _nl_msg_cat_cntr
19000 return 0;
19002 _ACEOF
19003 if ac_fn_c_try_link "$LINENO"; then :
19004 CATOBJEXT=.gmo
19005 DATADIRNAME=share
19006 else
19007 case $host in
19008 *-*-solaris*)
19009 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19010 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
19011 CATOBJEXT=.gmo
19012 DATADIRNAME=share
19013 else
19014 CATOBJEXT=.mo
19015 DATADIRNAME=lib
19020 CATOBJEXT=.mo
19021 DATADIRNAME=lib
19023 esac
19025 rm -f core conftest.err conftest.$ac_objext \
19026 conftest$ac_exeext conftest.$ac_ext
19027 LIBS="$glib_save_LIBS"
19028 INSTOBJEXT=.mo
19029 else
19030 gt_cv_have_gettext=no
19038 if test "$gt_cv_have_gettext" = "yes" ; then
19040 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
19044 if test "$XGETTEXT" != ":"; then
19045 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
19047 else
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
19049 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
19050 XGETTEXT=":"
19054 # We need to process the po/ directory.
19055 POSUB=po
19057 ac_config_commands="$ac_config_commands default-1"
19060 for lang in $ALL_LINGUAS; do
19061 GMOFILES="$GMOFILES $lang.gmo"
19062 POFILES="$POFILES $lang.po"
19063 done
19077 if test "$gt_cv_have_gettext" = "yes"; then
19078 if test "x$ALL_LINGUAS" = "x"; then
19079 LINGUAS=
19080 else
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
19082 $as_echo_n "checking for catalogs to be installed... " >&6; }
19083 NEW_LINGUAS=
19084 for presentlang in $ALL_LINGUAS; do
19085 useit=no
19086 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
19087 desiredlanguages="$LINGUAS"
19088 else
19089 desiredlanguages="$ALL_LINGUAS"
19091 for desiredlang in $desiredlanguages; do
19092 # Use the presentlang catalog if desiredlang is
19093 # a. equal to presentlang, or
19094 # b. a variant of presentlang (because in this case,
19095 # presentlang can be used as a fallback for messages
19096 # which are not translated in the desiredlang catalog).
19097 case "$desiredlang" in
19098 "$presentlang"*) useit=yes;;
19099 esac
19100 done
19101 if test $useit = yes; then
19102 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
19104 done
19105 LINGUAS=$NEW_LINGUAS
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
19107 $as_echo "$LINGUAS" >&6; }
19110 if test -n "$LINGUAS"; then
19111 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
19115 MKINSTALLDIRS=
19116 if test -n "$ac_aux_dir"; then
19117 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
19119 if test -z "$MKINSTALLDIRS"; then
19120 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
19124 test -d po || mkdir po
19125 if test "x$srcdir" != "x."; then
19126 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
19127 posrcprefix="$srcdir/"
19128 else
19129 posrcprefix="../$srcdir/"
19131 else
19132 posrcprefix="../"
19134 rm -f po/POTFILES
19135 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
19136 < $srcdir/po/POTFILES.in > po/POTFILES
19138 transmissionlocaledir='${prefix}/${DATADIRNAME}/locale'
19146 have_darwin="no"
19147 have_msw="no"
19148 case $host_os in
19150 *mingw32*)
19151 have_msw="yes"
19152 CXXFLAGS="$CXXFLAGS -mms-bitfields -mwin32 -mwindows"
19153 CPPFLAGS="$CPPFLAGS -DWIN32 -D_WIN32 -DWIN32_LEAN_AND_MEAN"
19154 LIBS="$LIBS -liphlpapi -lshell32 -lws2_32"
19155 transmissionlocaledir="locale"
19156 if test -z "$host_alias"; then
19157 hostaliaswindres=
19158 else
19159 hostaliaswindres="$host_alias-windres";
19161 if test -n "$ac_tool_prefix"; then
19162 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19163 set dummy ${ac_tool_prefix}windres; ac_word=$2
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19165 $as_echo_n "checking for $ac_word... " >&6; }
19166 if test "${ac_cv_prog_WINDRES+set}" = set; then :
19167 $as_echo_n "(cached) " >&6
19168 else
19169 if test -n "$WINDRES"; then
19170 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
19171 else
19172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19173 for as_dir in $PATH
19175 IFS=$as_save_IFS
19176 test -z "$as_dir" && as_dir=.
19177 for ac_exec_ext in '' $ac_executable_extensions; do
19178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19179 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
19180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19181 break 2
19183 done
19184 done
19185 IFS=$as_save_IFS
19189 WINDRES=$ac_cv_prog_WINDRES
19190 if test -n "$WINDRES"; then
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
19192 $as_echo "$WINDRES" >&6; }
19193 else
19194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19195 $as_echo "no" >&6; }
19200 if test -z "$ac_cv_prog_WINDRES"; then
19201 ac_ct_WINDRES=$WINDRES
19202 # Extract the first word of "windres", so it can be a program name with args.
19203 set dummy windres; ac_word=$2
19204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19205 $as_echo_n "checking for $ac_word... " >&6; }
19206 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
19207 $as_echo_n "(cached) " >&6
19208 else
19209 if test -n "$ac_ct_WINDRES"; then
19210 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
19211 else
19212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19213 for as_dir in $PATH
19215 IFS=$as_save_IFS
19216 test -z "$as_dir" && as_dir=.
19217 for ac_exec_ext in '' $ac_executable_extensions; do
19218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19219 ac_cv_prog_ac_ct_WINDRES="windres"
19220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19221 break 2
19223 done
19224 done
19225 IFS=$as_save_IFS
19229 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
19230 if test -n "$ac_ct_WINDRES"; then
19231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
19232 $as_echo "$ac_ct_WINDRES" >&6; }
19233 else
19234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19235 $as_echo "no" >&6; }
19238 if test "x$ac_ct_WINDRES" = x; then
19239 WINDRES=""
19240 else
19241 case $cross_compiling:$ac_tool_warned in
19242 yes:)
19243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19245 ac_tool_warned=yes ;;
19246 esac
19247 WINDRES=$ac_ct_WINDRES
19249 else
19250 WINDRES="$ac_cv_prog_WINDRES"
19255 *darwin*)
19256 have_darwin="yes"
19257 CFLAGS="-DMACOSX $CFLAGS"
19260 esac
19262 # Check whether --enable-lightweight was given.
19263 if test "${enable_lightweight+set}" = set; then :
19264 enableval=$enable_lightweight; enable_lightweight=${enableval}
19265 else
19266 enable_lightweight="no"
19269 if test "x$enable_lightweight" = "xyes" ; then
19271 $as_echo "#define TR_LIGHTWEIGHT 1" >>confdefs.h
19275 # Check whether --enable-cli was given.
19276 if test "${enable_cli+set}" = set; then :
19277 enableval=$enable_cli; build_cli=${enableval}
19278 else
19279 build_cli="yes"
19282 if test "x$build_cli" = "xyes"; then
19283 BUILD_CLI_TRUE=
19284 BUILD_CLI_FALSE='#'
19285 else
19286 BUILD_CLI_TRUE='#'
19287 BUILD_CLI_FALSE=
19291 # Check whether --enable-mac was given.
19292 if test "${enable_mac+set}" = set; then :
19293 enableval=$enable_mac; build_mac=${enableval}
19294 else
19295 build_mac=${have_darwin}
19298 if test "x$build_mac" = "xyes"; then
19299 BUILD_MAC_TRUE=
19300 BUILD_MAC_FALSE='#'
19301 else
19302 BUILD_MAC_TRUE='#'
19303 BUILD_MAC_FALSE=
19307 # Check whether --enable-daemon was given.
19308 if test "${enable_daemon+set}" = set; then :
19309 enableval=$enable_daemon; build_daemon=${enableval}
19310 else
19311 build_daemon="yes"
19314 if test "x$build_daemon" = "xyes"; then
19315 BUILD_DAEMON_TRUE=
19316 BUILD_DAEMON_FALSE='#'
19317 else
19318 BUILD_DAEMON_TRUE='#'
19319 BUILD_DAEMON_FALSE=
19324 if test "x$build_mac" = "xyes" ; then
19325 # Make sure the proper Mac SDK is installed
19326 if test ! -d /Developer/SDKs/MacOSX10.5.sdk; then
19327 cat << EOF
19328 You need to install the Mac OS X 10.5 SDK in order to build Transmission
19329 with --enable-mac:
19330 Get your Xcode CD or package
19331 Restart the install
19332 When it gets to "Installation Type", select "Customize"
19333 Select "Mac OS X 10.5 SDK" under "Cross Development"
19334 Finish the install.
19336 exit 1
19339 if test "x$have_darwin" = "xyes"; then
19340 $as_echo "#define HAVE_DARWIN 1" >>confdefs.h
19343 if test "x$have_msw" = "xyes"; then
19344 $as_echo "#define HAVE_MSW 1" >>confdefs.h
19347 if test "x$have_msw" = "xyes"; then
19348 WIN32_TRUE=
19349 WIN32_FALSE='#'
19350 else
19351 WIN32_TRUE='#'
19352 WIN32_FALSE=
19357 ac_config_files="$ac_config_files Makefile transmission-gtk.spec cli/Makefile daemon/Makefile extras/Makefile libtransmission/Makefile utils/Makefile third-party/Makefile third-party/miniupnp/Makefile third-party/libnatpmp/Makefile third-party/libutp/Makefile third-party/dht/Makefile macosx/Makefile gtk/Makefile gtk/icons/Makefile web/Makefile web/images/Makefile web/images/buttons/Makefile web/images/graphics/Makefile web/images/progress/Makefile web/javascript/Makefile web/javascript/jquery/Makefile web/stylesheets/Makefile po/Makefile.in"
19360 cat >confcache <<\_ACEOF
19361 # This file is a shell script that caches the results of configure
19362 # tests run on this system so they can be shared between configure
19363 # scripts and configure runs, see configure's option --config-cache.
19364 # It is not useful on other systems. If it contains results you don't
19365 # want to keep, you may remove or edit it.
19367 # config.status only pays attention to the cache file if you give it
19368 # the --recheck option to rerun configure.
19370 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19371 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19372 # following values.
19374 _ACEOF
19376 # The following way of writing the cache mishandles newlines in values,
19377 # but we know of no workaround that is simple, portable, and efficient.
19378 # So, we kill variables containing newlines.
19379 # Ultrix sh set writes to stderr and can't be redirected directly,
19380 # and sets the high bit in the cache file unless we assign to the vars.
19382 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19383 eval ac_val=\$$ac_var
19384 case $ac_val in #(
19385 *${as_nl}*)
19386 case $ac_var in #(
19387 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19388 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19389 esac
19390 case $ac_var in #(
19391 _ | IFS | as_nl) ;; #(
19392 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19393 *) { eval $ac_var=; unset $ac_var;} ;;
19394 esac ;;
19395 esac
19396 done
19398 (set) 2>&1 |
19399 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19400 *${as_nl}ac_space=\ *)
19401 # `set' does not quote correctly, so add quotes: double-quote
19402 # substitution turns \\\\ into \\, and sed turns \\ into \.
19403 sed -n \
19404 "s/'/'\\\\''/g;
19405 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19406 ;; #(
19408 # `set' quotes correctly as required by POSIX, so do not add quotes.
19409 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19411 esac |
19412 sort
19414 sed '
19415 /^ac_cv_env_/b end
19416 t clear
19417 :clear
19418 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19419 t end
19420 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19421 :end' >>confcache
19422 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19423 if test -w "$cache_file"; then
19424 test "x$cache_file" != "x/dev/null" &&
19425 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19426 $as_echo "$as_me: updating cache $cache_file" >&6;}
19427 cat confcache >$cache_file
19428 else
19429 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19430 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19433 rm -f confcache
19435 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19436 # Let make expand exec_prefix.
19437 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19439 # Transform confdefs.h into DEFS.
19440 # Protect against shell expansion while executing Makefile rules.
19441 # Protect against Makefile macro expansion.
19443 # If the first sed substitution is executed (which looks for macros that
19444 # take arguments), then branch to the quote section. Otherwise,
19445 # look for a macro that doesn't take arguments.
19446 ac_script='
19447 :mline
19448 /\\$/{
19450 s,\\\n,,
19451 b mline
19453 t clear
19454 :clear
19455 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
19456 t quote
19457 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
19458 t quote
19459 b any
19460 :quote
19461 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
19462 s/\[/\\&/g
19463 s/\]/\\&/g
19464 s/\$/$$/g
19466 :any
19469 s/^\n//
19470 s/\n/ /g
19474 DEFS=`sed -n "$ac_script" confdefs.h`
19477 ac_libobjs=
19478 ac_ltlibobjs=
19480 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19481 # 1. Remove the extension, and $U if already installed.
19482 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19483 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19484 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19485 # will be set to the directory where LIBOBJS objects are built.
19486 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19487 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19488 done
19489 LIBOBJS=$ac_libobjs
19491 LTLIBOBJS=$ac_ltlibobjs
19494 if test -n "$EXEEXT"; then
19495 am__EXEEXT_TRUE=
19496 am__EXEEXT_FALSE='#'
19497 else
19498 am__EXEEXT_TRUE='#'
19499 am__EXEEXT_FALSE=
19502 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19503 as_fn_error $? "conditional \"AMDEP\" was never defined.
19504 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19506 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19507 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19508 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19510 if test -z "${TR_UNSTABLE_TRUE}" && test -z "${TR_UNSTABLE_FALSE}"; then
19511 as_fn_error $? "conditional \"TR_UNSTABLE\" was never defined.
19512 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19514 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19515 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19516 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19518 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19519 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19520 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19522 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19523 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19524 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19526 if test -z "${BUILD_UTP_TRUE}" && test -z "${BUILD_UTP_FALSE}"; then
19527 as_fn_error $? "conditional \"BUILD_UTP\" was never defined.
19528 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19530 if test -z "${BUILD_GTK_TRUE}" && test -z "${BUILD_GTK_FALSE}"; then
19531 as_fn_error $? "conditional \"BUILD_GTK\" was never defined.
19532 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19535 ac_config_commands="$ac_config_commands po/stamp-it"
19538 if test -z "${BUILD_CLI_TRUE}" && test -z "${BUILD_CLI_FALSE}"; then
19539 as_fn_error $? "conditional \"BUILD_CLI\" was never defined.
19540 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19542 if test -z "${BUILD_MAC_TRUE}" && test -z "${BUILD_MAC_FALSE}"; then
19543 as_fn_error $? "conditional \"BUILD_MAC\" was never defined.
19544 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19546 if test -z "${BUILD_DAEMON_TRUE}" && test -z "${BUILD_DAEMON_FALSE}"; then
19547 as_fn_error $? "conditional \"BUILD_DAEMON\" was never defined.
19548 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19550 if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
19551 as_fn_error $? "conditional \"WIN32\" was never defined.
19552 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19555 : ${CONFIG_STATUS=./config.status}
19556 ac_write_fail=0
19557 ac_clean_files_save=$ac_clean_files
19558 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19560 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19561 as_write_fail=0
19562 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19563 #! $SHELL
19564 # Generated by $as_me.
19565 # Run this file to recreate the current configuration.
19566 # Compiler output produced by configure, useful for debugging
19567 # configure, is in config.log if it exists.
19569 debug=false
19570 ac_cs_recheck=false
19571 ac_cs_silent=false
19573 SHELL=\${CONFIG_SHELL-$SHELL}
19574 export SHELL
19575 _ASEOF
19576 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19577 ## -------------------- ##
19578 ## M4sh Initialization. ##
19579 ## -------------------- ##
19581 # Be more Bourne compatible
19582 DUALCASE=1; export DUALCASE # for MKS sh
19583 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19584 emulate sh
19585 NULLCMD=:
19586 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19587 # is contrary to our usage. Disable this feature.
19588 alias -g '${1+"$@"}'='"$@"'
19589 setopt NO_GLOB_SUBST
19590 else
19591 case `(set -o) 2>/dev/null` in #(
19592 *posix*) :
19593 set -o posix ;; #(
19594 *) :
19596 esac
19600 as_nl='
19602 export as_nl
19603 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19604 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19605 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19606 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19607 # Prefer a ksh shell builtin over an external printf program on Solaris,
19608 # but without wasting forks for bash or zsh.
19609 if test -z "$BASH_VERSION$ZSH_VERSION" \
19610 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19611 as_echo='print -r --'
19612 as_echo_n='print -rn --'
19613 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19614 as_echo='printf %s\n'
19615 as_echo_n='printf %s'
19616 else
19617 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19618 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19619 as_echo_n='/usr/ucb/echo -n'
19620 else
19621 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19622 as_echo_n_body='eval
19623 arg=$1;
19624 case $arg in #(
19625 *"$as_nl"*)
19626 expr "X$arg" : "X\\(.*\\)$as_nl";
19627 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19628 esac;
19629 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19631 export as_echo_n_body
19632 as_echo_n='sh -c $as_echo_n_body as_echo'
19634 export as_echo_body
19635 as_echo='sh -c $as_echo_body as_echo'
19638 # The user is always right.
19639 if test "${PATH_SEPARATOR+set}" != set; then
19640 PATH_SEPARATOR=:
19641 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19642 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19643 PATH_SEPARATOR=';'
19648 # IFS
19649 # We need space, tab and new line, in precisely that order. Quoting is
19650 # there to prevent editors from complaining about space-tab.
19651 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19652 # splitting by setting IFS to empty value.)
19653 IFS=" "" $as_nl"
19655 # Find who we are. Look in the path if we contain no directory separator.
19656 case $0 in #((
19657 *[\\/]* ) as_myself=$0 ;;
19658 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19659 for as_dir in $PATH
19661 IFS=$as_save_IFS
19662 test -z "$as_dir" && as_dir=.
19663 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19664 done
19665 IFS=$as_save_IFS
19668 esac
19669 # We did not find ourselves, most probably we were run as `sh COMMAND'
19670 # in which case we are not to be found in the path.
19671 if test "x$as_myself" = x; then
19672 as_myself=$0
19674 if test ! -f "$as_myself"; then
19675 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19676 exit 1
19679 # Unset variables that we do not need and which cause bugs (e.g. in
19680 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19681 # suppresses any "Segmentation fault" message there. '((' could
19682 # trigger a bug in pdksh 5.2.14.
19683 for as_var in BASH_ENV ENV MAIL MAILPATH
19684 do eval test x\${$as_var+set} = xset \
19685 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19686 done
19687 PS1='$ '
19688 PS2='> '
19689 PS4='+ '
19691 # NLS nuisances.
19692 LC_ALL=C
19693 export LC_ALL
19694 LANGUAGE=C
19695 export LANGUAGE
19697 # CDPATH.
19698 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19701 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19702 # ----------------------------------------
19703 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19704 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19705 # script with STATUS, using 1 if that was 0.
19706 as_fn_error ()
19708 as_status=$1; test $as_status -eq 0 && as_status=1
19709 if test "$4"; then
19710 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19711 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19713 $as_echo "$as_me: error: $2" >&2
19714 as_fn_exit $as_status
19715 } # as_fn_error
19718 # as_fn_set_status STATUS
19719 # -----------------------
19720 # Set $? to STATUS, without forking.
19721 as_fn_set_status ()
19723 return $1
19724 } # as_fn_set_status
19726 # as_fn_exit STATUS
19727 # -----------------
19728 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19729 as_fn_exit ()
19731 set +e
19732 as_fn_set_status $1
19733 exit $1
19734 } # as_fn_exit
19736 # as_fn_unset VAR
19737 # ---------------
19738 # Portably unset VAR.
19739 as_fn_unset ()
19741 { eval $1=; unset $1;}
19743 as_unset=as_fn_unset
19744 # as_fn_append VAR VALUE
19745 # ----------------------
19746 # Append the text in VALUE to the end of the definition contained in VAR. Take
19747 # advantage of any shell optimizations that allow amortized linear growth over
19748 # repeated appends, instead of the typical quadratic growth present in naive
19749 # implementations.
19750 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19751 eval 'as_fn_append ()
19753 eval $1+=\$2
19755 else
19756 as_fn_append ()
19758 eval $1=\$$1\$2
19760 fi # as_fn_append
19762 # as_fn_arith ARG...
19763 # ------------------
19764 # Perform arithmetic evaluation on the ARGs, and store the result in the
19765 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19766 # must be portable across $(()) and expr.
19767 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19768 eval 'as_fn_arith ()
19770 as_val=$(( $* ))
19772 else
19773 as_fn_arith ()
19775 as_val=`expr "$@" || test $? -eq 1`
19777 fi # as_fn_arith
19780 if expr a : '\(a\)' >/dev/null 2>&1 &&
19781 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19782 as_expr=expr
19783 else
19784 as_expr=false
19787 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19788 as_basename=basename
19789 else
19790 as_basename=false
19793 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19794 as_dirname=dirname
19795 else
19796 as_dirname=false
19799 as_me=`$as_basename -- "$0" ||
19800 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19801 X"$0" : 'X\(//\)$' \| \
19802 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19803 $as_echo X/"$0" |
19804 sed '/^.*\/\([^/][^/]*\)\/*$/{
19805 s//\1/
19808 /^X\/\(\/\/\)$/{
19809 s//\1/
19812 /^X\/\(\/\).*/{
19813 s//\1/
19816 s/.*/./; q'`
19818 # Avoid depending upon Character Ranges.
19819 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19820 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19821 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19822 as_cr_digits='0123456789'
19823 as_cr_alnum=$as_cr_Letters$as_cr_digits
19825 ECHO_C= ECHO_N= ECHO_T=
19826 case `echo -n x` in #(((((
19827 -n*)
19828 case `echo 'xy\c'` in
19829 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19830 xy) ECHO_C='\c';;
19831 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19832 ECHO_T=' ';;
19833 esac;;
19835 ECHO_N='-n';;
19836 esac
19838 rm -f conf$$ conf$$.exe conf$$.file
19839 if test -d conf$$.dir; then
19840 rm -f conf$$.dir/conf$$.file
19841 else
19842 rm -f conf$$.dir
19843 mkdir conf$$.dir 2>/dev/null
19845 if (echo >conf$$.file) 2>/dev/null; then
19846 if ln -s conf$$.file conf$$ 2>/dev/null; then
19847 as_ln_s='ln -s'
19848 # ... but there are two gotchas:
19849 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19850 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19851 # In both cases, we have to default to `cp -p'.
19852 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19853 as_ln_s='cp -p'
19854 elif ln conf$$.file conf$$ 2>/dev/null; then
19855 as_ln_s=ln
19856 else
19857 as_ln_s='cp -p'
19859 else
19860 as_ln_s='cp -p'
19862 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19863 rmdir conf$$.dir 2>/dev/null
19866 # as_fn_mkdir_p
19867 # -------------
19868 # Create "$as_dir" as a directory, including parents if necessary.
19869 as_fn_mkdir_p ()
19872 case $as_dir in #(
19873 -*) as_dir=./$as_dir;;
19874 esac
19875 test -d "$as_dir" || eval $as_mkdir_p || {
19876 as_dirs=
19877 while :; do
19878 case $as_dir in #(
19879 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19880 *) as_qdir=$as_dir;;
19881 esac
19882 as_dirs="'$as_qdir' $as_dirs"
19883 as_dir=`$as_dirname -- "$as_dir" ||
19884 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19885 X"$as_dir" : 'X\(//\)[^/]' \| \
19886 X"$as_dir" : 'X\(//\)$' \| \
19887 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19888 $as_echo X"$as_dir" |
19889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19890 s//\1/
19893 /^X\(\/\/\)[^/].*/{
19894 s//\1/
19897 /^X\(\/\/\)$/{
19898 s//\1/
19901 /^X\(\/\).*/{
19902 s//\1/
19905 s/.*/./; q'`
19906 test -d "$as_dir" && break
19907 done
19908 test -z "$as_dirs" || eval "mkdir $as_dirs"
19909 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19912 } # as_fn_mkdir_p
19913 if mkdir -p . 2>/dev/null; then
19914 as_mkdir_p='mkdir -p "$as_dir"'
19915 else
19916 test -d ./-p && rmdir ./-p
19917 as_mkdir_p=false
19920 if test -x / >/dev/null 2>&1; then
19921 as_test_x='test -x'
19922 else
19923 if ls -dL / >/dev/null 2>&1; then
19924 as_ls_L_option=L
19925 else
19926 as_ls_L_option=
19928 as_test_x='
19929 eval sh -c '\''
19930 if test -d "$1"; then
19931 test -d "$1/.";
19932 else
19933 case $1 in #(
19934 -*)set "./$1";;
19935 esac;
19936 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19937 ???[sx]*):;;*)false;;esac;fi
19938 '\'' sh
19941 as_executable_p=$as_test_x
19943 # Sed expression to map a string onto a valid CPP name.
19944 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19946 # Sed expression to map a string onto a valid variable name.
19947 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19950 exec 6>&1
19951 ## ----------------------------------- ##
19952 ## Main body of $CONFIG_STATUS script. ##
19953 ## ----------------------------------- ##
19954 _ASEOF
19955 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19958 # Save the log message, to keep $0 and so on meaningful, and to
19959 # report actual input values of CONFIG_FILES etc. instead of their
19960 # values after options handling.
19961 ac_log="
19962 This file was extended by transmission $as_me 2.33, which was
19963 generated by GNU Autoconf 2.67. Invocation command line was
19965 CONFIG_FILES = $CONFIG_FILES
19966 CONFIG_HEADERS = $CONFIG_HEADERS
19967 CONFIG_LINKS = $CONFIG_LINKS
19968 CONFIG_COMMANDS = $CONFIG_COMMANDS
19969 $ $0 $@
19971 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19974 _ACEOF
19976 case $ac_config_files in *"
19977 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19978 esac
19982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19983 # Files that config.status was made for.
19984 config_files="$ac_config_files"
19985 config_commands="$ac_config_commands"
19987 _ACEOF
19989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19990 ac_cs_usage="\
19991 \`$as_me' instantiates files and other configuration actions
19992 from templates according to the current configuration. Unless the files
19993 and actions are specified as TAGs, all are instantiated by default.
19995 Usage: $0 [OPTION]... [TAG]...
19997 -h, --help print this help, then exit
19998 -V, --version print version number and configuration settings, then exit
19999 --config print configuration, then exit
20000 -q, --quiet, --silent
20001 do not print progress messages
20002 -d, --debug don't remove temporary files
20003 --recheck update $as_me by reconfiguring in the same conditions
20004 --file=FILE[:TEMPLATE]
20005 instantiate the configuration file FILE
20007 Configuration files:
20008 $config_files
20010 Configuration commands:
20011 $config_commands
20013 Report bugs to <http://trac.transmissionbt.com/newticket>."
20015 _ACEOF
20016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20017 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20018 ac_cs_version="\\
20019 transmission config.status 2.33
20020 configured by $0, generated by GNU Autoconf 2.67,
20021 with options \\"\$ac_cs_config\\"
20023 Copyright (C) 2010 Free Software Foundation, Inc.
20024 This config.status script is free software; the Free Software Foundation
20025 gives unlimited permission to copy, distribute and modify it."
20027 ac_pwd='$ac_pwd'
20028 srcdir='$srcdir'
20029 INSTALL='$INSTALL'
20030 MKDIR_P='$MKDIR_P'
20031 AWK='$AWK'
20032 test -n "\$AWK" || AWK=awk
20033 _ACEOF
20035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20036 # The default lists apply if the user does not specify any file.
20037 ac_need_defaults=:
20038 while test $# != 0
20040 case $1 in
20041 --*=?*)
20042 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20043 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20044 ac_shift=:
20046 --*=)
20047 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20048 ac_optarg=
20049 ac_shift=:
20052 ac_option=$1
20053 ac_optarg=$2
20054 ac_shift=shift
20056 esac
20058 case $ac_option in
20059 # Handling of the options.
20060 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20061 ac_cs_recheck=: ;;
20062 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20063 $as_echo "$ac_cs_version"; exit ;;
20064 --config | --confi | --conf | --con | --co | --c )
20065 $as_echo "$ac_cs_config"; exit ;;
20066 --debug | --debu | --deb | --de | --d | -d )
20067 debug=: ;;
20068 --file | --fil | --fi | --f )
20069 $ac_shift
20070 case $ac_optarg in
20071 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20072 '') as_fn_error $? "missing file argument" ;;
20073 esac
20074 as_fn_append CONFIG_FILES " '$ac_optarg'"
20075 ac_need_defaults=false;;
20076 --he | --h | --help | --hel | -h )
20077 $as_echo "$ac_cs_usage"; exit ;;
20078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20079 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20080 ac_cs_silent=: ;;
20082 # This is an error.
20083 -*) as_fn_error $? "unrecognized option: \`$1'
20084 Try \`$0 --help' for more information." ;;
20086 *) as_fn_append ac_config_targets " $1"
20087 ac_need_defaults=false ;;
20089 esac
20090 shift
20091 done
20093 ac_configure_extra_args=
20095 if $ac_cs_silent; then
20096 exec 6>/dev/null
20097 ac_configure_extra_args="$ac_configure_extra_args --silent"
20100 _ACEOF
20101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20102 if \$ac_cs_recheck; then
20103 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20104 shift
20105 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20106 CONFIG_SHELL='$SHELL'
20107 export CONFIG_SHELL
20108 exec "\$@"
20111 _ACEOF
20112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20113 exec 5>>config.log
20115 echo
20116 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20117 ## Running $as_me. ##
20118 _ASBOX
20119 $as_echo "$ac_log"
20120 } >&5
20122 _ACEOF
20123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20125 # INIT-COMMANDS
20127 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20130 # The HP-UX ksh and POSIX shell print the target directory to stdout
20131 # if CDPATH is set.
20132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20134 sed_quote_subst='$sed_quote_subst'
20135 double_quote_subst='$double_quote_subst'
20136 delay_variable_subst='$delay_variable_subst'
20137 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20138 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20139 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20140 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20141 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20142 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20143 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20144 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20145 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20146 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20147 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20148 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20149 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20150 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20151 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20152 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20153 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20154 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20155 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20156 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20157 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20158 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20159 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20160 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20161 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20162 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20163 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20164 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20165 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
20166 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20167 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20168 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20169 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20170 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20171 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20172 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20173 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20174 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20175 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20176 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20177 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20178 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20179 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20180 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20181 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"`'
20182 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"`'
20183 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20184 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20185 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20186 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20187 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20188 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20189 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20190 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20191 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20192 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20193 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
20194 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
20195 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
20196 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
20197 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
20198 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20199 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20200 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20201 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20202 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20203 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20204 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20205 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20206 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20207 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20208 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20209 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20210 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20211 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20212 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20213 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20214 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20215 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20216 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20217 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20218 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20219 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20220 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20221 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20222 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20223 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20224 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20225 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20226 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20227 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20228 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20229 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20230 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20231 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20232 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20233 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20234 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20235 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20236 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20237 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20238 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20239 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20240 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20241 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20242 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20243 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20244 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20245 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20246 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20247 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20248 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20249 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20250 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20251 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20252 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20253 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20254 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20255 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
20256 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20257 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20258 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
20259 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
20260 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
20261 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20262 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20263 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20264 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20265 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20266 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20267 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20268 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20269 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20270 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20271 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20272 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20273 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20274 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20275 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20276 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20277 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20278 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20279 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20280 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20281 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20282 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20283 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20284 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20285 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20286 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20287 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20288 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20289 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20290 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20291 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20292 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20293 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20294 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20295 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20296 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20297 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20298 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20299 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20300 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20301 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20302 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20303 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20304 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20305 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20306 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20307 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20309 LTCC='$LTCC'
20310 LTCFLAGS='$LTCFLAGS'
20311 compiler='$compiler_DEFAULT'
20313 # Quote evaled strings.
20314 for var in SED \
20315 GREP \
20316 EGREP \
20317 FGREP \
20318 LD \
20319 NM \
20320 LN_S \
20321 lt_SP2NL \
20322 lt_NL2SP \
20323 reload_flag \
20324 OBJDUMP \
20325 deplibs_check_method \
20326 file_magic_cmd \
20327 AR \
20328 AR_FLAGS \
20329 STRIP \
20330 RANLIB \
20331 CC \
20332 CFLAGS \
20333 compiler \
20334 lt_cv_sys_global_symbol_pipe \
20335 lt_cv_sys_global_symbol_to_cdecl \
20336 lt_cv_sys_global_symbol_to_c_name_address \
20337 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20338 SHELL \
20339 ECHO \
20340 lt_prog_compiler_no_builtin_flag \
20341 lt_prog_compiler_wl \
20342 lt_prog_compiler_pic \
20343 lt_prog_compiler_static \
20344 lt_cv_prog_compiler_c_o \
20345 need_locks \
20346 DSYMUTIL \
20347 NMEDIT \
20348 LIPO \
20349 OTOOL \
20350 OTOOL64 \
20351 shrext_cmds \
20352 export_dynamic_flag_spec \
20353 whole_archive_flag_spec \
20354 compiler_needs_object \
20355 with_gnu_ld \
20356 allow_undefined_flag \
20357 no_undefined_flag \
20358 hardcode_libdir_flag_spec \
20359 hardcode_libdir_flag_spec_ld \
20360 hardcode_libdir_separator \
20361 fix_srcfile_path \
20362 exclude_expsyms \
20363 include_expsyms \
20364 file_list_spec \
20365 variables_saved_for_relink \
20366 libname_spec \
20367 library_names_spec \
20368 soname_spec \
20369 finish_eval \
20370 old_striplib \
20371 striplib \
20372 compiler_lib_search_dirs \
20373 predep_objects \
20374 postdep_objects \
20375 predeps \
20376 postdeps \
20377 compiler_lib_search_path \
20378 LD_CXX \
20379 compiler_CXX \
20380 lt_prog_compiler_no_builtin_flag_CXX \
20381 lt_prog_compiler_wl_CXX \
20382 lt_prog_compiler_pic_CXX \
20383 lt_prog_compiler_static_CXX \
20384 lt_cv_prog_compiler_c_o_CXX \
20385 export_dynamic_flag_spec_CXX \
20386 whole_archive_flag_spec_CXX \
20387 compiler_needs_object_CXX \
20388 with_gnu_ld_CXX \
20389 allow_undefined_flag_CXX \
20390 no_undefined_flag_CXX \
20391 hardcode_libdir_flag_spec_CXX \
20392 hardcode_libdir_flag_spec_ld_CXX \
20393 hardcode_libdir_separator_CXX \
20394 fix_srcfile_path_CXX \
20395 exclude_expsyms_CXX \
20396 include_expsyms_CXX \
20397 file_list_spec_CXX \
20398 compiler_lib_search_dirs_CXX \
20399 predep_objects_CXX \
20400 postdep_objects_CXX \
20401 predeps_CXX \
20402 postdeps_CXX \
20403 compiler_lib_search_path_CXX; do
20404 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20405 *[\\\\\\\`\\"\\\$]*)
20406 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20409 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20411 esac
20412 done
20414 # Double-quote double-evaled strings.
20415 for var in reload_cmds \
20416 old_postinstall_cmds \
20417 old_postuninstall_cmds \
20418 old_archive_cmds \
20419 extract_expsyms_cmds \
20420 old_archive_from_new_cmds \
20421 old_archive_from_expsyms_cmds \
20422 archive_cmds \
20423 archive_expsym_cmds \
20424 module_cmds \
20425 module_expsym_cmds \
20426 export_symbols_cmds \
20427 prelink_cmds \
20428 postinstall_cmds \
20429 postuninstall_cmds \
20430 finish_cmds \
20431 sys_lib_search_path_spec \
20432 sys_lib_dlsearch_path_spec \
20433 old_archive_cmds_CXX \
20434 old_archive_from_new_cmds_CXX \
20435 old_archive_from_expsyms_cmds_CXX \
20436 archive_cmds_CXX \
20437 archive_expsym_cmds_CXX \
20438 module_cmds_CXX \
20439 module_expsym_cmds_CXX \
20440 export_symbols_cmds_CXX \
20441 prelink_cmds_CXX; do
20442 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20443 *[\\\\\\\`\\"\\\$]*)
20444 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20447 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20449 esac
20450 done
20452 # Fix-up fallback echo if it was mangled by the above quoting rules.
20453 case \$lt_ECHO in
20454 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20456 esac
20458 ac_aux_dir='$ac_aux_dir'
20459 xsi_shell='$xsi_shell'
20460 lt_shell_append='$lt_shell_append'
20462 # See if we are running on zsh, and set the options which allow our
20463 # commands through without removal of \ escapes INIT.
20464 if test -n "\${ZSH_VERSION+set}" ; then
20465 setopt NO_GLOB_SUBST
20469 PACKAGE='$PACKAGE'
20470 VERSION='$VERSION'
20471 TIMESTAMP='$TIMESTAMP'
20472 RM='$RM'
20473 ofile='$ofile'
20481 _ACEOF
20483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20485 # Handling of arguments.
20486 for ac_config_target in $ac_config_targets
20488 case $ac_config_target in
20489 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20490 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20491 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20492 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20493 "transmission-gtk.spec") CONFIG_FILES="$CONFIG_FILES transmission-gtk.spec" ;;
20494 "cli/Makefile") CONFIG_FILES="$CONFIG_FILES cli/Makefile" ;;
20495 "daemon/Makefile") CONFIG_FILES="$CONFIG_FILES daemon/Makefile" ;;
20496 "extras/Makefile") CONFIG_FILES="$CONFIG_FILES extras/Makefile" ;;
20497 "libtransmission/Makefile") CONFIG_FILES="$CONFIG_FILES libtransmission/Makefile" ;;
20498 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
20499 "third-party/Makefile") CONFIG_FILES="$CONFIG_FILES third-party/Makefile" ;;
20500 "third-party/miniupnp/Makefile") CONFIG_FILES="$CONFIG_FILES third-party/miniupnp/Makefile" ;;
20501 "third-party/libnatpmp/Makefile") CONFIG_FILES="$CONFIG_FILES third-party/libnatpmp/Makefile" ;;
20502 "third-party/libutp/Makefile") CONFIG_FILES="$CONFIG_FILES third-party/libutp/Makefile" ;;
20503 "third-party/dht/Makefile") CONFIG_FILES="$CONFIG_FILES third-party/dht/Makefile" ;;
20504 "macosx/Makefile") CONFIG_FILES="$CONFIG_FILES macosx/Makefile" ;;
20505 "gtk/Makefile") CONFIG_FILES="$CONFIG_FILES gtk/Makefile" ;;
20506 "gtk/icons/Makefile") CONFIG_FILES="$CONFIG_FILES gtk/icons/Makefile" ;;
20507 "web/Makefile") CONFIG_FILES="$CONFIG_FILES web/Makefile" ;;
20508 "web/images/Makefile") CONFIG_FILES="$CONFIG_FILES web/images/Makefile" ;;
20509 "web/images/buttons/Makefile") CONFIG_FILES="$CONFIG_FILES web/images/buttons/Makefile" ;;
20510 "web/images/graphics/Makefile") CONFIG_FILES="$CONFIG_FILES web/images/graphics/Makefile" ;;
20511 "web/images/progress/Makefile") CONFIG_FILES="$CONFIG_FILES web/images/progress/Makefile" ;;
20512 "web/javascript/Makefile") CONFIG_FILES="$CONFIG_FILES web/javascript/Makefile" ;;
20513 "web/javascript/jquery/Makefile") CONFIG_FILES="$CONFIG_FILES web/javascript/jquery/Makefile" ;;
20514 "web/stylesheets/Makefile") CONFIG_FILES="$CONFIG_FILES web/stylesheets/Makefile" ;;
20515 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20516 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
20518 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
20519 esac
20520 done
20523 # If the user did not use the arguments to specify the items to instantiate,
20524 # then the envvar interface is used. Set only those that are not.
20525 # We use the long form for the default assignment because of an extremely
20526 # bizarre bug on SunOS 4.1.3.
20527 if $ac_need_defaults; then
20528 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20529 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20532 # Have a temporary directory for convenience. Make it in the build tree
20533 # simply because there is no reason against having it here, and in addition,
20534 # creating and moving files from /tmp can sometimes cause problems.
20535 # Hook for its removal unless debugging.
20536 # Note that there is a small window in which the directory will not be cleaned:
20537 # after its creation but before its name has been assigned to `$tmp'.
20538 $debug ||
20540 tmp=
20541 trap 'exit_status=$?
20542 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20544 trap 'as_fn_exit 1' 1 2 13 15
20546 # Create a (secure) tmp directory for tmp files.
20549 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20550 test -n "$tmp" && test -d "$tmp"
20551 } ||
20553 tmp=./conf$$-$RANDOM
20554 (umask 077 && mkdir "$tmp")
20555 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20557 # Set up the scripts for CONFIG_FILES section.
20558 # No need to generate them if there are no CONFIG_FILES.
20559 # This happens for instance with `./config.status config.h'.
20560 if test -n "$CONFIG_FILES"; then
20563 ac_cr=`echo X | tr X '\015'`
20564 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20565 # But we know of no other shell where ac_cr would be empty at this
20566 # point, so we can use a bashism as a fallback.
20567 if test "x$ac_cr" = x; then
20568 eval ac_cr=\$\'\\r\'
20570 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20571 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20572 ac_cs_awk_cr='\\r'
20573 else
20574 ac_cs_awk_cr=$ac_cr
20577 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20578 _ACEOF
20582 echo "cat >conf$$subs.awk <<_ACEOF" &&
20583 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20584 echo "_ACEOF"
20585 } >conf$$subs.sh ||
20586 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20587 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20588 ac_delim='%!_!# '
20589 for ac_last_try in false false false false false :; do
20590 . ./conf$$subs.sh ||
20591 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20593 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20594 if test $ac_delim_n = $ac_delim_num; then
20595 break
20596 elif $ac_last_try; then
20597 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20598 else
20599 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20601 done
20602 rm -f conf$$subs.sh
20604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20605 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20606 _ACEOF
20607 sed -n '
20609 s/^/S["/; s/!.*/"]=/
20612 s/^[^!]*!//
20613 :repl
20614 t repl
20615 s/'"$ac_delim"'$//
20616 t delim
20619 s/\(.\{148\}\)..*/\1/
20620 t more1
20621 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20624 b repl
20625 :more1
20626 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20629 s/.\{148\}//
20630 t nl
20631 :delim
20633 s/\(.\{148\}\)..*/\1/
20634 t more2
20635 s/["\\]/\\&/g; s/^/"/; s/$/"/
20638 :more2
20639 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20642 s/.\{148\}//
20643 t delim
20644 ' <conf$$subs.awk | sed '
20645 /^[^""]/{
20647 s/\n//
20649 ' >>$CONFIG_STATUS || ac_write_fail=1
20650 rm -f conf$$subs.awk
20651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20652 _ACAWK
20653 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20654 for (key in S) S_is_set[key] = 1
20655 FS = "\a"
20659 line = $ 0
20660 nfields = split(line, field, "@")
20661 substed = 0
20662 len = length(field[1])
20663 for (i = 2; i < nfields; i++) {
20664 key = field[i]
20665 keylen = length(key)
20666 if (S_is_set[key]) {
20667 value = S[key]
20668 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20669 len += length(value) + length(field[++i])
20670 substed = 1
20671 } else
20672 len += 1 + keylen
20675 print line
20678 _ACAWK
20679 _ACEOF
20680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20681 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20682 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20683 else
20685 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20686 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20687 _ACEOF
20689 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20690 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20691 # trailing colons and then remove the whole line if VPATH becomes empty
20692 # (actually we leave an empty line to preserve line numbers).
20693 if test "x$srcdir" = x.; then
20694 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20696 s///
20697 s/^/:/
20698 s/[ ]*$/:/
20699 s/:\$(srcdir):/:/g
20700 s/:\${srcdir}:/:/g
20701 s/:@srcdir@:/:/g
20702 s/^:*//
20703 s/:*$//
20705 s/\(=[ ]*\).*/\1/
20707 s/\n//
20708 s/^[^=]*=[ ]*$//
20712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20713 fi # test -n "$CONFIG_FILES"
20716 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
20717 shift
20718 for ac_tag
20720 case $ac_tag in
20721 :[FHLC]) ac_mode=$ac_tag; continue;;
20722 esac
20723 case $ac_mode$ac_tag in
20724 :[FHL]*:*);;
20725 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
20726 :[FH]-) ac_tag=-:-;;
20727 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20728 esac
20729 ac_save_IFS=$IFS
20730 IFS=:
20731 set x $ac_tag
20732 IFS=$ac_save_IFS
20733 shift
20734 ac_file=$1
20735 shift
20737 case $ac_mode in
20738 :L) ac_source=$1;;
20739 :[FH])
20740 ac_file_inputs=
20741 for ac_f
20743 case $ac_f in
20744 -) ac_f="$tmp/stdin";;
20745 *) # Look for the file first in the build tree, then in the source tree
20746 # (if the path is not absolute). The absolute path cannot be DOS-style,
20747 # because $ac_f cannot contain `:'.
20748 test -f "$ac_f" ||
20749 case $ac_f in
20750 [\\/$]*) false;;
20751 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20752 esac ||
20753 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
20754 esac
20755 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20756 as_fn_append ac_file_inputs " '$ac_f'"
20757 done
20759 # Let's still pretend it is `configure' which instantiates (i.e., don't
20760 # use $as_me), people would be surprised to read:
20761 # /* config.h. Generated by config.status. */
20762 configure_input='Generated from '`
20763 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20764 `' by configure.'
20765 if test x"$ac_file" != x-; then
20766 configure_input="$ac_file. $configure_input"
20767 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20768 $as_echo "$as_me: creating $ac_file" >&6;}
20770 # Neutralize special characters interpreted by sed in replacement strings.
20771 case $configure_input in #(
20772 *\&* | *\|* | *\\* )
20773 ac_sed_conf_input=`$as_echo "$configure_input" |
20774 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20775 *) ac_sed_conf_input=$configure_input;;
20776 esac
20778 case $ac_tag in
20779 *:-:* | *:-) cat >"$tmp/stdin" \
20780 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20781 esac
20783 esac
20785 ac_dir=`$as_dirname -- "$ac_file" ||
20786 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20787 X"$ac_file" : 'X\(//\)[^/]' \| \
20788 X"$ac_file" : 'X\(//\)$' \| \
20789 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20790 $as_echo X"$ac_file" |
20791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20792 s//\1/
20795 /^X\(\/\/\)[^/].*/{
20796 s//\1/
20799 /^X\(\/\/\)$/{
20800 s//\1/
20803 /^X\(\/\).*/{
20804 s//\1/
20807 s/.*/./; q'`
20808 as_dir="$ac_dir"; as_fn_mkdir_p
20809 ac_builddir=.
20811 case "$ac_dir" in
20812 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20814 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20815 # A ".." for each directory in $ac_dir_suffix.
20816 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20817 case $ac_top_builddir_sub in
20818 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20819 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20820 esac ;;
20821 esac
20822 ac_abs_top_builddir=$ac_pwd
20823 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20824 # for backward compatibility:
20825 ac_top_builddir=$ac_top_build_prefix
20827 case $srcdir in
20828 .) # We are building in place.
20829 ac_srcdir=.
20830 ac_top_srcdir=$ac_top_builddir_sub
20831 ac_abs_top_srcdir=$ac_pwd ;;
20832 [\\/]* | ?:[\\/]* ) # Absolute name.
20833 ac_srcdir=$srcdir$ac_dir_suffix;
20834 ac_top_srcdir=$srcdir
20835 ac_abs_top_srcdir=$srcdir ;;
20836 *) # Relative name.
20837 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20838 ac_top_srcdir=$ac_top_build_prefix$srcdir
20839 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20840 esac
20841 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20844 case $ac_mode in
20847 # CONFIG_FILE
20850 case $INSTALL in
20851 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20852 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20853 esac
20854 ac_MKDIR_P=$MKDIR_P
20855 case $MKDIR_P in
20856 [\\/$]* | ?:[\\/]* ) ;;
20857 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20858 esac
20859 _ACEOF
20861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20862 # If the template does not know about datarootdir, expand it.
20863 # FIXME: This hack should be removed a few years after 2.60.
20864 ac_datarootdir_hack=; ac_datarootdir_seen=
20865 ac_sed_dataroot='
20866 /datarootdir/ {
20870 /@datadir@/p
20871 /@docdir@/p
20872 /@infodir@/p
20873 /@localedir@/p
20874 /@mandir@/p'
20875 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20876 *datarootdir*) ac_datarootdir_seen=yes;;
20877 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20879 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20880 _ACEOF
20881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20882 ac_datarootdir_hack='
20883 s&@datadir@&$datadir&g
20884 s&@docdir@&$docdir&g
20885 s&@infodir@&$infodir&g
20886 s&@localedir@&$localedir&g
20887 s&@mandir@&$mandir&g
20888 s&\\\${datarootdir}&$datarootdir&g' ;;
20889 esac
20890 _ACEOF
20892 # Neutralize VPATH when `$srcdir' = `.'.
20893 # Shell code in configure.ac might set extrasub.
20894 # FIXME: do we really want to maintain this feature?
20895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20896 ac_sed_extra="$ac_vpsub
20897 $extrasub
20898 _ACEOF
20899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20901 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20902 s|@configure_input@|$ac_sed_conf_input|;t t
20903 s&@top_builddir@&$ac_top_builddir_sub&;t t
20904 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20905 s&@srcdir@&$ac_srcdir&;t t
20906 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20907 s&@top_srcdir@&$ac_top_srcdir&;t t
20908 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20909 s&@builddir@&$ac_builddir&;t t
20910 s&@abs_builddir@&$ac_abs_builddir&;t t
20911 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20912 s&@INSTALL@&$ac_INSTALL&;t t
20913 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20914 $ac_datarootdir_hack
20916 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20917 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20919 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20920 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20921 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20923 which seems to be undefined. Please make sure it is defined" >&5
20924 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20925 which seems to be undefined. Please make sure it is defined" >&2;}
20927 rm -f "$tmp/stdin"
20928 case $ac_file in
20929 -) cat "$tmp/out" && rm -f "$tmp/out";;
20930 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20931 esac \
20932 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20936 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20937 $as_echo "$as_me: executing $ac_file commands" >&6;}
20939 esac
20942 case $ac_file$ac_mode in
20943 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20944 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20945 # are listed without --file. Let's play safe and only enable the eval
20946 # if we detect the quoting.
20947 case $CONFIG_FILES in
20948 *\'*) eval set x "$CONFIG_FILES" ;;
20949 *) set x $CONFIG_FILES ;;
20950 esac
20951 shift
20952 for mf
20954 # Strip MF so we end up with the name of the file.
20955 mf=`echo "$mf" | sed -e 's/:.*$//'`
20956 # Check whether this is an Automake generated Makefile or not.
20957 # We used to match only the files named `Makefile.in', but
20958 # some people rename them; so instead we look at the file content.
20959 # Grep'ing the first line is not enough: some people post-process
20960 # each Makefile.in and add a new line on top of each file to say so.
20961 # Grep'ing the whole file is not good either: AIX grep has a line
20962 # limit of 2048, but all sed's we know have understand at least 4000.
20963 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20964 dirpart=`$as_dirname -- "$mf" ||
20965 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20966 X"$mf" : 'X\(//\)[^/]' \| \
20967 X"$mf" : 'X\(//\)$' \| \
20968 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20969 $as_echo X"$mf" |
20970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20971 s//\1/
20974 /^X\(\/\/\)[^/].*/{
20975 s//\1/
20978 /^X\(\/\/\)$/{
20979 s//\1/
20982 /^X\(\/\).*/{
20983 s//\1/
20986 s/.*/./; q'`
20987 else
20988 continue
20990 # Extract the definition of DEPDIR, am__include, and am__quote
20991 # from the Makefile without running `make'.
20992 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20993 test -z "$DEPDIR" && continue
20994 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20995 test -z "am__include" && continue
20996 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20997 # When using ansi2knr, U may be empty or an underscore; expand it
20998 U=`sed -n 's/^U = //p' < "$mf"`
20999 # Find all dependency output files, they are included files with
21000 # $(DEPDIR) in their names. We invoke sed twice because it is the
21001 # simplest approach to changing $(DEPDIR) to its actual value in the
21002 # expansion.
21003 for file in `sed -n "
21004 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21005 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21006 # Make sure the directory exists.
21007 test -f "$dirpart/$file" && continue
21008 fdir=`$as_dirname -- "$file" ||
21009 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21010 X"$file" : 'X\(//\)[^/]' \| \
21011 X"$file" : 'X\(//\)$' \| \
21012 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21013 $as_echo X"$file" |
21014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21015 s//\1/
21018 /^X\(\/\/\)[^/].*/{
21019 s//\1/
21022 /^X\(\/\/\)$/{
21023 s//\1/
21026 /^X\(\/\).*/{
21027 s//\1/
21030 s/.*/./; q'`
21031 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21032 # echo "creating $dirpart/$file"
21033 echo '# dummy' > "$dirpart/$file"
21034 done
21035 done
21038 "libtool":C)
21040 # See if we are running on zsh, and set the options which allow our
21041 # commands through without removal of \ escapes.
21042 if test -n "${ZSH_VERSION+set}" ; then
21043 setopt NO_GLOB_SUBST
21046 cfgfile="${ofile}T"
21047 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21048 $RM "$cfgfile"
21050 cat <<_LT_EOF >> "$cfgfile"
21051 #! $SHELL
21053 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21054 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21055 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21056 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21058 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21059 # 2006, 2007, 2008 Free Software Foundation, Inc.
21060 # Written by Gordon Matzigkeit, 1996
21062 # This file is part of GNU Libtool.
21064 # GNU Libtool is free software; you can redistribute it and/or
21065 # modify it under the terms of the GNU General Public License as
21066 # published by the Free Software Foundation; either version 2 of
21067 # the License, or (at your option) any later version.
21069 # As a special exception to the GNU General Public License,
21070 # if you distribute this file as part of a program or library that
21071 # is built using GNU Libtool, you may include this file under the
21072 # same distribution terms that you use for the rest of that program.
21074 # GNU Libtool is distributed in the hope that it will be useful,
21075 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21076 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21077 # GNU General Public License for more details.
21079 # You should have received a copy of the GNU General Public License
21080 # along with GNU Libtool; see the file COPYING. If not, a copy
21081 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21082 # obtained by writing to the Free Software Foundation, Inc.,
21083 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21086 # The names of the tagged configurations supported by this script.
21087 available_tags="CXX "
21089 # ### BEGIN LIBTOOL CONFIG
21091 # Which release of libtool.m4 was used?
21092 macro_version=$macro_version
21093 macro_revision=$macro_revision
21095 # Whether or not to build shared libraries.
21096 build_libtool_libs=$enable_shared
21098 # Whether or not to build static libraries.
21099 build_old_libs=$enable_static
21101 # What type of objects to build.
21102 pic_mode=$pic_mode
21104 # Whether or not to optimize for fast installation.
21105 fast_install=$enable_fast_install
21107 # The host system.
21108 host_alias=$host_alias
21109 host=$host
21110 host_os=$host_os
21112 # The build system.
21113 build_alias=$build_alias
21114 build=$build
21115 build_os=$build_os
21117 # A sed program that does not truncate output.
21118 SED=$lt_SED
21120 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21121 Xsed="\$SED -e 1s/^X//"
21123 # A grep program that handles long lines.
21124 GREP=$lt_GREP
21126 # An ERE matcher.
21127 EGREP=$lt_EGREP
21129 # A literal string matcher.
21130 FGREP=$lt_FGREP
21132 # A BSD- or MS-compatible name lister.
21133 NM=$lt_NM
21135 # Whether we need soft or hard links.
21136 LN_S=$lt_LN_S
21138 # What is the maximum length of a command?
21139 max_cmd_len=$max_cmd_len
21141 # Object file suffix (normally "o").
21142 objext=$ac_objext
21144 # Executable file suffix (normally "").
21145 exeext=$exeext
21147 # whether the shell understands "unset".
21148 lt_unset=$lt_unset
21150 # turn spaces into newlines.
21151 SP2NL=$lt_lt_SP2NL
21153 # turn newlines into spaces.
21154 NL2SP=$lt_lt_NL2SP
21156 # How to create reloadable object files.
21157 reload_flag=$lt_reload_flag
21158 reload_cmds=$lt_reload_cmds
21160 # An object symbol dumper.
21161 OBJDUMP=$lt_OBJDUMP
21163 # Method to check whether dependent libraries are shared objects.
21164 deplibs_check_method=$lt_deplibs_check_method
21166 # Command to use when deplibs_check_method == "file_magic".
21167 file_magic_cmd=$lt_file_magic_cmd
21169 # The archiver.
21170 AR=$lt_AR
21171 AR_FLAGS=$lt_AR_FLAGS
21173 # A symbol stripping program.
21174 STRIP=$lt_STRIP
21176 # Commands used to install an old-style archive.
21177 RANLIB=$lt_RANLIB
21178 old_postinstall_cmds=$lt_old_postinstall_cmds
21179 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21181 # A C compiler.
21182 LTCC=$lt_CC
21184 # LTCC compiler flags.
21185 LTCFLAGS=$lt_CFLAGS
21187 # Take the output of nm and produce a listing of raw symbols and C names.
21188 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21190 # Transform the output of nm in a proper C declaration.
21191 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21193 # Transform the output of nm in a C name address pair.
21194 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21196 # Transform the output of nm in a C name address pair when lib prefix is needed.
21197 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21199 # The name of the directory that contains temporary libtool files.
21200 objdir=$objdir
21202 # Shell to use when invoking shell scripts.
21203 SHELL=$lt_SHELL
21205 # An echo program that does not interpret backslashes.
21206 ECHO=$lt_ECHO
21208 # Used to examine libraries when file_magic_cmd begins with "file".
21209 MAGIC_CMD=$MAGIC_CMD
21211 # Must we lock files when doing compilation?
21212 need_locks=$lt_need_locks
21214 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21215 DSYMUTIL=$lt_DSYMUTIL
21217 # Tool to change global to local symbols on Mac OS X.
21218 NMEDIT=$lt_NMEDIT
21220 # Tool to manipulate fat objects and archives on Mac OS X.
21221 LIPO=$lt_LIPO
21223 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21224 OTOOL=$lt_OTOOL
21226 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21227 OTOOL64=$lt_OTOOL64
21229 # Old archive suffix (normally "a").
21230 libext=$libext
21232 # Shared library suffix (normally ".so").
21233 shrext_cmds=$lt_shrext_cmds
21235 # The commands to extract the exported symbol list from a shared archive.
21236 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21238 # Variables whose values should be saved in libtool wrapper scripts and
21239 # restored at link time.
21240 variables_saved_for_relink=$lt_variables_saved_for_relink
21242 # Do we need the "lib" prefix for modules?
21243 need_lib_prefix=$need_lib_prefix
21245 # Do we need a version for libraries?
21246 need_version=$need_version
21248 # Library versioning type.
21249 version_type=$version_type
21251 # Shared library runtime path variable.
21252 runpath_var=$runpath_var
21254 # Shared library path variable.
21255 shlibpath_var=$shlibpath_var
21257 # Is shlibpath searched before the hard-coded library search path?
21258 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21260 # Format of library name prefix.
21261 libname_spec=$lt_libname_spec
21263 # List of archive names. First name is the real one, the rest are links.
21264 # The last name is the one that the linker finds with -lNAME
21265 library_names_spec=$lt_library_names_spec
21267 # The coded name of the library, if different from the real name.
21268 soname_spec=$lt_soname_spec
21270 # Command to use after installation of a shared archive.
21271 postinstall_cmds=$lt_postinstall_cmds
21273 # Command to use after uninstallation of a shared archive.
21274 postuninstall_cmds=$lt_postuninstall_cmds
21276 # Commands used to finish a libtool library installation in a directory.
21277 finish_cmds=$lt_finish_cmds
21279 # As "finish_cmds", except a single script fragment to be evaled but
21280 # not shown.
21281 finish_eval=$lt_finish_eval
21283 # Whether we should hardcode library paths into libraries.
21284 hardcode_into_libs=$hardcode_into_libs
21286 # Compile-time system search path for libraries.
21287 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21289 # Run-time system search path for libraries.
21290 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21292 # Whether dlopen is supported.
21293 dlopen_support=$enable_dlopen
21295 # Whether dlopen of programs is supported.
21296 dlopen_self=$enable_dlopen_self
21298 # Whether dlopen of statically linked programs is supported.
21299 dlopen_self_static=$enable_dlopen_self_static
21301 # Commands to strip libraries.
21302 old_striplib=$lt_old_striplib
21303 striplib=$lt_striplib
21306 # The linker used to build libraries.
21307 LD=$lt_LD
21309 # Commands used to build an old-style archive.
21310 old_archive_cmds=$lt_old_archive_cmds
21312 # A language specific compiler.
21313 CC=$lt_compiler
21315 # Is the compiler the GNU compiler?
21316 with_gcc=$GCC
21318 # Compiler flag to turn off builtin functions.
21319 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21321 # How to pass a linker flag through the compiler.
21322 wl=$lt_lt_prog_compiler_wl
21324 # Additional compiler flags for building library objects.
21325 pic_flag=$lt_lt_prog_compiler_pic
21327 # Compiler flag to prevent dynamic linking.
21328 link_static_flag=$lt_lt_prog_compiler_static
21330 # Does compiler simultaneously support -c and -o options?
21331 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21333 # Whether or not to add -lc for building shared libraries.
21334 build_libtool_need_lc=$archive_cmds_need_lc
21336 # Whether or not to disallow shared libs when runtime libs are static.
21337 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21339 # Compiler flag to allow reflexive dlopens.
21340 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21342 # Compiler flag to generate shared objects directly from archives.
21343 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21345 # Whether the compiler copes with passing no objects directly.
21346 compiler_needs_object=$lt_compiler_needs_object
21348 # Create an old-style archive from a shared archive.
21349 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21351 # Create a temporary old-style archive to link instead of a shared archive.
21352 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21354 # Commands used to build a shared archive.
21355 archive_cmds=$lt_archive_cmds
21356 archive_expsym_cmds=$lt_archive_expsym_cmds
21358 # Commands used to build a loadable module if different from building
21359 # a shared archive.
21360 module_cmds=$lt_module_cmds
21361 module_expsym_cmds=$lt_module_expsym_cmds
21363 # Whether we are building with GNU ld or not.
21364 with_gnu_ld=$lt_with_gnu_ld
21366 # Flag that allows shared libraries with undefined symbols to be built.
21367 allow_undefined_flag=$lt_allow_undefined_flag
21369 # Flag that enforces no undefined symbols.
21370 no_undefined_flag=$lt_no_undefined_flag
21372 # Flag to hardcode \$libdir into a binary during linking.
21373 # This must work even if \$libdir does not exist
21374 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21376 # If ld is used when linking, flag to hardcode \$libdir into a binary
21377 # during linking. This must work even if \$libdir does not exist.
21378 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21380 # Whether we need a single "-rpath" flag with a separated argument.
21381 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21383 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21384 # DIR into the resulting binary.
21385 hardcode_direct=$hardcode_direct
21387 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21388 # DIR into the resulting binary and the resulting library dependency is
21389 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21390 # library is relocated.
21391 hardcode_direct_absolute=$hardcode_direct_absolute
21393 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21394 # into the resulting binary.
21395 hardcode_minus_L=$hardcode_minus_L
21397 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21398 # into the resulting binary.
21399 hardcode_shlibpath_var=$hardcode_shlibpath_var
21401 # Set to "yes" if building a shared library automatically hardcodes DIR
21402 # into the library and all subsequent libraries and executables linked
21403 # against it.
21404 hardcode_automatic=$hardcode_automatic
21406 # Set to yes if linker adds runtime paths of dependent libraries
21407 # to runtime path list.
21408 inherit_rpath=$inherit_rpath
21410 # Whether libtool must link a program against all its dependency libraries.
21411 link_all_deplibs=$link_all_deplibs
21413 # Fix the shell variable \$srcfile for the compiler.
21414 fix_srcfile_path=$lt_fix_srcfile_path
21416 # Set to "yes" if exported symbols are required.
21417 always_export_symbols=$always_export_symbols
21419 # The commands to list exported symbols.
21420 export_symbols_cmds=$lt_export_symbols_cmds
21422 # Symbols that should not be listed in the preloaded symbols.
21423 exclude_expsyms=$lt_exclude_expsyms
21425 # Symbols that must always be exported.
21426 include_expsyms=$lt_include_expsyms
21428 # Commands necessary for linking programs (against libraries) with templates.
21429 prelink_cmds=$lt_prelink_cmds
21431 # Specify filename containing input files.
21432 file_list_spec=$lt_file_list_spec
21434 # How to hardcode a shared library path into an executable.
21435 hardcode_action=$hardcode_action
21437 # The directories searched by this compiler when creating a shared library.
21438 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21440 # Dependencies to place before and after the objects being linked to
21441 # create a shared library.
21442 predep_objects=$lt_predep_objects
21443 postdep_objects=$lt_postdep_objects
21444 predeps=$lt_predeps
21445 postdeps=$lt_postdeps
21447 # The library search path used internally by the compiler when linking
21448 # a shared library.
21449 compiler_lib_search_path=$lt_compiler_lib_search_path
21451 # ### END LIBTOOL CONFIG
21453 _LT_EOF
21455 case $host_os in
21456 aix3*)
21457 cat <<\_LT_EOF >> "$cfgfile"
21458 # AIX sometimes has problems with the GCC collect2 program. For some
21459 # reason, if we set the COLLECT_NAMES environment variable, the problems
21460 # vanish in a puff of smoke.
21461 if test "X${COLLECT_NAMES+set}" != Xset; then
21462 COLLECT_NAMES=
21463 export COLLECT_NAMES
21465 _LT_EOF
21467 esac
21470 ltmain="$ac_aux_dir/ltmain.sh"
21473 # We use sed instead of cat because bash on DJGPP gets confused if
21474 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21475 # text mode, it properly converts lines to CR/LF. This bash problem
21476 # is reportedly fixed, but why not run on old versions too?
21477 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21478 || (rm -f "$cfgfile"; exit 1)
21480 case $xsi_shell in
21481 yes)
21482 cat << \_LT_EOF >> "$cfgfile"
21484 # func_dirname file append nondir_replacement
21485 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21486 # otherwise set result to NONDIR_REPLACEMENT.
21487 func_dirname ()
21489 case ${1} in
21490 */*) func_dirname_result="${1%/*}${2}" ;;
21491 * ) func_dirname_result="${3}" ;;
21492 esac
21495 # func_basename file
21496 func_basename ()
21498 func_basename_result="${1##*/}"
21501 # func_dirname_and_basename file append nondir_replacement
21502 # perform func_basename and func_dirname in a single function
21503 # call:
21504 # dirname: Compute the dirname of FILE. If nonempty,
21505 # add APPEND to the result, otherwise set result
21506 # to NONDIR_REPLACEMENT.
21507 # value returned in "$func_dirname_result"
21508 # basename: Compute filename of FILE.
21509 # value retuned in "$func_basename_result"
21510 # Implementation must be kept synchronized with func_dirname
21511 # and func_basename. For efficiency, we do not delegate to
21512 # those functions but instead duplicate the functionality here.
21513 func_dirname_and_basename ()
21515 case ${1} in
21516 */*) func_dirname_result="${1%/*}${2}" ;;
21517 * ) func_dirname_result="${3}" ;;
21518 esac
21519 func_basename_result="${1##*/}"
21522 # func_stripname prefix suffix name
21523 # strip PREFIX and SUFFIX off of NAME.
21524 # PREFIX and SUFFIX must not contain globbing or regex special
21525 # characters, hashes, percent signs, but SUFFIX may contain a leading
21526 # dot (in which case that matches only a dot).
21527 func_stripname ()
21529 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21530 # positional parameters, so assign one to ordinary parameter first.
21531 func_stripname_result=${3}
21532 func_stripname_result=${func_stripname_result#"${1}"}
21533 func_stripname_result=${func_stripname_result%"${2}"}
21536 # func_opt_split
21537 func_opt_split ()
21539 func_opt_split_opt=${1%%=*}
21540 func_opt_split_arg=${1#*=}
21543 # func_lo2o object
21544 func_lo2o ()
21546 case ${1} in
21547 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21548 *) func_lo2o_result=${1} ;;
21549 esac
21552 # func_xform libobj-or-source
21553 func_xform ()
21555 func_xform_result=${1%.*}.lo
21558 # func_arith arithmetic-term...
21559 func_arith ()
21561 func_arith_result=$(( $* ))
21564 # func_len string
21565 # STRING may not start with a hyphen.
21566 func_len ()
21568 func_len_result=${#1}
21571 _LT_EOF
21573 *) # Bourne compatible functions.
21574 cat << \_LT_EOF >> "$cfgfile"
21576 # func_dirname file append nondir_replacement
21577 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21578 # otherwise set result to NONDIR_REPLACEMENT.
21579 func_dirname ()
21581 # Extract subdirectory from the argument.
21582 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
21583 if test "X$func_dirname_result" = "X${1}"; then
21584 func_dirname_result="${3}"
21585 else
21586 func_dirname_result="$func_dirname_result${2}"
21590 # func_basename file
21591 func_basename ()
21593 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
21597 # func_stripname prefix suffix name
21598 # strip PREFIX and SUFFIX off of NAME.
21599 # PREFIX and SUFFIX must not contain globbing or regex special
21600 # characters, hashes, percent signs, but SUFFIX may contain a leading
21601 # dot (in which case that matches only a dot).
21602 # func_strip_suffix prefix name
21603 func_stripname ()
21605 case ${2} in
21606 .*) func_stripname_result=`$ECHO "X${3}" \
21607 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21608 *) func_stripname_result=`$ECHO "X${3}" \
21609 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21610 esac
21613 # sed scripts:
21614 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21615 my_sed_long_arg='1s/^-[^=]*=//'
21617 # func_opt_split
21618 func_opt_split ()
21620 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21621 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21624 # func_lo2o object
21625 func_lo2o ()
21627 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21630 # func_xform libobj-or-source
21631 func_xform ()
21633 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
21636 # func_arith arithmetic-term...
21637 func_arith ()
21639 func_arith_result=`expr "$@"`
21642 # func_len string
21643 # STRING may not start with a hyphen.
21644 func_len ()
21646 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
21649 _LT_EOF
21650 esac
21652 case $lt_shell_append in
21653 yes)
21654 cat << \_LT_EOF >> "$cfgfile"
21656 # func_append var value
21657 # Append VALUE to the end of shell variable VAR.
21658 func_append ()
21660 eval "$1+=\$2"
21662 _LT_EOF
21665 cat << \_LT_EOF >> "$cfgfile"
21667 # func_append var value
21668 # Append VALUE to the end of shell variable VAR.
21669 func_append ()
21671 eval "$1=\$$1\$2"
21674 _LT_EOF
21676 esac
21679 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21680 || (rm -f "$cfgfile"; exit 1)
21682 mv -f "$cfgfile" "$ofile" ||
21683 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21684 chmod +x "$ofile"
21687 cat <<_LT_EOF >> "$ofile"
21689 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21691 # The linker used to build libraries.
21692 LD=$lt_LD_CXX
21694 # Commands used to build an old-style archive.
21695 old_archive_cmds=$lt_old_archive_cmds_CXX
21697 # A language specific compiler.
21698 CC=$lt_compiler_CXX
21700 # Is the compiler the GNU compiler?
21701 with_gcc=$GCC_CXX
21703 # Compiler flag to turn off builtin functions.
21704 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21706 # How to pass a linker flag through the compiler.
21707 wl=$lt_lt_prog_compiler_wl_CXX
21709 # Additional compiler flags for building library objects.
21710 pic_flag=$lt_lt_prog_compiler_pic_CXX
21712 # Compiler flag to prevent dynamic linking.
21713 link_static_flag=$lt_lt_prog_compiler_static_CXX
21715 # Does compiler simultaneously support -c and -o options?
21716 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21718 # Whether or not to add -lc for building shared libraries.
21719 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21721 # Whether or not to disallow shared libs when runtime libs are static.
21722 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21724 # Compiler flag to allow reflexive dlopens.
21725 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21727 # Compiler flag to generate shared objects directly from archives.
21728 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21730 # Whether the compiler copes with passing no objects directly.
21731 compiler_needs_object=$lt_compiler_needs_object_CXX
21733 # Create an old-style archive from a shared archive.
21734 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21736 # Create a temporary old-style archive to link instead of a shared archive.
21737 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21739 # Commands used to build a shared archive.
21740 archive_cmds=$lt_archive_cmds_CXX
21741 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21743 # Commands used to build a loadable module if different from building
21744 # a shared archive.
21745 module_cmds=$lt_module_cmds_CXX
21746 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21748 # Whether we are building with GNU ld or not.
21749 with_gnu_ld=$lt_with_gnu_ld_CXX
21751 # Flag that allows shared libraries with undefined symbols to be built.
21752 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21754 # Flag that enforces no undefined symbols.
21755 no_undefined_flag=$lt_no_undefined_flag_CXX
21757 # Flag to hardcode \$libdir into a binary during linking.
21758 # This must work even if \$libdir does not exist
21759 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21761 # If ld is used when linking, flag to hardcode \$libdir into a binary
21762 # during linking. This must work even if \$libdir does not exist.
21763 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21765 # Whether we need a single "-rpath" flag with a separated argument.
21766 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21768 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21769 # DIR into the resulting binary.
21770 hardcode_direct=$hardcode_direct_CXX
21772 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21773 # DIR into the resulting binary and the resulting library dependency is
21774 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21775 # library is relocated.
21776 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21778 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21779 # into the resulting binary.
21780 hardcode_minus_L=$hardcode_minus_L_CXX
21782 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21783 # into the resulting binary.
21784 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21786 # Set to "yes" if building a shared library automatically hardcodes DIR
21787 # into the library and all subsequent libraries and executables linked
21788 # against it.
21789 hardcode_automatic=$hardcode_automatic_CXX
21791 # Set to yes if linker adds runtime paths of dependent libraries
21792 # to runtime path list.
21793 inherit_rpath=$inherit_rpath_CXX
21795 # Whether libtool must link a program against all its dependency libraries.
21796 link_all_deplibs=$link_all_deplibs_CXX
21798 # Fix the shell variable \$srcfile for the compiler.
21799 fix_srcfile_path=$lt_fix_srcfile_path_CXX
21801 # Set to "yes" if exported symbols are required.
21802 always_export_symbols=$always_export_symbols_CXX
21804 # The commands to list exported symbols.
21805 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21807 # Symbols that should not be listed in the preloaded symbols.
21808 exclude_expsyms=$lt_exclude_expsyms_CXX
21810 # Symbols that must always be exported.
21811 include_expsyms=$lt_include_expsyms_CXX
21813 # Commands necessary for linking programs (against libraries) with templates.
21814 prelink_cmds=$lt_prelink_cmds_CXX
21816 # Specify filename containing input files.
21817 file_list_spec=$lt_file_list_spec_CXX
21819 # How to hardcode a shared library path into an executable.
21820 hardcode_action=$hardcode_action_CXX
21822 # The directories searched by this compiler when creating a shared library.
21823 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21825 # Dependencies to place before and after the objects being linked to
21826 # create a shared library.
21827 predep_objects=$lt_predep_objects_CXX
21828 postdep_objects=$lt_postdep_objects_CXX
21829 predeps=$lt_predeps_CXX
21830 postdeps=$lt_postdeps_CXX
21832 # The library search path used internally by the compiler when linking
21833 # a shared library.
21834 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21836 # ### END LIBTOOL TAG CONFIG: CXX
21837 _LT_EOF
21840 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
21841 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
21842 esac ;;
21843 "po/stamp-it":C)
21844 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
21845 as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
21847 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
21848 >"po/stamp-it.tmp"
21849 sed '/^#/d
21850 s/^[[].*] *//
21851 /^[ ]*$/d
21852 '"s|^| $ac_top_srcdir/|" \
21853 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
21855 sed '/^POTFILES =/,/[^\\]$/ {
21856 /^POTFILES =/!d
21857 r po/POTFILES
21859 ' "po/Makefile.in" >"po/Makefile"
21860 rm -f "po/Makefile.tmp"
21861 mv "po/stamp-it.tmp" "po/stamp-it"
21864 esac
21865 done # for ac_tag
21868 as_fn_exit 0
21869 _ACEOF
21870 ac_clean_files=$ac_clean_files_save
21872 test $ac_write_fail = 0 ||
21873 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21876 # configure is writing to config.log, and then calls config.status.
21877 # config.status does its own redirection, appending to config.log.
21878 # Unfortunately, on DOS this fails, as config.log is still kept open
21879 # by configure, so config.status won't be able to write to it; its
21880 # output is simply discarded. So we exec the FD to /dev/null,
21881 # effectively closing config.log, so it can be properly (re)opened and
21882 # appended to by config.status. When coming back to configure, we
21883 # need to make the FD available again.
21884 if test "$no_create" != yes; then
21885 ac_cs_success=:
21886 ac_config_status_args=
21887 test "$silent" = yes &&
21888 ac_config_status_args="$ac_config_status_args --quiet"
21889 exec 5>/dev/null
21890 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21891 exec 5>>config.log
21892 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21893 # would make configure fail if this is the last instruction.
21894 $ac_cs_success || as_fn_exit 1
21896 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21898 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21902 echo "
21904 Configuration:
21906 Source code location: ${srcdir}
21907 Compiler: ${CXX}
21909 Build libtransmission: yes
21911 * optimized for low-resource systems: ${enable_lightweight}
21912 * µTP enabled: ${build_utp}
21914 Build Command-Line client: ${build_cli}
21916 Build GTK+ client: ${build_gtk}
21918 Optional dependencies for GTK+ client:
21920 * dbus support: ${use_dbus_glib}
21921 * gio for watchdir and mime-type support: ${use_gio}
21922 * libnotify for 'download completed' popups: ${use_libnotify}
21923 * libcanberra for 'download completed' sounds: ${use_canberra}
21924 * libappindicator for an Ubuntu-style tray: ${use_libappindicator}
21926 Build Daemon: ${build_daemon}
21928 Build Mac client: ${build_mac}